1 2010-07-06 Jan Hubicka <jh@suse.cz>
3 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
6 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
8 * doc/gimple.texi (GIMPLE_DEBUG): Document.
9 * doc/rtl.texi (Debug Information): New node.
10 (NOTE_INSN_VAR_LOCATION): Document.
11 (debug_insn): Likewise.
12 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
14 2010-07-07 Jan Hubicka <jh@suse.cz>
16 With parts by Richard Guenther
19 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
20 for functions passed by reference.
21 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
22 in memory when passed by reference.
23 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
25 * ipa-split.c (split_function): Cleanup way return value is passed;
26 handle SSA DECL_BY_REFERENCE retvals.
27 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
28 DECL_BY_REFERENCE is set.
29 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
30 find_what_p_points_to): Handle RESULT_DECL.
31 * tree-inline.c (declare_return_variable): Get new entry_block argument;
32 when passing by reference ensure that RESULT_DECL is gimple_val.
33 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
34 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
36 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
38 PR rtl-optimization/44787
39 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
40 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
42 2010-07-06 Jan Hubicka <jh@suse.cz>
44 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
45 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
46 with body can prevail.
47 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
48 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
49 * cgraph.c (cgraph_get_node_or_alias): New function.
50 * cgraph.h (cgraph_get_node_or_alias): Declare.
52 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
54 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
56 (ix86_expand_prologue): Likewise.
57 (ix86_handle_fndecl_attribute): Likewise.
58 (ix86_asm_declare_function_name): New function for
59 ASM_DECLARE_FUNCTION_NAME.
60 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
61 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
62 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
63 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
64 * doc/extend.texi: Adjust documentation about ms_hook_prologue
67 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
69 * config/i386/i386.md (immediate_operand): New mode attribute.
71 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
72 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
73 using P mode iterator.
74 (pro_epilogue_adjust_stack_di_2): Rename from
75 pro_epilogue_adjust_stack_rex64_2.
77 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
79 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
81 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
82 through gen_mov_insv_1 function pointer.
83 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
84 gen_truncxf<mode>2 through gen_truncxf function pointer.
85 (remainder<mode>3): Ditto.
86 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
87 (allocate_stack): Call gen_allocate_stack_worker_64 or
88 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
90 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
93 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
95 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
96 operand constraint instead of <r><i>m.
98 2010-07-06 Richard Guenther <rguenther@suse.de>
101 * convert.c (convert_to_integer): Watch out for overflowing
104 2010-07-05 Jan Hubicka <jh@suse.cz>
106 * lto-streamer.c (write_symbol_vec): Rename to ...
107 (write_symbol) ... this one; write only symbol given and when
108 present in cache. Sanity check that what is defined is present
109 in cgraph/varpool with body/finalized decl.
110 (write_symbols_of_kind): Remove.
111 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
112 pairs to produce symtab.
113 (produce_asm_for_decls): Update call of produce_symtab; don't do so
114 when doing WPA streaming.
116 2010-07-05 Jan Hubicka <jh@suse.cz>
118 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
119 function is still available to fold into.
121 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
123 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
124 * function.h (struct_function): Change type of local_decls field
126 (add_local_decl): New function.
127 (FOR_EACH_LOCAL_DECL): New macro.
128 * cfgexpand.c (init_vars_expansion): Adjust for new type of
130 (estimated_stack_frame_size): Likewise.
131 (expand_used_vars): Likewise.
132 * cgraphbuild.c (build_cgraph_edges): Likewise.
133 * function.c (instantiate_decls_1): Likewise.
134 * ipa-struct-reorg.c (build_data_structure): Likewise.
135 * ipa-type-escape.c (analyze_function): Likewise.
136 * lto-streamer-in.c (input_function): Likewise.
137 * lto-streamer-out.c (output_function): Likewise.
138 * tree-ssa-live.c (remove_unused_locals): Likewise.
139 * tree.c (free_lang_data_in_decl): Likewise.
140 (find_decls_types_in_node): Likewise.
141 * omp-low.c (remove_exit_barrier): Likewise.
142 (expand_omp_taskreg): Likewise.
143 (list2chain): Rename to...
144 (vec2chain): ...this. Adjust.
145 * cgraphunit.c (assemble_thunk): Call add_local_decl.
146 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
147 * gimple-low.c (record_vars_into): Likewise.
148 * tree-inline.c (remap_decls): Likewise.
149 (declare_return_variable): Likewise.
150 (declare_inline_vars): Likewise.
151 (copy_forbidden): Adjust for new type of cfun->local_decls.
152 (add_local_variables): New function.
153 (expand_call_inline): Call it.
154 (tree_function_versioning): Likewise.
156 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
158 AVX Programming Reference (June, 2010)
159 * config/i386/cpuid.h (bit_F16C): New.
160 (bit_RDRND): Likewise.
161 (bit_FSGSBASE): Likewise.
163 * config/i386/i386-builtin-types.def: Add
164 "DEF_FUNCTION_TYPE (UINT16)", function types for
165 float16 <-> float conversions and
166 "DEF_FUNCTION_TYPE (VOID, UINT64)".
168 * config/i386/i386-c.c (ix86_target_macros_internal): Support
169 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
170 OPTION_MASK_ISA_F16C.
172 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
173 (OPTION_MASK_ISA_RDRND_SET): Likewise.
174 (OPTION_MASK_ISA_F16C_SET): Likewise.
175 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
176 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
177 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
178 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
179 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
180 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
181 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
182 (override_options): Handle them.
183 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
184 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
185 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
186 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
187 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
188 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
189 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
190 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
191 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
192 (bdesc_args): Likewise.
193 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
194 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
195 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
196 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
197 Handle non-memory store.
199 * config/i386/i386.h (TARGET_FSGSBASE): New.
200 (TARGET_RDRND): Likewise.
201 (TARGET_F12C): Likewise.
203 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
204 (UNSPEC_VCVTPS2PH): Likewise.
205 (UNSPECV_RDFSBASE): Likewise.
206 (UNSPECV_RDGSBASE): Likewise.
207 (UNSPECV_WRFSBASE): Likewise.
208 (UNSPECV_WRGSBASE): Likewise.
209 (UNSPECV_RDRAND): Likewise.
210 (rdfsbase<mode>): Likewise.
211 (rdgsbase<mode>): Likewise.
212 (wrfsbase<mode>): Likewise.
213 (wrgsbase<mode>): Likewise.
214 (rdrand<mode>): Likewise.
216 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
218 * config/i386/immintrin.h (_rdrand_u16): New.
219 (_rdrand_u32): Likewise.
220 (_readfsbase_u32): Likewise.
221 (_readfsbase_u64): Likewise.
222 (_readgsbase_u32): Likewise.
223 (_readgsbase_u64): Likewise.
224 (_writefsbase_u32): Likewise.
225 (_writefsbase_u64): Likewise.
226 (_writegsbase_u32): Likewise.
227 (_writegsbase_u64): Likewise.
228 (_rdrand_u64): Likewise.
229 (_cvtsh_ss): Likewise.
230 (_mm_cvtph_ps): Likewise.
231 (_mm256_cvtph_ps): Likewise.
232 (_cvtss_sh): Likewise.
233 (_mm_cvtps_ph): Likewise.
234 (_mm256_cvtps_ph): Likewise.
236 * config/i386/sse.md (vcvtph2ps): New.
237 (*vcvtph2ps_load): Likewise.
238 (vcvtph2ps256): Likewise.
239 (vcvtps2ph): Likewise.
240 (*vcvtps2ph): Likewise.
241 (*vcvtps2ph_store): Likewise.
242 (vcvtps2ph256): Likewise.
244 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
246 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
248 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
251 * genenums.c (main): Output include of insn-constants.h
252 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
254 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
256 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
257 (override_options): Initialize it.
258 (ix86_expand_prologue): Use it.
260 2010-07-05 Jakub Jelinek <jakub@redhat.com>
262 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
264 2010-07-05 Anatoly Sokolov <aesok@post.ru>
266 * double-int.h (fit_double_type): Remove declaration.
267 * double-int.c (fit_double_type): Remove function.
268 * tree.h (int_fits_type_p): Adjust prototype.
269 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
270 instead of fit_double_type.
271 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
272 instead of fit_double_type and build_int_cst_wide.
273 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
274 instead of fit_double_type and build_int_cst_wide.
275 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
278 2010-07-05 Jan Hubicka <jh@suse.cz>
280 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
282 * lto-cgraph.c (referenced_from_other_partition_p,
283 reachable_from_other_partition_p): Use in_other_partition flags.
284 (output_node, output_varpool_node): COMDAT nodes always have private
285 copies and thus are never used from other partition.
287 2010-07-05 Anatoly Sokolov <aesok@post.ru>
289 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
290 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
291 * config/ia64/ia64.c Include reload.h.
292 (ia64_memory_move_cost): New function.
293 (TARGET_MEMORY_MOVE_COST): Define.
294 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
297 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
300 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
301 comments about cost model.
302 (try_add_cand_for): Add second strategy for choosing initial set
303 based on original IVs, controlled by ORIGINALP argument.
304 (get_initial_solution): Add ORIGINALP argument.
305 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
306 (find_optimal_iv_set): Try two different strategies for choosing
307 the IV set, and return the one with lower cost.
309 2010-07-05 Richard Guenther <rguenther@suse.de>
311 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
313 2010-07-05 Richard Guenther <rguenther@suse.de>
315 * tree.c (reference_alias_ptr_type): New function.
316 * tree.h (reference_alias_ptr_type): Declare.
317 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
318 allow non-TARGET_MEM_REF new refs.
319 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
320 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
321 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
322 (create_mem_ref): Get alias pointer type. Adjust calls to
324 (maybe_fold_tmr): Likewise.
325 * tree-flow.h (create_mem_ref): Adjust prototype.
327 2010-07-05 Jakub Jelinek <jakub@redhat.com>
330 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
333 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
335 * tree.h (build_call_list): Remove.
336 * tree.c (build_call_list): Remove.
338 2010-07-05 Richard Guenther <rguenther@suse.de>
340 * double-int.h (double_int_sub): Declare.
341 * double-int.c (double_int_sub): New function.
342 * dwarf2out.c (field_byte_offset): Use it.
343 * fixed-value.c (do_fixed_add): Likewise.
344 (do_fixed_multiply): Likewise.
345 (do_fixed_divide): Likewise.
346 * tree-predcom.c (add_ref_to_chain): Likewise.
347 (determine_roots_comp): Likewise.
348 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
350 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
352 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
355 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
357 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
358 * arm-modes.def (CC_NOTB): Don't define.
359 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
360 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
361 (LTUGEU): New code_iterator.
362 (cnb, optab): New corresponding code_attrs.
363 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
364 to canonical form. Operands 1 and 2 are commutative. Parametrize
366 (addsi3_carryin_shift_<optab>): Likewise.
367 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
368 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
369 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
370 (subsi3_compare): Renamed from subsi3_compare0_c.
371 Change CC_NOTB to CC.
372 (arm_subsi3_insn): Allow constants for operand 0.
373 (compare_scc peephole for eq case): New.
374 (compare_scc splitters): Change CC_NOTB to CC.
376 2010-07-05 Richard Guenther <rguenther@suse.de>
378 * tree-ssa-loop-im.c (for_each_index): Do not handle
380 (gen_lsm_tmp_name): Likewise.
381 * tree-dump.c (dequeue_and_dump): Likewise.
382 * tree-pretty-print.c (dump_generic_node): Likewise.
383 (op_code_prio): Likewise.
384 (op_symbol_code): Likewise.
385 * tree.c (staticp): Likewise.
386 (build1_stat): Likewise.
387 * tree.h (INDIRECT_REF_P): Likewise.
388 * fold-const.c (maybe_lvalue_p): Likewise.
389 (operand_equal_p): Likewise.
390 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
391 (ao_ref_init_from_vn_reference): Likewise.
392 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
393 (find_interesting_uses_address): Likewise.
394 * dwarf2out.c (loc_list_from_tree): Likewise.
395 * gimplify.c (gimplify_expr): Likewise.
396 * tree-eh.c (tree_could_trap_p): Likewise.
397 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
398 * cfgexpand.c (expand_debug_expr): Likewise.
399 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
400 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
401 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
402 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
403 * tree-ssa-operands.c (get_expr_operands): Likewise.
404 * expr.c (safe_from_p): Likewise.
405 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
406 * tree-vect-data-refs.c (vect_setup_realignment): Build
407 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
408 * tree-vect-stmts.c (vectorizable_load): Likewise.
409 * tree.def (ALIGN_INDIRECT_REF): Remove.
411 2010-07-05 Richard Guenther <rguenther@suse.de>
413 PR tree-optimization/44784
414 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
416 (find_or_generate_expression): Fix SCCVN insertion check.
418 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
420 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
421 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
422 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
425 2010-07-05 Ira Rosen <irar@il.ibm.com>
427 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
428 statements that are not vectorized.
429 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
432 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
435 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
437 2010-07-05 Richard Guenther <rguenther@suse.de>
439 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
440 RESULT_DECLs properly.
442 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
444 PR rtl-optimization/44695
445 * config/i386/i386.md (extract_code): Removed.
446 (<u>divmodqi4): Likewise.
448 (udivmodqi4): Likewise.
449 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
450 (udivmodhiqi3): Likewise.
452 2010-07-04 Jan Hubicka <jh@suse.cz>
454 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
456 2010-07-04 Jan Hubicka <jh@suse.cz>
458 * cgraphunit.c (init_cgraph): Only initialize dump file if it
459 is not already initialized.
461 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
463 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
464 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
465 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
466 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
467 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
468 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
469 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
470 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
471 (sync_new_nand_optab): Redefine as macros.
472 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
474 (direct_optab_index): New enum.
475 (direct_optab_d): New structure.
476 (direct_optab): New typedef.
477 (direct_optab_table): Declare.
478 (direct_optab_handler, set_direct_optab_handler): New functions.
479 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
480 (sync_lock_release_optab): New macros.
481 * optabs.c (direct_optab_table): New variable.
482 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
483 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
484 cmpstr_optab and cmpstrn_optab.
485 (emit_conditional_move): Likewise for movcc_optab.
486 (can_conditionally_move_p): Likewise for movcc_gen_code.
487 (init_insn_codes): Clear direct_optab_table.
488 (init_optabs): Don't initialize the new "direct optabs" here.
489 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
491 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
492 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
493 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
494 (expand_sync_operation): Likewise other sync_*_optabs.
495 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
496 to sync_compare_and_swap_optab.
497 (expand_sync_lock_test_and_set): Use direct_optab_handler for
498 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
499 to the names of both.
500 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
501 cmpstr_optab and cmpstrn_optab.
502 (expand_builtin_lock_release): Likewise sync_lock_release.
503 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
504 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
505 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
506 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
507 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
508 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
509 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
510 (sync_lock_test_and_set, sync_lock_release): Delete.
511 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
512 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
513 * genopinit.c (optabs): Use set_direct_optab_handler for the new
515 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
516 the "optab" local variable. Use direct_optab_handler for optab and
517 sync_compare_and_swap_optab.
518 * reload1.c (reload_in_optab, reload_out_optab): Delete.
519 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
520 reload_in_optab and reload_out_optab.
521 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
522 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
523 * config/pa/pa.c (pa_secondary_reload): Likewise.
524 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
525 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
526 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
527 (VMSupportsCS8_builtin): Likewise.
529 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
531 * optabs.h (optab_handlers): Change type of insn_code to int.
532 (optab_handler, set_optab_handler, convert_optab_handler)
533 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
535 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
536 (init_insn_codes): Zero both the above arrays.
537 (init_optabs): Never call init_insn_codes first time around.
539 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
541 * optabs.h (optab_handler, convert_optab_handler): Turn into
542 inline functions that return an insn code.
543 (set_optab_handler, set_convert_optab_handler): New functions.
544 * builtins.c: Replace optab_handler(X)->insn_code with
545 optab_handler or set_optab_handler thoughout. Likewise
546 convert_optab_handler(X)->insn_code with convert_optab_handler
547 and set_convert_optab_handler.
548 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
549 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
550 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
551 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
552 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
553 config/spu/spu.c: Likewise.
555 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
558 * config.gcc (sh*-*-*): Use regular expressions instead of
559 the 'i' modifier for sed substitutions.
561 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
563 * gimple.c (gimple_body): Comments added.
565 2010-07-04 Richard Guenther <rguenther@suse.de>
568 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
571 2010-07-04 Richard Guenther <rguenther@suse.de>
573 PR tree-optimization/44479
574 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
575 extra SSA name copy statements which preserves points-to
577 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
578 Copy points-to information for all pointers. Properly handle
580 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
582 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
585 2010-07-04 Richard Guenther <rguenther@suse.de>
588 * tree-inline.c (initialize_inlined_parameters): Do not
589 re-use pointer-map slot over remap_type call.
591 2010-07-04 Richard Guenther <rguenther@suse.de>
593 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
595 2010-07-04 Richard Guenther <rguenther@suse.de>
597 PR tree-optimization/44656
598 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
599 again after value-replacing in the defintions lhs.
601 2010-07-04 Ira Rosen <irar@il.ibm.com>
602 Revital Eres <eres@il.ibm.com>
604 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
605 Document new arguments.
606 * doc/tm.texi: Regenerate.
607 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
608 Handle unaligned store.
609 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
610 * target.def (builtin_vectorization_cost): Add new arguments.
611 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
612 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
613 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
614 (vect_vfa_segment_size): Fix indentation.
615 * tree-vectorizer.h (struct _vect_peel_info): New.
616 (struct _vect_peel_extended_info): New.
617 (struct _loop_vec_info): Add new field for peeling hash table and a
618 macro for its access.
619 (VECT_MAX_COST): Define.
620 (vect_get_load_cost): Declare.
621 (vect_get_store_cost, vect_get_known_peeling_cost,
622 vect_get_single_scalar_iteraion_cost): Likewise.
623 (vect_supportable_dr_alignment): Add new argument.
624 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
626 (destroy_loop_vec_info): Free peeling hash table.
627 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
628 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
629 vect_analyze_slp. Fix indentation.
630 (vect_get_single_scalar_iteraion_cost): New function.
631 (vect_get_known_peeling_cost): Likewise.
632 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
633 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
634 statement. Move outside cost calculation inside unknown peeling case.
635 Call vect_get_known_peeling_cost for known amount of peeling.
636 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
637 reference to the print message of forced alignment.
638 (vect_verify_datarefs_alignment): Update call to
639 vect_supportable_dr_alignment.
640 (vect_get_data_access_cost): New function.
641 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
642 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
643 vect_peeling_hash_choose_best_peeling): Likewise.
644 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
645 to store all the accesses in the loop and find best possible access to
646 align using peeling for known alignment case. For unknown alignment
647 check if stores are preferred or if peeling is worthy.
648 (vect_find_same_alignment_drs): Analyze pairs of loads too.
649 (vect_supportable_dr_alignment): Add new argument and check aligned
650 accesses according to it.
651 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
652 (cost_for_stmt): Call vect_get_stmt_cost.
653 (vect_model_simple_cost): Likewise.
654 (vect_model_store_cost): Call vect_get_stmt_cost. Call
655 vect_get_store_cost to calculate the cost of the statement.
656 (vect_get_store_cost): New function.
657 (vect_model_load_cost): Call vect_get_stmt_cost. Call
658 vect_get_load_cost to calculate the cost of the statement.
659 (vect_get_load_cost): New function.
660 (vectorizable_store): Update call to vect_supportable_dr_alignment.
661 (vectorizable_load): Likewise.
662 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
663 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
664 arguments. Handle unaligned store.
665 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
666 (rs6000_builtin_support_vector_misalignment): Return true for word and
667 double word alignments for VSX.
668 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
669 vect_supportable_dr_alignment and builtin_vectorization_cost.
671 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
674 * config/pa/predicates.md (prefetch_cc_operand): Remove.
675 (prefetch_nocc_operand): Likewise.
676 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
677 (prefetch_20): New insn.
678 (prefetch_cc): Remove.
679 (prefetch_nocc): Likewise.
681 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
683 * expr.c (vector_mode_valid_p): Move to c-common.c.
684 * expr.h (vector_mode_valid_p): Do not declare here.
685 * system.h: Poison GCC_EXPR_H in front-ends.
686 * Makefile.in: Update dependencies.
688 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
691 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
693 2010-07-03 Jan Hubicka <jh@suse.cz>
695 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
696 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
697 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
698 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
701 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
703 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
704 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
705 TV_IPA_LTO_DECL_OUT): New.
706 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
708 2010-07-03 Jan Hubicka <jh@suse.cz>
710 * ipa-inline.c (update_edge_key): Break out from ...
711 update_callers_keys): ... here;
712 (update_callee_keys): Update only the edges from caller to callee.
713 (update_all_calle_keys): Do what update_calle_keys did.
714 (decide_inlining_of_small_functions): Avoid recomputing of all
715 callees when badness increase.
717 2010-07-03 Jie Zhang <jie@codesourcery.com>
719 * config/arm/arm.c (arm_attr_length_move_neon): New.
720 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
721 * config/arm/neon.md (define_mode_attr V_slen): Remove.
722 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
723 to compute length attribute.
725 2010-07-03 Jie Zhang <jie@codesourcery.com>
727 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
728 as predicate for operand 1 and remove its constraint.
729 * config/arm/predicates.md (vfp_register_operand): New.
730 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
731 (*push_fp_multi): Likewise.
733 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
735 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
737 2010-07-03 Jan Hubicka <jh@suse.cz>
739 * config/i386/i386.c (override_options): Revert accidental commit.
741 2010-07-02 Le-Chun Wu <lcwu@google.com>
744 * doc/invoke.texi: Update documentation of -Wshadow.
746 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
747 Julian Brown <julian@codesourcery.com>
748 Sandra Loosemore <sandra@codesourcery.com>
750 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
751 comparisons. Adjust to take both operands.
752 (arm_select_cc_mode): Handle DImode comparisons.
753 (arm_gen_compare_reg): Generate a scratch register for DImode
754 comparisons which require one. Use xor for Thumb equality checks.
755 (arm_const_double_by_immediates): New.
756 (arm_print_operand): Allow 'Q' and 'R' for constants.
757 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
758 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
759 arm_canonicalize_comparison.
760 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
761 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
763 (arm_const_double_by_immediates): Declare.
764 * config/arm/constraints.md (Di): New constraint.
765 * config/arm/predicates.md (arm_immediate_di_operand)
766 (arm_di_operand, cmpdi_operand): New.
767 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
768 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
769 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
770 (cstoredi4): Handle non-Cirrus also.
772 2010-07-02 Julian Brown <julian@codesourcery.com>
773 Sandra Loosemore <sandra@codesourcery.com>
776 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
777 (smax<mode>3): Disable for NEON float modes when
778 flag_unsafe_math_optimizations is false.
779 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
781 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
782 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
783 for NEON float modes when flag_unsafe_math_optimizations is false.
784 (quad_halves_<code>v4sf): Only enable if
785 flag_unsafe_math_optimizations is true.
786 * doc/invoke.texi (ARM Options): Add note about floating point
787 vectorization requiring -funsafe-math-optimizations.
789 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
790 Julian Brown <julian@codesourcery.com>
792 * config/arm/neon.md (UNSPEC_VABA): Delete.
793 (UNSPEC_VABAL): Delete.
794 (UNSPEC_VABS): Delete.
795 (UNSPEC_VMUL_N): Delete.
798 (mul<mode>3add<mode>_neon): Make the pattern named.
799 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
800 (neon_vadd<mode>): Replace with define_expand, and move the remaining
802 (neon_vadd<mode>_unspec): ...to this.
803 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
804 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
805 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
806 (neon_vaba<mode>): Rewrite in terms of vabd.
807 (neon_vabal<mode>): Rewrite in terms of vabdl.
808 (neon_vabs<mode>): Rewrite without unspec.
809 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
810 (*arm_subdi3): Likewise.
811 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
812 No_op attribute to disable assembly output checks.
813 * config/arm/arm_neon.h: Regenerated.
814 * doc/arm-neon-intrinsics.texi: Regenerated.
816 2010-07-02 Jan Hubicka <jh@suse.cz>
818 * ipa-split.c (split_function): For aggregate values, set the return
819 slot optimization bit. When passing DECL_BY_REFERENCE, produce
820 *<retval> = fncall.part ().
821 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
823 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
825 * config/arm/neon.md (UNSPEC_VAND): Delete.
826 (UNSPEC_VBIC): Delete.
827 (UNSPEC_VCLZ): Delete.
828 (UNSPEC_VCNT): Delete.
829 (UNSPEC_VEOR): Delete.
830 (UNSPEC_VORN): Delete.
831 (UNSPEC_VORR): Delete.
832 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
834 (anddi3_neon): Likewise.
835 (orndi3_neon): Likewise.
836 (bicdi3_neon): Likewise.
837 (xordi3_neon): Likewise.
838 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
839 rid of unspec and handle unused operand.
840 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
841 * config/arm/predicates.md (imm_for_neon_logic_operand):
843 (imm_for_neon_inv_logic_operand): Likewise.
844 * config/arm/arm.md (define_split for logical_binary_operator):
845 Disable for NEON registers.
846 (anddi3): Add new define_expand, and rename the insn. Disable
847 this insn for NEON, where anddi3_neon now applies.
848 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
849 (iordi3): As for anddi3.
851 * config/arm/neon.ml (Vand): Split DImode variants and mark them
852 as No_op to disable testing for exact instruction match.
857 * config/arm/arm_neon.h: Regenerated.
858 * doc/arm-neon-intrinsics.texi: Regenerated.
860 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
862 * expr.h (emit_stack_probe): Declare.
863 * explow.c (emit_stack_probe): Make global.
864 (anti_adjust_stack_and_probe): Fix comments.
865 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
866 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
867 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
868 * config/sparc/sparc.c: Include except.h.
869 (sparc_emit_probe_stack_range): New function.
870 (output_probe_stack_range): Likewise.
871 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
872 built-in stack checking is enabled.
873 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
874 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
875 (probe_stack_range): New insn.
877 2010-07-02 Richard Guenther <rguenther@suse.de>
880 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
881 for argument alignment.
883 2010-07-02 Jan Hubicka <jh@suse.cz>
885 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
886 walk backwards from entry_bb to check only those basic block of header
887 that might lead to execution of split part.
888 (consider_split) ... here.
889 (find_return_bb): Allow assignment in return BB.
891 (split_function): Fix name of cloned function; take care of updating
892 return value in return_bb containing move.
894 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
897 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
900 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
902 * implicit-zee.c (combine_reaching_defs): Fix long lines.
903 (is_set_with_extension_DI): Delete.
904 (struct zero_extend_info): New structure.
905 (add_removable_zero_extend): New function.
906 (find_removable_zero_extends): Use note_stores to find SETs.
907 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
909 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
911 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
912 is_miss_rate_acceptable. Pull total_positions computation
913 out of the loops. Early return if miss_positions exceeds
914 the acceptable threshold.
915 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
916 is_miss_rate_acceptable after renaming of compute_miss_rate.
918 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
921 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
922 of 1000) for miss rate if the address diference is greater than or
923 equal to the cache line size (the two reference will never hit the
926 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
929 * config/arm/arm-modes.def (CC_NOTB): New mode.
930 * config/arm/arm.c (get_arm_condition_code): Handle it.
931 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
932 * config/arm/arm.md (subsi3_compare0_c): New pattern.
933 (compare_scc): Now a define_and_split. Add a number of extra
937 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
939 (arm_rtx_costs_1): Likewise.
940 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
941 * config/arm/arm.md (is_arch6): New attribute.
942 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
943 extendqisi2): Tighten the code somewhat, avoiding invalid
944 RTL to occur in the expander patterns.
945 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
946 (thumb1_zero_extendhisi2_v6): Delete.
947 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
948 (thumb1_extendhisi2_v6): Delete.
949 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
950 (thumb1_extendqisi2_v6): Delete.
951 (zero_extendhisi2 for register input splitter): New.
952 (zero_extendqisi2 for register input splitter): New.
953 (thumb1_extendhisi2 for register input splitter): New.
954 (extendhisi2 for register input splitter): New.
955 (extendqisi2 for register input splitter): New.
956 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
957 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
958 and add support for a register alternative requiring a split.
959 (thumb1_zero_extendqisi2): Likewise.
960 (arm_zero_extendqisi2): Likewise.
961 (arm_extendhisi2): Likewise.
962 (arm_extendqisi2): Likewise.
964 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
966 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
967 instead of an unspec.
968 (neon_expand_vector_init): Likewise.
969 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
970 (UNSPEC_VDUP_LANE): Delete.
971 (UNSPEC VDUP_N): Delete.
972 (UNSPEC_VGET_HIGH): Delete.
973 (UNSPEC_VGET_LANE): Delete.
974 (UNSPEC_VGET_LOW): Delete.
975 (UNSPEC_VMVN): Delete.
976 (UNSPEC_VSET_LANE): Delete.
977 (V_double_vector_mode): New.
978 (vec_set<mode>_internal): Make code emitted match that for the
979 corresponding intrinsics.
980 (vec_setv2di_internal): Likewise.
981 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
982 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
983 (neon_vset_lane<mode>): Combine double and quad patterns and
984 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
985 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
986 (neon_vdup_n<mode>): Rewrite RTL without unspec.
987 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
988 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
989 with neon_vdup_lanev2di, adjusting the pattern from the latter
990 to be predicable for consistency.
991 (neon_vdup_lane<mode>_internal): New.
992 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
993 to avoid using an unspec.
994 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
995 (neon_vdup_lanev2di): Turn into a define_expand.
996 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
997 (neon_vget_high<mode>): Replace with....
998 (neon_vget_highv16qi): New pattern using canonical RTL.
999 (neon_vget_highv8hi): Likewise.
1000 (neon_vget_highv4si): Likewise.
1001 (neon_vget_highv4sf): Likewise.
1002 (neon_vget_highv2di): Likewise.
1003 (neon_vget_low<mode>): Replace with....
1004 (neon_vget_lowv16qi): New pattern using canonical RTL.
1005 (neon_vget_lowv8hi): Likewise.
1006 (neon_vget_lowv4si): Likewise.
1007 (neon_vget_lowv4sf): Likewise.
1008 (neon_vget_lowv2di): Likewise.
1010 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1011 test for this emitting vmov.
1012 (Vset_lane): Likewise.
1016 * doc/arm-neon-intrinsics.texi: Regenerated.
1018 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1020 * config/arm/neon.md (vec_extractv2di): Correct error in register
1021 numbering to reconcile with neon_vget_lanev2di.
1023 2010-07-02 Richard Guenther <rguenther@suse.de>
1025 * tree-ssa-structalias.c (pt_solution_set_var): New function.
1026 * tree-ssa-alias.h (pt_solution_set_var): Declare.
1027 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1028 points-to information.
1030 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
1032 * config/s390/s390.c (override_options): Adopt prefetching
1033 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1035 2010-07-02 Jan Hubicka <jh@suse.cz>
1037 * df-problems.c (df_kill_notes): Do not collect dead notes.
1038 (df_set_note): Just call add_reg_note.
1039 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1040 df_create_unused_note): Do not deal with lists of old notes.
1041 (df_note_bb_compute): Likewise.
1043 2010-07-02 Richard Guenther <rguenther@suse.de>
1045 * tree-ssa-structalias.c (find_func_aliases): Handle
1046 pointer alignment via BIT_AND_EXPR.
1047 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1049 2010-07-02 Richard Guenther <rguenther@suse.de>
1051 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1052 mismatching number of dimensions properly.
1054 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1057 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1058 (lo_sum (high ...) ...) patterns generated by earlier passes.
1060 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1062 * doc/install.texi (Prerequisites): Document Perl requirement on
1064 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1066 2010-07-02 Richard Guenther <rguenther@suse.de>
1069 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1071 2010-07-02 Jan Hubicka <jh@suse.cz>
1074 * predict.c (predict_paths_for_bb): Handle case when control dependence
1075 BB has only abnormal edges.
1077 2010-07-02 Richard Guenther <rguenther@suse.de>
1079 PR tree-optimization/44748
1080 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1081 the embedded conversion in MEM_REFs.
1083 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
1085 * reload.c: Include toplev.h.
1086 * recog.c: Likewise.
1087 * Makefile.in: Adjust dependencies.
1089 2010-07-01 Jakub Jelinek <jakub@redhat.com>
1092 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1093 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1095 2010-07-01 Richard Guenther <rguenther@suse.de>
1097 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1100 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
1103 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1106 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
1109 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1110 Make sure operand 0 dies.
1112 2010-07-01 Richard Guenther <rguenther@suse.de>
1116 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1117 * doc/generic.texi (References to storage): Document MEM_REF.
1118 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1119 (print_call_name): Likewise.
1120 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1121 (build_simple_mem_ref_loc): New function.
1122 (mem_ref_offset): Likewise.
1123 * tree.h (build_simple_mem_ref_loc): Declare.
1124 (build_simple_mem_ref): Define.
1125 (mem_ref_offset): Declare.
1126 * fold-const.c: Include tree-flow.h.
1127 (operand_equal_p): Handle MEM_REF.
1128 (build_fold_addr_expr_with_type_loc): Likewise.
1129 (fold_comparison): Likewise.
1130 (fold_unary_loc): Fold
1131 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1132 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1133 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1134 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1135 (ptr_deref_may_alias_ref_p_1): Likewise.
1136 (ao_ref_base_alias_set): Properly differentiate base object for
1138 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1139 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1140 (indirect_refs_may_alias_p): Likewise.
1141 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
1143 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1144 (call_may_clobber_ref_p_1): Likewise.
1145 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1146 * expr.c (expand_assignment): Handle MEM_REF.
1147 (store_expr): Handle MEM_REFs from STRING_CSTs.
1148 (store_field): If expanding a MEM_REF of a non-addressable
1149 decl use bitfield operations.
1150 (get_inner_reference): Handle MEM_REF.
1151 (expand_expr_addr_expr_1): Likewise.
1152 (expand_expr_real_1): Likewise.
1153 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1154 * alias.c (ao_ref_from_mem): Handle MEM_REF.
1155 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
1156 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1157 (dr_analyze_indices): Likewise.
1158 (dr_analyze_alias): Likewise.
1159 (object_address_invariant_in_loop_p): Likewise.
1160 * gimplify.c (mark_addressable): Handle MEM_REF.
1161 (gimplify_cond_expr): Build MEM_REFs.
1162 (gimplify_modify_expr_to_memcpy): Likewise.
1163 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1164 (gimple_fold_indirect_ref): Adjust.
1165 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
1166 * tree.def (MEM_REF): New tree code.
1167 * tree-dfa.c: Include toplev.h.
1168 (get_ref_base_and_extent): Handle MEM_REF.
1169 (get_addr_base_and_unit_offset): New function.
1170 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1171 * gimple-fold.c (may_propagate_address_into_dereference): Handle
1173 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1174 accesses if the array has just one dimension. Remove always true
1175 parameter. Do not require type compatibility here.
1176 (maybe_fold_offset_to_component_ref): Remove.
1177 (maybe_fold_stmt_indirect): Remove.
1178 (maybe_fold_reference): Remove INDIRECT_REF handling.
1179 Fold back to non-MEM_REF.
1180 (maybe_fold_offset_to_address): Simplify. Deal with type
1182 (maybe_fold_reference): Likewise.
1183 (maybe_fold_stmt_addition): Likewise. Also handle
1184 &ARRAY + I in addition to &ARRAY[0] + I.
1185 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1186 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1187 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1188 * tree-ssa.c (useless_type_conversion_p): Make most pointer
1189 conversions useless.
1190 (warn_uninitialized_var): Handle MEM_REF.
1191 (maybe_rewrite_mem_ref_base): New function.
1192 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1194 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1195 INDIRECT_REF handling.
1196 (copy_tree_body_r): Handle MEM_REF.
1197 * gimple.c (is_gimple_addressable): Adjust.
1198 (is_gimple_address): Likewise.
1199 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1200 invariant base are invariant.
1201 (is_gimple_min_lval): Adjust.
1202 (is_gimple_mem_ref_addr): New function.
1203 (get_base_address): Handle MEM_REF.
1204 (count_ptr_derefs): Likewise.
1205 (get_base_loadstore): Likewise.
1206 * gimple.h (is_gimple_mem_ref_addr): Declare.
1207 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1208 * tree-cfg.c (verify_address): New function, split out from ...
1209 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
1210 the address operand of MEM_REFs. Verify MEM_REFs. Reject
1212 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
1213 INDIRECT_REF. Allow conversions.
1214 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1215 a register does not change its size.
1216 (verify_types_in_gimple_reference): Verify MEM_REF.
1217 (verify_gimple_assign_single): Disallow INDIRECT_REF.
1219 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1221 (mark_address_taken): Handle MEM_REF.
1222 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1223 (get_asm_expr_operands): Pass opf_not_non_addressable.
1224 (get_expr_operands): Handle opf_[not_]non_addressable.
1225 Handle MEM_REF. Remove INDIRECT_REF handling.
1226 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1227 (search_for_addr_array): Likewise.
1228 (check_array_bounds): Likewise.
1229 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1230 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1231 (ref_always_accessed_p): Likewise.
1232 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
1233 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1235 * cgraphbuild.c (mark_load): Properly check for NULL result
1236 from get_base_address.
1237 (mark_store): Likewise.
1238 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1239 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1240 handling for MEM_REF.
1241 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1242 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1243 * builtins.c (stabilize_va_list_loc): Use the function ABI
1244 valist type if we couldn't canonicalize the argument type.
1245 Always dereference with the canonical va-list type.
1246 (maybe_emit_free_warning): Handle MEM_REF.
1247 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1249 * builtins.c (fold_builtin_memory_op): Use ref-all types
1250 for all memcpy foldings.
1251 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1252 (build_outer_var_ref): Likewise.
1253 (scan_omp_1_op): Likewise.
1254 (lower_rec_input_clauses): Likewise.
1255 (lower_lastprivate_clauses): Likewise.
1256 (lower_reduction_clauses): Likewise.
1257 (lower_copyprivate_clauses): Likewise.
1258 (expand_omp_atomic_pipeline): Likewise.
1259 (expand_omp_atomic_mutex): Likewise.
1260 (create_task_copyfn): Likewise.
1261 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1262 Remove old union trick. Initialize constant offsets.
1263 (ao_ref_init_from_vn_reference): Likewise. Do not handle
1264 INDIRECT_REF. Init base_alias_set properly.
1265 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1266 (vn_reference_fold_indirect): Adjust for MEM_REFs.
1267 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
1269 (may_insert): Remove.
1270 (visit_reference_op_load): Do not test may_insert.
1271 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1272 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1273 a field to store the constant offset this op applies.
1274 (run_scc_vn): Adjust prototype.
1275 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1276 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1277 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
1278 bother about volatile qualifiers on pointers.
1279 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1280 * tree-ssa-loop-ivopts.c
1281 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1282 (strip_offset_1): Likewise.
1283 (find_interesting_uses_address): Replace INDIRECT_REF handling with
1285 (get_computation_cost_at): Likewise.
1286 * ipa-pure-const.c (check_op): Handle MEM_REF.
1287 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1288 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1290 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1291 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1292 (eliminate_local_variables_1): Likewise.
1293 (create_call_for_reduction_1): Likewise.
1294 (create_loads_for_reductions): Likewise.
1295 (create_loads_and_stores_for_name): Likewise.
1296 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1297 (ssa_accessed_in_tree): Handle MEM_REF.
1298 (ssa_accessed_in_assign_rhs): Likewise.
1299 (update_type_size): Likewise.
1300 (analyze_accesses_for_call_stmt): Likewise.
1301 (analyze_accesses_for_assign_stmt): Likewise.
1302 (transform_access_sites): Likewise.
1303 (transform_allocation_sites): Likewise.
1304 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1305 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1306 not handle INDIRECT_REF.
1307 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1308 (cond_store_replacement): Likewise.
1309 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1310 MEM_REF, no not handle INDIRECT_REFs.
1311 (insert_into_preds_of_block): Properly initialize avail.
1312 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
1313 for ARRAY_REFs. Properly handle reference lookups that
1314 require a bit re-interpretation.
1315 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
1316 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1317 (build_ref_for_offset_1): Remove.
1318 (build_ref_for_offset): Build MEM_REFs.
1319 (gate_intra_sra): Disable for now.
1320 (sra_ipa_modify_expr): Handle MEM_REF.
1321 (ipa_early_sra_gate): Disable for now.
1322 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1324 (disqualify_base_of_expr): Likewise.
1325 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1327 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1328 Use mem_ref_offset. Remove bogus folding.
1329 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1330 (make_fancy_name_1): Add support for MEM_REF.
1331 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1332 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1333 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1334 (compute_complex_ancestor_jump_func): Likewise.
1335 (ipa_analyze_virtual_call_uses): Likewise.
1336 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1337 INDIRECT_REF folding with more generalized MEM_REF folding.
1338 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1339 (forward_propagate_addr_into_variable_array_index): Also handle
1340 &ARRAY + I in addition to &ARRAY[0] + I.
1341 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1342 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1343 creates assignments with overlap.
1344 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1345 (get_frame_field): Likewise.
1346 (get_nonlocal_debug_decl): Likewise.
1347 (convert_nonlocal_reference_op): Likewise.
1348 (struct nesting_info): Add mem_refs pointer-set.
1349 (create_nesting_tree): Allocate it.
1350 (convert_local_reference_op): Insert to be folded mem-refs.
1351 (fold_mem_refs): New function.
1352 (finalize_nesting_tree_1): Perform defered folding of mem-refs
1353 (free_nesting_tree): Free the pointer-set.
1354 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1355 (vectorizable_load): Likewise.
1356 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1357 (propagate_with_phi): Likewise.
1358 * tree-object-size.c (addr_object_size): Handle MEM_REFs
1359 instead of INDIRECT_REFs.
1360 (compute_object_offset): Handle MEM_REF.
1361 (plus_stmt_object_size): Handle MEM_REF.
1362 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1364 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1365 (symbol_marked_for_renaming): Likewise.
1366 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1367 (fold-const.o): Add $(TREE_FLOW_H).
1368 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1369 (find_func_clobbers): Likewise.
1370 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1371 (decompose_access): Likewise.
1372 (replace_field_acc): Likewise.
1373 (replace_field_access_stmt): Likewise.
1374 (insert_new_var_in_stmt): Likewise.
1375 (get_stmt_accesses): Likewise.
1376 (reorg_structs_drive): Disable.
1377 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1378 (ix86_canonical_va_list_type): Likewise.
1380 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1383 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1384 * target.def (struct gcc_target): Replace enum reg_class with
1385 reg_class_t in hook argument / return types.
1386 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1387 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1388 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1389 * targhooks.h (default_branch_target_register_class): Likewise.
1390 (default_ira_cover_classes, default_secondary_reload): Likewise.
1391 (default_memory_move_cost, default_register_move_cost): Likewise.
1392 * targhooks.c (default_branch_target_register_class): Likewise.
1393 (default_ira_cover_classes, default_secondary_reload): Likewise.
1394 (default_memory_move_cost, default_register_move_cost): Likewise.
1395 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1396 * bt-load.c (branch_target_load_optimize): Likewise.
1397 * ira.c (setup_cover_and_important_classes): Likewise.
1398 * ira-costs.c (copy_cost): Likewise.
1399 * reload1.c (emit_input_reload_insns): Likewise.
1400 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1401 * config/frv/frv.c (frv_secondary_reload): Likewise.
1402 * config/s390/s390.c (s390_secondary_reload): Likewise.
1403 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1404 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1405 (ix86_register_move_cost): Likewise.
1406 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1407 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1408 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1409 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1410 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1411 (rs6000_ira_cover_classes): Likewise.
1412 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1413 * config/picochip/picochip-protos.h (picochip_secondary_reload):
1415 * config/pa/pa.c (pa_secondary_reload): Likewise.
1416 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1417 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1418 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1419 * doc/tm.texi: Regenerate.
1421 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
1424 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1426 (build_alias_set_optimal_p): Likewise.
1427 (build_base_obj_set_for_drs): Likewise.
1429 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1431 * target.def: Remove comment about licensing problems of function
1434 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
1435 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1436 * doc/tm.texi: Regenerate.
1438 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
1439 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1441 * target.def (enum_va_list_p): Use DEFHOOK.
1442 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1443 Rename ptype to ptree.
1444 * doc/tm.texi: Regenerate.
1446 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
1447 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1448 * doc/tm.texi: Regenerate.
1450 * target.def (memory_move_cost): Use DEFHOOK.
1451 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1452 Rename regclass AKA class to rclass.
1453 * doc/tm.texi: Regenerate.
1455 * target.def (pragma_parse): Use DEFHOOK.
1456 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1457 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1458 * doc/tm.texi: Regenerate.
1460 * target.def (pass_by_reference): Use DEFHOOK.
1461 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1462 * doc/tm.texi: Regenerate.
1464 * target.def (resolve_overloaded_builtin): Rename params to arglist.
1466 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1467 * doc/tm.texi: Regenerate.
1469 * target.def (return_pops_args): Use DEFHOOK.
1470 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1471 Rename stack-size to size.
1472 * doc/tm.texi: Regenerate.
1474 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
1475 last-sched_cycle to last_clock, cur_cycle to clock.
1476 * doc/tm.texi.in: Use @hook.
1477 * doc/tm.texi: Regenerate.
1479 * target.def (print_operand, print_operand_address): Update comment.
1480 (print_operand_punct_valid_p): Likewise.
1482 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1484 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1486 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1487 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1489 * regrename.c: Do not include toplev.h. Include rtl-error.h.
1490 * rtl-error.c: Likewise.
1491 * reload.c: Likewise.
1492 * recog.c: Likewise.
1493 * sel-sched.c: Likewise.
1494 * function.c: Likewise.
1495 * reg-stack.c: Likewise.
1496 * cfgrtl.c: Likewise.
1497 * reload1.c: Likewise.
1498 * final.c: Include rtl-error.
1499 * Makefile.in: Adjust dependencies.
1501 2010-06-30 Jan Hubicka <jh@suse.cz>
1503 PR middle-end/PR44706
1504 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1505 to return the value.
1507 2010-06-30 Michael Matz <matz@suse.de>
1510 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1511 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1512 a gimple reg, attach the original VDEF to the last store in the
1515 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
1518 * config/darwin.c (darwin_override_options): Use renamed
1519 targetm.asm_out.emit_unwind_label.
1521 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1523 PR tree-optimization/39799
1524 * tree-inline.c (remap_ssa_name): Initialize variable only if
1525 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1527 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
1529 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1531 2010-06-30 Richard Guenther <rguenther@suse.de>
1534 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1535 against oscillation with reverse peephole2.
1537 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
1540 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1543 2010-06-30 Nick Clifton <nickc@redhat.com>
1545 * config/rx/rx-modes.def: New file.
1546 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1547 (CC_REGNUM): Define.
1548 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1550 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1551 (SELECT_CC_MODE): Define.
1552 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
1553 (reg:CC CC_REG) instead of (cc0).
1554 (attr "cc"): Delete.
1555 (cbranchsi4): Do not split compare and branch here. Instead move
1557 (cbranchsi4_<code>): ... here. New patterns.
1558 (cmpsi): Call rx-compare_redundant to find out if it is necessary
1559 to emit the compare instruction.
1560 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1562 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1563 FIRST_PSEUDO_REGNUM.
1564 (rx_expand_prologue, rx_expand_epilogue): Likewise.
1565 (rx_notice_update_cc): Delete.
1566 (rx_cc_modes_compatible): New function.
1567 (flags_needed_for_conditional): New function.
1568 (flags_from_mode): New function.
1569 (rx_compare_redundant): New function - scans backwards through
1570 insn list to find out if condition flags are already set correctly.
1571 (TARGET_CC_MODES_COMPATIBLE): Define.
1572 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1574 * config/rx/rx.h (BRANCH_COST): Define.
1575 (REGISTER_MOVE_COST): Define.
1576 * config/rx/predicates (rx_source_operand): Allow all constant types.
1577 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1578 (tstsi4): New pattern.
1579 * config/rx/rx.c (rx_memory_move_cost): Define.
1580 (TARGET_MEMORY_MOVE_COST): Define.
1582 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1584 * tree.h (block_may_fallthru): Declare here.
1585 * tree-flow.h (block_may_fallthru): Do not declare here.
1586 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1588 * Makefile.in (c-typeck.o): Update dependencies.
1590 2010-06-30 Jakub Jelinek <jakub@redhat.com>
1593 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1594 * cselib.c (cfa_base_preserved_regno): New static variable.
1595 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1596 of REGNO (cfa_base_preserved_val->locs->loc).
1597 (cselib_preserve_cfa_base_value): Add regno argument, set
1598 cfa_base_preserved_regno to it.
1599 (cselib_invalidate_regno): Allow removal of registers other than
1600 cfa_base_preserved_regno from cfa_base_preserved_val.
1601 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1602 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1603 of MEM addresses, if not on LHS.
1604 (reverse_op): Don't add reverse ops for cfa_base_rtx.
1605 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1607 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1609 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1611 (peep2_buf_position): New static function.
1612 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1613 peephole2_optimize): Use it.
1614 (peep2_attempt, peep2_update_life): New static functions, broken out
1615 of peephole2_optimize.
1616 (peep2_fill_buffer): New static function.
1617 (peephole2_optimize): Change the main loop to try to fill the buffer
1618 with the maximum number of insns before matching them against
1619 peepholes. Use a forward scan. Remove special case for targets with
1620 conditional execution.
1621 * genrecog.c (change_state): Delete dead code.
1622 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1623 Rewrite so as not to expect the second insn to have had a peephole
1626 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1628 * genhooks.c (emit_findices): Cast field precision to int.
1629 (emit_documentation): Likewise.
1631 2010-06-29 Jakub Jelinek <jakub@redhat.com>
1633 PR tree-optimization/43801
1634 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1635 if old_decl was DECL_ONE_ONLY.
1638 * dwarf2out.c (add_accessibility_attribute): New function.
1639 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1640 instead of adding DW_AT_accessibility manually.
1641 (gen_enumeration_type_die, gen_struct_or_union_type_die,
1642 gen_typedef_die): Use it.
1644 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1646 * vmsdbgout.c (full_name): Just output the file name if not native.
1648 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1650 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
1651 (funcnam_table): New static table.
1652 (funcnum_table): New static table.
1653 (write_rtnbeg): Write value saved in funcnum_table.
1654 (write_rtnend): Write value saved in funcnum_table.
1655 (vmsdbgout_begin_function): Save current function info in
1656 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
1657 (vmsdbgout_finish): Iterate over funcnum_table.
1659 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1661 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
1662 (vmsdbgout_type_decl): Declare
1663 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
1664 (FUNC_EPILOGUE_LABEL): New macro
1665 (vmsdbgout_begin_epilogue): New function.
1666 (vmsdbgout_type_decl): New function.
1668 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1670 * vmsdbg.h: Update copyright.
1672 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1674 * vmsdbg.h (DST_K_TBG): New DST constant.
1675 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
1676 (write_modbeg): Cast module_language to avoid warning.
1677 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
1679 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1682 * target.def, doc/tm.texi.in, genhooks.c: New files.
1683 * target.h: Instead of defining individual hook members,
1684 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
1686 * target-def.h: Instead of defining individual hook initializers,
1687 include target-hooks-def.h.
1688 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
1689 targetm.live_on_entry -> targetm.extra_live_on_entry
1690 targetm.sched.md_finish ->targetm.sched.finish
1691 targetm.sched.md_init -> targetm.sched.init
1692 targetm.sched.md_init_global -> targetm.sched.init_global
1693 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
1694 targetm.asm_out.except_table_label ->
1695 targetm.asm_out.emit_except_table_label
1696 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
1697 targetm.target_help -> targetm.help
1698 targetm.vectorize.builtin_support_vector_misalignment ->
1699 targetm.vectorize.support_vector_misalignment
1700 targetm.file_start_app_off -> targetm.asm_file_start_app_off
1701 targetm.file_start_file_directive ->
1702 targetm.asm_file_start_file_directive
1703 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
1704 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
1705 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
1706 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
1707 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
1708 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
1709 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
1710 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
1711 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
1712 * Makefile.in (TARGET_H): Depend on target.def.
1713 (TARGET_DEF_H): Depend on target-hooks-def.h.
1714 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
1715 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
1716 * doc/tm.texi: Regenerate.
1718 * Makefile.in (s-tm-texi): Remove stray tab / rule.
1720 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
1721 (targetm.sched.init): Likewise.
1723 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1726 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
1727 (function_arg_advance_32): Const-ify TYPE parameter.
1728 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
1729 (ix86_function_arg_advance): Change type of NAMED to bool.
1730 (function_arg_32): Const-ify CUM and TYPE parameters.
1731 (function_arg_64): Likewise. Change type of NAMED to bool.
1732 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
1734 (ix86_function_arg): Change type of NAMED to bool.
1735 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
1736 last argument as a bool.
1738 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1740 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
1741 (OVERRIDE_OPTIONS): Add note of obsolescence.
1742 Replace references with references to TARGET_OPTION_OVERRIDE.
1743 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
1745 * targhooks.c (default_target_option_override): New function.
1746 * targhooks.h (default_target_option_override): Declare.
1747 * target.h (struct gcc_target): Add override member to
1748 target_option member.
1749 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
1750 targetm.target_option.override call.
1751 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
1752 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
1754 2010-06-29 Jan Hubicka <jh@suse.cz>
1756 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
1758 2010-06-29 Jan Hubicka <jh@suse.cz>
1760 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
1762 (rebuild_frequencies): New function.
1763 * predict.h (rebuild_frequencies): Declare.
1764 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
1765 entry block and edge reaching new_entry.
1766 (tree_function_versioning): When doing partial cloning, rebuild
1767 frequencies when done.
1768 * passes.c (execute_function_todo): Use rebild_frequencies.
1770 2010-06-29 Richard Guenther <rguenther@suse.de>
1772 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
1773 * tree-flow.h (enum noalias_state): Remove.
1774 (struct var_ann_d): Remove noalias_state member.
1776 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1779 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
1780 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
1781 (maddhidi4): Likewise.
1783 Revert parts of the change for PR25130.
1784 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1787 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1789 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
1790 targetm.calls.function_incoming_arg, and
1791 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
1792 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
1793 * target.h (struct gcc_target): Add function_arg_advance,
1794 function_arg, and function_incoming_arg fields.
1795 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
1796 (TARGET_FUNCTION_INCOMING_ARG): Define.
1797 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
1798 and TARGET_FUNCTION_INCOMING_ARG.
1799 * targhooks.h (default_function_arg_advance): Declare.
1800 (default_function_arg, default_function_incoming_arg): Declare.
1801 * targhooks.c (default_function_arg_advance): New function.
1802 (default_function_arg, default_function_incoming_arg): New function.
1803 * config/i386/i386.c (function_arg_advance): Rename to...
1804 (ix86_function_arg_advance): ...this. Make static.
1805 (function_arg): Rename to...
1806 (ix86_function_arg): ...this. Make static.
1807 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1808 (TARGET_FUNCTION_ARG): Define.
1809 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
1810 (FUNCTION_ARG): Delete.
1811 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
1812 (function_arg): Delete prototype.
1814 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1816 * reginfo.c (init_reg_sets_1): Adjust comments.
1817 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
1818 * calls.c (prepare_call_address): Likewise.
1819 (emit_call_1): Use targetm.calls.return_pops_args.
1820 (expand_call): Likewise.
1821 * function.c (assign_parms): Likewise.
1822 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
1823 * target.h (struct gcc_target) [struct calls]: Add
1824 return_pops_args field.
1825 * targhooks.h (default_return_pops_args): Declare.
1826 * targhooks.c (default_return_pops_args): Define.
1827 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
1828 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
1829 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
1830 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
1832 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
1833 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
1834 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
1835 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
1836 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
1837 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
1838 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
1839 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
1840 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
1841 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
1842 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
1843 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
1844 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
1845 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
1846 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
1847 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
1848 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
1849 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
1850 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
1851 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
1852 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
1853 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
1854 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
1855 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
1856 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
1857 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
1858 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
1859 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
1860 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
1861 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
1862 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
1863 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
1864 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
1865 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
1866 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
1867 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
1868 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
1869 * config/i386/i386.c (ix86_return_pops_args): Make static.
1871 (TARGET_RETURN_POPS_ARGS): Define.
1872 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
1873 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
1874 (TARGET_RETURN_POPS_ARGS): Define.
1875 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1876 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
1877 (TARGET_RETURN_POPS_ARGS): Define.
1879 2010-06-29 Richard Guenther <rguenther@suse.de>
1882 * tree-inline.c (initialize_inlined_parameters): Make sure
1883 to remap the inlined parameter variable substitutions types.
1885 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
1887 PR rtl-optimization/44659
1888 * combine.c (make_compound_operation) <SUBREG>: Do not return the
1889 result of force_to_mode if it partially re-expanded the compound.
1891 2010-06-28 Jan Hubicka <jh@suse.cz>
1894 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1897 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1899 * double-int.h (force_fit_type_double): Remove declaration.
1900 * double-int.c (force_fit_type_double): Move to tree.c.
1901 * tree.h (force_fit_type_double): Declare.
1902 * tree.h (force_fit_type_double): Moved from double-int.c. Use
1903 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1904 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1905 * convert.c (convert_to_pointer): Adjust call to
1906 force_fit_type_double.
1907 * tree-vrp.c (extract_range_from_assert,
1908 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1909 * fold-const.c: Update comment.
1910 (int_const_binop, fold_convert_const_int_from_int,
1911 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1912 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1913 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1914 round_up_loc): Adjust call to force_fit_type_double.
1916 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1918 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1920 2010-06-28 Martin Jambor <mjambor@suse.cz>
1922 * tree-sra.c (convert_callers): New parameter, change fndecls of
1924 (modify_function): Pass the old decl to convert_callers.
1926 2010-06-28 Martin Jambor <mjambor@suse.cz>
1928 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1929 ipa_check_create_node_params and ipa_initialize_node_params with
1930 checking asserts they are not necessary.
1932 2010-06-28 Jan Hubicka <jh@suse.cz>
1934 PR tree-optimization/44687
1935 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1937 2010-06-28 Martin Jambor <mjambor@suse.cz>
1940 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
1941 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
1942 instead of BINFO_BASE_BINFO.
1944 2010-06-28 Michael Matz <matz@suse.de>
1947 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
1948 proper VDEF chain for intermediate stores in the sequence.
1950 2010-06-28 Jan Hubicka <jh@suse.cz>
1952 PR tree-optimization/44357
1953 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
1954 uninlinable functions.
1956 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1958 * config.gcc (powerpc*-*-*): Handle titan.
1959 * config/rs6000/rs6000.c (titan_cost): New costs.
1960 (rs6000_override_options): Add "titan" to processor_target_table.
1961 Add Titan to branch alignment logic.
1962 Correctly set rs6000_cost for titan.
1963 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
1964 * config/rs6000/titan.md: New file.
1965 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
1967 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
1969 * tree-browser.c (TB_history_stack): Convert to a VEC.
1970 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
1971 (TB_history_prev): Likewise.
1973 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
1975 * vec.h (vec_heap_free): Add parentheses around free.
1977 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1979 * system.h: Poison GCC_EXCEPT_H for front-end files.
1981 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
1983 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
1984 Define to NULL by default.
1985 * except.h: Define GCC_EXCEPT_H.
1986 (doing_eh): Remove prototype.
1987 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
1988 (lang_protect_cleanup_actions): Remove.
1989 * except.c (lang_protect_cleanup_actions): Remove.
1991 (gen_eh_region): Don't check doing_eh here.
1992 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
1993 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
1994 instead of lang_protect_cleanup_actions.
1995 * omp-low.c (maybe_catch_exception): Likewise.
1996 * Makefile.in: Update dependencies.
1998 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
2000 * cgraph.h (struct varpool_node): new used_from_object_file flag.
2001 (struct cgraph_local_info): new used_from_object_file flag.
2002 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2003 (cgraph_clone_node): initialize used_from_object_file.
2004 (cgraph_create_virtual_clone): initialize used_from_object_file.
2005 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2006 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2007 when compiling with -fwhole-program.
2008 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2010 * ipa.c (function_and_variable_visibility): Set externally_visible
2011 flag of varpool_node if used_from_object_file flag is set.
2012 (cgraph_externally_visible_p): check used_from_object_file flag.
2013 * doc/invoke.texi (-fwhole-program option): Change description of
2014 externally_visible attribute accordingly.
2015 * doc/extend.texi (externally_visible): Ditto.
2017 2010-06-27 Jan Hubicka <jh@suse.cz>
2019 * params.def (max-inline-insns-auto): Default to 40.
2020 * doc/invoke.texi (max-inline-insns-auto): Document the change.
2022 2010-06-27 Jan Hubicka <jh@suse.cz>
2026 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2028 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2029 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2031 2010-06-27 Anatoly Sokolov <aesok@post.ru>
2033 * target.h (struct gcc_target): Add register_move_cost field.
2034 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2035 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2036 * targhooks.c (default_register_move_cost): New function.
2037 * targhooks.h (default_register_move_cost): Declare function.
2038 * defaults.h (REGISTER_MOVE_COST): Delete.
2039 * ira-int.h (ira_register_move_cost): Update comment.
2040 * ira.c: (ira_register_move_cost): Update comment.
2041 * reload.h (register_move_cost): Declare.
2042 * reginfo.c (register_move_cost): New function.
2043 (move_cost): Update comment.
2044 (init_move_cost, memory_move_secondary_cost): Replace
2045 REGISTER_MOVE_COST with register_move_cost.
2046 * postreload.c (reload_cse_simplify_set): (Ditto.).
2047 * reload.c (find_valid_class, find_reloads): (Ditto.).
2048 * reload1.c (choose_reload_regs): (Ditto.).
2049 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2050 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2051 * doc/md.texi (can_create_pseudo_p): Update documentation.
2053 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2054 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2055 * config/i386/i386.h (ix86_memory_move_cost): Make static.
2056 (TARGET_MEMORY_MOVE_COST): Define.
2058 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2059 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2060 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2061 (TARGET_MEMORY_MOVE_COST): Define.
2063 2010-06-27 Richard Guenther <rguenther@suse.de>
2065 PR tree-optimization/44683
2066 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2067 false edge from the inverted condition.
2069 2010-06-27 Richard Guenther <rguenther@suse.de>
2072 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2073 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2074 for register LHS. Or non-store assignments.
2076 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
2078 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2079 (sparc_emit_set_const64): Likewise. Remove disabled code.
2080 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2081 (sparc_emit_set_const64): Likewise.
2083 2010-06-26 Catherine Moore <clm@codesourcery.com>
2085 * config/mips/mips.md (alu_type): New attribute.
2086 (type): Infer type from alu_type.
2087 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2088 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2089 *subsi3_extended, negsi2, negdi2, *low<mode>,
2090 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2091 xor<mode>3, *nor<mode>3,
2092 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2093 *zero_extendhi_truncqi): Set alu_type instead of type.
2095 2010-06-26 Douglas B Rupp <rupp@gnat.com>
2097 * config/alpha/alpha.c (alpha_need_linkage): Adjust
2098 splay_tree_new_ggc call.
2099 (alpha_use_linkage): Likewise.
2101 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2103 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2104 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2105 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2106 (static_specs): Remove switches_need_spaces.
2107 (process_command, do_self_spec): Hardcode handling "-o" instead of
2108 checking switches_need_spaces.
2109 * system.h (SWITCHES_NEED_SPACES): Poison.
2111 2010-06-26 Richard Guenther <rguenther@suse.de>
2113 PR tree-optimization/44393
2114 * tree-loop-distribution.c (generate_loops_for_partition): Fix
2115 stmt removal and VOP renaming.
2116 (generate_memset_zero): Remove redundant stmt updating.
2117 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2118 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2120 2010-06-26 Jan Hubicka <jh@suse.cz>
2122 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2123 edges comming from header are equivalent.
2124 (visit_bb): Handle PHIs correctly.
2125 * tree-inline.c (copy_phis_for_bb): Be able to copy
2126 PHI from entry edge.
2127 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2129 2010-06-26 Richard Guenther <rguenther@suse.de>
2132 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2133 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
2135 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2137 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2138 add_infile, alloc_switch): New.
2139 (process_command): Remove variable lang_n_infiles. Process
2140 options in a single pass. Use new functions for allocating
2141 infiles and switches arrays. Properly skip operands of
2142 -Xpreprocessor and -Xassembler.
2144 2010-06-26 Jan Hubicka <jh@suse.cz>
2147 * cgraphunit.c (cgraph_function_versioning): Remove wrong
2148 cgraph_make_decl_local call; fix typo copying RTL data.
2150 2010-06-25 DJ Delorie <dj@redhat.com>
2152 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2153 (m32c_output_aligned_common): Likewise.
2154 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2155 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2156 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2157 (m32c_register_pragmas): Register it.
2158 * config/m32c/m32c.c (m32c_get_pragma_address): New.
2159 (m32c_insert_attributes): Set #pragma address decls volatile.
2160 (pragma_entry_eq): New.
2161 (pragma_entry_hash): New.
2162 (m32c_note_pragma_address): New.
2163 (m32c_get_pragma_address): New.
2164 (m32c_output_aligned_common): New.
2165 * doc/extend.texi: Document the new pragma.
2167 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2169 * config/m32c/predicates.md (m32c_any_operand): Check the code
2170 instead of memory_operand so as to allow matching volatile MEMs.
2171 (m32c_nonimmediate_operand): Likewise.
2172 (mra_operand): Allow volatiles.
2174 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
2177 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2178 address if the offset is unknown.
2180 2010-06-25 Douglas B Rupp <rupp@gnat.com>
2182 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2183 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2184 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2185 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2186 to ia64_start_function. Invoke it.
2187 * config/ia64/ia64.c (ia64_start_function): Call new function
2188 dwarf2out_vms_debug_main_pointer.
2190 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2192 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2193 statements computing the true predicate.
2195 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2197 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2198 to boolean_true_node.
2199 (reset_bb_predicate): New.
2200 (predicate_bbs): Call reset_bb_predicate.
2202 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2204 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2205 (tree_if_conversion): Returns true when something has been changed.
2206 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2209 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2211 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2212 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2213 * tree-if-conv.c: Include dbgcnt.h.
2214 (tree_if_conversion): Use if_conversion_tree to count the number of
2215 if-convertible loops.
2217 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
2219 * common.opt (fprefetch-loop-arrays): Re-define
2220 -fprefetch-loop-arrays as a tri-state option with the initial
2222 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2223 pass only when flag_prefetch_loop_arrays > 0.
2224 * toplev.c (process_options): Note that, with tri-states,
2225 flag_prefetch_loop_arrays>0 means prefetching is enabled.
2226 * config/i386/i386.c (override_options): Enable prefetching at -O3
2227 for a set of CPUs that sw prefetching is helpful.
2228 (software_prefetching_beneficial_p): New. Return TRUE if software
2229 prefetching is beneficial for the given CPU.
2231 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2233 PR rtl-optimization/44326
2234 * implicit-zee.c (find_removable_zero_extends): Replace
2235 INSN_P with NONDEBUG_INSN_P.
2237 2010-06-25 Martin Jambor <mjambor@suse.cz>
2239 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2240 (struct ipa_node_params): Removed the modification_analysis_done flag.
2241 (ipa_is_param_modified): Removed.
2242 (ipa_analyze_node): Declare.
2243 (ipa_compute_jump_functions): Remove declaration.
2244 (ipa_count_arguments): Likewise.
2245 (ipa_detect_param_modifications): Likewise.
2246 (ipa_analyze_params_uses): Likewise.
2247 * ipa-prop.c (struct param_analysis_info): New type.
2248 (visit_store_addr_for_mod_analysis): Removed.
2249 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2250 moved down in the file.
2251 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2252 (ipa_count_arguments): Made static.
2253 (mark_modified): New function.
2254 (is_parm_modified_before_call): New function.
2255 (compute_pass_through_member_ptrs): New parameter parms_info, call
2256 is_parm_modified_before_call instead of ipa_is_param_modified.
2257 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2258 it to compute_pass_through_member_ptrs.
2259 (ipa_compute_jump_functions): New parameter parms_info, pass it to
2260 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
2261 on the callee if it is analyzed. Made static.
2262 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2263 is_parm_modified_before_call instead of ipa_is_param_modified.
2264 (ipa_analyze_call_uses): New parameter parms_info, pass it to
2265 ipa_analyze_indirect_call_uses.
2266 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2267 ipa_analyze_call_uses.
2268 (ipa_analyze_params_uses): New parameter parms_info, pass it to
2269 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
2270 (ipa_analyze_node): New function.
2271 (ipa_print_node_params): Do not dump the modified flag.
2272 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2273 it. Do not stream the modified parameter flag.
2274 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2275 it. Do not stream the modified parameter flag.
2276 * ipa-cp.c (ipcp_analyze_node): Removed.
2277 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2278 with only a call to ipa_analyze_node.
2279 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2280 node with only a call to ipa_analyze_node.
2282 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2284 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2286 2010-06-25 Jan Hubicka <jh@suse.cz>
2288 * tree-pass.h (pass_split_functions): Declare.
2289 * opts.c (decode_options): Enable function splitting at -O2
2290 * timevar.def (TV_IPA_FNSPLIT): New macro.
2291 * ipa-split.c: New file.
2292 * common.opt (-fpartial-inlining): New flag.
2293 * Makefile.in (ipa-split.o): New object file.
2294 * passes.c (init_optimization_passes): Add ipa-split.
2295 * params.def (partial-inlining-entry-probability): New parameters.
2296 * doc/invoke.texi (-fpartial-inlining): New.
2298 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2301 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2302 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2303 (gimplify_expr): Likewise.
2305 2010-06-25 Martin Jambor <mjambor@suse.cz>
2307 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2308 statements instead of bailing out on them.
2309 (ipa_analyze_indirect_call_uses): Do not require that loads from the
2310 parameter are in the same BB as the condition. Update comments.
2312 2010-06-25 Jakub Jelinek <jakub@redhat.com>
2315 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2316 true or always false, return NULL_TREE.
2317 (tree_unswitch_single_loop): Optimize conditions even when reaching
2318 max-unswitch-level parameter. If num > 0, optimize first all conditions
2319 using entry checks, then do still reachable block discovery and consider
2320 only conditions in still reachable basic blocks in the loop.
2322 PR tree-optimization/44539
2323 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2324 the call doesn't have LHS, but has VDEF.
2326 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2328 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2329 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2330 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2331 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2332 * system.h (MODIFY_TARGET_NAME): Poison.
2334 2010-06-25 Alan Modra <amodra@gmail.com>
2336 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2337 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2338 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2339 CMODEL_LARGE as default.
2340 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2341 (offsettable_ok_by_alignment): Delete.
2342 (rs6000_emit_move): Remove mcmodel=medium optimization.
2344 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2346 With large parts from Jim Wilson:
2348 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2349 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2350 * optabs.c (optab_for_tree_code): Likewise.
2351 (expand_widen_pattern_expr): Likewise.
2352 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2353 out of execute_optimize_widening_mul.
2354 (convert_plusminus_to_widen): New function.
2355 (execute_optimize_widening_mul): Use the two new functions.
2356 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2357 Remove code to generate widening multiply-accumulate. Add support
2358 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2359 * gimple-pretty-print.c (dump_ternary_rhs): New function.
2360 (dump_gimple_assign): Call it when appropriate.
2361 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2362 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2363 (expand_gimple_stmt_1): Likewise.
2364 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2365 WIDEN_MULT_MINUS_EXPR.
2366 * tree-ssa-operands.c (get_expr_operands): Likewise.
2367 * tree-inline.c (estimate_operator_cost): Likewise.
2368 * gimple.c (extract_ops_from_tree_1): Renamed from
2369 extract_ops_from_tree. Add new arg for a third operand; fill it.
2370 (gimple_build_assign_stat): Support operations with three operands.
2371 (gimple_build_assign_with_ops_stat): Likewise.
2372 (gimple_assign_set_rhs_from_tree): Likewise.
2373 (gimple_assign_set_rhs_with_ops_1): Renamed from
2374 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
2375 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2376 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2377 WIDEN_MULT_MINUS_EXPR.
2378 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2379 (extract_ops_from_tree_1): Adjust declaration.
2380 (gimple_assign_set_rhs_with_ops_1): Likewise.
2381 (gimple_build_assign_with_ops): Pass NULL for last operand.
2382 (gimple_build_assign_with_ops3): New macro.
2383 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2384 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2386 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2387 (verify_gimple_assign): Call it.
2388 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2389 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2390 functions for dealing with three-operand statements.
2391 * tree.c (commutative_ternary_tree_code): New function.
2392 * tree.h (commutative_ternary_tree_code): Declare it.
2393 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2395 (gimple_assign_nonzero_warnv_p): Likewise.
2396 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2397 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2398 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
2399 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2400 (struct hashtable_expr): New member ternary in the union.
2401 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2402 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
2403 (iterative_hash_hashable_expr): Likewise.
2404 (print_expr_hash_elt): Handle EXPR_TERNARY.
2405 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2406 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2407 statements. Handle GIMPLE_TERNARY_RHS.
2409 2010-06-25 Jan Hubicka <jh@suse.cz>
2411 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2413 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
2416 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2417 parameters are not good.
2418 (c_parser_parameter_declaration): Error unknown type name if the type
2419 name can't start declaration specifiers.
2421 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2423 * gcc.c (translate_options): Don't mention +e in comment.
2424 (process_command): Don't handle +e specially.
2426 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2428 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2430 * ira-build.c (merge_hard_reg_conflicts): New function.
2431 (create_cap_allocno, copy_info_to_removed_store_destinations,
2432 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2433 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2434 (remove_unnecessary_allocnos, remove_low_level_allocnos)
2435 copy_nifo_to_removed_store_destination): Use them.
2436 * ira-lives.c (make_hard_regno_born): New function, split out of
2438 (make_allocno_born): Likewise.
2439 (make_hard_regno_dead): New function, split out of make_regno_dead.
2440 (make_allocno_dead): Likewise.
2441 (inc_register_pressure): New function, split out of set_allocno_live.
2442 (dec_register_pressure): New function, split out of clear_allocno_live.
2443 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2444 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
2445 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2446 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
2447 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2448 mark_pseudo_regno_live.
2449 (process_bb_node_lives): Use mark_pseudo_regno_live,
2450 make_hard_regno_born and make_allocno_dead.
2451 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2452 set_allocno_live, clear_allocno_live): Delete functions.
2454 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2455 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2457 (ira_flattening): Use ira_parent_allocno.
2458 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2459 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2461 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2464 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2465 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2466 minmax_set_iter_cond, minmax_set_iter_next,
2467 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2468 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2469 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2470 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
2473 * ira-int.h (struct live_range, live_range_t): Renamed from struct
2474 ira_allocno_live_range and allocno_live_range_t; all uses changed.
2475 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2478 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
2480 * thumb2.md (thumb2_tlobits_cbranch): Delete.
2481 (peephole2 to convert zero_extract/compare of single bit to
2482 lshift/compare): New.
2484 2010-06-24 Anatoly Sokolov <aesok@post.ru>
2486 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2487 recursive call and call to 'int_const_binop'.
2488 (build_range_check, fold_cond_expr_with_comparison, unextend,
2489 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2490 multiple_of_p): Adjust call to const_binop.
2492 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
2494 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2495 determine size of XFmode operand.
2496 (XFmode extended DFmode push splitter): Ditto.
2497 (XFmode extended SFmode push splitter): Ditto.
2499 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
2502 * config/i386/i386.md (extract_code): New.
2503 (<u>divmodqi4): Likewise.
2504 (divmodhiqi3): Likewise.
2505 (udivmodhiqi3): Likewise.
2506 (<u>divqi3): Remvoved.
2508 2010-06-24 Jakub Jelinek <jakub@redhat.com>
2511 * recog.h (struct recog_data): Add is_asm field.
2512 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2513 present in constraints of inline-asm operand and memory operand
2514 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2515 (extract_insn): Initialize recog_data.is_asm.
2516 * doc/md.texi (Constraints): Document operand side-effect rules.
2518 2010-06-24 Andi Kleen <ak@linux.intel.com>
2520 * c-parser.c (c_parser_conditional_expression): Call
2521 warn_for_omitted_condop.
2522 * doc/invoke.texi: Document omitted condop warning.
2524 2010-06-24 Nick Clifton<nickc@redhat.com>
2526 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2527 insn in the sequence is a jump insn before setting its label.
2529 2010-06-24 Alan Modra <amodra@gmail.com>
2531 * collect2.c (main): Match exactly --version and --help.
2533 2010-06-24 DJ Delorie <dj@redhat.com>
2535 * config/m32c/m32c-pragma.c: Don't include rtl.h.
2537 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
2539 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2540 using X87MODEF mode iterator.
2541 (pushsf splitter): Macroize splitter using P mode iterator.
2542 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2545 (*movxf_internal): Rename from *movxf_integer.
2546 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2547 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2548 (*movdf_internal): Rename from *movdf_integer.
2549 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2550 (*movsf_internal): Rename from *movdf_1.
2552 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
2554 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2555 (const_gimple_seq_node): Removed typedefs.
2557 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2558 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2560 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
2562 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2563 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2564 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2565 and CODE_FOR_vec_extract_lo_v4df.
2567 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2568 Changed to define_insn_and_split.
2569 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2570 (vec_extract_lo_v16hi): Likewise.
2571 (vec_extract_lo_v32qi): Likewise.
2572 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2573 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2575 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
2578 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2579 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2580 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2581 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2582 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2585 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2588 * df-core.c (struct df): Rename to df_d.
2589 * df.h (struct df): Likewise.
2590 * dse.h (struct df): Remove forward declaration.
2591 * recog.h (struct insn_data): Rename to:
2592 (struct_insn_data_d). Adjusted all users.
2594 2010-06-23 Arnaud Charlet <charlet@adacore.com
2597 * doc/install.texi: Update requirements to build GNAT.
2599 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
2601 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2603 (m68k_sched_attr_opx_type): Remove unreachable return.
2604 (m68k_sched_attr_opy_type): Likewise.
2605 (m68k_sched_attr_size): Likewise.
2606 (sched_get_opxy_mem_type): Likewise.
2607 (m68k_sched_attr_op_mem): Likewise.
2609 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
2611 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2612 new statement and adjust VDEF only if necessary. Remove superfluous
2613 call to maybe_clean_or_replace_eh_stmt.
2614 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2616 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2617 * tree-inline.c (copy_bb): ...and not there.
2619 2010-06-22 Cary Coutant <ccoutant@google.com>
2621 * dwarf2out.c (is_nested_in_subprogram): New function.
2622 (should_move_die_to_comdat): Use it.
2623 (copy_ancestor_tree): Don't mark DIEs here.
2624 (copy_decls_walk): Start walk from root of newly-added tree;
2625 mark DIEs here instead.
2627 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
2629 * config/i386/i386.md (unit): Also check sseishft1.
2631 2010-06-22 Jan Hubicka <jh@suse.cz>
2633 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2636 2010-06-22 Jan Hubicka <jh@suse.cz>
2638 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2639 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2640 Return true if something changed.
2641 * df.h (df_confluence_function_n): Return bool.
2642 * df-core.c (df_worklist_propagate_forward,
2643 df_worklist_propagate_backward): Track changes and ages.
2644 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
2646 * dse.c (dse_confluence_n): Return always true.
2648 2010-06-22 Jan Hubicka <jh@suse.cz>
2650 * bitmap.c (bitmap_clear_bit): Micro optimize.
2652 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
2654 * config/i386/i386.md (SWI1248x): New mode iterator.
2659 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
2660 SWI1248x mode iterator.
2661 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
2662 using SWI124 mode iterator.
2663 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
2665 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
2666 *pushdi2_prologue_rex64 using P mode iterator.
2667 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
2668 using SWI48 mode iterator.
2669 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
2670 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
2671 using SWI1248x mode iterator.
2672 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
2673 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
2674 SWI48 mode iterator.
2675 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
2677 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
2678 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
2679 SWI12 mode iterator.
2680 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
2681 SWI12 mode iterator.
2682 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
2683 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
2684 SWI24 mode iterator.
2685 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
2686 SWI48 mode iterator.
2687 (mov<mode>_insn_1): New expander.
2688 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
2689 using SWI48x mode iterator.
2691 (*movoi_internal_avx): Rename from *movoi_internal.
2692 (*movti_internal_rex64): Rename from *movti_rex64.
2693 (*movti_internal_sse): Rename from *movti_sse.
2694 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
2695 (*movdi_internal): Rename from *movdi_2.
2696 (*movsi_internal): Rename from *movsi_1.
2697 (*movhi_internal): Rename from *movhi_1.
2698 (*movqi_internal): Rename from *movqi_1.
2700 (insv): Update the call to gen_movsi_insv_1 for rename.
2701 * config/i386/i386.c (promote_duplicated_reg): Ditto.
2703 2010-06-22 Jan Hubicka <jh@suse.cz>
2705 * passes.c (execute_function_todo): Move call of statistics_fini_pass
2707 (execute_todo) ... this one.
2709 2010-06-22 Alan Modra <amodra@gmail.com>
2712 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2713 * caller-save.c (insert_restore, insert_save): Use non-validate
2714 form of adjust_address.
2716 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2719 * config/pa/pa.c (override_options): Disable
2720 -freorder-blocks-and-partition.
2722 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
2725 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
2727 * config/i386/i386.md (type): Add sseishft1
2729 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
2730 (ppro_insn_load): Likewise.
2731 (ppro_insn_store): Likewise.
2732 (ppro_insn_both): Likewise.
2734 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
2735 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
2737 (*vec_extractv2di_1_avx): Likewise.
2738 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
2739 type. Remove atom_unit.
2740 (*vec_extractv2di_1_sse2): Likewise.
2742 2010-06-21 DJ Delorie <dj@redhat.com>
2744 * diagnostic.h (diagnostic_classification_change_t): New.
2745 (diagnostic_context): Add history and push/pop list.
2746 (diagnostic_push_diagnostics): Declare.
2747 (diagnostic_pop_diagnostics): Declare.
2748 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
2749 from pragmas in a history chain instead of the global table.
2750 (diagnostic_push_diagnostics): New.
2751 (diagnostic_pop_diagnostics): New.
2752 (diagnostic_report_diagnostic): Scan history chain to find state
2753 of diagnostics as of the diagnostic location.
2754 * opts.c (set_option): Pass UNKNOWN_LOCATION to
2755 diagnostic_classify_diagnostic.
2756 (enable_warning_as_error): Likewise.
2757 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
2758 use in the history chain.
2759 * doc/extend.texi: Document pragma GCC diagnostic changes.
2761 2010-06-21 Jakub Jelinek <jakub@redhat.com>
2763 * dwarf2out.c (add_linkage_name): New function. Don't add
2764 anything to DW_TAG_member DIEs.
2765 (add_name_and_src_coords_attributes): Use it.
2766 (gen_variable_die): Call it for C++ static data members if
2767 specification is DW_TAG_member.
2769 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
2770 C++ char16_t and char32_t.
2772 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
2773 * genattrtab.c: Include vecprim.h.
2774 (cached_attrs, cached_attr_count, attrs_seen_once,
2775 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
2776 attrs_cached_after): New variables.
2777 (find_attrs_to_cache): New function.
2778 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
2779 (write_test_expr): Add attrs_cached argument, return it too,
2780 attempt to cache non-const attributes used more than once in
2781 a single case handling.
2782 (write_attr_get): Use find_attrs_to_cache, for caching candidates
2783 emit cached_* variables. Adjust write_attr_set callers.
2784 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
2785 to find attributes that should be cached in this block. Adjust
2786 write_test_expr callers.
2787 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
2789 (make_automaton_attrs): Adjust write_test_expr caller.
2791 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
2792 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
2793 (make_automaton_attrs): If find_tune_attr returns non-NULL,
2794 write separate internal_dfa_insn_code_* and insn_default_latency_*
2795 functions for each attribute's value and emit init_sched_attrs
2796 function and function pointers.
2797 * genattr.c (const_attrs, reservations): New variables.
2798 (gen_attr): Add const attributes to const_attrs vector.
2799 (check_tune_attr, find_tune_attr): New functions.
2800 (main): Add reservations to reservations vector. If find_tune_attr
2801 returns true, add prototype for init_sched_attrs and make
2802 internal_dfa_insn_code and insn_default_latency function pointers,
2803 otherwise define init_sched_attrs as dummy macro.
2804 * cfgexpand.c: Include insn-attr.h.
2805 (gimple_expand_cfg): Call init_sched_attrs.
2807 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
2810 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
2811 va_arg from a set of register save slots into a temporary,
2812 if the container is bigger than type size, do the copying
2813 using smaller mode or using memcpy.
2816 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
2818 (sel_print_to_dot): Remove macro.
2819 (sel_print): Likewise. New prototype.
2820 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
2821 (sel_print): New function.
2823 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2825 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
2826 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
2828 2010-06-21 Nick Clifton <nickc@redhat.com>
2830 * config/rx/rx.h (PTRDIFF_TYPE): Define.
2831 (SMALL_REGISTER_CLASS): Define (to zero).
2832 (PRINT_OPERAND): Delete.
2833 (PRINT_OPERAND_ADDRESS): Delete.
2834 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
2835 (rx_print_operand_address): Delete prototype.
2836 * config/rx/rx.c (rx_print_operand): Make static.
2837 Allow %H and %L to handle CONST_DOUBLEs.
2838 (rx_print_operand_address): Make static.
2839 (rx_gen_move_template): Rename local variable 'template' to
2841 (rx_function_arg): Do not pass unknown sized objects in registers.
2842 (TARGET_PRINT_OPERAND): Define.
2843 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2845 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2847 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
2849 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
2851 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
2852 stack-alignment for simple leaf-functions.
2854 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
2856 * doc/install.texi: Document bootstrap-lto.
2858 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
2861 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
2862 (input_function): Drop them here, if VTA is disabled.
2864 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
2867 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
2869 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2870 ix86_swapped_fp_comparsion_operator instead of
2871 ix86_fp_comparison_operator.
2873 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2874 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2875 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2876 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2877 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2878 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2880 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2883 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2884 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2885 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2886 (decode_cmdline_option): Update for this return value. Set
2887 orig_option_with_args_text field. Set arg field for unknown
2888 options. Make static.
2889 (decode_cmdline_options_to_array): New.
2890 (prune_options): Update handling of find_opt return value.
2891 * opts.c (read_cmdline_option): Take decoded option. Return void.
2892 (read_cmdline_options): Take decoded options.
2893 (decode_options): Add parameters for decoded options. Use
2894 decode_cmdline_options_to_array. Use decoded options for -O
2895 scan. Use integral_argument for -O parameters. Update call to
2896 read_cmdline_options.
2897 (enable_warning_as_error): Update handling of find_opt return value.
2898 * opts.h: Update comment on unknown options.
2899 (struct cl_decoded_option): Update comments on opt_index and arg.
2900 Add orig_option_with_args_text.
2901 (decode_cmdline_option): Remove.
2902 (decode_cmdline_options_to_array): Declare.
2903 (decode_options): Update prototype.
2904 * toplev.c (save_argv): Remove.
2905 (save_decoded_options, save_decoded_options_count): New.
2906 (read_integral_parameter): Remove.
2907 (print_switch_values): Use decoded options.
2908 (toplev_main): Don't set save_argv. Update call to decode_options.
2909 * toplev.h (read_integral_parameter): Remove.
2910 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2912 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
2915 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2917 * constraints.md (Pw, Px): New constraints.
2918 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2920 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
2922 * config/i386/sse.md (fma4modesuffixf4): Removed.
2923 (ssemodesuffixf2s): Likewise.
2924 (ssemodesuffixf4): Likewise.
2925 (ssemodesuffixf2c): Likewise.
2926 (ssescalarmodesuffix2s): Likewise.
2927 (avxmodesuffixf2c): Likewise.
2928 (ssemodesuffix): New.
2929 (ssescalarmodesuffix): Likewise.
2930 Update patterns with ssemodesuffix and ssescalarmodesuffix.
2932 2010-06-19 Philip Herron <herron.philip@googlemail.com>
2934 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2936 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
2938 * stor-layout.c (debug_rli): Remove unused local variables.
2940 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2942 PR rtl-optimization/40900
2943 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
2944 original expression for later reuse.
2945 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
2946 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
2948 2010-06-18 Anatoly Sokolov <aesok@post.ru>
2950 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
2951 double_int_fits_in_uhwi_p): Implement as static inline.
2952 (double_int_xor): New inline function.
2953 (double_int_lrotate, double_int_rrotate, double_int_max,
2954 double_int_umax, double_int_smax, double_int_min, double_int_umin,
2955 double_int_smin): Declare.
2956 (lrotate_double, rrotate_double): Remove declaration.
2957 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
2958 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
2959 (double_int_lrotate, double_int_rrotate, double_int_max,
2960 double_int_umax, double_int_smax, double_int_min, double_int_umin,
2961 double_int_smin): New function.
2962 * fold-const.c (int_const_binop): Clean up, use double_int_*
2964 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
2965 double_int_* and immed_double_int_const functions.
2967 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2969 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
2970 * function.c (types_used_by_cur_var_decl): Likewise.
2971 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
2973 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2975 * tree.h (record_layout_info): Change type of pending_statics field
2977 * stor-layout.c (start_record_layout): Store NULL into
2979 (debug_rli): Call debug_vec_tree instead of debug_tree.
2980 (place_field): Likewise.
2981 (finish_record_layout): Likewise.
2983 2010-06-18 Alan Modra <amodra@gmail.com>
2985 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
2987 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2990 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
2991 for SET source operand from SET destination operand.
2993 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
2995 PR rtl-optimization/39871
2996 * reload1.c (init_eliminable_invariants): For flag_pic, disable
2997 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
2998 (function_invariant_p): Rule out a plus of frame or arg pointer with
3000 * ira.c (find_reg_equiv_invariant_const): Likewise.
3002 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
3004 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3005 print_operand_address and puts to output the operand for CONST.
3007 2010-06-17 Jakub Jelinek <jakub@redhat.com>
3010 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3013 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3015 * v850-protos.h (print_operand): Delete.
3016 (print_operand_address): Delete.
3017 * v850.h (PRINT_OPERAND): Delete.
3018 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3019 (PRINT_OPERAND_ADDRESS): Delete.
3020 * v850.c (print_operand_address): Rename to...
3021 (v850_print_operand_address): ...this. Make static. Call
3023 (print_operand): Rename to...
3024 (v850_print_operand): ...this. Make static. Call
3025 v850_print_operand_address.
3026 (v850_print_operand_punct_valid_p): New function.
3027 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3028 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3030 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3032 * config/sh/sh-protos.h (print_operand): Delete.
3033 (print_operand_address): Delete.
3034 * config/sh/sh.h (PRINT_OPERAND): Delete.
3035 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3036 (PRINT_OPERAND_ADDRESS): Delete.
3037 * config/sh/sh.c (sh_print_operand_address): Make static.
3038 (sh_print_operand): Make static. Call sh_print_operand_address
3039 and sh_print_operand.
3040 (sh_print_operand_punct_valid_p): New function.
3041 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3042 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3044 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3046 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3047 (mcore_print_operand_address): Delete.
3048 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3049 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3050 (PRINT_OPERAND_ADDRESS): Delete.
3051 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3052 (mcore_print_operand): Make static.
3053 (mcore_print_operand_punct_valid_p): New function.
3054 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3055 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3057 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3059 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3060 (print_operand_address): Delete.
3061 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3062 (PRINT_OPERAND_ADDRESS): Delete.
3063 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3065 (m68hc11_print_operand): Make static.
3066 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3068 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3070 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3071 (m32r_print_operand_address): Delete.
3072 * config/m32r/m32r.h (m32r_punct_chars): Delete.
3073 (PRINT_OPERAND): Delete.
3074 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3075 (PRINT_OPERAND_ADDRESS): Delete.
3076 * config/m32r/m32r.c (m32r_punct_chars): Make static.
3077 (m32r_print_operand_address): Make static.
3078 (m32r_print_operand): Make static.
3079 (m32r_print_operand_punct_valid_p): New function.
3080 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3081 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3083 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3085 * config/iq2000/iq2000-protos.h (print_operand): Delete.
3086 (print_operand_address): Delete.
3087 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3088 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3089 (PRINT_OPERAND_ADDRESS): Delete.
3090 (iq2000_print_operand_punct): Delete.
3091 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3092 (iq2000_print_operand_address): Make static.
3093 (iq2000_print_operand): Make static.
3094 (iq2000_print_operand_punct_valid_p): New function.
3095 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3096 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3098 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3100 * config/frv/frv-protos.h (frv_print_operand): Delete.
3101 (frv_print_operand_address): Delete.
3102 * config/frv/frv.h (PRINT_OPERAND): Delete.
3103 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3104 (PRINT_OPERAND_ADDRESS): Delete.
3105 * config/frv/frv.c (frv_print_operand_address): Make static.
3106 (frv_print_operand): Make static.
3107 (frv_print_operand_punct_valid_p): New function.
3108 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3109 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3111 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3113 * tree.h (vec_member): Declare.
3114 * tree.c (vec_member): Define.
3116 2010-06-17 Richard Guenther <rguenther@suse.de>
3118 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3119 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3121 2010-06-17 Richard Guenther <rguenther@suse.de>
3123 * tree-inline.c (declare_return_variable): Remove bogus code.
3125 2010-06-17 Richard Guenther <rguenther@suse.de>
3127 * gimplify.c (gimplify_bind_expr): Always promote complex
3128 and vector variables to registers if possible.
3130 2010-06-17 Richard Guenther <rguenther@suse.de>
3132 * expr.c (get_inner_reference): Use double_int for bit_offset
3135 2010-06-16 DJ Delorie <dj@redhat.com>
3137 * common.opt (-fstrict-volatile-bitfields): new.
3138 * doc/invoke.texi: Document it.
3139 * fold-const.c (optimize_bit_field_compare): For volatile
3140 bitfields, use the field's type to determine the mode, not the
3142 * expr.c (expand_assignment): Likewise.
3143 (get_inner_reference): Likewise.
3144 (expand_expr_real_1): Likewise.
3145 * expmed.c (store_fixed_bit_field): Likewise.
3146 (extract_bit_field_1): Likewise.
3147 (extract_fixed_bit_field): Likewise.
3149 2010-06-16 Richard Guenther <rguenther@suse.de>
3151 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3153 2010-06-16 Douglas B Rupp <rupp@gnat.com>
3155 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3156 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3157 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3158 * debug.c: Likewise.
3159 * sdbout.c: Likewise.
3160 * vmsdbgout.c: Likewise.
3161 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3162 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3163 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3164 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3165 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3166 * dwarf2out.c (dw_fde_struct): New fields
3167 dw_fde_vms_{end,begin}_prologue.
3168 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3169 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3170 (dwarf2out_vms_end_prologue): New function.
3171 (dwarf2out_vms_begin_epilogue): New function.
3172 (dw_val_struct): New value dw_val_class_vms_delta.
3173 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3174 begin_epilogue for VMS.
3175 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3176 new static functions.
3177 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3178 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3180 (print_die): New case dw_val_class_vms_delta.
3181 (attr_checksum): Likewise.
3182 (same_dw_val_p: Likewise.
3183 (size_of_die): Likewise.
3184 (value_format): Likewise.
3185 (output_die): Likewise.
3186 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3187 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3188 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3189 dwarf2out_cfi_begin_epilogue
3190 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3192 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3194 * config/cris/cris-protos.h (cris_print_operand): Delete.
3195 (cris_print_operand_address): Delete.
3196 * config/cris/cris.h (PRINT_OPERAND): Delete.
3197 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3198 (PRINT_OPERAND_ADDRESS): Delete.
3199 * config/cris/cris.c (cris_print_operand_address): Make static.
3200 (cris_print_operand): Make static.
3201 (cris_print_operand_punct_valid_p): New function.
3202 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3203 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3205 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3207 * config/arm/arm-protos.h (arm_print_operand): Delete.
3208 (arm_print_operand_address): Delete.
3209 * config/arm/arm.h (PRINT_OPERAND): Delete.
3210 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3211 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3212 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3213 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
3214 (arm_print_operand): Make static.
3215 (arm_print_operand_punct_valid_p): New function.
3216 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3217 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3219 2010-06-16 Nick Clifton <nickc@redhat.com>
3221 * config/rx/constraints.md (NEGint4): New constraint.
3222 * config/rx/rx.md (attr cc): Add set_zsc.
3223 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3226 (call_internal): Clobber the cc0 register.
3227 (call_value_internal): Likewise.
3228 (cstoresi4): Likewise.
3229 (movsieq): Likewise.
3230 (movsine): Likewise.
3231 (addsi3): Add alternative to handle small negative constants.
3233 (addsi3): Do not set the O bit in the cc0 register.
3237 (andsi3): Reorder alternatives to prefer shorter forms.
3240 (negsi2): Note that the cc0 flags are set.
3241 (rotlsi3): Note that only the Z and S bits are set in cc0.
3242 (lshrsi3): Likewise.
3243 (ashlsi3): Likewise.
3244 (subsf3): Use %Q for the MEM operand.
3245 (fix_truncsfsi2): Likewise.
3246 (floatsisf2): Likewise.
3247 (bitset): Remove early clobber from destination.
3248 (bitset_in_memory): Likewise.
3249 (lrintsf2): Clobber the cc0 register.
3250 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3251 (rx_print_operand): Handle %N.
3253 2010-06-16 Jan Hubicka <jh@suse.cz>
3255 * df-core.c (df_compact_blocks): Free problem_temps vector.
3257 2010-06-16 Martin Jambor <mjambor@suse.cz>
3259 PR tree-optimization/43905
3260 * tree-sra.c: Include tree-inline.h.
3261 (create_abstract_origin): Removed.
3262 (modify_function): Version the call graph node instead of creating
3263 abstract origins and dealing with same_body aliases.
3264 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3265 function is versionable.
3266 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3268 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
3270 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3271 (CHOOSE_DYNAMIC_LINKER): Update.
3273 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
3275 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
3276 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3277 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3278 *prefetch_3dnow_rex.
3280 2010-06-15 Anatoly Sokolov <aesok@post.ru>
3282 * target.h (struct asm_out):Add declare_constant_name field.
3283 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3284 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3285 * output.h (default_asm_declare_constant_name): Declare.
3286 (assemble_label): Update prototype.
3287 * varasm.c (assemble_constant_contents): Use
3288 targetm.asm_out.declare_constant_name target hook.
3289 (assemble_label): Add 'file' argument.
3290 (default_asm_declare_constant_name): New function.
3291 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3292 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3293 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3295 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3296 * config/darwin.c (darwin_asm_declare_constant_name): New function.
3297 (machopic_output_indirection): Update assemble_label argument list.
3298 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3299 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3301 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
3304 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3305 size_one_node for pointer types. Do not call gmp_cst_to_tree.
3307 2010-06-15 Richard Guenther <rguenther@suse.de>
3309 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3311 2010-06-15 Paul Brook <paul@codesourcery.com>
3313 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3316 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
3318 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3319 don't get a vector type for output.
3321 2010-06-15 Jakub Jelinek <jakub@redhat.com>
3324 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3325 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3326 (LANG_HOOKS_DECLS): Add it.
3327 * gimplify.c (omp_notice_variable): Call
3328 lang_hooks.decls.omp_report_decl.
3330 2010-06-15 Martin Jambor <mjambor@suse.cz>
3333 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3334 on the newly dead SSA name.
3336 2010-06-15 Alan Modra <amodra@gmail.com>
3338 * doc/invoke.texi: Add mcmodel to powerpc options.
3339 * configure.ac: Add HAVE_LD_LARGE_TOC test.
3340 * configure: Regenerate.
3341 * config.in: Regenerate.
3342 * config/rs6000/linux64.opt (mcmodel): New.
3343 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3344 (TARGET_CMODEL, SET_CMODEL): Define.
3345 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3346 select CMODEL_MEDIUM default.
3347 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3348 (TARGET_CMODEL): Define default.
3349 * config/rs6000/rs6000.c (cmodel): New variable.
3350 (rs6000_explicit_options): Add cmodel field.
3351 (rs6000_handle_option): Handle -mcmodel.
3352 (create_TOC_reference): Add largetoc_reg param. Generate high,
3353 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
3354 (rs6000_delegitimize_address): Recognise new toc reference rtl
3355 and minimal-toc rtl.
3356 (rs6000_legitimize_reload_address): Handle new toc references.
3357 (print_operand_address): Handle legitimate_constant_pool_address_p
3358 match before lo_sum.
3359 (rs6000_eliminate_indexed_memrefs): Tidy.
3360 (rs6000_emit_move): Tweak threshold for inlining constants.
3361 Keep rs6000_emit_allocate_stack large stack frame offsets
3362 loaded into r0 inline.
3363 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3364 (tocrel_base, tocrel_offset): New variables.
3365 (toc_relative_expr_p): Set them here.
3366 (print_operand_address): Skip over any offset on constant pool address.
3367 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3368 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3369 (offsettable_ok_by_alignment): New function.
3370 (rs6000_emit_move): Address suitably aligned local symbol_refs
3371 relative to the toc pointer for -mcmodel=medium.
3372 (legitimate_constant_pool_address_p): Make param const_rtx. Add
3373 strict param. Allow lo_sum version of addressing. Verify reg
3374 used for -mminimal-toc and -mcmodel != small. Update all callers.
3375 * config/rs6000/constraints.md: Update for above change.
3376 * config/rs6000/predicates.md: Likewise.
3377 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3379 (tls_gd): Split for -mcmodel=medium/large.
3380 (tls_gd_high, tls_gd_low): New.
3381 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3382 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3383 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3384 (largetoc_high, largetoc_low): New.
3385 (cmptf_internal2): Add clobber.
3386 * config/rs6000/rs6000-protos.h: Update.
3388 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
3390 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
3391 true if no prefetch is going to be generated for a given group.
3392 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3393 estimate the prefetch_count.
3394 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3395 prefetch count by considering the unroll_factor and prefetch_mod
3396 for is_loop_prefetching_profitable.
3398 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
3400 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3401 anything if the argument is not a MEM.
3403 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3408 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3410 (canonicalize_loop_ivs): Likewise.
3412 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3415 * haifa-sched.c (setup_insn_reg_pressure_info,
3416 update_register_pressure): Reject debug insns.
3417 (ready_sort): Don't setup reg pressure for debug insns.
3418 (schedule_insn): Don't update reg pressure for debug insns.
3420 2010-06-14 Richard Guenther <rguenther@suse.de>
3422 * lto-streamer.c (cached_bp): Remove.
3423 (bitpack_delete): Likewise.
3424 (bitpack_create): Likewise.
3425 (bp_get_next_word): Likewise.
3426 (bp_pack_value, bp_unpack_value): Move ...
3427 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3429 (struct bitpack_d): Likewise.
3430 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3431 New inline functions.
3432 * lto-streamer-out.c (lto_output_bitpack): Remove.
3433 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3434 (pack_value_fields): Adjust.
3435 (lto_write_tree): Likewise.
3436 (output_gimple_stmt): Likewise.
3437 (output_function): Likewise.
3438 * lto-streamer-in.c (input_gimple_stmt): Adjust.
3439 (input_function): Likewise.
3440 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3441 (lto_input_bitpack): Remove.
3442 (lto_materialize_tree): Adjust.
3443 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3444 * lto-cgraph.c (lto_output_edge): Adjust.
3445 (lto_output_node): Likewise.
3446 (lto_output_varpool_node): Likewise.
3447 (lto_output_ref): Likewise.
3448 (input_node): Likewise.
3449 (input_varpool_node): Likewise.
3450 (input_ref): Likewise.
3451 (input_edge): Likewise.
3452 (output_node_opt_summary): Likewise.
3453 (input_node_opt_summary): Likewise.
3454 * ipa-pure-const.c (pure_const_write_summary): Likewise.
3455 (pure_const_read_summary): Likewise.
3456 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3457 (ipa_read_indirect_edge_info): Likewise.
3458 (ipa_write_node_info): Likewise.
3459 (ipa_read_node_info): Likewise.
3461 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
3464 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3465 (vec_extract_lo_v16hi): Likewise.
3466 (vec_extract_lo_v32qi): Likewise.
3468 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3471 * tree.h (build_call_expr): Don't define as vararg macro, instead
3473 * builtins.c (build_call_nofold): Remove.
3474 (expand_builtin_int_roundingfn, expand_builtin_pow,
3475 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3476 expand_builtin_memset_args, expand_builtin_strcmp,
3477 expand_builtin_strncmp, expand_builtin_memory_chk): Use
3478 build_call_nofold_loc instead of build_call_nofold.
3479 (build_call_expr): New function.
3481 PR tree-optimization/44508
3482 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3483 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3484 don't eliminate trivially dead stmts.
3485 * tree-vrp.c (vrp_finalize): Pass false as last argument
3486 to substitute_and_fold.
3487 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3488 to substitute_and_fold.
3489 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3492 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3494 2010-06-14 Ira Rosen <irar@il.ibm.com>
3496 PR tree-optimization/44507
3497 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3498 to build initial vector for BIT_AND_EXPR.
3499 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3501 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3503 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3504 adjust z10prop set_attr.
3506 2010-06-13 Jan Hubicka <jh@suse.cz>
3508 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3509 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3510 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3511 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3512 datastructure checks into checking asserts.
3513 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3514 * tree-ssa-sccvn.c (VN_INFO): Likewise.
3515 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3516 df_ref_create_structure): Likewise.
3517 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3518 pool_free): Use gcc_checking_assert.
3519 * alias.c (get_alias_set): Likewise.
3520 * var-tracking.c (variable_htab_free, shared_hash_copy,
3521 canonicalize_values_mark, variable_merge_over_cur): Likewise.
3522 * lto-streamer.c (bp_unpack_value): Likewise.
3524 2010-06-13 Richard Guenther <rguenther@suse.de>
3526 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3527 Do not stream but initialize TYPE_CANONICAL to NULL.
3528 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3529 * gimple.c (gimple_types_compatible_p): Disregard
3530 TYPE_STRUCTURAL_EQUALITY_P.
3531 (gimple_register_type): Use TYPE_CANONICAL as cache.
3532 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3533 before registering common types.
3534 * config/i386/i386.c (ix86_function_arg_boundary): Do not
3535 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3536 * tree.h (TYPE_CANONICAL): Clarify documentation.
3538 2010-06-13 Anatoly Sokolov <aesok@post.ru>
3540 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3541 LIBCALL_VALUE): Remove macros.
3542 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3543 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3544 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3545 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3546 (ia64_function_value): Make static. Handle receiving the function
3547 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3549 2010-06-12 Jan Hubicka <jh@suse.cz>
3551 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3554 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
3556 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3558 2010-06-12 Jan Hubicka <jh@suse.cz>
3560 * df-core.c (df_clear_bb_info): New function.
3561 (df_set_blocks): bb_info is always allocated.
3562 (df_get_bb_info): Use block_info_elt_size.
3563 (df_set_bb_info): Likewise.
3564 (df_compact_blocks): Update for new block_info.
3565 (grow_bb_info): New function.
3566 * df-problems.c (df_grow_bb_info): Move to df-core.c
3567 (df_rd_set_bb_info): Remove.
3568 (df_rd_free_bb_info): Do not free block pool.
3569 (df_rd_alloc): Do not create pool, use check for
3570 obstack presence instead of NULL pointer for new blocks.
3571 (df_rd_free): DO not free alloc pool; clear block_info.
3572 (problem_RD): Add size of block info structure.
3573 (df_lr_set_bb_info): Remove.
3574 (df_lr_free_bb_info): Do not free block pool.
3575 (df_lr_alloc): Do not create pool, use check for
3576 obstack presence instead of NULL pointer for new blocks.
3577 (df_lr_free): DO not free alloc pool; clear block_info.
3578 (problem_LR): Add size of block info structure.
3579 (df_live_set_bb_info): Remove.
3580 (df_live_free_bb_info): Do not free block pool.
3581 (df_live_alloc): Do not create pool, use check for
3582 obstack presence instead of NULL pointer for new blocks.
3583 (df_live_free): DO not free alloc pool; clear block_info.
3584 (problem_LIVE): Add size of block info structure.
3585 (problem_CHAIN): Add size of block info structure.
3586 (df_byte_lr_set_bb_info): Remove.
3587 (df_byte_lr_free_bb_info): Do not free block pool.
3588 (df_byte_lr_alloc): Do not create pool, use check for
3589 obstack presence instead of NULL pointer for new blocks.
3590 (df_byte_lr_free): DO not free alloc pool; clear block_info.
3591 (problem_BYTE_LR): Add size of block info structure.
3592 (problem_NOTE): Add size of block info structure.
3593 (df_byte_MD_set_bb_info): Remove.
3594 (df_byte_MD_free_bb_info): Do not free block pool.
3595 (df_byte_MD_alloc): Do not create pool, use check for
3596 obstack presence instead of NULL pointer for new blocks.
3597 (df_byte_MD_free): DO not free alloc pool; clear block_info.
3598 (problem_BD): Add size of block info structure.
3599 * df-scan.c (df_scan_free_internal): Free block pool.
3600 (df_scan_set_bb_info): Remove.
3601 (df_scan_free_bb_info): Check for artificial_defs instead
3602 of bb_info being non-NULL.
3603 (df_scan_alloc): DO not create df_scan_block pool.
3604 (problem_SCAN): Set size of block info.
3605 (df_bb_refs_record): Do not allocate bb_info.
3606 * df.h (df_problem): Add block_info_elt_size.
3607 (struct dataflow): Change block_info to void *.
3608 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3609 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3612 2010-06-12 Jan Hubicka <jh@suse.cz>
3614 PR tree-optimize/44485
3615 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3616 containing use of return value of noreturn function.
3618 2010-06-12 Anatoly Sokolov <aesok@post.ru>
3620 * targhooks.c (default_function_value): Don't use
3621 FUNCTION_OUTGOING_VALUE.
3622 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3623 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3625 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
3627 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3628 Add crtfastmath.o to extra_parts.
3629 * config/mips/crtfastmath.c: New.
3630 * config/mips/linux.h (ENDFILE_SPEC): New.
3632 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
3634 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3635 old_type in parameter.
3636 (gcc_type_for_value): Update call to gcc_type_for_interval.
3637 (compute_type_for_level_1): Renamed compute_type_for_level.
3638 Update call to gcc_type_for_interval.
3640 2010-06-11 Joseph Myers <joseph@codesourcery.com>
3642 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3643 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
3645 2010-06-11 Joseph Myers <joseph@codesourcery.com>
3647 * opts-common.c: Include options.h.
3648 (integral_argument): Move from opts.c.
3649 (decode_cmdline_option): New. Based on read_cmdline_option.
3650 * opts.c (integral_argument): Move to opts-common.c.
3651 (read_cmdline_option): Move most contents to
3652 decode_cmdline_option. Use %qs in diagnostics.
3653 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
3654 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
3655 decode_cmdline_option): New.
3657 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3660 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
3661 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
3662 (partiysi2_cmp): Ditto.
3663 (*partiyhi2_cmp): Ditto.
3664 (*parityqi2_cmp): Remove.
3666 2010-06-11 Jan Hubicka <jh@suse.cz>
3668 * bitmap.h (bmp_iter_next_bit): New.
3669 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
3671 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
3672 Eric Botcazou <ebotcazou@adacore.com>
3674 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
3677 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3679 * config/i386/i386.md (unspec): New define_c_enum.
3682 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3684 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
3686 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
3689 * tree-if-conv.c (bb_predicate_s): New struct.
3690 (bb_predicate_p): New.
3691 (bb_has_predicate): New.
3692 (bb_predicate): New.
3693 (set_bb_predicate): New.
3694 (bb_predicate_gimplified_stmts): New.
3695 (set_bb_predicate_gimplified_stmts): New.
3696 (add_bb_predicate_gimplified_stmts): New.
3697 (init_bb_predicate): New.
3698 (free_bb_predicate): New.
3699 (is_predicated): Use bb_predicate.
3700 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
3701 (predicate_bbs): Same. Gimplify the condition of the basic blocks
3702 before processing their successors.
3703 (clean_predicate_lists): Removed.
3704 (find_phi_replacement_condition): Use bb_predicate.
3705 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
3707 (insert_gimplified_predicates): New.
3708 (combine_blocks): Call insert_gimplified_predicates.
3709 (tree_if_conversion): Call free_bb_predicate instead of
3710 clean_predicate_lists.
3712 2010-10-11 Paul Brook <paul@codesourcery.com>
3714 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
3715 * config/arm/arm.c (all_architectures): Change v7e-m default to
3717 * config/arm/arm-cores.def: Add cortex-m4.
3718 * config/arm/arm-tune.md: Regenerate.
3720 2010-06-11 Jan Hubicka <jh@suse.cz>
3722 * ipa-pure-const.c (special_builtlin_state): New function.
3723 (check_call): Use it instead of special casign BUILT_IN_RETURN.
3724 (propagate_pure_const): Use it.
3726 2010-06-11 Jan Hubicka <jh@suse.cz>
3728 * df-problems.c (df_live_scratch): Convert to bitmap_head.
3729 (df_live_alloc): Initialize df_live_scratch when initializing
3731 (df_live_transfer_function): Update uses of df_live_scratch.
3732 (df_live_free): Free problem_data; clear df_live_scratch before
3733 releasing the obstack.
3734 (df_md_free): Free problem data.
3736 2010-06-11 Jan Hubicka <jh@suse.cz>
3738 * doc/invoke.texi (Wsuggest-attribute): Document.
3739 (Wmissing-noreturn): Remove.
3740 * ipa-pure-const.c (warn_function_noreturn): New function.
3741 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
3742 warn_missing_noreturn.
3743 * common.opt (Wsuggest-attribute=noreturn): New.
3744 * tree-flow.h (warn_function_noreturn): Declare.
3745 * tree-cfg.c (execute_warn_function_noreturn): Use
3746 warn_function_noreturn.
3747 (gate_warn_function_noreturn): New.
3748 (pass_warn_function_noreturn): Update.
3750 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3752 * c-typeck.c (handle_warn_cast_qual): Add loc
3753 parameter. Improve warning message.
3754 (build_c_cast): Pass location to handle_warn_cast_qual.
3756 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3758 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
3759 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
3761 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
3763 2010-06-10 Dodji Seketeli <dodji@redhat.com>
3765 Fix bootstap on mips
3766 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
3769 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
3771 * system.h (helper_const_non_const_cast): New inline for
3773 (CONST_CAST2): For gcc version <= 4.0 use
3774 new helper to do const/non-const casting.
3776 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3778 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
3779 * Makefile.in (OBJS-common): Include insn-enums.o.
3780 (insn-enums.o): New rule.
3781 (simple_generated_c): Add insn-enums.c.
3782 (build/genenums.o): New rule.
3783 (genprogmd): Add "enums".
3784 * genconstants.c (print_enum_type): Declare a C string array
3786 * genenums.c: New file.
3787 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
3788 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
3789 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
3791 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3793 * doc/md.texi (define_enum_attr): Document.
3794 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
3795 * read-md.h (lookup_enum_type): Declare.
3796 * read-md.c (lookup_enum_type): New function.
3797 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
3798 * genattrtab.c (attr_desc): Add an enum_name field.
3799 (evaluate_eq_attr): Take the associated attribute as argument.
3800 Get the enum prefix from the enum_name field, if defined.
3801 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
3802 (simplify_test_exp): Pass attr to evaluate_eq_attr.
3803 (add_attr_value): New function, split out from...
3804 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
3805 (write_test_expr): Pass attr to evaluate_eq_attr.
3806 (write_attr_get): Use the enum_name as the enum tag, if defined.
3807 (write_attr_valueq): Use the enum_name as a prefix, if defined.
3808 (find_attr): Initialize enum_name.
3809 (main): Handle DEFINE_ENUM_ATTR.
3810 * gensupport.c (process_rtx): Likewise.
3811 * config/mips/mips.h (mips_tune_attr): Delete.
3812 * config/mips/mips.md (cpu): Use define_attr_enum.
3814 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3816 * doc/md.texi (define_c_enum, define_enum): Document.
3817 * read-md.h (md_constant): Add a parent_enum field.
3818 (enum_value, enum_type): New structures.
3819 (upcase_string, traverse_enum_types): Declare.
3820 * read-md.c (enum_types): New variable.
3821 (upcase_string, add_constant): New functions.
3822 (handle_constants): Don't create the hash table here.
3824 (traverse_md_constants): Don't check for a null md_constants.
3825 (decimal_string, handle_enum, traverse_enum_types): New functions.
3826 (read_md_files): Initialize md_constants and md_enums.
3827 * genconstants.c (print_md_constant): Ignore info argument.
3828 Only print constants that belong to no enum.
3829 (print_enum_type): New function.
3830 (main): Don't pass stdout to print_md_constant. Call print_enum_type
3831 for each defined enum type.
3832 * config/mips/mips.md (processor): New define_enum.
3833 (unspec): New define_c_enum.
3834 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
3835 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
3836 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
3837 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
3838 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3839 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3840 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3841 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3842 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3843 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3844 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3845 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3846 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3847 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3848 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3849 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3850 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3851 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3852 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3853 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3854 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3855 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3856 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3857 (UNSPEC_RDDSP): Move to mips-dsp.md.
3858 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
3859 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
3860 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
3861 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3862 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3863 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3864 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3865 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3866 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3867 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3868 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3869 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3870 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3871 Moved to mips-dspr2.md.
3872 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3873 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3874 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3875 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3876 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3877 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3878 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3879 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3880 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3881 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3882 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3883 UNSPEC_LOONGSON_PSADBH)
3884 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3885 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3886 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3887 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3888 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3889 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3890 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3891 (cpu): Update comment.
3892 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3893 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3894 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3895 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3896 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3897 UNSPEC_LOONGSON_PCMPEQ)
3898 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3899 UNSPEC_LOONGSON_PINSR_0)
3900 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3901 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3902 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3903 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3904 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3905 UNSPEC_LOONGSON_PSADBH)
3906 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3907 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3908 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3909 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3910 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3911 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3912 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3913 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3914 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3915 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3916 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3917 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3918 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3919 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3920 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3921 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3922 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3923 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3924 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3925 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3926 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3927 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3928 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3929 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3930 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3931 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3932 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3933 (UNSPEC_RDDSP): Moved from mips.md.
3934 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3935 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3936 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3937 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3938 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3939 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
3940 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
3941 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
3942 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
3943 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
3944 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
3945 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
3946 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
3947 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
3948 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
3949 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
3950 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
3951 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
3952 (UNSPEC_SCC): Moved from mips.md.
3953 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
3954 "processor_type" to "processor".
3955 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
3956 * config/mips/mips.h (processor_type): Delete.
3957 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
3958 "processor_type" to "processor".
3960 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3962 * configure.ac (tm_include_list): Add insn-constants.h.
3963 * configure: Regenerate.
3964 * Makefile.in (GTM_H): Move insn-constants.h here from...
3966 * mkconfig.sh: Remove special handling for insn-constants.h.
3968 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3970 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
3971 (BUILD_MD): ...this new variable.
3972 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
3973 that include the old contents of simple_generated_h and
3975 (simple_generated_h, simple_generated_c): Include them. Add
3977 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
3978 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
3979 Remove these dependencies from the main rule and include
3980 insn-conditions.md in the command line only if it appears
3981 in the dependency list.
3982 (insn-constants.h, s-constants): Delete.
3983 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
3985 (build/genmddeps.o): Likewise.
3986 (genprogrtl): New variable that contains everything from genprogmd
3987 except mddeps and constants.
3988 (genprogmd): Redefine in terms of genprogrtl. Make these programs
3989 depend on $(BUILD_MD)
3990 (genprog): New variable. Make these programs depend on
3992 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
3993 (main): Use read_md_files instead of init_rtx_reader_args.
3994 * genconstants.c: As for genmddeps.c.
3995 * read-md.h (read_skip_construct): Declare.
3996 * read-md.c (read_skip_construct): New function.
3997 (handle_file): Allow a null handle_directive, skipping the
3999 (parse_include): Update the comment accordingly.
4001 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4003 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4004 * genmddeps.c: Include read-md.h.
4005 (main): Call init_rtx_reader_args instead of init_md_reader_args.
4006 * genattr.c (main): Likewise.
4007 * genattrtab.c (main): Likewise.
4008 * genautomata.c (main): Likewise.
4009 * gencodes.c (main): Likewise.
4010 * genconditions.c (main): Likewise.
4011 * genconfig.c (main): Likewise.
4012 * genconstants.c (main): Likewise.
4013 * genemit.c (main): Likewise.
4014 * genextract.c (main): Likewise.
4015 * genflags.c (main): Likewise.
4016 * genopinit.c (main): Likewise.
4017 * genoutput.c (main): Likewise.
4018 * genpeep.c (main): Likewise.
4019 * genrecog.c (main): Likewise.
4020 * genpreds.c (main): Likewise.
4021 * gensupport.h (in_fname): Move to read-md.h.
4022 (init_md_reader_args_cb): Rename to...
4023 (init_rtx_reader_args_cb): ...this and return a bool.
4024 (init_md_reader_args): Rename to...
4025 (init_rtx_reader_args): ...this and return a bool.
4026 (include_callback): Move to read-md.h.
4027 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4028 (file_name_list, first_dir_md_include): Move to read-md.c
4029 (first_bracket_include): Delete unused variable.
4030 (last_dir_md_include): Move to read-md.c.
4031 (process_include): Delete, moving code to read-md.c:handle_include.
4032 (process_rtx): Don't handle INCLUDE.
4033 (save_string): Delete.
4034 (rtx_handle_directive): New function.
4035 (init_md_reader_args_cb): Rename to...
4036 (init_rtx_reader_args_cb): ...this and return a boolean success value.
4038 (init_md_reader_args): Rename to...
4039 (init_rtx_reader_args): ...this and return a boolean success value.
4040 * rtl.def (INCLUDE): Delete.
4041 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
4043 * read-rtl.c (read_conditions): Don't gobble ')' here.
4044 (read_mapping): Likewise.
4045 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
4046 Handle top-level non-rtx constructs here rather than in read_rtx_1.
4047 Store the whole queue in *X. Remove call to init_md_reader.
4048 (read_rtx_1): Rename to...
4049 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
4050 Don't handle top-level non-rtx constructs here. Don't handle (nil)
4052 (read_nested_rtx): New function. Handle (nil) here rather than
4054 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
4056 * read-md.h (directive_handler_t): New type.
4057 (in_fname, include_callback): Moved from read-md.h.
4058 (read_constants, init_md_reader): Delete.
4059 (read_md_files): Declare.
4060 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4061 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4063 (read_constants): Rename to...
4064 (handle_constants): ...this. Don't gobble ')' here.
4065 (handle_include, handle_file, handle_toplevel_file)
4066 (parse_include): New functions, mostly taken from gensupport.c.
4067 (init_md_reader): Subsume into...
4068 (read_md_files): ...this new function.
4070 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4072 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4073 (unread_char): Decrement read_md_lineno after putting back '\n'.
4074 * read-md.c (fatal_with_file_and_line): Push back any characters
4075 that we decide not to add to the context.
4076 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
4077 fatal_expected_char in cases where '/' ends a line (for example).
4078 (read_name): Don't increment read_md_lineno here.
4079 (read_escape): Likewise.
4080 (read_quoted_string): Likewise.
4081 (read_braced_string): Likewise.
4083 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4085 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4086 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4087 * genconstants.c: Include read-md.h.
4088 * read-rtl.c (md_constants): Move to read-md.c.
4089 (md_name): Move to read-md.h.
4090 (initialize_iterators): Use leading_string_hash instead of def_hash
4091 and leading_string_eq_p instead of def_name_eq_p.
4092 (read_name): Move to read-md.c.
4093 (def_hash, def_name_eq_p): Delete.
4094 (read_constants, traverse_md_constants): Move to read-md.c.
4095 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4096 * read-md.h: Include hashtab.h.
4097 (md_name): Moved from read-rtl.c.
4098 (md_constant): Moved from read-md.h.
4099 (leading_string_hash, leading_string_eq_p, read_name)
4100 (read_constants, traverse_md_constants): Declare.
4101 * read-md.c (md_constants): Moved from read-rtl.c.
4102 (leading_string_hash, leading_string_eq_p): New functions.
4103 (read_name, read_constants, traverse_md_constants): Moved from
4106 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4108 * read-rtl.c (md_name): New structure.
4109 (read_name): Take an md_name instead of a buffer pointer.
4110 Use the "string" field instead of strcpy when expanding constants.
4111 (read_constants): Remove the tmp_char argument. Update the calls
4112 to read_name, using two local name buffers instead of the tmp_char
4113 argument. Merge the constant-creation code.
4114 (read_conditions): Remove the tmp_char argument. Update the calls
4115 to read_name, using a local name buffer instead of the tmp_char
4117 (read_mapping): Replace tmp_char variable with a local name buffer.
4118 Update the calls to read_name.
4119 (read_rtx_1): Likewise. Update the calls to read_constants and
4122 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4124 * Makefile.in (build/read-md.o): Depend on errors.h.
4125 * read-md.h (error_with_line): Declare.
4126 * read-md.c: Include errors.h.
4127 (message_with_line_1): New function, extracted from...
4128 (message_with_line): ...here.
4129 (error_with_line): New function.
4130 * genattrtab.c: If a call to message_with_line is followed by
4131 "have_error = 1;", replace both statements with a call to
4133 * genoutput.c: Likewise.
4134 * genpreds.c: Likewise.
4135 * genrecog.c: If a call to message_with_line is followed by
4136 "error_count++;", replace both statements with a call to
4138 (errorcount): Delete.
4139 (main): Don't check it.
4140 * gensupport.c: If a call to message_with_line is followed by
4141 "errors = 1;", replace both statements with a call to error_with_line.
4143 (process_define_cond_exec): Check have_error instead of errors.
4144 (init_md_reader_args_cb): Likewise. Don't set errors.
4146 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4148 * read-md.h (read_md_file): Declare.
4149 (read_char, unread_char): New functions.
4150 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4151 (read_quoted_string, read_string): Remove FILE * argument.
4152 * read-md.c (read_md_file): New variable.
4153 (read_md_filename, read_md_lineno): Update comments and remove
4154 unnecessary initialization.
4155 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4156 (read_escape, read_quoted_string, read_braced_string, read_string):
4157 Remove FILE * argument. Update calls accordingly, using read_char
4158 and unread_char instead of getc and ungetc.
4159 * rtl.h (read_rtx): Remove FILE * argument.
4160 * read-rtl.c (iterator_group): Remove FILE * argument from
4162 (iterator_traverse_data): Remove "infile" field.
4163 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4164 (add_mapping, read_name, read_constants, read_conditions)
4165 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4166 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4167 Remove file arguments from all calls, using read_char and unread_char
4168 instead of getc and ungetc.
4169 * gensupport.c (process_include): Preserve read_md_file around
4170 the include. Set read_md_file to the handle of the included file.
4171 Update call to read_rtx.
4172 (init_md_reader_args_cb): Set read_md_file to the handle of the file
4173 and remove local FILE *. Update calls to read_rtx.
4175 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4177 * read-md.h (read_rtx_lineno): Rename to...
4178 (read_md_lineno): ...this.
4179 (read_rtx_filename): Rename to...
4180 (read_md_filename): ...this.
4181 (copy_rtx_ptr_loc): Rename to...
4182 (copy_md_ptr_loc): ...this.
4183 (print_rtx_ptr_loc): Rename to...
4184 (print_md_ptr_loc): ...this.
4185 * read-md.c: Likewise. Update references after renaming.
4186 (string_obstack): Replace RTL with MD in comment.
4187 (set_rtx_ptr_loc): Rename to...
4188 (set_md_ptr_loc): ...this.
4189 (get_rtx_ptr_loc): Rename to...
4190 (get_md_ptr_loc): ...this.
4191 * genconditions.c: Update references after renaming.
4192 * genemit.c: Likewise.
4193 * genoutput.c: Likewise.
4194 * genpreds.c: Likewise.
4195 * gensupport.c: Likewise.
4196 * read-rtl.c: Likewise.
4198 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4200 * Makefile.in (READ_MD_H): New variable.
4201 (BUILD_RTL): Add build/read-md.o.
4202 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4203 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4204 (build/genattrtab.o, build/genconditions.o build/genemit.o)
4205 (build/genextract.o, build/genflags.o, build/genoutput.o)
4206 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4207 (build/read-md.o): New rule.
4208 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4209 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4210 * coretypes.h: ...here.
4211 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4212 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4213 * genattr.c: Include read-md.h.
4214 * genattrtab.c: Likewise.
4215 * genconditions.c: Likewise.
4216 * genemit.c: Likewise.
4217 * genextract.c: Likewise.
4218 * genflags.c: Likewise.
4219 * genoutput.c: Likewise.
4220 * genpreds.c: Likewise.
4221 * genrecog.c: Likewise.
4222 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4223 (join_c_conditions, print_c_condition, read_rtx_filename)
4224 (read_rtx_lineno): Move to read-md.h.
4225 * read-rtl.c: Include read-md.h.
4226 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4227 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4228 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4229 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4230 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4231 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4232 (read_braced_string, read_string): Move to read-md.c.
4233 (read_rtx): Move some initialization to init_md_reader and call
4234 init_md_reader here.
4235 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4237 * gensupport.c: Include read-md.h.
4238 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4239 * read-md.h, read-md.c: New files.
4241 2010-06-10 Anatoly Sokolov <aesok@post.ru>
4243 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4244 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4245 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4246 * config/moxie/moxie.c (moxie_function_value): Make static.
4247 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4248 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4250 2010-06-10 Martin Jambor <mjambor@suse.cz>
4252 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4253 * dbgcnt.def (tree_sra): New counter.
4254 * tree-sra.c: Include dbgcnt.h.
4255 (gate_intra_sra): Check tree_sra debug counter.
4257 2010-06-10 Martin Jambor <mjambor@suse.cz>
4259 PR tree-optimization/44258
4260 * tree-sra.c (build_access_subtree): Return false iff there is a
4262 (build_access_trees): Likewise.
4263 (analyze_all_variable_accesses): Disqualify candidates if
4264 build_access_trees returns true for them.
4266 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
4269 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4270 tail-recurse into canonical node. Fast-forward over
4271 non-canonical VALUEs.
4273 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
4276 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4277 (*addsi_1_zext) <TYPE_LEA>: Likewise.
4278 (add lea splitter): Likewise.
4279 (add_zext lea splitter): Likewise.
4281 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4283 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4285 2010-06-10 Jan Hubicka <jh@suse.cz>
4287 * df-problems.c (df_live_problem_data): Add live_bitmaps.
4288 (df_live_alloc): Initialize problem data and live_osbtacks.
4289 (df_live_finalize): Remove obstack, problem data; do not
4291 (df_live_top_dump, df_live_bottom_dump): Do not dump old
4292 data when not allocated.
4293 (df_live_verify_solution_start): Do not allocate problem data.
4294 (df_live_verify_solution_end): Check if out is allocated.
4295 (struct df_md_problem_data): New structure.
4296 (df_md_alloc): Allocate problem data.
4297 (df_md_free): Free problem data; do not clear bitmaps.
4299 2010-06-10 Jan Beulich <jbeulich@novell.com>
4302 * configure.ac: Replace $() with ${} when intending to expand
4303 variables rather than invoking commands.
4304 * configure: Re-generate.
4306 2010-06-10 Jan Hubicka <jh@suse.cz>
4308 PR rtl-optimization/44460
4309 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4310 TYPE_NEEDS_CONSTRUCTING sanity check.
4312 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4314 * doc/include/fdl.texi: Move to GFDL version 1.3.
4316 * doc/cpp.texi: Move to GFDL version 1.3.
4317 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
4318 * doc/gccint.texi: Move to GFDL version 1.3.
4319 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
4320 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
4321 * doc/invoke.texi: Move to GFDL version 1.3.
4323 2010-06-09 Jan Hubicka <jh@suse.cz>
4325 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4327 (propagate) ... here; swap the order.
4329 2010-06-09 Jan Hubicka <jh@suse.cz>
4331 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4332 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4333 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4334 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4336 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4338 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4339 Do not the gather memory reference in the outer loop if the step
4342 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4344 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4345 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4346 8 to 4. Minor change of the related comments.
4348 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4350 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4351 the scev analysis when the variable is not used outside the loop
4352 in a close phi node: call compute_overall_effect_of_inner_loop.
4354 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4356 * graphite-sese-to-poly.c (single_pred_cond): Renamed
4357 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
4358 (build_sese_conditions_before): Renamed call to single_pred_cond.
4359 (build_sese_conditions_after): Same.
4361 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4363 * graphite-poly.h: Fix comments and indentation.
4364 * graphite-sese-to-poly.c: Same.
4365 (build_sese_conditions_before): Compute stmt and gbb only when needed.
4366 * tree-chrec.c: Fix comments and indentation.
4367 (tree-ssa-loop-niter.c): Same.
4369 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4371 PR rtl-optimization/42461
4372 * dce.c (deletable_insn_p): Return true for const or pure calls again.
4373 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4375 2010-06-09 Jan Hubicka <jh@suse.cz>
4377 * bitmap.c (bitmap_and): Walk array forward.
4378 (bitmap_and_compl_into): Likewise.
4379 (bitmap_xor): Likewise.
4380 (bitmap_xor_into): Likewise.
4381 (bitmap_equal_p): Likewise.
4382 (bitmap_intersect_p): Likewise.
4383 (bitmap_intersect_compl_p): Likewise.
4384 (bitmap_ior_and_into): Likewise.
4385 (bitmap_elt_copy): Likewise.
4386 (bitmap_and_compl): Likewise.
4387 (bitmap_elt_ior): Likewise.
4389 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
4391 * opts-common.c (prune_options): Ensure replacement argv array
4392 is correctly terminated by a NULL entry.
4394 2010-06-09 Jan Hubicka <jh@suse.cz>
4396 * cgraph.h (varpool_first_static_initializer,
4397 varpool_next_static_initializer): Make checking only when
4399 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4400 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4401 gcc_assert to gcc_checking_assert.
4402 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4403 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4404 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4405 op_iter_init_phiuse, op_iter_init_phidef,
4406 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4407 gcc_checking_assert.
4408 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4409 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4410 partition_is_global, live_on_entry, live_on_exit,
4411 live_merge_and_clear): Likewise.
4412 * system.h (gcc_checking_assert): New macro.
4413 * gimple.h (set_bb_seq): Use gcc_checking_assert.
4415 2010-06-09 Jason Merrill <jason@redhat.com>
4417 * Makefile.in (TAGS): Collect tags info from c-family.
4419 2010-06-09 Jan Hubicka <jh@suse.cz>
4421 * gimple.h (gcc_gimple_checking_assert): New macro.
4422 (gimple_set_def_ops, gimple_set_use_ops,
4423 gimple_set_vuse, gimple_set_vdef,
4424 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4425 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4426 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4427 gimple_asm_output_op, gimple_asm_output_op_ptr,
4428 gimple_asm_set_output_op, gimple_asm_clobber_op,
4429 gimple_asm_set_clobber_op, gimple_asm_label_op,
4430 gimple_asm_set_label_op, gimple_try_set_kind,
4431 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4432 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4433 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4434 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4435 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4436 gimple_omp_for_set_initial, gimple_omp_for_final,
4437 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4438 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4439 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4440 conditional with ENABLE_GIMPLE_CHECKING.
4441 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4443 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
4445 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4446 (get_computation_cost_at): Use it.
4447 (determine_use_iv_cost_condition): Likewise.
4448 (determine_iv_cost): Likewise.
4450 2010-06-09 Richard Guenther <rguenther@suse.de>
4452 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4455 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
4457 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4459 2010-06-09 Martin Jambor <mjambor@suse.cz>
4461 PR tree-optimization/44423
4462 * tree-sra.c (dump_access): Dump also grp_assignment_read.
4463 (analyze_access_subtree): Pass negative allow_replacements to children
4464 if the current type is scalar.
4466 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4469 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4470 * doc/plugins.texi (Plugin license check): Update information
4471 on type of plugin_is_GPL_compatible.
4472 * Makefile.in (PLUGINCC): Define as $(COMPILER).
4473 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4475 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
4477 * config/arm/arm.c (thumb2_reorg): New function.
4478 (arm_reorg): Call it.
4479 * config/arm/thumb2.md (define_peephole2 for flag clobbering
4480 arithmetic operations): Delete.
4482 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
4485 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4488 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4491 * gcc-plugin.h: Encapsulate all declarations in extern "C".
4493 2010-06-08 Jan Hubicka <jh@suse.cz>
4495 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4496 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4498 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
4500 PR tree-optimization/39874
4502 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4504 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4505 same_bool_result_p): New.
4506 (and_var_with_comparison, and_var_with_comparison_1,
4507 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4508 (or_var_with_comparison, or_var_with_comparison_1,
4509 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4510 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4511 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4512 of combine_comparisons.
4513 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4515 2010-06-08 Anatoly Sokolov <aesok@post.ru>
4517 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4518 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4519 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4520 pdp11_function_value_regno_p): New functions.
4521 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4522 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4524 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
4526 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4527 Thumb-2 in the MINUS case.
4529 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4531 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4533 * doc/gty.texi (GTY Options): Document typed GC allocation and
4534 variable_size GTY option.
4536 * ggc-internal.h: New.
4538 * ggc.h: Update copyright year.
4539 (digit_string): Move to stringpool.c.
4540 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4541 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4542 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4543 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4544 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4545 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4546 (ggc_force_collect, ggc_get_size, ggc_statistics)
4547 (ggc_print_common_statistics): Move to ggc-internal.h.
4548 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4549 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4550 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4551 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4552 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4553 (ggc_alloc_zone_pass_stat): Remove.
4554 (ggc_internal_alloc_stat, ggc_internal_alloc)
4555 (ggc_internal_cleared_alloc_stat): New.
4556 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4557 (ggc_internal_vec_alloc_stat)
4558 (ggc_internal_cleared_vec_alloc_stat)
4559 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4560 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4561 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4562 (ggc_cleared_alloc_ptr_array_two_args): New.
4563 (htab_create_ggc, splay_tree_new_ggc): Redefine.
4564 (ggc_splay_alloc): Change the type of the first argument to
4566 (ggc_alloc_string): Make macro.
4567 (ggc_alloc_string_stat): New.
4568 (ggc_strdup): Redefine.
4569 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4570 (ggc_alloc_rtvec_sized): New.
4571 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4572 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4573 (ggc_internal_cleared_alloc_zone_stat)
4574 (ggc_internal_zone_alloc_stat)
4575 (ggc_internal_zone_cleared_alloc_stat)
4576 (ggc_internal_zone_vec_alloc_stat)
4577 (ggc_alloc_zone_rtx_def_stat)
4578 (ggc_alloc_zone_tree_node_stat)
4579 (ggc_alloc_zone_cleared_tree_node_stat)
4580 (ggc_alloc_cleared_gimple_statement_d_stat): New.
4582 * ggc-common.c: Include ggc-internal.h.
4583 (ggc_internal_cleared_alloc_stat): Rename from
4584 ggc_alloc_cleared_stat.
4585 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4586 (ggc_calloc): Remove.
4587 (ggc_cleared_alloc_htab_ignore_args): New.
4588 (ggc_cleared_alloc_ptr_array_two_args): New.
4589 (ggc_splay_alloc): Add obj_type parameter.
4590 (init_ggc_heuristics): Formatting fixes.
4592 * ggc-none.c: Update copyright year.
4593 (ggc_alloc_stat): Rename to ggc_alloc_stat.
4594 (ggc_alloc_cleared_stat): Rename to
4595 ggc_internal_cleared_alloc_stat.
4596 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4598 * ggc-page.c: Update copyright year. Include ggc-internal.h.
4599 Remove references to ggc_alloc in comments.
4600 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4601 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4602 (new_ggc_zone, destroy_ggc_zone): Remove.
4603 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4605 * ggc-zone.c: Include ggc-internal.h. Remove references to
4606 ggc_alloc in comments.
4607 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4608 (ggc_internal_alloc_zone_pass_stat): New.
4609 (ggc_internal_cleared_alloc_zone_stat): New.
4610 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4611 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4612 (new_ggc_zone, destroy_ggc_zone): Remove.
4614 * stringpool.c: Update copyright year. Include ggc-internal.h
4615 (digit_vector): Make static.
4616 (digit_string): Moved from ggc.h.
4617 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4618 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4620 * Makefile.in (GGC_INTERNAL_H): New.
4621 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4622 $(GGC_INTERNAL_H) to dependencies.
4624 * gentype.c: Update copyright year.
4625 (walk_type): Accept variable_size GTY option.
4626 (USED_BY_TYPED_GC_P): New macro.
4627 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
4628 whitespace at the end of strings.
4629 (get_type_specifier, variable_size_p): New functions.
4630 (alloc_quantity, alloc_zone): New enums.
4631 (write_typed_alloc_def): New function.
4632 (write_typed_struct_alloc_def): Likewise.
4633 (write_typed_typed_typedef_alloc_def): Likewise.
4634 (write_typed_alloc_defns): Likewise.
4635 (output_typename, write_splay_tree_allocator_def): Likewise.
4636 (write_splay_tree_allocators): Likewise.
4637 (main): Call write_typed_alloc_defns and
4638 write_splay_tree_allocators.
4640 * lto-streamer.h (lto_file_decl_data_ptr): New.
4642 * passes.c (order): Define using cgraph_node_ptr.
4644 * strinpool.c (struct string_pool_data): Declare nested_ptr using
4647 * gimple.h (union gimple_statement_d): Likewise.
4649 * rtl.h (struct rtx_def): Likewise.
4650 (struct rtvec_def): Likewise.
4652 * tree.h (union tree_node): Likewise.
4654 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
4656 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
4658 * tree-scalar-evolution.c (scev_initialize): Likewise.
4660 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
4662 * dwarf2asm.c (dw2_force_const_mem): Likewise.
4664 * omp-low.c (lower_omp_critical): Likewise.
4666 * bitmap.h (struct bitmap_head_def): Update comment to not
4667 reference ggc_alloc.
4669 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
4671 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
4673 * ipa-prop.c (duplicate_ggc_array): Rename to
4674 duplicate_ipa_jump_func_array. Use typed GC allocation.
4675 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
4677 * gimple.c (gimple_alloc_stat): Use
4678 ggc_alloc_cleared_gimple_statement_d_stat.
4680 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
4682 * tree.c (make_node_stat): Use
4683 ggc_alloc_zone_cleared_tree_node_stat.
4684 (make_tree_vec_stat): Likewise.
4685 (build_vl_exp_stat): Likewise.
4686 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
4687 (make_tree_binfo_stat): Likewise.
4688 (tree_cons_stat): Likewise.
4690 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
4691 (shallow_copy_rtx_stat): Likewise.
4692 (make_node_stat): Likewise.
4694 * lto-symtab.c: Fix comment.
4696 * tree-cfg.c (create_bb): Update comment to not reference
4698 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
4700 * varpool.c (varpool_node): Use typed GC allocation.
4701 (varpool_extra_name_alias): Likewise.
4703 * varasm.c (emutls_decl): Likewise.
4704 (get_unnamed_section): Likewise.
4705 (get_noswitch_section): Likewise.
4706 (get_section): Likewise.
4707 (get_block_for_section): Likewise.
4708 (build_constant_desc): Likewise.
4709 (create_constant_pool): Likewise.
4710 (force_const_mem): Likewise.
4712 * tree.c (build_vl_exp_stat): Likewise.
4713 (build_real): Likewise.
4714 (build_string): Likewise.
4715 (decl_debug_expr_insert): Likewise.
4716 (decl_value_expr_insert): Likewise.
4717 (type_hash_add): Likewise.
4718 (build_omp_clause): Likewise.
4720 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
4722 * tree-ssa.c (init_tree_ssa): Likewise.
4724 * tree-ssa-structalias.c (heapvar_insert): Likewise.
4726 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4728 * tree-ssa-loop-niter.c (record_estimate): Likewise.
4730 * tree-ssa-alias.c (get_ptr_info): Likewise.
4732 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4734 * tree-phinodes.c (allocate_phi_node): Likewise.
4736 * tree-iterator.c (tsi_link_before): Likewise.
4737 (tsi_link_after): Likewise.
4739 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4741 * tree-dfa.c (create_var_ann): Likewise.
4743 * tree-cfg.c (create_bb): Likewise.
4745 * toplev.c (alloc_for_identifier_to_locale): Likewise.
4746 (general_init): Likewise.
4748 * stringpool.c (stringpool_ggc_alloc): Likewise.
4749 (gt_pch_save_stringpool): Likewise.
4751 * sese.c (if_region_set_false_region): Likewise.
4753 * passes.c (do_per_function_toporder): Likewise.
4755 * optabs.c (set_optab_libfunc): Likewise.
4756 (set_conv_libfunc): Likewise.
4758 * lto-symtab.c (lto_symtab_register_decl): Likewise.
4760 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4761 (input_eh_region): Likewise.
4762 (input_eh_lp): Likewise.
4763 (make_new_block): Likewise.
4764 (unpack_ts_real_cst_value_fields): Likewise.
4766 * lto-section-in.c (lto_new_in_decl_state): Likewise.
4768 * lto-cgraph.c (input_node_opt_summary): Likewise.
4770 * loop-init.c (loop_optimizer_init): Likewise.
4772 * lambda.h (lambda_vector_new): Likewise.
4774 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4776 * ira.c (update_equiv_regs): Likewise.
4778 * ipa.c (cgraph_node_set_new): Likewise.
4779 (cgraph_node_set_add): Likewise.
4780 (varpool_node_set_new): Likewise.
4781 (varpool_node_set_add): Likewise.
4783 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
4784 (duplicate_ipa_jump_func_array): Likewise.
4785 (ipa_read_node_info): Likewise.
4787 * ipa-cp.c (ipcp_create_replace_map): Likewise.
4789 * integrate.c (get_hard_reg_initial_val): Likewise.
4791 * gimple.c (gimple_alloc_stat): Likewise.
4792 (gimple_build_omp_for): Likewise.
4793 (gimple_seq_alloc): Likewise.
4794 (gimple_copy): Likewise.
4796 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
4797 (gsi_insert_after_without_update): Likewise.
4799 * function.c (add_frame_space): Likewise.
4800 (insert_temp_slot_address): Likewise.
4801 (assign_stack_temp_for_type): Likewise.
4802 (allocate_struct_function): Likewise.
4803 (types_used_by_var_decl_insert): Likewise.
4805 * except.c (init_eh_for_function): Likewise.
4806 (gen_eh_region): Likewise.
4807 (gen_eh_region_catch): Likewise.
4808 (gen_eh_landing_pad): Likewise.
4809 (add_call_site): Likewise.
4811 * emit-rtl.c (get_mem_attrs): Likewise.
4812 (get_reg_attrs): Likewise.
4813 (start_sequence): Likewise.
4814 (init_emit): Likewise.
4816 * dwarf2out.c (new_cfi): Likewise.
4817 (queue_reg_save): Likewise.
4818 (dwarf2out_frame_init): Likewise.
4819 (new_loc_descr): Likewise.
4820 (find_AT_string): Likewise.
4821 (new_die): Likewise.
4822 (add_var_loc_to_decl): Likewise.
4823 (clone_die): Likewise.
4824 (clone_as_declaration): Likewise.
4825 (break_out_comdat_types): Likewise.
4826 (new_loc_list): Likewise.
4827 (loc_descriptor): Likewise.
4828 (add_loc_descr_to_each): Likewise.
4829 (add_const_value_attribute): Likewise.
4830 (tree_add_const_value_attribute): Likewise.
4831 (add_comp_dir_attribute): Likewise.
4832 (add_name_and_src_coords_attributes): Likewise.
4833 (lookup_filename): Likewise.
4834 (store_vcall_insn): Likewise.
4835 (dwarf2out_init): Likewise.
4837 * dbxout.c (dbxout_init): Likewise.
4839 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4841 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4843 * config/score/score7.c (score7_output_external): Likewise.
4845 * config/score/score3.c (score3_output_external): Likewise.
4847 * config/s390/s390.c (s390_init_machine_status): Likewise.
4849 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4850 (rs6000_init_machine_status): Likewise.
4851 (output_toc): Likewise.
4853 * config/pa/pa.c (pa_init_machine_status): Likewise.
4854 (get_deferred_plabel): Likewise.
4856 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4858 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4860 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4862 * config/mep/mep.c (mep_init_machine_status): Likewise.
4863 (mep_note_pragma_flag): Likewise.
4865 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4867 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4869 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4871 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4872 (i386_pe_maybe_record_exported_symbol): Likewise.
4874 * config/i386/i386.c (get_dllimport_decl): Likewise.
4875 (ix86_init_machine_status): Likewise.
4876 (assign_386_stack_local): Likewise.
4878 * config/frv/frv.c (frv_init_machine_status): Likewise.
4880 * config/darwin.c (machopic_indirection_name): Likewise.
4882 * config/cris/cris.c (cris_init_machine_status): Likewise.
4884 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4886 * config/avr/avr.c (avr_init_machine_status): Likewise.
4888 * config/arm/arm.c (arm_init_machine_status): Likewise.
4890 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4891 (alpha_need_linkage): Likewise.
4892 (alpha_use_linkage): Likewise.
4894 * cgraph.c (cgraph_allocate_node): Likewise.
4895 (cgraph_create_edge_1): Likewise.
4896 (cgraph_create_indirect_edge): Likewise.
4897 (cgraph_add_asm_node): Likewise.
4899 * cfgrtl.c (init_rtl_bb_info): Likewise.
4901 * cfgloop.c (alloc_loop): Likewise.
4902 (rescan_loop_exit): Likewise.
4904 * cfg.c (init_flow): Likewise.
4905 (alloc_block): Likewise.
4906 (unchecked_make_edge): Likewise.
4908 * c-parser.c (c_parse_init): Likewise.
4909 (c_parse_file): Likewise.
4911 * c-decl.c (bind): Likewise.
4912 (record_inline_static): Likewise.
4913 (push_scope): Likewise.
4914 (make_label): Likewise.
4915 (lookup_label_for_goto): Likewise.
4916 (finish_struct): Likewise.
4917 (finish_enum): Likewise.
4918 (c_push_function_context): Likewise.
4920 * bitmap.c (bitmap_element_allocate): Likewise.
4921 (bitmap_gc_alloc_stat): Likewise.
4923 * alias.c (record_alias_subset): Likewise.
4924 (init_alias_analysis): Likewise.
4926 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
4928 * fold-const.c (fold_comparison): Remove redundant parenthesis.
4929 * tree-inline.c (expand_call_inline): Pass translated return value of
4930 cgraph_inline_failed_string to diagnostic function.
4932 2010-06-08 Andrew Pinski <pinskia@gmail.com>
4933 Shujing Zhao <pearly.zhao@oracle.com>
4936 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4937 implicit bad conversions is initialization.
4938 (error_init): Use gmsgid instead of msgid for argument name and change
4940 (pedwarn_init): Use gmsgid instead of msgid for argument name and
4941 change the call for pedwarn.
4942 (warning_init): Use gmsgid instead of msgid for argument name and
4943 change the call for warning.
4945 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
4947 * config/mips/mips-protos.h (mips_print_operand): Delete.
4948 (mips_print_operand_address): Delete.
4949 * config/mips/mips.h (mips_print_operand_punct): Delete.
4950 (PRINT_OPERAND): Delete.
4951 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4952 (PRINT_OPERAND_ADDRESS): Delete.
4953 * config/mips/mips.c (mips_print_operand_punct): Make static.
4954 (mips_print_operand_address): Make static.
4955 (mips_print_operand): Make static. Call
4956 mips_print_operand_punct_valid_p.
4957 (mips_print_operand_punct_valid_p): New function.
4958 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4959 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4961 2010-06-07 Jan Hubicka <jh@suse.cz>
4964 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
4967 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
4969 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
4972 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4974 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4975 attributes): Document gas.
4977 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
4979 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
4980 <TYPE_LEA>: Split instruction.
4981 <default>: Remove alternative 2 handling.
4982 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
4983 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
4984 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
4986 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
4987 (ashift_zext lea splitter): Use DImode for multiplication.
4989 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
4990 to generate addition.
4992 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4994 * common.opt (fira-verbose): Use Var.
4995 (fpcc-struct-return): Use Init instead of VarExists.
4996 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
4998 * flags.h (flag_signed_char, flag_short_enums,
4999 flag_pcc_struct_return, flag_ira_verbose,
5000 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5001 * toplev.c (flag_detailed_statistics, flag_signed_char,
5002 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5003 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5004 * toplev.h (flag_crossjumping, flag_if_conversion,
5005 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5006 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5007 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5008 flag_cprop_registers, time_report, flag_ira_loop_pressure,
5009 flag_ira_coalesce, flag_ira_move_spills,
5010 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5012 2010-06-07 Jan Hubicka <jh@suse.cz>
5014 * df-core.c (df_analyze_problem): Do verification after allocation.
5016 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5017 (df_lr_alloc): Initialize problem data; move bitmaps to
5019 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5020 (df_lr_verify_solution_start): Do not initialize problem data;
5021 allocate bitmaps in lr_bitmaps.
5022 (df_lr_verify_solution_end): Do not free problem data.
5024 2010-06-07 Jan Hubicka <jh@suse.cz>
5026 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5027 if caller is noreturn.
5028 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5029 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5030 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5031 * ipa-pure-const.c (check_decl): Add IPA parameter.
5032 (state_from_flags): New function.
5033 (better_state, worse_state): New functions.
5034 (check_call): When in IPA mode, do not care about callees.
5035 (check_load, check_store): Update.
5036 (check_ipa_load, check_ipa_store): New.
5037 (check_stmt): When in IPA mode, use IPA checkers.
5038 (analyze_function): Use state_from_flags.
5039 (propagate): Check indirect edges and references.
5041 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
5043 PR rtl-optimization/44404
5044 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5045 of count_occurrences to see if it's safe to modify mem_insn.
5047 2010-06-07 Richard Guenther <rguenther@suse.de>
5049 * gimplify.c (gimplify_cleanup_point_expr): For empty body
5050 and EH-only cleanup drop the cleanup instead of inserting it
5053 2010-06-07 Ira Rosen <irar@il.ibm.com>
5055 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5057 * targhooks.c (default_builtin_vectorization_cost): New function.
5058 * targhooks.h (default_builtin_vectorization_cost): Declare.
5059 * target.h (enum vect_cost_for_stmt): Define.
5060 (builtin_vectorization_cost): Change argument and comment.
5061 * tree-vectorizer.h: Remove cost model macros.
5062 * tree-vect-loop.c: Include target.h.
5063 (vect_get_cost): New function.
5064 (vect_estimate_min_profitable_iters): Replace cost model macros with
5065 calls to vect_get_cost.
5066 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5067 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5068 default implementation.
5069 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5070 calls to target hook builtin_vectorization_cost.
5071 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5073 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5074 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5075 implementation to return costs.
5076 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5077 * config/spu/spu.h: Remove vectorizer cost model macros.
5078 * config/i386/i386.h: Likewise.
5079 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5080 a call to target hook builtin_vectorization_cost.
5082 2010-06-06 Sriraman Tallam <tmsriram@google.com>
5085 * config/i386/i386.c (override_options): Turn zee pass on for level 2
5086 and above and defer till target is known.
5087 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5090 2010-05-25 Jan Hubicka <jh@suse.cz>
5092 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5093 (df_compact_blocks): Likewise.
5094 * df.h (struct df): Turn hardware_regs_used,
5095 regular_block_artificial_uses, eh_block_artificial_uses,
5096 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5098 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5099 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5100 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5101 df_scan_blocks, df_insn_delete, df_insn_rescan,
5102 df_insn_rescan_debug_internal, df_insn_rescan_all,
5103 df_process_deferred_rescans, df_process_deferred_rescans,
5104 df_notes_rescan, df_get_call_refs, df_get_call_refs,
5105 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5106 df_record_entry_block_defs, df_record_exit_block_uses,
5107 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5108 df_scan_verify): Update.
5110 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5113 * c-common.c (is_typedef_decl): Move this definition ...
5114 * tree.c (is_typedef_decl): ... here.
5115 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5116 * c-common.h (is_typedef_decl): Move this declaration ...
5117 * tree.h (is_typedef_decl): ... here.
5118 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5119 * dwarf2out.c (is_naming_typedef_decl): New function.
5120 (gen_tagged_type_die): Split out of ...
5121 (gen_type_die_with_usage): ... this function. When an anonymous
5122 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5123 is emitted for the typedef.
5124 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5125 anonymous tagged types.
5127 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5130 * c-decl.c (grokdeclarator): Delete warning.
5132 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
5134 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5135 newly built CALL_EXPR.
5136 * tree-profile.c (tree_profiling): Don't profile functions produced
5139 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
5143 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5144 endianness-independent.
5146 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5148 * c-common.c: Move to c-family/.
5149 * c-common.def: Likewise.
5150 * c-common.h: Likewise.
5151 * c-cppbuiltin.c: Likewise.
5152 * c-dump.c: Likewise.
5153 * c-format.c: Likewise.
5154 * c-format.h : Likewise.
5155 * c-gimplify.c: Likewise.
5156 * c-lex.c: Likewise.
5157 * c-omp.c: Likewise.
5159 * c-opts.c: Likewise.
5160 * c-pch.c: Likewise.
5161 * c-ppoutput.c: Likewise.
5162 * c-pragma.c: Likewise.
5163 * c-pragma.h: Likewise.
5164 * c-pretty-print.c: Likewise.
5165 * c-pretty-print.h: Likewise.
5166 * c-semantics.c: Likewise.
5167 * stub-objc.c: Likewise.
5169 * gengtype.c (get_file_langdir): Special-case files in c-family/.
5170 (get_output_file_with_visibility): Fix name for c-common.h.
5171 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5173 * c-tree.h: Update include path for moved files.
5174 * c-lang.c: Likewise.
5175 * c-lang.h: Likewise.
5176 * c-parser.c: Likewise.
5177 * c-convert.c: Likewise.
5178 * c-decl.c: Likewise.
5179 * c-objc-common.c: Likewise.
5180 * configure.ac: Make sure c-family/ exists in the build directory.
5181 * configure: Regenerate.
5182 * Makefile.in: Update paths for moved files. Regroup files per
5183 location and update dependencies. Move generated_files down after
5186 * config/spu/spu-c.c: Update paths for moved files.
5187 * config/mep/mep-pragma.c: Likewise.
5188 * config/darwin-c.c: Likewise.
5189 * config/i386/msformat-c.c: Likewise.
5190 * config/i386/i386-c.c: Likewise.
5191 * config/avr/avr-c.c: Likewise.
5192 * config/sol2-c.c: Likewise.
5193 * config/ia64/ia64-c.c: Likewise.
5194 * config/rs6000/rs6000-c.c: Likewise.
5195 * config/arm/arm.c: Likewise.
5196 * config/arm/arm-c.c: Likewise.
5197 * config/h8300/h8300.c: Likewise.
5198 * config/v850/v850-c.c: Likewise.
5200 * config/t-darwin: Fix dependencies for moved files.
5201 * config/t-sol2: Fix dependencies for moved files.
5202 * config/mep/t-mep: Fix dependencies for moved files.
5203 * config/ia64/t-ia64: Fix dependencies for moved files.
5204 * config/rs6000/t-rs6000: Fix dependencies for moved files.
5205 * config/v850/t-v850: Fix dependencies for moved files.
5206 * config/v850/t-v850e: Fix dependencies for moved files.
5208 * config/m32c/m32c-pragma.c
5210 * po/exgettext: Look in c-family/ also.
5212 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
5214 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5215 (mark_control_dependent_edges_necessary): Call it instead of marking
5216 the last statement manually.
5217 (propagate_necessity): Likewise.
5219 2010-06-05 Jan Hubicka <jh@suse.cz>
5221 * basic-block.h (compute_dominance_frontiers): Updated.
5222 (compute_idf): Likewise.
5224 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5225 for dominance frontiers.
5226 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5227 (insert_updated_phi_nodes_for): Likewise.
5228 (update_ssa): Likewise.
5229 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5230 (compute_dominance_frontiers): Likewise.
5231 (compute_idf): Likewise.
5232 * df-problems.c (df_md_local_compute): Likewise.
5234 2010-06-05 Anatoly Sokolov <aesok@post.ru>
5236 * target.h (struct gcc_target): Add memory_move_cost field.
5237 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5238 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5239 * targhooks.c (default_memory_move_cost): New function.
5240 * targhooks.h (default_memory_move_cost): Declare function.
5241 * reload.h (memory_move_cost): Declare.
5242 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5243 * reginfo.c (memory_move_cost): New function.
5244 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5245 * ira.h (ira_memory_move_cost): Update comment.
5246 * ira.c: (ira_memory_move_cost): Update comment.
5247 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5248 with memory_move_cost.
5249 * postreload.c (reload_cse_simplify_set): (Ditto.).
5250 * reload1.c (choose_reload_regs): (Ditto.).
5251 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5252 (MEMORY_MOVE_COST): Revise documentation.
5254 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5255 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5256 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5257 type of 'in' argument to bool.
5258 (TARGET_MEMORY_MOVE_COST): Define.
5260 2010-06-05 Jan Hubicka <jh@suse.cz>
5262 * ipa-pure-const.c (propagate): Fix typo in handling of functions
5263 that cannot return. Be more careful when merging the results with
5264 previously known ones.
5266 2010-06-05 Matthias Klose <doko@ubuntu.com>
5268 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5269 function to add the -iplugindir option.
5270 (find_plugindir_spec_function): Add new declaration and function.
5271 (static_spec_func): Use it for "find-plugindir".
5273 2010-06-05 Jakub Jelinek <jakub@redhat.com>
5276 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5277 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5278 statement expression.
5280 2010-06-05 Jan Hubicka <jh@suse.cz>
5282 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5283 (df_rd_problem_data): Convert sparse_invalidated_by_call,
5284 dense_invalidated_by_call to bitmap head.
5285 (df_rd_alloc, df_rd_bb_local_compute_process_def,
5286 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5287 df_rd_start_dump, df_lr_verify_transfer_functions,
5288 df_live_verify_transfer_functions, df_chain_create_bb,
5289 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5290 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5291 df_simulate_one_insn_forwards, df_md_alloc,
5292 df_md_bb_local_compute_process_def,
5293 df_md_bb_local_compute_process_def, df_md_local_compute,
5294 df_md_transfer_function df_md_free): Update.
5296 2010-06-05 Joseph Myers <joseph@codesourcery.com>
5299 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5300 target type for ADDR_EXPR; require no changes to qualifiers except
5302 * c-tree.h (c_build_type_variant): Remove.
5304 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5306 * genautomata.c (get_excl_set): Do work per element, not per char.
5307 (check_presence_pattern_sets): Similar.
5308 (check_absence_pattern_sets): Similar.
5310 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5312 * genautomata.c (curr_state_pass_num): Delete.
5313 (min_issue_delay_pass_states): Delete.
5314 (min_issue_delay): Delete.
5315 (initiate_min_issue_delay_pass_states): Delete.
5316 (output_min_issue_delay_table): Compute min_issue_delay_vect
5317 using a breadth-first search variant.
5318 (output_tables): Don't call initiate_min_issue_delay_pass_states.
5320 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
5323 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5324 (df_byte_lr_bb_local_compute): Likewise.
5326 2010-06-03 Jason Merrill <jason@redhat.com>
5328 Implement noexcept operator (5.3.7)
5329 * c-common.c (c_common_reswords): Add noexcept.
5330 * c-common.h (enum rid): Add RID_NOEXCEPT.
5332 2010-06-04 Joseph Myers <joseph@codesourcery.com>
5334 * config/darwin-driver.c (darwin_default_min_version): Use
5335 GCC-specific formats in diagnostics.
5336 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5338 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5339 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5340 eval_spec_function, handle_braces, process_brace_body, main,
5341 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5342 getenv_spec_function, compare_version_strings,
5343 version_compare_spec_function): Use GCC-specific formats in
5346 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5348 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5349 that operand 0 and operand 1 are equal.
5350 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5351 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5352 and operand 1 are equal.
5353 <default>: Ditto. Remove ??? comment.
5354 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5355 and operand 1 are equal.
5356 <default>: Ditto. Remove ??? comment.
5357 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5359 (*add<mode>_4) <default>: Ditto.
5360 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5362 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
5364 * config/i386/i386-protos.h (ix86_print_operand): Declare.
5365 * config/i386/i386.c (ix86_print_operand): Make non-static.
5366 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5367 * output.h (output_operand): Declare.
5368 * final.c (output_operand): Make non-static.
5370 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
5372 PR rtl-optimization/44013
5373 * sched-deps.c (add_dependence_list_and_free): Don't free lists
5374 when processing debug insns.
5377 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5378 recursing. Check that recursion is bounded. Rename inner var
5379 to avoid hiding incoming argument.
5381 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5383 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5388 (*addqi_ext_1_rex64): Ditto.
5389 (*addqi_ext_1): Ditto.
5391 (*addqi_4): Check for incdec_operand in QImode.
5393 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5394 using SWI mode iterator.
5395 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5396 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5398 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5399 using SWI mode iterator.
5401 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5404 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5405 * c-format.c (gcc_diag_flag_specs): Add hash.
5406 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5407 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5408 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5409 pp_c_cv_qualifiers. Handle qualifiers spelling here.
5410 (pp_c_type_qualifier_list): Call the function above.
5411 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5412 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5413 (WARN_FOR_QUALIFIERS): New macro.
5414 (convert_for_assignment): Use it.
5416 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
5418 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5420 2010-06-04 Jan Hubicka <jh@suse.cz>
5422 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5423 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5424 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5425 DF_BYTE_LR_OUT): Update for embedded bitmaps.
5426 * fwprop.c (single_def_use_enter_block): Likewise.
5427 * ddg.c (create_ddg_dep_from_intra_loop_link,
5428 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5429 * loop-iv.c (latch_dominating_def): Likewise.
5430 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5431 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5432 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5433 df_rd_transfer_function, df_rd_top_dump,
5434 df_rd_bottom_dump): Update.
5435 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5436 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5437 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5438 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5439 df_lr_verify_solution_start, df_lr_verify_solution_end,
5440 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5441 df_live_free_bb_info, df_live_alloc, df_live_reset,
5442 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5443 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5444 df_live_verify_solution_start, df_live_verify_solution_end,
5445 df_live_verify_transfer_functions, df_chain_create_bb,
5446 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5447 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5448 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5449 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5450 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5451 df_byte_lr_transfer_function, df_byte_lr_top_dump,
5452 df_byte_lr_bottom_dump, df_create_unused_note,
5453 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5454 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5455 df_md_transfer_function, df_md_init, df_md_confluence_0,
5457 df_md_top_dump, df_md_bottom_dump): Update.
5458 (struct df_lr_problem_data): Embedd bitmap headers.
5460 2010-06-04 Jan Hubicka <jh@suse.cz>
5462 * dce.c (dce_process_block): Do not re-scan already marked
5465 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
5467 PR rtl-optimization/39871
5468 PR rtl-optimization/40615
5469 PR rtl-optimization/42500
5470 PR rtl-optimization/42502
5471 * ira.c (init_reg_equiv_memory_loc: New function.
5472 (ira): Call it twice.
5473 * reload.h (calculate_elim_costs_all_insns): Declare.
5474 * ira-costs.c: Include "reload.h".
5475 (regno_equiv_gains): New static variable.
5476 (init_costs): Allocate it.
5477 (finish_costs): Free it.
5478 (ira_costs): Call calculate_elim_costs_all_insns.
5479 (find_costs_and_classes): Take estimated elimination costs
5481 (ira_adjust_equiv_reg_cost): New function.
5482 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5483 * reload1.c (init_eliminable_invariants, free_reg_equiv,
5484 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5485 (elim_bb): New static variable.
5486 (reload): Move code out of here into init_eliminable_invariants and
5487 free_reg_equiv. Call them.
5488 (calculate_elim_costs_all_insns): New function.
5489 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
5490 all callers changed. If FOR_COSTS is true, don't call alter_reg,
5491 but call note_reg_elim_costly if we turned a valid memory address
5492 into an invalid one.
5493 * Makefile.in (ira-costs.o): Depend on reload.h.
5495 2010-06-04 Julian Brown <julian@codesourcery.com>
5497 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5500 2010-06-04 Richard Guenther <rguenther@suse.de>
5503 * cgraph.h (struct varpool_node): Add lto_file_data field.
5504 * lto-cgraph.c (input_varpool_node): Initialize it.
5506 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5508 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5509 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5510 predicate in "type" attribute calculation.
5511 (*addsi_1_zext): Ditto.
5512 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5513 (*addsi_2_zext): Ditto.
5514 (*add<mode>_3): Ditto.
5515 (*addsi_3_zext): Ditto.
5516 (*add<mode>_5): Ditto.
5518 2010-06-03 Jan Hubicka <jh@suse.cz>
5520 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5522 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5524 2010-06-03 Jan Hubicka <jh@suse.cz>
5526 * df-problems.c (df_create_unused_note, df_note_bb_compute):
5527 micro-optimize the checks when to add new note.
5529 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
5531 * final.c (output_asm_insn): Call
5532 targetm.asm_out.print_operand_punct_valid_p. Update comments.
5533 (output_operand): Call targetm.asm_out.print_operand. Update comments.
5534 (output_address): Call targetm.asm_out.print_operand_address.
5536 * target.h (struct gcc_target): Add print_operand,
5537 print_operand_address, and print_operand_punct_valid_p fields.
5538 * targhooks.h (default_print_operand): Declare.
5539 (default_print_operand_address): Declare.
5540 (default_print_operand_punct_valid_p): Declare.
5541 * targhooks.c (default_print_operand): Define.
5542 (default_print_operand_address): Define.
5543 (default_print_operand_punct_valid_p): Define.
5544 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5545 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5546 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5547 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5548 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5549 * vmsdbgout.c (addr_const_to_string): Update comment.
5550 * config/i386/i386.c (print_operand): Rename to...
5551 (ix86_print_operand): ...this. Make static.
5552 (print_operand_address): Rename to...
5553 (ix86_print_operand_address): ...this. Make static. Call
5554 ix86_print_operand instead of PRINT_OPERAND.
5555 (ix86_print_operand_punct_valid_p): New function.
5556 (TARGET_PRINT_OPERAND): Define.
5557 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5558 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5559 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5560 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5561 (PRINT_OPERAND): Delete.
5562 (PRINT_OPERAND_ADDRESS): Delete.
5563 * config/i386/i386-protos.h (print_operand): Delete prototype.
5564 (print_operand_address): Delete prototype.
5566 2010-06-03 Richard Guenther <rguenther@suse.de>
5568 PR tree-optimization/44403
5569 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5570 Preserve pointer qualifiers.
5571 (vect_create_data_ref_ptr): Likewise.
5573 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
5576 * defaults.h (MAX_FIXED_MODE_SIZE): New.
5578 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5580 2010-06-03 Jakub Jelinek <jakub@redhat.com>
5583 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5584 return false if merging the bbs would lead to goto_locus
5585 location being lost from the IL.
5587 2010-06-03 Jan Hubicka <jh@suse.cz>
5588 Jakub Jelinek <jakub@redhat.com>
5590 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5591 set->regs[i] is NULL or has just one entry.
5593 2010-06-03 Jan Hubicka <jh@suse.cz>
5595 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5596 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5598 2010-06-03 Paul Brook <paul@codesourcery.com>
5600 * config/arm/arm.c (FL_TUNE): Define.
5601 (arm_default_cpu, arm_cpu_select): Remove.
5602 (all_cores): Populate core field.
5603 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5604 (arm_find_cpu): New function.
5605 (arm_handle_option): Lookup cpu/architecture names.
5606 (arm_override_options): Cleanup mcpu/march/mtune handling.
5607 (arm_file_start): Ditto.
5609 2010-06-03 Alan Modra <amodra@gmail.com>
5612 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5613 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5614 rtx to gen_load_toc_v4_PIC_1b. Tidy.
5615 (rs6000_emit_load_toc_table): Likewise.
5617 2010-06-02 Jan Hubicka <jh@suse.cz>
5619 * passes.c (init_optimization_passes): Put ipa reference
5620 after ipa pure-const.
5622 2010-06-02 Jan Hubicka <jh@suse.cz>
5624 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5625 calls_read_all and calls_write_all.
5626 (get_reference_optimization_summary): Fix formatting.
5627 (is_proper_for_analysis): Check that decl is not readonly.
5628 (propagate_bits): Check CONST/PURE/noreturn flags.
5629 (ipa_init): Move all_module_statics to optimization_summary_obstack.
5630 (analyze_function): Ignore indirect edges.
5631 (copy_global_bitmap): For all module statics, do nothing.
5632 (generate_summary): Do not print calls_read_all/calls_write_all.
5633 (read_write_all_from_decl): Take node as argument; check
5634 cgraph_node_cannot_return.
5635 (propagate): Reorganize read_all/write_all computation;
5636 check indirect edges; check ecf flags; use all_module_statics
5637 in the results; do not free all_module_statics.
5638 (stream_out_bitmap): Handle all_module_statics.
5639 (ipa_reference_write_optimization_summary): Likewise; use
5640 varpool/cgraph encoders to get boundaries.
5641 (ipa_reference_read_optimization_summary): Read in all_module_statics;
5642 use it when possible.
5644 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5647 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5648 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
5650 * doc/extend.texi (powerpc builtins): Document vec_recip,
5651 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
5653 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
5654 (rs6000_emit_swrsqrt): Ditto.
5655 (rs6000_emit_swdivsf): Delete.
5656 (rs6000_emit_swdivdf): Ditto.
5657 (rs6000_emit_swrsqrtsf): Ditto.
5659 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
5660 describe the reciprocal estimate support for each type.
5661 (recip_options): Map -mrecip=<opt> into option bits.
5662 (gen_2arg_fn_t): New typedef for binary rtx gen function.
5663 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
5664 reciprocal estimate instructions.
5665 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
5666 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
5667 Set up rs6000_recip_bits based on the -mrecip* options. Print the
5668 cost information if -mdebug=cost or -mdebug=reg.
5669 (rs6000_override_options): Set -mrecip-precision for power6, and
5670 power7 machines. If -mvsx or -mdfp, enable various options that
5671 came in previous instruction set ISAs, unless the option was
5672 explicitly disabled by the command line option. Parse
5673 -mrecip=<opt> options.
5674 (rs6000_builtin_vectorized_function): Add support for vectorizing
5675 the reciprocal estimate builtins and expansions.
5676 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
5677 (bdesc_2arg): Add reciprocal estimate builtins.
5678 (bdesc_1arg): Add reciprocal square root estimate builtins.
5679 (rs6000_expand_builtin): Rewrite to use a switch statement,
5680 instead of multiple if/then/elses. Add reciprocal estimate builtins.
5681 (rs6000_init_builtins): Create declarations for reciprocal
5683 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
5684 sized, prefer traditional floating point registers, if integer
5685 vector types, prefer altivec registers. Don't actually look at
5686 the memory address any more.
5687 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
5689 (rs6000_load_constant_and_splat): New helper function to load up
5690 the constant for reciprocal estimate instructions.
5691 (rs6000_emit_madd): New helper function for generating
5692 multiply/add type instructions, based on the current switches.
5693 (rs6000_emit_msub): Ditto.
5694 (rs6000_emit_mnsub): Ditto.
5695 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
5696 replace a divide with a reciprocal estimate and fixup, adding
5697 support for machines with high precision and vectors.
5698 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
5699 low precision machines.
5700 (rs6000_emit_swdiv): New common function to be called to replace a
5701 division with reciprocal estimate and fixup.
5702 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
5703 for double and vector types. Add support for high precision machines.
5705 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
5706 the reciprocal estimate instructions can be generated.
5707 (TARGET_FRE): Ditto.
5708 (TARGET_FRSQRTES): Ditto.
5709 (TARGET_FRSQRTE): Ditto.
5710 (RS6000_RECIP_*): New macros for reciprocal estimate support.
5712 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
5713 square root estimate on vectors.
5714 (re<mode>2): New insn for reciprocal division estimate on vectors.
5716 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
5718 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
5719 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
5720 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
5721 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
5722 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
5723 (RS6000_BUILTIN_RSQRT): Ditto.
5724 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
5725 floating point builtin.
5727 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5728 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
5729 __RECIP_PRECISION__ based on the command line switches.
5730 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
5732 * config/rs6000/rs6000.opt (-mrecip): Document add support for
5733 replacing division instructions with reciprocal estimate and fixup.
5734 (-mrecip=<opt>): New option.
5735 (-mrecip-precision): Ditto.
5737 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
5738 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
5739 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
5742 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
5743 (UNSPEC_VREFP): Ditto.
5744 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
5745 conterparts with regard to support of -mno-fused-madd and -ffast-math.
5746 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
5747 reciprocal estimate instructions to be generated.
5748 (altivec_vrefp): Ditto.
5750 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
5752 (rreg): New mode attribute for reciprocal estimate support.
5753 (recip<mode>3): New insn for division using reciprocal estimate
5755 (divide define_split): New define_split to convert floating point
5756 division to use reciprocal estimate if the user used the
5757 appropriate options and the split is run when we can add new
5758 pseudo registers for the fixup.
5759 (rsqrt<mode>2): New insn for reciprocal square root support.
5760 (recipsf3): Move into recip<mode>3.
5762 (fres): Use TARGET_FRES.
5763 (rsqrtsf2): Move into rsqrt<mode>2.
5764 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
5765 (copysignsf3): Add support for VSX.
5766 (fred): Use TARGET_FRE.
5768 (rsqrtdf_internal1): New function for frsqrte instruciton.
5770 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
5773 2010-06-03 Richard Guenther <rguenther@suse.de>
5776 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
5777 (set_user_assembler_libfunc): Likewise.
5779 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5781 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
5783 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
5785 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
5786 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
5787 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
5788 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
5789 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
5790 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
5791 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
5792 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
5793 * defaults.h: Updated for above mentioned changes.
5795 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
5797 * c-common.c: Remove header include of tm_p.h.
5798 * Makefile.in (c-common.o): Remove TM_P_H dependency.
5800 2010-06-02 Jakub Jelinek <jakub@redhat.com>
5802 * tree.h (struct tree_decl_map): New type.
5803 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
5804 (tree_decl_map_hash): New prototype.
5805 (debug_expr_for_decl, value_expr_for_decl): Change into
5806 tree_decl_map hashtab from tree_map.
5807 (init_ttree): Adjust initialization.
5808 (tree_decl_map_hash): New function.
5809 (decl_debug_expr_lookup, decl_debug_expr_insert,
5810 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
5812 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5814 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
5816 * configure: Regenerate.
5817 * config.in: Regenerate.
5819 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
5820 (X86_64_EMULATION): Define.
5821 (TARGET_LD_EMULATION): Use them.
5823 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
5824 (SPARC64_EMULATION): Define.
5825 (LINK_ARCH_SPEC): Use them.
5827 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5829 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
5830 smallest_mode_for_size for computing the precision types of new
5831 graphite IVs. Do not call lang_hooks.types.type_for_size.
5833 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5835 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
5837 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
5839 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5842 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
5843 return false instead.
5845 2010-06-02 Jan Hubicka <jh@suse.cz>
5848 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
5849 create new cgraph node to check callee.
5851 2010-06-02 Richard Guenther <rguenther@suse.de>
5853 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5855 2010-06-02 Richard Guenther <rguenther@suse.de>
5857 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
5858 (lto_wrapper_cleanup): ... this. Do not exit.
5859 (fatal): Adjust. Exit here.
5860 (fatal_perror): Likewise.
5861 (fatal_signal): New function.
5862 (main): Set up signal handlers to cleanup temporary files.
5863 * Makefile.in (lto-wrapper.o): Adjust dependencies.
5865 2010-06-02 Richard Guenther <rguenther@suse.de>
5867 PR tree-optimization/44377
5868 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5870 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5872 * config/s390/2097.md (z10_fhex): Remove insn reservation.
5873 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5874 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5875 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5877 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5879 2010-06-02 Jan Hubicka <jh@suse.cz>
5881 * bitmap.c (bitmap_descriptor): Add search_iter.
5882 (bitmap_find_bit): Increment it.
5883 (print_statistics): Print it.
5885 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
5887 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5888 instead of gimple_build_call_vec. Delete unnecessary local variable.
5890 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5892 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5893 change from yesterday.
5895 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5897 * c-ada-spec.c: Clean up redundant includes.
5899 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
5901 * gimplify.c: Do not include except.h and optabs.h.
5902 (gimplify_body): Do not initialize RTL profiling.
5903 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5904 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5905 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5906 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5909 * tree-pretty-print.h: Include pretty-print.h.
5910 * gimple-pretty-print.h: Include pretty-print.h.
5912 * tree-pretty-print.c: Do not include diagnostic.h.
5913 * tree-vrp.c: Likewise.
5914 * tree-tailcall.c: Likewise
5915 * tree-scalar-evolution.c: Likewise
5916 * tree-ssa-dse.c: Likewise
5917 * tree-chrec.c: Likewise
5918 * tree-ssa-sccvn.c: Likewise
5919 * tree-ssa-copyrename.c: Likewise
5920 * tree-nomudflap.c: Likewise
5921 * tree-call-cdce.c: Likewise
5922 * tree-stdarg.c: Likewise
5923 * tree-ssa-math-opts.c: Likewise
5924 * tree-nrv.c: Likewise
5925 * tree-ssa-sink.c: Likewise
5926 * tree-browser.c: Likewise
5927 * tree-ssa-loop-ivcanon.c: Likewise
5928 * tree-ssa-loop.c: Likewise
5929 * tree-parloops.c: Likewise
5930 * tree-ssa-address.c: Likewise
5931 * tree-ssa-ifcombine.c: Likewise
5932 * tree-if-conv.c: Likewise
5933 * tree-data-ref.c: Likewise
5934 * tree-affine.c: Likewise
5935 * tree-ssa-phiopt.c: Likewise
5936 * tree-ssa-coalesce.c: Likewise
5937 * tree-ssa-pre.c: Likewise
5938 * tree-ssa-live.c: Likewise
5939 * tree-predcom.c: Likewise
5940 * tree-ssa-forwprop.c: Likewise
5941 * tree-ssa-dce.c: Likewise
5942 * tree-ssa-ter.c: Likewise
5943 * tree-ssa-loop-prefetch.c: Likewise
5944 * tree-optimize.c: Likewise
5945 * tree-ssa-phiprop.c: Likewise
5946 * tree-object-size.c: Likewise
5947 * tree-outof-ssa.c: Likewise
5948 * tree-ssa-structalias.c: Likewise
5949 * tree-switch-conversion.c: Likewise
5950 * tree-ssa-reassoc.c: Likewise
5951 * tree-ssa-operands.c: Likewise
5952 * tree-vectorizer.c: Likewise
5953 * tree-vect-data-refs.c: Likewise
5954 * tree-vect-generic.c: Likewise
5955 * tree-vect-stmts.c: Likewise
5956 * tree-vect-patterns.c: Likewise
5957 * tree-vect-slp.c: Likewise
5958 * tree-vect-loop.c: Likewise
5959 * tree-ssa-loop-ivopts.c: Likewise
5960 * tree-ssa-loop-im.c: Likewise
5961 * tree-ssa-loop-niter.c: Likewise
5962 * tree-ssa-loop-unswitch.c: Likewise
5963 * tree-ssa-loop-manip.c: Likewise
5964 * tree-ssa-loop-ch.c: Likewise
5965 * tree-dump.c: Likewise
5966 * tree-complex.c: Likewise
5968 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
5969 * tree-ssa-uninit.c: Likewise
5970 * tree-ssa-threadupdate.c: Likewise
5971 * tree-ssa-uncprop.c: Likewise
5972 * tree-ssa-ccp.c: Likewise
5973 * tree-ssa-dom.c: Likewise
5974 * tree-ssa-propagate.c: Likewise
5975 * tree-ssa-alias.c: Likewise
5976 * tree-dfa.c: Likewise
5977 * tree-cfgcleanup.c: Likewise
5978 * tree-sra.c: Likewise
5979 * tree-ssa-copy.c: Likewise
5980 * tree-ssa.c: Likewise
5981 * tree-profile.c: Likewise
5982 * tree-cfg.c: Likewise
5983 * tree-ssa-threadedge.c: Likewise
5984 * tree-vect-loop-manip.c: Likewise
5986 * tree-inline.c: Do not include diagnostic.h and expr.h.
5988 (copy_decl_for_dup_finish): Do not use NULL_RTX.
5990 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
5991 * tree-loop-distribution.c: Likewise.
5993 2010-06-01 Jan Hubicka <jh@suse.cz>
5995 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
5997 2010-06-01 Jan Hubicka <jh@suse.cz>
5999 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6000 remove return value.
6001 (split_bbs_on_noreturn_calls) .... here.
6002 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6003 * tree-flow.h (fixup_noreturn_call): New.
6005 2010-06-01 Jan Hubicka <jh@suse.cz>
6007 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6009 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
6011 * tree.h (build_nt_call_list): Delete.
6012 * tree.c (build_nt_call_list): Delete.
6014 2010-06-01 Jan Hubicka <jh@suse.cz>
6016 * fwprop.c: Make emit-rtl.h include last.
6017 * rtlanal.c: Include emit-rtl.h.
6018 * genautomata.c: Output emit-rtl include into insn-automata.c
6019 * df-scan.c: Include emit-rtl.h.
6020 * haifa-sched.c: Indlude emit-rtl.h.
6021 * mode-switching.c: Indlude emit-rtl.h.
6022 * graph.c: Indlude emit-rtl.h.
6023 * sel-sched.c: Include emit-rtl.h.
6024 * sel-sched-ir.c: Include emit-rtl.h.
6025 * ira-build.c: Include emit-rtl.h.
6026 * emit-rtl.c: (first_insn, last_insn): Remove defines.
6027 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6029 (set_new_first_and_last_insn, get_last_insn_anywhere,
6030 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6031 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6032 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6033 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6034 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6035 Use accessor functions.
6036 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6037 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6038 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6039 mem_expr_equal_p): Move here from rtl.h.
6040 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6041 Move here from emit-rtl.c; make inline.
6042 * cfglayout.h: Include emit-rtl.h.
6043 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6044 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6045 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6046 mem_expr_equal_p, get_insns, set_first-insn,
6047 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6048 * reg-stack.c: Include emit-rtl.h.
6051 2010-06-01 Jan Hubicka <jh@suse.cz>
6053 * cgraph.h (tree_function_versioning): Update prototype.
6054 (cgraph_function_versioning): Update prototype.
6055 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6057 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6058 (cgraph_materialize_clone, save_inline_function_body): Update use of
6059 tree_function_versioning.
6060 * tree-inline.c (copy_bb): Look for previous copied block to link
6061 after; fix debug output.
6062 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6063 (copy_body): Likewise.
6064 (expand_call_inline): Update use of copy_body.
6065 (tree_function_versioning): Update use of copy body; accept
6066 blocks_to_copy and new_entry.
6068 2010-06-01 Jan Hubicka <jh@suse.cz>
6070 * gegenrtl.c: Remove unnecesary prototypes.
6072 (gendef): Produce static inline.
6074 (main): Do not decode parameters; generate header only.
6075 * Makefile.in (genrtl.c): Remove.
6077 2010-06-01 Jan Hubicka <jh@suse.cz>
6079 * tree-switch-conversion.c (build_one_array): Make it readonly.
6081 2010-06-01 Richard Guenther <rguenther@suse.de>
6083 * optabs.c (init_optabs): Guard all accesses to reinit.
6084 * ipa-pure-const.c (propagate): Fix another typo.
6085 * opts.c (common_handle_option): Split assignment to bool.
6086 * c-opts.c (c_common_handle_option): Likewise.
6088 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6089 Matthew Gingell <gingell@adacore.com>
6091 * doc/invoke.texi: Mention -fdump-ada-spec.
6092 * tree-dump.c (dump_files): Add ada-spec.
6093 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6094 * tree-pass.h (tree_dump_index): Add TDI_ada.
6095 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6096 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6097 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6098 * c-decl.c: Include c-ada-spec.h.
6099 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6101 (c_write_global_declarations): Add handling of -fdump-ada-spec.
6102 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6103 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6104 * c-ada-spec.h, c-ada-spec.c: New files.
6106 2010-06-01 Richard Guenther <rguenther@suse.de>
6109 * ipa-pure-const.c (get_function_state): Hand back varying state
6110 if we do not have one.
6111 (has_function_state): New function.
6112 (duplicate_node_data): Adjust.
6113 (remove_node_data): Likewise.
6114 (pure_const_write_summary): Likewise.
6115 (propagate): Likewise. Fix typo.
6117 2010-06-01 Jan Hubicka <jh@suse.cz>
6119 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6120 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6121 (execute_all_ipa_transforms): Do not play with the states.
6123 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6125 * config/arm/t-linux-androideabi: New.
6126 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6128 2010-06-01 Jan Hubicka <jh@suse.cz>
6130 * tree-inline.c (estimate_num_insns): For stdarg functions look
6131 into call statement to count cost of argument passing.
6133 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
6135 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6136 argument for fprintf.
6137 (ix86_output_addr_diff_elt): Likewise.
6138 (x86_function_profiler): Likewise.
6139 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6140 (LPREFIX): Likewise.
6141 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6143 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6146 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6147 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6148 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6149 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6150 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6151 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6152 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6153 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6156 2010-05-31 Jan Hubicka <jh@suse.cz>
6158 * tree.h (tree_range_check_failed): Declare noreturn.
6160 2010-05-31 Jan Hubicka <jh@suse.cz>
6162 * gimple.c (gimple_call_builtin_p): New function.
6163 * gimple.h (gimple_call_builtin_p): Declare.
6164 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6166 (execute_warn_function_return): BUILT_IN_RETURN is return.
6167 (split_critical_edges): Return edges are not critical.
6168 (is_ctrl_altering_stmt): Builtin_in_return is altering.
6169 (gimple_verify_flow_info): Handle built_in_return.
6170 (execute_warn_function_return): Handle built_in_return.
6171 * ipa-pure-const.c (check_call): Ignore builtin_return.
6173 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6176 * expr.c (expand_assignment): Don't store anything for out-of-bounds
6177 array accesses with non-MEM.
6179 PR tree-optimization/44182
6180 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6181 newly needs to end a bb is followed by debug stmts, instead return
6182 true from the function at the end.
6183 (maybe_move_debug_stmts_to_successors): New function.
6184 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6186 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
6189 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6191 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
6193 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6194 for nested functions in non-optimized compilation.
6196 2010-05-31 Richard Guenther <rguenther@suse.de>
6198 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6200 2010-05-30 Jan Hubicka <jh@suse.cz>
6202 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6204 2010-05-30 Richard Guenther <rguenther@suse.de>
6207 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6208 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6211 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
6213 * config/darwin.c (output_objc_section_asm_op): Add comment.
6214 (name_needs_quotes): Add '_' to list of valid comment chars.
6215 (machopic_output_function_base_name): Remove unneeded quotes.
6216 (darwin_encode_section_info): Adjust asm whitespace.
6217 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6218 (ASM_OUTPUT_LOCAL): Ditto.
6219 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6220 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6221 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6223 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6225 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6226 RS6000_OUTPUT_BASENAME unconditionally.
6227 (rs6000_output_function_epilogue): Likewise.
6229 2010-05-30 Jan Hubicka <jh@suse.cz>
6231 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6234 2010-05-30 Richard Guenther <rguenther@suse.de>
6236 * tree-cfg.c (verify_gimple_assign_single): Implement
6237 verification for COND_EXPR rhs.
6239 2010-05-30 Jan Hubicka <jh@suse.cz>
6241 * cgraph.h (cgraph_dump_file): Declare.
6242 * cgraphunit.c (cgraph_dump_file): Export.
6243 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6245 2010-05-30 Jan Hubicka <jh@suse.cz>
6247 * dwarf2out.c (reference_to_unused,
6248 premark_types_used_by_global_vars_helper): Avoid creation of new
6251 2010-05-30 Jan Hubicka <jh@suse.cz>
6253 * cgraph.h (cgraph_node_cannot_return,
6254 cgraph_edge_cannot_lead_to_return): New functions.
6255 * cgraph.c (cgraph_node_cannot_return,
6256 cgraph_edge_cannot_lead_to_return): Use them.
6257 * ipa-pure-const.c (pure_const_names): New static var.
6258 (check_call): Handle calls not leading to return.
6259 (pure_const_read_summary): Dump info read.
6260 (propagate): Dump info about propagation process; ignore side effects
6261 of functions not leading to exit; fix handling of pure functions.
6263 2010-05-30 Jan Hubicka <jh@suse.cz>
6265 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6266 for tail call epilogues.
6268 2010-05-30 Jan Hubicka <jh@suse.cz>
6270 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6271 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6274 2010-05-29 Jan Hubicka <jh@suse.cz>
6276 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6277 node; remove references in node we no longer keep in cgrpah but need
6280 2010-05-29 Jan Hubicka <jh@suse.cz>
6282 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6284 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6287 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6289 2010-05-29 Jan Hubicka <jh@suse.cz>
6291 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6292 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6293 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6294 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6295 debug_names_replaced_by, debug_update_ssa): Likewise.
6296 * sbitmap.c (debug_sbitmap): Likewise.
6297 * genrecog.c (debug_decision, debug_decision_list): Likewise.
6298 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6299 debug_tree_chain): Likewise.
6300 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6301 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6302 * optabs.c (debug_optab_libfuncs): Likewise.
6303 (verify_loop_closed_ssa): Likewise.
6304 * value-prof.c (verify_histograms): Likewise.
6305 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6306 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6307 * cfghooks.c (verify_flow_info): Likewise.
6308 * fold-const.c (debug_fold_checksum): Likewise.
6309 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6310 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6312 * omega.c (debug_omega_problem): Likewise.
6313 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6314 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6315 * dominance.c (verify_dominators, debug_dominance_info,
6316 debug_dominance_tree): Likewise.
6317 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6318 * df_regno_debug, df_ref_debug,
6319 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6320 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6321 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6322 * sel-sched.c (debug_state): Likewise.
6323 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6325 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6326 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6327 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6328 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6330 * c-pretty-print.c (debug_c_tree): Likewise.
6331 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6332 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6333 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6334 * ebitmap.c (debug_ebitmap): Likewise.
6335 * function.c (debug_find_var_in_block_tree): Likewise.
6336 * print-rtl.c (debug_rtx): Likewise.
6337 (debug_rtx_count): Likewise.
6338 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6339 * stor-layout.c (debug_rli): Likewise.
6340 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6341 * tree-data-ref.c (debug_data_references,
6342 debug_data_dependence_relations, debug_data_reference,
6343 debug_data_dependence_relation, debug_rdg_vertex,
6344 debug_rdg_component, debug_rdg): Likewise.
6345 * tree-affine.c (debug_aff): Likewise.
6346 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6348 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6349 * emit-rtl.c (verify_rtl_sharing): Likewise.
6350 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6351 debug_value_expressions): Likewise.
6352 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6353 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6354 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6355 * cfglayout.c (verify_insn_chain): Likewise.
6356 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6357 debug_clast_stmt, debug_generated_program): Likewise.
6358 * ggc-page.c (debug_print_page_list): Likewise.
6359 * tree-ssa-ter.c (debug_ter): Likewise.
6360 * graphite-dependences.c (debug_pddr): Likewise.
6361 * sched-deps.c (debug_ds): Likewise.
6362 * tree-ssa.c (verify_ssa): Likewise.
6363 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6364 debug_scattering_functions, debug_iteration_domains, debug_pdr,
6365 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6366 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6367 * tree-inline.c (debug_find_tree): Likewise.
6368 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6369 debug_ppl_powerset_matrix): Likewise.
6370 * var-tracking.c (debug_dv): Likewise.
6371 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6372 * cfgloop.c (verify_loop_structure): Likewise.
6373 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6374 * c-common.c (verify_sequence_points): Likewise.
6375 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6376 debug_candidates, debug_rgn_dependencies): Likewise.
6377 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6378 * debug_constraint_graph, debug_solution_for_var,
6379 debug_sa_points_to_info): Likewise.
6380 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6382 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6383 debug_loops, debug_loop, debug_loop_num): Likewise.
6384 * passes.c (debug_pass): Likewise.
6385 (dump_properties): Likewise; add cfglayout property.
6386 (debug_properties): Likewise.
6387 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6388 * varpool.c (debug_varpool): Likewise.
6389 * regcprop.c (debug_value_data): Likewise.
6390 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6391 debug_immediate_uses_for): Likewise.
6393 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6396 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6397 Filter out insn-flags.h.
6399 2010-05-29 Jan Hubicka <jh@suse.cz>
6401 * cgraph.h (struct varpool_node_set_def,
6402 struct cgraph_node_set_def): Remove unused AUX pointer.
6403 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6406 2010-05-29 Jan Hubicka <jh@suse.cz>
6409 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6411 2010-05-29 Richard Guenther <rguenther@suse.de>
6413 * lto-streamer.c (cached_bp): New global variable.
6414 (bitpack_create): Return the cached bitpack, if available.
6415 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6416 (bp_pack_value): Remove redundant asserts.
6418 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6421 * tree-if-conv.c (is_true_predicate): New.
6422 (is_predicated): Use is_true_predicate.
6423 (add_to_predicate_list): Same. Do not use unshare_expr.
6424 (add_to_dst_predicate_list): Same.
6426 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6428 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6430 (predicate_bbs): Same.
6431 (clean_predicate_lists): Same.
6432 (find_phi_replacement_condition): Do not AND the predicate from
6435 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6438 * Makefile.in (build/gencondmd.o): Add a missing `\'.
6440 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6443 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6444 (negdf2): Adjust expander pattern and use negdf2_slow.
6447 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
6449 * basic-block.h (struct control_flow_graph): Move last_label_uid field
6451 * df.h (struct df_base_ref): Move regno field up.
6452 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6453 * expr.h (struct separate_ops): Move location field up.
6454 * optabs.h (struct optab_d): Move libcall_basename field down.
6455 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6456 * config/i386/i386.h (struct machine_function): Convert call_abi field
6457 into a bitfield. Move cfa field to the end of the structure.
6459 2010-05-29 Jan Hubicka <jh@suse.cz>
6461 * varpool.c (varpool_get_node): Fix lookup.
6463 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6465 * config/spu/spu-protos.h: Do not include rtl.h. Protect
6466 RTL specific prototypes with #ifdef RTX_CODE.
6467 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6468 * config/spu/t-spu-elf: Fix dependencies.
6470 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6472 2010-05-29 Mike Stump <mikestump@comcast.net>
6475 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6476 TM_H when building to avoid dependency loops.
6478 2010-05-29 Jan Hubicka <jh@suse.cz>
6480 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6481 refs and body; not the whole node for masters of materialized clones.
6483 2010-05-29 Mike Stump <mikestump@comcast.net>
6485 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6487 2010-05-29 Jan Hubicka <jh@suse.cz>
6489 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6490 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6491 use of clone_function_name.
6492 * cgraph.h (cgraph_create_virtual_clone,
6493 cgraph_function_versioning): update prototypes.
6494 (clone_function_name): Declare.
6495 * ipa-cp.c (ipcp_insert_stage): Update call of
6496 cgraph_create_virtual_clone.
6497 * omp-low.c (create_omp_child_function_name): Use
6498 cgraph_create_virtual_clone.
6499 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6500 (cgraph_function_versioning): Take SUFFIX argument; produce new name
6501 and make decl local.
6503 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6505 * vec.h: Include statistics.h
6506 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
6509 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6511 * c-lex.c: Do not include c-tree.h.
6512 * c-pretty-print.c: Likewise.
6513 * c-opts.c: Likewise.
6514 * c-gimplify.c: Likewise.
6515 * c-common.c: Likewise.
6516 * c-dump.c: Likewise. Include c-common.h.
6518 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6520 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6521 before including diagnostic-core.h.
6522 (c_cpp_error): New prototype moved from c-tree.h.
6523 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6524 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6525 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6526 (c_cpp_error): Prototype moved to c-common.h.
6527 * Makefile.in: Update dependency for C_COMMON_H.
6529 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6531 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6532 * c-common.c (c_register_addr_space): Remove here.
6533 * c-decl.c (c_register_addr_space): Re-add here.
6535 2010-05-28 Mike Stump <mikestump@comcast.net>
6537 * config/darwin-c.c: Remove c-tree.h include.
6539 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6541 * gcc.c: Include diagnostic.h.
6542 (error_count): Remove. All users changed to use errorcount.
6543 (programname): Remove. All users changed to use progname.
6544 (fancy_abort, internal_error, fatal_error, error, warning, inform,
6546 (execute): Don't include "Internal error" and bug reporting
6547 information in argument of internal_error call.
6548 (process_command): Don't increment error_count after calling
6550 (input_filename): Rename to gcc_input_filename. All users
6552 (main): Call diagnostic_initialize. Register delete_temp_files
6553 with atexit. Use seen_error to test for errors.
6554 * gcc.h: Include diagnostic-core.h.
6555 (fatal_error, error, warning): Remove.
6556 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6557 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6558 (gcc.o): Update dependencies.
6560 2010-05-28 Jeff Law <law@redhat.com>
6562 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6564 * ira.h (ira_bad_reload_regno): Declare
6565 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6567 * ira-color.c (update_curr_costs): Free updated hard reg costs.
6568 (ira_reassign_conflict_allocnos): Remove bogus asserts.
6569 (allocno_reload_assign): Likewise.
6571 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
6573 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6576 2010-05-28 Richard Guenther <rguenther@suse.de>
6579 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6580 Stream fixed-point constants mode.
6581 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6583 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6584 Stream fixed-point constants mode.
6585 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6588 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6590 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6591 only place it was called from.
6592 (number_of_latch_executions): Do not return chrec_dont_know when the
6593 may_be_zero is a runtime condition: instead, return a COND_EXPR
6594 including the may_be_zero condition.
6595 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6597 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6600 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6602 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6603 generate COND_EXPRs for degenerate_phi_result.
6605 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6608 * tree-if-conv.c (if_convertible_loop_p): Check the
6609 if-convertibility of phi nodes in non predicated BBs.
6611 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6613 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6615 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6618 * gcc.c (inform, warning, inform): New functions.
6619 (fatal_ice): Rename to internal_error; change cmsgid parameter to
6620 gmsgid. All callers changed.
6621 (notice): Rename to fnotice; add parameter fp. All callers changed.
6622 (fatal_error): Rename to fatal_signal. All users changed.
6623 (fatal): Rename to fatal_error; change cmsgid parameter to
6624 gmsgid. All callers changed.
6625 (process_command): Use warning instead of error for warnings.
6626 (end_going_arg): Don't use _() around argument of error.
6627 (do_spec_1): Use inform for message from %n specs. Use warning
6628 instead of error for warnings.
6629 (main): Use inform for comparison messages. Use warning for
6630 message about unused linker input.
6631 (error): Increment error_count. Print "error: ".
6632 * gcc.h (fatal): Change to fatal_error.
6634 * config/darwin-driver.c (darwin_default_min_version): Use warning
6635 instead of fprintf for warnings.
6636 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6638 2010-05-28 Julian Brown <julian@codesourcery.com>
6640 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6641 (*thumb2_addsi3_compare0_scratch): New.
6642 * config/arm/constraints.md (Pv): New.
6643 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
6645 (*addsi3_compare0_scratch): Likewise.
6647 2010-05-28 Jan Hubicka <jh@suse.cz>
6649 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
6651 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
6652 only on local statics.
6654 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
6656 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
6658 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
6661 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
6662 (OPTION_GLIBC): Define.
6664 2010-05-28 Jakub Jelinek <jakub@redhat.com>
6667 * dwarf2out.c (double_int_type_size_in_bits): New function.
6668 (round_up_to_align): Change first argument and return value to
6670 (field_byte_offset): Work internally on double_ints.
6673 * builtins.c (expand_movstr): Use a temporary pseudo instead
6674 of target even when target is not NULL and not const0_rtx, but
6675 fails movstr predicate.
6676 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
6678 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6680 * final.c (rest_of_clean_state): Use %m in errors instead of
6682 * gengtype.c (read_input_list, close_output_files): Use xstrerror
6683 instead of strerror.
6684 * toplev.c (process_options): Use %m in errors instead of strerror
6686 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
6689 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
6691 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
6692 (ix86_canonical_va_list_type): Make static. Add declaration.
6693 (ix86_enum_va_list): Make static. Reindent.
6694 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
6695 (ix86_canonical_va_list_type): Ditto.
6696 (ix86_enum_va_list): Ditto.
6698 2010-05-28 Richard Guenther <rguenther@suse.de>
6700 * lto-wrapper.c (run_gcc): With -save-temps generate a
6701 user-visible ltrans filename. Fixup ltrans unit numbering.
6703 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
6705 * c-common.c (c_common_nodes_and_builtins): Replace use
6706 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
6707 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
6708 to ix86_enum_va_list.
6709 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
6710 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
6711 (TARGET_ENUM_VA_LIST_P): Add hook description.
6712 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
6713 * target.h (gcc_target): Add enum_va_list hook.
6716 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
6717 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
6718 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
6720 2010-05-28 Alan Modra <amodra@gmail.com>
6723 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6724 emit_library_call machinery to set up __tls_get_addr calls.
6726 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6728 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
6730 2010-05-28 Dodji Seketeli <dodji@redhat.com>
6732 Revert fix for PR c++/44188
6733 * c-common.c (is_typedef_decl): Revert the moving of this
6735 * tree.c (is_typedef_decl): ... here.
6736 (typdef_variant_p): Revert the moving of this definition
6737 here from gcc/cp/tree.c.
6738 * c-common.h (is_typedef_decl): Revert the moving of this
6740 * tree.h (is_typedef_decl): ... here.
6741 (typedef_variant_p): Revert the moving of this declaration here
6742 from gcc/cp/cp-tree.h
6743 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
6744 (gen_tagged_type_die): Revert the splitting out of ...
6745 (gen_type_die_with_usage): ... this function. Revert the anonymous
6746 tagged type handling.
6747 (gen_typedef_die): Revert emitting DW_TAG_typedef for
6748 typedefs naming anonymous tagged types.
6750 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
6752 * config/rs6000/rs6000-modes.def (PSImode): Delete.
6754 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
6756 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
6757 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
6759 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
6761 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
6762 XER_REGS to CA_REGS throughout.
6763 * config/rs6000/rs6000.h: Same.
6764 (ADDITIONAL_REGISTER_NAMES): Add "xer".
6765 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
6766 that mode_iterator "P" is the size for arithmetic carries as well.
6767 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
6769 2010-05-28 Jakub Jelinek <jakub@redhat.com>
6772 * combine.c (struct rtx_subst_pair): Define unconditionally.
6773 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
6774 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
6775 Call make_compound_operation on pair->to.
6776 (propagate_for_debug): Don't call make_compound_operation here.
6777 Always use simplify_replace_fn_rtx.
6779 2010-05-27 Sterling Augustine <sterling@tensilica.com>
6781 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
6782 * config/xtensa/xtensa.c (override_options): Check
6783 TARGET_FORCE_NO_PIC and set flag_pic.
6784 * config/xtensa/xtensa.opt: Document -mforce-no-pic
6786 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
6789 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
6790 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
6792 2010-05-27 Joseph Myers <joseph@codesourcery.com>
6794 * diagnostic-core.h: New. Contents moved from diagnostic.h and
6796 * diagnostic.c: Don't include toplev.h.
6797 (progname): Define. Moved from toplev.c.
6798 (seen_error): New function.
6799 * diagnostic.h: Include diagnostic-core.h.
6800 (diagnostic_t, emit_diagnostic): Don't declare here.
6801 * toplev.c (progname): Move to toplev.c.
6802 (emit_debug_global_declarations, compile_file, finalize,
6803 do_compile, toplev_main): Use seen_error.
6804 * toplev.h: Include diagnostic-core.h.
6805 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
6806 internal_error, warning, warning_at, error, error_n, error_at,
6807 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
6808 verbatim, fnotice, progname): Move to diagnostic-core.h.
6809 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
6810 (expand_builtin_expect): Use seen_error.
6811 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
6812 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
6813 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
6814 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
6815 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
6816 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
6817 errorcount for errors.
6818 * c-opts.c (c_common_finish): Use seen_error.
6819 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6820 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
6821 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
6822 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
6823 (get_coverage_counts): Use seen_error.
6824 * dwarf2out.c (dwarf2out_finish): Use seen_error.
6825 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
6826 gimplify_body): Use seen_error.
6827 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
6828 * ipa-pure-const.c (gate_pure_const): Use seen_error.
6829 * ipa-reference.c (gate_reference): Use seen_error.
6830 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
6831 * lambda-code.c: Include diagnostic-core.h instead of
6833 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6834 * lto-compress.c: Include diagnostic-core.h instead of
6836 * lto-section-in.c: Include diagnostic-core.h instead of
6838 * lto-streamer-out.c: Include diagnostic-core.h instead of
6840 * lto-streamer.c: Include diagnostic-core.h instead of
6842 (gate_lto_out): Use seen_error.
6843 * matrix-reorg.c: Include diagnostic-core.h instead of
6845 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
6846 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
6847 (gate_expand_omp, lower_omp_1): Use seen_error.
6848 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
6849 (rest_of_decl_compilation, rest_of_type_compilation,
6850 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
6851 * tree-cfg.c (label_to_block_fn): Use seen_error.
6852 * tree-inline.c (optimize_inline_calls): Use seen_error.
6853 * tree-mudflap.c (mudflap_finish_file): Use
6855 * tree-optimize.c (gate_all_optimizations,
6856 gate_all_early_local_passes, gate_all_early_optimizations): Use
6858 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
6859 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
6860 (varpool_remove_unreferenced_decls,
6861 varpool_assemble_pending_decls): Use seen_error.
6862 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6863 (TOPLEV_H, DIAGNOSTIC_H): Update.
6864 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6865 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6866 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6867 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6868 coverage.o, lambda-code.o): Update dependencies.
6870 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6873 * c-common.c (is_typedef_decl): Move this definition ...
6874 * tree.c (is_typedef_decl): ... here.
6875 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6876 * c-common.h (is_typedef_decl): Move this declaration ...
6877 * tree.h (is_typedef_decl): ... here.
6878 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6879 * dwarf2out.c (is_naming_typedef_decl): New function.
6880 (gen_tagged_type_die): Split out of ...
6881 (gen_type_die_with_usage): ... this function. When an anonymous
6882 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6883 is emitted for the typedef.
6884 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6885 anonymous tagged types.
6887 2010-05-27 Jason Merrill <jason@redhat.com>
6889 * print-tree.c (debug_vec_tree): New fn.
6890 (print_vec_tree): New fn.
6891 * tree.h: Declare them.
6892 * gdbinit.in (pvt): New command.
6894 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6896 * gdbinit.in (pdd): New command.
6898 2010-05-27 Jan Hubicka <jh@suse.cz>
6900 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6901 (update_caller_keys): Return early if there are no callers;
6902 only update fibheap when decresing the key.
6903 (update_callee_keys): Avoid recursion.
6904 (decide_inlining_of_small_functions): When badness does not match;
6905 re-insert into fibheap.
6907 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
6909 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6910 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6911 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6912 (ALL_HOST_OBJS): Now a union of the above two.
6913 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6914 all files in ALL_HOST_FRONTEND_OBJS.
6915 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6917 * c-common.c: Pretend to be a backend file by undefining
6918 IN_GCC_FRONTEND (still need rtl.h here).
6920 2010-05-27 Jan Hubicka <jh@suse.cz>
6922 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6923 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6925 2010-05-27 Jan Hubicka <jh@suse.cz>
6927 * sched-ebb.c: Rename struct deps to struct deps_desc.
6929 * sel-sched-ir.c: Likewise.
6930 * sched-deps.c: Likewise.
6931 * sched-int.h: Likewise.
6932 * sched-rgn.c: Likewise.
6934 2010-05-27 Jon Beniston <jon@beniston.com>
6937 * config/lm32/lm32.h: Remove definition of
6938 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6940 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
6943 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
6945 2010-05-27 Richard Guenther <rguenther@suse.de>
6947 PR tree-optimization/44284
6948 * tree-vect-stmts.c (vectorizable_assignment): Handle
6949 sign-changing conversions as simple copy.
6951 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6953 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
6955 (__gthread_active_p): Check for pthread_create if compiling against
6958 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6960 Support compilation for Android platform. Reimplement -mandroid.
6962 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
6963 (*android*): Set ANDROID_DEFAULT.
6964 (arm*-*-linux*): Include linux-android.h.
6965 (arm*-*-eabi*): Don't include previous -mandroid implementation.
6966 * config/arm/eabi.h: Remove, move Android-specific parts ...
6967 * config/linux-android.h: ... here. New file.
6968 * config/arm/eabi.opt: Rename to ...
6969 * config/linux-android.opt: ... this.
6970 (mandroid): Allow -mno-android option. Initialize based on
6972 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
6973 Move logic to corresponding LINUX_TARGET_* macros.
6974 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
6975 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
6976 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
6977 Android definitions.
6978 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
6979 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
6982 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6984 Add support for Bionic C library
6986 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
6988 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
6989 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
6991 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
6992 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
6993 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
6994 to support multiple C libraries. Handle Bionic.
6995 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
6996 (BIONIC_DYNAMIC_LINKER64): Define.
6997 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
6999 (TARGET_HAS_SINCOS): Enable for Bionic.
7001 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
7002 the last option specified on command line take effect.
7003 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7005 (mglibc, muclibc): Update.
7007 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7008 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7011 * doc/invoke.texi (-mglibc, -muclibc): Update.
7012 (-mbionic): Document.
7014 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7016 * c-common.h (c_register_addr_space): Add prototype.
7017 (ADDR_SPACE_KEYWORD): Remove.
7018 * c-common.c (c_register_addr_space): New function.
7019 (c_addr_space_name): Reimplement.
7020 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7022 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7023 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7025 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7026 Remove TARGET_ADDR_SPACE_KEYWORDS.
7028 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7030 * input.c: New file.
7031 * input.h (main_input_filename): Move declaration to toplev.h.
7032 * toplev.c (input_location, line_table): Move to input.c
7033 * toplev.h (main_input_filename): Move declaration from input.h.
7034 * tree.c (expand_location): Move to input.c.
7035 * Makefile.in (OBJS-common): Add input.o.
7036 (input.o): Add dependencies.
7038 2010-05-27 Richard Guenther <rguenther@suse.de>
7040 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7041 for non-existant files.
7042 (fork_execute): Mark args_name file as deleted.
7044 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7047 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7048 (narrow_signed_type): Likewise.
7050 2010-05-26 Jan Hubicka <jh@suse.cz>
7052 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7053 edge only when checking is enabled; check using former_clone_of;
7054 check inline clones too.
7055 (cgraph_materialize_clone): Record former_clone_of pointer.
7056 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7057 combining redirections; dump args_to_skip bitmap
7058 (cgraph_materialize_all_clones): Do no redirection here.
7059 * ipa-inline.c (inline_transform): Do redirection here.
7060 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7063 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7065 * config/avr/avr-c.c: Do not include regs.h.
7066 Include cpplib.h for cpp_define and tree.h for c-common.h.
7067 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7068 * config/avr/t-avr: Fix dependencies for avr-c.o.
7070 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7072 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7073 string instead of SYMBOL_REF rtx.
7074 * rtl.h (set_stack_check_libfunc): Move prototype from here...
7075 * libfuncs.h: ...to here. Adjust for explow.c change.
7077 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7079 * pretty-print.c: Don't include ggc.h.
7080 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7081 (identifier_to_locale): Use them for allocation.
7082 * pretty-print.h (identifier_to_locale_alloc,
7083 identifier_to_locale_free): Declare.
7084 * toplev.c (alloc_for_identifier_to_locale): New.
7085 (general_init): Set identifier_to_locale_alloc and
7086 identifier_to_locale_free.
7087 * Makefile.in (pretty-print.o): Update dependencies.
7089 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7091 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7092 pointer types if they have different alignment or mode.
7094 2010-05-26 Anatoly Sokolov <aesok@post.ru>
7096 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7097 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7098 * config/sparc/sparc-protos.h (function_value): Remove declaration.
7099 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7100 sparc_function_value_regno_p): New functions.
7101 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7102 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7103 (function_value): Rename to...
7104 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7105 argument to 'outgoing'.
7106 (function_arg_record_value, function_arg_union_value,
7107 function_arg_vector_value): Update comment.
7109 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7111 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7112 (fde_needed_for_eh_p): New predicate.
7113 (output_call_frame_info): Use it throughout to decide whether FDEs
7114 are needed for EH purpose.
7115 (dwarf2out_begin_prologue): Reorder assignments.
7117 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7119 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7120 special case loop->header.
7121 (is_predicated): New.
7122 (if_convertible_loop_p): Call it.
7124 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7126 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7127 iterator in parameter. Do not generate code during the analysis.
7128 (tree_if_convert_cond_stmt): Removed.
7129 (tree_if_convert_stmt): Removed.
7130 (predicate_bbs): New.
7131 (if_convertible_loop_p): Call predicate_bbs.
7132 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7133 now contains all the analysis part.
7135 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7137 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7138 statements in the analysis part.
7139 (tree_if_convert_stmt): Update comment.
7140 (remove_conditions_and_labels): New.
7141 (combine_blocks): Call remove_conditions_and_labels.
7142 (tree_if_conversion): Update comment.
7144 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7146 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7147 than 2 predecessors or more than 2 successors.
7149 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7151 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7152 of loops in which the data dependence analysis fails.
7154 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7156 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7157 CDI_POST_DOMINATORS.
7158 (tree_if_conversion): Same.
7160 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7162 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7164 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7166 * tree-if-conv.c: Update copyright years. Fix comments.
7169 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
7171 * builtin-types.def (BT_INT128): New primitive type.
7172 (BT_UINT128): Likewise.
7173 * c-common.c (c_common_r): Add __int128 keyword.
7174 (c_common_type_for_size): Handle __int128.
7175 (c_common_type_for_mode): Likewise.
7176 (c_common_signed_or_unsigned_type): Likewise.
7177 (c_common_nodes_and_builtins): Add builtin type
7178 if target supports 128-bit integer scalar.
7179 * c-common.h (enum rid): Add RID_INT128.
7180 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7181 if target supports 128-bit integer scalar.
7182 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7183 (finish_declspecs): Likewise.
7184 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7185 (c_token_starts_declspecs): Likewise.
7186 (c_parser_declspecs): Likewise.
7187 (c_parser_attributes): Likewise.
7188 (c_parser_objc_selector): Likewise.
7189 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7190 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7191 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7192 * tree.c (make_or_reuse_type): Likewise.
7193 (make_unsigned_type): Likewise.
7194 (build_common_tree_nodes_2): Likewise.
7195 * tree.h (enum integer_type_kind): Add itk_int128 and
7196 itk_unsigned_int128.
7197 (int128_integer_type_node): New define.
7198 (int128_unsigned_type_node): New define.
7199 * doc/extend.texi: Add documentation about __int128 type.
7201 2010-05-26 Richard Guenther <rguenther@suse.de>
7203 * tree-ssa-sccvn.c (copy_nary): Adjust.
7204 (copy_phis): Rename to ...
7205 (copy_phi): ... this. Adjust.
7206 (copy_references): Rename to ...
7207 (copy_reference): ... this. Adjust.
7208 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7209 result into the valid table.
7211 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7213 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7214 insn-config.h, insn-codes.h, recog.h, and optabs.h.
7216 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7218 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7220 2010-05-26 Richard Guenther <rguenther@suse.de>
7222 * opts.c (common_handle_option): Handle OPT_Ofast.
7224 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7226 * diagnostic.c: Don't include opts.h.
7227 (permissive_error_option): Define.
7228 (diagnostic_initialize): Take n_opts parameter. Allocate memory
7229 for classify_diagnostic. Don't use memset for
7230 classify_diagnostic. Initialize new and recently added fields.
7231 (diagnostic_classify_diagnostic): Use context->n_opts instead of
7233 (diagnostic_report_diagnostic): Pass context parameter to
7234 diagnostic_report_warnings_p. Use option_enabled and option_name
7236 (emit_diagnostic): Use permissive_error_option.
7237 (permerror): Likewise.
7238 * diagnostic.h: Don't include options.h.
7239 (struct diagnostic_context): Add n_opts, opt_permissive,
7240 inhibit_warnings, warn_system_headers, option_enabled and
7241 option_name fields. Change classify_diagnostic to a pointer.
7242 * opts-diagnostic.h: New file.
7243 * opts.c: Include opts-diagnostic.h.
7244 (common_handle_option): Set global_dc fields for -Wfatal-errors,
7245 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7246 (option_name): New function.
7247 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7248 (c_common_handle_option): Set global_dc->permissive for
7250 * c-common.c (c_cpp_error): Save and restore
7251 global_dc->warn_system_headers, not variable warn_system_headers.
7252 * toplev.c: Include opts-diagnostic.h.
7253 (general_init): Update call to diagnostic_initialize. Set
7254 global_dc->show_column, global_dc->option_enabled and
7255 global_dc->option_name.
7256 (process_options): Don't set global_dc fields here.
7257 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7258 (diagnostic.o, opts.o, toplev.o): Update dependencies.
7260 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7262 * config/picochip/picochip.md (movsi): Split a movsi from a
7265 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7267 * ggc-zone.c: Update copyright year.
7268 (poison_region): Mark memory for Valgrind as undefined before
7269 memset () call and inaccessible afterwards.
7270 (ggc_pch_total_size): Change type of i to int.
7272 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7274 * ggc-common.c (ggc_free_overhead): Allow empty slot.
7276 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7278 * ggc-common.c: Update copyright year.
7279 (ggc_rlimit_bound): Remove prototype. Compile only if
7280 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7281 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7282 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
7283 (ggc_min_heapsize_heuristic): Likewise.
7285 2010-05-26 Richard Guenther <rguenther@suse.de>
7287 PR rtl-optimization/44164
7288 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7289 no-common access-path disambiguation.
7290 (indirect_ref_may_alias_decl_p): Adjust.
7291 (indirect_refs_may_alias_p): Likewise.
7292 (refs_may_alias_p_1): Likewise.
7294 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7296 * c-typeck.c: Do not include expr.h.
7298 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7300 * rtl.h (decl_default_tls_model): Move prototype from here...
7301 * output.h: ...to here.
7302 * c-decl.c: Do not include rtl.h.
7303 * c-pragma.c: Likewise.
7304 * c-parser.c: Likewise.
7305 * c-gimplify.c: Likewise. And also not hard-reg-set.
7306 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
7307 FIXME note for it. Add a FIXME note for expr.h.
7308 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7309 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7312 2010-05-26 Jakub Jelinek <jakub@redhat.com>
7315 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7316 or total_size is larger than red zone size for non-V4 ABI, emit a
7317 stack_tie resp. frame_tie insn before stack pointer restore.
7318 * config/rs6000/rs6000.md (frame_tie): New insn.
7320 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
7322 * function.h (struct function): Add can_throw_non_call_exceptions bit.
7323 * lto-streamer-in.c (input_function): Stream it in.
7324 * lto-streamer-out.c (output_function): Stream it out.
7325 * function.c (allocate_struct_function): Set it.
7326 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7327 for flag_non_call_exceptions.
7328 * cfgbuild.c (control_flow_insn_p): Likewise.
7329 (make_edges): Likewise.
7330 * cfgexpand.c (expand_stack_alignment): Likewise.
7331 * combine.c (distribute_notes): Likewise.
7332 * cse.c (cse_extended_basic_block): Likewise.
7333 * except.c (insn_could_throw_p): Likewise.
7334 * gcse.c (simple_mem): Likewise.
7335 * ipa-pure-const.c (check_call): Likewise.
7336 (check_stmt ): Likewise.
7337 * lower-subreg.c (lower-subreg.c): Likewise.
7338 * optabs.c (emit_libcall_block): Likewise.
7339 (prepare_cmp_insn): Likewise.
7340 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7341 * postreload.c (rest_of_handle_postreload): Likewise.
7342 * reload1.c (reload_as_needed): Likewise.
7343 (emit_input_reload_insns): Likewise.
7344 (emit_output_reload_insns): Likewise.
7345 (fixup_abnormal_edges): Likewise.
7346 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7347 * store-motion.c (find_moveable_store): Likewise.
7348 * tree-eh.c (stmt_could_throw_p): Likewise.
7349 (tree_could_throw_p): Likewise.
7350 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7351 * config/arm/arm.c (arm_expand_prologue): Likewise.
7352 (thumb1_expand_prologue): Likewise.
7353 * config/rx/rx.md (cbranchsf4): Likewise.
7355 * config/s390/s390.c (s390_emit_prologue): Likewise.
7356 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7357 (inline_forbidden_into_p): New predicate.
7358 (expand_call_inline): Use it to forbid inlining.
7359 (tree_can_inline_p): Likewise.
7361 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7363 * config/i386/i386-c.c: Do not include rtl.h.
7364 * config/i386/t-i386: Update dependencies.
7366 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7368 * attribs.c: Do not include rtl.h.
7369 * Makefile.in: Update dependencies.
7371 2010-05-25 Anatoly Sokolov <aesok@post.ru>
7373 * double-int.h (double_int_and): New.
7374 * combine.c (try_combine): Clean up, use double_int_* and
7375 immed_double_int_const functions.
7377 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7379 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7380 stderr to /dev/null instead of grep -q.
7381 * configure: Regenerate.
7383 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7385 * Makefile.in (EXCEPT_H): Fix typo.
7387 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
7389 * ira-build.c (update_conflict_hard_reg_costs): New.
7390 (ira_build): Call update_conflict_hard_reg_costs.
7392 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7395 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7397 (intersect_loc_chains): Walk the s2var's loc_chain together
7398 with s1node chain as long as the locations are equal, don't
7399 call find_loc_in_1pdv in that case.
7402 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7403 (copy_bind_expr): ... instead of here.
7404 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7405 if the block hasn't been remapped.
7406 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7407 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7409 2010-05-25 Richard Guenther <rguenther@suse.de>
7412 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7413 out-of-bounds array accesses.
7415 2010-05-25 Richard Guenther <rguenther@suse.de>
7417 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7418 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7419 (run_gcc): Re-organize to make cleanup easier.
7421 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7423 * config/s390/s390.c (optimization_options): Fix and move the
7424 flag_prefetch_loop_arrays override ...
7425 (override_options): ... here.
7427 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7429 * diagnostic.c: Don't include plugin.h.
7430 (diagnostic_report_diagnostic): Don't handle plugins specially
7431 here. Pass context to internal_error callback.
7432 * diagnostic.h (struct diagnostic_context): Add context parameter
7433 to internal_error callback.
7434 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7435 * plugin.h (struct diagnostic_context): Declare.
7436 (warn_if_plugins, plugins_internal_error_function): Declare.
7437 * toplev.c (general_init): Set global_dc->internal_error.
7438 * Makefile.in (diagnostic.o): Update dependencies.
7440 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
7442 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7443 * config/rs6000/t-darwin64: New.
7444 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7447 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
7450 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7451 match the original (and intended) behaviour before r159557. This
7452 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7455 2010-05-25 Richard Guenther <rguenther@suse.de>
7457 * doc/invoke.texi: Document -Ofast.
7458 * target.h (struct gcc_target): Add handle_ofast.
7459 * target-def.h (TARGET_HANDLE_OFAST): Add.
7460 (TARGET_INITIALIZER): Adjust.
7461 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
7462 * common.opt (Ofast): Add.
7464 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7466 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7467 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7469 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7472 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7473 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
7474 false_rtx. Use false_rtx to compute the correct *ptest for reversed
7475 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7477 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7479 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7480 DW_OP_minus with negated offset instead of DW_OP_plus.
7481 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7483 2010-05-25 Wei Guozhi <carrot@google.com>
7485 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7486 tst instruction and a new alternative.
7487 * config/arm/constraints.md (Pu): New constraint.
7489 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
7491 * function.c (assign_stack_local_1): Initialize variable
7492 to avoid warning when bootstrapping at -O3.
7494 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
7496 * configure.ac (all_lang_makefiles): Remove everything related to it.
7497 * configure: Regenerate.
7498 * Makefile.in: Fix reference to ada Make-lang.in.
7499 Remove support for LANG_MAKEFILES.
7501 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
7502 Sandra Loosemore <sandra@codesourcery.com>
7504 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7505 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7506 description. Add arm_neon_fp16_ok.
7507 (Add Options): Add arm_neon and arm_neon_fp16.
7509 2010-05-24 Joseph Myers <joseph@codesourcery.com>
7511 * diagnostic.c: Don't include flags.h.
7512 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7513 context parameters. Check flags in the context passed as a parameter.
7514 (diagnostic_build_prefix): Add context parameter. Check
7515 show_column flag in context.
7516 (diagnostic_action_after_output): Check fatal_errors flag in context.
7517 (diagnostic_report_current_module): Check show_column flag in context.
7518 (default_diagnostic_starter): Update call to
7519 diagnostic_build_prefix.
7520 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7521 (emit_diagnostic): Pass context to permissive_error_kind.
7522 (permerror): Pass context to permissive_error_kind.
7523 * diagnostic.h (struct diagnostic_context): Add show_column,
7524 pedantic_errors, permissive and fatal_errors fields.
7525 (diagnostic_build_prefix): Update prototype.
7527 * toplev.c (process_options): Set flags in global_dc from
7528 flag_show_column, flag_pedantic_errors, flag_permissive,
7530 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7531 to diagnostic_build_prefix.
7532 * Makefile.in (diagnostic.o): Update dependencies.
7534 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
7536 * config/i386/ia32intrin.h (__crc32q): Define only if
7537 __SSE4_2__ is defined.
7539 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
7543 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7544 DECL_VISIBILITY_SPECIFIED.
7545 (emutls_decl): Set DECL_PRESERVE_P and copy
7546 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7547 (emutls_finalize_control_var): New callback.
7548 (emutls_finish): Finalize emutls control variables.
7549 * toplev.c (compile_file): Move the call to emutls_finish ()
7550 before varpool_assemble_pending_decls ().
7552 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
7554 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7555 added to the preprocessor condition.
7557 2010-05-24 Paul Brook <paul@codesourcery.com>
7559 * gengtype-lex.l: Add HARD_REG_SET.
7560 * expr.c (expand_expr_real_1): Record writes to hard registers.
7561 * function.c (rtl_data): Add asm_clobbers.
7562 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7563 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7564 Use crtl->asm_clobbers.
7566 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7568 * doc/makefile.texi (Makefile): Mention stages 'profile'
7569 and 'feedback' for profiledbootstrap.
7571 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
7574 * config/i386/i386.c (def_builtin): Properly check
7575 OPTION_MASK_ISA_64BIT.
7577 2010-05-23 Joseph Myers <joseph@codesourcery.com>
7579 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7580 typedefs with different but compatible types. Allow duplicate
7581 typedefs with the same type except for pedantic non-C1X, but give
7582 warning for variably modified types.
7583 * c-typeck.c (tagged_types_tu_compatible_p,
7584 function_types_compatible_p, type_lists_compatible_p,
7585 comptypes_internal): Add parameter different_types_p; set
7586 *different_types_p for different but compatible types. All
7588 (comptypes_check_different_types): New.
7589 * c-tree.h (comptypes_check_different_types): Declare.
7591 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
7593 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
7594 * jump.c: Include basic-block.h.
7595 * profile.c: Likewise.
7596 * tree-profile.c: Likewise.
7597 * coverage.c: Likewise.
7598 * basic-block.h (optimize_function_for_size_p): Move to function.h.
7599 (optimize_function_for_speed_p): Likewise.
7600 * function.h (optimize_function_for_size_p,
7601 optimize_function_for_speed_p): Moved here from basic-block.h.
7602 * Makefile.in: Update dependencies.
7604 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7606 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7607 before calling make; allow override through $MAKE.
7608 * doc/invoke.texi (Optimize Options): Document override.
7610 2010-05-23 Anatoly Sokolov <aesok@post.ru>
7612 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7613 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7614 (rs6000_mode_dependent_address_ptr): Make static.
7615 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7616 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7619 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
7622 * config/i386/i386.c: Make sure that the correct regparm is passed.
7624 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
7626 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7627 * sbitmap.c: ...to here to internalize sbitmap element access.
7628 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7629 Explain why basic-block.h is included.
7630 * function.h: Include tm.h for CUMULATIVE_ARGS.
7631 * Makefile.in: Update dependencies.
7633 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
7635 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7637 * sbitmap.h (struct sbitmap_def): Do not typedef here.
7638 * sbitmap.c: Include sbitmap.h.
7639 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7640 hard-reg-set.h. Split everything related to regsets out from here...
7641 * regset.h: ...to here. New file.
7642 * df.h: Include regset.h and sbitmap.h.
7643 * tree-flow.h: Likewise.
7644 * cfgloop.h: Likewise.
7645 * except.h: Do not include sbitmap.h. Include hashtab.h.
7646 * cgraph.h: Include vec.h and function.h.
7647 * reload.h (struct insn_chain): Change types of live_throughout
7648 and dead_or_set from regset_head to bitmap_head.
7649 (compute_use_by_pseudos): Be defined also if regset.h is not included.
7650 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
7651 spilled_regs from regset_head to bitmap_head to avoid dependency
7653 * sel-sched-ir.h: Include regset.h.
7654 * reload.c: Include df.h before reload.h.
7655 * caller-save.c: Likewise.
7656 * reload1.c: Likewise.
7658 (mark_elimination): Update type of r to bitmap, consistent with
7660 * dominance.c: Include bitmap.h.
7661 * modulo-sched.c: Include df.h.
7662 * cfganal.c: Include bitmap.h and sbitmap.h.
7663 * cfgbuild.c: Include sbitmap.h.
7664 * lcm.c: Include sbitmap.h.
7665 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
7666 * domwalk.c: Include sbitmap.h, exclude ggc.h.
7667 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
7668 * cselib.c: Include bitmap.h.
7669 * tree-optimize.c: Include regset.h.
7670 * stmt.c: Include bitmap.h.
7671 * Makefile.in: Update dependencies.
7673 2010-05-22 Jan Hubicka <jh@suse.cz>
7675 * cgraph.h (struct varpool_node): Add same_comdat_group.
7676 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
7678 (output_varpool): Update call of lto_output_varpool_node.
7679 (input_varpool): Read same_comdat_group pointer.
7680 (input_varpool_1): Fixup same_comdat_group pointer.
7681 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
7682 group is needed, all are.
7683 * varpool.c (varpool_remove_node): Remove node from same comdat group
7685 (varpool_analyze_pending_decls): Walk same comdat groups.
7687 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
7689 * rtl.h (union rtunion_def): Remove rt_bit member.
7690 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
7691 * print-rtl (print_rtx): Do not print the member.
7692 * gengtype.c (adjust_field_rtx_def): Do not handle it.
7693 * gengenrtl.c (type_from_format): Likewise.
7694 (accessor_from_format): Likewise.
7696 2010-05-22 Joseph Myers <joseph@codesourcery.com>
7698 * dbgcnt.c: Include toplev.h instead of errors.h.
7699 * ira-emit.c: Don't include errors.h.
7700 * ira.c: Include toplev.h instead of errors.h.
7701 * lto-compress.c: Include toplev.h instead of errors.h.
7702 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
7703 ira.o, dbgcnt.o): Update dependencies.
7705 2010-05-22 Richard Guenther <rguenther@suse.de>
7707 * gimple.c (gimple_types_compatible_p): Check type qualifications
7708 before merging pointer to complete and pointer to incomplete type.
7709 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
7710 we use our own resolution algorithm. The gold linker plugin
7711 doesn't do the job we want it to do here.
7713 2010-05-22 Anatoly Sokolov <aesok@post.ru>
7715 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7716 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7717 (sparc_mode_dependent_address_p): New function.
7719 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7721 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
7723 * timevar.c: Do not include any core headers.
7724 (timevar_print): De-i18n-ize.
7725 (print_time): Likewise.
7726 * timevar.h (timevar_push, timevar_pop): Make inline functions.
7728 2010-05-21 Joseph Myers <joseph@codesourcery.com>
7730 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
7732 (diagnostic_initialize): Initialize x_data not last_function.
7733 (diagnostic_report_current_function): Move to tree-diagnostic.c.
7734 (default_diagnostic_starter): Call
7735 diagnostic_report_current_module not
7736 diagnostic_report_current_function.
7737 (diagnostic_report_diagnostic): Initialize x_data not
7739 (verbatim): Likewise.
7740 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
7742 (struct diagnostic_context): Change last_function to x_data.
7743 (diagnostic_auxiliary_data): Replace with
7744 diagnostic_context_auxiliary_data and
7745 diagnostic_info_auxiliary_data.
7746 (diagnostic_last_function_changed, diagnostic_set_last_function,
7747 diagnostic_report_current_function): Move to tree-diagnostic.h.
7748 (print_declaration, dump_generic_node, print_generic_stmt,
7749 print_generic_stmt_indented, print_generic_expr,
7750 print_generic_decl, debug_c_tree, dump_omp_clauses,
7751 print_call_name, debug_generic_expr, debug_generic_stmt,
7752 debug_tree_chain, default_tree_printer): Move to
7753 tree-pretty-print.h.
7754 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
7755 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
7756 gimple-pretty-print.h.
7757 * pretty-print.c: Don't include tree.h
7758 (pp_base_format): Don't handle %K here.
7759 (pp_base_tree_identifier): Move to tree-pretty-print.c.
7760 * pretty-print.h (text_info): Change abstract_origin to x_data.
7761 (pp_tree_identifier, pp_unsupported_tree,
7762 pp_base_tree_identifier): Move to tree-pretty-print.h.
7763 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
7764 tree-pretty-print.h: New files.
7765 * tree-pretty-print.c: Include tree-pretty-print.h.
7766 (percent_K_format): New. Moved from pretty-print.c.
7767 (pp_base_tree_identifier): Move from pretty-print.c.
7768 * c-objc-common.c: Include tree-pretty-print.h.
7769 (c_tree_printer): Handle %K here.
7770 * langhooks.c: Include tree-diagnostic.h.
7771 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
7772 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
7773 (default_tree_printer): Handle %K using percent_K_format.
7774 (general_init): Use default_tree_diagnostic_starter.
7775 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
7776 (free_lang_data): Use default_tree_diagnostic_starter.
7777 * c-pretty-print.c: Include tree-pretty-print.h.
7778 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7779 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7780 * dwarf2out.c: Include tree-pretty-print.h.
7781 * except.c: Include tree-pretty-print.h.
7782 * gimple-pretty-print.c: Include tree-pretty-print.h and
7783 gimple-pretty-print.h.
7784 * gimplify.c: Include tree-pretty-print.h.
7785 * graphite-poly.c: Include tree-pretty-print.h and
7786 gimple-pretty-print.h.
7787 * ipa-cp.c: Include tree-pretty-print.h.
7788 * ipa-inline.c: Include gimple-pretty-print.h.
7789 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7790 * ipa-pure-const.c: Include gimple-pretty-print.h.
7791 * ipa-struct-reorg.c: Include tree-pretty-print.h and
7792 gimple-pretty-print.h.
7793 * ipa-type-escape.c: Include tree-pretty-print.h.
7794 * print-rtl.c: Include tree-pretty-print.h.
7795 * print-tree.c: Include gimple-pretty-print.h.
7796 * sese.c: Include tree-pretty-print.h.
7797 * tree-affine.c: Include tree-pretty-print.h.
7798 * tree-browser.c: Include tree-pretty-print.h.
7799 * tree-call-cdce.c: Include gimple-pretty-print.h.
7800 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7801 * tree-chrec.c: Include tree-pretty-print.h.
7802 * tree-data-ref.c: Include tree-pretty-print.h and
7803 gimple-pretty-print.h.
7804 * tree-dfa.c: Include tree-pretty-print.h.
7805 * tree-if-conv.c: Include tree-pretty-print.h and
7806 gimple-pretty-print.h.
7807 * tree-inline.c: Include tree-pretty-print.h.
7808 * tree-into-ssa.c: Include tree-pretty-print.h and
7809 gimple-pretty-print.h.
7810 * tree-nrv.c: Include tree-pretty-print.h.
7811 * tree-object-size.c: Include tree-pretty-print.h and
7812 gimple-pretty-print.h.
7813 * tree-outof-ssa.c: Include tree-pretty-print.h and
7814 gimple-pretty-print.h.
7815 * tree-parloops.c: Include tree-pretty-print.h and
7816 gimple-pretty-print.h.
7817 * tree-predcom.c: Include tree-pretty-print.h and
7818 gimple-pretty-print.h.
7819 * tree-scalar-evolution.c: Include tree-pretty-print.h and
7820 gimple-pretty-print.h.
7821 * tree-sra.c: Include tree-pretty-print.h.
7822 * tree-ssa-address.c: Include tree-pretty-print.h.
7823 * tree-ssa-alias.c: Include tree-pretty-print.h.
7824 * tree-ssa-ccp.c: Include tree-pretty-print.h and
7825 gimple-pretty-print.h.
7826 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
7827 * tree-ssa-copy.c: Include tree-pretty-print.h and
7828 gimple-pretty-print.h.
7829 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
7830 * tree-ssa-dce.c: Include tree-pretty-print.h and
7831 gimple-pretty-print.h.
7832 * tree-ssa-dom.c: Include tree-pretty-print.h and
7833 gimple-pretty-print.h.
7834 * tree-ssa-dse.c: Include gimple-pretty-print.h.
7835 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
7836 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
7837 * tree-ssa-live.c: Include tree-pretty-print.h and
7838 gimple-pretty-print.h.
7839 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
7840 gimple-pretty-print.h.
7841 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
7842 gimple-pretty-print.h.
7843 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
7844 gimple-pretty-print.h.
7845 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
7846 gimple-pretty-print.h.
7847 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
7848 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
7849 * tree-ssa-operands.c: Include tree-pretty-print.h and
7850 gimple-pretty-print.h.
7851 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
7852 gimple-pretty-print.h.
7853 * tree-ssa-pre.c: Include tree-pretty-print.h and
7854 gimple-pretty-print.h.
7855 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
7856 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
7857 gimple-pretty-print.h.
7858 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
7859 gimple-pretty-print.h.
7860 * tree-ssa-sink.c: Include gimple-pretty-print.h.
7861 * tree-ssa-ter.c: Include tree-pretty-print.h and
7862 gimple-pretty-print.h.
7863 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7864 * tree-ssa.c: Include tree-pretty-print.h and
7865 gimple-pretty-print.h.
7866 * tree-stdarg.c: Include gimple-pretty-print.h.
7867 * tree-switch-conversion.c: Include gimple-pretty-print.h.
7868 * tree-tailcall.c: Include tree-pretty-print.h and
7869 gimple-pretty-print.h.
7870 * tree-vect-data-refs.c: Include tree-pretty-print.h and
7871 gimple-pretty-print.h.
7872 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7873 gimple-pretty-print.h.
7874 * tree-vect-loop.c: Include tree-pretty-print.h and
7875 gimple-pretty-print.h.
7876 * tree-vect-patterns.c: Include gimple-pretty-print.h.
7877 * tree-vect-slp.c: Include tree-pretty-print.h and
7878 gimple-pretty-print.h.
7879 * tree-vect-stmts.c: Include tree-pretty-print.h and
7880 gimple-pretty-print.h.
7881 * tree-vectorizer.c: Include tree-pretty-print.h.
7882 * tree-vrp.c: Include tree-pretty-print.h and
7883 gimple-pretty-print.h.
7884 * value-prof.c: Include tree-pretty-print.h and
7885 gimple-pretty-print.h.
7886 * var-tracking.c: Include tree-pretty-print.h.
7887 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7888 (tree-diagnostic.o): New dependencies.
7889 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7890 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7891 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7892 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7893 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7894 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7895 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7896 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7897 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7898 tree-ssa-address.o, tree-ssa-loop-niter.o,
7899 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7900 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7901 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7902 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7903 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7904 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7905 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7906 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7907 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7908 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7909 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7910 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7911 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7912 tree-switch-conversion.o, var-tracking.o, value-prof.o,
7913 cfgexpand.o, pretty-print.o): Update dependencies.
7915 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
7917 * tree-ssa-structalias.c: Remove tm_p.h from include.
7919 2010-05-21 Jeff Law <law@redhat.com>
7921 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7923 2010-05-21 Jason Merrill <jason@redhat.com>
7925 * tree-eh.c (cleanup_is_dead_in): New.
7926 (lower_try_finally): Don't generate a dead cleanup region.
7927 (lower_cleanup): Likewise.
7929 2010-05-21 Jakub Jelinek <jakub@redhat.com>
7932 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7933 unchain each use from the cyclic next_regno_use chain first.
7935 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7937 * real: Do not include gmp.h, mpfr.h, and mpc.h.
7938 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7939 (real_value_negate, real_value_abs): New prototypes.
7940 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7941 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
7942 new include file for interface between MPFR and REAL_VALUE_TYPE.
7943 * real.c: Include realmpfr.h.
7944 (real_arithmetic2): Remove legacy function.
7945 (real_value_negate): New.
7946 (real_value_abs): New.
7947 (mfpr_from_real, real_from_mpfr): Move from here...
7948 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
7949 * builtins.c: Include realmpfr.h.
7950 * fold-const.c: Include realmpfr.h.
7951 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
7952 (fold_negate_const): Likewise.
7953 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
7954 * toplev.c: Include realmpfr.h.
7955 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
7956 and real_value_negate.
7957 * fixed-value.c (check_real_for_fixed_mode): Likewise.
7958 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
7959 (vfp3_const_double_index): Likewise.
7960 (arm_print_operand): Likewise.
7961 * Makefile.in: Update dependencies.
7963 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7965 * config/s390/s390.c (override_options): Increase the default
7966 of max-completely-peel-times.
7968 2010-05-21 Julian Brown <julian@codesourcery.com>
7969 Mark Mitchell <mark@codesourcery.com>
7971 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
7972 sibling calls for Thumb-1.
7973 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
7974 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
7976 (*call_insn, *call_value_insn): Don't use for Thumb-2.
7977 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
7979 (return): New expander.
7980 (*arm_return): New name for ARM return insn.
7981 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
7983 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
7985 * config.gcc (sparc64-*-rtems*): New target.
7987 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
7989 * tree.c (build_function_decl_skip_args): Fix grammar.
7990 (build_function_type_list_1): Fix typos, adjust formatting.
7992 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7994 * tree.h: Include real.h and fixed-value.h as basic datatypes.
7995 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
7996 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
7997 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
7998 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
7999 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8000 tree-pretty-print.c, tree-loop-distribution.c,
8001 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8002 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8003 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8004 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8005 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8006 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8007 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8008 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8009 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8010 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8011 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8012 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8013 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8014 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8015 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8016 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8017 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8018 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8019 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8020 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8021 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8022 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8023 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8024 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8025 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8026 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8027 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8028 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8029 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8030 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8031 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8032 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8033 config/score/score7.c, config/score/score.c, config/arm/arm.c,
8034 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8035 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8036 config/bfin/bfin.c: Clean up redundant includes.
8037 * Makefile.in: Update accordingly.
8039 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8042 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8043 statement has no arguments.
8045 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
8048 * varasm.c (emutls_decl): Merge attributes to new decl.
8050 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
8053 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8054 around the uniquized constructor if its type requires a conversion.
8056 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8059 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8060 at -O0 goto_locus of any of the incoming edges differs from
8061 goto_locus of outgoing edge, or gimple_location of any of the
8064 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
8066 * ira.c (ira_non_ordered_class_hard_regs): Define.
8067 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8068 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8069 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8070 cost of unaligned hard regs when allocating multi-reg pseudos.
8072 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
8074 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8075 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8076 for TARGET_NO_FLOAT.
8077 * config/mips/mips.c (mips_file_start): Expand conditional expression
8078 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8079 (mips_override_options): Move -mno-float override -msoft-float and
8081 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8082 Condition(TARGET_SUPPORTS_NO_FLOAT).
8083 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8084 __mips_no_float here.
8085 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8086 (TARGET_SUPPORTS_NO_FLOAT): Define.
8087 * config/mips/sdemtk.opt: Delete.
8089 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8091 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8093 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
8096 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8097 * configure: Regenerate.
8098 * config.in: Regenerate.
8099 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8100 instead of sahf only for 64bit targets.
8102 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8105 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8106 setup_ref_regs for DEBUG_INSNs.
8108 2010-05-20 Jan Hubicka <jh@suse.cz>
8111 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8113 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8116 * df-scan.c (df_ref_compare): Stabilize sort.
8118 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8120 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8121 argument. Don't use DW_OP_piece if offset is non-zero,
8122 put offset into second DW_OP_bit_piece argument.
8123 (dw_sra_loc_expr): Adjust callers. For memory expressions
8126 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
8129 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8130 settings for 16-bit-constant "addo" alternative.
8132 2010-05-19 James E. Wilson <wilson@codesourcery.com>
8134 * config/mips/mips-dsp.md (add<DSPV:mode>3,
8135 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8138 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
8139 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8142 2010-05-19 Joseph Myers <joseph@codesourcery.com>
8144 * diagnostic.c (FLOAT, FFS): Don't undefine.
8145 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8146 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8149 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
8151 * combine.c (propagate_for_debug): Call make_compound_operation
8152 on the source value.
8153 (try_combine): When implementing a split chosen by find_split_point,
8154 either copy i2src or set it to null. Assert that i2src is not null
8155 before substituting into CALL_INSN_FUNCTION_USAGE.
8157 2010-05-19 Anatoly Sokolov <aesok@post.ru>
8159 * double-int.h (double_int_ior): New function.
8160 * tree.h (build_int_cst_wide_type): Remove.
8161 * tree.c (build_int_cst_wide_type): Remove.
8162 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8163 of build_int_cst_wide_type.
8164 * stor-layout.c (set_sizetype): (Ditto.).
8165 * dojump.c (do_jump): Use build_int_cstu instead of
8166 build_int_cst_wide_type.
8168 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8170 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8171 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8172 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8173 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8174 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
8175 propagate the 'data' argument to copy_tree_r.
8176 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8177 Propagate 'data' argument to walk_tree.
8178 (copy_if_shared): New function.
8179 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8180 (unmark_visited): New function.
8181 (unshare_body): Call copy_if_shared instead of doing it manually.
8182 (unvisit_body): Call unmark_visited instead of doing it manually.
8184 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
8186 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8187 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
8188 * hooks.c: Likewise.
8189 * target-def.h (TARGET_FOLD_BUILTIN): Define to
8190 hook_tree_tree_int_treep_bool_null.
8191 * target.h (struct gcc_target): Update signature of fold_builtin
8193 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8194 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8195 instead of the call expression.
8196 (fold_builtin_call_array): Pass n and argarray directly.
8197 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8199 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
8200 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
8201 `i' and use it in place of `arity'.
8202 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8203 Dereference `args' directly.
8204 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8206 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8208 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8210 (Directives): Document optional dg-require-effective-target
8213 2010-05-19 Richard Guenther <rguenther@suse.de>
8216 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8218 2010-05-19 Richard Guenther <rguenther@suse.de>
8220 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8221 * common.opt (fwhopr=): New.
8222 * opts.c (common_handle_option): Handle OPT_fwhopr.
8223 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8224 * collect2.c (main): Match -fwhopr*.
8225 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8226 Execute ltrans stage in parallel when jobs is bigger than 1.
8228 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8230 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8231 pentiumpro on Solaris 8/x86 with Sun as.
8232 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8234 (gcc_cv_as_ix86_quad): Check for .quad directive.
8235 * configure: Regenerate.
8236 * config.in: Regenerate.
8237 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8239 2010-05-19 Martin Jambor <mjambor@suse.cz>
8241 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8242 also for indirect edges. Actual printing moved...
8243 (ipa_print_node_jump_functions_for_edge): ...here.
8244 (ipa_compute_jump_functions): Renamed to
8245 ipa_compute_jump_functions_for_edge and made static.
8246 (ipa_compute_jump_functions): New function.
8247 (make_edge_direct_to_target): Check if the number of arguments on
8248 the newly direct edge is the same as the number of parametrs of
8250 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8251 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
8252 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8253 analysis functions unconditionally, call the new
8254 ipa_analyze_params_uses on the node instead of every edge.
8256 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
8258 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8260 (dump_mem_ref): Adopt debug code to handle a tree as step. This
8261 also checks for a constant int vs. non-constant but
8262 loop-invariant steps.
8263 (find_or_create_group): Change the sort algorithm to only consider
8264 steps that are constant ints.
8265 (idx_analyze_ref): Adopt code to handle a tree instead of a
8266 HOST_WIDE_INT for step.
8267 (gather_memory_references_ref): Handle tree instead of int and be
8268 prepared to see a NULL_TREE.
8269 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8270 prefetches if the step cannot be calculated at compile time.
8271 (issue_prefetch_ref): Issue prefetches for non-constant but
8272 loop-invariant steps.
8274 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
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 Nathan Froyd <froydnj@codesourcery.com>
8284 * tree.h (build_call_list): Remove.
8285 * tree.c (build_call_list): Remove.
8287 2010-05-18 Jan Hubicka <jh@suse.cz>
8289 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8291 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
8293 PR rtl-optimization/43332
8294 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8296 2010-05-18 Anatoly Sokolov <aesok@post.ru>
8298 * tree.h (build_int_cstu): Implement as static inline.
8299 * tree.c (build_int_cstu): Remove function.
8300 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8303 2010-05-18 Richard Guenther <rguenther@suse.de>
8306 * lto-wrapper.c (verbose): New variable. Initialize from -v.
8307 (debug): Initialize from -save-temps.
8308 (collect_execute): Print command-line when verbose.
8309 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
8310 for ltrans invocation. Produce -dumpbase flag again.
8311 (process_args): Remove.
8313 * collect2.c (maybe_run_lto_and_relink): Only pass object
8314 files to lto-wrapper.
8315 * gcc.c (LINK_COMMAND_SPEC): Likewise.
8317 2010-05-18 Jan Hubicka <jh@suse.cz>
8319 * opts.c (decode_options): Do not disable whopr at ipa_cp.
8320 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8322 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8325 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8327 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8330 2010-05-18 Jakub Jelinek <jakub@redhat.com>
8333 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8336 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8338 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8339 lto-macho as lto_binary_reader.
8341 * darwin.c (darwin_asm_named_section): Do not add assembler comment
8342 after .section directive; just print it before the directive instead.
8344 2010-05-17 Jan Hubicka <jh@suse.cz>
8346 * cgraph.c (cgraph_create_virtual_clone): Only check
8347 versionable_function_p when not in wpa and checking is enabled.
8348 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8349 there are no more functions to materialize.
8351 2010-05-17 Jan Hubicka <jh@suse.cz>
8353 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8354 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8356 (output_cgraph): Call output_cgraph_opt_summary.
8357 (input_cgrpah): Call input_cgraph_opt_summary.
8358 (output_cgraph_opt_summary_p, output_node_opt_summary,
8359 input_node_opt_summary, input_cgraph_opt_section): New functions.
8360 * lto-section-in.c (lto_section_name): Add cgraphopt.
8361 * tree-inline.c (tree_function_versioning): Handle parm_num.
8362 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8363 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8365 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8367 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8368 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8369 the insn to prefetch ratio heuristic to loops with known trip count.
8371 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8373 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8374 (schedule_prefetches): Do not generate a prefetch if the unroll factor
8375 is far from what is required by the prefetch.
8377 2010-05-17 Jan Hubicka <jh@suse.cz>
8379 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8380 (ipcp_estimate_growth): Likewise.
8381 (ipcp_const_param_count): Likewise.
8382 (ipcp_insert_stage): Likewise.
8383 * ipa-prop.c (visit_load_for_mod_analysis): New function.
8384 (visit_store_addr_for_mod_analysis): Set used flag.
8385 (ipa_detect_param_modifications): Set used flag for SSE params;
8386 update use of walk_stmt_load_store_addr_ops.
8387 (ipa_print_node_params): Print used flag.
8388 (ipa_write_node_info): Stream used flag.
8389 (ipa_read_node_info): Likewise.
8390 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8391 (ipa_is_param_used): New function.
8392 (lto_ipa_fixup_call_notes): Remove unused declaration.
8394 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8397 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8398 * configure: Regenerate.
8399 * config.in: Regenerate.
8400 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8401 !HAVE_AS_IX86_REP_LOCK_PREFIX.
8402 Don't emit whitespace.
8403 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8404 (*rep_movsi): Likewise.
8405 (*rep_movsi_rex64): Likewise.
8406 (*rep_movqi): Likewise.
8407 (*rep_movqi_rex64): Likewise.
8408 (*rep_stosdi_rex64): Likewise.
8409 (*rep_stossi): Likewise.
8410 (*rep_stossi_rex64): Likewise.
8411 (*rep_stosqi): Likewise.
8412 (*rep_stosqi_rex64): Likewise.
8413 (*cmpstrnqi_nz_1): Use {%;} after repz.
8414 (*cmpstrnqi_nz_rex_1): Likewise.
8415 (*cmpstrnqi_1): Likewise.
8416 (*cmpstrnqi_rex_1): Likewise.
8417 (*strlenqi_1): Use {%;} after repnz.
8418 (*strlenqi_rex_1): Likewise.
8419 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8420 (*sync_compare_and_swap<mode>): Likewise.
8421 (sync_double_compare_and_swap<mode>): Likewise.
8422 (*sync_double_compare_and_swapdi_pic): Likewise.
8423 (sync_old_add<mode>): Likewise.
8424 (sync_add<mode>): Likewise.
8425 (sync_sub<mode>): Likewise.
8426 (sync_<code><mode>): Likewise.
8428 2010-05-17 Martin Jambor <mjambor@suse.cz>
8430 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8431 otr_token and polymorphic.
8432 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8433 (cgraph_clone_edge): Copy the above fields.
8434 * tree.c (get_binfo_at_offset): New function.
8435 * tree.h (get_binfo_at_offset): Declare.
8436 * ipa-prop.h (enum jump_func_type): Added known_type jump function
8437 type, reordered items, updated comments.
8438 (union jump_func_value): Added base_type field, reordered fields.
8439 (enum ipa_lattice_type): Moved down in the file.
8440 (struct ipa_param_descriptor): New field polymorphic.
8441 (ipa_is_param_polymorphic): New function.
8442 * ipa-prop.c: Include gimple.h and gimple-fold.h.
8443 (ipa_print_node_jump_functions): Print known type jump functions.
8444 (compute_complex_pass_through): Renamed to...
8445 (compute_complex_assign_jump_func): this.
8446 (compute_complex_ancestor_jump_func): New function.
8447 (compute_known_type_jump_func): Likewise.
8448 (compute_scalar_jump_functions): Create known type and complex ancestor
8450 (ipa_note_param_call): New parameter polymorphic, set the corresponding
8451 flag in the call note accordingly.
8452 (ipa_analyze_call_uses): Renamed to...
8453 (ipa_analyze_indirect_call_uses): this. New parameter target, define
8454 variable var only in the block where it is used.
8455 (ipa_analyze_virtual_call_uses): New function.
8456 (ipa_analyze_call_uses): Likewise.
8457 (combine_known_type_and_ancestor_jfs): Likewise.
8458 (update_jump_functions_after_inlining): Implemented handling of a
8459 number of new jump function types combination.
8460 (print_edge_addition_message): Removed.
8461 (make_edge_direct_to_target): New function.
8462 (try_make_edge_direct_simple_call): Likewise.
8463 (try_make_edge_direct_virtual_call): Likewise.
8464 (update_call_notes_after_inlining): Renamed to...
8465 (update_indirect_edges_after_inlining): this. Moved edge creation for
8466 indirect calls to try_make_edge_direct_simple_call, also calls
8467 try_make_edge_direct_virtual_call for virtual calls.
8468 (ipa_print_node_params): Changed the header message.
8469 (ipa_write_jump_function): Stream also known type jump functions.
8470 (ipa_read_jump_function): Likewise.
8471 (ipa_write_indirect_edge_info): Stream new fields in
8472 cgraph_indirect_call_info.
8473 (ipa_read_indirect_edge_info): Likewise.
8474 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8477 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8479 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8481 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8483 * tree.h (CALL_EXPR_ARGS): Delete.
8484 (call_expr_arglist): Delete.
8485 * tree.c (call_expr_arglist): Delete.
8486 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8487 targetm.fold_builtin.
8488 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8489 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8490 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8491 arglist parameter. Use CALL_EXPR_ARG.
8492 (picochip_expand_builtin_3op): Likewise.
8493 (picochip_expand_builtin_2opvoid): Likewise.
8494 (picochip_expand_array_get): Likewise.
8495 (picochip_expand_array_put): Likewise.
8496 (picochip_expand_array_testport): Likewise.
8497 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
8498 rather than arglist.
8499 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8501 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8502 than TREE_VALUE and TREE_CHAIN.
8503 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8504 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8507 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8510 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8511 to have no fallthru edge.
8514 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8515 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8516 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8517 add BARRIER after previous bb if needed.
8519 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8521 * tree.c (build_function_type_list_1): Remove bogus assert condition.
8523 2010-05-17 Alan Modra <amodra@gmail.com>
8525 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8526 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
8527 with copy_reg rtx param.
8528 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8529 Correct cases where code for ABI_V4 did not initialise the reg
8530 used to access frame. Also leave frame_reg_rtx as sp for large
8531 frames that save no regs.
8533 2010-05-17 Martin Jambor <mjambor@suse.cz>
8536 * tree-sra.c (create_access_replacement): New parameter rename, mark
8537 the replaement for renaming only when it is true.
8538 (get_access_replacement): Pass true in the rename parameter of
8539 create_access_replacement.
8540 (get_unrenamed_access_replacement): New function.
8541 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8542 replacement declaration from it.
8544 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
8546 * function.c (try_fit_stack_local, add_frame_space): New static
8548 (assign_stack_local_1): Use them. Look for opportunities to use
8549 space previously wasted on alignment.
8550 * function.h (struct frame_space): New.
8551 (struct rtl_data): Add FRAME_SPACE_LIST member.
8552 * reload1.c (something_was_spilled): New static variable.
8553 (alter_reg): Set it.
8554 (reload): Test it in addition to testing if the frame size changed.
8556 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
8558 * config/s390/s390.c: Define sane prefetch settings and activate
8559 flag_prefetch_loop_arrays on -O3.
8560 * config/s390/s390.h: Declare that read can use write prefetch.
8562 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8564 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8567 2010-05-16 Jan Hubicka <jh@suse.cz>
8569 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8570 function body; do not check stdarg field of struct function.
8572 2010-05-16 Jan Hubicka <jh@suse.cz>
8574 * cgraph.c (dump_cgraph_node): Dump versionable flag.
8575 * cgraph.h (cgraph_local_info): Add versionable flag.
8576 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8577 (ipcp_versionable_function_p): Use it.
8578 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8581 2010-05-16 Jan Hubicka <jh@suse.cz>
8583 * cgraph.c (cgraph_clone_node): Take decl argument and insert
8584 clone into hash when it is different from orig.
8585 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8586 * cgraph.h (cgraph_clone_node): Update prototype.
8587 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8588 (lto_cgraph_encoder_delete): Delete body map.
8589 (lto_cgraph_encoder_size): Move to header.
8590 (lto_cgraph_encoder_encode_body_p,
8591 lto_set_cgraph_encoder_encode_body): New.
8592 (lto_output_node): Do not take written_decls argument; output clone_of
8594 (add_node_to): Add include_body_argument; call
8595 lto_set_cgraph_encoder_encode_body on master of the clone.
8596 (add_references): Update use of add_node_to.
8597 (compute_ltrans_boundary): Likewise.
8598 (output_cgraph): Do not create written_decls bitmap.
8599 (input_node): Take nodes argument; stream in clone_of correctly.
8600 (input_cgraph_1): Update use of input_node.
8601 * lto-streamer-out.c (lto_output): Use encoder info to decide
8602 what bodies to output.
8603 * ipa-inline.c (cgraph_clone_inlined_nodes,
8604 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8605 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8606 (lto_cgraph_encoder_size): Define here.
8607 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8610 2010-05-16 Richard Guenther <rguenther@suse.de>
8612 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8614 * ipa-type-escape.c (gate_type_escape_vars): Run when
8615 -fipa-struct-reorg runs.
8616 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8617 * common.opt (fipa-type-escape): Remove.
8619 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8621 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8622 (decode_options): Likewise.
8623 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8625 2010-05-16 Jan Hubicka <jh@suse.cz>
8627 * ipa.c (function_and_variable_visibility): Also bring local all
8630 2010-05-16 Richard Guenther <rguenther@suse.de>
8632 * alias.c (nonoverlapping_memrefs_p): Remove use of
8633 IPA type-escape information.
8635 2010-05-16 Joseph Myers <joseph@codesourcery.com>
8637 * c-common.c (c_common_reswords): Add _Static_assert for C.
8638 * c-parser.c (c_token_starts_declaration,
8639 c_parser_next_token_starts_declaration,
8640 c_parser_static_assert_declaration_no_semi,
8641 c_parser_static_assert_declaration): New.
8642 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8643 Handle static assertions if static_assert_ok.
8644 (c_parser_external_declaration, c_parser_declaration_or_fndef,
8645 c_parser_compound_statement_nostart, c_parser_label,
8646 c_parser_for_statement, c_parser_objc_methodprotolist,
8647 c_parser_omp_for_loop): All callers of
8648 c_parser_declaration_or_fndef changed.
8649 (c_parser_struct_declaration): Handle static assertions.
8650 (c_parser_compound_statement_nostart): Use
8651 c_parser_next_token_starts_declaration and
8652 c_token_starts_declaration to detect start of declarations.
8653 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
8656 2010-05-16 Anatoly Sokolov <aesok@post.ru>
8658 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8659 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8660 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8661 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8662 (mmix_function_outgoing_value): Rename to...
8663 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
8664 (mmix_function_value_regno_p): Make static.
8665 (mmix_libcall_value): New function.
8666 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
8667 mmix_function_value_regno_p): Remove declaration.
8669 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8671 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
8672 BUILT_IN_ALLOCA if stack checking is enabled.
8674 2010-05-16 Richard Guenther <rguenther@suse.de>
8676 * var-tracking.c (vars_copy_1): Inline ...
8677 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
8678 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
8679 (variable_merge_over_cur): Adjust. Merge asserts.
8680 (variable_merge_over_src): Likewise.
8681 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
8682 (variable_post_merge_new_vals): Merge asserts.
8683 (variable_post_merge_perm_vals): Likewise.
8684 (find_mem_expr_in_1pdv): Likewise.
8685 (dataflow_set_different_value): Remove.
8686 (onepart_variable_different_p): Merge asserts.
8687 (variable_different_p): Likewise.
8688 (dataflow_set_different_1): Inline ...
8689 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
8690 (emit_notes_for_differences_1): Merge asserts.
8692 2010-05-16 Richard Guenther <rguenther@suse.de>
8694 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
8695 * optabs.c (libfunc_decl_hash): Likewise.
8696 * varasm.c (emutls_decl): Likewise.
8698 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
8700 * c-decl.c: Don't include gimple.h.
8701 (merge_decls): Do not copy gimple_body.
8703 2010-05-15 Jason Merrill <jason@redhat.com>
8705 * c.opt: Add -fnothrow-opt.
8707 2010-05-15 Jan Hubicka <jh@suse.cz>
8709 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
8711 * passes.c (ipa_write_summaries): Write all analyzed nodes.
8713 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
8715 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
8716 * Makefile.in: Add it.
8717 Fix all other Makefile dependencies for changes below.
8718 * tree.h: Include it instead of defining VEC primitives here.
8719 * gimple.h: Likewise.
8721 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
8722 * except.h: Include vecir.h, break dependence on tree.h.
8724 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
8726 * tree-iterator.c: ...to here.
8727 * tree-iterator.h: Fix file introduction comment. Add extern markers.
8729 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
8731 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
8732 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
8733 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
8734 tree-mudflap.h, and target.h.
8735 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
8736 predict.h, tree-inline.h, gimple.h, and langhooks.h.
8737 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
8738 Add FIXME for why gimple.h is still included (should be unnecessary
8739 since GCC 4.5 gimplification unit-at-a-time).
8740 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
8741 * c-pragma.c: Add FIXME for why function.h needs to be included just
8742 for cfun, at front-end level.
8743 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
8744 Do not include ggc.h, but include vecprim.h for VEC(char).
8745 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
8746 Explain why target.h is included.
8747 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
8748 Explain why gimple.h is included.
8749 * c-ppoutput.c: Do not include tm.h.
8750 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
8751 * c-parses.c: Explain why rtl.h is included, and that this (and only
8752 this) is also why tm.h must be included.
8753 Do not include except.h.
8754 * c-lang.c: Do not include ggc.h.
8756 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
8758 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
8760 2010-05-15 Joseph Myers <joseph@codesourcery.com>
8762 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
8763 unions by default if those structs and unions have no tags. Do
8764 not condition anonymous struct and unions handling on flag_iso.
8765 Allow anonymous structs and unions for C1X.
8766 (finish_struct): Do not diagnose lack of named fields when
8767 anonymous structs and unions present for C1X. Accept flexible
8768 array members in structure with anonymous structs or unions but no
8769 directly named fields.
8770 * doc/extend.texi (Unnamed Fields): Update.
8772 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
8774 * gimple.h (compare_field_offset): Rename into...
8775 (gimple_compare_field_offset): ...this.
8776 * gimple.c (compare_field_offset): Rename into...
8777 (gimple_compare_field_offset): ...this. Compare the full access if
8778 the offset is self-referential.
8779 (gimple_types_compatible_p): Adjust for above renaming.
8780 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
8781 DECL_NONADDRESSABLE_P flag of fields before merging them.
8783 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
8785 * tree.h (ctor_to_list): Delete.
8786 * tree.c (ctor_to_list): Delete.
8788 2010-05-15 Jan Hubicka <jh@suse.cz>
8790 * ipa-reference.c: Include toplev.h
8791 (is_proper_for_analysis): Only add to all_module_statics
8793 (write_node_summary_p, stream_out_bitmap,
8794 ipa_reference_write_optimization_summary,
8795 ipa_reference_read_optimization_summary): New.
8796 (struct ipa_opt_pass_d pass_ipa_reference): Add
8797 optimization summary streaming.
8798 * lto-cgraph.c (referenced_from_this_partition_p,
8799 reachable_from_this_partition_p): New functions.
8800 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8801 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
8802 * opts.c (decode_options): Enable ipa_reference.
8803 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
8804 * lto-streamer.h (referenced_from_this_partition_p,
8805 reachable_from_this_partition_p): Declare.
8807 2010-05-15 Richard Guenther <rguenther@suse.de>
8809 PR tree-optimization/44038
8810 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
8811 taking the address of a V_C_E of a constant.
8813 2010-05-14 Jan Hubicka <jh@suse.cz>
8815 * tree.h (memory_identifier_string): Remove.
8816 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
8817 (ipa_reference_global_vars_info_d): Remove statics_not_read and
8818 statics_not_written.
8819 (ipa_reference_optimization_summary_d): New structure.
8820 (ipa_reference_optimization_summary_t): New type and vector.
8821 (ipa_reference_vars_info_d): Embedd structures instead of using
8823 (reference_vars_to_consider): Remove out of GGC space.
8824 (module_statics_escape): Remove.
8825 (global_info_obstack): Rename to ...
8826 (optimization_summary_obstack): ... this one.
8827 (initialization_status_t): Remove.
8828 (memory_identifier_string): Remove.
8829 (get_reference_vars_info): Fix indenting.
8830 (set_reference_vars_info): Likewise.
8831 (get_reference_optimization_summary): New.
8832 (set_reference_optimization_summary): New.
8833 (get_global_reference_vars_info): Remove.
8834 (ipa_reference_get_read_global): Remove.
8835 (ipa_reference_get_written_global): Remove.
8836 (ipa_reference_get_not_read_global): Update.
8837 (ipa_reference_get_not_written_global): Update.
8838 (is_proper_for_analysis): Outlaw addressable.
8839 (propagate_bits): Update for new datastructures.
8840 (analyze_variable): Remove.
8841 (init_function_info): Update for new datastructures.
8842 (clean_function_local_data): Remove.
8843 (clean_function): Remove.
8844 (copy_global_bitmap): Use optimizations_summary_obstack.
8845 (duplicate_node_data): Duplicate optimization summary only.
8846 (remove_node_data): Remove optimization summary only.
8847 (generate_summary): Do not analyze variables; do not compute
8848 module_statics_escape; do not prune solutions by it.
8849 (read_write_all_from_decl): Fix typos in comments.
8850 (propagate): Doscover readonly and nonaddressable first;
8851 update for new datastructures; share global bitmaps.
8852 * ipa-reference.h (ipa_reference_get_read_global,
8853 ipa_reference_get_written_global): Remove.
8854 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
8855 * Makefile.in: Remove ipa-refereference from GT files.
8857 2010-05-14 Jakub Jelinek <jakub@redhat.com>
8860 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
8861 for all SYMBOL_REF_DECLs.
8863 2010-05-14 Jan Hubicka <jh@suse.cz>
8865 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8866 (varpool_all_refs_explicit_p): New inline function.
8867 * ipa-reference.c: Update comment.
8868 (module_statics_written): Remove.
8869 (get_static_decl): Remove.
8870 (ipa_init): Do not initialize module_statics_written.
8871 (analyze_function): Likewise.
8872 (generate_summary): Likewise; do not compute module_statics_readonly
8873 and do not update variable flags.
8874 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8875 * ipa.c: Inlucde flags.h
8876 (cgraph_local_node_p): New.
8877 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8878 promote functions to local.
8879 (ipa_discover_readonly_nonaddressable_vars): New function.
8880 (function_and_variable_visibility): Use cgraph_local_node_p.
8881 * varpool.c (varpool_finalize_decl): Set force_output for
8882 DECL_PRESERVE_P vars.
8884 2010-05-14 Jan Hubicka <jh@suse.cz>
8886 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8888 2010-05-14 Richard Guenther <rguenther@suse.de>
8890 PR tree-optimization/44119
8891 * tree-ssa-pre.c (eliminate): Properly mark replacement of
8892 a PHI node necessary.
8894 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
8896 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8898 2010-05-14 Jason Merrill <jason@redhat.com>
8901 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8902 (gimple_call_set_nothrow): New.
8903 * gimple.c (gimple_build_call_from_tree): Call it.
8904 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8907 * gimplify.c (gimplify_seq_add_stmt): No longer static.
8908 * gimple.h: Declare it.
8909 * gimple.c (gimple_build_eh_filter): No ops.
8911 2010-05-14 Jan Hubicka <jh@suse.cz>
8913 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8914 nodes already in queue.
8915 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8918 2010-05-14 Jakub Jelinek <jakub@redhat.com>
8921 * cfgexpand.c (expand_debug_expr): If non-memory op0
8922 has BLKmode, return NULL.
8924 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
8926 * config.gcc: Add support for --with-cpu option for bdver1.
8927 * config/i386/i386.h (TARGET_BDVER1): New macro.
8928 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8929 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8930 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8931 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8932 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8933 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8934 (processor_type): Add PROCESSOR_BDVER1.
8935 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8936 processor_type in config/i386/i386.h.
8937 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8938 movaps <reg, reg> instead of movapd <reg, reg> when replacing
8939 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
8940 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
8941 to emit packed xor instead of packed double/packed integer
8942 xor for SSE and AVX when moving a zero value.
8943 * config/i386/sse.md: Add check for
8944 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
8945 movapd/movdqa for SSE and AVX.
8946 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
8947 single logical operations i.e and, or and xor instead of packed double
8948 logical operations for SSE and AVX.
8949 * config/i386/i386-c.c (ix86_target_macros_internal):
8950 Add PROCESSOR_BDVER1.
8951 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
8952 (has_fma4, has_xop): New.
8953 * config/i386/i386.c (bdver1_cost): New variable.
8954 (m_BDVER1): New macro.
8955 (m_AMD_MULTIPLE): Add m_BDVER1.
8956 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
8957 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
8958 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
8959 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
8960 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
8961 x86_tune_sse_partial_reg_dependency,
8962 x86_tune_sse_unaligned_load_optimal,
8963 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
8964 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
8965 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
8966 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
8967 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
8968 Enable/disable for bdver1.
8969 (processor_target_table): Add bdver1_cost.
8970 (cpu_names): Add bdver1.
8971 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
8972 processor_alias_table.
8973 (ix86_expand_vector_move_misalign): Change.
8974 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
8975 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
8976 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
8977 of movupd/movdqu for SSE and AVX.
8978 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
8979 (ix86_tune_adjust_cost): Add code for bdver1.
8980 (standard_sse_constant_opcode): Add check for
8981 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
8982 of packed double xor for SSE and AVX.
8984 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
8986 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
8989 2010-05-14 Tristan Gingold <gingold@adacore.com>
8991 * toplev.c (default_debug_hooks): Remove this variable.
8992 (process_options): Remove assignments to default_debug_hooks.
8994 2010-05-14 Martin Jambor <mjambor@suse.cz>
8996 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
8997 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
8998 * langhooks.h (struct lang_hooks_for_decls): Removed field
9000 * tree.c (free_lang_data): Remove assignment to
9001 lang_hooks.fold_obj_type_ref.
9002 * tree.def (OBJ_TYPE_REF): Update comment.
9004 2010-05-14 Richard Guenther <rguenther@suse.de>
9006 PR tree-optimization/44124
9007 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9009 2010-05-14 Alan Modra <amodra@gmail.com>
9012 * config/rs6000/rs6000.c (struct machine_function): Reorder
9013 fields for better packing. Add lr_save_state.
9014 (rs6000_ra_ever_killed): Return lr_save_state if set.
9015 (rs6000_emit_eh_reg_restore): Set lr_save_state.
9017 2010-05-13 Jan Hubicka <jh@suse.cz>
9019 * varpool.c (decide_is_variable_needed): Drop code checking
9020 TREE_SYMBOL_REFERENCED.
9022 2010-05-13 Jan Hubicka <jh@suse.cz>
9024 * final.c (output_addr_const): Do not call mark_decl_referenced.
9025 * cgraphunit.c (process_function_and_variable_attributes): Use
9026 mark_needed_node dirrectly.
9027 (assemble_thunk): Do not call mark_decl_referenced.
9029 2010-05-13 Anatoly Sokolov <aesok@post.ru>
9031 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9033 2010-05-13 Jeff Law <law@redhat.com>
9035 * ira-conflicts.c (print_allocno_conflicts): New function broken out
9037 (print_conflicts): Call print_allocno_conflicts.
9039 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9042 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9045 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
9047 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9048 t-mingw-w64 or t-mingw-w32 for multilib configuration.
9049 * config/i386/t-mingw-w32: New.
9050 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9052 2010-05-13 Martin Jambor <mjambor@suse.cz>
9054 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9056 * gimple-fold.c (get_base_binfo_for_type): New function.
9057 (gimple_get_relevant_ref_binfo): Likewise.
9058 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9059 (gimple_fold_obj_type_ref): Likewise.
9060 (fold_gimple_call): Simplify condition for folding virtual calls
9061 and call gimple_fold_obj_type_ref.
9062 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9063 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9065 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
9067 * config/rs6000/rs6000-protos.h
9068 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9069 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9070 (rs6000_debug_mode_dependent_address)
9071 (rs6000_mode_dependent_address_ptr): Likewise.
9073 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9076 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9078 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9079 * tree-sra.c (create_access_replacement): Call unshare_expr before
9080 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9081 * dwarf2out.c: Include tree-flow.h.
9082 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9083 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9084 Handle DW_OP_bit_piece.
9085 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9086 construct_piece_list, adjust_piece_list): New functions.
9087 (add_var_loc_to_decl): Handle SRA optimized variables.
9088 Adjust for var_loc_note to loc field renaming.
9089 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9090 in VAR_LOCATION note.
9091 (new_loc_descr_op_bit_piece): New function.
9092 (dw_sra_loc_expr): New function.
9093 (dw_loc_list): Use it. Don't handle the last range after the
9094 loop, handle it inside of the loop. Adjust for var_loc_note
9095 to loc field renaming.
9096 (add_location_or_const_value_attribute): Only special case
9097 single entry loc lists if loc is NOTE_P. Adjust for
9098 var_loc_note to loc field renaming.
9099 (dwarf2out_var_location): Don't set newloc->var_loc_note
9100 and newloc->next here.
9102 2010-05-12 Jan Hubicka <jh@suse.cz>
9104 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9106 * cgraph.h (cgraph_only_called_directly_p,
9107 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9108 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9109 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9111 * ipa.c (cgraph_remove_unreachable_nodes): Use
9112 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9114 * tree-inline.c (copy_bb): Check address_taken flag.
9115 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9116 externally_visible flag.
9118 2010-05-12 Jason Merrill <jason@redhat.com>
9122 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9123 * sdbout.c (plain_type_1): Likewise.
9124 * dwarf2out.c (is_base_type): Likewise.
9125 (gen_type_die_with_usage): Likewise. Generate
9126 DW_TAG_unspecified_type for any LANG_TYPE.
9128 2010-05-12 Jan Hubicka <jh@suse.cz>
9130 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9132 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9133 (cgraph_clone_edge): Update.
9134 (cgraph_node_remove_callees): Remove indirect calls too.
9135 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9136 (cgraph_create_indirect_edge): Update prototype.
9137 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9138 is_proper_for_analysis.
9139 (add_new_function, visited_nodes, function_insertion_hook_holder,
9140 get_local_reference_vars_info, mark_address_taken, mark_address,
9141 mark_load, mark_store, check_asm_memory_clobber, check_call,
9142 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9143 (ipa_init): Do not initialize visited_nodes;
9144 function_insertion_hook_holder.
9145 (analyze_variable): Rewrite.
9146 (analyze_function): Rewrite.
9147 (copy_local_bitmap): Remove.
9148 (duplicate_node_dat): Do not duplicate local info.
9149 (generate_summary): Simplify to only walk cgraph.
9150 (write_node_summary_p, ipa_reference_write_summary,
9151 ipa_reference_read_summary): Remove.
9152 (propagate): Do not remove function insertion;
9154 (pass_ipa_reference): NULLify summary handling fields.
9155 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9156 (input_edge): Input ecf_flags.
9157 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9158 (update_indirect_edges_after_inlining): Ignore edges with unknown
9161 2010-05-12 Sriraman Tallam <tmsriram@google.com>
9163 * implicit-zee.c: New file.
9164 * tree-pass.h (pass_implicit_zee): Declare.
9165 * passes.c (init_optimization_passes): Add zee pass.
9166 * common.opt (fzee): New flag.
9167 * timevar.def (TV_ZEE): Define.
9168 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9170 * Makefile.in (implicit-zee.o): Add new build file.
9172 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9173 Nathan Froyd <froydnj@codesourcery.com>
9175 * c-common.c (sync_resolve_params): Remove write-only variable.
9177 2010-05-12 Anatoly Sokolov <aesok@post.ru>
9179 * target.h (struct gcc_target): Add mode_dependent_address_p field.
9180 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9181 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9182 * targhooks.c (default_mode_dependent_address_p): New function.
9183 * targhooks.h (default_mode_dependent_address_p): Declare function.
9184 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9185 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9186 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9187 target hook. Change return type to bool.
9188 * recog.h (mode_dependent_address_p): Change return type to bool.
9190 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9191 Nathan Froyd <froydnj@codesourcery.com>
9193 * tree-mudflap.c (build_function_type_0, build_function_type_1,
9194 build_function_type_2, build_function_type_3): Remove.
9195 (mudflap_init): Use build_function_type_list.
9197 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9198 Nathan Froyd <froydnj@codesourcery.com>
9200 * coverage.c (build_fn_info_value): Call build_constructor instead of
9201 build_constructor_from_list.
9202 (build_ctr_info_value): Likewise.
9203 (build_gcov_info): Likewise.
9205 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
9207 * tree.c (build_constructor): Compute TREE_CONSTANT for the
9208 resultant constructor.
9209 (build_constructor_single): Don't set TREE_CONSTANT.
9210 (build_constructor_from_list): Don't compute TREE_CONSTANT.
9212 2010-05-12 Jan Hubicka <jh@suse.cz>
9214 * cgraph.h (struct varpool_node): Add aux.
9215 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9216 * varpool.c (varpool_remove_node): Do not remove initializer.
9217 (varpool_reset_queue): Export.
9218 (varpool_finalize_decl): Volatile vars are forced to be output.
9219 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9221 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9222 process_references, varpool_can_remove_if_no_refs): New functions.
9223 (cgraph_remove_unreachable_nodes): Handle variables too.
9225 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
9228 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9230 2010-05-12 Jakub Jelinek <jakub@redhat.com>
9233 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9234 change value of ORT_TASK.
9235 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9236 (omp_notice_threadprivate_variable): New function.
9237 (omp_notice_variable): Call it for threadprivate variables.
9238 If enclosing ctx is a task, print enclosing task rather than
9239 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
9240 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9241 if task has untied clause.
9244 * dwarf2out.c (base_type_die): Don't add name attribute here.
9245 (modified_type_die): Instead of sizetype use
9246 its underlying original type. If a DW_TAG_base_type doesn't
9247 have name added, add __unknown__.
9248 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9249 always call force_type_die instead.
9251 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9253 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9254 for __stack_chk_guard.
9256 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9258 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9259 don't call start_source_file debug hook here...
9260 (finish_options): ... but here, after outputting predefined and
9261 command line defines and undefs.
9264 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9266 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9267 optimizing away empty bb with no successors, move over its
9268 footer chain to fallthru predecessor.
9269 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9270 (rtl_split_edge): For asm goto call patch_jump_insn even if
9271 splitting fallthru edge.
9274 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9275 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9276 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9277 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9281 * c-parser.c (c_parser_expression): Mark LHS of a comma
9282 expression as read if it is a decl, handled component or
9283 COMPOUND_EXPR with that on the RHS.
9284 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9285 if it is a decl or handled component.
9287 2010-05-11 Jan Hubicka <jh@suse.cz>
9289 * lto-symtab.c (lto_symtab_free): New function.
9290 * lto-streamer.h (lto_symtab_free): Declare.
9292 2010-05-11 Jan Hubicka <jh@suse.cz>
9294 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9295 that if function is needed it is reachable.
9296 (lto_output_node): See if it the function is reachable or referenced.
9297 (output_cgraph): Update call of lto_output_node.
9298 * lto-streamer.h (reachable_from_other_partition_p): Declare.
9300 2010-05-11 Jan Hubicka <jh@suse.cz>
9302 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9305 2010-05-11 Jan Hubicka <jh@suse.cz>
9307 PR tree-optimize/44063
9308 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9310 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9312 (estimate_function_body_sizes): Compute sizes even when disregarding.
9314 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
9316 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9318 2010-05-11 Jan Hubicka <jh@suse.cz>
9320 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9321 into every boundary.
9323 2010-05-11 Jan Hubicka <jh@suse.cz>
9325 * matrix-reorg.c (matrix_reorg): Rebuild edges.
9327 2010-05-11 Jan Hubicka <jh@suse.cz>
9329 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9330 lto_streamer_cache_delete): Put nodes into heap.
9331 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9334 2010-05-11 Jan Hubicka <jh@suse.cz>
9336 * cgraphbuild.c (cgraph_rebuild_references): New.
9337 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9339 * cgraph.h (cgraph_rebuild_references): Declare.
9340 * tree-inline.c (tree_function_versioning): Use it.
9341 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9343 2010-05-11 Jan Hubicka <jh@suse.cz>
9345 * cgraph.c: Include ipa-utils.h
9346 (cgraph_create_virtual_clone): Update references.
9347 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9349 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9351 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9352 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9355 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9357 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9359 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9361 * gcc.c (execute): For -### don't quote arguments that
9362 contain just alphanumerics and _/-. characters.
9363 * doc/invoke.texi: Document that change for -###.
9366 * df-problems.c (struct dead_debug): Add to_rescan field.
9367 (dead_debug_init): Clear to_rescan field.
9368 (dead_debug_finish): Rescan all debug insns in to_rescan
9369 bitmap and free the bitmap.
9370 (dead_debug_insert_before): Instead of rescanning debug insns
9371 immediately queue their rescanning until dead_debug_finish.
9372 (df_note_bb_compute): After dead_debug_add do continue instead
9375 2010-05-10 Jakub Jelinek <jakub@redhat.com>
9378 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9379 clear also INSN_REG_USE_LIST.
9381 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9383 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9385 2010-05-10 Jan Hubicka <jh@suse.cz>
9387 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9390 2010-05-10 Jan Hubicka <jh@suse.cz>
9392 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9394 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9395 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9396 (lto_streamer_cache_create): Init alloc pool.
9397 (lto_streamer_cache_delete): Free alloc pool.
9398 * lto-streamer.h: Include alloc pool.
9399 (lto_streamer_cache_d): Use alloc pool.
9400 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9402 2010-05-10 Jan Hubicka <jh@suse.cz>
9404 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9405 * cgraphbuild.c: Include except.h
9406 (record_type_list, record_eh_tables): New function.
9407 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9409 2010-05-10 Jan Hubicka <jh@suse.cz>
9411 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9412 __frame_dummy_init_array_entry, force_to_data): Attribute as used
9415 2010-05-10 Michael Matz <matz@suse.de>
9417 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9418 (can_reassociate_p): Use FLOAT_TYPE_P.
9419 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9420 (vect_force_simple_reduction): ... this.
9421 * tree-parloops.c (gather_scalar_reductions): Use
9422 vect_force_simple_reduction.
9423 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9424 vect_is_simple_reduction, add modify argument, if true rewrite
9425 "a-b" into "a+(-b)".
9426 (vect_is_simple_reduction, vect_force_simple_reduction): New
9428 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9430 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
9431 Vladimir Makarov <vmakarov@redhat.com>
9433 PR rtl-optimization/44012
9434 * ira-build.c (remove_unnecessary_allocnos): Nullify
9435 regno_allocno_map of the removed allocno.
9437 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9439 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9441 * configure: Regenerate.
9443 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9445 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9447 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9448 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9450 * configure: Regenerate.
9452 2010-05-10 Richard Guenther <rguenther@suse.de>
9454 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9455 marked if the entry identifier is marked.
9457 2010-05-10 Richard Guenther <rguenther@suse.de>
9459 * c-common.c (struct c_common_attributes): Add fnspec attribute.
9460 (handle_fnspec_attribute): New function.
9461 * gimple.h (gimple_call_return_flags): Declare.
9462 (gimple_call_arg_flags): Likewise.
9463 * gimple.c (gimple_call_arg_flags): New function.
9464 (gimple_call_return_flags): Likewise.
9465 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9467 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9469 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9470 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9472 (make_heapvar_for): ... this new function.
9473 (handle_rhs_call): Handle fnspec attribute argument specifiers.
9474 (handle_lhs_call): Likewise.
9475 (find_func_aliases): Adjust.
9477 2010-05-10 Richard Guenther <rguenther@suse.de>
9479 PR tree-optimization/44050
9480 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9482 2010-05-10 Wei Guozhi <carrot@google.com>
9485 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9487 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9490 * c-typeck.c (lookup_field): Take a type directly. Update
9492 (build_component_ref): Update call to lookup_field.
9493 (set_init_label): Use lookup_field to find initialized field.
9494 Handle returned list of fields like a sequence of designators.
9496 2010-05-09 Richard Guenther <rguenther@suse.de>
9499 * fold-const.c (tree_single_nonzero_warnv_p): Properly
9500 handle &FUNCTION_DECL.
9502 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9505 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
9506 structures and unions recursively.
9507 (detect_field_duplicates): Move duplicate detection with a hash to
9508 detect_field_duplicates_hash. Always use a hash if anonymous
9509 structures or unions are present.
9510 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9513 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
9516 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9517 detect Atom, Core 2 and Core i7.
9519 2010-05-09 Richard Guenther <rguenther@suse.de>
9521 * gcc.c (store_arg): Handle temporary file deletion for
9524 2010-05-09 Richard Guenther <rguenther@suse.de>
9527 * ipa-inline.c (estimate_function_body_sizes): Return after
9528 disregarding inline limits.
9530 2010-05-09 Richard Guenther <rguenther@suse.de>
9532 * gcc.c (store_arg): Revert last change.
9534 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
9537 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9538 (optimize_ops_list): Call it.
9540 2010-05-08 Richard Guenther <rguenther@suse.de>
9542 PR tree-optimization/44030
9543 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
9544 NECESSARY flag if we propagate from a inserted expression.
9546 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
9548 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9549 domain types as equal if they are both PLACEHOLDER_EXPRs.
9551 2010-05-08 Richard Guenther <rguenther@suse.de>
9553 * lto-wrapper.c (run_gcc): Remove linker output from
9554 command line for LTRANS invocation.
9556 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
9558 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9559 lto-macho as lto_binary_reader.
9560 * target.h (struct gcc_target): New hooks lto_start and lto_end.
9561 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9562 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9563 in lto_start and lto_end calls.
9564 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
9566 (scan_prog_file): Update is_elf_or_coff call.
9567 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9569 * collect2.c (main): Fix enum comparison.
9571 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9573 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9574 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
9575 and TARGET_ASM_LTO_END.
9576 * darwin.c: Include obstack.h and lto-streamer.h.
9577 (lto_section_names_offset, lto_section_names_obstack,
9578 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9580 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9581 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
9582 to a temporary file.
9583 (darwin_asm_lto_end): New function. Restore asm_out_file.
9584 (darwin_asm_named_section): For LTO sections, replace the name with
9585 the offset of the section name in a string table, and build this
9587 (darwin_file_start): Initialize global vars for LTO support.
9588 (darwin_file_end): If output to asm_out_file was redirected, append it
9589 to the proper asm_out_file here. Add the section names section.
9591 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
9593 * c-pragma.c (pending_weak_d, pending_weak): New.
9594 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9595 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9596 handle_pragma_weak): Update the uses of pending_weaks.
9598 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9600 PR documentation/44016
9601 * doc/standards.texi (Standards): Link to unversioned
9602 cxx0x_status.html page.
9604 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
9607 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9608 in addition to TREE_USED, to avoid "set but unused" warnings.
9610 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9612 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9613 (is_loop_prefetching_profitable): Do not insert prefetches
9614 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9615 times the prefetch ahead distance.
9617 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9619 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9620 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9621 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9624 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9626 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9627 a diagnostic info when the insn-to-mem ratio is too small.
9629 2010-05-07 Richard Guenther <rguenther@suse.de>
9631 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9633 (store_arg): Queue temp_filename for deletion instead of
9636 2010-05-07 Richard Guenther <rguenther@suse.de>
9638 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9639 (run_gcc): Handle LTRANS phase invocation.
9640 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9642 2010-05-07 Jakub Jelinek <jakub@redhat.com>
9644 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
9645 this is also meaningful on PARM_DECLs and RESULT_DECLs.
9647 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9649 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
9651 2010-05-07 Richard Guenther <rguenther@suse.de>
9653 PR tree-optimization/44020
9654 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
9655 code when PRE is not yet initialized.
9657 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9659 * config/mips/dbxmdebug.h: Remove.
9660 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
9662 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
9664 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
9665 with null pointer and also warn about ordered comparison of zero with
9668 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9670 * graphite-blocking.c
9671 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
9672 * graphite-clast-to-gimple.c
9673 (clast_to_gcc_expression): Same.
9674 (precision_for_value): Same.
9675 (precision_for_interval): Same.
9676 (gcc_type_for_interval): Same.
9677 (graphite_create_new_guard): Same.
9678 (compute_bounds_for_level): Same.
9679 (graphite_create_new_loop_guard): Same.
9680 * graphite-interchange.c
9681 (build_linearized_memory_access): Same.
9682 (pdr_stride_in_loop): Same.
9683 (memory_strides_in_loop_1): Same.
9684 (memory_strides_in_loop): Same.
9685 (extend_scattering): Same.
9686 (psct_scattering_dim_for_loop_depth): Same.
9687 (pbb_number_of_iterations): Same.
9689 (debug_iteration_domains): Same.
9691 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9692 (ppl_set_inhomogeneous_gmp): Same.
9693 (ppl_strip_loop): Same.
9694 (ppl_lexico_compare_linear_expressions): Same.
9695 (ppl_read_polyhedron_matrix): Same.
9696 (ppl_max_for_le_pointset): Same.
9698 (ppl_read_polyhedron_matrix): Same.
9699 (tree_int_to_gmp): Same.
9700 (gmp_cst_to_tree): Same.
9701 (ppl_set_inhomogeneous): Same.
9702 (ppl_set_inhomogeneous_tree): Same.
9703 (ppl_set_coef): Same.
9704 (ppl_set_coef_tree): Same.
9705 * graphite-sese-to-poly.c
9706 (build_pbb_scattering_polyhedrons): Same.
9707 (build_scop_scattering): Same.
9708 (scan_tree_for_params_right_scev): Same.
9709 (scan_tree_for_params): Same.
9710 (find_params_in_bb): Same.
9711 (find_scop_parameters): Same.
9712 (add_upper_bounds_from_estimated_nit): Same.
9713 (build_loop_iteration_domains): Same.
9714 (add_condition_to_domain): Same.
9715 (pdr_add_memory_accesses): Same.
9717 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9719 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
9720 CLooG's value_* macros to their respective mpz_* counterparts.
9721 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
9722 (graphite_create_new_loop_guard): Same.
9723 * graphite-interchange.c (build_linearized_memory_access): Same.
9724 (pdr_stride_in_loop): Same.
9725 (memory_strides_in_loop_1): Same.
9726 (1st_interchange_profitable_p): Same.
9727 * graphite-poly.c (extend_scattering): Same.
9728 (psct_scattering_dim_for_loop_depth): Same.
9729 (pbb_number_of_iterations): Same.
9730 (pbb_number_of_iterations_at_time): Same.
9731 * graphite-poly.h (new_1st_loop): Same.
9732 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
9733 (oppose_constraint): Same.
9734 (insert_constraint_into_matrix): Same.
9735 (ppl_set_inhomogeneous_gmp): Same.
9736 (ppl_set_coef_gmp): Same.
9737 (ppl_strip_loop): Same.
9738 (ppl_lexico_compare_linear_expressions): Same.
9739 (ppl_max_for_le_pointset): Same.
9740 (ppl_min_for_le_pointset): Same.
9741 (ppl_build_realtion): Same.
9742 * graphite-ppl.h (gmp_cst_to_tree): Same.
9743 (ppl_set_inhomogeneous): Same.
9744 (ppl_set_inhomogeneous_tree): Same.
9745 (ppl_set_coef): Same.
9746 (ppl_set_coef_tree): Same.
9747 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9748 (build_scop_scattering): Same.
9749 (add_value_to_dim): Same.
9750 (scan_tree_for_params_right_scev): Same.
9751 (scan_tree_for_params_int): Same.
9752 (scan_tree_for_params): Same.
9753 (find_params_in_bb): Same.
9754 (find_scop_parameters): Same.
9755 (add_upper_bounds_from_estimated_nit): Same.
9756 (build_loop_iteration_domains): Same.
9757 (create_linear_expr_from_tree): Same.
9758 (add_condition_to_domain): Same.
9759 (pdr_add_memory_accesses): Same.
9761 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
9762 Jason Merrill <jason@redhat.com>
9764 * c-common.c (c_common_reswords): Add nullptr.
9765 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
9766 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
9767 (gen_type_die_with_usage): Likewise.
9768 * dbxout.c (dbxout_type): Likewise.
9769 * sdbout.c (plain_type_1): Likewise.
9771 2010-05-06 Jason Merrill <jason@redhat.com>
9773 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
9774 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
9776 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
9778 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
9779 stripping WITH_SIZE_EXPR.
9780 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
9783 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9785 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
9786 list of obsolete configurations.
9787 Disabled check for obsolete configurations.
9788 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
9789 Removed support for previous versions.
9790 * config/mips/iris.h: Removed.
9791 * config/mips/iris5.h: Removed.
9792 * config/mips/iris6.h: Merged old iris.h contents.
9793 (TARGET_IRIX): Removed.
9794 (DRIVER_SELF_SPECS): Removed mabi=32.
9795 (IDENT_ASM_OP): Removed undef.
9796 (STARTFILE_SPEC): Removed mabi=32.
9797 (ENDFILE_SPEC): Likewise.
9798 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
9799 (MACHINE_TYPE): Update for IRIX 6.5.
9800 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
9801 TARGET_IRIX by TARGET_IRIX6.
9802 (mips_file_start): Likewise.
9803 (mips_output_external): Remove IRIX 5/6 O32 support.
9804 (mips_output_function_prologue): Likewise.
9805 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
9807 (TARGET_CPU_CPP_BUILTINS): Likewise.
9808 (TARGET_IRIX): Removed.
9809 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
9810 (MULTILIB_DIRNAMES): Removed 32.
9811 (MULTILIB_OSDIRNAMES): Removed ../lib.
9812 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
9813 (Specific, mips-sgi-irix5): Document removal.
9814 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
9815 Remove references to older IRIX 6 releases and the O32 ABI.
9817 2010-05-06 Jakub Jelinek <jakub@redhat.com>
9820 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
9821 instead of DF_REF_REAL_REG.
9823 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
9826 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
9827 handling to still return true for x64 targets.
9829 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
9831 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
9833 2010-05-06 Jan Hubicka <jh@suse.cz>
9835 PR tree-optimization/43791
9836 * ipa-inline.c (update_caller_keys): Remove bogus
9837 disregard_inline_limits check.
9839 2010-05-06 Michael Matz <matz@suse.de>
9841 PR tree-optimization/43984
9842 * tree-ssa-pre.c (inserted_phi_names): Remove.
9843 (inserted_exprs): Change to bitmap.
9844 (create_expression_by_pieces): Set bits, don't append to vector.
9845 (insert_into_preds_of_block): Don't handle inserted_phi_names.
9846 (eliminate): Don't look at inserted_phi_names, remove deleted
9847 insns from inserted_exprs.
9848 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
9849 (init_pre, fini_pre): Allocate and free bitmaps.
9850 (execute_pre): Insert insns on edges before elimination.
9852 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
9854 * tree.c (initializer_zerop): Handle STRING_CST.
9856 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
9859 * doc/invoke.texi (Wimplicit): Document as C only.
9860 * opts.c (common_handle_option): Add argument kind.
9861 (handle_option): Rename as read_cmdline_option. Factor out code to...
9862 (handle_option): ... here. New.
9863 (handle_options): Rename as read_cmdline_options.
9864 (decode_options): Update call.
9865 (set_option): Use option index instead of option pointer. Classify
9866 diagnostics correctly.
9867 (enable_warning_as_error): Call handle_option.
9868 * opts.h (set_option): Update declaration.
9869 (handle_option): Declare.
9870 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9871 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9872 * c-opts.c (set_Wimplicit): Delete.
9873 (c_family_lang_mask): New static constant.
9874 (c_common_handle_option): Add argument kind. Use handle_option
9875 instead of set_Wimplicit.
9876 (c_common_post_options): warn_implicit and warn_implicit_int
9877 are disabled by default.
9878 * c-common.c (warn_implicit): Do not define here.
9879 * c-common.h (warn_implicit): Do not declare here.
9880 (c_common_handle_option): Update declaration.
9881 * lto-opts.c (lto_reissue_options): Update call to set_option.
9883 2010-05-06 Richard Guenther <rguenther@suse.de>
9885 PR tree-optimization/43571
9886 * domwalk.c (walk_dominator_tree): Walk the dominator
9887 sons in more optimal order.
9889 2010-05-06 Richard Guenther <rguenther@suse.de>
9891 PR tree-optimization/43934
9892 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9893 (stmt_cost): Likewise.
9894 (extract_true_false_args_from_phi): New helper.
9895 (determine_max_movement): For PHI nodes verify we can hoist them
9896 and compute their cost.
9897 (determine_invariantness_stmt): Handle PHI nodes.
9898 (move_computations_stmt): Likewise. Hoist PHI nodes in
9899 if-converted form using COND_EXPRs.
9900 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9901 (tree_ssa_lim): Likewise.
9902 * tree-flow.h (tree_ssa_lim): Adjust prototype.
9903 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9905 2010-05-06 Richard Guenther <rguenther@suse.de>
9907 PR tree-optimization/43987
9908 * tree-ssa-structalias.c (could_have_pointers): For possibly
9909 address-taken variables force pointers to be recorded.
9910 (create_variable_info_for_1): Likewise.
9911 (push_fields_onto_fieldstack): Pass in wheter all fields
9913 (find_func_aliases): Query types instead of vars whether
9914 they contain pointers where appropriate.
9916 2010-05-06 Jan Hubicka <jh@suse.cz>
9918 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9919 (record_reference, mark_address, mark_load, mark_store): Record
9921 (record_references_in_initializer): Update call of record_references.
9922 (rebuild_cgraph_edges): Remove all references before rebuiding.
9923 * cgraph.c (cgraph_create_node): Clear ref list.
9924 (cgraph_remove_node): Remove references.
9925 (dump_cgraph_node): Dump references.
9926 (cgraph_clone_node): Clone references.
9927 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9928 (struct cgraph_node, varpool_node): Add ref_lst.
9929 * ipa-ref.c: New file.
9930 * ipa-ref.h: New file.
9931 * ipa-ref-inline.h: New file.
9932 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9933 (referenced_from_other_partition_p): New function.
9934 (lto_output_varpool_node): Take set arugment; call
9935 referenced_from_other_partition.
9936 (lto_output_ref): New.
9937 (add_references): New.
9939 (output_cgraph): Compute boundary based on references; output refs.
9940 (output_varpool): Accept cgraph_node_set argument.
9943 (input_cgraph): Call input_refs.
9944 * lto-section-in.c (lto_section_name): Add refs.
9945 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
9946 (ipa-ref.o): New file.
9947 * varpool.c (varpool_node): Clear ipa ref list.
9948 (varpool_remove_node): Remove references.
9949 (dump_varpool_node): Dump references.
9950 (varpool_assemble_decl): Only compile finalized ones.
9951 (varpool_extra_name_alias): Initialize ref list.
9952 * lto-streamer.c (lto-get_section_name): Add .refs section.
9953 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
9954 (referenced_from_other_partition_p): Declared.
9956 2010-05-06 Ira Rosen <irar@il.ibm.com>
9958 PR tree-optimization/43901
9959 * tree-vect-stmts.c (vectorizable_call): Assert that vector
9960 type is not NULL if it's transformation phase, and return
9961 FALSE if it's analysis.
9962 (vectorizable_conversion, vectorizable_operation,
9963 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
9965 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9967 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9969 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9971 * config/mips/mips-protos.h
9972 (mips_small_register_classes_for_mode_p): Delete prototype.
9974 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
9976 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
9977 * config/arm/arm.c (multiple_operation_profitable_p,
9978 compute_offset_order): New static functions.
9979 (load_multiple_sequence, store_multiple_sequence): Use them.
9980 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
9981 memory offsets, not register numbers.
9982 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
9984 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
9986 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
9987 (get_pending_sizes, put_pending_size, put_pending_sizes):
9988 Update the uses of pending_sizes.
9989 * c-decl.c (store_parm_decls): Likewise.
9990 * c-tree.h (struct c_arg_info): Likewise.
9991 * tree.h: Update the prototype for get_pending_sizes and
9994 2010-05-05 Jason Merrill <jason@redhat.com>
9997 * c-common.c (handle_aligned_attribute): Respect
9998 ATTR_FLAG_TYPE_IN_PLACE.
10001 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10002 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10003 (TARGET_INITIALIZER): Use it.
10004 * c-common.c (attribute_takes_identifier_p): Call it.
10005 * c-common.h: Update prototype.
10006 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10007 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10009 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10012 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10013 DW_ID_down_case for Fortran compilation units.
10015 2010-05-05 Jan Hubicka <jh@suse.cz>
10017 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10020 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
10022 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10023 a variable-sized RESULT_DECL.
10025 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
10027 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10029 2010-05-05 Jason Merrill <jason@redhat.com>
10032 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10034 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10036 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
10037 Jakub Jelinek <jakub@redhat.com>
10040 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10041 (dead_debug_init, dead_debug_finish): New functions.
10042 (dead_debug_add, dead_debug_insert_before): Likewise.
10043 (df_note_bb_compute): Initialize a dead_debug object, add dead
10044 debug uses to it, insert debug bind insns before death insns,
10045 reset debug insns that refer to pending uses at the end.
10046 * rtl.h (make_debug_expr_from_rtl): New prototype.
10047 * varasm.c (make_debug_expr_from_rtl): New function.
10049 2010-05-05 Jan Hubicka <jh@suse.cz>
10051 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10052 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10053 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10054 lto_varpool_encoder_deref, lto_varpool_encoder_size,
10055 lto_varpool_encoder_encode_initializer_p,
10056 lto_set_varpool_encoder_encode_initializer): New functions.
10057 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10058 call output_varpool.
10059 (input_varpool_node): Do not always set analyzed.
10060 (input_cgraph_1): Return vector of cgraph nodes.
10061 (input_varpool_1): Return vector of varpools.
10062 (input_cgraph): Free the vectors.
10063 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10064 output only initializers needed.
10065 (lto_output): Only call output_cgraph.
10066 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10067 * lto-section-out.c (lto_new_out_decl_state): Initialize
10068 state->varpool_node_encoder.
10069 * lto-streamer.h (lto_varpool_encoder_d): New.
10070 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10071 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10072 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10073 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10074 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10076 (output_varpool, input_varpool): Remove declarations.
10078 2010-05-05 Jan Hubicka <jh@suse.cz>
10080 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10081 with body can prevail.
10083 2010-05-05 Jan Hubicka <jh@suse.cz>
10085 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10088 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10090 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10092 * gengtype.h (erro_at_line): Constify pos argument.
10094 * gengtype.c: Include hashtab.h.
10095 (enum gc_used): Document GC_MAYBE_POINTED_TO.
10096 (error_at_line): Constify pos argument.
10097 (do_typedef): Initialize p->opt field.
10098 (get_file_gtfilename): Fix comment typo.
10099 (struct walk_type_data): Constify line field.
10100 (get_output_file_for_structure): New function.
10101 (write_local_func_for_structure): Constify orig_s argument.
10102 Use get_output_file_for_structure.
10103 (write_func_for_structure): Use get_output_file_for_structure.
10104 (INDENT): New define.
10105 (dump_pair, dump_type, dump_type_list, dump_typekind)
10106 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10107 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10109 (seen_types): New variable.
10110 (main): New variable do_dump. Process "-d" command line option.
10111 Call dump_everything if dump requested.
10113 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10115 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10116 in a temporary instead of invoking the macro multiple times.
10117 (track_expr_p): Likewise.
10119 2010-05-04 Neil Vachharajani <nvachhar@google.com>
10121 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10123 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10124 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
10125 conditions for printing notes.
10126 * common.opt (-Wcoverage-mismatch): Allow negative, default to
10127 true, update documentation.
10128 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10130 2010-05-04 Jakub Jelinek <jakub@redhat.com>
10133 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10136 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10139 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10140 (*sse_prologue_save_insn1): Likewise.
10141 (SSE prologue save splitter): Likewise.
10143 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
10145 * tree.c (free_lang_data_in_one_sizepos): New inline function.
10146 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10147 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10148 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10149 all decls. Call it on DECL_FIELD_OFFSET of fields.
10150 (find_decls_types_r): Follow DECL_VALUE_EXPR.
10151 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10153 2010-05-04 Martin Jambor <mjambor@suse.cz>
10155 * tree-sra.c (build_access_from_expr_1): The first parameter type
10156 changed to simple tree.
10157 (build_access_from_expr): Likewise, gsi parameter was eliminated.
10158 (scan_assign_result): Renamed to assignment_mod_result, enum elements
10160 (build_accesses_from_assign): Removed all parameters except for a
10161 simple gimple statement. Now returns a simple bool.
10162 (scan_function): All non-analysis parts moved to separate functions
10163 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
10164 parameters and updated both callers.
10165 (sra_modify_expr): Removed parameter data.
10166 (sra_modify_function_body): New function.
10167 (perform_intra_sra): Call sra_modify_function_body to modify the
10169 (replace_removed_params_ssa_names): Parameter data changed into
10170 adjustments vector.
10171 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
10172 changed the parameter dont_convert to convert with the opposite
10174 (sra_ipa_modify_assign): Parameter data changed into adjustments
10175 vector, return value changed to bool.
10176 (ipa_sra_modify_function_body): New function.
10177 (sra_ipa_reset_debug_stmts): Updated a comment.
10178 (modify_function): Use ipa_sra_modify_function_body to modify function
10181 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10183 PR middle-end/43671
10184 * alias.c (true_dependence): Handle the same VALUE in x and mem.
10185 (canon_true_dependence): Likewise.
10186 (write_dependence_p): Likewise.
10188 2010-05-04 Jan Hubicka <jh@suse.cz>
10190 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10191 * cgraphbuild.c: Include ipa-utils.h
10192 (record_reference_ctx): New struct.
10193 (record_reference): Simplify to work on initializers; not statements.
10194 (mark_address, mark_load, mark_store): New.
10195 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10196 walk PHI nodes too.
10197 (record_references_in_initializer): Update use of record_reference.
10198 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10199 walk PHI nodes too.
10201 2010-05-04 Jan Hubicka <jh@suse.cz>
10203 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10204 node will be removed anyway.
10205 (lto_varpool_replace_node): Allow also unanalyzed nodes;
10206 relink aliases of node into prevailing node.
10207 * varpool.c (varpool_remove_node): Remove aliases properly;
10208 when removing node, remove all its aliases too; remove DECL_INITIAL
10209 of removed node; ggc_free the varpool node.
10211 2010-05-04 Richard Guenther <rguenther@suse.de>
10213 PR tree-optimization/43879
10214 * tree-ssa-structalias.c (alias_get_name): Use
10215 DECL_ASSEMBLER_NAME if available.
10216 (create_function_info_for): Return the varinfo node.
10217 (ipa_pta_execute): Associate same-body aliases and extra names
10218 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
10220 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10222 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10224 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
10227 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10228 only if HONOR_REG_ALLOC_ORDER is not defined.
10230 2010-05-04 Richard Guenther <rguenther@suse.de>
10232 PR tree-optimization/43949
10233 * tree-vrp.c (extract_range_from_binary_expr): Only handle
10236 2010-04-26 Jason Merrill <jason@redhat.com>
10238 * c.opt (-fstrict-enums): New.
10239 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10241 2010-05-03 David Ung <davidu@mips.com>
10242 James E. Wilson <wilson@codesourcery.com>
10244 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10245 emit the trap instruction before the divide for TUNE_74K.
10247 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
10249 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10250 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10251 based on the above, for new target hook.
10253 * hooks.c (hook_bool_mode_true): New generic hook.
10254 * hooks.h (hook_bool_mode_true): Add prototype.
10256 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10258 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10259 target hook, set to hook_bool_mode_false.
10260 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10261 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10262 with targetm.small_register_classes_for_mode_p.
10263 (find_reusable_reload): Likewise.
10264 (combine_reloads): Likewise.
10265 * reload1.c (reload_as_needed): Likewise.
10266 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10267 * ifcvt.c (noce_process_if_block, check_cond_move_block,
10268 dead_or_predicable): Likewise.
10269 * regmove.c (optimize_reg_copy_1): Likewise.
10270 * calls.c (prepare_call_address): Likewise.
10271 (precompute_register_parameters): Likewise.
10273 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10275 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10276 implementation of the hook that considers all register classes
10277 small except for SH64.
10278 (sh_override_options): Use the new hook.
10279 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10282 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10284 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10285 implementation of the hook that considers all register classes
10287 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10290 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10292 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10293 implementation of the hook that considers all register classes
10295 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10298 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10300 * config/m32c/m32c.h: Likewise.
10301 * config/pdp11/pdp11.h: Likewise.
10302 * config/avr/avr.h: Likewise.
10303 * config/xtensa/xtensa.h: Likewise.
10304 * config/m68hc11/m68hc11.h: Likewise.
10305 * config/mn10300/mn10300.h: Likewise.
10306 * config/mcore/mcore.h: Likewise.
10307 * config/h8300/h8300.h: Likewise.
10308 * config/bfin/bfin.h: Likewise.
10310 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10311 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10313 2010-05-03 Anatoly Sokolov <aesok@post.ru>
10315 * double-int.h (tree_to_double_int): Remove macro.
10316 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10317 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10318 (tree_to_double_int): New function.
10319 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10321 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10323 2010-05-03 Richard Guenther <rguenther@suse.de>
10325 PR tree-optimization/43971
10326 * tree-ssa-structalias.c (get_constraint_for_1): Fix
10327 constraints in the !flag_delete_null_pointer_checks case.
10329 2010-05-03 Jakub Jelinek <jakub@redhat.com>
10332 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10333 result mode matches original rtl mode.
10335 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
10338 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10340 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10342 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10343 when processing flag options.
10345 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10347 * gcov-iov.c (main): Change format string placeholder
10348 from %#08x to 0x%08x.
10349 * genchecksum.c (dosum): Change format string placeholder
10350 from %#02x to 0x%02x.
10352 2010-05-02 Richard Guenther <rguenther@suse.de>
10354 PR tree-optimization/43879
10355 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10357 2010-05-02 Bruno Haible <bruno@clisp.org>
10359 * doc/extend.texi (Function Attributes): Fix a typo.
10361 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10364 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10365 placeholder from 0x%x to %#x.
10366 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10367 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10368 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10369 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10370 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10371 * config/i386/i386.c (ix86_target_string): Ditto.
10372 * config/i386/i386.c (output_pic_addr_const): Ditto.
10373 (print_operand): Ditto.
10375 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10377 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10378 placeholder from 0x%x to %#x.
10379 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10380 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10381 (ASM_OUTPUT_DEBUG_DATA): Ditto.
10382 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10383 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10384 * optc-gen.awk: Ditto.
10385 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10386 (HOST_WIDE_INT_PRINT_HEX): Ditto.
10387 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10388 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10390 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10392 * target.h (struct calls): Add function_value_regno_p field.
10393 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10394 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10395 * targhooks.c (default_function_value_regno_p): New function.
10396 * targhooks.h (default_function_value_regno_p): Declare function.
10397 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10398 * builtins.c. (apply_result_size): (Ditto.).
10399 * combine.c. (likely_spilled_retval_p): (Ditto.).
10400 * mode-switching.c. Include 'target.h'.
10401 (create_pre_exit): Use function_value_regno_p hook.
10402 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10403 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10404 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10406 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10407 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10408 (ix86_function_value_regno_p): Declare as static, change argument
10409 type to const unsigned int.
10410 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10412 2010-05-01 Richard Guenther <rguenther@suse.de>
10414 PR tree-optimization/43949
10415 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10417 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10419 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10421 * rtl.h (CONST_DOUBLE_P): Define.
10422 (rtx_to_double_int): Declare.
10423 * emit-rtl.c (rtx_to_double_int): New function.
10424 * dwarf2out.c (insert_double): New function.
10425 (loc_descriptor, add_const_value_attribute): Clean up, use
10426 rtx_to_double_int and insert_double functions.
10428 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
10430 * doc/extend.texi (Inline): Add missing return keyword to examples.
10431 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10434 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
10436 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10437 the variable part of the offset as well. Use highest_pow2_factor for
10438 all alignment checks.
10440 2010-04-30 Richard Guenther <rguenther@suse.de>
10442 PR tree-optimization/43879
10443 * tree-ssa-structalias.c (type_could_have_pointers): Functions
10446 2010-04-30 Jan Hubicka <jh@suse.cz>
10448 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10450 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10452 2010-04-30 Jan Hubicka <jh@suse.cz>
10454 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10456 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10457 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10458 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10459 cgraph_node_set_needs_ltrans_p): Remove.
10461 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10463 * sdbout.c: Include vec.h, do not include varray.h.
10464 (deferred_global_decls, sdbout_global_decl,
10465 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10466 * toplev.c: Do not include varray.h.
10467 (dump_memory_report): Do not dump VARRAY statistics.
10468 * gengtype.c (open_base_file): Ignore varray.h.
10469 * Makefile.in: Update for abovementioned changes.
10470 Remove all traces of varray.c and varray.h.
10471 * varray.c: Remove file.
10472 * varray.h: Remove file.
10474 2010-04-30 Jan Hubicka <jh@suse.cz>
10476 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10479 2010-04-30 Jan Hubicka <jh@suse.cz>
10481 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10484 2010-04-30 Richard Guenther <rguenther@suse.de>
10486 * tree-ssa-structalias.c (get_constraint_for_1): Generate
10487 constraints for CONSTRUCTOR.
10489 2010-04-30 Richard Guenther <rguenther@suse.de>
10492 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10493 first after all lowering passes.
10495 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10497 * toplev.c: Include varray.h for statistics dumping.
10498 * tree.h: Do not declare varray_head_tag.
10499 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10500 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10501 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10502 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10503 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10504 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10505 c-common.c, c-common.h, reg-stack.c, basic-block.h,
10506 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10508 * Makefile.in: Update for abovementioned changes.
10510 2010-04-30 Jakub Jelinek <jakub@redhat.com>
10513 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10515 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10517 * config/picochip/picochip.c (picochip_legitimize_address): Define.
10518 Use this function to do machine-specific conversion.
10519 (picochip_legitimize_reload_address): Likewise.
10520 (picochip_legitimate_address_p): Check valid base register only if
10522 (picochip_check_conditional_copy): Check for modw only if opnd is
10524 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10525 to call the function in c.
10526 * config/picochip/picochip-protos.h
10527 (picochip_legitimize_reload_address): Define.
10528 * config/picochip/picochip.md (supported_compare1): Define.
10530 2010-04-30 Jan Hubicka <jh@suse.cz>
10532 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10533 (cgraph_global_info): Remove inlined.
10534 (LTO_cgraph_tag_names): Remove.
10535 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10536 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10537 simplify cgraph tags and document.
10538 (lto_output_node): Use only LTO_cgraph_unavail_node and
10539 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10540 for_functions_valid, global info, process and output flags.
10541 (input_overwrite_node): Initialize estimated stack size and
10542 estimated growth. Do not read flags we no longer store.
10543 (input_node): Likewise do not read info no longer stored.
10544 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10547 2010-04-30 Richard Guenther <rguenther@suse.de>
10549 PR tree-optimization/43879
10550 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10551 handle non-zero initializers.
10553 2010-04-30 Richard Guenther <rguenther@suse.de>
10555 * builtins.c (fold_builtin_1): Delete free (0).
10557 2010-04-29 Jan Hubicka <jh@suse.cz>
10559 * gengtype.c (open_base_files): Add lto-streamer.h
10560 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10561 (pass_ipa_cp): GGC collect.
10562 * toplev. (compile_file): Do not output symbols.
10563 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10564 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10565 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10566 * lto-section-in.c: Include ggc.h
10567 (lto_new_in_decl_state): Alloc in GGC.
10568 (lto_delete_in_decl_state): Likewise.
10569 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10572 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
10575 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10576 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
10577 (HONOR_REG_ALLOC_ORDER): Describe new macro.
10578 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10579 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10580 account only if HONOR_REG_ALLOC_ORDER is not defined.
10581 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10582 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10584 2010-04-29 Jon Grant <04@jguk.org>
10586 * collect2.c (vflag): Change type from int to bool.
10588 (helpflag): New global bool.
10589 (main): Set vflag and debug with boolean, not integer truth values.
10590 Accept new "--help" option and output usage text if found.
10591 * collect2.h (vflag): Update prototype.
10594 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
10597 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10599 2010-04-29 Richard Guenther <rguenther@suse.de>
10602 * plugin.h (invoke_plugin_callbacks): Annotate arguments
10603 with ATTRIBUTE_UNUSED.
10605 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
10608 * config/i386/i386.c (get_some_local_dynamic_name): Replace
10609 INSN_P with NONDEBUG_INSN_P.
10610 (distance_non_agu_define): Likewise.
10611 (distance_agu_use): Likewise.
10613 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
10615 From Dominique d'Humieres <dominiq@lps.ens.fr>
10617 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10620 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
10622 * plugin.h (invoke_plugin_callbacks): New inline function.
10623 * plugin.c (flag_plugin_added): New global flag.
10624 (add_new_plugin): Initialize above flag.
10625 (invoke_plugin_callbacks): Rename to ...
10626 (invoke_plugin_callbacks_full): ... this.
10628 2010-04-28 Jan Hubicka <jh@suse.cz>
10630 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10631 (lto_varpool_replace_node): New.
10632 (lto_symtab_resolve_symbols): Resolve varpool nodes.
10633 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10634 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10635 * cgraph.h (varpool_node_ptr): New type.
10636 (varpool_node_ptr): New vector.
10637 (varpool_node_set_def): New structure.
10638 (varpool_node_set): New type.
10639 (varpool_node_set): New vector.
10640 (varpool_node_set_element_def): New structure.
10641 (varpool_node_set_element, const_varpool_node_set_element): New types.
10642 (varpool_node_set_iterator): New type.
10643 (varpool_node): Add prev pointers, add used_from_other_partition,
10644 in_other_partition.
10645 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
10646 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
10647 varpool_get_node, varpool_remove_node): Declare.
10648 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
10649 varpool_node_set_size): New inlines.
10650 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
10651 * tree-pass.h (varpool_node_set_def): Forward declare.
10652 (ipa_opt_pass_d): Summary writting takes vnode sets too.
10653 (ipa_write_optimization_summaries): Update prototype.
10654 * ipa-cp.c (ipcp_write_summary): Update.
10655 * ipa-reference.c (ipa_reference_write_summary): Update.
10656 * lto-cgraph.c (lto_output_varpool_node): New static function.
10657 (output_varpool): New function.
10658 (input_varpool_node): New static function.
10659 (input_varpool_1): New function.
10660 (input_cgraph): Input varpool.
10661 * ipa-pure-const.c (pure_const_write_summary): Update.
10662 * lto-streamer-out.c (lto_output): Update, output varpool too.
10663 (write_global_stream): Kill WPA hack.
10664 (produce_asm_for_decls): Update.
10665 (output_alias_pair_p): Handle variables.
10666 (output_unreferenced_globals): Output only needed partition of varpool.
10667 * ipa-inline.c (inline_write_summary): Update.
10668 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
10670 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
10671 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
10672 varpool_node_set_new, varpool_node_set_add,
10673 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
10674 debug_varpool_node_set): New functions.
10675 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
10676 (execute_one_pass): Process new decls too.
10677 (ipa_write_summaries_2): Pass around vsets.
10678 (ipa_write_summaries_1): Likewise.
10679 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
10681 (ipa_write_optimization_summaries_1): Pass around vsets.
10682 (ipa_write_optimization_summaries): Likewise.
10683 * varpool.c (varpool_get_node): New.
10684 (varpool_node): Update doubly linked lists.
10685 (varpool_remove_node): New.
10686 (dump_varpool_node): More dumping.
10687 (varpool_enqueue_needed_node): Update doubly linked lists.
10688 (decide_is_variable_needed): Kill ltrans hack.
10689 (varpool_finalize_decl): Kill lto hack.
10690 (varpool_assemble_decl): Skip decls in other partitions.
10691 (varpool_assemble_pending_decls): Update doubly linkes lists.
10692 (varpool_empty_needed_queue): Likewise.
10693 (varpool_extra_name_alias): Likewise.
10694 * lto-streamer.c (lto_get_section_name): Add vars section.
10695 * lto-streamer.h (lto_section_type): Update.
10696 (output_varpool, input_varpool): Declare.
10698 2010-04-28 Mike Stump <mikestump@comcast.net>
10700 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
10702 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10704 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
10705 record or union type with RECORD_OR_UNION_TYPE_P predicate.
10706 (lto_input_ts_type_tree_pointers): Likewise.
10707 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
10708 (lto_output_ts_type_tree_pointers): Likewise.
10710 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10712 Uniquization of constants at the Tree level
10713 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
10714 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
10716 (tree_output_constant_def): Declare.
10717 * gimplify.c (gimplify_init_constructor): When using block copy, first
10718 uniquize the constant constructor on the RHS.
10719 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
10720 DECL_IN_CONSTANT_POOL flag.
10721 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
10722 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
10724 (assemble_variable): Deal with symbols belonging to the tree constant
10726 (get_constant_section): Add ALIGN parameter and simplify.
10727 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
10728 (assemble_constant_contents): Use the expression of the VAR_DECL.
10729 (output_constant_def_contents): Use the alignment of the VAR_DECL.
10730 (tree_output_constant_def): New global function.
10731 (mark_constant): Use the expression of the VAR_DECL.
10732 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
10734 (output_object_block): Likewise and assemble the expression.
10736 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10738 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
10739 hash_tree, eq_tree): New tree hash table.
10740 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
10741 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
10742 lto_orig_address_remove): Reimplement.
10744 2010-04-28 Xinliang David Li <davidxl@google.com>
10747 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
10748 (compute_uninit_opnds_pos): New function.
10749 (is_non_loop_exit_postdominating): New function.
10750 (compute_control_dep_chain): New function.
10751 (find_pdom): New function.
10752 (convert_control_dep_chain_into_preds): New function.
10753 (find_predicates): New function.
10754 (find_control_equiv_block): New function.
10755 (collect_phi_def_edges): New function.
10756 (find_def_preds): New function.
10757 (find_dom): New function.
10758 (dump_predicates): New function.
10759 (get_cmp_code): New function.
10760 (is_value_included_in): New function.
10761 (find_matching_predicate_in_rest_chains): New function.
10762 (use_pred_not_overlap_with_undef_path_pred): New function.
10763 (is_use_properly_guarded): New function.
10764 (normalize_cond_1): New function.
10765 (is_and_or_or): New function.
10766 (normalize_cond): New function.
10767 (is_gcond_subset_of): New function.
10768 (is_subset_of_any): New function.
10769 (is_or_set_subset_of): New function.
10770 (is_and_set_subset_of): New function.
10771 (is_norm_cond_subset_of): New function.
10772 (is_pred_expr_subset_of): New function.
10773 (is_pred_chain_subset_of): New function.
10774 (is_included_in): New function.
10775 (is_superset_of): New function.
10776 (find_uninit_use): New function.
10777 (warn_uninitialized_phi): New function.
10778 (compute_possibly_undefined_names): New function.
10779 (ssa_undefined_value_p): New function.
10780 (execute_late_warn_uninitialized): New function.
10781 * tree-ssa.c (ssa_undefined_value_p): Removed.
10782 (warn_uninit): Changed to extern.
10783 (warn_uninitialized_phi): Removed.
10784 (warn_uninitialized_vars): Changed to extern.
10785 (execute_late_warn_uninitialized): Removed
10786 * tree-flow.h: Add new prototypes.
10787 * timevar.def: Add new time variable.
10788 * Makefile.in: Add new build file.
10790 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
10792 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10795 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10798 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
10800 2010-04-28 Martin Jambor <mjambor@suse.cz>
10802 * cgraph.h (struct cgraph_node): New field indirect_calls.
10803 (struct cgraph_indirect_call_info): New type.
10804 (struct cgraph_edge): Removed field indirect_call. New fields
10805 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
10806 (cgraph_create_indirect_edge): Declare.
10807 (cgraph_make_edge_direct): Likewise.
10808 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
10809 * ipa-prop.h (struct ipa_param_call_note): Removed.
10810 (struct ipa_node_params): Removed field param_calls.
10811 (ipa_create_all_structures_for_iinln): Declare.
10812 * cgraph.c: Described indirect edges and uids in initial comment.
10813 (cgraph_add_edge_to_call_site_hash): New function.
10814 (cgraph_edge): Search also among the indirect edges, use
10815 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
10816 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
10817 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
10819 (initialize_inline_failed): Assign a reason to indirect edges.
10820 (cgraph_create_edge_1): New function.
10821 (cgraph_create_edge): Moved some functionality to
10822 cgraph_create_edge_1.
10823 (cgraph_create_indirect_edge): New function.
10824 (cgraph_edge_remove_callee): Add an assert checking for
10826 (cgraph_edge_remove_caller): Special-case indirect edges.
10827 (cgraph_remove_edge): Likewise.
10828 (cgraph_set_edge_callee): New function.
10829 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
10830 (cgraph_make_edge_direct): New function.
10831 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
10832 the declaration of the call statement matches.
10833 (cgraph_node_remove_callees): Special-case indirect edges.
10834 (cgraph_clone_edge): Likewise.
10835 (cgraph_clone_node): Clone also the indirect edges.
10836 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
10837 indirect_call, dump count of indirect_calls edges.
10838 * ipa-prop.c (iinlining_processed_edges): New variable.
10839 (ipa_note_param_call): Create indirect edges instead of
10840 creating notes. New parameter node.
10841 (ipa_analyze_call_uses): New parameter node, pass it on to
10842 ipa_note_param_call.
10843 (ipa_analyze_stmt_uses): Likewise.
10844 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
10845 (print_edge_addition_message): Work on edges rather than on notes.
10846 (update_call_notes_after_inlining): Likewise, renamed to
10847 update_indirect_edges_after_inlining.
10848 (ipa_create_all_structures_for_iinln): New function.
10849 (ipa_free_node_params_substructures): Do not free notes.
10850 (ipa_edge_duplication_hook): Propagate bits within
10851 iinlining_processed_edges bitmap.
10852 (ipa_node_duplication_hook): Do not duplicate notes.
10853 (free_all_ipa_structures_after_ipa_cp): Renamed to
10854 ipa_free_all_structures_after_ipa_cp.
10855 (free_all_ipa_structures_after_iinln): Renamed to
10856 ipa_free_all_structures_after_iinln.
10857 (ipa_write_param_call_note): Removed.
10858 (ipa_read_param_call_note): Removed.
10859 (ipa_write_indirect_edge_info): New function.
10860 (ipa_read_indirect_edge_info): Likewise.
10861 (ipa_write_node_info): Do not stream notes, do stream information
10863 (ipa_read_node_info): Likewise.
10864 (lto_ipa_fixup_call_notes): Removed.
10865 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10866 * ipa-inline.c (pass_ipa_inline): Likewise.
10867 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10868 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10869 * tree-inline.c (copy_bb): Removed an unnecessary double check for
10871 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10873 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10874 (output_cgraph): Stream also indirect edges.
10875 (lto_output_edge): Added capability to stream indirect edges.
10876 (input_edge): Likewise.
10877 (input_cgraph_1): Likewise.
10878 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10881 2010-04-28 Richard Guenther <rguenther@suse.de>
10883 PR tree-optimization/43879
10884 PR tree-optimization/43909
10885 * tree-ssa-structalias.c (struct variable_info): Add
10886 only_restrict_pointers flag.
10887 (new_var_info): Initialize it. Increment stats.total_vars here.
10888 (create_function_info_for): Do not increment stats.total_vars here.
10889 (get_function_part_constraint): Fix build with C++.
10890 (insert_into_field_list): Remove.
10891 (push_fields_onto_fieldstack): Properly merge fields.
10892 (create_variable_info_for): Split and simplify.
10893 (create_variable_info_for_1): New piece.
10894 (intra_create_variable_infos): Properly make restrict constraints
10897 2010-04-28 Richard Guenther <rguenther@suse.de>
10900 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10902 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
10903 Jan Hubicka <hubicka@ucw.cz>
10905 * doc/invoke.texi (-Wsuggest-attribute=const,
10906 -Wsuggest-attribute=pure): Document.
10907 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10908 (function_always_visible_to_compiler_p,
10909 suggest_attribute, warn_function_pure, warn_function_const):
10911 (check_call): Improve debug info.
10912 (analyze_function): Do not check availability.
10913 (add_new_function): Check availability.
10914 (propagate): Output warnings.
10915 (skip_function_for_local_pure_const): New function.
10916 (local_pure_const): Use it; output warnings.
10917 * common.opt (Wsuggest-attribute=const,
10918 Wsuggest-attribute=pure): New.
10920 2010-04-27 Jakub Jelinek <jakub@redhat.com>
10922 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10923 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10924 or DW_CFA_def_cfa_offset{,_sf}.
10926 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
10928 * tree.h: Fix truncated long macros.
10930 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
10932 * collect2.c (TARGET_64BIT): Redefine to target's default.
10933 * tlink.c: Likewise.
10934 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10935 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10936 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10937 for underscoring __USER_LABEL_PREFIX__.
10938 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10939 (SUB_LINK_ENTRY32): New.
10940 (SUB_LINK_ENTRY64): New.
10941 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
10942 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
10943 (SUB_LINK_ENTRY64): New.
10944 (SUB_LINK_ENTRY): New.
10945 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
10946 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
10947 x64 target is choosen.
10948 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
10949 * configure: Regenerated.
10950 * configure.ac (leading-mingw64-underscores): Option added.
10952 2010-04-27 Jan Hubicka <jh@suse.cz>
10954 * doc/invoke.texi (-fipa-profile): Document.
10955 * opts.c (decode_options): Enable ipa-profile at -O1.
10956 * timevar.def (TV_IPA_PROFILE): Define.
10957 * common.opt (fipa-profile): Add.
10958 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
10960 (cgraph_propagate_frequency): Handle only local ones.
10961 * tree-pass.h (pass_ipa_profile): Declare.
10962 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
10963 (pass_ipa_profile): Use TV_IPA_PROFILE.
10964 * ipa.c (ipa_profile): New function.
10965 (gate_ipa_profile): Likewise.
10966 (pass_ipa_profile): New global variable.
10967 * passes.c (pass_ipa_profile): New.
10969 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
10971 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
10973 2010-04-27 Martin Jambor <mjambor@suse.cz>
10975 PR middle-end/43812
10976 * ipa.c (dissolve_same_comdat_group_list): New function.
10977 (function_and_variable_visibility): Call
10978 dissolve_same_comdat_group_list when comdat group contains external or
10980 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
10981 lists are circular and that they contain only DECL_ONE_ONLY nodes.
10983 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
10985 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
10986 (const_hash_1) <VECTOR_CST>: New case.
10987 (compare_constant) <VECTOR_CST>: Likewise.
10988 <ADDR_EXPR>: Deal with LABEL_REFs.
10989 (copy_constant) <VECTOR_CST>: New case.
10991 2010-04-27 Jan Hubicka <jh@suse.cz>
10993 * cgraph.c (cgraph_propagate_frequency): New function.
10994 * cgraph.h (cgraph_propagate_frequency): Declare.
10995 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
10996 cgraph_propagate_frequency.
10998 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11000 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11002 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
11005 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11006 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11007 here to determine which regs to push and how much stack to reserve.
11009 2010-04-27 Jie Zhang <jie@codesourcery.com>
11011 * doc/gimple.texi (gimple_statement_with_ops): Remove
11012 addresses_taken field.
11013 (gimple_statement_with_memory_ops): Likewise.
11015 2010-04-27 Jan Hubicka <jh@suse.cz>
11017 * tree-inline.c (eni_inlining_weights): Remove.
11018 (estimate_num_insns): Special case more builtins.
11020 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
11023 * c-typeck.c (build_binary_op): Move forward check for comparison
11024 pointer with null pointer constant and adjust the diagnostic message.
11026 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
11029 * configure.ac (gcc_cv_as_section_has_align): Set if installed
11030 binutils supports extended .section directive needed by LTO, or
11031 warn if older binutils found.
11032 (LTO_BINARY_READER): New AC_SUBST'd variable.
11033 (LTO_USE_LIBELF): Likewise.
11034 * gcc/config.gcc (lto_binary_reader): New target-specific configure
11036 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11037 (LTO_USE_LIBELF): Likewise.
11038 * configure: Regenerate.
11040 * collect2.c (is_elf): Rename from this ...
11041 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11042 object files in addition to ELF-formatted ones.
11043 (scan_prog_file): Caller updated. Also allow for LTO info marker
11044 symbol to be prefixed or not by an extra underscore.
11046 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11047 * config/i386/winnt.c: Also #include lto-streamer.h
11048 (i386_pe_asm_named_section): Specify 1-byte section alignment for
11049 LTO named sections.
11050 (i386_pe_asm_output_aligned_decl_common): Add comment.
11051 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11053 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
11056 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11057 Add missing earlyclobber for second alternative.
11059 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
11061 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11062 bits for artificial defs at the top of the block.
11063 * fwprop.c (single_def_use_enter_block): Don't call it.
11065 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
11068 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11069 instead of "$gcc_cv_objdump -T".
11070 Use "-undefined dynamic_lookup" on darwin.
11071 * gcc/configure: Regenerate.
11073 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11076 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11078 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11080 * c-parser.c (struct c_token): Move location field up.
11081 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11082 (struct c_declspecs): Convert typespec_word, storage_class, and
11083 default_int_p into bitfields.
11084 (struct c_declarator): Move loc field up.
11086 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11088 * cfgloop.h (struct loop): Move can_be_parallel field up.
11089 * ipa-prop.h (struct ip_node_params): Move bitfields up.
11090 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11092 (struct iv_cand): Convert pos field into a bitfield.
11093 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11095 (struct _stmt_vec_info): Shuffle fields for better packing.
11097 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11099 * varasm.c (IN_NAMED_SECTION): Remove guard.
11100 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11101 (IN_NAMED_SECTION_P): ...this.
11102 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11103 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11105 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11107 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11108 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
11109 of shadowing it. Fix comments.
11111 2010-04-26 Jan Hubicka <jh@suse.cz>
11113 * cgraph.c (cgraph_create_node): Set node frequency to normal.
11114 (cgraph_clone_node): Copy function frequency.
11115 * cgraph.h (node_frequency): New enum
11116 (struct cgraph_node): Add.
11117 * final.c (rest_of_clean_state): Update.
11118 * lto-cgraph.c (lto_output_node): Output node frequency.
11119 (input_overwrite_node): Input node frequency.
11120 * tre-ssa-loop-ivopts (computation_cost): Update.
11121 * lto-streamer-out.c (output_function): Do not output function
11123 * predict.c (maybe_hot_frequency_p): Update and handle functions
11125 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11127 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11128 (compute_function_frequency): Set noreturn functions to be executed
11130 (choose_function_section): Update.
11131 * lto-streamer-in.c (input_function): Do not input function frequency.
11132 * function.c (allocate_struct_function): Do not initialize function
11134 * function.h (function_frequency): Remove.
11135 (struct function): Remove function frequency.
11136 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11137 (try_update): Update.
11138 * tree-inline.c (initialize_cfun): Do not update function frequency.
11139 * passes.c (pass_init_dump_file): Update.
11140 * i386.c (ix86_compute_frame_layout): Update.
11141 (ix86_pad_returns): Update.
11143 2010-04-26 Jie Zhang <jie@codesourcery.com>
11145 PR tree-optimization/43833
11146 * tree-vrp.c (range_int_cst_p): New.
11147 (range_int_cst_singleton_p): New.
11148 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11149 when both operands are constants. Use range_int_cst_p in
11152 2010-04-26 Jan Hubicka <jh@suse.cz>
11154 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11156 2010-04-26 Richard Guenther <rguenther@suse.de>
11159 * gimple.c (gimple_decl_printable_name): Deal gracefully
11160 with a NULL DECL_NAME.
11162 2010-04-26 Richard Guenther <rguenther@suse.de>
11165 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11166 if emitting debug information and it is either a function
11167 or a namespace decl.
11169 2010-04-26 Ira Rosen <irar@il.ibm.com>
11171 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11172 determine if the statement is vectorizable, and a macro to access it.
11173 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11174 Skip statements that can't be vectorized. If the analysis fails,
11175 mark the statement as unvectorizable if vectorizing basic block.
11176 (vect_compute_data_refs_alignment): Likewise.
11177 (vect_verify_datarefs_alignment): Skip statements marked as
11178 unvectorizable. Add print.
11179 (vect_analyze_group_access): Skip statements that can't be
11180 vectorized. If the analysis fails, mark the statement as
11181 unvectorizable if vectorizing basic block.
11182 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11183 * tree-vect-stmts.c (vectorizable_store): Fix the number of
11184 generated stmts for SLP.
11185 (new_stmt_vec_info): Initialize the new field.
11186 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11187 statements marked as unvectorizable.
11189 2010-04-25 Joseph Myers <joseph@codesourcery.com>
11191 * c-common.c (flag_isoc1x): New.
11192 (flag_isoc99): Update comment.
11193 * c-common.h (flag_isoc1x): New.
11194 (flag_isoc99): Update comment.
11195 * c-cppbuiltin.c (builtin_define_float_constants): Also define
11196 __<type>_DECIMAL_DIG__.
11197 * c-opts.c (set_std_c1x): New.
11198 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11199 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11200 * c.opt (-std=c1x, -std=gnu1x): New options.
11201 * doc/cpp.texi: Mention -std=c1x.
11202 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11203 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11204 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11205 * doc/standards.texi: Mention C1X.
11206 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11207 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11208 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11211 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
11213 * config/i386/gmon-sol2.c (_mcleanup): Change format string
11214 placeholder from 0x%x to %#x.
11215 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11216 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11217 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11218 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11219 * config/i386/i386.c (ix86_target_string): Ditto.
11220 (output_pic_addr_const): Ditto.
11221 (print_operand): Ditto.
11223 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
11225 * combine.c (find_split_point): Add third argument. Use it
11226 to find nested multiply-accumulate instructions. Adjust calls.
11227 (try_combine): Adjust call to find_split_point.
11229 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11231 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11233 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
11235 PR tree-optimization/41442
11236 * fold-const.c (merge_truthop_with_opposite_arm): New function.
11237 (fold_binary_loc): Call it.
11239 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11241 * toplev.c (general_init): Set default for fdiagnostics-show-option.
11242 * opts.c (common_handle_option): Allow disabling it.
11243 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11245 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
11247 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11248 between modes if both types are integral.
11250 2010-04-23 Richard Guenther <rguenther@suse.de>
11252 PR tree-optimization/43572
11253 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11255 2010-04-23 Richard Guenther <rguenther@suse.de>
11258 * tree-inline.c (tree_can_inline_p): Also check compatibility
11261 2010-04-23 Martin Jambor <mjambor@suse.cz>
11263 PR tree-optimization/43846
11264 * tree-sra.c (struct access): New flag grp_assignment_read.
11265 (build_accesses_from_assign): Set grp_assignment_read.
11266 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11267 (enum mark_read_status): New type.
11268 (analyze_access_subtree): Propagate grp_assignment_read, create
11269 accesses also if both direct_read and root->grp_assignment_read.
11271 2010-04-23 Martin Jambor <mjambor@suse.cz>
11273 PR middle-end/43835
11274 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11275 function does not have type attributes.
11277 2010-04-23 Richard Guenther <rguenther@suse.de>
11280 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11283 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11285 * sese.h (create_if_region_on_edge): Remove.
11287 * sese.c (create_if_region_on_edge): Make static.
11289 * tree-inline.c: Do not include ggc.h.
11291 * expr.c: Do not include ggc.h.
11293 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11296 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
11299 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11300 in the middle of insns for casesi_worker_2.
11302 2010-04-22 David Edelsohn <edelsohn@gnu.org>
11304 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11306 2010-04-22 Ira Rosen <irar@il.ibm.com>
11308 PR tree-optimization/43842
11309 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11310 loop unrolling in update of exit phis. Fix comment.
11311 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11312 least two reduction statements in the loop before starting SLP
11315 2010-04-22 Nick Clifton <nickc@redhat.com>
11317 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11319 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
11321 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11322 to simplify a + ~a.
11324 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11326 * tree-parloops.c (loop_parallel_p): New argument
11327 parloop_obstack. Pass it down.
11328 (parallelize_loops): New variable parloop_obstack. Initialize it,
11329 pass it down, free it.
11331 * tree-loop-linear.c (linear_transform_loops): Pass down
11334 * tree-data-ref.h (lambda_compute_access_matrices): New argument
11335 of type struct obstack *.
11337 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11338 scratch_obstack. Initialize it, pass down, free it.
11340 * lambda.h (lambda_loop_new): Remove.
11341 (lambda_matrix_new, lambda_matrix_inverse)
11342 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11343 argument of type struct obstack *.
11345 * lambda-trans.c (lambda_trans_matrix_new): New argument
11346 lambda_obstack. Pass it down, use obstack allocation for ret.
11347 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
11350 * lambda-mat.c (lambda_matrix_get_column)
11351 (lambda_matrix_project_to_null): Remove.
11352 (lambda_matrix_new): New argument lambda_obstack. Use obstack
11353 allocation for mat.
11354 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11357 * lambda-code.c (lambda_loop_new): New function.
11358 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11359 (lambda_compute_auxillary_space, lambda_compute_target_space)
11360 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11361 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11362 (build_access_matrix): New argument lambda_obstack. Use obstack
11364 (lambda_compute_step_signs, lambda_compute_access_matrices): New
11365 argument lambda_obstack. Pass it down.
11367 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11369 * optabs.h (expand_widening_mult): Declare.
11371 2010-04-22 Richard Guenther <rguenther@suse.de>
11373 PR tree-optimization/43845
11374 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11375 lookup the CALL_EXPR function and arguments.
11377 2010-04-22 Nick Clifton <nickc@redhat.com>
11379 * config/stormy16/stormy16.c
11380 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11381 * config/stormy16/stormy16.h: Tidy up formatting.
11382 (DONT_USE_BUILTIN_SETJMP): Remove definition.
11383 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11384 (ineqbranchsi): Delete pattern.
11385 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11386 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11387 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11388 stormy16-lib2-ucmpsi2.c.
11390 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11392 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11393 df_simulate_find_noclobber_defs as appropriate. Keep track of an
11394 extra set merge_set_noclobber, and use it to relax the final test
11396 * df.h (df_simulate_find_noclobber_defs): Declare.
11397 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11399 (df_simulate_find_noclobber_defs): New function.
11401 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
11403 * config/i386/i386.md: Use {} around multi-line preparation statements.
11405 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11407 * c-tree.h (push_init_level, pop_init_level, set_init_index)
11408 (process_init_element): New argument of type struct obstack *.
11410 * c-typeck.c (push_init_level, pop_init_level, set_designator)
11411 (set_init_index, set_init_label, set_nonincremental_init)
11412 (set_nonincremental_init_from_string, find_init_member)
11413 (output_init_element, output_pending_init_elements)
11414 (process_init_element): New argument braced_init_obstack. Pass it
11416 (push_range_stack, add_pending_init): New argument
11417 braced_init_obstack. Use obstack allocation.
11419 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11420 braced_init_obstack. Pass it down.
11421 (c_parser_braced_init): New variables ret, braced_init_obstack.
11422 Initialize obstack, pass it down and finally free it.
11424 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11426 PR middle-end/29274
11427 * tree-pass.h (pass_optimize_widening_mul): Declare.
11428 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11429 gate_optimize_widening_mul): New static functions.
11430 (pass_optimize_widening_mul): New.
11431 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11432 <case MULT_EXPR>: Remove support for widening multiplies.
11433 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11434 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11435 simplify_gen_unary rather than directly building extensions.
11436 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11438 * expmed.c (expand_widening_mult): New function.
11439 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11441 2010-04-21 Jan Hubicka <jh@suse.cz>
11443 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11444 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11445 * lto-wpa-fixup.c: Remove.
11446 * Makefile.in (lto-wpa-fixup.o): Remove.
11447 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11448 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11449 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11451 2010-04-21 Jan Hubicka <jh@suse.cz>
11453 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11454 add write_optimization_summary, read_optimization_summary.
11455 (ipa_write_summaries_of_cgraph_node_set): Remove.
11456 (ipa_write_optimization_summaries): Declare.
11457 (ipa_read_optimization_summaries): Declare.
11458 * ipa-cp.c (pass_ipa_cp): Update.
11459 * ipa-reference.c (pass_ipa_reference): Update.
11460 * ipa-pure-const.c (pass_ipa_pure_const): Update.
11461 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11463 * ipa-inline.c (pass_ipa_inline): Update.
11464 * ipa.c (pass_ipa_whole_program): Update.
11465 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11466 * passes.c (ipa_write_summaries_1): Do not test wpa.
11467 (ipa_write_optimization_summaries_1): New.
11468 (ipa_write_optimization_summaries): New.
11469 (ipa_read_summaries): Do not test ltrans.
11470 (ipa_read_optimization_summaries_1): New.
11471 (ipa_read_optimization_summaries): New.
11473 2010-04-21 Jan Hubicka <jh@suse.cz>
11475 * lto-cgraph.c (lto_output_node): Do not output comdat groups
11476 for boundary nodes.
11477 (output_cgraph): Do not arrange comdat groups for boundary nodes.
11479 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11482 * dwarf2out.c (add_name_and_src_coords_attributes): Add
11483 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11485 2010-04-21 Jan Hubicka <jh@suse.cz>
11487 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11489 2010-04-21 Jan Hubicka <jh@suse.cz>
11491 * varpool.c (decide_is_variable_needed): Variable is always needed
11494 2010-04-21 Jan Hubicka <jh@suse.cz>
11496 * opts.c (decode_options): Enable pure-const pass for whopr.
11498 2010-04-21 Jan Hubicka <jh@suse.cz>
11500 * cgraph.c (dump_cgraph_node): Dump also assembler name.
11501 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11503 (cgraph_decide_inlining): Do not expect callee to be removed in all
11506 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
11508 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11510 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11512 * config/i386/i386.md (x86_shrd): Add athlon_decode and
11513 amdfam10_decode attributes.
11515 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11517 PR middle-end/43570
11518 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11519 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11520 (lower_copyprivate_clauses): Use private var in outer
11521 context instead of original var. Make sure the types
11522 are correct for VLAs.
11524 2010-04-21 Richard Guenther <rguenther@suse.de>
11526 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11527 to non-pointer objects.
11529 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11531 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
11532 last chain entry if it starts with the still current label.
11533 (add_location_or_const_value_attribute): Check that
11534 loc_list->first->next is NULL instead of comparing ->first with ->last.
11535 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11536 to add_var_loc_to_decl.
11538 * dwarf2out.c (output_call_frame_info): For dw_cie_version
11539 >= 4 add also address size and segment size fields into CIE header.
11541 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11542 long as address size is the same as sizeof (void *) and
11544 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
11545 address size or segment size is unexpected, return DW_EH_PE_omit.
11546 (classify_object_over_fdes): If get_cie_encoding returned
11547 DW_EH_PE_omit, return -1.
11548 (init_object): If classify_object_over_fdes returned -1,
11549 pretend there were no FDEs at all.
11551 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11553 * config/i386/i386.md (bswap<mode>2): Macroize expander from
11554 bswap{si,di}2 using SWI48 mode iterator.
11555 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11556 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
11557 set modrm attribute of bswap insn to 0 and remove length attribute.
11558 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11559 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
11560 set mode attribute to <MODE> and remove length attribute.
11562 2010-04-20 James E. Wilson <wilson@codesourcery.com>
11564 PR rtl-optimization/43520
11565 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11566 zero available registers.
11568 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11570 * builtins.c (fold_builtin_cproj): Fold more cases.
11572 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11574 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11575 (fold_builtin_1): Fold builtin cproj.
11576 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11577 Use ATTR_CONST_NOTHROW_LIST.
11579 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
11581 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11582 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
11583 ffsi2_no_cmove for !TARGET_CMOVE.
11584 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
11585 (ffssi2): Remove expander.
11586 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11588 (ctz<mode>2): Ditto from ctz{si,di}2.
11589 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11591 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11594 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11596 * dwarf2out.c (AT_linkage_name): Define.
11597 (clone_as_declaration): Handle DW_AT_linkage_name.
11598 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11599 of DW_AT_MIPS_linkage_name.
11600 (move_linkage_attr): Likewise.
11601 (dwarf2out_finish): Likewise.
11603 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
11605 PR middle-end/41952
11606 * fold-const.c (fold_comparison): New folding rule.
11608 2010-04-20 Anatoly Sokolov <aesok@post.ru>
11610 * double-int.h (double_int_setbit): Declare.
11611 * double-int.c (double_int_setbit): New function.
11612 * rtl.h (immed_double_int_const): Declare.
11613 * emit-rtl.c (immed_double_int_const): New function.
11614 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11615 and immed_double_int_const functions.
11616 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11617 expand_copysign_bit): (Ditto.).
11618 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11619 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11620 * dojump.c (prefer_and_bit_test): (Ditto.).
11621 * expr.c (convert_modes, reduce_to_bit_field_precision,
11622 const_vector_from_tree): (Ditto.).
11623 * expmed.c (mask_rtx, lshift_value): (Ditto.).
11625 2010-04-20 Jan Hubicka <jh@suse.cz>
11627 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11628 (dump_cgraph_node): Dump new flags.
11629 * cgraph.h (struct cgraph_node): Add flags
11630 reachable_from_other_partition and in_other_partition.
11631 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11632 other partition can not be removed.
11633 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11634 the other partition must be output; silence sanity checking on
11635 leaking functions bodies from other paritition.
11636 * lto-cgraph.c (reachable_from_other_partition_p): New function.
11637 (lto_output_node): Output new flags; do not sanity check that inline
11638 clones are output; drop lto_forced_extern_inline_p code; do not mock
11639 visibility flags at partition boundaries.
11640 (add_node_to): New function.
11641 (output_cgraph): Use it to sort functions so masters appear before
11643 (input_overwrite_node): Input new flags.
11644 * passes.c (ipa_write_summaries): Do not call
11645 lto_new_extern_inline_states.
11646 * lto-section-out.c (forced_extern_inline,
11647 lto_new_extern_inline_states lto_delete_extern_inline_states,
11648 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
11649 * lto-streamer.h (lto_new_extern_inline_states,
11650 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
11651 lto_forced_extern_inline_p): Kill.
11653 2010-04-20 Richard Guenther <rguenther@suse.de>
11655 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
11656 from vars that can have pointers.
11657 (process_constraint): Dump useless constraints.
11659 2010-04-20 Richard Guenther <rguenther@suse.de>
11661 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
11662 (dump_sa_points_to_info): Remove asserts.
11663 (init_base_vars): nothing_id isn't an escape point nor does it
11666 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11668 * tree.h (TYPE_REF_IS_RVALUE): Define.
11669 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
11670 should_move_die_to_comdat, prune_unused_types_walk): Handle
11671 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
11672 (modified_type_die, gen_reference_type_die): Emit
11673 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
11674 if TYPE_REF_IS_RVALUE and -gdwarf-4.
11676 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11679 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
11680 calls for -fpic -m31 if they have been sibcall optimized.
11682 2010-04-19 James E. Wilson <wilson@codesourcery.com>
11684 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
11685 ar.lc fixed and call-used.
11687 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11689 2010-04-19 Jan Hubicka <jh@suse.cz>
11691 * opts.c (decode_options): Disable whpr incompatible passes.
11692 * lto/lto.c (lto_1_to_1_map): Skip clones.
11693 (read_cgraph_and_symbols): Do not mark everything as needed.
11694 (do_whole_program_analysis): Do map only after optimizing;
11695 set proper cgraph_state; use passmanager.
11697 2010-04-19 DJ Delorie <dj@redhat.com>
11699 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
11700 POINTER_PLUS_EXPR and fix them.
11702 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
11704 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
11705 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
11706 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
11707 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
11708 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
11709 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
11710 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
11711 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
11712 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
11713 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
11714 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
11716 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
11718 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
11719 (check_cond_move_block): Likewise.
11720 (cond_move_process_if_block): Likewise.
11721 (noce_find_if_block): Improve formatting.
11722 (find_if_header): Pass 0 to memset and tweak conditions.
11723 (cond_exec_find_if_block): Fix long lines and tweak conditions.
11725 2010-04-19 Jakub Jelinek <jakub@redhat.com>
11727 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
11730 PR middle-end/43337
11731 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
11732 with non-local decl doesn't need chain.
11734 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
11736 * ira-color.c (allocno_reload_assign): Avoid accumulating
11737 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
11739 2010-04-19 Martin Jambor <mjambor@suse.cz>
11741 * gimple.h (create_tmp_reg): Declare.
11742 * gimplify.c (create_tmp_reg): New function.
11743 (gimplify_return_expr): Use create_tmp_reg.
11744 (gimplify_omp_atomic): Likewise.
11745 (gimple_regimplify_operands): Likewise.
11746 * tree-dfa.c (make_rename_temp): Likewise.
11747 * tree-predcom.c (predcom_tmp_var): Likewise.
11748 (reassociate_to_the_same_stmt): Likewise.
11749 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
11750 (get_replaced_param_substitute): Likewise.
11751 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11752 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
11753 * tree-ssa-pre.c (get_representative_for): Likewise.
11754 (create_expression_by_pieces): Likewise.
11755 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11756 (create_tailcall_accumulator): Likewise.
11758 2010-04-19 Martin Jambor <mjambor@suse.cz>
11760 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
11762 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
11764 2010-04-19 Richard Guenther <rguenther@suse.de>
11766 PR tree-optimization/43796
11767 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
11768 from SCEV in the lattice.
11769 (vrp_visit_phi_node): Dump change.
11771 2010-04-19 Richard Guenther <rguenther@suse.de>
11773 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
11774 * configure: Re-generated.
11776 2010-04-19 Richard Guenther <rguenther@suse.de>
11778 PR tree-optimization/43783
11779 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
11780 constant ARRAY_REF operands two and three if possible.
11782 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
11785 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
11787 2010-04-19 Jie Zhang <jie@codesourcery.com>
11790 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
11792 2010-04-19 Ira Rosen <irar@il.ibm.com>
11794 PR tree-optimization/37027
11795 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
11796 and macro to access it.
11797 (vectorizable_reduction): Add argument.
11798 (vect_get_slp_defs): Likewise.
11799 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
11800 statements for possible use in SLP.
11801 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
11802 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
11803 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
11805 (vectorizable_reduction): Likewise.
11806 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
11808 (vectorizable_type_demotion, vectorizable_type_promotion,
11809 vectorizable_store): Likewise.
11810 (vect_analyze_stmt): Update call to vectorizable_reduction.
11811 (vect_transform_stmt): Likewise.
11812 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
11813 (vect_build_slp_tree): Fix indentation. Check that there are no loads
11814 from different interleaving chains in same node.
11815 (vect_slp_rearrange_stmts): New function.
11816 (vect_supported_load_permutation_p): Allow load permutations for
11817 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
11818 inside SLP nodes if necessary.
11819 (vect_analyze_slp_instance): Handle reductions.
11820 (vect_analyze_slp): Try to build SLP instances originating from groups
11822 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
11823 (vect_get_constant_vectors): Create initial vectors for reductions
11824 according to reduction code. Add new argument.
11825 (vect_get_slp_defs): Add new argument, pass it to
11826 vect_get_constant_vectors.
11827 (vect_schedule_slp_instance): Remove SLP tree root statements.
11829 2010-04-19 Jakub Jelinek <jakub@redhat.com>
11831 * tree.h (ENUM_IS_SCOPED): Define.
11832 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
11833 for ENUM_IS_SCOPED enums.
11835 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
11837 * fold-const.c (fold_comparison): Use ssizetype.
11838 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11839 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
11840 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
11841 * tree-object-size.c (compute_object_sizes): Use size_type_node.
11843 * tree.h (initialize_sizetypes): Remove parameter.
11844 (build_common_tree_nodes): Remove second parameter.
11845 * stor-layout.c (initialize_sizetypes): Remove parameter.
11846 Always create an unsigned type.
11847 (set_sizetype): Assert that the passed type is unsigned and simplify.
11848 * tree.c (build_common_tree_nodes): Remove second parameter.
11849 Adjust call to initialize_sizetypes.
11850 * c-decl.c (c_init_decl_processing): Remove second argument in call to
11851 build_common_tree_nodes.
11853 2010-04-18 Matthias Klose <doko@ubuntu.com>
11855 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
11857 2010-04-18 Ira Rosen <irar@il.ibm.com>
11859 PR tree-optimization/43771
11860 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
11861 load permutation doesn't have gaps.
11863 2010-04-18 Jan Hubicka <jh@suse.cz>
11865 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11866 (sse_prologue_save_insn expander): Use new pattern.
11867 (sse_prologue_save_insn1): New pattern and splitter.
11868 (sse_prologue_save_insn): Update to deal also with 64bit aligned
11870 * i386.c (setup_incoming_varargs_64): Do not compute jump
11872 (ix86_gimplify_va_arg): Update alignment needed.
11873 (ix86_local_alignment): Do not align all local arrays to 128bit.
11875 2010-04-17 Jan Hubicka <jh@suse.cz>
11877 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11879 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11881 * arm.md (negdi2): Remove redundant code to force values into a
11884 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11886 * arm/bpabi.S: Add EABI alignment attributes to objects.
11887 * arm/bpabi-v6m.S: Likewise.
11888 * arm/crti.asm: Likewise.
11889 * arm/crtn.asm: Likewise.
11890 * arm/lib1funcs.asm: Likewise.
11891 * arm/libunwind.S: Likewise.
11893 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11895 * arm-protos.h (tune_params): New structure.
11896 * arm.c (current_tune): New variable.
11897 (arm_constant_limit): Delete.
11898 (struct processors): Add pointer to the tune parameters.
11899 (arm_slowmul_tune): New tuning option.
11900 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11901 (all_cores): Adjust to pick up the tuning model.
11902 (arm_constant_limit): New function.
11903 (arm_override_options): Select the appropriate tuning model. Delete
11904 initialization of arm_const_limit.
11905 (arm_split_constant): Use the new constant-limit model.
11906 (arm_rtx_costs): Pick up the current tuning model.
11907 * arm.md (is_strongarm, is_xscale): Delete.
11908 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11909 for Xscale variant architectures.
11910 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11912 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11914 * config/arm/arm.c (arm_gen_constant): Remove unused variable
11916 (arm_rtx_costs_1): Remove unused variable extra_cost.
11917 (arm_unwind_emit_set): Use variable offset.
11918 (thumb1_output_casesi): Remove unused variable flags.
11920 2010-04-16 Jeff Law <law@redhat.com>
11922 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11923 needing assignment rather than doing a two-phase assignment. Remove
11924 unused variable 'm'.
11926 2010-04-16 Jakub Jelinek <jakub@redhat.com>
11929 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11931 2010-04-16 Doug Kwan <dougkwan@google.com>
11933 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11934 (next_operand_entry_id): New static variable.
11935 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11936 (add_to_ops_vec): Assigned unique ID to operand entry.
11937 (struct oecount_s): New field ID.
11938 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11939 (undistribute_ops_list): Assign unique IDs to oecounts.
11940 (init_reassoc): reset next_operand_entry_id.
11942 2010-04-16 Doug Kwan <dougkwan@google.com>
11944 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
11945 missing left parenthesis.
11947 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
11949 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
11950 *btdi_rex64 using SWI48 mode iterator.
11951 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
11952 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
11953 *jcc_btdi_mask_rex64.
11955 2010-04-16 Anatoly Sokolov <aesok@post.ru>
11957 * double-int.h (tree_to_double_int): Convert to macro.
11958 * double-int.c (tree_to_double_int): Remove.
11960 2010-04-16 Jakub Jelinek <jakub@redhat.com>
11963 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
11964 with want_address 2 and in case a single element list might be
11965 possible, call it again with want_address 0.
11967 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11969 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
11970 case 'W' print operands for HI mode.
11971 * config/h8300/h8300.h (Y0, Y2) : New constraints.
11972 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
11973 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
11974 * config/h8300/predicate.md (bit_register_indirect_operand): New.
11976 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
11978 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
11979 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
11980 #xx:3 and #xx:4 mode.
11982 * config/h8300/h8300.md (inverted load with HImode dest): Add
11983 support for H8300SX.
11985 * config/h8300/predicate.md (bit_operand): Allow immediate values that
11986 satisfy 'U' constraint.
11988 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11990 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
11991 * configure: Regenerate.
11992 * config.in: Regenerate.
11993 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
11996 2010-04-16 Richard Guenther <rguenther@suse.de>
11998 * tree.h (struct tree_decl_minimal): Move pt_uid ...
11999 (struct tree_decl_common): ... here.
12000 (DECL_PT_UID): Adjust.
12001 (SET_DECL_PT_UID): Likewise.
12002 (DECL_PT_UID_SET_P): Likewise.
12004 2010-04-16 Richard Guenther <rguenther@suse.de>
12006 PR tree-optimization/43572
12007 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12008 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12009 * tree-flow.h (is_call_clobbered): Remove.
12010 * tree-flow-inline.h (is_call_clobbered): Likewise.
12011 * tree-dfa.c (dump_variable): Do not dump call clobber state.
12012 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12013 (execute_return_slot_opt): Adjust.
12014 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12015 check for call clobbered vars here.
12016 (find_tail_calls): Move tailcall verification to the
12019 2010-04-16 Diego Novillo <dnovillo@google.com>
12021 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12023 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12026 * config/arm/arm.md (cbranchqi4): New pattern.
12027 * config/arm/predicates.md (const0_operand,
12028 cbranchqi4_comparison_operator): New predicates.
12030 2010-04-16 Richard Guenther <rguenther@suse.de>
12032 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12033 (dump_gimple_stmt): Likewise.
12035 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12037 * recog.h (struct recog_data): New field is_operator.
12038 (struct insn_operand_data): New field is_operator.
12039 * recog.c (extract_insn): Set recog_data.is_operator.
12040 * genoutput.c (output_operand_data): Emit code to set the
12042 * reload.c (find_reloads): Use it rather than testing for an
12043 empty constraint string.
12046 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12047 If the previous insn is a cbranchsi4_insn with the same arguments,
12048 omit the compare instruction.
12050 * config/arm/arm.md (addsi3_cbranch): If destination is a high
12051 register, inputs must be low registers and we need a low register
12052 scratch. Handle alternative 2 like alternative 3.
12054 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12056 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12057 don't call get_addr on both. If one expression is a VALUE and
12058 the other a REG, check VALUE's locs if the REG isn't among them.
12060 2010-04-16 Christian Bruel <christian.bruel@st.com>
12062 * config/sh/sh.h (sh_frame_pointer_required): New function.
12063 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12064 (flag_omit_frame_pointer) Set.
12065 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12066 (rounded_frame_size): Adjust size with outgoing_args_size.
12067 (sh_set_return_address): Must return from stack pointer.
12068 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12069 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12070 (ACCUMULATE_OUTGOING_ARGS): Define.
12071 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12072 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12074 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12077 * config/sh/sh.c (sh_legitimize_reload_address): Use
12078 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12079 Remove a unneeded check for offset_base.
12081 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
12083 * configure: Regenerated.
12085 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12087 * config/s390/s390.c (s390_call_save_register_used): Switch back
12088 to HARD_REGNO_NREGS.
12090 2010-04-15 Richard Guenther <rguenther@suse.de>
12092 * alias.c (alias_set_subset_of): Handle alias-set zero
12095 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
12096 Julian Brown <julian@codesourcery.com>
12098 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12099 alternatives according to use of high and low regs.
12100 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12101 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12102 optimizing for size on Thumb-2.
12104 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
12106 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12108 2010-04-15 Richard Guenther <rguenther@suse.de>
12110 * tree-ssa-structalias.c (struct variable_info): Add
12112 (new_var_info): Initialize it.
12113 (dump_constraints): Support printing last added constraints.
12114 (debug_constraints): Adjust.
12115 (dump_constraint_graph): Likewise.
12116 (make_heapvar_for): Check for NULL cfun.
12117 (get_function_part_constraint): New function.
12118 (get_fi_for_callee): Likewise.
12119 (find_func_aliases): Properly implement IPA PTA constraints.
12120 (process_ipa_clobber): New function.
12121 (find_func_clobbers): Likewise.
12122 (insert_into_field_list_sorted): Remove.
12123 (create_function_info_for): Properly allocate vars for IPA mode.
12124 Do not use insert_into_field_list_sorted.
12125 (create_variable_info_for): Properly generate constraints for
12126 global vars in IPA mode.
12127 (dump_solution_for_var): Always dump the solution.
12128 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12129 (find_what_var_points_to): Adjust.
12130 (pt_solution_set): Change.
12131 (pt_solution_ior_into): New function.
12132 (pt_solution_empty_p): Export.
12133 (pt_solution_includes_global): Adjust.
12134 (pt_solution_includes_1): Likewise.
12135 (pt_solutions_intersect_1): Likewise.
12136 (dump_sa_points_to_info): Check some invariants.
12137 (solve_constraints): Move constraint dumping ...
12138 (compute_points_to_sets): ... here.
12139 (ipa_pta_execute): ... and here.
12140 (compute_may_aliases): Do not re-compute points-to info
12141 locally if IPA info is available.
12142 (ipa_escaped_pt): New global var.
12143 (ipa_pta_execute): Properly implement IPA PTA.
12144 * tree-into-ssa.c (dump_decl_set): Support dumping
12145 decls not in referenced-vars.
12146 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12147 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12148 (dump_points_to_solution): Likewise.
12149 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12150 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12151 (remap_gimple_stmt): Reset call clobber/use information if necessary.
12152 (copy_decl_to_var): Copy DECL_PT_UID.
12153 (copy_result_decl_to_var): Likewise.
12154 * tree.c (make_node_stat): Initialize DECL_PT_UID.
12155 (copy_node_stat): Copy it.
12156 * tree.h (DECL_PT_UID): New macro.
12157 (SET_DECL_PT_UID): Likewise.
12158 (DECL_PT_UID_SET_P): Likewise.
12159 (struct tree_decl_minimal): Add pt_uid member.
12160 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12161 (pt_solution_empty_p): Declare.
12162 (pt_solution_set): Adjust.
12163 (ipa_escaped_pt): Declare.
12164 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12165 * gimple-pretty-print.c (pp_points_to_solution): New function.
12166 (dump_gimple_call): Dump call clobber/use information.
12167 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12168 * tree-pass.h (TDF_ALIAS): New dump option.
12169 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12170 * doc/invoke.texi (-fipa-pta): Update documentation.
12172 2010-04-15 Richard Guenther <rguenther@suse.de>
12174 * Makefile.in (OBJS-common): Add gimple-fold.o.
12175 (gimple-fold.o): New rule.
12176 * tree.h (maybe_fold_offset_to_reference,
12177 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12179 * gimple.h: ... here.
12180 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12181 may_propagate_address_into_dereference): Move prototypes ...
12182 * gimple.h: ... here.
12183 * tree-ssa-ccp.c (get_symbol_constant_value,
12184 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12185 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12186 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12187 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12188 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12189 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12190 gimplify_and_update_call_from_tree): Move ...
12191 * gimple-fold.c: ... here. New file.
12192 (ccp_fold_builtin): Rename to ...
12193 (gimple_fold_builtin): ... this.
12194 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12196 2010-04-15 Richard Guenther <rguenther@suse.de>
12198 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12199 fit_double_type, force_fit_type_double, add_double_with_sign,
12200 neg_double, mul_double_with_sign, lshift_double, rshift_double,
12201 lrotate_double, rrotate_double, div_and_round_double): Move ...
12202 * double-int.c: ... here.
12203 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12204 add_double, neg_double, mul_double_with_sign, mul_double,
12205 lshift_double, rshift_double, lrotate_double, rrotate_double,
12206 div_and_round_double): Move prototypes ...
12207 * double-int.h: ... here.
12209 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
12212 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
12213 matching constraints to ensure inputs match the output.
12215 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12218 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12219 in an input-only operand.
12221 2010-04-15 Anatoly Sokolov <aesok@post.ru>
12223 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12224 (double_int_not, double_int_lshift, double_int_rshift): Declare.
12225 (double_int_negative_p): Convert to static inline function.
12226 * double-int.c (double_int_lshift, double_int_lshift): New functions.
12227 (double_int_negative_p): Remove.
12228 * tree.h (lshift_double, rshift_double):
12229 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12230 * fold-const.c (fold_convert_const_int_from_real,
12231 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12232 (lshift_double): Change type of arith argument to bool.
12233 (rshift_double): Change type of arith argument to bool. Correct
12235 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12237 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
12240 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12241 at the start and end of the then/else blocks, and omit them from the
12243 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
12244 argument; all callers changed. Pass zero to old_insns_match_p instead.
12245 (flow_find_head_matching_sequence): New function.
12246 (old_insns_match_p): Check REG_EH_REGION notes for calls.
12247 * basic-block.h (flow_find_cross_jump,
12248 flow_find_head_matching_sequence): Declare functions.
12250 2010-04-14 Jason Merrill <jason@redhat.com>
12253 * c-common.c (attribute_takes_identifier_p): New fn.
12254 * c-common.h: Declare it.
12256 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12258 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12259 splitter condition.
12260 (*udivmod<mode>4): Ditto.
12262 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12264 * config/i386/i386.md (maxmin_int): Rename code attribute from
12265 maxminiprefix and update all users.
12266 (maxmin_float): Ditto from maxminfprefix.
12267 (logic): Ditto from logicprefix.
12268 (absneg_mnemonic): Ditto from absnegprefix.
12269 * config/i386/mmx.md: Update all users of maxminiprefix,
12270 maxminfprefix and logicprefix for rename.
12271 * config/i386/sse.md: Ditto.
12272 * config/i386/sync.md (sync_<code><mode>): Update for
12273 logicprefix rename.
12275 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12278 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12279 warnings converted to errors.
12281 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12283 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12284 used insn_type variable.
12285 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12286 to avoid set-but-not-used warning.
12288 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12290 * df-core.c (df_ref_debug): Change format string placeholder
12292 * dwarf2asm.c (dw2_asm_output_data_raw,
12293 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12294 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12295 * dwarf2out.c (output_cfi, output_cfi_directive,
12296 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12297 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12299 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12300 * print-rtl.c (print_rtx): Ditto.
12302 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12304 PR middle-end/42694
12305 * builtins.c (expand_builtin_pow_root): New function to expand pow
12306 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12307 series of sqrt and cbrt calls under -ffast-math.
12308 (expand_builtin_pow): Call it.
12310 2010-04-14 Michael Matz <matz@suse.de>
12312 PR tree-optimization/42963
12313 * tree-cfg.c (touched_switch_bbs): New static variable.
12314 (group_case_labels_stmt): New function broken out from ...
12315 (group_case_labels): ... here, use the above.
12316 (start_recording_case_labels): Allocate touched_switch_bbs.
12317 (end_recording_case_labels): Deallocate it, call
12318 group_case_labels_stmt.
12319 (gimple_redirect_edge_and_branch): Remember index of affected BB.
12321 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12323 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12324 from insn template.
12326 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12328 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12330 2010-04-13 Jan Hubicka <jh@suse.cz>
12332 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12333 of optimized out static functions.
12334 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12335 cost computation. Also sanity check for overflows.
12336 (update_caller_keys): Update cgraph_edge_badness call; properly
12337 update fibheap and sanity check that it is up to date.
12338 (add_new_edges_to_heap): Update cgraph_edge_badness.
12339 (cgraph_decide_inlining_of_small_function): Likewise;
12340 add sanity checking that badness in heap is up to date;
12341 improve dumping of reason; Update badness of calls to the
12342 offline copy of function currently inlined; dump badness
12343 of functions not inlined because of unit growth limits.
12345 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12347 PR middle-end/32628
12348 * c-common.c (pointer_int_sum): Disregard overflow that occured only
12349 because of sign-extension change when converting to sizetype here...
12350 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12352 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12353 the folding to constants. Remove redundant final conversion.
12354 (fold_binary) <associate>: Do not associate if the re-association of
12355 constants alone overflows.
12356 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12357 to the end of the list.
12358 (multiple_of_p) <COND_EXPR>: New case.
12360 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12362 * opt-functions.awk (opt_sanitized_name): New.
12364 * optc-gen.awk: Use it
12365 * opth-gen.awk: Use it.
12367 2010-04-13 Martin Jambor <mjambor@suse.cz>
12369 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12370 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12371 children. Call replace_uses_with_default_def_ssa_name to handle
12374 2010-04-13 Michael Matz <matz@suse.de>
12376 PR middle-end/43730
12377 * builtins.c (expand_builtin_interclass_mathfn): Also create
12378 a register if the predicate doesn't match.
12380 2010-04-13 Diego Novillo <dnovillo@google.com>
12382 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12383 * c-pch.c: Include timevar.h.
12384 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12385 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12386 * ggc-common.c: Include timevar.h.
12387 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12388 * timevar.def (TV_PCH_SAVE): Define.
12389 (TV_PCH_CPP_SAVE): Define.
12390 (TV_PCH_PTR_REALLOC): Define.
12391 (TV_PCH_PTR_SORT): Define.
12392 (TV_PCH_RESTORE): Define.
12393 (TV_PCH_CPP_RESTORE): Define.
12395 2010-04-13 Michael Matz <matz@suse.de>
12397 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12399 (can_reassociate_p): New function.
12400 (break_up_subtract_bb, reassociate_bb): Use it.
12402 2010-04-13 Richard Guenther <rguenther@suse.de>
12405 * builtins.c (c_readstr): Fix assert.
12407 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
12409 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12410 when generating cltd insn.
12412 (*ashl<mode>3_1): Remove special handling for register operand 2.
12413 (*ashlsi3_1_zext): Ditto.
12414 (*ashlhi3_1): Ditto.
12415 (*ashlhi3_1_lea): Ditto.
12416 (*ashlqi3_1): Ditto.
12417 (*ashlqi3_1_lea): Ditto.
12418 (*<shiftrt_insn><mode>3_1): Ditto.
12419 (*<shiftrt_insn>si3_1_zext): Ditto.
12420 (*<shiftrt_insn>qi3_1_slp): Ditto.
12421 (*<rotate_insn><mode>3_1): Ditto.
12422 (*<rotate_insn>si3_1_zext): Ditto.
12423 (*<rotate_insn>qi3_1_slp): Ditto.
12425 2010-04-13 Richard Guenther <rguenther@suse.de>
12427 * tree-ssa-structalias.c (callused_id): Remove.
12428 (call_stmt_vars): New.
12429 (get_call_vi): Likewise.
12430 (lookup_call_use_vi): Likewise.
12431 (lookup_call_clobber_vi): Likewise.
12432 (get_call_use_vi): Likewise.
12433 (get_call_clobber_vi): Likewise.
12434 (make_transitive_closure_constraints): Likewise.
12435 (handle_const_call): Adjust to do per-call call-used handling.
12436 (handle_pure_call): Likewise.
12437 (find_what_var_points_to): Remove general callused handling.
12438 (init_base_vars): Likewise.
12439 (init_alias_vars): Initialize call_stmt_vars.
12440 (compute_points_to_sets): Process call-used and call-clobbered
12441 vars for call statements.
12442 (delete_points_to_sets): Free call_stmt_vars.
12444 2010-04-13 Richard Guenther <rguenther@suse.de>
12446 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12447 Only add RW dependence for dependence distance zero.
12448 Adjust maximal vectorization factor according to dependences.
12449 Move alignment handling ...
12450 (vect_find_same_alignment_drs): ... here. New function.
12451 (vect_analyze_data_ref_dependences): Adjust.
12452 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12453 (vect_analyze_data_refs): Adjust minimal vectorization factor
12454 according to data references.
12455 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12456 dependences before determining the vectorization factor.
12457 Analyze alignment after determining the vectorization factor.
12458 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12459 dependences before alignment.
12460 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12462 (vect_analyze_data_refs): Likewise.
12463 (MAX_VECTORIZATION_FACTOR): New define.
12465 2010-04-13 Duncan Sands <baldrick@free.fr>
12467 * except.h (lang_eh_type_covers): Remove.
12468 * except.c (lang_eh_type_covers): Likewise.
12470 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12471 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12473 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12474 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12475 UNITS_PER_LONG where it is ABI relevant.
12476 (s390_return_addr_rtx): Likewise.
12477 (s390_back_chain_rtx): Likewise.
12478 (s390_frame_area): Likewise.
12479 (s390_frame_info): Likewise.
12480 (s390_initial_elimination_offset): Likewise.
12481 (save_gprs): Likewise.
12482 (s390_emit_prologue): Likewise.
12483 (s390_emit_epilogue): Likewise.
12484 (s390_function_arg_advance): Likewise.
12485 (s390_function_arg): Likewise.
12486 (s390_va_start): Likewise.
12487 (s390_gimplify_va_arg): Likewise.
12488 (s390_function_profiler): Likewise.
12489 (s390_optimize_prologue): Likewise.
12490 (s390_rtx_costs): Likewise.
12491 (s390_secondary_reload): Likewise.
12492 (s390_promote_function_mode): Likewise.
12493 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12494 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12495 registers available.
12496 (s390_unwind_word_mode): New function.
12497 (s390_function_value): Split 64 bit values into register pair if
12498 used as return value.
12499 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12500 function call parameters. Handle parallels.
12501 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12502 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12503 (DWARF_CIE_DATA_ALIGNMENT): New macro.
12504 (s390_expand_setmem): Remove unused variable src_addr.
12505 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12506 deal with 64 bit registers.
12507 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12508 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12509 (UNITS_PER_LONG): New macro.
12510 * libjava/include/s390-signal.h: Define extended ucontext
12511 structure containing the upper halfs of the 64 bit registers.
12513 2010-04-13 Simon Baldwin <simonb@google.com>
12515 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12517 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12519 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12520 rvalue on the RHS if the LHS is of a non-renamable type.
12521 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12523 2010-04-13 Matthias Klose <doko@ubuntu.com>
12525 * gcc.c (cc1_options): Handle -iplugindir before processing
12526 the cc1 spec. Only add -iplugindir once.
12527 (cpp_unique_options): Add -iplugindir option if -fplugin* options
12529 * common.opt (iplugindir): Remove `Separate' property, initialize.
12530 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12532 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12533 (distclean): Remove plugin dir.
12534 * doc/invoke.texi: Document -iplugindir.
12536 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
12538 * doc/plugins.texi (Loading Plugins): Document short
12539 -fplugin=foo option.
12540 (Plugin API): Mention default_plugin_dir_name function.
12542 * gcc.c (find_file_spec_function): Add new declaration.
12543 (static_spec_func): Use it for "find-file".
12544 (find_file_spec_function): Add new function.
12545 (cc1_options): Add -iplugindir option if -fplugin* options found.
12547 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12549 * plugin.c (add_new_plugin): Updated comment, and handle short
12551 (default_plugin_dir_name): Added new function.
12553 * common.opt (iplugindir): New option to set the plugin directory.
12555 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
12557 * config/i386/i386.md (any_rotate): New code iterator.
12558 (rotate_insn): New code attribute.
12560 (SWIM124): New mode iterator.
12561 (<rotate_insn>ti3): New expander.
12562 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12563 any_rotate code iterator.
12564 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12565 using any_rotate code iterator and SWIM124 mode iterator.
12566 (ix86_rotlti3): New insn_and_split pattern.
12567 (ix86_rotrti3): Ditto.
12568 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12569 ix86_rotl{di,ti}3 patterns.
12570 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12571 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12572 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12573 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12574 code iterator and SWI mode iterator.
12575 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12576 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12578 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12579 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12580 (bswap rotatert splitter): Add splitter.
12581 (bswap splitter): Macroize splitter using any_rotate code iterator.
12582 Add insn predicate to split only for TARGET_USE_XCHGB or when
12583 optimizing function for size.
12585 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12587 * config/pa/pa.c (emit_move_sequence): Remove use of
12588 deleted variable flag_argument_noalias.
12590 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12592 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12594 Add to unsupported targets list.
12595 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12596 sparc*-sun-solaris2.[567]* from target lists.
12597 * configure: Regenerate.
12598 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12600 Remove Solaris 7 patch references.
12601 (Specific, sparc-sun-solaris2.7): Removed.
12602 (sparc-sun-solaris2*): Update Solaris 7 example.
12603 (sparc64-*-solaris2*): Likewise.
12605 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12607 * config.build (alpha*-dec-osf4*): Remove.
12608 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12609 of obsolete configurations.
12610 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12612 * config/alpha/t-osf4: Renamed to ...
12613 * config/alpha/t-osf5: ... this.
12614 * config/alpha/osf.h: Renamed to ...
12615 * config/alpha/osf5.h: ... this.
12616 Merged old osf5.h contents.
12618 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12619 (EXTRA_SPECS): Removed.
12620 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12621 reflect removal of Tru64 UNIX V4.0/V5.0 support.
12624 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12626 * doc/contrib.texi (Contributors, Rainer Orth): Update.
12628 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
12631 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12632 __thiscall convention.
12634 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12636 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12638 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12640 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12642 * function.c (assign_parms_initialize_all): Add unused attribute
12645 2010-04-12 Richard Guenther <rguenther@suse.de>
12647 * gsstruct.def (GSS_CALL): New.
12648 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
12649 * gimple.h: Include tree-ssa-alias.h.
12650 (struct gimple_statement_call): New.
12651 (union gimple_statement_struct_d): Add gimple_call member.
12652 (gimple_call_reset_alias_info): Declare.
12653 (gimple_call_use_set): New function.
12654 (gimple_call_clobber_set): Likewise.
12655 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
12656 * gimple.c (gimple_call_reset_alias_info): New function.
12657 (gimple_build_call_1): Call it.
12658 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12659 * tree-inline.c (remap_gimple_stmt): Likewise.
12660 (expand_call_inline): Remove callused handling.
12661 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
12662 * tree-dfa.c (dump_variable): Likewise.
12663 * tree-parloops.c (parallelize_loops): Likewise.
12664 * tree-ssa.c (init_tree_ssa): Likewise.
12665 (delete_tree_ssa): Likewise.
12666 * tree-flow-inline.h (is_call_used): Remove.
12667 * tree-flow.h (struct gimple_df): Remove callused member.
12668 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
12669 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
12670 (ref_maybe_used_by_call_p_1): Simplify.
12671 (call_may_clobber_ref_p_1): Likewise.
12672 * tree-ssa-structalias.c (compute_points_to_sets): Set
12673 the call stmt used and clobbered sets.
12674 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
12675 (find_tail_calls): Verify the tail call.
12677 2010-04-12 Richard Guenther <rguenther@suse.de>
12679 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
12680 single-iteration always-inline inlining.
12681 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
12682 (cgraph_decide_inlining): Do not handle always-inline specially.
12683 (try_inline): Remove always-inline cycle detection special case.
12684 Do not recurse on always-inlines.
12685 (cgraph_early_inlining): Do not iterate if not optimizing.
12686 (cgraph_gate_early_inlining): remove.
12687 (pass_early_inline): Run unconditionally.
12688 (gate_cgraph_decide_inlining): New function.
12689 (pass_ipa_inline): Use it. Do not run the IPA inliner if
12690 not inlining or optimizing.
12691 (cgraph_decide_inlining_of_small_functions): Also consider
12692 always-inline functions.
12693 (cgraph_default_inline_p): Return true for nodes which should
12694 disregard inline limits.
12695 (estimate_function_body_sizes): Assume zero size and time for
12696 nodes which are marked as disregarding inline limits.
12697 (cgraph_decide_recursive_inlining): Do not perform recursive
12698 inlining on always-inline nodes.
12700 2010-04-12 Jakub Jelinek <jakub@redhat.com>
12703 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
12704 for exprs satisfying handled_component_p.
12706 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
12708 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
12709 non-constant aggregate elements.
12711 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
12712 is a real initialization.
12714 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
12717 * c-decl.c (start_function): Move forward check for nested function.
12719 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
12721 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
12722 * config/sh/sh.c: Include reload.h.
12723 (sh_legitimize_reload_address): New.
12724 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
12725 sh_legitimize_reload_address.
12727 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12729 * config/sh/sh.md (*movqi_pop): New insn pattern.
12730 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
12732 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12734 * config/i386/i386.md (any_shiftrt): New code iterator.
12735 (shiftrt_insn): New code attribute.
12737 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
12738 using any_shiftrt code iterator.
12739 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
12740 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
12741 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
12742 pattern from corresponding peephole2 patterns.
12743 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
12744 using any_shiftrt code iterator.
12745 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
12746 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
12747 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
12748 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
12749 *{ashr,lshr}<mode>3_cmp_zext.
12750 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
12752 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12754 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
12756 (*lshr<mode>3_cconly): Ditto.
12758 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12760 * config/i386/i386.md (lshr<mode>3): Macroize expander from
12761 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12762 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
12763 pattern from *lshr{di,ti}3_1 and corresponding splitters using
12765 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12766 from corresponding peephole2 patterns.
12767 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
12768 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
12769 and *lshrdi3_1_rex64 using SWI mode iterator.
12770 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
12771 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
12772 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
12773 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
12774 and *lshrdi3_cmp_rex64 using SWI mode iterator.
12775 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
12776 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
12777 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
12778 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
12781 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
12783 * config/i386/i386.md (ashr<mode>3): Macroize expander from
12784 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12785 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
12786 pattern from *ashr{di,ti}3_1 and corresponding splitters using
12788 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12789 from corresponding peephole2 patterns.
12790 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
12791 (ashrsi3_cvt): Rename from ashrsi3_31.
12792 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
12793 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
12794 and x86_64_shift_adj_3 using SWI48 mode iterator.
12795 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
12796 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
12797 and *ashrdi3_1_rex64 using SWI mode iterator.
12798 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
12799 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
12800 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
12801 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
12802 and *ashrdi3_cmp_rex64 using SWI mode iterator.
12803 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
12804 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
12805 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
12806 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
12808 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
12809 * config/i386/i386.c (ix86_split_ashr): Update for renamed
12810 x86_shift<mode>_adj_3 expanders.
12812 2010-04-10 Wei Guozhi <carrot@google.com>
12815 * config/arm/arm.c (arm_pic_static_addr): New function.
12816 (legitimize_pic_address): Call arm_pic_static_addr when it detects
12818 (arm_output_addr_const_extra): Output expression for new pattern.
12819 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
12821 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
12823 * ira-costs.c (record_reg_classes): Ignore alternatives that are
12826 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
12827 * web.c: Include "insn-config.h" and "recog.h".
12828 (union_match_dups): New function.
12829 (web_main): Call it.
12830 (union_defs): Don't try to recognize match_dups.
12832 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
12833 if doing so would replace the entire pattern.
12835 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
12839 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
12840 and splitter pattern. Change splitter operand 1 predicate to
12843 2010-04-09 Martin Jambor <mjambor@suse.cz>
12845 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
12846 lattices are addresses of CONST_DECLs with the same initial value.
12847 (ipcp_print_all_lattices): Print values of CONST_DECLs.
12848 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
12850 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
12851 Bernd Schmidt <bernds@codesourcery.com>
12853 * loop-invariant.c (replace_uses): New static function.
12854 (move_invariant_reg): Use it to ensure we can replace the uses.
12856 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
12858 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
12860 (picochip_override_options): Enable section anchors only above -O1.
12861 (picochip_reorg): Fixed a couple of build warnings.
12863 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12865 * configure.ac (plugin -rdynamic test): Log result.
12866 * configure: Regenerate.
12867 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12868 (RDYNAMIC_SPEC): Define.
12869 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12871 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12873 * configure.ac: Determine Sun ld version numbers.
12874 (comdat_group): Restrict GNU ld version checks to gld.
12875 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12876 (enable_comdat): Support --enable-comdat.
12877 * configure: Regenerate.
12878 * doc/install.texi (Configuration): Document --enable-comdat.
12880 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12882 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
12883 * config/sol2-gld.h: ... here.
12884 * config.gcc (sparc*-*-solaris2*): Reflect this.
12885 (i[34567]86-*-solaris2*): Use it.
12887 2010-04-09 Steve Ellcey <sje@cup.hp.com>
12889 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12891 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12893 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12896 * diagnostic.c (diagnostic_initialize): Initialize
12897 some_warnings_are_errors.
12898 (diagnostic_finish): New.
12899 (diagnostic_action_after_output): Call it before exiting.
12900 (diagnostic_report_diagnostic): Do not print message here. Set
12901 some_warnings_are_errors.
12902 * diagnostic.h (diagnostic_context): Delete
12903 issue_warnings_are_errors_message. Add some_warnings_are_errors.
12904 (diagnostic_finish): Declare.
12905 * toplev.c (toplev_main): Call it before exit.
12907 2010-04-09 Jason Merrill <jason@redhat.com>
12910 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12911 for incomplete type.
12914 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12915 based on a warning flag.
12917 2010-04-09 Richard Guenther <rguenther@suse.de>
12919 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12921 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
12924 * varasm.c (default_assemble_visibility): Wrap vars that are
12925 set, but unused, by targets without GAS.
12926 * config/rs6000/rs6000.c (paired_emit_vector_compare):
12927 Remove set, but unused, vars.
12928 (rs6000_legitimize_tls_address): Likewise.
12929 (altivec_expand_dst_builtin): Likewise.
12930 * config/darwin.c (machopic_classify_symbol): Likewise.
12931 (machopic_indirection_name): Likewise.
12933 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
12935 * config/i386/i386.md (DWI): New mode iterator.
12936 (S): New mode attribute.
12937 (shift_operand): Ditto.
12938 (shift_immediate_operand): Ditto.
12939 (ashl_input_operand): Ditto.
12940 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
12941 using SDWIM mode iterator.
12942 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
12943 pattern from *ashl{di,ti}3_1 and corresponding splitters using
12945 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
12946 from corresponding peephole2 patterns.
12947 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
12948 and x86_64_shift_adj_1 using SWI48 mode iterator.
12949 (x86_shift<mode>_adj_2): Ditto.
12950 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
12951 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
12952 using SWI48 mode iterator.
12953 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
12954 *ashldi3_cmp_rex64 using SWI mode iterator.
12955 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
12956 *ashldi3_cconly_rex64 using SWI mode iterator.
12957 * config/i386/i386.c (ix86_split_ashl): Update for renamed
12958 x86_shift<mode>_adj_{1,2}.
12959 (ix86_split_ashr): Ditto.
12960 (ix86_split_lshr): Ditto.
12962 2010-04-09 Richard Guenther <rguenther@suse.de>
12964 * target.h (builtin_conversion): Pass in input and output types.
12965 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
12966 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
12967 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
12968 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
12970 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
12972 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
12974 2010-04-09 Richard Guenther <rguenther@suse.de>
12977 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
12979 2010-04-09 Richard Guenther <rguenther@suse.de>
12981 * tree-vectorizer.h (struct _stmt_vec_info): Document
12982 that vectype is the type of the LHS.
12983 (supportable_widening_operation, supportable_narrowing_operation):
12984 Get both input and output vector types as arguments.
12985 (vect_is_simple_use_1): Declare.
12986 (get_same_sized_vectype): Likewise.
12987 * tree-vect-loop.c (vect_determine_vectorization_factor):
12988 Set STMT_VINFO_VECTYPE to the vector type of the def.
12989 (vectorizable_reduction): Adjust.
12990 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
12991 Adjust. Specify the output vector type.
12992 (vect_pattern_recog_1): Adjust.
12993 * tree-vect-stmts.c (get_same_sized_vectype): New function.
12994 (vectorizable_call): Adjust.
12995 (vectorizable_conversion): Likewise.
12996 (vectorizable_operation): Likewise.
12997 (vectorizable_type_demotion): Likewise.
12998 (vectorizable_type_promotion): Likewise.
12999 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13001 (vect_is_simple_use_1): New function.
13002 (supportable_widening_operation): Get both input and output
13004 (supportable_narrowing_operation): Likewise.
13005 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13007 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
13009 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13010 __thiscall and _thiscall as predefined macros.
13011 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13012 thiscall attribute handling.
13013 (ix86_comp_type_attributes): Likewise.
13014 (ix86_function_regparm): Likewise.
13015 (ix86_return_pops_args): Likewise.
13016 (init_cumulative_args): Likewise.
13017 (find_drap_reg): Likewise.
13018 (ix86_static_chain): Likewise.
13019 (x86_this_parameter): Likewise.
13020 (x86_output_mi_thunk): Likewise.
13021 (ix86_attribute_table): Add description for thiscall attribute.
13022 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13023 * doc/extend.texi: Add documentation for thiscall.
13025 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13028 * c.opt (Wint-to-pointer-cast): Available in C++.
13029 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13031 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
13033 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13034 * calls.c (expand_call): Pass the function type to aggregate_value_p.
13035 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13036 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
13037 function type instead. Reorder and simplify checks.
13039 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13041 2010-04-08 Jing Yu <jingyu@google.com>
13042 Zdenek Dvorak <ook@ucw.cz>
13044 PR tree-optimization/42720
13045 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13046 loop unswitch conditions here from ...
13047 (tree_unswitch_single_loop): ... here.
13049 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13051 * tree-if-conv.c: Fix comments and simplify logic.
13053 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13055 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13056 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
13057 (main_tree_if_conversion): Update call to tree_if_conversion.
13059 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13062 * doc/invoke.texi (-b,-V): Delete.
13063 * doc/tm.texi: Do not mention -b.
13064 * gcc.c (display_help): Delete -b and -V.
13065 (process_command): Delete -b and -V.
13066 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13068 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
13069 Wolfgang Gellerich <gellerich@de.ibm.com>
13071 Implement target hook for loop unrolling
13072 * target.h (loop_unroll_adjust): Add a new target hook function.
13073 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13074 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13075 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13076 (s390_loop_unroll_adjust): Implement the new target hook for s390.
13077 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13079 (decide_unroll_stupid): Likewise.
13081 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13084 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13086 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13088 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13089 (Specific, *-*-solaris2*): Likewise.
13090 Don't prefer Sun as over GNU as.
13092 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
13094 * config/s390/s390.c (override_options): Adjust the z10 defaults
13095 for max-unroll-times, max-completely-peeled-insns
13096 and max-completely-peel-times.
13098 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13100 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13101 instructions for z10.
13102 (s390_expand_setmem): Likewise.
13103 (s390_expand_cmpmem): Likewise.
13105 2010-04-08 Richard Guenther <rguenther@suse.de>
13107 PR tree-optimization/43679
13108 * tree-ssa-pre.c (eliminate): Only propagate copies.
13110 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13113 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13114 set but not used variable warning.
13116 2010-04-08 Wei Guozhi <carrot@google.com>
13119 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13120 (arm_size_rtx_costs): Call the new function when optimized for size.
13122 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13125 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13126 op0 is not a MEM, just return NULL instead of assertion
13128 (discover_nonconstant_array_refs): Don't walk debug stmts.
13130 2010-04-08 Doug Kwan <dougkwan@google.com>
13132 * configure.ac: Recognize gold and do not use its version number
13133 to test ld features.
13134 * configure: Regenerate.
13136 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
13138 PR middle-end/40815
13139 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13140 (negate_value): Move code to push elements to broken_up_substracts ...
13141 (eliminate_plus_minus_pair): ... here. Push operands that have no
13142 negative pair to plus_negates.
13143 (repropagate_negates, init_reassoc, fini_reassoc): Update.
13145 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13147 * doc/install.texi (Configuration): Move description of
13148 --enable-lto, --with-libelf*, --enable-gold from Java section to
13151 * doc/generic.texi (Working with declarations)
13152 (Function Properties, C and C++ Trees): Fix typos.
13153 * doc/sourcebuild.texi (Top Level): Likewise.
13155 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13158 * tree.h (DECL_READ_P): Define.
13159 (struct tree_decl_common): Add decl_read_flag.
13160 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13161 a set but not used warning.
13162 (merge_decls): Merge DECL_READ_P flag.
13163 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13164 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13165 * c-common.c (handle_used_attribute, handle_unused_attribute):
13167 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13169 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13171 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13172 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13173 c_parser_binary_expression, c_parser_cast_expression,
13174 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13175 Call default_function_array_read_conversion instead of
13176 default_function_array_conversion where needed.
13177 (c_parser_unary_expression, c_parser_conditional_expression,
13178 c_parser_postfix_expression_after_primary, c_parser_initelt):
13179 Likewise. Call mark_exp_read where needed.
13180 (c_parser_statement_after_labels, c_parser_asm_operands,
13181 c_parser_typeof_specifier, c_parser_sizeof_expression,
13182 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13184 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13186 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13187 (warn_unused_but_set_parameter): Default to warn_unused
13189 * doc/invoke.texi: Document -Wunused-but-set-variable and
13190 -Wunused-but-set-parameter.
13192 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13193 used count variable.
13194 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13195 when operandN variables aren't used in the body of the expander
13197 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13198 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13199 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13200 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13201 FOR_EACH_IMM_USE_ON_STMT): Likewise.
13202 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13203 * tree.c (PROCESS_ARG): Likewise.
13205 2010-04-07 Simon Baldwin <simonb@google.com>
13207 * diagnostic.h (diagnostic_override_option_index): New macro to
13208 set a diagnostic's option_index.
13209 * c-tree.h (c_cpp_error): Add warning reason argument.
13210 * opts.c (_warning_as_error_callback): New.
13211 (register_warning_as_error_callback): Store callback for
13212 warnings enabled via enable_warning_as_error.
13213 (enable_warning_as_error): Call callback, minor code tidy.
13214 * opts.h (register_warning_as_error_callback): Declare.
13215 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13216 response to -Werror=.
13217 (c_common_init_options): Register warning_as_error_callback in opts.c.
13218 * common.opt: Add -Wno-cpp option.
13219 * c-common.c (struct reason_option_codes_t): Map cpp warning
13220 reason codes to gcc option indexes.
13221 * (c_option_controlling_cpp_error): New function, lookup the gcc
13222 option index for a cpp warning reason code.
13223 * (c_cpp_error): Add warning reason argument, call
13224 c_option_controlling_cpp_error for diagnostic_override_option_index.
13225 * doc/invoke.texi: Document -Wno-cpp.
13227 2010-04-07 Richard Guenther <rguenther@suse.de>
13229 * ipa-reference.c (mark_load): Use get_base_address.
13230 (mark_store): Likewise.
13232 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13233 inserting GIMPLE_NOPs into the IL.
13234 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13235 Explicitly strip handled components and indirect references.
13237 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13238 folding address expressions.
13239 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13240 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13241 operand_equal_p to compare decls.
13242 (ptr_deref_may_alias_decl_p): Likewise.
13243 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13244 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13245 Handle reversed comparison ops.
13246 * tree-sra.c (asm_visit_addr): Use get_base_address.
13247 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13248 * ipa-reference.c (mark_address): Use get_base_address.
13250 2010-04-07 Richard Guenther <rguenther@suse.de>
13252 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13253 Propagate constants everywhere.
13255 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13258 * tree.c (MAX_INT_CACHED_PREC): Define.
13259 (nonstandard_integer_type_cache): New array.
13260 (build_nonstandard_integer_type): Cache results for precision
13261 <= MAX_INT_CACHED_PREC.
13263 2010-04-07 Richard Guenther <rguenther@suse.de>
13265 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13266 -fargument-noalias-global, -fargument-noalias-anything): Remove.
13267 * common.opt: Likewise.
13268 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13269 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13270 (nonoverlapping_memrefs_p): Likewise.
13271 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13272 * opts.c (common_handle_option): Handle OPT_fargument_alias,
13273 OPT_fargument_noalias, OPT_fargument_noalias_anything and
13274 OPT_fargument_noalias_global for backward compatibility.
13276 2010-04-07 Richard Guenther <rguenther@suse.de>
13278 PR tree-optimization/43270
13279 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13280 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13281 * tree-ssa-pre.c (phi_translate_1): Adjust.
13282 (fully_constant_expression): Split out vn_reference handling to ...
13283 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13284 Fold reads from constant strings.
13285 (vn_reference_lookup): Handle fully constant references.
13286 (vn_reference_lookup_pieces): Likewise.
13287 * Makefile.in (expmed.o-warn): Add -Wno-error.
13289 2010-04-07 Martin Jambor <mjambor@suse.cz>
13291 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13293 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
13296 * gcc.c: Add -static-libstdc++ to list of recognized options.
13298 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13300 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13302 2010-04-07 Richard Guenther <rguenther@suse.de>
13304 PR middle-end/42617
13305 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13306 bases build simple mem attributes to retain points-to information.
13308 2010-04-07 Richard Guenther <rguenther@suse.de>
13310 PR middle-end/42617
13311 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13312 preserve points-to related information.
13314 2010-04-07 Richard Guenther <rguenther@suse.de>
13316 PR middle-end/42617
13317 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13318 discard plain indirect references.
13319 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13320 * tree.c (tree_nop_conversion): Likewise.
13322 2010-04-07 Dodji Seketeli <dodji@redhat.com>
13325 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13327 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
13329 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13330 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13332 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13334 * tree-if-conv.c: Fix indentation and comments.
13336 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13338 * tree-if-conv.c: Sort static functions in topological order.
13340 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13342 * tree-if-conv.c: Fix indentation and comments.
13344 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13346 PR middle-end/43519
13347 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13348 lang_hooks.types.type_for_size instead of
13349 build_nonstandard_integer_type.
13350 When converting an unsigned type to signed, double its precision.
13351 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13352 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13353 (graphite_create_new_loop_guard): When ub + 1 wraps around,
13356 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13358 PR middle-end/43519
13359 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13360 POINTER_PLUS_EXPR for pointer types.
13362 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13364 PR middle-end/43519
13365 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13366 * graphite-clast-to-gimple.c: Include langhooks.h.
13367 (max_signed_precision_type): New.
13368 (max_precision_type): Takes two types as arguments.
13369 (precision_for_value): New.
13370 (precision_for_interval): New.
13371 (gcc_type_for_interval): New.
13372 (gcc_type_for_value): New.
13373 (gcc_type_for_clast_term): New.
13374 (gcc_type_for_clast_red): New.
13375 (gcc_type_for_clast_bin): New.
13376 (gcc_type_for_clast_expr): Split up into several functions.
13377 (gcc_type_for_clast_eq): Rewritten.
13378 (compute_bounds_for_level): New.
13379 (compute_type_for_level_1): New.
13380 (compute_type_for_level): New.
13381 (gcc_type_for_cloog_iv): Removed.
13382 (gcc_type_for_iv_of_clast_loop): Rewritten.
13383 (graphite_create_new_loop): Compute the lower and upper bound types
13384 with gcc_type_for_clast_expr.
13385 (graphite_create_new_loop_guard): Same.
13386 (find_cloog_iv_in_expr): Removed.
13387 (compute_cloog_iv_types_1): Removed.
13388 (compute_cloog_iv_types): Removed.
13389 (gloog): Do not call compute_cloog_iv_types.
13390 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13391 GBB_CLOOG_IV_TYPES.
13392 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13393 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13394 (GBB_CLOOG_IV_TYPES): Removed.
13396 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13398 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13399 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13400 (detect_commutative_reduction): Same.
13402 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13404 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13405 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
13407 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13408 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13409 (rewrite_commutative_reductions_out_of_ssa): Same.
13410 * passes.c (execute_function_todo): Call verify_ssa for every pass
13411 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
13412 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13413 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13414 with an extra argument.
13415 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
13416 verify_ssa only when the extra argument is true.
13417 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13418 with an extra argument.
13419 (tree_transform_and_unroll_loop): Same.
13421 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13423 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13424 for all the passes of the LNO having LOOP_CLOSED_SSA.
13425 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13426 * tree-loop-distribution.c (pass_loop_distribution): Same.
13427 * tree-pass.h (TODO_verify_loops): Removed.
13428 * tree-ssa-loop.c (pass_tree_loop_init): Same.
13430 (pass_tree_unswitch): Same.
13431 (pass_predcom): Same.
13432 (pass_vectorize): Same.
13433 (pass_linear_transform): Same.
13434 (pass_graphite_transforms): Same.
13435 (pass_iv_canon): Same.
13436 (pass_complete_unroll): Same.
13437 (pass_complete_unrolli): Same.
13438 (pass_parallelize_loops): Same.
13439 (pass_loop_prefetch): Same.
13440 (pass_iv_optimize): Same.
13442 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
13444 PR middle-end/32824
13445 * passes.c (init_optimization_passes): Move pass_lim before
13446 pass_copy_prop and pass_dce_loop.
13448 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13451 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13452 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13453 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13454 MULTI_* defines for 4 argument vpermil2p* builtins.
13456 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13458 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13459 * config/i386/i386.c (x86_maybe_negate_const_int): New.
13460 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13461 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13462 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13463 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13464 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13465 Use x86_maybe_negate_const_int to output insn mnemonic.
13466 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
13467 check from instruction predicate. Update comments.
13468 * config/i386/sync.md (sync_add<mode>): Use
13469 x86_maybe_negate_const_int to output insn mnemonic.
13471 2010-04-06 Jan Hubicka <jh@suse.cz>
13473 PR tree-optimization/42906
13474 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13475 IGNORE_SELF argument. Set visited_control_parents for fully
13477 (find_obviously_necessary_stmts): Update call of
13478 mark_control_dependent_edges_necessary.
13479 (propagate_necessity): Likewise. Handle PHI edges more curefully.
13481 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13483 * config/i386/i386.md: Remove comment about 'e' and 'E'
13486 2010-04-06 Richard Guenther <rguenther@suse.de>
13488 PR tree-optimization/43627
13489 * tree-vrp.c (extract_range_from_unary_expr): Widenings
13490 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13493 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13495 * BASE-VER: Change to 4.6.0.
13498 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13501 2010-04-06 Richard Guenther <rguenther@suse.de>
13503 PR middle-end/43661
13504 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13506 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13508 * doc/invoke.texi (Optimize Options): Document that LTO
13509 won't remove object access purely due to incompatible
13512 2010-04-04 Matthias Klose <doko@ubuntu.com>
13514 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13515 Initialize variable.
13517 2010-04-03 Richard Guenther <rguenther@suse.de>
13519 PR middle-end/42509
13520 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13521 require a non-NULL MEM_OFFSET.
13523 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
13525 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13526 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13527 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13528 config/alpha/predicates.md, config/arm/arm.md,
13529 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13530 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13531 config/darwin9.h, config/darwin.c, config/darwin.h,
13532 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13533 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13534 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13535 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13536 config/mips/mips.md, config/mn10300/mn10300.c,
13537 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13538 config/rs6000/aix.h, config/rs6000/dfp.md,
13539 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13540 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13541 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13542 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13543 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13544 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13545 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13546 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13547 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13548 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13549 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13550 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13551 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13552 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13553 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13554 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13555 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13556 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13557 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13558 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13559 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13560 opt-functions.awk, opth-gen.awk, params.def, passes.c,
13561 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13562 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13563 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13564 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13565 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13566 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13567 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13568 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13569 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13570 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13571 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13572 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13573 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13574 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13576 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13579 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13580 * aclocal.m4: Regenerate.
13582 2010-04-02 Richard Guenther <rguenther@suse.de>
13584 PR tree-optimization/43629
13585 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13586 if we have seen a constant value.
13588 2010-04-02 Joseph Myers <joseph@codesourcery.com>
13590 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13592 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
13595 * arm.c (legitimize_tls_address): Adjust call to
13596 gen_tls_load_dot_plus_four.
13597 (arm_note_pic_base): New function.
13598 (arm_cannot_copy_insn_p): Use it.
13599 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13602 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13607 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13609 * Makefile.in ($(out_object_file)): Depend on
13610 gt-$(basename $(notdir $(out_file))).h.
13612 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
13614 * config.gcc (lm32-*-rtems*): Add t-lm32.
13616 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
13618 * config.gcc: Add lm32-*-rtems*.
13619 * config/lm32/rtems.h: New file.
13621 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
13624 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13626 2010-04-01 Jakub Jelinek <jakub@redhat.com>
13628 * dwarf2out.c (output_compilation_unit_header): For
13629 -gdwarf-4 use version 4 instead of version 3.
13630 (output_line_info): For version 4 and above emit additional
13631 maximum ops per insn header field.
13632 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13634 * dwarf2out.c (is_c_family, is_java): Remove.
13635 (lower_bound_default): New function.
13636 (add_bound_info, gen_descr_array_type_die): Use it.
13638 2010-04-01 Dodji Seketeli <dodji@redhat.com>
13641 * dwarf2out.c (gen_variable_die): Allow debug info for variable
13642 re-declaration when it happens in a function.
13644 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
13646 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
13647 (cgraph_remove_function_insertion_hook): Same.
13648 (cgraph_call_function_insertion_hooks): Same.
13650 2010-04-01 Richard Guenther <rguenther@suse.de>
13652 PR middle-end/43614
13653 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
13654 and TREE_THIS_VOLATILE.
13655 (copy_ref_info): Likewise.
13656 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
13657 * tree.c (build6_stat): Ignore side-effects of all but arg5
13658 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
13661 2010-04-01 Richard Guenther <rguenther@suse.de>
13663 PR tree-optimization/43607
13664 * ipa-type-escape.c (check_call): Do not access non-existing
13667 2010-04-01 Richard Guenther <rguenther@suse.de>
13669 PR middle-end/43602
13671 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
13672 Jack Howarth <howarth@bromo.med.uc.edu>
13674 * tree-profile.c (tree_init_ic_make_global_vars): Make static
13677 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13679 * doc/install.texi (Prerequisites): Document libelf usability on
13680 IRIX 5/6 and Solaris 2.
13681 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
13682 Update GNU as, GNU ld requirements.
13683 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
13684 Document Sun Studio compiler download.
13685 Update and simplify as, ld recommendations.
13686 (Specific, *-*-solaris2.7): Note obsoletion, removal.
13688 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13690 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
13691 with_tune_32 to pentium4.
13693 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
13695 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
13697 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13699 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
13700 obsoletion, removal.
13702 Document GNU as requirement.
13703 Update configure requirements.
13704 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
13705 Recomment IRIX 6.5.18+.
13706 Document IDF/IDL requirement.
13707 Document GNU as requirement.
13708 Document GNU ld bootstrap failure.
13709 Remove freeware.sgi.com reference.
13711 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13713 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
13714 UNIX V4.0, V5.0 obsoletion, removal.
13715 Remove --with-gc=simple reference.
13716 Update VM requirements during bootstrap.
13717 Remove -oldas bootstrap description.
13718 Update binutils reference.
13719 Remove comparison failure note.
13721 2010-03-31 Richard Guenther <rguenther@suse.de>
13722 Zdenek Dvorak <ook@ucw.cz>
13723 Sebastian Pop <sebastian.pop@amd.com>
13725 PR middle-end/43464
13726 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
13727 with multiple arguments.
13728 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
13730 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13732 * graphite-dependences.c (print_pddr): Call print_pdr with an
13734 * graphite-poly.c (debug_pdr): Add an extra argument for the
13737 (print_pbb_domain): Same.
13739 (print_scop_context): Same.
13740 (print_scop): Same.
13741 (print_cloog): Same.
13742 (debug_pbb_domain): Same.
13744 (print_pdrs): Same.
13745 (debug_pdrs): Same.
13746 (debug_scop_context): Same.
13747 (debug_scop): Same.
13748 (debug_cloog): Same.
13749 (print_scop_params): Same.
13750 (debug_scop_params): Same.
13751 (print_iteration_domain): Same.
13752 (print_iteration_domains): Same.
13753 (debug_iteration_domain): Same.
13754 (debug_iteration_domains): Same.
13755 (print_scattering_function): Same.
13756 (print_scattering_functions): Same.
13757 (debug_scattering_function): Same.
13758 (debug_scattering_functions): Same.
13759 * graphite-poly.h (debug_pdr): Update declaration.
13761 (print_pbb_domain): Same.
13763 (print_scop_context): Same.
13764 (print_scop): Same.
13765 (print_cloog): Same.
13766 (debug_pbb_domain): Same.
13768 (print_pdrs): Same.
13769 (debug_pdrs): Same.
13770 (debug_scop_context): Same.
13771 (debug_scop): Same.
13772 (debug_cloog): Same.
13773 (print_scop_params): Same.
13774 (debug_scop_params): Same.
13775 (print_iteration_domain): Same.
13776 (print_iteration_domains): Same.
13777 (debug_iteration_domain): Same.
13778 (debug_iteration_domains): Same.
13779 (print_scattering_function): Same.
13780 (print_scattering_functions): Same.
13781 (debug_scattering_function): Same.
13782 (debug_scattering_functions): Same.
13784 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13786 * graphite-poly.c (print_scattering_function_1): New.
13787 (print_scattering_function): Call it.
13788 (print_scop_params): Remove spaces at the end of lines.
13789 (print_cloog): New.
13790 (debug_cloog): New.
13791 * graphite-poly.h (print_cloog): Declared.
13792 (debug_cloog): Declared.
13794 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13796 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
13798 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
13799 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
13800 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
13801 to switch between adding the IV bump in loop->latch or in loop->header.
13803 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13805 * graphite-poly.c (print_scattering_function): Pretty print following
13806 the scoplib format.
13808 (print_pbb_domain): Same.
13809 (dump_gbb_cases): Same.
13810 (dump_gbb_conditions): Same.
13811 (print_pdrs): Same.
13813 (print_scop_params): Same.
13814 (print_scop_context): Same.
13815 (print_scop): Same.
13816 (print_pbb_body): New.
13817 (lst_indent_to): New.
13818 (print_lst): Start new lines with a #.
13819 * graphite-poly.h (pbb_bb): New.
13820 (pbb_index): Use pbb_bb.
13821 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
13823 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
13825 2010-03-31 Jakub Jelinek <jakub@redhat.com>
13827 * dwarf2out.c (size_of_die): For -gdwarf-4 use
13828 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
13829 and 0 instead of 1 for dw_val_class_flag.
13830 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
13831 dw_val_class_range_list, dw_val_class_loc_list,
13832 dw_val_class_lineptr and dw_val_class_macptr, use
13833 DW_FORM_flag_present for dw_val_class_flag and
13834 DW_FORM_exprloc for dw_val_class_loc.
13835 (output_die): For -gdwarf-4 print dw_val_class_loc
13836 size as uleb128 instead of 1 or 2 bytes and don't print
13837 anything for dw_val_class_flag.
13839 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
13840 instead of cselib_lookup following by tweaking locs->setting_insn.
13843 * cselib.c (cselib_process_insn): Clear cselib_current_insn
13844 even before returning from label, setjmp call or volatile asm
13847 2010-03-31 Richard Guenther <rguenther@suse.de>
13849 PR middle-end/43600
13850 * cgraphunit.c (cgraph_output_in_order): Do not allocate
13851 temporary data on stack.
13853 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13855 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
13856 (PUSHSECTION_ASM_OP): Remove.
13857 (POPSECTION_ASM_OP): Remove.
13858 (PUSHSECTION_FORMAT): Remove.
13859 * config/sol2.h (PUSHSECTION_FORMAT): Define.
13860 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
13861 * config/sol2.c (solaris_output_init_fini): Use it.
13863 2010-03-31 Jie Zhang <jie@codesourcery.com>
13866 * opt-functions.awk (var_type_struct): Use signed char type
13867 for simple variables.
13869 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13871 * config/sol2.c: Include output.h.
13872 (solaris_assemble_visibility): New function.
13873 * config/t-sol2 (sol2.o): Add output.h dependency.
13874 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13875 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13878 2010-03-31 Jakub Jelinek <jakub@redhat.com>
13881 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13882 V2SImode or XFmode on PRE_DEC.
13885 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13888 2010-03-31 Jie Zhang <jie@codesourcery.com>
13891 * reload.h (caller_save_initialized_p): Declare.
13892 * toplev.c (backend_init_target): Don't call
13893 init_caller_save but set caller_save_initialized_p to false.
13894 * caller-save.c (caller_save_initialized_p): Define.
13895 (init_caller_save): Check caller_save_initialized_p.
13896 * ira.c (ira): Call init_caller_save if flag_caller_saves.
13898 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13901 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13902 and soft-fp/t-softfp to tmake_file.
13903 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13904 (LIBGCC2_TF_CEXT): Define.
13907 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
13910 * cselib.c (n_useless_values): Document handling of debug locs.
13911 (n_useless_debug_values, n_debug_values): New variables.
13912 (new_elt_loc_list): Don't add to debug values, keep count.
13913 (promote_debug_loc): New.
13914 (cselib_reset_table): Zero new variables.
13915 (entry_and_rtx_equal_p): Promote debug locs.
13916 (discard_useless_locs): Increment n_useless_debug_values for
13918 (remove_useless_values): Adjust n_useless_values and n_debug_values
13919 with n_useless_debug_values.
13920 (add_mem_for_addr): Promote debug locs.
13921 (cselib_lookup_mem): Likewise.
13922 (cselib_lookup_addr): Renamed to...
13923 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
13924 (cselib_log_lookup): ... this. Turn into...
13925 (cselib_lookup_addr): ... new wrapper.
13926 (cselib_lookup_from_insn): New.
13927 (cselib_invalidate_regno): Increment n_useless_debug_values for
13929 (cselib_invalidate_mem): Likewise.
13930 (cselib_process_insn): Take n_deleted and n_debug_values into
13931 account to guard remove_useless_value call.
13932 (cselib_finish): Zero n_useless_debug_values.
13933 * cselib.h (cselib_lookup_from_insn): Declare.
13934 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13935 (sched_analyze_2): Likewise.
13937 2010-03-30 Jakub Jelinek <jakub@redhat.com>
13939 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
13941 (adjust_mems): Replace narrowing SUBREG of expression containing
13942 just PLUS, MINUS, MULT and ASHIFT of registers and constants
13943 with operations in the narrower mode.
13946 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
13947 regs_invalidated_by_call instead all call_used_reg_set registers.
13949 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
13951 PR middle-end/43430
13952 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
13953 pointer comparisons with types_compatible_p.
13954 * tree-vect-stmts.c (vectorizable_call): Same.
13955 (vectorizable_condition): Same.
13957 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13959 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
13960 stack check if the mask would be zero.
13962 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
13963 Jack Howarth <howarth@bromo.med.uc.edu>
13965 * tree-profile.c (tree_init_ic_make_global_vars): Make static
13968 2010-03-30 Joseph Myers <joseph@codesourcery.com>
13971 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
13973 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
13974 Include ___unordxf2 and ___unordtf2.
13975 * config/i386/libgcc-glibc.ver: Do not define inheritance from
13978 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
13980 * config/lm32/t-lm32: New file.
13981 * config.gcc: Use the above file when targetting lm32.
13983 2010-03-28 Duncan Sands <baldrick@free.fr>
13985 * Makefile.in (PLUGIN_HEADERS): Add except.h.
13987 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
13989 PR middle-end/43431
13990 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13991 Improve vectorization cost model diagnostic.
13993 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
13995 PR middle-end/43436
13996 * tree-vect-data-refs.c (vect_analyze_data_refs): When
13997 compute_data_dependences_for_loop returns false, early exit
13998 and output an extra diagnostic for the failed data reference
14001 2010-03-29 Richard Guenther <rguenther@suse.de>
14003 PR tree-optimization/43560
14004 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14005 (can_sm_ref_p): Treat stores to readonly locations as trapping.
14007 2010-03-29 Jie Zhang <jie@codesourcery.com>
14010 * toplev.c (process_options): Set optimization_default_node
14011 and optimization_current_node.
14012 * opts.c (decode_options): Don't set optimization_default_node
14013 and optimization_current_node.
14015 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
14017 * config/rtems.h: Abandon -qrtems_debug.
14019 2010-03-28 Jan Hubicka <jh@suse.cz>
14021 PR tree-optimization/43505
14022 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14023 map should not be copied.
14025 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14027 PR middle-end/41674
14028 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14029 cdtors, set DECL_PRESERVE_P.
14030 * ipa.c (cgraph_externally_visible_p): Return true if declaration
14031 should be preseved.
14033 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
14035 PR tree-optimization/43528
14036 * stor-layout.c (place_field): Check that constant fits into
14037 unsigned HWI when skipping calculation of MS bitfield layout.
14039 2010-03-27 Jan Hubicka <jh@suse.cz>
14041 PR middle-end/43391
14042 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14043 notice_global_symbol work.
14045 2010-03-27 Jakub Jelinek <jakub@redhat.com>
14047 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14048 instead of dwarf2out_decl.
14049 (struct var_loc_node): Remove section_label field.
14050 (dwarf2out_function_decl): New function.
14051 (dwarf2out_var_location): Don't set section_label field.
14052 (dwarf2out_begin_function): Don't empty decl_loc_table here.
14054 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14056 PR tree-optimization/43544
14057 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14058 First argument for builtin vectorized function hook is now a
14059 tree to be able to distinguish between machine specific and
14061 * targhooks.c (default_builtin_vectorized_function): Ditto.
14062 * targhooks.h (default_builtin_vectorized_function): Ditto.
14063 * target.h (struct gcc_target): Ditto.
14064 * tree-vect-stmts.c (vectorizable_function): Ditto.
14065 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14066 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14069 2010-03-26 Joseph Myers <joseph@codesourcery.com>
14072 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14073 nested binding iff it is a FUNCTION_DECL.
14074 (store_parm_decls_newstyle): Pass nested=true to bind for
14075 FUNCTION_DECLs amongst parameters.
14077 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14079 * var-tracking.c (vt_expand_loc_callback): Don't run
14080 cselib_expand_value_rtx_cb in dummy mode if
14081 cselib_dummy_expand_value_rtx_cb returned false.
14083 * var-tracking.c (emit_note_insn_var_location): For one part
14084 notes with offset 0, don't add EXPR_LIST around the location.
14085 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14086 add_location_or_const_value_attribute): Adjust for that change.
14089 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14090 into first operand and location into second.
14091 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14092 dw_cfi_oprnd_loc for DW_CFA_expression.
14093 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14094 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14095 assume first argument is regnum and second argument is location.
14097 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14100 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14101 of scratch register to DImode. Split to DImode comparison operator.
14102 Use SImode subreg of scratch register in the multiplication.
14103 (*cmp_sadd_sidi): Ditto.
14104 (*cmp_ssub_si): Ditto.
14105 (*cmp_ssub_sidi): Ditto.
14107 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14110 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14111 Remove invalid assert and wrong comment.
14113 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14116 * flags.h (final_insns_dump_p): New extern.
14117 * final.c (final_insns_dump_p): New variable.
14118 (rest_of_clean_state): Set it before -fdump-final-insns=
14119 dumping, clear afterwards.
14120 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14121 MEM_ALIAS_SET on MEMs.
14123 2010-03-26 David S. Miller <davem@davemloft.net>
14125 * configure.ac: Fix sparc GOTDATA_OP bug check.
14126 * configure: Rebuild.
14128 2010-03-26 Alan Modra <amodra@gmail.com>
14130 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14132 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14134 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14135 TLS_SECTION_ASM_FLAG.
14137 2010-03-25 Jakub Jelinek <jakub@redhat.com>
14140 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14141 Clear first_function_block_is_cold.
14144 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14145 argument if the argument is truth_value_p.
14147 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14149 * config/rs6000/constraints.md: Update copyright year for my changes.
14152 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14153 used in reg+reg addressing, swap registers.
14155 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14158 * target.h (struct gcc_target): Add code_end hook.
14159 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14160 if not yet defined.
14161 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14162 * toplev.c (compile_file): Call targetm.asm_out.code_end
14163 hook before unwind info/debug info output.
14164 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14165 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14166 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14167 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14168 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14169 * config/i386/i386.c (ix86_file_end): Renamed to...
14170 (ix86_code_end): ... this. Make static. Don't call
14171 file_end_indicate_exec_stack. Emit unwind info using
14172 final_start_function/final_end_function.
14173 (darwin_x86_file_end): Remove.
14174 (TARGET_ASM_CODE_END): Define.
14175 * config/i386/i386.h (TARGET_ASM_FILE_END,
14176 NEED_INDICATE_EXEC_STACK): Don't define.
14177 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14178 (TARGET_ASM_FILE_END): Define to darwin_file_end.
14179 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14180 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14183 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14184 at the beginning and final_end_function at the end.
14185 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14187 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14189 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14190 and Sun as TLS syntax.
14191 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14192 * configure: Regenerate.
14193 * config.in: Regenerate.
14194 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14195 (default_elf_asm_named_section): Use it.
14196 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14197 (i386_output_dwarf_dtprel): Likewise.
14198 (output_addr_const_extra): Likewise.
14199 (output_pic_addr_const): Lowercase @GOTTPOFF.
14200 (output_addr_const_extra): Likewise.
14201 (output_pic_addr_const): Lowercase @GOTNTPOFF.
14202 (output_addr_const_extra): Likewise.
14203 (output_pic_addr_const): Lowercase @INDNTPOFF.
14204 (output_addr_const_extra): Likewise.
14205 (output_pic_addr_const): Lowercase @NTPOFF.
14206 (output_addr_const_extra): Likewise.
14207 (output_pic_addr_const): Lowercase @TPOFF.
14208 (output_addr_const_extra): Likewise.
14209 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14210 (*tls_global_dynamic_64): Likewise.
14211 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14212 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14214 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14215 (ASM_OUTPUT_TLS_COMMON): Use it.
14216 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14219 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14220 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14221 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14222 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14223 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14224 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14226 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14228 * config/i386/i386.c (override_options): Don't accept
14229 -mtls-dialect=sun any longer.
14230 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14231 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14232 (*tls_local_dynamic_base_32_sun): Likewise.
14233 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14235 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14238 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14239 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14242 * ira.c (adjust_cleared_regs): New function.
14243 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14247 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14249 * expr.c (expand_expr_real): Restore previous
14250 curr_insn_source_location and curr_insn_block after
14251 expand_expr_real_1 call.
14252 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14253 instead of expand_expr_real_1.
14255 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
14257 PR rtl-optimization/43413
14258 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14261 2010-03-22 James E. Wilson <wilson@codesourcery.com>
14264 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14265 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14267 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
14269 * config/i386/i386.c (ix86_target_string): Add -mfma.
14270 Fix a typo in comment.
14272 2010-03-22 Mike Stump <mikestump@comcast.net>
14275 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14276 Don't overly align based upon packed packed fields.
14278 2010-03-22 Jason Merrill <jason@redhat.com>
14280 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14281 Use () rather than [], and move before the element type.
14283 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14285 * doc/configfiles.texi (Configuration Files): Removed
14286 fixinc/Makefile*, intl/Makefile.*.
14287 * doc/makefile.texi: Fixed markup. Abstract from version
14288 control system used.
14289 (Makefile): Removed obsolete gcc/java/parse.y example.
14290 * doc/sourcebuild.texi: Likewise.
14291 (Top Level): Added config, gnattools, libdecnumber, libgcc,
14292 libgomp, libssp. Removed fastjar.
14293 (Miscellaneous Docs): Clarify location.
14294 Added COPYING3, COPYING3.LIB.
14295 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14297 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14300 * config/i386/i386.c (x86_function_profiler)
14301 [!NO_PROFILE_COUNTERS]: Fix typo.
14302 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14305 2010-03-22 Janis Johnson <janis187@us.ibm.com>
14306 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14308 * doc/sourcebuild.texi (Test Directives): Split into six
14309 subsections, with most of the current text in new subsections
14310 Directives, Selectors, and Final Actions.
14311 (Directives): Split list of test directives into multiple
14313 (Selectors): Describe use and syntax of selectors.
14314 (Effective-Target Keywords): Describe all existing keywords.
14315 (Add Options): Describe features for dg-add-options.
14316 (Require Support): Describe variants of dg-require-support.
14317 (Final Actions): Describe commands to use in dg-final.
14319 2010-03-22 Michael Matz <matz@suse.de>
14321 PR middle-end/43475
14322 * recog.c (validate_replace_rtx_group): Replace also in
14323 REG_EQUAL and REG_EQUIV notes.
14325 2010-03-22 Richard Guenther <rguenther@suse.de>
14327 PR tree-optimization/43390
14328 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14329 sure vector extracts are type correct.
14331 2010-03-22 Richard Guenther <rguenther@suse.de>
14333 PR middle-end/40106
14334 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14335 x * sqrt (x) even when optimizing for size if the target
14336 has native support for sqrt.
14338 2010-03-22 Jakub Jelinek <jakub@redhat.com>
14340 * varasm.c (make_decl_rtl_for_debug): Also clear
14341 flag_mudflap for the duration of make_decl_rtl call.
14344 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14345 locs from preserved VALUEs.
14347 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14349 PR middle-end/42718
14350 * pa.md (movmemsi): Set align to one if zero.
14351 (movmemdi): Likewise.
14353 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
14356 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14357 with their corresponding prologue pushes.
14359 2010-03-20 Andrew Pinski <pinskia@gmail.com>
14362 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14363 at the begining or end.
14364 (spu_expand_epilogue): Likewise.
14366 2010-03-20 Richard Guenther <rguenther@suse.de>
14368 PR rtl-optimization/43438
14369 * combine.c (make_extraction): Properly zero-/sign-extend an
14370 extraction of the low part of a CONST_INT. Also handle
14373 2010-03-19 Mike Stump <mikestump@comcast.net>
14375 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14376 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14377 (override_options): Use SUBTARGET32_DEFAULT_CPU.
14379 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14382 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14385 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
14387 PR rtl-optimization/42258
14388 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14389 use that may match DEF.
14392 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14393 the cost of loading the constant rather than assuming
14395 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14396 outer code is AND, do the same tests as the andsi3 expander and
14397 return COSTS_N_INSNS (1) if and is cheap.
14399 * optabs.c (avoid_expensive_constant): Fix formatting.
14401 2010-03-19 Michael Matz <matz@suse.de>
14404 * attribs.c (decl_attributes): When rebuilding a function pointer
14405 type use the same qualifiers as the original pointer type.
14407 2010-03-19 Martin Jambor <mjambor@suse.cz>
14409 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14410 and is_gimple_ip_invariant_address.
14412 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14415 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14417 * config/arm/arm.c (arm_override_options): Turn off
14418 flag_dwarf2_cfi_asm for AAPCS variants.
14420 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14423 * config/arm/arm.c (emit_multi_reg_push): Update comments.
14424 Use PRE_MODIFY instead of PRE_DEC.
14425 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14426 (vfp_emit_fstmd): Likewise.
14428 2010-03-19 Michael Matz <matz@suse.de>
14431 * builtins.c (expand_builtin_interclass_mathfn,
14432 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14435 2010-03-19 Richard Guenther <rguenther@suse.de>
14437 PR tree-optimization/43415
14438 * tree-ssa-pre.c (phi_translate): Split out worker to ...
14439 (phi_translate_1): ... this.
14440 (phi_translate): Move all caching here. Cache all NARY
14441 and REFERENCE translations.
14443 2010-03-19 David S. Miller <davem@davemloft.net>
14445 With help from Eric Botcazou.
14446 * config/sparc/sparc.c: Include dwarf2out.h.
14447 (emit_pic_helper): Delete.
14448 (pic_helper_symbol_name): Delete.
14449 (pic_helper_emitted_p): Delete.
14450 (pic_helper_needed): New.
14451 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14452 (get_pc_thunk_name): New.
14453 (load_pic_register): Remove 'delay_pic_helper' arg. Use
14454 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14455 Set pic_helper_needed to true. Don't call emit_pic_helper.
14456 (sparc_expand_prologue): Update load_pic_register call.
14457 (sparc_output_mi_thunk): Likewise.
14458 (sparc_file_end): Emit a hidden comdat symbol for the PIC
14459 thunk if possible. Output CFI information as needed.
14461 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14462 Jack Howarth <howarth@bromo.med.uc.edu>
14465 * config/i386/i386.h: Fix ABI on darwin x86-32.
14467 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
14469 * tree.h: Declare make_decl_rtl_for_debug.
14470 * varasm.c (make_decl_rtl_for_debug): New.
14471 * dwarf2out.c (rtl_for_decl_location): Call it.
14472 * cfgexpand.c (expand_debug_expr): Call it.
14474 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14477 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14481 * var-tracking.c (vt_init_cfa_base): Do nothing if
14482 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14484 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
14487 * var-tracking.c (canonicalize_vars_star): New.
14488 (dataflow_post_merge_adjust): Use it.
14490 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14493 * var-tracking.c (non_suitable_const): New function.
14494 (add_uses): For DEBUG_INSNs with constants, don't record any
14495 value, instead just the constant value itself.
14496 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14497 is not VAR_LOC_UNKNOWN_P, set var to the constant.
14498 (emit_notes_in_bb): Likewise.
14499 (emit_note_insn_var_location): For onepart variables if
14500 cur_loc is a VOIDmode constant, use DECL_MODE.
14502 2010-03-18 Martin Jambor <mjambor@suse.cz>
14504 PR middle-end/42450
14505 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14506 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14507 all non-clones. Moved call redirection...
14508 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14509 (cgraph_materialize_all_clones): Dispose of all
14510 combined_args_to_skip bitmaps.
14511 (verify_cgraph_node): Do not check for edges pointing to wrong
14512 nodes in inline clones.
14513 * tree-inline.c (copy_bb): Call
14514 cgraph_redirect_edge_call_stmt_to_callee.
14515 * ipa.c (cgraph_remove_unreachable_nodes): Call
14516 cgraph_node_remove_callees even when there are used clones.
14518 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14520 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14522 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14525 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14528 2010-03-18 Michael Matz <matz@suse.de>
14530 PR middle-end/43419
14531 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14532 into sqrt(x) if we need to preserve signed zeros.
14534 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
14535 Eric Botcazou <ebotcazou@adacore.com>
14537 PR rtl-optimization/43360
14538 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14539 note if we don't know its invariant status.
14541 2010-03-18 Michael Matz <matz@suse.de>
14543 PR tree-optimization/43402
14544 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14545 PHI chains of ssa names registered for update.
14547 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
14550 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14551 non-offsettable and pre_modify update addressing.
14552 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14553 and "2" alternatives "#".
14554 (*movdd_softfloat32): Make all alternatives "#";
14555 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14556 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14557 (*movdf_softfloat32): Make all alternatives "#";
14558 (movdi): Use the new DIFD mode iterator to create a common splitter
14559 for movdi, movdf and movdd patterns.
14561 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
14563 * common.opt (dumpdir): Remove redundant tab.
14565 2010-03-17 Martin Jambor <mjambor@suse.cz>
14567 PR tree-optimization/43347
14568 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14569 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14571 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
14573 PR rtl-optimization/42216
14574 * regrename.c (create_new_chain): New function, broken out from...
14575 (scan_rtx_reg): ... here. Call it. Handle the case where we are
14576 appending a use to an empty chain.
14577 (build_def_use): Remove previous changes that convert OP_INOUT to
14578 OP_OUT operands; instead detect the case where an OP_INOUT operand
14579 uses a previously untracked register and create an empty chain for it.
14581 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14583 * doc/extend.texi (Function Attributes): Rewrite unfinished
14584 sentence in ms_abi documentation.
14586 2010-03-17 Alan Modra <amodra@gmail.com>
14588 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14589 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14590 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14591 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14593 2010-03-16 Richard Henderson <rth@redhat.com>
14595 PR middle-end/43365
14596 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14597 (lower_try_finally): Save and restore eh_seq around the expansion
14598 of the try-finally.
14600 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
14602 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14603 statements before splitting block.
14605 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14607 * doc/sourcebuild.texi (Testsuites): Fix markup.
14608 Use pathnames relative to gcc/testsuite.
14609 (Test Directives): Move description of how timeout is determined.
14610 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14611 (C Tests): Correct gcc.misc-tests directory.
14612 Framework tests now live in gcc.test-framework.
14614 2010-03-16 Richard Guenther <rguenther@suse.de>
14616 PR middle-end/43379
14617 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14618 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14620 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
14621 Alexandre Oliva <aoliva@redhat.com>
14623 PR tree-optimization/42917
14624 * lambda-code.c (remove_iv): Skip debug statements.
14625 (lambda_loopnest_to_gcc_loopnest): Likewise.
14626 (not_interesting_stmt): Debug statements are not interesting.
14628 2010-03-16 Jakub Jelinek <jakub@redhat.com>
14632 * cselib.c (cselib_preserve_constants,
14633 cfa_base_preserved_val): New static variables.
14634 (preserve_only_constants): New function.
14635 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14636 clear its REG_VALUES. If cselib_preserve_constants, don't
14637 empty the whole hash table, but preserve there VALUEs with constants,
14638 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14639 (cselib_preserve_cfa_base_value): New function.
14640 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14641 (cselib_init): Change argument to int bitfield. Set
14642 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14644 (cselib_finish): Clear cselib_preserve_constants and
14645 cfa_base_preserved_val.
14646 * cselib.h (enum cselib_record_what): New enum.
14647 (cselib_init): Change argument to int.
14648 (cselib_preserve_cfa_base_value): New prototype.
14649 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
14650 * dse.c (dse_step1): Likewise.
14651 * cfgcleanup.c (thread_jump): Likewise.
14652 * sched-deps.c (sched_analyze): Likewise.
14653 * gcse.c (local_cprop_pass): Likewise.
14654 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
14655 If FN is non-NULL, call the callback always and whenever it returns
14656 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
14657 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
14658 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
14659 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
14660 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
14661 * var-tracking.c: Include recog.h.
14662 (bb_stack_adjust_offset): Remove.
14663 (vt_stack_adjustments): Don't call it, instead just gather the
14664 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
14665 (adjust_stack_reference): Remove.
14666 (compute_cfa_pointer): New function.
14667 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
14668 (struct adjust_mem_data): New type.
14669 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
14671 (get_address_mode): New function.
14672 (replace_expr_with_values): Use it.
14673 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
14674 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
14675 (adjust_sets): Remove.
14676 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
14677 Use get_address_mode.
14678 (get_adjusted_src): Remove.
14679 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
14680 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
14681 (add_with_sets): Don't call adjust_sets.
14682 (fp_setter, vt_init_cfa_base): New functions.
14683 (vt_initialize): Change return type to bool. Move most of pool etc.
14684 initialization to the beginning of the function from end. Pass
14685 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
14686 If !frame_pointer_needed, call vt_stack_adjustment before mos
14687 vector is filled, call vt_init_cfa_base if argp/framep has been
14688 eliminated to sp. If frame_pointer_needed and argp/framep has
14689 been eliminated to hard frame pointer, set
14690 hard_frame_pointer_adjustment and call vt_init_cfa_base after
14691 encountering fp setter in the prologue. For MO_ADJUST, call
14692 log_op_type before pusing the op into mos vector, not afterwards.
14693 Call adjust_insn before cselib_process_insn/add_with_sets,
14694 call cancel_changes (0) afterwards.
14695 (variable_tracking_main_1): Adjust for vt_initialize calling
14696 vt_stack_adjustments and returning whether it succeeded or not.
14698 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
14700 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
14703 2010-03-15 Jakub Jelinek <jakub@redhat.com>
14705 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
14707 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
14708 drap_reg has not been set.
14710 2010-03-15 Michael Matz <matz@suse.de>
14712 PR middle-end/43300
14713 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
14714 use it to expand block copies.
14715 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14716 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
14717 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
14719 2010-03-15 Richard Guenther <rguenther@suse.de>
14721 PR tree-optimization/43367
14722 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
14725 2010-03-15 Richard Guenther <rguenther@suse.de>
14727 PR tree-optimization/43317
14728 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
14730 2010-03-15 Martin Jambor <mjambor@suse.cz>
14732 PR tree-optimization/43141
14733 * tree-sra.c (create_abstract_origin): New function.
14734 (modify_function): Call create_abstract_origin.
14736 2010-03-15 Chris Demetriou <cgd@google.com>
14738 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
14741 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14743 PR middle-end/43354
14744 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
14745 call insert_out_of_ssa_copy for default definitions.
14747 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14749 * graphite-clast-to-gimple.c (my_long_long): Defined.
14750 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
14751 * graphite-sese-to-poly.c (my_long_long): Defined.
14752 (scop_ivs_can_be_represented): Use it.
14754 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14756 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
14757 graphite-max-bbs-per-function, and loop-block-tile-size.
14758 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
14760 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
14762 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14764 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
14765 forward declaration.
14766 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
14767 (add_upper_bounds_from_estimated_nit): New.
14768 (build_loop_iteration_domains): Use it.
14770 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14772 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
14774 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14776 PR middle-end/43306
14777 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
14778 should be an INTEGER_CST. Also handle CASE_CONVERT.
14780 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14782 * graphite.c (graphite_initialize): To bound the number of bbs per
14783 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14784 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
14785 * doc/invoke.texi: Document it.
14787 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14789 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
14790 * graphite-sese-to-poly.h (build_poly_scop): Same.
14792 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14794 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
14795 the number of parameters in the scop. Use as an upper bound
14796 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
14797 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
14798 * doc/invoke.texi: Document it.
14800 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
14802 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
14803 * doc/c-tree.texi: Remove.
14804 * doc/generic.texi: Merge c-tree.texi here.
14805 * doc/gccint.texi (Trees): Remove menu entry.
14806 (c-tree.texi): Remove @include.
14807 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
14808 * doc/languages.texi (Reading RTL): Ditto.
14810 2010-03-12 Steve Ellcey <sje@cup.hp.com>
14813 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
14815 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14817 PR middle-end/42431
14818 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
14819 code added to work around reload clobbering CONST insns.
14821 2010-03-12 Jakub Jelinek <jakub@redhat.com>
14823 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
14824 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
14825 (cselib_preserve_only_values): Remove retain argument, don't
14826 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
14827 * cselib.h (cselib_preserve_only_values): Remove retain argument.
14828 * var-tracking.c (micro_operation): Move insn field before union.
14829 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
14830 (struct variable_tracking_info_def): Remove n_mos field, change
14831 mos into a vector of micro_operations.
14832 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
14833 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
14834 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
14835 changing into a vector.
14836 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
14837 come before all other uops generated by add_stores.
14838 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
14840 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
14841 a vector. Run just one pass over the bbs instead of separate counting
14842 and computation phase.
14843 (vt_finalize): Free VTI (bb)->mos vector instead of array.
14846 * tree-inline.c (remap_decls): Put old_var rather than origin_var
14847 into *nonlocalized_list vector.
14848 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
14849 even if origin is non-NULL.
14850 (gen_variable_die): Likewise.
14851 (process_scope_var): Don't change origin.
14852 (gen_decl_die): Likewise.
14853 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
14854 before adding new edges instead of after it, fix moving over
14857 2010-03-11 David S. Miller <davem@davemloft.net>
14859 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
14861 * configure: Rebuild.
14863 2010-03-11 Martin Jambor <mjambor@suse.cz>
14865 PR tree-optimization/43257
14866 * tree.c (assign_assembler_name_if_neeeded): New function.
14867 (free_lang_data_in_cgraph): Assembler name assignment moved to the
14868 above new function.
14869 * tree.h (assign_assembler_name_if_neeeded): Declare.
14870 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14871 the function if needed.
14873 2010-03-11 Chris Demetriou <cgd@google.com>
14875 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14876 include/stdint-gcc.h, and include/stdint.h world-readable.
14878 2010-03-11 Richard Guenther <rguenther@suse.de>
14880 PR tree-optimization/43255
14881 * tree-vrp.c (process_assert_insertions_for): Do not insert
14882 asserts for trivial conditions.
14884 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14886 PR tree-optimization/43280
14887 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14888 generation. Move calculation of size out of the if branch.
14889 (find_bswap): Modify compare number generation.
14891 2010-03-11 Richard Guenther <rguenther@suse.de>
14894 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14895 (input_gimple_stmt): Fixup handled component types during
14896 operand read. Also fix up decls in ADDR_EXPRs.
14898 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
14900 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14901 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14903 2010-03-10 Jan Hubicka <jh@suse.cz>
14906 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14907 * varasm.c (get_variable_section): Don't do that here...
14908 (make_decl_rtl): ... and here.
14909 (do_assemble_alias): Produce decl RTL.
14910 (assemble_alias): Likewise.
14912 2010-03-10 Jakub Jelinek <jakub@redhat.com>
14915 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14916 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14918 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14919 (based_loc_descr): Only express drap or vdrap regno based expressions
14920 using DW_OP_fbreg when not optimizing.
14921 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14922 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14923 REG_CFA_SET_VDRAP note.
14925 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
14927 PR tree-optimization/43236
14928 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14929 error in calculation of base address in reverse iteration case.
14930 (generate_builtin): Take number of latch executions if the statement
14933 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
14935 PR middle-end/42859
14936 * tree-eh.c: Include pointer-set.h.
14937 (lower_eh_dispatch): Filter out duplicate case labels and
14938 remove the unneeded edge when the label is unused. Return
14939 true when some edges are removed.
14940 (execute_lower_eh_dispatch): When any lowering resulted in
14941 removing an edge, also delete unreachable blocks.
14943 2010-03-10 Jakub Jelinek <jakub@redhat.com>
14946 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14947 UNSPEC_MACHOPIC_OFFSET.
14949 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
14952 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
14953 (m68k_delegitimize_address): New function.
14955 2010-03-09 Jakub Jelinek <jakub@redhat.com>
14958 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
14961 * var-tracking.c (adjust_sets): New function.
14962 (count_with_sets, add_with_sets): Use it.
14963 (get_adjusted_src): New inline function.
14964 (add_stores): Use it.
14967 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
14968 call cselib_dummy_expand_value_rtx_cb instead of
14969 cselib_expand_value_rtx_cb.
14972 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
14973 * config/i386/i386.c: Include debug.h and dwarf2out.h.
14974 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
14975 and .cfi_endproc around the pic thunks.
14976 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
14977 all queued unwind info register saves are saved before the call.
14978 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
14979 considered as sp-=4 for unwind info and the pop as sp+=4 which
14980 also clobbers dest, but doesn't actually restore it.
14983 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
14984 RTX_FRAME_RELATED_P.
14986 2010-03-09 Jie Zhang <jie@codesourcery.com>
14988 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
14989 whitespaces in output template.
14991 2010-03-09 Jie Zhang <jie@codesourcery.com>
14993 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
14994 out array boundary.
14996 2010-03-08 Jakub Jelinek <jakub@redhat.com>
14998 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
14999 builtins.exp in a separate job.
15001 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15003 * graphite-sese-to-poly.c (add_param_constraints): Use
15004 lower_bound_in_type and upper_bound_in_type.
15006 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15008 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15009 instead of unsigned_type_node.
15011 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15012 Reza Yazdani <reza.yazdani@amd.com>
15014 PR middle-end/43065
15015 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15016 on pointer type parameters.
15018 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15020 PR middle-end/42644
15021 PR middle-end/42130
15022 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15023 handle conversions from pointer to integers.
15024 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15025 induction variable, to be able to work with code generated by CLooG.
15026 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15027 (build_poly_scop): Bail out if we cannot codegen a loop.
15029 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15031 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15032 code generation with gloog_error.
15034 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15036 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15037 Call fold_convert on all the returned values.
15038 (expand_scalar_variables_expr): Pass to
15039 expand_scalar_variables_ssa_name the type of the resulting expression.
15041 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15043 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15044 ppl_min_for_le_pointset.
15045 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15046 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15048 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15050 * graphite-dependences.c (map_into_dep_poly): Removed.
15051 (dependence_polyhedron_1): Use combine_context_id_scat.
15053 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15055 * graphite-poly.h (struct poly_scattering): Add layout documentation.
15056 (struct poly_bb): Same.
15057 (combine_context_id_scat): New.
15059 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15061 PR middle-end/42326
15062 * sese.c (name_defined_in_loop_p): Return false for default
15065 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15067 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15068 and clean up the logic.
15070 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15072 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15075 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15077 * var-tracking.c (remove_cselib_value_chains): Define only for
15079 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15080 delete_slot_part, emit_notes_for_differences_1): Don't call
15081 remove_cselib_value_chains here.
15082 (set_slot_part, emit_notes_for_differences_2): Don't call
15083 add_cselib_value_chains here.
15084 (preserved_values): New vector.
15085 (preserve_value): New function.
15086 (add_uses, add_stores, vt_add_function_parameters): Use it
15087 instead of cselib_preserve_value.
15088 (changed_values_stack): New vector.
15089 (check_changed_vars_0): New function.
15090 (check_changed_vars_1, check_changed_vars_2): Use it.
15091 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15092 changed_values_stack VALUEs.
15093 (vt_emit_notes): For all preserved_values call
15094 add_cselib_value_chains. If ENABLE_CHECKING call
15095 remove_cselib_value_chains before verifying value_chains is empty.
15096 Initialize and free changed_values_stack.
15097 (vt_initialize): Initialize preserved_values.
15098 (vt_finalize): Free preserved_values.
15100 2010-03-08 Richard Guenther <rguenther@suse.de>
15102 PR tree-optimization/43269
15103 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15106 2010-03-08 Martin Jambor <mjambor@suse.cz>
15108 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15109 (ipa_is_param_called): Removed.
15110 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15111 (ipa_print_node_params): Do not print the called flag.
15112 (ipa_write_node_info): Do not stream the called flag.
15113 (ipa_read_node_info): Likewise.
15115 2010-03-07 Jakub Jelinek <jakub@redhat.com>
15118 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15119 * cselib.c (struct expand_value_data): Add dummy field.
15120 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15122 (cselib_dummy_expand_value_rtx_cb): New function.
15123 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15125 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15126 * var-tracking.c: Include pointer-set.h.
15127 (variable): Change n_var_parts to char from int. Add
15128 cur_loc_changed and in_changed_variables fields.
15129 (variable_canonicalize): Remove.
15130 (shared_var_p): New inline function.
15131 (unshare_variable): Maintain cur_loc_changed and
15132 in_changed_variables fields. If var was in changed_variables,
15133 replace it there with new_var. Just copy cur_loc instead of
15134 resetting it to something else.
15135 (variable_union): Don't recompute cur_loc. Use shared_var_p.
15136 (dataflow_set_union): Don't call variable_canonicalize.
15137 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15138 of their DEBUG_EXPR_TREE_DECLs.
15139 (canonicalize_loc_order_check): Verify that cur_loc is NULL
15140 and in_changed_variables and cur_loc_changed is false.
15141 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15142 and cur_loc_changed. Don't update cur_loc here.
15143 (variable_merge_over_src): Don't call variable_canonicalize.
15144 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
15145 removing loc that is equal to cur_loc, clear cur_loc,
15146 set cur_loc_changed and ensure variable_was_changed is called.
15147 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
15148 compare pointers in cur_loc check, if it is equal to loc,
15149 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
15150 (variable_different_p): Remove compare_current_location argument,
15151 don't compare cur_loc.
15152 (dataflow_set_different_1): Adjust variable_different_p caller.
15153 (variable_was_changed): If dv had some var in changed_variables
15154 already, reset in_changed_variables flag for it and propagate
15155 cur_loc_changed over to the new variable. On empty var
15156 always set cur_loc_changed. Set in_changed_variables on whatever
15157 var is added to changed_variables.
15158 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15159 Use shared_var_p. When removing loc that is equal to cur_loc,
15160 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
15161 end, don't set it to something else, just call variable_was_changed.
15162 (delete_slot_part): Use shared_var_p. When cur_loc equals to
15163 loc being removed, clear cur_loc and set cur_loc_changed.
15164 Set cur_loc_changed if all locations have been removed.
15165 (struct expand_loc_callback_data): New type.
15166 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15167 allocated. Always create SUBREGs if simplify_subreg failed.
15168 Prefer to use cur_loc, when that fails and still in
15169 changed_variables (and seen first time) recompute it. Set
15170 cur_loc_changed of variables which had to change cur_loc and
15171 compute elcd->cur_loc_changed if any of the subexpressions used
15172 had to change cur_loc.
15173 (vt_expand_loc): Adjust to pass arguments in
15174 expand_loc_callback_data structure.
15175 (vt_expand_loc_dummy): New function.
15176 (emitted_notes): New variable.
15177 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15178 that weren't used for any other decl in current
15179 emit_notes_for_changes call call vt_expand_loc_dummy to update
15180 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
15181 first loc_chain location if NULL before. Always use just
15182 cur_loc instead of first loc_chain location. When cur_loc_changed
15183 is false, when not --enable-checking=rtl just don't emit any note.
15184 When rtl checking, compute the note and assert it is the same
15185 as previous note. Clear cur_loc_changed and in_changed_variables
15186 at the end before removing from changed_variables.
15187 (check_changed_vars_3): New function.
15188 (emit_notes_for_changes): Traverse changed_vars to call
15189 check_changed_vars_3 on each changed var.
15190 (emit_notes_for_differences_1): Clear cur_loc_changed and
15191 in_changed_variables. Recompute cur_loc of new_var.
15192 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15193 (vt_emit_notes): Initialize and destroy emitted_notes.
15195 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
15197 PR rtl-optimization/42220
15198 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15199 Use verify_reg_tracked to determine if we should use OP_OUT rather
15201 (build_def_use): If we see an in-out operand for a register that we
15202 know nothing about, treat is an output if possible, fail the block if
15205 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15208 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15211 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15214 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15215 uses of relevant DEFs that are dead outside the loop too.
15217 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15219 * var-tracking.c (dataflow_set_merge): Swap src and src2.
15221 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15223 * var-tracking.c (values_to_unmark): New variable.
15224 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15225 values_to_unmark vector. Moved body to...
15226 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15227 instead queue it into values_to_unmark vector.
15228 (vt_find_locations): Free values_to_unmark vector.
15230 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
15232 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15233 (site.exp): Export them when plugins are enabled.
15235 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
15237 PR middle-end/42326
15238 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15239 that contain scevs.
15240 (chrec_fold_multiply): Same.
15242 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15245 * c-decl.c (build_compound_literal): Return early if init is
15246 an error_mark_node.
15248 2010-03-04 Martin Jambor <mjambor@suse.cz>
15250 PR tree-optimization/43164
15251 PR tree-optimization/43191
15252 * tree-sra.c (type_consists_of_records_p): Reject records with
15253 zero-size bit-fields at the end.
15255 2010-03-04 Mike Stump <mikestump@comcast.net>
15257 * Makefile.in (TAGS): Remove *.y.
15259 2010-03-04 Richard Guenther <rguenther@suse.de>
15261 PR tree-optimization/40761
15262 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15264 (my_rev_post_order_compute): New function.
15265 (init_pre): Call it.
15267 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
15269 PR middle-end/43209
15270 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15271 decrease the cost of an IV candidate when the cost is infinite.
15273 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15275 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15276 Use '3DNow!' for the extension of that name, ensure normal space
15278 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15280 2010-03-03 Jeff Law <law@redhat.com>
15282 * PR middle-end/32693
15283 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15284 than gen_rtx_SUBREG.
15285 (extract_bit_field_1): Likewise.
15287 2010-03-03 Janis Johnson <janis187@us.ibm.com>
15289 * doc/sourcebuild.texi (Test directives): Document that arguments
15290 include-opts and exclude-opts are now optional for dg-skip-if,
15291 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15293 2010-03-03 Jason Merrill <jason@redhat.com>
15296 * cgraph.h (varpool_node): Add extra_name field.
15297 * varpool.c (varpool_extra_name_alias): New.
15298 (varpool_assemble_decl): Emit extra name aliases.
15299 (varpool_mark_needed_node): Look past an extra name alias.
15300 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15301 * lto-streamer-in.c (lto_input_tree): Read it.
15302 * lto-streamer-out.c (output_unreferenced_globals): Write it.
15304 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
15306 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15307 (sparc*-*-solaris2*): ...this.
15309 2010-03-03 Jakub Jelinek <jakub@redhat.com>
15312 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15313 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
15314 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15315 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15318 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15319 fallthrough to default handling, just with want_address 0 instead of 2.
15320 For single element lists, add_AT_loc directly, otherwise create an
15321 artificial variable DIE and stick location list to it.
15324 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15325 (VAL_EXPR_HAS_REVERSE): Define.
15326 (reverse_op): New function.
15327 (add_stores): For reversible operations add an extra MO_VAL_USE.
15329 2010-03-02 Jason Merrill <jason@redhat.com>
15331 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15333 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
15335 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15336 (sparc64-*-linux*): Likewise.
15337 (sparc64-*-solaris2*): Include assembler files before linker ones.
15338 (sparc-*-solaris2*): Simplify and reorder to match previous case.
15339 * config/sparc/gas.h: Delete.
15340 * config/sparc/sol2-64.h: Add copyright notice.
15341 * config/sparc/sol2-gas-bi.h: Likewise.
15342 * config/sparc/sol2-gld.h: Likewise.
15343 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15344 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15345 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15346 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15347 (sparc_elf_asm_named_section): Rename into...
15348 (sparc_solaris_elf_asm_named_section): ...this. Always define.
15350 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
15352 * config/alpha/alpha.c (override_options): Fix -mtune error message.
15354 2010-03-02 Jeff Law <law@redhat.com>
15356 PR middle-end/42431
15357 * reload1.c (rtx_p, substitute_stack): Declare.
15358 (substitute): Record addresses of changed rtxs.
15359 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15360 Restore the original rtx when complete.
15361 (reload): Free subsitute_stack when complete.
15363 2010-03-02 Janis Johnson <janis187@us.ibm.com>
15365 * doc/gccint.texi (menu): Add Testsuites as a chapter.
15366 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15368 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15369 LTO Testing, gcov Testing, profopt Testing, compat Testing,
15370 Torture Tests): Change from subsection to section.
15372 2010-03-02 Jakub Jelinek <jakub@redhat.com>
15373 Steven Bosscher <steven@gcc.gnu.org>
15375 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15378 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
15380 PR middle-end/42640
15381 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15382 the assignment from the new induction variable to the assignment
15383 of the value from the original loop PHI function.
15385 2010-03-01 Janis Johnson <janis187@us.ibm.com>
15386 Daniel Jacobowitz <dan@codesourcery.com>
15388 * doc/sourcebuild.texi (Test directives): Clarify options to
15391 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15393 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15394 Disable cfi directives unless GCC and gas agree on using read-only
15395 .eh_frame sections for 64-bit.
15396 * configure: Regenerate.
15398 2010-03-01 Richard Guenther <rguenther@suse.de>
15400 PR tree-optimization/43220
15401 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15402 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15404 2010-03-01 Richard Guenther <rguenther@suse.de>
15405 Martin Jambor <mjambor@suse.cz>
15407 PR middle-end/41250
15408 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15409 gimplified parameters.
15411 2010-03-01 Christian Bruel <christian.bruel@st.com>
15413 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15415 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15417 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15419 2010-03-01 Richard Guenther <rguenther@suse.de>
15421 PR middle-end/43213
15422 * expr.c (expand_assignment): Use the alias-oracle to tell
15423 if the rhs aliases the result decl.
15425 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15428 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15429 to sol_gt_pch_get_address.
15430 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15431 64-bit, SPARC and x86.
15432 (sol_gt_pch_get_address): New function.
15434 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
15436 * toplev.h (inform_n, error_n): Declare.
15437 * diagnostic.c (inform_n, error_n): New function.
15439 2010-03-01 Jakub Jelinek <jakub@redhat.com>
15441 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15442 has no rtl yet when processing local_decls, queue it and recheck
15443 if deferred stack allocation hasn't assigned it rtl.
15445 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
15447 * config/sh/sh.c (unspec_bbr_uid): New.
15448 (gen_block_redirect): Use it instead of INSN_UID.
15449 (gen_far_branch): Likewise.
15451 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
15453 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15454 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15456 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15458 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15459 (Warning Options): -Wno-conversion-null is valid for
15460 Objective-C++ as well.
15461 * doc/tm.texi (Named Address Spaces): Likewise.
15462 * doc/plugins.texi (Plugins): Replace TABs with spaces.
15463 * doc/tree-ssa.texi (Tree SSA): Likewise.
15465 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15468 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15469 by default. Don't set the default arch for
15470 i[34567]86-*-darwin*|x86_64-*-darwin*.
15472 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15475 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15476 default. Set the default 32bit/64bit archs with $with_arch
15477 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15479 2010-02-27 Richard Guenther <rguenther@suse.de>
15481 PR tree-optimization/43186
15482 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15483 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15484 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15485 unroller iterations.
15487 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15489 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15490 required and i[34567]86-*-* targets don't support 64bit ISA.
15492 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
15495 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15496 the same alias set.
15498 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15500 * config.gcc: Set the default arch at least to Prescott for
15501 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15502 if SSE math is enabled.
15504 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15506 * diagnostic.c (diagnostic_initialize): Update.
15507 (diagnostic_report_diagnostic): Test inhibit_notes_p for
15509 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15510 (diagnostic_inhibit_notes): New.
15511 * toplev.c (process_options): inhibit notes with -fcompare-debug.
15513 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15516 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15517 * doc/standards.texi: Likewise.
15518 * doc/extend.texi: Likewise.
15519 * doc/trouble.texi: Likewise.
15520 * doc/cppopts.texi: Likewise.
15521 * doc/install.texi: Likewise.
15522 * c.opt (std=c90,std=gnu90): New options.
15523 * c-opts.c (c_common_handle_option): Handle them.
15525 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15528 * c-decl.c (undeclared_variable): Use an informative note.
15530 2010-02-26 Richard Guenther <rguenther@suse.de>
15532 PR tree-optimization/43186
15533 * gimple.h (gimple_fold): Remove.
15534 * gimple.c (gimple_fold): Remove. Inline into single user ...
15535 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15536 Try harder for conditions.
15538 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15541 * function.c (used_types_insert): Don't skip through named pointer
15542 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
15543 and it is different from the main variant's type.
15545 2010-02-26 Nick Clifton <nickc@redhat.com>
15547 * config/rx/rx.md (sminsi3): Remove bogus alternative.
15549 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15551 * config.gcc: Support --with-fpmath=sse for x86.
15553 * config/i386/ssemath.h: New.
15555 * doc/install.texi (--with-fpmath=sse): Documented.
15557 2010-02-26 Richard Guenther <rguenther@suse.de>
15559 PR tree-optimization/43188
15560 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15561 vector types of over-aligned element type.
15563 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
15566 * config/i386/i386.c (expand_vec_perm_blend): Use correct
15567 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
15569 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15571 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15573 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15575 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15576 * var-tracking.c: Include diagnostic.h.
15577 (debug_dv): New function.
15578 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15581 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15582 (add_value_chain, add_value_chains, remove_value_chain,
15583 remove_value_chains): Handle DEBUG_EXPRs.
15584 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15587 * regcprop.c (struct queued_debug_insn_change): New type.
15588 (struct value_data_entry): Add debug_insn_changes field.
15589 (struct value_data): Add n_debug_insn_changes field.
15590 (debug_insn_changes_pool): New variable.
15591 (free_debug_insn_changes, apply_debug_insn_changes,
15592 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15593 (kill_value_one_regno): Call free_debug_insn_changes if needed.
15594 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15596 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15598 (copyprop_hardreg_forward_1): Don't call apply_change_group for
15599 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
15600 changes, call cprop_find_used_regs via note_stores.
15601 (copyprop_hardreg_forward): When copying vd from predecessor
15602 which has any queued DEBUG_INSN changes, make sure the pointers are
15603 cleared. At the end call df_analyze and then if there are any
15604 DEBUG_INSN changes queued at the end of some basic block for still
15605 live registers, apply them.
15606 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15608 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
15610 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15613 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
15615 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15616 targets. Set the default with_cpu/with_arch from arch/cpu.
15617 Allow x86-64 and native for with_cpu/with_arch.
15619 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
15621 * ebitmap.c: Change calls to verify_popcount with calls to
15622 sbitmap_verify_popcount.
15623 (ebitmap_clear_bit): Fixed map->cacheindex test and
15624 map>cache update when bit clearing results in an empty
15627 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15630 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15631 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15632 and support both V2DF and V2DI modes.
15633 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15634 support both V2DF and V2DI modes.
15635 (general): Delete trailing whitespace from a few patterns.
15637 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15638 V2DF/V2DI interleave high/low builtins.
15640 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15643 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
15644 interleave high/low functions.
15646 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15648 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
15649 #pragma extern_prefix.
15651 2010-02-25 Jakub Jelinek <jakub@redhat.com>
15654 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
15655 BLKmode, assert op0 is a MEM and just adjust its mode.
15658 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
15659 if bitpos isn't multiple of mode's bitsize.
15661 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15663 * c.opt (-ftemplate-depth=): New.
15664 (-ftemplate-depth-): Deprecate.
15665 * optc-gen.awk: Handle -ftemplate-depth=.
15666 * opth-gen.awk: Likewise.
15667 * c-opts.c (c_common_handle_option): Likewise.
15668 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
15670 2010-02-24 Jason Merrill <jason@redhat.com>
15672 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
15674 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15676 * cfg.c (alloc_aux_for_block): Remove inline.
15677 (alloc_aux_for_edge): Likewise.
15679 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15681 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
15683 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15685 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
15686 * config/i386/sol2-gas.h: New file.
15687 * config.gcc (i[34567]86-*-solaris2*): Use it.
15689 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15692 * c-typeck.c (ep_convert_and_check): New.
15693 (build_conditional_expr): Use it.
15694 (build_binary_op): Likewise.
15696 2010-02-24 Jakub Jelinek <jakub@redhat.com>
15698 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
15701 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
15702 bounds even for -O+.
15703 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
15704 expr needs to have DECL_NAME set.
15706 2010-02-24 Nick Clifton <nickc@redhat.com>
15708 * config/mep/mep.c: Include gimple.h.
15709 (mep_function_uses_sp): Delete unused function.
15710 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
15711 parameters. Use unsigned integers to count args. Return a
15712 NULL_RTX instead of an error_mark_node. Toidy up formatting.
15714 2010-02-23 Jakub Jelinek <jakub@redhat.com>
15717 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
15718 greater or equal to nelt instead of 2 * nelt.
15719 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
15722 2010-02-23 Jason Merrill <jason@redhat.com>
15725 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
15726 in cfun->local_decls even if they have register types.
15729 * stor-layout.c (place_field): Don't warn about unnecessary
15730 DECL_PACKED if the type is packed.
15732 2010-02-23 Jakub Jelinek <jakub@redhat.com>
15735 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
15736 GOTOFF relocs, even when the base reg isn't pic pointer.
15738 2010-02-23 Michael Matz <matz@suse.de>
15741 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
15742 (expand_gimple_basic_block): Generate and use debug temps if there
15743 are debug uses left after the last real use of TERed ssa names.
15744 Unlink debug immediate uses when they are expanded.
15746 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15749 * config/i386/i386.c (override_options): Reorganise to provide
15750 better error messages.
15752 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15754 PR middle-end/43083
15755 * graphite-scop-detection.c (create_single_exit_edge): Move
15756 the call to find_single_exit_edge to....
15757 (create_sese_edges): ...here. Don't handle multiple edges
15758 exiting the function.
15759 (build_graphite_scops): Don't handle multiple edges
15760 exiting the function.
15762 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15764 PR middle-end/43097
15765 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
15766 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
15768 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15770 PR middle-end/43026
15771 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
15773 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15776 * c-typeck.c (convert_arguments): Print declaration location.
15777 * c-common.c (validate_nargs): Rename as
15778 builtin_function_validate_nargs.
15779 (check_builtin_function_arguments): Update.
15781 2010-02-22 Richard Guenther <rguenther@suse.de>
15784 * tree-inline.c (declare_return_variable): Use the type of
15785 the call stmt lhs if available.
15787 2010-02-22 Duncan Sands <baldrick@free.fr>
15789 * passes.c (register_pass): Always consider all pass lists when
15790 ref_pass_instance_number is zero.
15792 2010-02-22 Richard Guenther <rguenther@suse.de>
15794 PR tree-optimization/42749
15795 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
15796 parameter. Do arithmetic in the original type.
15797 (update_accumulator_with_ops): Likewise.
15798 (adjust_accumulator_values): Adjust.
15800 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15802 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
15803 (QI to BLKmode splitter): New splitter.
15805 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
15807 * config/i386/i386.c (initial_ix86_tune_features): Turn on
15808 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
15810 2010-02-22 Richard Guenther <rguenther@suse.de>
15812 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
15814 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
15816 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
15817 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
15818 ($(T)crti.o, $(T)crtn.o): Remove rules.
15820 2010-02-21 Tobias Burnus <burnus@net-b.de>
15823 * doc/invoke.texi (-fassociative-math): Document that this
15824 option is automatically enabled for Fortran.
15826 2010-02-20 David S. Miller <davem@davemloft.net>
15828 * configure.ac: Test if linker and assembler properly support
15829 GOTDATA_OP relocations.
15830 * configure: Rebuild.
15831 * config.in: Likewise.
15832 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
15833 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
15834 (movsi_high_pic): Likewise.
15835 (movdi_lo_sum_pic): Likewise.
15836 (movdi_high_pic): Likewise.
15837 (movsi_pic_gotdata_op): New pattern.
15838 (movdi_pic_gotdata_op): Likewise.
15839 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
15840 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
15842 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
15845 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
15846 attribute to ssemul.
15847 (xop_mulv2div2di3_high): Ditto.
15849 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15852 * c.opt (Wconversion-null): New option.
15853 * doc/invoke.texi (Wconversion-null): Document.
15855 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15857 * common.opt (Wlarger-than-): Add Undocumented.
15859 2010-02-19 Mike Stump <mikestump@comcast.net>
15861 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15863 2010-02-19 Jason Merrill <jason@redhat.com>
15866 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15867 * configure: Likewise.
15869 2010-02-20 Alan Modra <amodra@gmail.com>
15871 PR middle-end/42344
15872 * cgraph.h (cgraph_make_decl_local): Declare.
15873 * cgraph.c (cgraph_make_decl_local): New function.
15874 (cgraph_make_node_local): Use it.
15875 * cgraphunit.c (cgraph_function_versioning): Likewise.
15876 * ipa.c (function_and_variable_visibility): Likewise.
15878 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15881 * except.c (sjlj_emit_function_enter): Don't call
15882 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15884 * rtl.h (add_reg_br_prob_note): Remove prototype.
15886 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
15889 * c-common.c (conversion_warning): Remove widening conversions
15890 before checking the conversion of integers to reals.
15892 2010-02-19 Mike Stump <mikestump@comcast.net>
15894 PR middle-end/43125
15895 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15898 * cgraphunit.c (process_function_and_variable_attributes): Check
15899 DECL_PRESERVE_P instead of looking up attribute "used".
15900 * ipa-pure-const.c (check_decl): Likewise.
15901 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15902 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15903 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15904 instead of attribute "used".
15905 * config/sol2-c.c (solaris_pragma_init): Likewise.
15906 (solaris_pragma_fini): Likewise.
15908 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15910 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15911 Use XCNEW instead of xcalloc.
15912 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15913 XNEW instead of xmalloc.
15914 (get_fields): Use XNEWVEC instead of xmalloc.
15917 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15918 populate vars array.
15919 (create_new_general_access): For debug stmts just reset value.
15920 (get_stmt_accesses): For accesses within debug stmts just record them
15921 using add_access_to_acc_sites instead of preventing the peeling or
15922 counting them as accesses.
15924 PR middle-end/42233
15925 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15927 2010-02-19 Richard Guenther <rguenther@suse.de>
15929 PR tree-optimization/42916
15930 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15933 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
15935 * configure.ac: Replace all uses of changequote in macro arguments
15936 with proper quoting.
15938 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15940 PR middle-end/42233
15941 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
15943 2010-02-19 Richard Guenther <rguenther@suse.de>
15945 PR tree-optimization/42944
15946 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
15947 test for aliasing with errno.
15949 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15951 PR middle-end/42233
15952 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
15953 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
15954 * dojump.c: Include output.h.
15955 (inv): New inline function.
15956 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
15957 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
15958 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
15959 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
15960 argument, pass it down to other calls.
15961 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
15962 add REG_BR_PROB note to the conditional jump.
15963 * cfgexpand.c (add_reg_br_prob_note): Removed.
15964 (expand_gimple_cond): Don't call it, add the probability
15965 as last argument to jumpif_1/jumpifnot_1.
15966 * Makefile.in (dojump.o): Depend on output.h.
15967 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
15969 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
15970 * stmt.c (do_jump_if_equal): Likewise.
15971 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
15972 * loop-unswitch.c (compare_and_jump_seq): Likewise.
15973 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
15975 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
15976 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
15977 jumpifnot_1 callers.
15978 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
15980 (store_expr): Adjust jumpifnot caller.
15981 (store_constructor): Adjust jumpif caller.
15983 PR middle-end/42233
15984 * gimplify.c (gimple_boolify): For __builtin_expect call
15985 gimple_boolify also on its first argument.
15987 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
15989 * configure.ac (gnu-unique-object): Wrap regexps using [] in
15991 (__stack_chk_fail): Ditto. Remove quadrigraphs.
15992 * configure: Regenerated.
15994 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15996 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
15997 lang_hooks.types_compatible_p instead of comptypes.
15999 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16001 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16002 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16003 if __prefer_thumb__ is defined.
16005 2010-02-18 Martin Jambor <mjambor@suse.cz>
16007 PR tree-optimization/43066
16008 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16009 array with zero-sized element type.
16011 2010-02-18 Jakub Jelinek <jakub@redhat.com>
16013 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16014 rtx, allocate struct var_loc_node here and return it to the
16015 caller, and only if it is actually needed.
16016 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16017 move it earlier and return immediately if it returns NULL.
16019 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
16021 * config/sparc/gas.h: New file. Restore
16022 TARGET_ASM_NAMED_SECTION to its ELF default.
16023 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16024 check !HAVE_GNU_AS.
16025 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16026 Likewise. Add ATTRIBUTE_UNUSED to prototype.
16027 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16028 after sparc/sysv4.h.
16030 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
16032 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16034 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
16036 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16037 patterns from predicated pattern.
16039 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
16042 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16043 for insn mnemonic suffix.
16045 2010-02-17 Richard Guenther <rguenther@suse.de>
16047 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16050 2010-02-17 Jakub Jelinek <jakub@redhat.com>
16053 * caller-save.c (save_call_clobbered_regs): If BB ends with
16054 a DEBUG_INSN, move any notes in between last real insn and the last
16055 DEBUG_INSN after the last DEBUG_INSN.
16057 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
16059 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16060 Fix return type. Fix argument type. Explain meaning of return value.
16062 2010-02-16 Richard Guenther <rguenther@suse.de>
16064 PR tree-optimization/41043
16065 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
16066 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16068 (vrp_visit_phi_node): ... but only for loop PHI nodes.
16070 2010-02-16 Ira Rosen <irar@il.ibm.com>
16072 PR tree-optimization/43074
16073 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16074 * tree-vect-loop.c (vect_analyze_loop_operations): Add
16075 vectorizable cycles in hybrid SLP check.
16076 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16078 2010-02-16 Richard Guenther <rguenther@suse.de>
16080 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16081 (true_dependence): If memrefs_conflict_p computes must-alias
16082 trust it. Move TBAA check after offset-based disambiguation.
16083 (canon_true_dependence): Likewise.
16085 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
16087 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16088 * doc/invoke.texi: Document it.
16089 * var-tracking.c: Include toplev.h and params.h.
16090 (vt_find_locations): Return bool indicating success. Compute
16091 hash sizes unconditionally. Check new parameter, report.
16092 (variable_tracking_main_1): Check vt_find_locations results and
16093 retry. Renamed from...
16094 (variable_tracking_main): ... this. New wrapper to preserve
16095 flag_var_tracking_assignments.
16096 * Makefile.in (var-tracking.o): Adjust dependencies.
16098 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
16099 Jakub Jelinek <jakub@redhat.com>
16102 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16103 if weak_import attribute is present.
16104 * config/darwin.c (machopic_select_section): Likewise.
16106 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
16108 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16109 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16110 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16111 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16113 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16116 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16117 Fix argument types.
16119 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16120 Rewrite text to refer to the names.
16122 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
16124 * config/i386/i386-builtin-types.def
16125 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16126 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16127 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16128 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16129 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16130 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16131 IX86_BUILTIN_VPERMIL2PS256.
16132 (MULTI_ARG_4_DF2_DI_I): Defined.
16133 (MULTI_ARG_4_DF2_DI_I1): Defined.
16134 (MULTI_ARG_4_SF2_SI_I): Defined.
16135 (MULTI_ARG_4_SF2_SI_I1): Defined.
16136 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16137 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16138 __builtin_ia32_vpermil2ps256.
16139 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16140 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16141 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
16142 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16143 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16144 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
16145 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16146 CODE_FOR_xop_vpermil2v8sf3.
16147 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16148 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16149 * config/i386/xopintrin.h (_mm_permute2_pd): New.
16150 (_mm256_permute2_pd): New.
16151 (_mm_permute2_ps): New.
16152 (_mm256_permute2_ps): New.
16154 2010-02-15 Nick Clifton <nickc@redhat.com>
16156 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16157 boolean parameters. Use emit_jump_insn when emitting a pop
16158 instruction containing a return insn.
16159 (push): Use 'true' rather than '1' as second parameter to F.
16160 (h8300_expand_prologue): Likewise.
16161 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16162 (h8300_expand_epilogue): Likewise.
16164 2010-02-15 Richard Guenther <rguenther@suse.de>
16166 PR middle-end/43068
16167 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16170 2010-02-15 Nick Clifton <nickc@redhat.com>
16172 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16175 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
16177 * intl.c (fake_ngettext): New function.
16178 * intl.h (fake_ngettext): Declare.
16179 (ngettext): Define macro.
16180 * collect2.c (notice_translated): New function.
16181 (main): Use notice_translated and ngettext.
16182 * collect2.h (notice_translated): Declare.
16184 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
16186 * reorg.c (delete_computation): Comment fixes.
16187 * caller-save.c (setup_save_areas): Idem.
16188 * sel-sched-dump.c (dump_lv_set): Idem.
16191 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16193 * config/s390/s390.c (s390_sched_init): New function.
16194 (TARGET_SCHED_INIT): Target hook defined.
16196 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
16197 Jack Howarth <howarth@bromo.med.uc.edu>
16198 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16201 Partial revert of unintended change in fix for PR41605.
16202 * config/darwin.h: Fix typo.
16203 * config/darwin9.h: Same.
16205 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16207 * c-pch.c (pch_init): Clear v.
16209 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16211 PR middle-end/42930
16212 * graphite-scop-detection.c (graphite_can_represent_scev): Call
16213 graphite_can_represent_init for MULT_EXPR.
16215 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16217 PR middle-end/42914
16218 PR middle-end/42530
16219 * graphite-sese-to-poly.c (remove_phi): New.
16220 (translate_scalar_reduction_to_array): Call remove_phi.
16222 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16224 PR middle-end/42771
16225 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16226 * graphite-clast-to-gimple.h (gloog): Update declaration.
16227 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16228 * graphite-poly.h (struct poly_bb): Add missing comments.
16229 (struct scop): Add poly_scop_p field.
16230 (POLY_SCOP_P): New.
16231 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16232 * graphite.c (graphite_transform_loops): Build the polyhedral
16233 representation for each scop before code generation.
16234 * sese.c (rename_variables_in_operand): Removed.
16235 (rename_variables_in_expr): Return the renamed expression.
16236 (rename_sese_parameters): New.
16237 * sese.h (rename_sese_parameters): Declared.
16239 2010-02-11 Richard Guenther <rguenther@suse.de>
16241 PR tree-optimization/42998
16242 * tree-ssa-pre.c (create_expression_by_pieces): Treat
16243 POINTER_PLUS_EXPR properly.
16245 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16246 Changpeng Fang <changpeng.fang@amd.com>
16248 PR middle-end/40886
16249 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16250 the cost of an IV candidate when the IV is used in a test against zero.
16252 * gcc.dg/tree-ssa/ivopts-3.c: New.
16254 2010-02-11 Richard Guenther <rguenther@suse.de>
16257 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16258 pointer-vs-decl case by swapping refs. Handle some cases
16259 of pointer-vs-decl disambiguations more conservatively.
16260 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16261 to false after expanding.
16263 2010-02-11 Richard Guenther <rguenther@suse.de>
16266 * gcc.c (process_command): Handle LTO file@offset case more
16269 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16271 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16272 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
16274 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16276 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16277 if MEM's mode size isn't DWARF2_ADDR_SIZE.
16278 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16279 Optimize eq/ne comparisons when both arguments are known to be
16281 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16282 Don't mask operands unnecessarily if they are known to be already
16285 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
16287 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16290 2010-02-10 Richard Guenther <rguenther@suse.de>
16292 PR tree-optimization/43017
16293 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16294 for wrapping signed arithmetic.
16296 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16299 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16300 if no debug info should be emitted for it.
16302 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
16304 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16305 note when flag_exceptions is set.
16307 2010-02-10 Duncan Sands <baldrick@free.fr>
16309 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16311 2010-02-10 Richard Guenther <rguenther@suse.de>
16314 * tree.c (get_unwidened): Handle constants.
16315 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16317 2010-02-10 Martin Jambor <mjambor@suse.cz>
16320 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16321 check for variable argument counts independently.
16323 2010-02-10 Christian Bruel <christian.bruel@st.com>
16326 * config/sh/sh.c (find_barrier): Increase length for non delayed
16327 conditional branches.
16329 2010-02-10 Christian Bruel <christian.bruel@st.com>
16331 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16333 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16335 * builtins.c (set_builtin_user_assembler_name): Also handle
16336 ffs if int is smaller than word.
16338 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
16340 PR middle-end/42973
16341 * ira-conflicts.c (get_dup): Remove.
16342 (process_reg_shuffles): Add new parameter. Use it as an
16343 additional guard for copy generation.
16344 (add_insn_allocno_copies): Rewrite.
16346 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
16348 * common.opt (fsched2-use-traces): Preserved for backward
16350 * doc/invoke.texi: Remove the documentation about option
16351 -fsched2-use-traces.
16352 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16353 flag_sched2_use_traces.
16354 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16355 the backward compatibility flag section.
16357 2010-02-09 Richard Guenther <rguenther@suse.de>
16359 PR tree-optimization/43008
16360 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16361 make HEAP variables initialized from global memory if they
16362 are not known builtin functions.
16363 (find_func_aliases): Adjust.
16365 2010-02-09 Richard Guenther <rguenther@suse.de>
16367 PR tree-optimization/43000
16368 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16369 arithmetic manually.
16371 2010-02-08 Jakub Jelinek <jakub@redhat.com>
16373 PR tree-optimization/42931
16374 * tree-loop-linear.c (try_interchange_loops): Don't call
16375 double_int_mul if estimated_loop_iterations failed.
16377 2010-02-08 Martin Jambor <mjambor@suse.cz>
16379 PR middle-end/42898
16380 * tree-sra.c (build_accesses_from_assign): Do not mark in
16381 should_scalarize_away_bitmap if stmt has volatile ops.
16382 (sra_modify_assign): Do not process assigns piecemeal if if stmt
16385 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
16387 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16389 2010-02-07 Adam Nemet <adambnmet@gmail.com>
16391 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16392 before the pattern.
16394 2010-02-07 Andrew Pinski <pinskia@gmail.com>
16396 PR middle-end/42946
16397 * df-core.c (df_finish_pass): Change type of saved_flags to int.
16399 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16401 PR middle-end/42988
16402 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16403 to unknown_dependence.
16404 (graphite_legal_transform_dr): Handle the unknown_dependence.
16405 (graphite_carried_dependence_level_k): Same.
16407 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16409 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16411 2010-02-07 Richard Guenther <rguenther@suse.de>
16413 PR middle-end/42991
16414 * expr.c (get_inner_reference): Always initialize *pbitsize.
16416 2010-02-07 Richard Guenther <rguenther@suse.de>
16418 PR middle-end/42956
16419 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16420 new ARRAY_REFs on variable size element or minimal index arrays.
16422 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16423 gimple_fold_indirect_ref.
16425 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
16428 * arm.c (arm_override_options): Just return if the user has specified
16429 an invalid fpu name.
16431 2010-02-03 Jason Merrill <jason@redhat.com>
16434 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16435 i386_pe_maybe_record_exported_symbol.
16437 2010-02-05 Steve Ellcey <sje@cup.hp.com>
16440 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16441 (pa_delegitimize_address): New function.
16443 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
16445 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16446 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16448 2010-02-05 Richard Guenther <rguenther@suse.de>
16451 * lto-streamer-in.c (get_resolution): Deal with references
16452 to undefined functions.
16454 2010-02-05 Richard Guenther <rguenther@suse.de>
16456 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16457 (fold_const_aggregate_ref): Likewise.
16458 (ccp_fold_stmt): Substitute loads.
16459 (maybe_fold_reference): Verify types before substituting.
16461 (fold_gimple_assign): Unshare properly.
16462 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16464 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
16466 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16467 for rs6000_gen_cell_microcode.
16469 2010-02-04 Richard Guenther <rguenther@suse.de>
16471 PR rtl-optimization/42952
16472 * dse.c (const_or_frame_p): Remove MEM handling.
16474 2010-02-04 Nick Clifton <nickc@redhat.com>
16476 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16477 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16478 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16479 (mn10300_asm_output_mi_thunk): New function.
16480 (mn10300_can_output_mu_thunk): New function.
16481 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16482 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
16483 (FUNCTION_ARG): Delete incorrect comment.
16485 2010-02-03 Jason Merrill <jason@redhat.com>
16488 * fold-const.c (operand_equal_p): Handle erroneous types.
16490 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16492 * config/h8300/h8300.md (can_delay): Fix attibute condition.
16494 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
16496 PR rtl-optimization/42941
16497 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16500 2010-02-03 Jason Merrill <jason@redhat.com>
16503 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16505 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
16508 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
16509 (cselib_reset_table): Renamed from...
16510 (cselib_reset_table_with_next_value): ... this.
16511 (cselib_get_next_uid): Renamed from...
16512 (cselib_get_next_unknown_value): ... this.
16513 * cselib.c (next_uid): Renamed from...
16514 (next_unknown_value): ... this.
16515 (cselib_clear_table): Adjust.
16516 (cselib_reset_table): Adjust. Renamed from...
16517 (cselib_reset_table_with_next_value): ... this.
16518 (cselib_get_next_uid): Adjust. Renamed from...
16519 (cselib_get_next_unknown_value): ... this.
16520 (get_value_hash): Use hash.
16521 (cselib_hash_rtx): Likewise.
16522 (new_cselib_val): Adjust. Set and dump uid.
16523 (cselib_lookup_mem): Pass next_uid as hash.
16524 (cselib_subst_to_values): Likewise.
16525 (cselib_log_lookup): Dump uid.
16526 (cselib_lookup): Pass next_uid as hash. Adjust.
16527 (cselib_process_insn): Adjust.
16528 (cselib_init): Initialize next_uid.
16529 (cselib_finish): Adjust.
16530 (dump_cselib_table): Likewise.
16531 * dse.c (canon_address): Dump value uid.
16532 * print-rtl.c (print_rtx): Print value uid.
16533 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16535 (dv_uid): New function, sort of renamed from...
16536 (dv_htab_hash): ... this, reimplemented in terms of it and...
16537 (dv_uid2hash): ... this. New.
16538 (variable_htab_eq): Drop excess assertions.
16539 (tie_break_pointers): Removed.
16540 (canon_value_cmp): Compare uids.
16541 (variable_post_merge_New_vals): Print uids.
16542 (vt_add_function_parameters): Adjust.
16543 (vt_initialize): Reset table. Adjust.
16545 2010-02-03 Richard Guenther <rguenther@suse.de>
16547 PR tree-optimization/42944
16548 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16549 (call_may_clobber_ref_p_1): Likewise. Properly handle
16550 malloc and calloc clobbering errno.
16552 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
16554 * doc/invoke.texi: Fix name of sched1 dump.
16556 * opts.c (decode_options): Set flag_tree_switch_conversion
16557 only conditionally on optimize >= 2.
16559 * gcse.c: Assorted comment fixes in pass description.
16561 2010-02-03 Anthony Green <green@moxielogic.com>
16563 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16564 nop padding in order to maintain alignment of storage location of
16565 target function address.
16566 (moxie_trampoline_init): Store target function address at newly
16568 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16570 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16572 2010-02-03 Richard Guenther <rguenther@suse.de>
16574 PR middle-end/42927
16575 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16577 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16579 * config.gcc: Reenable check for obsolete targets.
16580 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16581 mips-sgi-irix6.[0-4]*.
16583 2010-02-02 Nick Clifton <nickc@redhat.com>
16585 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16586 constant size of 4 as being the same as 0.
16587 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16588 can take values in the range 0..4.
16590 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
16593 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16594 as _darwin10_Unwind_FindEnclosingFunction().
16595 * libgcc-libsystem.ver: New.
16597 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
16600 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16601 implicitly set registers.
16603 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
16605 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16606 (arm_override_options): Allow automatic selection of the thread
16607 pointer register if thumb2.
16608 (legitimize_pic_address): Improve code sequences for Thumb2.
16609 (arm_call_tls_get_addr): Likewise.
16610 (legitimize_tls_address): Likewise.
16611 * arm.md (pic_load_addr_arm): Delete. Replace with ...
16612 (pic_load_addr_32bit): ... this. New named pattern.
16613 * thumb2.md (pic_load_addr_thumb2): Delete.
16614 (pic_load_dot_plus_four): Delete.
16615 (tls_load_dot_plus_four): New named pattern.
16617 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16620 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16621 Document fix for TLS bug.
16623 2010-01-31 Richard Guenther <rguenther@suse.de>
16625 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16626 conservatively correct.
16628 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16632 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16634 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16636 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16638 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16640 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
16642 * config.gcc: Adjust order of makefile fragments for mingw targets.
16644 2010-01-31 Richard Guenther <rguenther@suse.de>
16646 PR middle-end/42898
16647 * gimplify.c (gimplify_init_constructor): For volatile LHS
16648 initialize a temporary.
16650 2010-01-31 Matthias Klose <doko@ubuntu.com>
16652 * configure.ac: Fix __stack_chk_fail check for cross builds configured
16654 * configure: Regenerate.
16656 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
16658 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16659 the same alias set and their sizes different constantness.
16660 (aliasing_component_refs_p): Revert 2009-10-24 change.
16662 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16664 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
16667 2010-01-29 Richard Guenther <rguenther@suse.de>
16669 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
16670 Assert we successfully updated the call.
16672 2010-01-29 Jakub Jelinek <jakub@redhat.com>
16674 PR rtl-optimization/42889
16675 * df.h (df_set_bb_dirty_nonlr): New prototype.
16676 * df-core.c (df_set_bb_dirty_nonlr): New function.
16677 * df-scan.c (df_insn_rescan): Call it instead of
16678 df_set_bb_dirty for DEBUG_INSNs.
16680 2010-01-29 Richard Guenther <rguenther@suse.de>
16682 PR middle-end/37448
16683 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
16684 quadratic behavior in most cases.
16686 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
16689 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
16690 in the call to gen_x86_movsicc_0_m1.
16692 2010-01-28 Richard Guenther <rguenther@suse.de>
16694 PR tree-optimization/42871
16695 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
16697 2010-01-28 Richard Guenther <rguenther@suse.de>
16699 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
16700 into call arguments.
16702 2010-01-28 Richard Guenther <rguenther@suse.de>
16704 PR middle-end/42883
16705 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
16706 the forwarder if the destination is an EH landing pad.
16708 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
16710 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
16711 block list passed to gimple_duplicate_sese_tail.
16712 (parallelize_loops): Avoid parallelization when the function
16713 has_nonlocal_label.
16714 Avoid parallelization when the preheader is IRREDUCIBLE.
16715 Try to optimize when estimated_loop_iterations_int is unresolved.
16716 Add the loop's location to the dump file.
16717 * tree-cfg.c (add_phi_args_after_redirect): Remove.
16718 (gimple_duplicate_sese_tail): Remove the check for the latch.
16719 Redirect nexits to the exit block.
16720 Remove handling of the incoming edges to the latch.
16721 Redirect the backedge from the copied latch to the exit bb.
16723 2010-01-28 Michael Matz <matz@suse.de>
16726 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
16727 Wrap force_reg into a sequence, emit it before user.
16729 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
16731 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
16733 (arm_legacy_rev): Likewise.
16734 (thumb_legacy_rev): Likewise.
16736 2010-01-27 Jakub Jelinek <jakub@redhat.com>
16738 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
16739 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
16740 on MEM's address failed, try avoid_constant_pool_reference and
16741 recurse if it returned something different.
16742 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
16743 address, try avoid_constant_pool_reference and recurse if it
16744 returned something different.
16745 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
16746 address and avoid_constant_pool_reference returned something
16747 different, don't set have_address.
16749 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
16752 * var-tracking.c (val_store): Add modified argument, obey it.
16754 (count_uses): Move down logging of main.
16755 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
16756 don't need resolution.
16757 (emit_notes_in_bb): Likewise.
16759 2010-01-27 Richard Guenther <rguenther@suse.de>
16761 PR middle-end/42878
16762 * tree-inline.c (remap_decl): Delay remapping of SSA name
16763 default definitions until we need them.
16765 2010-01-27 Jakub Jelinek <jakub@redhat.com>
16767 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16768 (rs6000_delegitimize_address): New function.
16770 * config/s390/s390.c (s390_delegitimize_address): Call
16771 delegitimize_mem_from_attrs.
16773 PR middle-end/42874
16774 * tree-inline.c (cannot_copy_type_1): Removed.
16775 (copy_forbidden): Don't forbid copying of functions containing
16776 records/unions with variable length fields.
16778 2010-01-27 Christian Bruel <christian.bruel@st.com>
16782 * config/sh/sh.c (find_barrier): Increase length for non delayed
16783 conditional branches.
16785 2010-01-27 Matthias Klose <doko@ubuntu.com>
16787 * configure.ac (gnu-unique-object): Fix ldd version check.
16788 * configure: Regenerate.
16790 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16792 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
16794 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
16795 Test for HAVE_GNU_AS value.
16797 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16799 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
16800 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
16801 INT64_TYPE): Define.
16802 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
16803 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16804 INT_LEAST64_TYPE): Define.
16805 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
16806 UINT_LEAST64_TYPE): Define.
16807 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
16808 INT_FAST64_TYPE): Define.
16809 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16810 UINT_FAST64_TYPE): Define.
16811 (INTMAX_TYPE, UINTMAX_TYPE): Define.
16812 (INTPTR_TYPE, UINTPTR_TYPE): Define.
16813 (SIG_ATOMIC_TYPE): Define.
16815 2010-01-26 Richard Guenther <rguenther@suse.de>
16817 * df-scan.c (df_scan_set_bb_info): Remove assert.
16818 (df_insn_rescan_debug_internal): Merge asserts.
16819 (df_install_ref): Likewise.
16820 (df_mark_reg): Use bitmap_set_range.
16821 (df_hard_reg_used_p): Remove assert.
16822 (df_hard_reg_used_count): Likewise.
16824 2010-01-26 Richard Guenther <rguenther@suse.de>
16826 PR rtl-optimization/42685
16827 * web.c (web_main): Ignore DEBUG_INSNs.
16829 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
16831 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
16833 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
16834 Fix types of fndecl and arglist parameters.
16836 2010-01-26 Richard Guenther <rguenther@suse.de>
16838 PR middle-end/42806
16839 * tree-eh.c (unsplit_eh): Skip debug insns.
16841 2010-01-26 Richard Guenther <rguenther@suse.de>
16843 PR tree-optimization/42250
16844 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
16846 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16849 * omp-low.c (expand_omp_sections): Only use single_pred if
16850 l2_bb is single_pred_p.
16852 2010-01-25 Christian Bruel <christian.bruel@st.com>
16855 * config/sh/sh.c (find_barrier): Increase length for non delayed
16856 conditional branches.
16857 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
16859 2010-01-24 David S. Miller <davem@davemloft.net>
16861 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16862 define if not using GAS.
16863 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16864 Likewise. Delete SECTION_MERGE code, which is only applicable
16867 2010-01-24 Mark Mitchell <mark@codesourcery.com>
16870 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16871 mangling of va_list in system headers.
16873 2010-01-23 Toon Moene <toon@moene.org>
16875 * tree-predcom.c (combine_chains): Return NULL, not false.
16877 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
16879 * tree-loop-distribution.c (distribute_loop): Fix declaration and
16880 initialization of variable res to agree with return type.
16882 2010-01-22 Steve Ellcey <sje@cup.hp.com>
16884 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16885 * tree-sra.c: Add include of expr.h.
16887 2010-01-22 Jakub Jelinek <jakub@redhat.com>
16889 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16890 insert the debug stmt on the single non-EH edge from the stmt.
16892 2010-01-22 Richard Henderson <rth@redhat.com>
16895 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16896 the RHS until after generate_subtree_copies has insertted its
16897 code before the current statement.
16899 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
16901 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16903 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16905 2010-01-21 Martin Jambor <mjambor@suse.cz>
16907 PR tree-optimization/42585
16908 * tree-sra.c (struct access): New field grp_total_scalarization.
16909 (dump_access): Dump the new field.
16910 (should_scalarize_away_bitmap): New variable.
16911 (cannot_scalarize_away_bitmap): Likewise.
16912 (sra_initialize): Allocate new bitmaps.
16913 (sra_deinitialize): Free new bitmaps.
16914 (create_access_1): New function.
16915 (create_access): Parts moved to create_access_1.
16916 (type_consists_of_records_p): New function.
16917 (completely_scalarize_record): Likewise.
16918 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16919 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16920 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16922 (analyze_all_variable_accesses): Completely scalarize small eligible
16925 2010-01-21 Martin Jambor <mjambor@suse.cz>
16927 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16929 2010-01-21 Andrew Haley <aph@redhat.com>
16931 * gcc.c (process_command): Move lang_specific_driver before
16932 setting cc_libexec_prefix.
16934 2010-01-21 Richard Guenther <rguenther@suse.de>
16936 PR middle-end/19988
16937 * fold-const.c (negate_expr_p): Pretend only negative
16938 real constants are easily negatable.
16940 2010-01-20 Janis Johnson <janis187@us.ibm.com>
16941 Jason Merrill <jason@redhat.com>
16943 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
16944 (TYPE_TRANSPARENT_AGGR): this, for union and record.
16945 * calls.c (initialize argument_information): Handle it.
16946 * c-common.c (handle_transparent_union_attribute): Use new name.
16947 * c-decl.c (finish_struct): Ditto.
16948 * c-typeck.c (type_lists_compatible_p): Ditto.
16949 (convert_for_assignment): Use new name and also handle record.
16950 * function.c (aggregate_value_p): Handle it.
16951 (pass_by_reference): Ditto.
16952 (assign_parm_data_types): Ditto.
16953 * print-tree.c (print_node): Ditto.
16954 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
16955 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
16956 * tree.c (first_field): New fn.
16958 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
16961 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
16962 even when linking statically, for now.
16964 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
16967 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
16968 without a cselib val.
16969 (count_uses): Accept MO_VAL_SET with no val on stores.
16970 (add_stores): Likewise.
16972 2010-01-20 Jakub Jelinek <jakub@redhat.com>
16974 * var-tracking.c (check_value_val): Add a compile time assertion.
16975 (dv_is_decl_p): Simplify.
16976 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
16977 gcc_assert if ENABLE_CHECKING.
16979 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
16982 * var-tracking.c: Include tree-flow.h.
16983 (mem_dies_at_call): New.
16984 (dataflow_set_preserve_mem_locs): Use it.
16985 (dataflow_set_remove_mem_locs): Likewise.
16986 (dump_var): Renamed from dump_variable. Adjust all callers.
16987 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
16988 * Makefile.in (var-tracking.o): Adjust deps.
16990 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
16992 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
16994 2010-01-20 Richard Guenther <rguenther@suse.de>
16996 PR tree-optimization/42717
16997 * tree-ssa-dce.c (get_live_post_dom): Remove.
16998 (forward_edge_to_pdom): Take an arbitrary edge to copy
16999 degenerate PHI args from.
17000 (remove_dead_stmt): Use the first post-dominator even if it
17001 does not contain live statements as redirection destination.
17003 2010-01-20 Richard Guenther <rguenther@suse.de>
17005 * tree-inline.c (estimate_num_insns): Handle EH builtins.
17007 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17009 * sel-sched.c (create_speculation_check): Remove set but not used
17011 (try_transformation_cache): Remove set but not used variable ds.
17012 (calculate_privileged_insns): Remove set but not used variables
17013 cur_insn and min_spec_insn.
17014 (find_best_expr): Remove set but not used variable avail_n.
17015 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17017 * cgraphunit.c (assemble_thunk): Remove set but not used variable
17019 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17020 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17021 new_scop_exit_edge.
17023 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
17026 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17027 cpu types. Add support for *-sse3 cpu types.
17028 (x86_64-*-*): Ditto.
17030 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17032 PR middle-end/42803
17033 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17034 argument, call initializer_constant_valid_p_1 instead of
17035 initializer_constant_valid_p, pass CACHE to it, return NULL
17036 immediately if first call returns NULL.
17037 (initializer_constant_valid_p_1): New function.
17038 (initializer_constant_valid_p): Use it.
17040 2010-01-20 Thomas Quinot <quinot@adacore.com>
17042 * tree.def (PLACEHOLDER_EXPR): Fix comment.
17044 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17046 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17047 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17048 (loc_list_from_tree): Don't handle unsigned division. Handle
17049 signed modulo using DW_OP_{over,over,div,mul,minus}.
17050 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17051 modulo instead of signed.
17053 2010-01-20 DJ Delorie <dj@redhat.com>
17055 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17057 (h8300_emit_stack_adjustment): Propogate it.
17059 (h8300_expand_prologue): Likewise.
17060 (h8300_expand_epilogue): Likewise.
17062 2010-01-19 Michael Matz <matz@suse.de>
17064 PR tree-optimization/41783
17065 * tree-data-ref.c (toplevel): Include flags.h.
17066 (dump_data_dependence_relation): Also dump the inputs if the
17067 result will be unknown.
17068 (split_constant_offset_1): Look through some conversions.
17069 * tree-predcom.c (determine_roots_comp): Restart a new chain if
17070 the offset from last element is too large.
17071 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17072 (reassociate_to_the_same_stmt): Handle vector registers.
17073 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17074 (e.g. conversions).
17075 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17076 wide_prolog_niters argument, emit widening instructions.
17077 (vect_do_peeling_for_alignment): Adjust caller, use widened
17078 variant of the iteration cound.
17079 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17081 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17084 * config/arm/neon-testgen.m (emit_automatics): New parameter
17085 features. Adjust for Fixed_return_reg feature.
17086 (test_intrinsic): Call emit_automatics with new feature.
17087 * config/arm/neon.ml: Update copyright years.
17088 (features): New Fixed_return_reg feature.
17089 (ops): Update feature for Vget_low.
17091 2010-01-19 Jakub Jelinek <jakub@redhat.com>
17093 PR tree-optimization/42719
17094 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17098 * fwprop.c (all_uses_available_at): Return false if def_set dest
17099 is a REG that is used in def_insn.
17101 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
17103 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17105 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17106 Add argument names.
17108 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17110 * target.h (struct gcc_target) <secondary_reload>: Change type
17111 of last argument to secondary_reload_info *.
17113 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
17116 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17117 memory references with unaligned offsets. Remove CQImode handling.
17118 (unaligned_memory_operand): Return 1 for memory references with
17119 unaligned offsets. Remove CQImode handling.
17121 2010-01-18 Richard Guenther <rguenther@suse.de>
17123 PR middle-end/39954
17124 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17127 2010-01-18 Richard Guenther <rguenther@suse.de>
17129 PR tree-optimization/42781
17130 * tree-ssa-structalias.c (find_what_var_points_to): Skip
17131 restrict processing only if the original variable was artificial.
17133 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
17135 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17136 find number of popped argument bytes.
17138 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17139 Fix the text that describes the return value for invalid insns.
17141 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
17143 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17144 Clarify what 'cost of the -dependence' is. Fix quoting.
17146 * toplev.c (default_get_pch_validity): Rename argument to "sz".
17147 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17149 2010-01-17 Jakub Jelinek <jakub@redhat.com>
17151 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17152 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17154 2010-01-17 Richard Guenther <rguenther@suse.de>
17156 PR middle-end/42248
17157 * function.c (split_complex_args): Take a VEC to modify.
17158 (assign_parms_augmented_arg_list): Build a VEC instead of
17159 a chain of PARM_DECLs.
17160 (assign_parms_unsplit_complex): Take a VEC of arguments.
17161 Do not fixup unmodified parms.
17162 (assign_parms): Deal with the VEC.
17163 (gimplify_parameters): Likewise.
17165 2010-01-17 Richard Guenther <rguenther@suse.de>
17167 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17168 node existence check.
17169 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17170 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17171 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17172 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17173 (gimple_execute_on_growing_pred): Likewise.
17175 2010-01-17 Richard Guenther <rguenther@suse.de>
17177 PR tree-optimization/42773
17178 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17179 (compute_antic_aux): Likewise.
17180 (compute_partial_antic_aux): Likewise.
17182 2010-01-17 Jie Zhang <jie.zhang@analog.com>
17185 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17188 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
17190 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17193 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17194 Fix markup for strict argument.
17196 (TARGET_SCHED_REORDER2): Fix argument types.
17198 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17199 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17201 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17202 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17204 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17207 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17208 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17209 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17210 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17211 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17213 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17215 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17217 (TARGET_ASM_RELOC_RW_MASK): Add return type.
17218 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17220 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17222 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17225 (TARGET_ASM_NAMED_SECTION): Fix argument list.
17227 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17228 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17230 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17232 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17234 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17235 referring to it. Fix language.
17237 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17239 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17241 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17243 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17245 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17246 '@var{stream}. Remove stray 'and'.
17248 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17250 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17252 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17254 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17255 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17257 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17258 Fix description of return value.
17259 Rename argument "sz" to "len."
17261 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17262 Clarify meaning of 'true' return value.
17264 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17266 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17267 rep_mode versus mode_rep.
17269 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17271 (TARGET_BUILTIN_DECL): Fix name.
17273 (TARGET_COMMUTATIVE_P): Fix type of first argument.
17275 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17277 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17279 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17281 (TARGET_RELAXED_ORDERING): Use @deftypevr.
17283 (TARGET_GET_DRAP_RTX): Note that this is a hook.
17286 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17287 Rename argument tm_fn to md_fn.
17289 (TARGET_OPTION_PRINT): Fix argument list.
17291 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
17294 * config/i386/i386.c (ix86_fixup_binary_operands):
17295 Revert FMA4 fixup of operands.
17297 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17300 * Makefile.in (write_entries_to_file, install-plugin):
17301 Use \012 instead of \n with tr.
17303 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
17305 * configure.ac (HAVE_AS_REF): New C macro.
17306 * configure: Regenerate.
17307 * config.in: Likewise.
17308 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17310 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17313 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
17315 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17317 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17319 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17321 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17323 (TARGET_IN_SMALL_DATA_P): Fix argument type.
17325 (TARGET_BINDS_LOCAL_P): Fix argument type.
17327 (TARGET_ASM_FILE_END): Use prototype.
17329 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17331 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17333 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17335 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17337 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17338 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17340 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17341 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17343 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17344 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17345 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17346 (TARGET_ADDR_SPACE_CONVERT): Likewise.
17348 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17350 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17352 (TARGET_INIT_BUILTINS): Use prototype.
17354 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17355 Put 'const char *' in braces. Fix parameter types.
17356 (TARGET_INVALID_CONVERSION): Fix parameter types.
17357 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17358 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17360 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17363 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17365 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17367 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
17369 * doc/tm.texi (TARGET_HELP): Fix return type.
17371 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17372 in braces. Fix argument types.
17374 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17376 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17378 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17380 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17381 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17383 (TARGET_MANGLE_TYPE): Fix argument types.
17385 (TARGET_IRA_COVER_CLASSES): Use prototype.
17387 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
17389 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17391 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17393 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17395 (TARGET_CALLEE_COPIES): Fix argument types.
17397 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17399 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17401 (TARGET_FUNCTION_VALUE): Fix argument types.
17403 (TARGET_RETURN_IN_MSB): Fix argument type.
17405 (TARGET_RETURN_IN_MEMORY): Fix argument types.
17407 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17409 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17411 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17412 agree with return type.
17414 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17416 2010-01-15 Jing Yu <jingyu@google.com>
17418 PR rtl-optimization/42691
17419 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17420 a pseudo to a constant and are merged, and adjust comments.
17422 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
17424 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17426 2010-01-15 Richard Guenther <rguenther@suse.de>
17428 PR middle-end/42739
17429 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17430 labels of computed or non-local gotos to the destination.
17431 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17432 landing pad label is the first label.
17434 2010-01-15 Richard Guenther <rguenther@suse.de>
17436 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17438 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17441 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17442 to allow generation of the xssqrtdp instruction on power7.
17443 (sqrtdf2_fpr): Ditto.
17445 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17447 PR middle-end/42674
17448 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17449 functions with noreturn attribute.
17452 * varasm.c (declare_weak): Add weak attribute to decl if it
17453 doesn't have one already.
17454 (assemble_external): Only add decls to weak_decls if they also
17455 have weak attribute.
17457 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
17459 * var-tracking.c (var_reg_delete): Don't delete the association
17460 between REGs and values or one-part variables if the register
17463 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17466 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17467 because its first operand is a non-localized variable.
17469 2010-01-14 Martin Jambor <mjambor@suse.cz>
17471 PR tree-optimization/42706
17472 * tree-sra.c (encountered_recursive_call): New variable.
17473 (encountered_unchangable_recursive_call): Likewise.
17474 (sra_initialize): Initialize both new variables.
17475 (callsite_has_enough_arguments_p): New function.
17476 (scan_function): Call decl and flags check only for IPA-SRA, check
17477 whether there is a recursive call and whether it has enough arguments.
17478 (all_callers_have_enough_arguments_p): New function.
17479 (convert_callers): Look for recursive calls only when
17480 encountered_recursive_call is set.
17481 (ipa_early_sra): Bail out either if
17482 !all_callers_have_enough_arguments_p or
17483 encountered_unchangable_recursive_call.
17485 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17487 * sel-sched.c: Add 2010 to copyright years.
17488 * sel-sched-ir.c: Likewise.
17489 * sel-sched-ir.h: Likewise.
17491 2010-01-14 Martin Jambor <mjambor@suse.cz>
17493 PR tree-optimization/42714
17494 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17495 constructors specially.
17497 2010-01-14 Andi Kleen <ak@linux.intel.com>
17499 * config/i386/drivers-i386.c (detect_caches_intel):
17500 Add l2sizekb parameter and fill in.
17501 (host_detect_local_cpu): Add l2sizekb, fill in.
17502 Add Atom small cache heuristic.
17504 2010-01-14 Andi Kleen <ak@linux.intel.com>
17506 * config/i386/drivers-i386.c (detect_caches_cpuid4):
17507 Add level3 parameter and fill in.
17508 (detect_caches_intel): Handle level3 cache.
17510 2010-01-14 Andi Kleen <ak@linux.intel.com>
17512 * config/i386/drivers-i386.c (host_detect_local_cpu):
17513 Fix core duo detection.
17515 2010-01-14 Andi Kleen <ak@linux.intel.com>
17517 * config/i386/drivers-i386.c (host_detect_local_cpu):
17518 Fix Atom detection.
17520 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17522 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17523 (rs6000_variable_issue_1): this. Use...
17524 (rs6000_variable_issue): here. Reimplement. Print debug info.
17526 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17528 * sel-sched-ir.c (sel_restore_other_notes): Rename to
17529 sel_restore_notes. Update all callers. Call reemit_notes
17532 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17534 PR rtl-optimization/42246
17535 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17538 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17540 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17541 all successors is the same as number of successors in current region.
17543 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17545 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17546 to rename is not separable. Otherwise check that its LHS is not NULL.
17548 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17550 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
17552 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17554 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17555 available registers when failed to discover LHS register class.
17556 Fix indentation. Update comment.
17558 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17559 Alexander Monakov <amonakov@ispras.ru>
17561 PR rtl-optimization/42389
17562 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17564 (advance_state_on_fence): Likewise.
17565 (sel_target_adjust_priority): Print debug output only when
17566 sched_verbose >= 4, not 2.
17567 (get_expr_cost): Do not issue all unique insns on the next cycle.
17568 (fill_insns): Initialize can_issue_more from the value saved
17570 * sel-sched-ir.c (flist_add): New parameter issue_more.
17571 Init FENCE_ISSUE_MORE with it.
17572 (merge_fences): Likewise.
17573 (init_fences): Update call to flist_add.
17574 (add_to_fences, add_clean_fence_to_fences)
17575 (add_dirty_fence_to_fences): Likewise.
17576 (move_fence_to_fences): Update call to merge_fences.
17577 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17579 * sel-sched-ir.h (struct _fence): New field issue_more.
17580 (FENCE_ISSUE_MORE): New accessor macro.
17582 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17584 PR rtl-optimization/42388
17585 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17586 that have no predecessors nor successors. Do not call move_bb_info
17587 for empty blocks outside of current region.
17589 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17591 PR rtl-optimization/42294
17592 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17593 * sel-sched.c (move_exprs_to_boundary): Transitively add all
17594 originators' originators.
17596 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17598 PR rtl-optimization/39453
17599 PR rtl-optimization/42246
17600 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17602 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17604 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17605 Alexander Monakov <amonakov@ispras.ru>
17607 PR middle-end/42245
17608 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
17609 (maybe_tidy_empty_bb): ... here. Make static. Add new
17610 argument. Update all callers.
17611 (tidy_control_flow): ... and here. Recompute topological order
17612 of basic blocks in region if necessary.
17613 (sel_redirect_edge_and_branch): Change return type. Return true
17614 if topological order might have been invalidated.
17615 (purge_empty_blocks): Export and move from...
17616 * sel-sched.c (purge_empty_blocks): ... here.
17617 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17618 (maybe_tidy_empty_bb): Delete prototype.
17619 (purge_empty_blocks): Declare.
17621 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17623 PR rtl-optimization/42249
17624 * sel-sched.c (try_replace_dest_reg): When chosen register
17625 and original register is the same, do not bail out early, but
17626 still check all original insns for validity of replacing destination
17627 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17630 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17633 Port from no-undefined-overflow branch:
17634 2009-03-09 Richard Guenther <rguenther@suse.de>
17636 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17638 2010-01-14 Richard Guenther <rguenther@suse.de>
17641 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17643 2010-01-14 Ira Rosen <irar@il.ibm.com>
17645 PR tree-optimization/42709
17646 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
17647 as scalar type in creation of constant vector operand.
17649 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17652 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
17653 (check-parallel-%): Match `testsuite' directory component only
17656 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
17658 PR translation/39521
17659 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
17662 2010-01-13 Richard Guenther <rguenther@suse.de>
17664 PR tree-optimization/42730
17665 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
17668 2010-01-13 Steve Ellcey <sje@cup.hp.com>
17671 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
17672 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
17675 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
17677 * config/bfin/libgcc-bfin.ver: Regenerate based on current
17678 libgcc-std.ver. Add entries for ___smulsi3_highpart and
17679 ___umulsi3_highpart.
17681 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
17682 rather than schedule_insns if the pass is enabled.
17684 2010-01-13 Martin Jambor <mjambor@suse.cz>
17686 PR tree-optimization/42704
17687 * tree-sra.c (sra_modify_assign): Do not delete assignments to
17690 2010-01-13 Martin Jambor <mjambor@suse.cz>
17692 PR tree-optimization/42703
17693 * tree-sra.c (analyze_access_subtree): Check that we can build a
17694 reference to the original data within the aggregate.
17696 2010-01-13 Richard Guenther <rguenther@suse.de>
17698 PR tree-optimization/42705
17699 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
17701 2010-01-13 Richard Guenther <rguenther@suse.de>
17703 PR middle-end/42716
17704 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
17706 2010-01-13 Jakub Jelinek <jakub@redhat.com>
17709 * var-tracking.c (values_to_unmark): New variable.
17710 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17711 values_to_unmark vector. Moved body to...
17712 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
17713 instead queue it into values_to_unmark vector.
17714 (vt_find_locations): Free values_to_unmark vector.
17716 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
17718 * config/s390/s390.c (override_options): Set
17719 default of max-pending-list-length to 256
17721 2010-01-13 Richard Guenther <rguenther@suse.de>
17724 * tree-pass.h (PROP_gimple_lcx): New.
17725 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
17726 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
17727 before the final cleanup_eh.
17728 (dump_properties): Dump PROP_gimple_lcx.
17729 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
17730 (tree_lower_complex_O0): Remove.
17731 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
17732 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
17733 tree_lower_complex, schedule TODO_update_ssa.
17734 * lto-streamer-out.c (output_function): Stream the functions
17736 * lto-streamer-in.c (input_function): Likewise.
17737 (lto_read_body): Do not override them here.
17739 2010-01-12 Joseph Myers <joseph@codesourcery.com>
17742 * c-typeck.c (build_c_cast): Fold value cast to union type before
17743 wrapping it in a CONSTRUCTOR.
17745 2010-01-12 Jakub Jelinek <jakub@redhat.com>
17747 PR rtl-optimization/42699
17748 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
17751 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17753 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17754 SUBTARGET_WARN_UNUSED_SPEC): Move ...
17755 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17756 SUBTARGET_WARN_UNUSED_SPEC): ... here
17757 * config/mips/iris5.h (LIBGCC_SPEC): Define.
17759 2010-01-12 Julian Brown <julian@codesourcery.com>
17761 * config/arm/neon-schedgen.ml (Utils): Don't try to
17762 open missing module.
17763 (find_with_result): New.
17765 2010-01-12 Jakub Jelinek <jakub@redhat.com>
17768 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
17769 sharing when canonicalizing ({lt,ge}u (plus a b) b).
17771 PR tree-optimization/42645
17772 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
17773 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
17774 decl_map, set processing_debug_stmt to -1 and return name without
17777 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
17779 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
17780 binutils version, and reword target configuration description.
17782 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
17784 * config/avr/avr.h (LINKER_NAME): Remove.
17786 2010-01-11 Janis Johnson <janis187@us.ibm.com>
17789 * config/rs6000/rs6000.c (rs6000_override_options): On targets
17790 that support VSX, warn for -mno-altivec if vsx is not disabled,
17793 2010-01-11 Joseph Myers <joseph@codesourcery.com>
17794 Shujing Zhao <pearly.zhao@oracle.com>
17796 PR translation/42469
17797 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
17798 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
17799 character between option name and help text.
17800 * c.opt (imultilib): Likewise.
17802 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
17804 * lto-streamer-out.c (output_unreferenced_globals): Output static
17807 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
17809 PR rtl-optimization/42621
17810 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
17811 optimizing for size.
17812 (duplicate_computed_gotos): Remove now-redundant check.
17814 2010-01-10 Steve Ellcey <sje@cup.hp.com>
17817 * configure.ac: Save and restore LDFLAGS and LIBS
17818 * configure: Regenerate.
17820 2010-01-10 Richard Guenther <rguenther@suse.de>
17822 PR middle-end/42667
17823 * builtins.c (fold_builtin_strlen): Add type argument and
17824 convert the resulting length to it.
17825 (fold_builtin_1): Adjust.
17827 2010-01-09 Jakub Jelinek <jakub@redhat.com>
17829 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
17830 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
17832 (num_insns_constant_wide): Adjust for that change.
17834 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17837 * web.c (union_defs): Add used argument, to combine uses of
17838 uninitialized regs.
17839 (entry_register): Adjust type and tests of used argument.
17840 (web_main): Widen used for new use. Pass it to union_defs.
17841 * df.h (union_defs): Adjust prototype.
17843 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17846 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
17847 uses in new incoming argument. Free body.
17848 (reset_debug_uses_in_loop): New.
17849 (analyze_insn_to_expand_var): Call the latter if the former found
17850 anything. Fix whitespace. Reject invalid dest overlaps before
17851 going through all insns in the loop.
17853 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17856 * haifa-sched.c (dying_use_p): Debug insns don't count.
17858 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17860 PR middle-end/42363
17861 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17862 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17863 (verify_gimple_call): Reject LHS in noreturn calls.
17865 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17869 * tree-vect-loop-manip.c (adjust_info): New type.
17870 (adjust_vec): New pointer to vector.
17871 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17872 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17873 (slpeel_update_phis_for_duplicate_loop): Use them.
17874 (slpeel_update_phi_nodes_for_guard1): Likewise.
17875 (slpeel_update_phi_nodes_for_guard2): Likewise.
17876 (slpeel_tree_peel_loop_to_edge): Likewise.
17877 (vect_update_ivs_after_vectorizer): Likewise.
17879 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17881 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17882 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17884 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17886 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17887 bogus uninitialized warning.
17889 2010-01-09 Richard Guenther <rguenther@suse.de>
17891 PR middle-end/42512
17892 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17893 the evolution is compatible with the initial condition.
17895 2010-01-09 Jakub Jelinek <jakub@redhat.com>
17897 * gcc.c (process_command): Update copyright notice dates.
17898 * gcov.c (print_version): Likewise.
17899 * gcov-dump.c (print_version): Likewise.
17900 * mips-tfile.c (main): Likewise.
17901 * mips-tdump.c (main): Likewise.
17903 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
17906 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17908 (rotlhi3_8): Delete.
17910 (rotlsi3_8): Delete.
17911 (rotlsi3_16): Delete.
17912 (rotlsi3_24): Delete.
17913 (rotl<mode>3): New.
17914 (*rotw<mode>3): New.
17915 (*rotb<mode>3): New.
17916 * config/avr/avr.c (avr_rotate_bytes): New function.
17917 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17919 2010-01-08 Steve Ellcey <sje@cup.hp.com>
17922 * configure.ac: Modify -rdynamic check.
17923 * configure: Regenerate.
17925 2010-01-08 DJ Delorie <dj@redhat.com>
17927 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17928 register popping order.
17930 2010-01-08 Richard Guenther <rguenther@suse.de>
17933 * c.opt (fsigned-char): Also let LTO handle this option.
17934 (funsigned-char): Likewise.
17936 2010-01-07 Richard Guenther <rguenther@suse.de>
17938 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17939 (gimple_op): Likewise.
17940 (gimple_op_ptr): Likewise.
17941 (gimple_assign_set_lhs): Remove gcc_assert.
17942 (gimple_assign_set_rhs1): Likewise.
17943 (gimple_assign_set_rhs2): Likewise.
17944 (gimple_call_set_lhs): Likewise.
17945 (gimple_call_set_fn): Likewise.
17946 (gimple_call_set_fndecl): Likewise.
17947 (gimple_call_fndecl): Likewise.
17948 (gimple_call_return_type): Likewise.
17949 (gimple_call_set_chain): Likewise.
17950 (gimple_call_num_args): Likewise.
17951 (gimple_call_set_arg): Likewise.
17952 (gimple_cond_set_code): Likewise.
17953 (gimple_cond_set_lhs): Likewise.
17954 (gimple_cond_set_rhs): Likewise.
17955 (gimple_cond_set_true_label): Likewise.
17956 (gimple_cond_set_false_label): Likewise.
17957 (gimple_label_set_label): Likewise.
17958 (gimple_goto_set_dest): Likewise.
17959 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
17960 (gimple_debug_bind_get_value): Likewise.
17961 (gimple_debug_bind_get_value_ptr): Likewise.
17962 (gimple_debug_bind_set_var): Likewise.
17963 (gimple_debug_bind_set_value): Likewise.
17964 (gimple_debug_bind_reset_value): Likewise.
17965 (gimple_debug_bind_has_value_p): Likewise.
17966 (gimple_return_retval_ptr): Remove gcc_assert.
17967 (gimple_return_retval): Likewise.
17968 (gimple_return_set_retval): Likewise.
17969 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
17970 (safe_referenced_var_iterator): Remove.
17971 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
17972 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
17973 (fill_referenced_var_vec): Remove.
17974 (first_readonly_imm_use): Remove redundant gcc_assert.
17975 (phi_arg_index_from_use): Combine gcc_asserts.
17976 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
17977 (first_imm_use_stmt): Remove redundant gcc_assert.
17978 * tree-cfg.c (verify_gimple_call): Verify function and chain
17979 operands. Verify arguments.
17980 (verify_types_in_gimple_stmt): Verify condition code and labels.
17982 2010-01-07 Richard Guenther <rguenther@suse.de>
17984 PR tree-optimization/42641
17985 * sese.c (rename_map_elt_info): Use the SSA name version, do
17988 2010-01-07 Jakub Jelinek <jakub@redhat.com>
17990 PR tree-optimization/42625
17991 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
17992 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
17994 2010-01-07 Duncan Sands <baldrick@free.fr>
17996 * Makefile.in (PLUGIN_HEADERS): Add version.h.
17998 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
18001 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18002 note itself is not function_invariant_p.
18004 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
18006 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18007 Do not add the DF_NOTE problem.
18008 * store-motion.c (execute_rtl_store_motion): Likewise.
18010 2010-01-07 Martin Jambor <mjambor@suse.cz>
18012 PR tree-optimization/42157
18013 * tree-sra.c (compare_access_positions): Stabilize sort if both
18014 accesses have integer types, return zero immediately if they are the
18017 2010-01-06 Richard Henderson <rth@redhat.com>
18019 PR middle-end/41883
18020 * haifa-sched.c (add_to_note_list): Merge into ...
18021 (concat_note_lists): ... here, and ...
18022 (unlink_other_notes, rm_other_notes): Merge into...
18023 (remove_notes): ... here. Create REG_SAVE_NOTEs for
18024 NOTE_INSN_EPILOGUE_BEG.
18026 2010-01-06 Richard Guenther <rguenther@suse.de>
18028 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18029 not inline regular functions into always-inline functions.
18031 2010-01-06 Nick Clifton <nickc@redhat.com>
18033 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18034 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18036 (OVERRIDE_OPTIONS): Delete.
18037 (OPTIMIZATION_OPTIONS): Define.
18038 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18039 * config/rx/rx.c (rx_handle_option): Issue an error message if
18040 -mcpu=rx200 and -fpu are used together.
18041 (rx_set_optimization_options): New function. Issue an error
18042 message if an optimization attribute attempts to reset the FPU/
18043 math optimization pairing.
18044 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18045 * config/rx/rx.opt: Set the default to 32-bit doubles.
18046 * config/rx/t-rx: Add multilibs for -nofpu option.
18047 * doc/invoke.texi: Update documentation of RX options.
18049 2010-01-06 Richard Guenther <rguenther@suse.de>
18051 * tree-ssa-pre.c (name_to_id): New global.
18052 (alloc_expression_id): Simplify SSA name handling.
18053 (lookup_expression_id): Likewise.
18054 (init_pre): Zero name_to_id.
18055 (fini_pre): Free it.
18057 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
18059 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18061 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
18064 * config/i386/sse.md (smaxv2di3): New.
18065 (umaxv2di3): Likewise.
18066 (sminv2di3): Likewise.
18067 (uminv2di3): Likewise.
18069 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
18072 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18073 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18074 (legitimize_tls_address): Likewise.
18075 (sparc_tls_referenced_p): Likewise.
18076 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18077 and adjust calls to legitimize_pic_address.
18078 (legitimate_constant_p) Use sparc_tls_referenced_p.
18079 (legitimate_pic_operand_p): Likewise.
18080 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18081 (sparc_tls_symbol_ref_1): Delete.
18082 (sparc_tls_referenced_p): Make static, recognize specific patterns.
18083 (legitimize_tls_address): Make static, handle CONST patterns.
18084 (legitimize_pic_address): Make static, remove unused parameter and
18085 adjust recursive calls.
18086 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18087 and adjust call to legitimize_pic_address.
18088 (sparc_output_mi_thunk): Likewise.
18090 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
18091 H.J. Lu <hongjiu.lu@intel.com>
18094 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18095 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18096 operands to make them signed.
18099 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18102 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18103 GTU to GT for V4SI and V2DI.
18105 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18106 (umin<mode>3): Removed.
18108 (uminv4si3): Likewise.
18110 2010-01-05 Martin Jambor <mjambor@suse.cz>
18112 PR tree-optimization/42462
18113 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18114 current_function_decl to helper functions and macros.
18116 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18119 * flags.h: Don't include real.h.
18120 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18121 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18122 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18123 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18124 * dominance.c: Update copyright.
18125 * gimple.c (walk_gimple_op): Remove inline.
18126 * tree-ssa-reassoc.c: Include real.h.
18127 * Makefile.in (FLAGS_H): Remove $(REAL_H).
18128 (tree-ssa-reassoc.o): Depend on $(REAL_H).
18130 2010-01-05 Nick Clifton <nickc@redhat.com>
18132 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18133 register to push into the stack frame when the accumulator has to
18134 be saved during interrupts.
18136 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
18138 * doc/invoke.texi: Remove the documentation about option
18139 -Wunreachable-code.
18140 * common.opt (Wunreachable-code): Preserved for backward
18142 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18143 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18144 the backward compatibility flag section.
18146 2010-01-05 Richard Guenther <rguenther@suse.de>
18148 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18150 2010-01-05 Jakub Jelinek <jakub@redhat.com>
18153 * cfgexpand.c (expand_one_var): Diagnose too large variables.
18155 PR tree-optimization/42508
18156 * tree-sra.c (convert_callers): Check for recursive call
18157 by comparing cgraph nodes instead of decls.
18158 (modify_function): Call ipa_modify_formal_parameters also
18159 on all same_body aliases.
18161 * cgraphunit.c (cgraph_materialize_all_clones): Compare
18162 cgraph nodes when checking for same_body aliases.
18164 2010-01-05 Richard Guenther <rguenther@suse.de>
18166 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18167 allocation and lookup.
18168 (get_or_alloc_expr_for_constant): Likewise.
18169 (phi_translate): Sink allocation.
18171 2010-01-04 Richard Guenther <rguenther@suse.de>
18173 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18174 a new entry only if needed.
18175 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18176 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18178 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18180 (phi_translate): Handle CONSTANTs early.
18182 2010-01-04 Martin Jambor <mjambor@suse.cz>
18184 PR tree-optimization/42398
18185 * tree-sra.c (struct access): Removed flag grp_different_types.
18186 (dump_access): Do not dump the removed flag.
18187 (sort_and_splice_var_accesses): Do not set the removed flag.
18188 (sra_modify_expr): Check for type compatibility directly.
18190 2010-01-04 Martin Jambor <mjambor@suse.cz>
18192 PR tree-optimization/42366
18193 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18194 edges with variable number of parameters.
18195 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18196 flag instead of asserting it.
18197 (ipa_read_node_info): Read uses_analysis_done flag.
18199 2010-01-04 Richard Guenther <rguenther@suse.de>
18201 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18202 iterative_hash_* as intended.
18203 (vn_reference_compute_hash): Likewise. Simplify hashing
18205 (vn_reference_lookup_2): Likewise.
18206 (vn_nary_op_compute_hash): Likewise.
18207 (vn_phi_compute_hash): Likewise.
18208 (expressions_equal_p): Remove strange code.
18209 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18210 (pre_expr_hash): Likewise. Simplify hashing SSA names.
18211 (bitmap_insert_into_set_1): Take value-id as parameter.
18212 (add_to_value): Pass it.
18213 (bitmap_insert_into_set): Likewise.
18214 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
18216 2010-01-04 Jakub Jelinek <jakub@redhat.com>
18219 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18220 (do_self_spec): For switches with SWITCH_IGNORE set set also
18221 SWITCH_IGNORE_PERMANENTLY.
18222 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18225 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
18227 * lto-streamer-out.c (output_unreferenced_globals): Output the full
18228 tree of an unreferenced global var.
18230 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18233 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18234 GTU to GT for V4SI and V2DI.
18236 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18237 (umin<mode>3): Removed.
18239 (uminv4si3): Likewise.
18241 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18244 * collect2.c (main): Turn on trace in collect2 if -v is passed
18247 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
18249 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
18250 description of expression operand.
18252 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
18254 * configure.ac: Add install-html to target_list for Make-hooks.
18255 * configure: Regenerate.
18256 * fortran/Make-lang.in (F95_HTMLFILES): New.
18257 (fortran.html): Use it.
18258 (fortran.install-html): New.
18259 * Makefile.in (install-html): Add lang.install-html.
18260 * java/Make-lang.in (JAVA_HTMLFILES): New.
18261 (java.html): Use it.
18262 (java.install-html): New.
18263 * objc/Make-lang.in (objc.install-html): New.
18264 * objcp/Make-lang.in (obj-c++.install-html): New.
18265 * cp/Make-lang.in (c++.install-html): New.
18266 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18267 * lto/Make-lang.in (lto.install-html): New.
18269 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18272 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18274 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
18276 PR rtl-optimization/41862
18277 * store-motion.c (store_killed_in_insn, compute_store_table,
18278 remove_reachable_equiv_notes, replace_store_insn,
18279 build_store_vectors): Ignore all DEBUG_INSNs.
18281 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18284 * common.opt: Add dumpdir.
18286 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18288 (option_map): Add --dumpdir.
18290 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18292 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18294 * opts.c (decode_options): Try dump_dir_name first if
18295 dump_base_name isn't an absolute path.
18296 (common_handle_option): Handle OPT_dumpdir.
18298 * toplev.c (dump_dir_name): New.
18299 (print_switch_values): Also ignore -dumpdir.
18301 * toplev.h (dump_dir_name): New.
18303 2010-01-03 Richard Guenther <rguenther@suse.de>
18305 PR tree-optimization/42589
18306 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18307 double-word expansion of bswap32.
18309 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
18311 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18312 with BLOCK_FOR_INSN.
18313 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18314 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18315 noce_process_if_block): Likewise.
18316 * gcse.c (compute_local_properties, insert_expr_in_table,
18317 insert_set_in_table, canon_list_insert, find_avail_set,
18318 pre_insert_copy_insn): Likewise.
18320 * basic-block.h (BLOCK_NUM): Move from here...
18321 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18323 2010-01-03 Richard Guenther <rguenther@suse.de>
18325 PR tree-optimization/42438
18326 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18327 contains_may_not_return_call flag.
18328 (BB_MAY_NOTRETURN): New.
18329 (valid_in_sets): Trapping nary operations are not valid
18330 in blocks that may not return.
18331 (insert_into_preds_of_block): Remove check for trapping expressions.
18332 (compute_avail): Compute also BB_MAY_NOTRETURN.
18334 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
18336 * doc/invoke.texi: Add 2010 to copyright years.
18338 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
18340 * config/sparc/sparc.c: Fix formatting nits.
18342 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
18343 Alexander Monakov <amonakov@ispras.ru>
18345 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18347 2010-01-02 Richard Guenther <rguenther@suse.de>
18349 PR middle-end/42577
18350 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18351 (simplify_switch_using_ranges): Mark to be removed edges
18354 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18356 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18358 * collect2.c (scan_libraries): Add missing argument in call to
18361 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
18364 * config/alpha/predicates.md (aligned_memory_operand): Return false
18366 (unaligned_memory_operand): Return true for CQImode.
18367 * config/alpha/alpha.c (get_aligned_mem): Assert that location
18368 doesn not cross aligned SImode word boundary.
18370 2010-01-02 Anatoly Sokolov <aesok@post.ru>
18372 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18374 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18375 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18377 2010-01-02 Richard Guenther <rguenther@suse.de>
18380 * toplev.c (compile_file): Emit LTO marker properly. Change
18381 it to __gnu_lto_v1.
18382 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18384 2010-01-01 Richard Guenther <rguenther@suse.de>
18387 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18389 2010-01-01 Richard Guenther <rguenther@suse.de>
18392 * c-decl.c (grokdeclarator): For zero-size arrays force
18393 structural equality checks as layout_type does.
18395 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18397 * builtins.c: Update copyright to 2010.
18399 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18402 * lto-streamer-out.c (produce_asm): Revert the last change.
18403 (copy_function): Likewise.
18405 * lto-streamer.c (lto_get_section_name): Skip any leading
18408 2010-01-01 Richard Guenther <rguenther@suse.de>
18410 PR middle-end/42559
18411 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18415 Copyright (C) 2010 Free Software Foundation, Inc.
18417 Copying and distribution of this file, with or without modification,
18418 are permitted in any medium without royalty provided the copyright
18419 notice and this notice are preserved.