PR testsuite/44195
[official-gcc.git] / gcc / ChangeLog
blobb27f23b9966430b51fc7d5ba02e290ff0ccecc66
1 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
3         * config/i386/i386.md (immediate_operand): New mode attribute.
4         
5         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
6         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
7         using P mode iterator.
8         (pro_epilogue_adjust_stack_di_2): Rename from
9         pro_epilogue_adjust_stack_rex64_2.
11         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
13 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
15         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
16         through gen_mov_insv_1 function pointer.
17         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
18         gen_truncxf<mode>2 through gen_truncxf function pointer.
19         (remainder<mode>3): Ditto.
20         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
21         (allocate_stack): Call gen_allocate_stack_worker_64 or
22         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
23         function pointer.
24         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
25         function pointer.
27 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
29         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
30         operand constraint instead of <r><i>m.
32 2010-07-06  Richard Guenther  <rguenther@suse.de>
34         PR middle-end/44828
35         * convert.c (convert_to_integer): Watch out for overflowing
36         MULT_EXPR as well.
38 2010-07-05  Jan Hubicka  <jh@suse.cz>
40         * lto-streamer.c (write_symbol_vec): Rename to ...
41         (write_symbol) ... this one; write only symbol given and when
42         present in cache. Sanity check that what is defined is present
43         in cgraph/varpool with body/finalized decl.
44         (write_symbols_of_kind): Remove.
45         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
46         pairs to produce symtab.
47         (produce_asm_for_decls): Update call of produce_symtab; don't do so
48         when doing WPA streaming.
50 2010-07-05  Jan Hubicka  <jh@suse.cz>
52         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
53         function is still available to fold into.
55 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
57         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
58         * function.h (struct_function): Change type of local_decls field
59         to a VEC.
60         (add_local_decl): New function.
61         (FOR_EACH_LOCAL_DECL): New macro.
62         * cfgexpand.c (init_vars_expansion): Adjust for new type of
63         cfun->local_decls.
64         (estimated_stack_frame_size): Likewise.
65         (expand_used_vars): Likewise.
66         * cgraphbuild.c (build_cgraph_edges): Likewise.
67         * function.c (instantiate_decls_1): Likewise.
68         * ipa-struct-reorg.c (build_data_structure): Likewise.
69         * ipa-type-escape.c (analyze_function): Likewise.
70         * lto-streamer-in.c (input_function): Likewise.
71         * lto-streamer-out.c (output_function): Likewise.
72         * tree-ssa-live.c (remove_unused_locals): Likewise.
73         * tree.c (free_lang_data_in_decl): Likewise.
74         (find_decls_types_in_node): Likewise.
75         * omp-low.c (remove_exit_barrier): Likewise.
76         (expand_omp_taskreg): Likewise.
77         (list2chain): Rename to...
78         (vec2chain): ...this.  Adjust.
79         * cgraphunit.c (assemble_thunk): Call add_local_decl.
80         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
81         * gimple-low.c (record_vars_into): Likewise.
82         * tree-inline.c (remap_decls): Likewise.
83         (declare_return_variable): Likewise.
84         (declare_inline_vars): Likewise.
85         (copy_forbidden): Adjust for new type of cfun->local_decls.
86         (add_local_variables): New function.
87         (expand_call_inline): Call it.
88         (tree_function_versioning): Likewise.
90 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
92         AVX Programming Reference (June, 2010)
93         * config/i386/cpuid.h (bit_F16C): New.
94         (bit_RDRND): Likewise.
95         (bit_FSGSBASE): Likewise.
97         * config/i386/i386-builtin-types.def: Add
98         "DEF_FUNCTION_TYPE (UINT16)", function types for
99         float16 <-> float conversions and
100         "DEF_FUNCTION_TYPE (VOID, UINT64)".
102         * config/i386/i386-c.c (ix86_target_macros_internal): Support
103         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
104         OPTION_MASK_ISA_F16C.
106         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
107         (OPTION_MASK_ISA_RDRND_SET): Likewise.
108         (OPTION_MASK_ISA_F16C_SET): Likewise.
109         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
110         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
111         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
112         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
113         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
114         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
115         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
116         (override_options): Handle them.
117         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
118         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
119         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
120         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
121         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
122         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
123         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
124         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
125         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
126         (bdesc_args): Likewise.
127         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
128         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
129         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
130         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
131         Handle non-memory store.
133         * config/i386/i386.h (TARGET_FSGSBASE): New.
134         (TARGET_RDRND): Likewise.
135         (TARGET_F12C): Likewise.
137         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
138         (UNSPEC_VCVTPS2PH): Likewise.
139         (UNSPECV_RDFSBASE): Likewise.
140         (UNSPECV_RDGSBASE): Likewise.
141         (UNSPECV_WRFSBASE): Likewise.
142         (UNSPECV_WRGSBASE): Likewise.
143         (UNSPECV_RDRAND): Likewise.
144         (rdfsbase<mode>): Likewise.
145         (rdgsbase<mode>): Likewise.
146         (wrfsbase<mode>): Likewise.
147         (wrgsbase<mode>): Likewise.
148         (rdrand<mode>): Likewise.
150         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
152         * config/i386/immintrin.h (_rdrand_u16): New.
153         (_rdrand_u32): Likewise.
154         (_readfsbase_u32): Likewise.
155         (_readfsbase_u64): Likewise.
156         (_readgsbase_u32): Likewise.
157         (_readgsbase_u64): Likewise.
158         (_writefsbase_u32): Likewise.
159         (_writefsbase_u64): Likewise.
160         (_writegsbase_u32): Likewise.
161         (_writegsbase_u64): Likewise.
162         (_rdrand_u64): Likewise.
163         (_cvtsh_ss): Likewise.
164         (_mm_cvtph_ps): Likewise.
165         (_mm256_cvtph_ps): Likewise.
166         (_cvtss_sh): Likewise.
167         (_mm_cvtps_ph): Likewise.
168         (_mm256_cvtps_ph): Likewise.
170         * config/i386/sse.md (vcvtph2ps): New.
171         (*vcvtph2ps_load): Likewise.
172         (vcvtph2ps256): Likewise.
173         (vcvtps2ph): Likewise.
174         (*vcvtps2ph): Likewise.
175         (*vcvtps2ph_store): Likewise.
176         (vcvtps2ph256): Likewise.
178         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
180         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
182 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
184         PR bootstrap/44512
185         * genenums.c (main): Output include of insn-constants.h
186         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
188 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
190         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
191         (override_options): Initialize it.
192         (ix86_expand_prologue): Use it.
194 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
196         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
198 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
200         * double-int.h (fit_double_type): Remove declaration.
201         * double-int.c (fit_double_type): Remove function.
202         * tree.h (int_fits_type_p): Adjust prototype.
203         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
204         instead of fit_double_type.
205         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
206         instead of fit_double_type and build_int_cst_wide.
207         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
208         instead of fit_double_type and build_int_cst_wide.
209         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
210         of fit_double_type.
212 2010-07-05  Jan Hubicka  <jh@suse.cz>
214         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
215         in_other_partition.
216         * lto-cgraph.c (referenced_from_other_partition_p,
217         reachable_from_other_partition_p): Use in_other_partition flags.
218         (output_node, output_varpool_node): COMDAT nodes always have private
219         copies and thus are never used from other partition.
221 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
223         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
224         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
225         * config/ia64/ia64.c Include reload.h.
226         (ia64_memory_move_cost): New function.
227         (TARGET_MEMORY_MOVE_COST): Define.
228         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
229         memory_move_cost.
231 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
233         PR middle-end/42505
234         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
235         comments about cost model.
236         (try_add_cand_for):  Add second strategy for choosing initial set
237         based on original IVs, controlled by ORIGINALP argument.
238         (get_initial_solution): Add ORIGINALP argument.
239         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
240         (find_optimal_iv_set): Try two different strategies for choosing
241         the IV set, and return the one with lower cost.
243 2010-07-05  Richard Guenther  <rguenther@suse.de>
245         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
247 2010-07-05  Richard Guenther  <rguenther@suse.de>
249         * tree.c (reference_alias_ptr_type): New function.
250         * tree.h (reference_alias_ptr_type): Declare.
251         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
252         allow non-TARGET_MEM_REF new refs.
253         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
254         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
255         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
256         (create_mem_ref): Get alias pointer type.  Adjust calls to
257         create_mem_ref_raw.
258         (maybe_fold_tmr): Likewise.
259         * tree-flow.h (create_mem_ref): Adjust prototype.
261 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
263         PR c++/44808
264         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
265         *from_p is VAR_DECL.
267 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
269         * tree.h (build_call_list): Remove.
270         * tree.c (build_call_list): Remove.
272 2010-07-05  Richard Guenther  <rguenther@suse.de>
274         * double-int.h (double_int_sub): Declare.
275         * double-int.c (double_int_sub): New function.
276         * dwarf2out.c (field_byte_offset): Use it.
277         * fixed-value.c (do_fixed_add): Likewise.
278         (do_fixed_multiply): Likewise.
279         (do_fixed_divide): Likewise.
280         * tree-predcom.c (add_ref_to_chain): Likewise.
281         (determine_roots_comp): Likewise.
282         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
284 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
286         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
287         implementations.
289 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
291         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
292         * arm-modes.def (CC_NOTB): Don't define.
293         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
294         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
295         (LTUGEU): New code_iterator.
296         (cnb, optab): New corresponding code_attrs.
297         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
298         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
299         using LTUGEU.
300         (addsi3_carryin_shift_<optab>): Likewise.
301         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
302         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
303         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
304         (subsi3_compare): Renamed from subsi3_compare0_c.
305         Change CC_NOTB to CC.
306         (arm_subsi3_insn): Allow constants for operand 0.
307         (compare_scc peephole for eq case): New.
308         (compare_scc splitters): Change CC_NOTB to CC.
310 2010-07-05  Richard Guenther  <rguenther@suse.de>
312         * tree-ssa-loop-im.c (for_each_index): Do not handle
313         ALIGN_INDIRECT_REF.
314         (gen_lsm_tmp_name): Likewise.
315         * tree-dump.c (dequeue_and_dump): Likewise.
316         * tree-pretty-print.c (dump_generic_node): Likewise.
317         (op_code_prio): Likewise.
318         (op_symbol_code): Likewise.
319         * tree.c (staticp): Likewise.
320         (build1_stat): Likewise.
321         * tree.h (INDIRECT_REF_P): Likewise.
322         * fold-const.c (maybe_lvalue_p): Likewise.
323         (operand_equal_p): Likewise.
324         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
325         (ao_ref_init_from_vn_reference): Likewise.
326         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
327         (find_interesting_uses_address): Likewise.
328         * dwarf2out.c (loc_list_from_tree): Likewise.
329         * gimplify.c (gimplify_expr): Likewise.
330         * tree-eh.c (tree_could_trap_p): Likewise.
331         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
332         * cfgexpand.c (expand_debug_expr): Likewise.
333         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
334         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
335         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
336         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
337         * tree-ssa-operands.c (get_expr_operands): Likewise.
338         * expr.c (safe_from_p): Likewise.
339         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
340         * tree-vect-data-refs.c (vect_setup_realignment): Build
341         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
342         * tree-vect-stmts.c (vectorizable_load): Likewise.
343         * tree.def (ALIGN_INDIRECT_REF): Remove.
345 2010-07-05  Richard Guenther  <rguenther@suse.de>
347         PR tree-optimization/44784
348         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
349         for inserted stmts.
350         (find_or_generate_expression): Fix SCCVN insertion check.
352 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
354         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
355         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
356         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
357         directives.
359 2010-07-05  Ira Rosen  <irar@il.ibm.com>
361         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
362         statements that are not vectorized.
363         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
364         in INSIDE_COST.
366 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
368         PR bootstrap/44820
369         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
371 2010-07-05  Richard Guenther  <rguenther@suse.de>
373         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
374         RESULT_DECLs properly.
376 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
378         PR rtl-optimization/44695
379         * config/i386/i386.md (extract_code): Removed.
380         (<u>divmodqi4): Likewise.
381         (divmodqi4): New.
382         (udivmodqi4): Likewise.
383         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
384         (udivmodhiqi3): Likewise.
386 2010-07-04  Jan Hubicka  <jh@suse.cz>
388         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
390 2010-07-04  Jan Hubicka  <jh@suse.cz>
392         * cgraphunit.c (init_cgraph): Only initialize dump file if it
393         is not already initialized.
395 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
397         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
398         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
399         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
400         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
401         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
402         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
403         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
404         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
405         (sync_new_nand_optab): Redefine as macros.
406         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
407         Delete.
408         (direct_optab_index): New enum.
409         (direct_optab_d): New structure.
410         (direct_optab): New typedef.
411         (direct_optab_table): Declare.
412         (direct_optab_handler, set_direct_optab_handler): New functions.
413         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
414         (sync_lock_release_optab): New macros.
415         * optabs.c (direct_optab_table): New variable.
416         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
417         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
418         cmpstr_optab and cmpstrn_optab.
419         (emit_conditional_move): Likewise for movcc_optab.
420         (can_conditionally_move_p): Likewise for movcc_gen_code.
421         (init_insn_codes): Clear direct_optab_table.
422         (init_optabs): Don't initialize the new "direct optabs" here.
423         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
424         vcond_gen_code.
425         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
426         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
427         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
428         (expand_sync_operation): Likewise other sync_*_optabs.
429         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
430         to sync_compare_and_swap_optab.
431         (expand_sync_lock_test_and_set): Use direct_optab_handler for
432         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
433         to the names of both.
434         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
435         cmpstr_optab and cmpstrn_optab.
436         (expand_builtin_lock_release): Likewise sync_lock_release.
437         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
438         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
439         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
440         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
441         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
442         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
443         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
444         (sync_lock_test_and_set, sync_lock_release): Delete.
445         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
446         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
447         * genopinit.c (optabs): Use set_direct_optab_handler for the new
448         macro optabs.
449         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
450         the "optab" local variable.  Use direct_optab_handler for optab and
451         sync_compare_and_swap_optab.
452         * reload1.c (reload_in_optab, reload_out_optab): Delete.
453         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
454         reload_in_optab and reload_out_optab.
455         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
456         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
457         * config/pa/pa.c (pa_secondary_reload): Likewise.
458         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
459         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
460         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
461         (VMSupportsCS8_builtin): Likewise.
463 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
465         * optabs.h (optab_handlers): Change type of insn_code to int.
466         (optab_handler, set_optab_handler, convert_optab_handler)
467         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
468         CODE_FOR_nothing".
469         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
470         (init_insn_codes): Zero both the above arrays.
471         (init_optabs): Never call init_insn_codes first time around.
473 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
475         * optabs.h (optab_handler, convert_optab_handler): Turn into
476         inline functions that return an insn code.
477         (set_optab_handler, set_convert_optab_handler): New functions.
478         * builtins.c: Replace optab_handler(X)->insn_code with
479         optab_handler or set_optab_handler thoughout.  Likewise
480         convert_optab_handler(X)->insn_code with convert_optab_handler
481         and set_convert_optab_handler.
482         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
483         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
484         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
485         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
486         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
487         config/spu/spu.c: Likewise.
489 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
491         PR target/44531
492         * config.gcc (sh*-*-*): Use regular expressions instead of
493         the 'i' modifier for sed substitutions.
495 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
497         * gimple.c (gimple_body): Comments added.
499 2010-07-04  Richard Guenther  <rguenther@suse.de>
501         PR middle-end/44809
502         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
503         of an INDIRECT_REF.
505 2010-07-04  Richard Guenther  <rguenther@suse.de>
507         PR tree-optimization/44479
508         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
509         extra SSA name copy statements which preserves points-to
510         information.
511         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
512         Copy points-to information for all pointers.  Properly handle
513         MEM_REFs.
514         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
515         copy statements.
516         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
517         dependency.
519 2010-07-04  Richard Guenther  <rguenther@suse.de>
521         PR middle-end/44785
522         * tree-inline.c (initialize_inlined_parameters): Do not
523         re-use pointer-map slot over remap_type call.
525 2010-07-04  Richard Guenther  <rguenther@suse.de>
527         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
529 2010-07-04  Richard Guenther  <rguenther@suse.de>
531         PR tree-optimization/44656
532         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
533         again after value-replacing in the defintions lhs.
535 2010-07-04  Ira Rosen  <irar@il.ibm.com>
536             Revital Eres  <eres@il.ibm.com>
538         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
539         Document new arguments.
540         * doc/tm.texi: Regenerate.
541         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
542         Handle unaligned store.
543         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
544         * target.def (builtin_vectorization_cost): Add new arguments.
545         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
546         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
547         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
548         (vect_vfa_segment_size): Fix indentation.
549         * tree-vectorizer.h (struct _vect_peel_info): New.
550         (struct _vect_peel_extended_info): New.
551         (struct _loop_vec_info): Add new field for peeling hash table and a
552         macro for its access.
553         (VECT_MAX_COST): Define.
554         (vect_get_load_cost): Declare.
555         (vect_get_store_cost, vect_get_known_peeling_cost,
556         vect_get_single_scalar_iteraion_cost): Likewise.
557         (vect_supportable_dr_alignment): Add new argument.
558         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
559         field.
560         (destroy_loop_vec_info): Free peeling hash table.
561         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
562         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
563         vect_analyze_slp. Fix indentation.
564         (vect_get_single_scalar_iteraion_cost): New function.
565         (vect_get_known_peeling_cost): Likewise.
566         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
567         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
568         statement. Move outside cost calculation inside unknown peeling case.
569         Call vect_get_known_peeling_cost for known amount of peeling.
570         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
571         reference to the print message of forced alignment.
572         (vect_verify_datarefs_alignment): Update call to
573         vect_supportable_dr_alignment.
574         (vect_get_data_access_cost): New function.
575         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
576         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
577         vect_peeling_hash_choose_best_peeling): Likewise.
578         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
579         to store all the accesses in the loop and find best possible access to
580         align using peeling for known alignment case. For unknown alignment
581         check if stores are preferred or if peeling is worthy.
582         (vect_find_same_alignment_drs): Analyze pairs of loads too.
583         (vect_supportable_dr_alignment): Add new argument and check aligned
584         accesses according to it.
585         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
586         (cost_for_stmt): Call vect_get_stmt_cost.
587         (vect_model_simple_cost): Likewise.
588         (vect_model_store_cost): Call vect_get_stmt_cost. Call
589         vect_get_store_cost to calculate the cost of the statement.
590         (vect_get_store_cost): New function.
591         (vect_model_load_cost): Call vect_get_stmt_cost. Call
592         vect_get_load_cost to calculate the cost of the statement.
593         (vect_get_load_cost): New function.
594         (vectorizable_store): Update call to vect_supportable_dr_alignment.
595         (vectorizable_load): Likewise.
596         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
597         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
598         arguments. Handle unaligned store.
599         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
600         (rs6000_builtin_support_vector_misalignment): Return true for word and
601         double word alignments for VSX.
602         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
603         vect_supportable_dr_alignment and builtin_vectorization_cost.
605 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
607         PR target/44597
608         * config/pa/predicates.md (prefetch_cc_operand): Remove.
609         (prefetch_nocc_operand): Likewise.
610         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
611         (prefetch_20): New insn.
612         (prefetch_cc): Remove.
613         (prefetch_nocc): Likewise.
615 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
617         * expr.c (vector_mode_valid_p): Move to c-common.c.
618         * expr.h (vector_mode_valid_p): Do not declare here.
619         * system.h: Poison GCC_EXPR_H in front-ends.
620         * Makefile.in: Update dependencies.
622 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
624         PR target/44705
625         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
627 2010-07-03  Jan Hubicka  <jh@suse.cz>
629         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
630         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
631         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
632         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
633         Likewise.
635         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
636         Update timevars.V
637         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
638         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
639         TV_IPA_LTO_DECL_OUT): New.
640         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
642 2010-07-03  Jan Hubicka  <jh@suse.cz>
644         * ipa-inline.c (update_edge_key): Break out from ...
645         update_callers_keys): ... here;
646         (update_callee_keys): Update only the edges from caller to callee.
647         (update_all_calle_keys): Do what update_calle_keys did.
648         (decide_inlining_of_small_functions): Avoid recomputing of all
649         callees when badness increase.
651 2010-07-03  Jie Zhang  <jie@codesourcery.com>
653         * config/arm/arm.c (arm_attr_length_move_neon): New.
654         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
655         * config/arm/neon.md (define_mode_attr V_slen): Remove.
656         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
657         to compute length attribute.
659 2010-07-03  Jie Zhang  <jie@codesourcery.com>
661         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
662         as predicate for operand 1 and remove its constraint.
663         * config/arm/predicates.md (vfp_register_operand): New.
664         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
665         (*push_fp_multi): Likewise.
667 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
669         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
671 2010-07-03  Jan Hubicka  <jh@suse.cz>
673         * config/i386/i386.c (override_options): Revert accidental commit.
675 2010-07-02  Le-Chun Wu  <lcwu@google.com>
677         PR c++/44128
678         * doc/invoke.texi: Update documentation of -Wshadow.
680 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
681             Julian Brown  <julian@codesourcery.com>
682             Sandra Loosemore <sandra@codesourcery.com>
684         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
685         comparisons.  Adjust to take both operands.
686         (arm_select_cc_mode): Handle DImode comparisons.
687         (arm_gen_compare_reg): Generate a scratch register for DImode
688         comparisons which require one.  Use xor for Thumb equality checks.
689         (arm_const_double_by_immediates): New.
690         (arm_print_operand): Allow 'Q' and 'R' for constants.
691         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
692         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
693         arm_canonicalize_comparison.
694         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
695         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
696         prototype.
697         (arm_const_double_by_immediates): Declare.
698         * config/arm/constraints.md (Di): New constraint.
699         * config/arm/predicates.md (arm_immediate_di_operand)
700         (arm_di_operand, cmpdi_operand): New.
701         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
702         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
703         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
704         (cstoredi4): Handle non-Cirrus also.
706 2010-07-02  Julian Brown  <julian@codesourcery.com>
707             Sandra Loosemore <sandra@codesourcery.com>
709         PR target/43703
710         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
711         (smax<mode>3): Disable for NEON float modes when
712         flag_unsafe_math_optimizations is false.
713         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
714         (*mul<mode>3_neon)
715         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
716         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
717         for NEON float modes when flag_unsafe_math_optimizations is false.
718         (quad_halves_<code>v4sf): Only enable if
719         flag_unsafe_math_optimizations is true.
720         * doc/invoke.texi (ARM Options): Add note about floating point
721         vectorization requiring -funsafe-math-optimizations.
723 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
724             Julian Brown  <julian@codesourcery.com>
726         * config/arm/neon.md (UNSPEC_VABA): Delete.
727         (UNSPEC_VABAL): Delete.
728         (UNSPEC_VABS): Delete.
729         (UNSPEC_VMUL_N): Delete.
730         (adddi3_neon): New.
731         (subdi3_neon): New.
732         (mul<mode>3add<mode>_neon): Make the pattern named.
733         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
734         (neon_vadd<mode>): Replace with define_expand, and move the remaining
735         unspec parts...
736         (neon_vadd<mode>_unspec): ...to this.
737         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
738         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
739         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
740         (neon_vaba<mode>): Rewrite in terms of vabd.
741         (neon_vabal<mode>): Rewrite in terms of vabdl.
742         (neon_vabs<mode>): Rewrite without unspec.
743         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
744         (*arm_subdi3): Likewise.
745         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
746         No_op attribute to disable assembly output checks.
747         * config/arm/arm_neon.h: Regenerated.
748         * doc/arm-neon-intrinsics.texi: Regenerated.
750 2010-07-02  Jan Hubicka  <jh@suse.cz>
752         * ipa-split.c (split_function): For aggregate values, set the return
753         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
754         *<retval> = fncall.part ().
755         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
757 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
759         * config/arm/neon.md (UNSPEC_VAND): Delete.
760         (UNSPEC_VBIC): Delete.
761         (UNSPEC_VCLZ): Delete.
762         (UNSPEC_VCNT): Delete.
763         (UNSPEC_VEOR): Delete.
764         (UNSPEC_VORN): Delete.
765         (UNSPEC_VORR): Delete.
766         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
767         core registers too.
768         (anddi3_neon): Likewise.
769         (orndi3_neon): Likewise.
770         (bicdi3_neon): Likewise.
771         (xordi3_neon): Likewise.
772         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
773         rid of unspec and handle unused operand.
774         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
775         * config/arm/predicates.md (imm_for_neon_logic_operand):
776         Require TARGET_NEON.
777         (imm_for_neon_inv_logic_operand): Likewise.
778         * config/arm/arm.md (define_split for logical_binary_operator):
779         Disable for NEON registers.
780         (anddi3): Add new define_expand, and rename the insn.  Disable
781         this insn for NEON, where anddi3_neon now applies.
782         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
783         (iordi3): As for anddi3.
784         (xordi3): Likewise.
785         * config/arm/neon.ml (Vand): Split DImode variants and mark them
786         as No_op to disable testing for exact instruction match.
787         (Vorr): Likewise.
788         (Veor): Likewise.
789         (Vbic): Likewise.
790         (Vorn): Likewise.
791         * config/arm/arm_neon.h: Regenerated.
792         * doc/arm-neon-intrinsics.texi: Regenerated.
794 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
796         * expr.h (emit_stack_probe): Declare.
797         * explow.c (emit_stack_probe): Make global.
798         (anti_adjust_stack_and_probe): Fix comments.
799         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
800         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
801         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
802         * config/sparc/sparc.c: Include except.h.
803         (sparc_emit_probe_stack_range): New function.
804         (output_probe_stack_range): Likewise.
805         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
806         built-in stack checking is enabled.
807         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
808         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
809         (probe_stack_range): New insn.
811 2010-07-02  Richard Guenther  <rguenther@suse.de>
813         PR target/43958
814         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
815         for argument alignment.
817 2010-07-02  Jan Hubicka  <jh@suse.cz>
819         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
820         walk backwards from entry_bb to check only those basic block of header
821         that might lead to execution of split part.
822         (consider_split) ... here.
823         (find_return_bb): Allow assignment in return BB.
824         (find_retval): New.
825         (split_function): Fix name of cloned function; take care of updating
826         return value in return_bb containing move.
828 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
830         PR target/44771
831         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
832         used variable insn.
834 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
836         * implicit-zee.c (combine_reaching_defs): Fix long lines.
837         (is_set_with_extension_DI): Delete.
838         (struct zero_extend_info): New structure.
839         (add_removable_zero_extend): New function.
840         (find_removable_zero_extends): Use note_stores to find SETs.
841         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
843 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
845         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
846         is_miss_rate_acceptable. Pull total_positions computation
847         out of the loops.  Early return if miss_positions exceeds
848         the acceptable threshold.
849         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
850         is_miss_rate_acceptable after renaming of compute_miss_rate.
852 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
854         PR middle-end/44576
855         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
856         of 1000) for miss rate if the address diference is greater than or
857         equal to the cache line size (the two reference will never hit the
858         same cache line).
860 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
862         PR target/42835
863         * config/arm/arm-modes.def (CC_NOTB): New mode.
864         * config/arm/arm.c (get_arm_condition_code): Handle it.
865         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
866         * config/arm/arm.md (subsi3_compare0_c): New pattern.
867         (compare_scc): Now a define_and_split.  Add a number of extra
868         splitters before it.
870         PR target/42172
871         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
872         and ZERO_EXTEND.
873         (arm_rtx_costs_1): Likewise.
874         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
875         * config/arm/arm.md (is_arch6): New attribute.
876         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
877         extendqisi2): Tighten the code somewhat, avoiding invalid
878         RTL to occur in the expander patterns.
879         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
880         (thumb1_zero_extendhisi2_v6): Delete.
881         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
882         (thumb1_extendhisi2_v6): Delete.
883         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
884         (thumb1_extendqisi2_v6): Delete.
885         (zero_extendhisi2 for register input splitter): New.
886         (zero_extendqisi2 for register input splitter): New.
887         (thumb1_extendhisi2 for register input splitter): New.
888         (extendhisi2 for register input splitter): New.
889         (extendqisi2 for register input splitter): New.
890         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
891         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
892         and add support for a register alternative requiring a split.
893         (thumb1_zero_extendqisi2): Likewise.
894         (arm_zero_extendqisi2): Likewise.
895         (arm_extendhisi2): Likewise.
896         (arm_extendqisi2): Likewise.
898 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
900         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
901         instead of an unspec.
902         (neon_expand_vector_init): Likewise.
903         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
904         (UNSPEC_VDUP_LANE): Delete.
905         (UNSPEC VDUP_N): Delete.
906         (UNSPEC_VGET_HIGH): Delete.
907         (UNSPEC_VGET_LANE): Delete.
908         (UNSPEC_VGET_LOW): Delete.
909         (UNSPEC_VMVN): Delete.
910         (UNSPEC_VSET_LANE): Delete.
911         (V_double_vector_mode): New.
912         (vec_set<mode>_internal): Make code emitted match that for the
913         corresponding intrinsics.
914         (vec_setv2di_internal): Likewise.
915         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
916         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
917         (neon_vset_lane<mode>): Combine double and quad patterns and
918         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
919         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
920         (neon_vdup_n<mode>): Rewrite RTL without unspec.
921         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
922         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
923         with neon_vdup_lanev2di, adjusting the pattern from the latter
924         to be predicable for consistency.
925         (neon_vdup_lane<mode>_internal): New.
926         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
927         to avoid using an unspec.
928         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
929         (neon_vdup_lanev2di): Turn into a define_expand.
930         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
931         (neon_vget_high<mode>): Replace with....
932         (neon_vget_highv16qi): New pattern using canonical RTL.
933         (neon_vget_highv8hi): Likewise.
934         (neon_vget_highv4si): Likewise.
935         (neon_vget_highv4sf): Likewise.
936         (neon_vget_highv2di): Likewise.
937         (neon_vget_low<mode>): Replace with....
938         (neon_vget_lowv16qi): New pattern using canonical RTL.
939         (neon_vget_lowv8hi): Likewise.
940         (neon_vget_lowv4si): Likewise.
941         (neon_vget_lowv4sf): Likewise.
942         (neon_vget_lowv2di): Likewise.
944         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
945         test for this emitting vmov.
946         (Vset_lane): Likewise.
947         (Vdup_n): Likewise.
948         (Vmov_n): Likewise.
950         * doc/arm-neon-intrinsics.texi: Regenerated.
952 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
954         * config/arm/neon.md (vec_extractv2di): Correct error in register
955         numbering to reconcile with neon_vget_lanev2di.
957 2010-07-02  Richard Guenther  <rguenther@suse.de>
959         * tree-ssa-structalias.c (pt_solution_set_var): New function.
960         * tree-ssa-alias.h (pt_solution_set_var): Declare.
961         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
962         points-to information.
964 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
966         * config/s390/s390.c (override_options): Adopt prefetching
967         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
969 2010-07-02  Jan Hubicka  <jh@suse.cz>
971         * df-problems.c (df_kill_notes): Do not collect dead  notes.
972         (df_set_note): Just call add_reg_note.
973         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
974         df_create_unused_note): Do not deal with lists of old notes.
975         (df_note_bb_compute): Likewise.
977 2010-07-02  Richard Guenther  <rguenther@suse.de>
979         * tree-ssa-structalias.c (find_func_aliases): Handle
980         pointer alignment via BIT_AND_EXPR.
981         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
983 2010-07-02  Richard Guenther  <rguenther@suse.de>
985         * tree-data-ref.c (initialize_data_dependence_relation): Handle
986         mismatching number of dimensions properly.
988 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
990         PR target/44707
991         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
992         (lo_sum (high ...) ...) patterns generated by earlier passes.
994 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
996         * doc/install.texi (Prerequisites): Document Perl requirement on
997         Solaris 2.
998         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1000 2010-07-02  Richard Guenther  <rguenther@suse.de>
1002         PR middle-end/44777
1003         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1005 2010-07-02  Jan Hubicka  <jh@suse.cz>
1007         PR middle-end/44706
1008         * predict.c (predict_paths_for_bb): Handle case when control dependence
1009         BB has only abnormal edges.
1011 2010-07-02  Richard Guenther  <rguenther@suse.de>
1013         PR tree-optimization/44748
1014         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1015         the embedded conversion in MEM_REFs.
1017 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
1019         * reload.c: Include toplev.h.
1020         * recog.c:  Likewise.
1021         * Makefile.in: Adjust dependencies.
1023 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
1025         PR debug/44694
1026         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1027         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1029 2010-07-01  Richard Guenther  <rguenther@suse.de>
1031         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1032         types for offsets.
1034 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1036         PR target/44732
1037         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1038         Fix argument types.
1040 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
1042         PR target/44727
1043         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1044         Make sure operand 0 dies.
1046 2010-07-01  Richard Guenther  <rguenther@suse.de>
1048         PR middle-end/42834
1049         PR middle-end/44468
1050         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1051         * doc/generic.texi (References to storage): Document MEM_REF.
1052         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1053         (print_call_name): Likewise.
1054         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1055         (build_simple_mem_ref_loc): New function.
1056         (mem_ref_offset): Likewise.
1057         * tree.h (build_simple_mem_ref_loc): Declare.
1058         (build_simple_mem_ref): Define.
1059         (mem_ref_offset): Declare.
1060         * fold-const.c: Include tree-flow.h.
1061         (operand_equal_p): Handle MEM_REF.
1062         (build_fold_addr_expr_with_type_loc): Likewise.
1063         (fold_comparison): Likewise.
1064         (fold_unary_loc): Fold
1065         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1066         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1067         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1068         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1069         (ptr_deref_may_alias_ref_p_1): Likewise.
1070         (ao_ref_base_alias_set): Properly differentiate base object for
1071         offset and TBAA.
1072         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1073         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1074         (indirect_refs_may_alias_p): Likewise.
1075         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
1076         chasing code.
1077         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1078         (call_may_clobber_ref_p_1): Likewise.
1079         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1080         * expr.c (expand_assignment): Handle MEM_REF.
1081         (store_expr): Handle MEM_REFs from STRING_CSTs.
1082         (store_field): If expanding a MEM_REF of a non-addressable
1083         decl use bitfield operations.
1084         (get_inner_reference): Handle MEM_REF.
1085         (expand_expr_addr_expr_1): Likewise.
1086         (expand_expr_real_1): Likewise.
1087         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1088         * alias.c (ao_ref_from_mem): Handle MEM_REF.
1089         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
1090         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1091         (dr_analyze_indices): Likewise.
1092         (dr_analyze_alias): Likewise.
1093         (object_address_invariant_in_loop_p): Likewise.
1094         * gimplify.c (mark_addressable): Handle MEM_REF.
1095         (gimplify_cond_expr): Build MEM_REFs.
1096         (gimplify_modify_expr_to_memcpy): Likewise.
1097         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1098         (gimple_fold_indirect_ref): Adjust.
1099         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
1100         * tree.def (MEM_REF): New tree code.
1101         * tree-dfa.c: Include toplev.h.
1102         (get_ref_base_and_extent): Handle MEM_REF.
1103         (get_addr_base_and_unit_offset): New function.
1104         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1105         * gimple-fold.c (may_propagate_address_into_dereference): Handle
1106         MEM_REF.
1107         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1108         accesses if the array has just one dimension.  Remove always true
1109         parameter.  Do not require type compatibility here.
1110         (maybe_fold_offset_to_component_ref): Remove.
1111         (maybe_fold_stmt_indirect): Remove.
1112         (maybe_fold_reference): Remove INDIRECT_REF handling.
1113         Fold back to non-MEM_REF.
1114         (maybe_fold_offset_to_address): Simplify.  Deal with type
1115         mismatches here.
1116         (maybe_fold_reference): Likewise.
1117         (maybe_fold_stmt_addition): Likewise.  Also handle
1118         &ARRAY + I in addition to &ARRAY[0] + I.
1119         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1120         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1121         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1122         * tree-ssa.c (useless_type_conversion_p): Make most pointer
1123         conversions useless.
1124         (warn_uninitialized_var): Handle MEM_REF.
1125         (maybe_rewrite_mem_ref_base): New function.
1126         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1127         to SSA form.
1128         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1129         INDIRECT_REF handling.
1130         (copy_tree_body_r): Handle MEM_REF.
1131         * gimple.c (is_gimple_addressable): Adjust.
1132         (is_gimple_address): Likewise.
1133         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1134         invariant base are invariant.
1135         (is_gimple_min_lval): Adjust.
1136         (is_gimple_mem_ref_addr): New function.
1137         (get_base_address): Handle MEM_REF.
1138         (count_ptr_derefs): Likewise.
1139         (get_base_loadstore): Likewise.
1140         * gimple.h (is_gimple_mem_ref_addr): Declare.
1141         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1142         * tree-cfg.c (verify_address): New function, split out from ...
1143         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
1144         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
1145         INDIRECT_REFs.
1146         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
1147         INDIRECT_REF.  Allow conversions.
1148         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1149         a register does not change its size.
1150         (verify_types_in_gimple_reference): Verify MEM_REF.
1151         (verify_gimple_assign_single): Disallow INDIRECT_REF.
1152         Handle MEM_REF.
1153         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1154         New.
1155         (mark_address_taken): Handle MEM_REF.
1156         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1157         (get_asm_expr_operands): Pass opf_not_non_addressable.
1158         (get_expr_operands): Handle opf_[not_]non_addressable.
1159         Handle MEM_REF.  Remove INDIRECT_REF handling.
1160         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1161         (search_for_addr_array): Likewise.
1162         (check_array_bounds): Likewise.
1163         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1164         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1165         (ref_always_accessed_p): Likewise.
1166         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
1167         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1168         Handle MEM_REF.
1169         * cgraphbuild.c (mark_load): Properly check for NULL result
1170         from get_base_address.
1171         (mark_store): Likewise.
1172         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1173         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1174         handling for MEM_REF.
1175         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1176         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1177         * builtins.c (stabilize_va_list_loc): Use the function ABI
1178         valist type if we couldn't canonicalize the argument type.
1179         Always dereference with the canonical va-list type.
1180         (maybe_emit_free_warning): Handle MEM_REF.
1181         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1182         memmove to memcpy.
1183         * builtins.c (fold_builtin_memory_op): Use ref-all types
1184         for all memcpy foldings.
1185         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1186         (build_outer_var_ref): Likewise.
1187         (scan_omp_1_op): Likewise.
1188         (lower_rec_input_clauses): Likewise.
1189         (lower_lastprivate_clauses): Likewise.
1190         (lower_reduction_clauses): Likewise.
1191         (lower_copyprivate_clauses): Likewise.
1192         (expand_omp_atomic_pipeline): Likewise.
1193         (expand_omp_atomic_mutex): Likewise.
1194         (create_task_copyfn): Likewise.
1195         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1196         Remove old union trick.  Initialize constant offsets.
1197         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
1198         INDIRECT_REF.  Init base_alias_set properly.
1199         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1200         (vn_reference_fold_indirect): Adjust for MEM_REFs.
1201         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
1202         for ARRAY_REFs.
1203         (may_insert): Remove.
1204         (visit_reference_op_load): Do not test may_insert.
1205         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1206         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1207         a field to store the constant offset this op applies.
1208         (run_scc_vn): Adjust prototype.
1209         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1210         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1211         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
1212         bother about volatile qualifiers on pointers.
1213         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1214         * tree-ssa-loop-ivopts.c
1215         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1216         (strip_offset_1): Likewise.
1217         (find_interesting_uses_address): Replace INDIRECT_REF handling with
1218         MEM_REF handling.
1219         (get_computation_cost_at): Likewise.
1220         * ipa-pure-const.c (check_op): Handle MEM_REF.
1221         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1222         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1223         and constants.
1224         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1225         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1226         (eliminate_local_variables_1): Likewise.
1227         (create_call_for_reduction_1): Likewise.
1228         (create_loads_for_reductions): Likewise.
1229         (create_loads_and_stores_for_name): Likewise.
1230         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1231         (ssa_accessed_in_tree): Handle MEM_REF.
1232         (ssa_accessed_in_assign_rhs): Likewise.
1233         (update_type_size): Likewise.
1234         (analyze_accesses_for_call_stmt): Likewise.
1235         (analyze_accesses_for_assign_stmt): Likewise.
1236         (transform_access_sites): Likewise.
1237         (transform_allocation_sites): Likewise.
1238         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1239         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1240         not handle INDIRECT_REF.
1241         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1242         (cond_store_replacement): Likewise.
1243         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1244         MEM_REF, no not handle INDIRECT_REFs.
1245         (insert_into_preds_of_block): Properly initialize avail.
1246         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
1247         for ARRAY_REFs.  Properly handle reference lookups that
1248         require a bit re-interpretation.
1249         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
1250         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1251         (build_ref_for_offset_1): Remove.
1252         (build_ref_for_offset): Build MEM_REFs.
1253         (gate_intra_sra): Disable for now.
1254         (sra_ipa_modify_expr): Handle MEM_REF.
1255         (ipa_early_sra_gate): Disable for now.
1256         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1257         MEM_REF handling.
1258         (disqualify_base_of_expr): Likewise.
1259         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1260         MEM_REF handling.
1261         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1262         Use mem_ref_offset.  Remove bogus folding.
1263         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1264         (make_fancy_name_1): Add support for MEM_REF.
1265         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1266         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1267         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1268         (compute_complex_ancestor_jump_func): Likewise.
1269         (ipa_analyze_virtual_call_uses): Likewise.
1270         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1271         INDIRECT_REF folding with more generalized MEM_REF folding.
1272         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1273         (forward_propagate_addr_into_variable_array_index): Also handle
1274         &ARRAY + I in addition to &ARRAY[0] + I.
1275         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1276         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1277         creates assignments with overlap.
1278         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1279         (get_frame_field): Likewise.
1280         (get_nonlocal_debug_decl): Likewise.
1281         (convert_nonlocal_reference_op): Likewise.
1282         (struct nesting_info): Add mem_refs pointer-set.
1283         (create_nesting_tree): Allocate it.
1284         (convert_local_reference_op): Insert to be folded mem-refs.
1285         (fold_mem_refs): New function.
1286         (finalize_nesting_tree_1): Perform defered folding of mem-refs
1287         (free_nesting_tree): Free the pointer-set.
1288         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1289         (vectorizable_load): Likewise.
1290         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1291         (propagate_with_phi): Likewise.
1292         * tree-object-size.c (addr_object_size): Handle MEM_REFs
1293         instead of INDIRECT_REFs.
1294         (compute_object_offset): Handle MEM_REF.
1295         (plus_stmt_object_size): Handle MEM_REF.
1296         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1297         for &MEM_REF.
1298         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1299         (symbol_marked_for_renaming): Likewise.
1300         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1301         (fold-const.o): Add $(TREE_FLOW_H).
1302         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1303         (find_func_clobbers): Likewise.
1304         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1305         (decompose_access): Likewise.
1306         (replace_field_acc): Likewise.
1307         (replace_field_access_stmt): Likewise.
1308         (insert_new_var_in_stmt): Likewise.
1309         (get_stmt_accesses): Likewise.
1310         (reorg_structs_drive): Disable.
1311         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1312         (ix86_canonical_va_list_type): Likewise.
1314 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1316         PR other/44566
1317         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1318         * target.def (struct gcc_target): Replace enum reg_class with
1319         reg_class_t in hook argument / return types.
1320         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1321         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1322         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1323         * targhooks.h (default_branch_target_register_class): Likewise.
1324         (default_ira_cover_classes, default_secondary_reload): Likewise.
1325         (default_memory_move_cost, default_register_move_cost): Likewise.
1326         * targhooks.c (default_branch_target_register_class): Likewise.
1327         (default_ira_cover_classes, default_secondary_reload): Likewise.
1328         (default_memory_move_cost, default_register_move_cost): Likewise.
1329         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1330         * bt-load.c (branch_target_load_optimize): Likewise.
1331         * ira.c (setup_cover_and_important_classes): Likewise.
1332         * ira-costs.c (copy_cost): Likewise.
1333         * reload1.c (emit_input_reload_insns): Likewise.
1334         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1335         * config/frv/frv.c (frv_secondary_reload): Likewise.
1336         * config/s390/s390.c (s390_secondary_reload): Likewise.
1337         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1338         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1339         (ix86_register_move_cost): Likewise.
1340         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1341         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1342         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1343         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1344         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1345         (rs6000_ira_cover_classes): Likewise.
1346         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1347         * config/picochip/picochip-protos.h (picochip_secondary_reload):
1348         Likewise.
1349         * config/pa/pa.c (pa_secondary_reload): Likewise.
1350         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1351         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1352         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1353         * doc/tm.texi: Regenerate.
1355 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1357         PR bootstrrap/44726
1358         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1359         use.
1360         (build_alias_set_optimal_p): Likewise.
1361         (build_base_obj_set_for_drs): Likewise.
1363 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1365         * target.def: Remove comment about licensing problems of function
1366         declarations.
1368         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
1369         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1370         * doc/tm.texi: Regenerate.
1372         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
1373         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1375         * target.def (enum_va_list_p): Use DEFHOOK.
1376         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1377         Rename ptype to ptree.
1378         * doc/tm.texi: Regenerate.
1380         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
1381         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1382         * doc/tm.texi: Regenerate.
1384         * target.def (memory_move_cost): Use DEFHOOK.
1385         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1386         Rename regclass AKA class to rclass.
1387         * doc/tm.texi: Regenerate.
1389         * target.def (pragma_parse): Use DEFHOOK.
1390         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1391         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1392         * doc/tm.texi: Regenerate.
1394         * target.def (pass_by_reference): Use DEFHOOK.
1395         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1396         * doc/tm.texi: Regenerate.
1398         * target.def (resolve_overloaded_builtin): Rename params to arglist.
1399         Use DEFHOOK.
1400         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1401         * doc/tm.texi: Regenerate.
1403         * target.def (return_pops_args): Use DEFHOOK.
1404         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1405         Rename stack-size to size.
1406         * doc/tm.texi: Regenerate.
1408         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
1409         last-sched_cycle to last_clock, cur_cycle to clock.
1410         * doc/tm.texi.in: Use @hook.
1411         * doc/tm.texi: Regenerate.
1413         * target.def (print_operand, print_operand_address): Update comment.
1414         (print_operand_punct_valid_p): Likewise.
1416 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1418         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1419         to rtl.h.
1420         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1421         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1422         * rtl-error.h: New.
1423         * regrename.c: Do not include toplev.h. Include rtl-error.h.
1424         * rtl-error.c: Likewise.
1425         * reload.c: Likewise.
1426         * recog.c:  Likewise.
1427         * sel-sched.c: Likewise.
1428         * function.c: Likewise.
1429         * reg-stack.c: Likewise.
1430         * cfgrtl.c: Likewise.
1431         * reload1.c: Likewise.
1432         * final.c: Include rtl-error.
1433         * Makefile.in: Adjust dependencies.
1435 2010-06-30  Jan Hubicka  <jh@suse.cz>
1437         PR middle-end/PR44706
1438         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1439         to return the value.
1441 2010-06-30  Michael Matz  <matz@suse.de>
1443         PR bootstrap/44699
1444         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1445         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1446         a gimple reg, attach the original VDEF to the last store in the
1447         sequence.
1449 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
1451         PR other/44034
1452         * config/darwin.c (darwin_override_options): Use renamed
1453         targetm.asm_out.emit_unwind_label.
1455 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1457         PR tree-optimization/39799
1458         * tree-inline.c (remap_ssa_name): Initialize variable only if
1459         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1461 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
1463         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1465 2010-06-30  Richard Guenther  <rguenther@suse.de>
1467         PR target/44722
1468         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1469         against oscillation with reverse peephole2.
1471 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1473         PR target/44721
1474         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1475         Fix last commit.
1477 2010-06-30  Nick Clifton  <nickc@redhat.com>
1479         * config/rx/rx-modes.def: New file.
1480         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1481         (CC_REGNUM): Define.
1482         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1483         register.
1484         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1485         (SELECT_CC_MODE): Define.
1486         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
1487         (reg:CC CC_REG) instead of (cc0).
1488         (attr "cc"): Delete.
1489         (cbranchsi4): Do not split compare and branch here. Instead move
1490         it to...
1491         (cbranchsi4_<code>): ... here.  New patterns.
1492         (cmpsi): Call rx-compare_redundant to find out if it is necessary
1493         to emit the compare instruction.
1494         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1495         cc_status flags.
1496         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1497         FIRST_PSEUDO_REGNUM.
1498         (rx_expand_prologue, rx_expand_epilogue): Likewise.
1499         (rx_notice_update_cc): Delete.
1500         (rx_cc_modes_compatible): New function.
1501         (flags_needed_for_conditional): New function.
1502         (flags_from_mode): New function.
1503         (rx_compare_redundant): New function - scans backwards through
1504         insn list to find out if condition flags are already set correctly.
1505         (TARGET_CC_MODES_COMPATIBLE): Define.
1506         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1508         * config/rx/rx.h (BRANCH_COST): Define.
1509         (REGISTER_MOVE_COST): Define.
1510         * config/rx/predicates (rx_source_operand): Allow all constant types.
1511         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1512         (tstsi4): New pattern.
1513         * config/rx/rx.c (rx_memory_move_cost): Define.
1514         (TARGET_MEMORY_MOVE_COST): Define.
1516 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1518         * tree.h (block_may_fallthru): Declare here.
1519         * tree-flow.h (block_may_fallthru): Do not declare here.
1520         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1521         bitmap.h
1522         * Makefile.in (c-typeck.o): Update dependencies.
1524 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
1526         PR debug/44694
1527         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1528         * cselib.c (cfa_base_preserved_regno): New static variable.
1529         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1530         of REGNO (cfa_base_preserved_val->locs->loc).
1531         (cselib_preserve_cfa_base_value): Add regno argument, set
1532         cfa_base_preserved_regno to it.
1533         (cselib_invalidate_regno): Allow removal of registers other than
1534         cfa_base_preserved_regno from cfa_base_preserved_val.
1535         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1536         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1537         of MEM addresses, if not on LHS.
1538         (reverse_op): Don't add reverse ops for cfa_base_rtx.
1539         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1541 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1543         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1544         static variables.
1545         (peep2_buf_position): New static function.
1546         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1547         peephole2_optimize): Use it.
1548         (peep2_attempt, peep2_update_life): New static functions, broken out
1549         of peephole2_optimize.
1550         (peep2_fill_buffer): New static function.
1551         (peephole2_optimize): Change the main loop to try to fill the buffer
1552         with the maximum number of insns before matching them against
1553         peepholes.  Use a forward scan.  Remove special case for targets with
1554         conditional execution.
1555         * genrecog.c (change_state): Delete dead code.
1556         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1557         Rewrite so as not to expect the second insn to have had a peephole
1558         applied yet.
1560 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1562         * genhooks.c (emit_findices): Cast field precision to int.
1563         (emit_documentation): Likewise.
1565 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
1567         PR tree-optimization/43801
1568         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1569         if old_decl was DECL_ONE_ONLY.
1571         PR debug/44668
1572         * dwarf2out.c (add_accessibility_attribute): New function.
1573         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1574         instead of adding DW_AT_accessibility manually.
1575         (gen_enumeration_type_die, gen_struct_or_union_type_die,
1576         gen_typedef_die): Use it.
1578 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1580         * vmsdbgout.c (full_name): Just output the file name if not native.
1582 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1584         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
1585         (funcnam_table): New static table.
1586         (funcnum_table): New static table.
1587         (write_rtnbeg): Write value saved in funcnum_table.
1588         (write_rtnend): Write value saved in funcnum_table.
1589         (vmsdbgout_begin_function): Save current function info in
1590         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
1591         (vmsdbgout_finish): Iterate over funcnum_table.
1593 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1595         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
1596         (vmsdbgout_type_decl): Declare
1597         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
1598         (FUNC_EPILOGUE_LABEL): New macro
1599         (vmsdbgout_begin_epilogue): New function.
1600         (vmsdbgout_type_decl): New function.
1602 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1604         * vmsdbg.h: Update copyright.
1606 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1608         * vmsdbg.h (DST_K_TBG): New DST constant.
1609         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
1610         (write_modbeg): Cast module_language to avoid warning.
1611         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
1613 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1615         PR other/44034
1616         * target.def, doc/tm.texi.in, genhooks.c: New files.
1617         * target.h: Instead of defining individual hook members,
1618         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
1619         include target.def.
1620         * target-def.h: Instead of defining individual hook initializers,
1621         include target-hooks-def.h.
1622         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
1623         targetm.live_on_entry -> targetm.extra_live_on_entry
1624         targetm.sched.md_finish ->targetm.sched.finish
1625         targetm.sched.md_init -> targetm.sched.init
1626         targetm.sched.md_init_global -> targetm.sched.init_global
1627         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
1628         targetm.asm_out.except_table_label ->
1629           targetm.asm_out.emit_except_table_label
1630         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
1631         targetm.target_help -> targetm.help
1632         targetm.vectorize.builtin_support_vector_misalignment ->
1633           targetm.vectorize.support_vector_misalignment
1634         targetm.file_start_app_off -> targetm.asm_file_start_app_off
1635         targetm.file_start_file_directive ->
1636          targetm.asm_file_start_file_directive
1637         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
1638         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
1639         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
1640         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
1641           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
1642         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
1643           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
1644         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
1645         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
1646         * Makefile.in (TARGET_H): Depend on target.def.
1647         (TARGET_DEF_H): Depend on target-hooks-def.h.
1648         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
1649         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
1650         * doc/tm.texi: Regenerate.
1652         * Makefile.in (s-tm-texi): Remove stray tab / rule.
1654         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
1655         (targetm.sched.init): Likewise.
1657 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1659         PR bootstrap/44713
1660         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
1661         (function_arg_advance_32): Const-ify TYPE parameter.
1662         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
1663         (ix86_function_arg_advance): Change type of NAMED to bool.
1664         (function_arg_32): Const-ify CUM and TYPE parameters.
1665         (function_arg_64): Likewise.  Change type of NAMED to bool.
1666         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
1667         to bool.
1668         (ix86_function_arg): Change type of NAMED to bool.
1669         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
1670         last argument as a bool.
1672 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1674         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
1675         (OVERRIDE_OPTIONS): Add note of obsolescence.
1676         Replace references with references to TARGET_OPTION_OVERRIDE.
1677         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
1678          the macro).
1679         * targhooks.c (default_target_option_override): New function.
1680         * targhooks.h (default_target_option_override): Declare.
1681         * target.h (struct gcc_target): Add override member to
1682         target_option member.
1683         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
1684         targetm.target_option.override call.
1685         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
1686         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
1688 2010-06-29  Jan Hubicka  <jh@suse.cz>
1690         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
1692 2010-06-29  Jan Hubicka  <jh@suse.cz>
1694         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
1695         unreachable.
1696         (rebuild_frequencies): New function.
1697         * predict.h (rebuild_frequencies): Declare.
1698         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
1699         entry block and edge reaching new_entry.
1700         (tree_function_versioning): When doing partial cloning, rebuild
1701         frequencies when done.
1702         * passes.c (execute_function_todo): Use rebild_frequencies.
1704 2010-06-29  Richard Guenther  <rguenther@suse.de>
1706         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
1707         * tree-flow.h (enum noalias_state): Remove.
1708         (struct var_ann_d): Remove noalias_state member.
1710 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1712         PR target/43902
1713         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
1714         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
1715         (maddhidi4): Likewise.
1717         Revert parts of the change for PR25130.
1718         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1719         MEM_ALIAS_SET.
1721 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1723         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
1724         targetm.calls.function_incoming_arg, and
1725         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
1726         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
1727         * target.h (struct gcc_target): Add function_arg_advance,
1728         function_arg, and function_incoming_arg fields.
1729         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
1730         (TARGET_FUNCTION_INCOMING_ARG): Define.
1731         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
1732         and TARGET_FUNCTION_INCOMING_ARG.
1733         * targhooks.h (default_function_arg_advance): Declare.
1734         (default_function_arg, default_function_incoming_arg): Declare.
1735         * targhooks.c (default_function_arg_advance): New function.
1736         (default_function_arg, default_function_incoming_arg): New function.
1737         * config/i386/i386.c (function_arg_advance): Rename to...
1738         (ix86_function_arg_advance): ...this.  Make static.
1739         (function_arg): Rename to...
1740         (ix86_function_arg): ...this.  Make static.
1741         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1742         (TARGET_FUNCTION_ARG): Define.
1743         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
1744         (FUNCTION_ARG): Delete.
1745         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
1746         (function_arg): Delete prototype.
1748 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1750         * reginfo.c (init_reg_sets_1): Adjust comments.
1751         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
1752         * calls.c (prepare_call_address): Likewise.
1753         (emit_call_1): Use targetm.calls.return_pops_args.
1754         (expand_call): Likewise.
1755         * function.c (assign_parms): Likewise.
1756         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
1757         * target.h (struct gcc_target) [struct calls]: Add
1758         return_pops_args field.
1759         * targhooks.h (default_return_pops_args): Declare.
1760         * targhooks.c (default_return_pops_args): Define.
1761         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
1762         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
1763         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
1764         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
1765         documentation.
1766         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
1767         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
1768         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
1769         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
1770         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
1771         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
1772         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
1773         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
1774         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
1775         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
1776         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
1777         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
1778         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
1779         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
1780         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
1781         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
1782         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
1783         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
1784         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
1785         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
1786         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
1787         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
1788         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
1789         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
1790         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
1791         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
1792         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
1793         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
1794         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
1795         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
1796         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
1797         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
1798         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
1799         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
1800         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
1801         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
1802         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
1803         * config/i386/i386.c (ix86_return_pops_args): Make static.
1804         Constify arguments.
1805         (TARGET_RETURN_POPS_ARGS): Define.
1806         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
1807         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
1808         (TARGET_RETURN_POPS_ARGS): Define.
1809         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1810         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
1811         (TARGET_RETURN_POPS_ARGS): Define.
1813 2010-06-29  Richard Guenther  <rguenther@suse.de>
1815         PR middle-end/44667
1816         * tree-inline.c (initialize_inlined_parameters): Make sure
1817         to remap the inlined parameter variable substitutions types.
1819 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1821         PR rtl-optimization/44659
1822         * combine.c (make_compound_operation) <SUBREG>: Do not return the
1823         result of force_to_mode if it partially re-expanded the compound.
1825 2010-06-28  Jan Hubicka  <jh@suse.cz>
1827         PR middle-end/44671
1828         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1829         RESULT_DECL.
1831 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
1833         * double-int.h (force_fit_type_double): Remove declaration.
1834         * double-int.c (force_fit_type_double): Move to tree.c.
1835         * tree.h (force_fit_type_double): Declare.
1836         * tree.h (force_fit_type_double): Moved from double-int.c. Use
1837         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1838         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1839         * convert.c (convert_to_pointer): Adjust call to
1840         force_fit_type_double.
1841         * tree-vrp.c (extract_range_from_assert,
1842         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1843         * fold-const.c: Update comment.
1844         (int_const_binop, fold_convert_const_int_from_int,
1845         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1846         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1847         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1848         round_up_loc): Adjust call to force_fit_type_double.
1850 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1852         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1854 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1856         * tree-sra.c (convert_callers): New parameter, change fndecls of
1857         recursive calls.
1858         (modify_function): Pass the old decl to convert_callers.
1860 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1862         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1863         ipa_check_create_node_params and ipa_initialize_node_params with
1864         checking asserts they are not necessary.
1866 2010-06-28  Jan Hubicka  <jh@suse.cz>
1868         PR tree-optimization/44687
1869         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1871 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1873         PR c++/44535
1874         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
1875         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
1876         instead of BINFO_BASE_BINFO.
1878 2010-06-28  Michael Matz  <matz@suse.de>
1880         PR middle-end/44592
1881         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
1882         proper VDEF chain for intermediate stores in the sequence.
1884 2010-06-28  Jan Hubicka  <jh@suse.cz>
1886         PR tree-optimization/44357
1887         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
1888         uninlinable functions.
1890 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1892         * config.gcc (powerpc*-*-*): Handle titan.
1893         * config/rs6000/rs6000.c (titan_cost): New costs.
1894         (rs6000_override_options): Add "titan" to processor_target_table.
1895         Add Titan to branch alignment logic.
1896         Correctly set rs6000_cost for titan.
1897         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
1898         * config/rs6000/titan.md: New file.
1899         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
1901 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1903         * tree-browser.c (TB_history_stack): Convert to a VEC.
1904         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
1905         (TB_history_prev): Likewise.
1907 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1909         * vec.h (vec_heap_free): Add parentheses around free.
1911 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1913         * system.h: Poison GCC_EXCEPT_H for front-end files.
1915         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
1916         langhook.
1917         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
1918         Define to NULL by default.
1919         * except.h: Define GCC_EXCEPT_H.
1920         (doing_eh): Remove prototype.
1921         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
1922         (lang_protect_cleanup_actions): Remove.
1923         * except.c (lang_protect_cleanup_actions): Remove.
1924         (doing_eh): Remove.
1925         (gen_eh_region): Don't check doing_eh here.
1926         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
1927         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
1928         instead of lang_protect_cleanup_actions.
1929         * omp-low.c (maybe_catch_exception): Likewise.
1930         * Makefile.in: Update dependencies.
1932 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
1934         * cgraph.h (struct varpool_node): new used_from_object_file flag.
1935         (struct cgraph_local_info): new used_from_object_file flag.
1936         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
1937         (cgraph_clone_node): initialize used_from_object_file.
1938         (cgraph_create_virtual_clone): initialize used_from_object_file.
1939         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
1940         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
1941         when compiling with -fwhole-program.
1942         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
1943         internal resolver.
1944         * ipa.c (function_and_variable_visibility): Set externally_visible
1945         flag of varpool_node if used_from_object_file flag is set.
1946         (cgraph_externally_visible_p): check used_from_object_file flag.
1947         * doc/invoke.texi (-fwhole-program option): Change description of
1948         externally_visible attribute accordingly.
1949         * doc/extend.texi (externally_visible): Ditto.
1951 2010-06-27  Jan Hubicka  <jh@suse.cz>
1953         * params.def (max-inline-insns-auto): Default to 40.
1954         * doc/invoke.texi (max-inline-insns-auto): Document the change.
1956 2010-06-27  Jan Hubicka  <jh@suse.cz>
1958         PR middle-end/44671
1959         PR middle-end/44686
1960         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
1961         signature change.
1962         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
1963         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1965 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
1967         * target.h (struct gcc_target): Add register_move_cost field.
1968         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
1969         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
1970         * targhooks.c (default_register_move_cost): New function.
1971         * targhooks.h (default_register_move_cost): Declare function.
1972         * defaults.h (REGISTER_MOVE_COST): Delete.
1973         * ira-int.h (ira_register_move_cost): Update comment.
1974         * ira.c: (ira_register_move_cost): Update comment.
1975         * reload.h (register_move_cost): Declare.
1976         * reginfo.c (register_move_cost): New function.
1977         (move_cost): Update comment.
1978         (init_move_cost, memory_move_secondary_cost): Replace
1979         REGISTER_MOVE_COST with register_move_cost.
1980         * postreload.c (reload_cse_simplify_set): (Ditto.).
1981         * reload.c (find_valid_class, find_reloads): (Ditto.).
1982         * reload1.c (choose_reload_regs): (Ditto.).
1983         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
1984         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
1985         * doc/md.texi (can_create_pseudo_p): Update documentation.
1987         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1988         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1989         * config/i386/i386.h (ix86_memory_move_cost): Make static.
1990         (TARGET_MEMORY_MOVE_COST): Define.
1992         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1993         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
1994         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
1995         (TARGET_MEMORY_MOVE_COST): Define.
1997 2010-06-27  Richard Guenther  <rguenther@suse.de>
1999         PR tree-optimization/44683
2000         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2001         false edge from the inverted condition.
2003 2010-06-27  Richard Guenther  <rguenther@suse.de>
2005         PR middle-end/44684
2006         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2007         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2008         for register LHS.  Or non-store assignments.
2010 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2012         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2013         (sparc_emit_set_const64): Likewise.  Remove disabled code.
2014         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2015         (sparc_emit_set_const64): Likewise.
2017 2010-06-26  Catherine Moore  <clm@codesourcery.com>
2019         * config/mips/mips.md (alu_type): New attribute.
2020         (type): Infer type from alu_type.
2021         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2022         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2023         *subsi3_extended, negsi2, negdi2, *low<mode>,
2024         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2025         xor<mode>3, *nor<mode>3,
2026         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2027         *zero_extendhi_truncqi):  Set alu_type instead of type.
2029 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
2031         * config/alpha/alpha.c (alpha_need_linkage): Adjust
2032         splay_tree_new_ggc call.
2033         (alpha_use_linkage): Likewise.
2035 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2037         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2038         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2039         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2040         (static_specs): Remove switches_need_spaces.
2041         (process_command, do_self_spec): Hardcode handling "-o" instead of
2042         checking switches_need_spaces.
2043         * system.h (SWITCHES_NEED_SPACES): Poison.
2045 2010-06-26  Richard Guenther  <rguenther@suse.de>
2047         PR tree-optimization/44393
2048         * tree-loop-distribution.c (generate_loops_for_partition): Fix
2049         stmt removal and VOP renaming.
2050         (generate_memset_zero): Remove redundant stmt updating.
2051         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2052         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2054 2010-06-26  Jan Hubicka  <jh@suse.cz>
2056         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2057         edges comming from header are equivalent.
2058         (visit_bb): Handle PHIs correctly.
2059         * tree-inline.c (copy_phis_for_bb): Be able to copy
2060         PHI from entry edge.
2061         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2063 2010-06-26  Richard Guenther  <rguenther@suse.de>
2065         PR middle-end/44674
2066         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2067         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
2069 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2071         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2072         add_infile, alloc_switch): New.
2073         (process_command): Remove variable lang_n_infiles.  Process
2074         options in a single pass.  Use new functions for allocating
2075         infiles and switches arrays.  Properly skip operands of
2076         -Xpreprocessor and -Xassembler.
2078 2010-06-26  Jan Hubicka  <jh@suse.cz>
2080         PR middle-end/44671
2081         * cgraphunit.c (cgraph_function_versioning): Remove wrong
2082         cgraph_make_decl_local call; fix typo copying RTL data.
2084 2010-06-25  DJ Delorie  <dj@redhat.com>
2086         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2087         (m32c_output_aligned_common): Likewise.
2088         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2089         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2090         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2091         (m32c_register_pragmas): Register it.
2092         * config/m32c/m32c.c (m32c_get_pragma_address): New.
2093         (m32c_insert_attributes): Set #pragma address decls volatile.
2094         (pragma_entry_eq): New.
2095         (pragma_entry_hash): New.
2096         (m32c_note_pragma_address): New.
2097         (m32c_get_pragma_address): New.
2098         (m32c_output_aligned_common): New.
2099         * doc/extend.texi: Document the new pragma.
2101         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2102         also.
2103         * config/m32c/predicates.md (m32c_any_operand): Check the code
2104         instead of memory_operand so as to allow matching volatile MEMs.
2105         (m32c_nonimmediate_operand): Likewise.
2106         (mra_operand): Allow volatiles.
2108 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
2110         PR debug/44610
2111         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2112         address if the offset is unknown.
2114 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
2116         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2117         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2118         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2119         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2120         to ia64_start_function. Invoke it.
2121         * config/ia64/ia64.c (ia64_start_function): Call new function
2122         dwarf2out_vms_debug_main_pointer.
2124 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2126         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2127         statements computing the true predicate.
2129 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2131         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2132         to boolean_true_node.
2133         (reset_bb_predicate): New.
2134         (predicate_bbs): Call reset_bb_predicate.
2136 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2138         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2139         (tree_if_conversion): Returns true when something has been changed.
2140         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2141         changed something.
2143 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2145         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2146         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2147         * tree-if-conv.c: Include dbgcnt.h.
2148         (tree_if_conversion): Use if_conversion_tree to count the number of
2149         if-convertible loops.
2151 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
2153         * common.opt (fprefetch-loop-arrays): Re-define
2154         -fprefetch-loop-arrays as a tri-state option with the initial
2155         value of -1.
2156         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2157         pass only when flag_prefetch_loop_arrays > 0.
2158         * toplev.c (process_options): Note that, with tri-states,
2159         flag_prefetch_loop_arrays>0 means prefetching is enabled.
2160         * config/i386/i386.c (override_options): Enable prefetching at -O3
2161         for a set of CPUs that sw prefetching is helpful.
2162         (software_prefetching_beneficial_p): New.  Return TRUE if software
2163         prefetching is beneficial for the given CPU.
2165 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2167         PR rtl-optimization/44326
2168         * implicit-zee.c (find_removable_zero_extends): Replace
2169         INSN_P with NONDEBUG_INSN_P.
2171 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2173         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2174         (struct ipa_node_params): Removed the modification_analysis_done flag.
2175         (ipa_is_param_modified): Removed.
2176         (ipa_analyze_node): Declare.
2177         (ipa_compute_jump_functions): Remove declaration.
2178         (ipa_count_arguments): Likewise.
2179         (ipa_detect_param_modifications): Likewise.
2180         (ipa_analyze_params_uses): Likewise.
2181         * ipa-prop.c (struct param_analysis_info): New type.
2182         (visit_store_addr_for_mod_analysis): Removed.
2183         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2184         moved down in the file.
2185         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2186         (ipa_count_arguments): Made static.
2187         (mark_modified): New function.
2188         (is_parm_modified_before_call): New function.
2189         (compute_pass_through_member_ptrs): New parameter parms_info, call
2190         is_parm_modified_before_call instead of ipa_is_param_modified.
2191         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2192         it to compute_pass_through_member_ptrs.
2193         (ipa_compute_jump_functions): New parameter parms_info, pass it to
2194         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
2195         on the callee if it is analyzed.  Made static.
2196         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2197         is_parm_modified_before_call instead of ipa_is_param_modified.
2198         (ipa_analyze_call_uses): New parameter parms_info, pass it to
2199         ipa_analyze_indirect_call_uses.
2200         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2201         ipa_analyze_call_uses.
2202         (ipa_analyze_params_uses): New parameter parms_info, pass it to
2203         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
2204         (ipa_analyze_node): New function.
2205         (ipa_print_node_params): Do not dump the modified flag.
2206         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2207         it.  Do not stream the modified parameter flag.
2208         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2209         it.  Do not stream the modified parameter flag.
2210         * ipa-cp.c (ipcp_analyze_node): Removed.
2211         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2212         with only a call to ipa_analyze_node.
2213         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2214         node with only a call to ipa_analyze_node.
2216 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2218         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2220 2010-06-25  Jan Hubicka  <jh@suse.cz>
2222         * tree-pass.h (pass_split_functions): Declare.
2223         * opts.c (decode_options): Enable function splitting at -O2
2224         * timevar.def (TV_IPA_FNSPLIT): New macro.
2225         * ipa-split.c: New file.
2226         * common.opt (-fpartial-inlining): New flag.
2227         * Makefile.in (ipa-split.o): New object file.
2228         * passes.c (init_optimization_passes): Add ipa-split.
2229         * params.def (partial-inlining-entry-probability): New parameters.
2230         * doc/invoke.texi (-fpartial-inlining): New.
2232 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2234         PR 44665
2235         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2236         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2237         (gimplify_expr): Likewise.
2239 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2241         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2242         statements instead of bailing out on them.
2243         (ipa_analyze_indirect_call_uses): Do not require that loads from the
2244         parameter are in the same BB as the condition.  Update comments.
2246 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
2248         PR middle-end/43866
2249         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2250         true or always false, return NULL_TREE.
2251         (tree_unswitch_single_loop): Optimize conditions even when reaching
2252         max-unswitch-level parameter.  If num > 0, optimize first all conditions
2253         using entry checks, then do still reachable block discovery and consider
2254         only conditions in still reachable basic blocks in the loop.
2256         PR tree-optimization/44539
2257         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2258         the call doesn't have LHS, but has VDEF.
2260 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2262         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2263         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2264         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2265         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2266         * system.h (MODIFY_TARGET_NAME): Poison.
2268 2010-06-25  Alan Modra  <amodra@gmail.com>
2270         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2271         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2272         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2273         CMODEL_LARGE as default.
2274         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2275         (offsettable_ok_by_alignment): Delete.
2276         (rs6000_emit_move): Remove mcmodel=medium optimization.
2278 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2280         With large parts from Jim Wilson:
2281         PR target/43902
2282         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2283         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2284         * optabs.c (optab_for_tree_code): Likewise.
2285         (expand_widen_pattern_expr): Likewise.
2286         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2287         out of execute_optimize_widening_mul.
2288         (convert_plusminus_to_widen): New function.
2289         (execute_optimize_widening_mul): Use the two new functions.
2290         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2291         Remove code to generate widening multiply-accumulate.  Add support
2292         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2293         * gimple-pretty-print.c (dump_ternary_rhs): New function.
2294         (dump_gimple_assign): Call it when appropriate.
2295         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2296         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2297         (expand_gimple_stmt_1): Likewise.
2298         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2299         WIDEN_MULT_MINUS_EXPR.
2300         * tree-ssa-operands.c (get_expr_operands): Likewise.
2301         * tree-inline.c (estimate_operator_cost): Likewise.
2302         * gimple.c (extract_ops_from_tree_1): Renamed from
2303         extract_ops_from_tree.  Add new arg for a third operand; fill it.
2304         (gimple_build_assign_stat): Support operations with three operands.
2305         (gimple_build_assign_with_ops_stat): Likewise.
2306         (gimple_assign_set_rhs_from_tree): Likewise.
2307         (gimple_assign_set_rhs_with_ops_1): Renamed from
2308         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
2309         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2310         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2311         WIDEN_MULT_MINUS_EXPR.
2312         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2313         (extract_ops_from_tree_1): Adjust declaration.
2314         (gimple_assign_set_rhs_with_ops_1): Likewise.
2315         (gimple_build_assign_with_ops): Pass NULL for last operand.
2316         (gimple_build_assign_with_ops3): New macro.
2317         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2318         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2319         functions.
2320         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2321         (verify_gimple_assign): Call it.
2322         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2323         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2324         functions for dealing with three-operand statements.
2325         * tree.c (commutative_ternary_tree_code): New function.
2326         * tree.h (commutative_ternary_tree_code): Declare it.
2327         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2328         ternary statements.
2329         (gimple_assign_nonzero_warnv_p): Likewise.
2330         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2331         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2332         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
2333         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2334         (struct hashtable_expr): New member ternary in the union.
2335         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2336         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
2337         (iterative_hash_hashable_expr): Likewise.
2338         (print_expr_hash_elt): Handle EXPR_TERNARY.
2339         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2340         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2341         statements.  Handle GIMPLE_TERNARY_RHS.
2343 2010-06-25  Jan Hubicka  <jh@suse.cz>
2345         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2347 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
2349         PR c/44517
2350         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2351         parameters are not good.
2352         (c_parser_parameter_declaration): Error unknown type name if the type
2353         name can't start declaration specifiers.
2355 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2357         * gcc.c (translate_options): Don't mention +e in comment.
2358         (process_command): Don't handle +e specially.
2360 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2362         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2364         * ira-build.c (merge_hard_reg_conflicts): New function.
2365         (create_cap_allocno, copy_info_to_removed_store_destinations,
2366         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2367         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2368         (remove_unnecessary_allocnos, remove_low_level_allocnos)
2369         copy_nifo_to_removed_store_destination): Use them.
2370         * ira-lives.c (make_hard_regno_born): New function, split out of
2371         make_regno_born.
2372         (make_allocno_born): Likewise.
2373         (make_hard_regno_dead): New function, split out of make_regno_dead.
2374         (make_allocno_dead): Likewise.
2375         (inc_register_pressure): New function, split out of set_allocno_live.
2376         (dec_register_pressure): New function, split out of clear_allocno_live.
2377         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2378         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
2379         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2380         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
2381         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2382         mark_pseudo_regno_live.
2383         (process_bb_node_lives): Use mark_pseudo_regno_live,
2384         make_hard_regno_born and make_allocno_dead.
2385         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2386         set_allocno_live, clear_allocno_live): Delete functions.
2388         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2389         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2390         functions.
2391         (ira_flattening): Use ira_parent_allocno.
2392         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2393         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2395         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2396         statement.
2398         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2399         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2400         minmax_set_iter_cond, minmax_set_iter_next,
2401         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2402         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2403         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2404         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
2405         uses changed.
2407         * ira-int.h (struct live_range, live_range_t): Renamed from struct
2408         ira_allocno_live_range and allocno_live_range_t; all uses changed.
2409         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2410         All uses changed.
2412 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
2414         * thumb2.md (thumb2_tlobits_cbranch): Delete.
2415         (peephole2 to convert zero_extract/compare of single bit to
2416          lshift/compare): New.
2418 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
2420         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2421         recursive call and call to 'int_const_binop'.
2422         (build_range_check, fold_cond_expr_with_comparison, unextend,
2423         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2424         multiple_of_p): Adjust call to const_binop.
2426 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
2428         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2429         determine size of XFmode operand.
2430         (XFmode extended DFmode push splitter): Ditto.
2431         (XFmode extended SFmode push splitter): Ditto.
2433 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2435         PR target/44588
2436         * config/i386/i386.md (extract_code): New.
2437         (<u>divmodqi4): Likewise.
2438         (divmodhiqi3): Likewise.
2439         (udivmodhiqi3): Likewise.
2440         (<u>divqi3): Remvoved.
2442 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
2444         PR middle-end/44492
2445         * recog.h (struct recog_data): Add is_asm field.
2446         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2447         present in constraints of inline-asm operand and memory operand
2448         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2449         (extract_insn): Initialize recog_data.is_asm.
2450         * doc/md.texi (Constraints): Document operand side-effect rules.
2452 2010-06-24  Andi Kleen  <ak@linux.intel.com>
2454         * c-parser.c (c_parser_conditional_expression): Call
2455         warn_for_omitted_condop.
2456         * doc/invoke.texi: Document omitted condop warning.
2458 2010-06-24  Nick Clifton<nickc@redhat.com>
2460         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2461         insn in the sequence is a jump insn before setting its label.
2463 2010-06-24  Alan Modra  <amodra@gmail.com>
2465         * collect2.c (main): Match exactly --version and --help.
2467 2010-06-24  DJ Delorie  <dj@redhat.com>
2469         * config/m32c/m32c-pragma.c: Don't include rtl.h.
2471 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
2473         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2474         using X87MODEF mode iterator.
2475         (pushsf splitter): Macroize splitter using P mode iterator.
2476         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2477         mode iterator.
2479         (*movxf_internal): Rename from *movxf_integer.
2480         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2481         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2482         (*movdf_internal): Rename from *movdf_integer.
2483         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2484         (*movsf_internal): Rename from *movdf_1.
2486 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
2488         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2489         (const_gimple_seq_node): Removed typedefs.
2491         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2492         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2494 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2496         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2497         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2498         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2499         and CODE_FOR_vec_extract_lo_v4df.
2501         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2502         Changed to define_insn_and_split.
2503         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2504         (vec_extract_lo_v16hi): Likewise.
2505         (vec_extract_lo_v32qi): Likewise.
2506         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2507         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2509 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
2511         PR target/44640
2512         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2513         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2514         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2515         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2516         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2518         PR target/44640
2519         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2521         PR other/44644
2522         * df-core.c (struct df): Rename to df_d.
2523         * df.h (struct df): Likewise.
2524         * dse.h (struct df): Remove forward declaration.
2525         * recog.h (struct insn_data): Rename to:
2526         (struct_insn_data_d).  Adjusted all users.
2528 2010-06-23  Arnaud Charlet  <charlet@adacore.com
2530         PR ada/22220
2531         * doc/install.texi: Update requirements to build GNAT.
2533 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2535         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2536         enum type.
2537         (m68k_sched_attr_opx_type): Remove unreachable return.
2538         (m68k_sched_attr_opy_type): Likewise.
2539         (m68k_sched_attr_size): Likewise.
2540         (sched_get_opxy_mem_type): Likewise.
2541         (m68k_sched_attr_op_mem): Likewise.
2543 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2545         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2546         new statement and adjust VDEF only if necessary.  Remove superfluous
2547         call to maybe_clean_or_replace_eh_stmt.
2548         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2549         copy the flags.
2550         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2551         * tree-inline.c (copy_bb): ...and not there.
2553 2010-06-22  Cary Coutant  <ccoutant@google.com>
2555         * dwarf2out.c (is_nested_in_subprogram): New function.
2556         (should_move_die_to_comdat): Use it.
2557         (copy_ancestor_tree): Don't mark DIEs here.
2558         (copy_decls_walk): Start walk from root of newly-added tree;
2559         mark DIEs here instead.
2561 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2563         * config/i386/i386.md (unit): Also check sseishft1.
2565 2010-06-22  Jan Hubicka  <jh@suse.cz>
2567         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2568         enabled.
2570 2010-06-22  Jan Hubicka  <jh@suse.cz>
2572         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2573         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2574         Return true if something changed.
2575         * df.h (df_confluence_function_n): Return bool.
2576         * df-core.c (df_worklist_propagate_forward,
2577         df_worklist_propagate_backward): Track changes and ages.
2578         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
2579         track ages.
2580         * dse.c (dse_confluence_n): Return always true.
2582 2010-06-22  Jan Hubicka  <jh@suse.cz>
2584         * bitmap.c (bitmap_clear_bit): Micro optimize.
2586 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
2588         * config/i386/i386.md (SWI1248x): New mode iterator.
2589         (SWI48x): Ditto.
2590         (SWI12): Ditto.
2591         (SWI24): Ditto.
2593         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
2594         SWI1248x mode iterator.
2595         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
2596         using SWI124 mode iterator.
2597         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
2598         mode iterator.
2599         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
2600         *pushdi2_prologue_rex64 using P mode iterator.
2601         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
2602         using SWI48 mode iterator.
2603         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
2604         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
2605         using SWI1248x mode iterator.
2606         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
2607         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
2608         SWI48 mode iterator.
2609         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
2610         iterator.
2611         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
2612         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
2613         SWI12 mode iterator.
2614         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
2615         SWI12 mode iterator.
2616         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
2617         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
2618         SWI24 mode iterator.
2619         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
2620         SWI48 mode iterator.
2621         (mov<mode>_insn_1): New expander.
2622         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
2623         using SWI48x mode iterator.
2625         (*movoi_internal_avx): Rename from *movoi_internal.
2626         (*movti_internal_rex64): Rename from *movti_rex64.
2627         (*movti_internal_sse): Rename from *movti_sse.
2628         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
2629         (*movdi_internal): Rename from *movdi_2.
2630         (*movsi_internal): Rename from *movsi_1.
2631         (*movhi_internal): Rename from *movhi_1.
2632         (*movqi_internal): Rename from *movqi_1.
2634         (insv): Update the call to gen_movsi_insv_1 for rename.
2635         * config/i386/i386.c (promote_duplicated_reg): Ditto.
2637 2010-06-22  Jan Hubicka  <jh@suse.cz>
2639         * passes.c (execute_function_todo): Move call of statistics_fini_pass
2640         to ...
2641         (execute_todo) ... this one.
2643 2010-06-22  Alan Modra  <amodra@gmail.com>
2645         PR target/44364
2646         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2647         * caller-save.c (insert_restore, insert_save): Use non-validate
2648         form of adjust_address.
2650 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2652         PR target/39690
2653         * config/pa/pa.c (override_options): Disable
2654         -freorder-blocks-and-partition.
2656 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2658         PR target/44615
2659         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
2661         * config/i386/i386.md (type): Add sseishft1
2663         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
2664         (ppro_insn_load): Likewise.
2665         (ppro_insn_store): Likewise.
2666         (ppro_insn_both): Likewise.
2668         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
2669         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
2670         for type.
2671         (*vec_extractv2di_1_avx): Likewise.
2672         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
2673         type.  Remove atom_unit.
2674         (*vec_extractv2di_1_sse2): Likewise.
2676 2010-06-21  DJ Delorie  <dj@redhat.com>
2678         * diagnostic.h (diagnostic_classification_change_t): New.
2679         (diagnostic_context): Add history and push/pop list.
2680         (diagnostic_push_diagnostics): Declare.
2681         (diagnostic_pop_diagnostics): Declare.
2682         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
2683         from pragmas in a history chain instead of the global table.
2684         (diagnostic_push_diagnostics): New.
2685         (diagnostic_pop_diagnostics): New.
2686         (diagnostic_report_diagnostic): Scan history chain to find state
2687         of diagnostics as of the diagnostic location.
2688         * opts.c (set_option): Pass UNKNOWN_LOCATION to
2689         diagnostic_classify_diagnostic.
2690         (enable_warning_as_error): Likewise.
2691         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
2692         use in the history chain.
2693         * doc/extend.texi: Document pragma GCC diagnostic changes.
2695 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
2697         * dwarf2out.c (add_linkage_name): New function.  Don't add
2698         anything to DW_TAG_member DIEs.
2699         (add_name_and_src_coords_attributes): Use it.
2700         (gen_variable_die): Call it for C++ static data members if
2701         specification is DW_TAG_member.
2703         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
2704         C++ char16_t and char32_t.
2706         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
2707         * genattrtab.c: Include vecprim.h.
2708         (cached_attrs, cached_attr_count, attrs_seen_once,
2709         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
2710         attrs_cached_after): New variables.
2711         (find_attrs_to_cache): New function.
2712         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
2713         (write_test_expr): Add attrs_cached argument, return it too,
2714         attempt to cache non-const attributes used more than once in
2715         a single case handling.
2716         (write_attr_get): Use find_attrs_to_cache, for caching candidates
2717         emit cached_* variables.  Adjust write_attr_set callers.
2718         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
2719         to find attributes that should be cached in this block.  Adjust
2720         write_test_expr callers.
2721         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
2722         callers.
2723         (make_automaton_attrs): Adjust write_test_expr caller.
2725         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
2726         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
2727         (make_automaton_attrs): If find_tune_attr returns non-NULL,
2728         write separate internal_dfa_insn_code_* and insn_default_latency_*
2729         functions for each attribute's value and emit init_sched_attrs
2730         function and function pointers.
2731         * genattr.c (const_attrs, reservations): New variables.
2732         (gen_attr): Add const attributes to const_attrs vector.
2733         (check_tune_attr, find_tune_attr): New functions.
2734         (main): Add reservations to reservations vector.  If find_tune_attr
2735         returns true, add prototype for init_sched_attrs and make
2736         internal_dfa_insn_code and insn_default_latency function pointers,
2737         otherwise define init_sched_attrs as dummy macro.
2738         * cfgexpand.c: Include insn-attr.h.
2739         (gimple_expand_cfg): Call init_sched_attrs.
2741         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
2743         PR target/44575
2744         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
2745         va_arg from a set of register save slots into a temporary,
2746         if the container is bigger than type size, do the copying
2747         using smaller mode or using memcpy.
2749         PR bootstrap/44426
2750         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
2751         prototype.
2752         (sel_print_to_dot): Remove macro.
2753         (sel_print): Likewise.  New prototype.
2754         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
2755         (sel_print): New function.
2757 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2759         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
2760         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
2762 2010-06-21  Nick Clifton  <nickc@redhat.com>
2764         * config/rx/rx.h (PTRDIFF_TYPE): Define.
2765         (SMALL_REGISTER_CLASS): Define (to zero).
2766         (PRINT_OPERAND): Delete.
2767         (PRINT_OPERAND_ADDRESS): Delete.
2768         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
2769         (rx_print_operand_address): Delete prototype.
2770         * config/rx/rx.c (rx_print_operand): Make static.
2771         Allow %H and %L to handle CONST_DOUBLEs.
2772         (rx_print_operand_address): Make static.
2773         (rx_gen_move_template): Rename local variable 'template' to
2774         out_template.
2775         (rx_function_arg): Do not pass unknown sized objects in registers.
2776         (TARGET_PRINT_OPERAND): Define.
2777         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2779 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2781         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
2783 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
2785         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
2786         stack-alignment for simple leaf-functions.
2788 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2790         * doc/install.texi: Document bootstrap-lto.
2792 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2794         PR debug/44248
2795         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
2796         (input_function): Drop them here, if VTA is disabled.
2798 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
2800         PR target/44546
2801         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
2802         New predicate.
2803         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2804         ix86_swapped_fp_comparsion_operator instead of
2805         ix86_fp_comparison_operator.
2807         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2808         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2809         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2810         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2811         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2812         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2814 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
2816         PR other/32998
2817         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2818         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2819         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2820         (decode_cmdline_option): Update for this return value.  Set
2821         orig_option_with_args_text field.  Set arg field for unknown
2822         options.  Make static.
2823         (decode_cmdline_options_to_array): New.
2824         (prune_options): Update handling of find_opt return value.
2825         * opts.c (read_cmdline_option): Take decoded option.  Return void.
2826         (read_cmdline_options): Take decoded options.
2827         (decode_options): Add parameters for decoded options.  Use
2828         decode_cmdline_options_to_array.  Use decoded options for -O
2829         scan.  Use integral_argument for -O parameters.  Update call to
2830         read_cmdline_options.
2831         (enable_warning_as_error): Update handling of find_opt return value.
2832         * opts.h: Update comment on unknown options.
2833         (struct cl_decoded_option): Update comments on opt_index and arg.
2834         Add orig_option_with_args_text.
2835         (decode_cmdline_option): Remove.
2836         (decode_cmdline_options_to_array): Declare.
2837         (decode_options): Update prototype.
2838         * toplev.c (save_argv): Remove.
2839         (save_decoded_options, save_decoded_options_count): New.
2840         (read_integral_parameter): Remove.
2841         (print_switch_values): Use decoded options.
2842         (toplev_main): Don't set save_argv.  Update call to decode_options.
2843         * toplev.h (read_integral_parameter): Remove.
2844         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2846 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
2848         PR target/44072
2849         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2850         immediate.
2851         * constraints.md (Pw, Px): New constraints.
2852         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2854 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2856         * config/i386/sse.md (fma4modesuffixf4): Removed.
2857         (ssemodesuffixf2s): Likewise.
2858         (ssemodesuffixf4): Likewise.
2859         (ssemodesuffixf2c): Likewise.
2860         (ssescalarmodesuffix2s): Likewise.
2861         (avxmodesuffixf2c): Likewise.
2862         (ssemodesuffix): New.
2863         (ssescalarmodesuffix): Likewise.
2864         Update patterns with ssemodesuffix and ssescalarmodesuffix.
2866 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
2868         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2870 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2872         * stor-layout.c (debug_rli): Remove unused local variables.
2874 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2876         PR rtl-optimization/40900
2877         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
2878         original expression for later reuse.
2879         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
2880         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
2882 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
2884         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
2885         double_int_fits_in_uhwi_p): Implement as static inline.
2886         (double_int_xor): New inline function.
2887         (double_int_lrotate, double_int_rrotate, double_int_max,
2888         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2889         double_int_smin): Declare.
2890         (lrotate_double, rrotate_double): Remove declaration.
2891         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
2892         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
2893         (double_int_lrotate, double_int_rrotate, double_int_max,
2894         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2895         double_int_smin): New function.
2896         * fold-const.c (int_const_binop): Clean up, use double_int_*
2897         functions.
2898         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
2899         double_int_* and immed_double_int_const functions.
2901 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2903         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
2904         * function.c (types_used_by_cur_var_decl): Likewise.
2905         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
2907 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2909         * tree.h (record_layout_info): Change type of pending_statics field
2910         to a VEC.
2911         * stor-layout.c (start_record_layout): Store NULL into
2912         pending_statics.
2913         (debug_rli): Call debug_vec_tree instead of debug_tree.
2914         (place_field): Likewise.
2915         (finish_record_layout): Likewise.
2917 2010-06-18  Alan Modra  <amodra@gmail.com>
2919         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
2921 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2923         PR target/43740
2924         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
2925         for SET source operand from SET destination operand.
2927 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
2929         PR rtl-optimization/39871
2930         * reload1.c (init_eliminable_invariants): For flag_pic, disable
2931         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
2932         (function_invariant_p): Rule out a plus of frame or arg pointer with
2933         a SYMBOL_REF.
2934         * ira.c (find_reg_equiv_invariant_const): Likewise.
2936 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
2938         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
2939         print_operand_address and puts to output the operand for CONST.
2941 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
2943         PR debug/44572
2944         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
2945         hook.
2947 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2949         * v850-protos.h (print_operand): Delete.
2950         (print_operand_address): Delete.
2951         * v850.h (PRINT_OPERAND): Delete.
2952         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2953         (PRINT_OPERAND_ADDRESS): Delete.
2954         * v850.c (print_operand_address): Rename to...
2955         (v850_print_operand_address): ...this.  Make static. Call
2956         v850_print_operand.
2957         (print_operand): Rename to...
2958         (v850_print_operand): ...this.  Make static.  Call
2959         v850_print_operand_address.
2960         (v850_print_operand_punct_valid_p): New function.
2961         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2962         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2964 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2966         * config/sh/sh-protos.h (print_operand): Delete.
2967         (print_operand_address): Delete.
2968         * config/sh/sh.h (PRINT_OPERAND): Delete.
2969         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2970         (PRINT_OPERAND_ADDRESS): Delete.
2971         * config/sh/sh.c (sh_print_operand_address): Make static.
2972         (sh_print_operand): Make static.  Call sh_print_operand_address
2973         and sh_print_operand.
2974         (sh_print_operand_punct_valid_p): New function.
2975         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2976         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2978 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2980         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
2981         (mcore_print_operand_address): Delete.
2982         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
2983         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2984         (PRINT_OPERAND_ADDRESS): Delete.
2985         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
2986         (mcore_print_operand): Make static.
2987         (mcore_print_operand_punct_valid_p): New function.
2988         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
2989         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2991 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2993         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
2994         (print_operand_address): Delete.
2995         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
2996         (PRINT_OPERAND_ADDRESS): Delete.
2997         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
2998         static.
2999         (m68hc11_print_operand): Make static.
3000         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3002 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3004         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3005         (m32r_print_operand_address): Delete.
3006         * config/m32r/m32r.h (m32r_punct_chars): Delete.
3007         (PRINT_OPERAND): Delete.
3008         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3009         (PRINT_OPERAND_ADDRESS): Delete.
3010         * config/m32r/m32r.c (m32r_punct_chars): Make static.
3011         (m32r_print_operand_address): Make static.
3012         (m32r_print_operand): Make static.
3013         (m32r_print_operand_punct_valid_p): New function.
3014         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3015         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3017 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3019         * config/iq2000/iq2000-protos.h (print_operand): Delete.
3020         (print_operand_address): Delete.
3021         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3022         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3023         (PRINT_OPERAND_ADDRESS): Delete.
3024         (iq2000_print_operand_punct): Delete.
3025         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3026         (iq2000_print_operand_address): Make static.
3027         (iq2000_print_operand): Make static.
3028         (iq2000_print_operand_punct_valid_p): New function.
3029         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3030         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3032 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3034         * config/frv/frv-protos.h (frv_print_operand): Delete.
3035         (frv_print_operand_address): Delete.
3036         * config/frv/frv.h (PRINT_OPERAND): Delete.
3037         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3038         (PRINT_OPERAND_ADDRESS): Delete.
3039         * config/frv/frv.c (frv_print_operand_address): Make static.
3040         (frv_print_operand): Make static.
3041         (frv_print_operand_punct_valid_p): New function.
3042         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3043         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3045 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3047         * tree.h (vec_member): Declare.
3048         * tree.c (vec_member): Define.
3050 2010-06-17  Richard Guenther  <rguenther@suse.de>
3052         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3053         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3055 2010-06-17  Richard Guenther  <rguenther@suse.de>
3057         * tree-inline.c (declare_return_variable): Remove bogus code.
3059 2010-06-17  Richard Guenther  <rguenther@suse.de>
3061         * gimplify.c (gimplify_bind_expr): Always promote complex
3062         and vector variables to registers if possible.
3064 2010-06-17  Richard Guenther  <rguenther@suse.de>
3066         * expr.c (get_inner_reference): Use double_int for bit_offset
3067         calculation.
3069 2010-06-16  DJ Delorie  <dj@redhat.com>
3071         * common.opt (-fstrict-volatile-bitfields): new.
3072         * doc/invoke.texi: Document it.
3073         * fold-const.c (optimize_bit_field_compare): For volatile
3074         bitfields, use the field's type to determine the mode, not the
3075         field's size.
3076         * expr.c (expand_assignment): Likewise.
3077         (get_inner_reference): Likewise.
3078         (expand_expr_real_1): Likewise.
3079         * expmed.c (store_fixed_bit_field): Likewise.
3080         (extract_bit_field_1): Likewise.
3081         (extract_fixed_bit_field): Likewise.
3083 2010-06-16  Richard Guenther  <rguenther@suse.de>
3085         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3087 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
3089         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3090         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3091         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3092         * debug.c: Likewise.
3093         * sdbout.c: Likewise.
3094         * vmsdbgout.c: Likewise.
3095         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3096         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3097         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3098         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3099         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3100         * dwarf2out.c (dw_fde_struct): New fields
3101         dw_fde_vms_{end,begin}_prologue.
3102         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3103         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3104         (dwarf2out_vms_end_prologue): New function.
3105         (dwarf2out_vms_begin_epilogue): New function.
3106         (dw_val_struct): New value dw_val_class_vms_delta.
3107         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3108         begin_epilogue for VMS.
3109         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3110         new static functions.
3111         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3112         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3113         static functions.
3114         (print_die): New case dw_val_class_vms_delta.
3115         (attr_checksum): Likewise.
3116         (same_dw_val_p: Likewise.
3117         (size_of_die): Likewise.
3118         (value_format): Likewise.
3119         (output_die): Likewise.
3120         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3121         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3122         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3123         dwarf2out_cfi_begin_epilogue
3124         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3126 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3128         * config/cris/cris-protos.h (cris_print_operand): Delete.
3129         (cris_print_operand_address): Delete.
3130         * config/cris/cris.h (PRINT_OPERAND): Delete.
3131         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3132         (PRINT_OPERAND_ADDRESS): Delete.
3133         * config/cris/cris.c (cris_print_operand_address): Make static.
3134         (cris_print_operand): Make static.
3135         (cris_print_operand_punct_valid_p): New function.
3136         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3137         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3139 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3141         * config/arm/arm-protos.h (arm_print_operand): Delete.
3142         (arm_print_operand_address): Delete.
3143         * config/arm/arm.h (PRINT_OPERAND): Delete.
3144         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3145         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3146         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3147         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
3148         (arm_print_operand): Make static.
3149         (arm_print_operand_punct_valid_p): New function.
3150         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3151         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3153 2010-06-16  Nick Clifton  <nickc@redhat.com>
3155         * config/rx/constraints.md (NEGint4): New constraint.
3156         * config/rx/rx.md (attr cc): Add set_zsc.
3157         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3158         initialised.
3159         (cmpsf): Likewise.
3160         (call_internal): Clobber the cc0 register.
3161         (call_value_internal): Likewise.
3162         (cstoresi4): Likewise.
3163         (movsieq): Likewise.
3164         (movsine): Likewise.
3165         (addsi3): Add alternative to handle small negative constants.
3166         (sunsi3): Likewise.
3167         (addsi3): Do not set the O bit in the cc0 register.
3168         (adddi3): Likewise.
3169         (subsi3): Likewise.
3170         (subdi3): Likewise.
3171         (andsi3): Reorder alternatives to prefer shorter forms.
3172         (mulsi3): Likewise.
3173         (iorsi3): Likewise.
3174         (negsi2): Note that the cc0 flags are set.
3175         (rotlsi3): Note that only the Z and S bits are set in cc0.
3176         (lshrsi3): Likewise.
3177         (ashlsi3): Likewise.
3178         (subsf3): Use %Q for the MEM operand.
3179         (fix_truncsfsi2): Likewise.
3180         (floatsisf2): Likewise.
3181         (bitset): Remove early clobber from destination.
3182         (bitset_in_memory): Likewise.
3183         (lrintsf2): Clobber the cc0 register.
3184         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3185         (rx_print_operand): Handle %N.
3187 2010-06-16  Jan Hubicka  <jh@suse.cz>
3189         * df-core.c (df_compact_blocks): Free problem_temps vector.
3191 2010-06-16  Martin Jambor  <mjambor@suse.cz>
3193         PR tree-optimization/43905
3194         * tree-sra.c: Include tree-inline.h.
3195         (create_abstract_origin): Removed.
3196         (modify_function): Version the call graph node instead of creating
3197         abstract origins and dealing with same_body aliases.
3198         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3199         function is versionable.
3200         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3202 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
3204         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3205         (CHOOSE_DYNAMIC_LINKER): Update.
3207 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
3209         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
3210         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3211         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3212         *prefetch_3dnow_rex.
3214 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
3216         * target.h (struct asm_out):Add declare_constant_name field.
3217         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3218         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3219         * output.h (default_asm_declare_constant_name): Declare.
3220         (assemble_label): Update prototype.
3221         * varasm.c (assemble_constant_contents): Use
3222         targetm.asm_out.declare_constant_name target hook.
3223         (assemble_label): Add 'file' argument.
3224         (default_asm_declare_constant_name): New function.
3225         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3226         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3227         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3229         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3230         * config/darwin.c (darwin_asm_declare_constant_name): New function.
3231         (machopic_output_indirection): Update assemble_label argument list.
3232         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3233         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3235 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
3237         PR middle-end/44391
3238         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3239         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
3241 2010-06-15  Richard Guenther  <rguenther@suse.de>
3243         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3245 2010-06-15  Paul Brook  <paul@codesourcery.com>
3247         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3248         hard-float ABI.
3250 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
3252         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3253         don't get a vector type for output.
3255 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
3257         PR fortran/44536
3258         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3259         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3260         (LANG_HOOKS_DECLS): Add it.
3261         * gimplify.c (omp_notice_variable): Call
3262         lang_hooks.decls.omp_report_decl.
3264 2010-06-15  Martin Jambor  <mjambor@suse.cz>
3266         PR lto/44464
3267         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3268         on the newly dead SSA name.
3270 2010-06-15  Alan Modra  <amodra@gmail.com>
3272         * doc/invoke.texi: Add mcmodel to powerpc options.
3273         * configure.ac: Add HAVE_LD_LARGE_TOC test.
3274         * configure: Regenerate.
3275         * config.in: Regenerate.
3276         * config/rs6000/linux64.opt (mcmodel): New.
3277         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3278         (TARGET_CMODEL, SET_CMODEL): Define.
3279         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3280         select CMODEL_MEDIUM default.
3281         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3282         (TARGET_CMODEL): Define default.
3283         * config/rs6000/rs6000.c (cmodel): New variable.
3284         (rs6000_explicit_options): Add cmodel field.
3285         (rs6000_handle_option): Handle -mcmodel.
3286         (create_TOC_reference): Add largetoc_reg param.  Generate high,
3287         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
3288         (rs6000_delegitimize_address): Recognise new toc reference rtl
3289         and minimal-toc rtl.
3290         (rs6000_legitimize_reload_address): Handle new toc references.
3291         (print_operand_address): Handle legitimate_constant_pool_address_p
3292         match before lo_sum.
3293         (rs6000_eliminate_indexed_memrefs): Tidy.
3294         (rs6000_emit_move): Tweak threshold for inlining constants.
3295         Keep rs6000_emit_allocate_stack large stack frame offsets
3296         loaded into r0 inline.
3297         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3298         (tocrel_base, tocrel_offset): New variables.
3299         (toc_relative_expr_p): Set them here.
3300         (print_operand_address): Skip over any offset on constant pool address.
3301         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3302         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3303         (offsettable_ok_by_alignment): New function.
3304         (rs6000_emit_move): Address suitably aligned local symbol_refs
3305         relative to the toc pointer for -mcmodel=medium.
3306         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
3307         strict param.  Allow lo_sum version of addressing.  Verify reg
3308         used for -mminimal-toc and -mcmodel != small.  Update all callers.
3309         * config/rs6000/constraints.md: Update for above change.
3310         * config/rs6000/predicates.md: Likewise.
3311         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3312         code.
3313         (tls_gd): Split for -mcmodel=medium/large.
3314         (tls_gd_high, tls_gd_low): New.
3315         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3316         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3317         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3318         (largetoc_high, largetoc_low): New.
3319         (cmptf_internal2): Add clobber.
3320         * config/rs6000/rs6000-protos.h: Update.
3322 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
3324         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
3325         true if no prefetch is going to be generated for a given group.
3326         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3327         estimate the prefetch_count.
3328         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3329         prefetch count by considering the unroll_factor and prefetch_mod
3330         for is_loop_prefetching_profitable.
3332 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
3334         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3335         anything if the argument is not a MEM.
3337 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3339         PR debug/43650
3340         PR debug/44181
3341         PR debug/44247
3342         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3343         debug stmts.
3344         (canonicalize_loop_ivs): Likewise.
3346 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3348         PR debug/43656
3349         * haifa-sched.c (setup_insn_reg_pressure_info,
3350         update_register_pressure): Reject debug insns.
3351         (ready_sort): Don't setup reg pressure for debug insns.
3352         (schedule_insn): Don't update reg pressure for debug insns.
3354 2010-06-14  Richard Guenther  <rguenther@suse.de>
3356         * lto-streamer.c (cached_bp): Remove.
3357         (bitpack_delete): Likewise.
3358         (bitpack_create): Likewise.
3359         (bp_get_next_word): Likewise.
3360         (bp_pack_value, bp_unpack_value): Move ...
3361         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3362         Re-implement.
3363         (struct bitpack_d): Likewise.
3364         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3365         New inline functions.
3366         * lto-streamer-out.c (lto_output_bitpack): Remove.
3367         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3368         (pack_value_fields): Adjust.
3369         (lto_write_tree): Likewise.
3370         (output_gimple_stmt): Likewise.
3371         (output_function): Likewise.
3372         * lto-streamer-in.c (input_gimple_stmt): Adjust.
3373         (input_function): Likewise.
3374         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3375         (lto_input_bitpack): Remove.
3376         (lto_materialize_tree): Adjust.
3377         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3378         * lto-cgraph.c (lto_output_edge): Adjust.
3379         (lto_output_node): Likewise.
3380         (lto_output_varpool_node): Likewise.
3381         (lto_output_ref): Likewise.
3382         (input_node): Likewise.
3383         (input_varpool_node): Likewise.
3384         (input_ref): Likewise.
3385         (input_edge): Likewise.
3386         (output_node_opt_summary): Likewise.
3387         (input_node_opt_summary): Likewise.
3388         * ipa-pure-const.c (pure_const_write_summary): Likewise.
3389         (pure_const_read_summary): Likewise.
3390         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3391         (ipa_read_indirect_edge_info): Likewise.
3392         (ipa_write_node_info): Likewise.
3393         (ipa_read_node_info): Likewise.
3395 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3397         PR target/44534
3398         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3399         (vec_extract_lo_v16hi): Likewise.
3400         (vec_extract_lo_v32qi): Likewise.
3402 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3404         PR bootstrap/44426
3405         * tree.h (build_call_expr): Don't define as vararg macro, instead
3406         add a prototype.
3407         * builtins.c (build_call_nofold): Remove.
3408         (expand_builtin_int_roundingfn, expand_builtin_pow,
3409         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3410         expand_builtin_memset_args, expand_builtin_strcmp,
3411         expand_builtin_strncmp, expand_builtin_memory_chk): Use
3412         build_call_nofold_loc instead of build_call_nofold.
3413         (build_call_expr): New function.
3415         PR tree-optimization/44508
3416         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3417         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3418         don't eliminate trivially dead stmts.
3419         * tree-vrp.c (vrp_finalize): Pass false as last argument
3420         to substitute_and_fold.
3421         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3422         to substitute_and_fold.
3423         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3425         PR bootstrap/44509
3426         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3428 2010-06-14  Ira Rosen  <irar@il.ibm.com>
3430         PR tree-optimization/44507
3431         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3432         to build initial vector for BIT_AND_EXPR.
3433         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3435 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3437         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3438         adjust z10prop set_attr.
3440 2010-06-13  Jan Hubicka  <jh@suse.cz>
3442         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3443         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3444         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3445         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3446         datastructure checks into checking asserts.
3447         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3448         * tree-ssa-sccvn.c (VN_INFO): Likewise.
3449         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3450         df_ref_create_structure): Likewise.
3451         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3452         pool_free): Use gcc_checking_assert.
3453         * alias.c (get_alias_set): Likewise.
3454         * var-tracking.c (variable_htab_free, shared_hash_copy,
3455         canonicalize_values_mark, variable_merge_over_cur): Likewise.
3456         * lto-streamer.c (bp_unpack_value): Likewise.
3458 2010-06-13  Richard Guenther  <rguenther@suse.de>
3460         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3461         Do not stream but initialize TYPE_CANONICAL to NULL.
3462         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3463         * gimple.c (gimple_types_compatible_p): Disregard
3464         TYPE_STRUCTURAL_EQUALITY_P.
3465         (gimple_register_type): Use TYPE_CANONICAL as cache.
3466         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3467         before registering common types.
3468         * config/i386/i386.c (ix86_function_arg_boundary): Do not
3469         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3470         * tree.h (TYPE_CANONICAL): Clarify documentation.
3472 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
3474         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3475         LIBCALL_VALUE): Remove macros.
3476         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3477         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3478         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3479         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3480         (ia64_function_value): Make static. Handle receiving the function
3481         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3483 2010-06-12  Jan Hubicka  <jh@suse.cz>
3485         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3486         at correct place.
3488 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
3490         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3492 2010-06-12  Jan Hubicka  <jh@suse.cz>
3494         * df-core.c (df_clear_bb_info): New function.
3495         (df_set_blocks): bb_info is always allocated.
3496         (df_get_bb_info): Use block_info_elt_size.
3497         (df_set_bb_info): Likewise.
3498         (df_compact_blocks): Update for new block_info.
3499         (grow_bb_info): New function.
3500         * df-problems.c (df_grow_bb_info): Move to df-core.c
3501         (df_rd_set_bb_info): Remove.
3502         (df_rd_free_bb_info): Do not free block pool.
3503         (df_rd_alloc): Do not create pool, use check for
3504         obstack presence instead of NULL pointer for new blocks.
3505         (df_rd_free): DO not free alloc pool; clear block_info.
3506         (problem_RD): Add size of block info structure.
3507         (df_lr_set_bb_info): Remove.
3508         (df_lr_free_bb_info): Do not free block pool.
3509         (df_lr_alloc): Do not create pool, use check for
3510         obstack presence instead of NULL pointer for new blocks.
3511         (df_lr_free): DO not free alloc pool; clear block_info.
3512         (problem_LR): Add size of block info structure.
3513         (df_live_set_bb_info): Remove.
3514         (df_live_free_bb_info): Do not free block pool.
3515         (df_live_alloc): Do not create pool, use check for
3516         obstack presence instead of NULL pointer for new blocks.
3517         (df_live_free): DO not free alloc pool; clear block_info.
3518         (problem_LIVE): Add size of block info structure.
3519         (problem_CHAIN): Add size of block info structure.
3520         (df_byte_lr_set_bb_info): Remove.
3521         (df_byte_lr_free_bb_info): Do not free block pool.
3522         (df_byte_lr_alloc): Do not create pool, use check for
3523         obstack presence instead of NULL pointer for new blocks.
3524         (df_byte_lr_free): DO not free alloc pool; clear block_info.
3525         (problem_BYTE_LR): Add size of block info structure.
3526         (problem_NOTE): Add size of block info structure.
3527         (df_byte_MD_set_bb_info): Remove.
3528         (df_byte_MD_free_bb_info): Do not free block pool.
3529         (df_byte_MD_alloc): Do not create pool, use check for
3530         obstack presence instead of NULL pointer for new blocks.
3531         (df_byte_MD_free): DO not free alloc pool; clear block_info.
3532         (problem_BD): Add size of block info structure.
3533         * df-scan.c (df_scan_free_internal): Free block pool.
3534         (df_scan_set_bb_info): Remove.
3535         (df_scan_free_bb_info): Check for artificial_defs instead
3536         of bb_info being non-NULL.
3537         (df_scan_alloc): DO not create df_scan_block pool.
3538         (problem_SCAN): Set size of block info.
3539         (df_bb_refs_record): Do not allocate bb_info.
3540         * df.h (df_problem): Add block_info_elt_size.
3541         (struct dataflow): Change block_info to void *.
3542         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3543         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3544         in-line structures.
3546 2010-06-12  Jan Hubicka  <jh@suse.cz>
3548         PR tree-optimize/44485
3549         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3550         containing use of return value of noreturn function.
3552 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
3554         * targhooks.c (default_function_value): Don't use
3555         FUNCTION_OUTGOING_VALUE.
3556         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3557         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3559 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
3561         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3562         Add crtfastmath.o to extra_parts.
3563         * config/mips/crtfastmath.c: New.
3564         * config/mips/linux.h (ENDFILE_SPEC): New.
3566 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
3568         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3569         old_type in parameter.
3570         (gcc_type_for_value): Update call to gcc_type_for_interval.
3571         (compute_type_for_level_1): Renamed compute_type_for_level.
3572         Update call to gcc_type_for_interval.
3574 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3576         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3577         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
3579 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3581         * opts-common.c: Include options.h.
3582         (integral_argument): Move from opts.c.
3583         (decode_cmdline_option): New.  Based on read_cmdline_option.
3584         * opts.c (integral_argument): Move to opts-common.c.
3585         (read_cmdline_option): Move most contents to
3586         decode_cmdline_option.  Use %qs in diagnostics.
3587         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
3588         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
3589         decode_cmdline_option): New.
3591 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3593         PR target/44481
3594         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
3595         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
3596         (partiysi2_cmp): Ditto.
3597         (*partiyhi2_cmp): Ditto.
3598         (*parityqi2_cmp): Remove.
3600 2010-06-11  Jan Hubicka  <jh@suse.cz>
3602         * bitmap.h (bmp_iter_next_bit): New.
3603         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
3605 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
3606             Eric Botcazou  <ebotcazou@adacore.com>
3608         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
3609         computed cost.
3611 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3613         * config/i386/i386.md (unspec): New define_c_enum.
3614         (unspecv): Ditto.
3616 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
3618         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
3620 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
3622         PR middle-end/44483
3623         * tree-if-conv.c (bb_predicate_s): New struct.
3624         (bb_predicate_p): New.
3625         (bb_has_predicate): New.
3626         (bb_predicate): New.
3627         (set_bb_predicate): New.
3628         (bb_predicate_gimplified_stmts): New.
3629         (set_bb_predicate_gimplified_stmts): New.
3630         (add_bb_predicate_gimplified_stmts): New.
3631         (init_bb_predicate): New.
3632         (free_bb_predicate): New.
3633         (is_predicated): Use bb_predicate.
3634         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
3635         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
3636         before processing their successors.
3637         (clean_predicate_lists): Removed.
3638         (find_phi_replacement_condition): Use bb_predicate.
3639         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
3640         computations.
3641         (insert_gimplified_predicates): New.
3642         (combine_blocks): Call insert_gimplified_predicates.
3643         (tree_if_conversion): Call free_bb_predicate instead of
3644         clean_predicate_lists.
3646 2010-10-11  Paul Brook  <paul@codesourcery.com>
3648         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
3649         * config/arm/arm.c (all_architectures): Change v7e-m default to
3650         cortexm4.
3651         * config/arm/arm-cores.def: Add cortex-m4.
3652         * config/arm/arm-tune.md: Regenerate.
3654 2010-06-11  Jan Hubicka  <jh@suse.cz>
3656         * ipa-pure-const.c (special_builtlin_state): New function.
3657         (check_call): Use it instead of special casign BUILT_IN_RETURN.
3658         (propagate_pure_const): Use it.
3660 2010-06-11  Jan Hubicka  <jh@suse.cz>
3662         * df-problems.c (df_live_scratch): Convert to bitmap_head.
3663         (df_live_alloc): Initialize df_live_scratch when initializing
3664         problem_data.
3665         (df_live_transfer_function): Update uses of df_live_scratch.
3666         (df_live_free): Free problem_data; clear df_live_scratch before
3667         releasing the obstack.
3668         (df_md_free): Free problem data.
3670 2010-06-11  Jan Hubicka  <jh@suse.cz>
3672         * doc/invoke.texi (Wsuggest-attribute): Document.
3673         (Wmissing-noreturn): Remove.
3674         * ipa-pure-const.c (warn_function_noreturn): New function.
3675         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
3676         warn_missing_noreturn.
3677         * common.opt (Wsuggest-attribute=noreturn): New.
3678         * tree-flow.h (warn_function_noreturn): Declare.
3679         * tree-cfg.c (execute_warn_function_noreturn): Use
3680         warn_function_noreturn.
3681         (gate_warn_function_noreturn): New.
3682         (pass_warn_function_noreturn): Update.
3684 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3686         * c-typeck.c (handle_warn_cast_qual): Add loc
3687         parameter. Improve warning message.
3688         (build_c_cast): Pass location to handle_warn_cast_qual.
3690 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3692         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
3693         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
3694         insn mnemonic.
3695         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
3697 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
3699         Fix bootstap on mips
3700         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
3701         be naming typedefs.
3703 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
3705         * system.h (helper_const_non_const_cast): New inline for
3706         gcc version <= 4.0.
3707         (CONST_CAST2): For gcc version <= 4.0 use
3708         new helper to do const/non-const casting.
3710 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3712         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
3713         * Makefile.in (OBJS-common): Include insn-enums.o.
3714         (insn-enums.o): New rule.
3715         (simple_generated_c): Add insn-enums.c.
3716         (build/genenums.o): New rule.
3717         (genprogmd): Add "enums".
3718         * genconstants.c (print_enum_type): Declare a C string array
3719         for each enum.
3720         * genenums.c: New file.
3721         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
3722         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
3723         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
3725 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3727         * doc/md.texi (define_enum_attr): Document.
3728         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
3729         * read-md.h (lookup_enum_type): Declare.
3730         * read-md.c (lookup_enum_type): New function.
3731         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
3732         * genattrtab.c (attr_desc): Add an enum_name field.
3733         (evaluate_eq_attr): Take the associated attribute as argument.
3734         Get the enum prefix from the enum_name field, if defined.
3735         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
3736         (simplify_test_exp): Pass attr to evaluate_eq_attr.
3737         (add_attr_value): New function, split out from...
3738         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
3739         (write_test_expr): Pass attr to evaluate_eq_attr.
3740         (write_attr_get): Use the enum_name as the enum tag, if defined.
3741         (write_attr_valueq): Use the enum_name as a prefix, if defined.
3742         (find_attr): Initialize enum_name.
3743         (main): Handle DEFINE_ENUM_ATTR.
3744         * gensupport.c (process_rtx): Likewise.
3745         * config/mips/mips.h (mips_tune_attr): Delete.
3746         * config/mips/mips.md (cpu): Use define_attr_enum.
3748 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3750         * doc/md.texi (define_c_enum, define_enum): Document.
3751         * read-md.h (md_constant): Add a parent_enum field.
3752         (enum_value, enum_type): New structures.
3753         (upcase_string, traverse_enum_types): Declare.
3754         * read-md.c (enum_types): New variable.
3755         (upcase_string, add_constant): New functions.
3756         (handle_constants): Don't create the hash table here.
3757         Use add_constant.
3758         (traverse_md_constants): Don't check for a null md_constants.
3759         (decimal_string, handle_enum, traverse_enum_types): New functions.
3760         (read_md_files): Initialize md_constants and md_enums.
3761         * genconstants.c (print_md_constant): Ignore info argument.
3762         Only print constants that belong to no enum.
3763         (print_enum_type): New function.
3764         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
3765         for each defined enum type.
3766         * config/mips/mips.md (processor): New define_enum.
3767         (unspec): New define_c_enum.
3768         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
3769         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
3770         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
3771         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
3772         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3773         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3774         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3775         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3776         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3777         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3778         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3779         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3780         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3781         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3782         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3783         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3784         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3785         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3786         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3787         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3788         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3789         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3790         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3791         (UNSPEC_RDDSP): Move to mips-dsp.md.
3792         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
3793         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
3794         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
3795         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3796         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3797         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3798         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3799         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3800         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3801         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3802         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3803         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3804         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3805         Moved to mips-dspr2.md.
3806         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3807         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3808         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3809         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3810         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3811         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3812         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3813         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3814         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3815         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3816         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3817         UNSPEC_LOONGSON_PSADBH)
3818         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3819         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3820         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3821         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3822         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3823         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3824         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3825         (cpu): Update comment.
3826         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3827         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3828         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3829         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3830         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3831         UNSPEC_LOONGSON_PCMPEQ)
3832         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3833         UNSPEC_LOONGSON_PINSR_0)
3834         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3835         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3836         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3837         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3838         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3839         UNSPEC_LOONGSON_PSADBH)
3840         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3841         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3842         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3843         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3844         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3845         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3846         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3847         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3848         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3849         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3850         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3851         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3852         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3853         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3854         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3855         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3856         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3857         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3858         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3859         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3860         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3861         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3862         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3863         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3864         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3865         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3866         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3867         (UNSPEC_RDDSP): Moved from mips.md.
3868         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3869         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3870         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3871         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3872         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3873         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
3874         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
3875         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
3876         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
3877         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
3878         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
3879         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
3880         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
3881         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
3882         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
3883         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
3884         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
3885         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
3886         (UNSPEC_SCC): Moved from mips.md.
3887         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
3888         "processor_type" to "processor".
3889         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
3890         * config/mips/mips.h (processor_type): Delete.
3891         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
3892         "processor_type" to "processor".
3894 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3896         * configure.ac (tm_include_list): Add insn-constants.h.
3897         * configure: Regenerate.
3898         * Makefile.in (GTM_H): Move insn-constants.h here from...
3899         (TM_H): ...here.
3900         * mkconfig.sh: Remove special handling for insn-constants.h.
3902 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3904         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
3905         (BUILD_MD): ...this new variable.
3906         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
3907         that include the old contents of simple_generated_h and
3908         simple_generated_c.
3909         (simple_generated_h, simple_generated_c): Include them.  Add
3910         insn-constants.h.
3911         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
3912         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
3913         Remove these dependencies from the main rule and include
3914         insn-conditions.md in the command line only if it appears
3915         in the dependency list.
3916         (insn-constants.h, s-constants): Delete.
3917         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
3918         or gensupport.h.
3919         (build/genmddeps.o): Likewise.
3920         (genprogrtl): New variable that contains everything from genprogmd
3921         except mddeps and constants.
3922         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
3923         depend on $(BUILD_MD)
3924         (genprog): New variable.  Make these programs depend on
3925         $(BUILD_ERRORS).
3926         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
3927         (main): Use read_md_files instead of init_rtx_reader_args.
3928         * genconstants.c: As for genmddeps.c.
3929         * read-md.h (read_skip_construct): Declare.
3930         * read-md.c (read_skip_construct): New function.
3931         (handle_file): Allow a null handle_directive, skipping the
3932         construct if so.
3933         (parse_include): Update the comment accordingly.
3935 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3937         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
3938         * genmddeps.c: Include read-md.h.
3939         (main): Call init_rtx_reader_args instead of init_md_reader_args.
3940         * genattr.c (main): Likewise.
3941         * genattrtab.c (main): Likewise.
3942         * genautomata.c (main): Likewise.
3943         * gencodes.c (main): Likewise.
3944         * genconditions.c (main): Likewise.
3945         * genconfig.c (main): Likewise.
3946         * genconstants.c (main): Likewise.
3947         * genemit.c (main): Likewise.
3948         * genextract.c (main): Likewise.
3949         * genflags.c (main): Likewise.
3950         * genopinit.c (main): Likewise.
3951         * genoutput.c (main): Likewise.
3952         * genpeep.c (main): Likewise.
3953         * genrecog.c (main): Likewise.
3954         * genpreds.c (main): Likewise.
3955         * gensupport.h (in_fname): Move to read-md.h.
3956         (init_md_reader_args_cb): Rename to...
3957         (init_rtx_reader_args_cb): ...this and return a bool.
3958         (init_md_reader_args): Rename to...
3959         (init_rtx_reader_args): ...this and return a bool.
3960         (include_callback): Move to read-md.h.
3961         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
3962         (file_name_list, first_dir_md_include): Move to read-md.c
3963         (first_bracket_include): Delete unused variable.
3964         (last_dir_md_include): Move to read-md.c.
3965         (process_include): Delete, moving code to read-md.c:handle_include.
3966         (process_rtx): Don't handle INCLUDE.
3967         (save_string): Delete.
3968         (rtx_handle_directive): New function.
3969         (init_md_reader_args_cb): Rename to...
3970         (init_rtx_reader_args_cb): ...this and return a boolean success value.
3971         Use read_md_args.
3972         (init_md_reader_args): Rename to...
3973         (init_rtx_reader_args): ...this and return a boolean success value.
3974         * rtl.def (INCLUDE): Delete.
3975         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
3976         argument.
3977         * read-rtl.c (read_conditions): Don't gobble ')' here.
3978         (read_mapping): Likewise.
3979         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
3980         Handle top-level non-rtx constructs here rather than in read_rtx_1.
3981         Store the whole queue in *X.  Remove call to init_md_reader.
3982         (read_rtx_1): Rename to...
3983         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
3984         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
3985         here.
3986         (read_nested_rtx): New function.  Handle (nil) here rather than
3987         in read_rtx_code.
3988         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
3989         gobble ')' here.
3990         * read-md.h (directive_handler_t): New type.
3991         (in_fname, include_callback): Moved from read-md.h.
3992         (read_constants, init_md_reader): Delete.
3993         (read_md_files): Declare.
3994         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
3995         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
3996         from gensupport.c.
3997         (read_constants): Rename to...
3998         (handle_constants): ...this.  Don't gobble ')' here.
3999         (handle_include, handle_file, handle_toplevel_file)
4000         (parse_include): New functions, mostly taken from gensupport.c.
4001         (init_md_reader): Subsume into...
4002         (read_md_files): ...this new function.
4004 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4006         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4007         (unread_char): Decrement read_md_lineno after putting back '\n'.
4008         * read-md.c (fatal_with_file_and_line): Push back any characters
4009         that we decide not to add to the context.
4010         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
4011         fatal_expected_char in cases where '/' ends a line (for example).
4012         (read_name): Don't increment read_md_lineno here.
4013         (read_escape): Likewise.
4014         (read_quoted_string): Likewise.
4015         (read_braced_string): Likewise.
4017 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4019         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4020         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4021         * genconstants.c: Include read-md.h.
4022         * read-rtl.c (md_constants): Move to read-md.c.
4023         (md_name): Move to read-md.h.
4024         (initialize_iterators): Use leading_string_hash instead of def_hash
4025         and leading_string_eq_p instead of def_name_eq_p.
4026         (read_name): Move to read-md.c.
4027         (def_hash, def_name_eq_p): Delete.
4028         (read_constants, traverse_md_constants): Move to read-md.c.
4029         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4030         * read-md.h: Include hashtab.h.
4031         (md_name): Moved from read-rtl.c.
4032         (md_constant): Moved from read-md.h.
4033         (leading_string_hash, leading_string_eq_p, read_name)
4034         (read_constants, traverse_md_constants): Declare.
4035         * read-md.c (md_constants): Moved from read-rtl.c.
4036         (leading_string_hash, leading_string_eq_p): New functions.
4037         (read_name, read_constants, traverse_md_constants): Moved from
4038         read-rtl.c.
4040 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4042         * read-rtl.c (md_name): New structure.
4043         (read_name): Take an md_name instead of a buffer pointer.
4044         Use the "string" field instead of strcpy when expanding constants.
4045         (read_constants): Remove the tmp_char argument.  Update the calls
4046         to read_name, using two local name buffers instead of the tmp_char
4047         argument.  Merge the constant-creation code.
4048         (read_conditions): Remove the tmp_char argument.  Update the calls
4049         to read_name, using a local name buffer instead of the tmp_char
4050         argument.
4051         (read_mapping): Replace tmp_char variable with a local name buffer.
4052         Update the calls to read_name.
4053         (read_rtx_1): Likewise.  Update the calls to read_constants and
4054         read_conditions.
4056 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4058         * Makefile.in (build/read-md.o): Depend on errors.h.
4059         * read-md.h (error_with_line): Declare.
4060         * read-md.c: Include errors.h.
4061         (message_with_line_1): New function, extracted from...
4062         (message_with_line): ...here.
4063         (error_with_line): New function.
4064         * genattrtab.c: If a call to message_with_line is followed by
4065         "have_error = 1;", replace both statements with a call to
4066         error_with_line.
4067         * genoutput.c: Likewise.
4068         * genpreds.c: Likewise.
4069         * genrecog.c: If a call to message_with_line is followed by
4070         "error_count++;", replace both statements with a call to
4071         error_with_line.
4072         (errorcount): Delete.
4073         (main): Don't check it.
4074         * gensupport.c: If a call to message_with_line is followed by
4075         "errors = 1;", replace both statements with a call to error_with_line.
4076         (errors): Delete.
4077         (process_define_cond_exec): Check have_error instead of errors.
4078         (init_md_reader_args_cb): Likewise.  Don't set errors.
4080 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4082         * read-md.h (read_md_file): Declare.
4083         (read_char, unread_char): New functions.
4084         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4085         (read_quoted_string, read_string): Remove FILE * argument.
4086         * read-md.c (read_md_file): New variable.
4087         (read_md_filename, read_md_lineno): Update comments and remove
4088         unnecessary initialization.
4089         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4090         (read_escape, read_quoted_string, read_braced_string, read_string):
4091         Remove FILE * argument.  Update calls accordingly, using read_char
4092         and unread_char instead of getc and ungetc.
4093         * rtl.h (read_rtx): Remove FILE * argument.
4094         * read-rtl.c (iterator_group): Remove FILE * argument from
4095         "find_builtin".
4096         (iterator_traverse_data): Remove "infile" field.
4097         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4098         (add_mapping, read_name, read_constants, read_conditions)
4099         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4100         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4101         Remove file arguments from all calls, using read_char and unread_char
4102         instead of getc and ungetc.
4103         * gensupport.c (process_include): Preserve read_md_file around
4104         the include.  Set read_md_file to the handle of the included file.
4105         Update call to read_rtx.
4106         (init_md_reader_args_cb): Set read_md_file to the handle of the file
4107         and remove local FILE *.  Update calls to read_rtx.
4109 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4111         * read-md.h (read_rtx_lineno): Rename to...
4112         (read_md_lineno): ...this.
4113         (read_rtx_filename): Rename to...
4114         (read_md_filename): ...this.
4115         (copy_rtx_ptr_loc): Rename to...
4116         (copy_md_ptr_loc): ...this.
4117         (print_rtx_ptr_loc): Rename to...
4118         (print_md_ptr_loc): ...this.
4119         * read-md.c: Likewise.  Update references after renaming.
4120         (string_obstack): Replace RTL with MD in comment.
4121         (set_rtx_ptr_loc): Rename to...
4122         (set_md_ptr_loc): ...this.
4123         (get_rtx_ptr_loc): Rename to...
4124         (get_md_ptr_loc): ...this.
4125         * genconditions.c: Update references after renaming.
4126         * genemit.c: Likewise.
4127         * genoutput.c: Likewise.
4128         * genpreds.c: Likewise.
4129         * gensupport.c: Likewise.
4130         * read-rtl.c: Likewise.
4132 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4134         * Makefile.in (READ_MD_H): New variable.
4135         (BUILD_RTL): Add build/read-md.o.
4136         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4137         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4138         (build/genattrtab.o, build/genconditions.o build/genemit.o)
4139         (build/genextract.o, build/genflags.o, build/genoutput.o)
4140         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4141         (build/read-md.o): New rule.
4142         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4143         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4144         * coretypes.h: ...here.
4145         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4146         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4147         * genattr.c: Include read-md.h.
4148         * genattrtab.c: Likewise.
4149         * genconditions.c: Likewise.
4150         * genemit.c: Likewise.
4151         * genextract.c: Likewise.
4152         * genflags.c: Likewise.
4153         * genoutput.c: Likewise.
4154         * genpreds.c: Likewise.
4155         * genrecog.c: Likewise.
4156         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4157         (join_c_conditions, print_c_condition, read_rtx_filename)
4158         (read_rtx_lineno): Move to read-md.h.
4159         * read-rtl.c: Include read-md.h.
4160         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4161         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4162         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4163         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4164         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4165         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4166         (read_braced_string, read_string): Move to read-md.c.
4167         (read_rtx): Move some initialization to init_md_reader and call
4168         init_md_reader here.
4169         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4170         Move to read-md.h.
4171         * gensupport.c: Include read-md.h.
4172         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4173         * read-md.h, read-md.c: New files.
4175 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
4177         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4178         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4179         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4180         * config/moxie/moxie.c (moxie_function_value): Make static.
4181         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4182         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4184 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4186         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4187         * dbgcnt.def (tree_sra): New counter.
4188         * tree-sra.c: Include dbgcnt.h.
4189         (gate_intra_sra): Check tree_sra debug counter.
4191 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4193         PR tree-optimization/44258
4194         * tree-sra.c (build_access_subtree): Return false iff there is a
4195         partial overlap.
4196         (build_access_trees): Likewise.
4197         (analyze_all_variable_accesses): Disqualify candidates if
4198         build_access_trees returns true for them.
4200 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
4202         PR debug/41371
4203         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4204         tail-recurse into canonical node.  Fast-forward over
4205         non-canonical VALUEs.
4207 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
4209         PR boostrap/44470
4210         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4211         (*addsi_1_zext) <TYPE_LEA>: Likewise.
4212         (add lea splitter): Likewise.
4213         (add_zext lea splitter): Likewise.
4215 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4217         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4219 2010-06-10  Jan Hubicka  <jh@suse.cz>
4221         * df-problems.c (df_live_problem_data): Add live_bitmaps.
4222         (df_live_alloc): Initialize problem data and live_osbtacks.
4223         (df_live_finalize): Remove obstack, problem data; do not
4224         clear all bitmaps.
4225         (df_live_top_dump, df_live_bottom_dump): Do not dump old
4226         data when not allocated.
4227         (df_live_verify_solution_start): Do not allocate problem data.
4228         (df_live_verify_solution_end): Check if out is allocated.
4229         (struct df_md_problem_data): New structure.
4230         (df_md_alloc): Allocate problem data.
4231         (df_md_free): Free problem data; do not clear bitmaps.
4233 2010-06-10  Jan Beulich  <jbeulich@novell.com>
4235         PR bootstrap/37304
4236         * configure.ac: Replace $() with ${} when intending to expand
4237         variables rather than invoking commands.
4238         * configure: Re-generate.
4240 2010-06-10  Jan Hubicka  <jh@suse.cz>
4242         PR rtl-optimization/44460
4243         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4244         TYPE_NEEDS_CONSTRUCTING sanity check.
4246 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
4248         * doc/include/fdl.texi: Move to GFDL version 1.3.
4250         * doc/cpp.texi: Move to GFDL version 1.3.
4251         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
4252         * doc/gccint.texi: Move to GFDL version 1.3.
4253         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
4254         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
4255         * doc/invoke.texi: Move to GFDL version 1.3.
4257 2010-06-09  Jan Hubicka  <jh@suse.cz>
4259         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4260         Break out from ...
4261         (propagate) ... here; swap the order.
4263 2010-06-09  Jan Hubicka  <jh@suse.cz>
4265         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4266         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4267         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4268         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4270 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4272         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4273         Do not the gather memory reference in the outer loop if the step
4274         is not a constant.
4276 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4278         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4279         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4280         8 to 4.  Minor change of the related comments.
4282 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4284         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4285         the scev analysis when the variable is not used outside the loop
4286         in a close phi node: call compute_overall_effect_of_inner_loop.
4288 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4290         * graphite-sese-to-poly.c (single_pred_cond): Renamed
4291         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
4292         (build_sese_conditions_before): Renamed call to single_pred_cond.
4293         (build_sese_conditions_after): Same.
4295 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4297         * graphite-poly.h: Fix comments and indentation.
4298         * graphite-sese-to-poly.c: Same.
4299         (build_sese_conditions_before): Compute stmt and gbb only when needed.
4300         * tree-chrec.c: Fix comments and indentation.
4301         (tree-ssa-loop-niter.c): Same.
4303 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4305         PR rtl-optimization/42461
4306         * dce.c (deletable_insn_p): Return true for const or pure calls again.
4307         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4309 2010-06-09  Jan Hubicka  <jh@suse.cz>
4311         * bitmap.c (bitmap_and): Walk array forward.
4312         (bitmap_and_compl_into): Likewise.
4313         (bitmap_xor): Likewise.
4314         (bitmap_xor_into):  Likewise.
4315         (bitmap_equal_p): Likewise.
4316         (bitmap_intersect_p): Likewise.
4317         (bitmap_intersect_compl_p): Likewise.
4318         (bitmap_ior_and_into): Likewise.
4319         (bitmap_elt_copy): Likewise.
4320         (bitmap_and_compl): Likewise.
4321         (bitmap_elt_ior): Likewise.
4323 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
4325         * opts-common.c (prune_options): Ensure replacement argv array
4326         is correctly terminated by a NULL entry.
4328 2010-06-09  Jan Hubicka  <jh@suse.cz>
4330         * cgraph.h (varpool_first_static_initializer,
4331         varpool_next_static_initializer): Make checking only when
4332         checking enabled.
4333         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4334         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4335         gcc_assert to gcc_checking_assert.
4336         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4337         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4338         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4339         op_iter_init_phiuse, op_iter_init_phidef,
4340         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4341         gcc_checking_assert.
4342         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4343         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4344         partition_is_global, live_on_entry, live_on_exit,
4345         live_merge_and_clear): Likewise.
4346         * system.h (gcc_checking_assert): New macro.
4347         * gimple.h (set_bb_seq): Use gcc_checking_assert.
4349 2010-06-09  Jason Merrill  <jason@redhat.com>
4351         * Makefile.in (TAGS): Collect tags info from c-family.
4353 2010-06-09  Jan Hubicka  <jh@suse.cz>
4355         * gimple.h (gcc_gimple_checking_assert): New macro.
4356         (gimple_set_def_ops, gimple_set_use_ops,
4357         gimple_set_vuse, gimple_set_vdef,
4358         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4359         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4360         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4361         gimple_asm_output_op, gimple_asm_output_op_ptr,
4362         gimple_asm_set_output_op, gimple_asm_clobber_op,
4363         gimple_asm_set_clobber_op, gimple_asm_label_op,
4364         gimple_asm_set_label_op, gimple_try_set_kind,
4365         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4366         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4367         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4368         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4369         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4370         gimple_omp_for_set_initial, gimple_omp_for_final,
4371         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4372         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4373         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4374         conditional with ENABLE_GIMPLE_CHECKING.
4375         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4377 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
4379         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4380         (get_computation_cost_at): Use it.
4381         (determine_use_iv_cost_condition): Likewise.
4382         (determine_iv_cost): Likewise.
4384 2010-06-09  Richard Guenther  <rguenther@suse.de>
4386         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4387         replace constants.
4389 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
4391         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4393 2010-06-09  Martin Jambor  <mjambor@suse.cz>
4395         PR tree-optimization/44423
4396         * tree-sra.c (dump_access): Dump also grp_assignment_read.
4397         (analyze_access_subtree): Pass negative allow_replacements to children
4398         if the current type is scalar.
4400 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4402         PR testsuite/42843
4403         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4404         * doc/plugins.texi (Plugin license check): Update information
4405         on type of plugin_is_GPL_compatible.
4406         * Makefile.in (PLUGINCC): Define as $(COMPILER).
4407         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4409 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
4411         * config/arm/arm.c (thumb2_reorg): New function.
4412         (arm_reorg): Call it.
4413         * config/arm/thumb2.md (define_peephole2 for flag clobbering
4414         arithmetic operations): Delete.
4416 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
4418         PR target/44067
4419         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4420         e500v2 target.
4422 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4424         PR plugins/44459
4425         * gcc-plugin.h: Encapsulate all declarations in extern "C".
4427 2010-06-08  Jan Hubicka  <jh@suse.cz>
4429         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4430         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4432 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
4434         PR tree-optimization/39874
4435         PR middle-end/28685
4436         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4437         Declare.
4438         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4439         same_bool_result_p): New.
4440         (and_var_with_comparison, and_var_with_comparison_1,
4441         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4442         (or_var_with_comparison, or_var_with_comparison_1,
4443         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4444         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4445         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4446         of combine_comparisons.
4447         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4449 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
4451         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4452         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4453         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4454         pdp11_function_value_regno_p): New functions.
4455         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4456         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4458 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
4460         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4461         Thumb-2 in the MINUS case.
4463 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4465         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4467         * doc/gty.texi (GTY Options): Document typed GC allocation and
4468         variable_size GTY option.
4470         * ggc-internal.h: New.
4472         * ggc.h: Update copyright year.
4473         (digit_string): Move to stringpool.c.
4474         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4475         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4476         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4477         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4478         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4479         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4480         (ggc_force_collect, ggc_get_size, ggc_statistics)
4481         (ggc_print_common_statistics): Move to ggc-internal.h.
4482         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4483         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4484         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4485         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4486         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4487         (ggc_alloc_zone_pass_stat): Remove.
4488         (ggc_internal_alloc_stat, ggc_internal_alloc)
4489         (ggc_internal_cleared_alloc_stat): New.
4490         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4491         (ggc_internal_vec_alloc_stat)
4492         (ggc_internal_cleared_vec_alloc_stat)
4493         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4494         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4495         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4496         (ggc_cleared_alloc_ptr_array_two_args): New.
4497         (htab_create_ggc, splay_tree_new_ggc): Redefine.
4498         (ggc_splay_alloc): Change the type of the first argument to
4499         enum gt_types_enum.
4500         (ggc_alloc_string): Make macro.
4501         (ggc_alloc_string_stat): New.
4502         (ggc_strdup): Redefine.
4503         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4504         (ggc_alloc_rtvec_sized): New.
4505         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4506         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4507         (ggc_internal_cleared_alloc_zone_stat)
4508         (ggc_internal_zone_alloc_stat)
4509         (ggc_internal_zone_cleared_alloc_stat)
4510         (ggc_internal_zone_vec_alloc_stat)
4511         (ggc_alloc_zone_rtx_def_stat)
4512         (ggc_alloc_zone_tree_node_stat)
4513         (ggc_alloc_zone_cleared_tree_node_stat)
4514         (ggc_alloc_cleared_gimple_statement_d_stat): New.
4516         * ggc-common.c: Include ggc-internal.h.
4517         (ggc_internal_cleared_alloc_stat): Rename from
4518         ggc_alloc_cleared_stat.
4519         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4520         (ggc_calloc): Remove.
4521         (ggc_cleared_alloc_htab_ignore_args): New.
4522         (ggc_cleared_alloc_ptr_array_two_args): New.
4523         (ggc_splay_alloc): Add obj_type parameter.
4524         (init_ggc_heuristics): Formatting fixes.
4526         * ggc-none.c: Update copyright year.
4527         (ggc_alloc_stat): Rename to ggc_alloc_stat.
4528         (ggc_alloc_cleared_stat): Rename to
4529         ggc_internal_cleared_alloc_stat.
4530         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4532         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
4533         Remove references to ggc_alloc in comments.
4534         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4535         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4536         (new_ggc_zone, destroy_ggc_zone): Remove.
4537         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4539         * ggc-zone.c: Include ggc-internal.h.  Remove references to
4540         ggc_alloc in comments.
4541         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4542         (ggc_internal_alloc_zone_pass_stat): New.
4543         (ggc_internal_cleared_alloc_zone_stat): New.
4544         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4545         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4546         (new_ggc_zone, destroy_ggc_zone): Remove.
4548         * stringpool.c: Update copyright year.  Include ggc-internal.h
4549         (digit_vector): Make static.
4550         (digit_string): Moved from ggc.h.
4551         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4552         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4554         * Makefile.in (GGC_INTERNAL_H): New.
4555         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4556         $(GGC_INTERNAL_H) to dependencies.
4558         * gentype.c: Update copyright year.
4559         (walk_type): Accept variable_size GTY option.
4560         (USED_BY_TYPED_GC_P): New macro.
4561         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
4562         whitespace at the end of strings.
4563         (get_type_specifier, variable_size_p): New functions.
4564         (alloc_quantity, alloc_zone): New enums.
4565         (write_typed_alloc_def): New function.
4566         (write_typed_struct_alloc_def): Likewise.
4567         (write_typed_typed_typedef_alloc_def): Likewise.
4568         (write_typed_alloc_defns): Likewise.
4569         (output_typename, write_splay_tree_allocator_def): Likewise.
4570         (write_splay_tree_allocators): Likewise.
4571         (main): Call write_typed_alloc_defns and
4572         write_splay_tree_allocators.
4574         * lto-streamer.h (lto_file_decl_data_ptr): New.
4576         * passes.c (order): Define using cgraph_node_ptr.
4578         * strinpool.c (struct string_pool_data): Declare nested_ptr using
4579         ht_identifier_ptr.
4581         * gimple.h (union gimple_statement_d): Likewise.
4583         * rtl.h (struct rtx_def): Likewise.
4584         (struct rtvec_def): Likewise.
4586         * tree.h (union tree_node): Likewise.
4588         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
4590         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
4592         * tree-scalar-evolution.c (scev_initialize): Likewise.
4594         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
4596         * dwarf2asm.c (dw2_force_const_mem): Likewise.
4598         * omp-low.c (lower_omp_critical): Likewise.
4600         * bitmap.h (struct bitmap_head_def): Update comment to not
4601         reference ggc_alloc.
4603         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
4605         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
4607         * ipa-prop.c (duplicate_ggc_array): Rename to
4608         duplicate_ipa_jump_func_array.  Use typed GC allocation.
4609         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
4611         * gimple.c (gimple_alloc_stat): Use
4612         ggc_alloc_cleared_gimple_statement_d_stat.
4614         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
4616         * tree.c (make_node_stat): Use
4617         ggc_alloc_zone_cleared_tree_node_stat.
4618         (make_tree_vec_stat): Likewise.
4619         (build_vl_exp_stat): Likewise.
4620         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
4621         (make_tree_binfo_stat): Likewise.
4622         (tree_cons_stat): Likewise.
4624         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
4625         (shallow_copy_rtx_stat): Likewise.
4626         (make_node_stat): Likewise.
4628         * lto-symtab.c: Fix comment.
4630         * tree-cfg.c (create_bb): Update comment to not reference
4631         ggc_alloc_cleared.
4632         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
4634         * varpool.c (varpool_node): Use typed GC allocation.
4635         (varpool_extra_name_alias): Likewise.
4637         * varasm.c (emutls_decl): Likewise.
4638         (get_unnamed_section): Likewise.
4639         (get_noswitch_section): Likewise.
4640         (get_section): Likewise.
4641         (get_block_for_section): Likewise.
4642         (build_constant_desc): Likewise.
4643         (create_constant_pool): Likewise.
4644         (force_const_mem): Likewise.
4646         * tree.c (build_vl_exp_stat): Likewise.
4647         (build_real): Likewise.
4648         (build_string): Likewise.
4649         (decl_debug_expr_insert): Likewise.
4650         (decl_value_expr_insert): Likewise.
4651         (type_hash_add): Likewise.
4652         (build_omp_clause): Likewise.
4654         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
4656         * tree-ssa.c (init_tree_ssa): Likewise.
4658         * tree-ssa-structalias.c (heapvar_insert): Likewise.
4660         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4662         * tree-ssa-loop-niter.c (record_estimate): Likewise.
4664         * tree-ssa-alias.c (get_ptr_info): Likewise.
4666         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4668         * tree-phinodes.c (allocate_phi_node): Likewise.
4670         * tree-iterator.c (tsi_link_before): Likewise.
4671         (tsi_link_after): Likewise.
4673         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4675         * tree-dfa.c (create_var_ann): Likewise.
4677         * tree-cfg.c (create_bb): Likewise.
4679         * toplev.c (alloc_for_identifier_to_locale): Likewise.
4680         (general_init): Likewise.
4682         * stringpool.c (stringpool_ggc_alloc): Likewise.
4683         (gt_pch_save_stringpool): Likewise.
4685         * sese.c (if_region_set_false_region): Likewise.
4687         * passes.c (do_per_function_toporder): Likewise.
4689         * optabs.c (set_optab_libfunc): Likewise.
4690         (set_conv_libfunc): Likewise.
4692         * lto-symtab.c (lto_symtab_register_decl): Likewise.
4694         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4695         (input_eh_region): Likewise.
4696         (input_eh_lp): Likewise.
4697         (make_new_block): Likewise.
4698         (unpack_ts_real_cst_value_fields): Likewise.
4700         * lto-section-in.c (lto_new_in_decl_state): Likewise.
4702         * lto-cgraph.c (input_node_opt_summary): Likewise.
4704         * loop-init.c (loop_optimizer_init): Likewise.
4706         * lambda.h (lambda_vector_new): Likewise.
4708         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4710         * ira.c (update_equiv_regs): Likewise.
4712         * ipa.c (cgraph_node_set_new): Likewise.
4713         (cgraph_node_set_add): Likewise.
4714         (varpool_node_set_new): Likewise.
4715         (varpool_node_set_add): Likewise.
4717         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
4718         (duplicate_ipa_jump_func_array): Likewise.
4719         (ipa_read_node_info): Likewise.
4721         * ipa-cp.c (ipcp_create_replace_map): Likewise.
4723         * integrate.c (get_hard_reg_initial_val): Likewise.
4725         * gimple.c (gimple_alloc_stat): Likewise.
4726         (gimple_build_omp_for): Likewise.
4727         (gimple_seq_alloc): Likewise.
4728         (gimple_copy): Likewise.
4730         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
4731         (gsi_insert_after_without_update): Likewise.
4733         * function.c (add_frame_space): Likewise.
4734         (insert_temp_slot_address): Likewise.
4735         (assign_stack_temp_for_type): Likewise.
4736         (allocate_struct_function): Likewise.
4737         (types_used_by_var_decl_insert): Likewise.
4739         * except.c (init_eh_for_function): Likewise.
4740         (gen_eh_region): Likewise.
4741         (gen_eh_region_catch): Likewise.
4742         (gen_eh_landing_pad): Likewise.
4743         (add_call_site): Likewise.
4745         * emit-rtl.c (get_mem_attrs): Likewise.
4746         (get_reg_attrs): Likewise.
4747         (start_sequence): Likewise.
4748         (init_emit): Likewise.
4750         * dwarf2out.c (new_cfi): Likewise.
4751         (queue_reg_save): Likewise.
4752         (dwarf2out_frame_init): Likewise.
4753         (new_loc_descr): Likewise.
4754         (find_AT_string): Likewise.
4755         (new_die): Likewise.
4756         (add_var_loc_to_decl): Likewise.
4757         (clone_die): Likewise.
4758         (clone_as_declaration): Likewise.
4759         (break_out_comdat_types): Likewise.
4760         (new_loc_list): Likewise.
4761         (loc_descriptor): Likewise.
4762         (add_loc_descr_to_each): Likewise.
4763         (add_const_value_attribute): Likewise.
4764         (tree_add_const_value_attribute): Likewise.
4765         (add_comp_dir_attribute): Likewise.
4766         (add_name_and_src_coords_attributes): Likewise.
4767         (lookup_filename): Likewise.
4768         (store_vcall_insn): Likewise.
4769         (dwarf2out_init): Likewise.
4771         * dbxout.c (dbxout_init): Likewise.
4773         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4775         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4777         * config/score/score7.c (score7_output_external): Likewise.
4779         * config/score/score3.c (score3_output_external): Likewise.
4781         * config/s390/s390.c (s390_init_machine_status): Likewise.
4783         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4784         (rs6000_init_machine_status): Likewise.
4785         (output_toc): Likewise.
4787         * config/pa/pa.c (pa_init_machine_status): Likewise.
4788         (get_deferred_plabel): Likewise.
4790         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4792         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4794         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4796         * config/mep/mep.c (mep_init_machine_status): Likewise.
4797         (mep_note_pragma_flag): Likewise.
4799         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4801         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4803         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4805         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4806         (i386_pe_maybe_record_exported_symbol): Likewise.
4808         * config/i386/i386.c (get_dllimport_decl): Likewise.
4809         (ix86_init_machine_status): Likewise.
4810         (assign_386_stack_local): Likewise.
4812         * config/frv/frv.c (frv_init_machine_status): Likewise.
4814         * config/darwin.c (machopic_indirection_name): Likewise.
4816         * config/cris/cris.c (cris_init_machine_status): Likewise.
4818         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4820         * config/avr/avr.c (avr_init_machine_status): Likewise.
4822         * config/arm/arm.c (arm_init_machine_status): Likewise.
4824         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4825         (alpha_need_linkage): Likewise.
4826         (alpha_use_linkage): Likewise.
4828         * cgraph.c (cgraph_allocate_node): Likewise.
4829         (cgraph_create_edge_1): Likewise.
4830         (cgraph_create_indirect_edge): Likewise.
4831         (cgraph_add_asm_node): Likewise.
4833         * cfgrtl.c (init_rtl_bb_info): Likewise.
4835         * cfgloop.c (alloc_loop): Likewise.
4836         (rescan_loop_exit): Likewise.
4838         * cfg.c (init_flow): Likewise.
4839         (alloc_block): Likewise.
4840         (unchecked_make_edge): Likewise.
4842         * c-parser.c (c_parse_init): Likewise.
4843         (c_parse_file): Likewise.
4845         * c-decl.c (bind): Likewise.
4846         (record_inline_static): Likewise.
4847         (push_scope): Likewise.
4848         (make_label): Likewise.
4849         (lookup_label_for_goto): Likewise.
4850         (finish_struct): Likewise.
4851         (finish_enum): Likewise.
4852         (c_push_function_context): Likewise.
4854         * bitmap.c (bitmap_element_allocate): Likewise.
4855         (bitmap_gc_alloc_stat): Likewise.
4857         * alias.c (record_alias_subset): Likewise.
4858         (init_alias_analysis): Likewise.
4860 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
4862         * fold-const.c (fold_comparison): Remove redundant parenthesis.
4863         * tree-inline.c (expand_call_inline): Pass translated return value of
4864         cgraph_inline_failed_string to diagnostic function.
4866 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
4867             Shujing Zhao  <pearly.zhao@oracle.com>
4869         PR c/37724
4870         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4871         implicit bad conversions is initialization.
4872         (error_init): Use gmsgid instead of msgid for argument name and change
4873         the call for error.
4874         (pedwarn_init): Use gmsgid instead of msgid for argument name and
4875         change the call for pedwarn.
4876         (warning_init): Use gmsgid instead of msgid for argument name and
4877         change the call for warning.
4879 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
4881         * config/mips/mips-protos.h (mips_print_operand): Delete.
4882         (mips_print_operand_address): Delete.
4883         * config/mips/mips.h (mips_print_operand_punct): Delete.
4884         (PRINT_OPERAND): Delete.
4885         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4886         (PRINT_OPERAND_ADDRESS): Delete.
4887         * config/mips/mips.c (mips_print_operand_punct): Make static.
4888         (mips_print_operand_address): Make static.
4889         (mips_print_operand): Make static.  Call
4890         mips_print_operand_punct_valid_p.
4891         (mips_print_operand_punct_valid_p): New function.
4892         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4893         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4895 2010-06-07  Jan Hubicka  <jh@suse.cz>
4897         PR middle-end/44454
4898         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
4899         are allocated.
4901 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4903         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
4904         name of RECORD.
4906 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4908         * doc/sourcebuild.texi (Effective-Target Keywords, Other
4909         attributes): Document gas.
4911 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
4913         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
4914         <TYPE_LEA>: Split instruction.
4915         <default>: Remove alternative 2 handling.
4916         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
4917         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
4918         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
4920         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
4921         (ashift_zext lea splitter): Use DImode for multiplication.
4923         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
4924         to generate addition.
4926 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4928         * common.opt (fira-verbose): Use Var.
4929         (fpcc-struct-return): Use Init instead of VarExists.
4930         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
4931         toplev.c.
4932         * flags.h (flag_signed_char, flag_short_enums,
4933         flag_pcc_struct_return, flag_ira_verbose,
4934         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
4935         * toplev.c (flag_detailed_statistics, flag_signed_char,
4936         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
4937         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
4938         * toplev.h (flag_crossjumping, flag_if_conversion,
4939         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
4940         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
4941         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
4942         flag_cprop_registers, time_report, flag_ira_loop_pressure,
4943         flag_ira_coalesce, flag_ira_move_spills,
4944         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
4946 2010-06-07  Jan Hubicka  <jh@suse.cz>
4948         * df-core.c (df_analyze_problem): Do verification after allocation.
4950         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
4951         (df_lr_alloc): Initialize problem data; move bitmaps to
4952         lr_bitmaps obstack.
4953         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
4954         (df_lr_verify_solution_start): Do not initialize problem data;
4955         allocate bitmaps in lr_bitmaps.
4956         (df_lr_verify_solution_end): Do not free problem data.
4958 2010-06-07  Jan Hubicka  <jh@suse.cz>
4960         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
4961         if caller is noreturn.
4962         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
4963         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
4964         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
4965         * ipa-pure-const.c (check_decl): Add IPA parameter.
4966         (state_from_flags): New function.
4967         (better_state, worse_state): New functions.
4968         (check_call): When in IPA mode, do not care about callees.
4969         (check_load, check_store): Update.
4970         (check_ipa_load, check_ipa_store): New.
4971         (check_stmt): When in IPA mode, use IPA checkers.
4972         (analyze_function): Use state_from_flags.
4973         (propagate): Check indirect edges and references.
4975 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
4977         PR rtl-optimization/44404
4978         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
4979         of count_occurrences to see if it's safe to modify mem_insn.
4981 2010-06-07  Richard Guenther  <rguenther@suse.de>
4983         * gimplify.c (gimplify_cleanup_point_expr): For empty body
4984         and EH-only cleanup drop the cleanup instead of inserting it
4985         unconditionally.
4987 2010-06-07  Ira Rosen  <irar@il.ibm.com>
4989         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
4990         documentation.
4991         * targhooks.c (default_builtin_vectorization_cost): New function.
4992         * targhooks.h (default_builtin_vectorization_cost): Declare.
4993         * target.h (enum vect_cost_for_stmt): Define.
4994         (builtin_vectorization_cost): Change argument and comment.
4995         * tree-vectorizer.h: Remove cost model macros.
4996         * tree-vect-loop.c: Include target.h.
4997         (vect_get_cost): New function.
4998         (vect_estimate_min_profitable_iters): Replace cost model macros with
4999         calls to vect_get_cost.
5000         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5001         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5002         default implementation.
5003         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5004         calls to target hook builtin_vectorization_cost.
5005         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5006         Likewise.
5007         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5008         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5009         implementation to return costs.
5010         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5011         * config/spu/spu.h: Remove vectorizer cost model macros.
5012         * config/i386/i386.h: Likewise.
5013         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5014         a call to target hook builtin_vectorization_cost.
5016 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
5018         PR target/44319
5019         * config/i386/i386.c (override_options): Turn zee pass on for level 2
5020         and above and defer till target is known.
5021         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5022         turn off otherwise.
5024 2010-05-25  Jan Hubicka  <jh@suse.cz>
5026         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5027         (df_compact_blocks): Likewise.
5028         * df.h (struct df): Turn hardware_regs_used,
5029         regular_block_artificial_uses, eh_block_artificial_uses,
5030         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5031         bitmap_head.
5032         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5033         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5034         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5035         df_scan_blocks, df_insn_delete, df_insn_rescan,
5036         df_insn_rescan_debug_internal, df_insn_rescan_all,
5037         df_process_deferred_rescans, df_process_deferred_rescans,
5038         df_notes_rescan, df_get_call_refs, df_get_call_refs,
5039         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5040         df_record_entry_block_defs, df_record_exit_block_uses,
5041         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5042         df_scan_verify): Update.
5044 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
5046         PR c++/44188
5047         * c-common.c (is_typedef_decl): Move this definition ...
5048         * tree.c (is_typedef_decl): ... here.
5049         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5050         * c-common.h (is_typedef_decl): Move this declaration ...
5051         * tree.h (is_typedef_decl): ... here.
5052         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5053         * dwarf2out.c (is_naming_typedef_decl): New function.
5054         (gen_tagged_type_die): Split out of ...
5055         (gen_type_die_with_usage): ... this function. When an anonymous
5056         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5057         is emitted for the typedef.
5058         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5059         anonymous tagged types.
5061 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5063         PR c/20000
5064         * c-decl.c (grokdeclarator): Delete warning.
5066 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5068         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5069         newly built CALL_EXPR.
5070         * tree-profile.c (tree_profiling): Don't profile functions produced
5071         for built-in stuff.
5073 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
5075         PR bootstrap/44427
5076         PR bootstrap/44428
5077         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5078         endianness-independent.
5080 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
5082         * c-common.c: Move to c-family/.
5083         * c-common.def: Likewise.
5084         * c-common.h: Likewise.
5085         * c-cppbuiltin.c: Likewise.
5086         * c-dump.c: Likewise.
5087         * c-format.c: Likewise.
5088         * c-format.h : Likewise.
5089         * c-gimplify.c: Likewise.
5090         * c-lex.c: Likewise.
5091         * c-omp.c: Likewise.
5092         * c.opt: Likewise.
5093         * c-opts.c: Likewise.
5094         * c-pch.c: Likewise.
5095         * c-ppoutput.c: Likewise.
5096         * c-pragma.c: Likewise.
5097         * c-pragma.h: Likewise.
5098         * c-pretty-print.c: Likewise.
5099         * c-pretty-print.h: Likewise.
5100         * c-semantics.c: Likewise.
5101         * stub-objc.c: Likewise.
5103         * gengtype.c (get_file_langdir): Special-case files in c-family/.
5104         (get_output_file_with_visibility): Fix name for c-common.h.
5105         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5107         * c-tree.h: Update include path for moved files.
5108         * c-lang.c: Likewise.
5109         * c-lang.h: Likewise.
5110         * c-parser.c: Likewise.
5111         * c-convert.c: Likewise.
5112         * c-decl.c: Likewise.
5113         * c-objc-common.c: Likewise.
5114         * configure.ac: Make sure c-family/ exists in the build directory.
5115         * configure: Regenerate.
5116         * Makefile.in: Update paths for moved files.  Regroup files per
5117         location and update dependencies.  Move generated_files down after
5118         ALL_GTFILES_H.
5120         * config/spu/spu-c.c: Update paths for moved files.
5121         * config/mep/mep-pragma.c: Likewise.
5122         * config/darwin-c.c: Likewise.
5123         * config/i386/msformat-c.c: Likewise.
5124         * config/i386/i386-c.c: Likewise.
5125         * config/avr/avr-c.c: Likewise.
5126         * config/sol2-c.c: Likewise.
5127         * config/ia64/ia64-c.c: Likewise.
5128         * config/rs6000/rs6000-c.c: Likewise.
5129         * config/arm/arm.c: Likewise.
5130         * config/arm/arm-c.c: Likewise.
5131         * config/h8300/h8300.c: Likewise.
5132         * config/v850/v850-c.c: Likewise.
5134         * config/t-darwin: Fix dependencies for moved files.
5135         * config/t-sol2: Fix dependencies for moved files.
5136         * config/mep/t-mep: Fix dependencies for moved files.
5137         * config/ia64/t-ia64: Fix dependencies for moved files.
5138         * config/rs6000/t-rs6000: Fix dependencies for moved files.
5139         * config/v850/t-v850: Fix dependencies for moved files.
5140         * config/v850/t-v850e: Fix dependencies for moved files.
5142         * config/m32c/m32c-pragma.c
5144         * po/exgettext: Look in c-family/ also.
5146 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5148         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5149         (mark_control_dependent_edges_necessary): Call it instead of marking
5150         the last statement manually.
5151         (propagate_necessity): Likewise.
5153 2010-06-05  Jan Hubicka  <jh@suse.cz>
5155         * basic-block.h (compute_dominance_frontiers): Updated.
5156         (compute_idf): Likewise.
5158         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5159         for dominance frontiers.
5160         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5161         (insert_updated_phi_nodes_for): Likewise.
5162         (update_ssa): Likewise.
5163         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5164         (compute_dominance_frontiers): Likewise.
5165         (compute_idf): Likewise.
5166         * df-problems.c (df_md_local_compute): Likewise.
5168 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
5170         * target.h (struct gcc_target): Add memory_move_cost field.
5171         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5172         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5173         * targhooks.c (default_memory_move_cost): New function.
5174         * targhooks.h (default_memory_move_cost): Declare function.
5175         * reload.h (memory_move_cost): Declare.
5176         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5177         * reginfo.c (memory_move_cost): New function.
5178         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5179         * ira.h (ira_memory_move_cost): Update comment.
5180         * ira.c: (ira_memory_move_cost): Update comment.
5181         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5182         with memory_move_cost.
5183         * postreload.c (reload_cse_simplify_set): (Ditto.).
5184         * reload1.c (choose_reload_regs): (Ditto.).
5185         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5186         (MEMORY_MOVE_COST):  Revise documentation.
5188         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5189         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5190         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5191         type of 'in' argument to bool.
5192         (TARGET_MEMORY_MOVE_COST): Define.
5194 2010-06-05  Jan Hubicka  <jh@suse.cz>
5196         * ipa-pure-const.c (propagate): Fix typo in handling of functions
5197         that cannot return.  Be more careful when merging the results with
5198         previously known ones.
5200 2010-06-05  Matthias Klose  <doko@ubuntu.com>
5202         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5203         function to add the -iplugindir option.
5204         (find_plugindir_spec_function): Add new declaration and function.
5205         (static_spec_func): Use it for "find-plugindir".
5207 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
5209         PR c++/44361
5210         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5211         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5212         statement expression.
5214 2010-06-05  Jan Hubicka  <jh@suse.cz>
5216         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5217         (df_rd_problem_data): Convert sparse_invalidated_by_call,
5218         dense_invalidated_by_call to bitmap head.
5219         (df_rd_alloc, df_rd_bb_local_compute_process_def,
5220         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5221         df_rd_start_dump, df_lr_verify_transfer_functions,
5222         df_live_verify_transfer_functions, df_chain_create_bb,
5223         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5224         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5225         df_simulate_one_insn_forwards, df_md_alloc,
5226         df_md_bb_local_compute_process_def,
5227         df_md_bb_local_compute_process_def, df_md_local_compute,
5228         df_md_transfer_function df_md_free): Update.
5230 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
5232         PR c/44322
5233         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5234         target type for ADDR_EXPR; require no changes to qualifiers except
5235         for function types.
5236         * c-tree.h (c_build_type_variant): Remove.
5238 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5240         * genautomata.c (get_excl_set): Do work per element, not per char.
5241         (check_presence_pattern_sets): Similar.
5242         (check_absence_pattern_sets): Similar.
5244 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5246         * genautomata.c (curr_state_pass_num): Delete.
5247         (min_issue_delay_pass_states): Delete.
5248         (min_issue_delay): Delete.
5249         (initiate_min_issue_delay_pass_states): Delete.
5250         (output_min_issue_delay_table): Compute min_issue_delay_vect
5251         using a breadth-first search variant.
5252         (output_tables): Don't call initiate_min_issue_delay_pass_states.
5254 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5256         PR boostrap/44421
5257         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5258         (df_byte_lr_bb_local_compute): Likewise.
5260 2010-06-03  Jason Merrill  <jason@redhat.com>
5262         Implement noexcept operator (5.3.7)
5263         * c-common.c (c_common_reswords): Add noexcept.
5264         * c-common.h (enum rid): Add RID_NOEXCEPT.
5266 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
5268         * config/darwin-driver.c (darwin_default_min_version): Use
5269         GCC-specific formats in diagnostics.
5270         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5271         diagnostics.
5272         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5273         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5274         eval_spec_function, handle_braces, process_brace_body, main,
5275         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5276         getenv_spec_function, compare_version_strings,
5277         version_compare_spec_function): Use GCC-specific formats in
5278         diagnostics.
5280 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5282         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5283         that operand 0 and operand 1 are equal.
5284         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5285         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5286         and operand 1 are equal.
5287         <default>: Ditto.  Remove ??? comment.
5288         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5289         and operand 1 are equal.
5290         <default>: Ditto.  Remove ??? comment.
5291         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5292         are equal.
5293         (*add<mode>_4) <default>: Ditto.
5294         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5296 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
5298         * config/i386/i386-protos.h (ix86_print_operand): Declare.
5299         * config/i386/i386.c (ix86_print_operand): Make non-static.
5300         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5301         * output.h (output_operand): Declare.
5302         * final.c (output_operand): Make non-static.
5304 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
5306         PR rtl-optimization/44013
5307         * sched-deps.c (add_dependence_list_and_free): Don't free lists
5308         when processing debug insns.
5310         PR debug/41371
5311         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5312         recursing.  Check that recursion is bounded.  Rename inner var
5313         to avoid hiding incoming argument.
5315 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5317         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5318         operands[2] == 255.
5319         (*addqi_3): Ditto.
5320         (*addqi_4): Ditto.
5321         (*addqi_5): Ditto.
5322         (*addqi_ext_1_rex64): Ditto.
5323         (*addqi_ext_1): Ditto.
5325         (*addqi_4): Check for incdec_operand in QImode.
5327         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5328         using SWI mode iterator.
5329         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5330         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5331         mode iterator.
5332         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5333         using SWI mode iterator.
5335 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5337         PR c/25880
5338         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5339         * c-format.c (gcc_diag_flag_specs): Add hash.
5340         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5341         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5342         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5343         pp_c_cv_qualifiers. Handle qualifiers spelling here.
5344         (pp_c_type_qualifier_list): Call the function above.
5345         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5346         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5347         (WARN_FOR_QUALIFIERS): New macro.
5348         (convert_for_assignment): Use it.
5350 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
5352         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5354 2010-06-04  Jan Hubicka  <jh@suse.cz>
5356         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5357         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5358         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5359         DF_BYTE_LR_OUT): Update for embedded bitmaps.
5360         * fwprop.c (single_def_use_enter_block): Likewise.
5361         * ddg.c (create_ddg_dep_from_intra_loop_link,
5362         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5363         * loop-iv.c (latch_dominating_def): Likewise.
5364         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5365         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5366         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5367         df_rd_transfer_function, df_rd_top_dump,
5368         df_rd_bottom_dump): Update.
5369         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5370         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5371         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5372         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5373         df_lr_verify_solution_start, df_lr_verify_solution_end,
5374         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5375         df_live_free_bb_info, df_live_alloc, df_live_reset,
5376         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5377         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5378         df_live_verify_solution_start, df_live_verify_solution_end,
5379         df_live_verify_transfer_functions, df_chain_create_bb,
5380         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5381         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5382         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5383         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5384         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5385         df_byte_lr_transfer_function, df_byte_lr_top_dump,
5386         df_byte_lr_bottom_dump, df_create_unused_note,
5387         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5388         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5389         df_md_transfer_function, df_md_init, df_md_confluence_0,
5390         df_md_confluence_n,
5391         df_md_top_dump, df_md_bottom_dump): Update.
5392         (struct df_lr_problem_data): Embedd bitmap headers.
5394 2010-06-04  Jan Hubicka  <jh@suse.cz>
5396         * dce.c (dce_process_block): Do not re-scan already marked
5397         instructions.
5399 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
5401         PR rtl-optimization/39871
5402         PR rtl-optimization/40615
5403         PR rtl-optimization/42500
5404         PR rtl-optimization/42502
5405         * ira.c (init_reg_equiv_memory_loc: New function.
5406         (ira): Call it twice.
5407         * reload.h (calculate_elim_costs_all_insns): Declare.
5408         * ira-costs.c: Include "reload.h".
5409         (regno_equiv_gains): New static variable.
5410         (init_costs): Allocate it.
5411         (finish_costs): Free it.
5412         (ira_costs): Call calculate_elim_costs_all_insns.
5413         (find_costs_and_classes): Take estimated elimination costs
5414         into account.
5415         (ira_adjust_equiv_reg_cost): New function.
5416         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5417         * reload1.c (init_eliminable_invariants, free_reg_equiv,
5418         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5419         (elim_bb): New static variable.
5420         (reload): Move code out of here into init_eliminable_invariants and
5421         free_reg_equiv.  Call them.
5422         (calculate_elim_costs_all_insns): New function.
5423         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
5424         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
5425         but call note_reg_elim_costly if we turned a valid memory address
5426         into an invalid one.
5427         * Makefile.in (ira-costs.o): Depend on reload.h.
5429 2010-06-04  Julian Brown  <julian@codesourcery.com>
5431         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5432         for pool ranges.
5434 2010-06-04  Richard Guenther  <rguenther@suse.de>
5436         PR lto/41584
5437         * cgraph.h (struct varpool_node): Add lto_file_data field.
5438         * lto-cgraph.c (input_varpool_node): Initialize it.
5440 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5442         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5443         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5444         predicate in "type" attribute calculation.
5445         (*addsi_1_zext): Ditto.
5446         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5447         (*addsi_2_zext): Ditto.
5448         (*add<mode>_3): Ditto.
5449         (*addsi_3_zext): Ditto.
5450         (*add<mode>_5): Ditto.
5452 2010-06-03  Jan Hubicka  <jh@suse.cz>
5454         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5455         of bitmap_bit_p.
5456         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5458 2010-06-03  Jan Hubicka  <jh@suse.cz>
5460         * df-problems.c (df_create_unused_note, df_note_bb_compute):
5461         micro-optimize the checks when to add new note.
5463 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
5465         * final.c (output_asm_insn): Call
5466         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
5467         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
5468         (output_address): Call targetm.asm_out.print_operand_address.
5469         Update comments.
5470         * target.h (struct gcc_target): Add print_operand,
5471         print_operand_address, and print_operand_punct_valid_p fields.
5472         * targhooks.h (default_print_operand): Declare.
5473         (default_print_operand_address): Declare.
5474         (default_print_operand_punct_valid_p): Declare.
5475         * targhooks.c (default_print_operand): Define.
5476         (default_print_operand_address): Define.
5477         (default_print_operand_punct_valid_p): Define.
5478         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5479         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5480         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5481         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5482         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5483         * vmsdbgout.c (addr_const_to_string): Update comment.
5484         * config/i386/i386.c (print_operand): Rename to...
5485         (ix86_print_operand): ...this.  Make static.
5486         (print_operand_address): Rename to...
5487         (ix86_print_operand_address): ...this.  Make static.  Call
5488         ix86_print_operand instead of PRINT_OPERAND.
5489         (ix86_print_operand_punct_valid_p): New function.
5490         (TARGET_PRINT_OPERAND): Define.
5491         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5492         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5493         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5494         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5495         (PRINT_OPERAND): Delete.
5496         (PRINT_OPERAND_ADDRESS): Delete.
5497         * config/i386/i386-protos.h (print_operand): Delete prototype.
5498         (print_operand_address): Delete prototype.
5500 2010-06-03  Richard Guenther  <rguenther@suse.de>
5502         PR tree-optimization/44403
5503         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5504         Preserve pointer qualifiers.
5505         (vect_create_data_ref_ptr): Likewise.
5507 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5509         PR c++/44294
5510         * defaults.h (MAX_FIXED_MODE_SIZE): New.
5512         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5514 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
5516         PR debug/44375
5517         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5518         return false if merging the bbs would lead to goto_locus
5519         location being lost from the IL.
5521 2010-06-03  Jan Hubicka  <jh@suse.cz>
5522             Jakub Jelinek  <jakub@redhat.com>
5524         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5525         set->regs[i] is NULL or has just one entry.
5527 2010-06-03  Jan Hubicka  <jh@suse.cz>
5529         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5530         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5532 2010-06-03  Paul Brook  <paul@codesourcery.com>
5534         * config/arm/arm.c (FL_TUNE): Define.
5535         (arm_default_cpu, arm_cpu_select): Remove.
5536         (all_cores): Populate core field.
5537         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5538         (arm_find_cpu): New function.
5539         (arm_handle_option): Lookup cpu/architecture names.
5540         (arm_override_options): Cleanup mcpu/march/mtune handling.
5541         (arm_file_start): Ditto.
5543 2010-06-03  Alan Modra  <amodra@gmail.com>
5545         PR target/44169
5546         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5547         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5548         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
5549         (rs6000_emit_load_toc_table): Likewise.
5551 2010-06-02  Jan Hubicka  <jh@suse.cz>
5553         * passes.c (init_optimization_passes): Put ipa reference
5554         after ipa pure-const.
5556 2010-06-02  Jan Hubicka  <jh@suse.cz>
5558         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5559         calls_read_all and calls_write_all.
5560         (get_reference_optimization_summary): Fix formatting.
5561         (is_proper_for_analysis): Check that decl is not readonly.
5562         (propagate_bits): Check CONST/PURE/noreturn flags.
5563         (ipa_init): Move all_module_statics to optimization_summary_obstack.
5564         (analyze_function): Ignore indirect edges.
5565         (copy_global_bitmap): For all module statics, do nothing.
5566         (generate_summary): Do not print calls_read_all/calls_write_all.
5567         (read_write_all_from_decl): Take node as argument; check
5568         cgraph_node_cannot_return.
5569         (propagate): Reorganize read_all/write_all computation;
5570         check indirect edges; check ecf flags; use all_module_statics
5571         in the results; do not free all_module_statics.
5572         (stream_out_bitmap): Handle all_module_statics.
5573         (ipa_reference_write_optimization_summary): Likewise; use
5574         varpool/cgraph encoders to get boundaries.
5575         (ipa_reference_read_optimization_summary): Read in all_module_statics;
5576         use it when possible.
5578 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5580         PR target/44218
5581         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5582         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
5584         * doc/extend.texi (powerpc builtins): Document vec_recip,
5585         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
5587         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
5588         (rs6000_emit_swrsqrt): Ditto.
5589         (rs6000_emit_swdivsf): Delete.
5590         (rs6000_emit_swdivdf): Ditto.
5591         (rs6000_emit_swrsqrtsf): Ditto.
5593         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
5594         describe the reciprocal estimate support for each type.
5595         (recip_options): Map -mrecip=<opt> into option bits.
5596         (gen_2arg_fn_t): New typedef for binary rtx gen function.
5597         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
5598         reciprocal estimate instructions.
5599         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
5600         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
5601         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
5602         cost information if -mdebug=cost or -mdebug=reg.
5603         (rs6000_override_options): Set -mrecip-precision for power6, and
5604         power7 machines.  If -mvsx or -mdfp, enable various options that
5605         came in previous instruction set ISAs, unless the option was
5606         explicitly disabled by the command line option.  Parse
5607         -mrecip=<opt> options.
5608         (rs6000_builtin_vectorized_function): Add support for vectorizing
5609         the reciprocal estimate builtins and expansions.
5610         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
5611         (bdesc_2arg): Add reciprocal estimate builtins.
5612         (bdesc_1arg): Add reciprocal square root estimate builtins.
5613         (rs6000_expand_builtin): Rewrite to use a switch statement,
5614         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
5615         (rs6000_init_builtins): Create declarations for reciprocal
5616         estimate builtins.
5617         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
5618         sized, prefer traditional floating point registers, if integer
5619         vector types, prefer altivec registers.  Don't actually look at
5620         the memory address any more.
5621         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
5622         builtins.
5623         (rs6000_load_constant_and_splat): New helper function to load up
5624         the constant for reciprocal estimate instructions.
5625         (rs6000_emit_madd): New helper function for generating
5626         multiply/add type instructions, based on the current switches.
5627         (rs6000_emit_msub): Ditto.
5628         (rs6000_emit_mnsub): Ditto.
5629         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
5630         replace a divide with a reciprocal estimate and fixup, adding
5631         support for machines with high precision and vectors.
5632         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
5633         low precision machines.
5634         (rs6000_emit_swdiv): New common function to be called to replace a
5635         division with reciprocal estimate and fixup.
5636         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
5637         for double and vector types.  Add support for high precision machines.
5639         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
5640         the reciprocal estimate instructions can be generated.
5641         (TARGET_FRE): Ditto.
5642         (TARGET_FRSQRTES): Ditto.
5643         (TARGET_FRSQRTE): Ditto.
5644         (RS6000_RECIP_*): New macros for reciprocal estimate support.
5646         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
5647         square root estimate on vectors.
5648         (re<mode>2): New insn for reciprocal division estimate on vectors.
5650         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
5651         New builtin.
5652         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
5653         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
5654         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
5655         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
5656         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
5657         (RS6000_BUILTIN_RSQRT): Ditto.
5658         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
5659         floating point builtin.
5661         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5662         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
5663         __RECIP_PRECISION__ based on the command line switches.
5664         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
5666         * config/rs6000/rs6000.opt (-mrecip): Document add support for
5667         replacing division instructions with reciprocal estimate and fixup.
5668         (-mrecip=<opt>): New option.
5669         (-mrecip-precision): Ditto.
5671         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
5672         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
5673         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
5674         precision scalar.
5676         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
5677         (UNSPEC_VREFP): Ditto.
5678         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
5679         conterparts with regard to support of -mno-fused-madd and -ffast-math.
5680         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
5681         reciprocal estimate instructions to be generated.
5682         (altivec_vrefp): Ditto.
5684         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
5685         estimate support.
5686         (rreg): New mode attribute for reciprocal estimate support.
5687         (recip<mode>3): New insn for division using reciprocal estimate
5688         and fixup builtins.
5689         (divide define_split): New define_split to convert floating point
5690         division to use reciprocal estimate if the user used the
5691         appropriate options and the split is run when we can add new
5692         pseudo registers for the fixup.
5693         (rsqrt<mode>2): New insn for reciprocal square root support.
5694         (recipsf3): Move into recip<mode>3.
5695         (recipdf3): Ditto.
5696         (fres): Use TARGET_FRES.
5697         (rsqrtsf2): Move into rsqrt<mode>2.
5698         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
5699         (copysignsf3): Add support for VSX.
5700         (fred): Use TARGET_FRE.
5701         (fred_fpr): Ditto.
5702         (rsqrtdf_internal1): New function for frsqrte instruciton.
5704         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
5705         (vec_rsqrt): Ditto.
5707 2010-06-03  Richard Guenther  <rguenther@suse.de>
5709         PR middle-end/44291
5710         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
5711         (set_user_assembler_libfunc): Likewise.
5713 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5715         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
5716         defaults.h.
5717         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
5718         to defaults.h
5719         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
5720         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
5721         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
5722         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
5723         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
5724         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
5725         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
5726         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
5727         * defaults.h: Updated for above mentioned changes.
5729 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
5731         * c-common.c: Remove header include of tm_p.h.
5732         * Makefile.in (c-common.o): Remove TM_P_H dependency.
5734 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
5736         * tree.h (struct tree_decl_map): New type.
5737         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
5738         (tree_decl_map_hash): New prototype.
5739         (debug_expr_for_decl, value_expr_for_decl): Change into
5740         tree_decl_map hashtab from tree_map.
5741         (init_ttree): Adjust initialization.
5742         (tree_decl_map_hash): New function.
5743         (decl_debug_expr_lookup, decl_debug_expr_insert,
5744         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
5746 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5748         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
5749         linker emulations.
5750         * configure: Regenerate.
5751         * config.in: Regenerate.
5753         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
5754         (X86_64_EMULATION): Define.
5755         (TARGET_LD_EMULATION): Use them.
5757         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
5758         (SPARC64_EMULATION): Define.
5759         (LINK_ARCH_SPEC): Use them.
5761 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5763         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
5764         smallest_mode_for_size for computing the precision types of new
5765         graphite IVs.  Do not call lang_hooks.types.type_for_size.
5767 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5769         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
5770         information.
5771         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
5773 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5775         PR middle-end/44363
5776         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
5777         return false instead.
5779 2010-06-02  Jan Hubicka  <jh@suse.cz>
5781         PR middle-end/44295
5782         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
5783         create new cgraph node to check callee.
5785 2010-06-02  Richard Guenther  <rguenther@suse.de>
5787         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5789 2010-06-02  Richard Guenther  <rguenther@suse.de>
5791         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
5792         (lto_wrapper_cleanup): ... this.  Do not exit.
5793         (fatal): Adjust.  Exit here.
5794         (fatal_perror): Likewise.
5795         (fatal_signal): New function.
5796         (main): Set up signal handlers to cleanup temporary files.
5797         * Makefile.in (lto-wrapper.o): Adjust dependencies.
5799 2010-06-02  Richard Guenther  <rguenther@suse.de>
5801         PR tree-optimization/44377
5802         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5804 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5806         * config/s390/2097.md (z10_fhex): Remove insn reservation.
5807         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5808         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5809         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5810         instruction.
5811         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5813 2010-06-02  Jan Hubicka  <jh@suse.cz>
5815         * bitmap.c (bitmap_descriptor): Add search_iter.
5816         (bitmap_find_bit): Increment it.
5817         (print_statistics): Print it.
5819 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
5821         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5822         instead of gimple_build_call_vec.  Delete unnecessary local variable.
5824 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5826         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5827         change from yesterday.
5829 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5831         * c-ada-spec.c: Clean up redundant includes.
5833 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
5835         * gimplify.c: Do not include except.h and optabs.h.
5836         (gimplify_body): Do not initialize RTL profiling.
5837         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5838         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5839         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5840         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5841         langhooks.h.
5843         * tree-pretty-print.h: Include pretty-print.h.
5844         * gimple-pretty-print.h: Include pretty-print.h.
5846         * tree-pretty-print.c: Do not include diagnostic.h.
5847         * tree-vrp.c: Likewise.
5848         * tree-tailcall.c: Likewise
5849         * tree-scalar-evolution.c: Likewise
5850         * tree-ssa-dse.c: Likewise
5851         * tree-chrec.c: Likewise
5852         * tree-ssa-sccvn.c: Likewise
5853         * tree-ssa-copyrename.c: Likewise
5854         * tree-nomudflap.c: Likewise
5855         * tree-call-cdce.c: Likewise
5856         * tree-stdarg.c: Likewise
5857         * tree-ssa-math-opts.c: Likewise
5858         * tree-nrv.c: Likewise
5859         * tree-ssa-sink.c: Likewise
5860         * tree-browser.c: Likewise
5861         * tree-ssa-loop-ivcanon.c: Likewise
5862         * tree-ssa-loop.c: Likewise
5863         * tree-parloops.c: Likewise
5864         * tree-ssa-address.c: Likewise
5865         * tree-ssa-ifcombine.c: Likewise
5866         * tree-if-conv.c: Likewise
5867         * tree-data-ref.c: Likewise
5868         * tree-affine.c: Likewise
5869         * tree-ssa-phiopt.c: Likewise
5870         * tree-ssa-coalesce.c: Likewise
5871         * tree-ssa-pre.c: Likewise
5872         * tree-ssa-live.c: Likewise
5873         * tree-predcom.c: Likewise
5874         * tree-ssa-forwprop.c: Likewise
5875         * tree-ssa-dce.c: Likewise
5876         * tree-ssa-ter.c: Likewise
5877         * tree-ssa-loop-prefetch.c: Likewise
5878         * tree-optimize.c: Likewise
5879         * tree-ssa-phiprop.c: Likewise
5880         * tree-object-size.c: Likewise
5881         * tree-outof-ssa.c: Likewise
5882         * tree-ssa-structalias.c: Likewise
5883         * tree-switch-conversion.c: Likewise
5884         * tree-ssa-reassoc.c: Likewise
5885         * tree-ssa-operands.c: Likewise
5886         * tree-vectorizer.c: Likewise
5887         * tree-vect-data-refs.c: Likewise
5888         * tree-vect-generic.c: Likewise
5889         * tree-vect-stmts.c: Likewise
5890         * tree-vect-patterns.c: Likewise
5891         * tree-vect-slp.c: Likewise
5892         * tree-vect-loop.c: Likewise
5893         * tree-ssa-loop-ivopts.c: Likewise
5894         * tree-ssa-loop-im.c: Likewise
5895         * tree-ssa-loop-niter.c: Likewise
5896         * tree-ssa-loop-unswitch.c: Likewise
5897         * tree-ssa-loop-manip.c: Likewise
5898         * tree-ssa-loop-ch.c: Likewise
5899         * tree-dump.c: Likewise
5900         * tree-complex.c: Likewise
5902         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
5903         * tree-ssa-uninit.c: Likewise
5904         * tree-ssa-threadupdate.c: Likewise
5905         * tree-ssa-uncprop.c: Likewise
5906         * tree-ssa-ccp.c: Likewise
5907         * tree-ssa-dom.c: Likewise
5908         * tree-ssa-propagate.c: Likewise
5909         * tree-ssa-alias.c: Likewise
5910         * tree-dfa.c: Likewise
5911         * tree-cfgcleanup.c: Likewise
5912         * tree-sra.c: Likewise
5913         * tree-ssa-copy.c: Likewise
5914         * tree-ssa.c: Likewise
5915         * tree-profile.c: Likewise
5916         * tree-cfg.c: Likewise
5917         * tree-ssa-threadedge.c: Likewise
5918         * tree-vect-loop-manip.c: Likewise
5920         * tree-inline.c: Do not include diagnostic.h and expr.h.
5921         Include rtl.h.
5922         (copy_decl_for_dup_finish): Do not use NULL_RTX.
5924         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
5925         * tree-loop-distribution.c: Likewise.
5927 2010-06-01  Jan Hubicka  <jh@suse.cz>
5929         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
5931 2010-06-01  Jan Hubicka  <jh@suse.cz>
5933         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
5934         remove return value.
5935         (split_bbs_on_noreturn_calls) .... here.
5936         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
5937         * tree-flow.h (fixup_noreturn_call): New.
5939 2010-06-01  Jan Hubicka  <jh@suse.cz>
5941         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
5943 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
5945         * tree.h (build_nt_call_list): Delete.
5946         * tree.c (build_nt_call_list): Delete.
5948 2010-06-01  Jan Hubicka  <jh@suse.cz>
5950         * fwprop.c: Make emit-rtl.h include last.
5951         * rtlanal.c: Include emit-rtl.h.
5952         * genautomata.c: Output emit-rtl include into insn-automata.c
5953         * df-scan.c: Include emit-rtl.h.
5954         * haifa-sched.c: Indlude emit-rtl.h.
5955         * mode-switching.c: Indlude emit-rtl.h.
5956         * graph.c: Indlude emit-rtl.h.
5957         * sel-sched.c: Include emit-rtl.h.
5958         * sel-sched-ir.c: Include emit-rtl.h.
5959         * ira-build.c: Include emit-rtl.h.
5960         * emit-rtl.c: (first_insn, last_insn): Remove defines.
5961         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
5962         Move to emit-rtl.h.
5963         (set_new_first_and_last_insn, get_last_insn_anywhere,
5964         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
5965         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
5966         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
5967         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
5968         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
5969         Use accessor functions.
5970         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5971          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5972         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5973         mem_expr_equal_p): Move here from rtl.h.
5974         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
5975         Move here from emit-rtl.c; make inline.
5976         * cfglayout.h: Include emit-rtl.h.
5977         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5978          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5979         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5980         mem_expr_equal_p, get_insns, set_first-insn,
5981         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
5982         * reg-stack.c: Include emit-rtl.h.
5983         * dce.c: Likewise.
5985 2010-06-01  Jan Hubicka  <jh@suse.cz>
5987         * cgraph.h (tree_function_versioning): Update prototype.
5988         (cgraph_function_versioning): Update prototype.
5989         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
5990         bitmap.
5991         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
5992         (cgraph_materialize_clone, save_inline_function_body): Update use of
5993         tree_function_versioning.
5994         * tree-inline.c (copy_bb): Look for previous copied block to link
5995         after; fix debug output.
5996         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
5997         (copy_body): Likewise.
5998         (expand_call_inline): Update use of copy_body.
5999         (tree_function_versioning): Update use of copy body; accept
6000         blocks_to_copy and new_entry.
6002 2010-06-01  Jan Hubicka  <jh@suse.cz>
6004         * gegenrtl.c: Remove unnecesary prototypes.
6005         (gendecl): Remove.
6006         (gendef): Produce static inline.
6007         (gencode): Remove.
6008         (main): Do not decode parameters; generate header only.
6009         * Makefile.in (genrtl.c): Remove.
6011 2010-06-01  Jan Hubicka  <jh@suse.cz>
6013         * tree-switch-conversion.c (build_one_array): Make it readonly.
6015 2010-06-01  Richard Guenther  <rguenther@suse.de>
6017         * optabs.c (init_optabs): Guard all accesses to reinit.
6018         * ipa-pure-const.c (propagate): Fix another typo.
6019         * opts.c (common_handle_option): Split assignment to bool.
6020         * c-opts.c (c_common_handle_option): Likewise.
6022 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
6023             Matthew Gingell  <gingell@adacore.com>
6025         * doc/invoke.texi: Mention -fdump-ada-spec.
6026         * tree-dump.c (dump_files): Add ada-spec.
6027         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6028         * tree-pass.h (tree_dump_index): Add TDI_ada.
6029         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6030         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6031         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6032         * c-decl.c: Include c-ada-spec.h.
6033         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6034         functions.
6035         (c_write_global_declarations): Add handling of -fdump-ada-spec.
6036         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6037         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6038         * c-ada-spec.h, c-ada-spec.c: New files.
6040 2010-06-01  Richard Guenther  <rguenther@suse.de>
6042         PR lto/43853
6043         * ipa-pure-const.c (get_function_state): Hand back varying state
6044         if we do not have one.
6045         (has_function_state): New function.
6046         (duplicate_node_data): Adjust.
6047         (remove_node_data): Likewise.
6048         (pure_const_write_summary): Likewise.
6049         (propagate): Likewise.  Fix typo.
6051 2010-06-01  Jan Hubicka  <jh@suse.cz>
6053         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6054         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6055         (execute_all_ipa_transforms): Do not play with the states.
6057 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6059         * config/arm/t-linux-androideabi: New.
6060         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6062 2010-06-01  Jan Hubicka  <jh@suse.cz>
6064         * tree-inline.c (estimate_num_insns): For stdarg functions look
6065         into call statement to count cost of argument passing.
6067 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
6069         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6070         argument for fprintf.
6071         (ix86_output_addr_diff_elt): Likewise.
6072         (x86_function_profiler): Likewise.
6073         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6074         (LPREFIX): Likewise.
6075         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6077 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6079         PR target/44338
6080         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6081         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6082         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6083         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6084         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6085         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6086         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6087         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6088         TARGET_FUSED_MADD.
6090 2010-05-31  Jan Hubicka  <jh@suse.cz>
6092         * tree.h (tree_range_check_failed): Declare noreturn.
6094 2010-05-31  Jan Hubicka  <jh@suse.cz>
6096         * gimple.c (gimple_call_builtin_p): New function.
6097         * gimple.h (gimple_call_builtin_p): Declare.
6098         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6099         to exit.
6100         (execute_warn_function_return): BUILT_IN_RETURN is return.
6101         (split_critical_edges): Return edges are not critical.
6102         (is_ctrl_altering_stmt): Builtin_in_return is altering.
6103         (gimple_verify_flow_info): Handle built_in_return.
6104         (execute_warn_function_return): Handle built_in_return.
6105         * ipa-pure-const.c (check_call): Ignore builtin_return.
6107 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6109         PR middle-end/44337
6110         * expr.c (expand_assignment): Don't store anything for out-of-bounds
6111         array accesses with non-MEM.
6113         PR tree-optimization/44182
6114         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6115         newly needs to end a bb is followed by debug stmts, instead return
6116         true from the function at the end.
6117         (maybe_move_debug_stmts_to_successors): New function.
6118         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6120 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
6122         PR target/44161
6123         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6125 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
6127         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6128         for nested functions in non-optimized compilation.
6130 2010-05-31  Richard Guenther  <rguenther@suse.de>
6132         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6134 2010-05-30  Jan Hubicka  <jh@suse.cz>
6136         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6138 2010-05-30  Richard Guenther  <rguenther@suse.de>
6140         PR lto/42975
6141         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6142         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6143         no longer needed.
6145 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
6147         * config/darwin.c (output_objc_section_asm_op): Add comment.
6148         (name_needs_quotes): Add '_' to list of valid comment chars.
6149         (machopic_output_function_base_name): Remove unneeded quotes.
6150         (darwin_encode_section_info): Adjust asm whitespace.
6151         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6152         (ASM_OUTPUT_LOCAL): Ditto.
6153         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6154         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6155         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6157 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6159         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6160         RS6000_OUTPUT_BASENAME unconditionally.
6161         (rs6000_output_function_epilogue): Likewise.
6163 2010-05-30  Jan Hubicka  <jh@suse.cz>
6165         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6166         nodes.
6168 2010-05-30  Richard Guenther  <rguenther@suse.de>
6170         * tree-cfg.c (verify_gimple_assign_single): Implement
6171         verification for COND_EXPR rhs.
6173 2010-05-30  Jan Hubicka  <jh@suse.cz>
6175         * cgraph.h (cgraph_dump_file): Declare.
6176         * cgraphunit.c (cgraph_dump_file): Export.
6177         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6179 2010-05-30  Jan Hubicka  <jh@suse.cz>
6181         * dwarf2out.c (reference_to_unused,
6182         premark_types_used_by_global_vars_helper): Avoid creation of new
6183         varpool nodes.
6185 2010-05-30  Jan Hubicka  <jh@suse.cz>
6187         * cgraph.h (cgraph_node_cannot_return,
6188         cgraph_edge_cannot_lead_to_return): New functions.
6189         * cgraph.c (cgraph_node_cannot_return,
6190         cgraph_edge_cannot_lead_to_return): Use them.
6191         * ipa-pure-const.c (pure_const_names): New static var.
6192         (check_call): Handle calls not leading to return.
6193         (pure_const_read_summary): Dump info read.
6194         (propagate): Dump info about propagation process; ignore side effects
6195         of functions not leading to exit; fix handling of pure functions.
6197 2010-05-30  Jan Hubicka  <jh@suse.cz>
6199         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6200         for tail call epilogues.
6202 2010-05-30  Jan Hubicka  <jh@suse.cz>
6204         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6205         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6206         dump files.
6208 2010-05-29  Jan Hubicka  <jh@suse.cz>
6210         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6211         node; remove references in node we no longer keep in cgrpah but need
6212         body of.
6214 2010-05-29  Jan Hubicka  <jh@suse.cz>
6216         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6218 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6220         PR target/44165
6221         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6223 2010-05-29  Jan Hubicka  <jh@suse.cz>
6225         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6226         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6227         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6228         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6229         debug_names_replaced_by, debug_update_ssa): Likewise.
6230         * sbitmap.c (debug_sbitmap): Likewise.
6231         * genrecog.c (debug_decision, debug_decision_list): Likewise.
6232         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6233         debug_tree_chain): Likewise.
6234         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6235         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6236         * optabs.c  (debug_optab_libfuncs): Likewise.
6237         (verify_loop_closed_ssa): Likewise.
6238         * value-prof.c (verify_histograms): Likewise.
6239         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6240         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6241         * cfghooks.c (verify_flow_info): Likewise.
6242         * fold-const.c (debug_fold_checksum): Likewise.
6243         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6244         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6245         Likewise.
6246         * omega.c (debug_omega_problem): Likewise.
6247         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6248         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6249         * dominance.c (verify_dominators, debug_dominance_info,
6250         debug_dominance_tree): Likewise.
6251         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6252         * df_regno_debug, df_ref_debug,
6253         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6254         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6255         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6256         * sel-sched.c (debug_state): Likewise.
6257         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6258         Likewise.
6259         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6260         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6261         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6262         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6263         Likewise.
6264         * c-pretty-print.c (debug_c_tree): Likewise.
6265         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6266         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6267         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6268         * ebitmap.c (debug_ebitmap): Likewise.
6269         * function.c (debug_find_var_in_block_tree): Likewise.
6270         * print-rtl.c (debug_rtx): Likewise.
6271         (debug_rtx_count): Likewise.
6272         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6273         * stor-layout.c (debug_rli): Likewise.
6274         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6275         * tree-data-ref.c (debug_data_references,
6276         debug_data_dependence_relations, debug_data_reference,
6277         debug_data_dependence_relation, debug_rdg_vertex,
6278         debug_rdg_component, debug_rdg): Likewise.
6279         * tree-affine.c (debug_aff): Likewise.
6280         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6281         Likewise.
6282         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6283         * emit-rtl.c (verify_rtl_sharing): Likewise.
6284         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6285         debug_value_expressions): Likewise.
6286         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6287         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6288         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6289         * cfglayout.c (verify_insn_chain): Likewise.
6290         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6291         debug_clast_stmt, debug_generated_program): Likewise.
6292         * ggc-page.c (debug_print_page_list): Likewise.
6293         * tree-ssa-ter.c (debug_ter): Likewise.
6294         * graphite-dependences.c (debug_pddr): Likewise.
6295         * sched-deps.c (debug_ds): Likewise.
6296         * tree-ssa.c (verify_ssa): Likewise.
6297         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6298         debug_scattering_functions, debug_iteration_domains, debug_pdr,
6299         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6300         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6301         * tree-inline.c (debug_find_tree): Likewise.
6302         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6303         debug_ppl_powerset_matrix): Likewise.
6304         * var-tracking.c (debug_dv): Likewise.
6305         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6306         * cfgloop.c (verify_loop_structure): Likewise.
6307         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6308         * c-common.c (verify_sequence_points): Likewise.
6309         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6310         debug_candidates, debug_rgn_dependencies): Likewise.
6311         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6312         * debug_constraint_graph, debug_solution_for_var,
6313         debug_sa_points_to_info): Likewise.
6314         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6315         Likewie.
6316         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6317         debug_loops, debug_loop, debug_loop_num): Likewise.
6318         * passes.c (debug_pass): Likewise.
6319         (dump_properties): Likewise; add cfglayout property.
6320         (debug_properties): Likewise.
6321         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6322         * varpool.c (debug_varpool): Likewise.
6323         * regcprop.c (debug_value_data): Likewise.
6324         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6325         debug_immediate_uses_for): Likewise.
6327 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6329         PR bootstrap/44315
6330         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6331         Filter out insn-flags.h.
6333 2010-05-29  Jan Hubicka  <jh@suse.cz>
6335         * cgraph.h (struct varpool_node_set_def,
6336         struct cgraph_node_set_def): Remove unused AUX pointer.
6337         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6338         VEC_empty macro.
6340 2010-05-29  Jan Hubicka  <jh@suse.cz>
6342         PR middle-end/44324
6343         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6345 2010-05-29  Richard Guenther  <rguenther@suse.de>
6347         * lto-streamer.c (cached_bp): New global variable.
6348         (bitpack_create): Return the cached bitpack, if available.
6349         (bitpack_delete): Clear and cache the bitpack, if appropriate.
6350         (bp_pack_value): Remove redundant asserts.
6352 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6354         PR middle-end/44306
6355         * tree-if-conv.c (is_true_predicate): New.
6356         (is_predicated): Use is_true_predicate.
6357         (add_to_predicate_list): Same.  Do not use unshare_expr.
6358         (add_to_dst_predicate_list): Same.
6360 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6362         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6363         field on edges.
6364         (predicate_bbs): Same.
6365         (clean_predicate_lists): Same.
6366         (find_phi_replacement_condition): Do not AND the predicate from
6367         edge->aux.
6369 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6371         PR bootstrap/44315
6372         * Makefile.in (build/gencondmd.o): Add a missing `\'.
6374 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6376         PR target/44261
6377         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6378         (negdf2): Adjust expander pattern and use negdf2_slow.
6379         (negsf2): Likewise.
6381 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
6383         * basic-block.h (struct control_flow_graph): Move last_label_uid field
6384         up.
6385         * df.h (struct df_base_ref): Move regno field up.
6386         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6387         * expr.h (struct separate_ops): Move location field up.
6388         * optabs.h (struct optab_d): Move libcall_basename field down.
6389         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6390         * config/i386/i386.h (struct machine_function): Convert call_abi field
6391         into a bitfield.  Move cfa field to the end of the structure.
6393 2010-05-29  Jan Hubicka  <jh@suse.cz>
6395         * varpool.c (varpool_get_node): Fix lookup.
6397 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6399         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
6400         RTL specific prototypes with #ifdef RTX_CODE.
6401         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6402         * config/spu/t-spu-elf: Fix dependencies.
6404         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6406 2010-05-29  Mike Stump  <mikestump@comcast.net>
6408         PR bootstrap/44315
6409         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6410         TM_H when building to avoid dependency loops.
6412 2010-05-29  Jan Hubicka  <jh@suse.cz>
6414         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6415         refs and body; not the whole node for masters of materialized clones.
6417 2010-05-29  Mike Stump  <mikestump@comcast.net>
6419         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6421 2010-05-29  Jan Hubicka  <jh@suse.cz>
6423         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6424         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6425         use of clone_function_name.
6426         * cgraph.h (cgraph_create_virtual_clone,
6427         cgraph_function_versioning): update prototypes.
6428         (clone_function_name): Declare.
6429         * ipa-cp.c (ipcp_insert_stage): Update call of
6430         cgraph_create_virtual_clone.
6431         * omp-low.c (create_omp_child_function_name): Use
6432         cgraph_create_virtual_clone.
6433         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6434         (cgraph_function_versioning): Take SUFFIX argument; produce new name
6435         and make decl local.
6437 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6439         * vec.h: Include statistics.h
6440         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
6441         with VEC_H.
6443 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6445         * c-lex.c: Do not include c-tree.h.
6446         * c-pretty-print.c: Likewise.
6447         * c-opts.c: Likewise.
6448         * c-gimplify.c: Likewise.
6449         * c-common.c: Likewise.
6450         * c-dump.c: Likewise.  Include c-common.h.
6452 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6454         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6455         before including diagnostic-core.h.
6456         (c_cpp_error): New prototype moved from c-tree.h.
6457         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6458         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6459         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6460         (c_cpp_error): Prototype moved to c-common.h.
6461         * Makefile.in: Update dependency for C_COMMON_H.
6463 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6465         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6466         * c-common.c (c_register_addr_space): Remove here.
6467         * c-decl.c (c_register_addr_space): Re-add here.
6469 2010-05-28  Mike Stump  <mikestump@comcast.net>
6471         * config/darwin-c.c: Remove c-tree.h include.
6473 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6475         * gcc.c: Include diagnostic.h.
6476         (error_count): Remove.  All users changed to use errorcount.
6477         (programname): Remove.  All users changed to use progname.
6478         (fancy_abort, internal_error, fatal_error, error, warning, inform,
6479         fnotice): Remove.
6480         (execute): Don't include "Internal error" and bug reporting
6481         information in argument of internal_error call.
6482         (process_command): Don't increment error_count after calling
6483         perror_with_name.
6484         (input_filename): Rename to gcc_input_filename.  All users
6485         changed.
6486         (main): Call diagnostic_initialize.  Register delete_temp_files
6487         with atexit.  Use seen_error to test for errors.
6488         * gcc.h: Include diagnostic-core.h.
6489         (fatal_error, error, warning): Remove.
6490         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6491         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6492         (gcc.o): Update dependencies.
6494 2010-05-28  Jeff Law  <law@redhat.com>
6496         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6497         functions.
6498         * ira.h (ira_bad_reload_regno): Declare
6499         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6501         * ira-color.c (update_curr_costs): Free updated hard reg costs.
6502         (ira_reassign_conflict_allocnos): Remove bogus asserts.
6503         (allocno_reload_assign): Likewise.
6505 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
6507         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6508         build1_stat.
6510 2010-05-28  Richard Guenther  <rguenther@suse.de>
6512         PR lto/44312
6513         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6514         Stream fixed-point constants mode.
6515         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6516         and TYPE_PRECISION.
6517         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6518         Stream fixed-point constants mode.
6519         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6520         and TYPE_PRECISION.
6522 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6524         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6525         only place it was called from.
6526         (number_of_latch_executions): Do not return chrec_dont_know when the
6527         may_be_zero is a runtime condition: instead, return a COND_EXPR
6528         including the may_be_zero condition.
6529         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6530         of nb_iterations.
6531         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6532         COND_EXPRs.
6534 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6536         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6537         generate COND_EXPRs for degenerate_phi_result.
6539 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6541         PR middle-end/44293
6542         * tree-if-conv.c (if_convertible_loop_p): Check the
6543         if-convertibility of phi nodes in non predicated BBs.
6545 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6547         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6549 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6551         PR driver/15303
6552         * gcc.c (inform, warning, inform): New functions.
6553         (fatal_ice): Rename to internal_error; change cmsgid parameter to
6554         gmsgid.  All callers changed.
6555         (notice): Rename to fnotice; add parameter fp.  All callers changed.
6556         (fatal_error): Rename to fatal_signal.  All users changed.
6557         (fatal): Rename to fatal_error; change cmsgid parameter to
6558         gmsgid.  All callers changed.
6559         (process_command): Use warning instead of error for warnings.
6560         (end_going_arg): Don't use _() around argument of error.
6561         (do_spec_1): Use inform for message from %n specs.  Use warning
6562         instead of error for warnings.
6563         (main): Use inform for comparison messages.  Use warning for
6564         message about unused linker input.
6565         (error): Increment error_count.  Print "error: ".
6566         * gcc.h (fatal): Change to fatal_error.
6567         (warning): Declare.
6568         * config/darwin-driver.c (darwin_default_min_version): Use warning
6569         instead of fprintf for warnings.
6570         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6572 2010-05-28  Julian Brown  <julian@codesourcery.com>
6574         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6575         (*thumb2_addsi3_compare0_scratch): New.
6576         * config/arm/constraints.md (Pv): New.
6577         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
6578         for ARM mode only.
6579         (*addsi3_compare0_scratch): Likewise.
6581 2010-05-28  Jan Hubicka  <jh@suse.cz>
6583         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
6584         check.
6585         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
6586         only on local statics.
6588 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
6590         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
6592 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
6594         PR bootstrap/44314
6595         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
6596         (OPTION_GLIBC): Define.
6598 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6600         PR debug/41048
6601         * dwarf2out.c (double_int_type_size_in_bits): New function.
6602         (round_up_to_align): Change first argument and return value to
6603         double_int.
6604         (field_byte_offset): Work internally on double_ints.
6606         PR target/43636
6607         * builtins.c (expand_movstr): Use a temporary pseudo instead
6608         of target even when target is not NULL and not const0_rtx, but
6609         fails movstr predicate.
6610         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
6612 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6614         * final.c (rest_of_clean_state): Use %m in errors instead of
6615         strerror (errno).
6616         * gengtype.c (read_input_list, close_output_files): Use xstrerror
6617         instead of strerror.
6618         * toplev.c (process_options): Use %m in errors instead of strerror
6619         (errno).
6620         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
6621         (errno).
6623 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
6625         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
6626         (ix86_canonical_va_list_type): Make static.  Add declaration.
6627         (ix86_enum_va_list): Make static.  Reindent.
6628         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
6629         (ix86_canonical_va_list_type): Ditto.
6630         (ix86_enum_va_list): Ditto.
6632 2010-05-28  Richard Guenther  <rguenther@suse.de>
6634         * lto-wrapper.c (run_gcc): With -save-temps generate a
6635         user-visible ltrans filename.  Fixup ltrans unit numbering.
6637 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
6639         * c-common.c (c_common_nodes_and_builtins): Replace use
6640         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
6641         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
6642         to ix86_enum_va_list.
6643         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
6644         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
6645         (TARGET_ENUM_VA_LIST_P): Add hook description.
6646         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
6647         * target.h (gcc_target): Add enum_va_list hook.
6649         PR bootstrap/44299
6650         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
6651         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
6652         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
6654 2010-05-28  Alan Modra  <amodra@gmail.com>
6656         PR target/44266
6657         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6658         emit_library_call machinery to set up __tls_get_addr calls.
6660 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6662         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
6664 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
6666         Revert fix for PR c++/44188
6667         * c-common.c (is_typedef_decl): Revert the moving of  this
6668         definition ...
6669         * tree.c (is_typedef_decl): ... here.
6670         (typdef_variant_p): Revert the moving of this  definition
6671         here from gcc/cp/tree.c.
6672         * c-common.h (is_typedef_decl): Revert the moving of this
6673         declaration ...
6674         * tree.h (is_typedef_decl): ... here.
6675         (typedef_variant_p): Revert the moving of this  declaration here
6676         from gcc/cp/cp-tree.h
6677         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
6678         (gen_tagged_type_die): Revert the splitting out of ...
6679         (gen_type_die_with_usage): ... this function. Revert the anonymous
6680         tagged type handling.
6681         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
6682         typedefs naming anonymous tagged types.
6684 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6686         * config/rs6000/rs6000-modes.def (PSImode): Delete.
6688 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6690         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
6691         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
6692         throughout.
6693         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
6694         "xer" to "ca".
6695         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
6696         XER_REGS to CA_REGS throughout.
6697         * config/rs6000/rs6000.h: Same.
6698         (ADDITIONAL_REGISTER_NAMES): Add "xer".
6699         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
6700         that mode_iterator "P" is the size for arithmetic carries as well.
6701         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
6703 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6705         PR bootstrap/44255
6706         * combine.c (struct rtx_subst_pair): Define unconditionally.
6707         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
6708         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
6709         Call make_compound_operation on pair->to.
6710         (propagate_for_debug): Don't call make_compound_operation here.
6711         Always use simplify_replace_fn_rtx.
6713 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
6715         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
6716         * config/xtensa/xtensa.c (override_options): Check
6717           TARGET_FORCE_NO_PIC and set flag_pic.
6718         * config/xtensa/xtensa.opt: Document -mforce-no-pic
6720 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6722         PR bootstrap/44299
6723         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
6724         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
6726 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6728         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
6729         toplev.h.
6730         * diagnostic.c: Don't include toplev.h.
6731         (progname): Define.  Moved from toplev.c.
6732         (seen_error): New function.
6733         * diagnostic.h: Include diagnostic-core.h.
6734         (diagnostic_t, emit_diagnostic): Don't declare here.
6735         * toplev.c (progname): Move to toplev.c.
6736         (emit_debug_global_declarations, compile_file, finalize,
6737         do_compile, toplev_main): Use seen_error.
6738         * toplev.h: Include diagnostic-core.h.
6739         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
6740         internal_error, warning, warning_at, error, error_n, error_at,
6741         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
6742         verbatim, fnotice, progname): Move to diagnostic-core.h.
6743         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
6744         (expand_builtin_expect): Use seen_error.
6745         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
6746         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
6747         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
6748         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
6749         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
6750         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
6751         errorcount for errors.
6752         * c-opts.c (c_common_finish): Use seen_error.
6753         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6754         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
6755         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
6756         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
6757         (get_coverage_counts): Use seen_error.
6758         * dwarf2out.c (dwarf2out_finish): Use seen_error.
6759         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
6760         gimplify_body): Use seen_error.
6761         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
6762         * ipa-pure-const.c (gate_pure_const): Use seen_error.
6763         * ipa-reference.c (gate_reference): Use seen_error.
6764         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
6765         * lambda-code.c: Include diagnostic-core.h instead of
6766         diagnostic.h.
6767         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6768         * lto-compress.c: Include diagnostic-core.h instead of
6769         diagnostic.h.
6770         * lto-section-in.c: Include diagnostic-core.h instead of
6771         diagnostic.h.
6772         * lto-streamer-out.c: Include diagnostic-core.h instead of
6773         diagnostic.h.
6774         * lto-streamer.c: Include diagnostic-core.h instead of
6775         diagnostic.h.
6776         (gate_lto_out): Use seen_error.
6777         * matrix-reorg.c: Include diagnostic-core.h instead of
6778         diagnostic.h.
6779         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
6780         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
6781         (gate_expand_omp, lower_omp_1): Use seen_error.
6782         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
6783         (rest_of_decl_compilation, rest_of_type_compilation,
6784         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
6785         * tree-cfg.c (label_to_block_fn): Use seen_error.
6786         * tree-inline.c (optimize_inline_calls): Use seen_error.
6787         * tree-mudflap.c (mudflap_finish_file): Use
6788         seen_error.
6789         * tree-optimize.c (gate_all_optimizations,
6790         gate_all_early_local_passes, gate_all_early_optimizations): Use
6791         seen_error.
6792         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
6793         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
6794         (varpool_remove_unreferenced_decls,
6795         varpool_assemble_pending_decls): Use seen_error.
6796         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6797         (TOPLEV_H, DIAGNOSTIC_H): Update.
6798         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6799         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6800         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6801         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6802         coverage.o, lambda-code.o): Update dependencies.
6804 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6806         PR c++/44188
6807         * c-common.c (is_typedef_decl): Move this definition ...
6808         * tree.c (is_typedef_decl): ... here.
6809         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6810         * c-common.h (is_typedef_decl): Move this declaration ...
6811         * tree.h (is_typedef_decl): ... here.
6812         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6813         * dwarf2out.c (is_naming_typedef_decl): New function.
6814         (gen_tagged_type_die): Split out of ...
6815         (gen_type_die_with_usage): ... this function. When an anonymous
6816         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6817         is emitted for the typedef.
6818         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6819         anonymous tagged types.
6821 2010-05-27  Jason Merrill  <jason@redhat.com>
6823         * print-tree.c (debug_vec_tree): New fn.
6824         (print_vec_tree): New fn.
6825         * tree.h: Declare them.
6826         * gdbinit.in (pvt): New command.
6828         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6830         * gdbinit.in (pdd): New command.
6832 2010-05-27  Jan Hubicka  <jh@suse.cz>
6834         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6835         (update_caller_keys): Return early if there are no callers;
6836         only update fibheap when decresing the key.
6837         (update_callee_keys): Avoid recursion.
6838         (decide_inlining_of_small_functions): When badness does not match;
6839         re-insert into fibheap.
6841 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
6843         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6844         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6845         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6846         (ALL_HOST_OBJS): Now a union of the above two.
6847         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6848         all files in ALL_HOST_FRONTEND_OBJS.
6849         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6851         * c-common.c: Pretend to be a backend file by undefining
6852         IN_GCC_FRONTEND (still need rtl.h here).
6854 2010-05-27  Jan Hubicka  <jh@suse.cz>
6856         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6857         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6859 2010-05-27  Jan Hubicka  <jh@suse.cz>
6861         * sched-ebb.c: Rename struct deps to struct deps_desc.
6862         * ddg.c: Likewise.
6863         * sel-sched-ir.c: Likewise.
6864         * sched-deps.c: Likewise.
6865         * sched-int.h: Likewise.
6866         * sched-rgn.c: Likewise.
6868 2010-05-27  Jon Beniston  <jon@beniston.com>
6870         PR 43726
6871         * config/lm32/lm32.h: Remove definition of
6872         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6874 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6876         PR lto/44230
6877         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
6879 2010-05-27  Richard Guenther  <rguenther@suse.de>
6881         PR tree-optimization/44284
6882         * tree-vect-stmts.c (vectorizable_assignment): Handle
6883         sign-changing conversions as simple copy.
6885 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6887         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
6888         Bionic C library.
6889         (__gthread_active_p): Check for pthread_create if compiling against
6890         Bionic C library.
6892 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6894         Support compilation for Android platform.  Reimplement -mandroid.
6896         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
6897         (*android*): Set ANDROID_DEFAULT.
6898         (arm*-*-linux*): Include linux-android.h.
6899         (arm*-*-eabi*): Don't include previous -mandroid implementation.
6900         * config/arm/eabi.h: Remove, move Android-specific parts ...
6901         * config/linux-android.h: ... here.  New file.
6902         * config/arm/eabi.opt: Rename to ...
6903         * config/linux-android.opt: ... this.
6904         (mandroid): Allow -mno-android option.  Initialize based on
6905         ANDROID_DEFAULT.
6906         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
6907         Move logic to corresponding LINUX_TARGET_* macros.
6908         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
6909         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
6910         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
6911         Android definitions.
6912         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
6913         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
6914         Document.
6916 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6918         Add support for Bionic C library
6920         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
6921         macro.
6922         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
6923         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
6925         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
6926         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
6927         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
6928         to support multiple C libraries.  Handle Bionic.
6929         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
6930         (BIONIC_DYNAMIC_LINKER64): Define.
6931         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
6932         Update.
6933         (TARGET_HAS_SINCOS): Enable for Bionic.
6935         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
6936         the last option specified on command line take effect.
6937         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
6938         (mbionic): New.
6939         (mglibc, muclibc): Update.
6941         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
6942         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
6943         DEFAULT_LIBC.
6945         * doc/invoke.texi (-mglibc, -muclibc): Update.
6946         (-mbionic): Document.
6948 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6950         * c-common.h (c_register_addr_space): Add prototype.
6951         (ADDR_SPACE_KEYWORD): Remove.
6952         * c-common.c (c_register_addr_space): New function.
6953         (c_addr_space_name): Reimplement.
6954         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
6956         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
6957         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
6959         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
6960         Remove TARGET_ADDR_SPACE_KEYWORDS.
6962 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6964         * input.c: New file.
6965         * input.h (main_input_filename): Move declaration to toplev.h.
6966         * toplev.c (input_location, line_table): Move to input.c
6967         * toplev.h (main_input_filename): Move declaration from input.h.
6968         * tree.c (expand_location): Move to input.c.
6969         * Makefile.in (OBJS-common): Add input.o.
6970         (input.o): Add dependencies.
6972 2010-05-27  Richard Guenther  <rguenther@suse.de>
6974         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
6975         for non-existant files.
6976         (fork_execute): Mark args_name file as deleted.
6978 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6980         PR bootstrp/44287
6981         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
6982         (narrow_signed_type): Likewise.
6984 2010-05-26  Jan Hubicka  <jh@suse.cz>
6986         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
6987         edge only when checking is enabled; check using former_clone_of;
6988         check inline clones too.
6989         (cgraph_materialize_clone): Record former_clone_of pointer.
6990         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
6991         combining redirections; dump args_to_skip bitmap
6992         (cgraph_materialize_all_clones): Do no redirection here.
6993         * ipa-inline.c (inline_transform): Do redirection here.
6994         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
6995         cheking only).
6997 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6999         * config/avr/avr-c.c: Do not include regs.h.
7000         Include cpplib.h for cpp_define and tree.h for c-common.h.
7001         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7002         * config/avr/t-avr: Fix dependencies for avr-c.o.
7004 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7006         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7007         string instead of SYMBOL_REF rtx.
7008         * rtl.h (set_stack_check_libfunc): Move prototype from here...
7009         * libfuncs.h: ...to here.  Adjust for explow.c change.
7011 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7013         * pretty-print.c: Don't include ggc.h.
7014         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7015         (identifier_to_locale): Use them for allocation.
7016         * pretty-print.h (identifier_to_locale_alloc,
7017         identifier_to_locale_free): Declare.
7018         * toplev.c (alloc_for_identifier_to_locale): New.
7019         (general_init): Set identifier_to_locale_alloc and
7020         identifier_to_locale_free.
7021         * Makefile.in (pretty-print.o): Update dependencies.
7023 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7025         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7026         pointer types if they have different alignment or mode.
7028 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
7030         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7031         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7032         * config/sparc/sparc-protos.h (function_value): Remove declaration.
7033         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7034         sparc_function_value_regno_p): New functions.
7035         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7036         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7037         (function_value): Rename to...
7038         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7039         argument to 'outgoing'.
7040         (function_arg_record_value, function_arg_union_value,
7041         function_arg_vector_value): Update comment.
7043 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7045         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7046         (fde_needed_for_eh_p): New predicate.
7047         (output_call_frame_info): Use it throughout to decide whether FDEs
7048         are needed for EH purpose.
7049         (dwarf2out_begin_prologue): Reorder assignments.
7051 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7053         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7054         special case loop->header.
7055         (is_predicated): New.
7056         (if_convertible_loop_p): Call it.
7058 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7060         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7061         iterator in parameter.  Do not generate code during the analysis.
7062         (tree_if_convert_cond_stmt): Removed.
7063         (tree_if_convert_stmt): Removed.
7064         (predicate_bbs): New.
7065         (if_convertible_loop_p): Call predicate_bbs.
7066         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7067         now contains all the analysis part.
7069 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7071         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7072         statements in the analysis part.
7073         (tree_if_convert_stmt): Update comment.
7074         (remove_conditions_and_labels): New.
7075         (combine_blocks): Call remove_conditions_and_labels.
7076         (tree_if_conversion): Update comment.
7078 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7080         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7081         than 2 predecessors or more than 2 successors.
7083 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7085         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7086         of loops in which the data dependence analysis fails.
7088 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7090         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7091         CDI_POST_DOMINATORS.
7092         (tree_if_conversion): Same.
7094 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7096         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7098 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7100         * tree-if-conv.c: Update copyright years.  Fix comments.
7101         Fix indentation.
7103 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
7105         * builtin-types.def (BT_INT128): New primitive type.
7106         (BT_UINT128): Likewise.
7107         * c-common.c (c_common_r): Add __int128 keyword.
7108         (c_common_type_for_size): Handle __int128.
7109         (c_common_type_for_mode): Likewise.
7110         (c_common_signed_or_unsigned_type): Likewise.
7111         (c_common_nodes_and_builtins): Add builtin type
7112         if target supports 128-bit integer scalar.
7113         * c-common.h (enum rid): Add RID_INT128.
7114         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7115         if target supports 128-bit integer scalar.
7116         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7117         (finish_declspecs): Likewise.
7118         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7119         (c_token_starts_declspecs): Likewise.
7120         (c_parser_declspecs): Likewise.
7121         (c_parser_attributes): Likewise.
7122         (c_parser_objc_selector): Likewise.
7123         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7124         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7125         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7126         * tree.c (make_or_reuse_type): Likewise.
7127         (make_unsigned_type): Likewise.
7128         (build_common_tree_nodes_2): Likewise.
7129         * tree.h (enum integer_type_kind): Add itk_int128 and
7130         itk_unsigned_int128.
7131         (int128_integer_type_node): New define.
7132         (int128_unsigned_type_node): New define.
7133         * doc/extend.texi: Add documentation about __int128 type.
7135 2010-05-26  Richard Guenther  <rguenther@suse.de>
7137         * tree-ssa-sccvn.c (copy_nary): Adjust.
7138         (copy_phis): Rename to ...
7139         (copy_phi): ... this.  Adjust.
7140         (copy_references): Rename to ...
7141         (copy_reference): ... this.  Adjust.
7142         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7143         result into the valid table.
7145 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7147         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7148         insn-config.h, insn-codes.h, recog.h, and optabs.h.
7150 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7152         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7154 2010-05-26  Richard Guenther  <rguenther@suse.de>
7156         * opts.c (common_handle_option): Handle OPT_Ofast.
7158 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7160         * diagnostic.c: Don't include opts.h.
7161         (permissive_error_option): Define.
7162         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
7163         for classify_diagnostic.  Don't use memset for
7164         classify_diagnostic.  Initialize new and recently added fields.
7165         (diagnostic_classify_diagnostic): Use context->n_opts instead of
7166         N_OPTS.
7167         (diagnostic_report_diagnostic): Pass context parameter to
7168         diagnostic_report_warnings_p.  Use option_enabled and option_name
7169         hooks from context.
7170         (emit_diagnostic): Use permissive_error_option.
7171         (permerror): Likewise.
7172         * diagnostic.h: Don't include options.h.
7173         (struct diagnostic_context): Add n_opts, opt_permissive,
7174         inhibit_warnings, warn_system_headers, option_enabled and
7175         option_name fields.  Change classify_diagnostic to a pointer.
7176         * opts-diagnostic.h: New file.
7177         * opts.c: Include opts-diagnostic.h.
7178         (common_handle_option): Set global_dc fields for -Wfatal-errors,
7179         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7180         (option_name): New function.
7181         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7182         (c_common_handle_option): Set global_dc->permissive for
7183         -fpermissive.
7184         * c-common.c (c_cpp_error): Save and restore
7185         global_dc->warn_system_headers, not variable warn_system_headers.
7186         * toplev.c: Include opts-diagnostic.h.
7187         (general_init): Update call to diagnostic_initialize.  Set
7188         global_dc->show_column, global_dc->option_enabled and
7189         global_dc->option_name.
7190         (process_options): Don't set global_dc fields here.
7191         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7192         (diagnostic.o, opts.o, toplev.o): Update dependencies.
7194 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7196         * config/picochip/picochip.md (movsi): Split a movsi from a
7197         const after reload.
7199 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7201         * ggc-zone.c: Update copyright year.
7202         (poison_region): Mark memory for Valgrind as undefined before
7203         memset () call and inaccessible afterwards.
7204         (ggc_pch_total_size): Change type of i to int.
7206 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7208         * ggc-common.c (ggc_free_overhead): Allow empty slot.
7210 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7212         * ggc-common.c: Update copyright year.
7213         (ggc_rlimit_bound): Remove prototype.  Compile only if
7214         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7215         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7216         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
7217         (ggc_min_heapsize_heuristic): Likewise.
7219 2010-05-26  Richard Guenther  <rguenther@suse.de>
7221         PR rtl-optimization/44164
7222         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7223         no-common access-path disambiguation.
7224         (indirect_ref_may_alias_decl_p): Adjust.
7225         (indirect_refs_may_alias_p): Likewise.
7226         (refs_may_alias_p_1): Likewise.
7228 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7230         * c-typeck.c: Do not include expr.h.
7232 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7234         * rtl.h (decl_default_tls_model): Move prototype from here...
7235         * output.h: ...to here.
7236         * c-decl.c: Do not include rtl.h.
7237         * c-pragma.c: Likewise.
7238         * c-parser.c: Likewise.
7239         * c-gimplify.c: Likewise.  And also not hard-reg-set.
7240         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
7241         FIXME note for it.  Add a FIXME note for expr.h.
7242         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7243         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7244         defined.
7246 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
7248         PR target/44199
7249         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7250         or total_size is larger than red zone size for non-V4 ABI, emit a
7251         stack_tie resp. frame_tie insn before stack pointer restore.
7252         * config/rs6000/rs6000.md (frame_tie): New insn.
7254 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7256         * function.h (struct function): Add can_throw_non_call_exceptions bit.
7257         * lto-streamer-in.c (input_function): Stream it in.
7258         * lto-streamer-out.c (output_function): Stream it out.
7259         * function.c (allocate_struct_function): Set it.
7260         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7261         for flag_non_call_exceptions.
7262         * cfgbuild.c (control_flow_insn_p): Likewise.
7263         (make_edges): Likewise.
7264         * cfgexpand.c (expand_stack_alignment): Likewise.
7265         * combine.c (distribute_notes): Likewise.
7266         * cse.c (cse_extended_basic_block): Likewise.
7267         * except.c (insn_could_throw_p): Likewise.
7268         * gcse.c (simple_mem): Likewise.
7269         * ipa-pure-const.c (check_call): Likewise.
7270         (check_stmt ): Likewise.
7271         * lower-subreg.c (lower-subreg.c): Likewise.
7272         * optabs.c (emit_libcall_block): Likewise.
7273         (prepare_cmp_insn): Likewise.
7274         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7275         * postreload.c (rest_of_handle_postreload): Likewise.
7276         * reload1.c (reload_as_needed): Likewise.
7277         (emit_input_reload_insns): Likewise.
7278         (emit_output_reload_insns): Likewise.
7279         (fixup_abnormal_edges): Likewise.
7280         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7281         * store-motion.c (find_moveable_store): Likewise.
7282         * tree-eh.c (stmt_could_throw_p): Likewise.
7283         (tree_could_throw_p): Likewise.
7284         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7285         * config/arm/arm.c (arm_expand_prologue): Likewise.
7286         (thumb1_expand_prologue): Likewise.
7287         * config/rx/rx.md (cbranchsf4): Likewise.
7288         (cmpsf): Likewise.
7289         * config/s390/s390.c (s390_emit_prologue): Likewise.
7290         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7291         (inline_forbidden_into_p): New predicate.
7292         (expand_call_inline): Use it to forbid inlining.
7293         (tree_can_inline_p): Likewise.
7295 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7297         * config/i386/i386-c.c: Do not include rtl.h.
7298         * config/i386/t-i386: Update dependencies.
7300 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7302         * attribs.c: Do not include rtl.h.
7303         * Makefile.in: Update dependencies.
7305 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
7307         * double-int.h (double_int_and): New.
7308         * combine.c (try_combine): Clean up, use double_int_* and
7309         immed_double_int_const functions.
7311 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7313         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7314         stderr to /dev/null instead of grep -q.
7315         * configure: Regenerate.
7317 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7319         * Makefile.in (EXCEPT_H): Fix typo.
7321 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
7323         * ira-build.c (update_conflict_hard_reg_costs): New.
7324         (ira_build): Call update_conflict_hard_reg_costs.
7326 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7328         PR debug/41371
7329         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7330         ENABLE_CHECKING.
7331         (intersect_loc_chains): Walk the s2var's loc_chain together
7332         with s1node chain as long as the locations are equal, don't
7333         call find_loc_in_1pdv in that case.
7335         PR debug/42801
7336         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7337         (copy_bind_expr): ... instead of here.
7338         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7339         if the block hasn't been remapped.
7340         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7341         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7343 2010-05-25  Richard Guenther  <rguenther@suse.de>
7345         PR middle-end/44069
7346         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7347         out-of-bounds array accesses.
7349 2010-05-25  Richard Guenther  <rguenther@suse.de>
7351         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7352         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7353         (run_gcc): Re-organize to make cleanup easier.
7355 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7357         * config/s390/s390.c (optimization_options): Fix and move the
7358         flag_prefetch_loop_arrays override ...
7359         (override_options): ... here.
7361 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
7363         * diagnostic.c: Don't include plugin.h.
7364         (diagnostic_report_diagnostic): Don't handle plugins specially
7365         here.  Pass context to internal_error callback.
7366         * diagnostic.h (struct diagnostic_context): Add context parameter
7367         to internal_error callback.
7368         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7369         * plugin.h (struct diagnostic_context): Declare.
7370         (warn_if_plugins, plugins_internal_error_function): Declare.
7371         * toplev.c (general_init): Set global_dc->internal_error.
7372         * Makefile.in (diagnostic.o): Update dependencies.
7374 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
7376         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7377         * config/rs6000/t-darwin64: New.
7378         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7379         build crt2.
7381 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
7383         PR 44203
7384         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7385         match the original (and intended) behaviour before r159557.  This
7386         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7387         in two ways.
7389 2010-05-25  Richard Guenther  <rguenther@suse.de>
7391         * doc/invoke.texi: Document -Ofast.
7392         * target.h (struct gcc_target): Add handle_ofast.
7393         * target-def.h (TARGET_HANDLE_OFAST): Add.
7394         (TARGET_INITIALIZER): Adjust.
7395         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
7396         * common.opt (Ofast): Add.
7398 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7400         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7401         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7403 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7405         PR target/43610
7406         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7407         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
7408         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
7409         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7411 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7413         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7414         DW_OP_minus with negated offset instead of DW_OP_plus.
7415         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7417 2010-05-25  Wei Guozhi  <carrot@google.com>
7419         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7420         tst instruction and a new alternative.
7421         * config/arm/constraints.md (Pu): New constraint.
7423 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
7425         * function.c (assign_stack_local_1): Initialize variable
7426         to avoid warning when bootstrapping at -O3.
7428 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
7430         * configure.ac (all_lang_makefiles): Remove everything related to it.
7431         * configure: Regenerate.
7432         * Makefile.in: Fix reference to ada Make-lang.in.
7433         Remove support for LANG_MAKEFILES.
7435 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
7436             Sandra Loosemore  <sandra@codesourcery.com>
7438         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7439         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7440         description.  Add arm_neon_fp16_ok.
7441         (Add Options): Add arm_neon and arm_neon_fp16.
7443 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
7445         * diagnostic.c: Don't include flags.h.
7446         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7447         context parameters.  Check flags in the context passed as a parameter.
7448         (diagnostic_build_prefix): Add context parameter.  Check
7449         show_column flag in context.
7450         (diagnostic_action_after_output): Check fatal_errors flag in context.
7451         (diagnostic_report_current_module): Check show_column flag in context.
7452         (default_diagnostic_starter): Update call to
7453         diagnostic_build_prefix.
7454         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7455         (emit_diagnostic): Pass context to permissive_error_kind.
7456         (permerror): Pass context to permissive_error_kind.
7457         * diagnostic.h (struct diagnostic_context): Add show_column,
7458         pedantic_errors, permissive and fatal_errors fields.
7459         (diagnostic_build_prefix): Update prototype.
7460         * langhooks.c
7461         * toplev.c (process_options): Set flags in global_dc from
7462         flag_show_column, flag_pedantic_errors, flag_permissive,
7463         flag_fatal_errors.
7464         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7465         to diagnostic_build_prefix.
7466         * Makefile.in (diagnostic.o): Update dependencies.
7468 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7470         * config/i386/ia32intrin.h (__crc32q): Define only if
7471         __SSE4_2__ is defined.
7473 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
7475         PR target/44132
7476         PR middle-end/43602
7477         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7478         DECL_VISIBILITY_SPECIFIED.
7479         (emutls_decl): Set DECL_PRESERVE_P and copy
7480         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7481         (emutls_finalize_control_var): New callback.
7482         (emutls_finish): Finalize emutls control variables.
7483         * toplev.c (compile_file): Move the call to emutls_finish ()
7484         before varpool_assemble_pending_decls ().
7486 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
7488         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7489         added to the preprocessor condition.
7491 2010-05-24  Paul Brook  <paul@codesourcery.com>
7493         * gengtype-lex.l: Add HARD_REG_SET.
7494         * expr.c (expand_expr_real_1): Record writes to hard registers.
7495         * function.c (rtl_data): Add asm_clobbers.
7496         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7497         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7498         Use crtl->asm_clobbers.
7500 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7502         * doc/makefile.texi (Makefile): Mention stages 'profile'
7503         and 'feedback' for profiledbootstrap.
7505 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7507         PR target/44245
7508         * config/i386/i386.c (def_builtin): Properly check
7509         OPTION_MASK_ISA_64BIT.
7511 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
7513         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7514         typedefs with different but compatible types.  Allow duplicate
7515         typedefs with the same type except for pedantic non-C1X, but give
7516         warning for variably modified types.
7517         * c-typeck.c (tagged_types_tu_compatible_p,
7518         function_types_compatible_p, type_lists_compatible_p,
7519         comptypes_internal): Add parameter different_types_p; set
7520         *different_types_p for different but compatible types.  All
7521         callers changed.
7522         (comptypes_check_different_types): New.
7523         * c-tree.h (comptypes_check_different_types): Declare.
7525 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7527         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
7528         * jump.c: Include basic-block.h.
7529         * profile.c: Likewise.
7530         * tree-profile.c: Likewise.
7531         * coverage.c: Likewise.
7532         * basic-block.h (optimize_function_for_size_p): Move to function.h.
7533         (optimize_function_for_speed_p): Likewise.
7534         * function.h (optimize_function_for_size_p,
7535         optimize_function_for_speed_p): Moved here from basic-block.h.
7536         * Makefile.in: Update dependencies.
7538 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7540         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7541         before calling make; allow override through $MAKE.
7542         * doc/invoke.texi (Optimize Options): Document override.
7544 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
7546         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7547         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7548         (rs6000_mode_dependent_address_ptr): Make static.
7549         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7550         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7551         Remove.
7553 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
7555         PR target/43869
7556         * config/i386/i386.c: Make sure that the correct regparm is passed.
7558 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7560         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7561         * sbitmap.c: ...to here to internalize sbitmap element access.
7562         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7563         Explain why basic-block.h is included.
7564         * function.h: Include tm.h for CUMULATIVE_ARGS.
7565         * Makefile.in: Update dependencies.
7567 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7569         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7570         New core types.
7571         * sbitmap.h (struct sbitmap_def): Do not typedef here.
7572         * sbitmap.c: Include sbitmap.h.
7573         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7574         hard-reg-set.h.  Split everything related to regsets out from here...
7575         * regset.h: ...to here.  New file.
7576         * df.h: Include regset.h and sbitmap.h.
7577         * tree-flow.h: Likewise.
7578         * cfgloop.h: Likewise.
7579         * except.h: Do not include sbitmap.h.  Include hashtab.h.
7580         * cgraph.h: Include vec.h and function.h.
7581         * reload.h (struct insn_chain): Change types of live_throughout
7582         and dead_or_set from regset_head to bitmap_head.
7583         (compute_use_by_pseudos): Be defined also if regset.h is not included.
7584         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
7585         spilled_regs from regset_head to bitmap_head to avoid dependency
7586         in regset.h.
7587         * sel-sched-ir.h: Include regset.h.
7588         * reload.c: Include df.h before reload.h.
7589         * caller-save.c: Likewise.
7590         * reload1.c: Likewise.
7591         * ira.c: Likewise.
7592         (mark_elimination): Update type of r to bitmap, consistent with
7593         DF_LR_IN.
7594         * dominance.c: Include bitmap.h.
7595         * modulo-sched.c: Include df.h.
7596         * cfganal.c: Include bitmap.h and sbitmap.h.
7597         * cfgbuild.c: Include sbitmap.h.
7598         * lcm.c: Include sbitmap.h.
7599         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
7600         * domwalk.c: Include sbitmap.h, exclude ggc.h.
7601         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
7602         * cselib.c: Include bitmap.h.
7603         * tree-optimize.c: Include regset.h.
7604         * stmt.c: Include bitmap.h.
7605         * Makefile.in: Update dependencies.
7607 2010-05-22  Jan Hubicka  <jh@suse.cz>
7609         * cgraph.h (struct varpool_node): Add same_comdat_group.
7610         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
7611         pointer.
7612         (output_varpool): Update call of lto_output_varpool_node.
7613         (input_varpool): Read same_comdat_group pointer.
7614         (input_varpool_1): Fixup same_comdat_group pointer.
7615         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
7616         group is needed, all are.
7617         * varpool.c (varpool_remove_node): Remove node from same comdat group
7618         linklist too.
7619         (varpool_analyze_pending_decls): Walk same comdat groups.
7621 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7623         * rtl.h (union rtunion_def): Remove rt_bit member.
7624         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
7625         * print-rtl (print_rtx): Do not print the member.
7626         * gengtype.c (adjust_field_rtx_def): Do not handle it.
7627         * gengenrtl.c (type_from_format): Likewise.
7628         (accessor_from_format): Likewise.
7630 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
7632         * dbgcnt.c: Include toplev.h instead of errors.h.
7633         * ira-emit.c: Don't include errors.h.
7634         * ira.c: Include toplev.h instead of errors.h.
7635         * lto-compress.c: Include toplev.h instead of errors.h.
7636         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
7637         ira.o, dbgcnt.o): Update dependencies.
7639 2010-05-22  Richard Guenther  <rguenther@suse.de>
7641         * gimple.c (gimple_types_compatible_p): Check type qualifications
7642         before merging pointer to complete and pointer to incomplete type.
7643         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
7644         we use our own resolution algorithm.  The gold linker plugin
7645         doesn't do the job we want it to do here.
7647 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
7649         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7650         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7651         (sparc_mode_dependent_address_p): New function.
7653 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7655         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
7657         * timevar.c: Do not include any core headers.
7658         (timevar_print): De-i18n-ize.
7659         (print_time): Likewise.
7660         * timevar.h (timevar_push, timevar_pop): Make inline functions.
7662 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
7664         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
7665         langhooks-def.h.
7666         (diagnostic_initialize): Initialize x_data not last_function.
7667         (diagnostic_report_current_function): Move to tree-diagnostic.c.
7668         (default_diagnostic_starter): Call
7669         diagnostic_report_current_module not
7670         diagnostic_report_current_function.
7671         (diagnostic_report_diagnostic): Initialize x_data not
7672         abstract_origin.
7673         (verbatim): Likewise.
7674         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
7675         x_data.
7676         (struct diagnostic_context): Change last_function to x_data.
7677         (diagnostic_auxiliary_data): Replace with
7678         diagnostic_context_auxiliary_data and
7679         diagnostic_info_auxiliary_data.
7680         (diagnostic_last_function_changed, diagnostic_set_last_function,
7681         diagnostic_report_current_function): Move to tree-diagnostic.h.
7682         (print_declaration, dump_generic_node, print_generic_stmt,
7683         print_generic_stmt_indented, print_generic_expr,
7684         print_generic_decl, debug_c_tree, dump_omp_clauses,
7685         print_call_name, debug_generic_expr, debug_generic_stmt,
7686         debug_tree_chain, default_tree_printer): Move to
7687         tree-pretty-print.h.
7688         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
7689         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
7690         gimple-pretty-print.h.
7691         * pretty-print.c: Don't include tree.h
7692         (pp_base_format): Don't handle %K here.
7693         (pp_base_tree_identifier): Move to tree-pretty-print.c.
7694         * pretty-print.h (text_info): Change abstract_origin to x_data.
7695         (pp_tree_identifier, pp_unsupported_tree,
7696         pp_base_tree_identifier): Move to tree-pretty-print.h.
7697         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
7698         tree-pretty-print.h: New files.
7699         * tree-pretty-print.c: Include tree-pretty-print.h.
7700         (percent_K_format): New.  Moved from pretty-print.c.
7701         (pp_base_tree_identifier): Move from pretty-print.c.
7702         * c-objc-common.c: Include tree-pretty-print.h.
7703         (c_tree_printer): Handle %K here.
7704         * langhooks.c: Include tree-diagnostic.h.
7705         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
7706         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
7707         (default_tree_printer): Handle %K using percent_K_format.
7708         (general_init): Use default_tree_diagnostic_starter.
7709         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
7710         (free_lang_data): Use default_tree_diagnostic_starter.
7711         * c-pretty-print.c: Include tree-pretty-print.h.
7712         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7713         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7714         * dwarf2out.c: Include tree-pretty-print.h.
7715         * except.c: Include tree-pretty-print.h.
7716         * gimple-pretty-print.c: Include tree-pretty-print.h and
7717         gimple-pretty-print.h.
7718         * gimplify.c: Include tree-pretty-print.h.
7719         * graphite-poly.c: Include tree-pretty-print.h and
7720         gimple-pretty-print.h.
7721         * ipa-cp.c: Include tree-pretty-print.h.
7722         * ipa-inline.c: Include gimple-pretty-print.h.
7723         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7724         * ipa-pure-const.c: Include gimple-pretty-print.h.
7725         * ipa-struct-reorg.c: Include tree-pretty-print.h and
7726         gimple-pretty-print.h.
7727         * ipa-type-escape.c: Include tree-pretty-print.h.
7728         * print-rtl.c: Include tree-pretty-print.h.
7729         * print-tree.c: Include gimple-pretty-print.h.
7730         * sese.c: Include tree-pretty-print.h.
7731         * tree-affine.c: Include tree-pretty-print.h.
7732         * tree-browser.c: Include tree-pretty-print.h.
7733         * tree-call-cdce.c: Include gimple-pretty-print.h.
7734         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7735         * tree-chrec.c: Include tree-pretty-print.h.
7736         * tree-data-ref.c: Include tree-pretty-print.h and
7737         gimple-pretty-print.h.
7738         * tree-dfa.c: Include tree-pretty-print.h.
7739         * tree-if-conv.c: Include tree-pretty-print.h and
7740         gimple-pretty-print.h.
7741         * tree-inline.c: Include tree-pretty-print.h.
7742         * tree-into-ssa.c: Include tree-pretty-print.h and
7743         gimple-pretty-print.h.
7744         * tree-nrv.c: Include tree-pretty-print.h.
7745         * tree-object-size.c: Include tree-pretty-print.h and
7746         gimple-pretty-print.h.
7747         * tree-outof-ssa.c: Include tree-pretty-print.h and
7748         gimple-pretty-print.h.
7749         * tree-parloops.c: Include tree-pretty-print.h and
7750         gimple-pretty-print.h.
7751         * tree-predcom.c: Include tree-pretty-print.h and
7752         gimple-pretty-print.h.
7753         * tree-scalar-evolution.c: Include tree-pretty-print.h and
7754         gimple-pretty-print.h.
7755         * tree-sra.c: Include tree-pretty-print.h.
7756         * tree-ssa-address.c: Include tree-pretty-print.h.
7757         * tree-ssa-alias.c: Include tree-pretty-print.h.
7758         * tree-ssa-ccp.c: Include tree-pretty-print.h and
7759         gimple-pretty-print.h.
7760         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
7761         * tree-ssa-copy.c: Include tree-pretty-print.h and
7762         gimple-pretty-print.h.
7763         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
7764         * tree-ssa-dce.c: Include tree-pretty-print.h and
7765         gimple-pretty-print.h.
7766         * tree-ssa-dom.c: Include tree-pretty-print.h and
7767         gimple-pretty-print.h.
7768         * tree-ssa-dse.c: Include gimple-pretty-print.h.
7769         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
7770         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
7771         * tree-ssa-live.c: Include tree-pretty-print.h and
7772         gimple-pretty-print.h.
7773         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
7774         gimple-pretty-print.h.
7775         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
7776         gimple-pretty-print.h.
7777         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
7778         gimple-pretty-print.h.
7779         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
7780         gimple-pretty-print.h.
7781         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
7782         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
7783         * tree-ssa-operands.c: Include tree-pretty-print.h and
7784         gimple-pretty-print.h.
7785         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
7786         gimple-pretty-print.h.
7787         * tree-ssa-pre.c: Include tree-pretty-print.h and
7788         gimple-pretty-print.h.
7789         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
7790         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
7791         gimple-pretty-print.h.
7792         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
7793         gimple-pretty-print.h.
7794         * tree-ssa-sink.c: Include gimple-pretty-print.h.
7795         * tree-ssa-ter.c: Include tree-pretty-print.h and
7796         gimple-pretty-print.h.
7797         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7798         * tree-ssa.c: Include tree-pretty-print.h and
7799         gimple-pretty-print.h.
7800         * tree-stdarg.c: Include gimple-pretty-print.h.
7801         * tree-switch-conversion.c: Include gimple-pretty-print.h.
7802         * tree-tailcall.c: Include tree-pretty-print.h and
7803         gimple-pretty-print.h.
7804         * tree-vect-data-refs.c: Include tree-pretty-print.h and
7805         gimple-pretty-print.h.
7806         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7807         gimple-pretty-print.h.
7808         * tree-vect-loop.c: Include tree-pretty-print.h and
7809         gimple-pretty-print.h.
7810         * tree-vect-patterns.c: Include gimple-pretty-print.h.
7811         * tree-vect-slp.c: Include tree-pretty-print.h and
7812         gimple-pretty-print.h.
7813         * tree-vect-stmts.c: Include tree-pretty-print.h and
7814         gimple-pretty-print.h.
7815         * tree-vectorizer.c: Include tree-pretty-print.h.
7816         * tree-vrp.c: Include tree-pretty-print.h and
7817         gimple-pretty-print.h.
7818         * value-prof.c: Include tree-pretty-print.h and
7819         gimple-pretty-print.h.
7820         * var-tracking.c: Include tree-pretty-print.h.
7821         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7822         (tree-diagnostic.o): New dependencies.
7823         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7824         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7825         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7826         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7827         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7828         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7829         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7830         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7831         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7832         tree-ssa-address.o, tree-ssa-loop-niter.o,
7833         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7834         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7835         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7836         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7837         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7838         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7839         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7840         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7841         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7842         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7843         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7844         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7845         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7846         tree-switch-conversion.o, var-tracking.o, value-prof.o,
7847         cfgexpand.o, pretty-print.o): Update dependencies.
7849 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
7851         * tree-ssa-structalias.c: Remove tm_p.h from include.
7853 2010-05-21  Jeff Law  <law@redhat.com>
7855         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7857 2010-05-21  Jason Merrill  <jason@redhat.com>
7859         * tree-eh.c (cleanup_is_dead_in): New.
7860         (lower_try_finally): Don't generate a dead cleanup region.
7861         (lower_cleanup): Likewise.
7863 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7865         PR debug/44223
7866         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7867         unchain each use from the cyclic next_regno_use chain first.
7869 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7871         * real: Do not include gmp.h, mpfr.h, and mpc.h.
7872         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7873         (real_value_negate, real_value_abs): New prototypes.
7874         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7875         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
7876         new include file for interface between MPFR and REAL_VALUE_TYPE.
7877         * real.c: Include realmpfr.h.
7878         (real_arithmetic2): Remove legacy function.
7879         (real_value_negate): New.
7880         (real_value_abs): New.
7881         (mfpr_from_real, real_from_mpfr): Move from here...
7882         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
7883         * builtins.c: Include realmpfr.h.
7884         * fold-const.c: Include realmpfr.h.
7885         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
7886         (fold_negate_const): Likewise.
7887         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
7888         * toplev.c: Include realmpfr.h.
7889         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
7890         and real_value_negate.
7891         * fixed-value.c (check_real_for_fixed_mode): Likewise.
7892         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
7893         (vfp3_const_double_index): Likewise.
7894         (arm_print_operand): Likewise.
7895         * Makefile.in: Update dependencies.
7897 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7899         * config/s390/s390.c (override_options): Increase the default
7900         of max-completely-peel-times.
7902 2010-05-21  Julian Brown  <julian@codesourcery.com>
7903             Mark Mitchell  <mark@codesourcery.com>
7905         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
7906         sibling calls for Thumb-1.
7907         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
7908         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
7909         Thumb-2.
7910         (*call_insn, *call_value_insn): Don't use for Thumb-2.
7911         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
7912         for Thumb-2.
7913         (return): New expander.
7914         (*arm_return): New name for ARM return insn.
7915         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
7917 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
7919         * config.gcc (sparc64-*-rtems*): New target.
7921 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7923         * tree.c (build_function_decl_skip_args): Fix grammar.
7924         (build_function_type_list_1): Fix typos, adjust formatting.
7926 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7928         * tree.h: Include real.h and fixed-value.h as basic datatypes.
7929         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
7930         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
7931         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
7932         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
7933         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
7934         tree-pretty-print.c, tree-loop-distribution.c,
7935         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
7936         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
7937         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
7938         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
7939         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
7940         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
7941         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
7942         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
7943         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
7944         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
7945         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
7946         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
7947         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
7948         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
7949         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
7950         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
7951         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
7952         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
7953         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
7954         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
7955         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
7956         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
7957         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
7958         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
7959         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
7960         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
7961         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
7962         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
7963         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
7964         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
7965         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
7966         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
7967         config/score/score7.c, config/score/score.c, config/arm/arm.c,
7968         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
7969         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
7970         config/bfin/bfin.c: Clean up redundant includes.
7971         * Makefile.in: Update accordingly.
7973 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7975         PR middle-end/44204
7976         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
7977         statement has no arguments.
7979 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
7981         PR/44139
7982         * varasm.c (emutls_decl): Merge attributes to new decl.
7984 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7986         PR middle-end/44101
7987         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
7988         around the uniquized constructor if its type requires a conversion.
7990 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7992         PR debug/44205
7993         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
7994         at -O0 goto_locus of any of the incoming edges differs from
7995         goto_locus of outgoing edge, or gimple_location of any of the
7996         labels differs.
7998 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
8000         * ira.c (ira_non_ordered_class_hard_regs): Define.
8001         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8002         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8003         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8004         cost of unaligned hard regs when allocating multi-reg pseudos.
8006 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
8008         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8009         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8010         for TARGET_NO_FLOAT.
8011         * config/mips/mips.c (mips_file_start): Expand conditional expression
8012         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8013         (mips_override_options): Move -mno-float override -msoft-float and
8014         -mhard-float.
8015         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8016         Condition(TARGET_SUPPORTS_NO_FLOAT).
8017         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8018         __mips_no_float here.
8019         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8020         (TARGET_SUPPORTS_NO_FLOAT): Define.
8021         * config/mips/sdemtk.opt: Delete.
8023 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
8025         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8027 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
8029         PR target/43733
8030         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8031         * configure: Regenerate.
8032         * config.in: Regenerate.
8033         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8034         instead of sahf only for 64bit targets.
8036 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8038         PR debug/44178
8039         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8040         setup_ref_regs for DEBUG_INSNs.
8042 2010-05-20  Jan Hubicka  <jh@suse.cz>
8044         PR middle-end/44197
8045         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8047 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
8049         PR bootstrap/43870
8050         * df-scan.c (df_ref_compare): Stabilize sort.
8052 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8054         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8055         argument.  Don't use DW_OP_piece if offset is non-zero,
8056         put offset into second DW_OP_bit_piece argument.
8057         (dw_sra_loc_expr): Adjust callers.  For memory expressions
8058         compute offset.
8060 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
8062         PR target/44202
8063         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8064         settings for 16-bit-constant "addo" alternative.
8066 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
8068         * config/mips/mips-dsp.md (add<DSPV:mode>3,
8069         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8071         PR target/43764
8072         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
8073         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8074         Use it.
8076 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
8078         * diagnostic.c (FLOAT, FFS): Don't undefine.
8079         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8080         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8081         include ordering.
8083 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8085         * combine.c (propagate_for_debug): Call make_compound_operation
8086         on the source value.
8087         (try_combine): When implementing a split chosen by find_split_point,
8088         either copy i2src or set it to null.  Assert that i2src is not null
8089         before substituting into CALL_INSN_FUNCTION_USAGE.
8091 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
8093         * double-int.h (double_int_ior): New function.
8094         * tree.h (build_int_cst_wide_type): Remove.
8095         * tree.c (build_int_cst_wide_type): Remove.
8096         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8097         of build_int_cst_wide_type.
8098         * stor-layout.c (set_sizetype): (Ditto.).
8099         * dojump.c (do_jump): Use build_int_cstu instead of
8100         build_int_cst_wide_type.
8102 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8104         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8105         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8106         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8107         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8108         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
8109         propagate the 'data' argument to copy_tree_r.
8110         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8111         Propagate 'data' argument to walk_tree.
8112         (copy_if_shared): New function.
8113         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8114         (unmark_visited): New function.
8115         (unshare_body): Call copy_if_shared instead of doing it manually.
8116         (unvisit_body): Call unmark_visited instead of doing it manually.
8118 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
8120         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8121         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
8122         * hooks.c: Likewise.
8123         * target-def.h (TARGET_FOLD_BUILTIN): Define to
8124         hook_tree_tree_int_treep_bool_null.
8125         * target.h (struct gcc_target): Update signature of fold_builtin
8126         field.
8127         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8128         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8129         instead of the call expression.
8130         (fold_builtin_call_array): Pass n and argarray directly.
8131         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8132         consing a list.
8133         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
8134         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
8135         `i' and use it in place of `arity'.
8136         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8137         Dereference `args' directly.
8138         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8140 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8142         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8143         3dnow, sse3, sse2.
8144         (Directives): Document optional dg-require-effective-target
8145         selector.
8147 2010-05-19  Richard Guenther  <rguenther@suse.de>
8149         PR lto/44196
8150         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8152 2010-05-19  Richard Guenther  <rguenther@suse.de>
8154         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8155         * common.opt (fwhopr=): New.
8156         * opts.c (common_handle_option): Handle OPT_fwhopr.
8157         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8158         * collect2.c (main): Match -fwhopr*.
8159         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8160         Execute ltrans stage in parallel when jobs is bigger than 1.
8162 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8164         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8165         pentiumpro on Solaris 8/x86 with Sun as.
8166         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8167         hidden alias bug.
8168         (gcc_cv_as_ix86_quad): Check for .quad directive.
8169         * configure: Regenerate.
8170         * config.in: Regenerate.
8171         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8173 2010-05-19  Martin Jambor  <mjambor@suse.cz>
8175         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8176         also for indirect edges.  Actual printing moved...
8177         (ipa_print_node_jump_functions_for_edge): ...here.
8178         (ipa_compute_jump_functions): Renamed to
8179         ipa_compute_jump_functions_for_edge and made static.
8180         (ipa_compute_jump_functions): New function.
8181         (make_edge_direct_to_target): Check if the number of arguments on
8182         the newly direct edge is the same as the number of parametrs of
8183         the callee.
8184         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8185         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
8186         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8187         analysis functions unconditionally, call the new
8188         ipa_analyze_params_uses on the node instead of every edge.
8190 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
8192         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8193         to tree.
8194         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
8195         also checks for a constant int vs.  non-constant but
8196         loop-invariant steps.
8197         (find_or_create_group): Change the sort algorithm to only consider
8198         steps that are constant ints.
8199         (idx_analyze_ref): Adopt code to handle a tree instead of a
8200         HOST_WIDE_INT for step.
8201         (gather_memory_references_ref): Handle tree instead of int and be
8202         prepared to see a NULL_TREE.
8203         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8204         prefetches if the step cannot be calculated at compile time.
8205         (issue_prefetch_ref): Issue prefetches for non-constant but
8206         loop-invariant steps.
8208 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8210         Revert:
8211         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8213         * tree.h (build_call_list): Remove.
8214         * tree.c (build_call_list): Remove.
8216 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8218         * tree.h (build_call_list): Remove.
8219         * tree.c (build_call_list): Remove.
8221 2010-05-18  Jan Hubicka  <jh@suse.cz>
8223         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8225 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
8227         PR rtl-optimization/43332
8228         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8230 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
8232         * tree.h (build_int_cstu): Implement as static inline.
8233         * tree.c (build_int_cstu): Remove function.
8234         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8235         sign extended.
8237 2010-05-18  Richard Guenther  <rguenther@suse.de>
8239         PR lto/44143
8240         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
8241         (debug): Initialize from -save-temps.
8242         (collect_execute): Print command-line when verbose.
8243         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
8244         for ltrans invocation.  Produce -dumpbase flag again.
8245         (process_args): Remove.
8246         (main): Simplify.
8247         * collect2.c (maybe_run_lto_and_relink): Only pass object
8248         files to lto-wrapper.
8249         * gcc.c (LINK_COMMAND_SPEC): Likewise.
8251 2010-05-18  Jan Hubicka  <jh@suse.cz>
8253         * opts.c (decode_options): Do not disable whopr at ipa_cp.
8254         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8256 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8258         PR lto/44184
8259         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8260         in a GIMPLE_ASM.
8261         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8262         in a GIMPLE_ASM.
8264 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
8266         PR debug/41371
8267         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8268         rtx_equal_p inline.
8270 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8272         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8273         lto-macho as lto_binary_reader.
8275         * darwin.c (darwin_asm_named_section): Do not add assembler comment
8276         after .section directive; just print it before the directive instead.
8278 2010-05-17  Jan Hubicka  <jh@suse.cz>
8280         * cgraph.c (cgraph_create_virtual_clone): Only check
8281         versionable_function_p when not in wpa and checking is enabled.
8282         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8283         there are no more functions to materialize.
8285 2010-05-17  Jan Hubicka  <jh@suse.cz>
8287         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8288         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8289         New functions.
8290         (output_cgraph): Call output_cgraph_opt_summary.
8291         (input_cgrpah): Call input_cgraph_opt_summary.
8292         (output_cgraph_opt_summary_p, output_node_opt_summary,
8293         input_node_opt_summary, input_cgraph_opt_section): New functions.
8294         * lto-section-in.c (lto_section_name): Add cgraphopt.
8295         * tree-inline.c (tree_function_versioning): Handle parm_num.
8296         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8297         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8299 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8301         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8302         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8303         the insn to prefetch ratio heuristic to loops with known trip count.
8305 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8307         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8308         (schedule_prefetches): Do not generate a prefetch if the unroll factor
8309         is far from what is required by the prefetch.
8311 2010-05-17  Jan Hubicka  <jh@suse.cz>
8313         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8314         (ipcp_estimate_growth): Likewise.
8315         (ipcp_const_param_count): Likewise.
8316         (ipcp_insert_stage): Likewise.
8317         * ipa-prop.c (visit_load_for_mod_analysis): New function.
8318         (visit_store_addr_for_mod_analysis): Set used flag.
8319         (ipa_detect_param_modifications): Set used flag for SSE params;
8320         update use of walk_stmt_load_store_addr_ops.
8321         (ipa_print_node_params): Print used flag.
8322         (ipa_write_node_info): Stream used flag.
8323         (ipa_read_node_info): Likewise.
8324         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8325         (ipa_is_param_used): New function.
8326         (lto_ipa_fixup_call_notes): Remove unused declaration.
8328 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8330         PR target/44074
8331         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8332         * configure: Regenerate.
8333         * config.in: Regenerate.
8334         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8335         !HAVE_AS_IX86_REP_LOCK_PREFIX.
8336         Don't emit whitespace.
8337         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8338         (*rep_movsi): Likewise.
8339         (*rep_movsi_rex64): Likewise.
8340         (*rep_movqi): Likewise.
8341         (*rep_movqi_rex64): Likewise.
8342         (*rep_stosdi_rex64): Likewise.
8343         (*rep_stossi): Likewise.
8344         (*rep_stossi_rex64): Likewise.
8345         (*rep_stosqi): Likewise.
8346         (*rep_stosqi_rex64): Likewise.
8347         (*cmpstrnqi_nz_1): Use {%;} after repz.
8348         (*cmpstrnqi_nz_rex_1): Likewise.
8349         (*cmpstrnqi_1): Likewise.
8350         (*cmpstrnqi_rex_1): Likewise.
8351         (*strlenqi_1): Use {%;} after repnz.
8352         (*strlenqi_rex_1): Likewise.
8353         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8354         (*sync_compare_and_swap<mode>): Likewise.
8355         (sync_double_compare_and_swap<mode>): Likewise.
8356         (*sync_double_compare_and_swapdi_pic): Likewise.
8357         (sync_old_add<mode>): Likewise.
8358         (sync_add<mode>): Likewise.
8359         (sync_sub<mode>): Likewise.
8360         (sync_<code><mode>): Likewise.
8362 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8364         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8365         otr_token and polymorphic.
8366         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8367         (cgraph_clone_edge): Copy the above fields.
8368         * tree.c (get_binfo_at_offset): New function.
8369         * tree.h (get_binfo_at_offset): Declare.
8370         * ipa-prop.h (enum jump_func_type): Added known_type jump function
8371         type, reordered items, updated comments.
8372         (union jump_func_value): Added base_type field, reordered fields.
8373         (enum ipa_lattice_type): Moved down in the file.
8374         (struct ipa_param_descriptor): New field polymorphic.
8375         (ipa_is_param_polymorphic): New function.
8376         * ipa-prop.c: Include gimple.h and gimple-fold.h.
8377         (ipa_print_node_jump_functions): Print known type jump functions.
8378         (compute_complex_pass_through): Renamed to...
8379         (compute_complex_assign_jump_func): this.
8380         (compute_complex_ancestor_jump_func): New function.
8381         (compute_known_type_jump_func): Likewise.
8382         (compute_scalar_jump_functions): Create known type and complex ancestor
8383         jump functions.
8384         (ipa_note_param_call): New parameter polymorphic, set the corresponding
8385         flag in the call note accordingly.
8386         (ipa_analyze_call_uses): Renamed to...
8387         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
8388         variable var only in the block where it is used.
8389         (ipa_analyze_virtual_call_uses): New function.
8390         (ipa_analyze_call_uses): Likewise.
8391         (combine_known_type_and_ancestor_jfs): Likewise.
8392         (update_jump_functions_after_inlining): Implemented handling of a
8393         number of new jump function types combination.
8394         (print_edge_addition_message): Removed.
8395         (make_edge_direct_to_target): New function.
8396         (try_make_edge_direct_simple_call): Likewise.
8397         (try_make_edge_direct_virtual_call): Likewise.
8398         (update_call_notes_after_inlining): Renamed to...
8399         (update_indirect_edges_after_inlining): this.  Moved edge creation for
8400         indirect calls to try_make_edge_direct_simple_call, also calls
8401         try_make_edge_direct_virtual_call for virtual calls.
8402         (ipa_print_node_params): Changed the header message.
8403         (ipa_write_jump_function): Stream also known type jump functions.
8404         (ipa_read_jump_function): Likewise.
8405         (ipa_write_indirect_edge_info): Stream new fields in
8406         cgraph_indirect_call_info.
8407         (ipa_read_indirect_edge_info): Likewise.
8408         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8409         GIMPLE_FOLD_H.
8411 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8413         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8415 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8417         * tree.h (CALL_EXPR_ARGS): Delete.
8418         (call_expr_arglist): Delete.
8419         * tree.c (call_expr_arglist): Delete.
8420         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8421         targetm.fold_builtin.
8422         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8423         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8424         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8425         arglist parameter.  Use CALL_EXPR_ARG.
8426         (picochip_expand_builtin_3op): Likewise.
8427         (picochip_expand_builtin_2opvoid): Likewise.
8428         (picochip_expand_array_get): Likewise.
8429         (picochip_expand_array_put): Likewise.
8430         (picochip_expand_array_testport): Likewise.
8431         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
8432         rather than arglist.
8433         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8434         CALL_EXPR_ARGS.
8435         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8436         than TREE_VALUE and TREE_CHAIN.
8437         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8438         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8439         the arglist.
8441 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8443         PR bootstrap/42347
8444         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8445         to have no fallthru edge.
8447         PR middle-end/44102
8448         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8449         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8450         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8451         add BARRIER after previous bb if needed.
8453 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8455         * tree.c (build_function_type_list_1): Remove bogus assert condition.
8457 2010-05-17  Alan Modra  <amodra@gmail.com>
8459         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8460         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
8461         with copy_reg rtx param.
8462         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8463         Correct cases where code for ABI_V4 did not initialise the reg
8464         used to access frame.  Also leave frame_reg_rtx as sp for large
8465         frames that save no regs.
8467 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8469         PR middle-end/44133
8470         * tree-sra.c (create_access_replacement): New parameter rename, mark
8471         the replaement for renaming only when it is true.
8472         (get_access_replacement): Pass true in the rename parameter of
8473         create_access_replacement.
8474         (get_unrenamed_access_replacement): New function.
8475         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8476         replacement declaration from it.
8478 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
8480         * function.c (try_fit_stack_local, add_frame_space): New static
8481         functions.
8482         (assign_stack_local_1): Use them.  Look for opportunities to use
8483         space previously wasted on alignment.
8484         * function.h (struct frame_space): New.
8485         (struct rtl_data): Add FRAME_SPACE_LIST member.
8486         * reload1.c (something_was_spilled): New static variable.
8487         (alter_reg): Set it.
8488         (reload): Test it in addition to testing if the frame size changed.
8490 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
8492         * config/s390/s390.c: Define sane prefetch settings and activate
8493         flag_prefetch_loop_arrays on -O3.
8494         * config/s390/s390.h: Declare that read can use write prefetch.
8496 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8498         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8499         build.
8501 2010-05-16  Jan Hubicka  <jh@suse.cz>
8503         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8504         function body; do not check stdarg field of struct function.
8506 2010-05-16  Jan Hubicka  <jh@suse.cz>
8508         * cgraph.c (dump_cgraph_node): Dump versionable flag.
8509         * cgraph.h (cgraph_local_info): Add versionable flag.
8510         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8511         (ipcp_versionable_function_p): Use it.
8512         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8513         versionable flag.
8515 2010-05-16  Jan Hubicka  <jh@suse.cz>
8517         * cgraph.c (cgraph_clone_node): Take decl argument and insert
8518         clone into hash when it is different from orig.
8519         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8520         * cgraph.h (cgraph_clone_node): Update prototype.
8521         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8522         (lto_cgraph_encoder_delete): Delete body map.
8523         (lto_cgraph_encoder_size): Move to header.
8524         (lto_cgraph_encoder_encode_body_p,
8525         lto_set_cgraph_encoder_encode_body): New.
8526         (lto_output_node): Do not take written_decls argument; output clone_of
8527         pointer.
8528         (add_node_to): Add include_body_argument; call
8529         lto_set_cgraph_encoder_encode_body on master of the clone.
8530         (add_references): Update use of add_node_to.
8531         (compute_ltrans_boundary): Likewise.
8532         (output_cgraph): Do not create written_decls bitmap.
8533         (input_node): Take nodes argument; stream in clone_of correctly.
8534         (input_cgraph_1): Update use of input_node.
8535         * lto-streamer-out.c (lto_output): Use encoder info to decide
8536         what bodies to output.
8537         * ipa-inline.c (cgraph_clone_inlined_nodes,
8538         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8539         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8540         (lto_cgraph_encoder_size): Define here.
8541         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8542         Declare.
8544 2010-05-16  Richard Guenther  <rguenther@suse.de>
8546         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8547         -fipa-type-escape.
8548         * ipa-type-escape.c (gate_type_escape_vars): Run when
8549         -fipa-struct-reorg runs.
8550         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8551         * common.opt (fipa-type-escape): Remove.
8553 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8555         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8556         (decode_options): Likewise.
8557         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8559 2010-05-16  Jan Hubicka  <jh@suse.cz>
8561         * ipa.c (function_and_variable_visibility): Also bring local all
8562         aliases.
8564 2010-05-16  Richard Guenther  <rguenther@suse.de>
8566         * alias.c (nonoverlapping_memrefs_p): Remove use of
8567         IPA type-escape information.
8569 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
8571         * c-common.c (c_common_reswords): Add _Static_assert for C.
8572         * c-parser.c (c_token_starts_declaration,
8573         c_parser_next_token_starts_declaration,
8574         c_parser_static_assert_declaration_no_semi,
8575         c_parser_static_assert_declaration): New.
8576         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8577         Handle static assertions if static_assert_ok.
8578         (c_parser_external_declaration, c_parser_declaration_or_fndef,
8579         c_parser_compound_statement_nostart, c_parser_label,
8580         c_parser_for_statement, c_parser_objc_methodprotolist,
8581         c_parser_omp_for_loop): All callers of
8582         c_parser_declaration_or_fndef changed.
8583         (c_parser_struct_declaration): Handle static assertions.
8584         (c_parser_compound_statement_nostart): Use
8585         c_parser_next_token_starts_declaration and
8586         c_token_starts_declaration to detect start of declarations.
8587         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
8588         Likewise.
8590 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
8592         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8593         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8594         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8595         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8596         (mmix_function_outgoing_value): Rename to...
8597         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
8598         (mmix_function_value_regno_p): Make static.
8599         (mmix_libcall_value): New function.
8600         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
8601         mmix_function_value_regno_p): Remove declaration.
8603 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8605         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
8606         BUILT_IN_ALLOCA if stack checking is enabled.
8608 2010-05-16  Richard Guenther  <rguenther@suse.de>
8610         * var-tracking.c (vars_copy_1): Inline ...
8611         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8612         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
8613         (variable_merge_over_cur): Adjust.  Merge asserts.
8614         (variable_merge_over_src): Likewise.
8615         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
8616         (variable_post_merge_new_vals): Merge asserts.
8617         (variable_post_merge_perm_vals): Likewise.
8618         (find_mem_expr_in_1pdv): Likewise.
8619         (dataflow_set_different_value): Remove.
8620         (onepart_variable_different_p): Merge asserts.
8621         (variable_different_p): Likewise.
8622         (dataflow_set_different_1): Inline ...
8623         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8624         (emit_notes_for_differences_1): Merge asserts.
8626 2010-05-16  Richard Guenther  <rguenther@suse.de>
8628         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
8629         * optabs.c (libfunc_decl_hash): Likewise.
8630         * varasm.c (emutls_decl): Likewise.
8632 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
8634         * c-decl.c: Don't include gimple.h.
8635         (merge_decls): Do not copy gimple_body.
8637 2010-05-15  Jason Merrill  <jason@redhat.com>
8639         * c.opt: Add -fnothrow-opt.
8641 2010-05-15  Jan Hubicka  <jh@suse.cz>
8643         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
8644         analyzed.
8645         * passes.c (ipa_write_summaries): Write all analyzed nodes.
8647 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
8649         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
8650         * Makefile.in: Add it.
8651         Fix all other Makefile dependencies for changes below.
8652         * tree.h: Include it instead of defining VEC primitives here.
8653         * gimple.h: Likewise.
8654         * rtl.h: Likewise.
8655         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
8656         * except.h: Include vecir.h, break dependence on tree.h.
8658         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
8659         Move from here...
8660         * tree-iterator.c: ...to here.
8661         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
8663         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
8664         tm_p.h.
8665         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
8666         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
8667         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
8668         tree-mudflap.h, and target.h.
8669         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
8670         predict.h, tree-inline.h, gimple.h, and langhooks.h.
8671         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
8672         Add FIXME for why gimple.h is still included (should be unnecessary
8673         since GCC 4.5 gimplification unit-at-a-time).
8674         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
8675         * c-pragma.c: Add FIXME for why function.h needs to be included just
8676         for cfun, at front-end level.
8677         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
8678         Do not include ggc.h, but include vecprim.h for VEC(char).
8679         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
8680         Explain why target.h is included.
8681         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
8682         Explain why gimple.h is included.
8683         * c-ppoutput.c: Do not include tm.h.
8684         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
8685         * c-parses.c: Explain why rtl.h is included, and that this (and only
8686         this) is also why tm.h must be included.
8687         Do not include except.h.
8688         * c-lang.c: Do not include ggc.h.
8690 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
8692         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
8694 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
8696         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
8697         unions by default if those structs and unions have no tags.  Do
8698         not condition anonymous struct and unions handling on flag_iso.
8699         Allow anonymous structs and unions for C1X.
8700         (finish_struct): Do not diagnose lack of named fields when
8701         anonymous structs and unions present for C1X.  Accept flexible
8702         array members in structure with anonymous structs or unions but no
8703         directly named fields.
8704         * doc/extend.texi (Unnamed Fields): Update.
8706 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8708         * gimple.h (compare_field_offset): Rename into...
8709         (gimple_compare_field_offset): ...this.
8710         * gimple.c (compare_field_offset): Rename into...
8711         (gimple_compare_field_offset): ...this.  Compare the full access if
8712         the offset is self-referential.
8713         (gimple_types_compatible_p): Adjust for above renaming.
8714         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
8715         DECL_NONADDRESSABLE_P flag of fields before merging them.
8717 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
8719         * tree.h (ctor_to_list): Delete.
8720         * tree.c (ctor_to_list): Delete.
8722 2010-05-15  Jan Hubicka  <jh@suse.cz>
8724         * ipa-reference.c: Include toplev.h
8725         (is_proper_for_analysis): Only add to all_module_statics
8726         if it is allocated.
8727         (write_node_summary_p, stream_out_bitmap,
8728         ipa_reference_write_optimization_summary,
8729         ipa_reference_read_optimization_summary): New.
8730         (struct ipa_opt_pass_d pass_ipa_reference): Add
8731         optimization summary streaming.
8732         * lto-cgraph.c (referenced_from_this_partition_p,
8733         reachable_from_this_partition_p): New functions.
8734         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8735         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
8736         * opts.c (decode_options): Enable ipa_reference.
8737         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
8738         * lto-streamer.h (referenced_from_this_partition_p,
8739         reachable_from_this_partition_p): Declare.
8741 2010-05-15  Richard Guenther  <rguenther@suse.de>
8743         PR tree-optimization/44038
8744         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
8745         taking the address of a V_C_E of a constant.
8747 2010-05-14  Jan Hubicka  <jh@suse.cz>
8749         * tree.h (memory_identifier_string): Remove.
8750         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
8751         (ipa_reference_global_vars_info_d): Remove statics_not_read and
8752         statics_not_written.
8753         (ipa_reference_optimization_summary_d): New structure.
8754         (ipa_reference_optimization_summary_t): New type and vector.
8755         (ipa_reference_vars_info_d): Embedd structures instead of using
8756         pointers.
8757         (reference_vars_to_consider): Remove out of GGC space.
8758         (module_statics_escape): Remove.
8759         (global_info_obstack): Rename to ...
8760         (optimization_summary_obstack): ... this one.
8761         (initialization_status_t): Remove.
8762         (memory_identifier_string): Remove.
8763         (get_reference_vars_info): Fix indenting.
8764         (set_reference_vars_info): Likewise.
8765         (get_reference_optimization_summary): New.
8766         (set_reference_optimization_summary): New.
8767         (get_global_reference_vars_info): Remove.
8768         (ipa_reference_get_read_global): Remove.
8769         (ipa_reference_get_written_global): Remove.
8770         (ipa_reference_get_not_read_global): Update.
8771         (ipa_reference_get_not_written_global): Update.
8772         (is_proper_for_analysis): Outlaw addressable.
8773         (propagate_bits): Update for new datastructures.
8774         (analyze_variable): Remove.
8775         (init_function_info): Update for new datastructures.
8776         (clean_function_local_data): Remove.
8777         (clean_function): Remove.
8778         (copy_global_bitmap): Use optimizations_summary_obstack.
8779         (duplicate_node_data): Duplicate optimization summary only.
8780         (remove_node_data): Remove optimization summary only.
8781         (generate_summary): Do not analyze variables; do not compute
8782         module_statics_escape; do not prune solutions by it.
8783         (read_write_all_from_decl): Fix typos in comments.
8784         (propagate): Doscover readonly and nonaddressable first;
8785         update for new datastructures; share global bitmaps.
8786         * ipa-reference.h (ipa_reference_get_read_global,
8787         ipa_reference_get_written_global): Remove.
8788         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
8789         * Makefile.in: Remove ipa-refereference from GT files.
8791 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8793         PR debug/44112
8794         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
8795         for all SYMBOL_REF_DECLs.
8797 2010-05-14  Jan Hubicka  <jh@suse.cz>
8799         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8800         (varpool_all_refs_explicit_p): New inline function.
8801         * ipa-reference.c: Update comment.
8802         (module_statics_written): Remove.
8803         (get_static_decl): Remove.
8804         (ipa_init): Do not initialize module_statics_written.
8805         (analyze_function): Likewise.
8806         (generate_summary): Likewise; do not compute module_statics_readonly
8807         and do not update variable flags.
8808         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8809         * ipa.c: Inlucde flags.h
8810         (cgraph_local_node_p): New.
8811         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8812         promote functions to local.
8813         (ipa_discover_readonly_nonaddressable_vars): New function.
8814         (function_and_variable_visibility): Use cgraph_local_node_p.
8815         * varpool.c (varpool_finalize_decl): Set force_output for
8816         DECL_PRESERVE_P vars.
8818 2010-05-14  Jan Hubicka  <jh@suse.cz>
8820         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8822 2010-05-14  Richard Guenther  <rguenther@suse.de>
8824         PR tree-optimization/44119
8825         * tree-ssa-pre.c (eliminate): Properly mark replacement of
8826         a PHI node necessary.
8828 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8830         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8832 2010-05-14  Jason Merrill  <jason@redhat.com>
8834         PR c++/44127
8835         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8836         (gimple_call_set_nothrow): New.
8837         * gimple.c (gimple_build_call_from_tree): Call it.
8838         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8840         PR c++/44127
8841         * gimplify.c (gimplify_seq_add_stmt): No longer static.
8842         * gimple.h: Declare it.
8843         * gimple.c (gimple_build_eh_filter): No ops.
8845 2010-05-14  Jan Hubicka  <jh@suse.cz>
8847         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8848         nodes already in queue.
8849         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8850         re-enqueueing node.
8852 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8854         PR debug/44136
8855         * cfgexpand.c (expand_debug_expr): If non-memory op0
8856         has BLKmode, return NULL.
8858 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
8860         * config.gcc: Add support for --with-cpu option for bdver1.
8861         * config/i386/i386.h (TARGET_BDVER1): New macro.
8862         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8863         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8864         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8865         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8866         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8867         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8868         (processor_type): Add PROCESSOR_BDVER1.
8869         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8870         processor_type in config/i386/i386.h.
8871         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8872         movaps <reg, reg> instead of movapd <reg, reg> when replacing
8873         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
8874         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
8875         to emit packed xor instead of packed double/packed integer
8876         xor for SSE and AVX when moving a zero value.
8877         * config/i386/sse.md: Add check for
8878         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
8879         movapd/movdqa for SSE and AVX.
8880         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
8881         single logical operations i.e and, or and xor instead of packed double
8882         logical operations for SSE and AVX.
8883         * config/i386/i386-c.c (ix86_target_macros_internal):
8884         Add PROCESSOR_BDVER1.
8885         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
8886         (has_fma4, has_xop): New.
8887         * config/i386/i386.c (bdver1_cost): New variable.
8888         (m_BDVER1): New macro.
8889         (m_AMD_MULTIPLE): Add m_BDVER1.
8890         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
8891         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
8892         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
8893         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
8894         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
8895         x86_tune_sse_partial_reg_dependency,
8896         x86_tune_sse_unaligned_load_optimal,
8897         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
8898         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
8899         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
8900         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
8901         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
8902         Enable/disable for bdver1.
8903         (processor_target_table): Add bdver1_cost.
8904         (cpu_names): Add bdver1.
8905         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
8906          processor_alias_table.
8907         (ix86_expand_vector_move_misalign): Change.
8908         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
8909         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
8910         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
8911         of movupd/movdqu for SSE and AVX.
8912         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
8913         (ix86_tune_adjust_cost): Add code for bdver1.
8914         (standard_sse_constant_opcode): Add check for
8915         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
8916         of packed double xor for SSE and AVX.
8918 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
8920         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
8921         result to unsigned.
8923 2010-05-14  Tristan Gingold  <gingold@adacore.com>
8925         * toplev.c (default_debug_hooks): Remove this variable.
8926         (process_options): Remove assignments to default_debug_hooks.
8928 2010-05-14  Martin Jambor  <mjambor@suse.cz>
8930         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
8931         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
8932         * langhooks.h (struct lang_hooks_for_decls): Removed field
8933         fold_obj_type_ref.
8934         * tree.c (free_lang_data): Remove assignment to
8935         lang_hooks.fold_obj_type_ref.
8936         * tree.def (OBJ_TYPE_REF): Update comment.
8938 2010-05-14  Richard Guenther  <rguenther@suse.de>
8940         PR tree-optimization/44124
8941         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
8943 2010-05-14  Alan Modra  <amodra@gmail.com>
8945         PR target/44075
8946         * config/rs6000/rs6000.c (struct machine_function): Reorder
8947         fields for better packing.  Add lr_save_state.
8948         (rs6000_ra_ever_killed): Return lr_save_state if set.
8949         (rs6000_emit_eh_reg_restore): Set lr_save_state.
8951 2010-05-13  Jan Hubicka  <jh@suse.cz>
8953         * varpool.c (decide_is_variable_needed): Drop code checking
8954         TREE_SYMBOL_REFERENCED.
8956 2010-05-13  Jan Hubicka  <jh@suse.cz>
8958         * final.c (output_addr_const): Do not call mark_decl_referenced.
8959         * cgraphunit.c (process_function_and_variable_attributes): Use
8960         mark_needed_node dirrectly.
8961         (assemble_thunk): Do not call mark_decl_referenced.
8963 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
8965         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
8967 2010-05-13  Jeff Law  <law@redhat.com>
8969         * ira-conflicts.c (print_allocno_conflicts): New function broken out
8970         from...
8971         (print_conflicts): Call print_allocno_conflicts.
8973 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
8975         PR debug/44104
8976         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
8977         if it is NULL.
8979 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
8981         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
8982         t-mingw-w64 or t-mingw-w32 for multilib configuration.
8983         * config/i386/t-mingw-w32: New.
8984         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
8986 2010-05-13  Martin Jambor  <mjambor@suse.cz>
8988         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
8989         gimple-fold.c).
8990         * gimple-fold.c (get_base_binfo_for_type): New function.
8991         (gimple_get_relevant_ref_binfo): Likewise.
8992         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8993         (gimple_fold_obj_type_ref): Likewise.
8994         (fold_gimple_call): Simplify condition for folding virtual calls
8995         and call gimple_fold_obj_type_ref.
8996         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
8997         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8999 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
9001         * config/rs6000/rs6000-protos.h
9002         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9003         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9004         (rs6000_debug_mode_dependent_address)
9005         (rs6000_mode_dependent_address_ptr): Likewise.
9007 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9009         PR debug/43983
9010         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9011         by SRA.
9012         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9013         * tree-sra.c (create_access_replacement): Call unshare_expr before
9014         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9015         * dwarf2out.c: Include tree-flow.h.
9016         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9017         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9018         Handle DW_OP_bit_piece.
9019         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9020         construct_piece_list, adjust_piece_list): New functions.
9021         (add_var_loc_to_decl): Handle SRA optimized variables.
9022         Adjust for var_loc_note to loc field renaming.
9023         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9024         in VAR_LOCATION note.
9025         (new_loc_descr_op_bit_piece): New function.
9026         (dw_sra_loc_expr): New function.
9027         (dw_loc_list): Use it.  Don't handle the last range after the
9028         loop, handle it inside of the loop.  Adjust for var_loc_note
9029         to loc field renaming.
9030         (add_location_or_const_value_attribute): Only special case
9031         single entry loc lists if loc is NOTE_P.  Adjust for
9032         var_loc_note to loc field renaming.
9033         (dwarf2out_var_location): Don't set newloc->var_loc_note
9034         and newloc->next here.
9036 2010-05-12  Jan Hubicka  <jh@suse.cz>
9038         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9039         flag.
9040         * cgraph.h (cgraph_only_called_directly_p,
9041         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9042         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9043         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9044         (assemble
9045         * ipa.c (cgraph_remove_unreachable_nodes): Use
9046         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9047         flags.
9048         * tree-inline.c (copy_bb): Check address_taken flag.
9049         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9050         externally_visible flag.
9052 2010-05-12  Jason Merrill  <jason@redhat.com>
9054         PR bootstrap/44048
9055         PR target/44099
9056         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9057         * sdbout.c (plain_type_1): Likewise.
9058         * dwarf2out.c (is_base_type): Likewise.
9059         (gen_type_die_with_usage): Likewise.  Generate
9060         DW_TAG_unspecified_type for any LANG_TYPE.
9062 2010-05-12  Jan Hubicka  <jh@suse.cz>
9064         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9065         indrect edges too.
9066         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9067         (cgraph_clone_edge): Update.
9068         (cgraph_node_remove_callees): Remove indirect calls too.
9069         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9070         (cgraph_create_indirect_edge): Update prototype.
9071         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9072         is_proper_for_analysis.
9073         (add_new_function, visited_nodes, function_insertion_hook_holder,
9074         get_local_reference_vars_info, mark_address_taken, mark_address,
9075         mark_load, mark_store, check_asm_memory_clobber, check_call,
9076         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9077         (ipa_init): Do not initialize visited_nodes;
9078         function_insertion_hook_holder.
9079         (analyze_variable): Rewrite.
9080         (analyze_function): Rewrite.
9081         (copy_local_bitmap): Remove.
9082         (duplicate_node_dat): Do not duplicate local info.
9083         (generate_summary): Simplify to only walk cgraph.
9084         (write_node_summary_p, ipa_reference_write_summary,
9085         ipa_reference_read_summary): Remove.
9086         (propagate): Do not remove function insertion;
9087         generate summary.
9088         (pass_ipa_reference): NULLify summary handling fields.
9089         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9090         (input_edge): Input ecf_flags.
9091         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9092         (update_indirect_edges_after_inlining): Ignore edges with unknown
9093         param.
9095 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
9097         * implicit-zee.c: New file.
9098         * tree-pass.h (pass_implicit_zee): Declare.
9099         * passes.c (init_optimization_passes): Add zee pass.
9100         * common.opt (fzee): New flag.
9101         * timevar.def (TV_ZEE): Define.
9102         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9103         and beyond.
9104         * Makefile.in (implicit-zee.o): Add new build file.
9106 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9107             Nathan Froyd  <froydnj@codesourcery.com>
9109         * c-common.c (sync_resolve_params): Remove write-only variable.
9111 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
9113         * target.h (struct gcc_target): Add mode_dependent_address_p field.
9114         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9115         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9116         * targhooks.c (default_mode_dependent_address_p): New function.
9117         * targhooks.h (default_mode_dependent_address_p): Declare function.
9118         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9119         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9120         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9121         target hook. Change return type to bool.
9122         * recog.h (mode_dependent_address_p): Change return type to bool.
9124 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9125             Nathan Froyd  <froydnj@codesourcery.com>
9127         * tree-mudflap.c (build_function_type_0, build_function_type_1,
9128         build_function_type_2, build_function_type_3): Remove.
9129         (mudflap_init): Use build_function_type_list.
9131 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9132             Nathan Froyd  <froydnj@codesourcery.com>
9134         * coverage.c (build_fn_info_value): Call build_constructor instead of
9135         build_constructor_from_list.
9136         (build_ctr_info_value): Likewise.
9137         (build_gcov_info): Likewise.
9139 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
9141         * tree.c (build_constructor): Compute TREE_CONSTANT for the
9142         resultant constructor.
9143         (build_constructor_single): Don't set TREE_CONSTANT.
9144         (build_constructor_from_list): Don't compute TREE_CONSTANT.
9146 2010-05-12  Jan Hubicka  <jh@suse.cz>
9148         * cgraph.h (struct varpool_node): Add aux.
9149         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9150         * varpool.c (varpool_remove_node): Do not remove initializer.
9151         (varpool_reset_queue): Export.
9152         (varpool_finalize_decl): Volatile vars are forced to be output.
9153         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9154         replaced decl.
9155         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9156         process_references, varpool_can_remove_if_no_refs): New functions.
9157         (cgraph_remove_unreachable_nodes): Handle variables too.
9159 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9161         PR target/44088
9162         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9164 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
9166         PR middle-end/44085
9167         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9168         change value of ORT_TASK.
9169         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9170         (omp_notice_threadprivate_variable): New function.
9171         (omp_notice_variable): Call it for threadprivate variables.
9172         If enclosing ctx is a task, print enclosing task rather than
9173         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
9174         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9175         if task has untied clause.
9177         PR debug/42278
9178         * dwarf2out.c (base_type_die): Don't add name attribute here.
9179         (modified_type_die): Instead of sizetype use
9180         its underlying original type.  If a DW_TAG_base_type doesn't
9181         have name added, add __unknown__.
9182         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9183         always call force_type_die instead.
9185 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
9187         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9188         for __stack_chk_guard.
9190 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9192         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9193         don't call start_source_file debug hook here...
9194         (finish_options): ... but here, after outputting predefined and
9195         command line defines and undefs.
9197         PR middle-end/44071
9198         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9199         no fallthru edge.
9200         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9201         optimizing away empty bb with no successors, move over its
9202         footer chain to fallthru predecessor.
9203         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9204         (rtl_split_edge): For asm goto call patch_jump_insn even if
9205         splitting fallthru edge.
9207         PR c++/44059
9208         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9209         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9210         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9211         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9212         on DW.ref.* decls.
9214         PR c++/44062
9215         * c-parser.c (c_parser_expression): Mark LHS of a comma
9216         expression as read if it is a decl, handled component or
9217         COMPOUND_EXPR with that on the RHS.
9218         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9219         if it is a decl or handled component.
9221 2010-05-11  Jan Hubicka  <jh@suse.cz>
9223         * lto-symtab.c (lto_symtab_free): New function.
9224         * lto-streamer.h (lto_symtab_free): Declare.
9226 2010-05-11  Jan Hubicka  <jh@suse.cz>
9228         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9229         that if function is needed it is reachable.
9230         (lto_output_node): See if it the function is reachable or referenced.
9231         (output_cgraph): Update call of lto_output_node.
9232         * lto-streamer.h (reachable_from_other_partition_p): Declare.
9234 2010-05-11  Jan Hubicka  <jh@suse.cz>
9236         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9237         Mark as used.
9239 2010-05-11  Jan Hubicka  <jh@suse.cz>
9241         PR tree-optimize/44063
9242         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9243         queue.
9244         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9245         limits.
9246         (estimate_function_body_sizes): Compute sizes even when disregarding.
9248 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
9250         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9252 2010-05-11  Jan Hubicka  <jh@suse.cz>
9254         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9255         into every boundary.
9257 2010-05-11  Jan Hubicka  <jh@suse.cz>
9259         * matrix-reorg.c (matrix_reorg): Rebuild edges.
9261 2010-05-11  Jan Hubicka  <jh@suse.cz>
9263         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9264         lto_streamer_cache_delete): Put nodes into heap.
9265         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9266         heap.
9268 2010-05-11  Jan Hubicka  <jh@suse.cz>
9270         * cgraphbuild.c (cgraph_rebuild_references): New.
9271         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9272         out extern inlines.
9273         * cgraph.h (cgraph_rebuild_references): Declare.
9274         * tree-inline.c (tree_function_versioning): Use it.
9275         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9277 2010-05-11  Jan Hubicka  <jh@suse.cz>
9279         * cgraph.c: Include ipa-utils.h
9280         (cgraph_create_virtual_clone): Update references.
9281         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9283 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9285         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9286         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9287         cache size.
9289 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9291         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9293 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9295         * gcc.c (execute): For -### don't quote arguments that
9296         contain just alphanumerics and _/-. characters.
9297         * doc/invoke.texi: Document that change for -###.
9299         PR debug/44023
9300         * df-problems.c (struct dead_debug): Add to_rescan field.
9301         (dead_debug_init): Clear to_rescan field.
9302         (dead_debug_finish): Rescan all debug insns in to_rescan
9303         bitmap and free the bitmap.
9304         (dead_debug_insert_before): Instead of rescanning debug insns
9305         immediately queue their rescanning until dead_debug_finish.
9306         (df_note_bb_compute): After dead_debug_add do continue instead
9307         of break.
9309 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
9311         PR debug/44028
9312         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9313         clear also INSN_REG_USE_LIST.
9315 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9317         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9319 2010-05-10  Jan Hubicka  <jh@suse.cz>
9321         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9322         commited change.
9324 2010-05-10  Jan Hubicka  <jh@suse.cz>
9326         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9327         Allocate encoders.
9328         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9329         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9330         (lto_streamer_cache_create): Init alloc pool.
9331         (lto_streamer_cache_delete): Free alloc pool.
9332         * lto-streamer.h: Include alloc pool.
9333         (lto_streamer_cache_d): Use alloc pool.
9334         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9336 2010-05-10  Jan Hubicka  <jh@suse.cz>
9338         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9339         * cgraphbuild.c: Include except.h
9340         (record_type_list, record_eh_tables): New function.
9341         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9343 2010-05-10  Jan Hubicka  <jh@suse.cz>
9345         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9346         __frame_dummy_init_array_entry, force_to_data): Attribute as used
9347         rather than unused.
9349 2010-05-10  Michael Matz  <matz@suse.de>
9351         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9352         (can_reassociate_p): Use FLOAT_TYPE_P.
9353         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9354         (vect_force_simple_reduction): ... this.
9355         * tree-parloops.c (gather_scalar_reductions): Use
9356         vect_force_simple_reduction.
9357         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9358         vect_is_simple_reduction, add modify argument, if true rewrite
9359         "a-b" into "a+(-b)".
9360         (vect_is_simple_reduction, vect_force_simple_reduction): New
9361         functions.
9362         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9364 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9365             Vladimir Makarov  <vmakarov@redhat.com>
9367         PR rtl-optimization/44012
9368         * ira-build.c (remove_unnecessary_allocnos): Nullify
9369         regno_allocno_map of the removed allocno.
9371 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9373         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9374         to /dev/null.
9375         * configure: Regenerate.
9377 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9379         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9380         unused.
9381         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9382         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9383         support in Sun ld.
9384         * configure: Regenerate.
9386 2010-05-10  Richard Guenther  <rguenther@suse.de>
9388         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9389         marked if the entry identifier is marked.
9391 2010-05-10  Richard Guenther  <rguenther@suse.de>
9393         * c-common.c (struct c_common_attributes): Add fnspec attribute.
9394         (handle_fnspec_attribute): New function.
9395         * gimple.h (gimple_call_return_flags): Declare.
9396         (gimple_call_arg_flags): Likewise.
9397         * gimple.c (gimple_call_arg_flags): New function.
9398         (gimple_call_return_flags): Likewise.
9399         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9400         New argument flags.
9401         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9402         return value flags.
9403         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9404         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9405         main work to ...
9406         (make_heapvar_for): ... this new function.
9407         (handle_rhs_call): Handle fnspec attribute argument specifiers.
9408         (handle_lhs_call): Likewise.
9409         (find_func_aliases): Adjust.
9411 2010-05-10  Richard Guenther  <rguenther@suse.de>
9413         PR tree-optimization/44050
9414         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9416 2010-05-10  Wei Guozhi  <carrot@google.com>
9418         PR target/42879
9419         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9421 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9423         PR c/10676
9424         * c-typeck.c (lookup_field): Take a type directly.  Update
9425         recursive calls.
9426         (build_component_ref): Update call to lookup_field.
9427         (set_init_label): Use lookup_field to find initialized field.
9428         Handle returned list of fields like a sequence of designators.
9430 2010-05-09  Richard Guenther  <rguenther@suse.de>
9432         PR middle-end/44024
9433         * fold-const.c (tree_single_nonzero_warnv_p): Properly
9434         handle &FUNCTION_DECL.
9436 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9438         PR c/4784
9439         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
9440         structures and unions recursively.
9441         (detect_field_duplicates): Move duplicate detection with a hash to
9442         detect_field_duplicates_hash.  Always use a hash if anonymous
9443         structures or unions are present.
9444         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9445         give errors.
9447 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9449         PR target/44046
9450         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9451         detect Atom, Core 2 and Core i7.
9453 2010-05-09  Richard Guenther  <rguenther@suse.de>
9455         * gcc.c (store_arg): Handle temporary file deletion for
9456         joined arguments.
9458 2010-05-09  Richard Guenther  <rguenther@suse.de>
9460         PR middle-end/44043
9461         * ipa-inline.c (estimate_function_body_sizes): Return after
9462         disregarding inline limits.
9464 2010-05-09  Richard Guenther  <rguenther@suse.de>
9466         * gcc.c (store_arg): Revert last change.
9468 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9470         PR middle-end/28685
9471         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9472         (optimize_ops_list): Call it.
9474 2010-05-08  Richard Guenther  <rguenther@suse.de>
9476         PR tree-optimization/44030
9477         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
9478         NECESSARY flag if we propagate from a inserted expression.
9480 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9482         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9483         domain types as equal if they are both PLACEHOLDER_EXPRs.
9485 2010-05-08  Richard Guenther  <rguenther@suse.de>
9487         * lto-wrapper.c (run_gcc): Remove linker output from
9488         command line for LTRANS invocation.
9490 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9492         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9493         lto-macho as lto_binary_reader.
9494         * target.h (struct gcc_target): New hooks lto_start and lto_end.
9495         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9496         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9497         in lto_start and lto_end calls.
9498         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
9499         magic numbers.
9500         (scan_prog_file): Update is_elf_or_coff call.
9501         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9503         * collect2.c (main): Fix enum comparison.
9505         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9506         Add prototypes.
9507         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9508         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
9509         and TARGET_ASM_LTO_END.
9510         * darwin.c: Include obstack.h and lto-streamer.h.
9511         (lto_section_names_offset, lto_section_names_obstack,
9512         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9513         global variables.
9514         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9515         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
9516         to a temporary file.
9517         (darwin_asm_lto_end): New function.  Restore asm_out_file.
9518         (darwin_asm_named_section): For LTO sections, replace the name with
9519         the offset of the section name in a string table, and build this
9520         table.
9521         (darwin_file_start): Initialize global vars for LTO support.
9522         (darwin_file_end): If output to asm_out_file was redirected, append it
9523         to the proper asm_out_file here.  Add the section names section.
9525 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9527         * c-pragma.c (pending_weak_d, pending_weak): New.
9528         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9529         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9530         handle_pragma_weak): Update the uses of pending_weaks.
9532 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9534         PR documentation/44016
9535         * doc/standards.texi (Standards): Link to unversioned
9536         cxx0x_status.html page.
9538 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
9540         PR target/43708
9541         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9542         in addition to TREE_USED, to avoid "set but unused" warnings.
9544 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9546         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9547         (is_loop_prefetching_profitable): Do not insert prefetches
9548         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9549         times the prefetch ahead distance.
9551 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9553         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9554         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9555         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9556         the unroll_factor.
9558 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9560         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9561         a diagnostic info when the insn-to-mem ratio is too small.
9563 2010-05-07  Richard Guenther  <rguenther@suse.de>
9565         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9566         the linker plugin.
9567         (store_arg): Queue temp_filename for deletion instead of
9568         the whole argument.
9570 2010-05-07  Richard Guenther  <rguenther@suse.de>
9572         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9573         (run_gcc): Handle LTRANS phase invocation.
9574         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9576 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
9578         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
9579         this is also meaningful on PARM_DECLs and RESULT_DECLs.
9581 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9583         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
9585 2010-05-07  Richard Guenther  <rguenther@suse.de>
9587         PR tree-optimization/44020
9588         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
9589         code when PRE is not yet initialized.
9591 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9593         * config/mips/dbxmdebug.h: Remove.
9594         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
9596 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
9598         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
9599         with null pointer and also warn about ordered comparison of zero with
9600         pointer if -Wextra.
9602 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9604         * graphite-blocking.c
9605         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
9606         * graphite-clast-to-gimple.c
9607         (clast_to_gcc_expression): Same.
9608         (precision_for_value): Same.
9609         (precision_for_interval): Same.
9610         (gcc_type_for_interval): Same.
9611         (graphite_create_new_guard): Same.
9612         (compute_bounds_for_level): Same.
9613         (graphite_create_new_loop_guard): Same.
9614         * graphite-interchange.c
9615         (build_linearized_memory_access): Same.
9616         (pdr_stride_in_loop): Same.
9617         (memory_strides_in_loop_1): Same.
9618         (memory_strides_in_loop): Same.
9619         (extend_scattering): Same.
9620         (psct_scattering_dim_for_loop_depth): Same.
9621         (pbb_number_of_iterations): Same.
9622         * graphite-poly.h
9623         (debug_iteration_domains): Same.
9624         * graphite-ppl.c
9625         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9626         (ppl_set_inhomogeneous_gmp): Same.
9627         (ppl_strip_loop): Same.
9628         (ppl_lexico_compare_linear_expressions): Same.
9629         (ppl_read_polyhedron_matrix): Same.
9630         (ppl_max_for_le_pointset): Same.
9631         * graphite-ppl.h
9632         (ppl_read_polyhedron_matrix): Same.
9633         (tree_int_to_gmp): Same.
9634         (gmp_cst_to_tree): Same.
9635         (ppl_set_inhomogeneous): Same.
9636         (ppl_set_inhomogeneous_tree): Same.
9637         (ppl_set_coef): Same.
9638         (ppl_set_coef_tree): Same.
9639         * graphite-sese-to-poly.c
9640         (build_pbb_scattering_polyhedrons): Same.
9641         (build_scop_scattering): Same.
9642         (scan_tree_for_params_right_scev): Same.
9643         (scan_tree_for_params): Same.
9644         (find_params_in_bb): Same.
9645         (find_scop_parameters): Same.
9646         (add_upper_bounds_from_estimated_nit): Same.
9647         (build_loop_iteration_domains): Same.
9648         (add_condition_to_domain): Same.
9649         (pdr_add_memory_accesses): Same.
9651 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9653         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
9654         CLooG's value_* macros to their respective mpz_* counterparts.
9655         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
9656         (graphite_create_new_loop_guard): Same.
9657         * graphite-interchange.c (build_linearized_memory_access): Same.
9658         (pdr_stride_in_loop): Same.
9659         (memory_strides_in_loop_1): Same.
9660         (1st_interchange_profitable_p): Same.
9661         * graphite-poly.c (extend_scattering): Same.
9662         (psct_scattering_dim_for_loop_depth): Same.
9663         (pbb_number_of_iterations): Same.
9664         (pbb_number_of_iterations_at_time): Same.
9665         * graphite-poly.h (new_1st_loop): Same.
9666         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
9667         (oppose_constraint): Same.
9668         (insert_constraint_into_matrix): Same.
9669         (ppl_set_inhomogeneous_gmp): Same.
9670         (ppl_set_coef_gmp): Same.
9671         (ppl_strip_loop): Same.
9672         (ppl_lexico_compare_linear_expressions): Same.
9673         (ppl_max_for_le_pointset): Same.
9674         (ppl_min_for_le_pointset): Same.
9675         (ppl_build_realtion): Same.
9676         * graphite-ppl.h (gmp_cst_to_tree): Same.
9677         (ppl_set_inhomogeneous): Same.
9678         (ppl_set_inhomogeneous_tree): Same.
9679         (ppl_set_coef): Same.
9680         (ppl_set_coef_tree): Same.
9681         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9682         (build_scop_scattering): Same.
9683         (add_value_to_dim): Same.
9684         (scan_tree_for_params_right_scev): Same.
9685         (scan_tree_for_params_int): Same.
9686         (scan_tree_for_params): Same.
9687         (find_params_in_bb): Same.
9688         (find_scop_parameters): Same.
9689         (add_upper_bounds_from_estimated_nit): Same.
9690         (build_loop_iteration_domains): Same.
9691         (create_linear_expr_from_tree): Same.
9692         (add_condition_to_domain): Same.
9693         (pdr_add_memory_accesses): Same.
9695 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
9696             Jason Merrill  <jason@redhat.com>
9698         * c-common.c (c_common_reswords): Add nullptr.
9699         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
9700         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
9701         (gen_type_die_with_usage): Likewise.
9702         * dbxout.c (dbxout_type): Likewise.
9703         * sdbout.c (plain_type_1): Likewise.
9705 2010-05-06  Jason Merrill  <jason@redhat.com>
9707         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
9708         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
9709         ret appropriately.
9710         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
9712         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
9713         stripping WITH_SIZE_EXPR.
9714         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
9715         change.
9717 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9719         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
9720         list of obsolete configurations.
9721         Disabled check for obsolete configurations.
9722         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
9723         Removed support for previous versions.
9724         * config/mips/iris.h: Removed.
9725         * config/mips/iris5.h: Removed.
9726         * config/mips/iris6.h: Merged old iris.h contents.
9727         (TARGET_IRIX): Removed.
9728         (DRIVER_SELF_SPECS): Removed mabi=32.
9729         (IDENT_ASM_OP): Removed undef.
9730         (STARTFILE_SPEC): Removed mabi=32.
9731         (ENDFILE_SPEC): Likewise.
9732         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
9733         (MACHINE_TYPE): Update for IRIX 6.5.
9734         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
9735         TARGET_IRIX by TARGET_IRIX6.
9736         (mips_file_start): Likewise.
9737         (mips_output_external): Remove IRIX 5/6 O32 support.
9738         (mips_output_function_prologue): Likewise.
9739         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
9740         TARGET_IRIX6.
9741         (TARGET_CPU_CPP_BUILTINS): Likewise.
9742         (TARGET_IRIX): Removed.
9743         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
9744         (MULTILIB_DIRNAMES): Removed 32.
9745         (MULTILIB_OSDIRNAMES): Removed ../lib.
9746         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
9747         (Specific, mips-sgi-irix5): Document removal.
9748         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
9749         Remove references to older IRIX 6 releases and the O32 ABI.
9751 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
9753         PR bootstrap/43994
9754         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
9755         instead of DF_REF_REAL_REG.
9757 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
9759         PR target/43888
9760         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
9761         handling to still return true for x64 targets.
9763 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9765         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
9767 2010-05-06  Jan Hubicka  <jh@suse.cz>
9769         PR tree-optimization/43791
9770         * ipa-inline.c (update_caller_keys): Remove bogus
9771         disregard_inline_limits check.
9773 2010-05-06  Michael Matz  <matz@suse.de>
9775         PR tree-optimization/43984
9776         * tree-ssa-pre.c (inserted_phi_names): Remove.
9777         (inserted_exprs): Change to bitmap.
9778         (create_expression_by_pieces): Set bits, don't append to vector.
9779         (insert_into_preds_of_block): Don't handle inserted_phi_names.
9780         (eliminate): Don't look at inserted_phi_names, remove deleted
9781         insns from inserted_exprs.
9782         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
9783         (init_pre, fini_pre): Allocate and free bitmaps.
9784         (execute_pre): Insert insns on edges before elimination.
9786 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9788         * tree.c (initializer_zerop): Handle STRING_CST.
9790 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9792         PR 40989
9793         * doc/invoke.texi (Wimplicit): Document as C only.
9794         * opts.c (common_handle_option): Add argument kind.
9795         (handle_option): Rename as read_cmdline_option. Factor out code to...
9796         (handle_option): ... here. New.
9797         (handle_options): Rename as read_cmdline_options.
9798         (decode_options): Update call.
9799         (set_option): Use option index instead of option pointer. Classify
9800         diagnostics correctly.
9801         (enable_warning_as_error): Call handle_option.
9802         * opts.h (set_option): Update declaration.
9803         (handle_option): Declare.
9804         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9805         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9806         * c-opts.c (set_Wimplicit): Delete.
9807         (c_family_lang_mask): New static constant.
9808         (c_common_handle_option): Add argument kind. Use handle_option
9809         instead of set_Wimplicit.
9810         (c_common_post_options): warn_implicit and warn_implicit_int
9811         are disabled by default.
9812         * c-common.c (warn_implicit): Do not define here.
9813         * c-common.h (warn_implicit): Do not declare here.
9814         (c_common_handle_option): Update declaration.
9815         * lto-opts.c (lto_reissue_options): Update call to set_option.
9817 2010-05-06  Richard Guenther  <rguenther@suse.de>
9819         PR tree-optimization/43571
9820         * domwalk.c (walk_dominator_tree): Walk the dominator
9821         sons in more optimal order.
9823 2010-05-06  Richard Guenther  <rguenther@suse.de>
9825         PR tree-optimization/43934
9826         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9827         (stmt_cost): Likewise.
9828         (extract_true_false_args_from_phi): New helper.
9829         (determine_max_movement): For PHI nodes verify we can hoist them
9830         and compute their cost.
9831         (determine_invariantness_stmt): Handle PHI nodes.
9832         (move_computations_stmt): Likewise.  Hoist PHI nodes in
9833         if-converted form using COND_EXPRs.
9834         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9835         (tree_ssa_lim): Likewise.
9836         * tree-flow.h (tree_ssa_lim): Adjust prototype.
9837         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9839 2010-05-06  Richard Guenther  <rguenther@suse.de>
9841         PR tree-optimization/43987
9842         * tree-ssa-structalias.c (could_have_pointers): For possibly
9843         address-taken variables force pointers to be recorded.
9844         (create_variable_info_for_1): Likewise.
9845         (push_fields_onto_fieldstack): Pass in wheter all fields
9846         must have pointers.
9847         (find_func_aliases): Query types instead of vars whether
9848         they contain pointers where appropriate.
9850 2010-05-06  Jan Hubicka  <jh@suse.cz>
9852         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9853         (record_reference, mark_address, mark_load, mark_store): Record
9854         references.
9855         (record_references_in_initializer): Update call of record_references.
9856         (rebuild_cgraph_edges): Remove all references before rebuiding.
9857         * cgraph.c (cgraph_create_node): Clear ref list.
9858         (cgraph_remove_node): Remove references.
9859         (dump_cgraph_node): Dump references.
9860         (cgraph_clone_node): Clone references.
9861         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9862         (struct cgraph_node, varpool_node): Add ref_lst.
9863         * ipa-ref.c: New file.
9864         * ipa-ref.h: New file.
9865         * ipa-ref-inline.h: New file.
9866         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9867         (referenced_from_other_partition_p): New function.
9868         (lto_output_varpool_node): Take set arugment; call
9869         referenced_from_other_partition.
9870         (lto_output_ref): New.
9871         (add_references): New.
9872         (output_refs): New.
9873         (output_cgraph): Compute boundary based on references; output refs.
9874         (output_varpool): Accept cgraph_node_set argument.
9875         (input_ref): New.
9876         (input_refs): New.
9877         (input_cgraph): Call input_refs.
9878         * lto-section-in.c (lto_section_name): Add refs.
9879         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
9880         (ipa-ref.o): New file.
9881         * varpool.c (varpool_node): Clear ipa ref list.
9882         (varpool_remove_node): Remove references.
9883         (dump_varpool_node): Dump references.
9884         (varpool_assemble_decl): Only compile finalized ones.
9885         (varpool_extra_name_alias): Initialize ref list.
9886         * lto-streamer.c (lto-get_section_name): Add .refs section.
9887         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
9888         (referenced_from_other_partition_p): Declared.
9890 2010-05-06  Ira Rosen  <irar@il.ibm.com>
9892         PR tree-optimization/43901
9893         * tree-vect-stmts.c (vectorizable_call): Assert that vector
9894         type is not NULL if it's transformation phase, and return
9895         FALSE if it's analysis.
9896         (vectorizable_conversion, vectorizable_operation,
9897         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
9899 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
9901         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9902         Delete.
9903         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9904         New define.
9905         * config/mips/mips-protos.h
9906         (mips_small_register_classes_for_mode_p): Delete prototype.
9908 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
9910         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
9911         * config/arm/arm.c (multiple_operation_profitable_p,
9912         compute_offset_order): New static functions.
9913         (load_multiple_sequence, store_multiple_sequence): Use them.
9914         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
9915         memory offsets, not register numbers.
9916         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
9918 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
9920         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
9921         (get_pending_sizes, put_pending_size, put_pending_sizes):
9922         Update the uses of pending_sizes.
9923         * c-decl.c (store_parm_decls): Likewise.
9924         * c-tree.h (struct c_arg_info): Likewise.
9925         * tree.h: Update the prototype for get_pending_sizes and
9926         put_pending_sizes.
9928 2010-05-05  Jason Merrill  <jason@redhat.com>
9930         PR debug/43370
9931         * c-common.c (handle_aligned_attribute): Respect
9932         ATTR_FLAG_TYPE_IN_PLACE.
9934         PR testsuite/43758
9935         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
9936         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9937         (TARGET_INITIALIZER): Use it.
9938         * c-common.c (attribute_takes_identifier_p): Call it.
9939         * c-common.h: Update prototype.
9940         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
9941         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9943 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
9945         PR debug/43950
9946         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
9947         DW_ID_down_case for Fortran compilation units.
9949 2010-05-05  Jan Hubicka  <jh@suse.cz>
9951         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
9952         handle aliases.
9954 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9956         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
9957         a variable-sized RESULT_DECL.
9959 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
9961         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
9963 2010-05-05  Jason Merrill  <jason@redhat.com>
9965         PR c++/43787
9966         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
9967         returns GS_OK.
9968         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
9970 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
9971             Jakub Jelinek  <jakub@redhat.com>
9973         PR debug/43478
9974         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
9975         (dead_debug_init, dead_debug_finish): New functions.
9976         (dead_debug_add, dead_debug_insert_before): Likewise.
9977         (df_note_bb_compute): Initialize a dead_debug object, add dead
9978         debug uses to it, insert debug bind insns before death insns,
9979         reset debug insns that refer to pending uses at the end.
9980         * rtl.h (make_debug_expr_from_rtl): New prototype.
9981         * varasm.c (make_debug_expr_from_rtl): New function.
9983 2010-05-05  Jan Hubicka  <jh@suse.cz>
9985         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
9986         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
9987         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
9988         lto_varpool_encoder_deref, lto_varpool_encoder_size,
9989         lto_varpool_encoder_encode_initializer_p,
9990         lto_set_varpool_encoder_encode_initializer): New functions.
9991         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
9992         call output_varpool.
9993         (input_varpool_node): Do not always set analyzed.
9994         (input_cgraph_1): Return vector of cgraph nodes.
9995         (input_varpool_1): Return vector of varpools.
9996         (input_cgraph): Free the vectors.
9997         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9998         output only initializers needed.
9999         (lto_output): Only call output_cgraph.
10000         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10001         * lto-section-out.c (lto_new_out_decl_state): Initialize
10002         state->varpool_node_encoder.
10003         * lto-streamer.h (lto_varpool_encoder_d): New.
10004         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10005         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10006         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10007         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10008         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10009         Declare.
10010         (output_varpool, input_varpool): Remove declarations.
10012 2010-05-05  Jan Hubicka  <jh@suse.cz>
10014         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10015         with body can prevail.
10017 2010-05-05  Jan Hubicka  <jh@suse.cz>
10019         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10020         size.
10022 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10024         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10026         * gengtype.h (erro_at_line): Constify pos argument.
10028         * gengtype.c: Include hashtab.h.
10029         (enum gc_used): Document GC_MAYBE_POINTED_TO.
10030         (error_at_line): Constify pos argument.
10031         (do_typedef): Initialize p->opt field.
10032         (get_file_gtfilename): Fix comment typo.
10033         (struct walk_type_data): Constify line field.
10034         (get_output_file_for_structure): New function.
10035         (write_local_func_for_structure): Constify orig_s argument.
10036         Use get_output_file_for_structure.
10037         (write_func_for_structure): Use get_output_file_for_structure.
10038         (INDENT): New define.
10039         (dump_pair, dump_type, dump_type_list, dump_typekind)
10040         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10041         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10042         functions.
10043         (seen_types): New variable.
10044         (main): New variable do_dump.  Process "-d" command line option.
10045         Call dump_everything if dump requested.
10047 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10049         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10050         in a temporary instead of invoking the macro multiple times.
10051         (track_expr_p): Likewise.
10053 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
10055         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10056         per new semantics.
10057         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10058         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
10059         conditions for printing notes.
10060         * common.opt (-Wcoverage-mismatch): Allow negative, default to
10061         true, update documentation.
10062         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10064 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
10066         PR c/43981
10067         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10068         on dimen.
10070 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10072         PR target/43799
10073         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10074         (*sse_prologue_save_insn1): Likewise.
10075         (SSE prologue save splitter): Likewise.
10077 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10079         * tree.c (free_lang_data_in_one_sizepos): New inline function.
10080         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10081         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10082         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10083         all decls.  Call it on DECL_FIELD_OFFSET of fields.
10084         (find_decls_types_r): Follow DECL_VALUE_EXPR.
10085         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10087 2010-05-04  Martin Jambor  <mjambor@suse.cz>
10089         * tree-sra.c (build_access_from_expr_1): The first parameter type
10090         changed to simple tree.
10091         (build_access_from_expr): Likewise, gsi parameter was eliminated.
10092         (scan_assign_result): Renamed to assignment_mod_result, enum elements
10093         renamed as well.
10094         (build_accesses_from_assign): Removed all parameters except for a
10095         simple gimple statement.  Now returns a simple bool.
10096         (scan_function): All non-analysis parts moved to separate functions
10097         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
10098         parameters and updated both callers.
10099         (sra_modify_expr): Removed parameter data.
10100         (sra_modify_function_body): New function.
10101         (perform_intra_sra): Call sra_modify_function_body to modify the
10102         function body.
10103         (replace_removed_params_ssa_names): Parameter data changed into
10104         adjustments vector.
10105         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
10106         changed the parameter dont_convert to convert with the opposite
10107         meaning.
10108         (sra_ipa_modify_assign): Parameter data changed into adjustments
10109         vector, return value changed to bool.
10110         (ipa_sra_modify_function_body): New function.
10111         (sra_ipa_reset_debug_stmts): Updated a comment.
10112         (modify_function): Use ipa_sra_modify_function_body to modify function
10113         body.
10115 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10117         PR middle-end/43671
10118         * alias.c (true_dependence): Handle the same VALUE in x and mem.
10119         (canon_true_dependence): Likewise.
10120         (write_dependence_p): Likewise.
10122 2010-05-04  Jan Hubicka  <jh@suse.cz>
10124         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10125         * cgraphbuild.c: Include ipa-utils.h
10126         (record_reference_ctx): New struct.
10127         (record_reference): Simplify to work on initializers; not statements.
10128         (mark_address, mark_load, mark_store): New.
10129         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10130         walk PHI nodes too.
10131         (record_references_in_initializer): Update use of record_reference.
10132         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10133         walk PHI nodes too.
10135 2010-05-04  Jan Hubicka  <jh@suse.cz>
10137         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10138         node will be removed anyway.
10139         (lto_varpool_replace_node): Allow also unanalyzed nodes;
10140         relink aliases of node into prevailing node.
10141         * varpool.c (varpool_remove_node): Remove aliases properly;
10142         when removing node, remove all its aliases too; remove DECL_INITIAL
10143         of removed node; ggc_free the varpool node.
10145 2010-05-04  Richard Guenther  <rguenther@suse.de>
10147         PR tree-optimization/43879
10148         * tree-ssa-structalias.c (alias_get_name): Use
10149         DECL_ASSEMBLER_NAME if available.
10150         (create_function_info_for): Return the varinfo node.
10151         (ipa_pta_execute): Associate same-body aliases and extra names
10152         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
10154 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10156         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10158 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
10160         PR bootstrap/43964
10161         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10162         only if HONOR_REG_ALLOC_ORDER is not defined.
10164 2010-05-04  Richard Guenther  <rguenther@suse.de>
10166         PR tree-optimization/43949
10167         * tree-vrp.c (extract_range_from_binary_expr): Only handle
10168         TRUNC_MOD_EXPR.
10170 2010-04-26  Jason Merrill  <jason@redhat.com>
10172         * c.opt (-fstrict-enums): New.
10173         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10175 2010-05-03  David Ung  <davidu@mips.com>
10176             James E. Wilson  <wilson@codesourcery.com>
10178         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10179         emit the trap instruction before the divide for TUNE_74K.
10181 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
10183         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10184         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10185         based on the above, for new target hook.
10187         * hooks.c (hook_bool_mode_true): New generic hook.
10188         * hooks.h (hook_bool_mode_true): Add prototype.
10190         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10191         target hook.
10192         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10193         target hook, set to hook_bool_mode_false.
10194         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10195         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10196         with targetm.small_register_classes_for_mode_p.
10197         (find_reusable_reload): Likewise.
10198         (combine_reloads): Likewise.
10199         * reload1.c (reload_as_needed): Likewise.
10200         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10201         * ifcvt.c (noce_process_if_block, check_cond_move_block,
10202         dead_or_predicable): Likewise.
10203         * regmove.c (optimize_reg_copy_1): Likewise.
10204         * calls.c (prepare_call_address): Likewise.
10205         (precompute_register_parameters): Likewise.
10207         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10208         hook definition.
10209         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10210         implementation of the hook that considers all register classes
10211         small except for SH64.
10212         (sh_override_options): Use the new hook.
10213         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10214         Add prototype.
10216         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10217         hook definition.
10218         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10219         implementation of the hook that considers all register classes
10220         small for THUMB1.
10221         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10222         Add prototype.
10224         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10225         hook definition.
10226         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10227         implementation of the hook that considers all register classes
10228         small for MIPS16.
10229         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10230         Add prototype.
10232         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10233         hook definition.
10234         * config/m32c/m32c.h: Likewise.
10235         * config/pdp11/pdp11.h: Likewise.
10236         * config/avr/avr.h: Likewise.
10237         * config/xtensa/xtensa.h: Likewise.
10238         * config/m68hc11/m68hc11.h: Likewise.
10239         * config/mn10300/mn10300.h: Likewise.
10240         * config/mcore/mcore.h: Likewise.
10241         * config/h8300/h8300.h: Likewise.
10242         * config/bfin/bfin.h: Likewise.
10244         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10245         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10247 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
10249         * double-int.h (tree_to_double_int): Remove macro.
10250         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10251         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10252         (tree_to_double_int): New function.
10253         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10254         Move ...
10255         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10257 2010-05-03  Richard Guenther  <rguenther@suse.de>
10259         PR tree-optimization/43971
10260         * tree-ssa-structalias.c (get_constraint_for_1): Fix
10261         constraints in the !flag_delete_null_pointer_checks case.
10263 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
10265         PR debug/43972
10266         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10267         result mode matches original rtl mode.
10269 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
10271         PR target/43888
10272         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10274 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10276         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10277         when processing flag options.
10279 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10281         * gcov-iov.c (main): Change format string placeholder
10282         from %#08x to 0x%08x.
10283         * genchecksum.c (dosum): Change format string placeholder
10284         from %#02x to 0x%02x.
10286 2010-05-02  Richard Guenther  <rguenther@suse.de>
10288         PR tree-optimization/43879
10289         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10291 2010-05-02  Bruno Haible  <bruno@clisp.org>
10293         * doc/extend.texi (Function Attributes): Fix a typo.
10295 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10297         Revert:
10298         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10299         placeholder from 0x%x to %#x.
10300         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10301         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10302         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10303         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10304         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10305         * config/i386/i386.c (ix86_target_string): Ditto.
10306         * config/i386/i386.c (output_pic_addr_const): Ditto.
10307         (print_operand): Ditto.
10309 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10311         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10312         placeholder from 0x%x to %#x.
10313         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10314         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10315         (ASM_OUTPUT_DEBUG_DATA): Ditto.
10316         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10317         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10318         * optc-gen.awk: Ditto.
10319         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10320         (HOST_WIDE_INT_PRINT_HEX): Ditto.
10321         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10322         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10324 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10326         * target.h (struct calls): Add function_value_regno_p field.
10327         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10328         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10329         * targhooks.c (default_function_value_regno_p): New function.
10330         * targhooks.h (default_function_value_regno_p): Declare function.
10331         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10332         * builtins.c. (apply_result_size): (Ditto.).
10333         * combine.c. (likely_spilled_retval_p): (Ditto.).
10334         * mode-switching.c. Include 'target.h'.
10335         (create_pre_exit): Use function_value_regno_p hook.
10336         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10337         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10338         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10340         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10341         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10342         (ix86_function_value_regno_p): Declare as static, change argument
10343         type to const unsigned int.
10344         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10346 2010-05-01  Richard Guenther  <rguenther@suse.de>
10348         PR tree-optimization/43949
10349         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10350         types.
10351         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10353 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10355         * rtl.h (CONST_DOUBLE_P): Define.
10356         (rtx_to_double_int): Declare.
10357         * emit-rtl.c (rtx_to_double_int): New function.
10358         * dwarf2out.c (insert_double): New function.
10359         (loc_descriptor, add_const_value_attribute): Clean up, use
10360         rtx_to_double_int and insert_double functions.
10362 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
10364         * doc/extend.texi (Inline): Add missing return keyword to examples.
10365         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10366         "command-line".
10368 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10370         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10371         the variable part of the offset as well.  Use highest_pow2_factor for
10372         all alignment checks.
10374 2010-04-30  Richard Guenther  <rguenther@suse.de>
10376         PR tree-optimization/43879
10377         * tree-ssa-structalias.c (type_could_have_pointers): Functions
10378         can have pointers.
10380 2010-04-30  Jan Hubicka  <jh@suse.cz>
10382         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10383         varpool.
10384         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10386 2010-04-30  Jan Hubicka  <jh@suse.cz>
10388         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10389         New.
10390         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10391         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10392         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10393         cgraph_node_set_needs_ltrans_p): Remove.
10395 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10397         * sdbout.c: Include vec.h, do not include varray.h.
10398         (deferred_global_decls, sdbout_global_decl,
10399         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10400         * toplev.c: Do not include varray.h.
10401         (dump_memory_report): Do not dump VARRAY statistics.
10402         * gengtype.c (open_base_file): Ignore varray.h.
10403         * Makefile.in: Update for abovementioned changes.
10404         Remove all traces of varray.c and varray.h.
10405         * varray.c: Remove file.
10406         * varray.h: Remove file.
10408 2010-04-30  Jan Hubicka  <jh@suse.cz>
10410         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10411         references.
10413 2010-04-30  Jan Hubicka  <jh@suse.cz>
10415         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10416         needed.
10418 2010-04-30  Richard Guenther  <rguenther@suse.de>
10420         * tree-ssa-structalias.c (get_constraint_for_1): Generate
10421         constraints for CONSTRUCTOR.
10423 2010-04-30  Richard Guenther  <rguenther@suse.de>
10425         PR lto/43946
10426         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10427         first after all lowering passes.
10429 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10431         * toplev.c: Include varray.h for statistics dumping.
10432         * tree.h: Do not declare varray_head_tag.
10433         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10434         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10435         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10436         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10437         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10438         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10439         c-common.c, c-common.h, reg-stack.c, basic-block.h,
10440         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10441         include varray.h.
10442         * Makefile.in: Update for abovementioned changes.
10444 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
10446         PR debug/43942
10447         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10449 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10451         * config/picochip/picochip.c (picochip_legitimize_address): Define.
10452         Use this function to do machine-specific conversion.
10453         (picochip_legitimize_reload_address): Likewise.
10454         (picochip_legitimate_address_p): Check valid base register only if
10455         strict.
10456         (picochip_check_conditional_copy): Check for modw only if opnd is
10457         register.
10458         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10459         to call the function in c.
10460         * config/picochip/picochip-protos.h
10461         (picochip_legitimize_reload_address): Define.
10462         * config/picochip/picochip.md (supported_compare1): Define.
10464 2010-04-30  Jan Hubicka  <jh@suse.cz>
10466         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10467         (cgraph_global_info): Remove inlined.
10468         (LTO_cgraph_tag_names): Remove.
10469         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10470         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10471         simplify cgraph tags and document.
10472         (lto_output_node): Use only LTO_cgraph_unavail_node and
10473         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10474         for_functions_valid, global info, process and output flags.
10475         (input_overwrite_node): Initialize estimated stack size and
10476         estimated growth.  Do not read flags we no longer store.
10477         (input_node): Likewise do not read info no longer stored.
10478         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10479         flag.
10481 2010-04-30  Richard Guenther  <rguenther@suse.de>
10483         PR tree-optimization/43879
10484         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10485         handle non-zero initializers.
10487 2010-04-30  Richard Guenther  <rguenther@suse.de>
10489         * builtins.c (fold_builtin_1): Delete free (0).
10491 2010-04-29  Jan Hubicka  <jh@suse.cz>
10493         * gengtype.c (open_base_files): Add lto-streamer.h
10494         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10495         (pass_ipa_cp): GGC collect.
10496         * toplev. (compile_file): Do not output symbols.
10497         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10498         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10499         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10500         * lto-section-in.c: Include ggc.h
10501         (lto_new_in_decl_state): Alloc in GGC.
10502         (lto_delete_in_decl_state): Likewise.
10503         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10504         Collect.
10506 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10508         PR target/42895
10509         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10510         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
10511         (HONOR_REG_ALLOC_ORDER): Describe new macro.
10512         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10513         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10514         account only if HONOR_REG_ALLOC_ORDER is not defined.
10515         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10516         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10518 2010-04-29  Jon Grant  <04@jguk.org>
10520         * collect2.c (vflag): Change type from int to bool.
10521         (debug): Likewise.
10522         (helpflag): New global bool.
10523         (main): Set vflag and debug with boolean, not integer truth values.
10524         Accept new "--help" option and output usage text if found.
10525         * collect2.h (vflag): Update prototype.
10526         (debug): Likewise.
10528 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10530         PR bootstrap/43936
10531         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10533 2010-04-29  Richard Guenther  <rguenther@suse.de>
10535         PR bootstrap/43935
10536         * plugin.h (invoke_plugin_callbacks): Annotate arguments
10537         with ATTRIBUTE_UNUSED.
10539 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10541         PR target/43921
10542         * config/i386/i386.c (get_some_local_dynamic_name): Replace
10543         INSN_P with NONDEBUG_INSN_P.
10544         (distance_non_agu_define): Likewise.
10545         (distance_agu_use): Likewise.
10547 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10549         From Dominique d'Humieres  <dominiq@lps.ens.fr>
10550         PR bootstrap/43858
10551         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10552         test_set.
10554 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
10556         * plugin.h (invoke_plugin_callbacks): New inline function.
10557         * plugin.c (flag_plugin_added): New global flag.
10558         (add_new_plugin): Initialize above flag.
10559         (invoke_plugin_callbacks): Rename to ...
10560         (invoke_plugin_callbacks_full): ... this.
10562 2010-04-28  Jan Hubicka  <jh@suse.cz>
10564         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10565         (lto_varpool_replace_node): New.
10566         (lto_symtab_resolve_symbols): Resolve varpool nodes.
10567         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10568         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10569         * cgraph.h (varpool_node_ptr): New type.
10570         (varpool_node_ptr): New vector.
10571         (varpool_node_set_def): New structure.
10572         (varpool_node_set): New type.
10573         (varpool_node_set): New vector.
10574         (varpool_node_set_element_def): New structure.
10575         (varpool_node_set_element, const_varpool_node_set_element): New types.
10576         (varpool_node_set_iterator): New type.
10577         (varpool_node): Add prev pointers, add used_from_other_partition,
10578         in_other_partition.
10579         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
10580         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
10581         varpool_get_node, varpool_remove_node): Declare.
10582         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
10583         varpool_node_set_size): New inlines.
10584         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
10585         * tree-pass.h (varpool_node_set_def): Forward declare.
10586         (ipa_opt_pass_d): Summary writting takes vnode sets too.
10587         (ipa_write_optimization_summaries): Update prototype.
10588         * ipa-cp.c (ipcp_write_summary): Update.
10589         * ipa-reference.c (ipa_reference_write_summary): Update.
10590         * lto-cgraph.c (lto_output_varpool_node): New static function.
10591         (output_varpool): New function.
10592         (input_varpool_node): New static function.
10593         (input_varpool_1): New function.
10594         (input_cgraph): Input varpool.
10595         * ipa-pure-const.c (pure_const_write_summary): Update.
10596         * lto-streamer-out.c (lto_output): Update, output varpool too.
10597         (write_global_stream): Kill WPA hack.
10598         (produce_asm_for_decls): Update.
10599         (output_alias_pair_p): Handle variables.
10600         (output_unreferenced_globals): Output only needed partition of varpool.
10601         * ipa-inline.c (inline_write_summary): Update.
10602         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
10603         cgraph.
10604         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
10605         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
10606         varpool_node_set_new, varpool_node_set_add,
10607         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
10608         debug_varpool_node_set): New functions.
10609         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
10610         (execute_one_pass): Process new decls too.
10611         (ipa_write_summaries_2): Pass around vsets.
10612         (ipa_write_summaries_1): Likewise.
10613         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
10614         to add.
10615         (ipa_write_optimization_summaries_1): Pass around vsets.
10616         (ipa_write_optimization_summaries): Likewise.
10617         * varpool.c (varpool_get_node): New.
10618         (varpool_node): Update doubly linked lists.
10619         (varpool_remove_node): New.
10620         (dump_varpool_node): More dumping.
10621         (varpool_enqueue_needed_node): Update doubly linked lists.
10622         (decide_is_variable_needed): Kill ltrans hack.
10623         (varpool_finalize_decl): Kill lto hack.
10624         (varpool_assemble_decl): Skip decls in other partitions.
10625         (varpool_assemble_pending_decls): Update doubly linkes lists.
10626         (varpool_empty_needed_queue): Likewise.
10627         (varpool_extra_name_alias): Likewise.
10628         * lto-streamer.c (lto_get_section_name): Add vars section.
10629         * lto-streamer.h (lto_section_type): Update.
10630         (output_varpool, input_varpool): Declare.
10632 2010-04-28  Mike Stump  <mikestump@comcast.net>
10634         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
10636 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10638         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
10639         record or union type with RECORD_OR_UNION_TYPE_P predicate.
10640         (lto_input_ts_type_tree_pointers): Likewise.
10641         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
10642         (lto_output_ts_type_tree_pointers): Likewise.
10644 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10646         Uniquization of constants at the Tree level
10647         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
10648         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
10649         bit to the end.
10650         (tree_output_constant_def): Declare.
10651         * gimplify.c (gimplify_init_constructor): When using block copy, first
10652         uniquize the constant constructor on the RHS.
10653         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
10654         DECL_IN_CONSTANT_POOL flag.
10655         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
10656         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
10657         constant pool.
10658         (assemble_variable): Deal with symbols belonging to the tree constant
10659         pool.
10660         (get_constant_section): Add ALIGN parameter and simplify.
10661         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
10662         (assemble_constant_contents): Use the expression of the VAR_DECL.
10663         (output_constant_def_contents): Use the alignment of the VAR_DECL.
10664         (tree_output_constant_def): New global function.
10665         (mark_constant): Use the expression of the VAR_DECL.
10666         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
10667         its expression.
10668         (output_object_block): Likewise and assemble the expression.
10670 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10672         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
10673         hash_tree, eq_tree): New tree hash table.
10674         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
10675         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
10676         lto_orig_address_remove): Reimplement.
10678 2010-04-28  Xinliang David Li  <davidxl@google.com>
10680         PR c/42643
10681         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
10682         (compute_uninit_opnds_pos): New function.
10683         (is_non_loop_exit_postdominating): New function.
10684         (compute_control_dep_chain): New function.
10685         (find_pdom): New function.
10686         (convert_control_dep_chain_into_preds): New function.
10687         (find_predicates): New function.
10688         (find_control_equiv_block): New function.
10689         (collect_phi_def_edges): New function.
10690         (find_def_preds): New function.
10691         (find_dom): New function.
10692         (dump_predicates): New function.
10693         (get_cmp_code): New function.
10694         (is_value_included_in): New function.
10695         (find_matching_predicate_in_rest_chains): New function.
10696         (use_pred_not_overlap_with_undef_path_pred): New function.
10697         (is_use_properly_guarded): New function.
10698         (normalize_cond_1): New function.
10699         (is_and_or_or): New function.
10700         (normalize_cond): New function.
10701         (is_gcond_subset_of): New function.
10702         (is_subset_of_any): New function.
10703         (is_or_set_subset_of): New function.
10704         (is_and_set_subset_of): New function.
10705         (is_norm_cond_subset_of): New function.
10706         (is_pred_expr_subset_of): New function.
10707         (is_pred_chain_subset_of): New function.
10708         (is_included_in): New function.
10709         (is_superset_of): New function.
10710         (find_uninit_use): New function.
10711         (warn_uninitialized_phi): New function.
10712         (compute_possibly_undefined_names): New function.
10713         (ssa_undefined_value_p): New function.
10714         (execute_late_warn_uninitialized): New function.
10715         * tree-ssa.c (ssa_undefined_value_p): Removed.
10716         (warn_uninit): Changed to extern.
10717         (warn_uninitialized_phi): Removed.
10718         (warn_uninitialized_vars): Changed to extern.
10719         (execute_late_warn_uninitialized): Removed
10720         * tree-flow.h: Add new prototypes.
10721         * timevar.def: Add new time variable.
10722         * Makefile.in: Add new build file.
10724 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
10726         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10727         type if available.
10729 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10731         PR target/22224
10732         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
10734 2010-04-28  Martin Jambor  <mjambor@suse.cz>
10736         * cgraph.h (struct cgraph_node): New field indirect_calls.
10737         (struct cgraph_indirect_call_info): New type.
10738         (struct cgraph_edge): Removed field indirect_call. New fields
10739         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
10740         (cgraph_create_indirect_edge): Declare.
10741         (cgraph_make_edge_direct): Likewise.
10742         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
10743         * ipa-prop.h (struct ipa_param_call_note): Removed.
10744         (struct ipa_node_params): Removed field param_calls.
10745         (ipa_create_all_structures_for_iinln): Declare.
10746         * cgraph.c: Described indirect edges and uids in initial comment.
10747         (cgraph_add_edge_to_call_site_hash): New function.
10748         (cgraph_edge): Search also among the indirect edges, use
10749         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
10750         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
10751         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
10752         site hash.
10753         (initialize_inline_failed): Assign a reason to indirect edges.
10754         (cgraph_create_edge_1): New function.
10755         (cgraph_create_edge): Moved some functionality to
10756         cgraph_create_edge_1.
10757         (cgraph_create_indirect_edge): New function.
10758         (cgraph_edge_remove_callee): Add an assert checking for
10759         non-indirectness.
10760         (cgraph_edge_remove_caller): Special-case indirect edges.
10761         (cgraph_remove_edge): Likewise.
10762         (cgraph_set_edge_callee): New function.
10763         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
10764         (cgraph_make_edge_direct): New function.
10765         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
10766         the declaration of the call statement matches.
10767         (cgraph_node_remove_callees): Special-case indirect edges.
10768         (cgraph_clone_edge): Likewise.
10769         (cgraph_clone_node): Clone also the indirect edges.
10770         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
10771         indirect_call, dump count of indirect_calls edges.
10772         * ipa-prop.c (iinlining_processed_edges): New variable.
10773         (ipa_note_param_call): Create indirect edges instead of
10774         creating notes.  New parameter node.
10775         (ipa_analyze_call_uses): New parameter node, pass it on to
10776         ipa_note_param_call.
10777         (ipa_analyze_stmt_uses): Likewise.
10778         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
10779         (print_edge_addition_message): Work on edges rather than on notes.
10780         (update_call_notes_after_inlining): Likewise, renamed to
10781         update_indirect_edges_after_inlining.
10782         (ipa_create_all_structures_for_iinln): New function.
10783         (ipa_free_node_params_substructures): Do not free notes.
10784         (ipa_edge_duplication_hook): Propagate bits within
10785         iinlining_processed_edges bitmap.
10786         (ipa_node_duplication_hook): Do not duplicate notes.
10787         (free_all_ipa_structures_after_ipa_cp): Renamed to
10788         ipa_free_all_structures_after_ipa_cp.
10789         (free_all_ipa_structures_after_iinln): Renamed to
10790         ipa_free_all_structures_after_iinln.
10791         (ipa_write_param_call_note): Removed.
10792         (ipa_read_param_call_note): Removed.
10793         (ipa_write_indirect_edge_info): New function.
10794         (ipa_read_indirect_edge_info): Likewise.
10795         (ipa_write_node_info): Do not stream notes, do stream information
10796         in indirect edges.
10797         (ipa_read_node_info): Likewise.
10798         (lto_ipa_fixup_call_notes): Removed.
10799         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10800         * ipa-inline.c (pass_ipa_inline): Likewise.
10801         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10802         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10803         * tree-inline.c (copy_bb): Removed an unnecessary double check for
10804         is_gimple_call.
10805         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10806         edges.
10807         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10808         (output_cgraph): Stream also indirect edges.
10809         (lto_output_edge): Added capability to stream indirect edges.
10810         (input_edge): Likewise.
10811         (input_cgraph_1): Likewise.
10812         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10813         of indirect edges.
10815 2010-04-28  Richard Guenther  <rguenther@suse.de>
10817         PR tree-optimization/43879
10818         PR tree-optimization/43909
10819         * tree-ssa-structalias.c (struct variable_info): Add
10820         only_restrict_pointers flag.
10821         (new_var_info): Initialize it.  Increment stats.total_vars here.
10822         (create_function_info_for): Do not increment stats.total_vars here.
10823         (get_function_part_constraint): Fix build with C++.
10824         (insert_into_field_list): Remove.
10825         (push_fields_onto_fieldstack): Properly merge fields.
10826         (create_variable_info_for): Split and simplify.
10827         (create_variable_info_for_1): New piece.
10828         (intra_create_variable_infos): Properly make restrict constraints
10829         from parameters.
10831 2010-04-28  Richard Guenther  <rguenther@suse.de>
10833         PR c++/43880
10834         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10836 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10837             Jan Hubicka  <hubicka@ucw.cz>
10839         * doc/invoke.texi (-Wsuggest-attribute=const,
10840         -Wsuggest-attribute=pure): Document.
10841         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10842         (function_always_visible_to_compiler_p,
10843         suggest_attribute, warn_function_pure, warn_function_const):
10844         New functions.
10845         (check_call): Improve debug info.
10846         (analyze_function): Do not check availability.
10847         (add_new_function): Check availability.
10848         (propagate): Output warnings.
10849         (skip_function_for_local_pure_const): New function.
10850         (local_pure_const): Use it; output warnings.
10851         * common.opt (Wsuggest-attribute=const,
10852         Wsuggest-attribute=pure): New.
10854 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10856         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10857         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10858         or DW_CFA_def_cfa_offset{,_sf}.
10860 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10862         * tree.h: Fix truncated long macros.
10864 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
10866         * collect2.c (TARGET_64BIT): Redefine to target's default.
10867         * tlink.c: Likewise.
10868         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10869         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10870         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10871         for underscoring __USER_LABEL_PREFIX__.
10872         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10873         (SUB_LINK_ENTRY32): New.
10874         (SUB_LINK_ENTRY64): New.
10875         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
10876         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
10877         (SUB_LINK_ENTRY64): New.
10878         (SUB_LINK_ENTRY): New.
10879         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
10880         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
10881         x64 target is choosen.
10882         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
10883         * configure: Regenerated.
10884         * configure.ac (leading-mingw64-underscores): Option added.
10886 2010-04-27  Jan Hubicka  <jh@suse.cz>
10888         * doc/invoke.texi (-fipa-profile): Document.
10889         * opts.c (decode_options): Enable ipa-profile at -O1.
10890         * timevar.def (TV_IPA_PROFILE): Define.
10891         * common.opt (fipa-profile): Add.
10892         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
10893         flag for clones.
10894         (cgraph_propagate_frequency): Handle only local ones.
10895         * tree-pass.h (pass_ipa_profile): Declare.
10896         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
10897         (pass_ipa_profile): Use TV_IPA_PROFILE.
10898         * ipa.c (ipa_profile): New function.
10899         (gate_ipa_profile): Likewise.
10900         (pass_ipa_profile): New global variable.
10901         * passes.c (pass_ipa_profile): New.
10903 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
10905         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
10907 2010-04-27  Martin Jambor  <mjambor@suse.cz>
10909         PR middle-end/43812
10910         * ipa.c (dissolve_same_comdat_group_list): New function.
10911         (function_and_variable_visibility): Call
10912         dissolve_same_comdat_group_list when comdat group contains external or
10913         newly local nodes.
10914         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
10915         lists are circular and that they contain only DECL_ONE_ONLY nodes.
10917 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10919         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
10920         (const_hash_1) <VECTOR_CST>: New case.
10921         (compare_constant) <VECTOR_CST>: Likewise.
10922         <ADDR_EXPR>: Deal with LABEL_REFs.
10923         (copy_constant) <VECTOR_CST>: New case.
10925 2010-04-27  Jan Hubicka  <jh@suse.cz>
10927         * cgraph.c (cgraph_propagate_frequency): New function.
10928         * cgraph.h (cgraph_propagate_frequency): Declare.
10929         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
10930         cgraph_propagate_frequency.
10932 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10934         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
10936 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
10938         PR target/40657
10939         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
10940         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
10941         here to determine which regs to push and how much stack to reserve.
10943 2010-04-27  Jie Zhang  <jie@codesourcery.com>
10945         * doc/gimple.texi (gimple_statement_with_ops): Remove
10946         addresses_taken field.
10947         (gimple_statement_with_memory_ops): Likewise.
10949 2010-04-27  Jan Hubicka  <jh@suse.cz>
10951         * tree-inline.c (eni_inlining_weights): Remove.
10952         (estimate_num_insns): Special case more builtins.
10954 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
10956         PR c/32207
10957         * c-typeck.c (build_binary_op): Move forward check for comparison
10958         pointer with null pointer constant and adjust the diagnostic message.
10960 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
10962         PR lto/42776
10963         * configure.ac (gcc_cv_as_section_has_align): Set if installed
10964         binutils supports extended .section directive needed by LTO, or
10965         warn if older binutils found.
10966         (LTO_BINARY_READER): New AC_SUBST'd variable.
10967         (LTO_USE_LIBELF): Likewise.
10968         * gcc/config.gcc (lto_binary_reader): New target-specific configure
10969         variable.
10970         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
10971         (LTO_USE_LIBELF): Likewise.
10972         * configure: Regenerate.
10974         * collect2.c (is_elf): Rename from this ...
10975         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
10976          object files in addition to ELF-formatted ones.
10977         (scan_prog_file): Caller updated.  Also allow for LTO info marker
10978         symbol to be prefixed or not by an extra underscore.
10980         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
10981         * config/i386/winnt.c: Also #include lto-streamer.h
10982         (i386_pe_asm_named_section): Specify 1-byte section alignment for
10983         LTO named sections.
10984         (i386_pe_asm_output_aligned_decl_common): Add comment.
10985         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
10987 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
10989         PR target/43889
10990         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
10991         Add missing earlyclobber for second alternative.
10993 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
10995         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
10996         bits for artificial defs at the top of the block.
10997         * fwprop.c (single_def_use_enter_block): Don't call it.
10999 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
11001         PR 43715
11002         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11003         instead of "$gcc_cv_objdump -T".
11004         Use "-undefined dynamic_lookup" on darwin.
11005         * gcc/configure: Regenerate.
11007 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
11009         PR c/43893
11010         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11012 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11014         * c-parser.c (struct c_token): Move location field up.
11015         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11016         (struct c_declspecs): Convert typespec_word, storage_class, and
11017         default_int_p into bitfields.
11018         (struct c_declarator): Move loc field up.
11020 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11022         * cfgloop.h (struct loop): Move can_be_parallel field up.
11023         * ipa-prop.h (struct ip_node_params): Move bitfields up.
11024         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11025         down.
11026         (struct iv_cand): Convert pos field into a bitfield.
11027         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11028         field up.
11029         (struct _stmt_vec_info): Shuffle fields for better packing.
11031 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11033         * varasm.c (IN_NAMED_SECTION): Remove guard.
11034         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11035         (IN_NAMED_SECTION_P): ...this.
11036         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11037         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11039 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11041         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11042         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
11043         of shadowing it.  Fix comments.
11045 2010-04-26  Jan Hubicka  <jh@suse.cz>
11047         * cgraph.c (cgraph_create_node): Set node frequency to normal.
11048         (cgraph_clone_node): Copy function frequency.
11049         * cgraph.h (node_frequency): New enum
11050         (struct cgraph_node): Add.
11051         * final.c (rest_of_clean_state): Update.
11052         * lto-cgraph.c (lto_output_node): Output node frequency.
11053         (input_overwrite_node): Input node frequency.
11054         * tre-ssa-loop-ivopts (computation_cost): Update.
11055         * lto-streamer-out.c (output_function): Do not output function
11056         frequency.
11057         * predict.c (maybe_hot_frequency_p): Update and handle functions
11058         executed once.
11059         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11060         attribute lookup.
11061         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11062         (compute_function_frequency): Set noreturn functions to be executed
11063         once.
11064         (choose_function_section): Update.
11065         * lto-streamer-in.c (input_function): Do not input function frequency.
11066         * function.c (allocate_struct_function): Do not initialize function
11067         frequency.
11068         * function.h (function_frequency): Remove.
11069         (struct function): Remove function frequency.
11070         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11071         (try_update): Update.
11072         * tree-inline.c (initialize_cfun): Do not update function frequency.
11073         * passes.c (pass_init_dump_file): Update.
11074         * i386.c (ix86_compute_frame_layout): Update.
11075         (ix86_pad_returns): Update.
11077 2010-04-26  Jie Zhang  <jie@codesourcery.com>
11079         PR tree-optimization/43833
11080         * tree-vrp.c (range_int_cst_p): New.
11081         (range_int_cst_singleton_p): New.
11082         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11083         when both operands are constants.  Use range_int_cst_p in
11084         BIT_IOR_EXPR case.
11086 2010-04-26  Jan Hubicka  <jh@suse.cz>
11088         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11090 2010-04-26  Richard Guenther  <rguenther@suse.de>
11092         PR lto/43080
11093         * gimple.c (gimple_decl_printable_name): Deal gracefully
11094         with a NULL DECL_NAME.
11096 2010-04-26  Richard Guenther  <rguenther@suse.de>
11098         PR lto/42425
11099         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11100         if emitting debug information and it is either a function
11101         or a namespace decl.
11103 2010-04-26  Ira Rosen  <irar@il.ibm.com>
11105         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11106         determine if the statement is vectorizable, and a macro to access it.
11107         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11108         Skip statements that can't be vectorized. If the analysis fails,
11109         mark the statement as unvectorizable if vectorizing basic block.
11110         (vect_compute_data_refs_alignment): Likewise.
11111         (vect_verify_datarefs_alignment): Skip statements marked as
11112         unvectorizable. Add print.
11113         (vect_analyze_group_access): Skip statements that can't be
11114         vectorized. If the analysis fails, mark the statement as
11115         unvectorizable if vectorizing basic block.
11116         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11117         * tree-vect-stmts.c (vectorizable_store): Fix the number of
11118         generated stmts for SLP.
11119         (new_stmt_vec_info): Initialize the new field.
11120         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11121         statements marked as unvectorizable.
11123 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
11125         * c-common.c (flag_isoc1x): New.
11126         (flag_isoc99): Update comment.
11127         * c-common.h (flag_isoc1x): New.
11128         (flag_isoc99): Update comment.
11129         * c-cppbuiltin.c (builtin_define_float_constants): Also define
11130         __<type>_DECIMAL_DIG__.
11131         * c-opts.c (set_std_c1x): New.
11132         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11133         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11134         * c.opt (-std=c1x, -std=gnu1x): New options.
11135         * doc/cpp.texi: Mention -std=c1x.
11136         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11137         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11138         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11139         * doc/standards.texi: Mention C1X.
11140         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11141         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11142         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11143         Define for C1X.
11145 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
11147         * config/i386/gmon-sol2.c (_mcleanup): Change format string
11148         placeholder from 0x%x to %#x.
11149         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11150         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11151         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11152         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11153         * config/i386/i386.c (ix86_target_string): Ditto.
11154         (output_pic_addr_const): Ditto.
11155         (print_operand): Ditto.
11157 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
11159         * combine.c (find_split_point): Add third argument.  Use it
11160         to find nested multiply-accumulate instructions.  Adjust calls.
11161         (try_combine): Adjust call to find_split_point.
11163 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11165         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11167 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
11169         PR tree-optimization/41442
11170         * fold-const.c (merge_truthop_with_opposite_arm): New function.
11171         (fold_binary_loc): Call it.
11173 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11175         * toplev.c (general_init): Set default for fdiagnostics-show-option.
11176         * opts.c (common_handle_option): Allow disabling it.
11177         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11179 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
11181         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11182         between modes if both types are integral.
11184 2010-04-23  Richard Guenther  <rguenther@suse.de>
11186         PR tree-optimization/43572
11187         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11189 2010-04-23  Richard Guenther  <rguenther@suse.de>
11191         PR lto/43455
11192         * tree-inline.c (tree_can_inline_p): Also check compatibility
11193         of return types.
11195 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11197         PR tree-optimization/43846
11198         * tree-sra.c (struct access): New flag grp_assignment_read.
11199         (build_accesses_from_assign): Set grp_assignment_read.
11200         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11201         (enum mark_read_status): New type.
11202         (analyze_access_subtree): Propagate grp_assignment_read, create
11203         accesses also if both direct_read and root->grp_assignment_read.
11205 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11207         PR middle-end/43835
11208         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11209         function does not have type attributes.
11211 2010-04-23  Richard Guenther  <rguenther@suse.de>
11213         PR lto/42653
11214         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11215         of FUNCTION_DECLs.
11217 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11219         * sese.h (create_if_region_on_edge): Remove.
11221         * sese.c (create_if_region_on_edge): Make static.
11223         * tree-inline.c: Do not include ggc.h.
11225         * expr.c: Do not include ggc.h.
11227         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11228         dependencies.
11230 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11232         PR target/43744
11233         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11234         in the middle of insns for casesi_worker_2.
11236 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
11238         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11240 2010-04-22  Ira Rosen  <irar@il.ibm.com>
11242         PR tree-optimization/43842
11243         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11244         loop unrolling in update of exit phis. Fix comment.
11245         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11246         least two reduction statements in the loop before starting SLP
11247         analysis.
11249 2010-04-22  Nick Clifton  <nickc@redhat.com>
11251         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11253 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
11255         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11256         to simplify a + ~a.
11258 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11260         * tree-parloops.c (loop_parallel_p): New argument
11261         parloop_obstack.  Pass it down.
11262         (parallelize_loops): New variable parloop_obstack.  Initialize it,
11263         pass it down, free it.
11265         * tree-loop-linear.c (linear_transform_loops): Pass down
11266         lambda_obstack.
11268         * tree-data-ref.h (lambda_compute_access_matrices): New argument
11269         of type struct obstack *.
11271         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11272         scratch_obstack.  Initialize it, pass down, free it.
11274         * lambda.h (lambda_loop_new): Remove.
11275         (lambda_matrix_new, lambda_matrix_inverse)
11276         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11277         argument of type struct obstack *.
11279         * lambda-trans.c (lambda_trans_matrix_new): New argument
11280         lambda_obstack.  Pass it down, use obstack allocation for ret.
11281         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
11282         it down.
11284         * lambda-mat.c (lambda_matrix_get_column)
11285         (lambda_matrix_project_to_null): Remove.
11286         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
11287         allocation for mat.
11288         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11289         lambda_obstack.
11291         * lambda-code.c (lambda_loop_new): New function.
11292         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11293         (lambda_compute_auxillary_space, lambda_compute_target_space)
11294         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11295         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11296         (build_access_matrix): New argument lambda_obstack.  Use obstack
11297         allocation for am.
11298         (lambda_compute_step_signs, lambda_compute_access_matrices): New
11299         argument lambda_obstack.  Pass it down.
11301 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11303         * optabs.h (expand_widening_mult): Declare.
11305 2010-04-22  Richard Guenther  <rguenther@suse.de>
11307         PR tree-optimization/43845
11308         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11309         lookup the CALL_EXPR function and arguments.
11311 2010-04-22  Nick Clifton  <nickc@redhat.com>
11313         * config/stormy16/stormy16.c
11314         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11315         * config/stormy16/stormy16.h: Tidy up formatting.
11316         (DONT_USE_BUILTIN_SETJMP): Remove definition.
11317         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11318         (ineqbranchsi): Delete pattern.
11319         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11320         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11321         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11322         stormy16-lib2-ucmpsi2.c.
11324 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11326         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11327         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
11328         extra set merge_set_noclobber, and use it to relax the final test
11329         slightly.
11330         * df.h (df_simulate_find_noclobber_defs): Declare.
11331         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11332         conditional defs.
11333         (df_simulate_find_noclobber_defs): New function.
11335 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
11337         * config/i386/i386.md: Use {} around multi-line preparation statements.
11339 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11341         * c-tree.h (push_init_level, pop_init_level, set_init_index)
11342         (process_init_element): New argument of type struct obstack *.
11344         * c-typeck.c (push_init_level, pop_init_level, set_designator)
11345         (set_init_index, set_init_label, set_nonincremental_init)
11346         (set_nonincremental_init_from_string, find_init_member)
11347         (output_init_element, output_pending_init_elements)
11348         (process_init_element): New argument braced_init_obstack.  Pass it
11349         down.
11350         (push_range_stack, add_pending_init): New argument
11351         braced_init_obstack.  Use obstack allocation.
11353         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11354         braced_init_obstack.  Pass it down.
11355         (c_parser_braced_init): New variables ret, braced_init_obstack.
11356         Initialize obstack, pass it down and finally free it.
11358 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11360         PR middle-end/29274
11361         * tree-pass.h (pass_optimize_widening_mul): Declare.
11362         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11363         gate_optimize_widening_mul): New static functions.
11364         (pass_optimize_widening_mul): New.
11365         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11366         <case MULT_EXPR>: Remove support for widening multiplies.
11367         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11368         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11369         simplify_gen_unary rather than directly building extensions.
11370         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11371         WIDEN_MULT_EXPR.
11372         * expmed.c (expand_widening_mult): New function.
11373         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11375 2010-04-21  Jan Hubicka  <jh@suse.cz>
11377         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11378         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11379         * lto-wpa-fixup.c: Remove.
11380         * Makefile.in (lto-wpa-fixup.o): Remove.
11381         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11382         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11383         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11385 2010-04-21  Jan Hubicka  <jh@suse.cz>
11387         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11388         add write_optimization_summary, read_optimization_summary.
11389         (ipa_write_summaries_of_cgraph_node_set): Remove.
11390         (ipa_write_optimization_summaries): Declare.
11391         (ipa_read_optimization_summaries): Declare.
11392         * ipa-cp.c (pass_ipa_cp): Update.
11393         * ipa-reference.c (pass_ipa_reference): Update.
11394         * ipa-pure-const.c (pass_ipa_pure_const): Update.
11395         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11396         Update.
11397         * ipa-inline.c (pass_ipa_inline): Update.
11398         * ipa.c (pass_ipa_whole_program): Update.
11399         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11400         * passes.c (ipa_write_summaries_1): Do not test wpa.
11401         (ipa_write_optimization_summaries_1): New.
11402         (ipa_write_optimization_summaries): New.
11403         (ipa_read_summaries): Do not test ltrans.
11404         (ipa_read_optimization_summaries_1): New.
11405         (ipa_read_optimization_summaries): New.
11407 2010-04-21  Jan Hubicka  <jh@suse.cz>
11409         * lto-cgraph.c (lto_output_node): Do not output comdat groups
11410         for boundary nodes.
11411         (output_cgraph): Do not arrange comdat groups for boundary nodes.
11413 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11415         PR debug/40040
11416         * dwarf2out.c (add_name_and_src_coords_attributes): Add
11417         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11419 2010-04-21  Jan Hubicka  <jh@suse.cz>
11421         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11423 2010-04-21  Jan Hubicka  <jh@suse.cz>
11425         * varpool.c (decide_is_variable_needed): Variable is always needed
11426         during ltrans.
11428 2010-04-21  Jan Hubicka  <jh@suse.cz>
11430         * opts.c (decode_options): Enable pure-const pass for whopr.
11432 2010-04-21  Jan Hubicka  <jh@suse.cz>
11434         * cgraph.c (dump_cgraph_node): Dump also assembler name.
11435         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11436         at WPA dumping.
11437         (cgraph_decide_inlining): Do not expect callee to be removed in all
11438         cases.
11440 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
11442         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11444 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11446         * config/i386/i386.md (x86_shrd): Add athlon_decode and
11447         amdfam10_decode attributes.
11449 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11451         PR middle-end/43570
11452         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11453         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11454         (lower_copyprivate_clauses): Use private var in outer
11455         context instead of original var.  Make sure the types
11456         are correct for VLAs.
11458 2010-04-21  Richard Guenther  <rguenther@suse.de>
11460         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11461         to non-pointer objects.
11463 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11465         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
11466         last chain entry if it starts with the still current label.
11467         (add_location_or_const_value_attribute): Check that
11468         loc_list->first->next is NULL instead of comparing ->first with ->last.
11469         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11470         to add_var_loc_to_decl.
11472         * dwarf2out.c (output_call_frame_info): For dw_cie_version
11473         >= 4 add also address size and segment size fields into CIE header.
11475         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11476         long as address size is the same as sizeof (void *) and
11477         segment size is 0.
11478         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
11479         address size or segment size is unexpected, return DW_EH_PE_omit.
11480         (classify_object_over_fdes): If get_cie_encoding returned
11481         DW_EH_PE_omit, return -1.
11482         (init_object): If classify_object_over_fdes returned -1,
11483         pretend there were no FDEs at all.
11485 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11487         * config/i386/i386.md (bswap<mode>2): Macroize expander from
11488         bswap{si,di}2 using SWI48 mode iterator.
11489         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11490         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
11491         set modrm attribute of bswap insn to 0 and remove length attribute.
11492         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11493         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
11494         set mode attribute to <MODE> and remove length attribute.
11496 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
11498         PR rtl-optimization/43520
11499         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11500         zero available registers.
11502 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11504         * builtins.c (fold_builtin_cproj): Fold more cases.
11506 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11508         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11509         (fold_builtin_1): Fold builtin cproj.
11510         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11511         Use ATTR_CONST_NOTHROW_LIST.
11513 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
11515         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11516         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
11517         ffsi2_no_cmove for !TARGET_CMOVE.
11518         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
11519         (ffssi2): Remove expander.
11520         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11521         mode iterator.
11522         (ctz<mode>2): Ditto from ctz{si,di}2.
11523         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11524         mode iterator.
11525         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11526         mode iterator.
11528 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11530         * dwarf2out.c (AT_linkage_name): Define.
11531         (clone_as_declaration): Handle DW_AT_linkage_name.
11532         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11533         of DW_AT_MIPS_linkage_name.
11534         (move_linkage_attr): Likewise.
11535         (dwarf2out_finish): Likewise.
11537 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
11539         PR middle-end/41952
11540         * fold-const.c (fold_comparison): New folding rule.
11542 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
11544         * double-int.h (double_int_setbit): Declare.
11545         * double-int.c (double_int_setbit): New function.
11546         * rtl.h (immed_double_int_const): Declare.
11547         * emit-rtl.c (immed_double_int_const): New function.
11548         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11549         and immed_double_int_const functions.
11550         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11551         expand_copysign_bit):  (Ditto.).
11552         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11553         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11554         * dojump.c (prefer_and_bit_test): (Ditto.).
11555         * expr.c (convert_modes, reduce_to_bit_field_precision,
11556         const_vector_from_tree): (Ditto.).
11557         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11559 2010-04-20  Jan Hubicka  <jh@suse.cz>
11561         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11562         (dump_cgraph_node): Dump new flags.
11563         * cgraph.h (struct cgraph_node): Add flags
11564         reachable_from_other_partition and in_other_partition.
11565         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11566         other partition can not be removed.
11567         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11568         the other partition must be output; silence sanity checking on
11569         leaking functions bodies from other paritition.
11570         * lto-cgraph.c (reachable_from_other_partition_p): New function.
11571         (lto_output_node): Output new flags; do not sanity check that inline
11572         clones are output; drop lto_forced_extern_inline_p code; do not mock
11573         visibility flags at partition boundaries.
11574         (add_node_to): New function.
11575         (output_cgraph): Use it to sort functions so masters appear before
11576         clones.
11577         (input_overwrite_node): Input new flags.
11578         * passes.c (ipa_write_summaries): Do not call
11579         lto_new_extern_inline_states.
11580         * lto-section-out.c (forced_extern_inline,
11581         lto_new_extern_inline_states lto_delete_extern_inline_states,
11582         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
11583         * lto-streamer.h (lto_new_extern_inline_states,
11584         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
11585         lto_forced_extern_inline_p): Kill.
11587 2010-04-20  Richard Guenther  <rguenther@suse.de>
11589         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
11590         from vars that can have pointers.
11591         (process_constraint): Dump useless constraints.
11593 2010-04-20  Richard Guenther  <rguenther@suse.de>
11595         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
11596         (dump_sa_points_to_info): Remove asserts.
11597         (init_base_vars): nothing_id isn't an escape point nor does it
11598         have pointers.
11600 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11602         * tree.h (TYPE_REF_IS_RVALUE): Define.
11603         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
11604         should_move_die_to_comdat, prune_unused_types_walk): Handle
11605         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
11606         (modified_type_die, gen_reference_type_die): Emit
11607         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
11608         if TYPE_REF_IS_RVALUE and -gdwarf-4.
11610 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11612         PR target/43635
11613         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
11614         calls for -fpic -m31 if they have been sibcall optimized.
11616 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
11618         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
11619         ar.lc fixed and call-used.
11621         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11623 2010-04-19  Jan Hubicka  <jh@suse.cz>
11625         * opts.c (decode_options): Disable whpr incompatible passes.
11626         * lto/lto.c (lto_1_to_1_map): Skip clones.
11627         (read_cgraph_and_symbols): Do not mark everything as needed.
11628         (do_whole_program_analysis): Do map only after optimizing;
11629         set proper cgraph_state; use passmanager.
11631 2010-04-19  DJ Delorie  <dj@redhat.com>
11633         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
11634         POINTER_PLUS_EXPR and fix them.
11636 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
11638         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
11639         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
11640         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
11641         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
11642         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
11643         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
11644         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
11645         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
11646         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
11647         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
11648         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
11650 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11652         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
11653         (check_cond_move_block): Likewise.
11654         (cond_move_process_if_block): Likewise.
11655         (noce_find_if_block): Improve formatting.
11656         (find_if_header): Pass 0 to memset and tweak conditions.
11657         (cond_exec_find_if_block): Fix long lines and tweak conditions.
11659 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11661         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
11662         for -gdwarf-4.
11664         PR middle-end/43337
11665         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
11666         with non-local decl doesn't need chain.
11668 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
11670         * ira-color.c (allocno_reload_assign): Avoid accumulating
11671         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
11673 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11675         * gimple.h (create_tmp_reg): Declare.
11676         * gimplify.c (create_tmp_reg): New function.
11677         (gimplify_return_expr): Use create_tmp_reg.
11678         (gimplify_omp_atomic): Likewise.
11679         (gimple_regimplify_operands): Likewise.
11680         * tree-dfa.c (make_rename_temp): Likewise.
11681         * tree-predcom.c (predcom_tmp_var): Likewise.
11682         (reassociate_to_the_same_stmt): Likewise.
11683         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
11684         (get_replaced_param_substitute): Likewise.
11685         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11686         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
11687         * tree-ssa-pre.c (get_representative_for): Likewise.
11688         (create_expression_by_pieces): Likewise.
11689         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11690         (create_tailcall_accumulator): Likewise.
11692 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11694         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
11695         new_stmt.
11696         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
11698 2010-04-19  Richard Guenther  <rguenther@suse.de>
11700         PR tree-optimization/43796
11701         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
11702         from SCEV in the lattice.
11703         (vrp_visit_phi_node): Dump change.
11705 2010-04-19  Richard Guenther  <rguenther@suse.de>
11707         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
11708         * configure: Re-generated.
11710 2010-04-19  Richard Guenther  <rguenther@suse.de>
11712         PR tree-optimization/43783
11713         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
11714         constant ARRAY_REF operands two and three if possible.
11716 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
11718         PR target/43766
11719         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
11721 2010-04-19  Jie Zhang  <jie@codesourcery.com>
11723         PR target/43662
11724         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
11726 2010-04-19  Ira Rosen  <irar@il.ibm.com>
11728         PR tree-optimization/37027
11729         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
11730         and macro to access it.
11731         (vectorizable_reduction): Add argument.
11732         (vect_get_slp_defs): Likewise.
11733         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
11734         statements for possible use in SLP.
11735         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
11736         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
11737         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
11738         add new argument.
11739         (vectorizable_reduction): Likewise.
11740         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
11741         vect_get_slp_defs.
11742         (vectorizable_type_demotion, vectorizable_type_promotion,
11743         vectorizable_store): Likewise.
11744         (vect_analyze_stmt): Update call to vectorizable_reduction.
11745         (vect_transform_stmt): Likewise.
11746         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
11747         (vect_build_slp_tree): Fix indentation. Check that there are no loads
11748         from different interleaving chains in same node.
11749         (vect_slp_rearrange_stmts): New function.
11750         (vect_supported_load_permutation_p): Allow load permutations for
11751         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
11752         inside SLP nodes if necessary.
11753         (vect_analyze_slp_instance): Handle reductions.
11754         (vect_analyze_slp): Try to build SLP instances originating from groups
11755         of reductions.
11756         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
11757         (vect_get_constant_vectors): Create initial vectors for reductions
11758         according to reduction code. Add new argument.
11759         (vect_get_slp_defs): Add new argument, pass it to
11760         vect_get_constant_vectors.
11761         (vect_schedule_slp_instance): Remove SLP tree root statements.
11763 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11765         * tree.h (ENUM_IS_SCOPED): Define.
11766         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
11767         for ENUM_IS_SCOPED enums.
11769 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11771         * fold-const.c (fold_comparison): Use ssizetype.
11772         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11773         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
11774         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
11775         * tree-object-size.c (compute_object_sizes): Use size_type_node.
11777         * tree.h (initialize_sizetypes): Remove parameter.
11778         (build_common_tree_nodes): Remove second parameter.
11779         * stor-layout.c (initialize_sizetypes): Remove parameter.
11780         Always create an unsigned type.
11781         (set_sizetype): Assert that the passed type is unsigned and simplify.
11782         * tree.c (build_common_tree_nodes): Remove second parameter.
11783         Adjust call to initialize_sizetypes.
11784         * c-decl.c (c_init_decl_processing): Remove second argument in call to
11785         build_common_tree_nodes.
11787 2010-04-18  Matthias Klose  <doko@ubuntu.com>
11789         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
11791 2010-04-18  Ira Rosen  <irar@il.ibm.com>
11793         PR tree-optimization/43771
11794         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
11795         load permutation doesn't have gaps.
11797 2010-04-18  Jan Hubicka  <jh@suse.cz>
11799         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11800         (sse_prologue_save_insn expander): Use new pattern.
11801         (sse_prologue_save_insn1): New pattern and splitter.
11802         (sse_prologue_save_insn): Update to deal also with 64bit aligned
11803         blocks.
11804         * i386.c (setup_incoming_varargs_64): Do not compute jump
11805         destination here.
11806         (ix86_gimplify_va_arg): Update alignment needed.
11807         (ix86_local_alignment): Do not align all local arrays to 128bit.
11809 2010-04-17  Jan Hubicka  <jh@suse.cz>
11811         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11813 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11815         * arm.md (negdi2): Remove redundant code to force values into a
11816         register.
11818 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11820         * arm/bpabi.S: Add EABI alignment attributes to objects.
11821         * arm/bpabi-v6m.S: Likewise.
11822         * arm/crti.asm: Likewise.
11823         * arm/crtn.asm: Likewise.
11824         * arm/lib1funcs.asm: Likewise.
11825         * arm/libunwind.S: Likewise.
11827 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11829         * arm-protos.h (tune_params): New structure.
11830         * arm.c (current_tune): New variable.
11831         (arm_constant_limit): Delete.
11832         (struct processors): Add pointer to the tune parameters.
11833         (arm_slowmul_tune): New tuning option.
11834         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11835         (all_cores): Adjust to pick up the tuning model.
11836         (arm_constant_limit): New function.
11837         (arm_override_options): Select the appropriate tuning model.  Delete
11838         initialization of arm_const_limit.
11839         (arm_split_constant): Use the new constant-limit model.
11840         (arm_rtx_costs): Pick up the current tuning model.
11841         * arm.md (is_strongarm, is_xscale): Delete.
11842         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11843         for Xscale variant architectures.
11844         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11846 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11848         * config/arm/arm.c (arm_gen_constant): Remove unused variable
11849         can_shift.
11850         (arm_rtx_costs_1): Remove unused variable extra_cost.
11851         (arm_unwind_emit_set): Use variable offset.
11852         (thumb1_output_casesi): Remove unused variable flags.
11854 2010-04-16  Jeff Law  <law@redhat.com>
11856         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11857         needing assignment rather than doing a two-phase assignment.  Remove
11858         unused variable 'm'.
11860 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11862         PR bootstrap/43767
11863         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11865 2010-04-16  Doug Kwan  <dougkwan@google.com>
11867         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11868         (next_operand_entry_id): New static variable.
11869         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11870         (add_to_ops_vec): Assigned unique ID to operand entry.
11871         (struct oecount_s): New field ID.
11872         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11873         (undistribute_ops_list): Assign unique IDs to oecounts.
11874         (init_reassoc): reset next_operand_entry_id.
11876 2010-04-16  Doug Kwan  <dougkwan@google.com>
11878         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
11879         missing left parenthesis.
11881 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
11883         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
11884         *btdi_rex64 using SWI48 mode iterator.
11885         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
11886         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
11887         *jcc_btdi_mask_rex64.
11889 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
11891         * double-int.h (tree_to_double_int): Convert to macro.
11892         * double-int.c (tree_to_double_int): Remove.
11894 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11896         PR debug/43762
11897         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
11898         with want_address 2 and in case a single element list might be
11899         possible, call it again with want_address 0.
11901 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11903         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
11904         case 'W' print operands for HI mode.
11905         * config/h8300/h8300.h (Y0, Y2) : New constraints.
11906         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
11907         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
11908         * config/h8300/predicate.md (bit_register_indirect_operand): New.
11910         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
11912         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
11913         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
11914         #xx:3 and #xx:4 mode.
11916         * config/h8300/h8300.md (inverted load with HImode dest): Add
11917         support for H8300SX.
11919         * config/h8300/predicate.md (bit_operand): Allow immediate values that
11920         satisfy 'U' constraint.
11922 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11924         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
11925         * configure: Regenerate.
11926         * config.in: Regenerate.
11927         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
11928         works.
11930 2010-04-16  Richard Guenther  <rguenther@suse.de>
11932         * tree.h (struct tree_decl_minimal): Move pt_uid ...
11933         (struct tree_decl_common): ... here.
11934         (DECL_PT_UID): Adjust.
11935         (SET_DECL_PT_UID): Likewise.
11936         (DECL_PT_UID_SET_P): Likewise.
11938 2010-04-16  Richard Guenther  <rguenther@suse.de>
11940         PR tree-optimization/43572
11941         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
11942         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
11943         * tree-flow.h (is_call_clobbered): Remove.
11944         * tree-flow-inline.h (is_call_clobbered): Likewise.
11945         * tree-dfa.c (dump_variable): Do not dump call clobber state.
11946         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
11947         (execute_return_slot_opt): Adjust.
11948         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
11949         check for call clobbered vars here.
11950         (find_tail_calls): Move tailcall verification to the
11951         proper place.
11953 2010-04-16  Diego Novillo  <dnovillo@google.com>
11955         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
11957 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11959         PR target/40603
11960         * config/arm/arm.md (cbranchqi4): New pattern.
11961         * config/arm/predicates.md (const0_operand,
11962         cbranchqi4_comparison_operator): New predicates.
11964 2010-04-16  Richard Guenther  <rguenther@suse.de>
11966         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
11967         (dump_gimple_stmt): Likewise.
11969 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11971         * recog.h (struct recog_data): New field is_operator.
11972         (struct insn_operand_data): New field is_operator.
11973         * recog.c (extract_insn): Set recog_data.is_operator.
11974         * genoutput.c (output_operand_data): Emit code to set the
11975         is_operator field.
11976         * reload.c (find_reloads): Use it rather than testing for an
11977         empty constraint string.
11979         PR target/41514
11980         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
11981         If the previous insn is a cbranchsi4_insn with the same arguments,
11982         omit the compare instruction.
11984         * config/arm/arm.md (addsi3_cbranch): If destination is a high
11985         register, inputs must be low registers and we need a low register
11986         scratch.  Handle alternative 2 like alternative 3.
11988 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11990         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
11991         don't call get_addr on both.  If one expression is a VALUE and
11992         the other a REG, check VALUE's locs if the REG isn't among them.
11994 2010-04-16  Christian Bruel  <christian.bruel@st.com>
11996         * config/sh/sh.h (sh_frame_pointer_required): New function.
11997         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
11998         (flag_omit_frame_pointer) Set.
11999         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12000         (rounded_frame_size): Adjust size with outgoing_args_size.
12001         (sh_set_return_address): Must return from stack pointer.
12002         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12003         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12004         (ACCUMULATE_OUTGOING_ARGS): Define.
12005         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12006         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12008 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12010         PR target/43471
12011         * config/sh/sh.c (sh_legitimize_reload_address): Use
12012         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12013         Remove a unneeded check for offset_base.
12015 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12017         * configure: Regenerated.
12019 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12021         * config/s390/s390.c (s390_call_save_register_used): Switch back
12022         to HARD_REGNO_NREGS.
12024 2010-04-15  Richard Guenther  <rguenther@suse.de>
12026         * alias.c (alias_set_subset_of): Handle alias-set zero
12027         child properly.
12029 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
12030             Julian Brown  <julian@codesourcery.com>
12032         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12033         alternatives according to use of high and low regs.
12034         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12035         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12036         optimizing for size on Thumb-2.
12038 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
12040         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12042 2010-04-15  Richard Guenther  <rguenther@suse.de>
12044         * tree-ssa-structalias.c (struct variable_info): Add
12045         is_fn_info flag.
12046         (new_var_info): Initialize it.
12047         (dump_constraints): Support printing last added constraints.
12048         (debug_constraints): Adjust.
12049         (dump_constraint_graph): Likewise.
12050         (make_heapvar_for): Check for NULL cfun.
12051         (get_function_part_constraint): New function.
12052         (get_fi_for_callee): Likewise.
12053         (find_func_aliases): Properly implement IPA PTA constraints.
12054         (process_ipa_clobber): New function.
12055         (find_func_clobbers): Likewise.
12056         (insert_into_field_list_sorted): Remove.
12057         (create_function_info_for): Properly allocate vars for IPA mode.
12058         Do not use insert_into_field_list_sorted.
12059         (create_variable_info_for): Properly generate constraints for
12060         global vars in IPA mode.
12061         (dump_solution_for_var): Always dump the solution.
12062         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12063         (find_what_var_points_to): Adjust.
12064         (pt_solution_set): Change.
12065         (pt_solution_ior_into): New function.
12066         (pt_solution_empty_p): Export.
12067         (pt_solution_includes_global): Adjust.
12068         (pt_solution_includes_1): Likewise.
12069         (pt_solutions_intersect_1): Likewise.
12070         (dump_sa_points_to_info): Check some invariants.
12071         (solve_constraints): Move constraint dumping ...
12072         (compute_points_to_sets): ... here.
12073         (ipa_pta_execute): ... and here.
12074         (compute_may_aliases): Do not re-compute points-to info
12075         locally if IPA info is available.
12076         (ipa_escaped_pt): New global var.
12077         (ipa_pta_execute): Properly implement IPA PTA.
12078         * tree-into-ssa.c (dump_decl_set): Support dumping
12079         decls not in referenced-vars.
12080         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12081         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12082         (dump_points_to_solution): Likewise.
12083         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12084         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12085         (remap_gimple_stmt): Reset call clobber/use information if necessary.
12086         (copy_decl_to_var): Copy DECL_PT_UID.
12087         (copy_result_decl_to_var): Likewise.
12088         * tree.c (make_node_stat): Initialize DECL_PT_UID.
12089         (copy_node_stat): Copy it.
12090         * tree.h (DECL_PT_UID): New macro.
12091         (SET_DECL_PT_UID): Likewise.
12092         (DECL_PT_UID_SET_P): Likewise.
12093         (struct tree_decl_minimal): Add pt_uid member.
12094         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12095         (pt_solution_empty_p): Declare.
12096         (pt_solution_set): Adjust.
12097         (ipa_escaped_pt): Declare.
12098         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12099         * gimple-pretty-print.c (pp_points_to_solution): New function.
12100         (dump_gimple_call): Dump call clobber/use information.
12101         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12102         * tree-pass.h (TDF_ALIAS): New dump option.
12103         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12104         * doc/invoke.texi (-fipa-pta): Update documentation.
12106 2010-04-15  Richard Guenther  <rguenther@suse.de>
12108         * Makefile.in (OBJS-common): Add gimple-fold.o.
12109         (gimple-fold.o): New rule.
12110         * tree.h (maybe_fold_offset_to_reference,
12111         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12112         prototypes ...
12113         * gimple.h: ... here.
12114         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12115         may_propagate_address_into_dereference): Move prototypes ...
12116         * gimple.h: ... here.
12117         * tree-ssa-ccp.c (get_symbol_constant_value,
12118         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12119         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12120         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12121         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12122         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12123         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12124         gimplify_and_update_call_from_tree): Move ...
12125         * gimple-fold.c: ... here.  New file.
12126         (ccp_fold_builtin): Rename to ...
12127         (gimple_fold_builtin): ... this.
12128         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12130 2010-04-15  Richard Guenther  <rguenther@suse.de>
12132         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12133         fit_double_type, force_fit_type_double, add_double_with_sign,
12134         neg_double, mul_double_with_sign, lshift_double, rshift_double,
12135         lrotate_double, rrotate_double, div_and_round_double): Move ...
12136         * double-int.c: ... here.
12137         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12138         add_double, neg_double, mul_double_with_sign, mul_double,
12139         lshift_double, rshift_double, lrotate_double, rrotate_double,
12140         div_and_round_double): Move prototypes ...
12141         * double-int.h: ... here.
12143 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
12145         PR target/43742
12146         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
12147         matching constraints to ensure inputs match the output.
12149 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12151         PR target/43742
12152         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12153         in an input-only operand.
12155 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
12157         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12158         (double_int_not, double_int_lshift, double_int_rshift): Declare.
12159         (double_int_negative_p): Convert to static inline function.
12160         * double-int.c (double_int_lshift, double_int_lshift): New functions.
12161         (double_int_negative_p): Remove.
12162         * tree.h (lshift_double, rshift_double):
12163         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12164         * fold-const.c (fold_convert_const_int_from_real,
12165         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12166         (lshift_double): Change type of arith argument to bool.
12167         (rshift_double): Change type of arith argument to bool. Correct
12168         comment.
12169         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12171 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
12173         PR target/21803
12174         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12175         at the start and end of the then/else blocks, and omit them from the
12176         conversion.
12177         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
12178         argument; all callers changed.  Pass zero to old_insns_match_p instead.
12179         (flow_find_head_matching_sequence): New function.
12180         (old_insns_match_p): Check REG_EH_REGION notes for calls.
12181         * basic-block.h (flow_find_cross_jump,
12182         flow_find_head_matching_sequence): Declare functions.
12184 2010-04-14  Jason Merrill  <jason@redhat.com>
12186         PR c++/36625
12187         * c-common.c (attribute_takes_identifier_p): New fn.
12188         * c-common.h: Declare it.
12190 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12192         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12193         splitter condition.
12194         (*udivmod<mode>4): Ditto.
12196 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12198         * config/i386/i386.md (maxmin_int): Rename code attribute from
12199         maxminiprefix and update all users.
12200         (maxmin_float): Ditto from maxminfprefix.
12201         (logic): Ditto from logicprefix.
12202         (absneg_mnemonic): Ditto from absnegprefix.
12203         * config/i386/mmx.md: Update all users of maxminiprefix,
12204         maxminfprefix and logicprefix for rename.
12205         * config/i386/sse.md: Ditto.
12206         * config/i386/sync.md (sync_<code><mode>): Update for
12207         logicprefix rename.
12209 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12211         PR 42966
12212         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12213         warnings converted to errors.
12215 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12217         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12218         used insn_type variable.
12219         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12220         to avoid set-but-not-used warning.
12222 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12224         * df-core.c (df_ref_debug): Change format string placeholder
12225         from 0x%x to %#x.
12226         * dwarf2asm.c (dw2_asm_output_data_raw,
12227         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12228         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12229         * dwarf2out.c (output_cfi, output_cfi_directive,
12230         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12231         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12232         Ditto.
12233         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12234         * print-rtl.c (print_rtx): Ditto.
12236 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12238         PR middle-end/42694
12239         * builtins.c (expand_builtin_pow_root): New function to expand pow
12240         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12241         series of sqrt and cbrt calls under -ffast-math.
12242         (expand_builtin_pow): Call it.
12244 2010-04-14  Michael Matz  <matz@suse.de>
12246         PR tree-optimization/42963
12247         * tree-cfg.c (touched_switch_bbs): New static variable.
12248         (group_case_labels_stmt): New function broken out from ...
12249         (group_case_labels): ... here, use the above.
12250         (start_recording_case_labels): Allocate touched_switch_bbs.
12251         (end_recording_case_labels): Deallocate it, call
12252         group_case_labels_stmt.
12253         (gimple_redirect_edge_and_branch): Remember index of affected BB.
12255 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12257         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12258         from insn template.
12260 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12262         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12264 2010-04-13  Jan Hubicka  <jh@suse.cz>
12266         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12267         of optimized out static functions.
12268         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12269         cost computation.  Also sanity check for overflows.
12270         (update_caller_keys): Update cgraph_edge_badness call; properly
12271         update fibheap and sanity check that it is up to date.
12272         (add_new_edges_to_heap): Update cgraph_edge_badness.
12273         (cgraph_decide_inlining_of_small_function): Likewise;
12274         add sanity checking that badness in heap is up to date;
12275         improve dumping of reason; Update badness of calls to the
12276         offline copy of function currently inlined; dump badness
12277         of functions not inlined because of unit growth limits.
12279 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12281         PR middle-end/32628
12282         * c-common.c (pointer_int_sum): Disregard overflow that occured only
12283         because of sign-extension change when converting to sizetype here...
12284         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12286         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12287         the folding to constants.  Remove redundant final conversion.
12288         (fold_binary) <associate>: Do not associate if the re-association of
12289         constants alone overflows.
12290         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12291         to the end of the list.
12292         (multiple_of_p) <COND_EXPR>: New case.
12294 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12296         * opt-functions.awk (opt_sanitized_name): New.
12297         (opt_enum): New.
12298         * optc-gen.awk: Use it
12299         * opth-gen.awk: Use it.
12301 2010-04-13  Martin Jambor  <mjambor@suse.cz>
12303         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12304         (sra_modify_assign): Delete stmts loading dead data even if racc has no
12305         children.  Call replace_uses_with_default_def_ssa_name to handle
12306         SSA_NAES on lhs.
12308 2010-04-13  Michael Matz  <matz@suse.de>
12310         PR middle-end/43730
12311         * builtins.c (expand_builtin_interclass_mathfn): Also create
12312         a register if the predicate doesn't match.
12314 2010-04-13  Diego Novillo  <dnovillo@google.com>
12316         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12317         * c-pch.c: Include timevar.h.
12318         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12319         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12320         * ggc-common.c: Include timevar.h.
12321         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12322         * timevar.def (TV_PCH_SAVE): Define.
12323         (TV_PCH_CPP_SAVE): Define.
12324         (TV_PCH_PTR_REALLOC): Define.
12325         (TV_PCH_PTR_SORT): Define.
12326         (TV_PCH_RESTORE): Define.
12327         (TV_PCH_CPP_RESTORE): Define.
12329 2010-04-13  Michael Matz  <matz@suse.de>
12331         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12332         into MINUS_EXPRs.
12333         (can_reassociate_p): New function.
12334         (break_up_subtract_bb, reassociate_bb): Use it.
12336 2010-04-13  Richard Guenther  <rguenther@suse.de>
12338         PR bootstrap/43737
12339         * builtins.c (c_readstr): Fix assert.
12341 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
12343         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12344         when generating cltd insn.
12346         (*ashl<mode>3_1): Remove special handling for register operand 2.
12347         (*ashlsi3_1_zext): Ditto.
12348         (*ashlhi3_1): Ditto.
12349         (*ashlhi3_1_lea): Ditto.
12350         (*ashlqi3_1): Ditto.
12351         (*ashlqi3_1_lea): Ditto.
12352         (*<shiftrt_insn><mode>3_1): Ditto.
12353         (*<shiftrt_insn>si3_1_zext): Ditto.
12354         (*<shiftrt_insn>qi3_1_slp): Ditto.
12355         (*<rotate_insn><mode>3_1): Ditto.
12356         (*<rotate_insn>si3_1_zext): Ditto.
12357         (*<rotate_insn>qi3_1_slp): Ditto.
12359 2010-04-13  Richard Guenther  <rguenther@suse.de>
12361         * tree-ssa-structalias.c (callused_id): Remove.
12362         (call_stmt_vars): New.
12363         (get_call_vi): Likewise.
12364         (lookup_call_use_vi): Likewise.
12365         (lookup_call_clobber_vi): Likewise.
12366         (get_call_use_vi): Likewise.
12367         (get_call_clobber_vi): Likewise.
12368         (make_transitive_closure_constraints): Likewise.
12369         (handle_const_call): Adjust to do per-call call-used handling.
12370         (handle_pure_call): Likewise.
12371         (find_what_var_points_to): Remove general callused handling.
12372         (init_base_vars): Likewise.
12373         (init_alias_vars): Initialize call_stmt_vars.
12374         (compute_points_to_sets): Process call-used and call-clobbered
12375         vars for call statements.
12376         (delete_points_to_sets): Free call_stmt_vars.
12378 2010-04-13  Richard Guenther  <rguenther@suse.de>
12380         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12381         Only add RW dependence for dependence distance zero.
12382         Adjust maximal vectorization factor according to dependences.
12383         Move alignment handling ...
12384         (vect_find_same_alignment_drs): ... here.  New function.
12385         (vect_analyze_data_ref_dependences): Adjust.
12386         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12387         (vect_analyze_data_refs): Adjust minimal vectorization factor
12388         according to data references.
12389         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12390         dependences before determining the vectorization factor.
12391         Analyze alignment after determining the vectorization factor.
12392         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12393         dependences before alignment.
12394         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12395         Adjust prototype.
12396         (vect_analyze_data_refs): Likewise.
12397         (MAX_VECTORIZATION_FACTOR): New define.
12399 2010-04-13  Duncan Sands  <baldrick@free.fr>
12401         * except.h (lang_eh_type_covers): Remove.
12402         * except.c (lang_eh_type_covers): Likewise.
12404 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12405             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12407         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12408         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12409         UNITS_PER_LONG where it is ABI relevant.
12410         (s390_return_addr_rtx): Likewise.
12411         (s390_back_chain_rtx): Likewise.
12412         (s390_frame_area): Likewise.
12413         (s390_frame_info): Likewise.
12414         (s390_initial_elimination_offset): Likewise.
12415         (save_gprs): Likewise.
12416         (s390_emit_prologue): Likewise.
12417         (s390_emit_epilogue): Likewise.
12418         (s390_function_arg_advance): Likewise.
12419         (s390_function_arg): Likewise.
12420         (s390_va_start): Likewise.
12421         (s390_gimplify_va_arg): Likewise.
12422         (s390_function_profiler): Likewise.
12423         (s390_optimize_prologue): Likewise.
12424         (s390_rtx_costs): Likewise.
12425         (s390_secondary_reload): Likewise.
12426         (s390_promote_function_mode): Likewise.
12427         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12428         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12429         registers available.
12430         (s390_unwind_word_mode): New function.
12431         (s390_function_value): Split 64 bit values into register pair if
12432         used as return value.
12433         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12434         function call parameters.  Handle parallels.
12435         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12436         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12437         (DWARF_CIE_DATA_ALIGNMENT): New macro.
12438         (s390_expand_setmem): Remove unused variable src_addr.
12439         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12440         deal with 64 bit registers.
12441         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12442         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12443         (UNITS_PER_LONG): New macro.
12444         * libjava/include/s390-signal.h: Define extended ucontext
12445         structure containing the upper halfs of the 64 bit registers.
12447 2010-04-13  Simon Baldwin  <simonb@google.com>
12449         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12451 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12453         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12454         rvalue on the RHS if the LHS is of a non-renamable type.
12455         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12457 2010-04-13  Matthias Klose  <doko@ubuntu.com>
12459         * gcc.c (cc1_options): Handle -iplugindir before processing
12460         the cc1 spec. Only add -iplugindir once.
12461         (cpp_unique_options): Add -iplugindir option if -fplugin* options
12462         found.
12463         * common.opt (iplugindir): Remove `Separate' property, initialize.
12464         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12465         option.
12466         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12467         (distclean): Remove plugin dir.
12468         * doc/invoke.texi: Document -iplugindir.
12470 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
12472         * doc/plugins.texi (Loading Plugins): Document short
12473         -fplugin=foo option.
12474         (Plugin API): Mention default_plugin_dir_name function.
12476         * gcc.c (find_file_spec_function): Add new declaration.
12477         (static_spec_func): Use it for "find-file".
12478         (find_file_spec_function): Add new function.
12479         (cc1_options): Add -iplugindir option if -fplugin* options found.
12481         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12483         * plugin.c (add_new_plugin): Updated comment, and handle short
12484         plugin name.
12485         (default_plugin_dir_name): Added new function.
12487         * common.opt (iplugindir): New option to set the plugin directory.
12489 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
12491         * config/i386/i386.md (any_rotate): New code iterator.
12492         (rotate_insn): New code attribute.
12493         (rotate): Ditto.
12494         (SWIM124): New mode iterator.
12495         (<rotate_insn>ti3): New expander.
12496         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12497         any_rotate code iterator.
12498         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12499         using any_rotate code iterator and SWIM124 mode iterator.
12500         (ix86_rotlti3): New insn_and_split pattern.
12501         (ix86_rotrti3): Ditto.
12502         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12503         ix86_rotl{di,ti}3 patterns.
12504         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12505         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12506         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12507         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12508         code iterator and SWI mode iterator.
12509         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12510         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12511         code iterator.
12512         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12513         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12514         (bswap rotatert splitter): Add splitter.
12515         (bswap splitter): Macroize splitter using any_rotate code iterator.
12516         Add insn predicate to split only for TARGET_USE_XCHGB or when
12517         optimizing function for size.
12519 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12521         * config/pa/pa.c (emit_move_sequence): Remove use of
12522         deleted variable flag_argument_noalias.
12524 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12526         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12527         configurations.
12528         Add to unsupported targets list.
12529         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12530         sparc*-sun-solaris2.[567]* from target lists.
12531         * configure: Regenerate.
12532         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12533         removal.
12534         Remove Solaris 7 patch references.
12535         (Specific, sparc-sun-solaris2.7): Removed.
12536         (sparc-sun-solaris2*): Update Solaris 7 example.
12537         (sparc64-*-solaris2*): Likewise.
12539 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12541         * config.build (alpha*-dec-osf4*): Remove.
12542         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12543         of obsolete configurations.
12544         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12545         support.
12546         * config/alpha/t-osf4: Renamed to ...
12547         * config/alpha/t-osf5: ... this.
12548         * config/alpha/osf.h: Renamed to ...
12549         * config/alpha/osf5.h: ... this.
12550         Merged old osf5.h contents.
12551         Update comments.
12552         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12553         (EXTRA_SPECS): Removed.
12554         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12555         reflect removal of Tru64 UNIX V4.0/V5.0 support.
12556         Document that.
12558 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12560         * doc/contrib.texi (Contributors, Rainer Orth): Update.
12562 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
12564         PR/43702
12565         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12566         __thiscall convention.
12568 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12570         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12571         orig_base.
12572         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12574 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12576         * function.c (assign_parms_initialize_all): Add unused attribute
12577         to fntype.
12579 2010-04-12  Richard Guenther  <rguenther@suse.de>
12581         * gsstruct.def (GSS_CALL): New.
12582         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
12583         * gimple.h: Include tree-ssa-alias.h.
12584         (struct gimple_statement_call): New.
12585         (union gimple_statement_struct_d): Add gimple_call member.
12586         (gimple_call_reset_alias_info): Declare.
12587         (gimple_call_use_set): New function.
12588         (gimple_call_clobber_set): Likewise.
12589         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
12590         * gimple.c (gimple_call_reset_alias_info): New function.
12591         (gimple_build_call_1): Call it.
12592         * lto-streamer-in.c (input_gimple_stmt): Likewise.
12593         * tree-inline.c (remap_gimple_stmt): Likewise.
12594         (expand_call_inline): Remove callused handling.
12595         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
12596         * tree-dfa.c (dump_variable): Likewise.
12597         * tree-parloops.c (parallelize_loops): Likewise.
12598         * tree-ssa.c (init_tree_ssa): Likewise.
12599         (delete_tree_ssa): Likewise.
12600         * tree-flow-inline.h (is_call_used): Remove.
12601         * tree-flow.h (struct gimple_df): Remove callused member.
12602         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
12603         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
12604         (ref_maybe_used_by_call_p_1): Simplify.
12605         (call_may_clobber_ref_p_1): Likewise.
12606         * tree-ssa-structalias.c (compute_points_to_sets): Set
12607         the call stmt used and clobbered sets.
12608         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
12609         (find_tail_calls): Verify the tail call.
12611 2010-04-12  Richard Guenther  <rguenther@suse.de>
12613         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
12614         single-iteration always-inline inlining.
12615         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
12616         (cgraph_decide_inlining): Do not handle always-inline specially.
12617         (try_inline): Remove always-inline cycle detection special case.
12618         Do not recurse on always-inlines.
12619         (cgraph_early_inlining): Do not iterate if not optimizing.
12620         (cgraph_gate_early_inlining): remove.
12621         (pass_early_inline): Run unconditionally.
12622         (gate_cgraph_decide_inlining): New function.
12623         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
12624         not inlining or optimizing.
12625         (cgraph_decide_inlining_of_small_functions): Also consider
12626         always-inline functions.
12627         (cgraph_default_inline_p): Return true for nodes which should
12628         disregard inline limits.
12629         (estimate_function_body_sizes): Assume zero size and time for
12630         nodes which are marked as disregarding inline limits.
12631         (cgraph_decide_recursive_inlining): Do not perform recursive
12632         inlining on always-inline nodes.
12634 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
12636         PR bootstrap/43699
12637         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
12638         for exprs satisfying handled_component_p.
12640 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
12642         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
12643         non-constant aggregate elements.
12645         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
12646         is a real initialization.
12648 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
12650         PR c/36774
12651         * c-decl.c (start_function): Move forward check for nested function.
12653 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
12655         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
12656         * config/sh/sh.c: Include reload.h.
12657         (sh_legitimize_reload_address): New.
12658         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
12659         sh_legitimize_reload_address.
12661 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12663         * config/sh/sh.md (*movqi_pop): New insn pattern.
12664         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
12666 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12668         * config/i386/i386.md (any_shiftrt): New code iterator.
12669         (shiftrt_insn): New code attribute.
12670         (shiftrt): Ditto.
12671         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
12672         using any_shiftrt code iterator.
12673         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
12674         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
12675         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
12676         pattern from corresponding peephole2 patterns.
12677         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
12678         using any_shiftrt code iterator.
12679         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
12680         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
12681         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
12682         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
12683         *{ashr,lshr}<mode>3_cmp_zext.
12684         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
12686 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12688         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
12689         scratch register.
12690         (*lshr<mode>3_cconly): Ditto.
12692 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12694         * config/i386/i386.md (lshr<mode>3): Macroize expander from
12695         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12696         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12697         pattern from *lshr{di,ti}3_1 and corresponding splitters using
12698         DWI mode iterator.
12699         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12700         from corresponding peephole2 patterns.
12701         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
12702         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
12703         and *lshrdi3_1_rex64 using SWI mode iterator.
12704         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
12705         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
12706         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
12707         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
12708         and *lshrdi3_cmp_rex64 using SWI mode iterator.
12709         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
12710         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
12711         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
12712         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
12713         SWI mode iterator.
12715 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
12717         * config/i386/i386.md (ashr<mode>3): Macroize expander from
12718         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12719         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12720         pattern from *ashr{di,ti}3_1 and corresponding splitters using
12721         DWI mode iterator.
12722         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12723         from corresponding peephole2 patterns.
12724         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
12725         (ashrsi3_cvt): Rename from ashrsi3_31.
12726         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
12727         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
12728         and x86_64_shift_adj_3 using SWI48 mode iterator.
12729         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
12730         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
12731         and *ashrdi3_1_rex64 using SWI mode iterator.
12732         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
12733         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
12734         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
12735         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
12736         and *ashrdi3_cmp_rex64 using SWI mode iterator.
12737         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
12738         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
12739         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
12740         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
12741         SWI mode iterator.
12742         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
12743         * config/i386/i386.c (ix86_split_ashr): Update for renamed
12744         x86_shift<mode>_adj_3 expanders.
12746 2010-04-10  Wei Guozhi  <carrot@google.com>
12748         PR target/42601
12749         * config/arm/arm.c (arm_pic_static_addr): New function.
12750         (legitimize_pic_address): Call arm_pic_static_addr when it detects
12751         a static symbol.
12752         (arm_output_addr_const_extra): Output expression for new pattern.
12753         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
12755 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
12757         * ira-costs.c (record_reg_classes): Ignore alternatives that are
12758         not enabled.
12760         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
12761         * web.c: Include "insn-config.h" and "recog.h".
12762         (union_match_dups): New function.
12763         (web_main): Call it.
12764         (union_defs): Don't try to recognize match_dups.
12766         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
12767         if doing so would replace the entire pattern.
12769 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12771         PR target/43707
12772         PR target/43709
12773         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
12774         and splitter pattern.  Change splitter operand 1 predicate to
12775         nonmemory_operand.
12777 2010-04-09  Martin Jambor  <mjambor@suse.cz>
12779         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
12780         lattices are addresses of CONST_DECLs with the same initial value.
12781         (ipcp_print_all_lattices): Print values of CONST_DECLs.
12782         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
12784 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
12785             Bernd Schmidt  <bernds@codesourcery.com>
12787         * loop-invariant.c (replace_uses): New static function.
12788         (move_invariant_reg): Use it to ensure we can replace the uses.
12790 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12792         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
12793         function template.
12794         (picochip_override_options): Enable section anchors only above -O1.
12795         (picochip_reorg): Fixed a couple of build warnings.
12797 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12799         * configure.ac (plugin -rdynamic test): Log result.
12800         * configure: Regenerate.
12801         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12802         (RDYNAMIC_SPEC): Define.
12803         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12805 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12807         * configure.ac: Determine Sun ld version numbers.
12808         (comdat_group): Restrict GNU ld version checks to gld.
12809         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12810         (enable_comdat): Support --enable-comdat.
12811         * configure: Regenerate.
12812         * doc/install.texi (Configuration): Document --enable-comdat.
12814 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12816         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
12817         * config/sol2-gld.h: ... here.
12818         * config.gcc (sparc*-*-solaris2*): Reflect this.
12819         (i[34567]86-*-solaris2*): Use it.
12821 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
12823         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12824         setup_clocks_p.
12825         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12827 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12829         PR 42965
12830         * diagnostic.c (diagnostic_initialize): Initialize
12831         some_warnings_are_errors.
12832         (diagnostic_finish): New.
12833         (diagnostic_action_after_output): Call it before exiting.
12834         (diagnostic_report_diagnostic): Do not print message here. Set
12835         some_warnings_are_errors.
12836         * diagnostic.h (diagnostic_context): Delete
12837         issue_warnings_are_errors_message. Add some_warnings_are_errors.
12838         (diagnostic_finish): Declare.
12839         * toplev.c (toplev_main): Call it before exit.
12841 2010-04-09  Jason Merrill  <jason@redhat.com>
12843         PR c++/42623
12844         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12845         for incomplete type.
12847         PR c++/41788
12848         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12849         based on a warning flag.
12851 2010-04-09  Richard Guenther  <rguenther@suse.de>
12853         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12855 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
12857         PR bootstrap/43684
12858         * varasm.c (default_assemble_visibility): Wrap vars that are
12859         set, but unused, by targets without GAS.
12860         * config/rs6000/rs6000.c (paired_emit_vector_compare):
12861         Remove set, but unused, vars.
12862         (rs6000_legitimize_tls_address): Likewise.
12863         (altivec_expand_dst_builtin): Likewise.
12864         * config/darwin.c (machopic_classify_symbol): Likewise.
12865         (machopic_indirection_name): Likewise.
12867 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12869         * config/i386/i386.md (DWI): New mode iterator.
12870         (S): New mode attribute.
12871         (shift_operand): Ditto.
12872         (shift_immediate_operand): Ditto.
12873         (ashl_input_operand): Ditto.
12874         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
12875         using SDWIM mode iterator.
12876         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12877         pattern from *ashl{di,ti}3_1 and corresponding splitters using
12878         DWI mode iterator.
12879         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
12880         from corresponding peephole2 patterns.
12881         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
12882         and x86_64_shift_adj_1 using SWI48 mode iterator.
12883         (x86_shift<mode>_adj_2): Ditto.
12884         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
12885         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
12886         using SWI48 mode iterator.
12887         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
12888         *ashldi3_cmp_rex64 using SWI mode iterator.
12889         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
12890         *ashldi3_cconly_rex64 using SWI mode iterator.
12891         * config/i386/i386.c (ix86_split_ashl): Update for renamed
12892         x86_shift<mode>_adj_{1,2}.
12893         (ix86_split_ashr): Ditto.
12894         (ix86_split_lshr): Ditto.
12896 2010-04-09  Richard Guenther  <rguenther@suse.de>
12898         * target.h (builtin_conversion): Pass in input and output types.
12899         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
12900         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
12901         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
12902         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
12904         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
12905         Handle AVX modes.
12906         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
12908 2010-04-09  Richard Guenther  <rguenther@suse.de>
12910         PR target/43152
12911         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
12913 2010-04-09  Richard Guenther  <rguenther@suse.de>
12915         * tree-vectorizer.h (struct _stmt_vec_info): Document
12916         that vectype is the type of the LHS.
12917         (supportable_widening_operation, supportable_narrowing_operation):
12918         Get both input and output vector types as arguments.
12919         (vect_is_simple_use_1): Declare.
12920         (get_same_sized_vectype): Likewise.
12921         * tree-vect-loop.c (vect_determine_vectorization_factor):
12922         Set STMT_VINFO_VECTYPE to the vector type of the def.
12923         (vectorizable_reduction): Adjust.
12924         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
12925         Adjust.  Specify the output vector type.
12926         (vect_pattern_recog_1): Adjust.
12927         * tree-vect-stmts.c (get_same_sized_vectype): New function.
12928         (vectorizable_call): Adjust.
12929         (vectorizable_conversion): Likewise.
12930         (vectorizable_operation): Likewise.
12931         (vectorizable_type_demotion): Likewise.
12932         (vectorizable_type_promotion): Likewise.
12933         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
12934         the def.
12935         (vect_is_simple_use_1): New function.
12936         (supportable_widening_operation): Get both input and output
12937         vector types.
12938         (supportable_narrowing_operation): Likewise.
12939         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
12941 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
12943         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
12944         __thiscall and _thiscall as predefined macros.
12945         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
12946         thiscall attribute handling.
12947         (ix86_comp_type_attributes): Likewise.
12948         (ix86_function_regparm): Likewise.
12949         (ix86_return_pops_args): Likewise.
12950         (init_cumulative_args): Likewise.
12951         (find_drap_reg): Likewise.
12952         (ix86_static_chain): Likewise.
12953         (x86_this_parameter): Likewise.
12954         (x86_output_mi_thunk): Likewise.
12955         (ix86_attribute_table): Add description for thiscall attribute.
12956         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
12957         * doc/extend.texi: Add documentation for thiscall.
12959 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12961         PR c++/28584
12962         * c.opt (Wint-to-pointer-cast): Available in C++.
12963         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
12965 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
12967         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
12968         * calls.c (expand_call): Pass the function type to aggregate_value_p.
12969         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
12970         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
12971         function type instead.  Reorder and simplify checks.
12973         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
12975 2010-04-08  Jing Yu  <jingyu@google.com>
12976             Zdenek Dvorak  <ook@ucw.cz>
12978         PR tree-optimization/42720
12979         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
12980         loop unswitch conditions here from ...
12981         (tree_unswitch_single_loop): ... here.
12983 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12985         * tree-if-conv.c: Fix comments and simplify logic.
12987 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12989         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
12990         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
12991         (main_tree_if_conversion): Update call to tree_if_conversion.
12993 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12995         PR 42485
12996         * doc/invoke.texi (-b,-V): Delete.
12997         * doc/tm.texi: Do not mention -b.
12998         * gcc.c (display_help): Delete -b and -V.
12999         (process_command): Delete -b and -V.
13000         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13002 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
13003             Wolfgang Gellerich  <gellerich@de.ibm.com>
13005         Implement target hook for loop unrolling
13006         * target.h (loop_unroll_adjust): Add a new target hook function.
13007         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13008         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13009         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13010         (s390_loop_unroll_adjust): Implement the new target hook for s390.
13011         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13012         target hook.
13013         (decide_unroll_stupid): Likewise.
13015 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13017         PR target/43643
13018         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13020 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13022         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13023         (Specific, *-*-solaris2*): Likewise.
13024         Don't prefer Sun as over GNU as.
13026 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
13028         * config/s390/s390.c (override_options): Adjust the z10 defaults
13029         for max-unroll-times, max-completely-peeled-insns
13030         and max-completely-peel-times.
13032 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13034         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13035         instructions for z10.
13036         (s390_expand_setmem): Likewise.
13037         (s390_expand_cmpmem): Likewise.
13039 2010-04-08  Richard Guenther  <rguenther@suse.de>
13041         PR tree-optimization/43679
13042         * tree-ssa-pre.c (eliminate): Only propagate copies.
13044 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13046         PR bootstrap/43681
13047         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13048         set but not used variable warning.
13050 2010-04-08  Wei Guozhi  <carrot@google.com>
13052         PR target/41653
13053         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13054         (arm_size_rtx_costs): Call the new function when optimized for size.
13056 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13058         PR debug/43670
13059         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13060         op0 is not a MEM, just return NULL instead of assertion
13061         failure.
13062         (discover_nonconstant_array_refs): Don't walk debug stmts.
13064 2010-04-08  Doug Kwan  <dougkwan@google.com>
13066         * configure.ac: Recognize gold and do not use its version number
13067         to test ld features.
13068         * configure: Regenerate.
13070 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
13072         PR middle-end/40815
13073         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13074         (negate_value): Move code to push elements to broken_up_substracts ...
13075         (eliminate_plus_minus_pair): ... here.  Push operands that have no
13076         negative pair to plus_negates.
13077         (repropagate_negates, init_reassoc, fini_reassoc): Update.
13079 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13081         * doc/install.texi (Configuration): Move description of
13082         --enable-lto, --with-libelf*, --enable-gold from Java section to
13083         general section.
13085         * doc/generic.texi (Working with declarations)
13086         (Function Properties, C and C++ Trees): Fix typos.
13087         * doc/sourcebuild.texi (Top Level): Likewise.
13089 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13091         PR c/18624
13092         * tree.h (DECL_READ_P): Define.
13093         (struct tree_decl_common): Add decl_read_flag.
13094         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13095         a set but not used warning.
13096         (merge_decls): Merge DECL_READ_P flag.
13097         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13098         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13099         * c-common.c (handle_used_attribute, handle_unused_attribute):
13100         Likewise.
13101         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13102         New prototypes.
13103         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13104         New functions.
13105         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13106         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13107         c_parser_binary_expression, c_parser_cast_expression,
13108         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13109         Call default_function_array_read_conversion instead of
13110         default_function_array_conversion where needed.
13111         (c_parser_unary_expression, c_parser_conditional_expression,
13112         c_parser_postfix_expression_after_primary, c_parser_initelt):
13113         Likewise.  Call mark_exp_read where needed.
13114         (c_parser_statement_after_labels, c_parser_asm_operands,
13115         c_parser_typeof_specifier, c_parser_sizeof_expression,
13116         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13117         where needed.
13118         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13119         New.
13120         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13121         (warn_unused_but_set_parameter): Default to warn_unused
13122         && extra_warnings.
13123         * doc/invoke.texi: Document -Wunused-but-set-variable and
13124         -Wunused-but-set-parameter.
13126         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13127         used count variable.
13128         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13129         when operandN variables aren't used in the body of the expander
13130         or splitter.
13131         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13132         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13133         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13134         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13135         FOR_EACH_IMM_USE_ON_STMT): Likewise.
13136         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13137         * tree.c (PROCESS_ARG): Likewise.
13139 2010-04-07  Simon Baldwin  <simonb@google.com>
13141         * diagnostic.h (diagnostic_override_option_index): New macro to
13142         set a diagnostic's option_index.
13143         * c-tree.h (c_cpp_error): Add warning reason argument.
13144         * opts.c (_warning_as_error_callback): New.
13145         (register_warning_as_error_callback): Store callback for
13146         warnings enabled via enable_warning_as_error.
13147         (enable_warning_as_error): Call callback, minor code tidy.
13148         * opts.h (register_warning_as_error_callback): Declare.
13149         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13150         response to -Werror=.
13151         (c_common_init_options): Register warning_as_error_callback in opts.c.
13152         * common.opt: Add -Wno-cpp option.
13153         * c-common.c (struct reason_option_codes_t): Map cpp warning
13154         reason codes to gcc option indexes.
13155         * (c_option_controlling_cpp_error): New function, lookup the gcc
13156         option index for a cpp warning reason code.
13157         * (c_cpp_error): Add warning reason argument, call
13158         c_option_controlling_cpp_error for diagnostic_override_option_index.
13159         * doc/invoke.texi: Document -Wno-cpp.
13161 2010-04-07  Richard Guenther  <rguenther@suse.de>
13163         * ipa-reference.c (mark_load): Use get_base_address.
13164         (mark_store): Likewise.
13166         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13167         inserting GIMPLE_NOPs into the IL.
13168         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13169         Explicitly strip handled components and indirect references.
13171         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13172         folding address expressions.
13173         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13174         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13175         operand_equal_p to compare decls.
13176         (ptr_deref_may_alias_decl_p): Likewise.
13177         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13178         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13179         Handle reversed comparison ops.
13180         * tree-sra.c (asm_visit_addr): Use get_base_address.
13181         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13182         * ipa-reference.c (mark_address): Use get_base_address.
13184 2010-04-07  Richard Guenther  <rguenther@suse.de>
13186         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13187         Propagate constants everywhere.
13189 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13191         PR debug/43516
13192         * tree.c (MAX_INT_CACHED_PREC): Define.
13193         (nonstandard_integer_type_cache): New array.
13194         (build_nonstandard_integer_type): Cache results for precision
13195         <= MAX_INT_CACHED_PREC.
13197 2010-04-07  Richard Guenther  <rguenther@suse.de>
13199         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13200         -fargument-noalias-global, -fargument-noalias-anything): Remove.
13201         * common.opt: Likewise.
13202         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13203         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13204         (nonoverlapping_memrefs_p): Likewise.
13205         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13206         * opts.c (common_handle_option): Handle OPT_fargument_alias,
13207         OPT_fargument_noalias, OPT_fargument_noalias_anything and
13208         OPT_fargument_noalias_global for backward compatibility.
13210 2010-04-07  Richard Guenther  <rguenther@suse.de>
13212         PR tree-optimization/43270
13213         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13214         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13215         * tree-ssa-pre.c (phi_translate_1): Adjust.
13216         (fully_constant_expression): Split out vn_reference handling to ...
13217         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13218         Fold reads from constant strings.
13219         (vn_reference_lookup): Handle fully constant references.
13220         (vn_reference_lookup_pieces): Likewise.
13221         * Makefile.in (expmed.o-warn): Add -Wno-error.
13223 2010-04-07  Martin Jambor  <mjambor@suse.cz>
13225         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13227 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
13229         PR driver/41594
13230         * gcc.c: Add -static-libstdc++ to list of recognized options.
13232 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13234         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13236 2010-04-07  Richard Guenther  <rguenther@suse.de>
13238         PR middle-end/42617
13239         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13240         bases build simple mem attributes to retain points-to information.
13242 2010-04-07  Richard Guenther  <rguenther@suse.de>
13244         PR middle-end/42617
13245         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13246         preserve points-to related information.
13248 2010-04-07  Richard Guenther  <rguenther@suse.de>
13250         PR middle-end/42617
13251         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13252         discard plain indirect references.
13253         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13254         * tree.c (tree_nop_conversion): Likewise.
13256 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
13258         PR debug/43628
13259         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13261 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
13263         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13264         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13266 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13268         * tree-if-conv.c: Fix indentation and comments.
13270 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13272         * tree-if-conv.c: Sort static functions in topological order.
13274 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13276         * tree-if-conv.c: Fix indentation and comments.
13278 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13280         PR middle-end/43519
13281         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13282         lang_hooks.types.type_for_size instead of
13283         build_nonstandard_integer_type.
13284         When converting an unsigned type to signed, double its precision.
13285         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13286         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13287         (graphite_create_new_loop_guard): When ub + 1 wraps around,
13288         use lb <= ub.
13290 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13292         PR middle-end/43519
13293         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13294         POINTER_PLUS_EXPR for pointer types.
13296 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13298         PR middle-end/43519
13299         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13300         * graphite-clast-to-gimple.c: Include langhooks.h.
13301         (max_signed_precision_type): New.
13302         (max_precision_type): Takes two types as arguments.
13303         (precision_for_value): New.
13304         (precision_for_interval): New.
13305         (gcc_type_for_interval): New.
13306         (gcc_type_for_value): New.
13307         (gcc_type_for_clast_term): New.
13308         (gcc_type_for_clast_red): New.
13309         (gcc_type_for_clast_bin): New.
13310         (gcc_type_for_clast_expr): Split up into several functions.
13311         (gcc_type_for_clast_eq): Rewritten.
13312         (compute_bounds_for_level): New.
13313         (compute_type_for_level_1): New.
13314         (compute_type_for_level): New.
13315         (gcc_type_for_cloog_iv): Removed.
13316         (gcc_type_for_iv_of_clast_loop): Rewritten.
13317         (graphite_create_new_loop): Compute the lower and upper bound types
13318         with gcc_type_for_clast_expr.
13319         (graphite_create_new_loop_guard): Same.
13320         (find_cloog_iv_in_expr): Removed.
13321         (compute_cloog_iv_types_1): Removed.
13322         (compute_cloog_iv_types): Removed.
13323         (gloog): Do not call compute_cloog_iv_types.
13324         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13325         GBB_CLOOG_IV_TYPES.
13326         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13327         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13328         (GBB_CLOOG_IV_TYPES): Removed.
13330 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13332         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13333         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13334         (detect_commutative_reduction): Same.
13336 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13338         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13339         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
13340         argument.
13341         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13342         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13343         (rewrite_commutative_reductions_out_of_ssa): Same.
13344         * passes.c (execute_function_todo): Call verify_ssa for every pass
13345         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
13346         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13347         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13348         with an extra argument.
13349         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
13350         verify_ssa only when the extra argument is true.
13351         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13352         with an extra argument.
13353         (tree_transform_and_unroll_loop): Same.
13355 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13357         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13358         for all the passes of the LNO having LOOP_CLOSED_SSA.
13359         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13360         * tree-loop-distribution.c (pass_loop_distribution): Same.
13361         * tree-pass.h (TODO_verify_loops): Removed.
13362         * tree-ssa-loop.c (pass_tree_loop_init): Same.
13363         (pass_lim): Same.
13364         (pass_tree_unswitch): Same.
13365         (pass_predcom): Same.
13366         (pass_vectorize): Same.
13367         (pass_linear_transform): Same.
13368         (pass_graphite_transforms): Same.
13369         (pass_iv_canon): Same.
13370         (pass_complete_unroll): Same.
13371         (pass_complete_unrolli): Same.
13372         (pass_parallelize_loops): Same.
13373         (pass_loop_prefetch): Same.
13374         (pass_iv_optimize): Same.
13376 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
13378         PR middle-end/32824
13379         * passes.c (init_optimization_passes): Move pass_lim before
13380         pass_copy_prop and pass_dce_loop.
13382 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13384         PR target/43667
13385         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13386         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13387         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13388         MULTI_* defines for 4 argument vpermil2p* builtins.
13390 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13392         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13393         * config/i386/i386.c (x86_maybe_negate_const_int): New.
13394         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13395         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13396         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13397         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13398         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13399         Use x86_maybe_negate_const_int to output insn mnemonic.
13400         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
13401         check from instruction predicate.  Update comments.
13402         * config/i386/sync.md (sync_add<mode>): Use
13403         x86_maybe_negate_const_int to output insn mnemonic.
13405 2010-04-06  Jan Hubicka  <jh@suse.cz>
13407         PR tree-optimization/42906
13408         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13409         IGNORE_SELF argument.  Set visited_control_parents for fully
13410         processed BBs.
13411         (find_obviously_necessary_stmts): Update call of
13412         mark_control_dependent_edges_necessary.
13413         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
13415 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13417         * config/i386/i386.md: Remove comment about 'e' and 'E'
13418         operand modifier.
13420 2010-04-06  Richard Guenther  <rguenther@suse.de>
13422         PR tree-optimization/43627
13423         * tree-vrp.c (extract_range_from_unary_expr): Widenings
13424         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13425         not varying.
13427 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13429         * BASE-VER: Change to 4.6.0.
13431         PR target/43638
13432         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13433         handling.
13435 2010-04-06  Richard Guenther  <rguenther@suse.de>
13437         PR middle-end/43661
13438         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13440 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13442         * doc/invoke.texi (Optimize Options): Document that LTO
13443         won't remove object access purely due to incompatible
13444         declarations.
13446 2010-04-04  Matthias Klose  <doko@ubuntu.com>
13448         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13449         Initialize variable.
13451 2010-04-03  Richard Guenther  <rguenther@suse.de>
13453         PR middle-end/42509
13454         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13455         require a non-NULL MEM_OFFSET.
13457 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
13459         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13460         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13461         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13462         config/alpha/predicates.md, config/arm/arm.md,
13463         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13464         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13465         config/darwin9.h, config/darwin.c, config/darwin.h,
13466         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13467         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13468         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13469         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13470         config/mips/mips.md, config/mn10300/mn10300.c,
13471         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13472         config/rs6000/aix.h, config/rs6000/dfp.md,
13473         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13474         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13475         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13476         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13477         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13478         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13479         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13480         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13481         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13482         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13483         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13484         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13485         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13486         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13487         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13488         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13489         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13490         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13491         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13492         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13493         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13494         opt-functions.awk, opth-gen.awk, params.def, passes.c,
13495         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13496         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13497         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13498         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13499         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13500         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13501         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13502         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13503         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13504         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13505         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13506         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13507         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13508         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13510 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13512         PR other/43620
13513         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13514         * aclocal.m4: Regenerate.
13516 2010-04-02  Richard Guenther  <rguenther@suse.de>
13518         PR tree-optimization/43629
13519         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13520         if we have seen a constant value.
13522 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
13524         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13526 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
13528         PR target/43469
13529         * arm.c (legitimize_tls_address): Adjust call to
13530         gen_tls_load_dot_plus_four.
13531         (arm_note_pic_base): New function.
13532         (arm_cannot_copy_insn_p): Use it.
13533         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13534         constraint.
13536 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13538         PR bootstrap/43531
13540         Revert:
13541         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13543         * Makefile.in ($(out_object_file)): Depend on
13544         gt-$(basename $(notdir $(out_file))).h.
13546 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
13548         * config.gcc (lm32-*-rtems*): Add t-lm32.
13550 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
13552         * config.gcc: Add lm32-*-rtems*.
13553         * config/lm32/rtems.h: New file.
13555 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
13557         PR target/42609
13558         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13560 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
13562         * dwarf2out.c (output_compilation_unit_header): For
13563         -gdwarf-4 use version 4 instead of version 3.
13564         (output_line_info): For version 4 and above emit additional
13565         maximum ops per insn header field.
13566         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13568         * dwarf2out.c (is_c_family, is_java): Remove.
13569         (lower_bound_default): New function.
13570         (add_bound_info, gen_descr_array_type_die): Use it.
13572 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
13574         PR debug/43325
13575         * dwarf2out.c (gen_variable_die): Allow debug info for variable
13576         re-declaration when it happens in a function.
13578 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
13580         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
13581         (cgraph_remove_function_insertion_hook): Same.
13582         (cgraph_call_function_insertion_hooks): Same.
13584 2010-04-01  Richard Guenther  <rguenther@suse.de>
13586         PR middle-end/43614
13587         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
13588         and TREE_THIS_VOLATILE.
13589         (copy_ref_info): Likewise.
13590         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
13591         * tree.c (build6_stat): Ignore side-effects of all but arg5
13592         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
13593         TARGET_MEM_REF.
13595 2010-04-01  Richard Guenther  <rguenther@suse.de>
13597         PR tree-optimization/43607
13598         * ipa-type-escape.c (check_call): Do not access non-existing
13599         arguments.
13601 2010-04-01  Richard Guenther  <rguenther@suse.de>
13603         PR middle-end/43602
13604         Revert
13605         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13606                     Jack Howarth  <howarth@bromo.med.uc.edu>
13608         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13609         variables TLS.
13611 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13613         * doc/install.texi (Prerequisites): Document libelf usability on
13614         IRIX 5/6 and Solaris 2.
13615         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
13616         Update GNU as, GNU ld requirements.
13617         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
13618         Document Sun Studio compiler download.
13619         Update and simplify as, ld recommendations.
13620         (Specific, *-*-solaris2.7): Note obsoletion, removal.
13622 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13624         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
13625         with_tune_32 to pentium4.
13627 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
13629         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
13631 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13633         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
13634         obsoletion, removal.
13635         Update IDO URL.
13636         Document GNU as requirement.
13637         Update configure requirements.
13638         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
13639         Recomment IRIX 6.5.18+.
13640         Document IDF/IDL requirement.
13641         Document GNU as requirement.
13642         Document GNU ld bootstrap failure.
13643         Remove freeware.sgi.com reference.
13645 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13647         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
13648         UNIX V4.0, V5.0 obsoletion, removal.
13649         Remove --with-gc=simple reference.
13650         Update VM requirements during bootstrap.
13651         Remove -oldas bootstrap description.
13652         Update binutils reference.
13653         Remove comparison failure note.
13655 2010-03-31  Richard Guenther  <rguenther@suse.de>
13656             Zdenek Dvorak  <ook@ucw.cz>
13657             Sebastian Pop  <sebastian.pop@amd.com>
13659         PR middle-end/43464
13660         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
13661         with multiple arguments.
13662         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
13664 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13666         * graphite-dependences.c (print_pddr): Call print_pdr with an
13667         extra argument.
13668         * graphite-poly.c (debug_pdr): Add an extra argument for the
13669         verbosity level.
13670         (print_pdr): Same.
13671         (print_pbb_domain): Same.
13672         (print_pbb): Same.
13673         (print_scop_context): Same.
13674         (print_scop): Same.
13675         (print_cloog): Same.
13676         (debug_pbb_domain): Same.
13677         (debug_pbb): Same.
13678         (print_pdrs): Same.
13679         (debug_pdrs): Same.
13680         (debug_scop_context): Same.
13681         (debug_scop): Same.
13682         (debug_cloog): Same.
13683         (print_scop_params): Same.
13684         (debug_scop_params): Same.
13685         (print_iteration_domain): Same.
13686         (print_iteration_domains): Same.
13687         (debug_iteration_domain): Same.
13688         (debug_iteration_domains): Same.
13689         (print_scattering_function): Same.
13690         (print_scattering_functions): Same.
13691         (debug_scattering_function): Same.
13692         (debug_scattering_functions): Same.
13693         * graphite-poly.h (debug_pdr): Update declaration.
13694         (print_pdr): Same.
13695         (print_pbb_domain): Same.
13696         (print_pbb): Same.
13697         (print_scop_context): Same.
13698         (print_scop): Same.
13699         (print_cloog): Same.
13700         (debug_pbb_domain): Same.
13701         (debug_pbb): Same.
13702         (print_pdrs): Same.
13703         (debug_pdrs): Same.
13704         (debug_scop_context): Same.
13705         (debug_scop): Same.
13706         (debug_cloog): Same.
13707         (print_scop_params): Same.
13708         (debug_scop_params): Same.
13709         (print_iteration_domain): Same.
13710         (print_iteration_domains): Same.
13711         (debug_iteration_domain): Same.
13712         (debug_iteration_domains): Same.
13713         (print_scattering_function): Same.
13714         (print_scattering_functions): Same.
13715         (debug_scattering_function): Same.
13716         (debug_scattering_functions): Same.
13718 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13720         * graphite-poly.c (print_scattering_function_1): New.
13721         (print_scattering_function): Call it.
13722         (print_scop_params): Remove spaces at the end of lines.
13723         (print_cloog): New.
13724         (debug_cloog): New.
13725         * graphite-poly.h (print_cloog): Declared.
13726         (debug_cloog): Declared.
13728 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13730         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
13731         in loop->header.
13732         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
13733         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
13734         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
13735         to switch between adding the IV bump in loop->latch or in loop->header.
13737 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13739         * graphite-poly.c (print_scattering_function): Pretty print following
13740         the scoplib format.
13741         (print_pdr): Same.
13742         (print_pbb_domain): Same.
13743         (dump_gbb_cases): Same.
13744         (dump_gbb_conditions): Same.
13745         (print_pdrs): Same.
13746         (print_pbb): Same.
13747         (print_scop_params): Same.
13748         (print_scop_context): Same.
13749         (print_scop): Same.
13750         (print_pbb_body): New.
13751         (lst_indent_to): New.
13752         (print_lst): Start new lines with a #.
13753         * graphite-poly.h (pbb_bb): New.
13754         (pbb_index): Use pbb_bb.
13755         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
13756         disjuncts.
13757         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
13759 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13761         * dwarf2out.c (size_of_die): For -gdwarf-4 use
13762         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
13763         and 0 instead of 1 for dw_val_class_flag.
13764         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
13765         dw_val_class_range_list, dw_val_class_loc_list,
13766         dw_val_class_lineptr and dw_val_class_macptr, use
13767         DW_FORM_flag_present for dw_val_class_flag and
13768         DW_FORM_exprloc for dw_val_class_loc.
13769         (output_die): For -gdwarf-4 print dw_val_class_loc
13770         size as uleb128 instead of 1 or 2 bytes and don't print
13771         anything for dw_val_class_flag.
13773         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
13774         instead of cselib_lookup following by tweaking locs->setting_insn.
13776         PR bootstrap/43596
13777         * cselib.c (cselib_process_insn): Clear cselib_current_insn
13778         even before returning from label, setjmp call or volatile asm
13779         handling.
13781 2010-03-31  Richard Guenther  <rguenther@suse.de>
13783         PR middle-end/43600
13784         * cgraphunit.c (cgraph_output_in_order): Do not allocate
13785         temporary data on stack.
13787 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13789         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
13790         (PUSHSECTION_ASM_OP): Remove.
13791         (POPSECTION_ASM_OP): Remove.
13792         (PUSHSECTION_FORMAT): Remove.
13793         * config/sol2.h (PUSHSECTION_FORMAT): Define.
13794         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
13795         * config/sol2.c (solaris_output_init_fini): Use it.
13797 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13799         PR 43574
13800         * opt-functions.awk (var_type_struct): Use signed char type
13801         for simple variables.
13803 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13805         * config/sol2.c: Include output.h.
13806         (solaris_assemble_visibility): New function.
13807         * config/t-sol2 (sol2.o): Add output.h dependency.
13808         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13809         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13810         Redefine.
13812 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13814         PR target/43580
13815         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13816         V2SImode or XFmode on PRE_DEC.
13818         PR debug/43557
13819         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13820         BLKmode.
13822 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13824         PR 43562
13825         * reload.h (caller_save_initialized_p): Declare.
13826         * toplev.c (backend_init_target): Don't call
13827         init_caller_save but set caller_save_initialized_p to false.
13828         * caller-save.c (caller_save_initialized_p): Define.
13829         (init_caller_save): Check caller_save_initialized_p.
13830         * ira.c (ira): Call init_caller_save if flag_caller_saves.
13832 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13834         PR target/39048
13835         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13836         and soft-fp/t-softfp to tmake_file.
13837         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13838         (LIBGCC2_TF_CEXT): Define.
13839         (TF_SIZE): Define.
13841 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
13843         PR debug/42977
13844         * cselib.c (n_useless_values): Document handling of debug locs.
13845         (n_useless_debug_values, n_debug_values): New variables.
13846         (new_elt_loc_list): Don't add to debug values, keep count.
13847         (promote_debug_loc): New.
13848         (cselib_reset_table): Zero new variables.
13849         (entry_and_rtx_equal_p): Promote debug locs.
13850         (discard_useless_locs): Increment n_useless_debug_values for
13851         debug values.
13852         (remove_useless_values): Adjust n_useless_values and n_debug_values
13853         with n_useless_debug_values.
13854         (add_mem_for_addr): Promote debug locs.
13855         (cselib_lookup_mem): Likewise.
13856         (cselib_lookup_addr): Renamed to...
13857         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
13858         (cselib_log_lookup): ... this.  Turn into...
13859         (cselib_lookup_addr): ... new wrapper.
13860         (cselib_lookup_from_insn): New.
13861         (cselib_invalidate_regno): Increment n_useless_debug_values for
13862         debug values.
13863         (cselib_invalidate_mem): Likewise.
13864         (cselib_process_insn): Take n_deleted and n_debug_values into
13865         account to guard remove_useless_value call.
13866         (cselib_finish): Zero n_useless_debug_values.
13867         * cselib.h (cselib_lookup_from_insn): Declare.
13868         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13869         (sched_analyze_2): Likewise.
13871 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
13873         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
13874         functions.
13875         (adjust_mems): Replace narrowing SUBREG of expression containing
13876         just PLUS, MINUS, MULT and ASHIFT of registers and constants
13877         with operations in the narrower mode.
13879         PR debug/43593
13880         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
13881         regs_invalidated_by_call instead all call_used_reg_set registers.
13883 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
13885         PR middle-end/43430
13886         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
13887         pointer comparisons with types_compatible_p.
13888         * tree-vect-stmts.c (vectorizable_call): Same.
13889         (vectorizable_condition): Same.
13891 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13893         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
13894         stack check if the mask would be zero.
13896 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13897             Jack Howarth  <howarth@bromo.med.uc.edu>
13899         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13900         variables TLS.
13902 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
13904         PR other/25232
13905         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
13906         and __unordtf2.
13907         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
13908         Include ___unordxf2 and ___unordtf2.
13909         * config/i386/libgcc-glibc.ver: Do not define inheritance from
13910         GCC_4.4.0 here.
13912 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
13914         * config/lm32/t-lm32: New file.
13915         * config.gcc: Use the above file when targetting lm32.
13917 2010-03-28  Duncan Sands  <baldrick@free.fr>
13919         * Makefile.in (PLUGIN_HEADERS): Add except.h.
13921 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13923         PR middle-end/43431
13924         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13925         Improve vectorization cost model diagnostic.
13927 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13929         PR middle-end/43436
13930         * tree-vect-data-refs.c (vect_analyze_data_refs): When
13931         compute_data_dependences_for_loop returns false, early exit
13932         and output an extra diagnostic for the failed data reference
13933         analysis.
13935 2010-03-29  Richard Guenther  <rguenther@suse.de>
13937         PR tree-optimization/43560
13938         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
13939         (can_sm_ref_p): Treat stores to readonly locations as trapping.
13941 2010-03-29  Jie Zhang  <jie@codesourcery.com>
13943         PR 43564
13944         * toplev.c (process_options): Set optimization_default_node
13945         and optimization_current_node.
13946         * opts.c (decode_options): Don't set optimization_default_node
13947         and optimization_current_node.
13949 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
13951         * config/rtems.h: Abandon -qrtems_debug.
13953 2010-03-28  Jan Hubicka  <jh@suse.cz>
13955         PR tree-optimization/43505
13956         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
13957         map should not be copied.
13959 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13961         PR middle-end/41674
13962         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
13963         cdtors, set DECL_PRESERVE_P.
13964         * ipa.c (cgraph_externally_visible_p): Return true if declaration
13965         should be preseved.
13967 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
13969         PR tree-optimization/43528
13970         * stor-layout.c (place_field): Check that constant fits into
13971         unsigned HWI when skipping calculation of MS bitfield layout.
13973 2010-03-27  Jan Hubicka  <jh@suse.cz>
13975         PR middle-end/43391
13976         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
13977         notice_global_symbol work.
13979 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
13981         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
13982         instead of dwarf2out_decl.
13983         (struct var_loc_node): Remove section_label field.
13984         (dwarf2out_function_decl): New function.
13985         (dwarf2out_var_location): Don't set section_label field.
13986         (dwarf2out_begin_function): Don't empty decl_loc_table here.
13988 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13990         PR tree-optimization/43544
13991         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13992         First argument for builtin vectorized function hook is now a
13993         tree to be able to distinguish between machine specific and
13994         standard builtins.
13995         * targhooks.c (default_builtin_vectorized_function): Ditto.
13996         * targhooks.h (default_builtin_vectorized_function): Ditto.
13997         * target.h (struct gcc_target): Ditto.
13998         * tree-vect-stmts.c (vectorizable_function): Ditto.
13999         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14000         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14001         Ditto.
14003 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
14005         PR c/43381
14006         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14007         nested binding iff it is a FUNCTION_DECL.
14008         (store_parm_decls_newstyle): Pass nested=true to bind for
14009         FUNCTION_DECLs amongst parameters.
14011 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14013         * var-tracking.c (vt_expand_loc_callback): Don't run
14014         cselib_expand_value_rtx_cb in dummy mode if
14015         cselib_dummy_expand_value_rtx_cb returned false.
14017         * var-tracking.c (emit_note_insn_var_location): For one part
14018         notes with offset 0, don't add EXPR_LIST around the location.
14019         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14020         add_location_or_const_value_attribute): Adjust for that change.
14022         PR debug/43540
14023         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14024         into first operand and location into second.
14025         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14026         dw_cfi_oprnd_loc for DW_CFA_expression.
14027         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14028         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14029         assume first argument is regnum and second argument is location.
14031 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14033         PR target/42113
14034         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14035         of scratch register to DImode.  Split to DImode comparison operator.
14036         Use SImode subreg of scratch register in the multiplication.
14037         (*cmp_sadd_sidi): Ditto.
14038         (*cmp_ssub_si): Ditto.
14039         (*cmp_ssub_sidi): Ditto.
14041 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14043         PR target/43524
14044         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14045         Remove invalid assert and wrong comment.
14047 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14049         PR debug/43516
14050         * flags.h (final_insns_dump_p): New extern.
14051         * final.c (final_insns_dump_p): New variable.
14052         (rest_of_clean_state): Set it before -fdump-final-insns=
14053         dumping, clear afterwards.
14054         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14055         MEM_ALIAS_SET on MEMs.
14057 2010-03-26  David S. Miller  <davem@davemloft.net>
14059         * configure.ac: Fix sparc GOTDATA_OP bug check.
14060         * configure: Rebuild.
14062 2010-03-26  Alan Modra  <amodra@gmail.com>
14064         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14066 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14068         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14069         TLS_SECTION_ASM_FLAG.
14071 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
14073         PR bootstrap/43511
14074         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14075         Clear first_function_block_is_cold.
14077         PR c/43385
14078         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14079         argument if the argument is truth_value_p.
14081 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14083         * config/rs6000/constraints.md: Update copyright year for my changes.
14085         PR target/43484
14086         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14087         used in reg+reg addressing, swap registers.
14089 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14091         PR debug/43293
14092         * target.h (struct gcc_target): Add code_end hook.
14093         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14094         if not yet defined.
14095         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14096         * toplev.c (compile_file): Call targetm.asm_out.code_end
14097         hook before unwind info/debug info output.
14098         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14099         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14100         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14101         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14102         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14103         * config/i386/i386.c (ix86_file_end): Renamed to...
14104         (ix86_code_end): ... this.  Make static.  Don't call
14105         file_end_indicate_exec_stack.  Emit unwind info using
14106         final_start_function/final_end_function.
14107         (darwin_x86_file_end): Remove.
14108         (TARGET_ASM_CODE_END): Define.
14109         * config/i386/i386.h (TARGET_ASM_FILE_END,
14110         NEED_INDICATE_EXEC_STACK): Don't define.
14111         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14112         (TARGET_ASM_FILE_END): Define to darwin_file_end.
14113         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14114         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14116         PR target/43498
14117         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14118         at the beginning and final_end_function at the end.
14119         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14121 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14123         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14124         and Sun as TLS syntax.
14125         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14126         * configure: Regenerate.
14127         * config.in: Regenerate.
14128         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14129         (default_elf_asm_named_section): Use it.
14130         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14131         (i386_output_dwarf_dtprel): Likewise.
14132         (output_addr_const_extra): Likewise.
14133         (output_pic_addr_const): Lowercase @GOTTPOFF.
14134         (output_addr_const_extra): Likewise.
14135         (output_pic_addr_const): Lowercase @GOTNTPOFF.
14136         (output_addr_const_extra): Likewise.
14137         (output_pic_addr_const): Lowercase @INDNTPOFF.
14138         (output_addr_const_extra): Likewise.
14139         (output_pic_addr_const): Lowercase @NTPOFF.
14140         (output_addr_const_extra): Likewise.
14141         (output_pic_addr_const): Lowercase @TPOFF.
14142         (output_addr_const_extra): Likewise.
14143         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14144         (*tls_global_dynamic_64): Likewise.
14145         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14146         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14148         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14149         (ASM_OUTPUT_TLS_COMMON): Use it.
14150         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14152         PR target/38118
14153         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14154         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14155         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14156         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14157         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14158         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14160 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14162         * config/i386/i386.c (override_options): Don't accept
14163         -mtls-dialect=sun any longer.
14164         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14165         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14166         (*tls_local_dynamic_base_32_sun): Likewise.
14167         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14169 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14171         PR debug/43508
14172         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14173         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14175         PR debug/43479
14176         * ira.c (adjust_cleared_regs): New function.
14177         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14179         PR debug/19192
14180         PR debug/43479
14181         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14182         from gimple_block.
14183         * expr.c (expand_expr_real): Restore previous
14184         curr_insn_source_location and curr_insn_block after
14185         expand_expr_real_1 call.
14186         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14187         instead of expand_expr_real_1.
14189 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
14191         PR rtl-optimization/43413
14192         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14193         hard regs too.
14195 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
14197         PR target/43348
14198         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14199         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14201 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14203         * config/i386/i386.c (ix86_target_string): Add -mfma.
14204         Fix a typo in comment.
14206 2010-03-22  Mike Stump  <mikestump@comcast.net>
14208         PR target/23071
14209         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14210         Don't overly align based upon packed packed fields.
14212 2010-03-22  Jason Merrill  <jason@redhat.com>
14214         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14215         Use () rather than [], and move before the element type.
14217 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14219         * doc/configfiles.texi (Configuration Files): Removed
14220         fixinc/Makefile*, intl/Makefile.*.
14221         * doc/makefile.texi: Fixed markup. Abstract from version
14222         control system used.
14223         (Makefile): Removed obsolete gcc/java/parse.y example.
14224         * doc/sourcebuild.texi: Likewise.
14225         (Top Level): Added config, gnattools, libdecnumber, libgcc,
14226         libgomp, libssp.  Removed fastjar.
14227         (Miscellaneous Docs): Clarify location.
14228         Added COPYING3, COPYING3.LIB.
14229         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14231 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14233         PR target/38085
14234         * config/i386/i386.c (x86_function_profiler)
14235         [!NO_PROFILE_COUNTERS]: Fix typo.
14236         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14237         instead of callq.
14239 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
14240             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14242         * doc/sourcebuild.texi (Test Directives): Split into six
14243         subsections, with most of the current text in new subsections
14244         Directives, Selectors, and Final Actions.
14245         (Directives): Split list of test directives into multiple
14246         subsubsections.
14247         (Selectors): Describe use and syntax of selectors.
14248         (Effective-Target Keywords): Describe all existing keywords.
14249         (Add Options): Describe features for dg-add-options.
14250         (Require Support): Describe variants of dg-require-support.
14251         (Final Actions): Describe commands to use in dg-final.
14253 2010-03-22  Michael Matz  <matz@suse.de>
14255         PR middle-end/43475
14256         * recog.c (validate_replace_rtx_group): Replace also in
14257         REG_EQUAL and REG_EQUIV notes.
14259 2010-03-22  Richard Guenther  <rguenther@suse.de>
14261         PR tree-optimization/43390
14262         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14263         sure vector extracts are type correct.
14265 2010-03-22  Richard Guenther  <rguenther@suse.de>
14267         PR middle-end/40106
14268         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14269         x * sqrt (x) even when optimizing for size if the target
14270         has native support for sqrt.
14272 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
14274         * varasm.c (make_decl_rtl_for_debug): Also clear
14275         flag_mudflap for the duration of make_decl_rtl call.
14277         PR debug/43443
14278         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14279         locs from preserved VALUEs.
14281 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14283         PR middle-end/42718
14284         * pa.md (movmemsi): Set align to one if zero.
14285         (movmemdi): Likewise.
14287 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
14289         PR target/42321
14290         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14291         with their corresponding prologue pushes.
14293 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
14295         PR target/43156
14296         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14297         at the begining or end.
14298         (spu_expand_epilogue): Likewise.
14300 2010-03-20  Richard Guenther  <rguenther@suse.de>
14302         PR rtl-optimization/43438
14303         * combine.c (make_extraction): Properly zero-/sign-extend an
14304         extraction of the low part of a CONST_INT.  Also handle
14305         CONST_DOUBLE.
14307 2010-03-19  Mike Stump  <mikestump@comcast.net>
14309         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14310         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14311         (override_options): Use SUBTARGET32_DEFAULT_CPU.
14313 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14315         PR c/43211
14316         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14317         an error.
14319 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
14321         PR rtl-optimization/42258
14322         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14323         use that may match DEF.
14325         PR target/40697
14326         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14327         the cost of loading the constant rather than assuming
14328         COSTS_N_INSNS (1).
14329         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14330         outer code is AND, do the same tests as the andsi3 expander and
14331         return COSTS_N_INSNS (1) if and is cheap.
14333         * optabs.c (avoid_expensive_constant): Fix formatting.
14335 2010-03-19  Michael Matz  <matz@suse.de>
14337         PR c++/43116
14338         * attribs.c (decl_attributes): When rebuilding a function pointer
14339         type use the same qualifiers as the original pointer type.
14341 2010-03-19  Martin Jambor  <mjambor@suse.cz>
14343         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14344         and is_gimple_ip_invariant_address.
14346 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14348         Revert
14349         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14351         * config/arm/arm.c (arm_override_options): Turn off
14352         flag_dwarf2_cfi_asm for AAPCS variants.
14354 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14356         PR target/43399
14357         * config/arm/arm.c (emit_multi_reg_push): Update comments.
14358         Use PRE_MODIFY instead of PRE_DEC.
14359         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14360         (vfp_emit_fstmd): Likewise.
14362 2010-03-19  Michael Matz  <matz@suse.de>
14364         PR target/43305
14365         * builtins.c (expand_builtin_interclass_mathfn,
14366         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14367         if that fails.
14369 2010-03-19  Richard Guenther  <rguenther@suse.de>
14371         PR tree-optimization/43415
14372         * tree-ssa-pre.c (phi_translate): Split out worker to ...
14373         (phi_translate_1): ... this.
14374         (phi_translate): Move all caching here.  Cache all NARY
14375         and REFERENCE translations.
14377 2010-03-19  David S. Miller  <davem@davemloft.net>
14379         With help from Eric Botcazou.
14380         * config/sparc/sparc.c: Include dwarf2out.h.
14381         (emit_pic_helper): Delete.
14382         (pic_helper_symbol_name): Delete.
14383         (pic_helper_emitted_p): Delete.
14384         (pic_helper_needed): New.
14385         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14386         (get_pc_thunk_name): New.
14387         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
14388         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14389         Set pic_helper_needed to true.  Don't call emit_pic_helper.
14390         (sparc_expand_prologue): Update load_pic_register call.
14391         (sparc_output_mi_thunk): Likewise.
14392         (sparc_file_end): Emit a hidden comdat symbol for the PIC
14393         thunk if possible.  Output CFI information as needed.
14395 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14396             Jack Howarth  <howarth@bromo.med.uc.edu>
14398         PR target/36399
14399         * config/i386/i386.h: Fix ABI on darwin x86-32.
14401 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
14403         * tree.h: Declare make_decl_rtl_for_debug.
14404         * varasm.c (make_decl_rtl_for_debug): New.
14405         * dwarf2out.c (rtl_for_decl_location): Call it.
14406         * cfgexpand.c (expand_debug_expr): Call it.
14408 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14410         PR bootstrap/43399
14411         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14412         mem_mode.
14414         PR bootstrap/43403
14415         * var-tracking.c (vt_init_cfa_base): Do nothing if
14416         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14418 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
14420         PR debug/42873
14421         * var-tracking.c (canonicalize_vars_star): New.
14422         (dataflow_post_merge_adjust): Use it.
14424 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14426         PR debug/43058
14427         * var-tracking.c (non_suitable_const): New function.
14428         (add_uses): For DEBUG_INSNs with constants, don't record any
14429         value, instead just the constant value itself.
14430         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14431         is not VAR_LOC_UNKNOWN_P, set var to the constant.
14432         (emit_notes_in_bb): Likewise.
14433         (emit_note_insn_var_location): For onepart variables if
14434         cur_loc is a VOIDmode constant, use DECL_MODE.
14436 2010-03-18  Martin Jambor  <mjambor@suse.cz>
14438         PR middle-end/42450
14439         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14440         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14441         all non-clones.  Moved call redirection...
14442         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14443         (cgraph_materialize_all_clones): Dispose of all
14444         combined_args_to_skip bitmaps.
14445         (verify_cgraph_node): Do not check for edges pointing to wrong
14446         nodes in inline clones.
14447         * tree-inline.c (copy_bb): Call
14448         cgraph_redirect_edge_call_stmt_to_callee.
14449         * ipa.c (cgraph_remove_unreachable_nodes): Call
14450         cgraph_node_remove_callees even when there are used clones.
14452 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14454         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14456 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14458         PR target/43383
14459         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14460         for 32bit.
14462 2010-03-18  Michael Matz  <matz@suse.de>
14464         PR middle-end/43419
14465         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14466         into sqrt(x) if we need to preserve signed zeros.
14468 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
14469             Eric Botcazou  <ebotcazou@adacore.com>
14471         PR rtl-optimization/43360
14472         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14473         note if we don't know its invariant status.
14475 2010-03-18  Michael Matz  <matz@suse.de>
14477         PR tree-optimization/43402
14478         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14479         PHI chains of ssa names registered for update.
14481 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
14483         PR target/42427
14484         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14485         non-offsettable and pre_modify update addressing.
14486         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14487         and "2" alternatives "#".
14488         (*movdd_softfloat32): Make all alternatives "#";
14489         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14490         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14491         (*movdf_softfloat32): Make all alternatives "#";
14492         (movdi): Use the new DIFD mode iterator to create a common splitter
14493         for movdi, movdf and movdd patterns.
14495 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
14497         * common.opt (dumpdir): Remove redundant tab.
14499 2010-03-17  Martin Jambor  <mjambor@suse.cz>
14501         PR tree-optimization/43347
14502         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14503         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14505 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
14507         PR rtl-optimization/42216
14508         * regrename.c (create_new_chain): New function, broken out from...
14509         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
14510         appending a use to an empty chain.
14511         (build_def_use): Remove previous changes that convert OP_INOUT to
14512         OP_OUT operands; instead detect the case where an OP_INOUT operand
14513         uses a previously untracked register and create an empty chain for it.
14515 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14517         * doc/extend.texi (Function Attributes): Rewrite unfinished
14518         sentence in ms_abi documentation.
14520 2010-03-17  Alan Modra  <amodra@gmail.com>
14522         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14523         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14524         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14525         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14527 2010-03-16  Richard Henderson  <rth@redhat.com>
14529         PR middle-end/43365
14530         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14531         (lower_try_finally): Save and restore eh_seq around the expansion
14532         of the try-finally.
14534 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14536         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14537         statements before splitting block.
14539 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14541         * doc/sourcebuild.texi (Testsuites): Fix markup.
14542         Use pathnames relative to gcc/testsuite.
14543         (Test Directives): Move description of how timeout is determined.
14544         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14545         (C Tests): Correct gcc.misc-tests directory.
14546         Framework tests now live in gcc.test-framework.
14548 2010-03-16  Richard Guenther  <rguenther@suse.de>
14550         PR middle-end/43379
14551         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14552         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14554 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14555             Alexandre Oliva  <aoliva@redhat.com>
14557         PR tree-optimization/42917
14558         * lambda-code.c (remove_iv): Skip debug statements.
14559         (lambda_loopnest_to_gcc_loopnest): Likewise.
14560         (not_interesting_stmt): Debug statements are not interesting.
14562 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
14564         PR debug/43051
14565         PR debug/43092
14566         * cselib.c (cselib_preserve_constants,
14567         cfa_base_preserved_val): New static variables.
14568         (preserve_only_constants): New function.
14569         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14570         clear its REG_VALUES.  If cselib_preserve_constants, don't
14571         empty the whole hash table, but preserve there VALUEs with constants,
14572         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14573         (cselib_preserve_cfa_base_value): New function.
14574         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14575         (cselib_init): Change argument to int bitfield.  Set
14576         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14577         is in it.
14578         (cselib_finish): Clear cselib_preserve_constants and
14579         cfa_base_preserved_val.
14580         * cselib.h (enum cselib_record_what): New enum.
14581         (cselib_init): Change argument to int.
14582         (cselib_preserve_cfa_base_value): New prototype.
14583         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
14584         * dse.c (dse_step1): Likewise.
14585         * cfgcleanup.c (thread_jump): Likewise.
14586         * sched-deps.c (sched_analyze): Likewise.
14587         * gcse.c (local_cprop_pass): Likewise.
14588         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
14589         If FN is non-NULL, call the callback always and whenever it returns
14590         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
14591         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
14592         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
14593         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
14594         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
14595         * var-tracking.c: Include recog.h.
14596         (bb_stack_adjust_offset): Remove.
14597         (vt_stack_adjustments): Don't call it, instead just gather the
14598         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
14599         (adjust_stack_reference): Remove.
14600         (compute_cfa_pointer): New function.
14601         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
14602         (struct adjust_mem_data): New type.
14603         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
14604         functions.
14605         (get_address_mode): New function.
14606         (replace_expr_with_values): Use it.
14607         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
14608         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
14609         (adjust_sets): Remove.
14610         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
14611         Use get_address_mode.
14612         (get_adjusted_src): Remove.
14613         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
14614         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
14615         (add_with_sets): Don't call adjust_sets.
14616         (fp_setter, vt_init_cfa_base): New functions.
14617         (vt_initialize): Change return type to bool.  Move most of pool etc.
14618         initialization to the beginning of the function from end.  Pass
14619         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
14620         If !frame_pointer_needed, call vt_stack_adjustment before mos
14621         vector is filled, call vt_init_cfa_base if argp/framep has been
14622         eliminated to sp.  If frame_pointer_needed and argp/framep has
14623         been eliminated to hard frame pointer, set
14624         hard_frame_pointer_adjustment and call vt_init_cfa_base after
14625         encountering fp setter in the prologue.  For MO_ADJUST, call
14626         log_op_type before pusing the op into mos vector, not afterwards.
14627         Call adjust_insn before cselib_process_insn/add_with_sets,
14628         call cancel_changes (0) afterwards.
14629         (variable_tracking_main_1): Adjust for vt_initialize calling
14630         vt_stack_adjustments and returning whether it succeeded or not.
14632 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
14634         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
14635         debug statements.
14637 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
14639         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
14640         has been set.
14641         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
14642         drap_reg has not been set.
14644 2010-03-15  Michael Matz  <matz@suse.de>
14646         PR middle-end/43300
14647         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
14648         use it to expand block copies.
14649         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14650         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
14651         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
14653 2010-03-15  Richard Guenther  <rguenther@suse.de>
14655         PR tree-optimization/43367
14656         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
14657         elimination check.
14659 2010-03-15  Richard Guenther  <rguenther@suse.de>
14661         PR tree-optimization/43317
14662         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
14664 2010-03-15  Martin Jambor  <mjambor@suse.cz>
14666         PR tree-optimization/43141
14667         * tree-sra.c (create_abstract_origin): New function.
14668         (modify_function): Call create_abstract_origin.
14670 2010-03-15  Chris Demetriou  <cgd@google.com>
14672         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
14673         wasn't copied.
14675 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14677         PR middle-end/43354
14678         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
14679         call insert_out_of_ssa_copy for default definitions.
14681 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14683         * graphite-clast-to-gimple.c (my_long_long): Defined.
14684         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
14685         * graphite-sese-to-poly.c (my_long_long): Defined.
14686         (scop_ivs_can_be_represented): Use it.
14688 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14690         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
14691         graphite-max-bbs-per-function, and loop-block-tile-size.
14692         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
14693         with "maximum".
14694         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
14696 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14698         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
14699         forward declaration.
14700         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
14701         (add_upper_bounds_from_estimated_nit): New.
14702         (build_loop_iteration_domains): Use it.
14704 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14706         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
14708 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14710         PR middle-end/43306
14711         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
14712         should be an INTEGER_CST.  Also handle CASE_CONVERT.
14714 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14716         * graphite.c (graphite_initialize): To bound the number of bbs per
14717         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14718         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
14719         * doc/invoke.texi: Document it.
14721 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14723         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
14724         * graphite-sese-to-poly.h (build_poly_scop): Same.
14726 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14728         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
14729         the number of parameters in the scop.  Use as an upper bound
14730         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
14731         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
14732         * doc/invoke.texi: Document it.
14734 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
14736         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
14737         * doc/c-tree.texi: Remove.
14738         * doc/generic.texi: Merge c-tree.texi here.
14739         * doc/gccint.texi (Trees): Remove menu entry.
14740         (c-tree.texi): Remove @include.
14741         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
14742         * doc/languages.texi (Reading RTL): Ditto.
14744 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
14746         PR target/42869
14747         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
14749 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14751         PR middle-end/42431
14752         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
14753         code added to work around reload clobbering CONST insns.
14755 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
14757         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
14758         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
14759         (cselib_preserve_only_values): Remove retain argument, don't
14760         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
14761         * cselib.h (cselib_preserve_only_values): Remove retain argument.
14762         * var-tracking.c (micro_operation): Move insn field before union.
14763         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
14764         (struct variable_tracking_info_def): Remove n_mos field, change
14765         mos into a vector of micro_operations.
14766         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
14767         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
14768         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
14769         changing into a vector.
14770         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
14771         come before all other uops generated by add_stores.
14772         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
14773         argument removal.
14774         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
14775         a vector.  Run just one pass over the bbs instead of separate counting
14776         and computation phase.
14777         (vt_finalize): Free VTI (bb)->mos vector instead of array.
14779         PR debug/43329
14780         * tree-inline.c (remap_decls): Put old_var rather than origin_var
14781         into *nonlocalized_list vector.
14782         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
14783         even if origin is non-NULL.
14784         (gen_variable_die): Likewise.
14785         (process_scope_var): Don't change origin.
14786         (gen_decl_die): Likewise.
14787         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
14788         before adding new edges instead of after it, fix moving over
14789         debug stmts.
14791 2010-03-11  David S. Miller  <davem@davemloft.net>
14793         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
14794         of four.
14795         * configure: Rebuild.
14797 2010-03-11  Martin Jambor  <mjambor@suse.cz>
14799         PR tree-optimization/43257
14800         * tree.c (assign_assembler_name_if_neeeded): New function.
14801         (free_lang_data_in_cgraph): Assembler name assignment moved to the
14802         above new function.
14803         * tree.h (assign_assembler_name_if_neeeded): Declare.
14804         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14805         the function if needed.
14807 2010-03-11  Chris Demetriou  <cgd@google.com>
14809         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14810         include/stdint-gcc.h, and include/stdint.h world-readable.
14812 2010-03-11  Richard Guenther  <rguenther@suse.de>
14814         PR tree-optimization/43255
14815         * tree-vrp.c (process_assert_insertions_for): Do not insert
14816         asserts for trivial conditions.
14818 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14820         PR tree-optimization/43280
14821         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14822         generation.  Move calculation of size out of the if branch.
14823         (find_bswap): Modify compare number generation.
14825 2010-03-11  Richard Guenther  <rguenther@suse.de>
14827         PR lto/43200
14828         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14829         (input_gimple_stmt): Fixup handled component types during
14830         operand read.  Also fix up decls in ADDR_EXPRs.
14832 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
14834         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14835         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14837 2010-03-10  Jan Hubicka  <jh@suse.cz>
14839         PR c/43288
14840         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14841         * varasm.c (get_variable_section): Don't do that here...
14842         (make_decl_rtl): ... and here.
14843         (do_assemble_alias): Produce decl RTL.
14844         (assemble_alias): Likewise.
14846 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14848         PR debug/43290
14849         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14850         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14851         of fde->vdrap_reg.
14852         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14853         (based_loc_descr): Only express drap or vdrap regno based expressions
14854         using DW_OP_fbreg when not optimizing.
14855         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14856         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14857         REG_CFA_SET_VDRAP note.
14859 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
14861         PR tree-optimization/43236
14862         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14863         error in calculation of base address in reverse iteration case.
14864         (generate_builtin): Take number of latch executions if the statement
14865         is in the latch.
14867 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
14869         PR middle-end/42859
14870         * tree-eh.c: Include pointer-set.h.
14871         (lower_eh_dispatch): Filter out duplicate case labels and
14872         remove the unneeded edge when the label is unused.  Return
14873         true when some edges are removed.
14874         (execute_lower_eh_dispatch): When any lowering resulted in
14875         removing an edge, also delete unreachable blocks.
14877 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14879         PR bootstrap/43287
14880         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14881         UNSPEC_MACHOPIC_OFFSET.
14883 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
14885         PR target/43294
14886         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
14887         (m68k_delegitimize_address): New function.
14889 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
14891         PR debug/43299
14892         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
14894         PR debug/43299
14895         * var-tracking.c (adjust_sets): New function.
14896         (count_with_sets, add_with_sets): Use it.
14897         (get_adjusted_src): New inline function.
14898         (add_stores): Use it.
14900         PR debug/43304
14901         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
14902         call cselib_dummy_expand_value_rtx_cb instead of
14903         cselib_expand_value_rtx_cb.
14905         PR debug/43293
14906         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
14907         * config/i386/i386.c: Include debug.h and dwarf2out.h.
14908         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
14909         and .cfi_endproc around the pic thunks.
14910         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
14911         all queued unwind info register saves are saved before the call.
14912         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
14913         considered as sp-=4 for unwind info and the pop as sp+=4 which
14914         also clobbers dest, but doesn't actually restore it.
14916         PR debug/43290
14917         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
14918         RTX_FRAME_RELATED_P.
14920 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14922         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
14923         whitespaces in output template.
14925 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14927         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
14928         out array boundary.
14930 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14932         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
14933         builtins.exp in a separate job.
14935 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14937         * graphite-sese-to-poly.c (add_param_constraints): Use
14938         lower_bound_in_type and upper_bound_in_type.
14940 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14942         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
14943         instead of unsigned_type_node.
14945 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14946             Reza Yazdani  <reza.yazdani@amd.com>
14948         PR middle-end/43065
14949         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
14950         on pointer type parameters.
14952 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14954         PR middle-end/42644
14955         PR middle-end/42130
14956         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
14957         handle conversions from pointer to integers.
14958         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
14959         induction variable, to be able to work with code generated by CLooG.
14960         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
14961         (build_poly_scop): Bail out if we cannot codegen a loop.
14963 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14965         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
14966         code generation with gloog_error.
14968 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14970         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
14971         Call fold_convert on all the returned values.
14972         (expand_scalar_variables_expr): Pass to
14973         expand_scalar_variables_ssa_name the type of the resulting expression.
14975 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14977         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
14978         ppl_min_for_le_pointset.
14979         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
14980         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
14982 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14984         * graphite-dependences.c (map_into_dep_poly): Removed.
14985         (dependence_polyhedron_1): Use combine_context_id_scat.
14987 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14989         * graphite-poly.h (struct poly_scattering): Add layout documentation.
14990         (struct poly_bb): Same.
14991         (combine_context_id_scat): New.
14993 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14995         PR middle-end/42326
14996         * sese.c (name_defined_in_loop_p): Return false for default
14997         definitions.
14999 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15001         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15002         and clean up the logic.
15004 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15006         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15007         early return.
15009 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15011         * var-tracking.c (remove_cselib_value_chains): Define only for
15012         ENABLE_CHECKING.
15013         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15014         delete_slot_part, emit_notes_for_differences_1): Don't call
15015         remove_cselib_value_chains here.
15016         (set_slot_part, emit_notes_for_differences_2): Don't call
15017         add_cselib_value_chains here.
15018         (preserved_values): New vector.
15019         (preserve_value): New function.
15020         (add_uses, add_stores, vt_add_function_parameters): Use it
15021         instead of cselib_preserve_value.
15022         (changed_values_stack): New vector.
15023         (check_changed_vars_0): New function.
15024         (check_changed_vars_1, check_changed_vars_2): Use it.
15025         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15026         changed_values_stack VALUEs.
15027         (vt_emit_notes): For all preserved_values call
15028         add_cselib_value_chains.  If ENABLE_CHECKING call
15029         remove_cselib_value_chains before verifying value_chains is empty.
15030         Initialize and free changed_values_stack.
15031         (vt_initialize): Initialize preserved_values.
15032         (vt_finalize): Free preserved_values.
15034 2010-03-08  Richard Guenther  <rguenther@suse.de>
15036         PR tree-optimization/43269
15037         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15038         region detection.
15040 2010-03-08  Martin Jambor  <mjambor@suse.cz>
15042         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15043         (ipa_is_param_called): Removed.
15044         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15045         (ipa_print_node_params): Do not print the called flag.
15046         (ipa_write_node_info): Do not stream the called flag.
15047         (ipa_read_node_info): Likewise.
15049 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
15051         PR debug/43176
15052         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15053         * cselib.c (struct expand_value_data): Add dummy field.
15054         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15055         dummy to false.
15056         (cselib_dummy_expand_value_rtx_cb): New function.
15057         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15058         any rtl.
15059         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15060         * var-tracking.c: Include pointer-set.h.
15061         (variable): Change n_var_parts to char from int.  Add
15062         cur_loc_changed and in_changed_variables fields.
15063         (variable_canonicalize): Remove.
15064         (shared_var_p): New inline function.
15065         (unshare_variable): Maintain cur_loc_changed and
15066         in_changed_variables fields.  If var was in changed_variables,
15067         replace it there with new_var.  Just copy cur_loc instead of
15068         resetting it to something else.
15069         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
15070         (dataflow_set_union): Don't call variable_canonicalize.
15071         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15072         of their DEBUG_EXPR_TREE_DECLs.
15073         (canonicalize_loc_order_check): Verify that cur_loc is NULL
15074         and in_changed_variables and cur_loc_changed is false.
15075         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15076         and cur_loc_changed.  Don't update cur_loc here.
15077         (variable_merge_over_src): Don't call variable_canonicalize.
15078         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
15079         removing loc that is equal to cur_loc, clear cur_loc,
15080         set cur_loc_changed and ensure variable_was_changed is called.
15081         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
15082         compare pointers in cur_loc check, if it is equal to loc,
15083         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
15084         (variable_different_p): Remove compare_current_location argument,
15085         don't compare cur_loc.
15086         (dataflow_set_different_1): Adjust variable_different_p caller.
15087         (variable_was_changed): If dv had some var in changed_variables
15088         already, reset in_changed_variables flag for it and propagate
15089         cur_loc_changed over to the new variable.  On empty var
15090         always set cur_loc_changed.  Set in_changed_variables on whatever
15091         var is added to changed_variables.
15092         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15093         Use shared_var_p.  When removing loc that is equal to cur_loc,
15094         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
15095         end, don't set it to something else, just call variable_was_changed.
15096         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
15097         loc being removed, clear cur_loc and set cur_loc_changed.
15098         Set cur_loc_changed if all locations have been removed.
15099         (struct expand_loc_callback_data): New type.
15100         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15101         allocated.  Always create SUBREGs if simplify_subreg failed.
15102         Prefer to use cur_loc, when that fails and still in
15103         changed_variables (and seen first time) recompute it.  Set
15104         cur_loc_changed of variables which had to change cur_loc and
15105         compute elcd->cur_loc_changed if any of the subexpressions used
15106         had to change cur_loc.
15107         (vt_expand_loc): Adjust to pass arguments in
15108         expand_loc_callback_data structure.
15109         (vt_expand_loc_dummy): New function.
15110         (emitted_notes): New variable.
15111         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15112         that weren't used for any other decl in current
15113         emit_notes_for_changes call call vt_expand_loc_dummy to update
15114         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
15115         first loc_chain location if NULL before.  Always use just
15116         cur_loc instead of first loc_chain location.  When cur_loc_changed
15117         is false, when not --enable-checking=rtl just don't emit any note.
15118         When rtl checking, compute the note and assert it is the same
15119         as previous note.  Clear cur_loc_changed and in_changed_variables
15120         at the end before removing from changed_variables.
15121         (check_changed_vars_3): New function.
15122         (emit_notes_for_changes): Traverse changed_vars to call
15123         check_changed_vars_3 on each changed var.
15124         (emit_notes_for_differences_1): Clear cur_loc_changed and
15125         in_changed_variables.  Recompute cur_loc of new_var.
15126         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15127         (vt_emit_notes): Initialize and destroy emitted_notes.
15129 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
15131         PR rtl-optimization/42220
15132         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15133         Use verify_reg_tracked to determine if we should use OP_OUT rather
15134         than OP_INOUT.
15135         (build_def_use): If we see an in-out operand for a register that we
15136         know nothing about, treat is an output if possible, fail the block if
15137         not.
15139 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15141         PR debug/42897
15142         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15143         permanently.
15145 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15147         PR debug/42897
15148         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15149         uses of relevant DEFs that are dead outside the loop too.
15151 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15153         * var-tracking.c (dataflow_set_merge): Swap src and src2.
15154         Reverted:
15155         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
15156         PR debug/41371
15157         * var-tracking.c (values_to_unmark): New variable.
15158         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15159         values_to_unmark vector.  Moved body to...
15160         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
15161         instead queue it into values_to_unmark vector.
15162         (vt_find_locations): Free values_to_unmark vector.
15164 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
15166         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15167         (site.exp): Export them when plugins are enabled.
15169 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
15171         PR middle-end/42326
15172         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15173         that contain scevs.
15174         (chrec_fold_multiply): Same.
15176 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15178         PR c/43248
15179         * c-decl.c (build_compound_literal): Return early if init is
15180         an error_mark_node.
15182 2010-03-04  Martin Jambor  <mjambor@suse.cz>
15184         PR tree-optimization/43164
15185         PR tree-optimization/43191
15186         * tree-sra.c (type_consists_of_records_p): Reject records with
15187         zero-size bit-fields at the end.
15189 2010-03-04  Mike Stump  <mikestump@comcast.net>
15191         * Makefile.in (TAGS): Remove *.y.
15193 2010-03-04  Richard Guenther  <rguenther@suse.de>
15195         PR tree-optimization/40761
15196         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15197         in reverse order.
15198         (my_rev_post_order_compute): New function.
15199         (init_pre): Call it.
15201 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15203         PR middle-end/43209
15204         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15205         decrease the cost of an IV candidate when the cost is infinite.
15207 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15209         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15210         Use '3DNow!' for the extension of that name, ensure normal space
15211         after the string.
15212         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15214 2010-03-03  Jeff Law  <law@redhat.com>
15216         * PR middle-end/32693
15217         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15218         than gen_rtx_SUBREG.
15219         (extract_bit_field_1): Likewise.
15221 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
15223         * doc/sourcebuild.texi (Test directives): Document that arguments
15224         include-opts and exclude-opts are now optional for dg-skip-if,
15225         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15227 2010-03-03  Jason Merrill  <jason@redhat.com>
15229         PR c++/12909
15230         * cgraph.h (varpool_node): Add extra_name field.
15231         * varpool.c (varpool_extra_name_alias): New.
15232         (varpool_assemble_decl): Emit extra name aliases.
15233         (varpool_mark_needed_node): Look past an extra name alias.
15234         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15235         * lto-streamer-in.c (lto_input_tree): Read it.
15236         * lto-streamer-out.c (output_unreferenced_globals): Write it.
15238 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15240         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15241         (sparc*-*-solaris2*): ...this.
15243 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
15245         PR debug/43229
15246         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15247         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
15248         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15249         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15251         PR debug/43237
15252         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15253         fallthrough to default handling, just with want_address 0 instead of 2.
15254         For single element lists, add_AT_loc directly, otherwise create an
15255         artificial variable DIE and stick location list to it.
15257         PR debug/43177
15258         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15259         (VAL_EXPR_HAS_REVERSE): Define.
15260         (reverse_op): New function.
15261         (add_stores): For reversible operations add an extra MO_VAL_USE.
15263 2010-03-02  Jason Merrill  <jason@redhat.com>
15265         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15267 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
15269         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15270         (sparc64-*-linux*): Likewise.
15271         (sparc64-*-solaris2*): Include assembler files before linker ones.
15272         (sparc-*-solaris2*): Simplify and reorder to match previous case.
15273         * config/sparc/gas.h: Delete.
15274         * config/sparc/sol2-64.h: Add copyright notice.
15275         * config/sparc/sol2-gas-bi.h: Likewise.
15276         * config/sparc/sol2-gld.h: Likewise.
15277         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15278         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15279         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15280         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15281         (sparc_elf_asm_named_section): Rename into...
15282         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
15284 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
15286         * config/alpha/alpha.c (override_options): Fix -mtune error message.
15288 2010-03-02  Jeff Law  <law@redhat.com>
15290         PR middle-end/42431
15291         * reload1.c (rtx_p, substitute_stack): Declare.
15292         (substitute): Record addresses of changed rtxs.
15293         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15294         Restore the original rtx when complete.
15295         (reload): Free subsitute_stack when complete.
15297 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
15299         * doc/gccint.texi (menu): Add Testsuites as a chapter.
15300         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15301         new chapter.
15302         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15303         LTO Testing, gcov Testing, profopt Testing, compat Testing,
15304         Torture Tests): Change from subsection to section.
15306 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
15307             Steven Bosscher  <steven@gcc.gnu.org>
15309         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15310         instead of bb.
15312 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
15314         PR middle-end/42640
15315         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15316         the assignment from the new induction variable to the assignment
15317         of the value from the original loop PHI function.
15319 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
15320             Daniel Jacobowitz  <dan@codesourcery.com>
15322         * doc/sourcebuild.texi (Test directives): Clarify options to
15323         dg-skip-if.
15325 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15327         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15328         Disable cfi directives unless GCC and gas agree on using read-only
15329         .eh_frame sections for 64-bit.
15330         * configure: Regenerate.
15332 2010-03-01  Richard Guenther  <rguenther@suse.de>
15334         PR tree-optimization/43220
15335         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15336         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15338 2010-03-01  Richard Guenther  <rguenther@suse.de>
15339             Martin Jambor  <mjambor@suse.cz>
15341         PR middle-end/41250
15342         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15343         gimplified parameters.
15345 2010-03-01  Christian Bruel  <christian.bruel@st.com>
15347         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15349 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
15351         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15353 2010-03-01  Richard Guenther  <rguenther@suse.de>
15355         PR middle-end/43213
15356         * expr.c (expand_assignment): Use the alias-oracle to tell
15357         if the rhs aliases the result decl.
15359 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15361         PR pch/14940
15362         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15363         to sol_gt_pch_get_address.
15364         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15365         64-bit, SPARC and x86.
15366         (sol_gt_pch_get_address): New function.
15368 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
15370         * toplev.h (inform_n, error_n): Declare.
15371         * diagnostic.c (inform_n, error_n): New function.
15373 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
15375         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15376         has no rtl yet when processing local_decls, queue it and recheck
15377         if deferred stack allocation hasn't assigned it rtl.
15379 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15381         * config/sh/sh.c (unspec_bbr_uid): New.
15382         (gen_block_redirect): Use it instead of INSN_UID.
15383         (gen_far_branch): Likewise.
15385 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
15387         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15388         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15390 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15392         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15393         (Warning Options): -Wno-conversion-null is valid for
15394         Objective-C++ as well.
15395         * doc/tm.texi (Named Address Spaces): Likewise.
15396         * doc/plugins.texi (Plugins): Replace TABs with spaces.
15397         * doc/tree-ssa.texi (Tree SSA): Likewise.
15399 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15401         PR bootstrap/43202
15402         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15403         by default.  Don't set the default arch for
15404         i[34567]86-*-darwin*|x86_64-*-darwin*.
15406 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15408         PR bootstrap/43202
15409         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15410         default.  Set the default 32bit/64bit archs with $with_arch
15411         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15413 2010-02-27  Richard Guenther  <rguenther@suse.de>
15415         PR tree-optimization/43186
15416         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15417         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15418         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15419         unroller iterations.
15421 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15423         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15424         required and i[34567]86-*-* targets don't support 64bit ISA.
15426 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
15428         PR ada/43096
15429         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15430         the same alias set.
15432 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15434         * config.gcc: Set the default arch at least to Prescott for
15435         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15436         if SSE math is enabled.
15438 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15440         * diagnostic.c (diagnostic_initialize): Update.
15441         (diagnostic_report_diagnostic): Test inhibit_notes_p for
15442         informative notes.
15443         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15444         (diagnostic_inhibit_notes): New.
15445         * toplev.c (process_options): inhibit notes with -fcompare-debug.
15447 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15449         PR c/20631
15450         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15451         * doc/standards.texi: Likewise.
15452         * doc/extend.texi: Likewise.
15453         * doc/trouble.texi: Likewise.
15454         * doc/cppopts.texi: Likewise.
15455         * doc/install.texi: Likewise.
15456         * c.opt (std=c90,std=gnu90): New options.
15457         * c-opts.c (c_common_handle_option): Handle them.
15459 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15461         PR c/24577
15462         * c-decl.c (undeclared_variable): Use an informative note.
15464 2010-02-26  Richard Guenther  <rguenther@suse.de>
15466         PR tree-optimization/43186
15467         * gimple.h (gimple_fold): Remove.
15468         * gimple.c (gimple_fold): Remove.  Inline into single user ...
15469         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15470         Try harder for conditions.
15472 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15474         PR debug/43190
15475         * function.c (used_types_insert): Don't skip through named pointer
15476         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
15477         and it is different from the main variant's type.
15479 2010-02-26  Nick Clifton  <nickc@redhat.com>
15481         * config/rx/rx.md (sminsi3): Remove bogus alternative.
15483 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15485         * config.gcc: Support --with-fpmath=sse for x86.
15487         * config/i386/ssemath.h: New.
15489         * doc/install.texi (--with-fpmath=sse): Documented.
15491 2010-02-26  Richard Guenther  <rguenther@suse.de>
15493         PR tree-optimization/43188
15494         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15495         vector types of over-aligned element type.
15497 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
15499         PR target/43175
15500         * config/i386/i386.c (expand_vec_perm_blend): Use correct
15501         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
15503 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
15505         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15507 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15509         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15510         * var-tracking.c: Include diagnostic.h.
15511         (debug_dv): New function.
15512         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15514         PR debug/43160
15515         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15516         (add_value_chain, add_value_chains, remove_value_chain,
15517         remove_value_chains): Handle DEBUG_EXPRs.
15518         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15520         PR debug/43161
15521         * regcprop.c (struct queued_debug_insn_change): New type.
15522         (struct value_data_entry): Add debug_insn_changes field.
15523         (struct value_data): Add n_debug_insn_changes field.
15524         (debug_insn_changes_pool): New variable.
15525         (free_debug_insn_changes, apply_debug_insn_changes,
15526         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15527         (kill_value_one_regno): Call free_debug_insn_changes if needed.
15528         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15529         fields.
15530         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15531         changes for them.
15532         (copyprop_hardreg_forward_1): Don't call apply_change_group for
15533         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
15534         changes, call cprop_find_used_regs via note_stores.
15535         (copyprop_hardreg_forward): When copying vd from predecessor
15536         which has any queued DEBUG_INSN changes, make sure the pointers are
15537         cleared.  At the end call df_analyze and then if there are any
15538         DEBUG_INSN changes queued at the end of some basic block for still
15539         live registers, apply them.
15540         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15542 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
15544         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15545         (arm*-*-*): Ditto.
15547 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
15549         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15550         targets.  Set the default with_cpu/with_arch from arch/cpu.
15551         Allow x86-64 and native for with_cpu/with_arch.
15553 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
15555         * ebitmap.c: Change calls to verify_popcount with calls to
15556         sbitmap_verify_popcount.
15557         (ebitmap_clear_bit): Fixed map->cacheindex test and
15558         map>cache update when bit clearing results in an empty
15559         element.
15561 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
15563         PR target/43154
15564         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15565         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15566         and support both V2DF and V2DI modes.
15567         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15568         support both V2DF and V2DI modes.
15569         (general): Delete trailing whitespace from a few patterns.
15571         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15572         V2DF/V2DI interleave high/low builtins.
15574         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15575         new VSX builtins.
15577         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
15578         interleave high/low functions.
15580 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15582         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
15583         #pragma extern_prefix.
15585 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
15587         PR debug/43166
15588         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
15589         BLKmode, assert op0 is a MEM and just adjust its mode.
15591         PR debug/43165
15592         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
15593         if bitpos isn't multiple of mode's bitsize.
15595 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15597         * c.opt (-ftemplate-depth=): New.
15598         (-ftemplate-depth-): Deprecate.
15599         * optc-gen.awk: Handle -ftemplate-depth=.
15600         * opth-gen.awk: Likewise.
15601         * c-opts.c (c_common_handle_option): Likewise.
15602         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
15604 2010-02-24  Jason Merrill  <jason@redhat.com>
15606         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
15608 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15610         * cfg.c (alloc_aux_for_block): Remove inline.
15611         (alloc_aux_for_edge): Likewise.
15613 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15615         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
15617 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15619         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
15620         * config/i386/sol2-gas.h: New file.
15621         * config.gcc (i[34567]86-*-solaris2*): Use it.
15623 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15625         PR c/43128
15626         * c-typeck.c (ep_convert_and_check): New.
15627         (build_conditional_expr): Use it.
15628         (build_binary_op): Likewise.
15630 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
15632         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
15634         PR debug/43150
15635         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
15636         bounds even for -O+.
15637         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
15638         expr needs to have DECL_NAME set.
15640 2010-02-24  Nick Clifton  <nickc@redhat.com>
15642         * config/mep/mep.c: Include gimple.h.
15643         (mep_function_uses_sp): Delete unused function.
15644         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
15645         parameters.  Use unsigned integers to count args.  Return a
15646         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
15648 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15650         PR target/43107
15651         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
15652         greater or equal to nelt instead of 2 * nelt.
15653         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
15654         with nelt - 1.
15656 2010-02-23  Jason Merrill  <jason@redhat.com>
15658         PR debug/42800
15659         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
15660         in cfun->local_decls even if they have register types.
15662         PR c++/42837
15663         * stor-layout.c (place_field): Don't warn about unnecessary
15664         DECL_PACKED if the type is packed.
15666 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15668         PR target/43139
15669         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
15670         GOTOFF relocs, even when the base reg isn't pic pointer.
15672 2010-02-23  Michael Matz  <matz@suse.de>
15674         PR debug/43077
15675         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
15676         (expand_gimple_basic_block): Generate and use debug temps if there
15677         are debug uses left after the last real use of TERed ssa names.
15678         Unlink debug immediate uses when they are expanded.
15680 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15682         PR 43123
15683         * config/i386/i386.c (override_options): Reorganise to provide
15684         better error messages.
15686 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15688         PR middle-end/43083
15689         * graphite-scop-detection.c (create_single_exit_edge): Move
15690         the call to find_single_exit_edge to....
15691         (create_sese_edges): ...here.  Don't handle multiple edges
15692         exiting the function.
15693         (build_graphite_scops): Don't handle multiple edges
15694         exiting the function.
15696 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15698         PR middle-end/43097
15699         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
15700         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
15702 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15704         PR middle-end/43026
15705         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
15707 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15709         PR c++/43126
15710         * c-typeck.c (convert_arguments): Print declaration location.
15711         * c-common.c (validate_nargs): Rename as
15712         builtin_function_validate_nargs.
15713         (check_builtin_function_arguments): Update.
15715 2010-02-22  Richard Guenther  <rguenther@suse.de>
15717         PR lto/43045
15718         * tree-inline.c (declare_return_variable): Use the type of
15719         the call stmt lhs if available.
15721 2010-02-22  Duncan Sands  <baldrick@free.fr>
15723         * passes.c (register_pass): Always consider all pass lists when
15724         ref_pass_instance_number is zero.
15726 2010-02-22  Richard Guenther  <rguenther@suse.de>
15728         PR tree-optimization/42749
15729         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
15730         parameter.  Do arithmetic in the original type.
15731         (update_accumulator_with_ops): Likewise.
15732         (adjust_accumulator_values): Adjust.
15734 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15736         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
15737         (QI to BLKmode splitter): New splitter.
15739 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
15741         * config/i386/i386.c (initial_ix86_tune_features): Turn on
15742         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
15744 2010-02-22  Richard Guenther  <rguenther@suse.de>
15746         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
15748 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
15750         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
15751         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
15752         ($(T)crti.o, $(T)crtn.o): Remove rules.
15754 2010-02-21  Tobias Burnus  <burnus@net-b.de>
15756         PR fortran/35259
15757         * doc/invoke.texi (-fassociative-math): Document that this
15758         option is automatically enabled for Fortran.
15760 2010-02-20  David S. Miller  <davem@davemloft.net>
15762         * configure.ac: Test if linker and assembler properly support
15763         GOTDATA_OP relocations.
15764         * configure: Rebuild.
15765         * config.in: Likewise.
15766         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
15767         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
15768         (movsi_high_pic): Likewise.
15769         (movdi_lo_sum_pic): Likewise.
15770         (movdi_high_pic): Likewise.
15771         (movsi_pic_gotdata_op): New pattern.
15772         (movdi_pic_gotdata_op): Likewise.
15773         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
15774         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
15776 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
15778         PR target/43067
15779         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
15780         attribute to ssemul.
15781         (xop_mulv2div2di3_high): Ditto.
15783 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15785         PR c++/35669
15786         * c.opt (Wconversion-null): New option.
15787         * doc/invoke.texi (Wconversion-null): Document.
15789 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15791         * common.opt (Wlarger-than-): Add Undocumented.
15793 2010-02-19  Mike Stump  <mikestump@comcast.net>
15795         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15797 2010-02-19  Jason Merrill  <jason@redhat.com>
15799         PR target/40332
15800         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15801         * configure: Likewise.
15803 2010-02-20  Alan Modra  <amodra@gmail.com>
15805         PR middle-end/42344
15806         * cgraph.h (cgraph_make_decl_local): Declare.
15807         * cgraph.c (cgraph_make_decl_local): New function.
15808         (cgraph_make_node_local): Use it.
15809         * cgraphunit.c (cgraph_function_versioning): Likewise.
15810         * ipa.c (function_and_variable_visibility): Likewise.
15812 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15814         PR bootstrap/43121
15815         * except.c (sjlj_emit_function_enter): Don't call
15816         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15817         directly.
15818         * rtl.h (add_reg_br_prob_note): Remove prototype.
15820 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15822         PR 41779
15823         * c-common.c (conversion_warning): Remove widening conversions
15824         before checking the conversion of integers to reals.
15826 2010-02-19  Mike Stump  <mikestump@comcast.net>
15828         PR middle-end/43125
15829         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15831         PR objc/43061
15832         * cgraphunit.c (process_function_and_variable_attributes): Check
15833         DECL_PRESERVE_P instead of looking up attribute "used".
15834         * ipa-pure-const.c (check_decl): Likewise.
15835         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15836         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15837         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15838         instead of attribute "used".
15839         * config/sol2-c.c (solaris_pragma_init): Likewise.
15840         (solaris_pragma_fini): Likewise.
15842 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15844         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15845         Use XCNEW instead of xcalloc.
15846         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15847         XNEW instead of xmalloc.
15848         (get_fields): Use XNEWVEC instead of xmalloc.
15850         PR debug/43084
15851         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15852         populate vars array.
15853         (create_new_general_access): For debug stmts just reset value.
15854         (get_stmt_accesses): For accesses within debug stmts just record them
15855         using add_access_to_acc_sites instead of preventing the peeling or
15856         counting them as accesses.
15858         PR middle-end/42233
15859         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15861 2010-02-19  Richard Guenther  <rguenther@suse.de>
15863         PR tree-optimization/42916
15864         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15865         instructions.
15867 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
15869         * configure.ac: Replace all uses of changequote in macro arguments
15870         with proper quoting.
15872 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15874         PR middle-end/42233
15875         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
15877 2010-02-19  Richard Guenther  <rguenther@suse.de>
15879         PR tree-optimization/42944
15880         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
15881         test for aliasing with errno.
15883 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15885         PR middle-end/42233
15886         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
15887         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
15888         * dojump.c: Include output.h.
15889         (inv): New inline function.
15890         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
15891         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
15892         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
15893         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
15894         argument, pass it down to other calls.
15895         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
15896         add REG_BR_PROB note to the conditional jump.
15897         * cfgexpand.c (add_reg_br_prob_note): Removed.
15898         (expand_gimple_cond): Don't call it, add the probability
15899         as last argument to jumpif_1/jumpifnot_1.
15900         * Makefile.in (dojump.o): Depend on output.h.
15901         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
15902         callers.
15903         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
15904         * stmt.c (do_jump_if_equal): Likewise.
15905         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
15906         * loop-unswitch.c (compare_and_jump_seq): Likewise.
15907         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
15908         Likewise.
15909         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
15910         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
15911         jumpifnot_1 callers.
15912         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
15913         callers.
15914         (store_expr): Adjust jumpifnot caller.
15915         (store_constructor): Adjust jumpif caller.
15917         PR middle-end/42233
15918         * gimplify.c (gimple_boolify): For __builtin_expect call
15919         gimple_boolify also on its first argument.
15921 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
15923         * configure.ac (gnu-unique-object): Wrap regexps using [] in
15924         changequote block.
15925         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
15926         * configure: Regenerated.
15928 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15930         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
15931         lang_hooks.types_compatible_p instead of comptypes.
15933 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15935         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
15936         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
15937         if __prefer_thumb__ is defined.
15939 2010-02-18  Martin Jambor  <mjambor@suse.cz>
15941         PR tree-optimization/43066
15942         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
15943         array with zero-sized element type.
15945 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
15947         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
15948         rtx, allocate struct var_loc_node here and return it to the
15949         caller, and only if it is actually needed.
15950         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
15951         move it earlier and return immediately if it returns NULL.
15953 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
15955         * config/sparc/gas.h: New file.  Restore
15956         TARGET_ASM_NAMED_SECTION to its ELF default.
15957         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
15958         check !HAVE_GNU_AS.
15959         * config/sparc/sparc.c (sparc_elf_asm_named_section):
15960         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
15961         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
15962         after sparc/sysv4.h.
15964 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
15966         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
15968 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
15970         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
15971         patterns from predicated pattern.
15973 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
15975         PR target/43103
15976         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
15977         for insn mnemonic suffix.
15979 2010-02-17  Richard Guenther  <rguenther@suse.de>
15981         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
15982         to loop PHI nodes.
15984 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
15986         PR debug/42918
15987         * caller-save.c (save_call_clobbered_regs): If BB ends with
15988         a DEBUG_INSN, move any notes in between last real insn and the last
15989         DEBUG_INSN after the last DEBUG_INSN.
15991 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
15993         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
15994         Fix return type.  Fix argument type.  Explain meaning of return value.
15996 2010-02-16  Richard Guenther  <rguenther@suse.de>
15998         PR tree-optimization/41043
15999         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
16000         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16001         statements ...
16002         (vrp_visit_phi_node): ... but only for loop PHI nodes.
16004 2010-02-16  Ira Rosen  <irar@il.ibm.com>
16006         PR tree-optimization/43074
16007         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16008         * tree-vect-loop.c (vect_analyze_loop_operations): Add
16009         vectorizable cycles in hybrid SLP check.
16010         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16012 2010-02-16  Richard Guenther  <rguenther@suse.de>
16014         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16015         (true_dependence): If memrefs_conflict_p computes must-alias
16016         trust it.  Move TBAA check after offset-based disambiguation.
16017         (canon_true_dependence): Likewise.
16019 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
16021         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16022         * doc/invoke.texi: Document it.
16023         * var-tracking.c: Include toplev.h and params.h.
16024         (vt_find_locations): Return bool indicating success.  Compute
16025         hash sizes unconditionally.  Check new parameter, report.
16026         (variable_tracking_main_1): Check vt_find_locations results and
16027         retry.  Renamed from...
16028         (variable_tracking_main): ... this.  New wrapper to preserve
16029         flag_var_tracking_assignments.
16030         * Makefile.in (var-tracking.o): Adjust dependencies.
16032 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
16033             Jakub Jelinek  <jakub@redhat.com>
16035         PR target/42854
16036         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16037         if weak_import attribute is present.
16038         * config/darwin.c (machopic_select_section): Likewise.
16040 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
16042         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16043         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16044         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16045         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16047         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16048         types.
16050         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16051         Fix argument types.
16053         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16054         Rewrite text to refer to the names.
16056 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
16058         * config/i386/i386-builtin-types.def
16059         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16060         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16061         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16062         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16063         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16064         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16065         IX86_BUILTIN_VPERMIL2PS256.
16066         (MULTI_ARG_4_DF2_DI_I): Defined.
16067         (MULTI_ARG_4_DF2_DI_I1): Defined.
16068         (MULTI_ARG_4_SF2_SI_I): Defined.
16069         (MULTI_ARG_4_SF2_SI_I1): Defined.
16070         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16071         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16072         __builtin_ia32_vpermil2ps256.
16073         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16074         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16075         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
16076         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16077         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16078         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
16079         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16080         CODE_FOR_xop_vpermil2v8sf3.
16081         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16082         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16083         * config/i386/xopintrin.h (_mm_permute2_pd): New.
16084         (_mm256_permute2_pd): New.
16085         (_mm_permute2_ps): New.
16086         (_mm256_permute2_ps): New.
16088 2010-02-15  Nick Clifton  <nickc@redhat.com>
16090         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16091         boolean parameters.  Use emit_jump_insn when emitting a pop
16092         instruction containing a return insn.
16093         (push): Use 'true' rather than '1' as second parameter to F.
16094         (h8300_expand_prologue): Likewise.
16095         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16096         (h8300_expand_epilogue): Likewise.
16098 2010-02-15  Richard Guenther  <rguenther@suse.de>
16100         PR middle-end/43068
16101         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16102         if that is zero.
16104 2010-02-15  Nick Clifton  <nickc@redhat.com>
16106         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16107         delta.
16109 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
16111         * intl.c (fake_ngettext): New function.
16112         * intl.h (fake_ngettext): Declare.
16113         (ngettext): Define macro.
16114         * collect2.c (notice_translated): New function.
16115         (main): Use notice_translated and ngettext.
16116         * collect2.h (notice_translated): Declare.
16118 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
16120         * reorg.c (delete_computation): Comment fixes.
16121         * caller-save.c (setup_save_areas): Idem.
16122         * sel-sched-dump.c (dump_lv_set): Idem.
16123         * rtl.def: Idem.
16125 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16127         * config/s390/s390.c (s390_sched_init): New function.
16128         (TARGET_SCHED_INIT): Target hook defined.
16130 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
16131             Jack Howarth  <howarth@bromo.med.uc.edu>
16132             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
16134         PR target/42982
16135         Partial revert of unintended change in fix for PR41605.
16136         * config/darwin.h: Fix typo.
16137         * config/darwin9.h: Same.
16139 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16141         * c-pch.c (pch_init): Clear v.
16143 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16145         PR middle-end/42930
16146         * graphite-scop-detection.c (graphite_can_represent_scev): Call
16147         graphite_can_represent_init for MULT_EXPR.
16149 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16151         PR middle-end/42914
16152         PR middle-end/42530
16153         * graphite-sese-to-poly.c (remove_phi): New.
16154         (translate_scalar_reduction_to_array): Call remove_phi.
16156 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16158         PR middle-end/42771
16159         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16160         * graphite-clast-to-gimple.h (gloog): Update declaration.
16161         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16162         * graphite-poly.h (struct poly_bb): Add missing comments.
16163         (struct scop): Add poly_scop_p field.
16164         (POLY_SCOP_P): New.
16165         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16166         * graphite.c (graphite_transform_loops): Build the polyhedral
16167         representation for each scop before code generation.
16168         * sese.c (rename_variables_in_operand): Removed.
16169         (rename_variables_in_expr): Return the renamed expression.
16170         (rename_sese_parameters): New.
16171         * sese.h (rename_sese_parameters): Declared.
16173 2010-02-11  Richard Guenther  <rguenther@suse.de>
16175         PR tree-optimization/42998
16176         * tree-ssa-pre.c (create_expression_by_pieces): Treat
16177         POINTER_PLUS_EXPR properly.
16179 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16180             Changpeng Fang  <changpeng.fang@amd.com>
16182         PR middle-end/40886
16183         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16184         the cost of an IV candidate when the IV is used in a test against zero.
16186         * gcc.dg/tree-ssa/ivopts-3.c: New.
16188 2010-02-11  Richard Guenther  <rguenther@suse.de>
16190         PR lto/41664
16191         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16192         pointer-vs-decl case by swapping refs.  Handle some cases
16193         of pointer-vs-decl disambiguations more conservatively.
16194         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16195         to false after expanding.
16197 2010-02-11  Richard Guenther  <rguenther@suse.de>
16199         PR driver/43021
16200         * gcc.c (process_command): Handle LTO file@offset case more
16201         appropriately.
16203 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16205         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16206         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
16207         of DEBUG_INSNs.
16208         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16210         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16211         if MEM's mode size isn't DWARF2_ADDR_SIZE.
16212         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16213         Optimize eq/ne comparisons when both arguments are known to be
16214         zero-extended.
16215         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16216         Don't mask operands unnecessarily if they are known to be already
16217         zero-extended.
16219 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
16221         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16222         instead of loop.
16224 2010-02-10  Richard Guenther  <rguenther@suse.de>
16226         PR tree-optimization/43017
16227         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16228         for wrapping signed arithmetic.
16230 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16232         PR debug/43010
16233         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16234         if no debug info should be emitted for it.
16236 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16238         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16239         note when flag_exceptions is set.
16241 2010-02-10  Duncan Sands  <baldrick@free.fr>
16243         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16245 2010-02-10  Richard Guenther  <rguenther@suse.de>
16247         PR c/43007
16248         * tree.c (get_unwidened): Handle constants.
16249         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16251 2010-02-10  Martin Jambor  <mjambor@suse.cz>
16253         PR lto/42985
16254         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16255         check for variable argument counts independently.
16257 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16259         PR target/42841
16260         * config/sh/sh.c (find_barrier): Increase length for non delayed
16261         conditional branches.
16263 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16265         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16267 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16269         * builtins.c (set_builtin_user_assembler_name): Also handle
16270         ffs if int is smaller than word.
16272 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
16274         PR middle-end/42973
16275         * ira-conflicts.c (get_dup): Remove.
16276         (process_reg_shuffles): Add new parameter.  Use it as an
16277         additional guard for copy generation.
16278         (add_insn_allocno_copies): Rewrite.
16280 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
16282         * common.opt (fsched2-use-traces): Preserved for backward
16283         compatibility.
16284         * doc/invoke.texi: Remove the documentation about option
16285         -fsched2-use-traces.
16286         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16287         flag_sched2_use_traces.
16288         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16289         the backward compatibility flag section.
16291 2010-02-09  Richard Guenther  <rguenther@suse.de>
16293         PR tree-optimization/43008
16294         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16295         make HEAP variables initialized from global memory if they
16296         are not known builtin functions.
16297         (find_func_aliases): Adjust.
16299 2010-02-09  Richard Guenther  <rguenther@suse.de>
16301         PR tree-optimization/43000
16302         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16303         arithmetic manually.
16305 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
16307         PR tree-optimization/42931
16308         * tree-loop-linear.c (try_interchange_loops): Don't call
16309         double_int_mul if estimated_loop_iterations failed.
16311 2010-02-08  Martin Jambor  <mjambor@suse.cz>
16313         PR middle-end/42898
16314         * tree-sra.c (build_accesses_from_assign): Do not mark in
16315         should_scalarize_away_bitmap if stmt has volatile ops.
16316         (sra_modify_assign): Do not process assigns piecemeal if if stmt
16317         has volatile ops.
16319 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
16321         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16323 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
16325         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16326         before the pattern.
16328 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
16330         PR middle-end/42946
16331         * df-core.c (df_finish_pass): Change type of saved_flags to int.
16333 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16335         PR middle-end/42988
16336         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16337         to unknown_dependence.
16338         (graphite_legal_transform_dr): Handle the unknown_dependence.
16339         (graphite_carried_dependence_level_k): Same.
16341 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16343         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16345 2010-02-07  Richard Guenther  <rguenther@suse.de>
16347         PR middle-end/42991
16348         * expr.c (get_inner_reference): Always initialize *pbitsize.
16350 2010-02-07  Richard Guenther  <rguenther@suse.de>
16352         PR middle-end/42956
16353         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16354         new ARRAY_REFs on variable size element or minimal index arrays.
16355         Complete.
16356         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16357         gimple_fold_indirect_ref.
16359 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
16361         PR target/42957
16362         * arm.c (arm_override_options): Just return if the user has specified
16363         an invalid fpu name.
16365 2010-02-03  Jason Merrill  <jason@redhat.com>
16367         PR c++/42870
16368         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16369         i386_pe_maybe_record_exported_symbol.
16371 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
16373         PR target/42924
16374         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16375         (pa_delegitimize_address): New function.
16377 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
16379         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16380         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16382 2010-02-05  Richard Guenther  <rguenther@suse.de>
16384         PR lto/42762
16385         * lto-streamer-in.c (get_resolution): Deal with references
16386         to undefined functions.
16388 2010-02-05  Richard Guenther  <rguenther@suse.de>
16390         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16391         (fold_const_aggregate_ref): Likewise.
16392         (ccp_fold_stmt): Substitute loads.
16393         (maybe_fold_reference): Verify types before substituting.
16394         Unshare properly.
16395         (fold_gimple_assign): Unshare properly.
16396         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16398 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
16400         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16401         for rs6000_gen_cell_microcode.
16403 2010-02-04  Richard Guenther  <rguenther@suse.de>
16405         PR rtl-optimization/42952
16406         * dse.c (const_or_frame_p): Remove MEM handling.
16408 2010-02-04  Nick Clifton  <nickc@redhat.com>
16410         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16411         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16412         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16413         (mn10300_asm_output_mi_thunk): New function.
16414         (mn10300_can_output_mu_thunk): New function.
16415         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16416         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
16417         (FUNCTION_ARG): Delete incorrect comment.
16419 2010-02-03  Jason Merrill  <jason@redhat.com>
16421         PR c++/40138
16422         * fold-const.c (operand_equal_p): Handle erroneous types.
16424 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16426         * config/h8300/h8300.md (can_delay): Fix attibute condition.
16428 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16430         PR rtl-optimization/42941
16431         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16432         of xmalloc.
16434 2010-02-03  Jason Merrill  <jason@redhat.com>
16436         PR c++/35652
16437         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16439 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
16441         PR debug/42896
16442         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
16443         (cselib_reset_table): Renamed from...
16444         (cselib_reset_table_with_next_value): ... this.
16445         (cselib_get_next_uid): Renamed from...
16446         (cselib_get_next_unknown_value): ... this.
16447         * cselib.c (next_uid): Renamed from...
16448         (next_unknown_value): ... this.
16449         (cselib_clear_table): Adjust.
16450         (cselib_reset_table): Adjust.  Renamed from...
16451         (cselib_reset_table_with_next_value): ... this.
16452         (cselib_get_next_uid): Adjust.  Renamed from...
16453         (cselib_get_next_unknown_value): ... this.
16454         (get_value_hash): Use hash.
16455         (cselib_hash_rtx): Likewise.
16456         (new_cselib_val): Adjust.  Set and dump uid.
16457         (cselib_lookup_mem): Pass next_uid as hash.
16458         (cselib_subst_to_values): Likewise.
16459         (cselib_log_lookup): Dump uid.
16460         (cselib_lookup): Pass next_uid as hash.  Adjust.
16461         (cselib_process_insn): Adjust.
16462         (cselib_init): Initialize next_uid.
16463         (cselib_finish): Adjust.
16464         (dump_cselib_table): Likewise.
16465         * dse.c (canon_address): Dump value uid.
16466         * print-rtl.c (print_rtx): Print value uid.
16467         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16468         (dvuid): New type.
16469         (dv_uid): New function, sort of renamed from...
16470         (dv_htab_hash): ... this, reimplemented in terms of it and...
16471         (dv_uid2hash): ... this.  New.
16472         (variable_htab_eq): Drop excess assertions.
16473         (tie_break_pointers): Removed.
16474         (canon_value_cmp): Compare uids.
16475         (variable_post_merge_New_vals): Print uids.
16476         (vt_add_function_parameters): Adjust.
16477         (vt_initialize): Reset table.  Adjust.
16479 2010-02-03  Richard Guenther  <rguenther@suse.de>
16481         PR tree-optimization/42944
16482         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16483         (call_may_clobber_ref_p_1): Likewise.  Properly handle
16484         malloc and calloc clobbering errno.
16486 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
16488         * doc/invoke.texi: Fix name of sched1 dump.
16490         * opts.c (decode_options): Set flag_tree_switch_conversion
16491         only conditionally on optimize >= 2.
16493         * gcse.c: Assorted comment fixes in pass description.
16495 2010-02-03  Anthony Green  <green@moxielogic.com>
16497         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16498         nop padding in order to maintain alignment of storage location of
16499         target function address.
16500         (moxie_trampoline_init): Store target function address at newly
16501         aligned location.
16502         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16503         to 32.
16504         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16506 2010-02-03  Richard Guenther  <rguenther@suse.de>
16508         PR middle-end/42927
16509         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16511 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16513         * config.gcc: Reenable check for obsolete targets.
16514         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16515         mips-sgi-irix6.[0-4]*.
16517 2010-02-02  Nick Clifton  <nickc@redhat.com>
16519         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16520         constant size of 4 as being the same as 0.
16521         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16522         can take values in the range 0..4.
16524 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
16526         PR java/41991
16527         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16528         as _darwin10_Unwind_FindEnclosingFunction().
16529         * libgcc-libsystem.ver: New.
16531 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
16533         PR target/41399
16534         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16535         implicitly set registers.
16537 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
16539         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16540         (arm_override_options): Allow automatic selection of the thread
16541         pointer register if thumb2.
16542         (legitimize_pic_address): Improve code sequences for Thumb2.
16543         (arm_call_tls_get_addr): Likewise.
16544         (legitimize_tls_address): Likewise.
16545         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
16546         (pic_load_addr_32bit): ... this.  New named pattern.
16547         * thumb2.md (pic_load_addr_thumb2): Delete.
16548         (pic_load_dot_plus_four): Delete.
16549         (tls_load_dot_plus_four): New named pattern.
16551 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16553         PR libgomp/29986
16554         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16555         Document fix for TLS bug.
16557 2010-01-31  Richard Guenther  <rguenther@suse.de>
16559         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16560         conservatively correct.
16562 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16564         PR target/42850
16565         Revert:
16566         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16568         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16570 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16572         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16574 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
16576         * config.gcc: Adjust order of makefile fragments for mingw targets.
16578 2010-01-31  Richard Guenther  <rguenther@suse.de>
16580         PR middle-end/42898
16581         * gimplify.c (gimplify_init_constructor): For volatile LHS
16582         initialize a temporary.
16584 2010-01-31  Matthias Klose  <doko@ubuntu.com>
16586         * configure.ac: Fix __stack_chk_fail check for cross builds configured
16587         --with-headers
16588         * configure: Regenerate.
16590 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
16592         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16593         the same alias set and their sizes different constantness.
16594         (aliasing_component_refs_p): Revert 2009-10-24 change.
16596 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16598         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
16599         unused.
16601 2010-01-29  Richard Guenther  <rguenther@suse.de>
16603         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
16604         Assert we successfully updated the call.
16606 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
16608         PR rtl-optimization/42889
16609         * df.h (df_set_bb_dirty_nonlr): New prototype.
16610         * df-core.c (df_set_bb_dirty_nonlr): New function.
16611         * df-scan.c (df_insn_rescan): Call it instead of
16612         df_set_bb_dirty for DEBUG_INSNs.
16614 2010-01-29  Richard Guenther  <rguenther@suse.de>
16616         PR middle-end/37448
16617         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
16618         quadratic behavior in most cases.
16620 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
16622         PR target/42891
16623         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
16624         in the call to gen_x86_movsicc_0_m1.
16626 2010-01-28  Richard Guenther  <rguenther@suse.de>
16628         PR tree-optimization/42871
16629         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
16631 2010-01-28  Richard Guenther  <rguenther@suse.de>
16633         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
16634         into call arguments.
16636 2010-01-28  Richard Guenther  <rguenther@suse.de>
16638         PR middle-end/42883
16639         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
16640         the forwarder if the destination is an EH landing pad.
16642 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
16644         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
16645         block list passed to gimple_duplicate_sese_tail.
16646         (parallelize_loops): Avoid parallelization when the function
16647         has_nonlocal_label.
16648         Avoid parallelization when the preheader is IRREDUCIBLE.
16649         Try to optimize when estimated_loop_iterations_int is unresolved.
16650         Add the loop's location to the dump file.
16651         * tree-cfg.c (add_phi_args_after_redirect): Remove.
16652         (gimple_duplicate_sese_tail): Remove the check for the latch.
16653         Redirect nexits to the exit block.
16654         Remove handling of the incoming edges to the latch.
16655         Redirect the backedge from the copied latch to the exit bb.
16657 2010-01-28  Michael Matz  <matz@suse.de>
16659         PR target/42881
16660         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
16661         Wrap force_reg into a sequence, emit it before user.
16663 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
16665         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
16666         (arm_rev): New.
16667         (arm_legacy_rev): Likewise.
16668         (thumb_legacy_rev): Likewise.
16670 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16672         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
16673         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
16674         on MEM's address failed, try avoid_constant_pool_reference and
16675         recurse if it returned something different.
16676         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
16677         address, try avoid_constant_pool_reference and recurse if it
16678         returned something different.
16679         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
16680         address and avoid_constant_pool_reference returned something
16681         different, don't set have_address.
16683 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
16685         PR debug/42861
16686         * var-tracking.c (val_store): Add modified argument, obey it.
16687         Adjust callers.
16688         (count_uses): Move down logging of main.
16689         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
16690         don't need resolution.
16691         (emit_notes_in_bb): Likewise.
16693 2010-01-27  Richard Guenther  <rguenther@suse.de>
16695         PR middle-end/42878
16696         * tree-inline.c (remap_decl): Delay remapping of SSA name
16697         default definitions until we need them.
16699 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16701         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16702         (rs6000_delegitimize_address): New function.
16704         * config/s390/s390.c (s390_delegitimize_address): Call
16705         delegitimize_mem_from_attrs.
16707         PR middle-end/42874
16708         * tree-inline.c (cannot_copy_type_1): Removed.
16709         (copy_forbidden): Don't forbid copying of functions containing
16710         records/unions with variable length fields.
16712 2010-01-27  Christian Bruel  <christian.bruel@st.com>
16714         Revert:
16715         PR target/42841
16716         * config/sh/sh.c (find_barrier): Increase length for non delayed
16717         conditional branches.
16719 2010-01-27  Matthias Klose  <doko@ubuntu.com>
16721         * configure.ac (gnu-unique-object): Fix ldd version check.
16722         * configure: Regenerate.
16724 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16726         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
16727         HAVE_GNU_AS value.
16728         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
16729         Test for HAVE_GNU_AS value.
16731 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16733         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
16734         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
16735         INT64_TYPE): Define.
16736         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
16737         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16738         INT_LEAST64_TYPE): Define.
16739         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
16740         UINT_LEAST64_TYPE): Define.
16741         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
16742         INT_FAST64_TYPE): Define.
16743         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16744         UINT_FAST64_TYPE): Define.
16745         (INTMAX_TYPE, UINTMAX_TYPE): Define.
16746         (INTPTR_TYPE, UINTPTR_TYPE): Define.
16747         (SIG_ATOMIC_TYPE): Define.
16749 2010-01-26  Richard Guenther  <rguenther@suse.de>
16751         * df-scan.c (df_scan_set_bb_info): Remove assert.
16752         (df_insn_rescan_debug_internal): Merge asserts.
16753         (df_install_ref): Likewise.
16754         (df_mark_reg): Use bitmap_set_range.
16755         (df_hard_reg_used_p): Remove assert.
16756         (df_hard_reg_used_count): Likewise.
16758 2010-01-26  Richard Guenther  <rguenther@suse.de>
16760         PR rtl-optimization/42685
16761         * web.c (web_main): Ignore DEBUG_INSNs.
16763 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
16765         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
16767         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
16768         Fix types of fndecl and arglist parameters.
16770 2010-01-26  Richard Guenther  <rguenther@suse.de>
16772         PR middle-end/42806
16773         * tree-eh.c (unsplit_eh): Skip debug insns.
16775 2010-01-26  Richard Guenther  <rguenther@suse.de>
16777         PR tree-optimization/42250
16778         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
16780 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
16782         PR fortran/42866
16783         * omp-low.c (expand_omp_sections): Only use single_pred if
16784         l2_bb is single_pred_p.
16786 2010-01-25  Christian Bruel  <christian.bruel@st.com>
16788         PR target/42841
16789         * config/sh/sh.c (find_barrier): Increase length for non delayed
16790         conditional branches.
16791         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
16793 2010-01-24  David S. Miller  <davem@davemloft.net>
16795         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16796         define if not using GAS.
16797         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16798         Likewise.  Delete SECTION_MERGE code, which is only applicable
16799         when using GAS.
16801 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
16803         PR c++/42748
16804         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16805         mangling of va_list in system headers.
16807 2010-01-23  Toon Moene  <toon@moene.org>
16809         * tree-predcom.c (combine_chains): Return NULL, not false.
16811 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
16813         * tree-loop-distribution.c (distribute_loop): Fix declaration and
16814         initialization of variable res to agree with return type.
16816 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
16818         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16819         * tree-sra.c: Add include of expr.h.
16821 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
16823         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16824         insert the debug stmt on the single non-EH edge from the stmt.
16826 2010-01-22  Richard Henderson  <rth@redhat.com>
16828         PR tree-opt/42833
16829         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16830         the RHS until after generate_subtree_copies has insertted its
16831         code before the current statement.
16833 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
16835         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16837         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16839 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16841         PR tree-optimization/42585
16842         * tree-sra.c (struct access): New field grp_total_scalarization.
16843         (dump_access): Dump the new field.
16844         (should_scalarize_away_bitmap): New variable.
16845         (cannot_scalarize_away_bitmap): Likewise.
16846         (sra_initialize): Allocate new bitmaps.
16847         (sra_deinitialize): Free new bitmaps.
16848         (create_access_1): New function.
16849         (create_access): Parts moved to create_access_1.
16850         (type_consists_of_records_p): New function.
16851         (completely_scalarize_record): Likewise.
16852         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16853         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16854         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16855         access.
16856         (analyze_all_variable_accesses): Completely scalarize small eligible
16857         records.
16859 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16861         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16863 2010-01-21  Andrew Haley  <aph@redhat.com>
16865         * gcc.c (process_command): Move lang_specific_driver before
16866         setting cc_libexec_prefix.
16868 2010-01-21  Richard Guenther  <rguenther@suse.de>
16870         PR middle-end/19988
16871         * fold-const.c (negate_expr_p): Pretend only negative
16872         real constants are easily negatable.
16874 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
16875             Jason Merrill  <jason@redhat.com>
16877         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
16878         (TYPE_TRANSPARENT_AGGR): this, for union and record.
16879         * calls.c (initialize argument_information): Handle it.
16880         * c-common.c (handle_transparent_union_attribute): Use new name.
16881         * c-decl.c (finish_struct): Ditto.
16882         * c-typeck.c (type_lists_compatible_p): Ditto.
16883         (convert_for_assignment): Use new name and also handle record.
16884         * function.c (aggregate_value_p): Handle it.
16885         (pass_by_reference): Ditto.
16886         (assign_parm_data_types): Ditto.
16887         * print-tree.c (print_node): Ditto.
16888         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
16889         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
16890         * tree.c (first_field): New fn.
16892 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
16894         PR target/42818
16895         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
16896         even when linking statically, for now.
16898 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16900         PR debug/42715
16901         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
16902         without a cselib val.
16903         (count_uses): Accept MO_VAL_SET with no val on stores.
16904         (add_stores): Likewise.
16906 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16908         * var-tracking.c (check_value_val): Add a compile time assertion.
16909         (dv_is_decl_p): Simplify.
16910         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
16911         gcc_assert if ENABLE_CHECKING.
16913 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16915         PR debug/42782
16916         * var-tracking.c: Include tree-flow.h.
16917         (mem_dies_at_call): New.
16918         (dataflow_set_preserve_mem_locs): Use it.
16919         (dataflow_set_remove_mem_locs): Likewise.
16920         (dump_var): Renamed from dump_variable.  Adjust all callers.
16921         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
16922         * Makefile.in (var-tracking.o): Adjust deps.
16924 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
16926         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
16928 2010-01-20  Richard Guenther  <rguenther@suse.de>
16930         PR tree-optimization/42717
16931         * tree-ssa-dce.c (get_live_post_dom): Remove.
16932         (forward_edge_to_pdom): Take an arbitrary edge to copy
16933         degenerate PHI args from.
16934         (remove_dead_stmt): Use the first post-dominator even if it
16935         does not contain live statements as redirection destination.
16937 2010-01-20  Richard Guenther  <rguenther@suse.de>
16939         * tree-inline.c (estimate_num_insns): Handle EH builtins.
16941 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16943         * sel-sched.c (create_speculation_check): Remove set but not used
16944         variable twin.
16945         (try_transformation_cache): Remove set but not used variable ds.
16946         (calculate_privileged_insns): Remove set but not used variables
16947         cur_insn and min_spec_insn.
16948         (find_best_expr): Remove set but not used variable avail_n.
16949         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
16950         variable e.
16951         * cgraphunit.c (assemble_thunk): Remove set but not used variable
16952         false_label.
16953         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
16954         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
16955         new_scop_exit_edge.
16957 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
16959         PR bootstrap/42786
16960         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
16961         cpu types.  Add support for *-sse3 cpu types.
16962         (x86_64-*-*): Ditto.
16964 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16966         PR middle-end/42803
16967         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
16968         argument, call initializer_constant_valid_p_1 instead of
16969         initializer_constant_valid_p, pass CACHE to it, return NULL
16970         immediately if first call returns NULL.
16971         (initializer_constant_valid_p_1): New function.
16972         (initializer_constant_valid_p): Use it.
16974 2010-01-20  Thomas Quinot  <quinot@adacore.com>
16976         * tree.def (PLACEHOLDER_EXPR): Fix comment.
16978 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16980         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
16981         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
16982         (loc_list_from_tree): Don't handle unsigned division.  Handle
16983         signed modulo using DW_OP_{over,over,div,mul,minus}.
16984         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
16985         modulo instead of signed.
16987 2010-01-20  DJ Delorie  <dj@redhat.com>
16989         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
16990         (Fpa): Pass it
16991         (h8300_emit_stack_adjustment): Propogate it.
16992         (push): Pass it.
16993         (h8300_expand_prologue): Likewise.
16994         (h8300_expand_epilogue): Likewise.
16996 2010-01-19  Michael Matz  <matz@suse.de>
16998         PR tree-optimization/41783
16999         * tree-data-ref.c (toplevel): Include flags.h.
17000         (dump_data_dependence_relation):  Also dump the inputs if the
17001         result will be unknown.
17002         (split_constant_offset_1): Look through some conversions.
17003         * tree-predcom.c (determine_roots_comp): Restart a new chain if
17004         the offset from last element is too large.
17005         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17006         (reassociate_to_the_same_stmt): Handle vector registers.
17007         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17008         (e.g. conversions).
17009         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17010         wide_prolog_niters argument, emit widening instructions.
17011         (vect_do_peeling_for_alignment): Adjust caller, use widened
17012         variant of the iteration cound.
17013         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17015 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17017         PR target/38697
17018         * config/arm/neon-testgen.m (emit_automatics): New parameter
17019         features. Adjust for Fixed_return_reg feature.
17020         (test_intrinsic): Call emit_automatics with new feature.
17021         * config/arm/neon.ml: Update copyright years.
17022         (features): New Fixed_return_reg feature.
17023         (ops): Update feature for Vget_low.
17025 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
17027         PR tree-optimization/42719
17028         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17029         stmt uses.
17031         PR debug/42728
17032         * fwprop.c (all_uses_available_at): Return false if def_set dest
17033         is a REG that is used in def_insn.
17035 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
17037         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17039         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17040         Add argument names.
17042         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17044         * target.h (struct gcc_target) <secondary_reload>: Change type
17045         of last argument to secondary_reload_info *.
17047 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
17049         PR target/42774
17050         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17051         memory references with unaligned offsets.  Remove CQImode handling.
17052         (unaligned_memory_operand): Return 1 for memory references with
17053         unaligned offsets.  Remove CQImode handling.
17055 2010-01-18  Richard Guenther  <rguenther@suse.de>
17057         PR middle-end/39954
17058         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17059         builtin calls.
17061 2010-01-18  Richard Guenther  <rguenther@suse.de>
17063         PR tree-optimization/42781
17064         * tree-ssa-structalias.c (find_what_var_points_to): Skip
17065         restrict processing only if the original variable was artificial.
17067 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
17069         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17070         find number of popped argument bytes.
17072         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17073         Fix the text that describes the return value for invalid insns.
17075         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
17077         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17078         Clarify what 'cost of the -dependence' is.  Fix quoting.
17080         * toplev.c (default_get_pch_validity): Rename argument to "sz".
17081         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17083 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
17085         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17086         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17088 2010-01-17  Richard Guenther  <rguenther@suse.de>
17090         PR middle-end/42248
17091         * function.c (split_complex_args): Take a VEC to modify.
17092         (assign_parms_augmented_arg_list): Build a VEC instead of
17093         a chain of PARM_DECLs.
17094         (assign_parms_unsplit_complex): Take a VEC of arguments.
17095         Do not fixup unmodified parms.
17096         (assign_parms): Deal with the VEC.
17097         (gimplify_parameters): Likewise.
17099 2010-01-17  Richard Guenther  <rguenther@suse.de>
17101         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17102         node existence check.
17103         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17104         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17105         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17106         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17107         (gimple_execute_on_growing_pred): Likewise.
17109 2010-01-17  Richard Guenther  <rguenther@suse.de>
17111         PR tree-optimization/42773
17112         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17113         (compute_antic_aux): Likewise.
17114         (compute_partial_antic_aux): Likewise.
17116 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
17118         PR debug/42767
17119         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17120         and US_TRUNCATE.
17122 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
17124         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17125         appearance.
17127         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17128         Fix markup for strict argument.
17130         (TARGET_SCHED_REORDER2): Fix argument types.
17132         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17133         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17135         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17136         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17138         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17139         Add argument name.
17141         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17142         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17143         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17144         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17145         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17147         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17149         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17151         (TARGET_ASM_RELOC_RW_MASK): Add return type.
17152         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17154         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17156         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17157         Use prototype.
17159         (TARGET_ASM_NAMED_SECTION): Fix argument list.
17161         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17162         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17164         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17166         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17168         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17169         referring to it.  Fix language.
17171         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17173         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17175         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17177         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17179         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17180         '@var{stream}.  Remove stray 'and'.
17182         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17184         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17186         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17188         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17189         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17191         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17192         Fix description of return value.
17193         Rename argument "sz" to "len."
17195         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17196         Clarify meaning of 'true' return value.
17198         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17200         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17201         rep_mode versus mode_rep.
17203         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17205         (TARGET_BUILTIN_DECL): Fix name.
17207         (TARGET_COMMUTATIVE_P): Fix type of first argument.
17209         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17211         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17213         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17215         (TARGET_RELAXED_ORDERING): Use @deftypevr.
17217         (TARGET_GET_DRAP_RTX): Note that this is a hook.
17218         Clarify language.
17220         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17221         Rename argument tm_fn to md_fn.
17223         (TARGET_OPTION_PRINT): Fix argument list.
17225 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
17227         PR target/42664
17228         * config/i386/i386.c (ix86_fixup_binary_operands):
17229         Revert FMA4 fixup of operands.
17231 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17233         PR gcc/42525
17234         * Makefile.in (write_entries_to_file, install-plugin):
17235         Use \012 instead of \n with tr.
17237 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
17239         * configure.ac (HAVE_AS_REF): New C macro.
17240         * configure: Regenerate.
17241         * config.in: Likewise.
17242         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17243         if HAVE_AS_REF.
17244         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17245         if HAVE_AS_REF.
17247 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
17249         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17251         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17253         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17255         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17257         (TARGET_IN_SMALL_DATA_P): Fix argument type.
17259         (TARGET_BINDS_LOCAL_P): Fix argument type.
17261         (TARGET_ASM_FILE_END): Use prototype.
17263         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17265         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17267         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17269         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17271         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17272         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17274         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17275         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17277         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17278         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17279         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17280         (TARGET_ADDR_SPACE_CONVERT): Likewise.
17282         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17284         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17286         (TARGET_INIT_BUILTINS): Use prototype.
17288         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17289         Put 'const char *' in braces.  Fix parameter types.
17290         (TARGET_INVALID_CONVERSION): Fix parameter types.
17291         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17292         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17294         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17295         Fix argument type.
17297         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17299         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17301 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
17303         * doc/tm.texi (TARGET_HELP): Fix return type.
17305         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17306         in braces.  Fix argument types.
17308         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17310         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17312         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17314         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17315         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17317         (TARGET_MANGLE_TYPE): Fix argument types.
17319         (TARGET_IRA_COVER_CLASSES): Use prototype.
17321         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
17323         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17325         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17327         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17329         (TARGET_CALLEE_COPIES): Fix argument types.
17331         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17333         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17335         (TARGET_FUNCTION_VALUE): Fix argument types.
17337         (TARGET_RETURN_IN_MSB): Fix argument type.
17339         (TARGET_RETURN_IN_MEMORY): Fix argument types.
17341         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17343         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17345         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17346         agree with return type.
17348         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17350 2010-01-15  Jing Yu  <jingyu@google.com>
17352         PR rtl-optimization/42691
17353         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17354         a pseudo to a constant and are merged, and adjust comments.
17356 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17358         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17360 2010-01-15  Richard Guenther  <rguenther@suse.de>
17362         PR middle-end/42739
17363         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17364         labels of computed or non-local gotos to the destination.
17365         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17366         landing pad label is the first label.
17368 2010-01-15  Richard Guenther  <rguenther@suse.de>
17370         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17372 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17374         PR target/42747
17375         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17376         to allow generation of the xssqrtdp instruction on power7.
17377         (sqrtdf2_fpr): Ditto.
17379 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17381         PR middle-end/42674
17382         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17383         functions with noreturn attribute.
17385         PR c++/42608
17386         * varasm.c (declare_weak): Add weak attribute to decl if it
17387         doesn't have one already.
17388         (assemble_external): Only add decls to weak_decls if they also
17389         have weak attribute.
17391 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
17393         * var-tracking.c (var_reg_delete): Don't delete the association
17394         between REGs and values or one-part variables if the register
17395         isn't clobbered.
17397 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17399         PR debug/42657
17400         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17401         because its first operand is a non-localized variable.
17403 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17405         PR tree-optimization/42706
17406         * tree-sra.c (encountered_recursive_call): New variable.
17407         (encountered_unchangable_recursive_call): Likewise.
17408         (sra_initialize): Initialize both new variables.
17409         (callsite_has_enough_arguments_p): New function.
17410         (scan_function): Call decl and flags check only for IPA-SRA, check
17411         whether there is a recursive call and whether it has enough arguments.
17412         (all_callers_have_enough_arguments_p): New function.
17413         (convert_callers): Look for recursive calls only when
17414         encountered_recursive_call is set.
17415         (ipa_early_sra): Bail out either if
17416         !all_callers_have_enough_arguments_p or
17417         encountered_unchangable_recursive_call.
17419 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17421         * sel-sched.c: Add 2010 to copyright years.
17422         * sel-sched-ir.c: Likewise.
17423         * sel-sched-ir.h: Likewise.
17425 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17427         PR tree-optimization/42714
17428         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17429         constructors specially.
17431 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17433         * config/i386/drivers-i386.c (detect_caches_intel):
17434         Add l2sizekb parameter and fill in.
17435         (host_detect_local_cpu): Add l2sizekb, fill in.
17436         Add Atom small cache heuristic.
17438 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17440         * config/i386/drivers-i386.c (detect_caches_cpuid4):
17441         Add level3 parameter and fill in.
17442         (detect_caches_intel): Handle level3 cache.
17444 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17446         * config/i386/drivers-i386.c (host_detect_local_cpu):
17447         Fix core duo detection.
17449 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17451         * config/i386/drivers-i386.c (host_detect_local_cpu):
17452         Fix Atom detection.
17454 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17456         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17457         (rs6000_variable_issue_1): this.  Use...
17458         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
17460 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17462         * sel-sched-ir.c (sel_restore_other_notes): Rename to
17463         sel_restore_notes.  Update all callers.  Call reemit_notes
17464         for all insns.
17466 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17468         PR rtl-optimization/42246
17469         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17470         loops.
17472 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17474         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17475         all successors is the same as number of successors in current region.
17477 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17479         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17480         to rename is not separable.  Otherwise check that its LHS is not NULL.
17482 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17484         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
17486 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17488         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17489         available registers when failed to discover LHS register class.
17490         Fix indentation.  Update comment.
17492 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17493             Alexander Monakov  <amonakov@ispras.ru>
17495         PR rtl-optimization/42389
17496         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17497         to can_issue_more.
17498         (advance_state_on_fence): Likewise.
17499         (sel_target_adjust_priority): Print debug output only when
17500         sched_verbose >= 4, not 2.
17501         (get_expr_cost): Do not issue all unique insns on the next cycle.
17502         (fill_insns): Initialize can_issue_more from the value saved
17503         with the fence.
17504         * sel-sched-ir.c (flist_add): New parameter issue_more.
17505         Init FENCE_ISSUE_MORE with it.
17506         (merge_fences): Likewise.
17507         (init_fences): Update call to flist_add.
17508         (add_to_fences, add_clean_fence_to_fences)
17509         (add_dirty_fence_to_fences): Likewise.
17510         (move_fence_to_fences): Update call to merge_fences.
17511         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17512         sched groups.
17513         * sel-sched-ir.h (struct _fence): New field issue_more.
17514         (FENCE_ISSUE_MORE): New accessor macro.
17516 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17518         PR rtl-optimization/42388
17519         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17520         that have no predecessors nor successors.  Do not call move_bb_info
17521         for empty blocks outside of current region.
17523 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17525         PR rtl-optimization/42294
17526         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17527         * sel-sched.c (move_exprs_to_boundary): Transitively add all
17528         originators' originators.
17530 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17532         PR rtl-optimization/39453
17533         PR rtl-optimization/42246
17534         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17535         for pipelining_p.
17536         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17538 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17539             Alexander Monakov  <amonakov@ispras.ru>
17541         PR middle-end/42245
17542         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
17543         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
17544         argument.  Update all callers.
17545         (tidy_control_flow): ... and here.  Recompute topological order
17546         of basic blocks in region if necessary.
17547         (sel_redirect_edge_and_branch): Change return type.  Return true
17548         if topological order might have been invalidated.
17549         (purge_empty_blocks): Export and move from...
17550         * sel-sched.c (purge_empty_blocks): ... here.
17551         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17552         (maybe_tidy_empty_bb): Delete prototype.
17553         (purge_empty_blocks): Declare.
17555 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17557         PR rtl-optimization/42249
17558         * sel-sched.c (try_replace_dest_reg): When chosen register
17559         and original register is the same, do not bail out early, but
17560         still check all original insns for validity of replacing destination
17561         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17562         in this case.
17564 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17566         PR c/42721
17567         Port from no-undefined-overflow branch:
17568         2009-03-09  Richard Guenther  <rguenther@suse.de>
17570         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17572 2010-01-14  Richard Guenther  <rguenther@suse.de>
17574         PR lto/42665
17575         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17577 2010-01-14  Ira Rosen  <irar@il.ibm.com>
17579         PR tree-optimization/42709
17580         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
17581         as scalar type in creation of constant vector operand.
17583 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17585         PR testsuite/42414
17586         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
17587         (check-parallel-%): Match `testsuite' directory component only
17588         at the end.
17590 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
17592         PR translation/39521
17593         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
17594         strings with _().
17596 2010-01-13  Richard Guenther  <rguenther@suse.de>
17598         PR tree-optimization/42730
17599         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
17600         offset zero.
17602 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
17604         PR target/pr42542
17605         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
17606         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
17607         them signed.
17609 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
17611         * config/bfin/libgcc-bfin.ver: Regenerate based on current
17612         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
17613         ___umulsi3_highpart.
17615         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
17616         rather than schedule_insns if the pass is enabled.
17618 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17620         PR tree-optimization/42704
17621         * tree-sra.c (sra_modify_assign): Do not delete assignments to
17622         SSA_NAMEs.
17624 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17626         PR tree-optimization/42703
17627         * tree-sra.c (analyze_access_subtree): Check that we can build a
17628         reference to the original data within the aggregate.
17630 2010-01-13  Richard Guenther  <rguenther@suse.de>
17632         PR tree-optimization/42705
17633         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
17635 2010-01-13  Richard Guenther  <rguenther@suse.de>
17637         PR middle-end/42716
17638         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
17640 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
17642         PR debug/41371
17643         * var-tracking.c (values_to_unmark): New variable.
17644         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17645         values_to_unmark vector.  Moved body to...
17646         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
17647         instead queue it into values_to_unmark vector.
17648         (vt_find_locations): Free values_to_unmark vector.
17650 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
17652         * config/s390/s390.c (override_options): Set
17653         default of max-pending-list-length to 256
17655 2010-01-13  Richard Guenther  <rguenther@suse.de>
17657         PR lto/42678
17658         * tree-pass.h (PROP_gimple_lcx): New.
17659         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
17660         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
17661         before the final cleanup_eh.
17662         (dump_properties): Dump PROP_gimple_lcx.
17663         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
17664         (tree_lower_complex_O0): Remove.
17665         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
17666         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
17667         tree_lower_complex, schedule TODO_update_ssa.
17668         * lto-streamer-out.c (output_function): Stream the functions
17669         properties.
17670         * lto-streamer-in.c (input_function): Likewise.
17671         (lto_read_body): Do not override them here.
17673 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
17675         PR c/42708
17676         * c-typeck.c (build_c_cast): Fold value cast to union type before
17677         wrapping it in a CONSTRUCTOR.
17679 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17681         PR rtl-optimization/42699
17682         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
17683         involved.
17685 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17687         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17688         SUBTARGET_WARN_UNUSED_SPEC): Move ...
17689         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17690         SUBTARGET_WARN_UNUSED_SPEC): ... here
17691         * config/mips/iris5.h (LIBGCC_SPEC): Define.
17693 2010-01-12  Julian Brown  <julian@codesourcery.com>
17695         * config/arm/neon-schedgen.ml (Utils): Don't try to
17696         open missing module.
17697         (find_with_result): New.
17699 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17701         PR debug/42662
17702         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
17703         sharing when canonicalizing ({lt,ge}u (plus a b) b).
17705         PR tree-optimization/42645
17706         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
17707         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
17708         decl_map, set processing_debug_stmt to -1 and return name without
17709         any remapping.
17711 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
17713         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
17714         binutils version, and reword target configuration description.
17716 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17718         * config/avr/avr.h (LINKER_NAME): Remove.
17720 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
17722         PR target/42416
17723         * config/rs6000/rs6000.c (rs6000_override_options): On targets
17724         that support VSX, warn for -mno-altivec if vsx is not disabled,
17725         and disable vsx.
17727 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
17728             Shujing Zhao  <pearly.zhao@oracle.com>
17730         PR translation/42469
17731         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
17732         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
17733         character between option name and help text.
17734         * c.opt (imultilib): Likewise.
17736 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
17738         * lto-streamer-out.c (output_unreferenced_globals): Output static
17739         variables.
17741 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
17743         PR rtl-optimization/42621
17744         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
17745         optimizing for size.
17746         (duplicate_computed_gotos): Remove now-redundant check.
17748 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
17750         PR target/37454
17751         * configure.ac: Save and restore LDFLAGS and LIBS
17752         * configure: Regenerate.
17754 2010-01-10  Richard Guenther  <rguenther@suse.de>
17756         PR middle-end/42667
17757         * builtins.c (fold_builtin_strlen): Add type argument and
17758         convert the resulting length to it.
17759         (fold_builtin_1): Adjust.
17761 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17763         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
17764         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
17765         1 insn.
17766         (num_insns_constant_wide): Adjust for that change.
17768 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17770         PR debug/42631
17771         * web.c (union_defs): Add used argument, to combine uses of
17772         uninitialized regs.
17773         (entry_register): Adjust type and tests of used argument.
17774         (web_main): Widen used for new use.  Pass it to union_defs.
17775         * df.h (union_defs): Adjust prototype.
17777 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17779         PR debug/42630
17780         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
17781         uses in new incoming argument.  Free body.
17782         (reset_debug_uses_in_loop): New.
17783         (analyze_insn_to_expand_var): Call the latter if the former found
17784         anything.  Fix whitespace.  Reject invalid dest overlaps before
17785         going through all insns in the loop.
17787 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17789         PR debug/42629
17790         * haifa-sched.c (dying_use_p): Debug insns don't count.
17792 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17794         PR middle-end/42363
17795         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17796         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17797         (verify_gimple_call): Reject LHS in noreturn calls.
17799 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17801         PR debug/42604
17802         PR debug/42395
17803         * tree-vect-loop-manip.c (adjust_info): New type.
17804         (adjust_vec): New pointer to vector.
17805         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17806         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17807         (slpeel_update_phis_for_duplicate_loop): Use them.
17808         (slpeel_update_phi_nodes_for_guard1): Likewise.
17809         (slpeel_update_phi_nodes_for_guard2): Likewise.
17810         (slpeel_tree_peel_loop_to_edge): Likewise.
17811         (vect_update_ivs_after_vectorizer): Likewise.
17813 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17815         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17816         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17818 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17820         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17821         bogus uninitialized warning.
17823 2010-01-09  Richard Guenther  <rguenther@suse.de>
17825         PR middle-end/42512
17826         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17827         the evolution is compatible with the initial condition.
17829 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17831         * gcc.c (process_command): Update copyright notice dates.
17832         * gcov.c (print_version): Likewise.
17833         * gcov-dump.c (print_version): Likewise.
17834         * mips-tfile.c (main): Likewise.
17835         * mips-tdump.c (main): Likewise.
17837 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17839         PR target/41885
17840         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17841         (rotlhi3): Delete.
17842         (rotlhi3_8): Delete.
17843         (rotlsi3): Delete.
17844         (rotlsi3_8): Delete.
17845         (rotlsi3_16): Delete.
17846         (rotlsi3_24): Delete.
17847         (rotl<mode>3): New.
17848         (*rotw<mode>3): New.
17849         (*rotb<mode>3): New.
17850         * config/avr/avr.c (avr_rotate_bytes): New function.
17851         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17853 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
17855         PR target/37454
17856         * configure.ac: Modify -rdynamic check.
17857         * configure: Regenerate.
17859 2010-01-08  DJ Delorie  <dj@redhat.com>
17861         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17862         register popping order.
17864 2010-01-08  Richard Guenther  <rguenther@suse.de>
17866         PR lto/42528
17867         * c.opt (fsigned-char): Also let LTO handle this option.
17868         (funsigned-char): Likewise.
17870 2010-01-07  Richard Guenther  <rguenther@suse.de>
17872         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17873         (gimple_op): Likewise.
17874         (gimple_op_ptr): Likewise.
17875         (gimple_assign_set_lhs): Remove gcc_assert.
17876         (gimple_assign_set_rhs1): Likewise.
17877         (gimple_assign_set_rhs2): Likewise.
17878         (gimple_call_set_lhs): Likewise.
17879         (gimple_call_set_fn): Likewise.
17880         (gimple_call_set_fndecl): Likewise.
17881         (gimple_call_fndecl): Likewise.
17882         (gimple_call_return_type): Likewise.
17883         (gimple_call_set_chain): Likewise.
17884         (gimple_call_num_args): Likewise.
17885         (gimple_call_set_arg): Likewise.
17886         (gimple_cond_set_code): Likewise.
17887         (gimple_cond_set_lhs): Likewise.
17888         (gimple_cond_set_rhs): Likewise.
17889         (gimple_cond_set_true_label): Likewise.
17890         (gimple_cond_set_false_label): Likewise.
17891         (gimple_label_set_label): Likewise.
17892         (gimple_goto_set_dest): Likewise.
17893         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
17894         (gimple_debug_bind_get_value): Likewise.
17895         (gimple_debug_bind_get_value_ptr): Likewise.
17896         (gimple_debug_bind_set_var): Likewise.
17897         (gimple_debug_bind_set_value): Likewise.
17898         (gimple_debug_bind_reset_value): Likewise.
17899         (gimple_debug_bind_has_value_p): Likewise.
17900         (gimple_return_retval_ptr): Remove gcc_assert.
17901         (gimple_return_retval): Likewise.
17902         (gimple_return_set_retval): Likewise.
17903         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
17904         (safe_referenced_var_iterator): Remove.
17905         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
17906         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
17907         (fill_referenced_var_vec): Remove.
17908         (first_readonly_imm_use): Remove redundant gcc_assert.
17909         (phi_arg_index_from_use): Combine gcc_asserts.
17910         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
17911         (first_imm_use_stmt): Remove redundant gcc_assert.
17912         * tree-cfg.c (verify_gimple_call): Verify function and chain
17913         operands.  Verify arguments.
17914         (verify_types_in_gimple_stmt): Verify condition code and labels.
17916 2010-01-07  Richard Guenther  <rguenther@suse.de>
17918         PR tree-optimization/42641
17919         * sese.c (rename_map_elt_info): Use the SSA name version, do
17920         not hash pointers.
17922 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
17924         PR tree-optimization/42625
17925         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
17926         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
17928 2010-01-07  Duncan Sands  <baldrick@free.fr>
17930         * Makefile.in (PLUGIN_HEADERS): Add version.h.
17932 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
17934         PR target/42511
17935         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
17936         note itself is not function_invariant_p.
17938 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
17940         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
17941         Do not add the DF_NOTE problem.
17942         * store-motion.c (execute_rtl_store_motion): Likewise.
17944 2010-01-07  Martin Jambor  <mjambor@suse.cz>
17946         PR tree-optimization/42157
17947         * tree-sra.c (compare_access_positions): Stabilize sort if both
17948         accesses have integer types, return zero immediately if they are the
17949         same.
17951 2010-01-06  Richard Henderson  <rth@redhat.com>
17953         PR middle-end/41883
17954         * haifa-sched.c (add_to_note_list): Merge into ...
17955         (concat_note_lists): ... here, and ...
17956         (unlink_other_notes, rm_other_notes): Merge into...
17957         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
17958         NOTE_INSN_EPILOGUE_BEG.
17960 2010-01-06  Richard Guenther  <rguenther@suse.de>
17962         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
17963         not inline regular functions into always-inline functions.
17965 2010-01-06  Nick Clifton  <nickc@redhat.com>
17967         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
17968         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
17969         used together.
17970         (OVERRIDE_OPTIONS): Delete.
17971         (OPTIMIZATION_OPTIONS): Define.
17972         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
17973         * config/rx/rx.c (rx_handle_option): Issue an error message if
17974         -mcpu=rx200 and -fpu are used together.
17975         (rx_set_optimization_options): New function.  Issue an error
17976         message if an optimization attribute attempts to reset the FPU/
17977         math optimization pairing.
17978         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
17979         * config/rx/rx.opt: Set the default to 32-bit doubles.
17980         * config/rx/t-rx: Add multilibs for -nofpu option.
17981         * doc/invoke.texi: Update documentation of RX options.
17983 2010-01-06  Richard Guenther  <rguenther@suse.de>
17985         * tree-ssa-pre.c (name_to_id): New global.
17986         (alloc_expression_id): Simplify SSA name handling.
17987         (lookup_expression_id): Likewise.
17988         (init_pre): Zero name_to_id.
17989         (fini_pre): Free it.
17991 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
17993         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
17995 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17997         PR target/42542
17998         * config/i386/sse.md (smaxv2di3): New.
17999         (umaxv2di3): Likewise.
18000         (sminv2di3): Likewise.
18001         (uminv2di3): Likewise.
18003 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18005         PR target/42564
18006         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18007         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18008         (legitimize_tls_address): Likewise.
18009         (sparc_tls_referenced_p): Likewise.
18010         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18011         and adjust calls to legitimize_pic_address.
18012         (legitimate_constant_p) Use sparc_tls_referenced_p.
18013         (legitimate_pic_operand_p): Likewise.
18014         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18015         (sparc_tls_symbol_ref_1): Delete.
18016         (sparc_tls_referenced_p): Make static, recognize specific patterns.
18017         (legitimize_tls_address): Make static, handle CONST patterns.
18018         (legitimize_pic_address): Make static, remove unused parameter and
18019         adjust recursive calls.
18020         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18021         and adjust call to legitimize_pic_address.
18022         (sparc_output_mi_thunk): Likewise.
18024 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
18025             H.J. Lu  <hongjiu.lu@intel.com>
18027         PR target/42542
18028         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18029         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18030         operands to make them signed.
18032         Revert:
18033         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18035         PR target/42542
18036         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18037         GTU to GT for V4SI and V2DI.
18039         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18040         (umin<mode>3): Removed.
18041         (uminv8hi3): New.
18042         (uminv4si3): Likewise.
18044 2010-01-05  Martin Jambor  <mjambor@suse.cz>
18046         PR tree-optimization/42462
18047         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18048         current_function_decl to helper functions and macros.
18050 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18052         PR bootstrap/41771
18053         * flags.h: Don't include real.h.
18054         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18055         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18056         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18057         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18058         * dominance.c: Update copyright.
18059         * gimple.c (walk_gimple_op): Remove inline.
18060         * tree-ssa-reassoc.c: Include real.h.
18061         * Makefile.in (FLAGS_H): Remove $(REAL_H).
18062         (tree-ssa-reassoc.o): Depend on $(REAL_H).
18064 2010-01-05  Nick Clifton  <nickc@redhat.com>
18066         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18067         register to push into the stack frame when the accumulator has to
18068         be saved during interrupts.
18070 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
18072         * doc/invoke.texi: Remove the documentation about option
18073         -Wunreachable-code.
18074         * common.opt (Wunreachable-code):  Preserved for backward
18075         compatibility.
18076         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18077         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18078         the backward compatibility flag section.
18080 2010-01-05  Richard Guenther  <rguenther@suse.de>
18082         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18084 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
18086         PR other/42611
18087         * cfgexpand.c (expand_one_var): Diagnose too large variables.
18089         PR tree-optimization/42508
18090         * tree-sra.c (convert_callers): Check for recursive call
18091         by comparing cgraph nodes instead of decls.
18092         (modify_function): Call ipa_modify_formal_parameters also
18093         on all same_body aliases.
18095         * cgraphunit.c (cgraph_materialize_all_clones): Compare
18096         cgraph nodes when checking for same_body aliases.
18098 2010-01-05  Richard Guenther  <rguenther@suse.de>
18100         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18101         allocation and lookup.
18102         (get_or_alloc_expr_for_constant): Likewise.
18103         (phi_translate): Sink allocation.
18105 2010-01-04  Richard Guenther  <rguenther@suse.de>
18107         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18108         a new entry only if needed.
18109         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18110         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18111         hashtable lookup.
18112         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18113         the result array.
18114         (phi_translate): Handle CONSTANTs early.
18116 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18118         PR tree-optimization/42398
18119         * tree-sra.c (struct access): Removed flag grp_different_types.
18120         (dump_access): Do not dump the removed flag.
18121         (sort_and_splice_var_accesses): Do not set the removed flag.
18122         (sra_modify_expr): Check for type compatibility directly.
18124 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18126         PR tree-optimization/42366
18127         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18128         edges with variable number of parameters.
18129         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18130         flag instead of asserting it.
18131         (ipa_read_node_info): Read uses_analysis_done flag.
18133 2010-01-04  Richard Guenther  <rguenther@suse.de>
18135         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18136         iterative_hash_* as intended.
18137         (vn_reference_compute_hash): Likewise.  Simplify hashing
18138         SSA names.
18139         (vn_reference_lookup_2): Likewise.
18140         (vn_nary_op_compute_hash): Likewise.
18141         (vn_phi_compute_hash): Likewise.
18142         (expressions_equal_p): Remove strange code.
18143         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18144         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
18145         (bitmap_insert_into_set_1): Take value-id as parameter.
18146         (add_to_value): Pass it.
18147         (bitmap_insert_into_set): Likewise.
18148         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
18150 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
18152         PR driver/42442
18153         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18154         (do_self_spec): For switches with SWITCH_IGNORE set set also
18155         SWITCH_IGNORE_PERMANENTLY.
18156         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18157         of SWITCH_IGNORE.
18159 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
18161         * lto-streamer-out.c (output_unreferenced_globals): Output the full
18162         tree of an unreferenced global var.
18164 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18166         PR target/42542
18167         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18168         GTU to GT for V4SI and V2DI.
18170         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18171         (umin<mode>3): Removed.
18172         (uminv8hi3): New.
18173         (uminv4si3): Likewise.
18175 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18177         PR lto/42581
18178         * collect2.c (main): Turn on trace in collect2 if -v is passed
18179         to gcc with LTO.
18181 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
18183         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
18184         description of expression operand.
18186 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
18188         * configure.ac: Add install-html to target_list for Make-hooks.
18189         * configure: Regenerate.
18190         * fortran/Make-lang.in (F95_HTMLFILES): New.
18191         (fortran.html): Use it.
18192         (fortran.install-html): New.
18193         * Makefile.in (install-html): Add lang.install-html.
18194         * java/Make-lang.in (JAVA_HTMLFILES): New.
18195         (java.html): Use it.
18196         (java.install-html): New.
18197         * objc/Make-lang.in (objc.install-html): New.
18198         * objcp/Make-lang.in (obj-c++.install-html): New.
18199         * cp/Make-lang.in (c++.install-html): New.
18200         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18201         * lto/Make-lang.in (lto.install-html): New.
18203 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18205         PR lto/42520
18206         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18208 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18210         PR rtl-optimization/41862
18211         * store-motion.c (store_killed_in_insn, compute_store_table,
18212         remove_reachable_equiv_notes, replace_store_insn,
18213         build_store_vectors): Ignore all DEBUG_INSNs.
18215 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18217         PR lto/41564
18218         * common.opt: Add dumpdir.
18220         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18221         isn't specified.
18222         (option_map): Add --dumpdir.
18224         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18226         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18228         * opts.c (decode_options): Try dump_dir_name first if
18229         dump_base_name isn't an absolute path.
18230         (common_handle_option): Handle OPT_dumpdir.
18232         * toplev.c (dump_dir_name): New.
18233         (print_switch_values): Also ignore -dumpdir.
18235         * toplev.h (dump_dir_name): New.
18237 2010-01-03  Richard Guenther  <rguenther@suse.de>
18239         PR tree-optimization/42589
18240         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18241         double-word expansion of bswap32.
18243 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18245         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18246         with BLOCK_FOR_INSN.
18247         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18248         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18249         noce_process_if_block): Likewise.
18250         * gcse.c (compute_local_properties, insert_expr_in_table,
18251         insert_set_in_table, canon_list_insert, find_avail_set,
18252         pre_insert_copy_insn): Likewise.
18254         * basic-block.h (BLOCK_NUM): Move from here...
18255         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18257 2010-01-03  Richard Guenther  <rguenther@suse.de>
18259         PR tree-optimization/42438
18260         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18261         contains_may_not_return_call flag.
18262         (BB_MAY_NOTRETURN): New.
18263         (valid_in_sets): Trapping nary operations are not valid
18264         in blocks that may not return.
18265         (insert_into_preds_of_block): Remove check for trapping expressions.
18266         (compute_avail): Compute also BB_MAY_NOTRETURN.
18268 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
18270         * doc/invoke.texi: Add 2010 to copyright years.
18272 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
18274         * config/sparc/sparc.c: Fix formatting nits.
18276 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
18277             Alexander Monakov  <amonakov@ispras.ru>
18279         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18281 2010-01-02  Richard Guenther  <rguenther@suse.de>
18283         PR middle-end/42577
18284         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18285         (simplify_switch_using_ranges): Mark to be removed edges
18286         as non-executable.
18288 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18290         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18292         * collect2.c (scan_libraries): Add missing argument in call to
18293         scan_prog_file.
18295 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
18297         PR target/42448
18298         * config/alpha/predicates.md (aligned_memory_operand): Return false
18299         for CQImode.
18300         (unaligned_memory_operand): Return true for CQImode.
18301         * config/alpha/alpha.c (get_aligned_mem): Assert that location
18302         doesn not cross aligned SImode word boundary.
18304 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
18306         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18307         Remove.
18308         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18309         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18311 2010-01-02  Richard Guenther  <rguenther@suse.de>
18313         PR lto/41597
18314         * toplev.c (compile_file): Emit LTO marker properly.  Change
18315         it to __gnu_lto_v1.
18316         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18318 2010-01-01  Richard Guenther  <rguenther@suse.de>
18320         PR debug/42455
18321         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18323 2010-01-01  Richard Guenther  <rguenther@suse.de>
18325         PR c/42570
18326         * c-decl.c (grokdeclarator): For zero-size arrays force
18327         structural equality checks as layout_type does.
18329 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18331         * builtins.c: Update copyright to 2010.
18333 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18335         PR lto/42531
18336         * lto-streamer-out.c (produce_asm): Revert the last change.
18337         (copy_function): Likewise.
18339         * lto-streamer.c (lto_get_section_name): Skip any leading
18340         asterisk in name.
18342 2010-01-01  Richard Guenther  <rguenther@suse.de>
18344         PR middle-end/42559
18345         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18346         for LABEL_DECLs.
18349 Copyright (C) 2010 Free Software Foundation, Inc.
18351 Copying and distribution of this file, with or without modification,
18352 are permitted in any medium without royalty provided the copyright
18353 notice and this notice are preserved.