* doc/gimple.texi (GIMPLE_DEBUG): Document.
[official-gcc.git] / gcc / ChangeLog
blobb42a64fdb3f183c2de2c7a0b8d246788e2a62812
1 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
3         * doc/gimple.texi (GIMPLE_DEBUG): Document.
4         * doc/rtl.texi (Debug Information): New node.
5         (NOTE_INSN_VAR_LOCATION): Document.
6         (debug_insn): Likewise.
7         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
9 2010-07-07  Jan Hubicka  <jh@suse.cz>
11         With parts by Richard Guenther
13         PR middle-end/44813
14         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
15         for functions passed by reference.
16         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
17         in memory when passed by reference.
18         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
19         beggining.
20         * ipa-split.c (split_function): Cleanup way return value is passed;
21         handle SSA DECL_BY_REFERENCE retvals.
22         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
23         DECL_BY_REFERENCE is set.
24         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
25         find_what_p_points_to): Handle RESULT_DECL.
26         * tree-inline.c (declare_return_variable): Get new entry_block argument;
27         when passing by reference ensure that RESULT_DECL is gimple_val.
28         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
29         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
31 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
33         PR rtl-optimization/44787
34         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
35         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
37 2010-07-06  Jan Hubicka  <jh@suse.cz>
39         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
40         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
41         with body can prevail.
42         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
43         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
44         * cgraph.c (cgraph_get_node_or_alias): New function.
45         * cgraph.h (cgraph_get_node_or_alias): Declare.
47 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
49         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
50         support.
51         (ix86_expand_prologue): Likewise.
52         (ix86_handle_fndecl_attribute): Likewise.
53         (ix86_asm_declare_function_name): New function for
54         ASM_DECLARE_FUNCTION_NAME.
55         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
56         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
57         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
58         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
59         * doc/extend.texi: Adjust documentation about ms_hook_prologue
60         attribute.
62 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
64         * config/i386/i386.md (immediate_operand): New mode attribute.
65         
66         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
67         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
68         using P mode iterator.
69         (pro_epilogue_adjust_stack_di_2): Rename from
70         pro_epilogue_adjust_stack_rex64_2.
72         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
74 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
76         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
77         through gen_mov_insv_1 function pointer.
78         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
79         gen_truncxf<mode>2 through gen_truncxf function pointer.
80         (remainder<mode>3): Ditto.
81         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
82         (allocate_stack): Call gen_allocate_stack_worker_64 or
83         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
84         function pointer.
85         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
86         function pointer.
88 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
90         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
91         operand constraint instead of <r><i>m.
93 2010-07-06  Richard Guenther  <rguenther@suse.de>
95         PR middle-end/44828
96         * convert.c (convert_to_integer): Watch out for overflowing
97         MULT_EXPR as well.
99 2010-07-05  Jan Hubicka  <jh@suse.cz>
101         * lto-streamer.c (write_symbol_vec): Rename to ...
102         (write_symbol) ... this one; write only symbol given and when
103         present in cache. Sanity check that what is defined is present
104         in cgraph/varpool with body/finalized decl.
105         (write_symbols_of_kind): Remove.
106         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
107         pairs to produce symtab.
108         (produce_asm_for_decls): Update call of produce_symtab; don't do so
109         when doing WPA streaming.
111 2010-07-05  Jan Hubicka  <jh@suse.cz>
113         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
114         function is still available to fold into.
116 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
118         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
119         * function.h (struct_function): Change type of local_decls field
120         to a VEC.
121         (add_local_decl): New function.
122         (FOR_EACH_LOCAL_DECL): New macro.
123         * cfgexpand.c (init_vars_expansion): Adjust for new type of
124         cfun->local_decls.
125         (estimated_stack_frame_size): Likewise.
126         (expand_used_vars): Likewise.
127         * cgraphbuild.c (build_cgraph_edges): Likewise.
128         * function.c (instantiate_decls_1): Likewise.
129         * ipa-struct-reorg.c (build_data_structure): Likewise.
130         * ipa-type-escape.c (analyze_function): Likewise.
131         * lto-streamer-in.c (input_function): Likewise.
132         * lto-streamer-out.c (output_function): Likewise.
133         * tree-ssa-live.c (remove_unused_locals): Likewise.
134         * tree.c (free_lang_data_in_decl): Likewise.
135         (find_decls_types_in_node): Likewise.
136         * omp-low.c (remove_exit_barrier): Likewise.
137         (expand_omp_taskreg): Likewise.
138         (list2chain): Rename to...
139         (vec2chain): ...this.  Adjust.
140         * cgraphunit.c (assemble_thunk): Call add_local_decl.
141         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
142         * gimple-low.c (record_vars_into): Likewise.
143         * tree-inline.c (remap_decls): Likewise.
144         (declare_return_variable): Likewise.
145         (declare_inline_vars): Likewise.
146         (copy_forbidden): Adjust for new type of cfun->local_decls.
147         (add_local_variables): New function.
148         (expand_call_inline): Call it.
149         (tree_function_versioning): Likewise.
151 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
153         AVX Programming Reference (June, 2010)
154         * config/i386/cpuid.h (bit_F16C): New.
155         (bit_RDRND): Likewise.
156         (bit_FSGSBASE): Likewise.
158         * config/i386/i386-builtin-types.def: Add
159         "DEF_FUNCTION_TYPE (UINT16)", function types for
160         float16 <-> float conversions and
161         "DEF_FUNCTION_TYPE (VOID, UINT64)".
163         * config/i386/i386-c.c (ix86_target_macros_internal): Support
164         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
165         OPTION_MASK_ISA_F16C.
167         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
168         (OPTION_MASK_ISA_RDRND_SET): Likewise.
169         (OPTION_MASK_ISA_F16C_SET): Likewise.
170         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
171         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
172         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
173         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
174         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
175         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
176         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
177         (override_options): Handle them.
178         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
179         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
180         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
181         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
182         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
183         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
184         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
185         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
186         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
187         (bdesc_args): Likewise.
188         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
189         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
190         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
191         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
192         Handle non-memory store.
194         * config/i386/i386.h (TARGET_FSGSBASE): New.
195         (TARGET_RDRND): Likewise.
196         (TARGET_F12C): Likewise.
198         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
199         (UNSPEC_VCVTPS2PH): Likewise.
200         (UNSPECV_RDFSBASE): Likewise.
201         (UNSPECV_RDGSBASE): Likewise.
202         (UNSPECV_WRFSBASE): Likewise.
203         (UNSPECV_WRGSBASE): Likewise.
204         (UNSPECV_RDRAND): Likewise.
205         (rdfsbase<mode>): Likewise.
206         (rdgsbase<mode>): Likewise.
207         (wrfsbase<mode>): Likewise.
208         (wrgsbase<mode>): Likewise.
209         (rdrand<mode>): Likewise.
211         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
213         * config/i386/immintrin.h (_rdrand_u16): New.
214         (_rdrand_u32): Likewise.
215         (_readfsbase_u32): Likewise.
216         (_readfsbase_u64): Likewise.
217         (_readgsbase_u32): Likewise.
218         (_readgsbase_u64): Likewise.
219         (_writefsbase_u32): Likewise.
220         (_writefsbase_u64): Likewise.
221         (_writegsbase_u32): Likewise.
222         (_writegsbase_u64): Likewise.
223         (_rdrand_u64): Likewise.
224         (_cvtsh_ss): Likewise.
225         (_mm_cvtph_ps): Likewise.
226         (_mm256_cvtph_ps): Likewise.
227         (_cvtss_sh): Likewise.
228         (_mm_cvtps_ph): Likewise.
229         (_mm256_cvtps_ph): Likewise.
231         * config/i386/sse.md (vcvtph2ps): New.
232         (*vcvtph2ps_load): Likewise.
233         (vcvtph2ps256): Likewise.
234         (vcvtps2ph): Likewise.
235         (*vcvtps2ph): Likewise.
236         (*vcvtps2ph_store): Likewise.
237         (vcvtps2ph256): Likewise.
239         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
241         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
243 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
245         PR bootstrap/44512
246         * genenums.c (main): Output include of insn-constants.h
247         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
249 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
251         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
252         (override_options): Initialize it.
253         (ix86_expand_prologue): Use it.
255 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
257         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
259 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
261         * double-int.h (fit_double_type): Remove declaration.
262         * double-int.c (fit_double_type): Remove function.
263         * tree.h (int_fits_type_p): Adjust prototype.
264         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
265         instead of fit_double_type.
266         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
267         instead of fit_double_type and build_int_cst_wide.
268         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
269         instead of fit_double_type and build_int_cst_wide.
270         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
271         of fit_double_type.
273 2010-07-05  Jan Hubicka  <jh@suse.cz>
275         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
276         in_other_partition.
277         * lto-cgraph.c (referenced_from_other_partition_p,
278         reachable_from_other_partition_p): Use in_other_partition flags.
279         (output_node, output_varpool_node): COMDAT nodes always have private
280         copies and thus are never used from other partition.
282 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
284         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
285         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
286         * config/ia64/ia64.c Include reload.h.
287         (ia64_memory_move_cost): New function.
288         (TARGET_MEMORY_MOVE_COST): Define.
289         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
290         memory_move_cost.
292 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
294         PR middle-end/42505
295         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
296         comments about cost model.
297         (try_add_cand_for):  Add second strategy for choosing initial set
298         based on original IVs, controlled by ORIGINALP argument.
299         (get_initial_solution): Add ORIGINALP argument.
300         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
301         (find_optimal_iv_set): Try two different strategies for choosing
302         the IV set, and return the one with lower cost.
304 2010-07-05  Richard Guenther  <rguenther@suse.de>
306         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
308 2010-07-05  Richard Guenther  <rguenther@suse.de>
310         * tree.c (reference_alias_ptr_type): New function.
311         * tree.h (reference_alias_ptr_type): Declare.
312         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
313         allow non-TARGET_MEM_REF new refs.
314         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
315         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
316         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
317         (create_mem_ref): Get alias pointer type.  Adjust calls to
318         create_mem_ref_raw.
319         (maybe_fold_tmr): Likewise.
320         * tree-flow.h (create_mem_ref): Adjust prototype.
322 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
324         PR c++/44808
325         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
326         *from_p is VAR_DECL.
328 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
330         * tree.h (build_call_list): Remove.
331         * tree.c (build_call_list): Remove.
333 2010-07-05  Richard Guenther  <rguenther@suse.de>
335         * double-int.h (double_int_sub): Declare.
336         * double-int.c (double_int_sub): New function.
337         * dwarf2out.c (field_byte_offset): Use it.
338         * fixed-value.c (do_fixed_add): Likewise.
339         (do_fixed_multiply): Likewise.
340         (do_fixed_divide): Likewise.
341         * tree-predcom.c (add_ref_to_chain): Likewise.
342         (determine_roots_comp): Likewise.
343         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
345 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
347         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
348         implementations.
350 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
352         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
353         * arm-modes.def (CC_NOTB): Don't define.
354         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
355         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
356         (LTUGEU): New code_iterator.
357         (cnb, optab): New corresponding code_attrs.
358         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
359         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
360         using LTUGEU.
361         (addsi3_carryin_shift_<optab>): Likewise.
362         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
363         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
364         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
365         (subsi3_compare): Renamed from subsi3_compare0_c.
366         Change CC_NOTB to CC.
367         (arm_subsi3_insn): Allow constants for operand 0.
368         (compare_scc peephole for eq case): New.
369         (compare_scc splitters): Change CC_NOTB to CC.
371 2010-07-05  Richard Guenther  <rguenther@suse.de>
373         * tree-ssa-loop-im.c (for_each_index): Do not handle
374         ALIGN_INDIRECT_REF.
375         (gen_lsm_tmp_name): Likewise.
376         * tree-dump.c (dequeue_and_dump): Likewise.
377         * tree-pretty-print.c (dump_generic_node): Likewise.
378         (op_code_prio): Likewise.
379         (op_symbol_code): Likewise.
380         * tree.c (staticp): Likewise.
381         (build1_stat): Likewise.
382         * tree.h (INDIRECT_REF_P): Likewise.
383         * fold-const.c (maybe_lvalue_p): Likewise.
384         (operand_equal_p): Likewise.
385         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
386         (ao_ref_init_from_vn_reference): Likewise.
387         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
388         (find_interesting_uses_address): Likewise.
389         * dwarf2out.c (loc_list_from_tree): Likewise.
390         * gimplify.c (gimplify_expr): Likewise.
391         * tree-eh.c (tree_could_trap_p): Likewise.
392         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
393         * cfgexpand.c (expand_debug_expr): Likewise.
394         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
395         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
396         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
397         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
398         * tree-ssa-operands.c (get_expr_operands): Likewise.
399         * expr.c (safe_from_p): Likewise.
400         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
401         * tree-vect-data-refs.c (vect_setup_realignment): Build
402         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
403         * tree-vect-stmts.c (vectorizable_load): Likewise.
404         * tree.def (ALIGN_INDIRECT_REF): Remove.
406 2010-07-05  Richard Guenther  <rguenther@suse.de>
408         PR tree-optimization/44784
409         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
410         for inserted stmts.
411         (find_or_generate_expression): Fix SCCVN insertion check.
413 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
415         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
416         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
417         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
418         directives.
420 2010-07-05  Ira Rosen  <irar@il.ibm.com>
422         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
423         statements that are not vectorized.
424         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
425         in INSIDE_COST.
427 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
429         PR bootstrap/44820
430         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
432 2010-07-05  Richard Guenther  <rguenther@suse.de>
434         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
435         RESULT_DECLs properly.
437 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
439         PR rtl-optimization/44695
440         * config/i386/i386.md (extract_code): Removed.
441         (<u>divmodqi4): Likewise.
442         (divmodqi4): New.
443         (udivmodqi4): Likewise.
444         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
445         (udivmodhiqi3): Likewise.
447 2010-07-04  Jan Hubicka  <jh@suse.cz>
449         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
451 2010-07-04  Jan Hubicka  <jh@suse.cz>
453         * cgraphunit.c (init_cgraph): Only initialize dump file if it
454         is not already initialized.
456 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
458         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
459         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
460         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
461         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
462         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
463         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
464         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
465         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
466         (sync_new_nand_optab): Redefine as macros.
467         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
468         Delete.
469         (direct_optab_index): New enum.
470         (direct_optab_d): New structure.
471         (direct_optab): New typedef.
472         (direct_optab_table): Declare.
473         (direct_optab_handler, set_direct_optab_handler): New functions.
474         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
475         (sync_lock_release_optab): New macros.
476         * optabs.c (direct_optab_table): New variable.
477         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
478         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
479         cmpstr_optab and cmpstrn_optab.
480         (emit_conditional_move): Likewise for movcc_optab.
481         (can_conditionally_move_p): Likewise for movcc_gen_code.
482         (init_insn_codes): Clear direct_optab_table.
483         (init_optabs): Don't initialize the new "direct optabs" here.
484         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
485         vcond_gen_code.
486         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
487         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
488         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
489         (expand_sync_operation): Likewise other sync_*_optabs.
490         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
491         to sync_compare_and_swap_optab.
492         (expand_sync_lock_test_and_set): Use direct_optab_handler for
493         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
494         to the names of both.
495         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
496         cmpstr_optab and cmpstrn_optab.
497         (expand_builtin_lock_release): Likewise sync_lock_release.
498         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
499         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
500         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
501         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
502         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
503         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
504         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
505         (sync_lock_test_and_set, sync_lock_release): Delete.
506         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
507         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
508         * genopinit.c (optabs): Use set_direct_optab_handler for the new
509         macro optabs.
510         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
511         the "optab" local variable.  Use direct_optab_handler for optab and
512         sync_compare_and_swap_optab.
513         * reload1.c (reload_in_optab, reload_out_optab): Delete.
514         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
515         reload_in_optab and reload_out_optab.
516         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
517         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
518         * config/pa/pa.c (pa_secondary_reload): Likewise.
519         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
520         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
521         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
522         (VMSupportsCS8_builtin): Likewise.
524 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
526         * optabs.h (optab_handlers): Change type of insn_code to int.
527         (optab_handler, set_optab_handler, convert_optab_handler)
528         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
529         CODE_FOR_nothing".
530         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
531         (init_insn_codes): Zero both the above arrays.
532         (init_optabs): Never call init_insn_codes first time around.
534 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
536         * optabs.h (optab_handler, convert_optab_handler): Turn into
537         inline functions that return an insn code.
538         (set_optab_handler, set_convert_optab_handler): New functions.
539         * builtins.c: Replace optab_handler(X)->insn_code with
540         optab_handler or set_optab_handler thoughout.  Likewise
541         convert_optab_handler(X)->insn_code with convert_optab_handler
542         and set_convert_optab_handler.
543         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
544         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
545         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
546         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
547         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
548         config/spu/spu.c: Likewise.
550 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
552         PR target/44531
553         * config.gcc (sh*-*-*): Use regular expressions instead of
554         the 'i' modifier for sed substitutions.
556 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
558         * gimple.c (gimple_body): Comments added.
560 2010-07-04  Richard Guenther  <rguenther@suse.de>
562         PR middle-end/44809
563         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
564         of an INDIRECT_REF.
566 2010-07-04  Richard Guenther  <rguenther@suse.de>
568         PR tree-optimization/44479
569         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
570         extra SSA name copy statements which preserves points-to
571         information.
572         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
573         Copy points-to information for all pointers.  Properly handle
574         MEM_REFs.
575         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
576         copy statements.
577         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
578         dependency.
580 2010-07-04  Richard Guenther  <rguenther@suse.de>
582         PR middle-end/44785
583         * tree-inline.c (initialize_inlined_parameters): Do not
584         re-use pointer-map slot over remap_type call.
586 2010-07-04  Richard Guenther  <rguenther@suse.de>
588         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
590 2010-07-04  Richard Guenther  <rguenther@suse.de>
592         PR tree-optimization/44656
593         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
594         again after value-replacing in the defintions lhs.
596 2010-07-04  Ira Rosen  <irar@il.ibm.com>
597             Revital Eres  <eres@il.ibm.com>
599         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
600         Document new arguments.
601         * doc/tm.texi: Regenerate.
602         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
603         Handle unaligned store.
604         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
605         * target.def (builtin_vectorization_cost): Add new arguments.
606         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
607         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
608         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
609         (vect_vfa_segment_size): Fix indentation.
610         * tree-vectorizer.h (struct _vect_peel_info): New.
611         (struct _vect_peel_extended_info): New.
612         (struct _loop_vec_info): Add new field for peeling hash table and a
613         macro for its access.
614         (VECT_MAX_COST): Define.
615         (vect_get_load_cost): Declare.
616         (vect_get_store_cost, vect_get_known_peeling_cost,
617         vect_get_single_scalar_iteraion_cost): Likewise.
618         (vect_supportable_dr_alignment): Add new argument.
619         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
620         field.
621         (destroy_loop_vec_info): Free peeling hash table.
622         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
623         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
624         vect_analyze_slp. Fix indentation.
625         (vect_get_single_scalar_iteraion_cost): New function.
626         (vect_get_known_peeling_cost): Likewise.
627         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
628         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
629         statement. Move outside cost calculation inside unknown peeling case.
630         Call vect_get_known_peeling_cost for known amount of peeling.
631         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
632         reference to the print message of forced alignment.
633         (vect_verify_datarefs_alignment): Update call to
634         vect_supportable_dr_alignment.
635         (vect_get_data_access_cost): New function.
636         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
637         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
638         vect_peeling_hash_choose_best_peeling): Likewise.
639         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
640         to store all the accesses in the loop and find best possible access to
641         align using peeling for known alignment case. For unknown alignment
642         check if stores are preferred or if peeling is worthy.
643         (vect_find_same_alignment_drs): Analyze pairs of loads too.
644         (vect_supportable_dr_alignment): Add new argument and check aligned
645         accesses according to it.
646         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
647         (cost_for_stmt): Call vect_get_stmt_cost.
648         (vect_model_simple_cost): Likewise.
649         (vect_model_store_cost): Call vect_get_stmt_cost. Call
650         vect_get_store_cost to calculate the cost of the statement.
651         (vect_get_store_cost): New function.
652         (vect_model_load_cost): Call vect_get_stmt_cost. Call
653         vect_get_load_cost to calculate the cost of the statement.
654         (vect_get_load_cost): New function.
655         (vectorizable_store): Update call to vect_supportable_dr_alignment.
656         (vectorizable_load): Likewise.
657         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
658         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
659         arguments. Handle unaligned store.
660         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
661         (rs6000_builtin_support_vector_misalignment): Return true for word and
662         double word alignments for VSX.
663         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
664         vect_supportable_dr_alignment and builtin_vectorization_cost.
666 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
668         PR target/44597
669         * config/pa/predicates.md (prefetch_cc_operand): Remove.
670         (prefetch_nocc_operand): Likewise.
671         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
672         (prefetch_20): New insn.
673         (prefetch_cc): Remove.
674         (prefetch_nocc): Likewise.
676 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
678         * expr.c (vector_mode_valid_p): Move to c-common.c.
679         * expr.h (vector_mode_valid_p): Do not declare here.
680         * system.h: Poison GCC_EXPR_H in front-ends.
681         * Makefile.in: Update dependencies.
683 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
685         PR target/44705
686         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
688 2010-07-03  Jan Hubicka  <jh@suse.cz>
690         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
691         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
692         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
693         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
694         Likewise.
696         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
697         Update timevars.V
698         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
699         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
700         TV_IPA_LTO_DECL_OUT): New.
701         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
703 2010-07-03  Jan Hubicka  <jh@suse.cz>
705         * ipa-inline.c (update_edge_key): Break out from ...
706         update_callers_keys): ... here;
707         (update_callee_keys): Update only the edges from caller to callee.
708         (update_all_calle_keys): Do what update_calle_keys did.
709         (decide_inlining_of_small_functions): Avoid recomputing of all
710         callees when badness increase.
712 2010-07-03  Jie Zhang  <jie@codesourcery.com>
714         * config/arm/arm.c (arm_attr_length_move_neon): New.
715         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
716         * config/arm/neon.md (define_mode_attr V_slen): Remove.
717         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
718         to compute length attribute.
720 2010-07-03  Jie Zhang  <jie@codesourcery.com>
722         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
723         as predicate for operand 1 and remove its constraint.
724         * config/arm/predicates.md (vfp_register_operand): New.
725         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
726         (*push_fp_multi): Likewise.
728 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
730         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
732 2010-07-03  Jan Hubicka  <jh@suse.cz>
734         * config/i386/i386.c (override_options): Revert accidental commit.
736 2010-07-02  Le-Chun Wu  <lcwu@google.com>
738         PR c++/44128
739         * doc/invoke.texi: Update documentation of -Wshadow.
741 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
742             Julian Brown  <julian@codesourcery.com>
743             Sandra Loosemore <sandra@codesourcery.com>
745         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
746         comparisons.  Adjust to take both operands.
747         (arm_select_cc_mode): Handle DImode comparisons.
748         (arm_gen_compare_reg): Generate a scratch register for DImode
749         comparisons which require one.  Use xor for Thumb equality checks.
750         (arm_const_double_by_immediates): New.
751         (arm_print_operand): Allow 'Q' and 'R' for constants.
752         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
753         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
754         arm_canonicalize_comparison.
755         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
756         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
757         prototype.
758         (arm_const_double_by_immediates): Declare.
759         * config/arm/constraints.md (Di): New constraint.
760         * config/arm/predicates.md (arm_immediate_di_operand)
761         (arm_di_operand, cmpdi_operand): New.
762         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
763         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
764         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
765         (cstoredi4): Handle non-Cirrus also.
767 2010-07-02  Julian Brown  <julian@codesourcery.com>
768             Sandra Loosemore <sandra@codesourcery.com>
770         PR target/43703
771         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
772         (smax<mode>3): Disable for NEON float modes when
773         flag_unsafe_math_optimizations is false.
774         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
775         (*mul<mode>3_neon)
776         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
777         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
778         for NEON float modes when flag_unsafe_math_optimizations is false.
779         (quad_halves_<code>v4sf): Only enable if
780         flag_unsafe_math_optimizations is true.
781         * doc/invoke.texi (ARM Options): Add note about floating point
782         vectorization requiring -funsafe-math-optimizations.
784 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
785             Julian Brown  <julian@codesourcery.com>
787         * config/arm/neon.md (UNSPEC_VABA): Delete.
788         (UNSPEC_VABAL): Delete.
789         (UNSPEC_VABS): Delete.
790         (UNSPEC_VMUL_N): Delete.
791         (adddi3_neon): New.
792         (subdi3_neon): New.
793         (mul<mode>3add<mode>_neon): Make the pattern named.
794         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
795         (neon_vadd<mode>): Replace with define_expand, and move the remaining
796         unspec parts...
797         (neon_vadd<mode>_unspec): ...to this.
798         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
799         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
800         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
801         (neon_vaba<mode>): Rewrite in terms of vabd.
802         (neon_vabal<mode>): Rewrite in terms of vabdl.
803         (neon_vabs<mode>): Rewrite without unspec.
804         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
805         (*arm_subdi3): Likewise.
806         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
807         No_op attribute to disable assembly output checks.
808         * config/arm/arm_neon.h: Regenerated.
809         * doc/arm-neon-intrinsics.texi: Regenerated.
811 2010-07-02  Jan Hubicka  <jh@suse.cz>
813         * ipa-split.c (split_function): For aggregate values, set the return
814         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
815         *<retval> = fncall.part ().
816         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
818 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
820         * config/arm/neon.md (UNSPEC_VAND): Delete.
821         (UNSPEC_VBIC): Delete.
822         (UNSPEC_VCLZ): Delete.
823         (UNSPEC_VCNT): Delete.
824         (UNSPEC_VEOR): Delete.
825         (UNSPEC_VORN): Delete.
826         (UNSPEC_VORR): Delete.
827         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
828         core registers too.
829         (anddi3_neon): Likewise.
830         (orndi3_neon): Likewise.
831         (bicdi3_neon): Likewise.
832         (xordi3_neon): Likewise.
833         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
834         rid of unspec and handle unused operand.
835         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
836         * config/arm/predicates.md (imm_for_neon_logic_operand):
837         Require TARGET_NEON.
838         (imm_for_neon_inv_logic_operand): Likewise.
839         * config/arm/arm.md (define_split for logical_binary_operator):
840         Disable for NEON registers.
841         (anddi3): Add new define_expand, and rename the insn.  Disable
842         this insn for NEON, where anddi3_neon now applies.
843         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
844         (iordi3): As for anddi3.
845         (xordi3): Likewise.
846         * config/arm/neon.ml (Vand): Split DImode variants and mark them
847         as No_op to disable testing for exact instruction match.
848         (Vorr): Likewise.
849         (Veor): Likewise.
850         (Vbic): Likewise.
851         (Vorn): Likewise.
852         * config/arm/arm_neon.h: Regenerated.
853         * doc/arm-neon-intrinsics.texi: Regenerated.
855 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
857         * expr.h (emit_stack_probe): Declare.
858         * explow.c (emit_stack_probe): Make global.
859         (anti_adjust_stack_and_probe): Fix comments.
860         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
861         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
862         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
863         * config/sparc/sparc.c: Include except.h.
864         (sparc_emit_probe_stack_range): New function.
865         (output_probe_stack_range): Likewise.
866         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
867         built-in stack checking is enabled.
868         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
869         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
870         (probe_stack_range): New insn.
872 2010-07-02  Richard Guenther  <rguenther@suse.de>
874         PR target/43958
875         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
876         for argument alignment.
878 2010-07-02  Jan Hubicka  <jh@suse.cz>
880         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
881         walk backwards from entry_bb to check only those basic block of header
882         that might lead to execution of split part.
883         (consider_split) ... here.
884         (find_return_bb): Allow assignment in return BB.
885         (find_retval): New.
886         (split_function): Fix name of cloned function; take care of updating
887         return value in return_bb containing move.
889 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
891         PR target/44771
892         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
893         used variable insn.
895 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
897         * implicit-zee.c (combine_reaching_defs): Fix long lines.
898         (is_set_with_extension_DI): Delete.
899         (struct zero_extend_info): New structure.
900         (add_removable_zero_extend): New function.
901         (find_removable_zero_extends): Use note_stores to find SETs.
902         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
904 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
906         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
907         is_miss_rate_acceptable. Pull total_positions computation
908         out of the loops.  Early return if miss_positions exceeds
909         the acceptable threshold.
910         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
911         is_miss_rate_acceptable after renaming of compute_miss_rate.
913 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
915         PR middle-end/44576
916         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
917         of 1000) for miss rate if the address diference is greater than or
918         equal to the cache line size (the two reference will never hit the
919         same cache line).
921 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
923         PR target/42835
924         * config/arm/arm-modes.def (CC_NOTB): New mode.
925         * config/arm/arm.c (get_arm_condition_code): Handle it.
926         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
927         * config/arm/arm.md (subsi3_compare0_c): New pattern.
928         (compare_scc): Now a define_and_split.  Add a number of extra
929         splitters before it.
931         PR target/42172
932         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
933         and ZERO_EXTEND.
934         (arm_rtx_costs_1): Likewise.
935         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
936         * config/arm/arm.md (is_arch6): New attribute.
937         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
938         extendqisi2): Tighten the code somewhat, avoiding invalid
939         RTL to occur in the expander patterns.
940         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
941         (thumb1_zero_extendhisi2_v6): Delete.
942         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
943         (thumb1_extendhisi2_v6): Delete.
944         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
945         (thumb1_extendqisi2_v6): Delete.
946         (zero_extendhisi2 for register input splitter): New.
947         (zero_extendqisi2 for register input splitter): New.
948         (thumb1_extendhisi2 for register input splitter): New.
949         (extendhisi2 for register input splitter): New.
950         (extendqisi2 for register input splitter): New.
951         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
952         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
953         and add support for a register alternative requiring a split.
954         (thumb1_zero_extendqisi2): Likewise.
955         (arm_zero_extendqisi2): Likewise.
956         (arm_extendhisi2): Likewise.
957         (arm_extendqisi2): Likewise.
959 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
961         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
962         instead of an unspec.
963         (neon_expand_vector_init): Likewise.
964         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
965         (UNSPEC_VDUP_LANE): Delete.
966         (UNSPEC VDUP_N): Delete.
967         (UNSPEC_VGET_HIGH): Delete.
968         (UNSPEC_VGET_LANE): Delete.
969         (UNSPEC_VGET_LOW): Delete.
970         (UNSPEC_VMVN): Delete.
971         (UNSPEC_VSET_LANE): Delete.
972         (V_double_vector_mode): New.
973         (vec_set<mode>_internal): Make code emitted match that for the
974         corresponding intrinsics.
975         (vec_setv2di_internal): Likewise.
976         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
977         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
978         (neon_vset_lane<mode>): Combine double and quad patterns and
979         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
980         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
981         (neon_vdup_n<mode>): Rewrite RTL without unspec.
982         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
983         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
984         with neon_vdup_lanev2di, adjusting the pattern from the latter
985         to be predicable for consistency.
986         (neon_vdup_lane<mode>_internal): New.
987         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
988         to avoid using an unspec.
989         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
990         (neon_vdup_lanev2di): Turn into a define_expand.
991         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
992         (neon_vget_high<mode>): Replace with....
993         (neon_vget_highv16qi): New pattern using canonical RTL.
994         (neon_vget_highv8hi): Likewise.
995         (neon_vget_highv4si): Likewise.
996         (neon_vget_highv4sf): Likewise.
997         (neon_vget_highv2di): Likewise.
998         (neon_vget_low<mode>): Replace with....
999         (neon_vget_lowv16qi): New pattern using canonical RTL.
1000         (neon_vget_lowv8hi): Likewise.
1001         (neon_vget_lowv4si): Likewise.
1002         (neon_vget_lowv4sf): Likewise.
1003         (neon_vget_lowv2di): Likewise.
1005         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1006         test for this emitting vmov.
1007         (Vset_lane): Likewise.
1008         (Vdup_n): Likewise.
1009         (Vmov_n): Likewise.
1011         * doc/arm-neon-intrinsics.texi: Regenerated.
1013 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1015         * config/arm/neon.md (vec_extractv2di): Correct error in register
1016         numbering to reconcile with neon_vget_lanev2di.
1018 2010-07-02  Richard Guenther  <rguenther@suse.de>
1020         * tree-ssa-structalias.c (pt_solution_set_var): New function.
1021         * tree-ssa-alias.h (pt_solution_set_var): Declare.
1022         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1023         points-to information.
1025 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
1027         * config/s390/s390.c (override_options): Adopt prefetching
1028         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1030 2010-07-02  Jan Hubicka  <jh@suse.cz>
1032         * df-problems.c (df_kill_notes): Do not collect dead  notes.
1033         (df_set_note): Just call add_reg_note.
1034         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1035         df_create_unused_note): Do not deal with lists of old notes.
1036         (df_note_bb_compute): Likewise.
1038 2010-07-02  Richard Guenther  <rguenther@suse.de>
1040         * tree-ssa-structalias.c (find_func_aliases): Handle
1041         pointer alignment via BIT_AND_EXPR.
1042         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1044 2010-07-02  Richard Guenther  <rguenther@suse.de>
1046         * tree-data-ref.c (initialize_data_dependence_relation): Handle
1047         mismatching number of dimensions properly.
1049 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1051         PR target/44707
1052         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1053         (lo_sum (high ...) ...) patterns generated by earlier passes.
1055 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1057         * doc/install.texi (Prerequisites): Document Perl requirement on
1058         Solaris 2.
1059         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1061 2010-07-02  Richard Guenther  <rguenther@suse.de>
1063         PR middle-end/44777
1064         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1066 2010-07-02  Jan Hubicka  <jh@suse.cz>
1068         PR middle-end/44706
1069         * predict.c (predict_paths_for_bb): Handle case when control dependence
1070         BB has only abnormal edges.
1072 2010-07-02  Richard Guenther  <rguenther@suse.de>
1074         PR tree-optimization/44748
1075         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1076         the embedded conversion in MEM_REFs.
1078 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
1080         * reload.c: Include toplev.h.
1081         * recog.c:  Likewise.
1082         * Makefile.in: Adjust dependencies.
1084 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
1086         PR debug/44694
1087         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1088         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1090 2010-07-01  Richard Guenther  <rguenther@suse.de>
1092         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1093         types for offsets.
1095 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1097         PR target/44732
1098         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1099         Fix argument types.
1101 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
1103         PR target/44727
1104         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1105         Make sure operand 0 dies.
1107 2010-07-01  Richard Guenther  <rguenther@suse.de>
1109         PR middle-end/42834
1110         PR middle-end/44468
1111         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1112         * doc/generic.texi (References to storage): Document MEM_REF.
1113         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1114         (print_call_name): Likewise.
1115         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1116         (build_simple_mem_ref_loc): New function.
1117         (mem_ref_offset): Likewise.
1118         * tree.h (build_simple_mem_ref_loc): Declare.
1119         (build_simple_mem_ref): Define.
1120         (mem_ref_offset): Declare.
1121         * fold-const.c: Include tree-flow.h.
1122         (operand_equal_p): Handle MEM_REF.
1123         (build_fold_addr_expr_with_type_loc): Likewise.
1124         (fold_comparison): Likewise.
1125         (fold_unary_loc): Fold
1126         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1127         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1128         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1129         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1130         (ptr_deref_may_alias_ref_p_1): Likewise.
1131         (ao_ref_base_alias_set): Properly differentiate base object for
1132         offset and TBAA.
1133         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1134         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1135         (indirect_refs_may_alias_p): Likewise.
1136         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
1137         chasing code.
1138         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1139         (call_may_clobber_ref_p_1): Likewise.
1140         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1141         * expr.c (expand_assignment): Handle MEM_REF.
1142         (store_expr): Handle MEM_REFs from STRING_CSTs.
1143         (store_field): If expanding a MEM_REF of a non-addressable
1144         decl use bitfield operations.
1145         (get_inner_reference): Handle MEM_REF.
1146         (expand_expr_addr_expr_1): Likewise.
1147         (expand_expr_real_1): Likewise.
1148         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1149         * alias.c (ao_ref_from_mem): Handle MEM_REF.
1150         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
1151         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1152         (dr_analyze_indices): Likewise.
1153         (dr_analyze_alias): Likewise.
1154         (object_address_invariant_in_loop_p): Likewise.
1155         * gimplify.c (mark_addressable): Handle MEM_REF.
1156         (gimplify_cond_expr): Build MEM_REFs.
1157         (gimplify_modify_expr_to_memcpy): Likewise.
1158         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1159         (gimple_fold_indirect_ref): Adjust.
1160         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
1161         * tree.def (MEM_REF): New tree code.
1162         * tree-dfa.c: Include toplev.h.
1163         (get_ref_base_and_extent): Handle MEM_REF.
1164         (get_addr_base_and_unit_offset): New function.
1165         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1166         * gimple-fold.c (may_propagate_address_into_dereference): Handle
1167         MEM_REF.
1168         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1169         accesses if the array has just one dimension.  Remove always true
1170         parameter.  Do not require type compatibility here.
1171         (maybe_fold_offset_to_component_ref): Remove.
1172         (maybe_fold_stmt_indirect): Remove.
1173         (maybe_fold_reference): Remove INDIRECT_REF handling.
1174         Fold back to non-MEM_REF.
1175         (maybe_fold_offset_to_address): Simplify.  Deal with type
1176         mismatches here.
1177         (maybe_fold_reference): Likewise.
1178         (maybe_fold_stmt_addition): Likewise.  Also handle
1179         &ARRAY + I in addition to &ARRAY[0] + I.
1180         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1181         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1182         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1183         * tree-ssa.c (useless_type_conversion_p): Make most pointer
1184         conversions useless.
1185         (warn_uninitialized_var): Handle MEM_REF.
1186         (maybe_rewrite_mem_ref_base): New function.
1187         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1188         to SSA form.
1189         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1190         INDIRECT_REF handling.
1191         (copy_tree_body_r): Handle MEM_REF.
1192         * gimple.c (is_gimple_addressable): Adjust.
1193         (is_gimple_address): Likewise.
1194         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1195         invariant base are invariant.
1196         (is_gimple_min_lval): Adjust.
1197         (is_gimple_mem_ref_addr): New function.
1198         (get_base_address): Handle MEM_REF.
1199         (count_ptr_derefs): Likewise.
1200         (get_base_loadstore): Likewise.
1201         * gimple.h (is_gimple_mem_ref_addr): Declare.
1202         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1203         * tree-cfg.c (verify_address): New function, split out from ...
1204         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
1205         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
1206         INDIRECT_REFs.
1207         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
1208         INDIRECT_REF.  Allow conversions.
1209         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1210         a register does not change its size.
1211         (verify_types_in_gimple_reference): Verify MEM_REF.
1212         (verify_gimple_assign_single): Disallow INDIRECT_REF.
1213         Handle MEM_REF.
1214         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1215         New.
1216         (mark_address_taken): Handle MEM_REF.
1217         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1218         (get_asm_expr_operands): Pass opf_not_non_addressable.
1219         (get_expr_operands): Handle opf_[not_]non_addressable.
1220         Handle MEM_REF.  Remove INDIRECT_REF handling.
1221         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1222         (search_for_addr_array): Likewise.
1223         (check_array_bounds): Likewise.
1224         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1225         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1226         (ref_always_accessed_p): Likewise.
1227         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
1228         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1229         Handle MEM_REF.
1230         * cgraphbuild.c (mark_load): Properly check for NULL result
1231         from get_base_address.
1232         (mark_store): Likewise.
1233         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1234         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1235         handling for MEM_REF.
1236         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1237         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1238         * builtins.c (stabilize_va_list_loc): Use the function ABI
1239         valist type if we couldn't canonicalize the argument type.
1240         Always dereference with the canonical va-list type.
1241         (maybe_emit_free_warning): Handle MEM_REF.
1242         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1243         memmove to memcpy.
1244         * builtins.c (fold_builtin_memory_op): Use ref-all types
1245         for all memcpy foldings.
1246         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1247         (build_outer_var_ref): Likewise.
1248         (scan_omp_1_op): Likewise.
1249         (lower_rec_input_clauses): Likewise.
1250         (lower_lastprivate_clauses): Likewise.
1251         (lower_reduction_clauses): Likewise.
1252         (lower_copyprivate_clauses): Likewise.
1253         (expand_omp_atomic_pipeline): Likewise.
1254         (expand_omp_atomic_mutex): Likewise.
1255         (create_task_copyfn): Likewise.
1256         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1257         Remove old union trick.  Initialize constant offsets.
1258         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
1259         INDIRECT_REF.  Init base_alias_set properly.
1260         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1261         (vn_reference_fold_indirect): Adjust for MEM_REFs.
1262         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
1263         for ARRAY_REFs.
1264         (may_insert): Remove.
1265         (visit_reference_op_load): Do not test may_insert.
1266         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1267         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1268         a field to store the constant offset this op applies.
1269         (run_scc_vn): Adjust prototype.
1270         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1271         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1272         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
1273         bother about volatile qualifiers on pointers.
1274         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1275         * tree-ssa-loop-ivopts.c
1276         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1277         (strip_offset_1): Likewise.
1278         (find_interesting_uses_address): Replace INDIRECT_REF handling with
1279         MEM_REF handling.
1280         (get_computation_cost_at): Likewise.
1281         * ipa-pure-const.c (check_op): Handle MEM_REF.
1282         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1283         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1284         and constants.
1285         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1286         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1287         (eliminate_local_variables_1): Likewise.
1288         (create_call_for_reduction_1): Likewise.
1289         (create_loads_for_reductions): Likewise.
1290         (create_loads_and_stores_for_name): Likewise.
1291         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1292         (ssa_accessed_in_tree): Handle MEM_REF.
1293         (ssa_accessed_in_assign_rhs): Likewise.
1294         (update_type_size): Likewise.
1295         (analyze_accesses_for_call_stmt): Likewise.
1296         (analyze_accesses_for_assign_stmt): Likewise.
1297         (transform_access_sites): Likewise.
1298         (transform_allocation_sites): Likewise.
1299         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1300         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1301         not handle INDIRECT_REF.
1302         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1303         (cond_store_replacement): Likewise.
1304         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1305         MEM_REF, no not handle INDIRECT_REFs.
1306         (insert_into_preds_of_block): Properly initialize avail.
1307         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
1308         for ARRAY_REFs.  Properly handle reference lookups that
1309         require a bit re-interpretation.
1310         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
1311         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1312         (build_ref_for_offset_1): Remove.
1313         (build_ref_for_offset): Build MEM_REFs.
1314         (gate_intra_sra): Disable for now.
1315         (sra_ipa_modify_expr): Handle MEM_REF.
1316         (ipa_early_sra_gate): Disable for now.
1317         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1318         MEM_REF handling.
1319         (disqualify_base_of_expr): Likewise.
1320         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1321         MEM_REF handling.
1322         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1323         Use mem_ref_offset.  Remove bogus folding.
1324         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1325         (make_fancy_name_1): Add support for MEM_REF.
1326         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1327         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1328         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1329         (compute_complex_ancestor_jump_func): Likewise.
1330         (ipa_analyze_virtual_call_uses): Likewise.
1331         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1332         INDIRECT_REF folding with more generalized MEM_REF folding.
1333         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1334         (forward_propagate_addr_into_variable_array_index): Also handle
1335         &ARRAY + I in addition to &ARRAY[0] + I.
1336         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1337         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1338         creates assignments with overlap.
1339         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1340         (get_frame_field): Likewise.
1341         (get_nonlocal_debug_decl): Likewise.
1342         (convert_nonlocal_reference_op): Likewise.
1343         (struct nesting_info): Add mem_refs pointer-set.
1344         (create_nesting_tree): Allocate it.
1345         (convert_local_reference_op): Insert to be folded mem-refs.
1346         (fold_mem_refs): New function.
1347         (finalize_nesting_tree_1): Perform defered folding of mem-refs
1348         (free_nesting_tree): Free the pointer-set.
1349         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1350         (vectorizable_load): Likewise.
1351         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1352         (propagate_with_phi): Likewise.
1353         * tree-object-size.c (addr_object_size): Handle MEM_REFs
1354         instead of INDIRECT_REFs.
1355         (compute_object_offset): Handle MEM_REF.
1356         (plus_stmt_object_size): Handle MEM_REF.
1357         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1358         for &MEM_REF.
1359         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1360         (symbol_marked_for_renaming): Likewise.
1361         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1362         (fold-const.o): Add $(TREE_FLOW_H).
1363         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1364         (find_func_clobbers): Likewise.
1365         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1366         (decompose_access): Likewise.
1367         (replace_field_acc): Likewise.
1368         (replace_field_access_stmt): Likewise.
1369         (insert_new_var_in_stmt): Likewise.
1370         (get_stmt_accesses): Likewise.
1371         (reorg_structs_drive): Disable.
1372         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1373         (ix86_canonical_va_list_type): Likewise.
1375 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1377         PR other/44566
1378         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1379         * target.def (struct gcc_target): Replace enum reg_class with
1380         reg_class_t in hook argument / return types.
1381         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1382         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1383         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1384         * targhooks.h (default_branch_target_register_class): Likewise.
1385         (default_ira_cover_classes, default_secondary_reload): Likewise.
1386         (default_memory_move_cost, default_register_move_cost): Likewise.
1387         * targhooks.c (default_branch_target_register_class): Likewise.
1388         (default_ira_cover_classes, default_secondary_reload): Likewise.
1389         (default_memory_move_cost, default_register_move_cost): Likewise.
1390         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1391         * bt-load.c (branch_target_load_optimize): Likewise.
1392         * ira.c (setup_cover_and_important_classes): Likewise.
1393         * ira-costs.c (copy_cost): Likewise.
1394         * reload1.c (emit_input_reload_insns): Likewise.
1395         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1396         * config/frv/frv.c (frv_secondary_reload): Likewise.
1397         * config/s390/s390.c (s390_secondary_reload): Likewise.
1398         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1399         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1400         (ix86_register_move_cost): Likewise.
1401         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1402         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1403         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1404         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1405         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1406         (rs6000_ira_cover_classes): Likewise.
1407         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1408         * config/picochip/picochip-protos.h (picochip_secondary_reload):
1409         Likewise.
1410         * config/pa/pa.c (pa_secondary_reload): Likewise.
1411         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1412         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1413         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1414         * doc/tm.texi: Regenerate.
1416 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1418         PR bootstrrap/44726
1419         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1420         use.
1421         (build_alias_set_optimal_p): Likewise.
1422         (build_base_obj_set_for_drs): Likewise.
1424 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1426         * target.def: Remove comment about licensing problems of function
1427         declarations.
1429         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
1430         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1431         * doc/tm.texi: Regenerate.
1433         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
1434         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1436         * target.def (enum_va_list_p): Use DEFHOOK.
1437         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1438         Rename ptype to ptree.
1439         * doc/tm.texi: Regenerate.
1441         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
1442         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1443         * doc/tm.texi: Regenerate.
1445         * target.def (memory_move_cost): Use DEFHOOK.
1446         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1447         Rename regclass AKA class to rclass.
1448         * doc/tm.texi: Regenerate.
1450         * target.def (pragma_parse): Use DEFHOOK.
1451         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1452         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1453         * doc/tm.texi: Regenerate.
1455         * target.def (pass_by_reference): Use DEFHOOK.
1456         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1457         * doc/tm.texi: Regenerate.
1459         * target.def (resolve_overloaded_builtin): Rename params to arglist.
1460         Use DEFHOOK.
1461         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1462         * doc/tm.texi: Regenerate.
1464         * target.def (return_pops_args): Use DEFHOOK.
1465         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1466         Rename stack-size to size.
1467         * doc/tm.texi: Regenerate.
1469         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
1470         last-sched_cycle to last_clock, cur_cycle to clock.
1471         * doc/tm.texi.in: Use @hook.
1472         * doc/tm.texi: Regenerate.
1474         * target.def (print_operand, print_operand_address): Update comment.
1475         (print_operand_punct_valid_p): Likewise.
1477 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1479         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1480         to rtl.h.
1481         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1482         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1483         * rtl-error.h: New.
1484         * regrename.c: Do not include toplev.h. Include rtl-error.h.
1485         * rtl-error.c: Likewise.
1486         * reload.c: Likewise.
1487         * recog.c:  Likewise.
1488         * sel-sched.c: Likewise.
1489         * function.c: Likewise.
1490         * reg-stack.c: Likewise.
1491         * cfgrtl.c: Likewise.
1492         * reload1.c: Likewise.
1493         * final.c: Include rtl-error.
1494         * Makefile.in: Adjust dependencies.
1496 2010-06-30  Jan Hubicka  <jh@suse.cz>
1498         PR middle-end/PR44706
1499         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1500         to return the value.
1502 2010-06-30  Michael Matz  <matz@suse.de>
1504         PR bootstrap/44699
1505         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1506         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1507         a gimple reg, attach the original VDEF to the last store in the
1508         sequence.
1510 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
1512         PR other/44034
1513         * config/darwin.c (darwin_override_options): Use renamed
1514         targetm.asm_out.emit_unwind_label.
1516 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1518         PR tree-optimization/39799
1519         * tree-inline.c (remap_ssa_name): Initialize variable only if
1520         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1522 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
1524         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1526 2010-06-30  Richard Guenther  <rguenther@suse.de>
1528         PR target/44722
1529         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1530         against oscillation with reverse peephole2.
1532 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1534         PR target/44721
1535         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1536         Fix last commit.
1538 2010-06-30  Nick Clifton  <nickc@redhat.com>
1540         * config/rx/rx-modes.def: New file.
1541         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1542         (CC_REGNUM): Define.
1543         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1544         register.
1545         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1546         (SELECT_CC_MODE): Define.
1547         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
1548         (reg:CC CC_REG) instead of (cc0).
1549         (attr "cc"): Delete.
1550         (cbranchsi4): Do not split compare and branch here. Instead move
1551         it to...
1552         (cbranchsi4_<code>): ... here.  New patterns.
1553         (cmpsi): Call rx-compare_redundant to find out if it is necessary
1554         to emit the compare instruction.
1555         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1556         cc_status flags.
1557         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1558         FIRST_PSEUDO_REGNUM.
1559         (rx_expand_prologue, rx_expand_epilogue): Likewise.
1560         (rx_notice_update_cc): Delete.
1561         (rx_cc_modes_compatible): New function.
1562         (flags_needed_for_conditional): New function.
1563         (flags_from_mode): New function.
1564         (rx_compare_redundant): New function - scans backwards through
1565         insn list to find out if condition flags are already set correctly.
1566         (TARGET_CC_MODES_COMPATIBLE): Define.
1567         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1569         * config/rx/rx.h (BRANCH_COST): Define.
1570         (REGISTER_MOVE_COST): Define.
1571         * config/rx/predicates (rx_source_operand): Allow all constant types.
1572         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1573         (tstsi4): New pattern.
1574         * config/rx/rx.c (rx_memory_move_cost): Define.
1575         (TARGET_MEMORY_MOVE_COST): Define.
1577 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1579         * tree.h (block_may_fallthru): Declare here.
1580         * tree-flow.h (block_may_fallthru): Do not declare here.
1581         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1582         bitmap.h
1583         * Makefile.in (c-typeck.o): Update dependencies.
1585 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
1587         PR debug/44694
1588         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1589         * cselib.c (cfa_base_preserved_regno): New static variable.
1590         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1591         of REGNO (cfa_base_preserved_val->locs->loc).
1592         (cselib_preserve_cfa_base_value): Add regno argument, set
1593         cfa_base_preserved_regno to it.
1594         (cselib_invalidate_regno): Allow removal of registers other than
1595         cfa_base_preserved_regno from cfa_base_preserved_val.
1596         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1597         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1598         of MEM addresses, if not on LHS.
1599         (reverse_op): Don't add reverse ops for cfa_base_rtx.
1600         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1602 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1604         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1605         static variables.
1606         (peep2_buf_position): New static function.
1607         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1608         peephole2_optimize): Use it.
1609         (peep2_attempt, peep2_update_life): New static functions, broken out
1610         of peephole2_optimize.
1611         (peep2_fill_buffer): New static function.
1612         (peephole2_optimize): Change the main loop to try to fill the buffer
1613         with the maximum number of insns before matching them against
1614         peepholes.  Use a forward scan.  Remove special case for targets with
1615         conditional execution.
1616         * genrecog.c (change_state): Delete dead code.
1617         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1618         Rewrite so as not to expect the second insn to have had a peephole
1619         applied yet.
1621 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1623         * genhooks.c (emit_findices): Cast field precision to int.
1624         (emit_documentation): Likewise.
1626 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
1628         PR tree-optimization/43801
1629         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1630         if old_decl was DECL_ONE_ONLY.
1632         PR debug/44668
1633         * dwarf2out.c (add_accessibility_attribute): New function.
1634         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1635         instead of adding DW_AT_accessibility manually.
1636         (gen_enumeration_type_die, gen_struct_or_union_type_die,
1637         gen_typedef_die): Use it.
1639 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1641         * vmsdbgout.c (full_name): Just output the file name if not native.
1643 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1645         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
1646         (funcnam_table): New static table.
1647         (funcnum_table): New static table.
1648         (write_rtnbeg): Write value saved in funcnum_table.
1649         (write_rtnend): Write value saved in funcnum_table.
1650         (vmsdbgout_begin_function): Save current function info in
1651         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
1652         (vmsdbgout_finish): Iterate over funcnum_table.
1654 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1656         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
1657         (vmsdbgout_type_decl): Declare
1658         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
1659         (FUNC_EPILOGUE_LABEL): New macro
1660         (vmsdbgout_begin_epilogue): New function.
1661         (vmsdbgout_type_decl): New function.
1663 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1665         * vmsdbg.h: Update copyright.
1667 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1669         * vmsdbg.h (DST_K_TBG): New DST constant.
1670         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
1671         (write_modbeg): Cast module_language to avoid warning.
1672         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
1674 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1676         PR other/44034
1677         * target.def, doc/tm.texi.in, genhooks.c: New files.
1678         * target.h: Instead of defining individual hook members,
1679         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
1680         include target.def.
1681         * target-def.h: Instead of defining individual hook initializers,
1682         include target-hooks-def.h.
1683         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
1684         targetm.live_on_entry -> targetm.extra_live_on_entry
1685         targetm.sched.md_finish ->targetm.sched.finish
1686         targetm.sched.md_init -> targetm.sched.init
1687         targetm.sched.md_init_global -> targetm.sched.init_global
1688         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
1689         targetm.asm_out.except_table_label ->
1690           targetm.asm_out.emit_except_table_label
1691         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
1692         targetm.target_help -> targetm.help
1693         targetm.vectorize.builtin_support_vector_misalignment ->
1694           targetm.vectorize.support_vector_misalignment
1695         targetm.file_start_app_off -> targetm.asm_file_start_app_off
1696         targetm.file_start_file_directive ->
1697          targetm.asm_file_start_file_directive
1698         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
1699         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
1700         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
1701         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
1702           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
1703         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
1704           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
1705         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
1706         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
1707         * Makefile.in (TARGET_H): Depend on target.def.
1708         (TARGET_DEF_H): Depend on target-hooks-def.h.
1709         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
1710         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
1711         * doc/tm.texi: Regenerate.
1713         * Makefile.in (s-tm-texi): Remove stray tab / rule.
1715         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
1716         (targetm.sched.init): Likewise.
1718 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1720         PR bootstrap/44713
1721         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
1722         (function_arg_advance_32): Const-ify TYPE parameter.
1723         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
1724         (ix86_function_arg_advance): Change type of NAMED to bool.
1725         (function_arg_32): Const-ify CUM and TYPE parameters.
1726         (function_arg_64): Likewise.  Change type of NAMED to bool.
1727         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
1728         to bool.
1729         (ix86_function_arg): Change type of NAMED to bool.
1730         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
1731         last argument as a bool.
1733 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1735         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
1736         (OVERRIDE_OPTIONS): Add note of obsolescence.
1737         Replace references with references to TARGET_OPTION_OVERRIDE.
1738         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
1739          the macro).
1740         * targhooks.c (default_target_option_override): New function.
1741         * targhooks.h (default_target_option_override): Declare.
1742         * target.h (struct gcc_target): Add override member to
1743         target_option member.
1744         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
1745         targetm.target_option.override call.
1746         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
1747         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
1749 2010-06-29  Jan Hubicka  <jh@suse.cz>
1751         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
1753 2010-06-29  Jan Hubicka  <jh@suse.cz>
1755         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
1756         unreachable.
1757         (rebuild_frequencies): New function.
1758         * predict.h (rebuild_frequencies): Declare.
1759         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
1760         entry block and edge reaching new_entry.
1761         (tree_function_versioning): When doing partial cloning, rebuild
1762         frequencies when done.
1763         * passes.c (execute_function_todo): Use rebild_frequencies.
1765 2010-06-29  Richard Guenther  <rguenther@suse.de>
1767         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
1768         * tree-flow.h (enum noalias_state): Remove.
1769         (struct var_ann_d): Remove noalias_state member.
1771 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1773         PR target/43902
1774         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
1775         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
1776         (maddhidi4): Likewise.
1778         Revert parts of the change for PR25130.
1779         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1780         MEM_ALIAS_SET.
1782 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1784         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
1785         targetm.calls.function_incoming_arg, and
1786         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
1787         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
1788         * target.h (struct gcc_target): Add function_arg_advance,
1789         function_arg, and function_incoming_arg fields.
1790         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
1791         (TARGET_FUNCTION_INCOMING_ARG): Define.
1792         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
1793         and TARGET_FUNCTION_INCOMING_ARG.
1794         * targhooks.h (default_function_arg_advance): Declare.
1795         (default_function_arg, default_function_incoming_arg): Declare.
1796         * targhooks.c (default_function_arg_advance): New function.
1797         (default_function_arg, default_function_incoming_arg): New function.
1798         * config/i386/i386.c (function_arg_advance): Rename to...
1799         (ix86_function_arg_advance): ...this.  Make static.
1800         (function_arg): Rename to...
1801         (ix86_function_arg): ...this.  Make static.
1802         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1803         (TARGET_FUNCTION_ARG): Define.
1804         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
1805         (FUNCTION_ARG): Delete.
1806         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
1807         (function_arg): Delete prototype.
1809 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1811         * reginfo.c (init_reg_sets_1): Adjust comments.
1812         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
1813         * calls.c (prepare_call_address): Likewise.
1814         (emit_call_1): Use targetm.calls.return_pops_args.
1815         (expand_call): Likewise.
1816         * function.c (assign_parms): Likewise.
1817         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
1818         * target.h (struct gcc_target) [struct calls]: Add
1819         return_pops_args field.
1820         * targhooks.h (default_return_pops_args): Declare.
1821         * targhooks.c (default_return_pops_args): Define.
1822         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
1823         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
1824         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
1825         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
1826         documentation.
1827         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
1828         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
1829         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
1830         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
1831         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
1832         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
1833         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
1834         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
1835         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
1836         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
1837         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
1838         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
1839         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
1840         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
1841         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
1842         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
1843         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
1844         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
1845         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
1846         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
1847         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
1848         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
1849         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
1850         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
1851         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
1852         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
1853         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
1854         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
1855         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
1856         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
1857         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
1858         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
1859         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
1860         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
1861         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
1862         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
1863         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
1864         * config/i386/i386.c (ix86_return_pops_args): Make static.
1865         Constify arguments.
1866         (TARGET_RETURN_POPS_ARGS): Define.
1867         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
1868         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
1869         (TARGET_RETURN_POPS_ARGS): Define.
1870         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1871         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
1872         (TARGET_RETURN_POPS_ARGS): Define.
1874 2010-06-29  Richard Guenther  <rguenther@suse.de>
1876         PR middle-end/44667
1877         * tree-inline.c (initialize_inlined_parameters): Make sure
1878         to remap the inlined parameter variable substitutions types.
1880 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1882         PR rtl-optimization/44659
1883         * combine.c (make_compound_operation) <SUBREG>: Do not return the
1884         result of force_to_mode if it partially re-expanded the compound.
1886 2010-06-28  Jan Hubicka  <jh@suse.cz>
1888         PR middle-end/44671
1889         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1890         RESULT_DECL.
1892 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
1894         * double-int.h (force_fit_type_double): Remove declaration.
1895         * double-int.c (force_fit_type_double): Move to tree.c.
1896         * tree.h (force_fit_type_double): Declare.
1897         * tree.h (force_fit_type_double): Moved from double-int.c. Use
1898         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1899         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1900         * convert.c (convert_to_pointer): Adjust call to
1901         force_fit_type_double.
1902         * tree-vrp.c (extract_range_from_assert,
1903         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1904         * fold-const.c: Update comment.
1905         (int_const_binop, fold_convert_const_int_from_int,
1906         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1907         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1908         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1909         round_up_loc): Adjust call to force_fit_type_double.
1911 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1913         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1915 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1917         * tree-sra.c (convert_callers): New parameter, change fndecls of
1918         recursive calls.
1919         (modify_function): Pass the old decl to convert_callers.
1921 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1923         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1924         ipa_check_create_node_params and ipa_initialize_node_params with
1925         checking asserts they are not necessary.
1927 2010-06-28  Jan Hubicka  <jh@suse.cz>
1929         PR tree-optimization/44687
1930         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1932 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1934         PR c++/44535
1935         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
1936         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
1937         instead of BINFO_BASE_BINFO.
1939 2010-06-28  Michael Matz  <matz@suse.de>
1941         PR middle-end/44592
1942         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
1943         proper VDEF chain for intermediate stores in the sequence.
1945 2010-06-28  Jan Hubicka  <jh@suse.cz>
1947         PR tree-optimization/44357
1948         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
1949         uninlinable functions.
1951 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1953         * config.gcc (powerpc*-*-*): Handle titan.
1954         * config/rs6000/rs6000.c (titan_cost): New costs.
1955         (rs6000_override_options): Add "titan" to processor_target_table.
1956         Add Titan to branch alignment logic.
1957         Correctly set rs6000_cost for titan.
1958         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
1959         * config/rs6000/titan.md: New file.
1960         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
1962 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1964         * tree-browser.c (TB_history_stack): Convert to a VEC.
1965         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
1966         (TB_history_prev): Likewise.
1968 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1970         * vec.h (vec_heap_free): Add parentheses around free.
1972 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1974         * system.h: Poison GCC_EXCEPT_H for front-end files.
1976         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
1977         langhook.
1978         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
1979         Define to NULL by default.
1980         * except.h: Define GCC_EXCEPT_H.
1981         (doing_eh): Remove prototype.
1982         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
1983         (lang_protect_cleanup_actions): Remove.
1984         * except.c (lang_protect_cleanup_actions): Remove.
1985         (doing_eh): Remove.
1986         (gen_eh_region): Don't check doing_eh here.
1987         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
1988         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
1989         instead of lang_protect_cleanup_actions.
1990         * omp-low.c (maybe_catch_exception): Likewise.
1991         * Makefile.in: Update dependencies.
1993 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
1995         * cgraph.h (struct varpool_node): new used_from_object_file flag.
1996         (struct cgraph_local_info): new used_from_object_file flag.
1997         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
1998         (cgraph_clone_node): initialize used_from_object_file.
1999         (cgraph_create_virtual_clone): initialize used_from_object_file.
2000         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2001         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2002         when compiling with -fwhole-program.
2003         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2004         internal resolver.
2005         * ipa.c (function_and_variable_visibility): Set externally_visible
2006         flag of varpool_node if used_from_object_file flag is set.
2007         (cgraph_externally_visible_p): check used_from_object_file flag.
2008         * doc/invoke.texi (-fwhole-program option): Change description of
2009         externally_visible attribute accordingly.
2010         * doc/extend.texi (externally_visible): Ditto.
2012 2010-06-27  Jan Hubicka  <jh@suse.cz>
2014         * params.def (max-inline-insns-auto): Default to 40.
2015         * doc/invoke.texi (max-inline-insns-auto): Document the change.
2017 2010-06-27  Jan Hubicka  <jh@suse.cz>
2019         PR middle-end/44671
2020         PR middle-end/44686
2021         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2022         signature change.
2023         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2024         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2026 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
2028         * target.h (struct gcc_target): Add register_move_cost field.
2029         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2030         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2031         * targhooks.c (default_register_move_cost): New function.
2032         * targhooks.h (default_register_move_cost): Declare function.
2033         * defaults.h (REGISTER_MOVE_COST): Delete.
2034         * ira-int.h (ira_register_move_cost): Update comment.
2035         * ira.c: (ira_register_move_cost): Update comment.
2036         * reload.h (register_move_cost): Declare.
2037         * reginfo.c (register_move_cost): New function.
2038         (move_cost): Update comment.
2039         (init_move_cost, memory_move_secondary_cost): Replace
2040         REGISTER_MOVE_COST with register_move_cost.
2041         * postreload.c (reload_cse_simplify_set): (Ditto.).
2042         * reload.c (find_valid_class, find_reloads): (Ditto.).
2043         * reload1.c (choose_reload_regs): (Ditto.).
2044         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2045         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2046         * doc/md.texi (can_create_pseudo_p): Update documentation.
2048         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2049         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2050         * config/i386/i386.h (ix86_memory_move_cost): Make static.
2051         (TARGET_MEMORY_MOVE_COST): Define.
2053         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2054         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2055         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2056         (TARGET_MEMORY_MOVE_COST): Define.
2058 2010-06-27  Richard Guenther  <rguenther@suse.de>
2060         PR tree-optimization/44683
2061         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2062         false edge from the inverted condition.
2064 2010-06-27  Richard Guenther  <rguenther@suse.de>
2066         PR middle-end/44684
2067         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2068         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2069         for register LHS.  Or non-store assignments.
2071 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2073         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2074         (sparc_emit_set_const64): Likewise.  Remove disabled code.
2075         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2076         (sparc_emit_set_const64): Likewise.
2078 2010-06-26  Catherine Moore  <clm@codesourcery.com>
2080         * config/mips/mips.md (alu_type): New attribute.
2081         (type): Infer type from alu_type.
2082         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2083         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2084         *subsi3_extended, negsi2, negdi2, *low<mode>,
2085         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2086         xor<mode>3, *nor<mode>3,
2087         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2088         *zero_extendhi_truncqi):  Set alu_type instead of type.
2090 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
2092         * config/alpha/alpha.c (alpha_need_linkage): Adjust
2093         splay_tree_new_ggc call.
2094         (alpha_use_linkage): Likewise.
2096 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2098         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2099         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2100         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2101         (static_specs): Remove switches_need_spaces.
2102         (process_command, do_self_spec): Hardcode handling "-o" instead of
2103         checking switches_need_spaces.
2104         * system.h (SWITCHES_NEED_SPACES): Poison.
2106 2010-06-26  Richard Guenther  <rguenther@suse.de>
2108         PR tree-optimization/44393
2109         * tree-loop-distribution.c (generate_loops_for_partition): Fix
2110         stmt removal and VOP renaming.
2111         (generate_memset_zero): Remove redundant stmt updating.
2112         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2113         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2115 2010-06-26  Jan Hubicka  <jh@suse.cz>
2117         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2118         edges comming from header are equivalent.
2119         (visit_bb): Handle PHIs correctly.
2120         * tree-inline.c (copy_phis_for_bb): Be able to copy
2121         PHI from entry edge.
2122         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2124 2010-06-26  Richard Guenther  <rguenther@suse.de>
2126         PR middle-end/44674
2127         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2128         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
2130 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2132         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2133         add_infile, alloc_switch): New.
2134         (process_command): Remove variable lang_n_infiles.  Process
2135         options in a single pass.  Use new functions for allocating
2136         infiles and switches arrays.  Properly skip operands of
2137         -Xpreprocessor and -Xassembler.
2139 2010-06-26  Jan Hubicka  <jh@suse.cz>
2141         PR middle-end/44671
2142         * cgraphunit.c (cgraph_function_versioning): Remove wrong
2143         cgraph_make_decl_local call; fix typo copying RTL data.
2145 2010-06-25  DJ Delorie  <dj@redhat.com>
2147         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2148         (m32c_output_aligned_common): Likewise.
2149         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2150         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2151         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2152         (m32c_register_pragmas): Register it.
2153         * config/m32c/m32c.c (m32c_get_pragma_address): New.
2154         (m32c_insert_attributes): Set #pragma address decls volatile.
2155         (pragma_entry_eq): New.
2156         (pragma_entry_hash): New.
2157         (m32c_note_pragma_address): New.
2158         (m32c_get_pragma_address): New.
2159         (m32c_output_aligned_common): New.
2160         * doc/extend.texi: Document the new pragma.
2162         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2163         also.
2164         * config/m32c/predicates.md (m32c_any_operand): Check the code
2165         instead of memory_operand so as to allow matching volatile MEMs.
2166         (m32c_nonimmediate_operand): Likewise.
2167         (mra_operand): Allow volatiles.
2169 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
2171         PR debug/44610
2172         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2173         address if the offset is unknown.
2175 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
2177         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2178         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2179         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2180         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2181         to ia64_start_function. Invoke it.
2182         * config/ia64/ia64.c (ia64_start_function): Call new function
2183         dwarf2out_vms_debug_main_pointer.
2185 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2187         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2188         statements computing the true predicate.
2190 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2192         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2193         to boolean_true_node.
2194         (reset_bb_predicate): New.
2195         (predicate_bbs): Call reset_bb_predicate.
2197 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2199         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2200         (tree_if_conversion): Returns true when something has been changed.
2201         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2202         changed something.
2204 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2206         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2207         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2208         * tree-if-conv.c: Include dbgcnt.h.
2209         (tree_if_conversion): Use if_conversion_tree to count the number of
2210         if-convertible loops.
2212 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
2214         * common.opt (fprefetch-loop-arrays): Re-define
2215         -fprefetch-loop-arrays as a tri-state option with the initial
2216         value of -1.
2217         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2218         pass only when flag_prefetch_loop_arrays > 0.
2219         * toplev.c (process_options): Note that, with tri-states,
2220         flag_prefetch_loop_arrays>0 means prefetching is enabled.
2221         * config/i386/i386.c (override_options): Enable prefetching at -O3
2222         for a set of CPUs that sw prefetching is helpful.
2223         (software_prefetching_beneficial_p): New.  Return TRUE if software
2224         prefetching is beneficial for the given CPU.
2226 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2228         PR rtl-optimization/44326
2229         * implicit-zee.c (find_removable_zero_extends): Replace
2230         INSN_P with NONDEBUG_INSN_P.
2232 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2234         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2235         (struct ipa_node_params): Removed the modification_analysis_done flag.
2236         (ipa_is_param_modified): Removed.
2237         (ipa_analyze_node): Declare.
2238         (ipa_compute_jump_functions): Remove declaration.
2239         (ipa_count_arguments): Likewise.
2240         (ipa_detect_param_modifications): Likewise.
2241         (ipa_analyze_params_uses): Likewise.
2242         * ipa-prop.c (struct param_analysis_info): New type.
2243         (visit_store_addr_for_mod_analysis): Removed.
2244         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2245         moved down in the file.
2246         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2247         (ipa_count_arguments): Made static.
2248         (mark_modified): New function.
2249         (is_parm_modified_before_call): New function.
2250         (compute_pass_through_member_ptrs): New parameter parms_info, call
2251         is_parm_modified_before_call instead of ipa_is_param_modified.
2252         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2253         it to compute_pass_through_member_ptrs.
2254         (ipa_compute_jump_functions): New parameter parms_info, pass it to
2255         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
2256         on the callee if it is analyzed.  Made static.
2257         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2258         is_parm_modified_before_call instead of ipa_is_param_modified.
2259         (ipa_analyze_call_uses): New parameter parms_info, pass it to
2260         ipa_analyze_indirect_call_uses.
2261         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2262         ipa_analyze_call_uses.
2263         (ipa_analyze_params_uses): New parameter parms_info, pass it to
2264         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
2265         (ipa_analyze_node): New function.
2266         (ipa_print_node_params): Do not dump the modified flag.
2267         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2268         it.  Do not stream the modified parameter flag.
2269         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2270         it.  Do not stream the modified parameter flag.
2271         * ipa-cp.c (ipcp_analyze_node): Removed.
2272         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2273         with only a call to ipa_analyze_node.
2274         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2275         node with only a call to ipa_analyze_node.
2277 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2279         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2281 2010-06-25  Jan Hubicka  <jh@suse.cz>
2283         * tree-pass.h (pass_split_functions): Declare.
2284         * opts.c (decode_options): Enable function splitting at -O2
2285         * timevar.def (TV_IPA_FNSPLIT): New macro.
2286         * ipa-split.c: New file.
2287         * common.opt (-fpartial-inlining): New flag.
2288         * Makefile.in (ipa-split.o): New object file.
2289         * passes.c (init_optimization_passes): Add ipa-split.
2290         * params.def (partial-inlining-entry-probability): New parameters.
2291         * doc/invoke.texi (-fpartial-inlining): New.
2293 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2295         PR 44665
2296         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2297         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2298         (gimplify_expr): Likewise.
2300 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2302         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2303         statements instead of bailing out on them.
2304         (ipa_analyze_indirect_call_uses): Do not require that loads from the
2305         parameter are in the same BB as the condition.  Update comments.
2307 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
2309         PR middle-end/43866
2310         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2311         true or always false, return NULL_TREE.
2312         (tree_unswitch_single_loop): Optimize conditions even when reaching
2313         max-unswitch-level parameter.  If num > 0, optimize first all conditions
2314         using entry checks, then do still reachable block discovery and consider
2315         only conditions in still reachable basic blocks in the loop.
2317         PR tree-optimization/44539
2318         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2319         the call doesn't have LHS, but has VDEF.
2321 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2323         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2324         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2325         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2326         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2327         * system.h (MODIFY_TARGET_NAME): Poison.
2329 2010-06-25  Alan Modra  <amodra@gmail.com>
2331         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2332         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2333         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2334         CMODEL_LARGE as default.
2335         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2336         (offsettable_ok_by_alignment): Delete.
2337         (rs6000_emit_move): Remove mcmodel=medium optimization.
2339 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2341         With large parts from Jim Wilson:
2342         PR target/43902
2343         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2344         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2345         * optabs.c (optab_for_tree_code): Likewise.
2346         (expand_widen_pattern_expr): Likewise.
2347         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2348         out of execute_optimize_widening_mul.
2349         (convert_plusminus_to_widen): New function.
2350         (execute_optimize_widening_mul): Use the two new functions.
2351         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2352         Remove code to generate widening multiply-accumulate.  Add support
2353         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2354         * gimple-pretty-print.c (dump_ternary_rhs): New function.
2355         (dump_gimple_assign): Call it when appropriate.
2356         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2357         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2358         (expand_gimple_stmt_1): Likewise.
2359         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2360         WIDEN_MULT_MINUS_EXPR.
2361         * tree-ssa-operands.c (get_expr_operands): Likewise.
2362         * tree-inline.c (estimate_operator_cost): Likewise.
2363         * gimple.c (extract_ops_from_tree_1): Renamed from
2364         extract_ops_from_tree.  Add new arg for a third operand; fill it.
2365         (gimple_build_assign_stat): Support operations with three operands.
2366         (gimple_build_assign_with_ops_stat): Likewise.
2367         (gimple_assign_set_rhs_from_tree): Likewise.
2368         (gimple_assign_set_rhs_with_ops_1): Renamed from
2369         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
2370         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2371         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2372         WIDEN_MULT_MINUS_EXPR.
2373         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2374         (extract_ops_from_tree_1): Adjust declaration.
2375         (gimple_assign_set_rhs_with_ops_1): Likewise.
2376         (gimple_build_assign_with_ops): Pass NULL for last operand.
2377         (gimple_build_assign_with_ops3): New macro.
2378         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2379         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2380         functions.
2381         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2382         (verify_gimple_assign): Call it.
2383         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2384         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2385         functions for dealing with three-operand statements.
2386         * tree.c (commutative_ternary_tree_code): New function.
2387         * tree.h (commutative_ternary_tree_code): Declare it.
2388         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2389         ternary statements.
2390         (gimple_assign_nonzero_warnv_p): Likewise.
2391         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2392         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2393         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
2394         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2395         (struct hashtable_expr): New member ternary in the union.
2396         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2397         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
2398         (iterative_hash_hashable_expr): Likewise.
2399         (print_expr_hash_elt): Handle EXPR_TERNARY.
2400         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2401         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2402         statements.  Handle GIMPLE_TERNARY_RHS.
2404 2010-06-25  Jan Hubicka  <jh@suse.cz>
2406         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2408 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
2410         PR c/44517
2411         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2412         parameters are not good.
2413         (c_parser_parameter_declaration): Error unknown type name if the type
2414         name can't start declaration specifiers.
2416 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2418         * gcc.c (translate_options): Don't mention +e in comment.
2419         (process_command): Don't handle +e specially.
2421 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2423         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2425         * ira-build.c (merge_hard_reg_conflicts): New function.
2426         (create_cap_allocno, copy_info_to_removed_store_destinations,
2427         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2428         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2429         (remove_unnecessary_allocnos, remove_low_level_allocnos)
2430         copy_nifo_to_removed_store_destination): Use them.
2431         * ira-lives.c (make_hard_regno_born): New function, split out of
2432         make_regno_born.
2433         (make_allocno_born): Likewise.
2434         (make_hard_regno_dead): New function, split out of make_regno_dead.
2435         (make_allocno_dead): Likewise.
2436         (inc_register_pressure): New function, split out of set_allocno_live.
2437         (dec_register_pressure): New function, split out of clear_allocno_live.
2438         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2439         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
2440         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2441         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
2442         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2443         mark_pseudo_regno_live.
2444         (process_bb_node_lives): Use mark_pseudo_regno_live,
2445         make_hard_regno_born and make_allocno_dead.
2446         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2447         set_allocno_live, clear_allocno_live): Delete functions.
2449         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2450         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2451         functions.
2452         (ira_flattening): Use ira_parent_allocno.
2453         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2454         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2456         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2457         statement.
2459         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2460         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2461         minmax_set_iter_cond, minmax_set_iter_next,
2462         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2463         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2464         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2465         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
2466         uses changed.
2468         * ira-int.h (struct live_range, live_range_t): Renamed from struct
2469         ira_allocno_live_range and allocno_live_range_t; all uses changed.
2470         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2471         All uses changed.
2473 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
2475         * thumb2.md (thumb2_tlobits_cbranch): Delete.
2476         (peephole2 to convert zero_extract/compare of single bit to
2477          lshift/compare): New.
2479 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
2481         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2482         recursive call and call to 'int_const_binop'.
2483         (build_range_check, fold_cond_expr_with_comparison, unextend,
2484         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2485         multiple_of_p): Adjust call to const_binop.
2487 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
2489         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2490         determine size of XFmode operand.
2491         (XFmode extended DFmode push splitter): Ditto.
2492         (XFmode extended SFmode push splitter): Ditto.
2494 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2496         PR target/44588
2497         * config/i386/i386.md (extract_code): New.
2498         (<u>divmodqi4): Likewise.
2499         (divmodhiqi3): Likewise.
2500         (udivmodhiqi3): Likewise.
2501         (<u>divqi3): Remvoved.
2503 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
2505         PR middle-end/44492
2506         * recog.h (struct recog_data): Add is_asm field.
2507         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2508         present in constraints of inline-asm operand and memory operand
2509         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2510         (extract_insn): Initialize recog_data.is_asm.
2511         * doc/md.texi (Constraints): Document operand side-effect rules.
2513 2010-06-24  Andi Kleen  <ak@linux.intel.com>
2515         * c-parser.c (c_parser_conditional_expression): Call
2516         warn_for_omitted_condop.
2517         * doc/invoke.texi: Document omitted condop warning.
2519 2010-06-24  Nick Clifton<nickc@redhat.com>
2521         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2522         insn in the sequence is a jump insn before setting its label.
2524 2010-06-24  Alan Modra  <amodra@gmail.com>
2526         * collect2.c (main): Match exactly --version and --help.
2528 2010-06-24  DJ Delorie  <dj@redhat.com>
2530         * config/m32c/m32c-pragma.c: Don't include rtl.h.
2532 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
2534         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2535         using X87MODEF mode iterator.
2536         (pushsf splitter): Macroize splitter using P mode iterator.
2537         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2538         mode iterator.
2540         (*movxf_internal): Rename from *movxf_integer.
2541         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2542         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2543         (*movdf_internal): Rename from *movdf_integer.
2544         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2545         (*movsf_internal): Rename from *movdf_1.
2547 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
2549         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2550         (const_gimple_seq_node): Removed typedefs.
2552         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2553         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2555 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2557         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2558         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2559         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2560         and CODE_FOR_vec_extract_lo_v4df.
2562         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2563         Changed to define_insn_and_split.
2564         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2565         (vec_extract_lo_v16hi): Likewise.
2566         (vec_extract_lo_v32qi): Likewise.
2567         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2568         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2570 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
2572         PR target/44640
2573         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2574         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2575         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2576         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2577         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2579         PR target/44640
2580         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2582         PR other/44644
2583         * df-core.c (struct df): Rename to df_d.
2584         * df.h (struct df): Likewise.
2585         * dse.h (struct df): Remove forward declaration.
2586         * recog.h (struct insn_data): Rename to:
2587         (struct_insn_data_d).  Adjusted all users.
2589 2010-06-23  Arnaud Charlet  <charlet@adacore.com
2591         PR ada/22220
2592         * doc/install.texi: Update requirements to build GNAT.
2594 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2596         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2597         enum type.
2598         (m68k_sched_attr_opx_type): Remove unreachable return.
2599         (m68k_sched_attr_opy_type): Likewise.
2600         (m68k_sched_attr_size): Likewise.
2601         (sched_get_opxy_mem_type): Likewise.
2602         (m68k_sched_attr_op_mem): Likewise.
2604 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2606         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2607         new statement and adjust VDEF only if necessary.  Remove superfluous
2608         call to maybe_clean_or_replace_eh_stmt.
2609         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2610         copy the flags.
2611         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2612         * tree-inline.c (copy_bb): ...and not there.
2614 2010-06-22  Cary Coutant  <ccoutant@google.com>
2616         * dwarf2out.c (is_nested_in_subprogram): New function.
2617         (should_move_die_to_comdat): Use it.
2618         (copy_ancestor_tree): Don't mark DIEs here.
2619         (copy_decls_walk): Start walk from root of newly-added tree;
2620         mark DIEs here instead.
2622 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2624         * config/i386/i386.md (unit): Also check sseishft1.
2626 2010-06-22  Jan Hubicka  <jh@suse.cz>
2628         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2629         enabled.
2631 2010-06-22  Jan Hubicka  <jh@suse.cz>
2633         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2634         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2635         Return true if something changed.
2636         * df.h (df_confluence_function_n): Return bool.
2637         * df-core.c (df_worklist_propagate_forward,
2638         df_worklist_propagate_backward): Track changes and ages.
2639         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
2640         track ages.
2641         * dse.c (dse_confluence_n): Return always true.
2643 2010-06-22  Jan Hubicka  <jh@suse.cz>
2645         * bitmap.c (bitmap_clear_bit): Micro optimize.
2647 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
2649         * config/i386/i386.md (SWI1248x): New mode iterator.
2650         (SWI48x): Ditto.
2651         (SWI12): Ditto.
2652         (SWI24): Ditto.
2654         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
2655         SWI1248x mode iterator.
2656         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
2657         using SWI124 mode iterator.
2658         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
2659         mode iterator.
2660         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
2661         *pushdi2_prologue_rex64 using P mode iterator.
2662         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
2663         using SWI48 mode iterator.
2664         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
2665         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
2666         using SWI1248x mode iterator.
2667         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
2668         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
2669         SWI48 mode iterator.
2670         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
2671         iterator.
2672         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
2673         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
2674         SWI12 mode iterator.
2675         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
2676         SWI12 mode iterator.
2677         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
2678         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
2679         SWI24 mode iterator.
2680         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
2681         SWI48 mode iterator.
2682         (mov<mode>_insn_1): New expander.
2683         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
2684         using SWI48x mode iterator.
2686         (*movoi_internal_avx): Rename from *movoi_internal.
2687         (*movti_internal_rex64): Rename from *movti_rex64.
2688         (*movti_internal_sse): Rename from *movti_sse.
2689         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
2690         (*movdi_internal): Rename from *movdi_2.
2691         (*movsi_internal): Rename from *movsi_1.
2692         (*movhi_internal): Rename from *movhi_1.
2693         (*movqi_internal): Rename from *movqi_1.
2695         (insv): Update the call to gen_movsi_insv_1 for rename.
2696         * config/i386/i386.c (promote_duplicated_reg): Ditto.
2698 2010-06-22  Jan Hubicka  <jh@suse.cz>
2700         * passes.c (execute_function_todo): Move call of statistics_fini_pass
2701         to ...
2702         (execute_todo) ... this one.
2704 2010-06-22  Alan Modra  <amodra@gmail.com>
2706         PR target/44364
2707         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2708         * caller-save.c (insert_restore, insert_save): Use non-validate
2709         form of adjust_address.
2711 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2713         PR target/39690
2714         * config/pa/pa.c (override_options): Disable
2715         -freorder-blocks-and-partition.
2717 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2719         PR target/44615
2720         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
2722         * config/i386/i386.md (type): Add sseishft1
2724         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
2725         (ppro_insn_load): Likewise.
2726         (ppro_insn_store): Likewise.
2727         (ppro_insn_both): Likewise.
2729         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
2730         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
2731         for type.
2732         (*vec_extractv2di_1_avx): Likewise.
2733         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
2734         type.  Remove atom_unit.
2735         (*vec_extractv2di_1_sse2): Likewise.
2737 2010-06-21  DJ Delorie  <dj@redhat.com>
2739         * diagnostic.h (diagnostic_classification_change_t): New.
2740         (diagnostic_context): Add history and push/pop list.
2741         (diagnostic_push_diagnostics): Declare.
2742         (diagnostic_pop_diagnostics): Declare.
2743         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
2744         from pragmas in a history chain instead of the global table.
2745         (diagnostic_push_diagnostics): New.
2746         (diagnostic_pop_diagnostics): New.
2747         (diagnostic_report_diagnostic): Scan history chain to find state
2748         of diagnostics as of the diagnostic location.
2749         * opts.c (set_option): Pass UNKNOWN_LOCATION to
2750         diagnostic_classify_diagnostic.
2751         (enable_warning_as_error): Likewise.
2752         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
2753         use in the history chain.
2754         * doc/extend.texi: Document pragma GCC diagnostic changes.
2756 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
2758         * dwarf2out.c (add_linkage_name): New function.  Don't add
2759         anything to DW_TAG_member DIEs.
2760         (add_name_and_src_coords_attributes): Use it.
2761         (gen_variable_die): Call it for C++ static data members if
2762         specification is DW_TAG_member.
2764         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
2765         C++ char16_t and char32_t.
2767         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
2768         * genattrtab.c: Include vecprim.h.
2769         (cached_attrs, cached_attr_count, attrs_seen_once,
2770         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
2771         attrs_cached_after): New variables.
2772         (find_attrs_to_cache): New function.
2773         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
2774         (write_test_expr): Add attrs_cached argument, return it too,
2775         attempt to cache non-const attributes used more than once in
2776         a single case handling.
2777         (write_attr_get): Use find_attrs_to_cache, for caching candidates
2778         emit cached_* variables.  Adjust write_attr_set callers.
2779         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
2780         to find attributes that should be cached in this block.  Adjust
2781         write_test_expr callers.
2782         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
2783         callers.
2784         (make_automaton_attrs): Adjust write_test_expr caller.
2786         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
2787         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
2788         (make_automaton_attrs): If find_tune_attr returns non-NULL,
2789         write separate internal_dfa_insn_code_* and insn_default_latency_*
2790         functions for each attribute's value and emit init_sched_attrs
2791         function and function pointers.
2792         * genattr.c (const_attrs, reservations): New variables.
2793         (gen_attr): Add const attributes to const_attrs vector.
2794         (check_tune_attr, find_tune_attr): New functions.
2795         (main): Add reservations to reservations vector.  If find_tune_attr
2796         returns true, add prototype for init_sched_attrs and make
2797         internal_dfa_insn_code and insn_default_latency function pointers,
2798         otherwise define init_sched_attrs as dummy macro.
2799         * cfgexpand.c: Include insn-attr.h.
2800         (gimple_expand_cfg): Call init_sched_attrs.
2802         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
2804         PR target/44575
2805         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
2806         va_arg from a set of register save slots into a temporary,
2807         if the container is bigger than type size, do the copying
2808         using smaller mode or using memcpy.
2810         PR bootstrap/44426
2811         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
2812         prototype.
2813         (sel_print_to_dot): Remove macro.
2814         (sel_print): Likewise.  New prototype.
2815         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
2816         (sel_print): New function.
2818 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2820         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
2821         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
2823 2010-06-21  Nick Clifton  <nickc@redhat.com>
2825         * config/rx/rx.h (PTRDIFF_TYPE): Define.
2826         (SMALL_REGISTER_CLASS): Define (to zero).
2827         (PRINT_OPERAND): Delete.
2828         (PRINT_OPERAND_ADDRESS): Delete.
2829         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
2830         (rx_print_operand_address): Delete prototype.
2831         * config/rx/rx.c (rx_print_operand): Make static.
2832         Allow %H and %L to handle CONST_DOUBLEs.
2833         (rx_print_operand_address): Make static.
2834         (rx_gen_move_template): Rename local variable 'template' to
2835         out_template.
2836         (rx_function_arg): Do not pass unknown sized objects in registers.
2837         (TARGET_PRINT_OPERAND): Define.
2838         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2840 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2842         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
2844 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
2846         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
2847         stack-alignment for simple leaf-functions.
2849 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2851         * doc/install.texi: Document bootstrap-lto.
2853 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2855         PR debug/44248
2856         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
2857         (input_function): Drop them here, if VTA is disabled.
2859 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
2861         PR target/44546
2862         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
2863         New predicate.
2864         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2865         ix86_swapped_fp_comparsion_operator instead of
2866         ix86_fp_comparison_operator.
2868         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2869         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2870         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2871         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2872         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2873         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2875 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
2877         PR other/32998
2878         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2879         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2880         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2881         (decode_cmdline_option): Update for this return value.  Set
2882         orig_option_with_args_text field.  Set arg field for unknown
2883         options.  Make static.
2884         (decode_cmdline_options_to_array): New.
2885         (prune_options): Update handling of find_opt return value.
2886         * opts.c (read_cmdline_option): Take decoded option.  Return void.
2887         (read_cmdline_options): Take decoded options.
2888         (decode_options): Add parameters for decoded options.  Use
2889         decode_cmdline_options_to_array.  Use decoded options for -O
2890         scan.  Use integral_argument for -O parameters.  Update call to
2891         read_cmdline_options.
2892         (enable_warning_as_error): Update handling of find_opt return value.
2893         * opts.h: Update comment on unknown options.
2894         (struct cl_decoded_option): Update comments on opt_index and arg.
2895         Add orig_option_with_args_text.
2896         (decode_cmdline_option): Remove.
2897         (decode_cmdline_options_to_array): Declare.
2898         (decode_options): Update prototype.
2899         * toplev.c (save_argv): Remove.
2900         (save_decoded_options, save_decoded_options_count): New.
2901         (read_integral_parameter): Remove.
2902         (print_switch_values): Use decoded options.
2903         (toplev_main): Don't set save_argv.  Update call to decode_options.
2904         * toplev.h (read_integral_parameter): Remove.
2905         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2907 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
2909         PR target/44072
2910         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2911         immediate.
2912         * constraints.md (Pw, Px): New constraints.
2913         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2915 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2917         * config/i386/sse.md (fma4modesuffixf4): Removed.
2918         (ssemodesuffixf2s): Likewise.
2919         (ssemodesuffixf4): Likewise.
2920         (ssemodesuffixf2c): Likewise.
2921         (ssescalarmodesuffix2s): Likewise.
2922         (avxmodesuffixf2c): Likewise.
2923         (ssemodesuffix): New.
2924         (ssescalarmodesuffix): Likewise.
2925         Update patterns with ssemodesuffix and ssescalarmodesuffix.
2927 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
2929         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2931 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2933         * stor-layout.c (debug_rli): Remove unused local variables.
2935 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2937         PR rtl-optimization/40900
2938         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
2939         original expression for later reuse.
2940         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
2941         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
2943 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
2945         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
2946         double_int_fits_in_uhwi_p): Implement as static inline.
2947         (double_int_xor): New inline function.
2948         (double_int_lrotate, double_int_rrotate, double_int_max,
2949         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2950         double_int_smin): Declare.
2951         (lrotate_double, rrotate_double): Remove declaration.
2952         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
2953         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
2954         (double_int_lrotate, double_int_rrotate, double_int_max,
2955         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2956         double_int_smin): New function.
2957         * fold-const.c (int_const_binop): Clean up, use double_int_*
2958         functions.
2959         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
2960         double_int_* and immed_double_int_const functions.
2962 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2964         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
2965         * function.c (types_used_by_cur_var_decl): Likewise.
2966         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
2968 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2970         * tree.h (record_layout_info): Change type of pending_statics field
2971         to a VEC.
2972         * stor-layout.c (start_record_layout): Store NULL into
2973         pending_statics.
2974         (debug_rli): Call debug_vec_tree instead of debug_tree.
2975         (place_field): Likewise.
2976         (finish_record_layout): Likewise.
2978 2010-06-18  Alan Modra  <amodra@gmail.com>
2980         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
2982 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2984         PR target/43740
2985         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
2986         for SET source operand from SET destination operand.
2988 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
2990         PR rtl-optimization/39871
2991         * reload1.c (init_eliminable_invariants): For flag_pic, disable
2992         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
2993         (function_invariant_p): Rule out a plus of frame or arg pointer with
2994         a SYMBOL_REF.
2995         * ira.c (find_reg_equiv_invariant_const): Likewise.
2997 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
2999         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3000         print_operand_address and puts to output the operand for CONST.
3002 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
3004         PR debug/44572
3005         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3006         hook.
3008 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3010         * v850-protos.h (print_operand): Delete.
3011         (print_operand_address): Delete.
3012         * v850.h (PRINT_OPERAND): Delete.
3013         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3014         (PRINT_OPERAND_ADDRESS): Delete.
3015         * v850.c (print_operand_address): Rename to...
3016         (v850_print_operand_address): ...this.  Make static. Call
3017         v850_print_operand.
3018         (print_operand): Rename to...
3019         (v850_print_operand): ...this.  Make static.  Call
3020         v850_print_operand_address.
3021         (v850_print_operand_punct_valid_p): New function.
3022         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3023         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3025 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3027         * config/sh/sh-protos.h (print_operand): Delete.
3028         (print_operand_address): Delete.
3029         * config/sh/sh.h (PRINT_OPERAND): Delete.
3030         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3031         (PRINT_OPERAND_ADDRESS): Delete.
3032         * config/sh/sh.c (sh_print_operand_address): Make static.
3033         (sh_print_operand): Make static.  Call sh_print_operand_address
3034         and sh_print_operand.
3035         (sh_print_operand_punct_valid_p): New function.
3036         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3037         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3039 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3041         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3042         (mcore_print_operand_address): Delete.
3043         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3044         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3045         (PRINT_OPERAND_ADDRESS): Delete.
3046         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3047         (mcore_print_operand): Make static.
3048         (mcore_print_operand_punct_valid_p): New function.
3049         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3050         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3052 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3054         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3055         (print_operand_address): Delete.
3056         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3057         (PRINT_OPERAND_ADDRESS): Delete.
3058         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3059         static.
3060         (m68hc11_print_operand): Make static.
3061         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3063 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3065         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3066         (m32r_print_operand_address): Delete.
3067         * config/m32r/m32r.h (m32r_punct_chars): Delete.
3068         (PRINT_OPERAND): Delete.
3069         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3070         (PRINT_OPERAND_ADDRESS): Delete.
3071         * config/m32r/m32r.c (m32r_punct_chars): Make static.
3072         (m32r_print_operand_address): Make static.
3073         (m32r_print_operand): Make static.
3074         (m32r_print_operand_punct_valid_p): New function.
3075         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3076         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3078 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3080         * config/iq2000/iq2000-protos.h (print_operand): Delete.
3081         (print_operand_address): Delete.
3082         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3083         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3084         (PRINT_OPERAND_ADDRESS): Delete.
3085         (iq2000_print_operand_punct): Delete.
3086         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3087         (iq2000_print_operand_address): Make static.
3088         (iq2000_print_operand): Make static.
3089         (iq2000_print_operand_punct_valid_p): New function.
3090         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3091         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3093 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3095         * config/frv/frv-protos.h (frv_print_operand): Delete.
3096         (frv_print_operand_address): Delete.
3097         * config/frv/frv.h (PRINT_OPERAND): Delete.
3098         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3099         (PRINT_OPERAND_ADDRESS): Delete.
3100         * config/frv/frv.c (frv_print_operand_address): Make static.
3101         (frv_print_operand): Make static.
3102         (frv_print_operand_punct_valid_p): New function.
3103         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3104         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3106 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3108         * tree.h (vec_member): Declare.
3109         * tree.c (vec_member): Define.
3111 2010-06-17  Richard Guenther  <rguenther@suse.de>
3113         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3114         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3116 2010-06-17  Richard Guenther  <rguenther@suse.de>
3118         * tree-inline.c (declare_return_variable): Remove bogus code.
3120 2010-06-17  Richard Guenther  <rguenther@suse.de>
3122         * gimplify.c (gimplify_bind_expr): Always promote complex
3123         and vector variables to registers if possible.
3125 2010-06-17  Richard Guenther  <rguenther@suse.de>
3127         * expr.c (get_inner_reference): Use double_int for bit_offset
3128         calculation.
3130 2010-06-16  DJ Delorie  <dj@redhat.com>
3132         * common.opt (-fstrict-volatile-bitfields): new.
3133         * doc/invoke.texi: Document it.
3134         * fold-const.c (optimize_bit_field_compare): For volatile
3135         bitfields, use the field's type to determine the mode, not the
3136         field's size.
3137         * expr.c (expand_assignment): Likewise.
3138         (get_inner_reference): Likewise.
3139         (expand_expr_real_1): Likewise.
3140         * expmed.c (store_fixed_bit_field): Likewise.
3141         (extract_bit_field_1): Likewise.
3142         (extract_fixed_bit_field): Likewise.
3144 2010-06-16  Richard Guenther  <rguenther@suse.de>
3146         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3148 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
3150         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3151         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3152         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3153         * debug.c: Likewise.
3154         * sdbout.c: Likewise.
3155         * vmsdbgout.c: Likewise.
3156         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3157         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3158         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3159         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3160         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3161         * dwarf2out.c (dw_fde_struct): New fields
3162         dw_fde_vms_{end,begin}_prologue.
3163         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3164         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3165         (dwarf2out_vms_end_prologue): New function.
3166         (dwarf2out_vms_begin_epilogue): New function.
3167         (dw_val_struct): New value dw_val_class_vms_delta.
3168         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3169         begin_epilogue for VMS.
3170         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3171         new static functions.
3172         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3173         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3174         static functions.
3175         (print_die): New case dw_val_class_vms_delta.
3176         (attr_checksum): Likewise.
3177         (same_dw_val_p: Likewise.
3178         (size_of_die): Likewise.
3179         (value_format): Likewise.
3180         (output_die): Likewise.
3181         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3182         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3183         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3184         dwarf2out_cfi_begin_epilogue
3185         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3187 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3189         * config/cris/cris-protos.h (cris_print_operand): Delete.
3190         (cris_print_operand_address): Delete.
3191         * config/cris/cris.h (PRINT_OPERAND): Delete.
3192         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3193         (PRINT_OPERAND_ADDRESS): Delete.
3194         * config/cris/cris.c (cris_print_operand_address): Make static.
3195         (cris_print_operand): Make static.
3196         (cris_print_operand_punct_valid_p): New function.
3197         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3198         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3200 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3202         * config/arm/arm-protos.h (arm_print_operand): Delete.
3203         (arm_print_operand_address): Delete.
3204         * config/arm/arm.h (PRINT_OPERAND): Delete.
3205         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3206         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3207         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3208         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
3209         (arm_print_operand): Make static.
3210         (arm_print_operand_punct_valid_p): New function.
3211         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3212         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3214 2010-06-16  Nick Clifton  <nickc@redhat.com>
3216         * config/rx/constraints.md (NEGint4): New constraint.
3217         * config/rx/rx.md (attr cc): Add set_zsc.
3218         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3219         initialised.
3220         (cmpsf): Likewise.
3221         (call_internal): Clobber the cc0 register.
3222         (call_value_internal): Likewise.
3223         (cstoresi4): Likewise.
3224         (movsieq): Likewise.
3225         (movsine): Likewise.
3226         (addsi3): Add alternative to handle small negative constants.
3227         (sunsi3): Likewise.
3228         (addsi3): Do not set the O bit in the cc0 register.
3229         (adddi3): Likewise.
3230         (subsi3): Likewise.
3231         (subdi3): Likewise.
3232         (andsi3): Reorder alternatives to prefer shorter forms.
3233         (mulsi3): Likewise.
3234         (iorsi3): Likewise.
3235         (negsi2): Note that the cc0 flags are set.
3236         (rotlsi3): Note that only the Z and S bits are set in cc0.
3237         (lshrsi3): Likewise.
3238         (ashlsi3): Likewise.
3239         (subsf3): Use %Q for the MEM operand.
3240         (fix_truncsfsi2): Likewise.
3241         (floatsisf2): Likewise.
3242         (bitset): Remove early clobber from destination.
3243         (bitset_in_memory): Likewise.
3244         (lrintsf2): Clobber the cc0 register.
3245         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3246         (rx_print_operand): Handle %N.
3248 2010-06-16  Jan Hubicka  <jh@suse.cz>
3250         * df-core.c (df_compact_blocks): Free problem_temps vector.
3252 2010-06-16  Martin Jambor  <mjambor@suse.cz>
3254         PR tree-optimization/43905
3255         * tree-sra.c: Include tree-inline.h.
3256         (create_abstract_origin): Removed.
3257         (modify_function): Version the call graph node instead of creating
3258         abstract origins and dealing with same_body aliases.
3259         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3260         function is versionable.
3261         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3263 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
3265         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3266         (CHOOSE_DYNAMIC_LINKER): Update.
3268 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
3270         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
3271         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3272         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3273         *prefetch_3dnow_rex.
3275 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
3277         * target.h (struct asm_out):Add declare_constant_name field.
3278         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3279         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3280         * output.h (default_asm_declare_constant_name): Declare.
3281         (assemble_label): Update prototype.
3282         * varasm.c (assemble_constant_contents): Use
3283         targetm.asm_out.declare_constant_name target hook.
3284         (assemble_label): Add 'file' argument.
3285         (default_asm_declare_constant_name): New function.
3286         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3287         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3288         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3290         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3291         * config/darwin.c (darwin_asm_declare_constant_name): New function.
3292         (machopic_output_indirection): Update assemble_label argument list.
3293         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3294         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3296 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
3298         PR middle-end/44391
3299         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3300         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
3302 2010-06-15  Richard Guenther  <rguenther@suse.de>
3304         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3306 2010-06-15  Paul Brook  <paul@codesourcery.com>
3308         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3309         hard-float ABI.
3311 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
3313         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3314         don't get a vector type for output.
3316 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
3318         PR fortran/44536
3319         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3320         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3321         (LANG_HOOKS_DECLS): Add it.
3322         * gimplify.c (omp_notice_variable): Call
3323         lang_hooks.decls.omp_report_decl.
3325 2010-06-15  Martin Jambor  <mjambor@suse.cz>
3327         PR lto/44464
3328         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3329         on the newly dead SSA name.
3331 2010-06-15  Alan Modra  <amodra@gmail.com>
3333         * doc/invoke.texi: Add mcmodel to powerpc options.
3334         * configure.ac: Add HAVE_LD_LARGE_TOC test.
3335         * configure: Regenerate.
3336         * config.in: Regenerate.
3337         * config/rs6000/linux64.opt (mcmodel): New.
3338         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3339         (TARGET_CMODEL, SET_CMODEL): Define.
3340         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3341         select CMODEL_MEDIUM default.
3342         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3343         (TARGET_CMODEL): Define default.
3344         * config/rs6000/rs6000.c (cmodel): New variable.
3345         (rs6000_explicit_options): Add cmodel field.
3346         (rs6000_handle_option): Handle -mcmodel.
3347         (create_TOC_reference): Add largetoc_reg param.  Generate high,
3348         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
3349         (rs6000_delegitimize_address): Recognise new toc reference rtl
3350         and minimal-toc rtl.
3351         (rs6000_legitimize_reload_address): Handle new toc references.
3352         (print_operand_address): Handle legitimate_constant_pool_address_p
3353         match before lo_sum.
3354         (rs6000_eliminate_indexed_memrefs): Tidy.
3355         (rs6000_emit_move): Tweak threshold for inlining constants.
3356         Keep rs6000_emit_allocate_stack large stack frame offsets
3357         loaded into r0 inline.
3358         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3359         (tocrel_base, tocrel_offset): New variables.
3360         (toc_relative_expr_p): Set them here.
3361         (print_operand_address): Skip over any offset on constant pool address.
3362         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3363         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3364         (offsettable_ok_by_alignment): New function.
3365         (rs6000_emit_move): Address suitably aligned local symbol_refs
3366         relative to the toc pointer for -mcmodel=medium.
3367         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
3368         strict param.  Allow lo_sum version of addressing.  Verify reg
3369         used for -mminimal-toc and -mcmodel != small.  Update all callers.
3370         * config/rs6000/constraints.md: Update for above change.
3371         * config/rs6000/predicates.md: Likewise.
3372         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3373         code.
3374         (tls_gd): Split for -mcmodel=medium/large.
3375         (tls_gd_high, tls_gd_low): New.
3376         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3377         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3378         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3379         (largetoc_high, largetoc_low): New.
3380         (cmptf_internal2): Add clobber.
3381         * config/rs6000/rs6000-protos.h: Update.
3383 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
3385         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
3386         true if no prefetch is going to be generated for a given group.
3387         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3388         estimate the prefetch_count.
3389         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3390         prefetch count by considering the unroll_factor and prefetch_mod
3391         for is_loop_prefetching_profitable.
3393 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
3395         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3396         anything if the argument is not a MEM.
3398 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3400         PR debug/43650
3401         PR debug/44181
3402         PR debug/44247
3403         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3404         debug stmts.
3405         (canonicalize_loop_ivs): Likewise.
3407 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3409         PR debug/43656
3410         * haifa-sched.c (setup_insn_reg_pressure_info,
3411         update_register_pressure): Reject debug insns.
3412         (ready_sort): Don't setup reg pressure for debug insns.
3413         (schedule_insn): Don't update reg pressure for debug insns.
3415 2010-06-14  Richard Guenther  <rguenther@suse.de>
3417         * lto-streamer.c (cached_bp): Remove.
3418         (bitpack_delete): Likewise.
3419         (bitpack_create): Likewise.
3420         (bp_get_next_word): Likewise.
3421         (bp_pack_value, bp_unpack_value): Move ...
3422         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3423         Re-implement.
3424         (struct bitpack_d): Likewise.
3425         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3426         New inline functions.
3427         * lto-streamer-out.c (lto_output_bitpack): Remove.
3428         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3429         (pack_value_fields): Adjust.
3430         (lto_write_tree): Likewise.
3431         (output_gimple_stmt): Likewise.
3432         (output_function): Likewise.
3433         * lto-streamer-in.c (input_gimple_stmt): Adjust.
3434         (input_function): Likewise.
3435         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3436         (lto_input_bitpack): Remove.
3437         (lto_materialize_tree): Adjust.
3438         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3439         * lto-cgraph.c (lto_output_edge): Adjust.
3440         (lto_output_node): Likewise.
3441         (lto_output_varpool_node): Likewise.
3442         (lto_output_ref): Likewise.
3443         (input_node): Likewise.
3444         (input_varpool_node): Likewise.
3445         (input_ref): Likewise.
3446         (input_edge): Likewise.
3447         (output_node_opt_summary): Likewise.
3448         (input_node_opt_summary): Likewise.
3449         * ipa-pure-const.c (pure_const_write_summary): Likewise.
3450         (pure_const_read_summary): Likewise.
3451         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3452         (ipa_read_indirect_edge_info): Likewise.
3453         (ipa_write_node_info): Likewise.
3454         (ipa_read_node_info): Likewise.
3456 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3458         PR target/44534
3459         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3460         (vec_extract_lo_v16hi): Likewise.
3461         (vec_extract_lo_v32qi): Likewise.
3463 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3465         PR bootstrap/44426
3466         * tree.h (build_call_expr): Don't define as vararg macro, instead
3467         add a prototype.
3468         * builtins.c (build_call_nofold): Remove.
3469         (expand_builtin_int_roundingfn, expand_builtin_pow,
3470         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3471         expand_builtin_memset_args, expand_builtin_strcmp,
3472         expand_builtin_strncmp, expand_builtin_memory_chk): Use
3473         build_call_nofold_loc instead of build_call_nofold.
3474         (build_call_expr): New function.
3476         PR tree-optimization/44508
3477         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3478         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3479         don't eliminate trivially dead stmts.
3480         * tree-vrp.c (vrp_finalize): Pass false as last argument
3481         to substitute_and_fold.
3482         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3483         to substitute_and_fold.
3484         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3486         PR bootstrap/44509
3487         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3489 2010-06-14  Ira Rosen  <irar@il.ibm.com>
3491         PR tree-optimization/44507
3492         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3493         to build initial vector for BIT_AND_EXPR.
3494         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3496 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3498         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3499         adjust z10prop set_attr.
3501 2010-06-13  Jan Hubicka  <jh@suse.cz>
3503         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3504         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3505         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3506         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3507         datastructure checks into checking asserts.
3508         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3509         * tree-ssa-sccvn.c (VN_INFO): Likewise.
3510         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3511         df_ref_create_structure): Likewise.
3512         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3513         pool_free): Use gcc_checking_assert.
3514         * alias.c (get_alias_set): Likewise.
3515         * var-tracking.c (variable_htab_free, shared_hash_copy,
3516         canonicalize_values_mark, variable_merge_over_cur): Likewise.
3517         * lto-streamer.c (bp_unpack_value): Likewise.
3519 2010-06-13  Richard Guenther  <rguenther@suse.de>
3521         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3522         Do not stream but initialize TYPE_CANONICAL to NULL.
3523         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3524         * gimple.c (gimple_types_compatible_p): Disregard
3525         TYPE_STRUCTURAL_EQUALITY_P.
3526         (gimple_register_type): Use TYPE_CANONICAL as cache.
3527         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3528         before registering common types.
3529         * config/i386/i386.c (ix86_function_arg_boundary): Do not
3530         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3531         * tree.h (TYPE_CANONICAL): Clarify documentation.
3533 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
3535         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3536         LIBCALL_VALUE): Remove macros.
3537         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3538         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3539         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3540         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3541         (ia64_function_value): Make static. Handle receiving the function
3542         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3544 2010-06-12  Jan Hubicka  <jh@suse.cz>
3546         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3547         at correct place.
3549 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
3551         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3553 2010-06-12  Jan Hubicka  <jh@suse.cz>
3555         * df-core.c (df_clear_bb_info): New function.
3556         (df_set_blocks): bb_info is always allocated.
3557         (df_get_bb_info): Use block_info_elt_size.
3558         (df_set_bb_info): Likewise.
3559         (df_compact_blocks): Update for new block_info.
3560         (grow_bb_info): New function.
3561         * df-problems.c (df_grow_bb_info): Move to df-core.c
3562         (df_rd_set_bb_info): Remove.
3563         (df_rd_free_bb_info): Do not free block pool.
3564         (df_rd_alloc): Do not create pool, use check for
3565         obstack presence instead of NULL pointer for new blocks.
3566         (df_rd_free): DO not free alloc pool; clear block_info.
3567         (problem_RD): Add size of block info structure.
3568         (df_lr_set_bb_info): Remove.
3569         (df_lr_free_bb_info): Do not free block pool.
3570         (df_lr_alloc): Do not create pool, use check for
3571         obstack presence instead of NULL pointer for new blocks.
3572         (df_lr_free): DO not free alloc pool; clear block_info.
3573         (problem_LR): Add size of block info structure.
3574         (df_live_set_bb_info): Remove.
3575         (df_live_free_bb_info): Do not free block pool.
3576         (df_live_alloc): Do not create pool, use check for
3577         obstack presence instead of NULL pointer for new blocks.
3578         (df_live_free): DO not free alloc pool; clear block_info.
3579         (problem_LIVE): Add size of block info structure.
3580         (problem_CHAIN): Add size of block info structure.
3581         (df_byte_lr_set_bb_info): Remove.
3582         (df_byte_lr_free_bb_info): Do not free block pool.
3583         (df_byte_lr_alloc): Do not create pool, use check for
3584         obstack presence instead of NULL pointer for new blocks.
3585         (df_byte_lr_free): DO not free alloc pool; clear block_info.
3586         (problem_BYTE_LR): Add size of block info structure.
3587         (problem_NOTE): Add size of block info structure.
3588         (df_byte_MD_set_bb_info): Remove.
3589         (df_byte_MD_free_bb_info): Do not free block pool.
3590         (df_byte_MD_alloc): Do not create pool, use check for
3591         obstack presence instead of NULL pointer for new blocks.
3592         (df_byte_MD_free): DO not free alloc pool; clear block_info.
3593         (problem_BD): Add size of block info structure.
3594         * df-scan.c (df_scan_free_internal): Free block pool.
3595         (df_scan_set_bb_info): Remove.
3596         (df_scan_free_bb_info): Check for artificial_defs instead
3597         of bb_info being non-NULL.
3598         (df_scan_alloc): DO not create df_scan_block pool.
3599         (problem_SCAN): Set size of block info.
3600         (df_bb_refs_record): Do not allocate bb_info.
3601         * df.h (df_problem): Add block_info_elt_size.
3602         (struct dataflow): Change block_info to void *.
3603         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3604         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3605         in-line structures.
3607 2010-06-12  Jan Hubicka  <jh@suse.cz>
3609         PR tree-optimize/44485
3610         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3611         containing use of return value of noreturn function.
3613 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
3615         * targhooks.c (default_function_value): Don't use
3616         FUNCTION_OUTGOING_VALUE.
3617         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3618         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3620 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
3622         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3623         Add crtfastmath.o to extra_parts.
3624         * config/mips/crtfastmath.c: New.
3625         * config/mips/linux.h (ENDFILE_SPEC): New.
3627 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
3629         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3630         old_type in parameter.
3631         (gcc_type_for_value): Update call to gcc_type_for_interval.
3632         (compute_type_for_level_1): Renamed compute_type_for_level.
3633         Update call to gcc_type_for_interval.
3635 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3637         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3638         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
3640 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3642         * opts-common.c: Include options.h.
3643         (integral_argument): Move from opts.c.
3644         (decode_cmdline_option): New.  Based on read_cmdline_option.
3645         * opts.c (integral_argument): Move to opts-common.c.
3646         (read_cmdline_option): Move most contents to
3647         decode_cmdline_option.  Use %qs in diagnostics.
3648         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
3649         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
3650         decode_cmdline_option): New.
3652 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3654         PR target/44481
3655         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
3656         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
3657         (partiysi2_cmp): Ditto.
3658         (*partiyhi2_cmp): Ditto.
3659         (*parityqi2_cmp): Remove.
3661 2010-06-11  Jan Hubicka  <jh@suse.cz>
3663         * bitmap.h (bmp_iter_next_bit): New.
3664         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
3666 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
3667             Eric Botcazou  <ebotcazou@adacore.com>
3669         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
3670         computed cost.
3672 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3674         * config/i386/i386.md (unspec): New define_c_enum.
3675         (unspecv): Ditto.
3677 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
3679         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
3681 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
3683         PR middle-end/44483
3684         * tree-if-conv.c (bb_predicate_s): New struct.
3685         (bb_predicate_p): New.
3686         (bb_has_predicate): New.
3687         (bb_predicate): New.
3688         (set_bb_predicate): New.
3689         (bb_predicate_gimplified_stmts): New.
3690         (set_bb_predicate_gimplified_stmts): New.
3691         (add_bb_predicate_gimplified_stmts): New.
3692         (init_bb_predicate): New.
3693         (free_bb_predicate): New.
3694         (is_predicated): Use bb_predicate.
3695         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
3696         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
3697         before processing their successors.
3698         (clean_predicate_lists): Removed.
3699         (find_phi_replacement_condition): Use bb_predicate.
3700         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
3701         computations.
3702         (insert_gimplified_predicates): New.
3703         (combine_blocks): Call insert_gimplified_predicates.
3704         (tree_if_conversion): Call free_bb_predicate instead of
3705         clean_predicate_lists.
3707 2010-10-11  Paul Brook  <paul@codesourcery.com>
3709         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
3710         * config/arm/arm.c (all_architectures): Change v7e-m default to
3711         cortexm4.
3712         * config/arm/arm-cores.def: Add cortex-m4.
3713         * config/arm/arm-tune.md: Regenerate.
3715 2010-06-11  Jan Hubicka  <jh@suse.cz>
3717         * ipa-pure-const.c (special_builtlin_state): New function.
3718         (check_call): Use it instead of special casign BUILT_IN_RETURN.
3719         (propagate_pure_const): Use it.
3721 2010-06-11  Jan Hubicka  <jh@suse.cz>
3723         * df-problems.c (df_live_scratch): Convert to bitmap_head.
3724         (df_live_alloc): Initialize df_live_scratch when initializing
3725         problem_data.
3726         (df_live_transfer_function): Update uses of df_live_scratch.
3727         (df_live_free): Free problem_data; clear df_live_scratch before
3728         releasing the obstack.
3729         (df_md_free): Free problem data.
3731 2010-06-11  Jan Hubicka  <jh@suse.cz>
3733         * doc/invoke.texi (Wsuggest-attribute): Document.
3734         (Wmissing-noreturn): Remove.
3735         * ipa-pure-const.c (warn_function_noreturn): New function.
3736         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
3737         warn_missing_noreturn.
3738         * common.opt (Wsuggest-attribute=noreturn): New.
3739         * tree-flow.h (warn_function_noreturn): Declare.
3740         * tree-cfg.c (execute_warn_function_noreturn): Use
3741         warn_function_noreturn.
3742         (gate_warn_function_noreturn): New.
3743         (pass_warn_function_noreturn): Update.
3745 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3747         * c-typeck.c (handle_warn_cast_qual): Add loc
3748         parameter. Improve warning message.
3749         (build_c_cast): Pass location to handle_warn_cast_qual.
3751 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3753         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
3754         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
3755         insn mnemonic.
3756         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
3758 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
3760         Fix bootstap on mips
3761         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
3762         be naming typedefs.
3764 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
3766         * system.h (helper_const_non_const_cast): New inline for
3767         gcc version <= 4.0.
3768         (CONST_CAST2): For gcc version <= 4.0 use
3769         new helper to do const/non-const casting.
3771 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3773         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
3774         * Makefile.in (OBJS-common): Include insn-enums.o.
3775         (insn-enums.o): New rule.
3776         (simple_generated_c): Add insn-enums.c.
3777         (build/genenums.o): New rule.
3778         (genprogmd): Add "enums".
3779         * genconstants.c (print_enum_type): Declare a C string array
3780         for each enum.
3781         * genenums.c: New file.
3782         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
3783         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
3784         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
3786 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3788         * doc/md.texi (define_enum_attr): Document.
3789         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
3790         * read-md.h (lookup_enum_type): Declare.
3791         * read-md.c (lookup_enum_type): New function.
3792         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
3793         * genattrtab.c (attr_desc): Add an enum_name field.
3794         (evaluate_eq_attr): Take the associated attribute as argument.
3795         Get the enum prefix from the enum_name field, if defined.
3796         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
3797         (simplify_test_exp): Pass attr to evaluate_eq_attr.
3798         (add_attr_value): New function, split out from...
3799         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
3800         (write_test_expr): Pass attr to evaluate_eq_attr.
3801         (write_attr_get): Use the enum_name as the enum tag, if defined.
3802         (write_attr_valueq): Use the enum_name as a prefix, if defined.
3803         (find_attr): Initialize enum_name.
3804         (main): Handle DEFINE_ENUM_ATTR.
3805         * gensupport.c (process_rtx): Likewise.
3806         * config/mips/mips.h (mips_tune_attr): Delete.
3807         * config/mips/mips.md (cpu): Use define_attr_enum.
3809 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3811         * doc/md.texi (define_c_enum, define_enum): Document.
3812         * read-md.h (md_constant): Add a parent_enum field.
3813         (enum_value, enum_type): New structures.
3814         (upcase_string, traverse_enum_types): Declare.
3815         * read-md.c (enum_types): New variable.
3816         (upcase_string, add_constant): New functions.
3817         (handle_constants): Don't create the hash table here.
3818         Use add_constant.
3819         (traverse_md_constants): Don't check for a null md_constants.
3820         (decimal_string, handle_enum, traverse_enum_types): New functions.
3821         (read_md_files): Initialize md_constants and md_enums.
3822         * genconstants.c (print_md_constant): Ignore info argument.
3823         Only print constants that belong to no enum.
3824         (print_enum_type): New function.
3825         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
3826         for each defined enum type.
3827         * config/mips/mips.md (processor): New define_enum.
3828         (unspec): New define_c_enum.
3829         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
3830         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
3831         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
3832         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
3833         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3834         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3835         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3836         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3837         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3838         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3839         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3840         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3841         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3842         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3843         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3844         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3845         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3846         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3847         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3848         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3849         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3850         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3851         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3852         (UNSPEC_RDDSP): Move to mips-dsp.md.
3853         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
3854         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
3855         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
3856         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3857         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3858         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3859         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3860         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3861         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3862         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3863         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3864         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3865         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3866         Moved to mips-dspr2.md.
3867         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3868         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3869         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3870         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3871         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3872         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3873         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3874         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3875         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3876         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3877         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3878         UNSPEC_LOONGSON_PSADBH)
3879         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3880         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3881         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3882         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3883         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3884         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3885         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3886         (cpu): Update comment.
3887         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3888         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3889         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3890         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3891         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3892         UNSPEC_LOONGSON_PCMPEQ)
3893         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3894         UNSPEC_LOONGSON_PINSR_0)
3895         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3896         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3897         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3898         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3899         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3900         UNSPEC_LOONGSON_PSADBH)
3901         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3902         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3903         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3904         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3905         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3906         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3907         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3908         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3909         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3910         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3911         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3912         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3913         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3914         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3915         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3916         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3917         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3918         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3919         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3920         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3921         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3922         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3923         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3924         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3925         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3926         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3927         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3928         (UNSPEC_RDDSP): Moved from mips.md.
3929         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3930         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3931         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3932         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3933         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3934         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
3935         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
3936         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
3937         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
3938         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
3939         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
3940         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
3941         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
3942         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
3943         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
3944         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
3945         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
3946         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
3947         (UNSPEC_SCC): Moved from mips.md.
3948         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
3949         "processor_type" to "processor".
3950         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
3951         * config/mips/mips.h (processor_type): Delete.
3952         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
3953         "processor_type" to "processor".
3955 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3957         * configure.ac (tm_include_list): Add insn-constants.h.
3958         * configure: Regenerate.
3959         * Makefile.in (GTM_H): Move insn-constants.h here from...
3960         (TM_H): ...here.
3961         * mkconfig.sh: Remove special handling for insn-constants.h.
3963 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3965         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
3966         (BUILD_MD): ...this new variable.
3967         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
3968         that include the old contents of simple_generated_h and
3969         simple_generated_c.
3970         (simple_generated_h, simple_generated_c): Include them.  Add
3971         insn-constants.h.
3972         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
3973         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
3974         Remove these dependencies from the main rule and include
3975         insn-conditions.md in the command line only if it appears
3976         in the dependency list.
3977         (insn-constants.h, s-constants): Delete.
3978         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
3979         or gensupport.h.
3980         (build/genmddeps.o): Likewise.
3981         (genprogrtl): New variable that contains everything from genprogmd
3982         except mddeps and constants.
3983         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
3984         depend on $(BUILD_MD)
3985         (genprog): New variable.  Make these programs depend on
3986         $(BUILD_ERRORS).
3987         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
3988         (main): Use read_md_files instead of init_rtx_reader_args.
3989         * genconstants.c: As for genmddeps.c.
3990         * read-md.h (read_skip_construct): Declare.
3991         * read-md.c (read_skip_construct): New function.
3992         (handle_file): Allow a null handle_directive, skipping the
3993         construct if so.
3994         (parse_include): Update the comment accordingly.
3996 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3998         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
3999         * genmddeps.c: Include read-md.h.
4000         (main): Call init_rtx_reader_args instead of init_md_reader_args.
4001         * genattr.c (main): Likewise.
4002         * genattrtab.c (main): Likewise.
4003         * genautomata.c (main): Likewise.
4004         * gencodes.c (main): Likewise.
4005         * genconditions.c (main): Likewise.
4006         * genconfig.c (main): Likewise.
4007         * genconstants.c (main): Likewise.
4008         * genemit.c (main): Likewise.
4009         * genextract.c (main): Likewise.
4010         * genflags.c (main): Likewise.
4011         * genopinit.c (main): Likewise.
4012         * genoutput.c (main): Likewise.
4013         * genpeep.c (main): Likewise.
4014         * genrecog.c (main): Likewise.
4015         * genpreds.c (main): Likewise.
4016         * gensupport.h (in_fname): Move to read-md.h.
4017         (init_md_reader_args_cb): Rename to...
4018         (init_rtx_reader_args_cb): ...this and return a bool.
4019         (init_md_reader_args): Rename to...
4020         (init_rtx_reader_args): ...this and return a bool.
4021         (include_callback): Move to read-md.h.
4022         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4023         (file_name_list, first_dir_md_include): Move to read-md.c
4024         (first_bracket_include): Delete unused variable.
4025         (last_dir_md_include): Move to read-md.c.
4026         (process_include): Delete, moving code to read-md.c:handle_include.
4027         (process_rtx): Don't handle INCLUDE.
4028         (save_string): Delete.
4029         (rtx_handle_directive): New function.
4030         (init_md_reader_args_cb): Rename to...
4031         (init_rtx_reader_args_cb): ...this and return a boolean success value.
4032         Use read_md_args.
4033         (init_md_reader_args): Rename to...
4034         (init_rtx_reader_args): ...this and return a boolean success value.
4035         * rtl.def (INCLUDE): Delete.
4036         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
4037         argument.
4038         * read-rtl.c (read_conditions): Don't gobble ')' here.
4039         (read_mapping): Likewise.
4040         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
4041         Handle top-level non-rtx constructs here rather than in read_rtx_1.
4042         Store the whole queue in *X.  Remove call to init_md_reader.
4043         (read_rtx_1): Rename to...
4044         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
4045         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
4046         here.
4047         (read_nested_rtx): New function.  Handle (nil) here rather than
4048         in read_rtx_code.
4049         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
4050         gobble ')' here.
4051         * read-md.h (directive_handler_t): New type.
4052         (in_fname, include_callback): Moved from read-md.h.
4053         (read_constants, init_md_reader): Delete.
4054         (read_md_files): Declare.
4055         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4056         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4057         from gensupport.c.
4058         (read_constants): Rename to...
4059         (handle_constants): ...this.  Don't gobble ')' here.
4060         (handle_include, handle_file, handle_toplevel_file)
4061         (parse_include): New functions, mostly taken from gensupport.c.
4062         (init_md_reader): Subsume into...
4063         (read_md_files): ...this new function.
4065 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4067         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4068         (unread_char): Decrement read_md_lineno after putting back '\n'.
4069         * read-md.c (fatal_with_file_and_line): Push back any characters
4070         that we decide not to add to the context.
4071         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
4072         fatal_expected_char in cases where '/' ends a line (for example).
4073         (read_name): Don't increment read_md_lineno here.
4074         (read_escape): Likewise.
4075         (read_quoted_string): Likewise.
4076         (read_braced_string): Likewise.
4078 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4080         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4081         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4082         * genconstants.c: Include read-md.h.
4083         * read-rtl.c (md_constants): Move to read-md.c.
4084         (md_name): Move to read-md.h.
4085         (initialize_iterators): Use leading_string_hash instead of def_hash
4086         and leading_string_eq_p instead of def_name_eq_p.
4087         (read_name): Move to read-md.c.
4088         (def_hash, def_name_eq_p): Delete.
4089         (read_constants, traverse_md_constants): Move to read-md.c.
4090         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4091         * read-md.h: Include hashtab.h.
4092         (md_name): Moved from read-rtl.c.
4093         (md_constant): Moved from read-md.h.
4094         (leading_string_hash, leading_string_eq_p, read_name)
4095         (read_constants, traverse_md_constants): Declare.
4096         * read-md.c (md_constants): Moved from read-rtl.c.
4097         (leading_string_hash, leading_string_eq_p): New functions.
4098         (read_name, read_constants, traverse_md_constants): Moved from
4099         read-rtl.c.
4101 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4103         * read-rtl.c (md_name): New structure.
4104         (read_name): Take an md_name instead of a buffer pointer.
4105         Use the "string" field instead of strcpy when expanding constants.
4106         (read_constants): Remove the tmp_char argument.  Update the calls
4107         to read_name, using two local name buffers instead of the tmp_char
4108         argument.  Merge the constant-creation code.
4109         (read_conditions): Remove the tmp_char argument.  Update the calls
4110         to read_name, using a local name buffer instead of the tmp_char
4111         argument.
4112         (read_mapping): Replace tmp_char variable with a local name buffer.
4113         Update the calls to read_name.
4114         (read_rtx_1): Likewise.  Update the calls to read_constants and
4115         read_conditions.
4117 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4119         * Makefile.in (build/read-md.o): Depend on errors.h.
4120         * read-md.h (error_with_line): Declare.
4121         * read-md.c: Include errors.h.
4122         (message_with_line_1): New function, extracted from...
4123         (message_with_line): ...here.
4124         (error_with_line): New function.
4125         * genattrtab.c: If a call to message_with_line is followed by
4126         "have_error = 1;", replace both statements with a call to
4127         error_with_line.
4128         * genoutput.c: Likewise.
4129         * genpreds.c: Likewise.
4130         * genrecog.c: If a call to message_with_line is followed by
4131         "error_count++;", replace both statements with a call to
4132         error_with_line.
4133         (errorcount): Delete.
4134         (main): Don't check it.
4135         * gensupport.c: If a call to message_with_line is followed by
4136         "errors = 1;", replace both statements with a call to error_with_line.
4137         (errors): Delete.
4138         (process_define_cond_exec): Check have_error instead of errors.
4139         (init_md_reader_args_cb): Likewise.  Don't set errors.
4141 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4143         * read-md.h (read_md_file): Declare.
4144         (read_char, unread_char): New functions.
4145         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4146         (read_quoted_string, read_string): Remove FILE * argument.
4147         * read-md.c (read_md_file): New variable.
4148         (read_md_filename, read_md_lineno): Update comments and remove
4149         unnecessary initialization.
4150         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4151         (read_escape, read_quoted_string, read_braced_string, read_string):
4152         Remove FILE * argument.  Update calls accordingly, using read_char
4153         and unread_char instead of getc and ungetc.
4154         * rtl.h (read_rtx): Remove FILE * argument.
4155         * read-rtl.c (iterator_group): Remove FILE * argument from
4156         "find_builtin".
4157         (iterator_traverse_data): Remove "infile" field.
4158         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4159         (add_mapping, read_name, read_constants, read_conditions)
4160         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4161         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4162         Remove file arguments from all calls, using read_char and unread_char
4163         instead of getc and ungetc.
4164         * gensupport.c (process_include): Preserve read_md_file around
4165         the include.  Set read_md_file to the handle of the included file.
4166         Update call to read_rtx.
4167         (init_md_reader_args_cb): Set read_md_file to the handle of the file
4168         and remove local FILE *.  Update calls to read_rtx.
4170 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4172         * read-md.h (read_rtx_lineno): Rename to...
4173         (read_md_lineno): ...this.
4174         (read_rtx_filename): Rename to...
4175         (read_md_filename): ...this.
4176         (copy_rtx_ptr_loc): Rename to...
4177         (copy_md_ptr_loc): ...this.
4178         (print_rtx_ptr_loc): Rename to...
4179         (print_md_ptr_loc): ...this.
4180         * read-md.c: Likewise.  Update references after renaming.
4181         (string_obstack): Replace RTL with MD in comment.
4182         (set_rtx_ptr_loc): Rename to...
4183         (set_md_ptr_loc): ...this.
4184         (get_rtx_ptr_loc): Rename to...
4185         (get_md_ptr_loc): ...this.
4186         * genconditions.c: Update references after renaming.
4187         * genemit.c: Likewise.
4188         * genoutput.c: Likewise.
4189         * genpreds.c: Likewise.
4190         * gensupport.c: Likewise.
4191         * read-rtl.c: Likewise.
4193 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4195         * Makefile.in (READ_MD_H): New variable.
4196         (BUILD_RTL): Add build/read-md.o.
4197         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4198         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4199         (build/genattrtab.o, build/genconditions.o build/genemit.o)
4200         (build/genextract.o, build/genflags.o, build/genoutput.o)
4201         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4202         (build/read-md.o): New rule.
4203         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4204         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4205         * coretypes.h: ...here.
4206         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4207         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4208         * genattr.c: Include read-md.h.
4209         * genattrtab.c: Likewise.
4210         * genconditions.c: Likewise.
4211         * genemit.c: Likewise.
4212         * genextract.c: Likewise.
4213         * genflags.c: Likewise.
4214         * genoutput.c: Likewise.
4215         * genpreds.c: Likewise.
4216         * genrecog.c: Likewise.
4217         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4218         (join_c_conditions, print_c_condition, read_rtx_filename)
4219         (read_rtx_lineno): Move to read-md.h.
4220         * read-rtl.c: Include read-md.h.
4221         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4222         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4223         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4224         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4225         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4226         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4227         (read_braced_string, read_string): Move to read-md.c.
4228         (read_rtx): Move some initialization to init_md_reader and call
4229         init_md_reader here.
4230         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4231         Move to read-md.h.
4232         * gensupport.c: Include read-md.h.
4233         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4234         * read-md.h, read-md.c: New files.
4236 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
4238         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4239         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4240         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4241         * config/moxie/moxie.c (moxie_function_value): Make static.
4242         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4243         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4245 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4247         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4248         * dbgcnt.def (tree_sra): New counter.
4249         * tree-sra.c: Include dbgcnt.h.
4250         (gate_intra_sra): Check tree_sra debug counter.
4252 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4254         PR tree-optimization/44258
4255         * tree-sra.c (build_access_subtree): Return false iff there is a
4256         partial overlap.
4257         (build_access_trees): Likewise.
4258         (analyze_all_variable_accesses): Disqualify candidates if
4259         build_access_trees returns true for them.
4261 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
4263         PR debug/41371
4264         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4265         tail-recurse into canonical node.  Fast-forward over
4266         non-canonical VALUEs.
4268 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
4270         PR boostrap/44470
4271         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4272         (*addsi_1_zext) <TYPE_LEA>: Likewise.
4273         (add lea splitter): Likewise.
4274         (add_zext lea splitter): Likewise.
4276 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4278         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4280 2010-06-10  Jan Hubicka  <jh@suse.cz>
4282         * df-problems.c (df_live_problem_data): Add live_bitmaps.
4283         (df_live_alloc): Initialize problem data and live_osbtacks.
4284         (df_live_finalize): Remove obstack, problem data; do not
4285         clear all bitmaps.
4286         (df_live_top_dump, df_live_bottom_dump): Do not dump old
4287         data when not allocated.
4288         (df_live_verify_solution_start): Do not allocate problem data.
4289         (df_live_verify_solution_end): Check if out is allocated.
4290         (struct df_md_problem_data): New structure.
4291         (df_md_alloc): Allocate problem data.
4292         (df_md_free): Free problem data; do not clear bitmaps.
4294 2010-06-10  Jan Beulich  <jbeulich@novell.com>
4296         PR bootstrap/37304
4297         * configure.ac: Replace $() with ${} when intending to expand
4298         variables rather than invoking commands.
4299         * configure: Re-generate.
4301 2010-06-10  Jan Hubicka  <jh@suse.cz>
4303         PR rtl-optimization/44460
4304         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4305         TYPE_NEEDS_CONSTRUCTING sanity check.
4307 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
4309         * doc/include/fdl.texi: Move to GFDL version 1.3.
4311         * doc/cpp.texi: Move to GFDL version 1.3.
4312         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
4313         * doc/gccint.texi: Move to GFDL version 1.3.
4314         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
4315         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
4316         * doc/invoke.texi: Move to GFDL version 1.3.
4318 2010-06-09  Jan Hubicka  <jh@suse.cz>
4320         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4321         Break out from ...
4322         (propagate) ... here; swap the order.
4324 2010-06-09  Jan Hubicka  <jh@suse.cz>
4326         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4327         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4328         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4329         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4331 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4333         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4334         Do not the gather memory reference in the outer loop if the step
4335         is not a constant.
4337 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4339         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4340         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4341         8 to 4.  Minor change of the related comments.
4343 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4345         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4346         the scev analysis when the variable is not used outside the loop
4347         in a close phi node: call compute_overall_effect_of_inner_loop.
4349 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4351         * graphite-sese-to-poly.c (single_pred_cond): Renamed
4352         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
4353         (build_sese_conditions_before): Renamed call to single_pred_cond.
4354         (build_sese_conditions_after): Same.
4356 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4358         * graphite-poly.h: Fix comments and indentation.
4359         * graphite-sese-to-poly.c: Same.
4360         (build_sese_conditions_before): Compute stmt and gbb only when needed.
4361         * tree-chrec.c: Fix comments and indentation.
4362         (tree-ssa-loop-niter.c): Same.
4364 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4366         PR rtl-optimization/42461
4367         * dce.c (deletable_insn_p): Return true for const or pure calls again.
4368         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4370 2010-06-09  Jan Hubicka  <jh@suse.cz>
4372         * bitmap.c (bitmap_and): Walk array forward.
4373         (bitmap_and_compl_into): Likewise.
4374         (bitmap_xor): Likewise.
4375         (bitmap_xor_into):  Likewise.
4376         (bitmap_equal_p): Likewise.
4377         (bitmap_intersect_p): Likewise.
4378         (bitmap_intersect_compl_p): Likewise.
4379         (bitmap_ior_and_into): Likewise.
4380         (bitmap_elt_copy): Likewise.
4381         (bitmap_and_compl): Likewise.
4382         (bitmap_elt_ior): Likewise.
4384 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
4386         * opts-common.c (prune_options): Ensure replacement argv array
4387         is correctly terminated by a NULL entry.
4389 2010-06-09  Jan Hubicka  <jh@suse.cz>
4391         * cgraph.h (varpool_first_static_initializer,
4392         varpool_next_static_initializer): Make checking only when
4393         checking enabled.
4394         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4395         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4396         gcc_assert to gcc_checking_assert.
4397         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4398         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4399         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4400         op_iter_init_phiuse, op_iter_init_phidef,
4401         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4402         gcc_checking_assert.
4403         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4404         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4405         partition_is_global, live_on_entry, live_on_exit,
4406         live_merge_and_clear): Likewise.
4407         * system.h (gcc_checking_assert): New macro.
4408         * gimple.h (set_bb_seq): Use gcc_checking_assert.
4410 2010-06-09  Jason Merrill  <jason@redhat.com>
4412         * Makefile.in (TAGS): Collect tags info from c-family.
4414 2010-06-09  Jan Hubicka  <jh@suse.cz>
4416         * gimple.h (gcc_gimple_checking_assert): New macro.
4417         (gimple_set_def_ops, gimple_set_use_ops,
4418         gimple_set_vuse, gimple_set_vdef,
4419         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4420         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4421         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4422         gimple_asm_output_op, gimple_asm_output_op_ptr,
4423         gimple_asm_set_output_op, gimple_asm_clobber_op,
4424         gimple_asm_set_clobber_op, gimple_asm_label_op,
4425         gimple_asm_set_label_op, gimple_try_set_kind,
4426         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4427         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4428         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4429         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4430         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4431         gimple_omp_for_set_initial, gimple_omp_for_final,
4432         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4433         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4434         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4435         conditional with ENABLE_GIMPLE_CHECKING.
4436         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4438 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
4440         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4441         (get_computation_cost_at): Use it.
4442         (determine_use_iv_cost_condition): Likewise.
4443         (determine_iv_cost): Likewise.
4445 2010-06-09  Richard Guenther  <rguenther@suse.de>
4447         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4448         replace constants.
4450 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
4452         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4454 2010-06-09  Martin Jambor  <mjambor@suse.cz>
4456         PR tree-optimization/44423
4457         * tree-sra.c (dump_access): Dump also grp_assignment_read.
4458         (analyze_access_subtree): Pass negative allow_replacements to children
4459         if the current type is scalar.
4461 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4463         PR testsuite/42843
4464         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4465         * doc/plugins.texi (Plugin license check): Update information
4466         on type of plugin_is_GPL_compatible.
4467         * Makefile.in (PLUGINCC): Define as $(COMPILER).
4468         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4470 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
4472         * config/arm/arm.c (thumb2_reorg): New function.
4473         (arm_reorg): Call it.
4474         * config/arm/thumb2.md (define_peephole2 for flag clobbering
4475         arithmetic operations): Delete.
4477 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
4479         PR target/44067
4480         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4481         e500v2 target.
4483 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4485         PR plugins/44459
4486         * gcc-plugin.h: Encapsulate all declarations in extern "C".
4488 2010-06-08  Jan Hubicka  <jh@suse.cz>
4490         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4491         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4493 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
4495         PR tree-optimization/39874
4496         PR middle-end/28685
4497         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4498         Declare.
4499         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4500         same_bool_result_p): New.
4501         (and_var_with_comparison, and_var_with_comparison_1,
4502         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4503         (or_var_with_comparison, or_var_with_comparison_1,
4504         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4505         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4506         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4507         of combine_comparisons.
4508         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4510 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
4512         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4513         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4514         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4515         pdp11_function_value_regno_p): New functions.
4516         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4517         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4519 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
4521         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4522         Thumb-2 in the MINUS case.
4524 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4526         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4528         * doc/gty.texi (GTY Options): Document typed GC allocation and
4529         variable_size GTY option.
4531         * ggc-internal.h: New.
4533         * ggc.h: Update copyright year.
4534         (digit_string): Move to stringpool.c.
4535         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4536         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4537         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4538         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4539         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4540         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4541         (ggc_force_collect, ggc_get_size, ggc_statistics)
4542         (ggc_print_common_statistics): Move to ggc-internal.h.
4543         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4544         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4545         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4546         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4547         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4548         (ggc_alloc_zone_pass_stat): Remove.
4549         (ggc_internal_alloc_stat, ggc_internal_alloc)
4550         (ggc_internal_cleared_alloc_stat): New.
4551         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4552         (ggc_internal_vec_alloc_stat)
4553         (ggc_internal_cleared_vec_alloc_stat)
4554         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4555         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4556         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4557         (ggc_cleared_alloc_ptr_array_two_args): New.
4558         (htab_create_ggc, splay_tree_new_ggc): Redefine.
4559         (ggc_splay_alloc): Change the type of the first argument to
4560         enum gt_types_enum.
4561         (ggc_alloc_string): Make macro.
4562         (ggc_alloc_string_stat): New.
4563         (ggc_strdup): Redefine.
4564         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4565         (ggc_alloc_rtvec_sized): New.
4566         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4567         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4568         (ggc_internal_cleared_alloc_zone_stat)
4569         (ggc_internal_zone_alloc_stat)
4570         (ggc_internal_zone_cleared_alloc_stat)
4571         (ggc_internal_zone_vec_alloc_stat)
4572         (ggc_alloc_zone_rtx_def_stat)
4573         (ggc_alloc_zone_tree_node_stat)
4574         (ggc_alloc_zone_cleared_tree_node_stat)
4575         (ggc_alloc_cleared_gimple_statement_d_stat): New.
4577         * ggc-common.c: Include ggc-internal.h.
4578         (ggc_internal_cleared_alloc_stat): Rename from
4579         ggc_alloc_cleared_stat.
4580         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4581         (ggc_calloc): Remove.
4582         (ggc_cleared_alloc_htab_ignore_args): New.
4583         (ggc_cleared_alloc_ptr_array_two_args): New.
4584         (ggc_splay_alloc): Add obj_type parameter.
4585         (init_ggc_heuristics): Formatting fixes.
4587         * ggc-none.c: Update copyright year.
4588         (ggc_alloc_stat): Rename to ggc_alloc_stat.
4589         (ggc_alloc_cleared_stat): Rename to
4590         ggc_internal_cleared_alloc_stat.
4591         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4593         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
4594         Remove references to ggc_alloc in comments.
4595         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4596         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4597         (new_ggc_zone, destroy_ggc_zone): Remove.
4598         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4600         * ggc-zone.c: Include ggc-internal.h.  Remove references to
4601         ggc_alloc in comments.
4602         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4603         (ggc_internal_alloc_zone_pass_stat): New.
4604         (ggc_internal_cleared_alloc_zone_stat): New.
4605         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4606         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4607         (new_ggc_zone, destroy_ggc_zone): Remove.
4609         * stringpool.c: Update copyright year.  Include ggc-internal.h
4610         (digit_vector): Make static.
4611         (digit_string): Moved from ggc.h.
4612         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4613         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4615         * Makefile.in (GGC_INTERNAL_H): New.
4616         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4617         $(GGC_INTERNAL_H) to dependencies.
4619         * gentype.c: Update copyright year.
4620         (walk_type): Accept variable_size GTY option.
4621         (USED_BY_TYPED_GC_P): New macro.
4622         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
4623         whitespace at the end of strings.
4624         (get_type_specifier, variable_size_p): New functions.
4625         (alloc_quantity, alloc_zone): New enums.
4626         (write_typed_alloc_def): New function.
4627         (write_typed_struct_alloc_def): Likewise.
4628         (write_typed_typed_typedef_alloc_def): Likewise.
4629         (write_typed_alloc_defns): Likewise.
4630         (output_typename, write_splay_tree_allocator_def): Likewise.
4631         (write_splay_tree_allocators): Likewise.
4632         (main): Call write_typed_alloc_defns and
4633         write_splay_tree_allocators.
4635         * lto-streamer.h (lto_file_decl_data_ptr): New.
4637         * passes.c (order): Define using cgraph_node_ptr.
4639         * strinpool.c (struct string_pool_data): Declare nested_ptr using
4640         ht_identifier_ptr.
4642         * gimple.h (union gimple_statement_d): Likewise.
4644         * rtl.h (struct rtx_def): Likewise.
4645         (struct rtvec_def): Likewise.
4647         * tree.h (union tree_node): Likewise.
4649         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
4651         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
4653         * tree-scalar-evolution.c (scev_initialize): Likewise.
4655         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
4657         * dwarf2asm.c (dw2_force_const_mem): Likewise.
4659         * omp-low.c (lower_omp_critical): Likewise.
4661         * bitmap.h (struct bitmap_head_def): Update comment to not
4662         reference ggc_alloc.
4664         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
4666         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
4668         * ipa-prop.c (duplicate_ggc_array): Rename to
4669         duplicate_ipa_jump_func_array.  Use typed GC allocation.
4670         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
4672         * gimple.c (gimple_alloc_stat): Use
4673         ggc_alloc_cleared_gimple_statement_d_stat.
4675         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
4677         * tree.c (make_node_stat): Use
4678         ggc_alloc_zone_cleared_tree_node_stat.
4679         (make_tree_vec_stat): Likewise.
4680         (build_vl_exp_stat): Likewise.
4681         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
4682         (make_tree_binfo_stat): Likewise.
4683         (tree_cons_stat): Likewise.
4685         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
4686         (shallow_copy_rtx_stat): Likewise.
4687         (make_node_stat): Likewise.
4689         * lto-symtab.c: Fix comment.
4691         * tree-cfg.c (create_bb): Update comment to not reference
4692         ggc_alloc_cleared.
4693         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
4695         * varpool.c (varpool_node): Use typed GC allocation.
4696         (varpool_extra_name_alias): Likewise.
4698         * varasm.c (emutls_decl): Likewise.
4699         (get_unnamed_section): Likewise.
4700         (get_noswitch_section): Likewise.
4701         (get_section): Likewise.
4702         (get_block_for_section): Likewise.
4703         (build_constant_desc): Likewise.
4704         (create_constant_pool): Likewise.
4705         (force_const_mem): Likewise.
4707         * tree.c (build_vl_exp_stat): Likewise.
4708         (build_real): Likewise.
4709         (build_string): Likewise.
4710         (decl_debug_expr_insert): Likewise.
4711         (decl_value_expr_insert): Likewise.
4712         (type_hash_add): Likewise.
4713         (build_omp_clause): Likewise.
4715         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
4717         * tree-ssa.c (init_tree_ssa): Likewise.
4719         * tree-ssa-structalias.c (heapvar_insert): Likewise.
4721         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4723         * tree-ssa-loop-niter.c (record_estimate): Likewise.
4725         * tree-ssa-alias.c (get_ptr_info): Likewise.
4727         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4729         * tree-phinodes.c (allocate_phi_node): Likewise.
4731         * tree-iterator.c (tsi_link_before): Likewise.
4732         (tsi_link_after): Likewise.
4734         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4736         * tree-dfa.c (create_var_ann): Likewise.
4738         * tree-cfg.c (create_bb): Likewise.
4740         * toplev.c (alloc_for_identifier_to_locale): Likewise.
4741         (general_init): Likewise.
4743         * stringpool.c (stringpool_ggc_alloc): Likewise.
4744         (gt_pch_save_stringpool): Likewise.
4746         * sese.c (if_region_set_false_region): Likewise.
4748         * passes.c (do_per_function_toporder): Likewise.
4750         * optabs.c (set_optab_libfunc): Likewise.
4751         (set_conv_libfunc): Likewise.
4753         * lto-symtab.c (lto_symtab_register_decl): Likewise.
4755         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4756         (input_eh_region): Likewise.
4757         (input_eh_lp): Likewise.
4758         (make_new_block): Likewise.
4759         (unpack_ts_real_cst_value_fields): Likewise.
4761         * lto-section-in.c (lto_new_in_decl_state): Likewise.
4763         * lto-cgraph.c (input_node_opt_summary): Likewise.
4765         * loop-init.c (loop_optimizer_init): Likewise.
4767         * lambda.h (lambda_vector_new): Likewise.
4769         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4771         * ira.c (update_equiv_regs): Likewise.
4773         * ipa.c (cgraph_node_set_new): Likewise.
4774         (cgraph_node_set_add): Likewise.
4775         (varpool_node_set_new): Likewise.
4776         (varpool_node_set_add): Likewise.
4778         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
4779         (duplicate_ipa_jump_func_array): Likewise.
4780         (ipa_read_node_info): Likewise.
4782         * ipa-cp.c (ipcp_create_replace_map): Likewise.
4784         * integrate.c (get_hard_reg_initial_val): Likewise.
4786         * gimple.c (gimple_alloc_stat): Likewise.
4787         (gimple_build_omp_for): Likewise.
4788         (gimple_seq_alloc): Likewise.
4789         (gimple_copy): Likewise.
4791         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
4792         (gsi_insert_after_without_update): Likewise.
4794         * function.c (add_frame_space): Likewise.
4795         (insert_temp_slot_address): Likewise.
4796         (assign_stack_temp_for_type): Likewise.
4797         (allocate_struct_function): Likewise.
4798         (types_used_by_var_decl_insert): Likewise.
4800         * except.c (init_eh_for_function): Likewise.
4801         (gen_eh_region): Likewise.
4802         (gen_eh_region_catch): Likewise.
4803         (gen_eh_landing_pad): Likewise.
4804         (add_call_site): Likewise.
4806         * emit-rtl.c (get_mem_attrs): Likewise.
4807         (get_reg_attrs): Likewise.
4808         (start_sequence): Likewise.
4809         (init_emit): Likewise.
4811         * dwarf2out.c (new_cfi): Likewise.
4812         (queue_reg_save): Likewise.
4813         (dwarf2out_frame_init): Likewise.
4814         (new_loc_descr): Likewise.
4815         (find_AT_string): Likewise.
4816         (new_die): Likewise.
4817         (add_var_loc_to_decl): Likewise.
4818         (clone_die): Likewise.
4819         (clone_as_declaration): Likewise.
4820         (break_out_comdat_types): Likewise.
4821         (new_loc_list): Likewise.
4822         (loc_descriptor): Likewise.
4823         (add_loc_descr_to_each): Likewise.
4824         (add_const_value_attribute): Likewise.
4825         (tree_add_const_value_attribute): Likewise.
4826         (add_comp_dir_attribute): Likewise.
4827         (add_name_and_src_coords_attributes): Likewise.
4828         (lookup_filename): Likewise.
4829         (store_vcall_insn): Likewise.
4830         (dwarf2out_init): Likewise.
4832         * dbxout.c (dbxout_init): Likewise.
4834         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4836         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4838         * config/score/score7.c (score7_output_external): Likewise.
4840         * config/score/score3.c (score3_output_external): Likewise.
4842         * config/s390/s390.c (s390_init_machine_status): Likewise.
4844         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4845         (rs6000_init_machine_status): Likewise.
4846         (output_toc): Likewise.
4848         * config/pa/pa.c (pa_init_machine_status): Likewise.
4849         (get_deferred_plabel): Likewise.
4851         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4853         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4855         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4857         * config/mep/mep.c (mep_init_machine_status): Likewise.
4858         (mep_note_pragma_flag): Likewise.
4860         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4862         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4864         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4866         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4867         (i386_pe_maybe_record_exported_symbol): Likewise.
4869         * config/i386/i386.c (get_dllimport_decl): Likewise.
4870         (ix86_init_machine_status): Likewise.
4871         (assign_386_stack_local): Likewise.
4873         * config/frv/frv.c (frv_init_machine_status): Likewise.
4875         * config/darwin.c (machopic_indirection_name): Likewise.
4877         * config/cris/cris.c (cris_init_machine_status): Likewise.
4879         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4881         * config/avr/avr.c (avr_init_machine_status): Likewise.
4883         * config/arm/arm.c (arm_init_machine_status): Likewise.
4885         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4886         (alpha_need_linkage): Likewise.
4887         (alpha_use_linkage): Likewise.
4889         * cgraph.c (cgraph_allocate_node): Likewise.
4890         (cgraph_create_edge_1): Likewise.
4891         (cgraph_create_indirect_edge): Likewise.
4892         (cgraph_add_asm_node): Likewise.
4894         * cfgrtl.c (init_rtl_bb_info): Likewise.
4896         * cfgloop.c (alloc_loop): Likewise.
4897         (rescan_loop_exit): Likewise.
4899         * cfg.c (init_flow): Likewise.
4900         (alloc_block): Likewise.
4901         (unchecked_make_edge): Likewise.
4903         * c-parser.c (c_parse_init): Likewise.
4904         (c_parse_file): Likewise.
4906         * c-decl.c (bind): Likewise.
4907         (record_inline_static): Likewise.
4908         (push_scope): Likewise.
4909         (make_label): Likewise.
4910         (lookup_label_for_goto): Likewise.
4911         (finish_struct): Likewise.
4912         (finish_enum): Likewise.
4913         (c_push_function_context): Likewise.
4915         * bitmap.c (bitmap_element_allocate): Likewise.
4916         (bitmap_gc_alloc_stat): Likewise.
4918         * alias.c (record_alias_subset): Likewise.
4919         (init_alias_analysis): Likewise.
4921 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
4923         * fold-const.c (fold_comparison): Remove redundant parenthesis.
4924         * tree-inline.c (expand_call_inline): Pass translated return value of
4925         cgraph_inline_failed_string to diagnostic function.
4927 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
4928             Shujing Zhao  <pearly.zhao@oracle.com>
4930         PR c/37724
4931         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4932         implicit bad conversions is initialization.
4933         (error_init): Use gmsgid instead of msgid for argument name and change
4934         the call for error.
4935         (pedwarn_init): Use gmsgid instead of msgid for argument name and
4936         change the call for pedwarn.
4937         (warning_init): Use gmsgid instead of msgid for argument name and
4938         change the call for warning.
4940 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
4942         * config/mips/mips-protos.h (mips_print_operand): Delete.
4943         (mips_print_operand_address): Delete.
4944         * config/mips/mips.h (mips_print_operand_punct): Delete.
4945         (PRINT_OPERAND): Delete.
4946         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4947         (PRINT_OPERAND_ADDRESS): Delete.
4948         * config/mips/mips.c (mips_print_operand_punct): Make static.
4949         (mips_print_operand_address): Make static.
4950         (mips_print_operand): Make static.  Call
4951         mips_print_operand_punct_valid_p.
4952         (mips_print_operand_punct_valid_p): New function.
4953         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4954         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4956 2010-06-07  Jan Hubicka  <jh@suse.cz>
4958         PR middle-end/44454
4959         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
4960         are allocated.
4962 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4964         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
4965         name of RECORD.
4967 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4969         * doc/sourcebuild.texi (Effective-Target Keywords, Other
4970         attributes): Document gas.
4972 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
4974         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
4975         <TYPE_LEA>: Split instruction.
4976         <default>: Remove alternative 2 handling.
4977         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
4978         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
4979         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
4981         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
4982         (ashift_zext lea splitter): Use DImode for multiplication.
4984         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
4985         to generate addition.
4987 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4989         * common.opt (fira-verbose): Use Var.
4990         (fpcc-struct-return): Use Init instead of VarExists.
4991         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
4992         toplev.c.
4993         * flags.h (flag_signed_char, flag_short_enums,
4994         flag_pcc_struct_return, flag_ira_verbose,
4995         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
4996         * toplev.c (flag_detailed_statistics, flag_signed_char,
4997         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
4998         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
4999         * toplev.h (flag_crossjumping, flag_if_conversion,
5000         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5001         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5002         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5003         flag_cprop_registers, time_report, flag_ira_loop_pressure,
5004         flag_ira_coalesce, flag_ira_move_spills,
5005         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5007 2010-06-07  Jan Hubicka  <jh@suse.cz>
5009         * df-core.c (df_analyze_problem): Do verification after allocation.
5011         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5012         (df_lr_alloc): Initialize problem data; move bitmaps to
5013         lr_bitmaps obstack.
5014         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5015         (df_lr_verify_solution_start): Do not initialize problem data;
5016         allocate bitmaps in lr_bitmaps.
5017         (df_lr_verify_solution_end): Do not free problem data.
5019 2010-06-07  Jan Hubicka  <jh@suse.cz>
5021         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5022         if caller is noreturn.
5023         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5024         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5025         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5026         * ipa-pure-const.c (check_decl): Add IPA parameter.
5027         (state_from_flags): New function.
5028         (better_state, worse_state): New functions.
5029         (check_call): When in IPA mode, do not care about callees.
5030         (check_load, check_store): Update.
5031         (check_ipa_load, check_ipa_store): New.
5032         (check_stmt): When in IPA mode, use IPA checkers.
5033         (analyze_function): Use state_from_flags.
5034         (propagate): Check indirect edges and references.
5036 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
5038         PR rtl-optimization/44404
5039         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5040         of count_occurrences to see if it's safe to modify mem_insn.
5042 2010-06-07  Richard Guenther  <rguenther@suse.de>
5044         * gimplify.c (gimplify_cleanup_point_expr): For empty body
5045         and EH-only cleanup drop the cleanup instead of inserting it
5046         unconditionally.
5048 2010-06-07  Ira Rosen  <irar@il.ibm.com>
5050         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5051         documentation.
5052         * targhooks.c (default_builtin_vectorization_cost): New function.
5053         * targhooks.h (default_builtin_vectorization_cost): Declare.
5054         * target.h (enum vect_cost_for_stmt): Define.
5055         (builtin_vectorization_cost): Change argument and comment.
5056         * tree-vectorizer.h: Remove cost model macros.
5057         * tree-vect-loop.c: Include target.h.
5058         (vect_get_cost): New function.
5059         (vect_estimate_min_profitable_iters): Replace cost model macros with
5060         calls to vect_get_cost.
5061         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5062         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5063         default implementation.
5064         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5065         calls to target hook builtin_vectorization_cost.
5066         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5067         Likewise.
5068         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5069         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5070         implementation to return costs.
5071         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5072         * config/spu/spu.h: Remove vectorizer cost model macros.
5073         * config/i386/i386.h: Likewise.
5074         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5075         a call to target hook builtin_vectorization_cost.
5077 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
5079         PR target/44319
5080         * config/i386/i386.c (override_options): Turn zee pass on for level 2
5081         and above and defer till target is known.
5082         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5083         turn off otherwise.
5085 2010-05-25  Jan Hubicka  <jh@suse.cz>
5087         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5088         (df_compact_blocks): Likewise.
5089         * df.h (struct df): Turn hardware_regs_used,
5090         regular_block_artificial_uses, eh_block_artificial_uses,
5091         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5092         bitmap_head.
5093         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5094         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5095         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5096         df_scan_blocks, df_insn_delete, df_insn_rescan,
5097         df_insn_rescan_debug_internal, df_insn_rescan_all,
5098         df_process_deferred_rescans, df_process_deferred_rescans,
5099         df_notes_rescan, df_get_call_refs, df_get_call_refs,
5100         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5101         df_record_entry_block_defs, df_record_exit_block_uses,
5102         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5103         df_scan_verify): Update.
5105 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
5107         PR c++/44188
5108         * c-common.c (is_typedef_decl): Move this definition ...
5109         * tree.c (is_typedef_decl): ... here.
5110         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5111         * c-common.h (is_typedef_decl): Move this declaration ...
5112         * tree.h (is_typedef_decl): ... here.
5113         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5114         * dwarf2out.c (is_naming_typedef_decl): New function.
5115         (gen_tagged_type_die): Split out of ...
5116         (gen_type_die_with_usage): ... this function. When an anonymous
5117         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5118         is emitted for the typedef.
5119         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5120         anonymous tagged types.
5122 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5124         PR c/20000
5125         * c-decl.c (grokdeclarator): Delete warning.
5127 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5129         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5130         newly built CALL_EXPR.
5131         * tree-profile.c (tree_profiling): Don't profile functions produced
5132         for built-in stuff.
5134 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
5136         PR bootstrap/44427
5137         PR bootstrap/44428
5138         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5139         endianness-independent.
5141 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
5143         * c-common.c: Move to c-family/.
5144         * c-common.def: Likewise.
5145         * c-common.h: Likewise.
5146         * c-cppbuiltin.c: Likewise.
5147         * c-dump.c: Likewise.
5148         * c-format.c: Likewise.
5149         * c-format.h : Likewise.
5150         * c-gimplify.c: Likewise.
5151         * c-lex.c: Likewise.
5152         * c-omp.c: Likewise.
5153         * c.opt: Likewise.
5154         * c-opts.c: Likewise.
5155         * c-pch.c: Likewise.
5156         * c-ppoutput.c: Likewise.
5157         * c-pragma.c: Likewise.
5158         * c-pragma.h: Likewise.
5159         * c-pretty-print.c: Likewise.
5160         * c-pretty-print.h: Likewise.
5161         * c-semantics.c: Likewise.
5162         * stub-objc.c: Likewise.
5164         * gengtype.c (get_file_langdir): Special-case files in c-family/.
5165         (get_output_file_with_visibility): Fix name for c-common.h.
5166         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5168         * c-tree.h: Update include path for moved files.
5169         * c-lang.c: Likewise.
5170         * c-lang.h: Likewise.
5171         * c-parser.c: Likewise.
5172         * c-convert.c: Likewise.
5173         * c-decl.c: Likewise.
5174         * c-objc-common.c: Likewise.
5175         * configure.ac: Make sure c-family/ exists in the build directory.
5176         * configure: Regenerate.
5177         * Makefile.in: Update paths for moved files.  Regroup files per
5178         location and update dependencies.  Move generated_files down after
5179         ALL_GTFILES_H.
5181         * config/spu/spu-c.c: Update paths for moved files.
5182         * config/mep/mep-pragma.c: Likewise.
5183         * config/darwin-c.c: Likewise.
5184         * config/i386/msformat-c.c: Likewise.
5185         * config/i386/i386-c.c: Likewise.
5186         * config/avr/avr-c.c: Likewise.
5187         * config/sol2-c.c: Likewise.
5188         * config/ia64/ia64-c.c: Likewise.
5189         * config/rs6000/rs6000-c.c: Likewise.
5190         * config/arm/arm.c: Likewise.
5191         * config/arm/arm-c.c: Likewise.
5192         * config/h8300/h8300.c: Likewise.
5193         * config/v850/v850-c.c: Likewise.
5195         * config/t-darwin: Fix dependencies for moved files.
5196         * config/t-sol2: Fix dependencies for moved files.
5197         * config/mep/t-mep: Fix dependencies for moved files.
5198         * config/ia64/t-ia64: Fix dependencies for moved files.
5199         * config/rs6000/t-rs6000: Fix dependencies for moved files.
5200         * config/v850/t-v850: Fix dependencies for moved files.
5201         * config/v850/t-v850e: Fix dependencies for moved files.
5203         * config/m32c/m32c-pragma.c
5205         * po/exgettext: Look in c-family/ also.
5207 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5209         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5210         (mark_control_dependent_edges_necessary): Call it instead of marking
5211         the last statement manually.
5212         (propagate_necessity): Likewise.
5214 2010-06-05  Jan Hubicka  <jh@suse.cz>
5216         * basic-block.h (compute_dominance_frontiers): Updated.
5217         (compute_idf): Likewise.
5219         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5220         for dominance frontiers.
5221         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5222         (insert_updated_phi_nodes_for): Likewise.
5223         (update_ssa): Likewise.
5224         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5225         (compute_dominance_frontiers): Likewise.
5226         (compute_idf): Likewise.
5227         * df-problems.c (df_md_local_compute): Likewise.
5229 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
5231         * target.h (struct gcc_target): Add memory_move_cost field.
5232         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5233         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5234         * targhooks.c (default_memory_move_cost): New function.
5235         * targhooks.h (default_memory_move_cost): Declare function.
5236         * reload.h (memory_move_cost): Declare.
5237         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5238         * reginfo.c (memory_move_cost): New function.
5239         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5240         * ira.h (ira_memory_move_cost): Update comment.
5241         * ira.c: (ira_memory_move_cost): Update comment.
5242         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5243         with memory_move_cost.
5244         * postreload.c (reload_cse_simplify_set): (Ditto.).
5245         * reload1.c (choose_reload_regs): (Ditto.).
5246         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5247         (MEMORY_MOVE_COST):  Revise documentation.
5249         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5250         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5251         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5252         type of 'in' argument to bool.
5253         (TARGET_MEMORY_MOVE_COST): Define.
5255 2010-06-05  Jan Hubicka  <jh@suse.cz>
5257         * ipa-pure-const.c (propagate): Fix typo in handling of functions
5258         that cannot return.  Be more careful when merging the results with
5259         previously known ones.
5261 2010-06-05  Matthias Klose  <doko@ubuntu.com>
5263         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5264         function to add the -iplugindir option.
5265         (find_plugindir_spec_function): Add new declaration and function.
5266         (static_spec_func): Use it for "find-plugindir".
5268 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
5270         PR c++/44361
5271         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5272         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5273         statement expression.
5275 2010-06-05  Jan Hubicka  <jh@suse.cz>
5277         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5278         (df_rd_problem_data): Convert sparse_invalidated_by_call,
5279         dense_invalidated_by_call to bitmap head.
5280         (df_rd_alloc, df_rd_bb_local_compute_process_def,
5281         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5282         df_rd_start_dump, df_lr_verify_transfer_functions,
5283         df_live_verify_transfer_functions, df_chain_create_bb,
5284         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5285         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5286         df_simulate_one_insn_forwards, df_md_alloc,
5287         df_md_bb_local_compute_process_def,
5288         df_md_bb_local_compute_process_def, df_md_local_compute,
5289         df_md_transfer_function df_md_free): Update.
5291 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
5293         PR c/44322
5294         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5295         target type for ADDR_EXPR; require no changes to qualifiers except
5296         for function types.
5297         * c-tree.h (c_build_type_variant): Remove.
5299 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5301         * genautomata.c (get_excl_set): Do work per element, not per char.
5302         (check_presence_pattern_sets): Similar.
5303         (check_absence_pattern_sets): Similar.
5305 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5307         * genautomata.c (curr_state_pass_num): Delete.
5308         (min_issue_delay_pass_states): Delete.
5309         (min_issue_delay): Delete.
5310         (initiate_min_issue_delay_pass_states): Delete.
5311         (output_min_issue_delay_table): Compute min_issue_delay_vect
5312         using a breadth-first search variant.
5313         (output_tables): Don't call initiate_min_issue_delay_pass_states.
5315 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5317         PR boostrap/44421
5318         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5319         (df_byte_lr_bb_local_compute): Likewise.
5321 2010-06-03  Jason Merrill  <jason@redhat.com>
5323         Implement noexcept operator (5.3.7)
5324         * c-common.c (c_common_reswords): Add noexcept.
5325         * c-common.h (enum rid): Add RID_NOEXCEPT.
5327 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
5329         * config/darwin-driver.c (darwin_default_min_version): Use
5330         GCC-specific formats in diagnostics.
5331         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5332         diagnostics.
5333         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5334         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5335         eval_spec_function, handle_braces, process_brace_body, main,
5336         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5337         getenv_spec_function, compare_version_strings,
5338         version_compare_spec_function): Use GCC-specific formats in
5339         diagnostics.
5341 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5343         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5344         that operand 0 and operand 1 are equal.
5345         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5346         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5347         and operand 1 are equal.
5348         <default>: Ditto.  Remove ??? comment.
5349         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5350         and operand 1 are equal.
5351         <default>: Ditto.  Remove ??? comment.
5352         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5353         are equal.
5354         (*add<mode>_4) <default>: Ditto.
5355         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5357 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
5359         * config/i386/i386-protos.h (ix86_print_operand): Declare.
5360         * config/i386/i386.c (ix86_print_operand): Make non-static.
5361         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5362         * output.h (output_operand): Declare.
5363         * final.c (output_operand): Make non-static.
5365 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
5367         PR rtl-optimization/44013
5368         * sched-deps.c (add_dependence_list_and_free): Don't free lists
5369         when processing debug insns.
5371         PR debug/41371
5372         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5373         recursing.  Check that recursion is bounded.  Rename inner var
5374         to avoid hiding incoming argument.
5376 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5378         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5379         operands[2] == 255.
5380         (*addqi_3): Ditto.
5381         (*addqi_4): Ditto.
5382         (*addqi_5): Ditto.
5383         (*addqi_ext_1_rex64): Ditto.
5384         (*addqi_ext_1): Ditto.
5386         (*addqi_4): Check for incdec_operand in QImode.
5388         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5389         using SWI mode iterator.
5390         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5391         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5392         mode iterator.
5393         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5394         using SWI mode iterator.
5396 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5398         PR c/25880
5399         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5400         * c-format.c (gcc_diag_flag_specs): Add hash.
5401         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5402         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5403         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5404         pp_c_cv_qualifiers. Handle qualifiers spelling here.
5405         (pp_c_type_qualifier_list): Call the function above.
5406         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5407         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5408         (WARN_FOR_QUALIFIERS): New macro.
5409         (convert_for_assignment): Use it.
5411 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
5413         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5415 2010-06-04  Jan Hubicka  <jh@suse.cz>
5417         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5418         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5419         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5420         DF_BYTE_LR_OUT): Update for embedded bitmaps.
5421         * fwprop.c (single_def_use_enter_block): Likewise.
5422         * ddg.c (create_ddg_dep_from_intra_loop_link,
5423         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5424         * loop-iv.c (latch_dominating_def): Likewise.
5425         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5426         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5427         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5428         df_rd_transfer_function, df_rd_top_dump,
5429         df_rd_bottom_dump): Update.
5430         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5431         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5432         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5433         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5434         df_lr_verify_solution_start, df_lr_verify_solution_end,
5435         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5436         df_live_free_bb_info, df_live_alloc, df_live_reset,
5437         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5438         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5439         df_live_verify_solution_start, df_live_verify_solution_end,
5440         df_live_verify_transfer_functions, df_chain_create_bb,
5441         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5442         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5443         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5444         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5445         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5446         df_byte_lr_transfer_function, df_byte_lr_top_dump,
5447         df_byte_lr_bottom_dump, df_create_unused_note,
5448         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5449         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5450         df_md_transfer_function, df_md_init, df_md_confluence_0,
5451         df_md_confluence_n,
5452         df_md_top_dump, df_md_bottom_dump): Update.
5453         (struct df_lr_problem_data): Embedd bitmap headers.
5455 2010-06-04  Jan Hubicka  <jh@suse.cz>
5457         * dce.c (dce_process_block): Do not re-scan already marked
5458         instructions.
5460 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
5462         PR rtl-optimization/39871
5463         PR rtl-optimization/40615
5464         PR rtl-optimization/42500
5465         PR rtl-optimization/42502
5466         * ira.c (init_reg_equiv_memory_loc: New function.
5467         (ira): Call it twice.
5468         * reload.h (calculate_elim_costs_all_insns): Declare.
5469         * ira-costs.c: Include "reload.h".
5470         (regno_equiv_gains): New static variable.
5471         (init_costs): Allocate it.
5472         (finish_costs): Free it.
5473         (ira_costs): Call calculate_elim_costs_all_insns.
5474         (find_costs_and_classes): Take estimated elimination costs
5475         into account.
5476         (ira_adjust_equiv_reg_cost): New function.
5477         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5478         * reload1.c (init_eliminable_invariants, free_reg_equiv,
5479         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5480         (elim_bb): New static variable.
5481         (reload): Move code out of here into init_eliminable_invariants and
5482         free_reg_equiv.  Call them.
5483         (calculate_elim_costs_all_insns): New function.
5484         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
5485         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
5486         but call note_reg_elim_costly if we turned a valid memory address
5487         into an invalid one.
5488         * Makefile.in (ira-costs.o): Depend on reload.h.
5490 2010-06-04  Julian Brown  <julian@codesourcery.com>
5492         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5493         for pool ranges.
5495 2010-06-04  Richard Guenther  <rguenther@suse.de>
5497         PR lto/41584
5498         * cgraph.h (struct varpool_node): Add lto_file_data field.
5499         * lto-cgraph.c (input_varpool_node): Initialize it.
5501 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5503         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5504         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5505         predicate in "type" attribute calculation.
5506         (*addsi_1_zext): Ditto.
5507         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5508         (*addsi_2_zext): Ditto.
5509         (*add<mode>_3): Ditto.
5510         (*addsi_3_zext): Ditto.
5511         (*add<mode>_5): Ditto.
5513 2010-06-03  Jan Hubicka  <jh@suse.cz>
5515         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5516         of bitmap_bit_p.
5517         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5519 2010-06-03  Jan Hubicka  <jh@suse.cz>
5521         * df-problems.c (df_create_unused_note, df_note_bb_compute):
5522         micro-optimize the checks when to add new note.
5524 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
5526         * final.c (output_asm_insn): Call
5527         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
5528         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
5529         (output_address): Call targetm.asm_out.print_operand_address.
5530         Update comments.
5531         * target.h (struct gcc_target): Add print_operand,
5532         print_operand_address, and print_operand_punct_valid_p fields.
5533         * targhooks.h (default_print_operand): Declare.
5534         (default_print_operand_address): Declare.
5535         (default_print_operand_punct_valid_p): Declare.
5536         * targhooks.c (default_print_operand): Define.
5537         (default_print_operand_address): Define.
5538         (default_print_operand_punct_valid_p): Define.
5539         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5540         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5541         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5542         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5543         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5544         * vmsdbgout.c (addr_const_to_string): Update comment.
5545         * config/i386/i386.c (print_operand): Rename to...
5546         (ix86_print_operand): ...this.  Make static.
5547         (print_operand_address): Rename to...
5548         (ix86_print_operand_address): ...this.  Make static.  Call
5549         ix86_print_operand instead of PRINT_OPERAND.
5550         (ix86_print_operand_punct_valid_p): New function.
5551         (TARGET_PRINT_OPERAND): Define.
5552         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5553         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5554         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5555         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5556         (PRINT_OPERAND): Delete.
5557         (PRINT_OPERAND_ADDRESS): Delete.
5558         * config/i386/i386-protos.h (print_operand): Delete prototype.
5559         (print_operand_address): Delete prototype.
5561 2010-06-03  Richard Guenther  <rguenther@suse.de>
5563         PR tree-optimization/44403
5564         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5565         Preserve pointer qualifiers.
5566         (vect_create_data_ref_ptr): Likewise.
5568 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5570         PR c++/44294
5571         * defaults.h (MAX_FIXED_MODE_SIZE): New.
5573         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5575 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
5577         PR debug/44375
5578         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5579         return false if merging the bbs would lead to goto_locus
5580         location being lost from the IL.
5582 2010-06-03  Jan Hubicka  <jh@suse.cz>
5583             Jakub Jelinek  <jakub@redhat.com>
5585         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5586         set->regs[i] is NULL or has just one entry.
5588 2010-06-03  Jan Hubicka  <jh@suse.cz>
5590         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5591         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5593 2010-06-03  Paul Brook  <paul@codesourcery.com>
5595         * config/arm/arm.c (FL_TUNE): Define.
5596         (arm_default_cpu, arm_cpu_select): Remove.
5597         (all_cores): Populate core field.
5598         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5599         (arm_find_cpu): New function.
5600         (arm_handle_option): Lookup cpu/architecture names.
5601         (arm_override_options): Cleanup mcpu/march/mtune handling.
5602         (arm_file_start): Ditto.
5604 2010-06-03  Alan Modra  <amodra@gmail.com>
5606         PR target/44169
5607         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5608         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5609         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
5610         (rs6000_emit_load_toc_table): Likewise.
5612 2010-06-02  Jan Hubicka  <jh@suse.cz>
5614         * passes.c (init_optimization_passes): Put ipa reference
5615         after ipa pure-const.
5617 2010-06-02  Jan Hubicka  <jh@suse.cz>
5619         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5620         calls_read_all and calls_write_all.
5621         (get_reference_optimization_summary): Fix formatting.
5622         (is_proper_for_analysis): Check that decl is not readonly.
5623         (propagate_bits): Check CONST/PURE/noreturn flags.
5624         (ipa_init): Move all_module_statics to optimization_summary_obstack.
5625         (analyze_function): Ignore indirect edges.
5626         (copy_global_bitmap): For all module statics, do nothing.
5627         (generate_summary): Do not print calls_read_all/calls_write_all.
5628         (read_write_all_from_decl): Take node as argument; check
5629         cgraph_node_cannot_return.
5630         (propagate): Reorganize read_all/write_all computation;
5631         check indirect edges; check ecf flags; use all_module_statics
5632         in the results; do not free all_module_statics.
5633         (stream_out_bitmap): Handle all_module_statics.
5634         (ipa_reference_write_optimization_summary): Likewise; use
5635         varpool/cgraph encoders to get boundaries.
5636         (ipa_reference_read_optimization_summary): Read in all_module_statics;
5637         use it when possible.
5639 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5641         PR target/44218
5642         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5643         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
5645         * doc/extend.texi (powerpc builtins): Document vec_recip,
5646         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
5648         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
5649         (rs6000_emit_swrsqrt): Ditto.
5650         (rs6000_emit_swdivsf): Delete.
5651         (rs6000_emit_swdivdf): Ditto.
5652         (rs6000_emit_swrsqrtsf): Ditto.
5654         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
5655         describe the reciprocal estimate support for each type.
5656         (recip_options): Map -mrecip=<opt> into option bits.
5657         (gen_2arg_fn_t): New typedef for binary rtx gen function.
5658         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
5659         reciprocal estimate instructions.
5660         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
5661         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
5662         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
5663         cost information if -mdebug=cost or -mdebug=reg.
5664         (rs6000_override_options): Set -mrecip-precision for power6, and
5665         power7 machines.  If -mvsx or -mdfp, enable various options that
5666         came in previous instruction set ISAs, unless the option was
5667         explicitly disabled by the command line option.  Parse
5668         -mrecip=<opt> options.
5669         (rs6000_builtin_vectorized_function): Add support for vectorizing
5670         the reciprocal estimate builtins and expansions.
5671         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
5672         (bdesc_2arg): Add reciprocal estimate builtins.
5673         (bdesc_1arg): Add reciprocal square root estimate builtins.
5674         (rs6000_expand_builtin): Rewrite to use a switch statement,
5675         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
5676         (rs6000_init_builtins): Create declarations for reciprocal
5677         estimate builtins.
5678         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
5679         sized, prefer traditional floating point registers, if integer
5680         vector types, prefer altivec registers.  Don't actually look at
5681         the memory address any more.
5682         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
5683         builtins.
5684         (rs6000_load_constant_and_splat): New helper function to load up
5685         the constant for reciprocal estimate instructions.
5686         (rs6000_emit_madd): New helper function for generating
5687         multiply/add type instructions, based on the current switches.
5688         (rs6000_emit_msub): Ditto.
5689         (rs6000_emit_mnsub): Ditto.
5690         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
5691         replace a divide with a reciprocal estimate and fixup, adding
5692         support for machines with high precision and vectors.
5693         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
5694         low precision machines.
5695         (rs6000_emit_swdiv): New common function to be called to replace a
5696         division with reciprocal estimate and fixup.
5697         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
5698         for double and vector types.  Add support for high precision machines.
5700         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
5701         the reciprocal estimate instructions can be generated.
5702         (TARGET_FRE): Ditto.
5703         (TARGET_FRSQRTES): Ditto.
5704         (TARGET_FRSQRTE): Ditto.
5705         (RS6000_RECIP_*): New macros for reciprocal estimate support.
5707         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
5708         square root estimate on vectors.
5709         (re<mode>2): New insn for reciprocal division estimate on vectors.
5711         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
5712         New builtin.
5713         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
5714         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
5715         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
5716         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
5717         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
5718         (RS6000_BUILTIN_RSQRT): Ditto.
5719         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
5720         floating point builtin.
5722         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5723         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
5724         __RECIP_PRECISION__ based on the command line switches.
5725         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
5727         * config/rs6000/rs6000.opt (-mrecip): Document add support for
5728         replacing division instructions with reciprocal estimate and fixup.
5729         (-mrecip=<opt>): New option.
5730         (-mrecip-precision): Ditto.
5732         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
5733         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
5734         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
5735         precision scalar.
5737         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
5738         (UNSPEC_VREFP): Ditto.
5739         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
5740         conterparts with regard to support of -mno-fused-madd and -ffast-math.
5741         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
5742         reciprocal estimate instructions to be generated.
5743         (altivec_vrefp): Ditto.
5745         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
5746         estimate support.
5747         (rreg): New mode attribute for reciprocal estimate support.
5748         (recip<mode>3): New insn for division using reciprocal estimate
5749         and fixup builtins.
5750         (divide define_split): New define_split to convert floating point
5751         division to use reciprocal estimate if the user used the
5752         appropriate options and the split is run when we can add new
5753         pseudo registers for the fixup.
5754         (rsqrt<mode>2): New insn for reciprocal square root support.
5755         (recipsf3): Move into recip<mode>3.
5756         (recipdf3): Ditto.
5757         (fres): Use TARGET_FRES.
5758         (rsqrtsf2): Move into rsqrt<mode>2.
5759         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
5760         (copysignsf3): Add support for VSX.
5761         (fred): Use TARGET_FRE.
5762         (fred_fpr): Ditto.
5763         (rsqrtdf_internal1): New function for frsqrte instruciton.
5765         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
5766         (vec_rsqrt): Ditto.
5768 2010-06-03  Richard Guenther  <rguenther@suse.de>
5770         PR middle-end/44291
5771         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
5772         (set_user_assembler_libfunc): Likewise.
5774 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5776         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
5777         defaults.h.
5778         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
5779         to defaults.h
5780         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
5781         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
5782         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
5783         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
5784         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
5785         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
5786         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
5787         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
5788         * defaults.h: Updated for above mentioned changes.
5790 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
5792         * c-common.c: Remove header include of tm_p.h.
5793         * Makefile.in (c-common.o): Remove TM_P_H dependency.
5795 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
5797         * tree.h (struct tree_decl_map): New type.
5798         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
5799         (tree_decl_map_hash): New prototype.
5800         (debug_expr_for_decl, value_expr_for_decl): Change into
5801         tree_decl_map hashtab from tree_map.
5802         (init_ttree): Adjust initialization.
5803         (tree_decl_map_hash): New function.
5804         (decl_debug_expr_lookup, decl_debug_expr_insert,
5805         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
5807 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5809         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
5810         linker emulations.
5811         * configure: Regenerate.
5812         * config.in: Regenerate.
5814         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
5815         (X86_64_EMULATION): Define.
5816         (TARGET_LD_EMULATION): Use them.
5818         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
5819         (SPARC64_EMULATION): Define.
5820         (LINK_ARCH_SPEC): Use them.
5822 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5824         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
5825         smallest_mode_for_size for computing the precision types of new
5826         graphite IVs.  Do not call lang_hooks.types.type_for_size.
5828 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5830         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
5831         information.
5832         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
5834 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5836         PR middle-end/44363
5837         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
5838         return false instead.
5840 2010-06-02  Jan Hubicka  <jh@suse.cz>
5842         PR middle-end/44295
5843         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
5844         create new cgraph node to check callee.
5846 2010-06-02  Richard Guenther  <rguenther@suse.de>
5848         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5850 2010-06-02  Richard Guenther  <rguenther@suse.de>
5852         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
5853         (lto_wrapper_cleanup): ... this.  Do not exit.
5854         (fatal): Adjust.  Exit here.
5855         (fatal_perror): Likewise.
5856         (fatal_signal): New function.
5857         (main): Set up signal handlers to cleanup temporary files.
5858         * Makefile.in (lto-wrapper.o): Adjust dependencies.
5860 2010-06-02  Richard Guenther  <rguenther@suse.de>
5862         PR tree-optimization/44377
5863         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5865 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5867         * config/s390/2097.md (z10_fhex): Remove insn reservation.
5868         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5869         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5870         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5871         instruction.
5872         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5874 2010-06-02  Jan Hubicka  <jh@suse.cz>
5876         * bitmap.c (bitmap_descriptor): Add search_iter.
5877         (bitmap_find_bit): Increment it.
5878         (print_statistics): Print it.
5880 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
5882         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5883         instead of gimple_build_call_vec.  Delete unnecessary local variable.
5885 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5887         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5888         change from yesterday.
5890 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5892         * c-ada-spec.c: Clean up redundant includes.
5894 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
5896         * gimplify.c: Do not include except.h and optabs.h.
5897         (gimplify_body): Do not initialize RTL profiling.
5898         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5899         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5900         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5901         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5902         langhooks.h.
5904         * tree-pretty-print.h: Include pretty-print.h.
5905         * gimple-pretty-print.h: Include pretty-print.h.
5907         * tree-pretty-print.c: Do not include diagnostic.h.
5908         * tree-vrp.c: Likewise.
5909         * tree-tailcall.c: Likewise
5910         * tree-scalar-evolution.c: Likewise
5911         * tree-ssa-dse.c: Likewise
5912         * tree-chrec.c: Likewise
5913         * tree-ssa-sccvn.c: Likewise
5914         * tree-ssa-copyrename.c: Likewise
5915         * tree-nomudflap.c: Likewise
5916         * tree-call-cdce.c: Likewise
5917         * tree-stdarg.c: Likewise
5918         * tree-ssa-math-opts.c: Likewise
5919         * tree-nrv.c: Likewise
5920         * tree-ssa-sink.c: Likewise
5921         * tree-browser.c: Likewise
5922         * tree-ssa-loop-ivcanon.c: Likewise
5923         * tree-ssa-loop.c: Likewise
5924         * tree-parloops.c: Likewise
5925         * tree-ssa-address.c: Likewise
5926         * tree-ssa-ifcombine.c: Likewise
5927         * tree-if-conv.c: Likewise
5928         * tree-data-ref.c: Likewise
5929         * tree-affine.c: Likewise
5930         * tree-ssa-phiopt.c: Likewise
5931         * tree-ssa-coalesce.c: Likewise
5932         * tree-ssa-pre.c: Likewise
5933         * tree-ssa-live.c: Likewise
5934         * tree-predcom.c: Likewise
5935         * tree-ssa-forwprop.c: Likewise
5936         * tree-ssa-dce.c: Likewise
5937         * tree-ssa-ter.c: Likewise
5938         * tree-ssa-loop-prefetch.c: Likewise
5939         * tree-optimize.c: Likewise
5940         * tree-ssa-phiprop.c: Likewise
5941         * tree-object-size.c: Likewise
5942         * tree-outof-ssa.c: Likewise
5943         * tree-ssa-structalias.c: Likewise
5944         * tree-switch-conversion.c: Likewise
5945         * tree-ssa-reassoc.c: Likewise
5946         * tree-ssa-operands.c: Likewise
5947         * tree-vectorizer.c: Likewise
5948         * tree-vect-data-refs.c: Likewise
5949         * tree-vect-generic.c: Likewise
5950         * tree-vect-stmts.c: Likewise
5951         * tree-vect-patterns.c: Likewise
5952         * tree-vect-slp.c: Likewise
5953         * tree-vect-loop.c: Likewise
5954         * tree-ssa-loop-ivopts.c: Likewise
5955         * tree-ssa-loop-im.c: Likewise
5956         * tree-ssa-loop-niter.c: Likewise
5957         * tree-ssa-loop-unswitch.c: Likewise
5958         * tree-ssa-loop-manip.c: Likewise
5959         * tree-ssa-loop-ch.c: Likewise
5960         * tree-dump.c: Likewise
5961         * tree-complex.c: Likewise
5963         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
5964         * tree-ssa-uninit.c: Likewise
5965         * tree-ssa-threadupdate.c: Likewise
5966         * tree-ssa-uncprop.c: Likewise
5967         * tree-ssa-ccp.c: Likewise
5968         * tree-ssa-dom.c: Likewise
5969         * tree-ssa-propagate.c: Likewise
5970         * tree-ssa-alias.c: Likewise
5971         * tree-dfa.c: Likewise
5972         * tree-cfgcleanup.c: Likewise
5973         * tree-sra.c: Likewise
5974         * tree-ssa-copy.c: Likewise
5975         * tree-ssa.c: Likewise
5976         * tree-profile.c: Likewise
5977         * tree-cfg.c: Likewise
5978         * tree-ssa-threadedge.c: Likewise
5979         * tree-vect-loop-manip.c: Likewise
5981         * tree-inline.c: Do not include diagnostic.h and expr.h.
5982         Include rtl.h.
5983         (copy_decl_for_dup_finish): Do not use NULL_RTX.
5985         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
5986         * tree-loop-distribution.c: Likewise.
5988 2010-06-01  Jan Hubicka  <jh@suse.cz>
5990         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
5992 2010-06-01  Jan Hubicka  <jh@suse.cz>
5994         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
5995         remove return value.
5996         (split_bbs_on_noreturn_calls) .... here.
5997         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
5998         * tree-flow.h (fixup_noreturn_call): New.
6000 2010-06-01  Jan Hubicka  <jh@suse.cz>
6002         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6004 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
6006         * tree.h (build_nt_call_list): Delete.
6007         * tree.c (build_nt_call_list): Delete.
6009 2010-06-01  Jan Hubicka  <jh@suse.cz>
6011         * fwprop.c: Make emit-rtl.h include last.
6012         * rtlanal.c: Include emit-rtl.h.
6013         * genautomata.c: Output emit-rtl include into insn-automata.c
6014         * df-scan.c: Include emit-rtl.h.
6015         * haifa-sched.c: Indlude emit-rtl.h.
6016         * mode-switching.c: Indlude emit-rtl.h.
6017         * graph.c: Indlude emit-rtl.h.
6018         * sel-sched.c: Include emit-rtl.h.
6019         * sel-sched-ir.c: Include emit-rtl.h.
6020         * ira-build.c: Include emit-rtl.h.
6021         * emit-rtl.c: (first_insn, last_insn): Remove defines.
6022         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6023         Move to emit-rtl.h.
6024         (set_new_first_and_last_insn, get_last_insn_anywhere,
6025         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6026         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6027         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6028         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6029         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6030         Use accessor functions.
6031         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6032          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6033         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6034         mem_expr_equal_p): Move here from rtl.h.
6035         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6036         Move here from emit-rtl.c; make inline.
6037         * cfglayout.h: Include emit-rtl.h.
6038         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6039          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6040         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6041         mem_expr_equal_p, get_insns, set_first-insn,
6042         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6043         * reg-stack.c: Include emit-rtl.h.
6044         * dce.c: Likewise.
6046 2010-06-01  Jan Hubicka  <jh@suse.cz>
6048         * cgraph.h (tree_function_versioning): Update prototype.
6049         (cgraph_function_versioning): Update prototype.
6050         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6051         bitmap.
6052         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6053         (cgraph_materialize_clone, save_inline_function_body): Update use of
6054         tree_function_versioning.
6055         * tree-inline.c (copy_bb): Look for previous copied block to link
6056         after; fix debug output.
6057         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6058         (copy_body): Likewise.
6059         (expand_call_inline): Update use of copy_body.
6060         (tree_function_versioning): Update use of copy body; accept
6061         blocks_to_copy and new_entry.
6063 2010-06-01  Jan Hubicka  <jh@suse.cz>
6065         * gegenrtl.c: Remove unnecesary prototypes.
6066         (gendecl): Remove.
6067         (gendef): Produce static inline.
6068         (gencode): Remove.
6069         (main): Do not decode parameters; generate header only.
6070         * Makefile.in (genrtl.c): Remove.
6072 2010-06-01  Jan Hubicka  <jh@suse.cz>
6074         * tree-switch-conversion.c (build_one_array): Make it readonly.
6076 2010-06-01  Richard Guenther  <rguenther@suse.de>
6078         * optabs.c (init_optabs): Guard all accesses to reinit.
6079         * ipa-pure-const.c (propagate): Fix another typo.
6080         * opts.c (common_handle_option): Split assignment to bool.
6081         * c-opts.c (c_common_handle_option): Likewise.
6083 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
6084             Matthew Gingell  <gingell@adacore.com>
6086         * doc/invoke.texi: Mention -fdump-ada-spec.
6087         * tree-dump.c (dump_files): Add ada-spec.
6088         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6089         * tree-pass.h (tree_dump_index): Add TDI_ada.
6090         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6091         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6092         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6093         * c-decl.c: Include c-ada-spec.h.
6094         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6095         functions.
6096         (c_write_global_declarations): Add handling of -fdump-ada-spec.
6097         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6098         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6099         * c-ada-spec.h, c-ada-spec.c: New files.
6101 2010-06-01  Richard Guenther  <rguenther@suse.de>
6103         PR lto/43853
6104         * ipa-pure-const.c (get_function_state): Hand back varying state
6105         if we do not have one.
6106         (has_function_state): New function.
6107         (duplicate_node_data): Adjust.
6108         (remove_node_data): Likewise.
6109         (pure_const_write_summary): Likewise.
6110         (propagate): Likewise.  Fix typo.
6112 2010-06-01  Jan Hubicka  <jh@suse.cz>
6114         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6115         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6116         (execute_all_ipa_transforms): Do not play with the states.
6118 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6120         * config/arm/t-linux-androideabi: New.
6121         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6123 2010-06-01  Jan Hubicka  <jh@suse.cz>
6125         * tree-inline.c (estimate_num_insns): For stdarg functions look
6126         into call statement to count cost of argument passing.
6128 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
6130         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6131         argument for fprintf.
6132         (ix86_output_addr_diff_elt): Likewise.
6133         (x86_function_profiler): Likewise.
6134         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6135         (LPREFIX): Likewise.
6136         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6138 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6140         PR target/44338
6141         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6142         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6143         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6144         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6145         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6146         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6147         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6148         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6149         TARGET_FUSED_MADD.
6151 2010-05-31  Jan Hubicka  <jh@suse.cz>
6153         * tree.h (tree_range_check_failed): Declare noreturn.
6155 2010-05-31  Jan Hubicka  <jh@suse.cz>
6157         * gimple.c (gimple_call_builtin_p): New function.
6158         * gimple.h (gimple_call_builtin_p): Declare.
6159         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6160         to exit.
6161         (execute_warn_function_return): BUILT_IN_RETURN is return.
6162         (split_critical_edges): Return edges are not critical.
6163         (is_ctrl_altering_stmt): Builtin_in_return is altering.
6164         (gimple_verify_flow_info): Handle built_in_return.
6165         (execute_warn_function_return): Handle built_in_return.
6166         * ipa-pure-const.c (check_call): Ignore builtin_return.
6168 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6170         PR middle-end/44337
6171         * expr.c (expand_assignment): Don't store anything for out-of-bounds
6172         array accesses with non-MEM.
6174         PR tree-optimization/44182
6175         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6176         newly needs to end a bb is followed by debug stmts, instead return
6177         true from the function at the end.
6178         (maybe_move_debug_stmts_to_successors): New function.
6179         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6181 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
6183         PR target/44161
6184         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6186 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
6188         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6189         for nested functions in non-optimized compilation.
6191 2010-05-31  Richard Guenther  <rguenther@suse.de>
6193         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6195 2010-05-30  Jan Hubicka  <jh@suse.cz>
6197         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6199 2010-05-30  Richard Guenther  <rguenther@suse.de>
6201         PR lto/42975
6202         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6203         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6204         no longer needed.
6206 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
6208         * config/darwin.c (output_objc_section_asm_op): Add comment.
6209         (name_needs_quotes): Add '_' to list of valid comment chars.
6210         (machopic_output_function_base_name): Remove unneeded quotes.
6211         (darwin_encode_section_info): Adjust asm whitespace.
6212         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6213         (ASM_OUTPUT_LOCAL): Ditto.
6214         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6215         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6216         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6218 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6220         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6221         RS6000_OUTPUT_BASENAME unconditionally.
6222         (rs6000_output_function_epilogue): Likewise.
6224 2010-05-30  Jan Hubicka  <jh@suse.cz>
6226         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6227         nodes.
6229 2010-05-30  Richard Guenther  <rguenther@suse.de>
6231         * tree-cfg.c (verify_gimple_assign_single): Implement
6232         verification for COND_EXPR rhs.
6234 2010-05-30  Jan Hubicka  <jh@suse.cz>
6236         * cgraph.h (cgraph_dump_file): Declare.
6237         * cgraphunit.c (cgraph_dump_file): Export.
6238         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6240 2010-05-30  Jan Hubicka  <jh@suse.cz>
6242         * dwarf2out.c (reference_to_unused,
6243         premark_types_used_by_global_vars_helper): Avoid creation of new
6244         varpool nodes.
6246 2010-05-30  Jan Hubicka  <jh@suse.cz>
6248         * cgraph.h (cgraph_node_cannot_return,
6249         cgraph_edge_cannot_lead_to_return): New functions.
6250         * cgraph.c (cgraph_node_cannot_return,
6251         cgraph_edge_cannot_lead_to_return): Use them.
6252         * ipa-pure-const.c (pure_const_names): New static var.
6253         (check_call): Handle calls not leading to return.
6254         (pure_const_read_summary): Dump info read.
6255         (propagate): Dump info about propagation process; ignore side effects
6256         of functions not leading to exit; fix handling of pure functions.
6258 2010-05-30  Jan Hubicka  <jh@suse.cz>
6260         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6261         for tail call epilogues.
6263 2010-05-30  Jan Hubicka  <jh@suse.cz>
6265         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6266         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6267         dump files.
6269 2010-05-29  Jan Hubicka  <jh@suse.cz>
6271         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6272         node; remove references in node we no longer keep in cgrpah but need
6273         body of.
6275 2010-05-29  Jan Hubicka  <jh@suse.cz>
6277         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6279 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6281         PR target/44165
6282         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6284 2010-05-29  Jan Hubicka  <jh@suse.cz>
6286         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6287         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6288         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6289         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6290         debug_names_replaced_by, debug_update_ssa): Likewise.
6291         * sbitmap.c (debug_sbitmap): Likewise.
6292         * genrecog.c (debug_decision, debug_decision_list): Likewise.
6293         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6294         debug_tree_chain): Likewise.
6295         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6296         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6297         * optabs.c  (debug_optab_libfuncs): Likewise.
6298         (verify_loop_closed_ssa): Likewise.
6299         * value-prof.c (verify_histograms): Likewise.
6300         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6301         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6302         * cfghooks.c (verify_flow_info): Likewise.
6303         * fold-const.c (debug_fold_checksum): Likewise.
6304         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6305         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6306         Likewise.
6307         * omega.c (debug_omega_problem): Likewise.
6308         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6309         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6310         * dominance.c (verify_dominators, debug_dominance_info,
6311         debug_dominance_tree): Likewise.
6312         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6313         * df_regno_debug, df_ref_debug,
6314         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6315         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6316         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6317         * sel-sched.c (debug_state): Likewise.
6318         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6319         Likewise.
6320         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6321         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6322         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6323         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6324         Likewise.
6325         * c-pretty-print.c (debug_c_tree): Likewise.
6326         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6327         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6328         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6329         * ebitmap.c (debug_ebitmap): Likewise.
6330         * function.c (debug_find_var_in_block_tree): Likewise.
6331         * print-rtl.c (debug_rtx): Likewise.
6332         (debug_rtx_count): Likewise.
6333         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6334         * stor-layout.c (debug_rli): Likewise.
6335         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6336         * tree-data-ref.c (debug_data_references,
6337         debug_data_dependence_relations, debug_data_reference,
6338         debug_data_dependence_relation, debug_rdg_vertex,
6339         debug_rdg_component, debug_rdg): Likewise.
6340         * tree-affine.c (debug_aff): Likewise.
6341         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6342         Likewise.
6343         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6344         * emit-rtl.c (verify_rtl_sharing): Likewise.
6345         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6346         debug_value_expressions): Likewise.
6347         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6348         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6349         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6350         * cfglayout.c (verify_insn_chain): Likewise.
6351         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6352         debug_clast_stmt, debug_generated_program): Likewise.
6353         * ggc-page.c (debug_print_page_list): Likewise.
6354         * tree-ssa-ter.c (debug_ter): Likewise.
6355         * graphite-dependences.c (debug_pddr): Likewise.
6356         * sched-deps.c (debug_ds): Likewise.
6357         * tree-ssa.c (verify_ssa): Likewise.
6358         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6359         debug_scattering_functions, debug_iteration_domains, debug_pdr,
6360         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6361         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6362         * tree-inline.c (debug_find_tree): Likewise.
6363         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6364         debug_ppl_powerset_matrix): Likewise.
6365         * var-tracking.c (debug_dv): Likewise.
6366         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6367         * cfgloop.c (verify_loop_structure): Likewise.
6368         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6369         * c-common.c (verify_sequence_points): Likewise.
6370         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6371         debug_candidates, debug_rgn_dependencies): Likewise.
6372         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6373         * debug_constraint_graph, debug_solution_for_var,
6374         debug_sa_points_to_info): Likewise.
6375         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6376         Likewie.
6377         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6378         debug_loops, debug_loop, debug_loop_num): Likewise.
6379         * passes.c (debug_pass): Likewise.
6380         (dump_properties): Likewise; add cfglayout property.
6381         (debug_properties): Likewise.
6382         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6383         * varpool.c (debug_varpool): Likewise.
6384         * regcprop.c (debug_value_data): Likewise.
6385         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6386         debug_immediate_uses_for): Likewise.
6388 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6390         PR bootstrap/44315
6391         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6392         Filter out insn-flags.h.
6394 2010-05-29  Jan Hubicka  <jh@suse.cz>
6396         * cgraph.h (struct varpool_node_set_def,
6397         struct cgraph_node_set_def): Remove unused AUX pointer.
6398         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6399         VEC_empty macro.
6401 2010-05-29  Jan Hubicka  <jh@suse.cz>
6403         PR middle-end/44324
6404         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6406 2010-05-29  Richard Guenther  <rguenther@suse.de>
6408         * lto-streamer.c (cached_bp): New global variable.
6409         (bitpack_create): Return the cached bitpack, if available.
6410         (bitpack_delete): Clear and cache the bitpack, if appropriate.
6411         (bp_pack_value): Remove redundant asserts.
6413 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6415         PR middle-end/44306
6416         * tree-if-conv.c (is_true_predicate): New.
6417         (is_predicated): Use is_true_predicate.
6418         (add_to_predicate_list): Same.  Do not use unshare_expr.
6419         (add_to_dst_predicate_list): Same.
6421 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6423         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6424         field on edges.
6425         (predicate_bbs): Same.
6426         (clean_predicate_lists): Same.
6427         (find_phi_replacement_condition): Do not AND the predicate from
6428         edge->aux.
6430 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6432         PR bootstrap/44315
6433         * Makefile.in (build/gencondmd.o): Add a missing `\'.
6435 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6437         PR target/44261
6438         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6439         (negdf2): Adjust expander pattern and use negdf2_slow.
6440         (negsf2): Likewise.
6442 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
6444         * basic-block.h (struct control_flow_graph): Move last_label_uid field
6445         up.
6446         * df.h (struct df_base_ref): Move regno field up.
6447         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6448         * expr.h (struct separate_ops): Move location field up.
6449         * optabs.h (struct optab_d): Move libcall_basename field down.
6450         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6451         * config/i386/i386.h (struct machine_function): Convert call_abi field
6452         into a bitfield.  Move cfa field to the end of the structure.
6454 2010-05-29  Jan Hubicka  <jh@suse.cz>
6456         * varpool.c (varpool_get_node): Fix lookup.
6458 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6460         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
6461         RTL specific prototypes with #ifdef RTX_CODE.
6462         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6463         * config/spu/t-spu-elf: Fix dependencies.
6465         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6467 2010-05-29  Mike Stump  <mikestump@comcast.net>
6469         PR bootstrap/44315
6470         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6471         TM_H when building to avoid dependency loops.
6473 2010-05-29  Jan Hubicka  <jh@suse.cz>
6475         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6476         refs and body; not the whole node for masters of materialized clones.
6478 2010-05-29  Mike Stump  <mikestump@comcast.net>
6480         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6482 2010-05-29  Jan Hubicka  <jh@suse.cz>
6484         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6485         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6486         use of clone_function_name.
6487         * cgraph.h (cgraph_create_virtual_clone,
6488         cgraph_function_versioning): update prototypes.
6489         (clone_function_name): Declare.
6490         * ipa-cp.c (ipcp_insert_stage): Update call of
6491         cgraph_create_virtual_clone.
6492         * omp-low.c (create_omp_child_function_name): Use
6493         cgraph_create_virtual_clone.
6494         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6495         (cgraph_function_versioning): Take SUFFIX argument; produce new name
6496         and make decl local.
6498 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6500         * vec.h: Include statistics.h
6501         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
6502         with VEC_H.
6504 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6506         * c-lex.c: Do not include c-tree.h.
6507         * c-pretty-print.c: Likewise.
6508         * c-opts.c: Likewise.
6509         * c-gimplify.c: Likewise.
6510         * c-common.c: Likewise.
6511         * c-dump.c: Likewise.  Include c-common.h.
6513 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6515         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6516         before including diagnostic-core.h.
6517         (c_cpp_error): New prototype moved from c-tree.h.
6518         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6519         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6520         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6521         (c_cpp_error): Prototype moved to c-common.h.
6522         * Makefile.in: Update dependency for C_COMMON_H.
6524 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6526         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6527         * c-common.c (c_register_addr_space): Remove here.
6528         * c-decl.c (c_register_addr_space): Re-add here.
6530 2010-05-28  Mike Stump  <mikestump@comcast.net>
6532         * config/darwin-c.c: Remove c-tree.h include.
6534 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6536         * gcc.c: Include diagnostic.h.
6537         (error_count): Remove.  All users changed to use errorcount.
6538         (programname): Remove.  All users changed to use progname.
6539         (fancy_abort, internal_error, fatal_error, error, warning, inform,
6540         fnotice): Remove.
6541         (execute): Don't include "Internal error" and bug reporting
6542         information in argument of internal_error call.
6543         (process_command): Don't increment error_count after calling
6544         perror_with_name.
6545         (input_filename): Rename to gcc_input_filename.  All users
6546         changed.
6547         (main): Call diagnostic_initialize.  Register delete_temp_files
6548         with atexit.  Use seen_error to test for errors.
6549         * gcc.h: Include diagnostic-core.h.
6550         (fatal_error, error, warning): Remove.
6551         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6552         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6553         (gcc.o): Update dependencies.
6555 2010-05-28  Jeff Law  <law@redhat.com>
6557         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6558         functions.
6559         * ira.h (ira_bad_reload_regno): Declare
6560         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6562         * ira-color.c (update_curr_costs): Free updated hard reg costs.
6563         (ira_reassign_conflict_allocnos): Remove bogus asserts.
6564         (allocno_reload_assign): Likewise.
6566 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
6568         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6569         build1_stat.
6571 2010-05-28  Richard Guenther  <rguenther@suse.de>
6573         PR lto/44312
6574         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6575         Stream fixed-point constants mode.
6576         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6577         and TYPE_PRECISION.
6578         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6579         Stream fixed-point constants mode.
6580         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6581         and TYPE_PRECISION.
6583 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6585         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6586         only place it was called from.
6587         (number_of_latch_executions): Do not return chrec_dont_know when the
6588         may_be_zero is a runtime condition: instead, return a COND_EXPR
6589         including the may_be_zero condition.
6590         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6591         of nb_iterations.
6592         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6593         COND_EXPRs.
6595 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6597         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6598         generate COND_EXPRs for degenerate_phi_result.
6600 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6602         PR middle-end/44293
6603         * tree-if-conv.c (if_convertible_loop_p): Check the
6604         if-convertibility of phi nodes in non predicated BBs.
6606 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6608         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6610 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6612         PR driver/15303
6613         * gcc.c (inform, warning, inform): New functions.
6614         (fatal_ice): Rename to internal_error; change cmsgid parameter to
6615         gmsgid.  All callers changed.
6616         (notice): Rename to fnotice; add parameter fp.  All callers changed.
6617         (fatal_error): Rename to fatal_signal.  All users changed.
6618         (fatal): Rename to fatal_error; change cmsgid parameter to
6619         gmsgid.  All callers changed.
6620         (process_command): Use warning instead of error for warnings.
6621         (end_going_arg): Don't use _() around argument of error.
6622         (do_spec_1): Use inform for message from %n specs.  Use warning
6623         instead of error for warnings.
6624         (main): Use inform for comparison messages.  Use warning for
6625         message about unused linker input.
6626         (error): Increment error_count.  Print "error: ".
6627         * gcc.h (fatal): Change to fatal_error.
6628         (warning): Declare.
6629         * config/darwin-driver.c (darwin_default_min_version): Use warning
6630         instead of fprintf for warnings.
6631         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6633 2010-05-28  Julian Brown  <julian@codesourcery.com>
6635         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6636         (*thumb2_addsi3_compare0_scratch): New.
6637         * config/arm/constraints.md (Pv): New.
6638         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
6639         for ARM mode only.
6640         (*addsi3_compare0_scratch): Likewise.
6642 2010-05-28  Jan Hubicka  <jh@suse.cz>
6644         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
6645         check.
6646         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
6647         only on local statics.
6649 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
6651         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
6653 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
6655         PR bootstrap/44314
6656         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
6657         (OPTION_GLIBC): Define.
6659 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6661         PR debug/41048
6662         * dwarf2out.c (double_int_type_size_in_bits): New function.
6663         (round_up_to_align): Change first argument and return value to
6664         double_int.
6665         (field_byte_offset): Work internally on double_ints.
6667         PR target/43636
6668         * builtins.c (expand_movstr): Use a temporary pseudo instead
6669         of target even when target is not NULL and not const0_rtx, but
6670         fails movstr predicate.
6671         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
6673 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6675         * final.c (rest_of_clean_state): Use %m in errors instead of
6676         strerror (errno).
6677         * gengtype.c (read_input_list, close_output_files): Use xstrerror
6678         instead of strerror.
6679         * toplev.c (process_options): Use %m in errors instead of strerror
6680         (errno).
6681         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
6682         (errno).
6684 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
6686         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
6687         (ix86_canonical_va_list_type): Make static.  Add declaration.
6688         (ix86_enum_va_list): Make static.  Reindent.
6689         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
6690         (ix86_canonical_va_list_type): Ditto.
6691         (ix86_enum_va_list): Ditto.
6693 2010-05-28  Richard Guenther  <rguenther@suse.de>
6695         * lto-wrapper.c (run_gcc): With -save-temps generate a
6696         user-visible ltrans filename.  Fixup ltrans unit numbering.
6698 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
6700         * c-common.c (c_common_nodes_and_builtins): Replace use
6701         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
6702         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
6703         to ix86_enum_va_list.
6704         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
6705         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
6706         (TARGET_ENUM_VA_LIST_P): Add hook description.
6707         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
6708         * target.h (gcc_target): Add enum_va_list hook.
6710         PR bootstrap/44299
6711         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
6712         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
6713         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
6715 2010-05-28  Alan Modra  <amodra@gmail.com>
6717         PR target/44266
6718         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6719         emit_library_call machinery to set up __tls_get_addr calls.
6721 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6723         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
6725 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
6727         Revert fix for PR c++/44188
6728         * c-common.c (is_typedef_decl): Revert the moving of  this
6729         definition ...
6730         * tree.c (is_typedef_decl): ... here.
6731         (typdef_variant_p): Revert the moving of this  definition
6732         here from gcc/cp/tree.c.
6733         * c-common.h (is_typedef_decl): Revert the moving of this
6734         declaration ...
6735         * tree.h (is_typedef_decl): ... here.
6736         (typedef_variant_p): Revert the moving of this  declaration here
6737         from gcc/cp/cp-tree.h
6738         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
6739         (gen_tagged_type_die): Revert the splitting out of ...
6740         (gen_type_die_with_usage): ... this function. Revert the anonymous
6741         tagged type handling.
6742         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
6743         typedefs naming anonymous tagged types.
6745 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6747         * config/rs6000/rs6000-modes.def (PSImode): Delete.
6749 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6751         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
6752         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
6753         throughout.
6754         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
6755         "xer" to "ca".
6756         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
6757         XER_REGS to CA_REGS throughout.
6758         * config/rs6000/rs6000.h: Same.
6759         (ADDITIONAL_REGISTER_NAMES): Add "xer".
6760         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
6761         that mode_iterator "P" is the size for arithmetic carries as well.
6762         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
6764 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6766         PR bootstrap/44255
6767         * combine.c (struct rtx_subst_pair): Define unconditionally.
6768         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
6769         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
6770         Call make_compound_operation on pair->to.
6771         (propagate_for_debug): Don't call make_compound_operation here.
6772         Always use simplify_replace_fn_rtx.
6774 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
6776         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
6777         * config/xtensa/xtensa.c (override_options): Check
6778           TARGET_FORCE_NO_PIC and set flag_pic.
6779         * config/xtensa/xtensa.opt: Document -mforce-no-pic
6781 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6783         PR bootstrap/44299
6784         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
6785         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
6787 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6789         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
6790         toplev.h.
6791         * diagnostic.c: Don't include toplev.h.
6792         (progname): Define.  Moved from toplev.c.
6793         (seen_error): New function.
6794         * diagnostic.h: Include diagnostic-core.h.
6795         (diagnostic_t, emit_diagnostic): Don't declare here.
6796         * toplev.c (progname): Move to toplev.c.
6797         (emit_debug_global_declarations, compile_file, finalize,
6798         do_compile, toplev_main): Use seen_error.
6799         * toplev.h: Include diagnostic-core.h.
6800         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
6801         internal_error, warning, warning_at, error, error_n, error_at,
6802         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
6803         verbatim, fnotice, progname): Move to diagnostic-core.h.
6804         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
6805         (expand_builtin_expect): Use seen_error.
6806         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
6807         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
6808         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
6809         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
6810         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
6811         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
6812         errorcount for errors.
6813         * c-opts.c (c_common_finish): Use seen_error.
6814         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6815         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
6816         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
6817         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
6818         (get_coverage_counts): Use seen_error.
6819         * dwarf2out.c (dwarf2out_finish): Use seen_error.
6820         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
6821         gimplify_body): Use seen_error.
6822         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
6823         * ipa-pure-const.c (gate_pure_const): Use seen_error.
6824         * ipa-reference.c (gate_reference): Use seen_error.
6825         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
6826         * lambda-code.c: Include diagnostic-core.h instead of
6827         diagnostic.h.
6828         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6829         * lto-compress.c: Include diagnostic-core.h instead of
6830         diagnostic.h.
6831         * lto-section-in.c: Include diagnostic-core.h instead of
6832         diagnostic.h.
6833         * lto-streamer-out.c: Include diagnostic-core.h instead of
6834         diagnostic.h.
6835         * lto-streamer.c: Include diagnostic-core.h instead of
6836         diagnostic.h.
6837         (gate_lto_out): Use seen_error.
6838         * matrix-reorg.c: Include diagnostic-core.h instead of
6839         diagnostic.h.
6840         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
6841         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
6842         (gate_expand_omp, lower_omp_1): Use seen_error.
6843         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
6844         (rest_of_decl_compilation, rest_of_type_compilation,
6845         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
6846         * tree-cfg.c (label_to_block_fn): Use seen_error.
6847         * tree-inline.c (optimize_inline_calls): Use seen_error.
6848         * tree-mudflap.c (mudflap_finish_file): Use
6849         seen_error.
6850         * tree-optimize.c (gate_all_optimizations,
6851         gate_all_early_local_passes, gate_all_early_optimizations): Use
6852         seen_error.
6853         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
6854         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
6855         (varpool_remove_unreferenced_decls,
6856         varpool_assemble_pending_decls): Use seen_error.
6857         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6858         (TOPLEV_H, DIAGNOSTIC_H): Update.
6859         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6860         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6861         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6862         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6863         coverage.o, lambda-code.o): Update dependencies.
6865 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6867         PR c++/44188
6868         * c-common.c (is_typedef_decl): Move this definition ...
6869         * tree.c (is_typedef_decl): ... here.
6870         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6871         * c-common.h (is_typedef_decl): Move this declaration ...
6872         * tree.h (is_typedef_decl): ... here.
6873         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6874         * dwarf2out.c (is_naming_typedef_decl): New function.
6875         (gen_tagged_type_die): Split out of ...
6876         (gen_type_die_with_usage): ... this function. When an anonymous
6877         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6878         is emitted for the typedef.
6879         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6880         anonymous tagged types.
6882 2010-05-27  Jason Merrill  <jason@redhat.com>
6884         * print-tree.c (debug_vec_tree): New fn.
6885         (print_vec_tree): New fn.
6886         * tree.h: Declare them.
6887         * gdbinit.in (pvt): New command.
6889         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6891         * gdbinit.in (pdd): New command.
6893 2010-05-27  Jan Hubicka  <jh@suse.cz>
6895         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6896         (update_caller_keys): Return early if there are no callers;
6897         only update fibheap when decresing the key.
6898         (update_callee_keys): Avoid recursion.
6899         (decide_inlining_of_small_functions): When badness does not match;
6900         re-insert into fibheap.
6902 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
6904         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6905         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6906         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6907         (ALL_HOST_OBJS): Now a union of the above two.
6908         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6909         all files in ALL_HOST_FRONTEND_OBJS.
6910         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6912         * c-common.c: Pretend to be a backend file by undefining
6913         IN_GCC_FRONTEND (still need rtl.h here).
6915 2010-05-27  Jan Hubicka  <jh@suse.cz>
6917         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6918         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6920 2010-05-27  Jan Hubicka  <jh@suse.cz>
6922         * sched-ebb.c: Rename struct deps to struct deps_desc.
6923         * ddg.c: Likewise.
6924         * sel-sched-ir.c: Likewise.
6925         * sched-deps.c: Likewise.
6926         * sched-int.h: Likewise.
6927         * sched-rgn.c: Likewise.
6929 2010-05-27  Jon Beniston  <jon@beniston.com>
6931         PR 43726
6932         * config/lm32/lm32.h: Remove definition of
6933         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6935 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6937         PR lto/44230
6938         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
6940 2010-05-27  Richard Guenther  <rguenther@suse.de>
6942         PR tree-optimization/44284
6943         * tree-vect-stmts.c (vectorizable_assignment): Handle
6944         sign-changing conversions as simple copy.
6946 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6948         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
6949         Bionic C library.
6950         (__gthread_active_p): Check for pthread_create if compiling against
6951         Bionic C library.
6953 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6955         Support compilation for Android platform.  Reimplement -mandroid.
6957         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
6958         (*android*): Set ANDROID_DEFAULT.
6959         (arm*-*-linux*): Include linux-android.h.
6960         (arm*-*-eabi*): Don't include previous -mandroid implementation.
6961         * config/arm/eabi.h: Remove, move Android-specific parts ...
6962         * config/linux-android.h: ... here.  New file.
6963         * config/arm/eabi.opt: Rename to ...
6964         * config/linux-android.opt: ... this.
6965         (mandroid): Allow -mno-android option.  Initialize based on
6966         ANDROID_DEFAULT.
6967         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
6968         Move logic to corresponding LINUX_TARGET_* macros.
6969         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
6970         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
6971         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
6972         Android definitions.
6973         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
6974         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
6975         Document.
6977 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6979         Add support for Bionic C library
6981         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
6982         macro.
6983         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
6984         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
6986         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
6987         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
6988         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
6989         to support multiple C libraries.  Handle Bionic.
6990         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
6991         (BIONIC_DYNAMIC_LINKER64): Define.
6992         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
6993         Update.
6994         (TARGET_HAS_SINCOS): Enable for Bionic.
6996         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
6997         the last option specified on command line take effect.
6998         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
6999         (mbionic): New.
7000         (mglibc, muclibc): Update.
7002         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7003         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7004         DEFAULT_LIBC.
7006         * doc/invoke.texi (-mglibc, -muclibc): Update.
7007         (-mbionic): Document.
7009 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7011         * c-common.h (c_register_addr_space): Add prototype.
7012         (ADDR_SPACE_KEYWORD): Remove.
7013         * c-common.c (c_register_addr_space): New function.
7014         (c_addr_space_name): Reimplement.
7015         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7017         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7018         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7020         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7021         Remove TARGET_ADDR_SPACE_KEYWORDS.
7023 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7025         * input.c: New file.
7026         * input.h (main_input_filename): Move declaration to toplev.h.
7027         * toplev.c (input_location, line_table): Move to input.c
7028         * toplev.h (main_input_filename): Move declaration from input.h.
7029         * tree.c (expand_location): Move to input.c.
7030         * Makefile.in (OBJS-common): Add input.o.
7031         (input.o): Add dependencies.
7033 2010-05-27  Richard Guenther  <rguenther@suse.de>
7035         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7036         for non-existant files.
7037         (fork_execute): Mark args_name file as deleted.
7039 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7041         PR bootstrp/44287
7042         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7043         (narrow_signed_type): Likewise.
7045 2010-05-26  Jan Hubicka  <jh@suse.cz>
7047         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7048         edge only when checking is enabled; check using former_clone_of;
7049         check inline clones too.
7050         (cgraph_materialize_clone): Record former_clone_of pointer.
7051         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7052         combining redirections; dump args_to_skip bitmap
7053         (cgraph_materialize_all_clones): Do no redirection here.
7054         * ipa-inline.c (inline_transform): Do redirection here.
7055         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7056         cheking only).
7058 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7060         * config/avr/avr-c.c: Do not include regs.h.
7061         Include cpplib.h for cpp_define and tree.h for c-common.h.
7062         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7063         * config/avr/t-avr: Fix dependencies for avr-c.o.
7065 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7067         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7068         string instead of SYMBOL_REF rtx.
7069         * rtl.h (set_stack_check_libfunc): Move prototype from here...
7070         * libfuncs.h: ...to here.  Adjust for explow.c change.
7072 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7074         * pretty-print.c: Don't include ggc.h.
7075         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7076         (identifier_to_locale): Use them for allocation.
7077         * pretty-print.h (identifier_to_locale_alloc,
7078         identifier_to_locale_free): Declare.
7079         * toplev.c (alloc_for_identifier_to_locale): New.
7080         (general_init): Set identifier_to_locale_alloc and
7081         identifier_to_locale_free.
7082         * Makefile.in (pretty-print.o): Update dependencies.
7084 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7086         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7087         pointer types if they have different alignment or mode.
7089 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
7091         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7092         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7093         * config/sparc/sparc-protos.h (function_value): Remove declaration.
7094         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7095         sparc_function_value_regno_p): New functions.
7096         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7097         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7098         (function_value): Rename to...
7099         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7100         argument to 'outgoing'.
7101         (function_arg_record_value, function_arg_union_value,
7102         function_arg_vector_value): Update comment.
7104 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7106         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7107         (fde_needed_for_eh_p): New predicate.
7108         (output_call_frame_info): Use it throughout to decide whether FDEs
7109         are needed for EH purpose.
7110         (dwarf2out_begin_prologue): Reorder assignments.
7112 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7114         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7115         special case loop->header.
7116         (is_predicated): New.
7117         (if_convertible_loop_p): Call it.
7119 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7121         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7122         iterator in parameter.  Do not generate code during the analysis.
7123         (tree_if_convert_cond_stmt): Removed.
7124         (tree_if_convert_stmt): Removed.
7125         (predicate_bbs): New.
7126         (if_convertible_loop_p): Call predicate_bbs.
7127         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7128         now contains all the analysis part.
7130 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7132         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7133         statements in the analysis part.
7134         (tree_if_convert_stmt): Update comment.
7135         (remove_conditions_and_labels): New.
7136         (combine_blocks): Call remove_conditions_and_labels.
7137         (tree_if_conversion): Update comment.
7139 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7141         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7142         than 2 predecessors or more than 2 successors.
7144 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7146         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7147         of loops in which the data dependence analysis fails.
7149 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7151         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7152         CDI_POST_DOMINATORS.
7153         (tree_if_conversion): Same.
7155 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7157         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7159 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7161         * tree-if-conv.c: Update copyright years.  Fix comments.
7162         Fix indentation.
7164 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
7166         * builtin-types.def (BT_INT128): New primitive type.
7167         (BT_UINT128): Likewise.
7168         * c-common.c (c_common_r): Add __int128 keyword.
7169         (c_common_type_for_size): Handle __int128.
7170         (c_common_type_for_mode): Likewise.
7171         (c_common_signed_or_unsigned_type): Likewise.
7172         (c_common_nodes_and_builtins): Add builtin type
7173         if target supports 128-bit integer scalar.
7174         * c-common.h (enum rid): Add RID_INT128.
7175         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7176         if target supports 128-bit integer scalar.
7177         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7178         (finish_declspecs): Likewise.
7179         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7180         (c_token_starts_declspecs): Likewise.
7181         (c_parser_declspecs): Likewise.
7182         (c_parser_attributes): Likewise.
7183         (c_parser_objc_selector): Likewise.
7184         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7185         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7186         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7187         * tree.c (make_or_reuse_type): Likewise.
7188         (make_unsigned_type): Likewise.
7189         (build_common_tree_nodes_2): Likewise.
7190         * tree.h (enum integer_type_kind): Add itk_int128 and
7191         itk_unsigned_int128.
7192         (int128_integer_type_node): New define.
7193         (int128_unsigned_type_node): New define.
7194         * doc/extend.texi: Add documentation about __int128 type.
7196 2010-05-26  Richard Guenther  <rguenther@suse.de>
7198         * tree-ssa-sccvn.c (copy_nary): Adjust.
7199         (copy_phis): Rename to ...
7200         (copy_phi): ... this.  Adjust.
7201         (copy_references): Rename to ...
7202         (copy_reference): ... this.  Adjust.
7203         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7204         result into the valid table.
7206 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7208         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7209         insn-config.h, insn-codes.h, recog.h, and optabs.h.
7211 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7213         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7215 2010-05-26  Richard Guenther  <rguenther@suse.de>
7217         * opts.c (common_handle_option): Handle OPT_Ofast.
7219 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7221         * diagnostic.c: Don't include opts.h.
7222         (permissive_error_option): Define.
7223         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
7224         for classify_diagnostic.  Don't use memset for
7225         classify_diagnostic.  Initialize new and recently added fields.
7226         (diagnostic_classify_diagnostic): Use context->n_opts instead of
7227         N_OPTS.
7228         (diagnostic_report_diagnostic): Pass context parameter to
7229         diagnostic_report_warnings_p.  Use option_enabled and option_name
7230         hooks from context.
7231         (emit_diagnostic): Use permissive_error_option.
7232         (permerror): Likewise.
7233         * diagnostic.h: Don't include options.h.
7234         (struct diagnostic_context): Add n_opts, opt_permissive,
7235         inhibit_warnings, warn_system_headers, option_enabled and
7236         option_name fields.  Change classify_diagnostic to a pointer.
7237         * opts-diagnostic.h: New file.
7238         * opts.c: Include opts-diagnostic.h.
7239         (common_handle_option): Set global_dc fields for -Wfatal-errors,
7240         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7241         (option_name): New function.
7242         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7243         (c_common_handle_option): Set global_dc->permissive for
7244         -fpermissive.
7245         * c-common.c (c_cpp_error): Save and restore
7246         global_dc->warn_system_headers, not variable warn_system_headers.
7247         * toplev.c: Include opts-diagnostic.h.
7248         (general_init): Update call to diagnostic_initialize.  Set
7249         global_dc->show_column, global_dc->option_enabled and
7250         global_dc->option_name.
7251         (process_options): Don't set global_dc fields here.
7252         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7253         (diagnostic.o, opts.o, toplev.o): Update dependencies.
7255 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7257         * config/picochip/picochip.md (movsi): Split a movsi from a
7258         const after reload.
7260 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7262         * ggc-zone.c: Update copyright year.
7263         (poison_region): Mark memory for Valgrind as undefined before
7264         memset () call and inaccessible afterwards.
7265         (ggc_pch_total_size): Change type of i to int.
7267 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7269         * ggc-common.c (ggc_free_overhead): Allow empty slot.
7271 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7273         * ggc-common.c: Update copyright year.
7274         (ggc_rlimit_bound): Remove prototype.  Compile only if
7275         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7276         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7277         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
7278         (ggc_min_heapsize_heuristic): Likewise.
7280 2010-05-26  Richard Guenther  <rguenther@suse.de>
7282         PR rtl-optimization/44164
7283         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7284         no-common access-path disambiguation.
7285         (indirect_ref_may_alias_decl_p): Adjust.
7286         (indirect_refs_may_alias_p): Likewise.
7287         (refs_may_alias_p_1): Likewise.
7289 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7291         * c-typeck.c: Do not include expr.h.
7293 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7295         * rtl.h (decl_default_tls_model): Move prototype from here...
7296         * output.h: ...to here.
7297         * c-decl.c: Do not include rtl.h.
7298         * c-pragma.c: Likewise.
7299         * c-parser.c: Likewise.
7300         * c-gimplify.c: Likewise.  And also not hard-reg-set.
7301         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
7302         FIXME note for it.  Add a FIXME note for expr.h.
7303         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7304         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7305         defined.
7307 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
7309         PR target/44199
7310         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7311         or total_size is larger than red zone size for non-V4 ABI, emit a
7312         stack_tie resp. frame_tie insn before stack pointer restore.
7313         * config/rs6000/rs6000.md (frame_tie): New insn.
7315 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7317         * function.h (struct function): Add can_throw_non_call_exceptions bit.
7318         * lto-streamer-in.c (input_function): Stream it in.
7319         * lto-streamer-out.c (output_function): Stream it out.
7320         * function.c (allocate_struct_function): Set it.
7321         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7322         for flag_non_call_exceptions.
7323         * cfgbuild.c (control_flow_insn_p): Likewise.
7324         (make_edges): Likewise.
7325         * cfgexpand.c (expand_stack_alignment): Likewise.
7326         * combine.c (distribute_notes): Likewise.
7327         * cse.c (cse_extended_basic_block): Likewise.
7328         * except.c (insn_could_throw_p): Likewise.
7329         * gcse.c (simple_mem): Likewise.
7330         * ipa-pure-const.c (check_call): Likewise.
7331         (check_stmt ): Likewise.
7332         * lower-subreg.c (lower-subreg.c): Likewise.
7333         * optabs.c (emit_libcall_block): Likewise.
7334         (prepare_cmp_insn): Likewise.
7335         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7336         * postreload.c (rest_of_handle_postreload): Likewise.
7337         * reload1.c (reload_as_needed): Likewise.
7338         (emit_input_reload_insns): Likewise.
7339         (emit_output_reload_insns): Likewise.
7340         (fixup_abnormal_edges): Likewise.
7341         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7342         * store-motion.c (find_moveable_store): Likewise.
7343         * tree-eh.c (stmt_could_throw_p): Likewise.
7344         (tree_could_throw_p): Likewise.
7345         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7346         * config/arm/arm.c (arm_expand_prologue): Likewise.
7347         (thumb1_expand_prologue): Likewise.
7348         * config/rx/rx.md (cbranchsf4): Likewise.
7349         (cmpsf): Likewise.
7350         * config/s390/s390.c (s390_emit_prologue): Likewise.
7351         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7352         (inline_forbidden_into_p): New predicate.
7353         (expand_call_inline): Use it to forbid inlining.
7354         (tree_can_inline_p): Likewise.
7356 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7358         * config/i386/i386-c.c: Do not include rtl.h.
7359         * config/i386/t-i386: Update dependencies.
7361 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7363         * attribs.c: Do not include rtl.h.
7364         * Makefile.in: Update dependencies.
7366 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
7368         * double-int.h (double_int_and): New.
7369         * combine.c (try_combine): Clean up, use double_int_* and
7370         immed_double_int_const functions.
7372 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7374         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7375         stderr to /dev/null instead of grep -q.
7376         * configure: Regenerate.
7378 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7380         * Makefile.in (EXCEPT_H): Fix typo.
7382 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
7384         * ira-build.c (update_conflict_hard_reg_costs): New.
7385         (ira_build): Call update_conflict_hard_reg_costs.
7387 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7389         PR debug/41371
7390         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7391         ENABLE_CHECKING.
7392         (intersect_loc_chains): Walk the s2var's loc_chain together
7393         with s1node chain as long as the locations are equal, don't
7394         call find_loc_in_1pdv in that case.
7396         PR debug/42801
7397         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7398         (copy_bind_expr): ... instead of here.
7399         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7400         if the block hasn't been remapped.
7401         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7402         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7404 2010-05-25  Richard Guenther  <rguenther@suse.de>
7406         PR middle-end/44069
7407         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7408         out-of-bounds array accesses.
7410 2010-05-25  Richard Guenther  <rguenther@suse.de>
7412         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7413         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7414         (run_gcc): Re-organize to make cleanup easier.
7416 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7418         * config/s390/s390.c (optimization_options): Fix and move the
7419         flag_prefetch_loop_arrays override ...
7420         (override_options): ... here.
7422 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
7424         * diagnostic.c: Don't include plugin.h.
7425         (diagnostic_report_diagnostic): Don't handle plugins specially
7426         here.  Pass context to internal_error callback.
7427         * diagnostic.h (struct diagnostic_context): Add context parameter
7428         to internal_error callback.
7429         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7430         * plugin.h (struct diagnostic_context): Declare.
7431         (warn_if_plugins, plugins_internal_error_function): Declare.
7432         * toplev.c (general_init): Set global_dc->internal_error.
7433         * Makefile.in (diagnostic.o): Update dependencies.
7435 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
7437         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7438         * config/rs6000/t-darwin64: New.
7439         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7440         build crt2.
7442 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
7444         PR 44203
7445         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7446         match the original (and intended) behaviour before r159557.  This
7447         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7448         in two ways.
7450 2010-05-25  Richard Guenther  <rguenther@suse.de>
7452         * doc/invoke.texi: Document -Ofast.
7453         * target.h (struct gcc_target): Add handle_ofast.
7454         * target-def.h (TARGET_HANDLE_OFAST): Add.
7455         (TARGET_INITIALIZER): Adjust.
7456         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
7457         * common.opt (Ofast): Add.
7459 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7461         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7462         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7464 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7466         PR target/43610
7467         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7468         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
7469         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
7470         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7472 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7474         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7475         DW_OP_minus with negated offset instead of DW_OP_plus.
7476         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7478 2010-05-25  Wei Guozhi  <carrot@google.com>
7480         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7481         tst instruction and a new alternative.
7482         * config/arm/constraints.md (Pu): New constraint.
7484 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
7486         * function.c (assign_stack_local_1): Initialize variable
7487         to avoid warning when bootstrapping at -O3.
7489 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
7491         * configure.ac (all_lang_makefiles): Remove everything related to it.
7492         * configure: Regenerate.
7493         * Makefile.in: Fix reference to ada Make-lang.in.
7494         Remove support for LANG_MAKEFILES.
7496 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
7497             Sandra Loosemore  <sandra@codesourcery.com>
7499         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7500         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7501         description.  Add arm_neon_fp16_ok.
7502         (Add Options): Add arm_neon and arm_neon_fp16.
7504 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
7506         * diagnostic.c: Don't include flags.h.
7507         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7508         context parameters.  Check flags in the context passed as a parameter.
7509         (diagnostic_build_prefix): Add context parameter.  Check
7510         show_column flag in context.
7511         (diagnostic_action_after_output): Check fatal_errors flag in context.
7512         (diagnostic_report_current_module): Check show_column flag in context.
7513         (default_diagnostic_starter): Update call to
7514         diagnostic_build_prefix.
7515         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7516         (emit_diagnostic): Pass context to permissive_error_kind.
7517         (permerror): Pass context to permissive_error_kind.
7518         * diagnostic.h (struct diagnostic_context): Add show_column,
7519         pedantic_errors, permissive and fatal_errors fields.
7520         (diagnostic_build_prefix): Update prototype.
7521         * langhooks.c
7522         * toplev.c (process_options): Set flags in global_dc from
7523         flag_show_column, flag_pedantic_errors, flag_permissive,
7524         flag_fatal_errors.
7525         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7526         to diagnostic_build_prefix.
7527         * Makefile.in (diagnostic.o): Update dependencies.
7529 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7531         * config/i386/ia32intrin.h (__crc32q): Define only if
7532         __SSE4_2__ is defined.
7534 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
7536         PR target/44132
7537         PR middle-end/43602
7538         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7539         DECL_VISIBILITY_SPECIFIED.
7540         (emutls_decl): Set DECL_PRESERVE_P and copy
7541         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7542         (emutls_finalize_control_var): New callback.
7543         (emutls_finish): Finalize emutls control variables.
7544         * toplev.c (compile_file): Move the call to emutls_finish ()
7545         before varpool_assemble_pending_decls ().
7547 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
7549         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7550         added to the preprocessor condition.
7552 2010-05-24  Paul Brook  <paul@codesourcery.com>
7554         * gengtype-lex.l: Add HARD_REG_SET.
7555         * expr.c (expand_expr_real_1): Record writes to hard registers.
7556         * function.c (rtl_data): Add asm_clobbers.
7557         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7558         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7559         Use crtl->asm_clobbers.
7561 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7563         * doc/makefile.texi (Makefile): Mention stages 'profile'
7564         and 'feedback' for profiledbootstrap.
7566 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7568         PR target/44245
7569         * config/i386/i386.c (def_builtin): Properly check
7570         OPTION_MASK_ISA_64BIT.
7572 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
7574         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7575         typedefs with different but compatible types.  Allow duplicate
7576         typedefs with the same type except for pedantic non-C1X, but give
7577         warning for variably modified types.
7578         * c-typeck.c (tagged_types_tu_compatible_p,
7579         function_types_compatible_p, type_lists_compatible_p,
7580         comptypes_internal): Add parameter different_types_p; set
7581         *different_types_p for different but compatible types.  All
7582         callers changed.
7583         (comptypes_check_different_types): New.
7584         * c-tree.h (comptypes_check_different_types): Declare.
7586 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7588         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
7589         * jump.c: Include basic-block.h.
7590         * profile.c: Likewise.
7591         * tree-profile.c: Likewise.
7592         * coverage.c: Likewise.
7593         * basic-block.h (optimize_function_for_size_p): Move to function.h.
7594         (optimize_function_for_speed_p): Likewise.
7595         * function.h (optimize_function_for_size_p,
7596         optimize_function_for_speed_p): Moved here from basic-block.h.
7597         * Makefile.in: Update dependencies.
7599 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7601         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7602         before calling make; allow override through $MAKE.
7603         * doc/invoke.texi (Optimize Options): Document override.
7605 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
7607         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7608         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7609         (rs6000_mode_dependent_address_ptr): Make static.
7610         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7611         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7612         Remove.
7614 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
7616         PR target/43869
7617         * config/i386/i386.c: Make sure that the correct regparm is passed.
7619 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7621         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7622         * sbitmap.c: ...to here to internalize sbitmap element access.
7623         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7624         Explain why basic-block.h is included.
7625         * function.h: Include tm.h for CUMULATIVE_ARGS.
7626         * Makefile.in: Update dependencies.
7628 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7630         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7631         New core types.
7632         * sbitmap.h (struct sbitmap_def): Do not typedef here.
7633         * sbitmap.c: Include sbitmap.h.
7634         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7635         hard-reg-set.h.  Split everything related to regsets out from here...
7636         * regset.h: ...to here.  New file.
7637         * df.h: Include regset.h and sbitmap.h.
7638         * tree-flow.h: Likewise.
7639         * cfgloop.h: Likewise.
7640         * except.h: Do not include sbitmap.h.  Include hashtab.h.
7641         * cgraph.h: Include vec.h and function.h.
7642         * reload.h (struct insn_chain): Change types of live_throughout
7643         and dead_or_set from regset_head to bitmap_head.
7644         (compute_use_by_pseudos): Be defined also if regset.h is not included.
7645         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
7646         spilled_regs from regset_head to bitmap_head to avoid dependency
7647         in regset.h.
7648         * sel-sched-ir.h: Include regset.h.
7649         * reload.c: Include df.h before reload.h.
7650         * caller-save.c: Likewise.
7651         * reload1.c: Likewise.
7652         * ira.c: Likewise.
7653         (mark_elimination): Update type of r to bitmap, consistent with
7654         DF_LR_IN.
7655         * dominance.c: Include bitmap.h.
7656         * modulo-sched.c: Include df.h.
7657         * cfganal.c: Include bitmap.h and sbitmap.h.
7658         * cfgbuild.c: Include sbitmap.h.
7659         * lcm.c: Include sbitmap.h.
7660         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
7661         * domwalk.c: Include sbitmap.h, exclude ggc.h.
7662         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
7663         * cselib.c: Include bitmap.h.
7664         * tree-optimize.c: Include regset.h.
7665         * stmt.c: Include bitmap.h.
7666         * Makefile.in: Update dependencies.
7668 2010-05-22  Jan Hubicka  <jh@suse.cz>
7670         * cgraph.h (struct varpool_node): Add same_comdat_group.
7671         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
7672         pointer.
7673         (output_varpool): Update call of lto_output_varpool_node.
7674         (input_varpool): Read same_comdat_group pointer.
7675         (input_varpool_1): Fixup same_comdat_group pointer.
7676         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
7677         group is needed, all are.
7678         * varpool.c (varpool_remove_node): Remove node from same comdat group
7679         linklist too.
7680         (varpool_analyze_pending_decls): Walk same comdat groups.
7682 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7684         * rtl.h (union rtunion_def): Remove rt_bit member.
7685         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
7686         * print-rtl (print_rtx): Do not print the member.
7687         * gengtype.c (adjust_field_rtx_def): Do not handle it.
7688         * gengenrtl.c (type_from_format): Likewise.
7689         (accessor_from_format): Likewise.
7691 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
7693         * dbgcnt.c: Include toplev.h instead of errors.h.
7694         * ira-emit.c: Don't include errors.h.
7695         * ira.c: Include toplev.h instead of errors.h.
7696         * lto-compress.c: Include toplev.h instead of errors.h.
7697         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
7698         ira.o, dbgcnt.o): Update dependencies.
7700 2010-05-22  Richard Guenther  <rguenther@suse.de>
7702         * gimple.c (gimple_types_compatible_p): Check type qualifications
7703         before merging pointer to complete and pointer to incomplete type.
7704         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
7705         we use our own resolution algorithm.  The gold linker plugin
7706         doesn't do the job we want it to do here.
7708 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
7710         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7711         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7712         (sparc_mode_dependent_address_p): New function.
7714 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7716         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
7718         * timevar.c: Do not include any core headers.
7719         (timevar_print): De-i18n-ize.
7720         (print_time): Likewise.
7721         * timevar.h (timevar_push, timevar_pop): Make inline functions.
7723 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
7725         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
7726         langhooks-def.h.
7727         (diagnostic_initialize): Initialize x_data not last_function.
7728         (diagnostic_report_current_function): Move to tree-diagnostic.c.
7729         (default_diagnostic_starter): Call
7730         diagnostic_report_current_module not
7731         diagnostic_report_current_function.
7732         (diagnostic_report_diagnostic): Initialize x_data not
7733         abstract_origin.
7734         (verbatim): Likewise.
7735         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
7736         x_data.
7737         (struct diagnostic_context): Change last_function to x_data.
7738         (diagnostic_auxiliary_data): Replace with
7739         diagnostic_context_auxiliary_data and
7740         diagnostic_info_auxiliary_data.
7741         (diagnostic_last_function_changed, diagnostic_set_last_function,
7742         diagnostic_report_current_function): Move to tree-diagnostic.h.
7743         (print_declaration, dump_generic_node, print_generic_stmt,
7744         print_generic_stmt_indented, print_generic_expr,
7745         print_generic_decl, debug_c_tree, dump_omp_clauses,
7746         print_call_name, debug_generic_expr, debug_generic_stmt,
7747         debug_tree_chain, default_tree_printer): Move to
7748         tree-pretty-print.h.
7749         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
7750         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
7751         gimple-pretty-print.h.
7752         * pretty-print.c: Don't include tree.h
7753         (pp_base_format): Don't handle %K here.
7754         (pp_base_tree_identifier): Move to tree-pretty-print.c.
7755         * pretty-print.h (text_info): Change abstract_origin to x_data.
7756         (pp_tree_identifier, pp_unsupported_tree,
7757         pp_base_tree_identifier): Move to tree-pretty-print.h.
7758         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
7759         tree-pretty-print.h: New files.
7760         * tree-pretty-print.c: Include tree-pretty-print.h.
7761         (percent_K_format): New.  Moved from pretty-print.c.
7762         (pp_base_tree_identifier): Move from pretty-print.c.
7763         * c-objc-common.c: Include tree-pretty-print.h.
7764         (c_tree_printer): Handle %K here.
7765         * langhooks.c: Include tree-diagnostic.h.
7766         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
7767         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
7768         (default_tree_printer): Handle %K using percent_K_format.
7769         (general_init): Use default_tree_diagnostic_starter.
7770         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
7771         (free_lang_data): Use default_tree_diagnostic_starter.
7772         * c-pretty-print.c: Include tree-pretty-print.h.
7773         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7774         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7775         * dwarf2out.c: Include tree-pretty-print.h.
7776         * except.c: Include tree-pretty-print.h.
7777         * gimple-pretty-print.c: Include tree-pretty-print.h and
7778         gimple-pretty-print.h.
7779         * gimplify.c: Include tree-pretty-print.h.
7780         * graphite-poly.c: Include tree-pretty-print.h and
7781         gimple-pretty-print.h.
7782         * ipa-cp.c: Include tree-pretty-print.h.
7783         * ipa-inline.c: Include gimple-pretty-print.h.
7784         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7785         * ipa-pure-const.c: Include gimple-pretty-print.h.
7786         * ipa-struct-reorg.c: Include tree-pretty-print.h and
7787         gimple-pretty-print.h.
7788         * ipa-type-escape.c: Include tree-pretty-print.h.
7789         * print-rtl.c: Include tree-pretty-print.h.
7790         * print-tree.c: Include gimple-pretty-print.h.
7791         * sese.c: Include tree-pretty-print.h.
7792         * tree-affine.c: Include tree-pretty-print.h.
7793         * tree-browser.c: Include tree-pretty-print.h.
7794         * tree-call-cdce.c: Include gimple-pretty-print.h.
7795         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7796         * tree-chrec.c: Include tree-pretty-print.h.
7797         * tree-data-ref.c: Include tree-pretty-print.h and
7798         gimple-pretty-print.h.
7799         * tree-dfa.c: Include tree-pretty-print.h.
7800         * tree-if-conv.c: Include tree-pretty-print.h and
7801         gimple-pretty-print.h.
7802         * tree-inline.c: Include tree-pretty-print.h.
7803         * tree-into-ssa.c: Include tree-pretty-print.h and
7804         gimple-pretty-print.h.
7805         * tree-nrv.c: Include tree-pretty-print.h.
7806         * tree-object-size.c: Include tree-pretty-print.h and
7807         gimple-pretty-print.h.
7808         * tree-outof-ssa.c: Include tree-pretty-print.h and
7809         gimple-pretty-print.h.
7810         * tree-parloops.c: Include tree-pretty-print.h and
7811         gimple-pretty-print.h.
7812         * tree-predcom.c: Include tree-pretty-print.h and
7813         gimple-pretty-print.h.
7814         * tree-scalar-evolution.c: Include tree-pretty-print.h and
7815         gimple-pretty-print.h.
7816         * tree-sra.c: Include tree-pretty-print.h.
7817         * tree-ssa-address.c: Include tree-pretty-print.h.
7818         * tree-ssa-alias.c: Include tree-pretty-print.h.
7819         * tree-ssa-ccp.c: Include tree-pretty-print.h and
7820         gimple-pretty-print.h.
7821         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
7822         * tree-ssa-copy.c: Include tree-pretty-print.h and
7823         gimple-pretty-print.h.
7824         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
7825         * tree-ssa-dce.c: Include tree-pretty-print.h and
7826         gimple-pretty-print.h.
7827         * tree-ssa-dom.c: Include tree-pretty-print.h and
7828         gimple-pretty-print.h.
7829         * tree-ssa-dse.c: Include gimple-pretty-print.h.
7830         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
7831         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
7832         * tree-ssa-live.c: Include tree-pretty-print.h and
7833         gimple-pretty-print.h.
7834         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
7835         gimple-pretty-print.h.
7836         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
7837         gimple-pretty-print.h.
7838         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
7839         gimple-pretty-print.h.
7840         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
7841         gimple-pretty-print.h.
7842         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
7843         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
7844         * tree-ssa-operands.c: Include tree-pretty-print.h and
7845         gimple-pretty-print.h.
7846         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
7847         gimple-pretty-print.h.
7848         * tree-ssa-pre.c: Include tree-pretty-print.h and
7849         gimple-pretty-print.h.
7850         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
7851         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
7852         gimple-pretty-print.h.
7853         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
7854         gimple-pretty-print.h.
7855         * tree-ssa-sink.c: Include gimple-pretty-print.h.
7856         * tree-ssa-ter.c: Include tree-pretty-print.h and
7857         gimple-pretty-print.h.
7858         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7859         * tree-ssa.c: Include tree-pretty-print.h and
7860         gimple-pretty-print.h.
7861         * tree-stdarg.c: Include gimple-pretty-print.h.
7862         * tree-switch-conversion.c: Include gimple-pretty-print.h.
7863         * tree-tailcall.c: Include tree-pretty-print.h and
7864         gimple-pretty-print.h.
7865         * tree-vect-data-refs.c: Include tree-pretty-print.h and
7866         gimple-pretty-print.h.
7867         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7868         gimple-pretty-print.h.
7869         * tree-vect-loop.c: Include tree-pretty-print.h and
7870         gimple-pretty-print.h.
7871         * tree-vect-patterns.c: Include gimple-pretty-print.h.
7872         * tree-vect-slp.c: Include tree-pretty-print.h and
7873         gimple-pretty-print.h.
7874         * tree-vect-stmts.c: Include tree-pretty-print.h and
7875         gimple-pretty-print.h.
7876         * tree-vectorizer.c: Include tree-pretty-print.h.
7877         * tree-vrp.c: Include tree-pretty-print.h and
7878         gimple-pretty-print.h.
7879         * value-prof.c: Include tree-pretty-print.h and
7880         gimple-pretty-print.h.
7881         * var-tracking.c: Include tree-pretty-print.h.
7882         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7883         (tree-diagnostic.o): New dependencies.
7884         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7885         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7886         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7887         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7888         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7889         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7890         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7891         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7892         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7893         tree-ssa-address.o, tree-ssa-loop-niter.o,
7894         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7895         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7896         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7897         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7898         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7899         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7900         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7901         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7902         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7903         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7904         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7905         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7906         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7907         tree-switch-conversion.o, var-tracking.o, value-prof.o,
7908         cfgexpand.o, pretty-print.o): Update dependencies.
7910 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
7912         * tree-ssa-structalias.c: Remove tm_p.h from include.
7914 2010-05-21  Jeff Law  <law@redhat.com>
7916         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7918 2010-05-21  Jason Merrill  <jason@redhat.com>
7920         * tree-eh.c (cleanup_is_dead_in): New.
7921         (lower_try_finally): Don't generate a dead cleanup region.
7922         (lower_cleanup): Likewise.
7924 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7926         PR debug/44223
7927         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7928         unchain each use from the cyclic next_regno_use chain first.
7930 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7932         * real: Do not include gmp.h, mpfr.h, and mpc.h.
7933         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7934         (real_value_negate, real_value_abs): New prototypes.
7935         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7936         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
7937         new include file for interface between MPFR and REAL_VALUE_TYPE.
7938         * real.c: Include realmpfr.h.
7939         (real_arithmetic2): Remove legacy function.
7940         (real_value_negate): New.
7941         (real_value_abs): New.
7942         (mfpr_from_real, real_from_mpfr): Move from here...
7943         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
7944         * builtins.c: Include realmpfr.h.
7945         * fold-const.c: Include realmpfr.h.
7946         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
7947         (fold_negate_const): Likewise.
7948         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
7949         * toplev.c: Include realmpfr.h.
7950         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
7951         and real_value_negate.
7952         * fixed-value.c (check_real_for_fixed_mode): Likewise.
7953         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
7954         (vfp3_const_double_index): Likewise.
7955         (arm_print_operand): Likewise.
7956         * Makefile.in: Update dependencies.
7958 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7960         * config/s390/s390.c (override_options): Increase the default
7961         of max-completely-peel-times.
7963 2010-05-21  Julian Brown  <julian@codesourcery.com>
7964             Mark Mitchell  <mark@codesourcery.com>
7966         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
7967         sibling calls for Thumb-1.
7968         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
7969         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
7970         Thumb-2.
7971         (*call_insn, *call_value_insn): Don't use for Thumb-2.
7972         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
7973         for Thumb-2.
7974         (return): New expander.
7975         (*arm_return): New name for ARM return insn.
7976         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
7978 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
7980         * config.gcc (sparc64-*-rtems*): New target.
7982 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7984         * tree.c (build_function_decl_skip_args): Fix grammar.
7985         (build_function_type_list_1): Fix typos, adjust formatting.
7987 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7989         * tree.h: Include real.h and fixed-value.h as basic datatypes.
7990         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
7991         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
7992         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
7993         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
7994         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
7995         tree-pretty-print.c, tree-loop-distribution.c,
7996         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
7997         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
7998         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
7999         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8000         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8001         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8002         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8003         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8004         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8005         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8006         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8007         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8008         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8009         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8010         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8011         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8012         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8013         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8014         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8015         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8016         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8017         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8018         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8019         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8020         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8021         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8022         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8023         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8024         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8025         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8026         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8027         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8028         config/score/score7.c, config/score/score.c, config/arm/arm.c,
8029         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8030         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8031         config/bfin/bfin.c: Clean up redundant includes.
8032         * Makefile.in: Update accordingly.
8034 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
8036         PR middle-end/44204
8037         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8038         statement has no arguments.
8040 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
8042         PR/44139
8043         * varasm.c (emutls_decl): Merge attributes to new decl.
8045 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8047         PR middle-end/44101
8048         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8049         around the uniquized constructor if its type requires a conversion.
8051 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
8053         PR debug/44205
8054         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8055         at -O0 goto_locus of any of the incoming edges differs from
8056         goto_locus of outgoing edge, or gimple_location of any of the
8057         labels differs.
8059 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
8061         * ira.c (ira_non_ordered_class_hard_regs): Define.
8062         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8063         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8064         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8065         cost of unaligned hard regs when allocating multi-reg pseudos.
8067 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
8069         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8070         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8071         for TARGET_NO_FLOAT.
8072         * config/mips/mips.c (mips_file_start): Expand conditional expression
8073         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8074         (mips_override_options): Move -mno-float override -msoft-float and
8075         -mhard-float.
8076         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8077         Condition(TARGET_SUPPORTS_NO_FLOAT).
8078         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8079         __mips_no_float here.
8080         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8081         (TARGET_SUPPORTS_NO_FLOAT): Define.
8082         * config/mips/sdemtk.opt: Delete.
8084 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
8086         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8088 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
8090         PR target/43733
8091         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8092         * configure: Regenerate.
8093         * config.in: Regenerate.
8094         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8095         instead of sahf only for 64bit targets.
8097 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8099         PR debug/44178
8100         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8101         setup_ref_regs for DEBUG_INSNs.
8103 2010-05-20  Jan Hubicka  <jh@suse.cz>
8105         PR middle-end/44197
8106         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8108 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
8110         PR bootstrap/43870
8111         * df-scan.c (df_ref_compare): Stabilize sort.
8113 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8115         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8116         argument.  Don't use DW_OP_piece if offset is non-zero,
8117         put offset into second DW_OP_bit_piece argument.
8118         (dw_sra_loc_expr): Adjust callers.  For memory expressions
8119         compute offset.
8121 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
8123         PR target/44202
8124         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8125         settings for 16-bit-constant "addo" alternative.
8127 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
8129         * config/mips/mips-dsp.md (add<DSPV:mode>3,
8130         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8132         PR target/43764
8133         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
8134         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8135         Use it.
8137 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
8139         * diagnostic.c (FLOAT, FFS): Don't undefine.
8140         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8141         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8142         include ordering.
8144 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8146         * combine.c (propagate_for_debug): Call make_compound_operation
8147         on the source value.
8148         (try_combine): When implementing a split chosen by find_split_point,
8149         either copy i2src or set it to null.  Assert that i2src is not null
8150         before substituting into CALL_INSN_FUNCTION_USAGE.
8152 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
8154         * double-int.h (double_int_ior): New function.
8155         * tree.h (build_int_cst_wide_type): Remove.
8156         * tree.c (build_int_cst_wide_type): Remove.
8157         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8158         of build_int_cst_wide_type.
8159         * stor-layout.c (set_sizetype): (Ditto.).
8160         * dojump.c (do_jump): Use build_int_cstu instead of
8161         build_int_cst_wide_type.
8163 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8165         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8166         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8167         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8168         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8169         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
8170         propagate the 'data' argument to copy_tree_r.
8171         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8172         Propagate 'data' argument to walk_tree.
8173         (copy_if_shared): New function.
8174         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8175         (unmark_visited): New function.
8176         (unshare_body): Call copy_if_shared instead of doing it manually.
8177         (unvisit_body): Call unmark_visited instead of doing it manually.
8179 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
8181         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8182         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
8183         * hooks.c: Likewise.
8184         * target-def.h (TARGET_FOLD_BUILTIN): Define to
8185         hook_tree_tree_int_treep_bool_null.
8186         * target.h (struct gcc_target): Update signature of fold_builtin
8187         field.
8188         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8189         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8190         instead of the call expression.
8191         (fold_builtin_call_array): Pass n and argarray directly.
8192         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8193         consing a list.
8194         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
8195         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
8196         `i' and use it in place of `arity'.
8197         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8198         Dereference `args' directly.
8199         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8201 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8203         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8204         3dnow, sse3, sse2.
8205         (Directives): Document optional dg-require-effective-target
8206         selector.
8208 2010-05-19  Richard Guenther  <rguenther@suse.de>
8210         PR lto/44196
8211         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8213 2010-05-19  Richard Guenther  <rguenther@suse.de>
8215         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8216         * common.opt (fwhopr=): New.
8217         * opts.c (common_handle_option): Handle OPT_fwhopr.
8218         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8219         * collect2.c (main): Match -fwhopr*.
8220         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8221         Execute ltrans stage in parallel when jobs is bigger than 1.
8223 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8225         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8226         pentiumpro on Solaris 8/x86 with Sun as.
8227         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8228         hidden alias bug.
8229         (gcc_cv_as_ix86_quad): Check for .quad directive.
8230         * configure: Regenerate.
8231         * config.in: Regenerate.
8232         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8234 2010-05-19  Martin Jambor  <mjambor@suse.cz>
8236         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8237         also for indirect edges.  Actual printing moved...
8238         (ipa_print_node_jump_functions_for_edge): ...here.
8239         (ipa_compute_jump_functions): Renamed to
8240         ipa_compute_jump_functions_for_edge and made static.
8241         (ipa_compute_jump_functions): New function.
8242         (make_edge_direct_to_target): Check if the number of arguments on
8243         the newly direct edge is the same as the number of parametrs of
8244         the callee.
8245         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8246         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
8247         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8248         analysis functions unconditionally, call the new
8249         ipa_analyze_params_uses on the node instead of every edge.
8251 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
8253         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8254         to tree.
8255         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
8256         also checks for a constant int vs.  non-constant but
8257         loop-invariant steps.
8258         (find_or_create_group): Change the sort algorithm to only consider
8259         steps that are constant ints.
8260         (idx_analyze_ref): Adopt code to handle a tree instead of a
8261         HOST_WIDE_INT for step.
8262         (gather_memory_references_ref): Handle tree instead of int and be
8263         prepared to see a NULL_TREE.
8264         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8265         prefetches if the step cannot be calculated at compile time.
8266         (issue_prefetch_ref): Issue prefetches for non-constant but
8267         loop-invariant steps.
8269 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8271         Revert:
8272         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8274         * tree.h (build_call_list): Remove.
8275         * tree.c (build_call_list): Remove.
8277 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8279         * tree.h (build_call_list): Remove.
8280         * tree.c (build_call_list): Remove.
8282 2010-05-18  Jan Hubicka  <jh@suse.cz>
8284         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8286 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
8288         PR rtl-optimization/43332
8289         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8291 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
8293         * tree.h (build_int_cstu): Implement as static inline.
8294         * tree.c (build_int_cstu): Remove function.
8295         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8296         sign extended.
8298 2010-05-18  Richard Guenther  <rguenther@suse.de>
8300         PR lto/44143
8301         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
8302         (debug): Initialize from -save-temps.
8303         (collect_execute): Print command-line when verbose.
8304         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
8305         for ltrans invocation.  Produce -dumpbase flag again.
8306         (process_args): Remove.
8307         (main): Simplify.
8308         * collect2.c (maybe_run_lto_and_relink): Only pass object
8309         files to lto-wrapper.
8310         * gcc.c (LINK_COMMAND_SPEC): Likewise.
8312 2010-05-18  Jan Hubicka  <jh@suse.cz>
8314         * opts.c (decode_options): Do not disable whopr at ipa_cp.
8315         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8317 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8319         PR lto/44184
8320         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8321         in a GIMPLE_ASM.
8322         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8323         in a GIMPLE_ASM.
8325 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
8327         PR debug/41371
8328         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8329         rtx_equal_p inline.
8331 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8333         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8334         lto-macho as lto_binary_reader.
8336         * darwin.c (darwin_asm_named_section): Do not add assembler comment
8337         after .section directive; just print it before the directive instead.
8339 2010-05-17  Jan Hubicka  <jh@suse.cz>
8341         * cgraph.c (cgraph_create_virtual_clone): Only check
8342         versionable_function_p when not in wpa and checking is enabled.
8343         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8344         there are no more functions to materialize.
8346 2010-05-17  Jan Hubicka  <jh@suse.cz>
8348         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8349         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8350         New functions.
8351         (output_cgraph): Call output_cgraph_opt_summary.
8352         (input_cgrpah): Call input_cgraph_opt_summary.
8353         (output_cgraph_opt_summary_p, output_node_opt_summary,
8354         input_node_opt_summary, input_cgraph_opt_section): New functions.
8355         * lto-section-in.c (lto_section_name): Add cgraphopt.
8356         * tree-inline.c (tree_function_versioning): Handle parm_num.
8357         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8358         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8360 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8362         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8363         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8364         the insn to prefetch ratio heuristic to loops with known trip count.
8366 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8368         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8369         (schedule_prefetches): Do not generate a prefetch if the unroll factor
8370         is far from what is required by the prefetch.
8372 2010-05-17  Jan Hubicka  <jh@suse.cz>
8374         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8375         (ipcp_estimate_growth): Likewise.
8376         (ipcp_const_param_count): Likewise.
8377         (ipcp_insert_stage): Likewise.
8378         * ipa-prop.c (visit_load_for_mod_analysis): New function.
8379         (visit_store_addr_for_mod_analysis): Set used flag.
8380         (ipa_detect_param_modifications): Set used flag for SSE params;
8381         update use of walk_stmt_load_store_addr_ops.
8382         (ipa_print_node_params): Print used flag.
8383         (ipa_write_node_info): Stream used flag.
8384         (ipa_read_node_info): Likewise.
8385         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8386         (ipa_is_param_used): New function.
8387         (lto_ipa_fixup_call_notes): Remove unused declaration.
8389 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8391         PR target/44074
8392         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8393         * configure: Regenerate.
8394         * config.in: Regenerate.
8395         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8396         !HAVE_AS_IX86_REP_LOCK_PREFIX.
8397         Don't emit whitespace.
8398         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8399         (*rep_movsi): Likewise.
8400         (*rep_movsi_rex64): Likewise.
8401         (*rep_movqi): Likewise.
8402         (*rep_movqi_rex64): Likewise.
8403         (*rep_stosdi_rex64): Likewise.
8404         (*rep_stossi): Likewise.
8405         (*rep_stossi_rex64): Likewise.
8406         (*rep_stosqi): Likewise.
8407         (*rep_stosqi_rex64): Likewise.
8408         (*cmpstrnqi_nz_1): Use {%;} after repz.
8409         (*cmpstrnqi_nz_rex_1): Likewise.
8410         (*cmpstrnqi_1): Likewise.
8411         (*cmpstrnqi_rex_1): Likewise.
8412         (*strlenqi_1): Use {%;} after repnz.
8413         (*strlenqi_rex_1): Likewise.
8414         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8415         (*sync_compare_and_swap<mode>): Likewise.
8416         (sync_double_compare_and_swap<mode>): Likewise.
8417         (*sync_double_compare_and_swapdi_pic): Likewise.
8418         (sync_old_add<mode>): Likewise.
8419         (sync_add<mode>): Likewise.
8420         (sync_sub<mode>): Likewise.
8421         (sync_<code><mode>): Likewise.
8423 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8425         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8426         otr_token and polymorphic.
8427         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8428         (cgraph_clone_edge): Copy the above fields.
8429         * tree.c (get_binfo_at_offset): New function.
8430         * tree.h (get_binfo_at_offset): Declare.
8431         * ipa-prop.h (enum jump_func_type): Added known_type jump function
8432         type, reordered items, updated comments.
8433         (union jump_func_value): Added base_type field, reordered fields.
8434         (enum ipa_lattice_type): Moved down in the file.
8435         (struct ipa_param_descriptor): New field polymorphic.
8436         (ipa_is_param_polymorphic): New function.
8437         * ipa-prop.c: Include gimple.h and gimple-fold.h.
8438         (ipa_print_node_jump_functions): Print known type jump functions.
8439         (compute_complex_pass_through): Renamed to...
8440         (compute_complex_assign_jump_func): this.
8441         (compute_complex_ancestor_jump_func): New function.
8442         (compute_known_type_jump_func): Likewise.
8443         (compute_scalar_jump_functions): Create known type and complex ancestor
8444         jump functions.
8445         (ipa_note_param_call): New parameter polymorphic, set the corresponding
8446         flag in the call note accordingly.
8447         (ipa_analyze_call_uses): Renamed to...
8448         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
8449         variable var only in the block where it is used.
8450         (ipa_analyze_virtual_call_uses): New function.
8451         (ipa_analyze_call_uses): Likewise.
8452         (combine_known_type_and_ancestor_jfs): Likewise.
8453         (update_jump_functions_after_inlining): Implemented handling of a
8454         number of new jump function types combination.
8455         (print_edge_addition_message): Removed.
8456         (make_edge_direct_to_target): New function.
8457         (try_make_edge_direct_simple_call): Likewise.
8458         (try_make_edge_direct_virtual_call): Likewise.
8459         (update_call_notes_after_inlining): Renamed to...
8460         (update_indirect_edges_after_inlining): this.  Moved edge creation for
8461         indirect calls to try_make_edge_direct_simple_call, also calls
8462         try_make_edge_direct_virtual_call for virtual calls.
8463         (ipa_print_node_params): Changed the header message.
8464         (ipa_write_jump_function): Stream also known type jump functions.
8465         (ipa_read_jump_function): Likewise.
8466         (ipa_write_indirect_edge_info): Stream new fields in
8467         cgraph_indirect_call_info.
8468         (ipa_read_indirect_edge_info): Likewise.
8469         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8470         GIMPLE_FOLD_H.
8472 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8474         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8476 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8478         * tree.h (CALL_EXPR_ARGS): Delete.
8479         (call_expr_arglist): Delete.
8480         * tree.c (call_expr_arglist): Delete.
8481         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8482         targetm.fold_builtin.
8483         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8484         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8485         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8486         arglist parameter.  Use CALL_EXPR_ARG.
8487         (picochip_expand_builtin_3op): Likewise.
8488         (picochip_expand_builtin_2opvoid): Likewise.
8489         (picochip_expand_array_get): Likewise.
8490         (picochip_expand_array_put): Likewise.
8491         (picochip_expand_array_testport): Likewise.
8492         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
8493         rather than arglist.
8494         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8495         CALL_EXPR_ARGS.
8496         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8497         than TREE_VALUE and TREE_CHAIN.
8498         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8499         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8500         the arglist.
8502 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8504         PR bootstrap/42347
8505         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8506         to have no fallthru edge.
8508         PR middle-end/44102
8509         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8510         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8511         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8512         add BARRIER after previous bb if needed.
8514 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8516         * tree.c (build_function_type_list_1): Remove bogus assert condition.
8518 2010-05-17  Alan Modra  <amodra@gmail.com>
8520         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8521         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
8522         with copy_reg rtx param.
8523         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8524         Correct cases where code for ABI_V4 did not initialise the reg
8525         used to access frame.  Also leave frame_reg_rtx as sp for large
8526         frames that save no regs.
8528 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8530         PR middle-end/44133
8531         * tree-sra.c (create_access_replacement): New parameter rename, mark
8532         the replaement for renaming only when it is true.
8533         (get_access_replacement): Pass true in the rename parameter of
8534         create_access_replacement.
8535         (get_unrenamed_access_replacement): New function.
8536         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8537         replacement declaration from it.
8539 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
8541         * function.c (try_fit_stack_local, add_frame_space): New static
8542         functions.
8543         (assign_stack_local_1): Use them.  Look for opportunities to use
8544         space previously wasted on alignment.
8545         * function.h (struct frame_space): New.
8546         (struct rtl_data): Add FRAME_SPACE_LIST member.
8547         * reload1.c (something_was_spilled): New static variable.
8548         (alter_reg): Set it.
8549         (reload): Test it in addition to testing if the frame size changed.
8551 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
8553         * config/s390/s390.c: Define sane prefetch settings and activate
8554         flag_prefetch_loop_arrays on -O3.
8555         * config/s390/s390.h: Declare that read can use write prefetch.
8557 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8559         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8560         build.
8562 2010-05-16  Jan Hubicka  <jh@suse.cz>
8564         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8565         function body; do not check stdarg field of struct function.
8567 2010-05-16  Jan Hubicka  <jh@suse.cz>
8569         * cgraph.c (dump_cgraph_node): Dump versionable flag.
8570         * cgraph.h (cgraph_local_info): Add versionable flag.
8571         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8572         (ipcp_versionable_function_p): Use it.
8573         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8574         versionable flag.
8576 2010-05-16  Jan Hubicka  <jh@suse.cz>
8578         * cgraph.c (cgraph_clone_node): Take decl argument and insert
8579         clone into hash when it is different from orig.
8580         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8581         * cgraph.h (cgraph_clone_node): Update prototype.
8582         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8583         (lto_cgraph_encoder_delete): Delete body map.
8584         (lto_cgraph_encoder_size): Move to header.
8585         (lto_cgraph_encoder_encode_body_p,
8586         lto_set_cgraph_encoder_encode_body): New.
8587         (lto_output_node): Do not take written_decls argument; output clone_of
8588         pointer.
8589         (add_node_to): Add include_body_argument; call
8590         lto_set_cgraph_encoder_encode_body on master of the clone.
8591         (add_references): Update use of add_node_to.
8592         (compute_ltrans_boundary): Likewise.
8593         (output_cgraph): Do not create written_decls bitmap.
8594         (input_node): Take nodes argument; stream in clone_of correctly.
8595         (input_cgraph_1): Update use of input_node.
8596         * lto-streamer-out.c (lto_output): Use encoder info to decide
8597         what bodies to output.
8598         * ipa-inline.c (cgraph_clone_inlined_nodes,
8599         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8600         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8601         (lto_cgraph_encoder_size): Define here.
8602         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8603         Declare.
8605 2010-05-16  Richard Guenther  <rguenther@suse.de>
8607         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8608         -fipa-type-escape.
8609         * ipa-type-escape.c (gate_type_escape_vars): Run when
8610         -fipa-struct-reorg runs.
8611         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8612         * common.opt (fipa-type-escape): Remove.
8614 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8616         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8617         (decode_options): Likewise.
8618         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8620 2010-05-16  Jan Hubicka  <jh@suse.cz>
8622         * ipa.c (function_and_variable_visibility): Also bring local all
8623         aliases.
8625 2010-05-16  Richard Guenther  <rguenther@suse.de>
8627         * alias.c (nonoverlapping_memrefs_p): Remove use of
8628         IPA type-escape information.
8630 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
8632         * c-common.c (c_common_reswords): Add _Static_assert for C.
8633         * c-parser.c (c_token_starts_declaration,
8634         c_parser_next_token_starts_declaration,
8635         c_parser_static_assert_declaration_no_semi,
8636         c_parser_static_assert_declaration): New.
8637         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8638         Handle static assertions if static_assert_ok.
8639         (c_parser_external_declaration, c_parser_declaration_or_fndef,
8640         c_parser_compound_statement_nostart, c_parser_label,
8641         c_parser_for_statement, c_parser_objc_methodprotolist,
8642         c_parser_omp_for_loop): All callers of
8643         c_parser_declaration_or_fndef changed.
8644         (c_parser_struct_declaration): Handle static assertions.
8645         (c_parser_compound_statement_nostart): Use
8646         c_parser_next_token_starts_declaration and
8647         c_token_starts_declaration to detect start of declarations.
8648         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
8649         Likewise.
8651 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
8653         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8654         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8655         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8656         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8657         (mmix_function_outgoing_value): Rename to...
8658         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
8659         (mmix_function_value_regno_p): Make static.
8660         (mmix_libcall_value): New function.
8661         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
8662         mmix_function_value_regno_p): Remove declaration.
8664 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8666         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
8667         BUILT_IN_ALLOCA if stack checking is enabled.
8669 2010-05-16  Richard Guenther  <rguenther@suse.de>
8671         * var-tracking.c (vars_copy_1): Inline ...
8672         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8673         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
8674         (variable_merge_over_cur): Adjust.  Merge asserts.
8675         (variable_merge_over_src): Likewise.
8676         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
8677         (variable_post_merge_new_vals): Merge asserts.
8678         (variable_post_merge_perm_vals): Likewise.
8679         (find_mem_expr_in_1pdv): Likewise.
8680         (dataflow_set_different_value): Remove.
8681         (onepart_variable_different_p): Merge asserts.
8682         (variable_different_p): Likewise.
8683         (dataflow_set_different_1): Inline ...
8684         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8685         (emit_notes_for_differences_1): Merge asserts.
8687 2010-05-16  Richard Guenther  <rguenther@suse.de>
8689         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
8690         * optabs.c (libfunc_decl_hash): Likewise.
8691         * varasm.c (emutls_decl): Likewise.
8693 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
8695         * c-decl.c: Don't include gimple.h.
8696         (merge_decls): Do not copy gimple_body.
8698 2010-05-15  Jason Merrill  <jason@redhat.com>
8700         * c.opt: Add -fnothrow-opt.
8702 2010-05-15  Jan Hubicka  <jh@suse.cz>
8704         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
8705         analyzed.
8706         * passes.c (ipa_write_summaries): Write all analyzed nodes.
8708 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
8710         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
8711         * Makefile.in: Add it.
8712         Fix all other Makefile dependencies for changes below.
8713         * tree.h: Include it instead of defining VEC primitives here.
8714         * gimple.h: Likewise.
8715         * rtl.h: Likewise.
8716         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
8717         * except.h: Include vecir.h, break dependence on tree.h.
8719         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
8720         Move from here...
8721         * tree-iterator.c: ...to here.
8722         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
8724         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
8725         tm_p.h.
8726         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
8727         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
8728         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
8729         tree-mudflap.h, and target.h.
8730         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
8731         predict.h, tree-inline.h, gimple.h, and langhooks.h.
8732         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
8733         Add FIXME for why gimple.h is still included (should be unnecessary
8734         since GCC 4.5 gimplification unit-at-a-time).
8735         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
8736         * c-pragma.c: Add FIXME for why function.h needs to be included just
8737         for cfun, at front-end level.
8738         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
8739         Do not include ggc.h, but include vecprim.h for VEC(char).
8740         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
8741         Explain why target.h is included.
8742         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
8743         Explain why gimple.h is included.
8744         * c-ppoutput.c: Do not include tm.h.
8745         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
8746         * c-parses.c: Explain why rtl.h is included, and that this (and only
8747         this) is also why tm.h must be included.
8748         Do not include except.h.
8749         * c-lang.c: Do not include ggc.h.
8751 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
8753         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
8755 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
8757         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
8758         unions by default if those structs and unions have no tags.  Do
8759         not condition anonymous struct and unions handling on flag_iso.
8760         Allow anonymous structs and unions for C1X.
8761         (finish_struct): Do not diagnose lack of named fields when
8762         anonymous structs and unions present for C1X.  Accept flexible
8763         array members in structure with anonymous structs or unions but no
8764         directly named fields.
8765         * doc/extend.texi (Unnamed Fields): Update.
8767 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8769         * gimple.h (compare_field_offset): Rename into...
8770         (gimple_compare_field_offset): ...this.
8771         * gimple.c (compare_field_offset): Rename into...
8772         (gimple_compare_field_offset): ...this.  Compare the full access if
8773         the offset is self-referential.
8774         (gimple_types_compatible_p): Adjust for above renaming.
8775         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
8776         DECL_NONADDRESSABLE_P flag of fields before merging them.
8778 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
8780         * tree.h (ctor_to_list): Delete.
8781         * tree.c (ctor_to_list): Delete.
8783 2010-05-15  Jan Hubicka  <jh@suse.cz>
8785         * ipa-reference.c: Include toplev.h
8786         (is_proper_for_analysis): Only add to all_module_statics
8787         if it is allocated.
8788         (write_node_summary_p, stream_out_bitmap,
8789         ipa_reference_write_optimization_summary,
8790         ipa_reference_read_optimization_summary): New.
8791         (struct ipa_opt_pass_d pass_ipa_reference): Add
8792         optimization summary streaming.
8793         * lto-cgraph.c (referenced_from_this_partition_p,
8794         reachable_from_this_partition_p): New functions.
8795         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8796         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
8797         * opts.c (decode_options): Enable ipa_reference.
8798         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
8799         * lto-streamer.h (referenced_from_this_partition_p,
8800         reachable_from_this_partition_p): Declare.
8802 2010-05-15  Richard Guenther  <rguenther@suse.de>
8804         PR tree-optimization/44038
8805         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
8806         taking the address of a V_C_E of a constant.
8808 2010-05-14  Jan Hubicka  <jh@suse.cz>
8810         * tree.h (memory_identifier_string): Remove.
8811         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
8812         (ipa_reference_global_vars_info_d): Remove statics_not_read and
8813         statics_not_written.
8814         (ipa_reference_optimization_summary_d): New structure.
8815         (ipa_reference_optimization_summary_t): New type and vector.
8816         (ipa_reference_vars_info_d): Embedd structures instead of using
8817         pointers.
8818         (reference_vars_to_consider): Remove out of GGC space.
8819         (module_statics_escape): Remove.
8820         (global_info_obstack): Rename to ...
8821         (optimization_summary_obstack): ... this one.
8822         (initialization_status_t): Remove.
8823         (memory_identifier_string): Remove.
8824         (get_reference_vars_info): Fix indenting.
8825         (set_reference_vars_info): Likewise.
8826         (get_reference_optimization_summary): New.
8827         (set_reference_optimization_summary): New.
8828         (get_global_reference_vars_info): Remove.
8829         (ipa_reference_get_read_global): Remove.
8830         (ipa_reference_get_written_global): Remove.
8831         (ipa_reference_get_not_read_global): Update.
8832         (ipa_reference_get_not_written_global): Update.
8833         (is_proper_for_analysis): Outlaw addressable.
8834         (propagate_bits): Update for new datastructures.
8835         (analyze_variable): Remove.
8836         (init_function_info): Update for new datastructures.
8837         (clean_function_local_data): Remove.
8838         (clean_function): Remove.
8839         (copy_global_bitmap): Use optimizations_summary_obstack.
8840         (duplicate_node_data): Duplicate optimization summary only.
8841         (remove_node_data): Remove optimization summary only.
8842         (generate_summary): Do not analyze variables; do not compute
8843         module_statics_escape; do not prune solutions by it.
8844         (read_write_all_from_decl): Fix typos in comments.
8845         (propagate): Doscover readonly and nonaddressable first;
8846         update for new datastructures; share global bitmaps.
8847         * ipa-reference.h (ipa_reference_get_read_global,
8848         ipa_reference_get_written_global): Remove.
8849         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
8850         * Makefile.in: Remove ipa-refereference from GT files.
8852 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8854         PR debug/44112
8855         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
8856         for all SYMBOL_REF_DECLs.
8858 2010-05-14  Jan Hubicka  <jh@suse.cz>
8860         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8861         (varpool_all_refs_explicit_p): New inline function.
8862         * ipa-reference.c: Update comment.
8863         (module_statics_written): Remove.
8864         (get_static_decl): Remove.
8865         (ipa_init): Do not initialize module_statics_written.
8866         (analyze_function): Likewise.
8867         (generate_summary): Likewise; do not compute module_statics_readonly
8868         and do not update variable flags.
8869         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8870         * ipa.c: Inlucde flags.h
8871         (cgraph_local_node_p): New.
8872         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8873         promote functions to local.
8874         (ipa_discover_readonly_nonaddressable_vars): New function.
8875         (function_and_variable_visibility): Use cgraph_local_node_p.
8876         * varpool.c (varpool_finalize_decl): Set force_output for
8877         DECL_PRESERVE_P vars.
8879 2010-05-14  Jan Hubicka  <jh@suse.cz>
8881         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8883 2010-05-14  Richard Guenther  <rguenther@suse.de>
8885         PR tree-optimization/44119
8886         * tree-ssa-pre.c (eliminate): Properly mark replacement of
8887         a PHI node necessary.
8889 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8891         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8893 2010-05-14  Jason Merrill  <jason@redhat.com>
8895         PR c++/44127
8896         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8897         (gimple_call_set_nothrow): New.
8898         * gimple.c (gimple_build_call_from_tree): Call it.
8899         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8901         PR c++/44127
8902         * gimplify.c (gimplify_seq_add_stmt): No longer static.
8903         * gimple.h: Declare it.
8904         * gimple.c (gimple_build_eh_filter): No ops.
8906 2010-05-14  Jan Hubicka  <jh@suse.cz>
8908         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8909         nodes already in queue.
8910         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8911         re-enqueueing node.
8913 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8915         PR debug/44136
8916         * cfgexpand.c (expand_debug_expr): If non-memory op0
8917         has BLKmode, return NULL.
8919 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
8921         * config.gcc: Add support for --with-cpu option for bdver1.
8922         * config/i386/i386.h (TARGET_BDVER1): New macro.
8923         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8924         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8925         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8926         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8927         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8928         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8929         (processor_type): Add PROCESSOR_BDVER1.
8930         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8931         processor_type in config/i386/i386.h.
8932         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8933         movaps <reg, reg> instead of movapd <reg, reg> when replacing
8934         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
8935         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
8936         to emit packed xor instead of packed double/packed integer
8937         xor for SSE and AVX when moving a zero value.
8938         * config/i386/sse.md: Add check for
8939         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
8940         movapd/movdqa for SSE and AVX.
8941         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
8942         single logical operations i.e and, or and xor instead of packed double
8943         logical operations for SSE and AVX.
8944         * config/i386/i386-c.c (ix86_target_macros_internal):
8945         Add PROCESSOR_BDVER1.
8946         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
8947         (has_fma4, has_xop): New.
8948         * config/i386/i386.c (bdver1_cost): New variable.
8949         (m_BDVER1): New macro.
8950         (m_AMD_MULTIPLE): Add m_BDVER1.
8951         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
8952         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
8953         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
8954         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
8955         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
8956         x86_tune_sse_partial_reg_dependency,
8957         x86_tune_sse_unaligned_load_optimal,
8958         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
8959         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
8960         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
8961         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
8962         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
8963         Enable/disable for bdver1.
8964         (processor_target_table): Add bdver1_cost.
8965         (cpu_names): Add bdver1.
8966         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
8967          processor_alias_table.
8968         (ix86_expand_vector_move_misalign): Change.
8969         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
8970         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
8971         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
8972         of movupd/movdqu for SSE and AVX.
8973         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
8974         (ix86_tune_adjust_cost): Add code for bdver1.
8975         (standard_sse_constant_opcode): Add check for
8976         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
8977         of packed double xor for SSE and AVX.
8979 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
8981         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
8982         result to unsigned.
8984 2010-05-14  Tristan Gingold  <gingold@adacore.com>
8986         * toplev.c (default_debug_hooks): Remove this variable.
8987         (process_options): Remove assignments to default_debug_hooks.
8989 2010-05-14  Martin Jambor  <mjambor@suse.cz>
8991         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
8992         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
8993         * langhooks.h (struct lang_hooks_for_decls): Removed field
8994         fold_obj_type_ref.
8995         * tree.c (free_lang_data): Remove assignment to
8996         lang_hooks.fold_obj_type_ref.
8997         * tree.def (OBJ_TYPE_REF): Update comment.
8999 2010-05-14  Richard Guenther  <rguenther@suse.de>
9001         PR tree-optimization/44124
9002         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9004 2010-05-14  Alan Modra  <amodra@gmail.com>
9006         PR target/44075
9007         * config/rs6000/rs6000.c (struct machine_function): Reorder
9008         fields for better packing.  Add lr_save_state.
9009         (rs6000_ra_ever_killed): Return lr_save_state if set.
9010         (rs6000_emit_eh_reg_restore): Set lr_save_state.
9012 2010-05-13  Jan Hubicka  <jh@suse.cz>
9014         * varpool.c (decide_is_variable_needed): Drop code checking
9015         TREE_SYMBOL_REFERENCED.
9017 2010-05-13  Jan Hubicka  <jh@suse.cz>
9019         * final.c (output_addr_const): Do not call mark_decl_referenced.
9020         * cgraphunit.c (process_function_and_variable_attributes): Use
9021         mark_needed_node dirrectly.
9022         (assemble_thunk): Do not call mark_decl_referenced.
9024 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
9026         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9028 2010-05-13  Jeff Law  <law@redhat.com>
9030         * ira-conflicts.c (print_allocno_conflicts): New function broken out
9031         from...
9032         (print_conflicts): Call print_allocno_conflicts.
9034 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9036         PR debug/44104
9037         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9038         if it is NULL.
9040 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
9042         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9043         t-mingw-w64 or t-mingw-w32 for multilib configuration.
9044         * config/i386/t-mingw-w32: New.
9045         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9047 2010-05-13  Martin Jambor  <mjambor@suse.cz>
9049         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9050         gimple-fold.c).
9051         * gimple-fold.c (get_base_binfo_for_type): New function.
9052         (gimple_get_relevant_ref_binfo): Likewise.
9053         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9054         (gimple_fold_obj_type_ref): Likewise.
9055         (fold_gimple_call): Simplify condition for folding virtual calls
9056         and call gimple_fold_obj_type_ref.
9057         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9058         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9060 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
9062         * config/rs6000/rs6000-protos.h
9063         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9064         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9065         (rs6000_debug_mode_dependent_address)
9066         (rs6000_mode_dependent_address_ptr): Likewise.
9068 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9070         PR debug/43983
9071         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9072         by SRA.
9073         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9074         * tree-sra.c (create_access_replacement): Call unshare_expr before
9075         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9076         * dwarf2out.c: Include tree-flow.h.
9077         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9078         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9079         Handle DW_OP_bit_piece.
9080         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9081         construct_piece_list, adjust_piece_list): New functions.
9082         (add_var_loc_to_decl): Handle SRA optimized variables.
9083         Adjust for var_loc_note to loc field renaming.
9084         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9085         in VAR_LOCATION note.
9086         (new_loc_descr_op_bit_piece): New function.
9087         (dw_sra_loc_expr): New function.
9088         (dw_loc_list): Use it.  Don't handle the last range after the
9089         loop, handle it inside of the loop.  Adjust for var_loc_note
9090         to loc field renaming.
9091         (add_location_or_const_value_attribute): Only special case
9092         single entry loc lists if loc is NOTE_P.  Adjust for
9093         var_loc_note to loc field renaming.
9094         (dwarf2out_var_location): Don't set newloc->var_loc_note
9095         and newloc->next here.
9097 2010-05-12  Jan Hubicka  <jh@suse.cz>
9099         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9100         flag.
9101         * cgraph.h (cgraph_only_called_directly_p,
9102         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9103         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9104         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9105         (assemble
9106         * ipa.c (cgraph_remove_unreachable_nodes): Use
9107         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9108         flags.
9109         * tree-inline.c (copy_bb): Check address_taken flag.
9110         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9111         externally_visible flag.
9113 2010-05-12  Jason Merrill  <jason@redhat.com>
9115         PR bootstrap/44048
9116         PR target/44099
9117         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9118         * sdbout.c (plain_type_1): Likewise.
9119         * dwarf2out.c (is_base_type): Likewise.
9120         (gen_type_die_with_usage): Likewise.  Generate
9121         DW_TAG_unspecified_type for any LANG_TYPE.
9123 2010-05-12  Jan Hubicka  <jh@suse.cz>
9125         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9126         indrect edges too.
9127         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9128         (cgraph_clone_edge): Update.
9129         (cgraph_node_remove_callees): Remove indirect calls too.
9130         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9131         (cgraph_create_indirect_edge): Update prototype.
9132         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9133         is_proper_for_analysis.
9134         (add_new_function, visited_nodes, function_insertion_hook_holder,
9135         get_local_reference_vars_info, mark_address_taken, mark_address,
9136         mark_load, mark_store, check_asm_memory_clobber, check_call,
9137         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9138         (ipa_init): Do not initialize visited_nodes;
9139         function_insertion_hook_holder.
9140         (analyze_variable): Rewrite.
9141         (analyze_function): Rewrite.
9142         (copy_local_bitmap): Remove.
9143         (duplicate_node_dat): Do not duplicate local info.
9144         (generate_summary): Simplify to only walk cgraph.
9145         (write_node_summary_p, ipa_reference_write_summary,
9146         ipa_reference_read_summary): Remove.
9147         (propagate): Do not remove function insertion;
9148         generate summary.
9149         (pass_ipa_reference): NULLify summary handling fields.
9150         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9151         (input_edge): Input ecf_flags.
9152         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9153         (update_indirect_edges_after_inlining): Ignore edges with unknown
9154         param.
9156 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
9158         * implicit-zee.c: New file.
9159         * tree-pass.h (pass_implicit_zee): Declare.
9160         * passes.c (init_optimization_passes): Add zee pass.
9161         * common.opt (fzee): New flag.
9162         * timevar.def (TV_ZEE): Define.
9163         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9164         and beyond.
9165         * Makefile.in (implicit-zee.o): Add new build file.
9167 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9168             Nathan Froyd  <froydnj@codesourcery.com>
9170         * c-common.c (sync_resolve_params): Remove write-only variable.
9172 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
9174         * target.h (struct gcc_target): Add mode_dependent_address_p field.
9175         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9176         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9177         * targhooks.c (default_mode_dependent_address_p): New function.
9178         * targhooks.h (default_mode_dependent_address_p): Declare function.
9179         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9180         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9181         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9182         target hook. Change return type to bool.
9183         * recog.h (mode_dependent_address_p): Change return type to bool.
9185 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9186             Nathan Froyd  <froydnj@codesourcery.com>
9188         * tree-mudflap.c (build_function_type_0, build_function_type_1,
9189         build_function_type_2, build_function_type_3): Remove.
9190         (mudflap_init): Use build_function_type_list.
9192 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9193             Nathan Froyd  <froydnj@codesourcery.com>
9195         * coverage.c (build_fn_info_value): Call build_constructor instead of
9196         build_constructor_from_list.
9197         (build_ctr_info_value): Likewise.
9198         (build_gcov_info): Likewise.
9200 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
9202         * tree.c (build_constructor): Compute TREE_CONSTANT for the
9203         resultant constructor.
9204         (build_constructor_single): Don't set TREE_CONSTANT.
9205         (build_constructor_from_list): Don't compute TREE_CONSTANT.
9207 2010-05-12  Jan Hubicka  <jh@suse.cz>
9209         * cgraph.h (struct varpool_node): Add aux.
9210         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9211         * varpool.c (varpool_remove_node): Do not remove initializer.
9212         (varpool_reset_queue): Export.
9213         (varpool_finalize_decl): Volatile vars are forced to be output.
9214         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9215         replaced decl.
9216         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9217         process_references, varpool_can_remove_if_no_refs): New functions.
9218         (cgraph_remove_unreachable_nodes): Handle variables too.
9220 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9222         PR target/44088
9223         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9225 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
9227         PR middle-end/44085
9228         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9229         change value of ORT_TASK.
9230         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9231         (omp_notice_threadprivate_variable): New function.
9232         (omp_notice_variable): Call it for threadprivate variables.
9233         If enclosing ctx is a task, print enclosing task rather than
9234         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
9235         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9236         if task has untied clause.
9238         PR debug/42278
9239         * dwarf2out.c (base_type_die): Don't add name attribute here.
9240         (modified_type_die): Instead of sizetype use
9241         its underlying original type.  If a DW_TAG_base_type doesn't
9242         have name added, add __unknown__.
9243         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9244         always call force_type_die instead.
9246 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
9248         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9249         for __stack_chk_guard.
9251 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9253         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9254         don't call start_source_file debug hook here...
9255         (finish_options): ... but here, after outputting predefined and
9256         command line defines and undefs.
9258         PR middle-end/44071
9259         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9260         no fallthru edge.
9261         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9262         optimizing away empty bb with no successors, move over its
9263         footer chain to fallthru predecessor.
9264         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9265         (rtl_split_edge): For asm goto call patch_jump_insn even if
9266         splitting fallthru edge.
9268         PR c++/44059
9269         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9270         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9271         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9272         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9273         on DW.ref.* decls.
9275         PR c++/44062
9276         * c-parser.c (c_parser_expression): Mark LHS of a comma
9277         expression as read if it is a decl, handled component or
9278         COMPOUND_EXPR with that on the RHS.
9279         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9280         if it is a decl or handled component.
9282 2010-05-11  Jan Hubicka  <jh@suse.cz>
9284         * lto-symtab.c (lto_symtab_free): New function.
9285         * lto-streamer.h (lto_symtab_free): Declare.
9287 2010-05-11  Jan Hubicka  <jh@suse.cz>
9289         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9290         that if function is needed it is reachable.
9291         (lto_output_node): See if it the function is reachable or referenced.
9292         (output_cgraph): Update call of lto_output_node.
9293         * lto-streamer.h (reachable_from_other_partition_p): Declare.
9295 2010-05-11  Jan Hubicka  <jh@suse.cz>
9297         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9298         Mark as used.
9300 2010-05-11  Jan Hubicka  <jh@suse.cz>
9302         PR tree-optimize/44063
9303         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9304         queue.
9305         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9306         limits.
9307         (estimate_function_body_sizes): Compute sizes even when disregarding.
9309 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
9311         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9313 2010-05-11  Jan Hubicka  <jh@suse.cz>
9315         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9316         into every boundary.
9318 2010-05-11  Jan Hubicka  <jh@suse.cz>
9320         * matrix-reorg.c (matrix_reorg): Rebuild edges.
9322 2010-05-11  Jan Hubicka  <jh@suse.cz>
9324         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9325         lto_streamer_cache_delete): Put nodes into heap.
9326         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9327         heap.
9329 2010-05-11  Jan Hubicka  <jh@suse.cz>
9331         * cgraphbuild.c (cgraph_rebuild_references): New.
9332         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9333         out extern inlines.
9334         * cgraph.h (cgraph_rebuild_references): Declare.
9335         * tree-inline.c (tree_function_versioning): Use it.
9336         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9338 2010-05-11  Jan Hubicka  <jh@suse.cz>
9340         * cgraph.c: Include ipa-utils.h
9341         (cgraph_create_virtual_clone): Update references.
9342         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9344 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9346         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9347         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9348         cache size.
9350 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9352         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9354 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9356         * gcc.c (execute): For -### don't quote arguments that
9357         contain just alphanumerics and _/-. characters.
9358         * doc/invoke.texi: Document that change for -###.
9360         PR debug/44023
9361         * df-problems.c (struct dead_debug): Add to_rescan field.
9362         (dead_debug_init): Clear to_rescan field.
9363         (dead_debug_finish): Rescan all debug insns in to_rescan
9364         bitmap and free the bitmap.
9365         (dead_debug_insert_before): Instead of rescanning debug insns
9366         immediately queue their rescanning until dead_debug_finish.
9367         (df_note_bb_compute): After dead_debug_add do continue instead
9368         of break.
9370 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
9372         PR debug/44028
9373         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9374         clear also INSN_REG_USE_LIST.
9376 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9378         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9380 2010-05-10  Jan Hubicka  <jh@suse.cz>
9382         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9383         commited change.
9385 2010-05-10  Jan Hubicka  <jh@suse.cz>
9387         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9388         Allocate encoders.
9389         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9390         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9391         (lto_streamer_cache_create): Init alloc pool.
9392         (lto_streamer_cache_delete): Free alloc pool.
9393         * lto-streamer.h: Include alloc pool.
9394         (lto_streamer_cache_d): Use alloc pool.
9395         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9397 2010-05-10  Jan Hubicka  <jh@suse.cz>
9399         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9400         * cgraphbuild.c: Include except.h
9401         (record_type_list, record_eh_tables): New function.
9402         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9404 2010-05-10  Jan Hubicka  <jh@suse.cz>
9406         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9407         __frame_dummy_init_array_entry, force_to_data): Attribute as used
9408         rather than unused.
9410 2010-05-10  Michael Matz  <matz@suse.de>
9412         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9413         (can_reassociate_p): Use FLOAT_TYPE_P.
9414         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9415         (vect_force_simple_reduction): ... this.
9416         * tree-parloops.c (gather_scalar_reductions): Use
9417         vect_force_simple_reduction.
9418         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9419         vect_is_simple_reduction, add modify argument, if true rewrite
9420         "a-b" into "a+(-b)".
9421         (vect_is_simple_reduction, vect_force_simple_reduction): New
9422         functions.
9423         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9425 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9426             Vladimir Makarov  <vmakarov@redhat.com>
9428         PR rtl-optimization/44012
9429         * ira-build.c (remove_unnecessary_allocnos): Nullify
9430         regno_allocno_map of the removed allocno.
9432 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9434         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9435         to /dev/null.
9436         * configure: Regenerate.
9438 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9440         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9441         unused.
9442         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9443         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9444         support in Sun ld.
9445         * configure: Regenerate.
9447 2010-05-10  Richard Guenther  <rguenther@suse.de>
9449         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9450         marked if the entry identifier is marked.
9452 2010-05-10  Richard Guenther  <rguenther@suse.de>
9454         * c-common.c (struct c_common_attributes): Add fnspec attribute.
9455         (handle_fnspec_attribute): New function.
9456         * gimple.h (gimple_call_return_flags): Declare.
9457         (gimple_call_arg_flags): Likewise.
9458         * gimple.c (gimple_call_arg_flags): New function.
9459         (gimple_call_return_flags): Likewise.
9460         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9461         New argument flags.
9462         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9463         return value flags.
9464         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9465         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9466         main work to ...
9467         (make_heapvar_for): ... this new function.
9468         (handle_rhs_call): Handle fnspec attribute argument specifiers.
9469         (handle_lhs_call): Likewise.
9470         (find_func_aliases): Adjust.
9472 2010-05-10  Richard Guenther  <rguenther@suse.de>
9474         PR tree-optimization/44050
9475         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9477 2010-05-10  Wei Guozhi  <carrot@google.com>
9479         PR target/42879
9480         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9482 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9484         PR c/10676
9485         * c-typeck.c (lookup_field): Take a type directly.  Update
9486         recursive calls.
9487         (build_component_ref): Update call to lookup_field.
9488         (set_init_label): Use lookup_field to find initialized field.
9489         Handle returned list of fields like a sequence of designators.
9491 2010-05-09  Richard Guenther  <rguenther@suse.de>
9493         PR middle-end/44024
9494         * fold-const.c (tree_single_nonzero_warnv_p): Properly
9495         handle &FUNCTION_DECL.
9497 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9499         PR c/4784
9500         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
9501         structures and unions recursively.
9502         (detect_field_duplicates): Move duplicate detection with a hash to
9503         detect_field_duplicates_hash.  Always use a hash if anonymous
9504         structures or unions are present.
9505         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9506         give errors.
9508 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9510         PR target/44046
9511         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9512         detect Atom, Core 2 and Core i7.
9514 2010-05-09  Richard Guenther  <rguenther@suse.de>
9516         * gcc.c (store_arg): Handle temporary file deletion for
9517         joined arguments.
9519 2010-05-09  Richard Guenther  <rguenther@suse.de>
9521         PR middle-end/44043
9522         * ipa-inline.c (estimate_function_body_sizes): Return after
9523         disregarding inline limits.
9525 2010-05-09  Richard Guenther  <rguenther@suse.de>
9527         * gcc.c (store_arg): Revert last change.
9529 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9531         PR middle-end/28685
9532         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9533         (optimize_ops_list): Call it.
9535 2010-05-08  Richard Guenther  <rguenther@suse.de>
9537         PR tree-optimization/44030
9538         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
9539         NECESSARY flag if we propagate from a inserted expression.
9541 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9543         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9544         domain types as equal if they are both PLACEHOLDER_EXPRs.
9546 2010-05-08  Richard Guenther  <rguenther@suse.de>
9548         * lto-wrapper.c (run_gcc): Remove linker output from
9549         command line for LTRANS invocation.
9551 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9553         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9554         lto-macho as lto_binary_reader.
9555         * target.h (struct gcc_target): New hooks lto_start and lto_end.
9556         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9557         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9558         in lto_start and lto_end calls.
9559         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
9560         magic numbers.
9561         (scan_prog_file): Update is_elf_or_coff call.
9562         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9564         * collect2.c (main): Fix enum comparison.
9566         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9567         Add prototypes.
9568         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9569         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
9570         and TARGET_ASM_LTO_END.
9571         * darwin.c: Include obstack.h and lto-streamer.h.
9572         (lto_section_names_offset, lto_section_names_obstack,
9573         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9574         global variables.
9575         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9576         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
9577         to a temporary file.
9578         (darwin_asm_lto_end): New function.  Restore asm_out_file.
9579         (darwin_asm_named_section): For LTO sections, replace the name with
9580         the offset of the section name in a string table, and build this
9581         table.
9582         (darwin_file_start): Initialize global vars for LTO support.
9583         (darwin_file_end): If output to asm_out_file was redirected, append it
9584         to the proper asm_out_file here.  Add the section names section.
9586 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9588         * c-pragma.c (pending_weak_d, pending_weak): New.
9589         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9590         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9591         handle_pragma_weak): Update the uses of pending_weaks.
9593 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9595         PR documentation/44016
9596         * doc/standards.texi (Standards): Link to unversioned
9597         cxx0x_status.html page.
9599 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
9601         PR target/43708
9602         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9603         in addition to TREE_USED, to avoid "set but unused" warnings.
9605 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9607         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9608         (is_loop_prefetching_profitable): Do not insert prefetches
9609         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9610         times the prefetch ahead distance.
9612 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9614         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9615         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9616         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9617         the unroll_factor.
9619 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9621         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9622         a diagnostic info when the insn-to-mem ratio is too small.
9624 2010-05-07  Richard Guenther  <rguenther@suse.de>
9626         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9627         the linker plugin.
9628         (store_arg): Queue temp_filename for deletion instead of
9629         the whole argument.
9631 2010-05-07  Richard Guenther  <rguenther@suse.de>
9633         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9634         (run_gcc): Handle LTRANS phase invocation.
9635         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9637 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
9639         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
9640         this is also meaningful on PARM_DECLs and RESULT_DECLs.
9642 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9644         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
9646 2010-05-07  Richard Guenther  <rguenther@suse.de>
9648         PR tree-optimization/44020
9649         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
9650         code when PRE is not yet initialized.
9652 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9654         * config/mips/dbxmdebug.h: Remove.
9655         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
9657 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
9659         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
9660         with null pointer and also warn about ordered comparison of zero with
9661         pointer if -Wextra.
9663 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9665         * graphite-blocking.c
9666         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
9667         * graphite-clast-to-gimple.c
9668         (clast_to_gcc_expression): Same.
9669         (precision_for_value): Same.
9670         (precision_for_interval): Same.
9671         (gcc_type_for_interval): Same.
9672         (graphite_create_new_guard): Same.
9673         (compute_bounds_for_level): Same.
9674         (graphite_create_new_loop_guard): Same.
9675         * graphite-interchange.c
9676         (build_linearized_memory_access): Same.
9677         (pdr_stride_in_loop): Same.
9678         (memory_strides_in_loop_1): Same.
9679         (memory_strides_in_loop): Same.
9680         (extend_scattering): Same.
9681         (psct_scattering_dim_for_loop_depth): Same.
9682         (pbb_number_of_iterations): Same.
9683         * graphite-poly.h
9684         (debug_iteration_domains): Same.
9685         * graphite-ppl.c
9686         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9687         (ppl_set_inhomogeneous_gmp): Same.
9688         (ppl_strip_loop): Same.
9689         (ppl_lexico_compare_linear_expressions): Same.
9690         (ppl_read_polyhedron_matrix): Same.
9691         (ppl_max_for_le_pointset): Same.
9692         * graphite-ppl.h
9693         (ppl_read_polyhedron_matrix): Same.
9694         (tree_int_to_gmp): Same.
9695         (gmp_cst_to_tree): Same.
9696         (ppl_set_inhomogeneous): Same.
9697         (ppl_set_inhomogeneous_tree): Same.
9698         (ppl_set_coef): Same.
9699         (ppl_set_coef_tree): Same.
9700         * graphite-sese-to-poly.c
9701         (build_pbb_scattering_polyhedrons): Same.
9702         (build_scop_scattering): Same.
9703         (scan_tree_for_params_right_scev): Same.
9704         (scan_tree_for_params): Same.
9705         (find_params_in_bb): Same.
9706         (find_scop_parameters): Same.
9707         (add_upper_bounds_from_estimated_nit): Same.
9708         (build_loop_iteration_domains): Same.
9709         (add_condition_to_domain): Same.
9710         (pdr_add_memory_accesses): Same.
9712 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9714         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
9715         CLooG's value_* macros to their respective mpz_* counterparts.
9716         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
9717         (graphite_create_new_loop_guard): Same.
9718         * graphite-interchange.c (build_linearized_memory_access): Same.
9719         (pdr_stride_in_loop): Same.
9720         (memory_strides_in_loop_1): Same.
9721         (1st_interchange_profitable_p): Same.
9722         * graphite-poly.c (extend_scattering): Same.
9723         (psct_scattering_dim_for_loop_depth): Same.
9724         (pbb_number_of_iterations): Same.
9725         (pbb_number_of_iterations_at_time): Same.
9726         * graphite-poly.h (new_1st_loop): Same.
9727         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
9728         (oppose_constraint): Same.
9729         (insert_constraint_into_matrix): Same.
9730         (ppl_set_inhomogeneous_gmp): Same.
9731         (ppl_set_coef_gmp): Same.
9732         (ppl_strip_loop): Same.
9733         (ppl_lexico_compare_linear_expressions): Same.
9734         (ppl_max_for_le_pointset): Same.
9735         (ppl_min_for_le_pointset): Same.
9736         (ppl_build_realtion): Same.
9737         * graphite-ppl.h (gmp_cst_to_tree): Same.
9738         (ppl_set_inhomogeneous): Same.
9739         (ppl_set_inhomogeneous_tree): Same.
9740         (ppl_set_coef): Same.
9741         (ppl_set_coef_tree): Same.
9742         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9743         (build_scop_scattering): Same.
9744         (add_value_to_dim): Same.
9745         (scan_tree_for_params_right_scev): Same.
9746         (scan_tree_for_params_int): Same.
9747         (scan_tree_for_params): Same.
9748         (find_params_in_bb): Same.
9749         (find_scop_parameters): Same.
9750         (add_upper_bounds_from_estimated_nit): Same.
9751         (build_loop_iteration_domains): Same.
9752         (create_linear_expr_from_tree): Same.
9753         (add_condition_to_domain): Same.
9754         (pdr_add_memory_accesses): Same.
9756 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
9757             Jason Merrill  <jason@redhat.com>
9759         * c-common.c (c_common_reswords): Add nullptr.
9760         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
9761         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
9762         (gen_type_die_with_usage): Likewise.
9763         * dbxout.c (dbxout_type): Likewise.
9764         * sdbout.c (plain_type_1): Likewise.
9766 2010-05-06  Jason Merrill  <jason@redhat.com>
9768         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
9769         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
9770         ret appropriately.
9771         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
9773         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
9774         stripping WITH_SIZE_EXPR.
9775         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
9776         change.
9778 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9780         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
9781         list of obsolete configurations.
9782         Disabled check for obsolete configurations.
9783         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
9784         Removed support for previous versions.
9785         * config/mips/iris.h: Removed.
9786         * config/mips/iris5.h: Removed.
9787         * config/mips/iris6.h: Merged old iris.h contents.
9788         (TARGET_IRIX): Removed.
9789         (DRIVER_SELF_SPECS): Removed mabi=32.
9790         (IDENT_ASM_OP): Removed undef.
9791         (STARTFILE_SPEC): Removed mabi=32.
9792         (ENDFILE_SPEC): Likewise.
9793         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
9794         (MACHINE_TYPE): Update for IRIX 6.5.
9795         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
9796         TARGET_IRIX by TARGET_IRIX6.
9797         (mips_file_start): Likewise.
9798         (mips_output_external): Remove IRIX 5/6 O32 support.
9799         (mips_output_function_prologue): Likewise.
9800         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
9801         TARGET_IRIX6.
9802         (TARGET_CPU_CPP_BUILTINS): Likewise.
9803         (TARGET_IRIX): Removed.
9804         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
9805         (MULTILIB_DIRNAMES): Removed 32.
9806         (MULTILIB_OSDIRNAMES): Removed ../lib.
9807         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
9808         (Specific, mips-sgi-irix5): Document removal.
9809         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
9810         Remove references to older IRIX 6 releases and the O32 ABI.
9812 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
9814         PR bootstrap/43994
9815         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
9816         instead of DF_REF_REAL_REG.
9818 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
9820         PR target/43888
9821         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
9822         handling to still return true for x64 targets.
9824 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9826         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
9828 2010-05-06  Jan Hubicka  <jh@suse.cz>
9830         PR tree-optimization/43791
9831         * ipa-inline.c (update_caller_keys): Remove bogus
9832         disregard_inline_limits check.
9834 2010-05-06  Michael Matz  <matz@suse.de>
9836         PR tree-optimization/43984
9837         * tree-ssa-pre.c (inserted_phi_names): Remove.
9838         (inserted_exprs): Change to bitmap.
9839         (create_expression_by_pieces): Set bits, don't append to vector.
9840         (insert_into_preds_of_block): Don't handle inserted_phi_names.
9841         (eliminate): Don't look at inserted_phi_names, remove deleted
9842         insns from inserted_exprs.
9843         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
9844         (init_pre, fini_pre): Allocate and free bitmaps.
9845         (execute_pre): Insert insns on edges before elimination.
9847 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9849         * tree.c (initializer_zerop): Handle STRING_CST.
9851 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9853         PR 40989
9854         * doc/invoke.texi (Wimplicit): Document as C only.
9855         * opts.c (common_handle_option): Add argument kind.
9856         (handle_option): Rename as read_cmdline_option. Factor out code to...
9857         (handle_option): ... here. New.
9858         (handle_options): Rename as read_cmdline_options.
9859         (decode_options): Update call.
9860         (set_option): Use option index instead of option pointer. Classify
9861         diagnostics correctly.
9862         (enable_warning_as_error): Call handle_option.
9863         * opts.h (set_option): Update declaration.
9864         (handle_option): Declare.
9865         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9866         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9867         * c-opts.c (set_Wimplicit): Delete.
9868         (c_family_lang_mask): New static constant.
9869         (c_common_handle_option): Add argument kind. Use handle_option
9870         instead of set_Wimplicit.
9871         (c_common_post_options): warn_implicit and warn_implicit_int
9872         are disabled by default.
9873         * c-common.c (warn_implicit): Do not define here.
9874         * c-common.h (warn_implicit): Do not declare here.
9875         (c_common_handle_option): Update declaration.
9876         * lto-opts.c (lto_reissue_options): Update call to set_option.
9878 2010-05-06  Richard Guenther  <rguenther@suse.de>
9880         PR tree-optimization/43571
9881         * domwalk.c (walk_dominator_tree): Walk the dominator
9882         sons in more optimal order.
9884 2010-05-06  Richard Guenther  <rguenther@suse.de>
9886         PR tree-optimization/43934
9887         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9888         (stmt_cost): Likewise.
9889         (extract_true_false_args_from_phi): New helper.
9890         (determine_max_movement): For PHI nodes verify we can hoist them
9891         and compute their cost.
9892         (determine_invariantness_stmt): Handle PHI nodes.
9893         (move_computations_stmt): Likewise.  Hoist PHI nodes in
9894         if-converted form using COND_EXPRs.
9895         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9896         (tree_ssa_lim): Likewise.
9897         * tree-flow.h (tree_ssa_lim): Adjust prototype.
9898         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9900 2010-05-06  Richard Guenther  <rguenther@suse.de>
9902         PR tree-optimization/43987
9903         * tree-ssa-structalias.c (could_have_pointers): For possibly
9904         address-taken variables force pointers to be recorded.
9905         (create_variable_info_for_1): Likewise.
9906         (push_fields_onto_fieldstack): Pass in wheter all fields
9907         must have pointers.
9908         (find_func_aliases): Query types instead of vars whether
9909         they contain pointers where appropriate.
9911 2010-05-06  Jan Hubicka  <jh@suse.cz>
9913         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9914         (record_reference, mark_address, mark_load, mark_store): Record
9915         references.
9916         (record_references_in_initializer): Update call of record_references.
9917         (rebuild_cgraph_edges): Remove all references before rebuiding.
9918         * cgraph.c (cgraph_create_node): Clear ref list.
9919         (cgraph_remove_node): Remove references.
9920         (dump_cgraph_node): Dump references.
9921         (cgraph_clone_node): Clone references.
9922         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9923         (struct cgraph_node, varpool_node): Add ref_lst.
9924         * ipa-ref.c: New file.
9925         * ipa-ref.h: New file.
9926         * ipa-ref-inline.h: New file.
9927         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9928         (referenced_from_other_partition_p): New function.
9929         (lto_output_varpool_node): Take set arugment; call
9930         referenced_from_other_partition.
9931         (lto_output_ref): New.
9932         (add_references): New.
9933         (output_refs): New.
9934         (output_cgraph): Compute boundary based on references; output refs.
9935         (output_varpool): Accept cgraph_node_set argument.
9936         (input_ref): New.
9937         (input_refs): New.
9938         (input_cgraph): Call input_refs.
9939         * lto-section-in.c (lto_section_name): Add refs.
9940         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
9941         (ipa-ref.o): New file.
9942         * varpool.c (varpool_node): Clear ipa ref list.
9943         (varpool_remove_node): Remove references.
9944         (dump_varpool_node): Dump references.
9945         (varpool_assemble_decl): Only compile finalized ones.
9946         (varpool_extra_name_alias): Initialize ref list.
9947         * lto-streamer.c (lto-get_section_name): Add .refs section.
9948         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
9949         (referenced_from_other_partition_p): Declared.
9951 2010-05-06  Ira Rosen  <irar@il.ibm.com>
9953         PR tree-optimization/43901
9954         * tree-vect-stmts.c (vectorizable_call): Assert that vector
9955         type is not NULL if it's transformation phase, and return
9956         FALSE if it's analysis.
9957         (vectorizable_conversion, vectorizable_operation,
9958         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
9960 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
9962         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9963         Delete.
9964         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9965         New define.
9966         * config/mips/mips-protos.h
9967         (mips_small_register_classes_for_mode_p): Delete prototype.
9969 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
9971         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
9972         * config/arm/arm.c (multiple_operation_profitable_p,
9973         compute_offset_order): New static functions.
9974         (load_multiple_sequence, store_multiple_sequence): Use them.
9975         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
9976         memory offsets, not register numbers.
9977         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
9979 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
9981         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
9982         (get_pending_sizes, put_pending_size, put_pending_sizes):
9983         Update the uses of pending_sizes.
9984         * c-decl.c (store_parm_decls): Likewise.
9985         * c-tree.h (struct c_arg_info): Likewise.
9986         * tree.h: Update the prototype for get_pending_sizes and
9987         put_pending_sizes.
9989 2010-05-05  Jason Merrill  <jason@redhat.com>
9991         PR debug/43370
9992         * c-common.c (handle_aligned_attribute): Respect
9993         ATTR_FLAG_TYPE_IN_PLACE.
9995         PR testsuite/43758
9996         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
9997         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9998         (TARGET_INITIALIZER): Use it.
9999         * c-common.c (attribute_takes_identifier_p): Call it.
10000         * c-common.h: Update prototype.
10001         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10002         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10004 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10006         PR debug/43950
10007         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10008         DW_ID_down_case for Fortran compilation units.
10010 2010-05-05  Jan Hubicka  <jh@suse.cz>
10012         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10013         handle aliases.
10015 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10017         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10018         a variable-sized RESULT_DECL.
10020 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
10022         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10024 2010-05-05  Jason Merrill  <jason@redhat.com>
10026         PR c++/43787
10027         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10028         returns GS_OK.
10029         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10031 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
10032             Jakub Jelinek  <jakub@redhat.com>
10034         PR debug/43478
10035         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10036         (dead_debug_init, dead_debug_finish): New functions.
10037         (dead_debug_add, dead_debug_insert_before): Likewise.
10038         (df_note_bb_compute): Initialize a dead_debug object, add dead
10039         debug uses to it, insert debug bind insns before death insns,
10040         reset debug insns that refer to pending uses at the end.
10041         * rtl.h (make_debug_expr_from_rtl): New prototype.
10042         * varasm.c (make_debug_expr_from_rtl): New function.
10044 2010-05-05  Jan Hubicka  <jh@suse.cz>
10046         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10047         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10048         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10049         lto_varpool_encoder_deref, lto_varpool_encoder_size,
10050         lto_varpool_encoder_encode_initializer_p,
10051         lto_set_varpool_encoder_encode_initializer): New functions.
10052         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10053         call output_varpool.
10054         (input_varpool_node): Do not always set analyzed.
10055         (input_cgraph_1): Return vector of cgraph nodes.
10056         (input_varpool_1): Return vector of varpools.
10057         (input_cgraph): Free the vectors.
10058         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10059         output only initializers needed.
10060         (lto_output): Only call output_cgraph.
10061         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10062         * lto-section-out.c (lto_new_out_decl_state): Initialize
10063         state->varpool_node_encoder.
10064         * lto-streamer.h (lto_varpool_encoder_d): New.
10065         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10066         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10067         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10068         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10069         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10070         Declare.
10071         (output_varpool, input_varpool): Remove declarations.
10073 2010-05-05  Jan Hubicka  <jh@suse.cz>
10075         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10076         with body can prevail.
10078 2010-05-05  Jan Hubicka  <jh@suse.cz>
10080         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10081         size.
10083 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10085         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10087         * gengtype.h (erro_at_line): Constify pos argument.
10089         * gengtype.c: Include hashtab.h.
10090         (enum gc_used): Document GC_MAYBE_POINTED_TO.
10091         (error_at_line): Constify pos argument.
10092         (do_typedef): Initialize p->opt field.
10093         (get_file_gtfilename): Fix comment typo.
10094         (struct walk_type_data): Constify line field.
10095         (get_output_file_for_structure): New function.
10096         (write_local_func_for_structure): Constify orig_s argument.
10097         Use get_output_file_for_structure.
10098         (write_func_for_structure): Use get_output_file_for_structure.
10099         (INDENT): New define.
10100         (dump_pair, dump_type, dump_type_list, dump_typekind)
10101         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10102         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10103         functions.
10104         (seen_types): New variable.
10105         (main): New variable do_dump.  Process "-d" command line option.
10106         Call dump_everything if dump requested.
10108 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10110         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10111         in a temporary instead of invoking the macro multiple times.
10112         (track_expr_p): Likewise.
10114 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
10116         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10117         per new semantics.
10118         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10119         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
10120         conditions for printing notes.
10121         * common.opt (-Wcoverage-mismatch): Allow negative, default to
10122         true, update documentation.
10123         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10125 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
10127         PR c/43981
10128         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10129         on dimen.
10131 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10133         PR target/43799
10134         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10135         (*sse_prologue_save_insn1): Likewise.
10136         (SSE prologue save splitter): Likewise.
10138 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10140         * tree.c (free_lang_data_in_one_sizepos): New inline function.
10141         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10142         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10143         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10144         all decls.  Call it on DECL_FIELD_OFFSET of fields.
10145         (find_decls_types_r): Follow DECL_VALUE_EXPR.
10146         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10148 2010-05-04  Martin Jambor  <mjambor@suse.cz>
10150         * tree-sra.c (build_access_from_expr_1): The first parameter type
10151         changed to simple tree.
10152         (build_access_from_expr): Likewise, gsi parameter was eliminated.
10153         (scan_assign_result): Renamed to assignment_mod_result, enum elements
10154         renamed as well.
10155         (build_accesses_from_assign): Removed all parameters except for a
10156         simple gimple statement.  Now returns a simple bool.
10157         (scan_function): All non-analysis parts moved to separate functions
10158         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
10159         parameters and updated both callers.
10160         (sra_modify_expr): Removed parameter data.
10161         (sra_modify_function_body): New function.
10162         (perform_intra_sra): Call sra_modify_function_body to modify the
10163         function body.
10164         (replace_removed_params_ssa_names): Parameter data changed into
10165         adjustments vector.
10166         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
10167         changed the parameter dont_convert to convert with the opposite
10168         meaning.
10169         (sra_ipa_modify_assign): Parameter data changed into adjustments
10170         vector, return value changed to bool.
10171         (ipa_sra_modify_function_body): New function.
10172         (sra_ipa_reset_debug_stmts): Updated a comment.
10173         (modify_function): Use ipa_sra_modify_function_body to modify function
10174         body.
10176 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10178         PR middle-end/43671
10179         * alias.c (true_dependence): Handle the same VALUE in x and mem.
10180         (canon_true_dependence): Likewise.
10181         (write_dependence_p): Likewise.
10183 2010-05-04  Jan Hubicka  <jh@suse.cz>
10185         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10186         * cgraphbuild.c: Include ipa-utils.h
10187         (record_reference_ctx): New struct.
10188         (record_reference): Simplify to work on initializers; not statements.
10189         (mark_address, mark_load, mark_store): New.
10190         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10191         walk PHI nodes too.
10192         (record_references_in_initializer): Update use of record_reference.
10193         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10194         walk PHI nodes too.
10196 2010-05-04  Jan Hubicka  <jh@suse.cz>
10198         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10199         node will be removed anyway.
10200         (lto_varpool_replace_node): Allow also unanalyzed nodes;
10201         relink aliases of node into prevailing node.
10202         * varpool.c (varpool_remove_node): Remove aliases properly;
10203         when removing node, remove all its aliases too; remove DECL_INITIAL
10204         of removed node; ggc_free the varpool node.
10206 2010-05-04  Richard Guenther  <rguenther@suse.de>
10208         PR tree-optimization/43879
10209         * tree-ssa-structalias.c (alias_get_name): Use
10210         DECL_ASSEMBLER_NAME if available.
10211         (create_function_info_for): Return the varinfo node.
10212         (ipa_pta_execute): Associate same-body aliases and extra names
10213         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
10215 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10217         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10219 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
10221         PR bootstrap/43964
10222         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10223         only if HONOR_REG_ALLOC_ORDER is not defined.
10225 2010-05-04  Richard Guenther  <rguenther@suse.de>
10227         PR tree-optimization/43949
10228         * tree-vrp.c (extract_range_from_binary_expr): Only handle
10229         TRUNC_MOD_EXPR.
10231 2010-04-26  Jason Merrill  <jason@redhat.com>
10233         * c.opt (-fstrict-enums): New.
10234         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10236 2010-05-03  David Ung  <davidu@mips.com>
10237             James E. Wilson  <wilson@codesourcery.com>
10239         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10240         emit the trap instruction before the divide for TUNE_74K.
10242 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
10244         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10245         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10246         based on the above, for new target hook.
10248         * hooks.c (hook_bool_mode_true): New generic hook.
10249         * hooks.h (hook_bool_mode_true): Add prototype.
10251         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10252         target hook.
10253         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10254         target hook, set to hook_bool_mode_false.
10255         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10256         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10257         with targetm.small_register_classes_for_mode_p.
10258         (find_reusable_reload): Likewise.
10259         (combine_reloads): Likewise.
10260         * reload1.c (reload_as_needed): Likewise.
10261         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10262         * ifcvt.c (noce_process_if_block, check_cond_move_block,
10263         dead_or_predicable): Likewise.
10264         * regmove.c (optimize_reg_copy_1): Likewise.
10265         * calls.c (prepare_call_address): Likewise.
10266         (precompute_register_parameters): Likewise.
10268         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10269         hook definition.
10270         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10271         implementation of the hook that considers all register classes
10272         small except for SH64.
10273         (sh_override_options): Use the new hook.
10274         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10275         Add prototype.
10277         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10278         hook definition.
10279         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10280         implementation of the hook that considers all register classes
10281         small for THUMB1.
10282         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10283         Add prototype.
10285         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10286         hook definition.
10287         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10288         implementation of the hook that considers all register classes
10289         small for MIPS16.
10290         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10291         Add prototype.
10293         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10294         hook definition.
10295         * config/m32c/m32c.h: Likewise.
10296         * config/pdp11/pdp11.h: Likewise.
10297         * config/avr/avr.h: Likewise.
10298         * config/xtensa/xtensa.h: Likewise.
10299         * config/m68hc11/m68hc11.h: Likewise.
10300         * config/mn10300/mn10300.h: Likewise.
10301         * config/mcore/mcore.h: Likewise.
10302         * config/h8300/h8300.h: Likewise.
10303         * config/bfin/bfin.h: Likewise.
10305         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10306         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10308 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
10310         * double-int.h (tree_to_double_int): Remove macro.
10311         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10312         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10313         (tree_to_double_int): New function.
10314         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10315         Move ...
10316         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10318 2010-05-03  Richard Guenther  <rguenther@suse.de>
10320         PR tree-optimization/43971
10321         * tree-ssa-structalias.c (get_constraint_for_1): Fix
10322         constraints in the !flag_delete_null_pointer_checks case.
10324 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
10326         PR debug/43972
10327         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10328         result mode matches original rtl mode.
10330 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
10332         PR target/43888
10333         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10335 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10337         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10338         when processing flag options.
10340 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10342         * gcov-iov.c (main): Change format string placeholder
10343         from %#08x to 0x%08x.
10344         * genchecksum.c (dosum): Change format string placeholder
10345         from %#02x to 0x%02x.
10347 2010-05-02  Richard Guenther  <rguenther@suse.de>
10349         PR tree-optimization/43879
10350         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10352 2010-05-02  Bruno Haible  <bruno@clisp.org>
10354         * doc/extend.texi (Function Attributes): Fix a typo.
10356 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10358         Revert:
10359         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10360         placeholder from 0x%x to %#x.
10361         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10362         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10363         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10364         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10365         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10366         * config/i386/i386.c (ix86_target_string): Ditto.
10367         * config/i386/i386.c (output_pic_addr_const): Ditto.
10368         (print_operand): Ditto.
10370 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10372         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10373         placeholder from 0x%x to %#x.
10374         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10375         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10376         (ASM_OUTPUT_DEBUG_DATA): Ditto.
10377         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10378         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10379         * optc-gen.awk: Ditto.
10380         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10381         (HOST_WIDE_INT_PRINT_HEX): Ditto.
10382         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10383         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10385 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10387         * target.h (struct calls): Add function_value_regno_p field.
10388         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10389         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10390         * targhooks.c (default_function_value_regno_p): New function.
10391         * targhooks.h (default_function_value_regno_p): Declare function.
10392         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10393         * builtins.c. (apply_result_size): (Ditto.).
10394         * combine.c. (likely_spilled_retval_p): (Ditto.).
10395         * mode-switching.c. Include 'target.h'.
10396         (create_pre_exit): Use function_value_regno_p hook.
10397         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10398         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10399         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10401         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10402         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10403         (ix86_function_value_regno_p): Declare as static, change argument
10404         type to const unsigned int.
10405         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10407 2010-05-01  Richard Guenther  <rguenther@suse.de>
10409         PR tree-optimization/43949
10410         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10411         types.
10412         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10414 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10416         * rtl.h (CONST_DOUBLE_P): Define.
10417         (rtx_to_double_int): Declare.
10418         * emit-rtl.c (rtx_to_double_int): New function.
10419         * dwarf2out.c (insert_double): New function.
10420         (loc_descriptor, add_const_value_attribute): Clean up, use
10421         rtx_to_double_int and insert_double functions.
10423 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
10425         * doc/extend.texi (Inline): Add missing return keyword to examples.
10426         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10427         "command-line".
10429 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10431         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10432         the variable part of the offset as well.  Use highest_pow2_factor for
10433         all alignment checks.
10435 2010-04-30  Richard Guenther  <rguenther@suse.de>
10437         PR tree-optimization/43879
10438         * tree-ssa-structalias.c (type_could_have_pointers): Functions
10439         can have pointers.
10441 2010-04-30  Jan Hubicka  <jh@suse.cz>
10443         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10444         varpool.
10445         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10447 2010-04-30  Jan Hubicka  <jh@suse.cz>
10449         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10450         New.
10451         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10452         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10453         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10454         cgraph_node_set_needs_ltrans_p): Remove.
10456 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10458         * sdbout.c: Include vec.h, do not include varray.h.
10459         (deferred_global_decls, sdbout_global_decl,
10460         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10461         * toplev.c: Do not include varray.h.
10462         (dump_memory_report): Do not dump VARRAY statistics.
10463         * gengtype.c (open_base_file): Ignore varray.h.
10464         * Makefile.in: Update for abovementioned changes.
10465         Remove all traces of varray.c and varray.h.
10466         * varray.c: Remove file.
10467         * varray.h: Remove file.
10469 2010-04-30  Jan Hubicka  <jh@suse.cz>
10471         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10472         references.
10474 2010-04-30  Jan Hubicka  <jh@suse.cz>
10476         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10477         needed.
10479 2010-04-30  Richard Guenther  <rguenther@suse.de>
10481         * tree-ssa-structalias.c (get_constraint_for_1): Generate
10482         constraints for CONSTRUCTOR.
10484 2010-04-30  Richard Guenther  <rguenther@suse.de>
10486         PR lto/43946
10487         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10488         first after all lowering passes.
10490 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10492         * toplev.c: Include varray.h for statistics dumping.
10493         * tree.h: Do not declare varray_head_tag.
10494         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10495         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10496         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10497         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10498         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10499         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10500         c-common.c, c-common.h, reg-stack.c, basic-block.h,
10501         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10502         include varray.h.
10503         * Makefile.in: Update for abovementioned changes.
10505 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
10507         PR debug/43942
10508         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10510 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10512         * config/picochip/picochip.c (picochip_legitimize_address): Define.
10513         Use this function to do machine-specific conversion.
10514         (picochip_legitimize_reload_address): Likewise.
10515         (picochip_legitimate_address_p): Check valid base register only if
10516         strict.
10517         (picochip_check_conditional_copy): Check for modw only if opnd is
10518         register.
10519         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10520         to call the function in c.
10521         * config/picochip/picochip-protos.h
10522         (picochip_legitimize_reload_address): Define.
10523         * config/picochip/picochip.md (supported_compare1): Define.
10525 2010-04-30  Jan Hubicka  <jh@suse.cz>
10527         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10528         (cgraph_global_info): Remove inlined.
10529         (LTO_cgraph_tag_names): Remove.
10530         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10531         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10532         simplify cgraph tags and document.
10533         (lto_output_node): Use only LTO_cgraph_unavail_node and
10534         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10535         for_functions_valid, global info, process and output flags.
10536         (input_overwrite_node): Initialize estimated stack size and
10537         estimated growth.  Do not read flags we no longer store.
10538         (input_node): Likewise do not read info no longer stored.
10539         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10540         flag.
10542 2010-04-30  Richard Guenther  <rguenther@suse.de>
10544         PR tree-optimization/43879
10545         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10546         handle non-zero initializers.
10548 2010-04-30  Richard Guenther  <rguenther@suse.de>
10550         * builtins.c (fold_builtin_1): Delete free (0).
10552 2010-04-29  Jan Hubicka  <jh@suse.cz>
10554         * gengtype.c (open_base_files): Add lto-streamer.h
10555         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10556         (pass_ipa_cp): GGC collect.
10557         * toplev. (compile_file): Do not output symbols.
10558         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10559         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10560         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10561         * lto-section-in.c: Include ggc.h
10562         (lto_new_in_decl_state): Alloc in GGC.
10563         (lto_delete_in_decl_state): Likewise.
10564         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10565         Collect.
10567 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10569         PR target/42895
10570         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10571         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
10572         (HONOR_REG_ALLOC_ORDER): Describe new macro.
10573         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10574         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10575         account only if HONOR_REG_ALLOC_ORDER is not defined.
10576         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10577         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10579 2010-04-29  Jon Grant  <04@jguk.org>
10581         * collect2.c (vflag): Change type from int to bool.
10582         (debug): Likewise.
10583         (helpflag): New global bool.
10584         (main): Set vflag and debug with boolean, not integer truth values.
10585         Accept new "--help" option and output usage text if found.
10586         * collect2.h (vflag): Update prototype.
10587         (debug): Likewise.
10589 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10591         PR bootstrap/43936
10592         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10594 2010-04-29  Richard Guenther  <rguenther@suse.de>
10596         PR bootstrap/43935
10597         * plugin.h (invoke_plugin_callbacks): Annotate arguments
10598         with ATTRIBUTE_UNUSED.
10600 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10602         PR target/43921
10603         * config/i386/i386.c (get_some_local_dynamic_name): Replace
10604         INSN_P with NONDEBUG_INSN_P.
10605         (distance_non_agu_define): Likewise.
10606         (distance_agu_use): Likewise.
10608 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10610         From Dominique d'Humieres  <dominiq@lps.ens.fr>
10611         PR bootstrap/43858
10612         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10613         test_set.
10615 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
10617         * plugin.h (invoke_plugin_callbacks): New inline function.
10618         * plugin.c (flag_plugin_added): New global flag.
10619         (add_new_plugin): Initialize above flag.
10620         (invoke_plugin_callbacks): Rename to ...
10621         (invoke_plugin_callbacks_full): ... this.
10623 2010-04-28  Jan Hubicka  <jh@suse.cz>
10625         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10626         (lto_varpool_replace_node): New.
10627         (lto_symtab_resolve_symbols): Resolve varpool nodes.
10628         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10629         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10630         * cgraph.h (varpool_node_ptr): New type.
10631         (varpool_node_ptr): New vector.
10632         (varpool_node_set_def): New structure.
10633         (varpool_node_set): New type.
10634         (varpool_node_set): New vector.
10635         (varpool_node_set_element_def): New structure.
10636         (varpool_node_set_element, const_varpool_node_set_element): New types.
10637         (varpool_node_set_iterator): New type.
10638         (varpool_node): Add prev pointers, add used_from_other_partition,
10639         in_other_partition.
10640         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
10641         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
10642         varpool_get_node, varpool_remove_node): Declare.
10643         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
10644         varpool_node_set_size): New inlines.
10645         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
10646         * tree-pass.h (varpool_node_set_def): Forward declare.
10647         (ipa_opt_pass_d): Summary writting takes vnode sets too.
10648         (ipa_write_optimization_summaries): Update prototype.
10649         * ipa-cp.c (ipcp_write_summary): Update.
10650         * ipa-reference.c (ipa_reference_write_summary): Update.
10651         * lto-cgraph.c (lto_output_varpool_node): New static function.
10652         (output_varpool): New function.
10653         (input_varpool_node): New static function.
10654         (input_varpool_1): New function.
10655         (input_cgraph): Input varpool.
10656         * ipa-pure-const.c (pure_const_write_summary): Update.
10657         * lto-streamer-out.c (lto_output): Update, output varpool too.
10658         (write_global_stream): Kill WPA hack.
10659         (produce_asm_for_decls): Update.
10660         (output_alias_pair_p): Handle variables.
10661         (output_unreferenced_globals): Output only needed partition of varpool.
10662         * ipa-inline.c (inline_write_summary): Update.
10663         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
10664         cgraph.
10665         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
10666         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
10667         varpool_node_set_new, varpool_node_set_add,
10668         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
10669         debug_varpool_node_set): New functions.
10670         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
10671         (execute_one_pass): Process new decls too.
10672         (ipa_write_summaries_2): Pass around vsets.
10673         (ipa_write_summaries_1): Likewise.
10674         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
10675         to add.
10676         (ipa_write_optimization_summaries_1): Pass around vsets.
10677         (ipa_write_optimization_summaries): Likewise.
10678         * varpool.c (varpool_get_node): New.
10679         (varpool_node): Update doubly linked lists.
10680         (varpool_remove_node): New.
10681         (dump_varpool_node): More dumping.
10682         (varpool_enqueue_needed_node): Update doubly linked lists.
10683         (decide_is_variable_needed): Kill ltrans hack.
10684         (varpool_finalize_decl): Kill lto hack.
10685         (varpool_assemble_decl): Skip decls in other partitions.
10686         (varpool_assemble_pending_decls): Update doubly linkes lists.
10687         (varpool_empty_needed_queue): Likewise.
10688         (varpool_extra_name_alias): Likewise.
10689         * lto-streamer.c (lto_get_section_name): Add vars section.
10690         * lto-streamer.h (lto_section_type): Update.
10691         (output_varpool, input_varpool): Declare.
10693 2010-04-28  Mike Stump  <mikestump@comcast.net>
10695         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
10697 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10699         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
10700         record or union type with RECORD_OR_UNION_TYPE_P predicate.
10701         (lto_input_ts_type_tree_pointers): Likewise.
10702         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
10703         (lto_output_ts_type_tree_pointers): Likewise.
10705 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10707         Uniquization of constants at the Tree level
10708         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
10709         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
10710         bit to the end.
10711         (tree_output_constant_def): Declare.
10712         * gimplify.c (gimplify_init_constructor): When using block copy, first
10713         uniquize the constant constructor on the RHS.
10714         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
10715         DECL_IN_CONSTANT_POOL flag.
10716         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
10717         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
10718         constant pool.
10719         (assemble_variable): Deal with symbols belonging to the tree constant
10720         pool.
10721         (get_constant_section): Add ALIGN parameter and simplify.
10722         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
10723         (assemble_constant_contents): Use the expression of the VAR_DECL.
10724         (output_constant_def_contents): Use the alignment of the VAR_DECL.
10725         (tree_output_constant_def): New global function.
10726         (mark_constant): Use the expression of the VAR_DECL.
10727         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
10728         its expression.
10729         (output_object_block): Likewise and assemble the expression.
10731 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10733         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
10734         hash_tree, eq_tree): New tree hash table.
10735         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
10736         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
10737         lto_orig_address_remove): Reimplement.
10739 2010-04-28  Xinliang David Li  <davidxl@google.com>
10741         PR c/42643
10742         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
10743         (compute_uninit_opnds_pos): New function.
10744         (is_non_loop_exit_postdominating): New function.
10745         (compute_control_dep_chain): New function.
10746         (find_pdom): New function.
10747         (convert_control_dep_chain_into_preds): New function.
10748         (find_predicates): New function.
10749         (find_control_equiv_block): New function.
10750         (collect_phi_def_edges): New function.
10751         (find_def_preds): New function.
10752         (find_dom): New function.
10753         (dump_predicates): New function.
10754         (get_cmp_code): New function.
10755         (is_value_included_in): New function.
10756         (find_matching_predicate_in_rest_chains): New function.
10757         (use_pred_not_overlap_with_undef_path_pred): New function.
10758         (is_use_properly_guarded): New function.
10759         (normalize_cond_1): New function.
10760         (is_and_or_or): New function.
10761         (normalize_cond): New function.
10762         (is_gcond_subset_of): New function.
10763         (is_subset_of_any): New function.
10764         (is_or_set_subset_of): New function.
10765         (is_and_set_subset_of): New function.
10766         (is_norm_cond_subset_of): New function.
10767         (is_pred_expr_subset_of): New function.
10768         (is_pred_chain_subset_of): New function.
10769         (is_included_in): New function.
10770         (is_superset_of): New function.
10771         (find_uninit_use): New function.
10772         (warn_uninitialized_phi): New function.
10773         (compute_possibly_undefined_names): New function.
10774         (ssa_undefined_value_p): New function.
10775         (execute_late_warn_uninitialized): New function.
10776         * tree-ssa.c (ssa_undefined_value_p): Removed.
10777         (warn_uninit): Changed to extern.
10778         (warn_uninitialized_phi): Removed.
10779         (warn_uninitialized_vars): Changed to extern.
10780         (execute_late_warn_uninitialized): Removed
10781         * tree-flow.h: Add new prototypes.
10782         * timevar.def: Add new time variable.
10783         * Makefile.in: Add new build file.
10785 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
10787         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10788         type if available.
10790 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10792         PR target/22224
10793         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
10795 2010-04-28  Martin Jambor  <mjambor@suse.cz>
10797         * cgraph.h (struct cgraph_node): New field indirect_calls.
10798         (struct cgraph_indirect_call_info): New type.
10799         (struct cgraph_edge): Removed field indirect_call. New fields
10800         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
10801         (cgraph_create_indirect_edge): Declare.
10802         (cgraph_make_edge_direct): Likewise.
10803         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
10804         * ipa-prop.h (struct ipa_param_call_note): Removed.
10805         (struct ipa_node_params): Removed field param_calls.
10806         (ipa_create_all_structures_for_iinln): Declare.
10807         * cgraph.c: Described indirect edges and uids in initial comment.
10808         (cgraph_add_edge_to_call_site_hash): New function.
10809         (cgraph_edge): Search also among the indirect edges, use
10810         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
10811         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
10812         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
10813         site hash.
10814         (initialize_inline_failed): Assign a reason to indirect edges.
10815         (cgraph_create_edge_1): New function.
10816         (cgraph_create_edge): Moved some functionality to
10817         cgraph_create_edge_1.
10818         (cgraph_create_indirect_edge): New function.
10819         (cgraph_edge_remove_callee): Add an assert checking for
10820         non-indirectness.
10821         (cgraph_edge_remove_caller): Special-case indirect edges.
10822         (cgraph_remove_edge): Likewise.
10823         (cgraph_set_edge_callee): New function.
10824         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
10825         (cgraph_make_edge_direct): New function.
10826         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
10827         the declaration of the call statement matches.
10828         (cgraph_node_remove_callees): Special-case indirect edges.
10829         (cgraph_clone_edge): Likewise.
10830         (cgraph_clone_node): Clone also the indirect edges.
10831         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
10832         indirect_call, dump count of indirect_calls edges.
10833         * ipa-prop.c (iinlining_processed_edges): New variable.
10834         (ipa_note_param_call): Create indirect edges instead of
10835         creating notes.  New parameter node.
10836         (ipa_analyze_call_uses): New parameter node, pass it on to
10837         ipa_note_param_call.
10838         (ipa_analyze_stmt_uses): Likewise.
10839         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
10840         (print_edge_addition_message): Work on edges rather than on notes.
10841         (update_call_notes_after_inlining): Likewise, renamed to
10842         update_indirect_edges_after_inlining.
10843         (ipa_create_all_structures_for_iinln): New function.
10844         (ipa_free_node_params_substructures): Do not free notes.
10845         (ipa_edge_duplication_hook): Propagate bits within
10846         iinlining_processed_edges bitmap.
10847         (ipa_node_duplication_hook): Do not duplicate notes.
10848         (free_all_ipa_structures_after_ipa_cp): Renamed to
10849         ipa_free_all_structures_after_ipa_cp.
10850         (free_all_ipa_structures_after_iinln): Renamed to
10851         ipa_free_all_structures_after_iinln.
10852         (ipa_write_param_call_note): Removed.
10853         (ipa_read_param_call_note): Removed.
10854         (ipa_write_indirect_edge_info): New function.
10855         (ipa_read_indirect_edge_info): Likewise.
10856         (ipa_write_node_info): Do not stream notes, do stream information
10857         in indirect edges.
10858         (ipa_read_node_info): Likewise.
10859         (lto_ipa_fixup_call_notes): Removed.
10860         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10861         * ipa-inline.c (pass_ipa_inline): Likewise.
10862         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10863         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10864         * tree-inline.c (copy_bb): Removed an unnecessary double check for
10865         is_gimple_call.
10866         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10867         edges.
10868         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10869         (output_cgraph): Stream also indirect edges.
10870         (lto_output_edge): Added capability to stream indirect edges.
10871         (input_edge): Likewise.
10872         (input_cgraph_1): Likewise.
10873         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10874         of indirect edges.
10876 2010-04-28  Richard Guenther  <rguenther@suse.de>
10878         PR tree-optimization/43879
10879         PR tree-optimization/43909
10880         * tree-ssa-structalias.c (struct variable_info): Add
10881         only_restrict_pointers flag.
10882         (new_var_info): Initialize it.  Increment stats.total_vars here.
10883         (create_function_info_for): Do not increment stats.total_vars here.
10884         (get_function_part_constraint): Fix build with C++.
10885         (insert_into_field_list): Remove.
10886         (push_fields_onto_fieldstack): Properly merge fields.
10887         (create_variable_info_for): Split and simplify.
10888         (create_variable_info_for_1): New piece.
10889         (intra_create_variable_infos): Properly make restrict constraints
10890         from parameters.
10892 2010-04-28  Richard Guenther  <rguenther@suse.de>
10894         PR c++/43880
10895         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10897 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10898             Jan Hubicka  <hubicka@ucw.cz>
10900         * doc/invoke.texi (-Wsuggest-attribute=const,
10901         -Wsuggest-attribute=pure): Document.
10902         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10903         (function_always_visible_to_compiler_p,
10904         suggest_attribute, warn_function_pure, warn_function_const):
10905         New functions.
10906         (check_call): Improve debug info.
10907         (analyze_function): Do not check availability.
10908         (add_new_function): Check availability.
10909         (propagate): Output warnings.
10910         (skip_function_for_local_pure_const): New function.
10911         (local_pure_const): Use it; output warnings.
10912         * common.opt (Wsuggest-attribute=const,
10913         Wsuggest-attribute=pure): New.
10915 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10917         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10918         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10919         or DW_CFA_def_cfa_offset{,_sf}.
10921 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10923         * tree.h: Fix truncated long macros.
10925 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
10927         * collect2.c (TARGET_64BIT): Redefine to target's default.
10928         * tlink.c: Likewise.
10929         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10930         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10931         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10932         for underscoring __USER_LABEL_PREFIX__.
10933         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10934         (SUB_LINK_ENTRY32): New.
10935         (SUB_LINK_ENTRY64): New.
10936         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
10937         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
10938         (SUB_LINK_ENTRY64): New.
10939         (SUB_LINK_ENTRY): New.
10940         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
10941         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
10942         x64 target is choosen.
10943         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
10944         * configure: Regenerated.
10945         * configure.ac (leading-mingw64-underscores): Option added.
10947 2010-04-27  Jan Hubicka  <jh@suse.cz>
10949         * doc/invoke.texi (-fipa-profile): Document.
10950         * opts.c (decode_options): Enable ipa-profile at -O1.
10951         * timevar.def (TV_IPA_PROFILE): Define.
10952         * common.opt (fipa-profile): Add.
10953         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
10954         flag for clones.
10955         (cgraph_propagate_frequency): Handle only local ones.
10956         * tree-pass.h (pass_ipa_profile): Declare.
10957         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
10958         (pass_ipa_profile): Use TV_IPA_PROFILE.
10959         * ipa.c (ipa_profile): New function.
10960         (gate_ipa_profile): Likewise.
10961         (pass_ipa_profile): New global variable.
10962         * passes.c (pass_ipa_profile): New.
10964 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
10966         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
10968 2010-04-27  Martin Jambor  <mjambor@suse.cz>
10970         PR middle-end/43812
10971         * ipa.c (dissolve_same_comdat_group_list): New function.
10972         (function_and_variable_visibility): Call
10973         dissolve_same_comdat_group_list when comdat group contains external or
10974         newly local nodes.
10975         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
10976         lists are circular and that they contain only DECL_ONE_ONLY nodes.
10978 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10980         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
10981         (const_hash_1) <VECTOR_CST>: New case.
10982         (compare_constant) <VECTOR_CST>: Likewise.
10983         <ADDR_EXPR>: Deal with LABEL_REFs.
10984         (copy_constant) <VECTOR_CST>: New case.
10986 2010-04-27  Jan Hubicka  <jh@suse.cz>
10988         * cgraph.c (cgraph_propagate_frequency): New function.
10989         * cgraph.h (cgraph_propagate_frequency): Declare.
10990         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
10991         cgraph_propagate_frequency.
10993 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10995         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
10997 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
10999         PR target/40657
11000         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11001         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11002         here to determine which regs to push and how much stack to reserve.
11004 2010-04-27  Jie Zhang  <jie@codesourcery.com>
11006         * doc/gimple.texi (gimple_statement_with_ops): Remove
11007         addresses_taken field.
11008         (gimple_statement_with_memory_ops): Likewise.
11010 2010-04-27  Jan Hubicka  <jh@suse.cz>
11012         * tree-inline.c (eni_inlining_weights): Remove.
11013         (estimate_num_insns): Special case more builtins.
11015 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
11017         PR c/32207
11018         * c-typeck.c (build_binary_op): Move forward check for comparison
11019         pointer with null pointer constant and adjust the diagnostic message.
11021 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
11023         PR lto/42776
11024         * configure.ac (gcc_cv_as_section_has_align): Set if installed
11025         binutils supports extended .section directive needed by LTO, or
11026         warn if older binutils found.
11027         (LTO_BINARY_READER): New AC_SUBST'd variable.
11028         (LTO_USE_LIBELF): Likewise.
11029         * gcc/config.gcc (lto_binary_reader): New target-specific configure
11030         variable.
11031         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11032         (LTO_USE_LIBELF): Likewise.
11033         * configure: Regenerate.
11035         * collect2.c (is_elf): Rename from this ...
11036         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11037          object files in addition to ELF-formatted ones.
11038         (scan_prog_file): Caller updated.  Also allow for LTO info marker
11039         symbol to be prefixed or not by an extra underscore.
11041         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11042         * config/i386/winnt.c: Also #include lto-streamer.h
11043         (i386_pe_asm_named_section): Specify 1-byte section alignment for
11044         LTO named sections.
11045         (i386_pe_asm_output_aligned_decl_common): Add comment.
11046         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11048 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
11050         PR target/43889
11051         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11052         Add missing earlyclobber for second alternative.
11054 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
11056         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11057         bits for artificial defs at the top of the block.
11058         * fwprop.c (single_def_use_enter_block): Don't call it.
11060 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
11062         PR 43715
11063         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11064         instead of "$gcc_cv_objdump -T".
11065         Use "-undefined dynamic_lookup" on darwin.
11066         * gcc/configure: Regenerate.
11068 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
11070         PR c/43893
11071         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11073 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11075         * c-parser.c (struct c_token): Move location field up.
11076         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11077         (struct c_declspecs): Convert typespec_word, storage_class, and
11078         default_int_p into bitfields.
11079         (struct c_declarator): Move loc field up.
11081 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11083         * cfgloop.h (struct loop): Move can_be_parallel field up.
11084         * ipa-prop.h (struct ip_node_params): Move bitfields up.
11085         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11086         down.
11087         (struct iv_cand): Convert pos field into a bitfield.
11088         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11089         field up.
11090         (struct _stmt_vec_info): Shuffle fields for better packing.
11092 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11094         * varasm.c (IN_NAMED_SECTION): Remove guard.
11095         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11096         (IN_NAMED_SECTION_P): ...this.
11097         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11098         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11100 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11102         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11103         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
11104         of shadowing it.  Fix comments.
11106 2010-04-26  Jan Hubicka  <jh@suse.cz>
11108         * cgraph.c (cgraph_create_node): Set node frequency to normal.
11109         (cgraph_clone_node): Copy function frequency.
11110         * cgraph.h (node_frequency): New enum
11111         (struct cgraph_node): Add.
11112         * final.c (rest_of_clean_state): Update.
11113         * lto-cgraph.c (lto_output_node): Output node frequency.
11114         (input_overwrite_node): Input node frequency.
11115         * tre-ssa-loop-ivopts (computation_cost): Update.
11116         * lto-streamer-out.c (output_function): Do not output function
11117         frequency.
11118         * predict.c (maybe_hot_frequency_p): Update and handle functions
11119         executed once.
11120         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11121         attribute lookup.
11122         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11123         (compute_function_frequency): Set noreturn functions to be executed
11124         once.
11125         (choose_function_section): Update.
11126         * lto-streamer-in.c (input_function): Do not input function frequency.
11127         * function.c (allocate_struct_function): Do not initialize function
11128         frequency.
11129         * function.h (function_frequency): Remove.
11130         (struct function): Remove function frequency.
11131         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11132         (try_update): Update.
11133         * tree-inline.c (initialize_cfun): Do not update function frequency.
11134         * passes.c (pass_init_dump_file): Update.
11135         * i386.c (ix86_compute_frame_layout): Update.
11136         (ix86_pad_returns): Update.
11138 2010-04-26  Jie Zhang  <jie@codesourcery.com>
11140         PR tree-optimization/43833
11141         * tree-vrp.c (range_int_cst_p): New.
11142         (range_int_cst_singleton_p): New.
11143         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11144         when both operands are constants.  Use range_int_cst_p in
11145         BIT_IOR_EXPR case.
11147 2010-04-26  Jan Hubicka  <jh@suse.cz>
11149         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11151 2010-04-26  Richard Guenther  <rguenther@suse.de>
11153         PR lto/43080
11154         * gimple.c (gimple_decl_printable_name): Deal gracefully
11155         with a NULL DECL_NAME.
11157 2010-04-26  Richard Guenther  <rguenther@suse.de>
11159         PR lto/42425
11160         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11161         if emitting debug information and it is either a function
11162         or a namespace decl.
11164 2010-04-26  Ira Rosen  <irar@il.ibm.com>
11166         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11167         determine if the statement is vectorizable, and a macro to access it.
11168         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11169         Skip statements that can't be vectorized. If the analysis fails,
11170         mark the statement as unvectorizable if vectorizing basic block.
11171         (vect_compute_data_refs_alignment): Likewise.
11172         (vect_verify_datarefs_alignment): Skip statements marked as
11173         unvectorizable. Add print.
11174         (vect_analyze_group_access): Skip statements that can't be
11175         vectorized. If the analysis fails, mark the statement as
11176         unvectorizable if vectorizing basic block.
11177         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11178         * tree-vect-stmts.c (vectorizable_store): Fix the number of
11179         generated stmts for SLP.
11180         (new_stmt_vec_info): Initialize the new field.
11181         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11182         statements marked as unvectorizable.
11184 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
11186         * c-common.c (flag_isoc1x): New.
11187         (flag_isoc99): Update comment.
11188         * c-common.h (flag_isoc1x): New.
11189         (flag_isoc99): Update comment.
11190         * c-cppbuiltin.c (builtin_define_float_constants): Also define
11191         __<type>_DECIMAL_DIG__.
11192         * c-opts.c (set_std_c1x): New.
11193         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11194         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11195         * c.opt (-std=c1x, -std=gnu1x): New options.
11196         * doc/cpp.texi: Mention -std=c1x.
11197         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11198         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11199         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11200         * doc/standards.texi: Mention C1X.
11201         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11202         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11203         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11204         Define for C1X.
11206 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
11208         * config/i386/gmon-sol2.c (_mcleanup): Change format string
11209         placeholder from 0x%x to %#x.
11210         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11211         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11212         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11213         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11214         * config/i386/i386.c (ix86_target_string): Ditto.
11215         (output_pic_addr_const): Ditto.
11216         (print_operand): Ditto.
11218 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
11220         * combine.c (find_split_point): Add third argument.  Use it
11221         to find nested multiply-accumulate instructions.  Adjust calls.
11222         (try_combine): Adjust call to find_split_point.
11224 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11226         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11228 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
11230         PR tree-optimization/41442
11231         * fold-const.c (merge_truthop_with_opposite_arm): New function.
11232         (fold_binary_loc): Call it.
11234 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11236         * toplev.c (general_init): Set default for fdiagnostics-show-option.
11237         * opts.c (common_handle_option): Allow disabling it.
11238         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11240 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
11242         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11243         between modes if both types are integral.
11245 2010-04-23  Richard Guenther  <rguenther@suse.de>
11247         PR tree-optimization/43572
11248         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11250 2010-04-23  Richard Guenther  <rguenther@suse.de>
11252         PR lto/43455
11253         * tree-inline.c (tree_can_inline_p): Also check compatibility
11254         of return types.
11256 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11258         PR tree-optimization/43846
11259         * tree-sra.c (struct access): New flag grp_assignment_read.
11260         (build_accesses_from_assign): Set grp_assignment_read.
11261         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11262         (enum mark_read_status): New type.
11263         (analyze_access_subtree): Propagate grp_assignment_read, create
11264         accesses also if both direct_read and root->grp_assignment_read.
11266 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11268         PR middle-end/43835
11269         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11270         function does not have type attributes.
11272 2010-04-23  Richard Guenther  <rguenther@suse.de>
11274         PR lto/42653
11275         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11276         of FUNCTION_DECLs.
11278 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11280         * sese.h (create_if_region_on_edge): Remove.
11282         * sese.c (create_if_region_on_edge): Make static.
11284         * tree-inline.c: Do not include ggc.h.
11286         * expr.c: Do not include ggc.h.
11288         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11289         dependencies.
11291 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11293         PR target/43744
11294         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11295         in the middle of insns for casesi_worker_2.
11297 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
11299         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11301 2010-04-22  Ira Rosen  <irar@il.ibm.com>
11303         PR tree-optimization/43842
11304         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11305         loop unrolling in update of exit phis. Fix comment.
11306         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11307         least two reduction statements in the loop before starting SLP
11308         analysis.
11310 2010-04-22  Nick Clifton  <nickc@redhat.com>
11312         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11314 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
11316         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11317         to simplify a + ~a.
11319 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11321         * tree-parloops.c (loop_parallel_p): New argument
11322         parloop_obstack.  Pass it down.
11323         (parallelize_loops): New variable parloop_obstack.  Initialize it,
11324         pass it down, free it.
11326         * tree-loop-linear.c (linear_transform_loops): Pass down
11327         lambda_obstack.
11329         * tree-data-ref.h (lambda_compute_access_matrices): New argument
11330         of type struct obstack *.
11332         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11333         scratch_obstack.  Initialize it, pass down, free it.
11335         * lambda.h (lambda_loop_new): Remove.
11336         (lambda_matrix_new, lambda_matrix_inverse)
11337         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11338         argument of type struct obstack *.
11340         * lambda-trans.c (lambda_trans_matrix_new): New argument
11341         lambda_obstack.  Pass it down, use obstack allocation for ret.
11342         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
11343         it down.
11345         * lambda-mat.c (lambda_matrix_get_column)
11346         (lambda_matrix_project_to_null): Remove.
11347         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
11348         allocation for mat.
11349         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11350         lambda_obstack.
11352         * lambda-code.c (lambda_loop_new): New function.
11353         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11354         (lambda_compute_auxillary_space, lambda_compute_target_space)
11355         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11356         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11357         (build_access_matrix): New argument lambda_obstack.  Use obstack
11358         allocation for am.
11359         (lambda_compute_step_signs, lambda_compute_access_matrices): New
11360         argument lambda_obstack.  Pass it down.
11362 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11364         * optabs.h (expand_widening_mult): Declare.
11366 2010-04-22  Richard Guenther  <rguenther@suse.de>
11368         PR tree-optimization/43845
11369         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11370         lookup the CALL_EXPR function and arguments.
11372 2010-04-22  Nick Clifton  <nickc@redhat.com>
11374         * config/stormy16/stormy16.c
11375         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11376         * config/stormy16/stormy16.h: Tidy up formatting.
11377         (DONT_USE_BUILTIN_SETJMP): Remove definition.
11378         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11379         (ineqbranchsi): Delete pattern.
11380         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11381         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11382         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11383         stormy16-lib2-ucmpsi2.c.
11385 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11387         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11388         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
11389         extra set merge_set_noclobber, and use it to relax the final test
11390         slightly.
11391         * df.h (df_simulate_find_noclobber_defs): Declare.
11392         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11393         conditional defs.
11394         (df_simulate_find_noclobber_defs): New function.
11396 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
11398         * config/i386/i386.md: Use {} around multi-line preparation statements.
11400 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11402         * c-tree.h (push_init_level, pop_init_level, set_init_index)
11403         (process_init_element): New argument of type struct obstack *.
11405         * c-typeck.c (push_init_level, pop_init_level, set_designator)
11406         (set_init_index, set_init_label, set_nonincremental_init)
11407         (set_nonincremental_init_from_string, find_init_member)
11408         (output_init_element, output_pending_init_elements)
11409         (process_init_element): New argument braced_init_obstack.  Pass it
11410         down.
11411         (push_range_stack, add_pending_init): New argument
11412         braced_init_obstack.  Use obstack allocation.
11414         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11415         braced_init_obstack.  Pass it down.
11416         (c_parser_braced_init): New variables ret, braced_init_obstack.
11417         Initialize obstack, pass it down and finally free it.
11419 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11421         PR middle-end/29274
11422         * tree-pass.h (pass_optimize_widening_mul): Declare.
11423         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11424         gate_optimize_widening_mul): New static functions.
11425         (pass_optimize_widening_mul): New.
11426         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11427         <case MULT_EXPR>: Remove support for widening multiplies.
11428         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11429         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11430         simplify_gen_unary rather than directly building extensions.
11431         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11432         WIDEN_MULT_EXPR.
11433         * expmed.c (expand_widening_mult): New function.
11434         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11436 2010-04-21  Jan Hubicka  <jh@suse.cz>
11438         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11439         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11440         * lto-wpa-fixup.c: Remove.
11441         * Makefile.in (lto-wpa-fixup.o): Remove.
11442         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11443         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11444         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11446 2010-04-21  Jan Hubicka  <jh@suse.cz>
11448         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11449         add write_optimization_summary, read_optimization_summary.
11450         (ipa_write_summaries_of_cgraph_node_set): Remove.
11451         (ipa_write_optimization_summaries): Declare.
11452         (ipa_read_optimization_summaries): Declare.
11453         * ipa-cp.c (pass_ipa_cp): Update.
11454         * ipa-reference.c (pass_ipa_reference): Update.
11455         * ipa-pure-const.c (pass_ipa_pure_const): Update.
11456         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11457         Update.
11458         * ipa-inline.c (pass_ipa_inline): Update.
11459         * ipa.c (pass_ipa_whole_program): Update.
11460         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11461         * passes.c (ipa_write_summaries_1): Do not test wpa.
11462         (ipa_write_optimization_summaries_1): New.
11463         (ipa_write_optimization_summaries): New.
11464         (ipa_read_summaries): Do not test ltrans.
11465         (ipa_read_optimization_summaries_1): New.
11466         (ipa_read_optimization_summaries): New.
11468 2010-04-21  Jan Hubicka  <jh@suse.cz>
11470         * lto-cgraph.c (lto_output_node): Do not output comdat groups
11471         for boundary nodes.
11472         (output_cgraph): Do not arrange comdat groups for boundary nodes.
11474 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11476         PR debug/40040
11477         * dwarf2out.c (add_name_and_src_coords_attributes): Add
11478         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11480 2010-04-21  Jan Hubicka  <jh@suse.cz>
11482         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11484 2010-04-21  Jan Hubicka  <jh@suse.cz>
11486         * varpool.c (decide_is_variable_needed): Variable is always needed
11487         during ltrans.
11489 2010-04-21  Jan Hubicka  <jh@suse.cz>
11491         * opts.c (decode_options): Enable pure-const pass for whopr.
11493 2010-04-21  Jan Hubicka  <jh@suse.cz>
11495         * cgraph.c (dump_cgraph_node): Dump also assembler name.
11496         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11497         at WPA dumping.
11498         (cgraph_decide_inlining): Do not expect callee to be removed in all
11499         cases.
11501 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
11503         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11505 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11507         * config/i386/i386.md (x86_shrd): Add athlon_decode and
11508         amdfam10_decode attributes.
11510 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11512         PR middle-end/43570
11513         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11514         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11515         (lower_copyprivate_clauses): Use private var in outer
11516         context instead of original var.  Make sure the types
11517         are correct for VLAs.
11519 2010-04-21  Richard Guenther  <rguenther@suse.de>
11521         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11522         to non-pointer objects.
11524 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11526         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
11527         last chain entry if it starts with the still current label.
11528         (add_location_or_const_value_attribute): Check that
11529         loc_list->first->next is NULL instead of comparing ->first with ->last.
11530         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11531         to add_var_loc_to_decl.
11533         * dwarf2out.c (output_call_frame_info): For dw_cie_version
11534         >= 4 add also address size and segment size fields into CIE header.
11536         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11537         long as address size is the same as sizeof (void *) and
11538         segment size is 0.
11539         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
11540         address size or segment size is unexpected, return DW_EH_PE_omit.
11541         (classify_object_over_fdes): If get_cie_encoding returned
11542         DW_EH_PE_omit, return -1.
11543         (init_object): If classify_object_over_fdes returned -1,
11544         pretend there were no FDEs at all.
11546 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11548         * config/i386/i386.md (bswap<mode>2): Macroize expander from
11549         bswap{si,di}2 using SWI48 mode iterator.
11550         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11551         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
11552         set modrm attribute of bswap insn to 0 and remove length attribute.
11553         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11554         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
11555         set mode attribute to <MODE> and remove length attribute.
11557 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
11559         PR rtl-optimization/43520
11560         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11561         zero available registers.
11563 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11565         * builtins.c (fold_builtin_cproj): Fold more cases.
11567 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11569         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11570         (fold_builtin_1): Fold builtin cproj.
11571         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11572         Use ATTR_CONST_NOTHROW_LIST.
11574 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
11576         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11577         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
11578         ffsi2_no_cmove for !TARGET_CMOVE.
11579         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
11580         (ffssi2): Remove expander.
11581         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11582         mode iterator.
11583         (ctz<mode>2): Ditto from ctz{si,di}2.
11584         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11585         mode iterator.
11586         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11587         mode iterator.
11589 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11591         * dwarf2out.c (AT_linkage_name): Define.
11592         (clone_as_declaration): Handle DW_AT_linkage_name.
11593         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11594         of DW_AT_MIPS_linkage_name.
11595         (move_linkage_attr): Likewise.
11596         (dwarf2out_finish): Likewise.
11598 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
11600         PR middle-end/41952
11601         * fold-const.c (fold_comparison): New folding rule.
11603 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
11605         * double-int.h (double_int_setbit): Declare.
11606         * double-int.c (double_int_setbit): New function.
11607         * rtl.h (immed_double_int_const): Declare.
11608         * emit-rtl.c (immed_double_int_const): New function.
11609         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11610         and immed_double_int_const functions.
11611         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11612         expand_copysign_bit):  (Ditto.).
11613         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11614         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11615         * dojump.c (prefer_and_bit_test): (Ditto.).
11616         * expr.c (convert_modes, reduce_to_bit_field_precision,
11617         const_vector_from_tree): (Ditto.).
11618         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11620 2010-04-20  Jan Hubicka  <jh@suse.cz>
11622         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11623         (dump_cgraph_node): Dump new flags.
11624         * cgraph.h (struct cgraph_node): Add flags
11625         reachable_from_other_partition and in_other_partition.
11626         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11627         other partition can not be removed.
11628         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11629         the other partition must be output; silence sanity checking on
11630         leaking functions bodies from other paritition.
11631         * lto-cgraph.c (reachable_from_other_partition_p): New function.
11632         (lto_output_node): Output new flags; do not sanity check that inline
11633         clones are output; drop lto_forced_extern_inline_p code; do not mock
11634         visibility flags at partition boundaries.
11635         (add_node_to): New function.
11636         (output_cgraph): Use it to sort functions so masters appear before
11637         clones.
11638         (input_overwrite_node): Input new flags.
11639         * passes.c (ipa_write_summaries): Do not call
11640         lto_new_extern_inline_states.
11641         * lto-section-out.c (forced_extern_inline,
11642         lto_new_extern_inline_states lto_delete_extern_inline_states,
11643         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
11644         * lto-streamer.h (lto_new_extern_inline_states,
11645         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
11646         lto_forced_extern_inline_p): Kill.
11648 2010-04-20  Richard Guenther  <rguenther@suse.de>
11650         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
11651         from vars that can have pointers.
11652         (process_constraint): Dump useless constraints.
11654 2010-04-20  Richard Guenther  <rguenther@suse.de>
11656         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
11657         (dump_sa_points_to_info): Remove asserts.
11658         (init_base_vars): nothing_id isn't an escape point nor does it
11659         have pointers.
11661 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11663         * tree.h (TYPE_REF_IS_RVALUE): Define.
11664         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
11665         should_move_die_to_comdat, prune_unused_types_walk): Handle
11666         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
11667         (modified_type_die, gen_reference_type_die): Emit
11668         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
11669         if TYPE_REF_IS_RVALUE and -gdwarf-4.
11671 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11673         PR target/43635
11674         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
11675         calls for -fpic -m31 if they have been sibcall optimized.
11677 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
11679         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
11680         ar.lc fixed and call-used.
11682         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11684 2010-04-19  Jan Hubicka  <jh@suse.cz>
11686         * opts.c (decode_options): Disable whpr incompatible passes.
11687         * lto/lto.c (lto_1_to_1_map): Skip clones.
11688         (read_cgraph_and_symbols): Do not mark everything as needed.
11689         (do_whole_program_analysis): Do map only after optimizing;
11690         set proper cgraph_state; use passmanager.
11692 2010-04-19  DJ Delorie  <dj@redhat.com>
11694         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
11695         POINTER_PLUS_EXPR and fix them.
11697 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
11699         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
11700         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
11701         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
11702         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
11703         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
11704         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
11705         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
11706         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
11707         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
11708         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
11709         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
11711 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11713         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
11714         (check_cond_move_block): Likewise.
11715         (cond_move_process_if_block): Likewise.
11716         (noce_find_if_block): Improve formatting.
11717         (find_if_header): Pass 0 to memset and tweak conditions.
11718         (cond_exec_find_if_block): Fix long lines and tweak conditions.
11720 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11722         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
11723         for -gdwarf-4.
11725         PR middle-end/43337
11726         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
11727         with non-local decl doesn't need chain.
11729 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
11731         * ira-color.c (allocno_reload_assign): Avoid accumulating
11732         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
11734 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11736         * gimple.h (create_tmp_reg): Declare.
11737         * gimplify.c (create_tmp_reg): New function.
11738         (gimplify_return_expr): Use create_tmp_reg.
11739         (gimplify_omp_atomic): Likewise.
11740         (gimple_regimplify_operands): Likewise.
11741         * tree-dfa.c (make_rename_temp): Likewise.
11742         * tree-predcom.c (predcom_tmp_var): Likewise.
11743         (reassociate_to_the_same_stmt): Likewise.
11744         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
11745         (get_replaced_param_substitute): Likewise.
11746         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11747         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
11748         * tree-ssa-pre.c (get_representative_for): Likewise.
11749         (create_expression_by_pieces): Likewise.
11750         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11751         (create_tailcall_accumulator): Likewise.
11753 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11755         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
11756         new_stmt.
11757         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
11759 2010-04-19  Richard Guenther  <rguenther@suse.de>
11761         PR tree-optimization/43796
11762         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
11763         from SCEV in the lattice.
11764         (vrp_visit_phi_node): Dump change.
11766 2010-04-19  Richard Guenther  <rguenther@suse.de>
11768         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
11769         * configure: Re-generated.
11771 2010-04-19  Richard Guenther  <rguenther@suse.de>
11773         PR tree-optimization/43783
11774         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
11775         constant ARRAY_REF operands two and three if possible.
11777 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
11779         PR target/43766
11780         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
11782 2010-04-19  Jie Zhang  <jie@codesourcery.com>
11784         PR target/43662
11785         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
11787 2010-04-19  Ira Rosen  <irar@il.ibm.com>
11789         PR tree-optimization/37027
11790         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
11791         and macro to access it.
11792         (vectorizable_reduction): Add argument.
11793         (vect_get_slp_defs): Likewise.
11794         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
11795         statements for possible use in SLP.
11796         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
11797         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
11798         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
11799         add new argument.
11800         (vectorizable_reduction): Likewise.
11801         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
11802         vect_get_slp_defs.
11803         (vectorizable_type_demotion, vectorizable_type_promotion,
11804         vectorizable_store): Likewise.
11805         (vect_analyze_stmt): Update call to vectorizable_reduction.
11806         (vect_transform_stmt): Likewise.
11807         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
11808         (vect_build_slp_tree): Fix indentation. Check that there are no loads
11809         from different interleaving chains in same node.
11810         (vect_slp_rearrange_stmts): New function.
11811         (vect_supported_load_permutation_p): Allow load permutations for
11812         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
11813         inside SLP nodes if necessary.
11814         (vect_analyze_slp_instance): Handle reductions.
11815         (vect_analyze_slp): Try to build SLP instances originating from groups
11816         of reductions.
11817         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
11818         (vect_get_constant_vectors): Create initial vectors for reductions
11819         according to reduction code. Add new argument.
11820         (vect_get_slp_defs): Add new argument, pass it to
11821         vect_get_constant_vectors.
11822         (vect_schedule_slp_instance): Remove SLP tree root statements.
11824 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11826         * tree.h (ENUM_IS_SCOPED): Define.
11827         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
11828         for ENUM_IS_SCOPED enums.
11830 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11832         * fold-const.c (fold_comparison): Use ssizetype.
11833         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11834         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
11835         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
11836         * tree-object-size.c (compute_object_sizes): Use size_type_node.
11838         * tree.h (initialize_sizetypes): Remove parameter.
11839         (build_common_tree_nodes): Remove second parameter.
11840         * stor-layout.c (initialize_sizetypes): Remove parameter.
11841         Always create an unsigned type.
11842         (set_sizetype): Assert that the passed type is unsigned and simplify.
11843         * tree.c (build_common_tree_nodes): Remove second parameter.
11844         Adjust call to initialize_sizetypes.
11845         * c-decl.c (c_init_decl_processing): Remove second argument in call to
11846         build_common_tree_nodes.
11848 2010-04-18  Matthias Klose  <doko@ubuntu.com>
11850         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
11852 2010-04-18  Ira Rosen  <irar@il.ibm.com>
11854         PR tree-optimization/43771
11855         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
11856         load permutation doesn't have gaps.
11858 2010-04-18  Jan Hubicka  <jh@suse.cz>
11860         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11861         (sse_prologue_save_insn expander): Use new pattern.
11862         (sse_prologue_save_insn1): New pattern and splitter.
11863         (sse_prologue_save_insn): Update to deal also with 64bit aligned
11864         blocks.
11865         * i386.c (setup_incoming_varargs_64): Do not compute jump
11866         destination here.
11867         (ix86_gimplify_va_arg): Update alignment needed.
11868         (ix86_local_alignment): Do not align all local arrays to 128bit.
11870 2010-04-17  Jan Hubicka  <jh@suse.cz>
11872         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11874 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11876         * arm.md (negdi2): Remove redundant code to force values into a
11877         register.
11879 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11881         * arm/bpabi.S: Add EABI alignment attributes to objects.
11882         * arm/bpabi-v6m.S: Likewise.
11883         * arm/crti.asm: Likewise.
11884         * arm/crtn.asm: Likewise.
11885         * arm/lib1funcs.asm: Likewise.
11886         * arm/libunwind.S: Likewise.
11888 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11890         * arm-protos.h (tune_params): New structure.
11891         * arm.c (current_tune): New variable.
11892         (arm_constant_limit): Delete.
11893         (struct processors): Add pointer to the tune parameters.
11894         (arm_slowmul_tune): New tuning option.
11895         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11896         (all_cores): Adjust to pick up the tuning model.
11897         (arm_constant_limit): New function.
11898         (arm_override_options): Select the appropriate tuning model.  Delete
11899         initialization of arm_const_limit.
11900         (arm_split_constant): Use the new constant-limit model.
11901         (arm_rtx_costs): Pick up the current tuning model.
11902         * arm.md (is_strongarm, is_xscale): Delete.
11903         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11904         for Xscale variant architectures.
11905         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11907 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11909         * config/arm/arm.c (arm_gen_constant): Remove unused variable
11910         can_shift.
11911         (arm_rtx_costs_1): Remove unused variable extra_cost.
11912         (arm_unwind_emit_set): Use variable offset.
11913         (thumb1_output_casesi): Remove unused variable flags.
11915 2010-04-16  Jeff Law  <law@redhat.com>
11917         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11918         needing assignment rather than doing a two-phase assignment.  Remove
11919         unused variable 'm'.
11921 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11923         PR bootstrap/43767
11924         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11926 2010-04-16  Doug Kwan  <dougkwan@google.com>
11928         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11929         (next_operand_entry_id): New static variable.
11930         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11931         (add_to_ops_vec): Assigned unique ID to operand entry.
11932         (struct oecount_s): New field ID.
11933         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11934         (undistribute_ops_list): Assign unique IDs to oecounts.
11935         (init_reassoc): reset next_operand_entry_id.
11937 2010-04-16  Doug Kwan  <dougkwan@google.com>
11939         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
11940         missing left parenthesis.
11942 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
11944         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
11945         *btdi_rex64 using SWI48 mode iterator.
11946         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
11947         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
11948         *jcc_btdi_mask_rex64.
11950 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
11952         * double-int.h (tree_to_double_int): Convert to macro.
11953         * double-int.c (tree_to_double_int): Remove.
11955 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11957         PR debug/43762
11958         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
11959         with want_address 2 and in case a single element list might be
11960         possible, call it again with want_address 0.
11962 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11964         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
11965         case 'W' print operands for HI mode.
11966         * config/h8300/h8300.h (Y0, Y2) : New constraints.
11967         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
11968         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
11969         * config/h8300/predicate.md (bit_register_indirect_operand): New.
11971         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
11973         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
11974         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
11975         #xx:3 and #xx:4 mode.
11977         * config/h8300/h8300.md (inverted load with HImode dest): Add
11978         support for H8300SX.
11980         * config/h8300/predicate.md (bit_operand): Allow immediate values that
11981         satisfy 'U' constraint.
11983 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11985         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
11986         * configure: Regenerate.
11987         * config.in: Regenerate.
11988         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
11989         works.
11991 2010-04-16  Richard Guenther  <rguenther@suse.de>
11993         * tree.h (struct tree_decl_minimal): Move pt_uid ...
11994         (struct tree_decl_common): ... here.
11995         (DECL_PT_UID): Adjust.
11996         (SET_DECL_PT_UID): Likewise.
11997         (DECL_PT_UID_SET_P): Likewise.
11999 2010-04-16  Richard Guenther  <rguenther@suse.de>
12001         PR tree-optimization/43572
12002         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12003         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12004         * tree-flow.h (is_call_clobbered): Remove.
12005         * tree-flow-inline.h (is_call_clobbered): Likewise.
12006         * tree-dfa.c (dump_variable): Do not dump call clobber state.
12007         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12008         (execute_return_slot_opt): Adjust.
12009         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12010         check for call clobbered vars here.
12011         (find_tail_calls): Move tailcall verification to the
12012         proper place.
12014 2010-04-16  Diego Novillo  <dnovillo@google.com>
12016         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12018 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12020         PR target/40603
12021         * config/arm/arm.md (cbranchqi4): New pattern.
12022         * config/arm/predicates.md (const0_operand,
12023         cbranchqi4_comparison_operator): New predicates.
12025 2010-04-16  Richard Guenther  <rguenther@suse.de>
12027         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12028         (dump_gimple_stmt): Likewise.
12030 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12032         * recog.h (struct recog_data): New field is_operator.
12033         (struct insn_operand_data): New field is_operator.
12034         * recog.c (extract_insn): Set recog_data.is_operator.
12035         * genoutput.c (output_operand_data): Emit code to set the
12036         is_operator field.
12037         * reload.c (find_reloads): Use it rather than testing for an
12038         empty constraint string.
12040         PR target/41514
12041         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12042         If the previous insn is a cbranchsi4_insn with the same arguments,
12043         omit the compare instruction.
12045         * config/arm/arm.md (addsi3_cbranch): If destination is a high
12046         register, inputs must be low registers and we need a low register
12047         scratch.  Handle alternative 2 like alternative 3.
12049 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12051         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12052         don't call get_addr on both.  If one expression is a VALUE and
12053         the other a REG, check VALUE's locs if the REG isn't among them.
12055 2010-04-16  Christian Bruel  <christian.bruel@st.com>
12057         * config/sh/sh.h (sh_frame_pointer_required): New function.
12058         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12059         (flag_omit_frame_pointer) Set.
12060         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12061         (rounded_frame_size): Adjust size with outgoing_args_size.
12062         (sh_set_return_address): Must return from stack pointer.
12063         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12064         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12065         (ACCUMULATE_OUTGOING_ARGS): Define.
12066         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12067         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12069 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12071         PR target/43471
12072         * config/sh/sh.c (sh_legitimize_reload_address): Use
12073         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12074         Remove a unneeded check for offset_base.
12076 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12078         * configure: Regenerated.
12080 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12082         * config/s390/s390.c (s390_call_save_register_used): Switch back
12083         to HARD_REGNO_NREGS.
12085 2010-04-15  Richard Guenther  <rguenther@suse.de>
12087         * alias.c (alias_set_subset_of): Handle alias-set zero
12088         child properly.
12090 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
12091             Julian Brown  <julian@codesourcery.com>
12093         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12094         alternatives according to use of high and low regs.
12095         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12096         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12097         optimizing for size on Thumb-2.
12099 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
12101         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12103 2010-04-15  Richard Guenther  <rguenther@suse.de>
12105         * tree-ssa-structalias.c (struct variable_info): Add
12106         is_fn_info flag.
12107         (new_var_info): Initialize it.
12108         (dump_constraints): Support printing last added constraints.
12109         (debug_constraints): Adjust.
12110         (dump_constraint_graph): Likewise.
12111         (make_heapvar_for): Check for NULL cfun.
12112         (get_function_part_constraint): New function.
12113         (get_fi_for_callee): Likewise.
12114         (find_func_aliases): Properly implement IPA PTA constraints.
12115         (process_ipa_clobber): New function.
12116         (find_func_clobbers): Likewise.
12117         (insert_into_field_list_sorted): Remove.
12118         (create_function_info_for): Properly allocate vars for IPA mode.
12119         Do not use insert_into_field_list_sorted.
12120         (create_variable_info_for): Properly generate constraints for
12121         global vars in IPA mode.
12122         (dump_solution_for_var): Always dump the solution.
12123         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12124         (find_what_var_points_to): Adjust.
12125         (pt_solution_set): Change.
12126         (pt_solution_ior_into): New function.
12127         (pt_solution_empty_p): Export.
12128         (pt_solution_includes_global): Adjust.
12129         (pt_solution_includes_1): Likewise.
12130         (pt_solutions_intersect_1): Likewise.
12131         (dump_sa_points_to_info): Check some invariants.
12132         (solve_constraints): Move constraint dumping ...
12133         (compute_points_to_sets): ... here.
12134         (ipa_pta_execute): ... and here.
12135         (compute_may_aliases): Do not re-compute points-to info
12136         locally if IPA info is available.
12137         (ipa_escaped_pt): New global var.
12138         (ipa_pta_execute): Properly implement IPA PTA.
12139         * tree-into-ssa.c (dump_decl_set): Support dumping
12140         decls not in referenced-vars.
12141         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12142         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12143         (dump_points_to_solution): Likewise.
12144         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12145         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12146         (remap_gimple_stmt): Reset call clobber/use information if necessary.
12147         (copy_decl_to_var): Copy DECL_PT_UID.
12148         (copy_result_decl_to_var): Likewise.
12149         * tree.c (make_node_stat): Initialize DECL_PT_UID.
12150         (copy_node_stat): Copy it.
12151         * tree.h (DECL_PT_UID): New macro.
12152         (SET_DECL_PT_UID): Likewise.
12153         (DECL_PT_UID_SET_P): Likewise.
12154         (struct tree_decl_minimal): Add pt_uid member.
12155         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12156         (pt_solution_empty_p): Declare.
12157         (pt_solution_set): Adjust.
12158         (ipa_escaped_pt): Declare.
12159         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12160         * gimple-pretty-print.c (pp_points_to_solution): New function.
12161         (dump_gimple_call): Dump call clobber/use information.
12162         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12163         * tree-pass.h (TDF_ALIAS): New dump option.
12164         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12165         * doc/invoke.texi (-fipa-pta): Update documentation.
12167 2010-04-15  Richard Guenther  <rguenther@suse.de>
12169         * Makefile.in (OBJS-common): Add gimple-fold.o.
12170         (gimple-fold.o): New rule.
12171         * tree.h (maybe_fold_offset_to_reference,
12172         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12173         prototypes ...
12174         * gimple.h: ... here.
12175         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12176         may_propagate_address_into_dereference): Move prototypes ...
12177         * gimple.h: ... here.
12178         * tree-ssa-ccp.c (get_symbol_constant_value,
12179         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12180         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12181         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12182         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12183         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12184         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12185         gimplify_and_update_call_from_tree): Move ...
12186         * gimple-fold.c: ... here.  New file.
12187         (ccp_fold_builtin): Rename to ...
12188         (gimple_fold_builtin): ... this.
12189         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12191 2010-04-15  Richard Guenther  <rguenther@suse.de>
12193         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12194         fit_double_type, force_fit_type_double, add_double_with_sign,
12195         neg_double, mul_double_with_sign, lshift_double, rshift_double,
12196         lrotate_double, rrotate_double, div_and_round_double): Move ...
12197         * double-int.c: ... here.
12198         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12199         add_double, neg_double, mul_double_with_sign, mul_double,
12200         lshift_double, rshift_double, lrotate_double, rrotate_double,
12201         div_and_round_double): Move prototypes ...
12202         * double-int.h: ... here.
12204 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
12206         PR target/43742
12207         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
12208         matching constraints to ensure inputs match the output.
12210 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12212         PR target/43742
12213         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12214         in an input-only operand.
12216 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
12218         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12219         (double_int_not, double_int_lshift, double_int_rshift): Declare.
12220         (double_int_negative_p): Convert to static inline function.
12221         * double-int.c (double_int_lshift, double_int_lshift): New functions.
12222         (double_int_negative_p): Remove.
12223         * tree.h (lshift_double, rshift_double):
12224         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12225         * fold-const.c (fold_convert_const_int_from_real,
12226         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12227         (lshift_double): Change type of arith argument to bool.
12228         (rshift_double): Change type of arith argument to bool. Correct
12229         comment.
12230         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12232 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
12234         PR target/21803
12235         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12236         at the start and end of the then/else blocks, and omit them from the
12237         conversion.
12238         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
12239         argument; all callers changed.  Pass zero to old_insns_match_p instead.
12240         (flow_find_head_matching_sequence): New function.
12241         (old_insns_match_p): Check REG_EH_REGION notes for calls.
12242         * basic-block.h (flow_find_cross_jump,
12243         flow_find_head_matching_sequence): Declare functions.
12245 2010-04-14  Jason Merrill  <jason@redhat.com>
12247         PR c++/36625
12248         * c-common.c (attribute_takes_identifier_p): New fn.
12249         * c-common.h: Declare it.
12251 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12253         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12254         splitter condition.
12255         (*udivmod<mode>4): Ditto.
12257 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12259         * config/i386/i386.md (maxmin_int): Rename code attribute from
12260         maxminiprefix and update all users.
12261         (maxmin_float): Ditto from maxminfprefix.
12262         (logic): Ditto from logicprefix.
12263         (absneg_mnemonic): Ditto from absnegprefix.
12264         * config/i386/mmx.md: Update all users of maxminiprefix,
12265         maxminfprefix and logicprefix for rename.
12266         * config/i386/sse.md: Ditto.
12267         * config/i386/sync.md (sync_<code><mode>): Update for
12268         logicprefix rename.
12270 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12272         PR 42966
12273         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12274         warnings converted to errors.
12276 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12278         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12279         used insn_type variable.
12280         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12281         to avoid set-but-not-used warning.
12283 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12285         * df-core.c (df_ref_debug): Change format string placeholder
12286         from 0x%x to %#x.
12287         * dwarf2asm.c (dw2_asm_output_data_raw,
12288         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12289         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12290         * dwarf2out.c (output_cfi, output_cfi_directive,
12291         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12292         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12293         Ditto.
12294         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12295         * print-rtl.c (print_rtx): Ditto.
12297 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12299         PR middle-end/42694
12300         * builtins.c (expand_builtin_pow_root): New function to expand pow
12301         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12302         series of sqrt and cbrt calls under -ffast-math.
12303         (expand_builtin_pow): Call it.
12305 2010-04-14  Michael Matz  <matz@suse.de>
12307         PR tree-optimization/42963
12308         * tree-cfg.c (touched_switch_bbs): New static variable.
12309         (group_case_labels_stmt): New function broken out from ...
12310         (group_case_labels): ... here, use the above.
12311         (start_recording_case_labels): Allocate touched_switch_bbs.
12312         (end_recording_case_labels): Deallocate it, call
12313         group_case_labels_stmt.
12314         (gimple_redirect_edge_and_branch): Remember index of affected BB.
12316 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12318         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12319         from insn template.
12321 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12323         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12325 2010-04-13  Jan Hubicka  <jh@suse.cz>
12327         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12328         of optimized out static functions.
12329         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12330         cost computation.  Also sanity check for overflows.
12331         (update_caller_keys): Update cgraph_edge_badness call; properly
12332         update fibheap and sanity check that it is up to date.
12333         (add_new_edges_to_heap): Update cgraph_edge_badness.
12334         (cgraph_decide_inlining_of_small_function): Likewise;
12335         add sanity checking that badness in heap is up to date;
12336         improve dumping of reason; Update badness of calls to the
12337         offline copy of function currently inlined; dump badness
12338         of functions not inlined because of unit growth limits.
12340 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12342         PR middle-end/32628
12343         * c-common.c (pointer_int_sum): Disregard overflow that occured only
12344         because of sign-extension change when converting to sizetype here...
12345         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12347         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12348         the folding to constants.  Remove redundant final conversion.
12349         (fold_binary) <associate>: Do not associate if the re-association of
12350         constants alone overflows.
12351         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12352         to the end of the list.
12353         (multiple_of_p) <COND_EXPR>: New case.
12355 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12357         * opt-functions.awk (opt_sanitized_name): New.
12358         (opt_enum): New.
12359         * optc-gen.awk: Use it
12360         * opth-gen.awk: Use it.
12362 2010-04-13  Martin Jambor  <mjambor@suse.cz>
12364         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12365         (sra_modify_assign): Delete stmts loading dead data even if racc has no
12366         children.  Call replace_uses_with_default_def_ssa_name to handle
12367         SSA_NAES on lhs.
12369 2010-04-13  Michael Matz  <matz@suse.de>
12371         PR middle-end/43730
12372         * builtins.c (expand_builtin_interclass_mathfn): Also create
12373         a register if the predicate doesn't match.
12375 2010-04-13  Diego Novillo  <dnovillo@google.com>
12377         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12378         * c-pch.c: Include timevar.h.
12379         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12380         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12381         * ggc-common.c: Include timevar.h.
12382         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12383         * timevar.def (TV_PCH_SAVE): Define.
12384         (TV_PCH_CPP_SAVE): Define.
12385         (TV_PCH_PTR_REALLOC): Define.
12386         (TV_PCH_PTR_SORT): Define.
12387         (TV_PCH_RESTORE): Define.
12388         (TV_PCH_CPP_RESTORE): Define.
12390 2010-04-13  Michael Matz  <matz@suse.de>
12392         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12393         into MINUS_EXPRs.
12394         (can_reassociate_p): New function.
12395         (break_up_subtract_bb, reassociate_bb): Use it.
12397 2010-04-13  Richard Guenther  <rguenther@suse.de>
12399         PR bootstrap/43737
12400         * builtins.c (c_readstr): Fix assert.
12402 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
12404         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12405         when generating cltd insn.
12407         (*ashl<mode>3_1): Remove special handling for register operand 2.
12408         (*ashlsi3_1_zext): Ditto.
12409         (*ashlhi3_1): Ditto.
12410         (*ashlhi3_1_lea): Ditto.
12411         (*ashlqi3_1): Ditto.
12412         (*ashlqi3_1_lea): Ditto.
12413         (*<shiftrt_insn><mode>3_1): Ditto.
12414         (*<shiftrt_insn>si3_1_zext): Ditto.
12415         (*<shiftrt_insn>qi3_1_slp): Ditto.
12416         (*<rotate_insn><mode>3_1): Ditto.
12417         (*<rotate_insn>si3_1_zext): Ditto.
12418         (*<rotate_insn>qi3_1_slp): Ditto.
12420 2010-04-13  Richard Guenther  <rguenther@suse.de>
12422         * tree-ssa-structalias.c (callused_id): Remove.
12423         (call_stmt_vars): New.
12424         (get_call_vi): Likewise.
12425         (lookup_call_use_vi): Likewise.
12426         (lookup_call_clobber_vi): Likewise.
12427         (get_call_use_vi): Likewise.
12428         (get_call_clobber_vi): Likewise.
12429         (make_transitive_closure_constraints): Likewise.
12430         (handle_const_call): Adjust to do per-call call-used handling.
12431         (handle_pure_call): Likewise.
12432         (find_what_var_points_to): Remove general callused handling.
12433         (init_base_vars): Likewise.
12434         (init_alias_vars): Initialize call_stmt_vars.
12435         (compute_points_to_sets): Process call-used and call-clobbered
12436         vars for call statements.
12437         (delete_points_to_sets): Free call_stmt_vars.
12439 2010-04-13  Richard Guenther  <rguenther@suse.de>
12441         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12442         Only add RW dependence for dependence distance zero.
12443         Adjust maximal vectorization factor according to dependences.
12444         Move alignment handling ...
12445         (vect_find_same_alignment_drs): ... here.  New function.
12446         (vect_analyze_data_ref_dependences): Adjust.
12447         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12448         (vect_analyze_data_refs): Adjust minimal vectorization factor
12449         according to data references.
12450         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12451         dependences before determining the vectorization factor.
12452         Analyze alignment after determining the vectorization factor.
12453         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12454         dependences before alignment.
12455         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12456         Adjust prototype.
12457         (vect_analyze_data_refs): Likewise.
12458         (MAX_VECTORIZATION_FACTOR): New define.
12460 2010-04-13  Duncan Sands  <baldrick@free.fr>
12462         * except.h (lang_eh_type_covers): Remove.
12463         * except.c (lang_eh_type_covers): Likewise.
12465 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12466             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12468         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12469         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12470         UNITS_PER_LONG where it is ABI relevant.
12471         (s390_return_addr_rtx): Likewise.
12472         (s390_back_chain_rtx): Likewise.
12473         (s390_frame_area): Likewise.
12474         (s390_frame_info): Likewise.
12475         (s390_initial_elimination_offset): Likewise.
12476         (save_gprs): Likewise.
12477         (s390_emit_prologue): Likewise.
12478         (s390_emit_epilogue): Likewise.
12479         (s390_function_arg_advance): Likewise.
12480         (s390_function_arg): Likewise.
12481         (s390_va_start): Likewise.
12482         (s390_gimplify_va_arg): Likewise.
12483         (s390_function_profiler): Likewise.
12484         (s390_optimize_prologue): Likewise.
12485         (s390_rtx_costs): Likewise.
12486         (s390_secondary_reload): Likewise.
12487         (s390_promote_function_mode): Likewise.
12488         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12489         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12490         registers available.
12491         (s390_unwind_word_mode): New function.
12492         (s390_function_value): Split 64 bit values into register pair if
12493         used as return value.
12494         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12495         function call parameters.  Handle parallels.
12496         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12497         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12498         (DWARF_CIE_DATA_ALIGNMENT): New macro.
12499         (s390_expand_setmem): Remove unused variable src_addr.
12500         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12501         deal with 64 bit registers.
12502         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12503         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12504         (UNITS_PER_LONG): New macro.
12505         * libjava/include/s390-signal.h: Define extended ucontext
12506         structure containing the upper halfs of the 64 bit registers.
12508 2010-04-13  Simon Baldwin  <simonb@google.com>
12510         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12512 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12514         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12515         rvalue on the RHS if the LHS is of a non-renamable type.
12516         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12518 2010-04-13  Matthias Klose  <doko@ubuntu.com>
12520         * gcc.c (cc1_options): Handle -iplugindir before processing
12521         the cc1 spec. Only add -iplugindir once.
12522         (cpp_unique_options): Add -iplugindir option if -fplugin* options
12523         found.
12524         * common.opt (iplugindir): Remove `Separate' property, initialize.
12525         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12526         option.
12527         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12528         (distclean): Remove plugin dir.
12529         * doc/invoke.texi: Document -iplugindir.
12531 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
12533         * doc/plugins.texi (Loading Plugins): Document short
12534         -fplugin=foo option.
12535         (Plugin API): Mention default_plugin_dir_name function.
12537         * gcc.c (find_file_spec_function): Add new declaration.
12538         (static_spec_func): Use it for "find-file".
12539         (find_file_spec_function): Add new function.
12540         (cc1_options): Add -iplugindir option if -fplugin* options found.
12542         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12544         * plugin.c (add_new_plugin): Updated comment, and handle short
12545         plugin name.
12546         (default_plugin_dir_name): Added new function.
12548         * common.opt (iplugindir): New option to set the plugin directory.
12550 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
12552         * config/i386/i386.md (any_rotate): New code iterator.
12553         (rotate_insn): New code attribute.
12554         (rotate): Ditto.
12555         (SWIM124): New mode iterator.
12556         (<rotate_insn>ti3): New expander.
12557         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12558         any_rotate code iterator.
12559         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12560         using any_rotate code iterator and SWIM124 mode iterator.
12561         (ix86_rotlti3): New insn_and_split pattern.
12562         (ix86_rotrti3): Ditto.
12563         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12564         ix86_rotl{di,ti}3 patterns.
12565         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12566         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12567         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12568         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12569         code iterator and SWI mode iterator.
12570         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12571         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12572         code iterator.
12573         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12574         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12575         (bswap rotatert splitter): Add splitter.
12576         (bswap splitter): Macroize splitter using any_rotate code iterator.
12577         Add insn predicate to split only for TARGET_USE_XCHGB or when
12578         optimizing function for size.
12580 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12582         * config/pa/pa.c (emit_move_sequence): Remove use of
12583         deleted variable flag_argument_noalias.
12585 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12587         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12588         configurations.
12589         Add to unsupported targets list.
12590         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12591         sparc*-sun-solaris2.[567]* from target lists.
12592         * configure: Regenerate.
12593         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12594         removal.
12595         Remove Solaris 7 patch references.
12596         (Specific, sparc-sun-solaris2.7): Removed.
12597         (sparc-sun-solaris2*): Update Solaris 7 example.
12598         (sparc64-*-solaris2*): Likewise.
12600 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12602         * config.build (alpha*-dec-osf4*): Remove.
12603         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12604         of obsolete configurations.
12605         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12606         support.
12607         * config/alpha/t-osf4: Renamed to ...
12608         * config/alpha/t-osf5: ... this.
12609         * config/alpha/osf.h: Renamed to ...
12610         * config/alpha/osf5.h: ... this.
12611         Merged old osf5.h contents.
12612         Update comments.
12613         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12614         (EXTRA_SPECS): Removed.
12615         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12616         reflect removal of Tru64 UNIX V4.0/V5.0 support.
12617         Document that.
12619 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12621         * doc/contrib.texi (Contributors, Rainer Orth): Update.
12623 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
12625         PR/43702
12626         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12627         __thiscall convention.
12629 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12631         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12632         orig_base.
12633         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12635 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12637         * function.c (assign_parms_initialize_all): Add unused attribute
12638         to fntype.
12640 2010-04-12  Richard Guenther  <rguenther@suse.de>
12642         * gsstruct.def (GSS_CALL): New.
12643         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
12644         * gimple.h: Include tree-ssa-alias.h.
12645         (struct gimple_statement_call): New.
12646         (union gimple_statement_struct_d): Add gimple_call member.
12647         (gimple_call_reset_alias_info): Declare.
12648         (gimple_call_use_set): New function.
12649         (gimple_call_clobber_set): Likewise.
12650         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
12651         * gimple.c (gimple_call_reset_alias_info): New function.
12652         (gimple_build_call_1): Call it.
12653         * lto-streamer-in.c (input_gimple_stmt): Likewise.
12654         * tree-inline.c (remap_gimple_stmt): Likewise.
12655         (expand_call_inline): Remove callused handling.
12656         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
12657         * tree-dfa.c (dump_variable): Likewise.
12658         * tree-parloops.c (parallelize_loops): Likewise.
12659         * tree-ssa.c (init_tree_ssa): Likewise.
12660         (delete_tree_ssa): Likewise.
12661         * tree-flow-inline.h (is_call_used): Remove.
12662         * tree-flow.h (struct gimple_df): Remove callused member.
12663         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
12664         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
12665         (ref_maybe_used_by_call_p_1): Simplify.
12666         (call_may_clobber_ref_p_1): Likewise.
12667         * tree-ssa-structalias.c (compute_points_to_sets): Set
12668         the call stmt used and clobbered sets.
12669         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
12670         (find_tail_calls): Verify the tail call.
12672 2010-04-12  Richard Guenther  <rguenther@suse.de>
12674         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
12675         single-iteration always-inline inlining.
12676         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
12677         (cgraph_decide_inlining): Do not handle always-inline specially.
12678         (try_inline): Remove always-inline cycle detection special case.
12679         Do not recurse on always-inlines.
12680         (cgraph_early_inlining): Do not iterate if not optimizing.
12681         (cgraph_gate_early_inlining): remove.
12682         (pass_early_inline): Run unconditionally.
12683         (gate_cgraph_decide_inlining): New function.
12684         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
12685         not inlining or optimizing.
12686         (cgraph_decide_inlining_of_small_functions): Also consider
12687         always-inline functions.
12688         (cgraph_default_inline_p): Return true for nodes which should
12689         disregard inline limits.
12690         (estimate_function_body_sizes): Assume zero size and time for
12691         nodes which are marked as disregarding inline limits.
12692         (cgraph_decide_recursive_inlining): Do not perform recursive
12693         inlining on always-inline nodes.
12695 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
12697         PR bootstrap/43699
12698         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
12699         for exprs satisfying handled_component_p.
12701 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
12703         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
12704         non-constant aggregate elements.
12706         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
12707         is a real initialization.
12709 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
12711         PR c/36774
12712         * c-decl.c (start_function): Move forward check for nested function.
12714 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
12716         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
12717         * config/sh/sh.c: Include reload.h.
12718         (sh_legitimize_reload_address): New.
12719         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
12720         sh_legitimize_reload_address.
12722 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12724         * config/sh/sh.md (*movqi_pop): New insn pattern.
12725         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
12727 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12729         * config/i386/i386.md (any_shiftrt): New code iterator.
12730         (shiftrt_insn): New code attribute.
12731         (shiftrt): Ditto.
12732         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
12733         using any_shiftrt code iterator.
12734         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
12735         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
12736         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
12737         pattern from corresponding peephole2 patterns.
12738         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
12739         using any_shiftrt code iterator.
12740         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
12741         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
12742         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
12743         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
12744         *{ashr,lshr}<mode>3_cmp_zext.
12745         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
12747 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12749         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
12750         scratch register.
12751         (*lshr<mode>3_cconly): Ditto.
12753 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12755         * config/i386/i386.md (lshr<mode>3): Macroize expander from
12756         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12757         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12758         pattern from *lshr{di,ti}3_1 and corresponding splitters using
12759         DWI mode iterator.
12760         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12761         from corresponding peephole2 patterns.
12762         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
12763         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
12764         and *lshrdi3_1_rex64 using SWI mode iterator.
12765         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
12766         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
12767         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
12768         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
12769         and *lshrdi3_cmp_rex64 using SWI mode iterator.
12770         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
12771         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
12772         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
12773         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
12774         SWI mode iterator.
12776 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
12778         * config/i386/i386.md (ashr<mode>3): Macroize expander from
12779         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12780         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12781         pattern from *ashr{di,ti}3_1 and corresponding splitters using
12782         DWI mode iterator.
12783         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12784         from corresponding peephole2 patterns.
12785         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
12786         (ashrsi3_cvt): Rename from ashrsi3_31.
12787         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
12788         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
12789         and x86_64_shift_adj_3 using SWI48 mode iterator.
12790         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
12791         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
12792         and *ashrdi3_1_rex64 using SWI mode iterator.
12793         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
12794         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
12795         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
12796         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
12797         and *ashrdi3_cmp_rex64 using SWI mode iterator.
12798         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
12799         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
12800         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
12801         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
12802         SWI mode iterator.
12803         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
12804         * config/i386/i386.c (ix86_split_ashr): Update for renamed
12805         x86_shift<mode>_adj_3 expanders.
12807 2010-04-10  Wei Guozhi  <carrot@google.com>
12809         PR target/42601
12810         * config/arm/arm.c (arm_pic_static_addr): New function.
12811         (legitimize_pic_address): Call arm_pic_static_addr when it detects
12812         a static symbol.
12813         (arm_output_addr_const_extra): Output expression for new pattern.
12814         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
12816 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
12818         * ira-costs.c (record_reg_classes): Ignore alternatives that are
12819         not enabled.
12821         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
12822         * web.c: Include "insn-config.h" and "recog.h".
12823         (union_match_dups): New function.
12824         (web_main): Call it.
12825         (union_defs): Don't try to recognize match_dups.
12827         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
12828         if doing so would replace the entire pattern.
12830 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12832         PR target/43707
12833         PR target/43709
12834         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
12835         and splitter pattern.  Change splitter operand 1 predicate to
12836         nonmemory_operand.
12838 2010-04-09  Martin Jambor  <mjambor@suse.cz>
12840         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
12841         lattices are addresses of CONST_DECLs with the same initial value.
12842         (ipcp_print_all_lattices): Print values of CONST_DECLs.
12843         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
12845 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
12846             Bernd Schmidt  <bernds@codesourcery.com>
12848         * loop-invariant.c (replace_uses): New static function.
12849         (move_invariant_reg): Use it to ensure we can replace the uses.
12851 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12853         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
12854         function template.
12855         (picochip_override_options): Enable section anchors only above -O1.
12856         (picochip_reorg): Fixed a couple of build warnings.
12858 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12860         * configure.ac (plugin -rdynamic test): Log result.
12861         * configure: Regenerate.
12862         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12863         (RDYNAMIC_SPEC): Define.
12864         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12866 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12868         * configure.ac: Determine Sun ld version numbers.
12869         (comdat_group): Restrict GNU ld version checks to gld.
12870         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12871         (enable_comdat): Support --enable-comdat.
12872         * configure: Regenerate.
12873         * doc/install.texi (Configuration): Document --enable-comdat.
12875 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12877         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
12878         * config/sol2-gld.h: ... here.
12879         * config.gcc (sparc*-*-solaris2*): Reflect this.
12880         (i[34567]86-*-solaris2*): Use it.
12882 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
12884         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12885         setup_clocks_p.
12886         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12888 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12890         PR 42965
12891         * diagnostic.c (diagnostic_initialize): Initialize
12892         some_warnings_are_errors.
12893         (diagnostic_finish): New.
12894         (diagnostic_action_after_output): Call it before exiting.
12895         (diagnostic_report_diagnostic): Do not print message here. Set
12896         some_warnings_are_errors.
12897         * diagnostic.h (diagnostic_context): Delete
12898         issue_warnings_are_errors_message. Add some_warnings_are_errors.
12899         (diagnostic_finish): Declare.
12900         * toplev.c (toplev_main): Call it before exit.
12902 2010-04-09  Jason Merrill  <jason@redhat.com>
12904         PR c++/42623
12905         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12906         for incomplete type.
12908         PR c++/41788
12909         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12910         based on a warning flag.
12912 2010-04-09  Richard Guenther  <rguenther@suse.de>
12914         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12916 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
12918         PR bootstrap/43684
12919         * varasm.c (default_assemble_visibility): Wrap vars that are
12920         set, but unused, by targets without GAS.
12921         * config/rs6000/rs6000.c (paired_emit_vector_compare):
12922         Remove set, but unused, vars.
12923         (rs6000_legitimize_tls_address): Likewise.
12924         (altivec_expand_dst_builtin): Likewise.
12925         * config/darwin.c (machopic_classify_symbol): Likewise.
12926         (machopic_indirection_name): Likewise.
12928 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12930         * config/i386/i386.md (DWI): New mode iterator.
12931         (S): New mode attribute.
12932         (shift_operand): Ditto.
12933         (shift_immediate_operand): Ditto.
12934         (ashl_input_operand): Ditto.
12935         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
12936         using SDWIM mode iterator.
12937         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12938         pattern from *ashl{di,ti}3_1 and corresponding splitters using
12939         DWI mode iterator.
12940         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
12941         from corresponding peephole2 patterns.
12942         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
12943         and x86_64_shift_adj_1 using SWI48 mode iterator.
12944         (x86_shift<mode>_adj_2): Ditto.
12945         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
12946         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
12947         using SWI48 mode iterator.
12948         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
12949         *ashldi3_cmp_rex64 using SWI mode iterator.
12950         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
12951         *ashldi3_cconly_rex64 using SWI mode iterator.
12952         * config/i386/i386.c (ix86_split_ashl): Update for renamed
12953         x86_shift<mode>_adj_{1,2}.
12954         (ix86_split_ashr): Ditto.
12955         (ix86_split_lshr): Ditto.
12957 2010-04-09  Richard Guenther  <rguenther@suse.de>
12959         * target.h (builtin_conversion): Pass in input and output types.
12960         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
12961         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
12962         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
12963         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
12965         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
12966         Handle AVX modes.
12967         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
12969 2010-04-09  Richard Guenther  <rguenther@suse.de>
12971         PR target/43152
12972         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
12974 2010-04-09  Richard Guenther  <rguenther@suse.de>
12976         * tree-vectorizer.h (struct _stmt_vec_info): Document
12977         that vectype is the type of the LHS.
12978         (supportable_widening_operation, supportable_narrowing_operation):
12979         Get both input and output vector types as arguments.
12980         (vect_is_simple_use_1): Declare.
12981         (get_same_sized_vectype): Likewise.
12982         * tree-vect-loop.c (vect_determine_vectorization_factor):
12983         Set STMT_VINFO_VECTYPE to the vector type of the def.
12984         (vectorizable_reduction): Adjust.
12985         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
12986         Adjust.  Specify the output vector type.
12987         (vect_pattern_recog_1): Adjust.
12988         * tree-vect-stmts.c (get_same_sized_vectype): New function.
12989         (vectorizable_call): Adjust.
12990         (vectorizable_conversion): Likewise.
12991         (vectorizable_operation): Likewise.
12992         (vectorizable_type_demotion): Likewise.
12993         (vectorizable_type_promotion): Likewise.
12994         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
12995         the def.
12996         (vect_is_simple_use_1): New function.
12997         (supportable_widening_operation): Get both input and output
12998         vector types.
12999         (supportable_narrowing_operation): Likewise.
13000         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13002 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
13004         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13005         __thiscall and _thiscall as predefined macros.
13006         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13007         thiscall attribute handling.
13008         (ix86_comp_type_attributes): Likewise.
13009         (ix86_function_regparm): Likewise.
13010         (ix86_return_pops_args): Likewise.
13011         (init_cumulative_args): Likewise.
13012         (find_drap_reg): Likewise.
13013         (ix86_static_chain): Likewise.
13014         (x86_this_parameter): Likewise.
13015         (x86_output_mi_thunk): Likewise.
13016         (ix86_attribute_table): Add description for thiscall attribute.
13017         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13018         * doc/extend.texi: Add documentation for thiscall.
13020 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13022         PR c++/28584
13023         * c.opt (Wint-to-pointer-cast): Available in C++.
13024         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13026 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13028         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13029         * calls.c (expand_call): Pass the function type to aggregate_value_p.
13030         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13031         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
13032         function type instead.  Reorder and simplify checks.
13034         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13036 2010-04-08  Jing Yu  <jingyu@google.com>
13037             Zdenek Dvorak  <ook@ucw.cz>
13039         PR tree-optimization/42720
13040         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13041         loop unswitch conditions here from ...
13042         (tree_unswitch_single_loop): ... here.
13044 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13046         * tree-if-conv.c: Fix comments and simplify logic.
13048 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13050         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13051         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
13052         (main_tree_if_conversion): Update call to tree_if_conversion.
13054 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13056         PR 42485
13057         * doc/invoke.texi (-b,-V): Delete.
13058         * doc/tm.texi: Do not mention -b.
13059         * gcc.c (display_help): Delete -b and -V.
13060         (process_command): Delete -b and -V.
13061         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13063 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
13064             Wolfgang Gellerich  <gellerich@de.ibm.com>
13066         Implement target hook for loop unrolling
13067         * target.h (loop_unroll_adjust): Add a new target hook function.
13068         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13069         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13070         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13071         (s390_loop_unroll_adjust): Implement the new target hook for s390.
13072         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13073         target hook.
13074         (decide_unroll_stupid): Likewise.
13076 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13078         PR target/43643
13079         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13081 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13083         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13084         (Specific, *-*-solaris2*): Likewise.
13085         Don't prefer Sun as over GNU as.
13087 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
13089         * config/s390/s390.c (override_options): Adjust the z10 defaults
13090         for max-unroll-times, max-completely-peeled-insns
13091         and max-completely-peel-times.
13093 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13095         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13096         instructions for z10.
13097         (s390_expand_setmem): Likewise.
13098         (s390_expand_cmpmem): Likewise.
13100 2010-04-08  Richard Guenther  <rguenther@suse.de>
13102         PR tree-optimization/43679
13103         * tree-ssa-pre.c (eliminate): Only propagate copies.
13105 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13107         PR bootstrap/43681
13108         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13109         set but not used variable warning.
13111 2010-04-08  Wei Guozhi  <carrot@google.com>
13113         PR target/41653
13114         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13115         (arm_size_rtx_costs): Call the new function when optimized for size.
13117 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13119         PR debug/43670
13120         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13121         op0 is not a MEM, just return NULL instead of assertion
13122         failure.
13123         (discover_nonconstant_array_refs): Don't walk debug stmts.
13125 2010-04-08  Doug Kwan  <dougkwan@google.com>
13127         * configure.ac: Recognize gold and do not use its version number
13128         to test ld features.
13129         * configure: Regenerate.
13131 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
13133         PR middle-end/40815
13134         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13135         (negate_value): Move code to push elements to broken_up_substracts ...
13136         (eliminate_plus_minus_pair): ... here.  Push operands that have no
13137         negative pair to plus_negates.
13138         (repropagate_negates, init_reassoc, fini_reassoc): Update.
13140 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13142         * doc/install.texi (Configuration): Move description of
13143         --enable-lto, --with-libelf*, --enable-gold from Java section to
13144         general section.
13146         * doc/generic.texi (Working with declarations)
13147         (Function Properties, C and C++ Trees): Fix typos.
13148         * doc/sourcebuild.texi (Top Level): Likewise.
13150 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13152         PR c/18624
13153         * tree.h (DECL_READ_P): Define.
13154         (struct tree_decl_common): Add decl_read_flag.
13155         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13156         a set but not used warning.
13157         (merge_decls): Merge DECL_READ_P flag.
13158         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13159         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13160         * c-common.c (handle_used_attribute, handle_unused_attribute):
13161         Likewise.
13162         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13163         New prototypes.
13164         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13165         New functions.
13166         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13167         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13168         c_parser_binary_expression, c_parser_cast_expression,
13169         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13170         Call default_function_array_read_conversion instead of
13171         default_function_array_conversion where needed.
13172         (c_parser_unary_expression, c_parser_conditional_expression,
13173         c_parser_postfix_expression_after_primary, c_parser_initelt):
13174         Likewise.  Call mark_exp_read where needed.
13175         (c_parser_statement_after_labels, c_parser_asm_operands,
13176         c_parser_typeof_specifier, c_parser_sizeof_expression,
13177         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13178         where needed.
13179         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13180         New.
13181         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13182         (warn_unused_but_set_parameter): Default to warn_unused
13183         && extra_warnings.
13184         * doc/invoke.texi: Document -Wunused-but-set-variable and
13185         -Wunused-but-set-parameter.
13187         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13188         used count variable.
13189         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13190         when operandN variables aren't used in the body of the expander
13191         or splitter.
13192         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13193         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13194         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13195         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13196         FOR_EACH_IMM_USE_ON_STMT): Likewise.
13197         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13198         * tree.c (PROCESS_ARG): Likewise.
13200 2010-04-07  Simon Baldwin  <simonb@google.com>
13202         * diagnostic.h (diagnostic_override_option_index): New macro to
13203         set a diagnostic's option_index.
13204         * c-tree.h (c_cpp_error): Add warning reason argument.
13205         * opts.c (_warning_as_error_callback): New.
13206         (register_warning_as_error_callback): Store callback for
13207         warnings enabled via enable_warning_as_error.
13208         (enable_warning_as_error): Call callback, minor code tidy.
13209         * opts.h (register_warning_as_error_callback): Declare.
13210         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13211         response to -Werror=.
13212         (c_common_init_options): Register warning_as_error_callback in opts.c.
13213         * common.opt: Add -Wno-cpp option.
13214         * c-common.c (struct reason_option_codes_t): Map cpp warning
13215         reason codes to gcc option indexes.
13216         * (c_option_controlling_cpp_error): New function, lookup the gcc
13217         option index for a cpp warning reason code.
13218         * (c_cpp_error): Add warning reason argument, call
13219         c_option_controlling_cpp_error for diagnostic_override_option_index.
13220         * doc/invoke.texi: Document -Wno-cpp.
13222 2010-04-07  Richard Guenther  <rguenther@suse.de>
13224         * ipa-reference.c (mark_load): Use get_base_address.
13225         (mark_store): Likewise.
13227         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13228         inserting GIMPLE_NOPs into the IL.
13229         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13230         Explicitly strip handled components and indirect references.
13232         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13233         folding address expressions.
13234         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13235         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13236         operand_equal_p to compare decls.
13237         (ptr_deref_may_alias_decl_p): Likewise.
13238         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13239         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13240         Handle reversed comparison ops.
13241         * tree-sra.c (asm_visit_addr): Use get_base_address.
13242         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13243         * ipa-reference.c (mark_address): Use get_base_address.
13245 2010-04-07  Richard Guenther  <rguenther@suse.de>
13247         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13248         Propagate constants everywhere.
13250 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13252         PR debug/43516
13253         * tree.c (MAX_INT_CACHED_PREC): Define.
13254         (nonstandard_integer_type_cache): New array.
13255         (build_nonstandard_integer_type): Cache results for precision
13256         <= MAX_INT_CACHED_PREC.
13258 2010-04-07  Richard Guenther  <rguenther@suse.de>
13260         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13261         -fargument-noalias-global, -fargument-noalias-anything): Remove.
13262         * common.opt: Likewise.
13263         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13264         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13265         (nonoverlapping_memrefs_p): Likewise.
13266         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13267         * opts.c (common_handle_option): Handle OPT_fargument_alias,
13268         OPT_fargument_noalias, OPT_fargument_noalias_anything and
13269         OPT_fargument_noalias_global for backward compatibility.
13271 2010-04-07  Richard Guenther  <rguenther@suse.de>
13273         PR tree-optimization/43270
13274         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13275         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13276         * tree-ssa-pre.c (phi_translate_1): Adjust.
13277         (fully_constant_expression): Split out vn_reference handling to ...
13278         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13279         Fold reads from constant strings.
13280         (vn_reference_lookup): Handle fully constant references.
13281         (vn_reference_lookup_pieces): Likewise.
13282         * Makefile.in (expmed.o-warn): Add -Wno-error.
13284 2010-04-07  Martin Jambor  <mjambor@suse.cz>
13286         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13288 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
13290         PR driver/41594
13291         * gcc.c: Add -static-libstdc++ to list of recognized options.
13293 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13295         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13297 2010-04-07  Richard Guenther  <rguenther@suse.de>
13299         PR middle-end/42617
13300         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13301         bases build simple mem attributes to retain points-to information.
13303 2010-04-07  Richard Guenther  <rguenther@suse.de>
13305         PR middle-end/42617
13306         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13307         preserve points-to related information.
13309 2010-04-07  Richard Guenther  <rguenther@suse.de>
13311         PR middle-end/42617
13312         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13313         discard plain indirect references.
13314         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13315         * tree.c (tree_nop_conversion): Likewise.
13317 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
13319         PR debug/43628
13320         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13322 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
13324         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13325         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13327 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13329         * tree-if-conv.c: Fix indentation and comments.
13331 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13333         * tree-if-conv.c: Sort static functions in topological order.
13335 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13337         * tree-if-conv.c: Fix indentation and comments.
13339 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13341         PR middle-end/43519
13342         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13343         lang_hooks.types.type_for_size instead of
13344         build_nonstandard_integer_type.
13345         When converting an unsigned type to signed, double its precision.
13346         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13347         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13348         (graphite_create_new_loop_guard): When ub + 1 wraps around,
13349         use lb <= ub.
13351 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13353         PR middle-end/43519
13354         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13355         POINTER_PLUS_EXPR for pointer types.
13357 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13359         PR middle-end/43519
13360         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13361         * graphite-clast-to-gimple.c: Include langhooks.h.
13362         (max_signed_precision_type): New.
13363         (max_precision_type): Takes two types as arguments.
13364         (precision_for_value): New.
13365         (precision_for_interval): New.
13366         (gcc_type_for_interval): New.
13367         (gcc_type_for_value): New.
13368         (gcc_type_for_clast_term): New.
13369         (gcc_type_for_clast_red): New.
13370         (gcc_type_for_clast_bin): New.
13371         (gcc_type_for_clast_expr): Split up into several functions.
13372         (gcc_type_for_clast_eq): Rewritten.
13373         (compute_bounds_for_level): New.
13374         (compute_type_for_level_1): New.
13375         (compute_type_for_level): New.
13376         (gcc_type_for_cloog_iv): Removed.
13377         (gcc_type_for_iv_of_clast_loop): Rewritten.
13378         (graphite_create_new_loop): Compute the lower and upper bound types
13379         with gcc_type_for_clast_expr.
13380         (graphite_create_new_loop_guard): Same.
13381         (find_cloog_iv_in_expr): Removed.
13382         (compute_cloog_iv_types_1): Removed.
13383         (compute_cloog_iv_types): Removed.
13384         (gloog): Do not call compute_cloog_iv_types.
13385         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13386         GBB_CLOOG_IV_TYPES.
13387         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13388         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13389         (GBB_CLOOG_IV_TYPES): Removed.
13391 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13393         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13394         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13395         (detect_commutative_reduction): Same.
13397 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13399         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13400         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
13401         argument.
13402         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13403         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13404         (rewrite_commutative_reductions_out_of_ssa): Same.
13405         * passes.c (execute_function_todo): Call verify_ssa for every pass
13406         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
13407         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13408         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13409         with an extra argument.
13410         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
13411         verify_ssa only when the extra argument is true.
13412         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13413         with an extra argument.
13414         (tree_transform_and_unroll_loop): Same.
13416 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13418         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13419         for all the passes of the LNO having LOOP_CLOSED_SSA.
13420         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13421         * tree-loop-distribution.c (pass_loop_distribution): Same.
13422         * tree-pass.h (TODO_verify_loops): Removed.
13423         * tree-ssa-loop.c (pass_tree_loop_init): Same.
13424         (pass_lim): Same.
13425         (pass_tree_unswitch): Same.
13426         (pass_predcom): Same.
13427         (pass_vectorize): Same.
13428         (pass_linear_transform): Same.
13429         (pass_graphite_transforms): Same.
13430         (pass_iv_canon): Same.
13431         (pass_complete_unroll): Same.
13432         (pass_complete_unrolli): Same.
13433         (pass_parallelize_loops): Same.
13434         (pass_loop_prefetch): Same.
13435         (pass_iv_optimize): Same.
13437 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
13439         PR middle-end/32824
13440         * passes.c (init_optimization_passes): Move pass_lim before
13441         pass_copy_prop and pass_dce_loop.
13443 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13445         PR target/43667
13446         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13447         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13448         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13449         MULTI_* defines for 4 argument vpermil2p* builtins.
13451 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13453         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13454         * config/i386/i386.c (x86_maybe_negate_const_int): New.
13455         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13456         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13457         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13458         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13459         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13460         Use x86_maybe_negate_const_int to output insn mnemonic.
13461         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
13462         check from instruction predicate.  Update comments.
13463         * config/i386/sync.md (sync_add<mode>): Use
13464         x86_maybe_negate_const_int to output insn mnemonic.
13466 2010-04-06  Jan Hubicka  <jh@suse.cz>
13468         PR tree-optimization/42906
13469         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13470         IGNORE_SELF argument.  Set visited_control_parents for fully
13471         processed BBs.
13472         (find_obviously_necessary_stmts): Update call of
13473         mark_control_dependent_edges_necessary.
13474         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
13476 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13478         * config/i386/i386.md: Remove comment about 'e' and 'E'
13479         operand modifier.
13481 2010-04-06  Richard Guenther  <rguenther@suse.de>
13483         PR tree-optimization/43627
13484         * tree-vrp.c (extract_range_from_unary_expr): Widenings
13485         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13486         not varying.
13488 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13490         * BASE-VER: Change to 4.6.0.
13492         PR target/43638
13493         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13494         handling.
13496 2010-04-06  Richard Guenther  <rguenther@suse.de>
13498         PR middle-end/43661
13499         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13501 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13503         * doc/invoke.texi (Optimize Options): Document that LTO
13504         won't remove object access purely due to incompatible
13505         declarations.
13507 2010-04-04  Matthias Klose  <doko@ubuntu.com>
13509         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13510         Initialize variable.
13512 2010-04-03  Richard Guenther  <rguenther@suse.de>
13514         PR middle-end/42509
13515         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13516         require a non-NULL MEM_OFFSET.
13518 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
13520         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13521         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13522         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13523         config/alpha/predicates.md, config/arm/arm.md,
13524         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13525         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13526         config/darwin9.h, config/darwin.c, config/darwin.h,
13527         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13528         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13529         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13530         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13531         config/mips/mips.md, config/mn10300/mn10300.c,
13532         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13533         config/rs6000/aix.h, config/rs6000/dfp.md,
13534         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13535         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13536         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13537         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13538         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13539         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13540         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13541         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13542         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13543         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13544         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13545         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13546         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13547         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13548         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13549         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13550         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13551         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13552         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13553         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13554         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13555         opt-functions.awk, opth-gen.awk, params.def, passes.c,
13556         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13557         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13558         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13559         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13560         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13561         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13562         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13563         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13564         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13565         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13566         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13567         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13568         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13569         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13571 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13573         PR other/43620
13574         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13575         * aclocal.m4: Regenerate.
13577 2010-04-02  Richard Guenther  <rguenther@suse.de>
13579         PR tree-optimization/43629
13580         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13581         if we have seen a constant value.
13583 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
13585         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13587 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
13589         PR target/43469
13590         * arm.c (legitimize_tls_address): Adjust call to
13591         gen_tls_load_dot_plus_four.
13592         (arm_note_pic_base): New function.
13593         (arm_cannot_copy_insn_p): Use it.
13594         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13595         constraint.
13597 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13599         PR bootstrap/43531
13601         Revert:
13602         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13604         * Makefile.in ($(out_object_file)): Depend on
13605         gt-$(basename $(notdir $(out_file))).h.
13607 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
13609         * config.gcc (lm32-*-rtems*): Add t-lm32.
13611 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
13613         * config.gcc: Add lm32-*-rtems*.
13614         * config/lm32/rtems.h: New file.
13616 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
13618         PR target/42609
13619         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13621 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
13623         * dwarf2out.c (output_compilation_unit_header): For
13624         -gdwarf-4 use version 4 instead of version 3.
13625         (output_line_info): For version 4 and above emit additional
13626         maximum ops per insn header field.
13627         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13629         * dwarf2out.c (is_c_family, is_java): Remove.
13630         (lower_bound_default): New function.
13631         (add_bound_info, gen_descr_array_type_die): Use it.
13633 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
13635         PR debug/43325
13636         * dwarf2out.c (gen_variable_die): Allow debug info for variable
13637         re-declaration when it happens in a function.
13639 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
13641         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
13642         (cgraph_remove_function_insertion_hook): Same.
13643         (cgraph_call_function_insertion_hooks): Same.
13645 2010-04-01  Richard Guenther  <rguenther@suse.de>
13647         PR middle-end/43614
13648         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
13649         and TREE_THIS_VOLATILE.
13650         (copy_ref_info): Likewise.
13651         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
13652         * tree.c (build6_stat): Ignore side-effects of all but arg5
13653         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
13654         TARGET_MEM_REF.
13656 2010-04-01  Richard Guenther  <rguenther@suse.de>
13658         PR tree-optimization/43607
13659         * ipa-type-escape.c (check_call): Do not access non-existing
13660         arguments.
13662 2010-04-01  Richard Guenther  <rguenther@suse.de>
13664         PR middle-end/43602
13665         Revert
13666         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13667                     Jack Howarth  <howarth@bromo.med.uc.edu>
13669         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13670         variables TLS.
13672 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13674         * doc/install.texi (Prerequisites): Document libelf usability on
13675         IRIX 5/6 and Solaris 2.
13676         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
13677         Update GNU as, GNU ld requirements.
13678         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
13679         Document Sun Studio compiler download.
13680         Update and simplify as, ld recommendations.
13681         (Specific, *-*-solaris2.7): Note obsoletion, removal.
13683 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13685         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
13686         with_tune_32 to pentium4.
13688 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
13690         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
13692 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13694         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
13695         obsoletion, removal.
13696         Update IDO URL.
13697         Document GNU as requirement.
13698         Update configure requirements.
13699         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
13700         Recomment IRIX 6.5.18+.
13701         Document IDF/IDL requirement.
13702         Document GNU as requirement.
13703         Document GNU ld bootstrap failure.
13704         Remove freeware.sgi.com reference.
13706 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13708         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
13709         UNIX V4.0, V5.0 obsoletion, removal.
13710         Remove --with-gc=simple reference.
13711         Update VM requirements during bootstrap.
13712         Remove -oldas bootstrap description.
13713         Update binutils reference.
13714         Remove comparison failure note.
13716 2010-03-31  Richard Guenther  <rguenther@suse.de>
13717             Zdenek Dvorak  <ook@ucw.cz>
13718             Sebastian Pop  <sebastian.pop@amd.com>
13720         PR middle-end/43464
13721         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
13722         with multiple arguments.
13723         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
13725 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13727         * graphite-dependences.c (print_pddr): Call print_pdr with an
13728         extra argument.
13729         * graphite-poly.c (debug_pdr): Add an extra argument for the
13730         verbosity level.
13731         (print_pdr): Same.
13732         (print_pbb_domain): Same.
13733         (print_pbb): Same.
13734         (print_scop_context): Same.
13735         (print_scop): Same.
13736         (print_cloog): Same.
13737         (debug_pbb_domain): Same.
13738         (debug_pbb): Same.
13739         (print_pdrs): Same.
13740         (debug_pdrs): Same.
13741         (debug_scop_context): Same.
13742         (debug_scop): Same.
13743         (debug_cloog): Same.
13744         (print_scop_params): Same.
13745         (debug_scop_params): Same.
13746         (print_iteration_domain): Same.
13747         (print_iteration_domains): Same.
13748         (debug_iteration_domain): Same.
13749         (debug_iteration_domains): Same.
13750         (print_scattering_function): Same.
13751         (print_scattering_functions): Same.
13752         (debug_scattering_function): Same.
13753         (debug_scattering_functions): Same.
13754         * graphite-poly.h (debug_pdr): Update declaration.
13755         (print_pdr): Same.
13756         (print_pbb_domain): Same.
13757         (print_pbb): Same.
13758         (print_scop_context): Same.
13759         (print_scop): Same.
13760         (print_cloog): Same.
13761         (debug_pbb_domain): Same.
13762         (debug_pbb): Same.
13763         (print_pdrs): Same.
13764         (debug_pdrs): Same.
13765         (debug_scop_context): Same.
13766         (debug_scop): Same.
13767         (debug_cloog): Same.
13768         (print_scop_params): Same.
13769         (debug_scop_params): Same.
13770         (print_iteration_domain): Same.
13771         (print_iteration_domains): Same.
13772         (debug_iteration_domain): Same.
13773         (debug_iteration_domains): Same.
13774         (print_scattering_function): Same.
13775         (print_scattering_functions): Same.
13776         (debug_scattering_function): Same.
13777         (debug_scattering_functions): Same.
13779 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13781         * graphite-poly.c (print_scattering_function_1): New.
13782         (print_scattering_function): Call it.
13783         (print_scop_params): Remove spaces at the end of lines.
13784         (print_cloog): New.
13785         (debug_cloog): New.
13786         * graphite-poly.h (print_cloog): Declared.
13787         (debug_cloog): Declared.
13789 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13791         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
13792         in loop->header.
13793         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
13794         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
13795         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
13796         to switch between adding the IV bump in loop->latch or in loop->header.
13798 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13800         * graphite-poly.c (print_scattering_function): Pretty print following
13801         the scoplib format.
13802         (print_pdr): Same.
13803         (print_pbb_domain): Same.
13804         (dump_gbb_cases): Same.
13805         (dump_gbb_conditions): Same.
13806         (print_pdrs): Same.
13807         (print_pbb): Same.
13808         (print_scop_params): Same.
13809         (print_scop_context): Same.
13810         (print_scop): Same.
13811         (print_pbb_body): New.
13812         (lst_indent_to): New.
13813         (print_lst): Start new lines with a #.
13814         * graphite-poly.h (pbb_bb): New.
13815         (pbb_index): Use pbb_bb.
13816         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
13817         disjuncts.
13818         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
13820 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13822         * dwarf2out.c (size_of_die): For -gdwarf-4 use
13823         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
13824         and 0 instead of 1 for dw_val_class_flag.
13825         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
13826         dw_val_class_range_list, dw_val_class_loc_list,
13827         dw_val_class_lineptr and dw_val_class_macptr, use
13828         DW_FORM_flag_present for dw_val_class_flag and
13829         DW_FORM_exprloc for dw_val_class_loc.
13830         (output_die): For -gdwarf-4 print dw_val_class_loc
13831         size as uleb128 instead of 1 or 2 bytes and don't print
13832         anything for dw_val_class_flag.
13834         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
13835         instead of cselib_lookup following by tweaking locs->setting_insn.
13837         PR bootstrap/43596
13838         * cselib.c (cselib_process_insn): Clear cselib_current_insn
13839         even before returning from label, setjmp call or volatile asm
13840         handling.
13842 2010-03-31  Richard Guenther  <rguenther@suse.de>
13844         PR middle-end/43600
13845         * cgraphunit.c (cgraph_output_in_order): Do not allocate
13846         temporary data on stack.
13848 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13850         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
13851         (PUSHSECTION_ASM_OP): Remove.
13852         (POPSECTION_ASM_OP): Remove.
13853         (PUSHSECTION_FORMAT): Remove.
13854         * config/sol2.h (PUSHSECTION_FORMAT): Define.
13855         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
13856         * config/sol2.c (solaris_output_init_fini): Use it.
13858 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13860         PR 43574
13861         * opt-functions.awk (var_type_struct): Use signed char type
13862         for simple variables.
13864 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13866         * config/sol2.c: Include output.h.
13867         (solaris_assemble_visibility): New function.
13868         * config/t-sol2 (sol2.o): Add output.h dependency.
13869         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13870         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13871         Redefine.
13873 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13875         PR target/43580
13876         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13877         V2SImode or XFmode on PRE_DEC.
13879         PR debug/43557
13880         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13881         BLKmode.
13883 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13885         PR 43562
13886         * reload.h (caller_save_initialized_p): Declare.
13887         * toplev.c (backend_init_target): Don't call
13888         init_caller_save but set caller_save_initialized_p to false.
13889         * caller-save.c (caller_save_initialized_p): Define.
13890         (init_caller_save): Check caller_save_initialized_p.
13891         * ira.c (ira): Call init_caller_save if flag_caller_saves.
13893 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13895         PR target/39048
13896         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13897         and soft-fp/t-softfp to tmake_file.
13898         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13899         (LIBGCC2_TF_CEXT): Define.
13900         (TF_SIZE): Define.
13902 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
13904         PR debug/42977
13905         * cselib.c (n_useless_values): Document handling of debug locs.
13906         (n_useless_debug_values, n_debug_values): New variables.
13907         (new_elt_loc_list): Don't add to debug values, keep count.
13908         (promote_debug_loc): New.
13909         (cselib_reset_table): Zero new variables.
13910         (entry_and_rtx_equal_p): Promote debug locs.
13911         (discard_useless_locs): Increment n_useless_debug_values for
13912         debug values.
13913         (remove_useless_values): Adjust n_useless_values and n_debug_values
13914         with n_useless_debug_values.
13915         (add_mem_for_addr): Promote debug locs.
13916         (cselib_lookup_mem): Likewise.
13917         (cselib_lookup_addr): Renamed to...
13918         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
13919         (cselib_log_lookup): ... this.  Turn into...
13920         (cselib_lookup_addr): ... new wrapper.
13921         (cselib_lookup_from_insn): New.
13922         (cselib_invalidate_regno): Increment n_useless_debug_values for
13923         debug values.
13924         (cselib_invalidate_mem): Likewise.
13925         (cselib_process_insn): Take n_deleted and n_debug_values into
13926         account to guard remove_useless_value call.
13927         (cselib_finish): Zero n_useless_debug_values.
13928         * cselib.h (cselib_lookup_from_insn): Declare.
13929         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13930         (sched_analyze_2): Likewise.
13932 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
13934         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
13935         functions.
13936         (adjust_mems): Replace narrowing SUBREG of expression containing
13937         just PLUS, MINUS, MULT and ASHIFT of registers and constants
13938         with operations in the narrower mode.
13940         PR debug/43593
13941         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
13942         regs_invalidated_by_call instead all call_used_reg_set registers.
13944 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
13946         PR middle-end/43430
13947         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
13948         pointer comparisons with types_compatible_p.
13949         * tree-vect-stmts.c (vectorizable_call): Same.
13950         (vectorizable_condition): Same.
13952 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13954         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
13955         stack check if the mask would be zero.
13957 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13958             Jack Howarth  <howarth@bromo.med.uc.edu>
13960         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13961         variables TLS.
13963 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
13965         PR other/25232
13966         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
13967         and __unordtf2.
13968         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
13969         Include ___unordxf2 and ___unordtf2.
13970         * config/i386/libgcc-glibc.ver: Do not define inheritance from
13971         GCC_4.4.0 here.
13973 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
13975         * config/lm32/t-lm32: New file.
13976         * config.gcc: Use the above file when targetting lm32.
13978 2010-03-28  Duncan Sands  <baldrick@free.fr>
13980         * Makefile.in (PLUGIN_HEADERS): Add except.h.
13982 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13984         PR middle-end/43431
13985         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13986         Improve vectorization cost model diagnostic.
13988 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13990         PR middle-end/43436
13991         * tree-vect-data-refs.c (vect_analyze_data_refs): When
13992         compute_data_dependences_for_loop returns false, early exit
13993         and output an extra diagnostic for the failed data reference
13994         analysis.
13996 2010-03-29  Richard Guenther  <rguenther@suse.de>
13998         PR tree-optimization/43560
13999         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14000         (can_sm_ref_p): Treat stores to readonly locations as trapping.
14002 2010-03-29  Jie Zhang  <jie@codesourcery.com>
14004         PR 43564
14005         * toplev.c (process_options): Set optimization_default_node
14006         and optimization_current_node.
14007         * opts.c (decode_options): Don't set optimization_default_node
14008         and optimization_current_node.
14010 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
14012         * config/rtems.h: Abandon -qrtems_debug.
14014 2010-03-28  Jan Hubicka  <jh@suse.cz>
14016         PR tree-optimization/43505
14017         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14018         map should not be copied.
14020 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14022         PR middle-end/41674
14023         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14024         cdtors, set DECL_PRESERVE_P.
14025         * ipa.c (cgraph_externally_visible_p): Return true if declaration
14026         should be preseved.
14028 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
14030         PR tree-optimization/43528
14031         * stor-layout.c (place_field): Check that constant fits into
14032         unsigned HWI when skipping calculation of MS bitfield layout.
14034 2010-03-27  Jan Hubicka  <jh@suse.cz>
14036         PR middle-end/43391
14037         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14038         notice_global_symbol work.
14040 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
14042         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14043         instead of dwarf2out_decl.
14044         (struct var_loc_node): Remove section_label field.
14045         (dwarf2out_function_decl): New function.
14046         (dwarf2out_var_location): Don't set section_label field.
14047         (dwarf2out_begin_function): Don't empty decl_loc_table here.
14049 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14051         PR tree-optimization/43544
14052         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14053         First argument for builtin vectorized function hook is now a
14054         tree to be able to distinguish between machine specific and
14055         standard builtins.
14056         * targhooks.c (default_builtin_vectorized_function): Ditto.
14057         * targhooks.h (default_builtin_vectorized_function): Ditto.
14058         * target.h (struct gcc_target): Ditto.
14059         * tree-vect-stmts.c (vectorizable_function): Ditto.
14060         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14061         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14062         Ditto.
14064 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
14066         PR c/43381
14067         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14068         nested binding iff it is a FUNCTION_DECL.
14069         (store_parm_decls_newstyle): Pass nested=true to bind for
14070         FUNCTION_DECLs amongst parameters.
14072 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14074         * var-tracking.c (vt_expand_loc_callback): Don't run
14075         cselib_expand_value_rtx_cb in dummy mode if
14076         cselib_dummy_expand_value_rtx_cb returned false.
14078         * var-tracking.c (emit_note_insn_var_location): For one part
14079         notes with offset 0, don't add EXPR_LIST around the location.
14080         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14081         add_location_or_const_value_attribute): Adjust for that change.
14083         PR debug/43540
14084         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14085         into first operand and location into second.
14086         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14087         dw_cfi_oprnd_loc for DW_CFA_expression.
14088         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14089         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14090         assume first argument is regnum and second argument is location.
14092 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14094         PR target/42113
14095         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14096         of scratch register to DImode.  Split to DImode comparison operator.
14097         Use SImode subreg of scratch register in the multiplication.
14098         (*cmp_sadd_sidi): Ditto.
14099         (*cmp_ssub_si): Ditto.
14100         (*cmp_ssub_sidi): Ditto.
14102 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14104         PR target/43524
14105         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14106         Remove invalid assert and wrong comment.
14108 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14110         PR debug/43516
14111         * flags.h (final_insns_dump_p): New extern.
14112         * final.c (final_insns_dump_p): New variable.
14113         (rest_of_clean_state): Set it before -fdump-final-insns=
14114         dumping, clear afterwards.
14115         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14116         MEM_ALIAS_SET on MEMs.
14118 2010-03-26  David S. Miller  <davem@davemloft.net>
14120         * configure.ac: Fix sparc GOTDATA_OP bug check.
14121         * configure: Rebuild.
14123 2010-03-26  Alan Modra  <amodra@gmail.com>
14125         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14127 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14129         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14130         TLS_SECTION_ASM_FLAG.
14132 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
14134         PR bootstrap/43511
14135         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14136         Clear first_function_block_is_cold.
14138         PR c/43385
14139         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14140         argument if the argument is truth_value_p.
14142 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14144         * config/rs6000/constraints.md: Update copyright year for my changes.
14146         PR target/43484
14147         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14148         used in reg+reg addressing, swap registers.
14150 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14152         PR debug/43293
14153         * target.h (struct gcc_target): Add code_end hook.
14154         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14155         if not yet defined.
14156         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14157         * toplev.c (compile_file): Call targetm.asm_out.code_end
14158         hook before unwind info/debug info output.
14159         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14160         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14161         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14162         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14163         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14164         * config/i386/i386.c (ix86_file_end): Renamed to...
14165         (ix86_code_end): ... this.  Make static.  Don't call
14166         file_end_indicate_exec_stack.  Emit unwind info using
14167         final_start_function/final_end_function.
14168         (darwin_x86_file_end): Remove.
14169         (TARGET_ASM_CODE_END): Define.
14170         * config/i386/i386.h (TARGET_ASM_FILE_END,
14171         NEED_INDICATE_EXEC_STACK): Don't define.
14172         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14173         (TARGET_ASM_FILE_END): Define to darwin_file_end.
14174         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14175         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14177         PR target/43498
14178         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14179         at the beginning and final_end_function at the end.
14180         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14182 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14184         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14185         and Sun as TLS syntax.
14186         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14187         * configure: Regenerate.
14188         * config.in: Regenerate.
14189         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14190         (default_elf_asm_named_section): Use it.
14191         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14192         (i386_output_dwarf_dtprel): Likewise.
14193         (output_addr_const_extra): Likewise.
14194         (output_pic_addr_const): Lowercase @GOTTPOFF.
14195         (output_addr_const_extra): Likewise.
14196         (output_pic_addr_const): Lowercase @GOTNTPOFF.
14197         (output_addr_const_extra): Likewise.
14198         (output_pic_addr_const): Lowercase @INDNTPOFF.
14199         (output_addr_const_extra): Likewise.
14200         (output_pic_addr_const): Lowercase @NTPOFF.
14201         (output_addr_const_extra): Likewise.
14202         (output_pic_addr_const): Lowercase @TPOFF.
14203         (output_addr_const_extra): Likewise.
14204         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14205         (*tls_global_dynamic_64): Likewise.
14206         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14207         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14209         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14210         (ASM_OUTPUT_TLS_COMMON): Use it.
14211         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14213         PR target/38118
14214         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14215         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14216         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14217         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14218         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14219         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14221 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14223         * config/i386/i386.c (override_options): Don't accept
14224         -mtls-dialect=sun any longer.
14225         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14226         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14227         (*tls_local_dynamic_base_32_sun): Likewise.
14228         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14230 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14232         PR debug/43508
14233         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14234         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14236         PR debug/43479
14237         * ira.c (adjust_cleared_regs): New function.
14238         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14240         PR debug/19192
14241         PR debug/43479
14242         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14243         from gimple_block.
14244         * expr.c (expand_expr_real): Restore previous
14245         curr_insn_source_location and curr_insn_block after
14246         expand_expr_real_1 call.
14247         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14248         instead of expand_expr_real_1.
14250 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
14252         PR rtl-optimization/43413
14253         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14254         hard regs too.
14256 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
14258         PR target/43348
14259         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14260         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14262 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14264         * config/i386/i386.c (ix86_target_string): Add -mfma.
14265         Fix a typo in comment.
14267 2010-03-22  Mike Stump  <mikestump@comcast.net>
14269         PR target/23071
14270         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14271         Don't overly align based upon packed packed fields.
14273 2010-03-22  Jason Merrill  <jason@redhat.com>
14275         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14276         Use () rather than [], and move before the element type.
14278 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14280         * doc/configfiles.texi (Configuration Files): Removed
14281         fixinc/Makefile*, intl/Makefile.*.
14282         * doc/makefile.texi: Fixed markup. Abstract from version
14283         control system used.
14284         (Makefile): Removed obsolete gcc/java/parse.y example.
14285         * doc/sourcebuild.texi: Likewise.
14286         (Top Level): Added config, gnattools, libdecnumber, libgcc,
14287         libgomp, libssp.  Removed fastjar.
14288         (Miscellaneous Docs): Clarify location.
14289         Added COPYING3, COPYING3.LIB.
14290         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14292 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14294         PR target/38085
14295         * config/i386/i386.c (x86_function_profiler)
14296         [!NO_PROFILE_COUNTERS]: Fix typo.
14297         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14298         instead of callq.
14300 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
14301             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14303         * doc/sourcebuild.texi (Test Directives): Split into six
14304         subsections, with most of the current text in new subsections
14305         Directives, Selectors, and Final Actions.
14306         (Directives): Split list of test directives into multiple
14307         subsubsections.
14308         (Selectors): Describe use and syntax of selectors.
14309         (Effective-Target Keywords): Describe all existing keywords.
14310         (Add Options): Describe features for dg-add-options.
14311         (Require Support): Describe variants of dg-require-support.
14312         (Final Actions): Describe commands to use in dg-final.
14314 2010-03-22  Michael Matz  <matz@suse.de>
14316         PR middle-end/43475
14317         * recog.c (validate_replace_rtx_group): Replace also in
14318         REG_EQUAL and REG_EQUIV notes.
14320 2010-03-22  Richard Guenther  <rguenther@suse.de>
14322         PR tree-optimization/43390
14323         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14324         sure vector extracts are type correct.
14326 2010-03-22  Richard Guenther  <rguenther@suse.de>
14328         PR middle-end/40106
14329         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14330         x * sqrt (x) even when optimizing for size if the target
14331         has native support for sqrt.
14333 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
14335         * varasm.c (make_decl_rtl_for_debug): Also clear
14336         flag_mudflap for the duration of make_decl_rtl call.
14338         PR debug/43443
14339         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14340         locs from preserved VALUEs.
14342 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14344         PR middle-end/42718
14345         * pa.md (movmemsi): Set align to one if zero.
14346         (movmemdi): Likewise.
14348 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
14350         PR target/42321
14351         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14352         with their corresponding prologue pushes.
14354 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
14356         PR target/43156
14357         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14358         at the begining or end.
14359         (spu_expand_epilogue): Likewise.
14361 2010-03-20  Richard Guenther  <rguenther@suse.de>
14363         PR rtl-optimization/43438
14364         * combine.c (make_extraction): Properly zero-/sign-extend an
14365         extraction of the low part of a CONST_INT.  Also handle
14366         CONST_DOUBLE.
14368 2010-03-19  Mike Stump  <mikestump@comcast.net>
14370         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14371         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14372         (override_options): Use SUBTARGET32_DEFAULT_CPU.
14374 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14376         PR c/43211
14377         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14378         an error.
14380 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
14382         PR rtl-optimization/42258
14383         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14384         use that may match DEF.
14386         PR target/40697
14387         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14388         the cost of loading the constant rather than assuming
14389         COSTS_N_INSNS (1).
14390         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14391         outer code is AND, do the same tests as the andsi3 expander and
14392         return COSTS_N_INSNS (1) if and is cheap.
14394         * optabs.c (avoid_expensive_constant): Fix formatting.
14396 2010-03-19  Michael Matz  <matz@suse.de>
14398         PR c++/43116
14399         * attribs.c (decl_attributes): When rebuilding a function pointer
14400         type use the same qualifiers as the original pointer type.
14402 2010-03-19  Martin Jambor  <mjambor@suse.cz>
14404         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14405         and is_gimple_ip_invariant_address.
14407 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14409         Revert
14410         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14412         * config/arm/arm.c (arm_override_options): Turn off
14413         flag_dwarf2_cfi_asm for AAPCS variants.
14415 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14417         PR target/43399
14418         * config/arm/arm.c (emit_multi_reg_push): Update comments.
14419         Use PRE_MODIFY instead of PRE_DEC.
14420         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14421         (vfp_emit_fstmd): Likewise.
14423 2010-03-19  Michael Matz  <matz@suse.de>
14425         PR target/43305
14426         * builtins.c (expand_builtin_interclass_mathfn,
14427         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14428         if that fails.
14430 2010-03-19  Richard Guenther  <rguenther@suse.de>
14432         PR tree-optimization/43415
14433         * tree-ssa-pre.c (phi_translate): Split out worker to ...
14434         (phi_translate_1): ... this.
14435         (phi_translate): Move all caching here.  Cache all NARY
14436         and REFERENCE translations.
14438 2010-03-19  David S. Miller  <davem@davemloft.net>
14440         With help from Eric Botcazou.
14441         * config/sparc/sparc.c: Include dwarf2out.h.
14442         (emit_pic_helper): Delete.
14443         (pic_helper_symbol_name): Delete.
14444         (pic_helper_emitted_p): Delete.
14445         (pic_helper_needed): New.
14446         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14447         (get_pc_thunk_name): New.
14448         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
14449         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14450         Set pic_helper_needed to true.  Don't call emit_pic_helper.
14451         (sparc_expand_prologue): Update load_pic_register call.
14452         (sparc_output_mi_thunk): Likewise.
14453         (sparc_file_end): Emit a hidden comdat symbol for the PIC
14454         thunk if possible.  Output CFI information as needed.
14456 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14457             Jack Howarth  <howarth@bromo.med.uc.edu>
14459         PR target/36399
14460         * config/i386/i386.h: Fix ABI on darwin x86-32.
14462 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
14464         * tree.h: Declare make_decl_rtl_for_debug.
14465         * varasm.c (make_decl_rtl_for_debug): New.
14466         * dwarf2out.c (rtl_for_decl_location): Call it.
14467         * cfgexpand.c (expand_debug_expr): Call it.
14469 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14471         PR bootstrap/43399
14472         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14473         mem_mode.
14475         PR bootstrap/43403
14476         * var-tracking.c (vt_init_cfa_base): Do nothing if
14477         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14479 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
14481         PR debug/42873
14482         * var-tracking.c (canonicalize_vars_star): New.
14483         (dataflow_post_merge_adjust): Use it.
14485 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14487         PR debug/43058
14488         * var-tracking.c (non_suitable_const): New function.
14489         (add_uses): For DEBUG_INSNs with constants, don't record any
14490         value, instead just the constant value itself.
14491         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14492         is not VAR_LOC_UNKNOWN_P, set var to the constant.
14493         (emit_notes_in_bb): Likewise.
14494         (emit_note_insn_var_location): For onepart variables if
14495         cur_loc is a VOIDmode constant, use DECL_MODE.
14497 2010-03-18  Martin Jambor  <mjambor@suse.cz>
14499         PR middle-end/42450
14500         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14501         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14502         all non-clones.  Moved call redirection...
14503         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14504         (cgraph_materialize_all_clones): Dispose of all
14505         combined_args_to_skip bitmaps.
14506         (verify_cgraph_node): Do not check for edges pointing to wrong
14507         nodes in inline clones.
14508         * tree-inline.c (copy_bb): Call
14509         cgraph_redirect_edge_call_stmt_to_callee.
14510         * ipa.c (cgraph_remove_unreachable_nodes): Call
14511         cgraph_node_remove_callees even when there are used clones.
14513 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14515         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14517 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14519         PR target/43383
14520         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14521         for 32bit.
14523 2010-03-18  Michael Matz  <matz@suse.de>
14525         PR middle-end/43419
14526         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14527         into sqrt(x) if we need to preserve signed zeros.
14529 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
14530             Eric Botcazou  <ebotcazou@adacore.com>
14532         PR rtl-optimization/43360
14533         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14534         note if we don't know its invariant status.
14536 2010-03-18  Michael Matz  <matz@suse.de>
14538         PR tree-optimization/43402
14539         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14540         PHI chains of ssa names registered for update.
14542 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
14544         PR target/42427
14545         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14546         non-offsettable and pre_modify update addressing.
14547         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14548         and "2" alternatives "#".
14549         (*movdd_softfloat32): Make all alternatives "#";
14550         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14551         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14552         (*movdf_softfloat32): Make all alternatives "#";
14553         (movdi): Use the new DIFD mode iterator to create a common splitter
14554         for movdi, movdf and movdd patterns.
14556 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
14558         * common.opt (dumpdir): Remove redundant tab.
14560 2010-03-17  Martin Jambor  <mjambor@suse.cz>
14562         PR tree-optimization/43347
14563         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14564         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14566 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
14568         PR rtl-optimization/42216
14569         * regrename.c (create_new_chain): New function, broken out from...
14570         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
14571         appending a use to an empty chain.
14572         (build_def_use): Remove previous changes that convert OP_INOUT to
14573         OP_OUT operands; instead detect the case where an OP_INOUT operand
14574         uses a previously untracked register and create an empty chain for it.
14576 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14578         * doc/extend.texi (Function Attributes): Rewrite unfinished
14579         sentence in ms_abi documentation.
14581 2010-03-17  Alan Modra  <amodra@gmail.com>
14583         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14584         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14585         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14586         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14588 2010-03-16  Richard Henderson  <rth@redhat.com>
14590         PR middle-end/43365
14591         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14592         (lower_try_finally): Save and restore eh_seq around the expansion
14593         of the try-finally.
14595 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14597         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14598         statements before splitting block.
14600 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14602         * doc/sourcebuild.texi (Testsuites): Fix markup.
14603         Use pathnames relative to gcc/testsuite.
14604         (Test Directives): Move description of how timeout is determined.
14605         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14606         (C Tests): Correct gcc.misc-tests directory.
14607         Framework tests now live in gcc.test-framework.
14609 2010-03-16  Richard Guenther  <rguenther@suse.de>
14611         PR middle-end/43379
14612         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14613         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14615 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14616             Alexandre Oliva  <aoliva@redhat.com>
14618         PR tree-optimization/42917
14619         * lambda-code.c (remove_iv): Skip debug statements.
14620         (lambda_loopnest_to_gcc_loopnest): Likewise.
14621         (not_interesting_stmt): Debug statements are not interesting.
14623 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
14625         PR debug/43051
14626         PR debug/43092
14627         * cselib.c (cselib_preserve_constants,
14628         cfa_base_preserved_val): New static variables.
14629         (preserve_only_constants): New function.
14630         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14631         clear its REG_VALUES.  If cselib_preserve_constants, don't
14632         empty the whole hash table, but preserve there VALUEs with constants,
14633         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14634         (cselib_preserve_cfa_base_value): New function.
14635         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14636         (cselib_init): Change argument to int bitfield.  Set
14637         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14638         is in it.
14639         (cselib_finish): Clear cselib_preserve_constants and
14640         cfa_base_preserved_val.
14641         * cselib.h (enum cselib_record_what): New enum.
14642         (cselib_init): Change argument to int.
14643         (cselib_preserve_cfa_base_value): New prototype.
14644         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
14645         * dse.c (dse_step1): Likewise.
14646         * cfgcleanup.c (thread_jump): Likewise.
14647         * sched-deps.c (sched_analyze): Likewise.
14648         * gcse.c (local_cprop_pass): Likewise.
14649         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
14650         If FN is non-NULL, call the callback always and whenever it returns
14651         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
14652         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
14653         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
14654         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
14655         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
14656         * var-tracking.c: Include recog.h.
14657         (bb_stack_adjust_offset): Remove.
14658         (vt_stack_adjustments): Don't call it, instead just gather the
14659         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
14660         (adjust_stack_reference): Remove.
14661         (compute_cfa_pointer): New function.
14662         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
14663         (struct adjust_mem_data): New type.
14664         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
14665         functions.
14666         (get_address_mode): New function.
14667         (replace_expr_with_values): Use it.
14668         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
14669         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
14670         (adjust_sets): Remove.
14671         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
14672         Use get_address_mode.
14673         (get_adjusted_src): Remove.
14674         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
14675         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
14676         (add_with_sets): Don't call adjust_sets.
14677         (fp_setter, vt_init_cfa_base): New functions.
14678         (vt_initialize): Change return type to bool.  Move most of pool etc.
14679         initialization to the beginning of the function from end.  Pass
14680         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
14681         If !frame_pointer_needed, call vt_stack_adjustment before mos
14682         vector is filled, call vt_init_cfa_base if argp/framep has been
14683         eliminated to sp.  If frame_pointer_needed and argp/framep has
14684         been eliminated to hard frame pointer, set
14685         hard_frame_pointer_adjustment and call vt_init_cfa_base after
14686         encountering fp setter in the prologue.  For MO_ADJUST, call
14687         log_op_type before pusing the op into mos vector, not afterwards.
14688         Call adjust_insn before cselib_process_insn/add_with_sets,
14689         call cancel_changes (0) afterwards.
14690         (variable_tracking_main_1): Adjust for vt_initialize calling
14691         vt_stack_adjustments and returning whether it succeeded or not.
14693 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
14695         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
14696         debug statements.
14698 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
14700         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
14701         has been set.
14702         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
14703         drap_reg has not been set.
14705 2010-03-15  Michael Matz  <matz@suse.de>
14707         PR middle-end/43300
14708         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
14709         use it to expand block copies.
14710         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14711         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
14712         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
14714 2010-03-15  Richard Guenther  <rguenther@suse.de>
14716         PR tree-optimization/43367
14717         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
14718         elimination check.
14720 2010-03-15  Richard Guenther  <rguenther@suse.de>
14722         PR tree-optimization/43317
14723         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
14725 2010-03-15  Martin Jambor  <mjambor@suse.cz>
14727         PR tree-optimization/43141
14728         * tree-sra.c (create_abstract_origin): New function.
14729         (modify_function): Call create_abstract_origin.
14731 2010-03-15  Chris Demetriou  <cgd@google.com>
14733         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
14734         wasn't copied.
14736 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14738         PR middle-end/43354
14739         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
14740         call insert_out_of_ssa_copy for default definitions.
14742 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14744         * graphite-clast-to-gimple.c (my_long_long): Defined.
14745         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
14746         * graphite-sese-to-poly.c (my_long_long): Defined.
14747         (scop_ivs_can_be_represented): Use it.
14749 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14751         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
14752         graphite-max-bbs-per-function, and loop-block-tile-size.
14753         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
14754         with "maximum".
14755         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
14757 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14759         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
14760         forward declaration.
14761         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
14762         (add_upper_bounds_from_estimated_nit): New.
14763         (build_loop_iteration_domains): Use it.
14765 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14767         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
14769 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14771         PR middle-end/43306
14772         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
14773         should be an INTEGER_CST.  Also handle CASE_CONVERT.
14775 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14777         * graphite.c (graphite_initialize): To bound the number of bbs per
14778         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14779         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
14780         * doc/invoke.texi: Document it.
14782 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14784         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
14785         * graphite-sese-to-poly.h (build_poly_scop): Same.
14787 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14789         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
14790         the number of parameters in the scop.  Use as an upper bound
14791         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
14792         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
14793         * doc/invoke.texi: Document it.
14795 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
14797         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
14798         * doc/c-tree.texi: Remove.
14799         * doc/generic.texi: Merge c-tree.texi here.
14800         * doc/gccint.texi (Trees): Remove menu entry.
14801         (c-tree.texi): Remove @include.
14802         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
14803         * doc/languages.texi (Reading RTL): Ditto.
14805 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
14807         PR target/42869
14808         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
14810 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14812         PR middle-end/42431
14813         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
14814         code added to work around reload clobbering CONST insns.
14816 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
14818         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
14819         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
14820         (cselib_preserve_only_values): Remove retain argument, don't
14821         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
14822         * cselib.h (cselib_preserve_only_values): Remove retain argument.
14823         * var-tracking.c (micro_operation): Move insn field before union.
14824         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
14825         (struct variable_tracking_info_def): Remove n_mos field, change
14826         mos into a vector of micro_operations.
14827         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
14828         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
14829         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
14830         changing into a vector.
14831         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
14832         come before all other uops generated by add_stores.
14833         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
14834         argument removal.
14835         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
14836         a vector.  Run just one pass over the bbs instead of separate counting
14837         and computation phase.
14838         (vt_finalize): Free VTI (bb)->mos vector instead of array.
14840         PR debug/43329
14841         * tree-inline.c (remap_decls): Put old_var rather than origin_var
14842         into *nonlocalized_list vector.
14843         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
14844         even if origin is non-NULL.
14845         (gen_variable_die): Likewise.
14846         (process_scope_var): Don't change origin.
14847         (gen_decl_die): Likewise.
14848         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
14849         before adding new edges instead of after it, fix moving over
14850         debug stmts.
14852 2010-03-11  David S. Miller  <davem@davemloft.net>
14854         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
14855         of four.
14856         * configure: Rebuild.
14858 2010-03-11  Martin Jambor  <mjambor@suse.cz>
14860         PR tree-optimization/43257
14861         * tree.c (assign_assembler_name_if_neeeded): New function.
14862         (free_lang_data_in_cgraph): Assembler name assignment moved to the
14863         above new function.
14864         * tree.h (assign_assembler_name_if_neeeded): Declare.
14865         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14866         the function if needed.
14868 2010-03-11  Chris Demetriou  <cgd@google.com>
14870         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14871         include/stdint-gcc.h, and include/stdint.h world-readable.
14873 2010-03-11  Richard Guenther  <rguenther@suse.de>
14875         PR tree-optimization/43255
14876         * tree-vrp.c (process_assert_insertions_for): Do not insert
14877         asserts for trivial conditions.
14879 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14881         PR tree-optimization/43280
14882         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14883         generation.  Move calculation of size out of the if branch.
14884         (find_bswap): Modify compare number generation.
14886 2010-03-11  Richard Guenther  <rguenther@suse.de>
14888         PR lto/43200
14889         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14890         (input_gimple_stmt): Fixup handled component types during
14891         operand read.  Also fix up decls in ADDR_EXPRs.
14893 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
14895         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14896         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14898 2010-03-10  Jan Hubicka  <jh@suse.cz>
14900         PR c/43288
14901         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14902         * varasm.c (get_variable_section): Don't do that here...
14903         (make_decl_rtl): ... and here.
14904         (do_assemble_alias): Produce decl RTL.
14905         (assemble_alias): Likewise.
14907 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14909         PR debug/43290
14910         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14911         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14912         of fde->vdrap_reg.
14913         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14914         (based_loc_descr): Only express drap or vdrap regno based expressions
14915         using DW_OP_fbreg when not optimizing.
14916         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14917         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14918         REG_CFA_SET_VDRAP note.
14920 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
14922         PR tree-optimization/43236
14923         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14924         error in calculation of base address in reverse iteration case.
14925         (generate_builtin): Take number of latch executions if the statement
14926         is in the latch.
14928 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
14930         PR middle-end/42859
14931         * tree-eh.c: Include pointer-set.h.
14932         (lower_eh_dispatch): Filter out duplicate case labels and
14933         remove the unneeded edge when the label is unused.  Return
14934         true when some edges are removed.
14935         (execute_lower_eh_dispatch): When any lowering resulted in
14936         removing an edge, also delete unreachable blocks.
14938 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14940         PR bootstrap/43287
14941         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14942         UNSPEC_MACHOPIC_OFFSET.
14944 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
14946         PR target/43294
14947         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
14948         (m68k_delegitimize_address): New function.
14950 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
14952         PR debug/43299
14953         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
14955         PR debug/43299
14956         * var-tracking.c (adjust_sets): New function.
14957         (count_with_sets, add_with_sets): Use it.
14958         (get_adjusted_src): New inline function.
14959         (add_stores): Use it.
14961         PR debug/43304
14962         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
14963         call cselib_dummy_expand_value_rtx_cb instead of
14964         cselib_expand_value_rtx_cb.
14966         PR debug/43293
14967         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
14968         * config/i386/i386.c: Include debug.h and dwarf2out.h.
14969         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
14970         and .cfi_endproc around the pic thunks.
14971         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
14972         all queued unwind info register saves are saved before the call.
14973         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
14974         considered as sp-=4 for unwind info and the pop as sp+=4 which
14975         also clobbers dest, but doesn't actually restore it.
14977         PR debug/43290
14978         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
14979         RTX_FRAME_RELATED_P.
14981 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14983         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
14984         whitespaces in output template.
14986 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14988         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
14989         out array boundary.
14991 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14993         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
14994         builtins.exp in a separate job.
14996 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14998         * graphite-sese-to-poly.c (add_param_constraints): Use
14999         lower_bound_in_type and upper_bound_in_type.
15001 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15003         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15004         instead of unsigned_type_node.
15006 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15007             Reza Yazdani  <reza.yazdani@amd.com>
15009         PR middle-end/43065
15010         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15011         on pointer type parameters.
15013 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15015         PR middle-end/42644
15016         PR middle-end/42130
15017         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15018         handle conversions from pointer to integers.
15019         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15020         induction variable, to be able to work with code generated by CLooG.
15021         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15022         (build_poly_scop): Bail out if we cannot codegen a loop.
15024 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15026         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15027         code generation with gloog_error.
15029 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15031         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15032         Call fold_convert on all the returned values.
15033         (expand_scalar_variables_expr): Pass to
15034         expand_scalar_variables_ssa_name the type of the resulting expression.
15036 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15038         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15039         ppl_min_for_le_pointset.
15040         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15041         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15043 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15045         * graphite-dependences.c (map_into_dep_poly): Removed.
15046         (dependence_polyhedron_1): Use combine_context_id_scat.
15048 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15050         * graphite-poly.h (struct poly_scattering): Add layout documentation.
15051         (struct poly_bb): Same.
15052         (combine_context_id_scat): New.
15054 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15056         PR middle-end/42326
15057         * sese.c (name_defined_in_loop_p): Return false for default
15058         definitions.
15060 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15062         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15063         and clean up the logic.
15065 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15067         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15068         early return.
15070 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15072         * var-tracking.c (remove_cselib_value_chains): Define only for
15073         ENABLE_CHECKING.
15074         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15075         delete_slot_part, emit_notes_for_differences_1): Don't call
15076         remove_cselib_value_chains here.
15077         (set_slot_part, emit_notes_for_differences_2): Don't call
15078         add_cselib_value_chains here.
15079         (preserved_values): New vector.
15080         (preserve_value): New function.
15081         (add_uses, add_stores, vt_add_function_parameters): Use it
15082         instead of cselib_preserve_value.
15083         (changed_values_stack): New vector.
15084         (check_changed_vars_0): New function.
15085         (check_changed_vars_1, check_changed_vars_2): Use it.
15086         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15087         changed_values_stack VALUEs.
15088         (vt_emit_notes): For all preserved_values call
15089         add_cselib_value_chains.  If ENABLE_CHECKING call
15090         remove_cselib_value_chains before verifying value_chains is empty.
15091         Initialize and free changed_values_stack.
15092         (vt_initialize): Initialize preserved_values.
15093         (vt_finalize): Free preserved_values.
15095 2010-03-08  Richard Guenther  <rguenther@suse.de>
15097         PR tree-optimization/43269
15098         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15099         region detection.
15101 2010-03-08  Martin Jambor  <mjambor@suse.cz>
15103         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15104         (ipa_is_param_called): Removed.
15105         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15106         (ipa_print_node_params): Do not print the called flag.
15107         (ipa_write_node_info): Do not stream the called flag.
15108         (ipa_read_node_info): Likewise.
15110 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
15112         PR debug/43176
15113         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15114         * cselib.c (struct expand_value_data): Add dummy field.
15115         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15116         dummy to false.
15117         (cselib_dummy_expand_value_rtx_cb): New function.
15118         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15119         any rtl.
15120         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15121         * var-tracking.c: Include pointer-set.h.
15122         (variable): Change n_var_parts to char from int.  Add
15123         cur_loc_changed and in_changed_variables fields.
15124         (variable_canonicalize): Remove.
15125         (shared_var_p): New inline function.
15126         (unshare_variable): Maintain cur_loc_changed and
15127         in_changed_variables fields.  If var was in changed_variables,
15128         replace it there with new_var.  Just copy cur_loc instead of
15129         resetting it to something else.
15130         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
15131         (dataflow_set_union): Don't call variable_canonicalize.
15132         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15133         of their DEBUG_EXPR_TREE_DECLs.
15134         (canonicalize_loc_order_check): Verify that cur_loc is NULL
15135         and in_changed_variables and cur_loc_changed is false.
15136         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15137         and cur_loc_changed.  Don't update cur_loc here.
15138         (variable_merge_over_src): Don't call variable_canonicalize.
15139         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
15140         removing loc that is equal to cur_loc, clear cur_loc,
15141         set cur_loc_changed and ensure variable_was_changed is called.
15142         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
15143         compare pointers in cur_loc check, if it is equal to loc,
15144         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
15145         (variable_different_p): Remove compare_current_location argument,
15146         don't compare cur_loc.
15147         (dataflow_set_different_1): Adjust variable_different_p caller.
15148         (variable_was_changed): If dv had some var in changed_variables
15149         already, reset in_changed_variables flag for it and propagate
15150         cur_loc_changed over to the new variable.  On empty var
15151         always set cur_loc_changed.  Set in_changed_variables on whatever
15152         var is added to changed_variables.
15153         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15154         Use shared_var_p.  When removing loc that is equal to cur_loc,
15155         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
15156         end, don't set it to something else, just call variable_was_changed.
15157         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
15158         loc being removed, clear cur_loc and set cur_loc_changed.
15159         Set cur_loc_changed if all locations have been removed.
15160         (struct expand_loc_callback_data): New type.
15161         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15162         allocated.  Always create SUBREGs if simplify_subreg failed.
15163         Prefer to use cur_loc, when that fails and still in
15164         changed_variables (and seen first time) recompute it.  Set
15165         cur_loc_changed of variables which had to change cur_loc and
15166         compute elcd->cur_loc_changed if any of the subexpressions used
15167         had to change cur_loc.
15168         (vt_expand_loc): Adjust to pass arguments in
15169         expand_loc_callback_data structure.
15170         (vt_expand_loc_dummy): New function.
15171         (emitted_notes): New variable.
15172         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15173         that weren't used for any other decl in current
15174         emit_notes_for_changes call call vt_expand_loc_dummy to update
15175         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
15176         first loc_chain location if NULL before.  Always use just
15177         cur_loc instead of first loc_chain location.  When cur_loc_changed
15178         is false, when not --enable-checking=rtl just don't emit any note.
15179         When rtl checking, compute the note and assert it is the same
15180         as previous note.  Clear cur_loc_changed and in_changed_variables
15181         at the end before removing from changed_variables.
15182         (check_changed_vars_3): New function.
15183         (emit_notes_for_changes): Traverse changed_vars to call
15184         check_changed_vars_3 on each changed var.
15185         (emit_notes_for_differences_1): Clear cur_loc_changed and
15186         in_changed_variables.  Recompute cur_loc of new_var.
15187         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15188         (vt_emit_notes): Initialize and destroy emitted_notes.
15190 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
15192         PR rtl-optimization/42220
15193         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15194         Use verify_reg_tracked to determine if we should use OP_OUT rather
15195         than OP_INOUT.
15196         (build_def_use): If we see an in-out operand for a register that we
15197         know nothing about, treat is an output if possible, fail the block if
15198         not.
15200 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15202         PR debug/42897
15203         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15204         permanently.
15206 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15208         PR debug/42897
15209         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15210         uses of relevant DEFs that are dead outside the loop too.
15212 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15214         * var-tracking.c (dataflow_set_merge): Swap src and src2.
15215         Reverted:
15216         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
15217         PR debug/41371
15218         * var-tracking.c (values_to_unmark): New variable.
15219         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15220         values_to_unmark vector.  Moved body to...
15221         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
15222         instead queue it into values_to_unmark vector.
15223         (vt_find_locations): Free values_to_unmark vector.
15225 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
15227         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15228         (site.exp): Export them when plugins are enabled.
15230 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
15232         PR middle-end/42326
15233         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15234         that contain scevs.
15235         (chrec_fold_multiply): Same.
15237 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15239         PR c/43248
15240         * c-decl.c (build_compound_literal): Return early if init is
15241         an error_mark_node.
15243 2010-03-04  Martin Jambor  <mjambor@suse.cz>
15245         PR tree-optimization/43164
15246         PR tree-optimization/43191
15247         * tree-sra.c (type_consists_of_records_p): Reject records with
15248         zero-size bit-fields at the end.
15250 2010-03-04  Mike Stump  <mikestump@comcast.net>
15252         * Makefile.in (TAGS): Remove *.y.
15254 2010-03-04  Richard Guenther  <rguenther@suse.de>
15256         PR tree-optimization/40761
15257         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15258         in reverse order.
15259         (my_rev_post_order_compute): New function.
15260         (init_pre): Call it.
15262 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15264         PR middle-end/43209
15265         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15266         decrease the cost of an IV candidate when the cost is infinite.
15268 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15270         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15271         Use '3DNow!' for the extension of that name, ensure normal space
15272         after the string.
15273         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15275 2010-03-03  Jeff Law  <law@redhat.com>
15277         * PR middle-end/32693
15278         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15279         than gen_rtx_SUBREG.
15280         (extract_bit_field_1): Likewise.
15282 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
15284         * doc/sourcebuild.texi (Test directives): Document that arguments
15285         include-opts and exclude-opts are now optional for dg-skip-if,
15286         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15288 2010-03-03  Jason Merrill  <jason@redhat.com>
15290         PR c++/12909
15291         * cgraph.h (varpool_node): Add extra_name field.
15292         * varpool.c (varpool_extra_name_alias): New.
15293         (varpool_assemble_decl): Emit extra name aliases.
15294         (varpool_mark_needed_node): Look past an extra name alias.
15295         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15296         * lto-streamer-in.c (lto_input_tree): Read it.
15297         * lto-streamer-out.c (output_unreferenced_globals): Write it.
15299 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15301         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15302         (sparc*-*-solaris2*): ...this.
15304 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
15306         PR debug/43229
15307         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15308         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
15309         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15310         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15312         PR debug/43237
15313         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15314         fallthrough to default handling, just with want_address 0 instead of 2.
15315         For single element lists, add_AT_loc directly, otherwise create an
15316         artificial variable DIE and stick location list to it.
15318         PR debug/43177
15319         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15320         (VAL_EXPR_HAS_REVERSE): Define.
15321         (reverse_op): New function.
15322         (add_stores): For reversible operations add an extra MO_VAL_USE.
15324 2010-03-02  Jason Merrill  <jason@redhat.com>
15326         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15328 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
15330         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15331         (sparc64-*-linux*): Likewise.
15332         (sparc64-*-solaris2*): Include assembler files before linker ones.
15333         (sparc-*-solaris2*): Simplify and reorder to match previous case.
15334         * config/sparc/gas.h: Delete.
15335         * config/sparc/sol2-64.h: Add copyright notice.
15336         * config/sparc/sol2-gas-bi.h: Likewise.
15337         * config/sparc/sol2-gld.h: Likewise.
15338         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15339         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15340         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15341         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15342         (sparc_elf_asm_named_section): Rename into...
15343         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
15345 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
15347         * config/alpha/alpha.c (override_options): Fix -mtune error message.
15349 2010-03-02  Jeff Law  <law@redhat.com>
15351         PR middle-end/42431
15352         * reload1.c (rtx_p, substitute_stack): Declare.
15353         (substitute): Record addresses of changed rtxs.
15354         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15355         Restore the original rtx when complete.
15356         (reload): Free subsitute_stack when complete.
15358 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
15360         * doc/gccint.texi (menu): Add Testsuites as a chapter.
15361         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15362         new chapter.
15363         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15364         LTO Testing, gcov Testing, profopt Testing, compat Testing,
15365         Torture Tests): Change from subsection to section.
15367 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
15368             Steven Bosscher  <steven@gcc.gnu.org>
15370         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15371         instead of bb.
15373 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
15375         PR middle-end/42640
15376         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15377         the assignment from the new induction variable to the assignment
15378         of the value from the original loop PHI function.
15380 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
15381             Daniel Jacobowitz  <dan@codesourcery.com>
15383         * doc/sourcebuild.texi (Test directives): Clarify options to
15384         dg-skip-if.
15386 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15388         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15389         Disable cfi directives unless GCC and gas agree on using read-only
15390         .eh_frame sections for 64-bit.
15391         * configure: Regenerate.
15393 2010-03-01  Richard Guenther  <rguenther@suse.de>
15395         PR tree-optimization/43220
15396         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15397         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15399 2010-03-01  Richard Guenther  <rguenther@suse.de>
15400             Martin Jambor  <mjambor@suse.cz>
15402         PR middle-end/41250
15403         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15404         gimplified parameters.
15406 2010-03-01  Christian Bruel  <christian.bruel@st.com>
15408         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15410 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
15412         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15414 2010-03-01  Richard Guenther  <rguenther@suse.de>
15416         PR middle-end/43213
15417         * expr.c (expand_assignment): Use the alias-oracle to tell
15418         if the rhs aliases the result decl.
15420 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15422         PR pch/14940
15423         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15424         to sol_gt_pch_get_address.
15425         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15426         64-bit, SPARC and x86.
15427         (sol_gt_pch_get_address): New function.
15429 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
15431         * toplev.h (inform_n, error_n): Declare.
15432         * diagnostic.c (inform_n, error_n): New function.
15434 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
15436         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15437         has no rtl yet when processing local_decls, queue it and recheck
15438         if deferred stack allocation hasn't assigned it rtl.
15440 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15442         * config/sh/sh.c (unspec_bbr_uid): New.
15443         (gen_block_redirect): Use it instead of INSN_UID.
15444         (gen_far_branch): Likewise.
15446 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
15448         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15449         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15451 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15453         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15454         (Warning Options): -Wno-conversion-null is valid for
15455         Objective-C++ as well.
15456         * doc/tm.texi (Named Address Spaces): Likewise.
15457         * doc/plugins.texi (Plugins): Replace TABs with spaces.
15458         * doc/tree-ssa.texi (Tree SSA): Likewise.
15460 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15462         PR bootstrap/43202
15463         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15464         by default.  Don't set the default arch for
15465         i[34567]86-*-darwin*|x86_64-*-darwin*.
15467 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15469         PR bootstrap/43202
15470         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15471         default.  Set the default 32bit/64bit archs with $with_arch
15472         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15474 2010-02-27  Richard Guenther  <rguenther@suse.de>
15476         PR tree-optimization/43186
15477         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15478         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15479         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15480         unroller iterations.
15482 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15484         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15485         required and i[34567]86-*-* targets don't support 64bit ISA.
15487 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
15489         PR ada/43096
15490         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15491         the same alias set.
15493 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15495         * config.gcc: Set the default arch at least to Prescott for
15496         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15497         if SSE math is enabled.
15499 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15501         * diagnostic.c (diagnostic_initialize): Update.
15502         (diagnostic_report_diagnostic): Test inhibit_notes_p for
15503         informative notes.
15504         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15505         (diagnostic_inhibit_notes): New.
15506         * toplev.c (process_options): inhibit notes with -fcompare-debug.
15508 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15510         PR c/20631
15511         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15512         * doc/standards.texi: Likewise.
15513         * doc/extend.texi: Likewise.
15514         * doc/trouble.texi: Likewise.
15515         * doc/cppopts.texi: Likewise.
15516         * doc/install.texi: Likewise.
15517         * c.opt (std=c90,std=gnu90): New options.
15518         * c-opts.c (c_common_handle_option): Handle them.
15520 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15522         PR c/24577
15523         * c-decl.c (undeclared_variable): Use an informative note.
15525 2010-02-26  Richard Guenther  <rguenther@suse.de>
15527         PR tree-optimization/43186
15528         * gimple.h (gimple_fold): Remove.
15529         * gimple.c (gimple_fold): Remove.  Inline into single user ...
15530         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15531         Try harder for conditions.
15533 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15535         PR debug/43190
15536         * function.c (used_types_insert): Don't skip through named pointer
15537         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
15538         and it is different from the main variant's type.
15540 2010-02-26  Nick Clifton  <nickc@redhat.com>
15542         * config/rx/rx.md (sminsi3): Remove bogus alternative.
15544 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15546         * config.gcc: Support --with-fpmath=sse for x86.
15548         * config/i386/ssemath.h: New.
15550         * doc/install.texi (--with-fpmath=sse): Documented.
15552 2010-02-26  Richard Guenther  <rguenther@suse.de>
15554         PR tree-optimization/43188
15555         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15556         vector types of over-aligned element type.
15558 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
15560         PR target/43175
15561         * config/i386/i386.c (expand_vec_perm_blend): Use correct
15562         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
15564 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
15566         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15568 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15570         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15571         * var-tracking.c: Include diagnostic.h.
15572         (debug_dv): New function.
15573         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15575         PR debug/43160
15576         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15577         (add_value_chain, add_value_chains, remove_value_chain,
15578         remove_value_chains): Handle DEBUG_EXPRs.
15579         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15581         PR debug/43161
15582         * regcprop.c (struct queued_debug_insn_change): New type.
15583         (struct value_data_entry): Add debug_insn_changes field.
15584         (struct value_data): Add n_debug_insn_changes field.
15585         (debug_insn_changes_pool): New variable.
15586         (free_debug_insn_changes, apply_debug_insn_changes,
15587         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15588         (kill_value_one_regno): Call free_debug_insn_changes if needed.
15589         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15590         fields.
15591         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15592         changes for them.
15593         (copyprop_hardreg_forward_1): Don't call apply_change_group for
15594         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
15595         changes, call cprop_find_used_regs via note_stores.
15596         (copyprop_hardreg_forward): When copying vd from predecessor
15597         which has any queued DEBUG_INSN changes, make sure the pointers are
15598         cleared.  At the end call df_analyze and then if there are any
15599         DEBUG_INSN changes queued at the end of some basic block for still
15600         live registers, apply them.
15601         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15603 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
15605         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15606         (arm*-*-*): Ditto.
15608 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
15610         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15611         targets.  Set the default with_cpu/with_arch from arch/cpu.
15612         Allow x86-64 and native for with_cpu/with_arch.
15614 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
15616         * ebitmap.c: Change calls to verify_popcount with calls to
15617         sbitmap_verify_popcount.
15618         (ebitmap_clear_bit): Fixed map->cacheindex test and
15619         map>cache update when bit clearing results in an empty
15620         element.
15622 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
15624         PR target/43154
15625         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15626         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15627         and support both V2DF and V2DI modes.
15628         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15629         support both V2DF and V2DI modes.
15630         (general): Delete trailing whitespace from a few patterns.
15632         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15633         V2DF/V2DI interleave high/low builtins.
15635         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15636         new VSX builtins.
15638         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
15639         interleave high/low functions.
15641 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15643         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
15644         #pragma extern_prefix.
15646 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
15648         PR debug/43166
15649         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
15650         BLKmode, assert op0 is a MEM and just adjust its mode.
15652         PR debug/43165
15653         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
15654         if bitpos isn't multiple of mode's bitsize.
15656 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15658         * c.opt (-ftemplate-depth=): New.
15659         (-ftemplate-depth-): Deprecate.
15660         * optc-gen.awk: Handle -ftemplate-depth=.
15661         * opth-gen.awk: Likewise.
15662         * c-opts.c (c_common_handle_option): Likewise.
15663         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
15665 2010-02-24  Jason Merrill  <jason@redhat.com>
15667         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
15669 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15671         * cfg.c (alloc_aux_for_block): Remove inline.
15672         (alloc_aux_for_edge): Likewise.
15674 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15676         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
15678 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15680         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
15681         * config/i386/sol2-gas.h: New file.
15682         * config.gcc (i[34567]86-*-solaris2*): Use it.
15684 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15686         PR c/43128
15687         * c-typeck.c (ep_convert_and_check): New.
15688         (build_conditional_expr): Use it.
15689         (build_binary_op): Likewise.
15691 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
15693         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
15695         PR debug/43150
15696         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
15697         bounds even for -O+.
15698         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
15699         expr needs to have DECL_NAME set.
15701 2010-02-24  Nick Clifton  <nickc@redhat.com>
15703         * config/mep/mep.c: Include gimple.h.
15704         (mep_function_uses_sp): Delete unused function.
15705         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
15706         parameters.  Use unsigned integers to count args.  Return a
15707         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
15709 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15711         PR target/43107
15712         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
15713         greater or equal to nelt instead of 2 * nelt.
15714         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
15715         with nelt - 1.
15717 2010-02-23  Jason Merrill  <jason@redhat.com>
15719         PR debug/42800
15720         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
15721         in cfun->local_decls even if they have register types.
15723         PR c++/42837
15724         * stor-layout.c (place_field): Don't warn about unnecessary
15725         DECL_PACKED if the type is packed.
15727 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15729         PR target/43139
15730         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
15731         GOTOFF relocs, even when the base reg isn't pic pointer.
15733 2010-02-23  Michael Matz  <matz@suse.de>
15735         PR debug/43077
15736         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
15737         (expand_gimple_basic_block): Generate and use debug temps if there
15738         are debug uses left after the last real use of TERed ssa names.
15739         Unlink debug immediate uses when they are expanded.
15741 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15743         PR 43123
15744         * config/i386/i386.c (override_options): Reorganise to provide
15745         better error messages.
15747 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15749         PR middle-end/43083
15750         * graphite-scop-detection.c (create_single_exit_edge): Move
15751         the call to find_single_exit_edge to....
15752         (create_sese_edges): ...here.  Don't handle multiple edges
15753         exiting the function.
15754         (build_graphite_scops): Don't handle multiple edges
15755         exiting the function.
15757 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15759         PR middle-end/43097
15760         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
15761         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
15763 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15765         PR middle-end/43026
15766         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
15768 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15770         PR c++/43126
15771         * c-typeck.c (convert_arguments): Print declaration location.
15772         * c-common.c (validate_nargs): Rename as
15773         builtin_function_validate_nargs.
15774         (check_builtin_function_arguments): Update.
15776 2010-02-22  Richard Guenther  <rguenther@suse.de>
15778         PR lto/43045
15779         * tree-inline.c (declare_return_variable): Use the type of
15780         the call stmt lhs if available.
15782 2010-02-22  Duncan Sands  <baldrick@free.fr>
15784         * passes.c (register_pass): Always consider all pass lists when
15785         ref_pass_instance_number is zero.
15787 2010-02-22  Richard Guenther  <rguenther@suse.de>
15789         PR tree-optimization/42749
15790         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
15791         parameter.  Do arithmetic in the original type.
15792         (update_accumulator_with_ops): Likewise.
15793         (adjust_accumulator_values): Adjust.
15795 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15797         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
15798         (QI to BLKmode splitter): New splitter.
15800 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
15802         * config/i386/i386.c (initial_ix86_tune_features): Turn on
15803         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
15805 2010-02-22  Richard Guenther  <rguenther@suse.de>
15807         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
15809 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
15811         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
15812         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
15813         ($(T)crti.o, $(T)crtn.o): Remove rules.
15815 2010-02-21  Tobias Burnus  <burnus@net-b.de>
15817         PR fortran/35259
15818         * doc/invoke.texi (-fassociative-math): Document that this
15819         option is automatically enabled for Fortran.
15821 2010-02-20  David S. Miller  <davem@davemloft.net>
15823         * configure.ac: Test if linker and assembler properly support
15824         GOTDATA_OP relocations.
15825         * configure: Rebuild.
15826         * config.in: Likewise.
15827         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
15828         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
15829         (movsi_high_pic): Likewise.
15830         (movdi_lo_sum_pic): Likewise.
15831         (movdi_high_pic): Likewise.
15832         (movsi_pic_gotdata_op): New pattern.
15833         (movdi_pic_gotdata_op): Likewise.
15834         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
15835         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
15837 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
15839         PR target/43067
15840         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
15841         attribute to ssemul.
15842         (xop_mulv2div2di3_high): Ditto.
15844 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15846         PR c++/35669
15847         * c.opt (Wconversion-null): New option.
15848         * doc/invoke.texi (Wconversion-null): Document.
15850 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15852         * common.opt (Wlarger-than-): Add Undocumented.
15854 2010-02-19  Mike Stump  <mikestump@comcast.net>
15856         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15858 2010-02-19  Jason Merrill  <jason@redhat.com>
15860         PR target/40332
15861         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15862         * configure: Likewise.
15864 2010-02-20  Alan Modra  <amodra@gmail.com>
15866         PR middle-end/42344
15867         * cgraph.h (cgraph_make_decl_local): Declare.
15868         * cgraph.c (cgraph_make_decl_local): New function.
15869         (cgraph_make_node_local): Use it.
15870         * cgraphunit.c (cgraph_function_versioning): Likewise.
15871         * ipa.c (function_and_variable_visibility): Likewise.
15873 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15875         PR bootstrap/43121
15876         * except.c (sjlj_emit_function_enter): Don't call
15877         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15878         directly.
15879         * rtl.h (add_reg_br_prob_note): Remove prototype.
15881 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15883         PR 41779
15884         * c-common.c (conversion_warning): Remove widening conversions
15885         before checking the conversion of integers to reals.
15887 2010-02-19  Mike Stump  <mikestump@comcast.net>
15889         PR middle-end/43125
15890         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15892         PR objc/43061
15893         * cgraphunit.c (process_function_and_variable_attributes): Check
15894         DECL_PRESERVE_P instead of looking up attribute "used".
15895         * ipa-pure-const.c (check_decl): Likewise.
15896         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15897         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15898         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15899         instead of attribute "used".
15900         * config/sol2-c.c (solaris_pragma_init): Likewise.
15901         (solaris_pragma_fini): Likewise.
15903 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15905         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15906         Use XCNEW instead of xcalloc.
15907         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15908         XNEW instead of xmalloc.
15909         (get_fields): Use XNEWVEC instead of xmalloc.
15911         PR debug/43084
15912         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15913         populate vars array.
15914         (create_new_general_access): For debug stmts just reset value.
15915         (get_stmt_accesses): For accesses within debug stmts just record them
15916         using add_access_to_acc_sites instead of preventing the peeling or
15917         counting them as accesses.
15919         PR middle-end/42233
15920         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15922 2010-02-19  Richard Guenther  <rguenther@suse.de>
15924         PR tree-optimization/42916
15925         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15926         instructions.
15928 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
15930         * configure.ac: Replace all uses of changequote in macro arguments
15931         with proper quoting.
15933 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15935         PR middle-end/42233
15936         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
15938 2010-02-19  Richard Guenther  <rguenther@suse.de>
15940         PR tree-optimization/42944
15941         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
15942         test for aliasing with errno.
15944 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15946         PR middle-end/42233
15947         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
15948         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
15949         * dojump.c: Include output.h.
15950         (inv): New inline function.
15951         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
15952         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
15953         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
15954         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
15955         argument, pass it down to other calls.
15956         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
15957         add REG_BR_PROB note to the conditional jump.
15958         * cfgexpand.c (add_reg_br_prob_note): Removed.
15959         (expand_gimple_cond): Don't call it, add the probability
15960         as last argument to jumpif_1/jumpifnot_1.
15961         * Makefile.in (dojump.o): Depend on output.h.
15962         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
15963         callers.
15964         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
15965         * stmt.c (do_jump_if_equal): Likewise.
15966         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
15967         * loop-unswitch.c (compare_and_jump_seq): Likewise.
15968         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
15969         Likewise.
15970         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
15971         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
15972         jumpifnot_1 callers.
15973         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
15974         callers.
15975         (store_expr): Adjust jumpifnot caller.
15976         (store_constructor): Adjust jumpif caller.
15978         PR middle-end/42233
15979         * gimplify.c (gimple_boolify): For __builtin_expect call
15980         gimple_boolify also on its first argument.
15982 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
15984         * configure.ac (gnu-unique-object): Wrap regexps using [] in
15985         changequote block.
15986         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
15987         * configure: Regenerated.
15989 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15991         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
15992         lang_hooks.types_compatible_p instead of comptypes.
15994 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15996         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
15997         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
15998         if __prefer_thumb__ is defined.
16000 2010-02-18  Martin Jambor  <mjambor@suse.cz>
16002         PR tree-optimization/43066
16003         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16004         array with zero-sized element type.
16006 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
16008         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16009         rtx, allocate struct var_loc_node here and return it to the
16010         caller, and only if it is actually needed.
16011         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16012         move it earlier and return immediately if it returns NULL.
16014 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
16016         * config/sparc/gas.h: New file.  Restore
16017         TARGET_ASM_NAMED_SECTION to its ELF default.
16018         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16019         check !HAVE_GNU_AS.
16020         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16021         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
16022         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16023         after sparc/sysv4.h.
16025 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
16027         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16029 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
16031         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16032         patterns from predicated pattern.
16034 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
16036         PR target/43103
16037         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16038         for insn mnemonic suffix.
16040 2010-02-17  Richard Guenther  <rguenther@suse.de>
16042         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16043         to loop PHI nodes.
16045 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
16047         PR debug/42918
16048         * caller-save.c (save_call_clobbered_regs): If BB ends with
16049         a DEBUG_INSN, move any notes in between last real insn and the last
16050         DEBUG_INSN after the last DEBUG_INSN.
16052 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16054         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16055         Fix return type.  Fix argument type.  Explain meaning of return value.
16057 2010-02-16  Richard Guenther  <rguenther@suse.de>
16059         PR tree-optimization/41043
16060         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
16061         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16062         statements ...
16063         (vrp_visit_phi_node): ... but only for loop PHI nodes.
16065 2010-02-16  Ira Rosen  <irar@il.ibm.com>
16067         PR tree-optimization/43074
16068         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16069         * tree-vect-loop.c (vect_analyze_loop_operations): Add
16070         vectorizable cycles in hybrid SLP check.
16071         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16073 2010-02-16  Richard Guenther  <rguenther@suse.de>
16075         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16076         (true_dependence): If memrefs_conflict_p computes must-alias
16077         trust it.  Move TBAA check after offset-based disambiguation.
16078         (canon_true_dependence): Likewise.
16080 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
16082         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16083         * doc/invoke.texi: Document it.
16084         * var-tracking.c: Include toplev.h and params.h.
16085         (vt_find_locations): Return bool indicating success.  Compute
16086         hash sizes unconditionally.  Check new parameter, report.
16087         (variable_tracking_main_1): Check vt_find_locations results and
16088         retry.  Renamed from...
16089         (variable_tracking_main): ... this.  New wrapper to preserve
16090         flag_var_tracking_assignments.
16091         * Makefile.in (var-tracking.o): Adjust dependencies.
16093 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
16094             Jakub Jelinek  <jakub@redhat.com>
16096         PR target/42854
16097         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16098         if weak_import attribute is present.
16099         * config/darwin.c (machopic_select_section): Likewise.
16101 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
16103         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16104         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16105         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16106         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16108         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16109         types.
16111         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16112         Fix argument types.
16114         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16115         Rewrite text to refer to the names.
16117 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
16119         * config/i386/i386-builtin-types.def
16120         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16121         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16122         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16123         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16124         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16125         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16126         IX86_BUILTIN_VPERMIL2PS256.
16127         (MULTI_ARG_4_DF2_DI_I): Defined.
16128         (MULTI_ARG_4_DF2_DI_I1): Defined.
16129         (MULTI_ARG_4_SF2_SI_I): Defined.
16130         (MULTI_ARG_4_SF2_SI_I1): Defined.
16131         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16132         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16133         __builtin_ia32_vpermil2ps256.
16134         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16135         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16136         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
16137         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16138         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16139         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
16140         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16141         CODE_FOR_xop_vpermil2v8sf3.
16142         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16143         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16144         * config/i386/xopintrin.h (_mm_permute2_pd): New.
16145         (_mm256_permute2_pd): New.
16146         (_mm_permute2_ps): New.
16147         (_mm256_permute2_ps): New.
16149 2010-02-15  Nick Clifton  <nickc@redhat.com>
16151         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16152         boolean parameters.  Use emit_jump_insn when emitting a pop
16153         instruction containing a return insn.
16154         (push): Use 'true' rather than '1' as second parameter to F.
16155         (h8300_expand_prologue): Likewise.
16156         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16157         (h8300_expand_epilogue): Likewise.
16159 2010-02-15  Richard Guenther  <rguenther@suse.de>
16161         PR middle-end/43068
16162         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16163         if that is zero.
16165 2010-02-15  Nick Clifton  <nickc@redhat.com>
16167         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16168         delta.
16170 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
16172         * intl.c (fake_ngettext): New function.
16173         * intl.h (fake_ngettext): Declare.
16174         (ngettext): Define macro.
16175         * collect2.c (notice_translated): New function.
16176         (main): Use notice_translated and ngettext.
16177         * collect2.h (notice_translated): Declare.
16179 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
16181         * reorg.c (delete_computation): Comment fixes.
16182         * caller-save.c (setup_save_areas): Idem.
16183         * sel-sched-dump.c (dump_lv_set): Idem.
16184         * rtl.def: Idem.
16186 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16188         * config/s390/s390.c (s390_sched_init): New function.
16189         (TARGET_SCHED_INIT): Target hook defined.
16191 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
16192             Jack Howarth  <howarth@bromo.med.uc.edu>
16193             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
16195         PR target/42982
16196         Partial revert of unintended change in fix for PR41605.
16197         * config/darwin.h: Fix typo.
16198         * config/darwin9.h: Same.
16200 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16202         * c-pch.c (pch_init): Clear v.
16204 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16206         PR middle-end/42930
16207         * graphite-scop-detection.c (graphite_can_represent_scev): Call
16208         graphite_can_represent_init for MULT_EXPR.
16210 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16212         PR middle-end/42914
16213         PR middle-end/42530
16214         * graphite-sese-to-poly.c (remove_phi): New.
16215         (translate_scalar_reduction_to_array): Call remove_phi.
16217 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16219         PR middle-end/42771
16220         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16221         * graphite-clast-to-gimple.h (gloog): Update declaration.
16222         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16223         * graphite-poly.h (struct poly_bb): Add missing comments.
16224         (struct scop): Add poly_scop_p field.
16225         (POLY_SCOP_P): New.
16226         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16227         * graphite.c (graphite_transform_loops): Build the polyhedral
16228         representation for each scop before code generation.
16229         * sese.c (rename_variables_in_operand): Removed.
16230         (rename_variables_in_expr): Return the renamed expression.
16231         (rename_sese_parameters): New.
16232         * sese.h (rename_sese_parameters): Declared.
16234 2010-02-11  Richard Guenther  <rguenther@suse.de>
16236         PR tree-optimization/42998
16237         * tree-ssa-pre.c (create_expression_by_pieces): Treat
16238         POINTER_PLUS_EXPR properly.
16240 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16241             Changpeng Fang  <changpeng.fang@amd.com>
16243         PR middle-end/40886
16244         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16245         the cost of an IV candidate when the IV is used in a test against zero.
16247         * gcc.dg/tree-ssa/ivopts-3.c: New.
16249 2010-02-11  Richard Guenther  <rguenther@suse.de>
16251         PR lto/41664
16252         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16253         pointer-vs-decl case by swapping refs.  Handle some cases
16254         of pointer-vs-decl disambiguations more conservatively.
16255         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16256         to false after expanding.
16258 2010-02-11  Richard Guenther  <rguenther@suse.de>
16260         PR driver/43021
16261         * gcc.c (process_command): Handle LTO file@offset case more
16262         appropriately.
16264 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16266         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16267         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
16268         of DEBUG_INSNs.
16269         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16271         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16272         if MEM's mode size isn't DWARF2_ADDR_SIZE.
16273         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16274         Optimize eq/ne comparisons when both arguments are known to be
16275         zero-extended.
16276         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16277         Don't mask operands unnecessarily if they are known to be already
16278         zero-extended.
16280 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
16282         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16283         instead of loop.
16285 2010-02-10  Richard Guenther  <rguenther@suse.de>
16287         PR tree-optimization/43017
16288         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16289         for wrapping signed arithmetic.
16291 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16293         PR debug/43010
16294         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16295         if no debug info should be emitted for it.
16297 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16299         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16300         note when flag_exceptions is set.
16302 2010-02-10  Duncan Sands  <baldrick@free.fr>
16304         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16306 2010-02-10  Richard Guenther  <rguenther@suse.de>
16308         PR c/43007
16309         * tree.c (get_unwidened): Handle constants.
16310         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16312 2010-02-10  Martin Jambor  <mjambor@suse.cz>
16314         PR lto/42985
16315         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16316         check for variable argument counts independently.
16318 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16320         PR target/42841
16321         * config/sh/sh.c (find_barrier): Increase length for non delayed
16322         conditional branches.
16324 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16326         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16328 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16330         * builtins.c (set_builtin_user_assembler_name): Also handle
16331         ffs if int is smaller than word.
16333 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
16335         PR middle-end/42973
16336         * ira-conflicts.c (get_dup): Remove.
16337         (process_reg_shuffles): Add new parameter.  Use it as an
16338         additional guard for copy generation.
16339         (add_insn_allocno_copies): Rewrite.
16341 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
16343         * common.opt (fsched2-use-traces): Preserved for backward
16344         compatibility.
16345         * doc/invoke.texi: Remove the documentation about option
16346         -fsched2-use-traces.
16347         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16348         flag_sched2_use_traces.
16349         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16350         the backward compatibility flag section.
16352 2010-02-09  Richard Guenther  <rguenther@suse.de>
16354         PR tree-optimization/43008
16355         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16356         make HEAP variables initialized from global memory if they
16357         are not known builtin functions.
16358         (find_func_aliases): Adjust.
16360 2010-02-09  Richard Guenther  <rguenther@suse.de>
16362         PR tree-optimization/43000
16363         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16364         arithmetic manually.
16366 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
16368         PR tree-optimization/42931
16369         * tree-loop-linear.c (try_interchange_loops): Don't call
16370         double_int_mul if estimated_loop_iterations failed.
16372 2010-02-08  Martin Jambor  <mjambor@suse.cz>
16374         PR middle-end/42898
16375         * tree-sra.c (build_accesses_from_assign): Do not mark in
16376         should_scalarize_away_bitmap if stmt has volatile ops.
16377         (sra_modify_assign): Do not process assigns piecemeal if if stmt
16378         has volatile ops.
16380 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
16382         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16384 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
16386         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16387         before the pattern.
16389 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
16391         PR middle-end/42946
16392         * df-core.c (df_finish_pass): Change type of saved_flags to int.
16394 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16396         PR middle-end/42988
16397         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16398         to unknown_dependence.
16399         (graphite_legal_transform_dr): Handle the unknown_dependence.
16400         (graphite_carried_dependence_level_k): Same.
16402 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16404         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16406 2010-02-07  Richard Guenther  <rguenther@suse.de>
16408         PR middle-end/42991
16409         * expr.c (get_inner_reference): Always initialize *pbitsize.
16411 2010-02-07  Richard Guenther  <rguenther@suse.de>
16413         PR middle-end/42956
16414         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16415         new ARRAY_REFs on variable size element or minimal index arrays.
16416         Complete.
16417         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16418         gimple_fold_indirect_ref.
16420 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
16422         PR target/42957
16423         * arm.c (arm_override_options): Just return if the user has specified
16424         an invalid fpu name.
16426 2010-02-03  Jason Merrill  <jason@redhat.com>
16428         PR c++/42870
16429         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16430         i386_pe_maybe_record_exported_symbol.
16432 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
16434         PR target/42924
16435         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16436         (pa_delegitimize_address): New function.
16438 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
16440         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16441         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16443 2010-02-05  Richard Guenther  <rguenther@suse.de>
16445         PR lto/42762
16446         * lto-streamer-in.c (get_resolution): Deal with references
16447         to undefined functions.
16449 2010-02-05  Richard Guenther  <rguenther@suse.de>
16451         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16452         (fold_const_aggregate_ref): Likewise.
16453         (ccp_fold_stmt): Substitute loads.
16454         (maybe_fold_reference): Verify types before substituting.
16455         Unshare properly.
16456         (fold_gimple_assign): Unshare properly.
16457         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16459 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
16461         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16462         for rs6000_gen_cell_microcode.
16464 2010-02-04  Richard Guenther  <rguenther@suse.de>
16466         PR rtl-optimization/42952
16467         * dse.c (const_or_frame_p): Remove MEM handling.
16469 2010-02-04  Nick Clifton  <nickc@redhat.com>
16471         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16472         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16473         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16474         (mn10300_asm_output_mi_thunk): New function.
16475         (mn10300_can_output_mu_thunk): New function.
16476         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16477         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
16478         (FUNCTION_ARG): Delete incorrect comment.
16480 2010-02-03  Jason Merrill  <jason@redhat.com>
16482         PR c++/40138
16483         * fold-const.c (operand_equal_p): Handle erroneous types.
16485 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16487         * config/h8300/h8300.md (can_delay): Fix attibute condition.
16489 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16491         PR rtl-optimization/42941
16492         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16493         of xmalloc.
16495 2010-02-03  Jason Merrill  <jason@redhat.com>
16497         PR c++/35652
16498         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16500 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
16502         PR debug/42896
16503         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
16504         (cselib_reset_table): Renamed from...
16505         (cselib_reset_table_with_next_value): ... this.
16506         (cselib_get_next_uid): Renamed from...
16507         (cselib_get_next_unknown_value): ... this.
16508         * cselib.c (next_uid): Renamed from...
16509         (next_unknown_value): ... this.
16510         (cselib_clear_table): Adjust.
16511         (cselib_reset_table): Adjust.  Renamed from...
16512         (cselib_reset_table_with_next_value): ... this.
16513         (cselib_get_next_uid): Adjust.  Renamed from...
16514         (cselib_get_next_unknown_value): ... this.
16515         (get_value_hash): Use hash.
16516         (cselib_hash_rtx): Likewise.
16517         (new_cselib_val): Adjust.  Set and dump uid.
16518         (cselib_lookup_mem): Pass next_uid as hash.
16519         (cselib_subst_to_values): Likewise.
16520         (cselib_log_lookup): Dump uid.
16521         (cselib_lookup): Pass next_uid as hash.  Adjust.
16522         (cselib_process_insn): Adjust.
16523         (cselib_init): Initialize next_uid.
16524         (cselib_finish): Adjust.
16525         (dump_cselib_table): Likewise.
16526         * dse.c (canon_address): Dump value uid.
16527         * print-rtl.c (print_rtx): Print value uid.
16528         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16529         (dvuid): New type.
16530         (dv_uid): New function, sort of renamed from...
16531         (dv_htab_hash): ... this, reimplemented in terms of it and...
16532         (dv_uid2hash): ... this.  New.
16533         (variable_htab_eq): Drop excess assertions.
16534         (tie_break_pointers): Removed.
16535         (canon_value_cmp): Compare uids.
16536         (variable_post_merge_New_vals): Print uids.
16537         (vt_add_function_parameters): Adjust.
16538         (vt_initialize): Reset table.  Adjust.
16540 2010-02-03  Richard Guenther  <rguenther@suse.de>
16542         PR tree-optimization/42944
16543         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16544         (call_may_clobber_ref_p_1): Likewise.  Properly handle
16545         malloc and calloc clobbering errno.
16547 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
16549         * doc/invoke.texi: Fix name of sched1 dump.
16551         * opts.c (decode_options): Set flag_tree_switch_conversion
16552         only conditionally on optimize >= 2.
16554         * gcse.c: Assorted comment fixes in pass description.
16556 2010-02-03  Anthony Green  <green@moxielogic.com>
16558         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16559         nop padding in order to maintain alignment of storage location of
16560         target function address.
16561         (moxie_trampoline_init): Store target function address at newly
16562         aligned location.
16563         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16564         to 32.
16565         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16567 2010-02-03  Richard Guenther  <rguenther@suse.de>
16569         PR middle-end/42927
16570         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16572 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16574         * config.gcc: Reenable check for obsolete targets.
16575         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16576         mips-sgi-irix6.[0-4]*.
16578 2010-02-02  Nick Clifton  <nickc@redhat.com>
16580         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16581         constant size of 4 as being the same as 0.
16582         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16583         can take values in the range 0..4.
16585 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
16587         PR java/41991
16588         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16589         as _darwin10_Unwind_FindEnclosingFunction().
16590         * libgcc-libsystem.ver: New.
16592 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
16594         PR target/41399
16595         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16596         implicitly set registers.
16598 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
16600         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16601         (arm_override_options): Allow automatic selection of the thread
16602         pointer register if thumb2.
16603         (legitimize_pic_address): Improve code sequences for Thumb2.
16604         (arm_call_tls_get_addr): Likewise.
16605         (legitimize_tls_address): Likewise.
16606         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
16607         (pic_load_addr_32bit): ... this.  New named pattern.
16608         * thumb2.md (pic_load_addr_thumb2): Delete.
16609         (pic_load_dot_plus_four): Delete.
16610         (tls_load_dot_plus_four): New named pattern.
16612 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16614         PR libgomp/29986
16615         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16616         Document fix for TLS bug.
16618 2010-01-31  Richard Guenther  <rguenther@suse.de>
16620         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16621         conservatively correct.
16623 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16625         PR target/42850
16626         Revert:
16627         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16629         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16631 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16633         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16635 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
16637         * config.gcc: Adjust order of makefile fragments for mingw targets.
16639 2010-01-31  Richard Guenther  <rguenther@suse.de>
16641         PR middle-end/42898
16642         * gimplify.c (gimplify_init_constructor): For volatile LHS
16643         initialize a temporary.
16645 2010-01-31  Matthias Klose  <doko@ubuntu.com>
16647         * configure.ac: Fix __stack_chk_fail check for cross builds configured
16648         --with-headers
16649         * configure: Regenerate.
16651 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
16653         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16654         the same alias set and their sizes different constantness.
16655         (aliasing_component_refs_p): Revert 2009-10-24 change.
16657 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16659         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
16660         unused.
16662 2010-01-29  Richard Guenther  <rguenther@suse.de>
16664         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
16665         Assert we successfully updated the call.
16667 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
16669         PR rtl-optimization/42889
16670         * df.h (df_set_bb_dirty_nonlr): New prototype.
16671         * df-core.c (df_set_bb_dirty_nonlr): New function.
16672         * df-scan.c (df_insn_rescan): Call it instead of
16673         df_set_bb_dirty for DEBUG_INSNs.
16675 2010-01-29  Richard Guenther  <rguenther@suse.de>
16677         PR middle-end/37448
16678         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
16679         quadratic behavior in most cases.
16681 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
16683         PR target/42891
16684         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
16685         in the call to gen_x86_movsicc_0_m1.
16687 2010-01-28  Richard Guenther  <rguenther@suse.de>
16689         PR tree-optimization/42871
16690         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
16692 2010-01-28  Richard Guenther  <rguenther@suse.de>
16694         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
16695         into call arguments.
16697 2010-01-28  Richard Guenther  <rguenther@suse.de>
16699         PR middle-end/42883
16700         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
16701         the forwarder if the destination is an EH landing pad.
16703 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
16705         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
16706         block list passed to gimple_duplicate_sese_tail.
16707         (parallelize_loops): Avoid parallelization when the function
16708         has_nonlocal_label.
16709         Avoid parallelization when the preheader is IRREDUCIBLE.
16710         Try to optimize when estimated_loop_iterations_int is unresolved.
16711         Add the loop's location to the dump file.
16712         * tree-cfg.c (add_phi_args_after_redirect): Remove.
16713         (gimple_duplicate_sese_tail): Remove the check for the latch.
16714         Redirect nexits to the exit block.
16715         Remove handling of the incoming edges to the latch.
16716         Redirect the backedge from the copied latch to the exit bb.
16718 2010-01-28  Michael Matz  <matz@suse.de>
16720         PR target/42881
16721         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
16722         Wrap force_reg into a sequence, emit it before user.
16724 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
16726         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
16727         (arm_rev): New.
16728         (arm_legacy_rev): Likewise.
16729         (thumb_legacy_rev): Likewise.
16731 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16733         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
16734         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
16735         on MEM's address failed, try avoid_constant_pool_reference and
16736         recurse if it returned something different.
16737         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
16738         address, try avoid_constant_pool_reference and recurse if it
16739         returned something different.
16740         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
16741         address and avoid_constant_pool_reference returned something
16742         different, don't set have_address.
16744 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
16746         PR debug/42861
16747         * var-tracking.c (val_store): Add modified argument, obey it.
16748         Adjust callers.
16749         (count_uses): Move down logging of main.
16750         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
16751         don't need resolution.
16752         (emit_notes_in_bb): Likewise.
16754 2010-01-27  Richard Guenther  <rguenther@suse.de>
16756         PR middle-end/42878
16757         * tree-inline.c (remap_decl): Delay remapping of SSA name
16758         default definitions until we need them.
16760 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16762         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16763         (rs6000_delegitimize_address): New function.
16765         * config/s390/s390.c (s390_delegitimize_address): Call
16766         delegitimize_mem_from_attrs.
16768         PR middle-end/42874
16769         * tree-inline.c (cannot_copy_type_1): Removed.
16770         (copy_forbidden): Don't forbid copying of functions containing
16771         records/unions with variable length fields.
16773 2010-01-27  Christian Bruel  <christian.bruel@st.com>
16775         Revert:
16776         PR target/42841
16777         * config/sh/sh.c (find_barrier): Increase length for non delayed
16778         conditional branches.
16780 2010-01-27  Matthias Klose  <doko@ubuntu.com>
16782         * configure.ac (gnu-unique-object): Fix ldd version check.
16783         * configure: Regenerate.
16785 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16787         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
16788         HAVE_GNU_AS value.
16789         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
16790         Test for HAVE_GNU_AS value.
16792 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16794         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
16795         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
16796         INT64_TYPE): Define.
16797         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
16798         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16799         INT_LEAST64_TYPE): Define.
16800         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
16801         UINT_LEAST64_TYPE): Define.
16802         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
16803         INT_FAST64_TYPE): Define.
16804         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16805         UINT_FAST64_TYPE): Define.
16806         (INTMAX_TYPE, UINTMAX_TYPE): Define.
16807         (INTPTR_TYPE, UINTPTR_TYPE): Define.
16808         (SIG_ATOMIC_TYPE): Define.
16810 2010-01-26  Richard Guenther  <rguenther@suse.de>
16812         * df-scan.c (df_scan_set_bb_info): Remove assert.
16813         (df_insn_rescan_debug_internal): Merge asserts.
16814         (df_install_ref): Likewise.
16815         (df_mark_reg): Use bitmap_set_range.
16816         (df_hard_reg_used_p): Remove assert.
16817         (df_hard_reg_used_count): Likewise.
16819 2010-01-26  Richard Guenther  <rguenther@suse.de>
16821         PR rtl-optimization/42685
16822         * web.c (web_main): Ignore DEBUG_INSNs.
16824 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
16826         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
16828         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
16829         Fix types of fndecl and arglist parameters.
16831 2010-01-26  Richard Guenther  <rguenther@suse.de>
16833         PR middle-end/42806
16834         * tree-eh.c (unsplit_eh): Skip debug insns.
16836 2010-01-26  Richard Guenther  <rguenther@suse.de>
16838         PR tree-optimization/42250
16839         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
16841 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
16843         PR fortran/42866
16844         * omp-low.c (expand_omp_sections): Only use single_pred if
16845         l2_bb is single_pred_p.
16847 2010-01-25  Christian Bruel  <christian.bruel@st.com>
16849         PR target/42841
16850         * config/sh/sh.c (find_barrier): Increase length for non delayed
16851         conditional branches.
16852         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
16854 2010-01-24  David S. Miller  <davem@davemloft.net>
16856         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16857         define if not using GAS.
16858         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16859         Likewise.  Delete SECTION_MERGE code, which is only applicable
16860         when using GAS.
16862 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
16864         PR c++/42748
16865         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16866         mangling of va_list in system headers.
16868 2010-01-23  Toon Moene  <toon@moene.org>
16870         * tree-predcom.c (combine_chains): Return NULL, not false.
16872 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
16874         * tree-loop-distribution.c (distribute_loop): Fix declaration and
16875         initialization of variable res to agree with return type.
16877 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
16879         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16880         * tree-sra.c: Add include of expr.h.
16882 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
16884         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16885         insert the debug stmt on the single non-EH edge from the stmt.
16887 2010-01-22  Richard Henderson  <rth@redhat.com>
16889         PR tree-opt/42833
16890         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16891         the RHS until after generate_subtree_copies has insertted its
16892         code before the current statement.
16894 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
16896         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16898         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16900 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16902         PR tree-optimization/42585
16903         * tree-sra.c (struct access): New field grp_total_scalarization.
16904         (dump_access): Dump the new field.
16905         (should_scalarize_away_bitmap): New variable.
16906         (cannot_scalarize_away_bitmap): Likewise.
16907         (sra_initialize): Allocate new bitmaps.
16908         (sra_deinitialize): Free new bitmaps.
16909         (create_access_1): New function.
16910         (create_access): Parts moved to create_access_1.
16911         (type_consists_of_records_p): New function.
16912         (completely_scalarize_record): Likewise.
16913         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16914         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16915         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16916         access.
16917         (analyze_all_variable_accesses): Completely scalarize small eligible
16918         records.
16920 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16922         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16924 2010-01-21  Andrew Haley  <aph@redhat.com>
16926         * gcc.c (process_command): Move lang_specific_driver before
16927         setting cc_libexec_prefix.
16929 2010-01-21  Richard Guenther  <rguenther@suse.de>
16931         PR middle-end/19988
16932         * fold-const.c (negate_expr_p): Pretend only negative
16933         real constants are easily negatable.
16935 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
16936             Jason Merrill  <jason@redhat.com>
16938         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
16939         (TYPE_TRANSPARENT_AGGR): this, for union and record.
16940         * calls.c (initialize argument_information): Handle it.
16941         * c-common.c (handle_transparent_union_attribute): Use new name.
16942         * c-decl.c (finish_struct): Ditto.
16943         * c-typeck.c (type_lists_compatible_p): Ditto.
16944         (convert_for_assignment): Use new name and also handle record.
16945         * function.c (aggregate_value_p): Handle it.
16946         (pass_by_reference): Ditto.
16947         (assign_parm_data_types): Ditto.
16948         * print-tree.c (print_node): Ditto.
16949         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
16950         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
16951         * tree.c (first_field): New fn.
16953 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
16955         PR target/42818
16956         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
16957         even when linking statically, for now.
16959 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16961         PR debug/42715
16962         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
16963         without a cselib val.
16964         (count_uses): Accept MO_VAL_SET with no val on stores.
16965         (add_stores): Likewise.
16967 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16969         * var-tracking.c (check_value_val): Add a compile time assertion.
16970         (dv_is_decl_p): Simplify.
16971         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
16972         gcc_assert if ENABLE_CHECKING.
16974 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16976         PR debug/42782
16977         * var-tracking.c: Include tree-flow.h.
16978         (mem_dies_at_call): New.
16979         (dataflow_set_preserve_mem_locs): Use it.
16980         (dataflow_set_remove_mem_locs): Likewise.
16981         (dump_var): Renamed from dump_variable.  Adjust all callers.
16982         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
16983         * Makefile.in (var-tracking.o): Adjust deps.
16985 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
16987         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
16989 2010-01-20  Richard Guenther  <rguenther@suse.de>
16991         PR tree-optimization/42717
16992         * tree-ssa-dce.c (get_live_post_dom): Remove.
16993         (forward_edge_to_pdom): Take an arbitrary edge to copy
16994         degenerate PHI args from.
16995         (remove_dead_stmt): Use the first post-dominator even if it
16996         does not contain live statements as redirection destination.
16998 2010-01-20  Richard Guenther  <rguenther@suse.de>
17000         * tree-inline.c (estimate_num_insns): Handle EH builtins.
17002 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17004         * sel-sched.c (create_speculation_check): Remove set but not used
17005         variable twin.
17006         (try_transformation_cache): Remove set but not used variable ds.
17007         (calculate_privileged_insns): Remove set but not used variables
17008         cur_insn and min_spec_insn.
17009         (find_best_expr): Remove set but not used variable avail_n.
17010         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17011         variable e.
17012         * cgraphunit.c (assemble_thunk): Remove set but not used variable
17013         false_label.
17014         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17015         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17016         new_scop_exit_edge.
17018 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
17020         PR bootstrap/42786
17021         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17022         cpu types.  Add support for *-sse3 cpu types.
17023         (x86_64-*-*): Ditto.
17025 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17027         PR middle-end/42803
17028         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17029         argument, call initializer_constant_valid_p_1 instead of
17030         initializer_constant_valid_p, pass CACHE to it, return NULL
17031         immediately if first call returns NULL.
17032         (initializer_constant_valid_p_1): New function.
17033         (initializer_constant_valid_p): Use it.
17035 2010-01-20  Thomas Quinot  <quinot@adacore.com>
17037         * tree.def (PLACEHOLDER_EXPR): Fix comment.
17039 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17041         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17042         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17043         (loc_list_from_tree): Don't handle unsigned division.  Handle
17044         signed modulo using DW_OP_{over,over,div,mul,minus}.
17045         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17046         modulo instead of signed.
17048 2010-01-20  DJ Delorie  <dj@redhat.com>
17050         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17051         (Fpa): Pass it
17052         (h8300_emit_stack_adjustment): Propogate it.
17053         (push): Pass it.
17054         (h8300_expand_prologue): Likewise.
17055         (h8300_expand_epilogue): Likewise.
17057 2010-01-19  Michael Matz  <matz@suse.de>
17059         PR tree-optimization/41783
17060         * tree-data-ref.c (toplevel): Include flags.h.
17061         (dump_data_dependence_relation):  Also dump the inputs if the
17062         result will be unknown.
17063         (split_constant_offset_1): Look through some conversions.
17064         * tree-predcom.c (determine_roots_comp): Restart a new chain if
17065         the offset from last element is too large.
17066         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17067         (reassociate_to_the_same_stmt): Handle vector registers.
17068         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17069         (e.g. conversions).
17070         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17071         wide_prolog_niters argument, emit widening instructions.
17072         (vect_do_peeling_for_alignment): Adjust caller, use widened
17073         variant of the iteration cound.
17074         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17076 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17078         PR target/38697
17079         * config/arm/neon-testgen.m (emit_automatics): New parameter
17080         features. Adjust for Fixed_return_reg feature.
17081         (test_intrinsic): Call emit_automatics with new feature.
17082         * config/arm/neon.ml: Update copyright years.
17083         (features): New Fixed_return_reg feature.
17084         (ops): Update feature for Vget_low.
17086 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
17088         PR tree-optimization/42719
17089         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17090         stmt uses.
17092         PR debug/42728
17093         * fwprop.c (all_uses_available_at): Return false if def_set dest
17094         is a REG that is used in def_insn.
17096 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
17098         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17100         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17101         Add argument names.
17103         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17105         * target.h (struct gcc_target) <secondary_reload>: Change type
17106         of last argument to secondary_reload_info *.
17108 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
17110         PR target/42774
17111         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17112         memory references with unaligned offsets.  Remove CQImode handling.
17113         (unaligned_memory_operand): Return 1 for memory references with
17114         unaligned offsets.  Remove CQImode handling.
17116 2010-01-18  Richard Guenther  <rguenther@suse.de>
17118         PR middle-end/39954
17119         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17120         builtin calls.
17122 2010-01-18  Richard Guenther  <rguenther@suse.de>
17124         PR tree-optimization/42781
17125         * tree-ssa-structalias.c (find_what_var_points_to): Skip
17126         restrict processing only if the original variable was artificial.
17128 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
17130         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17131         find number of popped argument bytes.
17133         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17134         Fix the text that describes the return value for invalid insns.
17136         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
17138         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17139         Clarify what 'cost of the -dependence' is.  Fix quoting.
17141         * toplev.c (default_get_pch_validity): Rename argument to "sz".
17142         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17144 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
17146         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17147         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17149 2010-01-17  Richard Guenther  <rguenther@suse.de>
17151         PR middle-end/42248
17152         * function.c (split_complex_args): Take a VEC to modify.
17153         (assign_parms_augmented_arg_list): Build a VEC instead of
17154         a chain of PARM_DECLs.
17155         (assign_parms_unsplit_complex): Take a VEC of arguments.
17156         Do not fixup unmodified parms.
17157         (assign_parms): Deal with the VEC.
17158         (gimplify_parameters): Likewise.
17160 2010-01-17  Richard Guenther  <rguenther@suse.de>
17162         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17163         node existence check.
17164         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17165         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17166         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17167         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17168         (gimple_execute_on_growing_pred): Likewise.
17170 2010-01-17  Richard Guenther  <rguenther@suse.de>
17172         PR tree-optimization/42773
17173         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17174         (compute_antic_aux): Likewise.
17175         (compute_partial_antic_aux): Likewise.
17177 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
17179         PR debug/42767
17180         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17181         and US_TRUNCATE.
17183 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
17185         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17186         appearance.
17188         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17189         Fix markup for strict argument.
17191         (TARGET_SCHED_REORDER2): Fix argument types.
17193         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17194         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17196         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17197         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17199         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17200         Add argument name.
17202         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17203         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17204         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17205         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17206         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17208         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17210         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17212         (TARGET_ASM_RELOC_RW_MASK): Add return type.
17213         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17215         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17217         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17218         Use prototype.
17220         (TARGET_ASM_NAMED_SECTION): Fix argument list.
17222         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17223         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17225         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17227         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17229         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17230         referring to it.  Fix language.
17232         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17234         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17236         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17238         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17240         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17241         '@var{stream}.  Remove stray 'and'.
17243         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17245         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17247         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17249         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17250         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17252         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17253         Fix description of return value.
17254         Rename argument "sz" to "len."
17256         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17257         Clarify meaning of 'true' return value.
17259         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17261         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17262         rep_mode versus mode_rep.
17264         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17266         (TARGET_BUILTIN_DECL): Fix name.
17268         (TARGET_COMMUTATIVE_P): Fix type of first argument.
17270         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17272         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17274         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17276         (TARGET_RELAXED_ORDERING): Use @deftypevr.
17278         (TARGET_GET_DRAP_RTX): Note that this is a hook.
17279         Clarify language.
17281         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17282         Rename argument tm_fn to md_fn.
17284         (TARGET_OPTION_PRINT): Fix argument list.
17286 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
17288         PR target/42664
17289         * config/i386/i386.c (ix86_fixup_binary_operands):
17290         Revert FMA4 fixup of operands.
17292 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17294         PR gcc/42525
17295         * Makefile.in (write_entries_to_file, install-plugin):
17296         Use \012 instead of \n with tr.
17298 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
17300         * configure.ac (HAVE_AS_REF): New C macro.
17301         * configure: Regenerate.
17302         * config.in: Likewise.
17303         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17304         if HAVE_AS_REF.
17305         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17306         if HAVE_AS_REF.
17308 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
17310         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17312         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17314         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17316         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17318         (TARGET_IN_SMALL_DATA_P): Fix argument type.
17320         (TARGET_BINDS_LOCAL_P): Fix argument type.
17322         (TARGET_ASM_FILE_END): Use prototype.
17324         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17326         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17328         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17330         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17332         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17333         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17335         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17336         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17338         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17339         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17340         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17341         (TARGET_ADDR_SPACE_CONVERT): Likewise.
17343         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17345         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17347         (TARGET_INIT_BUILTINS): Use prototype.
17349         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17350         Put 'const char *' in braces.  Fix parameter types.
17351         (TARGET_INVALID_CONVERSION): Fix parameter types.
17352         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17353         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17355         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17356         Fix argument type.
17358         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17360         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17362 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
17364         * doc/tm.texi (TARGET_HELP): Fix return type.
17366         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17367         in braces.  Fix argument types.
17369         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17371         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17373         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17375         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17376         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17378         (TARGET_MANGLE_TYPE): Fix argument types.
17380         (TARGET_IRA_COVER_CLASSES): Use prototype.
17382         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
17384         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17386         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17388         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17390         (TARGET_CALLEE_COPIES): Fix argument types.
17392         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17394         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17396         (TARGET_FUNCTION_VALUE): Fix argument types.
17398         (TARGET_RETURN_IN_MSB): Fix argument type.
17400         (TARGET_RETURN_IN_MEMORY): Fix argument types.
17402         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17404         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17406         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17407         agree with return type.
17409         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17411 2010-01-15  Jing Yu  <jingyu@google.com>
17413         PR rtl-optimization/42691
17414         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17415         a pseudo to a constant and are merged, and adjust comments.
17417 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17419         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17421 2010-01-15  Richard Guenther  <rguenther@suse.de>
17423         PR middle-end/42739
17424         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17425         labels of computed or non-local gotos to the destination.
17426         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17427         landing pad label is the first label.
17429 2010-01-15  Richard Guenther  <rguenther@suse.de>
17431         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17433 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17435         PR target/42747
17436         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17437         to allow generation of the xssqrtdp instruction on power7.
17438         (sqrtdf2_fpr): Ditto.
17440 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17442         PR middle-end/42674
17443         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17444         functions with noreturn attribute.
17446         PR c++/42608
17447         * varasm.c (declare_weak): Add weak attribute to decl if it
17448         doesn't have one already.
17449         (assemble_external): Only add decls to weak_decls if they also
17450         have weak attribute.
17452 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
17454         * var-tracking.c (var_reg_delete): Don't delete the association
17455         between REGs and values or one-part variables if the register
17456         isn't clobbered.
17458 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17460         PR debug/42657
17461         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17462         because its first operand is a non-localized variable.
17464 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17466         PR tree-optimization/42706
17467         * tree-sra.c (encountered_recursive_call): New variable.
17468         (encountered_unchangable_recursive_call): Likewise.
17469         (sra_initialize): Initialize both new variables.
17470         (callsite_has_enough_arguments_p): New function.
17471         (scan_function): Call decl and flags check only for IPA-SRA, check
17472         whether there is a recursive call and whether it has enough arguments.
17473         (all_callers_have_enough_arguments_p): New function.
17474         (convert_callers): Look for recursive calls only when
17475         encountered_recursive_call is set.
17476         (ipa_early_sra): Bail out either if
17477         !all_callers_have_enough_arguments_p or
17478         encountered_unchangable_recursive_call.
17480 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17482         * sel-sched.c: Add 2010 to copyright years.
17483         * sel-sched-ir.c: Likewise.
17484         * sel-sched-ir.h: Likewise.
17486 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17488         PR tree-optimization/42714
17489         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17490         constructors specially.
17492 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17494         * config/i386/drivers-i386.c (detect_caches_intel):
17495         Add l2sizekb parameter and fill in.
17496         (host_detect_local_cpu): Add l2sizekb, fill in.
17497         Add Atom small cache heuristic.
17499 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17501         * config/i386/drivers-i386.c (detect_caches_cpuid4):
17502         Add level3 parameter and fill in.
17503         (detect_caches_intel): Handle level3 cache.
17505 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17507         * config/i386/drivers-i386.c (host_detect_local_cpu):
17508         Fix core duo detection.
17510 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17512         * config/i386/drivers-i386.c (host_detect_local_cpu):
17513         Fix Atom detection.
17515 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17517         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17518         (rs6000_variable_issue_1): this.  Use...
17519         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
17521 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17523         * sel-sched-ir.c (sel_restore_other_notes): Rename to
17524         sel_restore_notes.  Update all callers.  Call reemit_notes
17525         for all insns.
17527 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17529         PR rtl-optimization/42246
17530         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17531         loops.
17533 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17535         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17536         all successors is the same as number of successors in current region.
17538 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17540         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17541         to rename is not separable.  Otherwise check that its LHS is not NULL.
17543 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17545         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
17547 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17549         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17550         available registers when failed to discover LHS register class.
17551         Fix indentation.  Update comment.
17553 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17554             Alexander Monakov  <amonakov@ispras.ru>
17556         PR rtl-optimization/42389
17557         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17558         to can_issue_more.
17559         (advance_state_on_fence): Likewise.
17560         (sel_target_adjust_priority): Print debug output only when
17561         sched_verbose >= 4, not 2.
17562         (get_expr_cost): Do not issue all unique insns on the next cycle.
17563         (fill_insns): Initialize can_issue_more from the value saved
17564         with the fence.
17565         * sel-sched-ir.c (flist_add): New parameter issue_more.
17566         Init FENCE_ISSUE_MORE with it.
17567         (merge_fences): Likewise.
17568         (init_fences): Update call to flist_add.
17569         (add_to_fences, add_clean_fence_to_fences)
17570         (add_dirty_fence_to_fences): Likewise.
17571         (move_fence_to_fences): Update call to merge_fences.
17572         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17573         sched groups.
17574         * sel-sched-ir.h (struct _fence): New field issue_more.
17575         (FENCE_ISSUE_MORE): New accessor macro.
17577 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17579         PR rtl-optimization/42388
17580         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17581         that have no predecessors nor successors.  Do not call move_bb_info
17582         for empty blocks outside of current region.
17584 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17586         PR rtl-optimization/42294
17587         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17588         * sel-sched.c (move_exprs_to_boundary): Transitively add all
17589         originators' originators.
17591 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17593         PR rtl-optimization/39453
17594         PR rtl-optimization/42246
17595         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17596         for pipelining_p.
17597         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17599 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17600             Alexander Monakov  <amonakov@ispras.ru>
17602         PR middle-end/42245
17603         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
17604         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
17605         argument.  Update all callers.
17606         (tidy_control_flow): ... and here.  Recompute topological order
17607         of basic blocks in region if necessary.
17608         (sel_redirect_edge_and_branch): Change return type.  Return true
17609         if topological order might have been invalidated.
17610         (purge_empty_blocks): Export and move from...
17611         * sel-sched.c (purge_empty_blocks): ... here.
17612         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17613         (maybe_tidy_empty_bb): Delete prototype.
17614         (purge_empty_blocks): Declare.
17616 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17618         PR rtl-optimization/42249
17619         * sel-sched.c (try_replace_dest_reg): When chosen register
17620         and original register is the same, do not bail out early, but
17621         still check all original insns for validity of replacing destination
17622         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17623         in this case.
17625 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17627         PR c/42721
17628         Port from no-undefined-overflow branch:
17629         2009-03-09  Richard Guenther  <rguenther@suse.de>
17631         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17633 2010-01-14  Richard Guenther  <rguenther@suse.de>
17635         PR lto/42665
17636         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17638 2010-01-14  Ira Rosen  <irar@il.ibm.com>
17640         PR tree-optimization/42709
17641         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
17642         as scalar type in creation of constant vector operand.
17644 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17646         PR testsuite/42414
17647         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
17648         (check-parallel-%): Match `testsuite' directory component only
17649         at the end.
17651 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
17653         PR translation/39521
17654         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
17655         strings with _().
17657 2010-01-13  Richard Guenther  <rguenther@suse.de>
17659         PR tree-optimization/42730
17660         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
17661         offset zero.
17663 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
17665         PR target/pr42542
17666         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
17667         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
17668         them signed.
17670 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
17672         * config/bfin/libgcc-bfin.ver: Regenerate based on current
17673         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
17674         ___umulsi3_highpart.
17676         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
17677         rather than schedule_insns if the pass is enabled.
17679 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17681         PR tree-optimization/42704
17682         * tree-sra.c (sra_modify_assign): Do not delete assignments to
17683         SSA_NAMEs.
17685 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17687         PR tree-optimization/42703
17688         * tree-sra.c (analyze_access_subtree): Check that we can build a
17689         reference to the original data within the aggregate.
17691 2010-01-13  Richard Guenther  <rguenther@suse.de>
17693         PR tree-optimization/42705
17694         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
17696 2010-01-13  Richard Guenther  <rguenther@suse.de>
17698         PR middle-end/42716
17699         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
17701 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
17703         PR debug/41371
17704         * var-tracking.c (values_to_unmark): New variable.
17705         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17706         values_to_unmark vector.  Moved body to...
17707         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
17708         instead queue it into values_to_unmark vector.
17709         (vt_find_locations): Free values_to_unmark vector.
17711 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
17713         * config/s390/s390.c (override_options): Set
17714         default of max-pending-list-length to 256
17716 2010-01-13  Richard Guenther  <rguenther@suse.de>
17718         PR lto/42678
17719         * tree-pass.h (PROP_gimple_lcx): New.
17720         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
17721         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
17722         before the final cleanup_eh.
17723         (dump_properties): Dump PROP_gimple_lcx.
17724         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
17725         (tree_lower_complex_O0): Remove.
17726         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
17727         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
17728         tree_lower_complex, schedule TODO_update_ssa.
17729         * lto-streamer-out.c (output_function): Stream the functions
17730         properties.
17731         * lto-streamer-in.c (input_function): Likewise.
17732         (lto_read_body): Do not override them here.
17734 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
17736         PR c/42708
17737         * c-typeck.c (build_c_cast): Fold value cast to union type before
17738         wrapping it in a CONSTRUCTOR.
17740 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17742         PR rtl-optimization/42699
17743         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
17744         involved.
17746 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17748         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17749         SUBTARGET_WARN_UNUSED_SPEC): Move ...
17750         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17751         SUBTARGET_WARN_UNUSED_SPEC): ... here
17752         * config/mips/iris5.h (LIBGCC_SPEC): Define.
17754 2010-01-12  Julian Brown  <julian@codesourcery.com>
17756         * config/arm/neon-schedgen.ml (Utils): Don't try to
17757         open missing module.
17758         (find_with_result): New.
17760 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17762         PR debug/42662
17763         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
17764         sharing when canonicalizing ({lt,ge}u (plus a b) b).
17766         PR tree-optimization/42645
17767         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
17768         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
17769         decl_map, set processing_debug_stmt to -1 and return name without
17770         any remapping.
17772 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
17774         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
17775         binutils version, and reword target configuration description.
17777 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17779         * config/avr/avr.h (LINKER_NAME): Remove.
17781 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
17783         PR target/42416
17784         * config/rs6000/rs6000.c (rs6000_override_options): On targets
17785         that support VSX, warn for -mno-altivec if vsx is not disabled,
17786         and disable vsx.
17788 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
17789             Shujing Zhao  <pearly.zhao@oracle.com>
17791         PR translation/42469
17792         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
17793         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
17794         character between option name and help text.
17795         * c.opt (imultilib): Likewise.
17797 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
17799         * lto-streamer-out.c (output_unreferenced_globals): Output static
17800         variables.
17802 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
17804         PR rtl-optimization/42621
17805         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
17806         optimizing for size.
17807         (duplicate_computed_gotos): Remove now-redundant check.
17809 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
17811         PR target/37454
17812         * configure.ac: Save and restore LDFLAGS and LIBS
17813         * configure: Regenerate.
17815 2010-01-10  Richard Guenther  <rguenther@suse.de>
17817         PR middle-end/42667
17818         * builtins.c (fold_builtin_strlen): Add type argument and
17819         convert the resulting length to it.
17820         (fold_builtin_1): Adjust.
17822 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17824         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
17825         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
17826         1 insn.
17827         (num_insns_constant_wide): Adjust for that change.
17829 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17831         PR debug/42631
17832         * web.c (union_defs): Add used argument, to combine uses of
17833         uninitialized regs.
17834         (entry_register): Adjust type and tests of used argument.
17835         (web_main): Widen used for new use.  Pass it to union_defs.
17836         * df.h (union_defs): Adjust prototype.
17838 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17840         PR debug/42630
17841         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
17842         uses in new incoming argument.  Free body.
17843         (reset_debug_uses_in_loop): New.
17844         (analyze_insn_to_expand_var): Call the latter if the former found
17845         anything.  Fix whitespace.  Reject invalid dest overlaps before
17846         going through all insns in the loop.
17848 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17850         PR debug/42629
17851         * haifa-sched.c (dying_use_p): Debug insns don't count.
17853 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17855         PR middle-end/42363
17856         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17857         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17858         (verify_gimple_call): Reject LHS in noreturn calls.
17860 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17862         PR debug/42604
17863         PR debug/42395
17864         * tree-vect-loop-manip.c (adjust_info): New type.
17865         (adjust_vec): New pointer to vector.
17866         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17867         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17868         (slpeel_update_phis_for_duplicate_loop): Use them.
17869         (slpeel_update_phi_nodes_for_guard1): Likewise.
17870         (slpeel_update_phi_nodes_for_guard2): Likewise.
17871         (slpeel_tree_peel_loop_to_edge): Likewise.
17872         (vect_update_ivs_after_vectorizer): Likewise.
17874 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17876         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17877         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17879 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17881         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17882         bogus uninitialized warning.
17884 2010-01-09  Richard Guenther  <rguenther@suse.de>
17886         PR middle-end/42512
17887         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17888         the evolution is compatible with the initial condition.
17890 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17892         * gcc.c (process_command): Update copyright notice dates.
17893         * gcov.c (print_version): Likewise.
17894         * gcov-dump.c (print_version): Likewise.
17895         * mips-tfile.c (main): Likewise.
17896         * mips-tdump.c (main): Likewise.
17898 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17900         PR target/41885
17901         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17902         (rotlhi3): Delete.
17903         (rotlhi3_8): Delete.
17904         (rotlsi3): Delete.
17905         (rotlsi3_8): Delete.
17906         (rotlsi3_16): Delete.
17907         (rotlsi3_24): Delete.
17908         (rotl<mode>3): New.
17909         (*rotw<mode>3): New.
17910         (*rotb<mode>3): New.
17911         * config/avr/avr.c (avr_rotate_bytes): New function.
17912         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17914 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
17916         PR target/37454
17917         * configure.ac: Modify -rdynamic check.
17918         * configure: Regenerate.
17920 2010-01-08  DJ Delorie  <dj@redhat.com>
17922         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17923         register popping order.
17925 2010-01-08  Richard Guenther  <rguenther@suse.de>
17927         PR lto/42528
17928         * c.opt (fsigned-char): Also let LTO handle this option.
17929         (funsigned-char): Likewise.
17931 2010-01-07  Richard Guenther  <rguenther@suse.de>
17933         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17934         (gimple_op): Likewise.
17935         (gimple_op_ptr): Likewise.
17936         (gimple_assign_set_lhs): Remove gcc_assert.
17937         (gimple_assign_set_rhs1): Likewise.
17938         (gimple_assign_set_rhs2): Likewise.
17939         (gimple_call_set_lhs): Likewise.
17940         (gimple_call_set_fn): Likewise.
17941         (gimple_call_set_fndecl): Likewise.
17942         (gimple_call_fndecl): Likewise.
17943         (gimple_call_return_type): Likewise.
17944         (gimple_call_set_chain): Likewise.
17945         (gimple_call_num_args): Likewise.
17946         (gimple_call_set_arg): Likewise.
17947         (gimple_cond_set_code): Likewise.
17948         (gimple_cond_set_lhs): Likewise.
17949         (gimple_cond_set_rhs): Likewise.
17950         (gimple_cond_set_true_label): Likewise.
17951         (gimple_cond_set_false_label): Likewise.
17952         (gimple_label_set_label): Likewise.
17953         (gimple_goto_set_dest): Likewise.
17954         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
17955         (gimple_debug_bind_get_value): Likewise.
17956         (gimple_debug_bind_get_value_ptr): Likewise.
17957         (gimple_debug_bind_set_var): Likewise.
17958         (gimple_debug_bind_set_value): Likewise.
17959         (gimple_debug_bind_reset_value): Likewise.
17960         (gimple_debug_bind_has_value_p): Likewise.
17961         (gimple_return_retval_ptr): Remove gcc_assert.
17962         (gimple_return_retval): Likewise.
17963         (gimple_return_set_retval): Likewise.
17964         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
17965         (safe_referenced_var_iterator): Remove.
17966         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
17967         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
17968         (fill_referenced_var_vec): Remove.
17969         (first_readonly_imm_use): Remove redundant gcc_assert.
17970         (phi_arg_index_from_use): Combine gcc_asserts.
17971         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
17972         (first_imm_use_stmt): Remove redundant gcc_assert.
17973         * tree-cfg.c (verify_gimple_call): Verify function and chain
17974         operands.  Verify arguments.
17975         (verify_types_in_gimple_stmt): Verify condition code and labels.
17977 2010-01-07  Richard Guenther  <rguenther@suse.de>
17979         PR tree-optimization/42641
17980         * sese.c (rename_map_elt_info): Use the SSA name version, do
17981         not hash pointers.
17983 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
17985         PR tree-optimization/42625
17986         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
17987         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
17989 2010-01-07  Duncan Sands  <baldrick@free.fr>
17991         * Makefile.in (PLUGIN_HEADERS): Add version.h.
17993 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
17995         PR target/42511
17996         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
17997         note itself is not function_invariant_p.
17999 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
18001         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18002         Do not add the DF_NOTE problem.
18003         * store-motion.c (execute_rtl_store_motion): Likewise.
18005 2010-01-07  Martin Jambor  <mjambor@suse.cz>
18007         PR tree-optimization/42157
18008         * tree-sra.c (compare_access_positions): Stabilize sort if both
18009         accesses have integer types, return zero immediately if they are the
18010         same.
18012 2010-01-06  Richard Henderson  <rth@redhat.com>
18014         PR middle-end/41883
18015         * haifa-sched.c (add_to_note_list): Merge into ...
18016         (concat_note_lists): ... here, and ...
18017         (unlink_other_notes, rm_other_notes): Merge into...
18018         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
18019         NOTE_INSN_EPILOGUE_BEG.
18021 2010-01-06  Richard Guenther  <rguenther@suse.de>
18023         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18024         not inline regular functions into always-inline functions.
18026 2010-01-06  Nick Clifton  <nickc@redhat.com>
18028         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18029         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18030         used together.
18031         (OVERRIDE_OPTIONS): Delete.
18032         (OPTIMIZATION_OPTIONS): Define.
18033         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18034         * config/rx/rx.c (rx_handle_option): Issue an error message if
18035         -mcpu=rx200 and -fpu are used together.
18036         (rx_set_optimization_options): New function.  Issue an error
18037         message if an optimization attribute attempts to reset the FPU/
18038         math optimization pairing.
18039         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18040         * config/rx/rx.opt: Set the default to 32-bit doubles.
18041         * config/rx/t-rx: Add multilibs for -nofpu option.
18042         * doc/invoke.texi: Update documentation of RX options.
18044 2010-01-06  Richard Guenther  <rguenther@suse.de>
18046         * tree-ssa-pre.c (name_to_id): New global.
18047         (alloc_expression_id): Simplify SSA name handling.
18048         (lookup_expression_id): Likewise.
18049         (init_pre): Zero name_to_id.
18050         (fini_pre): Free it.
18052 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
18054         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18056 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18058         PR target/42542
18059         * config/i386/sse.md (smaxv2di3): New.
18060         (umaxv2di3): Likewise.
18061         (sminv2di3): Likewise.
18062         (uminv2di3): Likewise.
18064 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18066         PR target/42564
18067         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18068         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18069         (legitimize_tls_address): Likewise.
18070         (sparc_tls_referenced_p): Likewise.
18071         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18072         and adjust calls to legitimize_pic_address.
18073         (legitimate_constant_p) Use sparc_tls_referenced_p.
18074         (legitimate_pic_operand_p): Likewise.
18075         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18076         (sparc_tls_symbol_ref_1): Delete.
18077         (sparc_tls_referenced_p): Make static, recognize specific patterns.
18078         (legitimize_tls_address): Make static, handle CONST patterns.
18079         (legitimize_pic_address): Make static, remove unused parameter and
18080         adjust recursive calls.
18081         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18082         and adjust call to legitimize_pic_address.
18083         (sparc_output_mi_thunk): Likewise.
18085 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
18086             H.J. Lu  <hongjiu.lu@intel.com>
18088         PR target/42542
18089         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18090         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18091         operands to make them signed.
18093         Revert:
18094         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18096         PR target/42542
18097         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18098         GTU to GT for V4SI and V2DI.
18100         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18101         (umin<mode>3): Removed.
18102         (uminv8hi3): New.
18103         (uminv4si3): Likewise.
18105 2010-01-05  Martin Jambor  <mjambor@suse.cz>
18107         PR tree-optimization/42462
18108         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18109         current_function_decl to helper functions and macros.
18111 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18113         PR bootstrap/41771
18114         * flags.h: Don't include real.h.
18115         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18116         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18117         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18118         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18119         * dominance.c: Update copyright.
18120         * gimple.c (walk_gimple_op): Remove inline.
18121         * tree-ssa-reassoc.c: Include real.h.
18122         * Makefile.in (FLAGS_H): Remove $(REAL_H).
18123         (tree-ssa-reassoc.o): Depend on $(REAL_H).
18125 2010-01-05  Nick Clifton  <nickc@redhat.com>
18127         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18128         register to push into the stack frame when the accumulator has to
18129         be saved during interrupts.
18131 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
18133         * doc/invoke.texi: Remove the documentation about option
18134         -Wunreachable-code.
18135         * common.opt (Wunreachable-code):  Preserved for backward
18136         compatibility.
18137         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18138         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18139         the backward compatibility flag section.
18141 2010-01-05  Richard Guenther  <rguenther@suse.de>
18143         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18145 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
18147         PR other/42611
18148         * cfgexpand.c (expand_one_var): Diagnose too large variables.
18150         PR tree-optimization/42508
18151         * tree-sra.c (convert_callers): Check for recursive call
18152         by comparing cgraph nodes instead of decls.
18153         (modify_function): Call ipa_modify_formal_parameters also
18154         on all same_body aliases.
18156         * cgraphunit.c (cgraph_materialize_all_clones): Compare
18157         cgraph nodes when checking for same_body aliases.
18159 2010-01-05  Richard Guenther  <rguenther@suse.de>
18161         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18162         allocation and lookup.
18163         (get_or_alloc_expr_for_constant): Likewise.
18164         (phi_translate): Sink allocation.
18166 2010-01-04  Richard Guenther  <rguenther@suse.de>
18168         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18169         a new entry only if needed.
18170         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18171         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18172         hashtable lookup.
18173         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18174         the result array.
18175         (phi_translate): Handle CONSTANTs early.
18177 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18179         PR tree-optimization/42398
18180         * tree-sra.c (struct access): Removed flag grp_different_types.
18181         (dump_access): Do not dump the removed flag.
18182         (sort_and_splice_var_accesses): Do not set the removed flag.
18183         (sra_modify_expr): Check for type compatibility directly.
18185 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18187         PR tree-optimization/42366
18188         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18189         edges with variable number of parameters.
18190         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18191         flag instead of asserting it.
18192         (ipa_read_node_info): Read uses_analysis_done flag.
18194 2010-01-04  Richard Guenther  <rguenther@suse.de>
18196         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18197         iterative_hash_* as intended.
18198         (vn_reference_compute_hash): Likewise.  Simplify hashing
18199         SSA names.
18200         (vn_reference_lookup_2): Likewise.
18201         (vn_nary_op_compute_hash): Likewise.
18202         (vn_phi_compute_hash): Likewise.
18203         (expressions_equal_p): Remove strange code.
18204         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18205         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
18206         (bitmap_insert_into_set_1): Take value-id as parameter.
18207         (add_to_value): Pass it.
18208         (bitmap_insert_into_set): Likewise.
18209         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
18211 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
18213         PR driver/42442
18214         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18215         (do_self_spec): For switches with SWITCH_IGNORE set set also
18216         SWITCH_IGNORE_PERMANENTLY.
18217         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18218         of SWITCH_IGNORE.
18220 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
18222         * lto-streamer-out.c (output_unreferenced_globals): Output the full
18223         tree of an unreferenced global var.
18225 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18227         PR target/42542
18228         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18229         GTU to GT for V4SI and V2DI.
18231         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18232         (umin<mode>3): Removed.
18233         (uminv8hi3): New.
18234         (uminv4si3): Likewise.
18236 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18238         PR lto/42581
18239         * collect2.c (main): Turn on trace in collect2 if -v is passed
18240         to gcc with LTO.
18242 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
18244         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
18245         description of expression operand.
18247 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
18249         * configure.ac: Add install-html to target_list for Make-hooks.
18250         * configure: Regenerate.
18251         * fortran/Make-lang.in (F95_HTMLFILES): New.
18252         (fortran.html): Use it.
18253         (fortran.install-html): New.
18254         * Makefile.in (install-html): Add lang.install-html.
18255         * java/Make-lang.in (JAVA_HTMLFILES): New.
18256         (java.html): Use it.
18257         (java.install-html): New.
18258         * objc/Make-lang.in (objc.install-html): New.
18259         * objcp/Make-lang.in (obj-c++.install-html): New.
18260         * cp/Make-lang.in (c++.install-html): New.
18261         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18262         * lto/Make-lang.in (lto.install-html): New.
18264 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18266         PR lto/42520
18267         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18269 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18271         PR rtl-optimization/41862
18272         * store-motion.c (store_killed_in_insn, compute_store_table,
18273         remove_reachable_equiv_notes, replace_store_insn,
18274         build_store_vectors): Ignore all DEBUG_INSNs.
18276 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18278         PR lto/41564
18279         * common.opt: Add dumpdir.
18281         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18282         isn't specified.
18283         (option_map): Add --dumpdir.
18285         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18287         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18289         * opts.c (decode_options): Try dump_dir_name first if
18290         dump_base_name isn't an absolute path.
18291         (common_handle_option): Handle OPT_dumpdir.
18293         * toplev.c (dump_dir_name): New.
18294         (print_switch_values): Also ignore -dumpdir.
18296         * toplev.h (dump_dir_name): New.
18298 2010-01-03  Richard Guenther  <rguenther@suse.de>
18300         PR tree-optimization/42589
18301         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18302         double-word expansion of bswap32.
18304 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18306         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18307         with BLOCK_FOR_INSN.
18308         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18309         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18310         noce_process_if_block): Likewise.
18311         * gcse.c (compute_local_properties, insert_expr_in_table,
18312         insert_set_in_table, canon_list_insert, find_avail_set,
18313         pre_insert_copy_insn): Likewise.
18315         * basic-block.h (BLOCK_NUM): Move from here...
18316         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18318 2010-01-03  Richard Guenther  <rguenther@suse.de>
18320         PR tree-optimization/42438
18321         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18322         contains_may_not_return_call flag.
18323         (BB_MAY_NOTRETURN): New.
18324         (valid_in_sets): Trapping nary operations are not valid
18325         in blocks that may not return.
18326         (insert_into_preds_of_block): Remove check for trapping expressions.
18327         (compute_avail): Compute also BB_MAY_NOTRETURN.
18329 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
18331         * doc/invoke.texi: Add 2010 to copyright years.
18333 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
18335         * config/sparc/sparc.c: Fix formatting nits.
18337 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
18338             Alexander Monakov  <amonakov@ispras.ru>
18340         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18342 2010-01-02  Richard Guenther  <rguenther@suse.de>
18344         PR middle-end/42577
18345         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18346         (simplify_switch_using_ranges): Mark to be removed edges
18347         as non-executable.
18349 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18351         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18353         * collect2.c (scan_libraries): Add missing argument in call to
18354         scan_prog_file.
18356 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
18358         PR target/42448
18359         * config/alpha/predicates.md (aligned_memory_operand): Return false
18360         for CQImode.
18361         (unaligned_memory_operand): Return true for CQImode.
18362         * config/alpha/alpha.c (get_aligned_mem): Assert that location
18363         doesn not cross aligned SImode word boundary.
18365 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
18367         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18368         Remove.
18369         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18370         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18372 2010-01-02  Richard Guenther  <rguenther@suse.de>
18374         PR lto/41597
18375         * toplev.c (compile_file): Emit LTO marker properly.  Change
18376         it to __gnu_lto_v1.
18377         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18379 2010-01-01  Richard Guenther  <rguenther@suse.de>
18381         PR debug/42455
18382         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18384 2010-01-01  Richard Guenther  <rguenther@suse.de>
18386         PR c/42570
18387         * c-decl.c (grokdeclarator): For zero-size arrays force
18388         structural equality checks as layout_type does.
18390 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18392         * builtins.c: Update copyright to 2010.
18394 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18396         PR lto/42531
18397         * lto-streamer-out.c (produce_asm): Revert the last change.
18398         (copy_function): Likewise.
18400         * lto-streamer.c (lto_get_section_name): Skip any leading
18401         asterisk in name.
18403 2010-01-01  Richard Guenther  <rguenther@suse.de>
18405         PR middle-end/42559
18406         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18407         for LABEL_DECLs.
18410 Copyright (C) 2010 Free Software Foundation, Inc.
18412 Copying and distribution of this file, with or without modification,
18413 are permitted in any medium without royalty provided the copyright
18414 notice and this notice are preserved.