]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
832cf30a5db63674a28c5c513d7e090daa75d910
[thirdparty/gcc.git] / gcc / ChangeLog
1 2010-07-07 Jie Zhang <jie@codesourcery.com>
2
3 * genautomata.c (output_automata_list_min_issue_delay_code):
4 Correctly decompress min_issue_delay.
5
6 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
7
8 PR rtl-optimization/44404
9 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
10 possible, use reg_overlap_mentioned_p instead.
11
12 2010-07-07 Duncan Sands <baldrick@free.fr>
13
14 PR middle-end/41355
15 * tree.c (build_function_type_skip_args): Copy the original type using
16 build_distinct_type_copy rather than copy_node.
17
18 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
19
20 PR target/44850
21 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
22 revision 161876.
23 (ix86_expand_prologue): Likewise.
24 (ix86_handle_fndecl_attribute): Likewise.
25 (ix86_asm_declare_function_name): Likewise.
26 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
27 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
28 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
29 * config/i386/i386-protos.h (ix86_asm_declare_function_name):
30 Likewise.
31 * doc/extend.texi: Likewise.
32
33 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
34
35 PR target/44844
36 * config/i386/i386.md (rdrand<mode>): Changed to expand to
37 retry if the carry flag isn't valid.
38 (rdrand<mode>_1): New.
39
40 2010-07-07 Richard Guenther <rguenther@suse.de>
41
42 PR middle-end/44790
43 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
44 for expanding the constant offset for MEM_REFs.
45
46 2010-07-07 Richard Guenther <rguenther@suse.de>
47
48 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
49 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
50 * gimple.h (is_gimple_operand): Remove.
51 * gimple.c (is_gimple_operand): Likewise.
52 (walk_gimple_op): Fix wi->val_only setting for calls.
53 * tree-cfg.c (verify_gimple_call): Fix argument validation.
54 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
55 invalid gimple calls.
56
57 2010-07-06 Jan Hubicka <jh@suse.cz>
58
59 * lto-cgraph.c (output_cgraph): Add missing declaration.
60
61 2010-07-06 Jan Hubicka <jh@suse.cz>
62
63 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
64 partition.
65
66 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
67
68 * doc/gimple.texi (GIMPLE_DEBUG): Document.
69 * doc/rtl.texi (Debug Information): New node.
70 (NOTE_INSN_VAR_LOCATION): Document.
71 (debug_insn): Likewise.
72 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
73
74 2010-07-07 Jan Hubicka <jh@suse.cz>
75
76 With parts by Richard Guenther
77
78 PR middle-end/44813
79 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
80 for functions passed by reference.
81 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
82 in memory when passed by reference.
83 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
84 beggining.
85 * ipa-split.c (split_function): Cleanup way return value is passed;
86 handle SSA DECL_BY_REFERENCE retvals.
87 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
88 DECL_BY_REFERENCE is set.
89 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
90 find_what_p_points_to): Handle RESULT_DECL.
91 * tree-inline.c (declare_return_variable): Get new entry_block argument;
92 when passing by reference ensure that RESULT_DECL is gimple_val.
93 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
94 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
95
96 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
97
98 PR rtl-optimization/44787
99 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
100 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
101
102 2010-07-06 Jan Hubicka <jh@suse.cz>
103
104 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
105 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
106 with body can prevail.
107 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
108 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
109 * cgraph.c (cgraph_get_node_or_alias): New function.
110 * cgraph.h (cgraph_get_node_or_alias): Declare.
111
112 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
113
114 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
115 support.
116 (ix86_expand_prologue): Likewise.
117 (ix86_handle_fndecl_attribute): Likewise.
118 (ix86_asm_declare_function_name): New function for
119 ASM_DECLARE_FUNCTION_NAME.
120 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
121 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
122 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
123 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
124 * doc/extend.texi: Adjust documentation about ms_hook_prologue
125 attribute.
126
127 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
128
129 * config/i386/i386.md (immediate_operand): New mode attribute.
130
131 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
132 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
133 using P mode iterator.
134 (pro_epilogue_adjust_stack_di_2): Rename from
135 pro_epilogue_adjust_stack_rex64_2.
136
137 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
138
139 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
140
141 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
142 through gen_mov_insv_1 function pointer.
143 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
144 gen_truncxf<mode>2 through gen_truncxf function pointer.
145 (remainder<mode>3): Ditto.
146 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
147 (allocate_stack): Call gen_allocate_stack_worker_64 or
148 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
149 function pointer.
150 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
151 function pointer.
152
153 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
154
155 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
156 operand constraint instead of <r><i>m.
157
158 2010-07-06 Richard Guenther <rguenther@suse.de>
159
160 PR middle-end/44828
161 * convert.c (convert_to_integer): Watch out for overflowing
162 MULT_EXPR as well.
163
164 2010-07-05 Jan Hubicka <jh@suse.cz>
165
166 * lto-streamer.c (write_symbol_vec): Rename to ...
167 (write_symbol) ... this one; write only symbol given and when
168 present in cache. Sanity check that what is defined is present
169 in cgraph/varpool with body/finalized decl.
170 (write_symbols_of_kind): Remove.
171 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
172 pairs to produce symtab.
173 (produce_asm_for_decls): Update call of produce_symtab; don't do so
174 when doing WPA streaming.
175
176 2010-07-05 Jan Hubicka <jh@suse.cz>
177
178 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
179 function is still available to fold into.
180
181 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
182
183 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
184 * function.h (struct_function): Change type of local_decls field
185 to a VEC.
186 (add_local_decl): New function.
187 (FOR_EACH_LOCAL_DECL): New macro.
188 * cfgexpand.c (init_vars_expansion): Adjust for new type of
189 cfun->local_decls.
190 (estimated_stack_frame_size): Likewise.
191 (expand_used_vars): Likewise.
192 * cgraphbuild.c (build_cgraph_edges): Likewise.
193 * function.c (instantiate_decls_1): Likewise.
194 * ipa-struct-reorg.c (build_data_structure): Likewise.
195 * ipa-type-escape.c (analyze_function): Likewise.
196 * lto-streamer-in.c (input_function): Likewise.
197 * lto-streamer-out.c (output_function): Likewise.
198 * tree-ssa-live.c (remove_unused_locals): Likewise.
199 * tree.c (free_lang_data_in_decl): Likewise.
200 (find_decls_types_in_node): Likewise.
201 * omp-low.c (remove_exit_barrier): Likewise.
202 (expand_omp_taskreg): Likewise.
203 (list2chain): Rename to...
204 (vec2chain): ...this. Adjust.
205 * cgraphunit.c (assemble_thunk): Call add_local_decl.
206 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
207 * gimple-low.c (record_vars_into): Likewise.
208 * tree-inline.c (remap_decls): Likewise.
209 (declare_return_variable): Likewise.
210 (declare_inline_vars): Likewise.
211 (copy_forbidden): Adjust for new type of cfun->local_decls.
212 (add_local_variables): New function.
213 (expand_call_inline): Call it.
214 (tree_function_versioning): Likewise.
215
216 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
217
218 AVX Programming Reference (June, 2010)
219 * config/i386/cpuid.h (bit_F16C): New.
220 (bit_RDRND): Likewise.
221 (bit_FSGSBASE): Likewise.
222
223 * config/i386/i386-builtin-types.def: Add
224 "DEF_FUNCTION_TYPE (UINT16)", function types for
225 float16 <-> float conversions and
226 "DEF_FUNCTION_TYPE (VOID, UINT64)".
227
228 * config/i386/i386-c.c (ix86_target_macros_internal): Support
229 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
230 OPTION_MASK_ISA_F16C.
231
232 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
233 (OPTION_MASK_ISA_RDRND_SET): Likewise.
234 (OPTION_MASK_ISA_F16C_SET): Likewise.
235 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
236 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
237 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
238 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
239 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
240 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
241 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
242 (override_options): Handle them.
243 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
244 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
245 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
246 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
247 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
248 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
249 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
250 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
251 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
252 (bdesc_args): Likewise.
253 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
254 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
255 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
256 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
257 Handle non-memory store.
258
259 * config/i386/i386.h (TARGET_FSGSBASE): New.
260 (TARGET_RDRND): Likewise.
261 (TARGET_F12C): Likewise.
262
263 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
264 (UNSPEC_VCVTPS2PH): Likewise.
265 (UNSPECV_RDFSBASE): Likewise.
266 (UNSPECV_RDGSBASE): Likewise.
267 (UNSPECV_WRFSBASE): Likewise.
268 (UNSPECV_WRGSBASE): Likewise.
269 (UNSPECV_RDRAND): Likewise.
270 (rdfsbase<mode>): Likewise.
271 (rdgsbase<mode>): Likewise.
272 (wrfsbase<mode>): Likewise.
273 (wrgsbase<mode>): Likewise.
274 (rdrand<mode>): Likewise.
275
276 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
277
278 * config/i386/immintrin.h (_rdrand_u16): New.
279 (_rdrand_u32): Likewise.
280 (_readfsbase_u32): Likewise.
281 (_readfsbase_u64): Likewise.
282 (_readgsbase_u32): Likewise.
283 (_readgsbase_u64): Likewise.
284 (_writefsbase_u32): Likewise.
285 (_writefsbase_u64): Likewise.
286 (_writegsbase_u32): Likewise.
287 (_writegsbase_u64): Likewise.
288 (_rdrand_u64): Likewise.
289 (_cvtsh_ss): Likewise.
290 (_mm_cvtph_ps): Likewise.
291 (_mm256_cvtph_ps): Likewise.
292 (_cvtss_sh): Likewise.
293 (_mm_cvtps_ph): Likewise.
294 (_mm256_cvtps_ph): Likewise.
295
296 * config/i386/sse.md (vcvtph2ps): New.
297 (*vcvtph2ps_load): Likewise.
298 (vcvtph2ps256): Likewise.
299 (vcvtps2ph): Likewise.
300 (*vcvtps2ph): Likewise.
301 (*vcvtps2ph_store): Likewise.
302 (vcvtps2ph256): Likewise.
303
304 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
305
306 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
307
308 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
309
310 PR bootstrap/44512
311 * genenums.c (main): Output include of insn-constants.h
312 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
313
314 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
315
316 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
317 (override_options): Initialize it.
318 (ix86_expand_prologue): Use it.
319
320 2010-07-05 Jakub Jelinek <jakub@redhat.com>
321
322 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
323
324 2010-07-05 Anatoly Sokolov <aesok@post.ru>
325
326 * double-int.h (fit_double_type): Remove declaration.
327 * double-int.c (fit_double_type): Remove function.
328 * tree.h (int_fits_type_p): Adjust prototype.
329 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
330 instead of fit_double_type.
331 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
332 instead of fit_double_type and build_int_cst_wide.
333 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
334 instead of fit_double_type and build_int_cst_wide.
335 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
336 of fit_double_type.
337
338 2010-07-05 Jan Hubicka <jh@suse.cz>
339
340 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
341 in_other_partition.
342 * lto-cgraph.c (referenced_from_other_partition_p,
343 reachable_from_other_partition_p): Use in_other_partition flags.
344 (output_node, output_varpool_node): COMDAT nodes always have private
345 copies and thus are never used from other partition.
346
347 2010-07-05 Anatoly Sokolov <aesok@post.ru>
348
349 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
350 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
351 * config/ia64/ia64.c Include reload.h.
352 (ia64_memory_move_cost): New function.
353 (TARGET_MEMORY_MOVE_COST): Define.
354 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
355 memory_move_cost.
356
357 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
358
359 PR middle-end/42505
360 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
361 comments about cost model.
362 (try_add_cand_for): Add second strategy for choosing initial set
363 based on original IVs, controlled by ORIGINALP argument.
364 (get_initial_solution): Add ORIGINALP argument.
365 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
366 (find_optimal_iv_set): Try two different strategies for choosing
367 the IV set, and return the one with lower cost.
368
369 2010-07-05 Richard Guenther <rguenther@suse.de>
370
371 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
372
373 2010-07-05 Richard Guenther <rguenther@suse.de>
374
375 * tree.c (reference_alias_ptr_type): New function.
376 * tree.h (reference_alias_ptr_type): Declare.
377 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
378 allow non-TARGET_MEM_REF new refs.
379 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
380 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
381 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
382 (create_mem_ref): Get alias pointer type. Adjust calls to
383 create_mem_ref_raw.
384 (maybe_fold_tmr): Likewise.
385 * tree-flow.h (create_mem_ref): Adjust prototype.
386
387 2010-07-05 Jakub Jelinek <jakub@redhat.com>
388
389 PR c++/44808
390 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
391 *from_p is VAR_DECL.
392
393 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
394
395 * tree.h (build_call_list): Remove.
396 * tree.c (build_call_list): Remove.
397
398 2010-07-05 Richard Guenther <rguenther@suse.de>
399
400 * double-int.h (double_int_sub): Declare.
401 * double-int.c (double_int_sub): New function.
402 * dwarf2out.c (field_byte_offset): Use it.
403 * fixed-value.c (do_fixed_add): Likewise.
404 (do_fixed_multiply): Likewise.
405 (do_fixed_divide): Likewise.
406 * tree-predcom.c (add_ref_to_chain): Likewise.
407 (determine_roots_comp): Likewise.
408 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
409
410 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
411
412 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
413 implementations.
414
415 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
416
417 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
418 * arm-modes.def (CC_NOTB): Don't define.
419 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
420 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
421 (LTUGEU): New code_iterator.
422 (cnb, optab): New corresponding code_attrs.
423 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
424 to canonical form. Operands 1 and 2 are commutative. Parametrize
425 using LTUGEU.
426 (addsi3_carryin_shift_<optab>): Likewise.
427 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
428 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
429 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
430 (subsi3_compare): Renamed from subsi3_compare0_c.
431 Change CC_NOTB to CC.
432 (arm_subsi3_insn): Allow constants for operand 0.
433 (compare_scc peephole for eq case): New.
434 (compare_scc splitters): Change CC_NOTB to CC.
435
436 2010-07-05 Richard Guenther <rguenther@suse.de>
437
438 * tree-ssa-loop-im.c (for_each_index): Do not handle
439 ALIGN_INDIRECT_REF.
440 (gen_lsm_tmp_name): Likewise.
441 * tree-dump.c (dequeue_and_dump): Likewise.
442 * tree-pretty-print.c (dump_generic_node): Likewise.
443 (op_code_prio): Likewise.
444 (op_symbol_code): Likewise.
445 * tree.c (staticp): Likewise.
446 (build1_stat): Likewise.
447 * tree.h (INDIRECT_REF_P): Likewise.
448 * fold-const.c (maybe_lvalue_p): Likewise.
449 (operand_equal_p): Likewise.
450 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
451 (ao_ref_init_from_vn_reference): Likewise.
452 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
453 (find_interesting_uses_address): Likewise.
454 * dwarf2out.c (loc_list_from_tree): Likewise.
455 * gimplify.c (gimplify_expr): Likewise.
456 * tree-eh.c (tree_could_trap_p): Likewise.
457 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
458 * cfgexpand.c (expand_debug_expr): Likewise.
459 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
460 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
461 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
462 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
463 * tree-ssa-operands.c (get_expr_operands): Likewise.
464 * expr.c (safe_from_p): Likewise.
465 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
466 * tree-vect-data-refs.c (vect_setup_realignment): Build
467 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
468 * tree-vect-stmts.c (vectorizable_load): Likewise.
469 * tree.def (ALIGN_INDIRECT_REF): Remove.
470
471 2010-07-05 Richard Guenther <rguenther@suse.de>
472
473 PR tree-optimization/44784
474 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
475 for inserted stmts.
476 (find_or_generate_expression): Fix SCCVN insertion check.
477
478 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
479
480 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
481 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
482 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
483 directives.
484
485 2010-07-05 Ira Rosen <irar@il.ibm.com>
486
487 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
488 statements that are not vectorized.
489 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
490 in INSIDE_COST.
491
492 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
493
494 PR bootstrap/44820
495 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
496
497 2010-07-05 Richard Guenther <rguenther@suse.de>
498
499 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
500 RESULT_DECLs properly.
501
502 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
503
504 PR rtl-optimization/44695
505 * config/i386/i386.md (extract_code): Removed.
506 (<u>divmodqi4): Likewise.
507 (divmodqi4): New.
508 (udivmodqi4): Likewise.
509 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
510 (udivmodhiqi3): Likewise.
511
512 2010-07-04 Jan Hubicka <jh@suse.cz>
513
514 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
515
516 2010-07-04 Jan Hubicka <jh@suse.cz>
517
518 * cgraphunit.c (init_cgraph): Only initialize dump file if it
519 is not already initialized.
520
521 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
522
523 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
524 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
525 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
526 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
527 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
528 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
529 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
530 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
531 (sync_new_nand_optab): Redefine as macros.
532 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
533 Delete.
534 (direct_optab_index): New enum.
535 (direct_optab_d): New structure.
536 (direct_optab): New typedef.
537 (direct_optab_table): Declare.
538 (direct_optab_handler, set_direct_optab_handler): New functions.
539 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
540 (sync_lock_release_optab): New macros.
541 * optabs.c (direct_optab_table): New variable.
542 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
543 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
544 cmpstr_optab and cmpstrn_optab.
545 (emit_conditional_move): Likewise for movcc_optab.
546 (can_conditionally_move_p): Likewise for movcc_gen_code.
547 (init_insn_codes): Clear direct_optab_table.
548 (init_optabs): Don't initialize the new "direct optabs" here.
549 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
550 vcond_gen_code.
551 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
552 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
553 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
554 (expand_sync_operation): Likewise other sync_*_optabs.
555 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
556 to sync_compare_and_swap_optab.
557 (expand_sync_lock_test_and_set): Use direct_optab_handler for
558 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
559 to the names of both.
560 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
561 cmpstr_optab and cmpstrn_optab.
562 (expand_builtin_lock_release): Likewise sync_lock_release.
563 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
564 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
565 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
566 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
567 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
568 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
569 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
570 (sync_lock_test_and_set, sync_lock_release): Delete.
571 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
572 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
573 * genopinit.c (optabs): Use set_direct_optab_handler for the new
574 macro optabs.
575 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
576 the "optab" local variable. Use direct_optab_handler for optab and
577 sync_compare_and_swap_optab.
578 * reload1.c (reload_in_optab, reload_out_optab): Delete.
579 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
580 reload_in_optab and reload_out_optab.
581 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
582 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
583 * config/pa/pa.c (pa_secondary_reload): Likewise.
584 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
585 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
586 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
587 (VMSupportsCS8_builtin): Likewise.
588
589 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
590
591 * optabs.h (optab_handlers): Change type of insn_code to int.
592 (optab_handler, set_optab_handler, convert_optab_handler)
593 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
594 CODE_FOR_nothing".
595 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
596 (init_insn_codes): Zero both the above arrays.
597 (init_optabs): Never call init_insn_codes first time around.
598
599 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
600
601 * optabs.h (optab_handler, convert_optab_handler): Turn into
602 inline functions that return an insn code.
603 (set_optab_handler, set_convert_optab_handler): New functions.
604 * builtins.c: Replace optab_handler(X)->insn_code with
605 optab_handler or set_optab_handler thoughout. Likewise
606 convert_optab_handler(X)->insn_code with convert_optab_handler
607 and set_convert_optab_handler.
608 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
609 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
610 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
611 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
612 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
613 config/spu/spu.c: Likewise.
614
615 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
616
617 PR target/44531
618 * config.gcc (sh*-*-*): Use regular expressions instead of
619 the 'i' modifier for sed substitutions.
620
621 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
622
623 * gimple.c (gimple_body): Comments added.
624
625 2010-07-04 Richard Guenther <rguenther@suse.de>
626
627 PR middle-end/44809
628 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
629 of an INDIRECT_REF.
630
631 2010-07-04 Richard Guenther <rguenther@suse.de>
632
633 PR tree-optimization/44479
634 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
635 extra SSA name copy statements which preserves points-to
636 information.
637 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
638 Copy points-to information for all pointers. Properly handle
639 MEM_REFs.
640 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
641 copy statements.
642 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
643 dependency.
644
645 2010-07-04 Richard Guenther <rguenther@suse.de>
646
647 PR middle-end/44785
648 * tree-inline.c (initialize_inlined_parameters): Do not
649 re-use pointer-map slot over remap_type call.
650
651 2010-07-04 Richard Guenther <rguenther@suse.de>
652
653 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
654
655 2010-07-04 Richard Guenther <rguenther@suse.de>
656
657 PR tree-optimization/44656
658 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
659 again after value-replacing in the defintions lhs.
660
661 2010-07-04 Ira Rosen <irar@il.ibm.com>
662 Revital Eres <eres@il.ibm.com>
663
664 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
665 Document new arguments.
666 * doc/tm.texi: Regenerate.
667 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
668 Handle unaligned store.
669 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
670 * target.def (builtin_vectorization_cost): Add new arguments.
671 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
672 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
673 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
674 (vect_vfa_segment_size): Fix indentation.
675 * tree-vectorizer.h (struct _vect_peel_info): New.
676 (struct _vect_peel_extended_info): New.
677 (struct _loop_vec_info): Add new field for peeling hash table and a
678 macro for its access.
679 (VECT_MAX_COST): Define.
680 (vect_get_load_cost): Declare.
681 (vect_get_store_cost, vect_get_known_peeling_cost,
682 vect_get_single_scalar_iteraion_cost): Likewise.
683 (vect_supportable_dr_alignment): Add new argument.
684 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
685 field.
686 (destroy_loop_vec_info): Free peeling hash table.
687 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
688 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
689 vect_analyze_slp. Fix indentation.
690 (vect_get_single_scalar_iteraion_cost): New function.
691 (vect_get_known_peeling_cost): Likewise.
692 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
693 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
694 statement. Move outside cost calculation inside unknown peeling case.
695 Call vect_get_known_peeling_cost for known amount of peeling.
696 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
697 reference to the print message of forced alignment.
698 (vect_verify_datarefs_alignment): Update call to
699 vect_supportable_dr_alignment.
700 (vect_get_data_access_cost): New function.
701 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
702 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
703 vect_peeling_hash_choose_best_peeling): Likewise.
704 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
705 to store all the accesses in the loop and find best possible access to
706 align using peeling for known alignment case. For unknown alignment
707 check if stores are preferred or if peeling is worthy.
708 (vect_find_same_alignment_drs): Analyze pairs of loads too.
709 (vect_supportable_dr_alignment): Add new argument and check aligned
710 accesses according to it.
711 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
712 (cost_for_stmt): Call vect_get_stmt_cost.
713 (vect_model_simple_cost): Likewise.
714 (vect_model_store_cost): Call vect_get_stmt_cost. Call
715 vect_get_store_cost to calculate the cost of the statement.
716 (vect_get_store_cost): New function.
717 (vect_model_load_cost): Call vect_get_stmt_cost. Call
718 vect_get_load_cost to calculate the cost of the statement.
719 (vect_get_load_cost): New function.
720 (vectorizable_store): Update call to vect_supportable_dr_alignment.
721 (vectorizable_load): Likewise.
722 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
723 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
724 arguments. Handle unaligned store.
725 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
726 (rs6000_builtin_support_vector_misalignment): Return true for word and
727 double word alignments for VSX.
728 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
729 vect_supportable_dr_alignment and builtin_vectorization_cost.
730
731 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
732
733 PR target/44597
734 * config/pa/predicates.md (prefetch_cc_operand): Remove.
735 (prefetch_nocc_operand): Likewise.
736 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
737 (prefetch_20): New insn.
738 (prefetch_cc): Remove.
739 (prefetch_nocc): Likewise.
740
741 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
742
743 * expr.c (vector_mode_valid_p): Move to c-common.c.
744 * expr.h (vector_mode_valid_p): Do not declare here.
745 * system.h: Poison GCC_EXPR_H in front-ends.
746 * Makefile.in: Update dependencies.
747
748 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
749
750 PR target/44705
751 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
752
753 2010-07-03 Jan Hubicka <jh@suse.cz>
754
755 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
756 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
757 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
758 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
759 Likewise.
760
761 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
762 Update timevars.V
763 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
764 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
765 TV_IPA_LTO_DECL_OUT): New.
766 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
767
768 2010-07-03 Jan Hubicka <jh@suse.cz>
769
770 * ipa-inline.c (update_edge_key): Break out from ...
771 update_callers_keys): ... here;
772 (update_callee_keys): Update only the edges from caller to callee.
773 (update_all_calle_keys): Do what update_calle_keys did.
774 (decide_inlining_of_small_functions): Avoid recomputing of all
775 callees when badness increase.
776
777 2010-07-03 Jie Zhang <jie@codesourcery.com>
778
779 * config/arm/arm.c (arm_attr_length_move_neon): New.
780 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
781 * config/arm/neon.md (define_mode_attr V_slen): Remove.
782 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
783 to compute length attribute.
784
785 2010-07-03 Jie Zhang <jie@codesourcery.com>
786
787 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
788 as predicate for operand 1 and remove its constraint.
789 * config/arm/predicates.md (vfp_register_operand): New.
790 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
791 (*push_fp_multi): Likewise.
792
793 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
794
795 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
796
797 2010-07-03 Jan Hubicka <jh@suse.cz>
798
799 * config/i386/i386.c (override_options): Revert accidental commit.
800
801 2010-07-02 Le-Chun Wu <lcwu@google.com>
802
803 PR c++/44128
804 * doc/invoke.texi: Update documentation of -Wshadow.
805
806 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
807 Julian Brown <julian@codesourcery.com>
808 Sandra Loosemore <sandra@codesourcery.com>
809
810 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
811 comparisons. Adjust to take both operands.
812 (arm_select_cc_mode): Handle DImode comparisons.
813 (arm_gen_compare_reg): Generate a scratch register for DImode
814 comparisons which require one. Use xor for Thumb equality checks.
815 (arm_const_double_by_immediates): New.
816 (arm_print_operand): Allow 'Q' and 'R' for constants.
817 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
818 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
819 arm_canonicalize_comparison.
820 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
821 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
822 prototype.
823 (arm_const_double_by_immediates): Declare.
824 * config/arm/constraints.md (Di): New constraint.
825 * config/arm/predicates.md (arm_immediate_di_operand)
826 (arm_di_operand, cmpdi_operand): New.
827 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
828 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
829 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
830 (cstoredi4): Handle non-Cirrus also.
831
832 2010-07-02 Julian Brown <julian@codesourcery.com>
833 Sandra Loosemore <sandra@codesourcery.com>
834
835 PR target/43703
836 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
837 (smax<mode>3): Disable for NEON float modes when
838 flag_unsafe_math_optimizations is false.
839 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
840 (*mul<mode>3_neon)
841 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
842 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
843 for NEON float modes when flag_unsafe_math_optimizations is false.
844 (quad_halves_<code>v4sf): Only enable if
845 flag_unsafe_math_optimizations is true.
846 * doc/invoke.texi (ARM Options): Add note about floating point
847 vectorization requiring -funsafe-math-optimizations.
848
849 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
850 Julian Brown <julian@codesourcery.com>
851
852 * config/arm/neon.md (UNSPEC_VABA): Delete.
853 (UNSPEC_VABAL): Delete.
854 (UNSPEC_VABS): Delete.
855 (UNSPEC_VMUL_N): Delete.
856 (adddi3_neon): New.
857 (subdi3_neon): New.
858 (mul<mode>3add<mode>_neon): Make the pattern named.
859 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
860 (neon_vadd<mode>): Replace with define_expand, and move the remaining
861 unspec parts...
862 (neon_vadd<mode>_unspec): ...to this.
863 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
864 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
865 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
866 (neon_vaba<mode>): Rewrite in terms of vabd.
867 (neon_vabal<mode>): Rewrite in terms of vabdl.
868 (neon_vabs<mode>): Rewrite without unspec.
869 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
870 (*arm_subdi3): Likewise.
871 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
872 No_op attribute to disable assembly output checks.
873 * config/arm/arm_neon.h: Regenerated.
874 * doc/arm-neon-intrinsics.texi: Regenerated.
875
876 2010-07-02 Jan Hubicka <jh@suse.cz>
877
878 * ipa-split.c (split_function): For aggregate values, set the return
879 slot optimization bit. When passing DECL_BY_REFERENCE, produce
880 *<retval> = fncall.part ().
881 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
882
883 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
884
885 * config/arm/neon.md (UNSPEC_VAND): Delete.
886 (UNSPEC_VBIC): Delete.
887 (UNSPEC_VCLZ): Delete.
888 (UNSPEC_VCNT): Delete.
889 (UNSPEC_VEOR): Delete.
890 (UNSPEC_VORN): Delete.
891 (UNSPEC_VORR): Delete.
892 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
893 core registers too.
894 (anddi3_neon): Likewise.
895 (orndi3_neon): Likewise.
896 (bicdi3_neon): Likewise.
897 (xordi3_neon): Likewise.
898 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
899 rid of unspec and handle unused operand.
900 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
901 * config/arm/predicates.md (imm_for_neon_logic_operand):
902 Require TARGET_NEON.
903 (imm_for_neon_inv_logic_operand): Likewise.
904 * config/arm/arm.md (define_split for logical_binary_operator):
905 Disable for NEON registers.
906 (anddi3): Add new define_expand, and rename the insn. Disable
907 this insn for NEON, where anddi3_neon now applies.
908 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
909 (iordi3): As for anddi3.
910 (xordi3): Likewise.
911 * config/arm/neon.ml (Vand): Split DImode variants and mark them
912 as No_op to disable testing for exact instruction match.
913 (Vorr): Likewise.
914 (Veor): Likewise.
915 (Vbic): Likewise.
916 (Vorn): Likewise.
917 * config/arm/arm_neon.h: Regenerated.
918 * doc/arm-neon-intrinsics.texi: Regenerated.
919
920 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
921
922 * expr.h (emit_stack_probe): Declare.
923 * explow.c (emit_stack_probe): Make global.
924 (anti_adjust_stack_and_probe): Fix comments.
925 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
926 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
927 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
928 * config/sparc/sparc.c: Include except.h.
929 (sparc_emit_probe_stack_range): New function.
930 (output_probe_stack_range): Likewise.
931 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
932 built-in stack checking is enabled.
933 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
934 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
935 (probe_stack_range): New insn.
936
937 2010-07-02 Richard Guenther <rguenther@suse.de>
938
939 PR target/43958
940 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
941 for argument alignment.
942
943 2010-07-02 Jan Hubicka <jh@suse.cz>
944
945 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
946 walk backwards from entry_bb to check only those basic block of header
947 that might lead to execution of split part.
948 (consider_split) ... here.
949 (find_return_bb): Allow assignment in return BB.
950 (find_retval): New.
951 (split_function): Fix name of cloned function; take care of updating
952 return value in return_bb containing move.
953
954 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
955
956 PR target/44771
957 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
958 used variable insn.
959
960 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
961
962 * implicit-zee.c (combine_reaching_defs): Fix long lines.
963 (is_set_with_extension_DI): Delete.
964 (struct zero_extend_info): New structure.
965 (add_removable_zero_extend): New function.
966 (find_removable_zero_extends): Use note_stores to find SETs.
967 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
968
969 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
970
971 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
972 is_miss_rate_acceptable. Pull total_positions computation
973 out of the loops. Early return if miss_positions exceeds
974 the acceptable threshold.
975 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
976 is_miss_rate_acceptable after renaming of compute_miss_rate.
977
978 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
979
980 PR middle-end/44576
981 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
982 of 1000) for miss rate if the address diference is greater than or
983 equal to the cache line size (the two reference will never hit the
984 same cache line).
985
986 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
987
988 PR target/42835
989 * config/arm/arm-modes.def (CC_NOTB): New mode.
990 * config/arm/arm.c (get_arm_condition_code): Handle it.
991 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
992 * config/arm/arm.md (subsi3_compare0_c): New pattern.
993 (compare_scc): Now a define_and_split. Add a number of extra
994 splitters before it.
995
996 PR target/42172
997 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
998 and ZERO_EXTEND.
999 (arm_rtx_costs_1): Likewise.
1000 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1001 * config/arm/arm.md (is_arch6): New attribute.
1002 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1003 extendqisi2): Tighten the code somewhat, avoiding invalid
1004 RTL to occur in the expander patterns.
1005 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1006 (thumb1_zero_extendhisi2_v6): Delete.
1007 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1008 (thumb1_extendhisi2_v6): Delete.
1009 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1010 (thumb1_extendqisi2_v6): Delete.
1011 (zero_extendhisi2 for register input splitter): New.
1012 (zero_extendqisi2 for register input splitter): New.
1013 (thumb1_extendhisi2 for register input splitter): New.
1014 (extendhisi2 for register input splitter): New.
1015 (extendqisi2 for register input splitter): New.
1016 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1017 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1018 and add support for a register alternative requiring a split.
1019 (thumb1_zero_extendqisi2): Likewise.
1020 (arm_zero_extendqisi2): Likewise.
1021 (arm_extendhisi2): Likewise.
1022 (arm_extendqisi2): Likewise.
1023
1024 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1025
1026 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1027 instead of an unspec.
1028 (neon_expand_vector_init): Likewise.
1029 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1030 (UNSPEC_VDUP_LANE): Delete.
1031 (UNSPEC VDUP_N): Delete.
1032 (UNSPEC_VGET_HIGH): Delete.
1033 (UNSPEC_VGET_LANE): Delete.
1034 (UNSPEC_VGET_LOW): Delete.
1035 (UNSPEC_VMVN): Delete.
1036 (UNSPEC_VSET_LANE): Delete.
1037 (V_double_vector_mode): New.
1038 (vec_set<mode>_internal): Make code emitted match that for the
1039 corresponding intrinsics.
1040 (vec_setv2di_internal): Likewise.
1041 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1042 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1043 (neon_vset_lane<mode>): Combine double and quad patterns and
1044 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1045 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1046 (neon_vdup_n<mode>): Rewrite RTL without unspec.
1047 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1048 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1049 with neon_vdup_lanev2di, adjusting the pattern from the latter
1050 to be predicable for consistency.
1051 (neon_vdup_lane<mode>_internal): New.
1052 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1053 to avoid using an unspec.
1054 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1055 (neon_vdup_lanev2di): Turn into a define_expand.
1056 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1057 (neon_vget_high<mode>): Replace with....
1058 (neon_vget_highv16qi): New pattern using canonical RTL.
1059 (neon_vget_highv8hi): Likewise.
1060 (neon_vget_highv4si): Likewise.
1061 (neon_vget_highv4sf): Likewise.
1062 (neon_vget_highv2di): Likewise.
1063 (neon_vget_low<mode>): Replace with....
1064 (neon_vget_lowv16qi): New pattern using canonical RTL.
1065 (neon_vget_lowv8hi): Likewise.
1066 (neon_vget_lowv4si): Likewise.
1067 (neon_vget_lowv4sf): Likewise.
1068 (neon_vget_lowv2di): Likewise.
1069
1070 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1071 test for this emitting vmov.
1072 (Vset_lane): Likewise.
1073 (Vdup_n): Likewise.
1074 (Vmov_n): Likewise.
1075
1076 * doc/arm-neon-intrinsics.texi: Regenerated.
1077
1078 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1079
1080 * config/arm/neon.md (vec_extractv2di): Correct error in register
1081 numbering to reconcile with neon_vget_lanev2di.
1082
1083 2010-07-02 Richard Guenther <rguenther@suse.de>
1084
1085 * tree-ssa-structalias.c (pt_solution_set_var): New function.
1086 * tree-ssa-alias.h (pt_solution_set_var): Declare.
1087 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1088 points-to information.
1089
1090 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
1091
1092 * config/s390/s390.c (override_options): Adopt prefetching
1093 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1094
1095 2010-07-02 Jan Hubicka <jh@suse.cz>
1096
1097 * df-problems.c (df_kill_notes): Do not collect dead notes.
1098 (df_set_note): Just call add_reg_note.
1099 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1100 df_create_unused_note): Do not deal with lists of old notes.
1101 (df_note_bb_compute): Likewise.
1102
1103 2010-07-02 Richard Guenther <rguenther@suse.de>
1104
1105 * tree-ssa-structalias.c (find_func_aliases): Handle
1106 pointer alignment via BIT_AND_EXPR.
1107 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1108
1109 2010-07-02 Richard Guenther <rguenther@suse.de>
1110
1111 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1112 mismatching number of dimensions properly.
1113
1114 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1115
1116 PR target/44707
1117 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1118 (lo_sum (high ...) ...) patterns generated by earlier passes.
1119
1120 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1121
1122 * doc/install.texi (Prerequisites): Document Perl requirement on
1123 Solaris 2.
1124 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1125
1126 2010-07-02 Richard Guenther <rguenther@suse.de>
1127
1128 PR middle-end/44777
1129 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1130
1131 2010-07-02 Jan Hubicka <jh@suse.cz>
1132
1133 PR middle-end/44706
1134 * predict.c (predict_paths_for_bb): Handle case when control dependence
1135 BB has only abnormal edges.
1136
1137 2010-07-02 Richard Guenther <rguenther@suse.de>
1138
1139 PR tree-optimization/44748
1140 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1141 the embedded conversion in MEM_REFs.
1142
1143 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
1144
1145 * reload.c: Include toplev.h.
1146 * recog.c: Likewise.
1147 * Makefile.in: Adjust dependencies.
1148
1149 2010-07-01 Jakub Jelinek <jakub@redhat.com>
1150
1151 PR debug/44694
1152 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1153 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1154
1155 2010-07-01 Richard Guenther <rguenther@suse.de>
1156
1157 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1158 types for offsets.
1159
1160 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
1161
1162 PR target/44732
1163 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1164 Fix argument types.
1165
1166 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
1167
1168 PR target/44727
1169 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1170 Make sure operand 0 dies.
1171
1172 2010-07-01 Richard Guenther <rguenther@suse.de>
1173
1174 PR middle-end/42834
1175 PR middle-end/44468
1176 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1177 * doc/generic.texi (References to storage): Document MEM_REF.
1178 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1179 (print_call_name): Likewise.
1180 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1181 (build_simple_mem_ref_loc): New function.
1182 (mem_ref_offset): Likewise.
1183 * tree.h (build_simple_mem_ref_loc): Declare.
1184 (build_simple_mem_ref): Define.
1185 (mem_ref_offset): Declare.
1186 * fold-const.c: Include tree-flow.h.
1187 (operand_equal_p): Handle MEM_REF.
1188 (build_fold_addr_expr_with_type_loc): Likewise.
1189 (fold_comparison): Likewise.
1190 (fold_unary_loc): Fold
1191 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1192 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1193 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1194 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1195 (ptr_deref_may_alias_ref_p_1): Likewise.
1196 (ao_ref_base_alias_set): Properly differentiate base object for
1197 offset and TBAA.
1198 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1199 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1200 (indirect_refs_may_alias_p): Likewise.
1201 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
1202 chasing code.
1203 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1204 (call_may_clobber_ref_p_1): Likewise.
1205 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1206 * expr.c (expand_assignment): Handle MEM_REF.
1207 (store_expr): Handle MEM_REFs from STRING_CSTs.
1208 (store_field): If expanding a MEM_REF of a non-addressable
1209 decl use bitfield operations.
1210 (get_inner_reference): Handle MEM_REF.
1211 (expand_expr_addr_expr_1): Likewise.
1212 (expand_expr_real_1): Likewise.
1213 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1214 * alias.c (ao_ref_from_mem): Handle MEM_REF.
1215 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
1216 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1217 (dr_analyze_indices): Likewise.
1218 (dr_analyze_alias): Likewise.
1219 (object_address_invariant_in_loop_p): Likewise.
1220 * gimplify.c (mark_addressable): Handle MEM_REF.
1221 (gimplify_cond_expr): Build MEM_REFs.
1222 (gimplify_modify_expr_to_memcpy): Likewise.
1223 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1224 (gimple_fold_indirect_ref): Adjust.
1225 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
1226 * tree.def (MEM_REF): New tree code.
1227 * tree-dfa.c: Include toplev.h.
1228 (get_ref_base_and_extent): Handle MEM_REF.
1229 (get_addr_base_and_unit_offset): New function.
1230 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1231 * gimple-fold.c (may_propagate_address_into_dereference): Handle
1232 MEM_REF.
1233 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1234 accesses if the array has just one dimension. Remove always true
1235 parameter. Do not require type compatibility here.
1236 (maybe_fold_offset_to_component_ref): Remove.
1237 (maybe_fold_stmt_indirect): Remove.
1238 (maybe_fold_reference): Remove INDIRECT_REF handling.
1239 Fold back to non-MEM_REF.
1240 (maybe_fold_offset_to_address): Simplify. Deal with type
1241 mismatches here.
1242 (maybe_fold_reference): Likewise.
1243 (maybe_fold_stmt_addition): Likewise. Also handle
1244 &ARRAY + I in addition to &ARRAY[0] + I.
1245 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1246 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1247 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1248 * tree-ssa.c (useless_type_conversion_p): Make most pointer
1249 conversions useless.
1250 (warn_uninitialized_var): Handle MEM_REF.
1251 (maybe_rewrite_mem_ref_base): New function.
1252 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1253 to SSA form.
1254 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1255 INDIRECT_REF handling.
1256 (copy_tree_body_r): Handle MEM_REF.
1257 * gimple.c (is_gimple_addressable): Adjust.
1258 (is_gimple_address): Likewise.
1259 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1260 invariant base are invariant.
1261 (is_gimple_min_lval): Adjust.
1262 (is_gimple_mem_ref_addr): New function.
1263 (get_base_address): Handle MEM_REF.
1264 (count_ptr_derefs): Likewise.
1265 (get_base_loadstore): Likewise.
1266 * gimple.h (is_gimple_mem_ref_addr): Declare.
1267 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1268 * tree-cfg.c (verify_address): New function, split out from ...
1269 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
1270 the address operand of MEM_REFs. Verify MEM_REFs. Reject
1271 INDIRECT_REFs.
1272 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
1273 INDIRECT_REF. Allow conversions.
1274 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1275 a register does not change its size.
1276 (verify_types_in_gimple_reference): Verify MEM_REF.
1277 (verify_gimple_assign_single): Disallow INDIRECT_REF.
1278 Handle MEM_REF.
1279 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1280 New.
1281 (mark_address_taken): Handle MEM_REF.
1282 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1283 (get_asm_expr_operands): Pass opf_not_non_addressable.
1284 (get_expr_operands): Handle opf_[not_]non_addressable.
1285 Handle MEM_REF. Remove INDIRECT_REF handling.
1286 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1287 (search_for_addr_array): Likewise.
1288 (check_array_bounds): Likewise.
1289 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1290 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1291 (ref_always_accessed_p): Likewise.
1292 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
1293 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1294 Handle MEM_REF.
1295 * cgraphbuild.c (mark_load): Properly check for NULL result
1296 from get_base_address.
1297 (mark_store): Likewise.
1298 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1299 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1300 handling for MEM_REF.
1301 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1302 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1303 * builtins.c (stabilize_va_list_loc): Use the function ABI
1304 valist type if we couldn't canonicalize the argument type.
1305 Always dereference with the canonical va-list type.
1306 (maybe_emit_free_warning): Handle MEM_REF.
1307 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1308 memmove to memcpy.
1309 * builtins.c (fold_builtin_memory_op): Use ref-all types
1310 for all memcpy foldings.
1311 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1312 (build_outer_var_ref): Likewise.
1313 (scan_omp_1_op): Likewise.
1314 (lower_rec_input_clauses): Likewise.
1315 (lower_lastprivate_clauses): Likewise.
1316 (lower_reduction_clauses): Likewise.
1317 (lower_copyprivate_clauses): Likewise.
1318 (expand_omp_atomic_pipeline): Likewise.
1319 (expand_omp_atomic_mutex): Likewise.
1320 (create_task_copyfn): Likewise.
1321 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1322 Remove old union trick. Initialize constant offsets.
1323 (ao_ref_init_from_vn_reference): Likewise. Do not handle
1324 INDIRECT_REF. Init base_alias_set properly.
1325 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1326 (vn_reference_fold_indirect): Adjust for MEM_REFs.
1327 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
1328 for ARRAY_REFs.
1329 (may_insert): Remove.
1330 (visit_reference_op_load): Do not test may_insert.
1331 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1332 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1333 a field to store the constant offset this op applies.
1334 (run_scc_vn): Adjust prototype.
1335 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1336 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1337 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
1338 bother about volatile qualifiers on pointers.
1339 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1340 * tree-ssa-loop-ivopts.c
1341 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1342 (strip_offset_1): Likewise.
1343 (find_interesting_uses_address): Replace INDIRECT_REF handling with
1344 MEM_REF handling.
1345 (get_computation_cost_at): Likewise.
1346 * ipa-pure-const.c (check_op): Handle MEM_REF.
1347 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1348 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1349 and constants.
1350 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1351 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1352 (eliminate_local_variables_1): Likewise.
1353 (create_call_for_reduction_1): Likewise.
1354 (create_loads_for_reductions): Likewise.
1355 (create_loads_and_stores_for_name): Likewise.
1356 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1357 (ssa_accessed_in_tree): Handle MEM_REF.
1358 (ssa_accessed_in_assign_rhs): Likewise.
1359 (update_type_size): Likewise.
1360 (analyze_accesses_for_call_stmt): Likewise.
1361 (analyze_accesses_for_assign_stmt): Likewise.
1362 (transform_access_sites): Likewise.
1363 (transform_allocation_sites): Likewise.
1364 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1365 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1366 not handle INDIRECT_REF.
1367 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1368 (cond_store_replacement): Likewise.
1369 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1370 MEM_REF, no not handle INDIRECT_REFs.
1371 (insert_into_preds_of_block): Properly initialize avail.
1372 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
1373 for ARRAY_REFs. Properly handle reference lookups that
1374 require a bit re-interpretation.
1375 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
1376 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1377 (build_ref_for_offset_1): Remove.
1378 (build_ref_for_offset): Build MEM_REFs.
1379 (gate_intra_sra): Disable for now.
1380 (sra_ipa_modify_expr): Handle MEM_REF.
1381 (ipa_early_sra_gate): Disable for now.
1382 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1383 MEM_REF handling.
1384 (disqualify_base_of_expr): Likewise.
1385 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1386 MEM_REF handling.
1387 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1388 Use mem_ref_offset. Remove bogus folding.
1389 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1390 (make_fancy_name_1): Add support for MEM_REF.
1391 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1392 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1393 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1394 (compute_complex_ancestor_jump_func): Likewise.
1395 (ipa_analyze_virtual_call_uses): Likewise.
1396 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1397 INDIRECT_REF folding with more generalized MEM_REF folding.
1398 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1399 (forward_propagate_addr_into_variable_array_index): Also handle
1400 &ARRAY + I in addition to &ARRAY[0] + I.
1401 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1402 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1403 creates assignments with overlap.
1404 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1405 (get_frame_field): Likewise.
1406 (get_nonlocal_debug_decl): Likewise.
1407 (convert_nonlocal_reference_op): Likewise.
1408 (struct nesting_info): Add mem_refs pointer-set.
1409 (create_nesting_tree): Allocate it.
1410 (convert_local_reference_op): Insert to be folded mem-refs.
1411 (fold_mem_refs): New function.
1412 (finalize_nesting_tree_1): Perform defered folding of mem-refs
1413 (free_nesting_tree): Free the pointer-set.
1414 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1415 (vectorizable_load): Likewise.
1416 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1417 (propagate_with_phi): Likewise.
1418 * tree-object-size.c (addr_object_size): Handle MEM_REFs
1419 instead of INDIRECT_REFs.
1420 (compute_object_offset): Handle MEM_REF.
1421 (plus_stmt_object_size): Handle MEM_REF.
1422 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1423 for &MEM_REF.
1424 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1425 (symbol_marked_for_renaming): Likewise.
1426 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1427 (fold-const.o): Add $(TREE_FLOW_H).
1428 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1429 (find_func_clobbers): Likewise.
1430 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1431 (decompose_access): Likewise.
1432 (replace_field_acc): Likewise.
1433 (replace_field_access_stmt): Likewise.
1434 (insert_new_var_in_stmt): Likewise.
1435 (get_stmt_accesses): Likewise.
1436 (reorg_structs_drive): Disable.
1437 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1438 (ix86_canonical_va_list_type): Likewise.
1439
1440 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1441
1442 PR other/44566
1443 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1444 * target.def (struct gcc_target): Replace enum reg_class with
1445 reg_class_t in hook argument / return types.
1446 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1447 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1448 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1449 * targhooks.h (default_branch_target_register_class): Likewise.
1450 (default_ira_cover_classes, default_secondary_reload): Likewise.
1451 (default_memory_move_cost, default_register_move_cost): Likewise.
1452 * targhooks.c (default_branch_target_register_class): Likewise.
1453 (default_ira_cover_classes, default_secondary_reload): Likewise.
1454 (default_memory_move_cost, default_register_move_cost): Likewise.
1455 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1456 * bt-load.c (branch_target_load_optimize): Likewise.
1457 * ira.c (setup_cover_and_important_classes): Likewise.
1458 * ira-costs.c (copy_cost): Likewise.
1459 * reload1.c (emit_input_reload_insns): Likewise.
1460 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1461 * config/frv/frv.c (frv_secondary_reload): Likewise.
1462 * config/s390/s390.c (s390_secondary_reload): Likewise.
1463 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1464 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1465 (ix86_register_move_cost): Likewise.
1466 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1467 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1468 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1469 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1470 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1471 (rs6000_ira_cover_classes): Likewise.
1472 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1473 * config/picochip/picochip-protos.h (picochip_secondary_reload):
1474 Likewise.
1475 * config/pa/pa.c (pa_secondary_reload): Likewise.
1476 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1477 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1478 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1479 * doc/tm.texi: Regenerate.
1480
1481 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
1482
1483 PR bootstrrap/44726
1484 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1485 use.
1486 (build_alias_set_optimal_p): Likewise.
1487 (build_base_obj_set_for_drs): Likewise.
1488
1489 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1490
1491 * target.def: Remove comment about licensing problems of function
1492 declarations.
1493
1494 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
1495 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1496 * doc/tm.texi: Regenerate.
1497
1498 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
1499 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1500
1501 * target.def (enum_va_list_p): Use DEFHOOK.
1502 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1503 Rename ptype to ptree.
1504 * doc/tm.texi: Regenerate.
1505
1506 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
1507 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1508 * doc/tm.texi: Regenerate.
1509
1510 * target.def (memory_move_cost): Use DEFHOOK.
1511 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1512 Rename regclass AKA class to rclass.
1513 * doc/tm.texi: Regenerate.
1514
1515 * target.def (pragma_parse): Use DEFHOOK.
1516 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1517 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1518 * doc/tm.texi: Regenerate.
1519
1520 * target.def (pass_by_reference): Use DEFHOOK.
1521 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1522 * doc/tm.texi: Regenerate.
1523
1524 * target.def (resolve_overloaded_builtin): Rename params to arglist.
1525 Use DEFHOOK.
1526 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1527 * doc/tm.texi: Regenerate.
1528
1529 * target.def (return_pops_args): Use DEFHOOK.
1530 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1531 Rename stack-size to size.
1532 * doc/tm.texi: Regenerate.
1533
1534 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
1535 last-sched_cycle to last_clock, cur_cycle to clock.
1536 * doc/tm.texi.in: Use @hook.
1537 * doc/tm.texi: Regenerate.
1538
1539 * target.def (print_operand, print_operand_address): Update comment.
1540 (print_operand_punct_valid_p): Likewise.
1541
1542 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1543
1544 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1545 to rtl.h.
1546 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1547 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1548 * rtl-error.h: New.
1549 * regrename.c: Do not include toplev.h. Include rtl-error.h.
1550 * rtl-error.c: Likewise.
1551 * reload.c: Likewise.
1552 * recog.c: Likewise.
1553 * sel-sched.c: Likewise.
1554 * function.c: Likewise.
1555 * reg-stack.c: Likewise.
1556 * cfgrtl.c: Likewise.
1557 * reload1.c: Likewise.
1558 * final.c: Include rtl-error.
1559 * Makefile.in: Adjust dependencies.
1560
1561 2010-06-30 Jan Hubicka <jh@suse.cz>
1562
1563 PR middle-end/PR44706
1564 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1565 to return the value.
1566
1567 2010-06-30 Michael Matz <matz@suse.de>
1568
1569 PR bootstrap/44699
1570 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1571 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1572 a gimple reg, attach the original VDEF to the last store in the
1573 sequence.
1574
1575 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
1576
1577 PR other/44034
1578 * config/darwin.c (darwin_override_options): Use renamed
1579 targetm.asm_out.emit_unwind_label.
1580
1581 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1582
1583 PR tree-optimization/39799
1584 * tree-inline.c (remap_ssa_name): Initialize variable only if
1585 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1586
1587 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
1588
1589 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1590
1591 2010-06-30 Richard Guenther <rguenther@suse.de>
1592
1593 PR target/44722
1594 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1595 against oscillation with reverse peephole2.
1596
1597 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
1598
1599 PR target/44721
1600 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1601 Fix last commit.
1602
1603 2010-06-30 Nick Clifton <nickc@redhat.com>
1604
1605 * config/rx/rx-modes.def: New file.
1606 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1607 (CC_REGNUM): Define.
1608 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1609 register.
1610 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1611 (SELECT_CC_MODE): Define.
1612 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
1613 (reg:CC CC_REG) instead of (cc0).
1614 (attr "cc"): Delete.
1615 (cbranchsi4): Do not split compare and branch here. Instead move
1616 it to...
1617 (cbranchsi4_<code>): ... here. New patterns.
1618 (cmpsi): Call rx-compare_redundant to find out if it is necessary
1619 to emit the compare instruction.
1620 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1621 cc_status flags.
1622 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1623 FIRST_PSEUDO_REGNUM.
1624 (rx_expand_prologue, rx_expand_epilogue): Likewise.
1625 (rx_notice_update_cc): Delete.
1626 (rx_cc_modes_compatible): New function.
1627 (flags_needed_for_conditional): New function.
1628 (flags_from_mode): New function.
1629 (rx_compare_redundant): New function - scans backwards through
1630 insn list to find out if condition flags are already set correctly.
1631 (TARGET_CC_MODES_COMPATIBLE): Define.
1632 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1633
1634 * config/rx/rx.h (BRANCH_COST): Define.
1635 (REGISTER_MOVE_COST): Define.
1636 * config/rx/predicates (rx_source_operand): Allow all constant types.
1637 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1638 (tstsi4): New pattern.
1639 * config/rx/rx.c (rx_memory_move_cost): Define.
1640 (TARGET_MEMORY_MOVE_COST): Define.
1641
1642 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1643
1644 * tree.h (block_may_fallthru): Declare here.
1645 * tree-flow.h (block_may_fallthru): Do not declare here.
1646 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1647 bitmap.h
1648 * Makefile.in (c-typeck.o): Update dependencies.
1649
1650 2010-06-30 Jakub Jelinek <jakub@redhat.com>
1651
1652 PR debug/44694
1653 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1654 * cselib.c (cfa_base_preserved_regno): New static variable.
1655 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1656 of REGNO (cfa_base_preserved_val->locs->loc).
1657 (cselib_preserve_cfa_base_value): Add regno argument, set
1658 cfa_base_preserved_regno to it.
1659 (cselib_invalidate_regno): Allow removal of registers other than
1660 cfa_base_preserved_regno from cfa_base_preserved_val.
1661 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1662 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1663 of MEM addresses, if not on LHS.
1664 (reverse_op): Don't add reverse ops for cfa_base_rtx.
1665 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1666
1667 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1668
1669 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1670 static variables.
1671 (peep2_buf_position): New static function.
1672 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1673 peephole2_optimize): Use it.
1674 (peep2_attempt, peep2_update_life): New static functions, broken out
1675 of peephole2_optimize.
1676 (peep2_fill_buffer): New static function.
1677 (peephole2_optimize): Change the main loop to try to fill the buffer
1678 with the maximum number of insns before matching them against
1679 peepholes. Use a forward scan. Remove special case for targets with
1680 conditional execution.
1681 * genrecog.c (change_state): Delete dead code.
1682 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1683 Rewrite so as not to expect the second insn to have had a peephole
1684 applied yet.
1685
1686 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1687
1688 * genhooks.c (emit_findices): Cast field precision to int.
1689 (emit_documentation): Likewise.
1690
1691 2010-06-29 Jakub Jelinek <jakub@redhat.com>
1692
1693 PR tree-optimization/43801
1694 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1695 if old_decl was DECL_ONE_ONLY.
1696
1697 PR debug/44668
1698 * dwarf2out.c (add_accessibility_attribute): New function.
1699 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1700 instead of adding DW_AT_accessibility manually.
1701 (gen_enumeration_type_die, gen_struct_or_union_type_die,
1702 gen_typedef_die): Use it.
1703
1704 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1705
1706 * vmsdbgout.c (full_name): Just output the file name if not native.
1707
1708 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1709
1710 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
1711 (funcnam_table): New static table.
1712 (funcnum_table): New static table.
1713 (write_rtnbeg): Write value saved in funcnum_table.
1714 (write_rtnend): Write value saved in funcnum_table.
1715 (vmsdbgout_begin_function): Save current function info in
1716 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
1717 (vmsdbgout_finish): Iterate over funcnum_table.
1718
1719 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1720
1721 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
1722 (vmsdbgout_type_decl): Declare
1723 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
1724 (FUNC_EPILOGUE_LABEL): New macro
1725 (vmsdbgout_begin_epilogue): New function.
1726 (vmsdbgout_type_decl): New function.
1727
1728 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1729
1730 * vmsdbg.h: Update copyright.
1731
1732 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1733
1734 * vmsdbg.h (DST_K_TBG): New DST constant.
1735 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
1736 (write_modbeg): Cast module_language to avoid warning.
1737 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
1738
1739 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1740
1741 PR other/44034
1742 * target.def, doc/tm.texi.in, genhooks.c: New files.
1743 * target.h: Instead of defining individual hook members,
1744 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
1745 include target.def.
1746 * target-def.h: Instead of defining individual hook initializers,
1747 include target-hooks-def.h.
1748 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
1749 targetm.live_on_entry -> targetm.extra_live_on_entry
1750 targetm.sched.md_finish ->targetm.sched.finish
1751 targetm.sched.md_init -> targetm.sched.init
1752 targetm.sched.md_init_global -> targetm.sched.init_global
1753 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
1754 targetm.asm_out.except_table_label ->
1755 targetm.asm_out.emit_except_table_label
1756 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
1757 targetm.target_help -> targetm.help
1758 targetm.vectorize.builtin_support_vector_misalignment ->
1759 targetm.vectorize.support_vector_misalignment
1760 targetm.file_start_app_off -> targetm.asm_file_start_app_off
1761 targetm.file_start_file_directive ->
1762 targetm.asm_file_start_file_directive
1763 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
1764 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
1765 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
1766 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
1767 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
1768 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
1769 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
1770 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
1771 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
1772 * Makefile.in (TARGET_H): Depend on target.def.
1773 (TARGET_DEF_H): Depend on target-hooks-def.h.
1774 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
1775 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
1776 * doc/tm.texi: Regenerate.
1777
1778 * Makefile.in (s-tm-texi): Remove stray tab / rule.
1779
1780 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
1781 (targetm.sched.init): Likewise.
1782
1783 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1784
1785 PR bootstrap/44713
1786 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
1787 (function_arg_advance_32): Const-ify TYPE parameter.
1788 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
1789 (ix86_function_arg_advance): Change type of NAMED to bool.
1790 (function_arg_32): Const-ify CUM and TYPE parameters.
1791 (function_arg_64): Likewise. Change type of NAMED to bool.
1792 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
1793 to bool.
1794 (ix86_function_arg): Change type of NAMED to bool.
1795 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
1796 last argument as a bool.
1797
1798 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1799
1800 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
1801 (OVERRIDE_OPTIONS): Add note of obsolescence.
1802 Replace references with references to TARGET_OPTION_OVERRIDE.
1803 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
1804 the macro).
1805 * targhooks.c (default_target_option_override): New function.
1806 * targhooks.h (default_target_option_override): Declare.
1807 * target.h (struct gcc_target): Add override member to
1808 target_option member.
1809 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
1810 targetm.target_option.override call.
1811 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
1812 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
1813
1814 2010-06-29 Jan Hubicka <jh@suse.cz>
1815
1816 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
1817
1818 2010-06-29 Jan Hubicka <jh@suse.cz>
1819
1820 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
1821 unreachable.
1822 (rebuild_frequencies): New function.
1823 * predict.h (rebuild_frequencies): Declare.
1824 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
1825 entry block and edge reaching new_entry.
1826 (tree_function_versioning): When doing partial cloning, rebuild
1827 frequencies when done.
1828 * passes.c (execute_function_todo): Use rebild_frequencies.
1829
1830 2010-06-29 Richard Guenther <rguenther@suse.de>
1831
1832 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
1833 * tree-flow.h (enum noalias_state): Remove.
1834 (struct var_ann_d): Remove noalias_state member.
1835
1836 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1837
1838 PR target/43902
1839 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
1840 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
1841 (maddhidi4): Likewise.
1842
1843 Revert parts of the change for PR25130.
1844 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1845 MEM_ALIAS_SET.
1846
1847 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1848
1849 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
1850 targetm.calls.function_incoming_arg, and
1851 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
1852 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
1853 * target.h (struct gcc_target): Add function_arg_advance,
1854 function_arg, and function_incoming_arg fields.
1855 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
1856 (TARGET_FUNCTION_INCOMING_ARG): Define.
1857 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
1858 and TARGET_FUNCTION_INCOMING_ARG.
1859 * targhooks.h (default_function_arg_advance): Declare.
1860 (default_function_arg, default_function_incoming_arg): Declare.
1861 * targhooks.c (default_function_arg_advance): New function.
1862 (default_function_arg, default_function_incoming_arg): New function.
1863 * config/i386/i386.c (function_arg_advance): Rename to...
1864 (ix86_function_arg_advance): ...this. Make static.
1865 (function_arg): Rename to...
1866 (ix86_function_arg): ...this. Make static.
1867 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1868 (TARGET_FUNCTION_ARG): Define.
1869 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
1870 (FUNCTION_ARG): Delete.
1871 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
1872 (function_arg): Delete prototype.
1873
1874 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1875
1876 * reginfo.c (init_reg_sets_1): Adjust comments.
1877 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
1878 * calls.c (prepare_call_address): Likewise.
1879 (emit_call_1): Use targetm.calls.return_pops_args.
1880 (expand_call): Likewise.
1881 * function.c (assign_parms): Likewise.
1882 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
1883 * target.h (struct gcc_target) [struct calls]: Add
1884 return_pops_args field.
1885 * targhooks.h (default_return_pops_args): Declare.
1886 * targhooks.c (default_return_pops_args): Define.
1887 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
1888 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
1889 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
1890 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
1891 documentation.
1892 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
1893 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
1894 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
1895 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
1896 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
1897 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
1898 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
1899 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
1900 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
1901 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
1902 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
1903 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
1904 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
1905 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
1906 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
1907 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
1908 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
1909 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
1910 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
1911 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
1912 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
1913 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
1914 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
1915 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
1916 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
1917 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
1918 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
1919 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
1920 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
1921 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
1922 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
1923 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
1924 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
1925 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
1926 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
1927 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
1928 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
1929 * config/i386/i386.c (ix86_return_pops_args): Make static.
1930 Constify arguments.
1931 (TARGET_RETURN_POPS_ARGS): Define.
1932 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
1933 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
1934 (TARGET_RETURN_POPS_ARGS): Define.
1935 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1936 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
1937 (TARGET_RETURN_POPS_ARGS): Define.
1938
1939 2010-06-29 Richard Guenther <rguenther@suse.de>
1940
1941 PR middle-end/44667
1942 * tree-inline.c (initialize_inlined_parameters): Make sure
1943 to remap the inlined parameter variable substitutions types.
1944
1945 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
1946
1947 PR rtl-optimization/44659
1948 * combine.c (make_compound_operation) <SUBREG>: Do not return the
1949 result of force_to_mode if it partially re-expanded the compound.
1950
1951 2010-06-28 Jan Hubicka <jh@suse.cz>
1952
1953 PR middle-end/44671
1954 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1955 RESULT_DECL.
1956
1957 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1958
1959 * double-int.h (force_fit_type_double): Remove declaration.
1960 * double-int.c (force_fit_type_double): Move to tree.c.
1961 * tree.h (force_fit_type_double): Declare.
1962 * tree.h (force_fit_type_double): Moved from double-int.c. Use
1963 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1964 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1965 * convert.c (convert_to_pointer): Adjust call to
1966 force_fit_type_double.
1967 * tree-vrp.c (extract_range_from_assert,
1968 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1969 * fold-const.c: Update comment.
1970 (int_const_binop, fold_convert_const_int_from_int,
1971 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1972 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1973 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1974 round_up_loc): Adjust call to force_fit_type_double.
1975
1976 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1977
1978 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1979
1980 2010-06-28 Martin Jambor <mjambor@suse.cz>
1981
1982 * tree-sra.c (convert_callers): New parameter, change fndecls of
1983 recursive calls.
1984 (modify_function): Pass the old decl to convert_callers.
1985
1986 2010-06-28 Martin Jambor <mjambor@suse.cz>
1987
1988 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1989 ipa_check_create_node_params and ipa_initialize_node_params with
1990 checking asserts they are not necessary.
1991
1992 2010-06-28 Jan Hubicka <jh@suse.cz>
1993
1994 PR tree-optimization/44687
1995 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1996
1997 2010-06-28 Martin Jambor <mjambor@suse.cz>
1998
1999 PR c++/44535
2000 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2001 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2002 instead of BINFO_BASE_BINFO.
2003
2004 2010-06-28 Michael Matz <matz@suse.de>
2005
2006 PR middle-end/44592
2007 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2008 proper VDEF chain for intermediate stores in the sequence.
2009
2010 2010-06-28 Jan Hubicka <jh@suse.cz>
2011
2012 PR tree-optimization/44357
2013 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2014 uninlinable functions.
2015
2016 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2017
2018 * config.gcc (powerpc*-*-*): Handle titan.
2019 * config/rs6000/rs6000.c (titan_cost): New costs.
2020 (rs6000_override_options): Add "titan" to processor_target_table.
2021 Add Titan to branch alignment logic.
2022 Correctly set rs6000_cost for titan.
2023 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
2024 * config/rs6000/titan.md: New file.
2025 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2026
2027 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2028
2029 * tree-browser.c (TB_history_stack): Convert to a VEC.
2030 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2031 (TB_history_prev): Likewise.
2032
2033 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2034
2035 * vec.h (vec_heap_free): Add parentheses around free.
2036
2037 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2038
2039 * system.h: Poison GCC_EXCEPT_H for front-end files.
2040
2041 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2042 langhook.
2043 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2044 Define to NULL by default.
2045 * except.h: Define GCC_EXCEPT_H.
2046 (doing_eh): Remove prototype.
2047 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2048 (lang_protect_cleanup_actions): Remove.
2049 * except.c (lang_protect_cleanup_actions): Remove.
2050 (doing_eh): Remove.
2051 (gen_eh_region): Don't check doing_eh here.
2052 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2053 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2054 instead of lang_protect_cleanup_actions.
2055 * omp-low.c (maybe_catch_exception): Likewise.
2056 * Makefile.in: Update dependencies.
2057
2058 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
2059
2060 * cgraph.h (struct varpool_node): new used_from_object_file flag.
2061 (struct cgraph_local_info): new used_from_object_file flag.
2062 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2063 (cgraph_clone_node): initialize used_from_object_file.
2064 (cgraph_create_virtual_clone): initialize used_from_object_file.
2065 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2066 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2067 when compiling with -fwhole-program.
2068 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2069 internal resolver.
2070 * ipa.c (function_and_variable_visibility): Set externally_visible
2071 flag of varpool_node if used_from_object_file flag is set.
2072 (cgraph_externally_visible_p): check used_from_object_file flag.
2073 * doc/invoke.texi (-fwhole-program option): Change description of
2074 externally_visible attribute accordingly.
2075 * doc/extend.texi (externally_visible): Ditto.
2076
2077 2010-06-27 Jan Hubicka <jh@suse.cz>
2078
2079 * params.def (max-inline-insns-auto): Default to 40.
2080 * doc/invoke.texi (max-inline-insns-auto): Document the change.
2081
2082 2010-06-27 Jan Hubicka <jh@suse.cz>
2083
2084 PR middle-end/44671
2085 PR middle-end/44686
2086 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2087 signature change.
2088 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2089 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2090
2091 2010-06-27 Anatoly Sokolov <aesok@post.ru>
2092
2093 * target.h (struct gcc_target): Add register_move_cost field.
2094 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2095 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2096 * targhooks.c (default_register_move_cost): New function.
2097 * targhooks.h (default_register_move_cost): Declare function.
2098 * defaults.h (REGISTER_MOVE_COST): Delete.
2099 * ira-int.h (ira_register_move_cost): Update comment.
2100 * ira.c: (ira_register_move_cost): Update comment.
2101 * reload.h (register_move_cost): Declare.
2102 * reginfo.c (register_move_cost): New function.
2103 (move_cost): Update comment.
2104 (init_move_cost, memory_move_secondary_cost): Replace
2105 REGISTER_MOVE_COST with register_move_cost.
2106 * postreload.c (reload_cse_simplify_set): (Ditto.).
2107 * reload.c (find_valid_class, find_reloads): (Ditto.).
2108 * reload1.c (choose_reload_regs): (Ditto.).
2109 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2110 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2111 * doc/md.texi (can_create_pseudo_p): Update documentation.
2112
2113 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2114 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2115 * config/i386/i386.h (ix86_memory_move_cost): Make static.
2116 (TARGET_MEMORY_MOVE_COST): Define.
2117
2118 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2119 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2120 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2121 (TARGET_MEMORY_MOVE_COST): Define.
2122
2123 2010-06-27 Richard Guenther <rguenther@suse.de>
2124
2125 PR tree-optimization/44683
2126 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2127 false edge from the inverted condition.
2128
2129 2010-06-27 Richard Guenther <rguenther@suse.de>
2130
2131 PR middle-end/44684
2132 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2133 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2134 for register LHS. Or non-store assignments.
2135
2136 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
2137
2138 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2139 (sparc_emit_set_const64): Likewise. Remove disabled code.
2140 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2141 (sparc_emit_set_const64): Likewise.
2142
2143 2010-06-26 Catherine Moore <clm@codesourcery.com>
2144
2145 * config/mips/mips.md (alu_type): New attribute.
2146 (type): Infer type from alu_type.
2147 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2148 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2149 *subsi3_extended, negsi2, negdi2, *low<mode>,
2150 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2151 xor<mode>3, *nor<mode>3,
2152 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2153 *zero_extendhi_truncqi): Set alu_type instead of type.
2154
2155 2010-06-26 Douglas B Rupp <rupp@gnat.com>
2156
2157 * config/alpha/alpha.c (alpha_need_linkage): Adjust
2158 splay_tree_new_ggc call.
2159 (alpha_use_linkage): Likewise.
2160
2161 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2162
2163 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2164 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2165 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2166 (static_specs): Remove switches_need_spaces.
2167 (process_command, do_self_spec): Hardcode handling "-o" instead of
2168 checking switches_need_spaces.
2169 * system.h (SWITCHES_NEED_SPACES): Poison.
2170
2171 2010-06-26 Richard Guenther <rguenther@suse.de>
2172
2173 PR tree-optimization/44393
2174 * tree-loop-distribution.c (generate_loops_for_partition): Fix
2175 stmt removal and VOP renaming.
2176 (generate_memset_zero): Remove redundant stmt updating.
2177 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2178 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2179
2180 2010-06-26 Jan Hubicka <jh@suse.cz>
2181
2182 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2183 edges comming from header are equivalent.
2184 (visit_bb): Handle PHIs correctly.
2185 * tree-inline.c (copy_phis_for_bb): Be able to copy
2186 PHI from entry edge.
2187 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2188
2189 2010-06-26 Richard Guenther <rguenther@suse.de>
2190
2191 PR middle-end/44674
2192 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2193 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
2194
2195 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2196
2197 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2198 add_infile, alloc_switch): New.
2199 (process_command): Remove variable lang_n_infiles. Process
2200 options in a single pass. Use new functions for allocating
2201 infiles and switches arrays. Properly skip operands of
2202 -Xpreprocessor and -Xassembler.
2203
2204 2010-06-26 Jan Hubicka <jh@suse.cz>
2205
2206 PR middle-end/44671
2207 * cgraphunit.c (cgraph_function_versioning): Remove wrong
2208 cgraph_make_decl_local call; fix typo copying RTL data.
2209
2210 2010-06-25 DJ Delorie <dj@redhat.com>
2211
2212 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2213 (m32c_output_aligned_common): Likewise.
2214 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2215 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2216 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2217 (m32c_register_pragmas): Register it.
2218 * config/m32c/m32c.c (m32c_get_pragma_address): New.
2219 (m32c_insert_attributes): Set #pragma address decls volatile.
2220 (pragma_entry_eq): New.
2221 (pragma_entry_hash): New.
2222 (m32c_note_pragma_address): New.
2223 (m32c_get_pragma_address): New.
2224 (m32c_output_aligned_common): New.
2225 * doc/extend.texi: Document the new pragma.
2226
2227 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2228 also.
2229 * config/m32c/predicates.md (m32c_any_operand): Check the code
2230 instead of memory_operand so as to allow matching volatile MEMs.
2231 (m32c_nonimmediate_operand): Likewise.
2232 (mra_operand): Allow volatiles.
2233
2234 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
2235
2236 PR debug/44610
2237 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2238 address if the offset is unknown.
2239
2240 2010-06-25 Douglas B Rupp <rupp@gnat.com>
2241
2242 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2243 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2244 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2245 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2246 to ia64_start_function. Invoke it.
2247 * config/ia64/ia64.c (ia64_start_function): Call new function
2248 dwarf2out_vms_debug_main_pointer.
2249
2250 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2251
2252 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2253 statements computing the true predicate.
2254
2255 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2256
2257 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2258 to boolean_true_node.
2259 (reset_bb_predicate): New.
2260 (predicate_bbs): Call reset_bb_predicate.
2261
2262 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2263
2264 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2265 (tree_if_conversion): Returns true when something has been changed.
2266 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2267 changed something.
2268
2269 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2270
2271 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2272 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2273 * tree-if-conv.c: Include dbgcnt.h.
2274 (tree_if_conversion): Use if_conversion_tree to count the number of
2275 if-convertible loops.
2276
2277 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
2278
2279 * common.opt (fprefetch-loop-arrays): Re-define
2280 -fprefetch-loop-arrays as a tri-state option with the initial
2281 value of -1.
2282 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2283 pass only when flag_prefetch_loop_arrays > 0.
2284 * toplev.c (process_options): Note that, with tri-states,
2285 flag_prefetch_loop_arrays>0 means prefetching is enabled.
2286 * config/i386/i386.c (override_options): Enable prefetching at -O3
2287 for a set of CPUs that sw prefetching is helpful.
2288 (software_prefetching_beneficial_p): New. Return TRUE if software
2289 prefetching is beneficial for the given CPU.
2290
2291 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2292
2293 PR rtl-optimization/44326
2294 * implicit-zee.c (find_removable_zero_extends): Replace
2295 INSN_P with NONDEBUG_INSN_P.
2296
2297 2010-06-25 Martin Jambor <mjambor@suse.cz>
2298
2299 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2300 (struct ipa_node_params): Removed the modification_analysis_done flag.
2301 (ipa_is_param_modified): Removed.
2302 (ipa_analyze_node): Declare.
2303 (ipa_compute_jump_functions): Remove declaration.
2304 (ipa_count_arguments): Likewise.
2305 (ipa_detect_param_modifications): Likewise.
2306 (ipa_analyze_params_uses): Likewise.
2307 * ipa-prop.c (struct param_analysis_info): New type.
2308 (visit_store_addr_for_mod_analysis): Removed.
2309 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2310 moved down in the file.
2311 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2312 (ipa_count_arguments): Made static.
2313 (mark_modified): New function.
2314 (is_parm_modified_before_call): New function.
2315 (compute_pass_through_member_ptrs): New parameter parms_info, call
2316 is_parm_modified_before_call instead of ipa_is_param_modified.
2317 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2318 it to compute_pass_through_member_ptrs.
2319 (ipa_compute_jump_functions): New parameter parms_info, pass it to
2320 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
2321 on the callee if it is analyzed. Made static.
2322 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2323 is_parm_modified_before_call instead of ipa_is_param_modified.
2324 (ipa_analyze_call_uses): New parameter parms_info, pass it to
2325 ipa_analyze_indirect_call_uses.
2326 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2327 ipa_analyze_call_uses.
2328 (ipa_analyze_params_uses): New parameter parms_info, pass it to
2329 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
2330 (ipa_analyze_node): New function.
2331 (ipa_print_node_params): Do not dump the modified flag.
2332 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2333 it. Do not stream the modified parameter flag.
2334 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2335 it. Do not stream the modified parameter flag.
2336 * ipa-cp.c (ipcp_analyze_node): Removed.
2337 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2338 with only a call to ipa_analyze_node.
2339 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2340 node with only a call to ipa_analyze_node.
2341
2342 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2343
2344 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2345
2346 2010-06-25 Jan Hubicka <jh@suse.cz>
2347
2348 * tree-pass.h (pass_split_functions): Declare.
2349 * opts.c (decode_options): Enable function splitting at -O2
2350 * timevar.def (TV_IPA_FNSPLIT): New macro.
2351 * ipa-split.c: New file.
2352 * common.opt (-fpartial-inlining): New flag.
2353 * Makefile.in (ipa-split.o): New object file.
2354 * passes.c (init_optimization_passes): Add ipa-split.
2355 * params.def (partial-inlining-entry-probability): New parameters.
2356 * doc/invoke.texi (-fpartial-inlining): New.
2357
2358 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2359
2360 PR 44665
2361 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2362 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2363 (gimplify_expr): Likewise.
2364
2365 2010-06-25 Martin Jambor <mjambor@suse.cz>
2366
2367 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2368 statements instead of bailing out on them.
2369 (ipa_analyze_indirect_call_uses): Do not require that loads from the
2370 parameter are in the same BB as the condition. Update comments.
2371
2372 2010-06-25 Jakub Jelinek <jakub@redhat.com>
2373
2374 PR middle-end/43866
2375 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2376 true or always false, return NULL_TREE.
2377 (tree_unswitch_single_loop): Optimize conditions even when reaching
2378 max-unswitch-level parameter. If num > 0, optimize first all conditions
2379 using entry checks, then do still reachable block discovery and consider
2380 only conditions in still reachable basic blocks in the loop.
2381
2382 PR tree-optimization/44539
2383 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2384 the call doesn't have LHS, but has VDEF.
2385
2386 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2387
2388 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2389 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2390 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2391 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2392 * system.h (MODIFY_TARGET_NAME): Poison.
2393
2394 2010-06-25 Alan Modra <amodra@gmail.com>
2395
2396 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2397 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2398 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2399 CMODEL_LARGE as default.
2400 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2401 (offsettable_ok_by_alignment): Delete.
2402 (rs6000_emit_move): Remove mcmodel=medium optimization.
2403
2404 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2405
2406 With large parts from Jim Wilson:
2407 PR target/43902
2408 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2409 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2410 * optabs.c (optab_for_tree_code): Likewise.
2411 (expand_widen_pattern_expr): Likewise.
2412 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2413 out of execute_optimize_widening_mul.
2414 (convert_plusminus_to_widen): New function.
2415 (execute_optimize_widening_mul): Use the two new functions.
2416 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2417 Remove code to generate widening multiply-accumulate. Add support
2418 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2419 * gimple-pretty-print.c (dump_ternary_rhs): New function.
2420 (dump_gimple_assign): Call it when appropriate.
2421 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2422 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2423 (expand_gimple_stmt_1): Likewise.
2424 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2425 WIDEN_MULT_MINUS_EXPR.
2426 * tree-ssa-operands.c (get_expr_operands): Likewise.
2427 * tree-inline.c (estimate_operator_cost): Likewise.
2428 * gimple.c (extract_ops_from_tree_1): Renamed from
2429 extract_ops_from_tree. Add new arg for a third operand; fill it.
2430 (gimple_build_assign_stat): Support operations with three operands.
2431 (gimple_build_assign_with_ops_stat): Likewise.
2432 (gimple_assign_set_rhs_from_tree): Likewise.
2433 (gimple_assign_set_rhs_with_ops_1): Renamed from
2434 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
2435 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2436 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2437 WIDEN_MULT_MINUS_EXPR.
2438 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2439 (extract_ops_from_tree_1): Adjust declaration.
2440 (gimple_assign_set_rhs_with_ops_1): Likewise.
2441 (gimple_build_assign_with_ops): Pass NULL for last operand.
2442 (gimple_build_assign_with_ops3): New macro.
2443 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2444 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2445 functions.
2446 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2447 (verify_gimple_assign): Call it.
2448 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2449 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2450 functions for dealing with three-operand statements.
2451 * tree.c (commutative_ternary_tree_code): New function.
2452 * tree.h (commutative_ternary_tree_code): Declare it.
2453 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2454 ternary statements.
2455 (gimple_assign_nonzero_warnv_p): Likewise.
2456 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2457 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2458 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
2459 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2460 (struct hashtable_expr): New member ternary in the union.
2461 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2462 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
2463 (iterative_hash_hashable_expr): Likewise.
2464 (print_expr_hash_elt): Handle EXPR_TERNARY.
2465 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2466 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2467 statements. Handle GIMPLE_TERNARY_RHS.
2468
2469 2010-06-25 Jan Hubicka <jh@suse.cz>
2470
2471 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2472
2473 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
2474
2475 PR c/44517
2476 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2477 parameters are not good.
2478 (c_parser_parameter_declaration): Error unknown type name if the type
2479 name can't start declaration specifiers.
2480
2481 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2482
2483 * gcc.c (translate_options): Don't mention +e in comment.
2484 (process_command): Don't handle +e specially.
2485
2486 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2487
2488 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2489
2490 * ira-build.c (merge_hard_reg_conflicts): New function.
2491 (create_cap_allocno, copy_info_to_removed_store_destinations,
2492 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2493 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2494 (remove_unnecessary_allocnos, remove_low_level_allocnos)
2495 copy_nifo_to_removed_store_destination): Use them.
2496 * ira-lives.c (make_hard_regno_born): New function, split out of
2497 make_regno_born.
2498 (make_allocno_born): Likewise.
2499 (make_hard_regno_dead): New function, split out of make_regno_dead.
2500 (make_allocno_dead): Likewise.
2501 (inc_register_pressure): New function, split out of set_allocno_live.
2502 (dec_register_pressure): New function, split out of clear_allocno_live.
2503 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2504 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
2505 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2506 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
2507 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2508 mark_pseudo_regno_live.
2509 (process_bb_node_lives): Use mark_pseudo_regno_live,
2510 make_hard_regno_born and make_allocno_dead.
2511 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2512 set_allocno_live, clear_allocno_live): Delete functions.
2513
2514 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2515 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2516 functions.
2517 (ira_flattening): Use ira_parent_allocno.
2518 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2519 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2520
2521 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2522 statement.
2523
2524 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2525 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2526 minmax_set_iter_cond, minmax_set_iter_next,
2527 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2528 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2529 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2530 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
2531 uses changed.
2532
2533 * ira-int.h (struct live_range, live_range_t): Renamed from struct
2534 ira_allocno_live_range and allocno_live_range_t; all uses changed.
2535 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2536 All uses changed.
2537
2538 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
2539
2540 * thumb2.md (thumb2_tlobits_cbranch): Delete.
2541 (peephole2 to convert zero_extract/compare of single bit to
2542 lshift/compare): New.
2543
2544 2010-06-24 Anatoly Sokolov <aesok@post.ru>
2545
2546 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2547 recursive call and call to 'int_const_binop'.
2548 (build_range_check, fold_cond_expr_with_comparison, unextend,
2549 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2550 multiple_of_p): Adjust call to const_binop.
2551
2552 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
2553
2554 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2555 determine size of XFmode operand.
2556 (XFmode extended DFmode push splitter): Ditto.
2557 (XFmode extended SFmode push splitter): Ditto.
2558
2559 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
2560
2561 PR target/44588
2562 * config/i386/i386.md (extract_code): New.
2563 (<u>divmodqi4): Likewise.
2564 (divmodhiqi3): Likewise.
2565 (udivmodhiqi3): Likewise.
2566 (<u>divqi3): Remvoved.
2567
2568 2010-06-24 Jakub Jelinek <jakub@redhat.com>
2569
2570 PR middle-end/44492
2571 * recog.h (struct recog_data): Add is_asm field.
2572 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2573 present in constraints of inline-asm operand and memory operand
2574 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2575 (extract_insn): Initialize recog_data.is_asm.
2576 * doc/md.texi (Constraints): Document operand side-effect rules.
2577
2578 2010-06-24 Andi Kleen <ak@linux.intel.com>
2579
2580 * c-parser.c (c_parser_conditional_expression): Call
2581 warn_for_omitted_condop.
2582 * doc/invoke.texi: Document omitted condop warning.
2583
2584 2010-06-24 Nick Clifton<nickc@redhat.com>
2585
2586 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2587 insn in the sequence is a jump insn before setting its label.
2588
2589 2010-06-24 Alan Modra <amodra@gmail.com>
2590
2591 * collect2.c (main): Match exactly --version and --help.
2592
2593 2010-06-24 DJ Delorie <dj@redhat.com>
2594
2595 * config/m32c/m32c-pragma.c: Don't include rtl.h.
2596
2597 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
2598
2599 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2600 using X87MODEF mode iterator.
2601 (pushsf splitter): Macroize splitter using P mode iterator.
2602 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2603 mode iterator.
2604
2605 (*movxf_internal): Rename from *movxf_integer.
2606 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2607 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2608 (*movdf_internal): Rename from *movdf_integer.
2609 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2610 (*movsf_internal): Rename from *movdf_1.
2611
2612 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
2613
2614 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2615 (const_gimple_seq_node): Removed typedefs.
2616
2617 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2618 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2619
2620 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
2621
2622 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2623 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2624 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2625 and CODE_FOR_vec_extract_lo_v4df.
2626
2627 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2628 Changed to define_insn_and_split.
2629 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2630 (vec_extract_lo_v16hi): Likewise.
2631 (vec_extract_lo_v32qi): Likewise.
2632 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2633 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2634
2635 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
2636
2637 PR target/44640
2638 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2639 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2640 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2641 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2642 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2643
2644 PR target/44640
2645 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2646
2647 PR other/44644
2648 * df-core.c (struct df): Rename to df_d.
2649 * df.h (struct df): Likewise.
2650 * dse.h (struct df): Remove forward declaration.
2651 * recog.h (struct insn_data): Rename to:
2652 (struct_insn_data_d). Adjusted all users.
2653
2654 2010-06-23 Arnaud Charlet <charlet@adacore.com
2655
2656 PR ada/22220
2657 * doc/install.texi: Update requirements to build GNAT.
2658
2659 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
2660
2661 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2662 enum type.
2663 (m68k_sched_attr_opx_type): Remove unreachable return.
2664 (m68k_sched_attr_opy_type): Likewise.
2665 (m68k_sched_attr_size): Likewise.
2666 (sched_get_opxy_mem_type): Likewise.
2667 (m68k_sched_attr_op_mem): Likewise.
2668
2669 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
2670
2671 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2672 new statement and adjust VDEF only if necessary. Remove superfluous
2673 call to maybe_clean_or_replace_eh_stmt.
2674 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2675 copy the flags.
2676 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2677 * tree-inline.c (copy_bb): ...and not there.
2678
2679 2010-06-22 Cary Coutant <ccoutant@google.com>
2680
2681 * dwarf2out.c (is_nested_in_subprogram): New function.
2682 (should_move_die_to_comdat): Use it.
2683 (copy_ancestor_tree): Don't mark DIEs here.
2684 (copy_decls_walk): Start walk from root of newly-added tree;
2685 mark DIEs here instead.
2686
2687 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
2688
2689 * config/i386/i386.md (unit): Also check sseishft1.
2690
2691 2010-06-22 Jan Hubicka <jh@suse.cz>
2692
2693 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2694 enabled.
2695
2696 2010-06-22 Jan Hubicka <jh@suse.cz>
2697
2698 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2699 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2700 Return true if something changed.
2701 * df.h (df_confluence_function_n): Return bool.
2702 * df-core.c (df_worklist_propagate_forward,
2703 df_worklist_propagate_backward): Track changes and ages.
2704 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
2705 track ages.
2706 * dse.c (dse_confluence_n): Return always true.
2707
2708 2010-06-22 Jan Hubicka <jh@suse.cz>
2709
2710 * bitmap.c (bitmap_clear_bit): Micro optimize.
2711
2712 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
2713
2714 * config/i386/i386.md (SWI1248x): New mode iterator.
2715 (SWI48x): Ditto.
2716 (SWI12): Ditto.
2717 (SWI24): Ditto.
2718
2719 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
2720 SWI1248x mode iterator.
2721 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
2722 using SWI124 mode iterator.
2723 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
2724 mode iterator.
2725 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
2726 *pushdi2_prologue_rex64 using P mode iterator.
2727 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
2728 using SWI48 mode iterator.
2729 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
2730 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
2731 using SWI1248x mode iterator.
2732 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
2733 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
2734 SWI48 mode iterator.
2735 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
2736 iterator.
2737 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
2738 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
2739 SWI12 mode iterator.
2740 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
2741 SWI12 mode iterator.
2742 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
2743 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
2744 SWI24 mode iterator.
2745 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
2746 SWI48 mode iterator.
2747 (mov<mode>_insn_1): New expander.
2748 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
2749 using SWI48x mode iterator.
2750
2751 (*movoi_internal_avx): Rename from *movoi_internal.
2752 (*movti_internal_rex64): Rename from *movti_rex64.
2753 (*movti_internal_sse): Rename from *movti_sse.
2754 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
2755 (*movdi_internal): Rename from *movdi_2.
2756 (*movsi_internal): Rename from *movsi_1.
2757 (*movhi_internal): Rename from *movhi_1.
2758 (*movqi_internal): Rename from *movqi_1.
2759
2760 (insv): Update the call to gen_movsi_insv_1 for rename.
2761 * config/i386/i386.c (promote_duplicated_reg): Ditto.
2762
2763 2010-06-22 Jan Hubicka <jh@suse.cz>
2764
2765 * passes.c (execute_function_todo): Move call of statistics_fini_pass
2766 to ...
2767 (execute_todo) ... this one.
2768
2769 2010-06-22 Alan Modra <amodra@gmail.com>
2770
2771 PR target/44364
2772 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2773 * caller-save.c (insert_restore, insert_save): Use non-validate
2774 form of adjust_address.
2775
2776 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2777
2778 PR target/39690
2779 * config/pa/pa.c (override_options): Disable
2780 -freorder-blocks-and-partition.
2781
2782 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
2783
2784 PR target/44615
2785 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
2786
2787 * config/i386/i386.md (type): Add sseishft1
2788
2789 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
2790 (ppro_insn_load): Likewise.
2791 (ppro_insn_store): Likewise.
2792 (ppro_insn_both): Likewise.
2793
2794 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
2795 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
2796 for type.
2797 (*vec_extractv2di_1_avx): Likewise.
2798 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
2799 type. Remove atom_unit.
2800 (*vec_extractv2di_1_sse2): Likewise.
2801
2802 2010-06-21 DJ Delorie <dj@redhat.com>
2803
2804 * diagnostic.h (diagnostic_classification_change_t): New.
2805 (diagnostic_context): Add history and push/pop list.
2806 (diagnostic_push_diagnostics): Declare.
2807 (diagnostic_pop_diagnostics): Declare.
2808 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
2809 from pragmas in a history chain instead of the global table.
2810 (diagnostic_push_diagnostics): New.
2811 (diagnostic_pop_diagnostics): New.
2812 (diagnostic_report_diagnostic): Scan history chain to find state
2813 of diagnostics as of the diagnostic location.
2814 * opts.c (set_option): Pass UNKNOWN_LOCATION to
2815 diagnostic_classify_diagnostic.
2816 (enable_warning_as_error): Likewise.
2817 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
2818 use in the history chain.
2819 * doc/extend.texi: Document pragma GCC diagnostic changes.
2820
2821 2010-06-21 Jakub Jelinek <jakub@redhat.com>
2822
2823 * dwarf2out.c (add_linkage_name): New function. Don't add
2824 anything to DW_TAG_member DIEs.
2825 (add_name_and_src_coords_attributes): Use it.
2826 (gen_variable_die): Call it for C++ static data members if
2827 specification is DW_TAG_member.
2828
2829 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
2830 C++ char16_t and char32_t.
2831
2832 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
2833 * genattrtab.c: Include vecprim.h.
2834 (cached_attrs, cached_attr_count, attrs_seen_once,
2835 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
2836 attrs_cached_after): New variables.
2837 (find_attrs_to_cache): New function.
2838 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
2839 (write_test_expr): Add attrs_cached argument, return it too,
2840 attempt to cache non-const attributes used more than once in
2841 a single case handling.
2842 (write_attr_get): Use find_attrs_to_cache, for caching candidates
2843 emit cached_* variables. Adjust write_attr_set callers.
2844 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
2845 to find attributes that should be cached in this block. Adjust
2846 write_test_expr callers.
2847 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
2848 callers.
2849 (make_automaton_attrs): Adjust write_test_expr caller.
2850
2851 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
2852 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
2853 (make_automaton_attrs): If find_tune_attr returns non-NULL,
2854 write separate internal_dfa_insn_code_* and insn_default_latency_*
2855 functions for each attribute's value and emit init_sched_attrs
2856 function and function pointers.
2857 * genattr.c (const_attrs, reservations): New variables.
2858 (gen_attr): Add const attributes to const_attrs vector.
2859 (check_tune_attr, find_tune_attr): New functions.
2860 (main): Add reservations to reservations vector. If find_tune_attr
2861 returns true, add prototype for init_sched_attrs and make
2862 internal_dfa_insn_code and insn_default_latency function pointers,
2863 otherwise define init_sched_attrs as dummy macro.
2864 * cfgexpand.c: Include insn-attr.h.
2865 (gimple_expand_cfg): Call init_sched_attrs.
2866
2867 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
2868
2869 PR target/44575
2870 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
2871 va_arg from a set of register save slots into a temporary,
2872 if the container is bigger than type size, do the copying
2873 using smaller mode or using memcpy.
2874
2875 PR bootstrap/44426
2876 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
2877 prototype.
2878 (sel_print_to_dot): Remove macro.
2879 (sel_print): Likewise. New prototype.
2880 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
2881 (sel_print): New function.
2882
2883 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2884
2885 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
2886 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
2887
2888 2010-06-21 Nick Clifton <nickc@redhat.com>
2889
2890 * config/rx/rx.h (PTRDIFF_TYPE): Define.
2891 (SMALL_REGISTER_CLASS): Define (to zero).
2892 (PRINT_OPERAND): Delete.
2893 (PRINT_OPERAND_ADDRESS): Delete.
2894 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
2895 (rx_print_operand_address): Delete prototype.
2896 * config/rx/rx.c (rx_print_operand): Make static.
2897 Allow %H and %L to handle CONST_DOUBLEs.
2898 (rx_print_operand_address): Make static.
2899 (rx_gen_move_template): Rename local variable 'template' to
2900 out_template.
2901 (rx_function_arg): Do not pass unknown sized objects in registers.
2902 (TARGET_PRINT_OPERAND): Define.
2903 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2904
2905 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2906
2907 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
2908
2909 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
2910
2911 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
2912 stack-alignment for simple leaf-functions.
2913
2914 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
2915
2916 * doc/install.texi: Document bootstrap-lto.
2917
2918 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
2919
2920 PR debug/44248
2921 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
2922 (input_function): Drop them here, if VTA is disabled.
2923
2924 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
2925
2926 PR target/44546
2927 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
2928 New predicate.
2929 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2930 ix86_swapped_fp_comparsion_operator instead of
2931 ix86_fp_comparison_operator.
2932
2933 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2934 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2935 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2936 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2937 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2938 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2939
2940 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2941
2942 PR other/32998
2943 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2944 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2945 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2946 (decode_cmdline_option): Update for this return value. Set
2947 orig_option_with_args_text field. Set arg field for unknown
2948 options. Make static.
2949 (decode_cmdline_options_to_array): New.
2950 (prune_options): Update handling of find_opt return value.
2951 * opts.c (read_cmdline_option): Take decoded option. Return void.
2952 (read_cmdline_options): Take decoded options.
2953 (decode_options): Add parameters for decoded options. Use
2954 decode_cmdline_options_to_array. Use decoded options for -O
2955 scan. Use integral_argument for -O parameters. Update call to
2956 read_cmdline_options.
2957 (enable_warning_as_error): Update handling of find_opt return value.
2958 * opts.h: Update comment on unknown options.
2959 (struct cl_decoded_option): Update comments on opt_index and arg.
2960 Add orig_option_with_args_text.
2961 (decode_cmdline_option): Remove.
2962 (decode_cmdline_options_to_array): Declare.
2963 (decode_options): Update prototype.
2964 * toplev.c (save_argv): Remove.
2965 (save_decoded_options, save_decoded_options_count): New.
2966 (read_integral_parameter): Remove.
2967 (print_switch_values): Use decoded options.
2968 (toplev_main): Don't set save_argv. Update call to decode_options.
2969 * toplev.h (read_integral_parameter): Remove.
2970 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2971
2972 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
2973
2974 PR target/44072
2975 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2976 immediate.
2977 * constraints.md (Pw, Px): New constraints.
2978 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2979
2980 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
2981
2982 * config/i386/sse.md (fma4modesuffixf4): Removed.
2983 (ssemodesuffixf2s): Likewise.
2984 (ssemodesuffixf4): Likewise.
2985 (ssemodesuffixf2c): Likewise.
2986 (ssescalarmodesuffix2s): Likewise.
2987 (avxmodesuffixf2c): Likewise.
2988 (ssemodesuffix): New.
2989 (ssescalarmodesuffix): Likewise.
2990 Update patterns with ssemodesuffix and ssescalarmodesuffix.
2991
2992 2010-06-19 Philip Herron <herron.philip@googlemail.com>
2993
2994 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2995
2996 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
2997
2998 * stor-layout.c (debug_rli): Remove unused local variables.
2999
3000 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3001
3002 PR rtl-optimization/40900
3003 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
3004 original expression for later reuse.
3005 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3006 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3007
3008 2010-06-18 Anatoly Sokolov <aesok@post.ru>
3009
3010 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3011 double_int_fits_in_uhwi_p): Implement as static inline.
3012 (double_int_xor): New inline function.
3013 (double_int_lrotate, double_int_rrotate, double_int_max,
3014 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3015 double_int_smin): Declare.
3016 (lrotate_double, rrotate_double): Remove declaration.
3017 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3018 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3019 (double_int_lrotate, double_int_rrotate, double_int_max,
3020 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3021 double_int_smin): New function.
3022 * fold-const.c (int_const_binop): Clean up, use double_int_*
3023 functions.
3024 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3025 double_int_* and immed_double_int_const functions.
3026
3027 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3028
3029 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3030 * function.c (types_used_by_cur_var_decl): Likewise.
3031 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3032
3033 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3034
3035 * tree.h (record_layout_info): Change type of pending_statics field
3036 to a VEC.
3037 * stor-layout.c (start_record_layout): Store NULL into
3038 pending_statics.
3039 (debug_rli): Call debug_vec_tree instead of debug_tree.
3040 (place_field): Likewise.
3041 (finish_record_layout): Likewise.
3042
3043 2010-06-18 Alan Modra <amodra@gmail.com>
3044
3045 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3046
3047 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3048
3049 PR target/43740
3050 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3051 for SET source operand from SET destination operand.
3052
3053 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
3054
3055 PR rtl-optimization/39871
3056 * reload1.c (init_eliminable_invariants): For flag_pic, disable
3057 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3058 (function_invariant_p): Rule out a plus of frame or arg pointer with
3059 a SYMBOL_REF.
3060 * ira.c (find_reg_equiv_invariant_const): Likewise.
3061
3062 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
3063
3064 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3065 print_operand_address and puts to output the operand for CONST.
3066
3067 2010-06-17 Jakub Jelinek <jakub@redhat.com>
3068
3069 PR debug/44572
3070 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3071 hook.
3072
3073 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3074
3075 * v850-protos.h (print_operand): Delete.
3076 (print_operand_address): Delete.
3077 * v850.h (PRINT_OPERAND): Delete.
3078 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3079 (PRINT_OPERAND_ADDRESS): Delete.
3080 * v850.c (print_operand_address): Rename to...
3081 (v850_print_operand_address): ...this. Make static. Call
3082 v850_print_operand.
3083 (print_operand): Rename to...
3084 (v850_print_operand): ...this. Make static. Call
3085 v850_print_operand_address.
3086 (v850_print_operand_punct_valid_p): New function.
3087 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3088 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3089
3090 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3091
3092 * config/sh/sh-protos.h (print_operand): Delete.
3093 (print_operand_address): Delete.
3094 * config/sh/sh.h (PRINT_OPERAND): Delete.
3095 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3096 (PRINT_OPERAND_ADDRESS): Delete.
3097 * config/sh/sh.c (sh_print_operand_address): Make static.
3098 (sh_print_operand): Make static. Call sh_print_operand_address
3099 and sh_print_operand.
3100 (sh_print_operand_punct_valid_p): New function.
3101 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3102 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3103
3104 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3105
3106 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3107 (mcore_print_operand_address): Delete.
3108 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3109 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3110 (PRINT_OPERAND_ADDRESS): Delete.
3111 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3112 (mcore_print_operand): Make static.
3113 (mcore_print_operand_punct_valid_p): New function.
3114 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3115 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3116
3117 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3118
3119 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3120 (print_operand_address): Delete.
3121 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3122 (PRINT_OPERAND_ADDRESS): Delete.
3123 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3124 static.
3125 (m68hc11_print_operand): Make static.
3126 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3127
3128 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3129
3130 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3131 (m32r_print_operand_address): Delete.
3132 * config/m32r/m32r.h (m32r_punct_chars): Delete.
3133 (PRINT_OPERAND): Delete.
3134 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3135 (PRINT_OPERAND_ADDRESS): Delete.
3136 * config/m32r/m32r.c (m32r_punct_chars): Make static.
3137 (m32r_print_operand_address): Make static.
3138 (m32r_print_operand): Make static.
3139 (m32r_print_operand_punct_valid_p): New function.
3140 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3141 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3142
3143 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3144
3145 * config/iq2000/iq2000-protos.h (print_operand): Delete.
3146 (print_operand_address): Delete.
3147 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3148 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3149 (PRINT_OPERAND_ADDRESS): Delete.
3150 (iq2000_print_operand_punct): Delete.
3151 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3152 (iq2000_print_operand_address): Make static.
3153 (iq2000_print_operand): Make static.
3154 (iq2000_print_operand_punct_valid_p): New function.
3155 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3156 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3157
3158 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3159
3160 * config/frv/frv-protos.h (frv_print_operand): Delete.
3161 (frv_print_operand_address): Delete.
3162 * config/frv/frv.h (PRINT_OPERAND): Delete.
3163 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3164 (PRINT_OPERAND_ADDRESS): Delete.
3165 * config/frv/frv.c (frv_print_operand_address): Make static.
3166 (frv_print_operand): Make static.
3167 (frv_print_operand_punct_valid_p): New function.
3168 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3169 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3170
3171 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3172
3173 * tree.h (vec_member): Declare.
3174 * tree.c (vec_member): Define.
3175
3176 2010-06-17 Richard Guenther <rguenther@suse.de>
3177
3178 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3179 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3180
3181 2010-06-17 Richard Guenther <rguenther@suse.de>
3182
3183 * tree-inline.c (declare_return_variable): Remove bogus code.
3184
3185 2010-06-17 Richard Guenther <rguenther@suse.de>
3186
3187 * gimplify.c (gimplify_bind_expr): Always promote complex
3188 and vector variables to registers if possible.
3189
3190 2010-06-17 Richard Guenther <rguenther@suse.de>
3191
3192 * expr.c (get_inner_reference): Use double_int for bit_offset
3193 calculation.
3194
3195 2010-06-16 DJ Delorie <dj@redhat.com>
3196
3197 * common.opt (-fstrict-volatile-bitfields): new.
3198 * doc/invoke.texi: Document it.
3199 * fold-const.c (optimize_bit_field_compare): For volatile
3200 bitfields, use the field's type to determine the mode, not the
3201 field's size.
3202 * expr.c (expand_assignment): Likewise.
3203 (get_inner_reference): Likewise.
3204 (expand_expr_real_1): Likewise.
3205 * expmed.c (store_fixed_bit_field): Likewise.
3206 (extract_bit_field_1): Likewise.
3207 (extract_fixed_bit_field): Likewise.
3208
3209 2010-06-16 Richard Guenther <rguenther@suse.de>
3210
3211 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3212
3213 2010-06-16 Douglas B Rupp <rupp@gnat.com>
3214
3215 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3216 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3217 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3218 * debug.c: Likewise.
3219 * sdbout.c: Likewise.
3220 * vmsdbgout.c: Likewise.
3221 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3222 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3223 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3224 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3225 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3226 * dwarf2out.c (dw_fde_struct): New fields
3227 dw_fde_vms_{end,begin}_prologue.
3228 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3229 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3230 (dwarf2out_vms_end_prologue): New function.
3231 (dwarf2out_vms_begin_epilogue): New function.
3232 (dw_val_struct): New value dw_val_class_vms_delta.
3233 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3234 begin_epilogue for VMS.
3235 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3236 new static functions.
3237 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3238 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3239 static functions.
3240 (print_die): New case dw_val_class_vms_delta.
3241 (attr_checksum): Likewise.
3242 (same_dw_val_p: Likewise.
3243 (size_of_die): Likewise.
3244 (value_format): Likewise.
3245 (output_die): Likewise.
3246 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3247 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3248 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3249 dwarf2out_cfi_begin_epilogue
3250 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3251
3252 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3253
3254 * config/cris/cris-protos.h (cris_print_operand): Delete.
3255 (cris_print_operand_address): Delete.
3256 * config/cris/cris.h (PRINT_OPERAND): Delete.
3257 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3258 (PRINT_OPERAND_ADDRESS): Delete.
3259 * config/cris/cris.c (cris_print_operand_address): Make static.
3260 (cris_print_operand): Make static.
3261 (cris_print_operand_punct_valid_p): New function.
3262 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3263 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3264
3265 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3266
3267 * config/arm/arm-protos.h (arm_print_operand): Delete.
3268 (arm_print_operand_address): Delete.
3269 * config/arm/arm.h (PRINT_OPERAND): Delete.
3270 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3271 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3272 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3273 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
3274 (arm_print_operand): Make static.
3275 (arm_print_operand_punct_valid_p): New function.
3276 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3277 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3278
3279 2010-06-16 Nick Clifton <nickc@redhat.com>
3280
3281 * config/rx/constraints.md (NEGint4): New constraint.
3282 * config/rx/rx.md (attr cc): Add set_zsc.
3283 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3284 initialised.
3285 (cmpsf): Likewise.
3286 (call_internal): Clobber the cc0 register.
3287 (call_value_internal): Likewise.
3288 (cstoresi4): Likewise.
3289 (movsieq): Likewise.
3290 (movsine): Likewise.
3291 (addsi3): Add alternative to handle small negative constants.
3292 (sunsi3): Likewise.
3293 (addsi3): Do not set the O bit in the cc0 register.
3294 (adddi3): Likewise.
3295 (subsi3): Likewise.
3296 (subdi3): Likewise.
3297 (andsi3): Reorder alternatives to prefer shorter forms.
3298 (mulsi3): Likewise.
3299 (iorsi3): Likewise.
3300 (negsi2): Note that the cc0 flags are set.
3301 (rotlsi3): Note that only the Z and S bits are set in cc0.
3302 (lshrsi3): Likewise.
3303 (ashlsi3): Likewise.
3304 (subsf3): Use %Q for the MEM operand.
3305 (fix_truncsfsi2): Likewise.
3306 (floatsisf2): Likewise.
3307 (bitset): Remove early clobber from destination.
3308 (bitset_in_memory): Likewise.
3309 (lrintsf2): Clobber the cc0 register.
3310 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3311 (rx_print_operand): Handle %N.
3312
3313 2010-06-16 Jan Hubicka <jh@suse.cz>
3314
3315 * df-core.c (df_compact_blocks): Free problem_temps vector.
3316
3317 2010-06-16 Martin Jambor <mjambor@suse.cz>
3318
3319 PR tree-optimization/43905
3320 * tree-sra.c: Include tree-inline.h.
3321 (create_abstract_origin): Removed.
3322 (modify_function): Version the call graph node instead of creating
3323 abstract origins and dealing with same_body aliases.
3324 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3325 function is versionable.
3326 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3327
3328 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
3329
3330 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3331 (CHOOSE_DYNAMIC_LINKER): Update.
3332
3333 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
3334
3335 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
3336 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3337 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3338 *prefetch_3dnow_rex.
3339
3340 2010-06-15 Anatoly Sokolov <aesok@post.ru>
3341
3342 * target.h (struct asm_out):Add declare_constant_name field.
3343 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3344 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3345 * output.h (default_asm_declare_constant_name): Declare.
3346 (assemble_label): Update prototype.
3347 * varasm.c (assemble_constant_contents): Use
3348 targetm.asm_out.declare_constant_name target hook.
3349 (assemble_label): Add 'file' argument.
3350 (default_asm_declare_constant_name): New function.
3351 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3352 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3353 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3354
3355 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3356 * config/darwin.c (darwin_asm_declare_constant_name): New function.
3357 (machopic_output_indirection): Update assemble_label argument list.
3358 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3359 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3360
3361 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
3362
3363 PR middle-end/44391
3364 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3365 size_one_node for pointer types. Do not call gmp_cst_to_tree.
3366
3367 2010-06-15 Richard Guenther <rguenther@suse.de>
3368
3369 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3370
3371 2010-06-15 Paul Brook <paul@codesourcery.com>
3372
3373 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3374 hard-float ABI.
3375
3376 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
3377
3378 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3379 don't get a vector type for output.
3380
3381 2010-06-15 Jakub Jelinek <jakub@redhat.com>
3382
3383 PR fortran/44536
3384 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3385 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3386 (LANG_HOOKS_DECLS): Add it.
3387 * gimplify.c (omp_notice_variable): Call
3388 lang_hooks.decls.omp_report_decl.
3389
3390 2010-06-15 Martin Jambor <mjambor@suse.cz>
3391
3392 PR lto/44464
3393 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3394 on the newly dead SSA name.
3395
3396 2010-06-15 Alan Modra <amodra@gmail.com>
3397
3398 * doc/invoke.texi: Add mcmodel to powerpc options.
3399 * configure.ac: Add HAVE_LD_LARGE_TOC test.
3400 * configure: Regenerate.
3401 * config.in: Regenerate.
3402 * config/rs6000/linux64.opt (mcmodel): New.
3403 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3404 (TARGET_CMODEL, SET_CMODEL): Define.
3405 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3406 select CMODEL_MEDIUM default.
3407 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3408 (TARGET_CMODEL): Define default.
3409 * config/rs6000/rs6000.c (cmodel): New variable.
3410 (rs6000_explicit_options): Add cmodel field.
3411 (rs6000_handle_option): Handle -mcmodel.
3412 (create_TOC_reference): Add largetoc_reg param. Generate high,
3413 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
3414 (rs6000_delegitimize_address): Recognise new toc reference rtl
3415 and minimal-toc rtl.
3416 (rs6000_legitimize_reload_address): Handle new toc references.
3417 (print_operand_address): Handle legitimate_constant_pool_address_p
3418 match before lo_sum.
3419 (rs6000_eliminate_indexed_memrefs): Tidy.
3420 (rs6000_emit_move): Tweak threshold for inlining constants.
3421 Keep rs6000_emit_allocate_stack large stack frame offsets
3422 loaded into r0 inline.
3423 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3424 (tocrel_base, tocrel_offset): New variables.
3425 (toc_relative_expr_p): Set them here.
3426 (print_operand_address): Skip over any offset on constant pool address.
3427 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3428 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3429 (offsettable_ok_by_alignment): New function.
3430 (rs6000_emit_move): Address suitably aligned local symbol_refs
3431 relative to the toc pointer for -mcmodel=medium.
3432 (legitimate_constant_pool_address_p): Make param const_rtx. Add
3433 strict param. Allow lo_sum version of addressing. Verify reg
3434 used for -mminimal-toc and -mcmodel != small. Update all callers.
3435 * config/rs6000/constraints.md: Update for above change.
3436 * config/rs6000/predicates.md: Likewise.
3437 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3438 code.
3439 (tls_gd): Split for -mcmodel=medium/large.
3440 (tls_gd_high, tls_gd_low): New.
3441 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3442 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3443 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3444 (largetoc_high, largetoc_low): New.
3445 (cmptf_internal2): Add clobber.
3446 * config/rs6000/rs6000-protos.h: Update.
3447
3448 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
3449
3450 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
3451 true if no prefetch is going to be generated for a given group.
3452 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3453 estimate the prefetch_count.
3454 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3455 prefetch count by considering the unroll_factor and prefetch_mod
3456 for is_loop_prefetching_profitable.
3457
3458 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
3459
3460 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3461 anything if the argument is not a MEM.
3462
3463 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3464
3465 PR debug/43650
3466 PR debug/44181
3467 PR debug/44247
3468 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3469 debug stmts.
3470 (canonicalize_loop_ivs): Likewise.
3471
3472 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3473
3474 PR debug/43656
3475 * haifa-sched.c (setup_insn_reg_pressure_info,
3476 update_register_pressure): Reject debug insns.
3477 (ready_sort): Don't setup reg pressure for debug insns.
3478 (schedule_insn): Don't update reg pressure for debug insns.
3479
3480 2010-06-14 Richard Guenther <rguenther@suse.de>
3481
3482 * lto-streamer.c (cached_bp): Remove.
3483 (bitpack_delete): Likewise.
3484 (bitpack_create): Likewise.
3485 (bp_get_next_word): Likewise.
3486 (bp_pack_value, bp_unpack_value): Move ...
3487 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3488 Re-implement.
3489 (struct bitpack_d): Likewise.
3490 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3491 New inline functions.
3492 * lto-streamer-out.c (lto_output_bitpack): Remove.
3493 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3494 (pack_value_fields): Adjust.
3495 (lto_write_tree): Likewise.
3496 (output_gimple_stmt): Likewise.
3497 (output_function): Likewise.
3498 * lto-streamer-in.c (input_gimple_stmt): Adjust.
3499 (input_function): Likewise.
3500 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3501 (lto_input_bitpack): Remove.
3502 (lto_materialize_tree): Adjust.
3503 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3504 * lto-cgraph.c (lto_output_edge): Adjust.
3505 (lto_output_node): Likewise.
3506 (lto_output_varpool_node): Likewise.
3507 (lto_output_ref): Likewise.
3508 (input_node): Likewise.
3509 (input_varpool_node): Likewise.
3510 (input_ref): Likewise.
3511 (input_edge): Likewise.
3512 (output_node_opt_summary): Likewise.
3513 (input_node_opt_summary): Likewise.
3514 * ipa-pure-const.c (pure_const_write_summary): Likewise.
3515 (pure_const_read_summary): Likewise.
3516 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3517 (ipa_read_indirect_edge_info): Likewise.
3518 (ipa_write_node_info): Likewise.
3519 (ipa_read_node_info): Likewise.
3520
3521 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
3522
3523 PR target/44534
3524 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3525 (vec_extract_lo_v16hi): Likewise.
3526 (vec_extract_lo_v32qi): Likewise.
3527
3528 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3529
3530 PR bootstrap/44426
3531 * tree.h (build_call_expr): Don't define as vararg macro, instead
3532 add a prototype.
3533 * builtins.c (build_call_nofold): Remove.
3534 (expand_builtin_int_roundingfn, expand_builtin_pow,
3535 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3536 expand_builtin_memset_args, expand_builtin_strcmp,
3537 expand_builtin_strncmp, expand_builtin_memory_chk): Use
3538 build_call_nofold_loc instead of build_call_nofold.
3539 (build_call_expr): New function.
3540
3541 PR tree-optimization/44508
3542 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3543 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3544 don't eliminate trivially dead stmts.
3545 * tree-vrp.c (vrp_finalize): Pass false as last argument
3546 to substitute_and_fold.
3547 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3548 to substitute_and_fold.
3549 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3550
3551 PR bootstrap/44509
3552 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3553
3554 2010-06-14 Ira Rosen <irar@il.ibm.com>
3555
3556 PR tree-optimization/44507
3557 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3558 to build initial vector for BIT_AND_EXPR.
3559 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3560
3561 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3562
3563 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3564 adjust z10prop set_attr.
3565
3566 2010-06-13 Jan Hubicka <jh@suse.cz>
3567
3568 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3569 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3570 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3571 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3572 datastructure checks into checking asserts.
3573 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3574 * tree-ssa-sccvn.c (VN_INFO): Likewise.
3575 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3576 df_ref_create_structure): Likewise.
3577 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3578 pool_free): Use gcc_checking_assert.
3579 * alias.c (get_alias_set): Likewise.
3580 * var-tracking.c (variable_htab_free, shared_hash_copy,
3581 canonicalize_values_mark, variable_merge_over_cur): Likewise.
3582 * lto-streamer.c (bp_unpack_value): Likewise.
3583
3584 2010-06-13 Richard Guenther <rguenther@suse.de>
3585
3586 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3587 Do not stream but initialize TYPE_CANONICAL to NULL.
3588 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3589 * gimple.c (gimple_types_compatible_p): Disregard
3590 TYPE_STRUCTURAL_EQUALITY_P.
3591 (gimple_register_type): Use TYPE_CANONICAL as cache.
3592 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3593 before registering common types.
3594 * config/i386/i386.c (ix86_function_arg_boundary): Do not
3595 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3596 * tree.h (TYPE_CANONICAL): Clarify documentation.
3597
3598 2010-06-13 Anatoly Sokolov <aesok@post.ru>
3599
3600 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3601 LIBCALL_VALUE): Remove macros.
3602 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3603 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3604 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3605 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3606 (ia64_function_value): Make static. Handle receiving the function
3607 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3608
3609 2010-06-12 Jan Hubicka <jh@suse.cz>
3610
3611 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3612 at correct place.
3613
3614 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
3615
3616 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3617
3618 2010-06-12 Jan Hubicka <jh@suse.cz>
3619
3620 * df-core.c (df_clear_bb_info): New function.
3621 (df_set_blocks): bb_info is always allocated.
3622 (df_get_bb_info): Use block_info_elt_size.
3623 (df_set_bb_info): Likewise.
3624 (df_compact_blocks): Update for new block_info.
3625 (grow_bb_info): New function.
3626 * df-problems.c (df_grow_bb_info): Move to df-core.c
3627 (df_rd_set_bb_info): Remove.
3628 (df_rd_free_bb_info): Do not free block pool.
3629 (df_rd_alloc): Do not create pool, use check for
3630 obstack presence instead of NULL pointer for new blocks.
3631 (df_rd_free): DO not free alloc pool; clear block_info.
3632 (problem_RD): Add size of block info structure.
3633 (df_lr_set_bb_info): Remove.
3634 (df_lr_free_bb_info): Do not free block pool.
3635 (df_lr_alloc): Do not create pool, use check for
3636 obstack presence instead of NULL pointer for new blocks.
3637 (df_lr_free): DO not free alloc pool; clear block_info.
3638 (problem_LR): Add size of block info structure.
3639 (df_live_set_bb_info): Remove.
3640 (df_live_free_bb_info): Do not free block pool.
3641 (df_live_alloc): Do not create pool, use check for
3642 obstack presence instead of NULL pointer for new blocks.
3643 (df_live_free): DO not free alloc pool; clear block_info.
3644 (problem_LIVE): Add size of block info structure.
3645 (problem_CHAIN): Add size of block info structure.
3646 (df_byte_lr_set_bb_info): Remove.
3647 (df_byte_lr_free_bb_info): Do not free block pool.
3648 (df_byte_lr_alloc): Do not create pool, use check for
3649 obstack presence instead of NULL pointer for new blocks.
3650 (df_byte_lr_free): DO not free alloc pool; clear block_info.
3651 (problem_BYTE_LR): Add size of block info structure.
3652 (problem_NOTE): Add size of block info structure.
3653 (df_byte_MD_set_bb_info): Remove.
3654 (df_byte_MD_free_bb_info): Do not free block pool.
3655 (df_byte_MD_alloc): Do not create pool, use check for
3656 obstack presence instead of NULL pointer for new blocks.
3657 (df_byte_MD_free): DO not free alloc pool; clear block_info.
3658 (problem_BD): Add size of block info structure.
3659 * df-scan.c (df_scan_free_internal): Free block pool.
3660 (df_scan_set_bb_info): Remove.
3661 (df_scan_free_bb_info): Check for artificial_defs instead
3662 of bb_info being non-NULL.
3663 (df_scan_alloc): DO not create df_scan_block pool.
3664 (problem_SCAN): Set size of block info.
3665 (df_bb_refs_record): Do not allocate bb_info.
3666 * df.h (df_problem): Add block_info_elt_size.
3667 (struct dataflow): Change block_info to void *.
3668 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3669 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3670 in-line structures.
3671
3672 2010-06-12 Jan Hubicka <jh@suse.cz>
3673
3674 PR tree-optimize/44485
3675 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3676 containing use of return value of noreturn function.
3677
3678 2010-06-12 Anatoly Sokolov <aesok@post.ru>
3679
3680 * targhooks.c (default_function_value): Don't use
3681 FUNCTION_OUTGOING_VALUE.
3682 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3683 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3684
3685 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
3686
3687 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3688 Add crtfastmath.o to extra_parts.
3689 * config/mips/crtfastmath.c: New.
3690 * config/mips/linux.h (ENDFILE_SPEC): New.
3691
3692 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
3693
3694 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3695 old_type in parameter.
3696 (gcc_type_for_value): Update call to gcc_type_for_interval.
3697 (compute_type_for_level_1): Renamed compute_type_for_level.
3698 Update call to gcc_type_for_interval.
3699
3700 2010-06-11 Joseph Myers <joseph@codesourcery.com>
3701
3702 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3703 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
3704
3705 2010-06-11 Joseph Myers <joseph@codesourcery.com>
3706
3707 * opts-common.c: Include options.h.
3708 (integral_argument): Move from opts.c.
3709 (decode_cmdline_option): New. Based on read_cmdline_option.
3710 * opts.c (integral_argument): Move to opts-common.c.
3711 (read_cmdline_option): Move most contents to
3712 decode_cmdline_option. Use %qs in diagnostics.
3713 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
3714 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
3715 decode_cmdline_option): New.
3716
3717 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3718
3719 PR target/44481
3720 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
3721 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
3722 (partiysi2_cmp): Ditto.
3723 (*partiyhi2_cmp): Ditto.
3724 (*parityqi2_cmp): Remove.
3725
3726 2010-06-11 Jan Hubicka <jh@suse.cz>
3727
3728 * bitmap.h (bmp_iter_next_bit): New.
3729 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
3730
3731 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
3732 Eric Botcazou <ebotcazou@adacore.com>
3733
3734 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
3735 computed cost.
3736
3737 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3738
3739 * config/i386/i386.md (unspec): New define_c_enum.
3740 (unspecv): Ditto.
3741
3742 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3743
3744 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
3745
3746 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
3747
3748 PR middle-end/44483
3749 * tree-if-conv.c (bb_predicate_s): New struct.
3750 (bb_predicate_p): New.
3751 (bb_has_predicate): New.
3752 (bb_predicate): New.
3753 (set_bb_predicate): New.
3754 (bb_predicate_gimplified_stmts): New.
3755 (set_bb_predicate_gimplified_stmts): New.
3756 (add_bb_predicate_gimplified_stmts): New.
3757 (init_bb_predicate): New.
3758 (free_bb_predicate): New.
3759 (is_predicated): Use bb_predicate.
3760 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
3761 (predicate_bbs): Same. Gimplify the condition of the basic blocks
3762 before processing their successors.
3763 (clean_predicate_lists): Removed.
3764 (find_phi_replacement_condition): Use bb_predicate.
3765 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
3766 computations.
3767 (insert_gimplified_predicates): New.
3768 (combine_blocks): Call insert_gimplified_predicates.
3769 (tree_if_conversion): Call free_bb_predicate instead of
3770 clean_predicate_lists.
3771
3772 2010-10-11 Paul Brook <paul@codesourcery.com>
3773
3774 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
3775 * config/arm/arm.c (all_architectures): Change v7e-m default to
3776 cortexm4.
3777 * config/arm/arm-cores.def: Add cortex-m4.
3778 * config/arm/arm-tune.md: Regenerate.
3779
3780 2010-06-11 Jan Hubicka <jh@suse.cz>
3781
3782 * ipa-pure-const.c (special_builtlin_state): New function.
3783 (check_call): Use it instead of special casign BUILT_IN_RETURN.
3784 (propagate_pure_const): Use it.
3785
3786 2010-06-11 Jan Hubicka <jh@suse.cz>
3787
3788 * df-problems.c (df_live_scratch): Convert to bitmap_head.
3789 (df_live_alloc): Initialize df_live_scratch when initializing
3790 problem_data.
3791 (df_live_transfer_function): Update uses of df_live_scratch.
3792 (df_live_free): Free problem_data; clear df_live_scratch before
3793 releasing the obstack.
3794 (df_md_free): Free problem data.
3795
3796 2010-06-11 Jan Hubicka <jh@suse.cz>
3797
3798 * doc/invoke.texi (Wsuggest-attribute): Document.
3799 (Wmissing-noreturn): Remove.
3800 * ipa-pure-const.c (warn_function_noreturn): New function.
3801 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
3802 warn_missing_noreturn.
3803 * common.opt (Wsuggest-attribute=noreturn): New.
3804 * tree-flow.h (warn_function_noreturn): Declare.
3805 * tree-cfg.c (execute_warn_function_noreturn): Use
3806 warn_function_noreturn.
3807 (gate_warn_function_noreturn): New.
3808 (pass_warn_function_noreturn): Update.
3809
3810 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3811
3812 * c-typeck.c (handle_warn_cast_qual): Add loc
3813 parameter. Improve warning message.
3814 (build_c_cast): Pass location to handle_warn_cast_qual.
3815
3816 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3817
3818 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
3819 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
3820 insn mnemonic.
3821 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
3822
3823 2010-06-10 Dodji Seketeli <dodji@redhat.com>
3824
3825 Fix bootstap on mips
3826 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
3827 be naming typedefs.
3828
3829 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
3830
3831 * system.h (helper_const_non_const_cast): New inline for
3832 gcc version <= 4.0.
3833 (CONST_CAST2): For gcc version <= 4.0 use
3834 new helper to do const/non-const casting.
3835
3836 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3837
3838 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
3839 * Makefile.in (OBJS-common): Include insn-enums.o.
3840 (insn-enums.o): New rule.
3841 (simple_generated_c): Add insn-enums.c.
3842 (build/genenums.o): New rule.
3843 (genprogmd): Add "enums".
3844 * genconstants.c (print_enum_type): Declare a C string array
3845 for each enum.
3846 * genenums.c: New file.
3847 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
3848 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
3849 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
3850
3851 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3852
3853 * doc/md.texi (define_enum_attr): Document.
3854 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
3855 * read-md.h (lookup_enum_type): Declare.
3856 * read-md.c (lookup_enum_type): New function.
3857 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
3858 * genattrtab.c (attr_desc): Add an enum_name field.
3859 (evaluate_eq_attr): Take the associated attribute as argument.
3860 Get the enum prefix from the enum_name field, if defined.
3861 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
3862 (simplify_test_exp): Pass attr to evaluate_eq_attr.
3863 (add_attr_value): New function, split out from...
3864 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
3865 (write_test_expr): Pass attr to evaluate_eq_attr.
3866 (write_attr_get): Use the enum_name as the enum tag, if defined.
3867 (write_attr_valueq): Use the enum_name as a prefix, if defined.
3868 (find_attr): Initialize enum_name.
3869 (main): Handle DEFINE_ENUM_ATTR.
3870 * gensupport.c (process_rtx): Likewise.
3871 * config/mips/mips.h (mips_tune_attr): Delete.
3872 * config/mips/mips.md (cpu): Use define_attr_enum.
3873
3874 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3875
3876 * doc/md.texi (define_c_enum, define_enum): Document.
3877 * read-md.h (md_constant): Add a parent_enum field.
3878 (enum_value, enum_type): New structures.
3879 (upcase_string, traverse_enum_types): Declare.
3880 * read-md.c (enum_types): New variable.
3881 (upcase_string, add_constant): New functions.
3882 (handle_constants): Don't create the hash table here.
3883 Use add_constant.
3884 (traverse_md_constants): Don't check for a null md_constants.
3885 (decimal_string, handle_enum, traverse_enum_types): New functions.
3886 (read_md_files): Initialize md_constants and md_enums.
3887 * genconstants.c (print_md_constant): Ignore info argument.
3888 Only print constants that belong to no enum.
3889 (print_enum_type): New function.
3890 (main): Don't pass stdout to print_md_constant. Call print_enum_type
3891 for each defined enum type.
3892 * config/mips/mips.md (processor): New define_enum.
3893 (unspec): New define_c_enum.
3894 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
3895 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
3896 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
3897 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
3898 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3899 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3900 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3901 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3902 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3903 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3904 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3905 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3906 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3907 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3908 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3909 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3910 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3911 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3912 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3913 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3914 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3915 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3916 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3917 (UNSPEC_RDDSP): Move to mips-dsp.md.
3918 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
3919 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
3920 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
3921 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3922 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3923 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3924 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3925 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3926 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3927 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3928 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3929 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3930 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3931 Moved to mips-dspr2.md.
3932 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3933 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3934 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3935 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3936 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3937 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3938 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3939 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3940 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3941 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3942 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3943 UNSPEC_LOONGSON_PSADBH)
3944 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3945 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3946 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3947 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3948 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3949 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3950 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3951 (cpu): Update comment.
3952 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3953 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3954 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3955 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3956 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3957 UNSPEC_LOONGSON_PCMPEQ)
3958 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3959 UNSPEC_LOONGSON_PINSR_0)
3960 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3961 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3962 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3963 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3964 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3965 UNSPEC_LOONGSON_PSADBH)
3966 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3967 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3968 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3969 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3970 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3971 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3972 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3973 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3974 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3975 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3976 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3977 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3978 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3979 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3980 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3981 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3982 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3983 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3984 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3985 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3986 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3987 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3988 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3989 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3990 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3991 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3992 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3993 (UNSPEC_RDDSP): Moved from mips.md.
3994 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3995 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3996 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3997 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3998 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3999 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4000 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4001 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4002 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4003 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4004 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4005 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4006 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4007 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4008 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4009 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4010 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4011 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4012 (UNSPEC_SCC): Moved from mips.md.
4013 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4014 "processor_type" to "processor".
4015 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4016 * config/mips/mips.h (processor_type): Delete.
4017 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4018 "processor_type" to "processor".
4019
4020 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4021
4022 * configure.ac (tm_include_list): Add insn-constants.h.
4023 * configure: Regenerate.
4024 * Makefile.in (GTM_H): Move insn-constants.h here from...
4025 (TM_H): ...here.
4026 * mkconfig.sh: Remove special handling for insn-constants.h.
4027
4028 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4029
4030 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4031 (BUILD_MD): ...this new variable.
4032 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4033 that include the old contents of simple_generated_h and
4034 simple_generated_c.
4035 (simple_generated_h, simple_generated_c): Include them. Add
4036 insn-constants.h.
4037 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4038 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4039 Remove these dependencies from the main rule and include
4040 insn-conditions.md in the command line only if it appears
4041 in the dependency list.
4042 (insn-constants.h, s-constants): Delete.
4043 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4044 or gensupport.h.
4045 (build/genmddeps.o): Likewise.
4046 (genprogrtl): New variable that contains everything from genprogmd
4047 except mddeps and constants.
4048 (genprogmd): Redefine in terms of genprogrtl. Make these programs
4049 depend on $(BUILD_MD)
4050 (genprog): New variable. Make these programs depend on
4051 $(BUILD_ERRORS).
4052 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4053 (main): Use read_md_files instead of init_rtx_reader_args.
4054 * genconstants.c: As for genmddeps.c.
4055 * read-md.h (read_skip_construct): Declare.
4056 * read-md.c (read_skip_construct): New function.
4057 (handle_file): Allow a null handle_directive, skipping the
4058 construct if so.
4059 (parse_include): Update the comment accordingly.
4060
4061 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4062
4063 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4064 * genmddeps.c: Include read-md.h.
4065 (main): Call init_rtx_reader_args instead of init_md_reader_args.
4066 * genattr.c (main): Likewise.
4067 * genattrtab.c (main): Likewise.
4068 * genautomata.c (main): Likewise.
4069 * gencodes.c (main): Likewise.
4070 * genconditions.c (main): Likewise.
4071 * genconfig.c (main): Likewise.
4072 * genconstants.c (main): Likewise.
4073 * genemit.c (main): Likewise.
4074 * genextract.c (main): Likewise.
4075 * genflags.c (main): Likewise.
4076 * genopinit.c (main): Likewise.
4077 * genoutput.c (main): Likewise.
4078 * genpeep.c (main): Likewise.
4079 * genrecog.c (main): Likewise.
4080 * genpreds.c (main): Likewise.
4081 * gensupport.h (in_fname): Move to read-md.h.
4082 (init_md_reader_args_cb): Rename to...
4083 (init_rtx_reader_args_cb): ...this and return a bool.
4084 (init_md_reader_args): Rename to...
4085 (init_rtx_reader_args): ...this and return a bool.
4086 (include_callback): Move to read-md.h.
4087 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4088 (file_name_list, first_dir_md_include): Move to read-md.c
4089 (first_bracket_include): Delete unused variable.
4090 (last_dir_md_include): Move to read-md.c.
4091 (process_include): Delete, moving code to read-md.c:handle_include.
4092 (process_rtx): Don't handle INCLUDE.
4093 (save_string): Delete.
4094 (rtx_handle_directive): New function.
4095 (init_md_reader_args_cb): Rename to...
4096 (init_rtx_reader_args_cb): ...this and return a boolean success value.
4097 Use read_md_args.
4098 (init_md_reader_args): Rename to...
4099 (init_rtx_reader_args): ...this and return a boolean success value.
4100 * rtl.def (INCLUDE): Delete.
4101 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
4102 argument.
4103 * read-rtl.c (read_conditions): Don't gobble ')' here.
4104 (read_mapping): Likewise.
4105 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
4106 Handle top-level non-rtx constructs here rather than in read_rtx_1.
4107 Store the whole queue in *X. Remove call to init_md_reader.
4108 (read_rtx_1): Rename to...
4109 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
4110 Don't handle top-level non-rtx constructs here. Don't handle (nil)
4111 here.
4112 (read_nested_rtx): New function. Handle (nil) here rather than
4113 in read_rtx_code.
4114 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
4115 gobble ')' here.
4116 * read-md.h (directive_handler_t): New type.
4117 (in_fname, include_callback): Moved from read-md.h.
4118 (read_constants, init_md_reader): Delete.
4119 (read_md_files): Declare.
4120 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4121 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4122 from gensupport.c.
4123 (read_constants): Rename to...
4124 (handle_constants): ...this. Don't gobble ')' here.
4125 (handle_include, handle_file, handle_toplevel_file)
4126 (parse_include): New functions, mostly taken from gensupport.c.
4127 (init_md_reader): Subsume into...
4128 (read_md_files): ...this new function.
4129
4130 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4131
4132 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4133 (unread_char): Decrement read_md_lineno after putting back '\n'.
4134 * read-md.c (fatal_with_file_and_line): Push back any characters
4135 that we decide not to add to the context.
4136 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
4137 fatal_expected_char in cases where '/' ends a line (for example).
4138 (read_name): Don't increment read_md_lineno here.
4139 (read_escape): Likewise.
4140 (read_quoted_string): Likewise.
4141 (read_braced_string): Likewise.
4142
4143 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4144
4145 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4146 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4147 * genconstants.c: Include read-md.h.
4148 * read-rtl.c (md_constants): Move to read-md.c.
4149 (md_name): Move to read-md.h.
4150 (initialize_iterators): Use leading_string_hash instead of def_hash
4151 and leading_string_eq_p instead of def_name_eq_p.
4152 (read_name): Move to read-md.c.
4153 (def_hash, def_name_eq_p): Delete.
4154 (read_constants, traverse_md_constants): Move to read-md.c.
4155 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4156 * read-md.h: Include hashtab.h.
4157 (md_name): Moved from read-rtl.c.
4158 (md_constant): Moved from read-md.h.
4159 (leading_string_hash, leading_string_eq_p, read_name)
4160 (read_constants, traverse_md_constants): Declare.
4161 * read-md.c (md_constants): Moved from read-rtl.c.
4162 (leading_string_hash, leading_string_eq_p): New functions.
4163 (read_name, read_constants, traverse_md_constants): Moved from
4164 read-rtl.c.
4165
4166 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4167
4168 * read-rtl.c (md_name): New structure.
4169 (read_name): Take an md_name instead of a buffer pointer.
4170 Use the "string" field instead of strcpy when expanding constants.
4171 (read_constants): Remove the tmp_char argument. Update the calls
4172 to read_name, using two local name buffers instead of the tmp_char
4173 argument. Merge the constant-creation code.
4174 (read_conditions): Remove the tmp_char argument. Update the calls
4175 to read_name, using a local name buffer instead of the tmp_char
4176 argument.
4177 (read_mapping): Replace tmp_char variable with a local name buffer.
4178 Update the calls to read_name.
4179 (read_rtx_1): Likewise. Update the calls to read_constants and
4180 read_conditions.
4181
4182 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4183
4184 * Makefile.in (build/read-md.o): Depend on errors.h.
4185 * read-md.h (error_with_line): Declare.
4186 * read-md.c: Include errors.h.
4187 (message_with_line_1): New function, extracted from...
4188 (message_with_line): ...here.
4189 (error_with_line): New function.
4190 * genattrtab.c: If a call to message_with_line is followed by
4191 "have_error = 1;", replace both statements with a call to
4192 error_with_line.
4193 * genoutput.c: Likewise.
4194 * genpreds.c: Likewise.
4195 * genrecog.c: If a call to message_with_line is followed by
4196 "error_count++;", replace both statements with a call to
4197 error_with_line.
4198 (errorcount): Delete.
4199 (main): Don't check it.
4200 * gensupport.c: If a call to message_with_line is followed by
4201 "errors = 1;", replace both statements with a call to error_with_line.
4202 (errors): Delete.
4203 (process_define_cond_exec): Check have_error instead of errors.
4204 (init_md_reader_args_cb): Likewise. Don't set errors.
4205
4206 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4207
4208 * read-md.h (read_md_file): Declare.
4209 (read_char, unread_char): New functions.
4210 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4211 (read_quoted_string, read_string): Remove FILE * argument.
4212 * read-md.c (read_md_file): New variable.
4213 (read_md_filename, read_md_lineno): Update comments and remove
4214 unnecessary initialization.
4215 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4216 (read_escape, read_quoted_string, read_braced_string, read_string):
4217 Remove FILE * argument. Update calls accordingly, using read_char
4218 and unread_char instead of getc and ungetc.
4219 * rtl.h (read_rtx): Remove FILE * argument.
4220 * read-rtl.c (iterator_group): Remove FILE * argument from
4221 "find_builtin".
4222 (iterator_traverse_data): Remove "infile" field.
4223 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4224 (add_mapping, read_name, read_constants, read_conditions)
4225 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4226 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4227 Remove file arguments from all calls, using read_char and unread_char
4228 instead of getc and ungetc.
4229 * gensupport.c (process_include): Preserve read_md_file around
4230 the include. Set read_md_file to the handle of the included file.
4231 Update call to read_rtx.
4232 (init_md_reader_args_cb): Set read_md_file to the handle of the file
4233 and remove local FILE *. Update calls to read_rtx.
4234
4235 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4236
4237 * read-md.h (read_rtx_lineno): Rename to...
4238 (read_md_lineno): ...this.
4239 (read_rtx_filename): Rename to...
4240 (read_md_filename): ...this.
4241 (copy_rtx_ptr_loc): Rename to...
4242 (copy_md_ptr_loc): ...this.
4243 (print_rtx_ptr_loc): Rename to...
4244 (print_md_ptr_loc): ...this.
4245 * read-md.c: Likewise. Update references after renaming.
4246 (string_obstack): Replace RTL with MD in comment.
4247 (set_rtx_ptr_loc): Rename to...
4248 (set_md_ptr_loc): ...this.
4249 (get_rtx_ptr_loc): Rename to...
4250 (get_md_ptr_loc): ...this.
4251 * genconditions.c: Update references after renaming.
4252 * genemit.c: Likewise.
4253 * genoutput.c: Likewise.
4254 * genpreds.c: Likewise.
4255 * gensupport.c: Likewise.
4256 * read-rtl.c: Likewise.
4257
4258 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4259
4260 * Makefile.in (READ_MD_H): New variable.
4261 (BUILD_RTL): Add build/read-md.o.
4262 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4263 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4264 (build/genattrtab.o, build/genconditions.o build/genemit.o)
4265 (build/genextract.o, build/genflags.o, build/genoutput.o)
4266 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4267 (build/read-md.o): New rule.
4268 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4269 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4270 * coretypes.h: ...here.
4271 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4272 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4273 * genattr.c: Include read-md.h.
4274 * genattrtab.c: Likewise.
4275 * genconditions.c: Likewise.
4276 * genemit.c: Likewise.
4277 * genextract.c: Likewise.
4278 * genflags.c: Likewise.
4279 * genoutput.c: Likewise.
4280 * genpreds.c: Likewise.
4281 * genrecog.c: Likewise.
4282 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4283 (join_c_conditions, print_c_condition, read_rtx_filename)
4284 (read_rtx_lineno): Move to read-md.h.
4285 * read-rtl.c: Include read-md.h.
4286 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4287 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4288 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4289 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4290 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4291 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4292 (read_braced_string, read_string): Move to read-md.c.
4293 (read_rtx): Move some initialization to init_md_reader and call
4294 init_md_reader here.
4295 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4296 Move to read-md.h.
4297 * gensupport.c: Include read-md.h.
4298 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4299 * read-md.h, read-md.c: New files.
4300
4301 2010-06-10 Anatoly Sokolov <aesok@post.ru>
4302
4303 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4304 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4305 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4306 * config/moxie/moxie.c (moxie_function_value): Make static.
4307 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4308 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4309
4310 2010-06-10 Martin Jambor <mjambor@suse.cz>
4311
4312 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4313 * dbgcnt.def (tree_sra): New counter.
4314 * tree-sra.c: Include dbgcnt.h.
4315 (gate_intra_sra): Check tree_sra debug counter.
4316
4317 2010-06-10 Martin Jambor <mjambor@suse.cz>
4318
4319 PR tree-optimization/44258
4320 * tree-sra.c (build_access_subtree): Return false iff there is a
4321 partial overlap.
4322 (build_access_trees): Likewise.
4323 (analyze_all_variable_accesses): Disqualify candidates if
4324 build_access_trees returns true for them.
4325
4326 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
4327
4328 PR debug/41371
4329 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4330 tail-recurse into canonical node. Fast-forward over
4331 non-canonical VALUEs.
4332
4333 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
4334
4335 PR boostrap/44470
4336 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4337 (*addsi_1_zext) <TYPE_LEA>: Likewise.
4338 (add lea splitter): Likewise.
4339 (add_zext lea splitter): Likewise.
4340
4341 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4342
4343 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4344
4345 2010-06-10 Jan Hubicka <jh@suse.cz>
4346
4347 * df-problems.c (df_live_problem_data): Add live_bitmaps.
4348 (df_live_alloc): Initialize problem data and live_osbtacks.
4349 (df_live_finalize): Remove obstack, problem data; do not
4350 clear all bitmaps.
4351 (df_live_top_dump, df_live_bottom_dump): Do not dump old
4352 data when not allocated.
4353 (df_live_verify_solution_start): Do not allocate problem data.
4354 (df_live_verify_solution_end): Check if out is allocated.
4355 (struct df_md_problem_data): New structure.
4356 (df_md_alloc): Allocate problem data.
4357 (df_md_free): Free problem data; do not clear bitmaps.
4358
4359 2010-06-10 Jan Beulich <jbeulich@novell.com>
4360
4361 PR bootstrap/37304
4362 * configure.ac: Replace $() with ${} when intending to expand
4363 variables rather than invoking commands.
4364 * configure: Re-generate.
4365
4366 2010-06-10 Jan Hubicka <jh@suse.cz>
4367
4368 PR rtl-optimization/44460
4369 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4370 TYPE_NEEDS_CONSTRUCTING sanity check.
4371
4372 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4373
4374 * doc/include/fdl.texi: Move to GFDL version 1.3.
4375
4376 * doc/cpp.texi: Move to GFDL version 1.3.
4377 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
4378 * doc/gccint.texi: Move to GFDL version 1.3.
4379 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
4380 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
4381 * doc/invoke.texi: Move to GFDL version 1.3.
4382
4383 2010-06-09 Jan Hubicka <jh@suse.cz>
4384
4385 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4386 Break out from ...
4387 (propagate) ... here; swap the order.
4388
4389 2010-06-09 Jan Hubicka <jh@suse.cz>
4390
4391 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4392 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4393 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4394 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4395
4396 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4397
4398 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4399 Do not the gather memory reference in the outer loop if the step
4400 is not a constant.
4401
4402 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4403
4404 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4405 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4406 8 to 4. Minor change of the related comments.
4407
4408 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4409
4410 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4411 the scev analysis when the variable is not used outside the loop
4412 in a close phi node: call compute_overall_effect_of_inner_loop.
4413
4414 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4415
4416 * graphite-sese-to-poly.c (single_pred_cond): Renamed
4417 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
4418 (build_sese_conditions_before): Renamed call to single_pred_cond.
4419 (build_sese_conditions_after): Same.
4420
4421 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4422
4423 * graphite-poly.h: Fix comments and indentation.
4424 * graphite-sese-to-poly.c: Same.
4425 (build_sese_conditions_before): Compute stmt and gbb only when needed.
4426 * tree-chrec.c: Fix comments and indentation.
4427 (tree-ssa-loop-niter.c): Same.
4428
4429 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4430
4431 PR rtl-optimization/42461
4432 * dce.c (deletable_insn_p): Return true for const or pure calls again.
4433 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4434
4435 2010-06-09 Jan Hubicka <jh@suse.cz>
4436
4437 * bitmap.c (bitmap_and): Walk array forward.
4438 (bitmap_and_compl_into): Likewise.
4439 (bitmap_xor): Likewise.
4440 (bitmap_xor_into): Likewise.
4441 (bitmap_equal_p): Likewise.
4442 (bitmap_intersect_p): Likewise.
4443 (bitmap_intersect_compl_p): Likewise.
4444 (bitmap_ior_and_into): Likewise.
4445 (bitmap_elt_copy): Likewise.
4446 (bitmap_and_compl): Likewise.
4447 (bitmap_elt_ior): Likewise.
4448
4449 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
4450
4451 * opts-common.c (prune_options): Ensure replacement argv array
4452 is correctly terminated by a NULL entry.
4453
4454 2010-06-09 Jan Hubicka <jh@suse.cz>
4455
4456 * cgraph.h (varpool_first_static_initializer,
4457 varpool_next_static_initializer): Make checking only when
4458 checking enabled.
4459 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4460 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4461 gcc_assert to gcc_checking_assert.
4462 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4463 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4464 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4465 op_iter_init_phiuse, op_iter_init_phidef,
4466 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4467 gcc_checking_assert.
4468 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4469 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4470 partition_is_global, live_on_entry, live_on_exit,
4471 live_merge_and_clear): Likewise.
4472 * system.h (gcc_checking_assert): New macro.
4473 * gimple.h (set_bb_seq): Use gcc_checking_assert.
4474
4475 2010-06-09 Jason Merrill <jason@redhat.com>
4476
4477 * Makefile.in (TAGS): Collect tags info from c-family.
4478
4479 2010-06-09 Jan Hubicka <jh@suse.cz>
4480
4481 * gimple.h (gcc_gimple_checking_assert): New macro.
4482 (gimple_set_def_ops, gimple_set_use_ops,
4483 gimple_set_vuse, gimple_set_vdef,
4484 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4485 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4486 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4487 gimple_asm_output_op, gimple_asm_output_op_ptr,
4488 gimple_asm_set_output_op, gimple_asm_clobber_op,
4489 gimple_asm_set_clobber_op, gimple_asm_label_op,
4490 gimple_asm_set_label_op, gimple_try_set_kind,
4491 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4492 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4493 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4494 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4495 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4496 gimple_omp_for_set_initial, gimple_omp_for_final,
4497 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4498 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4499 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4500 conditional with ENABLE_GIMPLE_CHECKING.
4501 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4502
4503 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
4504
4505 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4506 (get_computation_cost_at): Use it.
4507 (determine_use_iv_cost_condition): Likewise.
4508 (determine_iv_cost): Likewise.
4509
4510 2010-06-09 Richard Guenther <rguenther@suse.de>
4511
4512 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4513 replace constants.
4514
4515 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
4516
4517 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4518
4519 2010-06-09 Martin Jambor <mjambor@suse.cz>
4520
4521 PR tree-optimization/44423
4522 * tree-sra.c (dump_access): Dump also grp_assignment_read.
4523 (analyze_access_subtree): Pass negative allow_replacements to children
4524 if the current type is scalar.
4525
4526 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4527
4528 PR testsuite/42843
4529 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4530 * doc/plugins.texi (Plugin license check): Update information
4531 on type of plugin_is_GPL_compatible.
4532 * Makefile.in (PLUGINCC): Define as $(COMPILER).
4533 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4534
4535 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
4536
4537 * config/arm/arm.c (thumb2_reorg): New function.
4538 (arm_reorg): Call it.
4539 * config/arm/thumb2.md (define_peephole2 for flag clobbering
4540 arithmetic operations): Delete.
4541
4542 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
4543
4544 PR target/44067
4545 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4546 e500v2 target.
4547
4548 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4549
4550 PR plugins/44459
4551 * gcc-plugin.h: Encapsulate all declarations in extern "C".
4552
4553 2010-06-08 Jan Hubicka <jh@suse.cz>
4554
4555 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4556 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4557
4558 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
4559
4560 PR tree-optimization/39874
4561 PR middle-end/28685
4562 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4563 Declare.
4564 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4565 same_bool_result_p): New.
4566 (and_var_with_comparison, and_var_with_comparison_1,
4567 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4568 (or_var_with_comparison, or_var_with_comparison_1,
4569 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4570 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4571 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4572 of combine_comparisons.
4573 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4574
4575 2010-06-08 Anatoly Sokolov <aesok@post.ru>
4576
4577 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4578 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4579 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4580 pdp11_function_value_regno_p): New functions.
4581 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4582 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4583
4584 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
4585
4586 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4587 Thumb-2 in the MINUS case.
4588
4589 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4590
4591 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4592
4593 * doc/gty.texi (GTY Options): Document typed GC allocation and
4594 variable_size GTY option.
4595
4596 * ggc-internal.h: New.
4597
4598 * ggc.h: Update copyright year.
4599 (digit_string): Move to stringpool.c.
4600 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4601 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4602 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4603 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4604 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4605 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4606 (ggc_force_collect, ggc_get_size, ggc_statistics)
4607 (ggc_print_common_statistics): Move to ggc-internal.h.
4608 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4609 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4610 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4611 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4612 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4613 (ggc_alloc_zone_pass_stat): Remove.
4614 (ggc_internal_alloc_stat, ggc_internal_alloc)
4615 (ggc_internal_cleared_alloc_stat): New.
4616 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4617 (ggc_internal_vec_alloc_stat)
4618 (ggc_internal_cleared_vec_alloc_stat)
4619 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4620 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4621 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4622 (ggc_cleared_alloc_ptr_array_two_args): New.
4623 (htab_create_ggc, splay_tree_new_ggc): Redefine.
4624 (ggc_splay_alloc): Change the type of the first argument to
4625 enum gt_types_enum.
4626 (ggc_alloc_string): Make macro.
4627 (ggc_alloc_string_stat): New.
4628 (ggc_strdup): Redefine.
4629 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4630 (ggc_alloc_rtvec_sized): New.
4631 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4632 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4633 (ggc_internal_cleared_alloc_zone_stat)
4634 (ggc_internal_zone_alloc_stat)
4635 (ggc_internal_zone_cleared_alloc_stat)
4636 (ggc_internal_zone_vec_alloc_stat)
4637 (ggc_alloc_zone_rtx_def_stat)
4638 (ggc_alloc_zone_tree_node_stat)
4639 (ggc_alloc_zone_cleared_tree_node_stat)
4640 (ggc_alloc_cleared_gimple_statement_d_stat): New.
4641
4642 * ggc-common.c: Include ggc-internal.h.
4643 (ggc_internal_cleared_alloc_stat): Rename from
4644 ggc_alloc_cleared_stat.
4645 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4646 (ggc_calloc): Remove.
4647 (ggc_cleared_alloc_htab_ignore_args): New.
4648 (ggc_cleared_alloc_ptr_array_two_args): New.
4649 (ggc_splay_alloc): Add obj_type parameter.
4650 (init_ggc_heuristics): Formatting fixes.
4651
4652 * ggc-none.c: Update copyright year.
4653 (ggc_alloc_stat): Rename to ggc_alloc_stat.
4654 (ggc_alloc_cleared_stat): Rename to
4655 ggc_internal_cleared_alloc_stat.
4656 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4657
4658 * ggc-page.c: Update copyright year. Include ggc-internal.h.
4659 Remove references to ggc_alloc in comments.
4660 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4661 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4662 (new_ggc_zone, destroy_ggc_zone): Remove.
4663 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4664
4665 * ggc-zone.c: Include ggc-internal.h. Remove references to
4666 ggc_alloc in comments.
4667 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4668 (ggc_internal_alloc_zone_pass_stat): New.
4669 (ggc_internal_cleared_alloc_zone_stat): New.
4670 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4671 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4672 (new_ggc_zone, destroy_ggc_zone): Remove.
4673
4674 * stringpool.c: Update copyright year. Include ggc-internal.h
4675 (digit_vector): Make static.
4676 (digit_string): Moved from ggc.h.
4677 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4678 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4679
4680 * Makefile.in (GGC_INTERNAL_H): New.
4681 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4682 $(GGC_INTERNAL_H) to dependencies.
4683
4684 * gentype.c: Update copyright year.
4685 (walk_type): Accept variable_size GTY option.
4686 (USED_BY_TYPED_GC_P): New macro.
4687 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
4688 whitespace at the end of strings.
4689 (get_type_specifier, variable_size_p): New functions.
4690 (alloc_quantity, alloc_zone): New enums.
4691 (write_typed_alloc_def): New function.
4692 (write_typed_struct_alloc_def): Likewise.
4693 (write_typed_typed_typedef_alloc_def): Likewise.
4694 (write_typed_alloc_defns): Likewise.
4695 (output_typename, write_splay_tree_allocator_def): Likewise.
4696 (write_splay_tree_allocators): Likewise.
4697 (main): Call write_typed_alloc_defns and
4698 write_splay_tree_allocators.
4699
4700 * lto-streamer.h (lto_file_decl_data_ptr): New.
4701
4702 * passes.c (order): Define using cgraph_node_ptr.
4703
4704 * strinpool.c (struct string_pool_data): Declare nested_ptr using
4705 ht_identifier_ptr.
4706
4707 * gimple.h (union gimple_statement_d): Likewise.
4708
4709 * rtl.h (struct rtx_def): Likewise.
4710 (struct rtvec_def): Likewise.
4711
4712 * tree.h (union tree_node): Likewise.
4713
4714 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
4715
4716 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
4717
4718 * tree-scalar-evolution.c (scev_initialize): Likewise.
4719
4720 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
4721
4722 * dwarf2asm.c (dw2_force_const_mem): Likewise.
4723
4724 * omp-low.c (lower_omp_critical): Likewise.
4725
4726 * bitmap.h (struct bitmap_head_def): Update comment to not
4727 reference ggc_alloc.
4728
4729 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
4730
4731 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
4732
4733 * ipa-prop.c (duplicate_ggc_array): Rename to
4734 duplicate_ipa_jump_func_array. Use typed GC allocation.
4735 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
4736
4737 * gimple.c (gimple_alloc_stat): Use
4738 ggc_alloc_cleared_gimple_statement_d_stat.
4739
4740 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
4741
4742 * tree.c (make_node_stat): Use
4743 ggc_alloc_zone_cleared_tree_node_stat.
4744 (make_tree_vec_stat): Likewise.
4745 (build_vl_exp_stat): Likewise.
4746 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
4747 (make_tree_binfo_stat): Likewise.
4748 (tree_cons_stat): Likewise.
4749
4750 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
4751 (shallow_copy_rtx_stat): Likewise.
4752 (make_node_stat): Likewise.
4753
4754 * lto-symtab.c: Fix comment.
4755
4756 * tree-cfg.c (create_bb): Update comment to not reference
4757 ggc_alloc_cleared.
4758 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
4759
4760 * varpool.c (varpool_node): Use typed GC allocation.
4761 (varpool_extra_name_alias): Likewise.
4762
4763 * varasm.c (emutls_decl): Likewise.
4764 (get_unnamed_section): Likewise.
4765 (get_noswitch_section): Likewise.
4766 (get_section): Likewise.
4767 (get_block_for_section): Likewise.
4768 (build_constant_desc): Likewise.
4769 (create_constant_pool): Likewise.
4770 (force_const_mem): Likewise.
4771
4772 * tree.c (build_vl_exp_stat): Likewise.
4773 (build_real): Likewise.
4774 (build_string): Likewise.
4775 (decl_debug_expr_insert): Likewise.
4776 (decl_value_expr_insert): Likewise.
4777 (type_hash_add): Likewise.
4778 (build_omp_clause): Likewise.
4779
4780 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
4781
4782 * tree-ssa.c (init_tree_ssa): Likewise.
4783
4784 * tree-ssa-structalias.c (heapvar_insert): Likewise.
4785
4786 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4787
4788 * tree-ssa-loop-niter.c (record_estimate): Likewise.
4789
4790 * tree-ssa-alias.c (get_ptr_info): Likewise.
4791
4792 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4793
4794 * tree-phinodes.c (allocate_phi_node): Likewise.
4795
4796 * tree-iterator.c (tsi_link_before): Likewise.
4797 (tsi_link_after): Likewise.
4798
4799 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4800
4801 * tree-dfa.c (create_var_ann): Likewise.
4802
4803 * tree-cfg.c (create_bb): Likewise.
4804
4805 * toplev.c (alloc_for_identifier_to_locale): Likewise.
4806 (general_init): Likewise.
4807
4808 * stringpool.c (stringpool_ggc_alloc): Likewise.
4809 (gt_pch_save_stringpool): Likewise.
4810
4811 * sese.c (if_region_set_false_region): Likewise.
4812
4813 * passes.c (do_per_function_toporder): Likewise.
4814
4815 * optabs.c (set_optab_libfunc): Likewise.
4816 (set_conv_libfunc): Likewise.
4817
4818 * lto-symtab.c (lto_symtab_register_decl): Likewise.
4819
4820 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4821 (input_eh_region): Likewise.
4822 (input_eh_lp): Likewise.
4823 (make_new_block): Likewise.
4824 (unpack_ts_real_cst_value_fields): Likewise.
4825
4826 * lto-section-in.c (lto_new_in_decl_state): Likewise.
4827
4828 * lto-cgraph.c (input_node_opt_summary): Likewise.
4829
4830 * loop-init.c (loop_optimizer_init): Likewise.
4831
4832 * lambda.h (lambda_vector_new): Likewise.
4833
4834 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4835
4836 * ira.c (update_equiv_regs): Likewise.
4837
4838 * ipa.c (cgraph_node_set_new): Likewise.
4839 (cgraph_node_set_add): Likewise.
4840 (varpool_node_set_new): Likewise.
4841 (varpool_node_set_add): Likewise.
4842
4843 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
4844 (duplicate_ipa_jump_func_array): Likewise.
4845 (ipa_read_node_info): Likewise.
4846
4847 * ipa-cp.c (ipcp_create_replace_map): Likewise.
4848
4849 * integrate.c (get_hard_reg_initial_val): Likewise.
4850
4851 * gimple.c (gimple_alloc_stat): Likewise.
4852 (gimple_build_omp_for): Likewise.
4853 (gimple_seq_alloc): Likewise.
4854 (gimple_copy): Likewise.
4855
4856 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
4857 (gsi_insert_after_without_update): Likewise.
4858
4859 * function.c (add_frame_space): Likewise.
4860 (insert_temp_slot_address): Likewise.
4861 (assign_stack_temp_for_type): Likewise.
4862 (allocate_struct_function): Likewise.
4863 (types_used_by_var_decl_insert): Likewise.
4864
4865 * except.c (init_eh_for_function): Likewise.
4866 (gen_eh_region): Likewise.
4867 (gen_eh_region_catch): Likewise.
4868 (gen_eh_landing_pad): Likewise.
4869 (add_call_site): Likewise.
4870
4871 * emit-rtl.c (get_mem_attrs): Likewise.
4872 (get_reg_attrs): Likewise.
4873 (start_sequence): Likewise.
4874 (init_emit): Likewise.
4875
4876 * dwarf2out.c (new_cfi): Likewise.
4877 (queue_reg_save): Likewise.
4878 (dwarf2out_frame_init): Likewise.
4879 (new_loc_descr): Likewise.
4880 (find_AT_string): Likewise.
4881 (new_die): Likewise.
4882 (add_var_loc_to_decl): Likewise.
4883 (clone_die): Likewise.
4884 (clone_as_declaration): Likewise.
4885 (break_out_comdat_types): Likewise.
4886 (new_loc_list): Likewise.
4887 (loc_descriptor): Likewise.
4888 (add_loc_descr_to_each): Likewise.
4889 (add_const_value_attribute): Likewise.
4890 (tree_add_const_value_attribute): Likewise.
4891 (add_comp_dir_attribute): Likewise.
4892 (add_name_and_src_coords_attributes): Likewise.
4893 (lookup_filename): Likewise.
4894 (store_vcall_insn): Likewise.
4895 (dwarf2out_init): Likewise.
4896
4897 * dbxout.c (dbxout_init): Likewise.
4898
4899 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4900
4901 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4902
4903 * config/score/score7.c (score7_output_external): Likewise.
4904
4905 * config/score/score3.c (score3_output_external): Likewise.
4906
4907 * config/s390/s390.c (s390_init_machine_status): Likewise.
4908
4909 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4910 (rs6000_init_machine_status): Likewise.
4911 (output_toc): Likewise.
4912
4913 * config/pa/pa.c (pa_init_machine_status): Likewise.
4914 (get_deferred_plabel): Likewise.
4915
4916 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4917
4918 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4919
4920 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4921
4922 * config/mep/mep.c (mep_init_machine_status): Likewise.
4923 (mep_note_pragma_flag): Likewise.
4924
4925 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4926
4927 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4928
4929 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4930
4931 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4932 (i386_pe_maybe_record_exported_symbol): Likewise.
4933
4934 * config/i386/i386.c (get_dllimport_decl): Likewise.
4935 (ix86_init_machine_status): Likewise.
4936 (assign_386_stack_local): Likewise.
4937
4938 * config/frv/frv.c (frv_init_machine_status): Likewise.
4939
4940 * config/darwin.c (machopic_indirection_name): Likewise.
4941
4942 * config/cris/cris.c (cris_init_machine_status): Likewise.
4943
4944 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4945
4946 * config/avr/avr.c (avr_init_machine_status): Likewise.
4947
4948 * config/arm/arm.c (arm_init_machine_status): Likewise.
4949
4950 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4951 (alpha_need_linkage): Likewise.
4952 (alpha_use_linkage): Likewise.
4953
4954 * cgraph.c (cgraph_allocate_node): Likewise.
4955 (cgraph_create_edge_1): Likewise.
4956 (cgraph_create_indirect_edge): Likewise.
4957 (cgraph_add_asm_node): Likewise.
4958
4959 * cfgrtl.c (init_rtl_bb_info): Likewise.
4960
4961 * cfgloop.c (alloc_loop): Likewise.
4962 (rescan_loop_exit): Likewise.
4963
4964 * cfg.c (init_flow): Likewise.
4965 (alloc_block): Likewise.
4966 (unchecked_make_edge): Likewise.
4967
4968 * c-parser.c (c_parse_init): Likewise.
4969 (c_parse_file): Likewise.
4970
4971 * c-decl.c (bind): Likewise.
4972 (record_inline_static): Likewise.
4973 (push_scope): Likewise.
4974 (make_label): Likewise.
4975 (lookup_label_for_goto): Likewise.
4976 (finish_struct): Likewise.
4977 (finish_enum): Likewise.
4978 (c_push_function_context): Likewise.
4979
4980 * bitmap.c (bitmap_element_allocate): Likewise.
4981 (bitmap_gc_alloc_stat): Likewise.
4982
4983 * alias.c (record_alias_subset): Likewise.
4984 (init_alias_analysis): Likewise.
4985
4986 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
4987
4988 * fold-const.c (fold_comparison): Remove redundant parenthesis.
4989 * tree-inline.c (expand_call_inline): Pass translated return value of
4990 cgraph_inline_failed_string to diagnostic function.
4991
4992 2010-06-08 Andrew Pinski <pinskia@gmail.com>
4993 Shujing Zhao <pearly.zhao@oracle.com>
4994
4995 PR c/37724
4996 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4997 implicit bad conversions is initialization.
4998 (error_init): Use gmsgid instead of msgid for argument name and change
4999 the call for error.
5000 (pedwarn_init): Use gmsgid instead of msgid for argument name and
5001 change the call for pedwarn.
5002 (warning_init): Use gmsgid instead of msgid for argument name and
5003 change the call for warning.
5004
5005 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
5006
5007 * config/mips/mips-protos.h (mips_print_operand): Delete.
5008 (mips_print_operand_address): Delete.
5009 * config/mips/mips.h (mips_print_operand_punct): Delete.
5010 (PRINT_OPERAND): Delete.
5011 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5012 (PRINT_OPERAND_ADDRESS): Delete.
5013 * config/mips/mips.c (mips_print_operand_punct): Make static.
5014 (mips_print_operand_address): Make static.
5015 (mips_print_operand): Make static. Call
5016 mips_print_operand_punct_valid_p.
5017 (mips_print_operand_punct_valid_p): New function.
5018 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5019 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5020
5021 2010-06-07 Jan Hubicka <jh@suse.cz>
5022
5023 PR middle-end/44454
5024 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5025 are allocated.
5026
5027 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
5028
5029 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5030 name of RECORD.
5031
5032 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5033
5034 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5035 attributes): Document gas.
5036
5037 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
5038
5039 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5040 <TYPE_LEA>: Split instruction.
5041 <default>: Remove alternative 2 handling.
5042 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5043 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5044 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5045
5046 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5047 (ashift_zext lea splitter): Use DImode for multiplication.
5048
5049 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5050 to generate addition.
5051
5052 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5053
5054 * common.opt (fira-verbose): Use Var.
5055 (fpcc-struct-return): Use Init instead of VarExists.
5056 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5057 toplev.c.
5058 * flags.h (flag_signed_char, flag_short_enums,
5059 flag_pcc_struct_return, flag_ira_verbose,
5060 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5061 * toplev.c (flag_detailed_statistics, flag_signed_char,
5062 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5063 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5064 * toplev.h (flag_crossjumping, flag_if_conversion,
5065 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5066 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5067 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5068 flag_cprop_registers, time_report, flag_ira_loop_pressure,
5069 flag_ira_coalesce, flag_ira_move_spills,
5070 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5071
5072 2010-06-07 Jan Hubicka <jh@suse.cz>
5073
5074 * df-core.c (df_analyze_problem): Do verification after allocation.
5075
5076 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5077 (df_lr_alloc): Initialize problem data; move bitmaps to
5078 lr_bitmaps obstack.
5079 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5080 (df_lr_verify_solution_start): Do not initialize problem data;
5081 allocate bitmaps in lr_bitmaps.
5082 (df_lr_verify_solution_end): Do not free problem data.
5083
5084 2010-06-07 Jan Hubicka <jh@suse.cz>
5085
5086 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5087 if caller is noreturn.
5088 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5089 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5090 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5091 * ipa-pure-const.c (check_decl): Add IPA parameter.
5092 (state_from_flags): New function.
5093 (better_state, worse_state): New functions.
5094 (check_call): When in IPA mode, do not care about callees.
5095 (check_load, check_store): Update.
5096 (check_ipa_load, check_ipa_store): New.
5097 (check_stmt): When in IPA mode, use IPA checkers.
5098 (analyze_function): Use state_from_flags.
5099 (propagate): Check indirect edges and references.
5100
5101 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
5102
5103 PR rtl-optimization/44404
5104 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5105 of count_occurrences to see if it's safe to modify mem_insn.
5106
5107 2010-06-07 Richard Guenther <rguenther@suse.de>
5108
5109 * gimplify.c (gimplify_cleanup_point_expr): For empty body
5110 and EH-only cleanup drop the cleanup instead of inserting it
5111 unconditionally.
5112
5113 2010-06-07 Ira Rosen <irar@il.ibm.com>
5114
5115 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5116 documentation.
5117 * targhooks.c (default_builtin_vectorization_cost): New function.
5118 * targhooks.h (default_builtin_vectorization_cost): Declare.
5119 * target.h (enum vect_cost_for_stmt): Define.
5120 (builtin_vectorization_cost): Change argument and comment.
5121 * tree-vectorizer.h: Remove cost model macros.
5122 * tree-vect-loop.c: Include target.h.
5123 (vect_get_cost): New function.
5124 (vect_estimate_min_profitable_iters): Replace cost model macros with
5125 calls to vect_get_cost.
5126 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5127 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5128 default implementation.
5129 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5130 calls to target hook builtin_vectorization_cost.
5131 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5132 Likewise.
5133 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5134 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5135 implementation to return costs.
5136 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5137 * config/spu/spu.h: Remove vectorizer cost model macros.
5138 * config/i386/i386.h: Likewise.
5139 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5140 a call to target hook builtin_vectorization_cost.
5141
5142 2010-06-06 Sriraman Tallam <tmsriram@google.com>
5143
5144 PR target/44319
5145 * config/i386/i386.c (override_options): Turn zee pass on for level 2
5146 and above and defer till target is known.
5147 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5148 turn off otherwise.
5149
5150 2010-05-25 Jan Hubicka <jh@suse.cz>
5151
5152 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5153 (df_compact_blocks): Likewise.
5154 * df.h (struct df): Turn hardware_regs_used,
5155 regular_block_artificial_uses, eh_block_artificial_uses,
5156 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5157 bitmap_head.
5158 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5159 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5160 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5161 df_scan_blocks, df_insn_delete, df_insn_rescan,
5162 df_insn_rescan_debug_internal, df_insn_rescan_all,
5163 df_process_deferred_rescans, df_process_deferred_rescans,
5164 df_notes_rescan, df_get_call_refs, df_get_call_refs,
5165 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5166 df_record_entry_block_defs, df_record_exit_block_uses,
5167 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5168 df_scan_verify): Update.
5169
5170 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5171
5172 PR c++/44188
5173 * c-common.c (is_typedef_decl): Move this definition ...
5174 * tree.c (is_typedef_decl): ... here.
5175 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5176 * c-common.h (is_typedef_decl): Move this declaration ...
5177 * tree.h (is_typedef_decl): ... here.
5178 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5179 * dwarf2out.c (is_naming_typedef_decl): New function.
5180 (gen_tagged_type_die): Split out of ...
5181 (gen_type_die_with_usage): ... this function. When an anonymous
5182 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5183 is emitted for the typedef.
5184 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5185 anonymous tagged types.
5186
5187 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5188
5189 PR c/20000
5190 * c-decl.c (grokdeclarator): Delete warning.
5191
5192 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
5193
5194 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5195 newly built CALL_EXPR.
5196 * tree-profile.c (tree_profiling): Don't profile functions produced
5197 for built-in stuff.
5198
5199 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
5200
5201 PR bootstrap/44427
5202 PR bootstrap/44428
5203 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5204 endianness-independent.
5205
5206 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5207
5208 * c-common.c: Move to c-family/.
5209 * c-common.def: Likewise.
5210 * c-common.h: Likewise.
5211 * c-cppbuiltin.c: Likewise.
5212 * c-dump.c: Likewise.
5213 * c-format.c: Likewise.
5214 * c-format.h : Likewise.
5215 * c-gimplify.c: Likewise.
5216 * c-lex.c: Likewise.
5217 * c-omp.c: Likewise.
5218 * c.opt: Likewise.
5219 * c-opts.c: Likewise.
5220 * c-pch.c: Likewise.
5221 * c-ppoutput.c: Likewise.
5222 * c-pragma.c: Likewise.
5223 * c-pragma.h: Likewise.
5224 * c-pretty-print.c: Likewise.
5225 * c-pretty-print.h: Likewise.
5226 * c-semantics.c: Likewise.
5227 * stub-objc.c: Likewise.
5228
5229 * gengtype.c (get_file_langdir): Special-case files in c-family/.
5230 (get_output_file_with_visibility): Fix name for c-common.h.
5231 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5232
5233 * c-tree.h: Update include path for moved files.
5234 * c-lang.c: Likewise.
5235 * c-lang.h: Likewise.
5236 * c-parser.c: Likewise.
5237 * c-convert.c: Likewise.
5238 * c-decl.c: Likewise.
5239 * c-objc-common.c: Likewise.
5240 * configure.ac: Make sure c-family/ exists in the build directory.
5241 * configure: Regenerate.
5242 * Makefile.in: Update paths for moved files. Regroup files per
5243 location and update dependencies. Move generated_files down after
5244 ALL_GTFILES_H.
5245
5246 * config/spu/spu-c.c: Update paths for moved files.
5247 * config/mep/mep-pragma.c: Likewise.
5248 * config/darwin-c.c: Likewise.
5249 * config/i386/msformat-c.c: Likewise.
5250 * config/i386/i386-c.c: Likewise.
5251 * config/avr/avr-c.c: Likewise.
5252 * config/sol2-c.c: Likewise.
5253 * config/ia64/ia64-c.c: Likewise.
5254 * config/rs6000/rs6000-c.c: Likewise.
5255 * config/arm/arm.c: Likewise.
5256 * config/arm/arm-c.c: Likewise.
5257 * config/h8300/h8300.c: Likewise.
5258 * config/v850/v850-c.c: Likewise.
5259
5260 * config/t-darwin: Fix dependencies for moved files.
5261 * config/t-sol2: Fix dependencies for moved files.
5262 * config/mep/t-mep: Fix dependencies for moved files.
5263 * config/ia64/t-ia64: Fix dependencies for moved files.
5264 * config/rs6000/t-rs6000: Fix dependencies for moved files.
5265 * config/v850/t-v850: Fix dependencies for moved files.
5266 * config/v850/t-v850e: Fix dependencies for moved files.
5267
5268 * config/m32c/m32c-pragma.c
5269
5270 * po/exgettext: Look in c-family/ also.
5271
5272 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
5273
5274 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5275 (mark_control_dependent_edges_necessary): Call it instead of marking
5276 the last statement manually.
5277 (propagate_necessity): Likewise.
5278
5279 2010-06-05 Jan Hubicka <jh@suse.cz>
5280
5281 * basic-block.h (compute_dominance_frontiers): Updated.
5282 (compute_idf): Likewise.
5283
5284 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5285 for dominance frontiers.
5286 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5287 (insert_updated_phi_nodes_for): Likewise.
5288 (update_ssa): Likewise.
5289 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5290 (compute_dominance_frontiers): Likewise.
5291 (compute_idf): Likewise.
5292 * df-problems.c (df_md_local_compute): Likewise.
5293
5294 2010-06-05 Anatoly Sokolov <aesok@post.ru>
5295
5296 * target.h (struct gcc_target): Add memory_move_cost field.
5297 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5298 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5299 * targhooks.c (default_memory_move_cost): New function.
5300 * targhooks.h (default_memory_move_cost): Declare function.
5301 * reload.h (memory_move_cost): Declare.
5302 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5303 * reginfo.c (memory_move_cost): New function.
5304 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5305 * ira.h (ira_memory_move_cost): Update comment.
5306 * ira.c: (ira_memory_move_cost): Update comment.
5307 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5308 with memory_move_cost.
5309 * postreload.c (reload_cse_simplify_set): (Ditto.).
5310 * reload1.c (choose_reload_regs): (Ditto.).
5311 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5312 (MEMORY_MOVE_COST): Revise documentation.
5313
5314 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5315 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5316 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5317 type of 'in' argument to bool.
5318 (TARGET_MEMORY_MOVE_COST): Define.
5319
5320 2010-06-05 Jan Hubicka <jh@suse.cz>
5321
5322 * ipa-pure-const.c (propagate): Fix typo in handling of functions
5323 that cannot return. Be more careful when merging the results with
5324 previously known ones.
5325
5326 2010-06-05 Matthias Klose <doko@ubuntu.com>
5327
5328 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5329 function to add the -iplugindir option.
5330 (find_plugindir_spec_function): Add new declaration and function.
5331 (static_spec_func): Use it for "find-plugindir".
5332
5333 2010-06-05 Jakub Jelinek <jakub@redhat.com>
5334
5335 PR c++/44361
5336 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5337 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5338 statement expression.
5339
5340 2010-06-05 Jan Hubicka <jh@suse.cz>
5341
5342 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5343 (df_rd_problem_data): Convert sparse_invalidated_by_call,
5344 dense_invalidated_by_call to bitmap head.
5345 (df_rd_alloc, df_rd_bb_local_compute_process_def,
5346 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5347 df_rd_start_dump, df_lr_verify_transfer_functions,
5348 df_live_verify_transfer_functions, df_chain_create_bb,
5349 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5350 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5351 df_simulate_one_insn_forwards, df_md_alloc,
5352 df_md_bb_local_compute_process_def,
5353 df_md_bb_local_compute_process_def, df_md_local_compute,
5354 df_md_transfer_function df_md_free): Update.
5355
5356 2010-06-05 Joseph Myers <joseph@codesourcery.com>
5357
5358 PR c/44322
5359 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5360 target type for ADDR_EXPR; require no changes to qualifiers except
5361 for function types.
5362 * c-tree.h (c_build_type_variant): Remove.
5363
5364 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5365
5366 * genautomata.c (get_excl_set): Do work per element, not per char.
5367 (check_presence_pattern_sets): Similar.
5368 (check_absence_pattern_sets): Similar.
5369
5370 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5371
5372 * genautomata.c (curr_state_pass_num): Delete.
5373 (min_issue_delay_pass_states): Delete.
5374 (min_issue_delay): Delete.
5375 (initiate_min_issue_delay_pass_states): Delete.
5376 (output_min_issue_delay_table): Compute min_issue_delay_vect
5377 using a breadth-first search variant.
5378 (output_tables): Don't call initiate_min_issue_delay_pass_states.
5379
5380 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
5381
5382 PR boostrap/44421
5383 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5384 (df_byte_lr_bb_local_compute): Likewise.
5385
5386 2010-06-03 Jason Merrill <jason@redhat.com>
5387
5388 Implement noexcept operator (5.3.7)
5389 * c-common.c (c_common_reswords): Add noexcept.
5390 * c-common.h (enum rid): Add RID_NOEXCEPT.
5391
5392 2010-06-04 Joseph Myers <joseph@codesourcery.com>
5393
5394 * config/darwin-driver.c (darwin_default_min_version): Use
5395 GCC-specific formats in diagnostics.
5396 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5397 diagnostics.
5398 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5399 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5400 eval_spec_function, handle_braces, process_brace_body, main,
5401 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5402 getenv_spec_function, compare_version_strings,
5403 version_compare_spec_function): Use GCC-specific formats in
5404 diagnostics.
5405
5406 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5407
5408 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5409 that operand 0 and operand 1 are equal.
5410 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5411 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5412 and operand 1 are equal.
5413 <default>: Ditto. Remove ??? comment.
5414 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5415 and operand 1 are equal.
5416 <default>: Ditto. Remove ??? comment.
5417 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5418 are equal.
5419 (*add<mode>_4) <default>: Ditto.
5420 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5421
5422 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
5423
5424 * config/i386/i386-protos.h (ix86_print_operand): Declare.
5425 * config/i386/i386.c (ix86_print_operand): Make non-static.
5426 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5427 * output.h (output_operand): Declare.
5428 * final.c (output_operand): Make non-static.
5429
5430 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
5431
5432 PR rtl-optimization/44013
5433 * sched-deps.c (add_dependence_list_and_free): Don't free lists
5434 when processing debug insns.
5435
5436 PR debug/41371
5437 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5438 recursing. Check that recursion is bounded. Rename inner var
5439 to avoid hiding incoming argument.
5440
5441 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5442
5443 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5444 operands[2] == 255.
5445 (*addqi_3): Ditto.
5446 (*addqi_4): Ditto.
5447 (*addqi_5): Ditto.
5448 (*addqi_ext_1_rex64): Ditto.
5449 (*addqi_ext_1): Ditto.
5450
5451 (*addqi_4): Check for incdec_operand in QImode.
5452
5453 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5454 using SWI mode iterator.
5455 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5456 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5457 mode iterator.
5458 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5459 using SWI mode iterator.
5460
5461 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5462
5463 PR c/25880
5464 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5465 * c-format.c (gcc_diag_flag_specs): Add hash.
5466 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5467 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5468 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5469 pp_c_cv_qualifiers. Handle qualifiers spelling here.
5470 (pp_c_type_qualifier_list): Call the function above.
5471 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5472 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5473 (WARN_FOR_QUALIFIERS): New macro.
5474 (convert_for_assignment): Use it.
5475
5476 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
5477
5478 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5479
5480 2010-06-04 Jan Hubicka <jh@suse.cz>
5481
5482 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5483 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5484 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5485 DF_BYTE_LR_OUT): Update for embedded bitmaps.
5486 * fwprop.c (single_def_use_enter_block): Likewise.
5487 * ddg.c (create_ddg_dep_from_intra_loop_link,
5488 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5489 * loop-iv.c (latch_dominating_def): Likewise.
5490 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5491 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5492 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5493 df_rd_transfer_function, df_rd_top_dump,
5494 df_rd_bottom_dump): Update.
5495 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5496 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5497 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5498 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5499 df_lr_verify_solution_start, df_lr_verify_solution_end,
5500 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5501 df_live_free_bb_info, df_live_alloc, df_live_reset,
5502 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5503 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5504 df_live_verify_solution_start, df_live_verify_solution_end,
5505 df_live_verify_transfer_functions, df_chain_create_bb,
5506 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5507 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5508 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5509 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5510 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5511 df_byte_lr_transfer_function, df_byte_lr_top_dump,
5512 df_byte_lr_bottom_dump, df_create_unused_note,
5513 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5514 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5515 df_md_transfer_function, df_md_init, df_md_confluence_0,
5516 df_md_confluence_n,
5517 df_md_top_dump, df_md_bottom_dump): Update.
5518 (struct df_lr_problem_data): Embedd bitmap headers.
5519
5520 2010-06-04 Jan Hubicka <jh@suse.cz>
5521
5522 * dce.c (dce_process_block): Do not re-scan already marked
5523 instructions.
5524
5525 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
5526
5527 PR rtl-optimization/39871
5528 PR rtl-optimization/40615
5529 PR rtl-optimization/42500
5530 PR rtl-optimization/42502
5531 * ira.c (init_reg_equiv_memory_loc: New function.
5532 (ira): Call it twice.
5533 * reload.h (calculate_elim_costs_all_insns): Declare.
5534 * ira-costs.c: Include "reload.h".
5535 (regno_equiv_gains): New static variable.
5536 (init_costs): Allocate it.
5537 (finish_costs): Free it.
5538 (ira_costs): Call calculate_elim_costs_all_insns.
5539 (find_costs_and_classes): Take estimated elimination costs
5540 into account.
5541 (ira_adjust_equiv_reg_cost): New function.
5542 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5543 * reload1.c (init_eliminable_invariants, free_reg_equiv,
5544 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5545 (elim_bb): New static variable.
5546 (reload): Move code out of here into init_eliminable_invariants and
5547 free_reg_equiv. Call them.
5548 (calculate_elim_costs_all_insns): New function.
5549 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
5550 all callers changed. If FOR_COSTS is true, don't call alter_reg,
5551 but call note_reg_elim_costly if we turned a valid memory address
5552 into an invalid one.
5553 * Makefile.in (ira-costs.o): Depend on reload.h.
5554
5555 2010-06-04 Julian Brown <julian@codesourcery.com>
5556
5557 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5558 for pool ranges.
5559
5560 2010-06-04 Richard Guenther <rguenther@suse.de>
5561
5562 PR lto/41584
5563 * cgraph.h (struct varpool_node): Add lto_file_data field.
5564 * lto-cgraph.c (input_varpool_node): Initialize it.
5565
5566 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5567
5568 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5569 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5570 predicate in "type" attribute calculation.
5571 (*addsi_1_zext): Ditto.
5572 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5573 (*addsi_2_zext): Ditto.
5574 (*add<mode>_3): Ditto.
5575 (*addsi_3_zext): Ditto.
5576 (*add<mode>_5): Ditto.
5577
5578 2010-06-03 Jan Hubicka <jh@suse.cz>
5579
5580 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5581 of bitmap_bit_p.
5582 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5583
5584 2010-06-03 Jan Hubicka <jh@suse.cz>
5585
5586 * df-problems.c (df_create_unused_note, df_note_bb_compute):
5587 micro-optimize the checks when to add new note.
5588
5589 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
5590
5591 * final.c (output_asm_insn): Call
5592 targetm.asm_out.print_operand_punct_valid_p. Update comments.
5593 (output_operand): Call targetm.asm_out.print_operand. Update comments.
5594 (output_address): Call targetm.asm_out.print_operand_address.
5595 Update comments.
5596 * target.h (struct gcc_target): Add print_operand,
5597 print_operand_address, and print_operand_punct_valid_p fields.
5598 * targhooks.h (default_print_operand): Declare.
5599 (default_print_operand_address): Declare.
5600 (default_print_operand_punct_valid_p): Declare.
5601 * targhooks.c (default_print_operand): Define.
5602 (default_print_operand_address): Define.
5603 (default_print_operand_punct_valid_p): Define.
5604 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5605 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5606 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5607 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5608 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5609 * vmsdbgout.c (addr_const_to_string): Update comment.
5610 * config/i386/i386.c (print_operand): Rename to...
5611 (ix86_print_operand): ...this. Make static.
5612 (print_operand_address): Rename to...
5613 (ix86_print_operand_address): ...this. Make static. Call
5614 ix86_print_operand instead of PRINT_OPERAND.
5615 (ix86_print_operand_punct_valid_p): New function.
5616 (TARGET_PRINT_OPERAND): Define.
5617 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5618 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5619 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5620 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5621 (PRINT_OPERAND): Delete.
5622 (PRINT_OPERAND_ADDRESS): Delete.
5623 * config/i386/i386-protos.h (print_operand): Delete prototype.
5624 (print_operand_address): Delete prototype.
5625
5626 2010-06-03 Richard Guenther <rguenther@suse.de>
5627
5628 PR tree-optimization/44403
5629 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5630 Preserve pointer qualifiers.
5631 (vect_create_data_ref_ptr): Likewise.
5632
5633 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
5634
5635 PR c++/44294
5636 * defaults.h (MAX_FIXED_MODE_SIZE): New.
5637
5638 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5639
5640 2010-06-03 Jakub Jelinek <jakub@redhat.com>
5641
5642 PR debug/44375
5643 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5644 return false if merging the bbs would lead to goto_locus
5645 location being lost from the IL.
5646
5647 2010-06-03 Jan Hubicka <jh@suse.cz>
5648 Jakub Jelinek <jakub@redhat.com>
5649
5650 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5651 set->regs[i] is NULL or has just one entry.
5652
5653 2010-06-03 Jan Hubicka <jh@suse.cz>
5654
5655 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5656 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5657
5658 2010-06-03 Paul Brook <paul@codesourcery.com>
5659
5660 * config/arm/arm.c (FL_TUNE): Define.
5661 (arm_default_cpu, arm_cpu_select): Remove.
5662 (all_cores): Populate core field.
5663 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5664 (arm_find_cpu): New function.
5665 (arm_handle_option): Lookup cpu/architecture names.
5666 (arm_override_options): Cleanup mcpu/march/mtune handling.
5667 (arm_file_start): Ditto.
5668
5669 2010-06-03 Alan Modra <amodra@gmail.com>
5670
5671 PR target/44169
5672 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5673 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5674 rtx to gen_load_toc_v4_PIC_1b. Tidy.
5675 (rs6000_emit_load_toc_table): Likewise.
5676
5677 2010-06-02 Jan Hubicka <jh@suse.cz>
5678
5679 * passes.c (init_optimization_passes): Put ipa reference
5680 after ipa pure-const.
5681
5682 2010-06-02 Jan Hubicka <jh@suse.cz>
5683
5684 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5685 calls_read_all and calls_write_all.
5686 (get_reference_optimization_summary): Fix formatting.
5687 (is_proper_for_analysis): Check that decl is not readonly.
5688 (propagate_bits): Check CONST/PURE/noreturn flags.
5689 (ipa_init): Move all_module_statics to optimization_summary_obstack.
5690 (analyze_function): Ignore indirect edges.
5691 (copy_global_bitmap): For all module statics, do nothing.
5692 (generate_summary): Do not print calls_read_all/calls_write_all.
5693 (read_write_all_from_decl): Take node as argument; check
5694 cgraph_node_cannot_return.
5695 (propagate): Reorganize read_all/write_all computation;
5696 check indirect edges; check ecf flags; use all_module_statics
5697 in the results; do not free all_module_statics.
5698 (stream_out_bitmap): Handle all_module_statics.
5699 (ipa_reference_write_optimization_summary): Likewise; use
5700 varpool/cgraph encoders to get boundaries.
5701 (ipa_reference_read_optimization_summary): Read in all_module_statics;
5702 use it when possible.
5703
5704 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5705
5706 PR target/44218
5707 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5708 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
5709
5710 * doc/extend.texi (powerpc builtins): Document vec_recip,
5711 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
5712
5713 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
5714 (rs6000_emit_swrsqrt): Ditto.
5715 (rs6000_emit_swdivsf): Delete.
5716 (rs6000_emit_swdivdf): Ditto.
5717 (rs6000_emit_swrsqrtsf): Ditto.
5718
5719 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
5720 describe the reciprocal estimate support for each type.
5721 (recip_options): Map -mrecip=<opt> into option bits.
5722 (gen_2arg_fn_t): New typedef for binary rtx gen function.
5723 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
5724 reciprocal estimate instructions.
5725 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
5726 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
5727 Set up rs6000_recip_bits based on the -mrecip* options. Print the
5728 cost information if -mdebug=cost or -mdebug=reg.
5729 (rs6000_override_options): Set -mrecip-precision for power6, and
5730 power7 machines. If -mvsx or -mdfp, enable various options that
5731 came in previous instruction set ISAs, unless the option was
5732 explicitly disabled by the command line option. Parse
5733 -mrecip=<opt> options.
5734 (rs6000_builtin_vectorized_function): Add support for vectorizing
5735 the reciprocal estimate builtins and expansions.
5736 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
5737 (bdesc_2arg): Add reciprocal estimate builtins.
5738 (bdesc_1arg): Add reciprocal square root estimate builtins.
5739 (rs6000_expand_builtin): Rewrite to use a switch statement,
5740 instead of multiple if/then/elses. Add reciprocal estimate builtins.
5741 (rs6000_init_builtins): Create declarations for reciprocal
5742 estimate builtins.
5743 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
5744 sized, prefer traditional floating point registers, if integer
5745 vector types, prefer altivec registers. Don't actually look at
5746 the memory address any more.
5747 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
5748 builtins.
5749 (rs6000_load_constant_and_splat): New helper function to load up
5750 the constant for reciprocal estimate instructions.
5751 (rs6000_emit_madd): New helper function for generating
5752 multiply/add type instructions, based on the current switches.
5753 (rs6000_emit_msub): Ditto.
5754 (rs6000_emit_mnsub): Ditto.
5755 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
5756 replace a divide with a reciprocal estimate and fixup, adding
5757 support for machines with high precision and vectors.
5758 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
5759 low precision machines.
5760 (rs6000_emit_swdiv): New common function to be called to replace a
5761 division with reciprocal estimate and fixup.
5762 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
5763 for double and vector types. Add support for high precision machines.
5764
5765 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
5766 the reciprocal estimate instructions can be generated.
5767 (TARGET_FRE): Ditto.
5768 (TARGET_FRSQRTES): Ditto.
5769 (TARGET_FRSQRTE): Ditto.
5770 (RS6000_RECIP_*): New macros for reciprocal estimate support.
5771
5772 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
5773 square root estimate on vectors.
5774 (re<mode>2): New insn for reciprocal division estimate on vectors.
5775
5776 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
5777 New builtin.
5778 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
5779 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
5780 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
5781 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
5782 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
5783 (RS6000_BUILTIN_RSQRT): Ditto.
5784 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
5785 floating point builtin.
5786
5787 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5788 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
5789 __RECIP_PRECISION__ based on the command line switches.
5790 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
5791
5792 * config/rs6000/rs6000.opt (-mrecip): Document add support for
5793 replacing division instructions with reciprocal estimate and fixup.
5794 (-mrecip=<opt>): New option.
5795 (-mrecip-precision): Ditto.
5796
5797 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
5798 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
5799 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
5800 precision scalar.
5801
5802 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
5803 (UNSPEC_VREFP): Ditto.
5804 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
5805 conterparts with regard to support of -mno-fused-madd and -ffast-math.
5806 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
5807 reciprocal estimate instructions to be generated.
5808 (altivec_vrefp): Ditto.
5809
5810 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
5811 estimate support.
5812 (rreg): New mode attribute for reciprocal estimate support.
5813 (recip<mode>3): New insn for division using reciprocal estimate
5814 and fixup builtins.
5815 (divide define_split): New define_split to convert floating point
5816 division to use reciprocal estimate if the user used the
5817 appropriate options and the split is run when we can add new
5818 pseudo registers for the fixup.
5819 (rsqrt<mode>2): New insn for reciprocal square root support.
5820 (recipsf3): Move into recip<mode>3.
5821 (recipdf3): Ditto.
5822 (fres): Use TARGET_FRES.
5823 (rsqrtsf2): Move into rsqrt<mode>2.
5824 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
5825 (copysignsf3): Add support for VSX.
5826 (fred): Use TARGET_FRE.
5827 (fred_fpr): Ditto.
5828 (rsqrtdf_internal1): New function for frsqrte instruciton.
5829
5830 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
5831 (vec_rsqrt): Ditto.
5832
5833 2010-06-03 Richard Guenther <rguenther@suse.de>
5834
5835 PR middle-end/44291
5836 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
5837 (set_user_assembler_libfunc): Likewise.
5838
5839 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5840
5841 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
5842 defaults.h.
5843 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
5844 to defaults.h
5845 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
5846 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
5847 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
5848 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
5849 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
5850 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
5851 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
5852 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
5853 * defaults.h: Updated for above mentioned changes.
5854
5855 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
5856
5857 * c-common.c: Remove header include of tm_p.h.
5858 * Makefile.in (c-common.o): Remove TM_P_H dependency.
5859
5860 2010-06-02 Jakub Jelinek <jakub@redhat.com>
5861
5862 * tree.h (struct tree_decl_map): New type.
5863 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
5864 (tree_decl_map_hash): New prototype.
5865 (debug_expr_for_decl, value_expr_for_decl): Change into
5866 tree_decl_map hashtab from tree_map.
5867 (init_ttree): Adjust initialization.
5868 (tree_decl_map_hash): New function.
5869 (decl_debug_expr_lookup, decl_debug_expr_insert,
5870 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
5871
5872 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5873
5874 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
5875 linker emulations.
5876 * configure: Regenerate.
5877 * config.in: Regenerate.
5878
5879 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
5880 (X86_64_EMULATION): Define.
5881 (TARGET_LD_EMULATION): Use them.
5882
5883 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
5884 (SPARC64_EMULATION): Define.
5885 (LINK_ARCH_SPEC): Use them.
5886
5887 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5888
5889 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
5890 smallest_mode_for_size for computing the precision types of new
5891 graphite IVs. Do not call lang_hooks.types.type_for_size.
5892
5893 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5894
5895 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
5896 information.
5897 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
5898
5899 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5900
5901 PR middle-end/44363
5902 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
5903 return false instead.
5904
5905 2010-06-02 Jan Hubicka <jh@suse.cz>
5906
5907 PR middle-end/44295
5908 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
5909 create new cgraph node to check callee.
5910
5911 2010-06-02 Richard Guenther <rguenther@suse.de>
5912
5913 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5914
5915 2010-06-02 Richard Guenther <rguenther@suse.de>
5916
5917 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
5918 (lto_wrapper_cleanup): ... this. Do not exit.
5919 (fatal): Adjust. Exit here.
5920 (fatal_perror): Likewise.
5921 (fatal_signal): New function.
5922 (main): Set up signal handlers to cleanup temporary files.
5923 * Makefile.in (lto-wrapper.o): Adjust dependencies.
5924
5925 2010-06-02 Richard Guenther <rguenther@suse.de>
5926
5927 PR tree-optimization/44377
5928 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5929
5930 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5931
5932 * config/s390/2097.md (z10_fhex): Remove insn reservation.
5933 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5934 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5935 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5936 instruction.
5937 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5938
5939 2010-06-02 Jan Hubicka <jh@suse.cz>
5940
5941 * bitmap.c (bitmap_descriptor): Add search_iter.
5942 (bitmap_find_bit): Increment it.
5943 (print_statistics): Print it.
5944
5945 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
5946
5947 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5948 instead of gimple_build_call_vec. Delete unnecessary local variable.
5949
5950 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5951
5952 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5953 change from yesterday.
5954
5955 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5956
5957 * c-ada-spec.c: Clean up redundant includes.
5958
5959 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
5960
5961 * gimplify.c: Do not include except.h and optabs.h.
5962 (gimplify_body): Do not initialize RTL profiling.
5963 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5964 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5965 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5966 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5967 langhooks.h.
5968
5969 * tree-pretty-print.h: Include pretty-print.h.
5970 * gimple-pretty-print.h: Include pretty-print.h.
5971
5972 * tree-pretty-print.c: Do not include diagnostic.h.
5973 * tree-vrp.c: Likewise.
5974 * tree-tailcall.c: Likewise
5975 * tree-scalar-evolution.c: Likewise
5976 * tree-ssa-dse.c: Likewise
5977 * tree-chrec.c: Likewise
5978 * tree-ssa-sccvn.c: Likewise
5979 * tree-ssa-copyrename.c: Likewise
5980 * tree-nomudflap.c: Likewise
5981 * tree-call-cdce.c: Likewise
5982 * tree-stdarg.c: Likewise
5983 * tree-ssa-math-opts.c: Likewise
5984 * tree-nrv.c: Likewise
5985 * tree-ssa-sink.c: Likewise
5986 * tree-browser.c: Likewise
5987 * tree-ssa-loop-ivcanon.c: Likewise
5988 * tree-ssa-loop.c: Likewise
5989 * tree-parloops.c: Likewise
5990 * tree-ssa-address.c: Likewise
5991 * tree-ssa-ifcombine.c: Likewise
5992 * tree-if-conv.c: Likewise
5993 * tree-data-ref.c: Likewise
5994 * tree-affine.c: Likewise
5995 * tree-ssa-phiopt.c: Likewise
5996 * tree-ssa-coalesce.c: Likewise
5997 * tree-ssa-pre.c: Likewise
5998 * tree-ssa-live.c: Likewise
5999 * tree-predcom.c: Likewise
6000 * tree-ssa-forwprop.c: Likewise
6001 * tree-ssa-dce.c: Likewise
6002 * tree-ssa-ter.c: Likewise
6003 * tree-ssa-loop-prefetch.c: Likewise
6004 * tree-optimize.c: Likewise
6005 * tree-ssa-phiprop.c: Likewise
6006 * tree-object-size.c: Likewise
6007 * tree-outof-ssa.c: Likewise
6008 * tree-ssa-structalias.c: Likewise
6009 * tree-switch-conversion.c: Likewise
6010 * tree-ssa-reassoc.c: Likewise
6011 * tree-ssa-operands.c: Likewise
6012 * tree-vectorizer.c: Likewise
6013 * tree-vect-data-refs.c: Likewise
6014 * tree-vect-generic.c: Likewise
6015 * tree-vect-stmts.c: Likewise
6016 * tree-vect-patterns.c: Likewise
6017 * tree-vect-slp.c: Likewise
6018 * tree-vect-loop.c: Likewise
6019 * tree-ssa-loop-ivopts.c: Likewise
6020 * tree-ssa-loop-im.c: Likewise
6021 * tree-ssa-loop-niter.c: Likewise
6022 * tree-ssa-loop-unswitch.c: Likewise
6023 * tree-ssa-loop-manip.c: Likewise
6024 * tree-ssa-loop-ch.c: Likewise
6025 * tree-dump.c: Likewise
6026 * tree-complex.c: Likewise
6027
6028 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6029 * tree-ssa-uninit.c: Likewise
6030 * tree-ssa-threadupdate.c: Likewise
6031 * tree-ssa-uncprop.c: Likewise
6032 * tree-ssa-ccp.c: Likewise
6033 * tree-ssa-dom.c: Likewise
6034 * tree-ssa-propagate.c: Likewise
6035 * tree-ssa-alias.c: Likewise
6036 * tree-dfa.c: Likewise
6037 * tree-cfgcleanup.c: Likewise
6038 * tree-sra.c: Likewise
6039 * tree-ssa-copy.c: Likewise
6040 * tree-ssa.c: Likewise
6041 * tree-profile.c: Likewise
6042 * tree-cfg.c: Likewise
6043 * tree-ssa-threadedge.c: Likewise
6044 * tree-vect-loop-manip.c: Likewise
6045
6046 * tree-inline.c: Do not include diagnostic.h and expr.h.
6047 Include rtl.h.
6048 (copy_decl_for_dup_finish): Do not use NULL_RTX.
6049
6050 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6051 * tree-loop-distribution.c: Likewise.
6052
6053 2010-06-01 Jan Hubicka <jh@suse.cz>
6054
6055 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6056
6057 2010-06-01 Jan Hubicka <jh@suse.cz>
6058
6059 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6060 remove return value.
6061 (split_bbs_on_noreturn_calls) .... here.
6062 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6063 * tree-flow.h (fixup_noreturn_call): New.
6064
6065 2010-06-01 Jan Hubicka <jh@suse.cz>
6066
6067 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6068
6069 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
6070
6071 * tree.h (build_nt_call_list): Delete.
6072 * tree.c (build_nt_call_list): Delete.
6073
6074 2010-06-01 Jan Hubicka <jh@suse.cz>
6075
6076 * fwprop.c: Make emit-rtl.h include last.
6077 * rtlanal.c: Include emit-rtl.h.
6078 * genautomata.c: Output emit-rtl include into insn-automata.c
6079 * df-scan.c: Include emit-rtl.h.
6080 * haifa-sched.c: Indlude emit-rtl.h.
6081 * mode-switching.c: Indlude emit-rtl.h.
6082 * graph.c: Indlude emit-rtl.h.
6083 * sel-sched.c: Include emit-rtl.h.
6084 * sel-sched-ir.c: Include emit-rtl.h.
6085 * ira-build.c: Include emit-rtl.h.
6086 * emit-rtl.c: (first_insn, last_insn): Remove defines.
6087 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6088 Move to emit-rtl.h.
6089 (set_new_first_and_last_insn, get_last_insn_anywhere,
6090 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6091 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6092 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6093 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6094 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6095 Use accessor functions.
6096 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6097 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6098 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6099 mem_expr_equal_p): Move here from rtl.h.
6100 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6101 Move here from emit-rtl.c; make inline.
6102 * cfglayout.h: Include emit-rtl.h.
6103 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6104 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6105 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6106 mem_expr_equal_p, get_insns, set_first-insn,
6107 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6108 * reg-stack.c: Include emit-rtl.h.
6109 * dce.c: Likewise.
6110
6111 2010-06-01 Jan Hubicka <jh@suse.cz>
6112
6113 * cgraph.h (tree_function_versioning): Update prototype.
6114 (cgraph_function_versioning): Update prototype.
6115 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6116 bitmap.
6117 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6118 (cgraph_materialize_clone, save_inline_function_body): Update use of
6119 tree_function_versioning.
6120 * tree-inline.c (copy_bb): Look for previous copied block to link
6121 after; fix debug output.
6122 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6123 (copy_body): Likewise.
6124 (expand_call_inline): Update use of copy_body.
6125 (tree_function_versioning): Update use of copy body; accept
6126 blocks_to_copy and new_entry.
6127
6128 2010-06-01 Jan Hubicka <jh@suse.cz>
6129
6130 * gegenrtl.c: Remove unnecesary prototypes.
6131 (gendecl): Remove.
6132 (gendef): Produce static inline.
6133 (gencode): Remove.
6134 (main): Do not decode parameters; generate header only.
6135 * Makefile.in (genrtl.c): Remove.
6136
6137 2010-06-01 Jan Hubicka <jh@suse.cz>
6138
6139 * tree-switch-conversion.c (build_one_array): Make it readonly.
6140
6141 2010-06-01 Richard Guenther <rguenther@suse.de>
6142
6143 * optabs.c (init_optabs): Guard all accesses to reinit.
6144 * ipa-pure-const.c (propagate): Fix another typo.
6145 * opts.c (common_handle_option): Split assignment to bool.
6146 * c-opts.c (c_common_handle_option): Likewise.
6147
6148 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6149 Matthew Gingell <gingell@adacore.com>
6150
6151 * doc/invoke.texi: Mention -fdump-ada-spec.
6152 * tree-dump.c (dump_files): Add ada-spec.
6153 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6154 * tree-pass.h (tree_dump_index): Add TDI_ada.
6155 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6156 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6157 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6158 * c-decl.c: Include c-ada-spec.h.
6159 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6160 functions.
6161 (c_write_global_declarations): Add handling of -fdump-ada-spec.
6162 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6163 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6164 * c-ada-spec.h, c-ada-spec.c: New files.
6165
6166 2010-06-01 Richard Guenther <rguenther@suse.de>
6167
6168 PR lto/43853
6169 * ipa-pure-const.c (get_function_state): Hand back varying state
6170 if we do not have one.
6171 (has_function_state): New function.
6172 (duplicate_node_data): Adjust.
6173 (remove_node_data): Likewise.
6174 (pure_const_write_summary): Likewise.
6175 (propagate): Likewise. Fix typo.
6176
6177 2010-06-01 Jan Hubicka <jh@suse.cz>
6178
6179 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6180 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6181 (execute_all_ipa_transforms): Do not play with the states.
6182
6183 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6184
6185 * config/arm/t-linux-androideabi: New.
6186 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6187
6188 2010-06-01 Jan Hubicka <jh@suse.cz>
6189
6190 * tree-inline.c (estimate_num_insns): For stdarg functions look
6191 into call statement to count cost of argument passing.
6192
6193 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
6194
6195 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6196 argument for fprintf.
6197 (ix86_output_addr_diff_elt): Likewise.
6198 (x86_function_profiler): Likewise.
6199 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6200 (LPREFIX): Likewise.
6201 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6202
6203 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6204
6205 PR target/44338
6206 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6207 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6208 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6209 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6210 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6211 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6212 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6213 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6214 TARGET_FUSED_MADD.
6215
6216 2010-05-31 Jan Hubicka <jh@suse.cz>
6217
6218 * tree.h (tree_range_check_failed): Declare noreturn.
6219
6220 2010-05-31 Jan Hubicka <jh@suse.cz>
6221
6222 * gimple.c (gimple_call_builtin_p): New function.
6223 * gimple.h (gimple_call_builtin_p): Declare.
6224 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6225 to exit.
6226 (execute_warn_function_return): BUILT_IN_RETURN is return.
6227 (split_critical_edges): Return edges are not critical.
6228 (is_ctrl_altering_stmt): Builtin_in_return is altering.
6229 (gimple_verify_flow_info): Handle built_in_return.
6230 (execute_warn_function_return): Handle built_in_return.
6231 * ipa-pure-const.c (check_call): Ignore builtin_return.
6232
6233 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6234
6235 PR middle-end/44337
6236 * expr.c (expand_assignment): Don't store anything for out-of-bounds
6237 array accesses with non-MEM.
6238
6239 PR tree-optimization/44182
6240 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6241 newly needs to end a bb is followed by debug stmts, instead return
6242 true from the function at the end.
6243 (maybe_move_debug_stmts_to_successors): New function.
6244 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6245
6246 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
6247
6248 PR target/44161
6249 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6250
6251 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
6252
6253 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6254 for nested functions in non-optimized compilation.
6255
6256 2010-05-31 Richard Guenther <rguenther@suse.de>
6257
6258 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6259
6260 2010-05-30 Jan Hubicka <jh@suse.cz>
6261
6262 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6263
6264 2010-05-30 Richard Guenther <rguenther@suse.de>
6265
6266 PR lto/42975
6267 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6268 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6269 no longer needed.
6270
6271 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
6272
6273 * config/darwin.c (output_objc_section_asm_op): Add comment.
6274 (name_needs_quotes): Add '_' to list of valid comment chars.
6275 (machopic_output_function_base_name): Remove unneeded quotes.
6276 (darwin_encode_section_info): Adjust asm whitespace.
6277 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6278 (ASM_OUTPUT_LOCAL): Ditto.
6279 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6280 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6281 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6282
6283 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6284
6285 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6286 RS6000_OUTPUT_BASENAME unconditionally.
6287 (rs6000_output_function_epilogue): Likewise.
6288
6289 2010-05-30 Jan Hubicka <jh@suse.cz>
6290
6291 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6292 nodes.
6293
6294 2010-05-30 Richard Guenther <rguenther@suse.de>
6295
6296 * tree-cfg.c (verify_gimple_assign_single): Implement
6297 verification for COND_EXPR rhs.
6298
6299 2010-05-30 Jan Hubicka <jh@suse.cz>
6300
6301 * cgraph.h (cgraph_dump_file): Declare.
6302 * cgraphunit.c (cgraph_dump_file): Export.
6303 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6304
6305 2010-05-30 Jan Hubicka <jh@suse.cz>
6306
6307 * dwarf2out.c (reference_to_unused,
6308 premark_types_used_by_global_vars_helper): Avoid creation of new
6309 varpool nodes.
6310
6311 2010-05-30 Jan Hubicka <jh@suse.cz>
6312
6313 * cgraph.h (cgraph_node_cannot_return,
6314 cgraph_edge_cannot_lead_to_return): New functions.
6315 * cgraph.c (cgraph_node_cannot_return,
6316 cgraph_edge_cannot_lead_to_return): Use them.
6317 * ipa-pure-const.c (pure_const_names): New static var.
6318 (check_call): Handle calls not leading to return.
6319 (pure_const_read_summary): Dump info read.
6320 (propagate): Dump info about propagation process; ignore side effects
6321 of functions not leading to exit; fix handling of pure functions.
6322
6323 2010-05-30 Jan Hubicka <jh@suse.cz>
6324
6325 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6326 for tail call epilogues.
6327
6328 2010-05-30 Jan Hubicka <jh@suse.cz>
6329
6330 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6331 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6332 dump files.
6333
6334 2010-05-29 Jan Hubicka <jh@suse.cz>
6335
6336 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6337 node; remove references in node we no longer keep in cgrpah but need
6338 body of.
6339
6340 2010-05-29 Jan Hubicka <jh@suse.cz>
6341
6342 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6343
6344 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6345
6346 PR target/44165
6347 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6348
6349 2010-05-29 Jan Hubicka <jh@suse.cz>
6350
6351 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6352 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6353 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6354 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6355 debug_names_replaced_by, debug_update_ssa): Likewise.
6356 * sbitmap.c (debug_sbitmap): Likewise.
6357 * genrecog.c (debug_decision, debug_decision_list): Likewise.
6358 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6359 debug_tree_chain): Likewise.
6360 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6361 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6362 * optabs.c (debug_optab_libfuncs): Likewise.
6363 (verify_loop_closed_ssa): Likewise.
6364 * value-prof.c (verify_histograms): Likewise.
6365 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6366 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6367 * cfghooks.c (verify_flow_info): Likewise.
6368 * fold-const.c (debug_fold_checksum): Likewise.
6369 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6370 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6371 Likewise.
6372 * omega.c (debug_omega_problem): Likewise.
6373 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6374 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6375 * dominance.c (verify_dominators, debug_dominance_info,
6376 debug_dominance_tree): Likewise.
6377 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6378 * df_regno_debug, df_ref_debug,
6379 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6380 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6381 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6382 * sel-sched.c (debug_state): Likewise.
6383 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6384 Likewise.
6385 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6386 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6387 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6388 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6389 Likewise.
6390 * c-pretty-print.c (debug_c_tree): Likewise.
6391 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6392 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6393 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6394 * ebitmap.c (debug_ebitmap): Likewise.
6395 * function.c (debug_find_var_in_block_tree): Likewise.
6396 * print-rtl.c (debug_rtx): Likewise.
6397 (debug_rtx_count): Likewise.
6398 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6399 * stor-layout.c (debug_rli): Likewise.
6400 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6401 * tree-data-ref.c (debug_data_references,
6402 debug_data_dependence_relations, debug_data_reference,
6403 debug_data_dependence_relation, debug_rdg_vertex,
6404 debug_rdg_component, debug_rdg): Likewise.
6405 * tree-affine.c (debug_aff): Likewise.
6406 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6407 Likewise.
6408 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6409 * emit-rtl.c (verify_rtl_sharing): Likewise.
6410 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6411 debug_value_expressions): Likewise.
6412 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6413 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6414 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6415 * cfglayout.c (verify_insn_chain): Likewise.
6416 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6417 debug_clast_stmt, debug_generated_program): Likewise.
6418 * ggc-page.c (debug_print_page_list): Likewise.
6419 * tree-ssa-ter.c (debug_ter): Likewise.
6420 * graphite-dependences.c (debug_pddr): Likewise.
6421 * sched-deps.c (debug_ds): Likewise.
6422 * tree-ssa.c (verify_ssa): Likewise.
6423 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6424 debug_scattering_functions, debug_iteration_domains, debug_pdr,
6425 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6426 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6427 * tree-inline.c (debug_find_tree): Likewise.
6428 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6429 debug_ppl_powerset_matrix): Likewise.
6430 * var-tracking.c (debug_dv): Likewise.
6431 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6432 * cfgloop.c (verify_loop_structure): Likewise.
6433 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6434 * c-common.c (verify_sequence_points): Likewise.
6435 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6436 debug_candidates, debug_rgn_dependencies): Likewise.
6437 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6438 * debug_constraint_graph, debug_solution_for_var,
6439 debug_sa_points_to_info): Likewise.
6440 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6441 Likewie.
6442 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6443 debug_loops, debug_loop, debug_loop_num): Likewise.
6444 * passes.c (debug_pass): Likewise.
6445 (dump_properties): Likewise; add cfglayout property.
6446 (debug_properties): Likewise.
6447 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6448 * varpool.c (debug_varpool): Likewise.
6449 * regcprop.c (debug_value_data): Likewise.
6450 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6451 debug_immediate_uses_for): Likewise.
6452
6453 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6454
6455 PR bootstrap/44315
6456 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6457 Filter out insn-flags.h.
6458
6459 2010-05-29 Jan Hubicka <jh@suse.cz>
6460
6461 * cgraph.h (struct varpool_node_set_def,
6462 struct cgraph_node_set_def): Remove unused AUX pointer.
6463 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6464 VEC_empty macro.
6465
6466 2010-05-29 Jan Hubicka <jh@suse.cz>
6467
6468 PR middle-end/44324
6469 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6470
6471 2010-05-29 Richard Guenther <rguenther@suse.de>
6472
6473 * lto-streamer.c (cached_bp): New global variable.
6474 (bitpack_create): Return the cached bitpack, if available.
6475 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6476 (bp_pack_value): Remove redundant asserts.
6477
6478 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6479
6480 PR middle-end/44306
6481 * tree-if-conv.c (is_true_predicate): New.
6482 (is_predicated): Use is_true_predicate.
6483 (add_to_predicate_list): Same. Do not use unshare_expr.
6484 (add_to_dst_predicate_list): Same.
6485
6486 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6487
6488 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6489 field on edges.
6490 (predicate_bbs): Same.
6491 (clean_predicate_lists): Same.
6492 (find_phi_replacement_condition): Do not AND the predicate from
6493 edge->aux.
6494
6495 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6496
6497 PR bootstrap/44315
6498 * Makefile.in (build/gencondmd.o): Add a missing `\'.
6499
6500 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6501
6502 PR target/44261
6503 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6504 (negdf2): Adjust expander pattern and use negdf2_slow.
6505 (negsf2): Likewise.
6506
6507 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
6508
6509 * basic-block.h (struct control_flow_graph): Move last_label_uid field
6510 up.
6511 * df.h (struct df_base_ref): Move regno field up.
6512 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6513 * expr.h (struct separate_ops): Move location field up.
6514 * optabs.h (struct optab_d): Move libcall_basename field down.
6515 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6516 * config/i386/i386.h (struct machine_function): Convert call_abi field
6517 into a bitfield. Move cfa field to the end of the structure.
6518
6519 2010-05-29 Jan Hubicka <jh@suse.cz>
6520
6521 * varpool.c (varpool_get_node): Fix lookup.
6522
6523 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6524
6525 * config/spu/spu-protos.h: Do not include rtl.h. Protect
6526 RTL specific prototypes with #ifdef RTX_CODE.
6527 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6528 * config/spu/t-spu-elf: Fix dependencies.
6529
6530 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6531
6532 2010-05-29 Mike Stump <mikestump@comcast.net>
6533
6534 PR bootstrap/44315
6535 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6536 TM_H when building to avoid dependency loops.
6537
6538 2010-05-29 Jan Hubicka <jh@suse.cz>
6539
6540 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6541 refs and body; not the whole node for masters of materialized clones.
6542
6543 2010-05-29 Mike Stump <mikestump@comcast.net>
6544
6545 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6546
6547 2010-05-29 Jan Hubicka <jh@suse.cz>
6548
6549 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6550 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6551 use of clone_function_name.
6552 * cgraph.h (cgraph_create_virtual_clone,
6553 cgraph_function_versioning): update prototypes.
6554 (clone_function_name): Declare.
6555 * ipa-cp.c (ipcp_insert_stage): Update call of
6556 cgraph_create_virtual_clone.
6557 * omp-low.c (create_omp_child_function_name): Use
6558 cgraph_create_virtual_clone.
6559 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6560 (cgraph_function_versioning): Take SUFFIX argument; produce new name
6561 and make decl local.
6562
6563 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6564
6565 * vec.h: Include statistics.h
6566 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
6567 with VEC_H.
6568
6569 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6570
6571 * c-lex.c: Do not include c-tree.h.
6572 * c-pretty-print.c: Likewise.
6573 * c-opts.c: Likewise.
6574 * c-gimplify.c: Likewise.
6575 * c-common.c: Likewise.
6576 * c-dump.c: Likewise. Include c-common.h.
6577
6578 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6579
6580 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6581 before including diagnostic-core.h.
6582 (c_cpp_error): New prototype moved from c-tree.h.
6583 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6584 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6585 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6586 (c_cpp_error): Prototype moved to c-common.h.
6587 * Makefile.in: Update dependency for C_COMMON_H.
6588
6589 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6590
6591 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6592 * c-common.c (c_register_addr_space): Remove here.
6593 * c-decl.c (c_register_addr_space): Re-add here.
6594
6595 2010-05-28 Mike Stump <mikestump@comcast.net>
6596
6597 * config/darwin-c.c: Remove c-tree.h include.
6598
6599 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6600
6601 * gcc.c: Include diagnostic.h.
6602 (error_count): Remove. All users changed to use errorcount.
6603 (programname): Remove. All users changed to use progname.
6604 (fancy_abort, internal_error, fatal_error, error, warning, inform,
6605 fnotice): Remove.
6606 (execute): Don't include "Internal error" and bug reporting
6607 information in argument of internal_error call.
6608 (process_command): Don't increment error_count after calling
6609 perror_with_name.
6610 (input_filename): Rename to gcc_input_filename. All users
6611 changed.
6612 (main): Call diagnostic_initialize. Register delete_temp_files
6613 with atexit. Use seen_error to test for errors.
6614 * gcc.h: Include diagnostic-core.h.
6615 (fatal_error, error, warning): Remove.
6616 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6617 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6618 (gcc.o): Update dependencies.
6619
6620 2010-05-28 Jeff Law <law@redhat.com>
6621
6622 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6623 functions.
6624 * ira.h (ira_bad_reload_regno): Declare
6625 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6626
6627 * ira-color.c (update_curr_costs): Free updated hard reg costs.
6628 (ira_reassign_conflict_allocnos): Remove bogus asserts.
6629 (allocno_reload_assign): Likewise.
6630
6631 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
6632
6633 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6634 build1_stat.
6635
6636 2010-05-28 Richard Guenther <rguenther@suse.de>
6637
6638 PR lto/44312
6639 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6640 Stream fixed-point constants mode.
6641 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6642 and TYPE_PRECISION.
6643 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6644 Stream fixed-point constants mode.
6645 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6646 and TYPE_PRECISION.
6647
6648 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6649
6650 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6651 only place it was called from.
6652 (number_of_latch_executions): Do not return chrec_dont_know when the
6653 may_be_zero is a runtime condition: instead, return a COND_EXPR
6654 including the may_be_zero condition.
6655 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6656 of nb_iterations.
6657 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6658 COND_EXPRs.
6659
6660 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6661
6662 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6663 generate COND_EXPRs for degenerate_phi_result.
6664
6665 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6666
6667 PR middle-end/44293
6668 * tree-if-conv.c (if_convertible_loop_p): Check the
6669 if-convertibility of phi nodes in non predicated BBs.
6670
6671 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6672
6673 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6674
6675 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6676
6677 PR driver/15303
6678 * gcc.c (inform, warning, inform): New functions.
6679 (fatal_ice): Rename to internal_error; change cmsgid parameter to
6680 gmsgid. All callers changed.
6681 (notice): Rename to fnotice; add parameter fp. All callers changed.
6682 (fatal_error): Rename to fatal_signal. All users changed.
6683 (fatal): Rename to fatal_error; change cmsgid parameter to
6684 gmsgid. All callers changed.
6685 (process_command): Use warning instead of error for warnings.
6686 (end_going_arg): Don't use _() around argument of error.
6687 (do_spec_1): Use inform for message from %n specs. Use warning
6688 instead of error for warnings.
6689 (main): Use inform for comparison messages. Use warning for
6690 message about unused linker input.
6691 (error): Increment error_count. Print "error: ".
6692 * gcc.h (fatal): Change to fatal_error.
6693 (warning): Declare.
6694 * config/darwin-driver.c (darwin_default_min_version): Use warning
6695 instead of fprintf for warnings.
6696 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6697
6698 2010-05-28 Julian Brown <julian@codesourcery.com>
6699
6700 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6701 (*thumb2_addsi3_compare0_scratch): New.
6702 * config/arm/constraints.md (Pv): New.
6703 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
6704 for ARM mode only.
6705 (*addsi3_compare0_scratch): Likewise.
6706
6707 2010-05-28 Jan Hubicka <jh@suse.cz>
6708
6709 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
6710 check.
6711 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
6712 only on local statics.
6713
6714 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
6715
6716 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
6717
6718 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
6719
6720 PR bootstrap/44314
6721 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
6722 (OPTION_GLIBC): Define.
6723
6724 2010-05-28 Jakub Jelinek <jakub@redhat.com>
6725
6726 PR debug/41048
6727 * dwarf2out.c (double_int_type_size_in_bits): New function.
6728 (round_up_to_align): Change first argument and return value to
6729 double_int.
6730 (field_byte_offset): Work internally on double_ints.
6731
6732 PR target/43636
6733 * builtins.c (expand_movstr): Use a temporary pseudo instead
6734 of target even when target is not NULL and not const0_rtx, but
6735 fails movstr predicate.
6736 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
6737
6738 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6739
6740 * final.c (rest_of_clean_state): Use %m in errors instead of
6741 strerror (errno).
6742 * gengtype.c (read_input_list, close_output_files): Use xstrerror
6743 instead of strerror.
6744 * toplev.c (process_options): Use %m in errors instead of strerror
6745 (errno).
6746 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
6747 (errno).
6748
6749 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
6750
6751 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
6752 (ix86_canonical_va_list_type): Make static. Add declaration.
6753 (ix86_enum_va_list): Make static. Reindent.
6754 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
6755 (ix86_canonical_va_list_type): Ditto.
6756 (ix86_enum_va_list): Ditto.
6757
6758 2010-05-28 Richard Guenther <rguenther@suse.de>
6759
6760 * lto-wrapper.c (run_gcc): With -save-temps generate a
6761 user-visible ltrans filename. Fixup ltrans unit numbering.
6762
6763 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
6764
6765 * c-common.c (c_common_nodes_and_builtins): Replace use
6766 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
6767 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
6768 to ix86_enum_va_list.
6769 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
6770 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
6771 (TARGET_ENUM_VA_LIST_P): Add hook description.
6772 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
6773 * target.h (gcc_target): Add enum_va_list hook.
6774
6775 PR bootstrap/44299
6776 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
6777 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
6778 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
6779
6780 2010-05-28 Alan Modra <amodra@gmail.com>
6781
6782 PR target/44266
6783 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6784 emit_library_call machinery to set up __tls_get_addr calls.
6785
6786 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6787
6788 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
6789
6790 2010-05-28 Dodji Seketeli <dodji@redhat.com>
6791
6792 Revert fix for PR c++/44188
6793 * c-common.c (is_typedef_decl): Revert the moving of this
6794 definition ...
6795 * tree.c (is_typedef_decl): ... here.
6796 (typdef_variant_p): Revert the moving of this definition
6797 here from gcc/cp/tree.c.
6798 * c-common.h (is_typedef_decl): Revert the moving of this
6799 declaration ...
6800 * tree.h (is_typedef_decl): ... here.
6801 (typedef_variant_p): Revert the moving of this declaration here
6802 from gcc/cp/cp-tree.h
6803 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
6804 (gen_tagged_type_die): Revert the splitting out of ...
6805 (gen_type_die_with_usage): ... this function. Revert the anonymous
6806 tagged type handling.
6807 (gen_typedef_die): Revert emitting DW_TAG_typedef for
6808 typedefs naming anonymous tagged types.
6809
6810 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
6811
6812 * config/rs6000/rs6000-modes.def (PSImode): Delete.
6813
6814 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
6815
6816 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
6817 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
6818 throughout.
6819 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
6820 "xer" to "ca".
6821 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
6822 XER_REGS to CA_REGS throughout.
6823 * config/rs6000/rs6000.h: Same.
6824 (ADDITIONAL_REGISTER_NAMES): Add "xer".
6825 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
6826 that mode_iterator "P" is the size for arithmetic carries as well.
6827 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
6828
6829 2010-05-28 Jakub Jelinek <jakub@redhat.com>
6830
6831 PR bootstrap/44255
6832 * combine.c (struct rtx_subst_pair): Define unconditionally.
6833 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
6834 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
6835 Call make_compound_operation on pair->to.
6836 (propagate_for_debug): Don't call make_compound_operation here.
6837 Always use simplify_replace_fn_rtx.
6838
6839 2010-05-27 Sterling Augustine <sterling@tensilica.com>
6840
6841 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
6842 * config/xtensa/xtensa.c (override_options): Check
6843 TARGET_FORCE_NO_PIC and set flag_pic.
6844 * config/xtensa/xtensa.opt: Document -mforce-no-pic
6845
6846 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
6847
6848 PR bootstrap/44299
6849 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
6850 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
6851
6852 2010-05-27 Joseph Myers <joseph@codesourcery.com>
6853
6854 * diagnostic-core.h: New. Contents moved from diagnostic.h and
6855 toplev.h.
6856 * diagnostic.c: Don't include toplev.h.
6857 (progname): Define. Moved from toplev.c.
6858 (seen_error): New function.
6859 * diagnostic.h: Include diagnostic-core.h.
6860 (diagnostic_t, emit_diagnostic): Don't declare here.
6861 * toplev.c (progname): Move to toplev.c.
6862 (emit_debug_global_declarations, compile_file, finalize,
6863 do_compile, toplev_main): Use seen_error.
6864 * toplev.h: Include diagnostic-core.h.
6865 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
6866 internal_error, warning, warning_at, error, error_n, error_at,
6867 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
6868 verbatim, fnotice, progname): Move to diagnostic-core.h.
6869 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
6870 (expand_builtin_expect): Use seen_error.
6871 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
6872 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
6873 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
6874 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
6875 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
6876 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
6877 errorcount for errors.
6878 * c-opts.c (c_common_finish): Use seen_error.
6879 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6880 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
6881 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
6882 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
6883 (get_coverage_counts): Use seen_error.
6884 * dwarf2out.c (dwarf2out_finish): Use seen_error.
6885 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
6886 gimplify_body): Use seen_error.
6887 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
6888 * ipa-pure-const.c (gate_pure_const): Use seen_error.
6889 * ipa-reference.c (gate_reference): Use seen_error.
6890 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
6891 * lambda-code.c: Include diagnostic-core.h instead of
6892 diagnostic.h.
6893 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6894 * lto-compress.c: Include diagnostic-core.h instead of
6895 diagnostic.h.
6896 * lto-section-in.c: Include diagnostic-core.h instead of
6897 diagnostic.h.
6898 * lto-streamer-out.c: Include diagnostic-core.h instead of
6899 diagnostic.h.
6900 * lto-streamer.c: Include diagnostic-core.h instead of
6901 diagnostic.h.
6902 (gate_lto_out): Use seen_error.
6903 * matrix-reorg.c: Include diagnostic-core.h instead of
6904 diagnostic.h.
6905 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
6906 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
6907 (gate_expand_omp, lower_omp_1): Use seen_error.
6908 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
6909 (rest_of_decl_compilation, rest_of_type_compilation,
6910 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
6911 * tree-cfg.c (label_to_block_fn): Use seen_error.
6912 * tree-inline.c (optimize_inline_calls): Use seen_error.
6913 * tree-mudflap.c (mudflap_finish_file): Use
6914 seen_error.
6915 * tree-optimize.c (gate_all_optimizations,
6916 gate_all_early_local_passes, gate_all_early_optimizations): Use
6917 seen_error.
6918 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
6919 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
6920 (varpool_remove_unreferenced_decls,
6921 varpool_assemble_pending_decls): Use seen_error.
6922 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6923 (TOPLEV_H, DIAGNOSTIC_H): Update.
6924 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6925 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6926 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6927 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6928 coverage.o, lambda-code.o): Update dependencies.
6929
6930 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6931
6932 PR c++/44188
6933 * c-common.c (is_typedef_decl): Move this definition ...
6934 * tree.c (is_typedef_decl): ... here.
6935 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6936 * c-common.h (is_typedef_decl): Move this declaration ...
6937 * tree.h (is_typedef_decl): ... here.
6938 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6939 * dwarf2out.c (is_naming_typedef_decl): New function.
6940 (gen_tagged_type_die): Split out of ...
6941 (gen_type_die_with_usage): ... this function. When an anonymous
6942 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6943 is emitted for the typedef.
6944 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6945 anonymous tagged types.
6946
6947 2010-05-27 Jason Merrill <jason@redhat.com>
6948
6949 * print-tree.c (debug_vec_tree): New fn.
6950 (print_vec_tree): New fn.
6951 * tree.h: Declare them.
6952 * gdbinit.in (pvt): New command.
6953
6954 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6955
6956 * gdbinit.in (pdd): New command.
6957
6958 2010-05-27 Jan Hubicka <jh@suse.cz>
6959
6960 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6961 (update_caller_keys): Return early if there are no callers;
6962 only update fibheap when decresing the key.
6963 (update_callee_keys): Avoid recursion.
6964 (decide_inlining_of_small_functions): When badness does not match;
6965 re-insert into fibheap.
6966
6967 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
6968
6969 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6970 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6971 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6972 (ALL_HOST_OBJS): Now a union of the above two.
6973 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6974 all files in ALL_HOST_FRONTEND_OBJS.
6975 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6976
6977 * c-common.c: Pretend to be a backend file by undefining
6978 IN_GCC_FRONTEND (still need rtl.h here).
6979
6980 2010-05-27 Jan Hubicka <jh@suse.cz>
6981
6982 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6983 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6984
6985 2010-05-27 Jan Hubicka <jh@suse.cz>
6986
6987 * sched-ebb.c: Rename struct deps to struct deps_desc.
6988 * ddg.c: Likewise.
6989 * sel-sched-ir.c: Likewise.
6990 * sched-deps.c: Likewise.
6991 * sched-int.h: Likewise.
6992 * sched-rgn.c: Likewise.
6993
6994 2010-05-27 Jon Beniston <jon@beniston.com>
6995
6996 PR 43726
6997 * config/lm32/lm32.h: Remove definition of
6998 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6999
7000 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
7001
7002 PR lto/44230
7003 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7004
7005 2010-05-27 Richard Guenther <rguenther@suse.de>
7006
7007 PR tree-optimization/44284
7008 * tree-vect-stmts.c (vectorizable_assignment): Handle
7009 sign-changing conversions as simple copy.
7010
7011 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7012
7013 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7014 Bionic C library.
7015 (__gthread_active_p): Check for pthread_create if compiling against
7016 Bionic C library.
7017
7018 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7019
7020 Support compilation for Android platform. Reimplement -mandroid.
7021
7022 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7023 (*android*): Set ANDROID_DEFAULT.
7024 (arm*-*-linux*): Include linux-android.h.
7025 (arm*-*-eabi*): Don't include previous -mandroid implementation.
7026 * config/arm/eabi.h: Remove, move Android-specific parts ...
7027 * config/linux-android.h: ... here. New file.
7028 * config/arm/eabi.opt: Rename to ...
7029 * config/linux-android.opt: ... this.
7030 (mandroid): Allow -mno-android option. Initialize based on
7031 ANDROID_DEFAULT.
7032 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7033 Move logic to corresponding LINUX_TARGET_* macros.
7034 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7035 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7036 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7037 Android definitions.
7038 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7039 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7040 Document.
7041
7042 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7043
7044 Add support for Bionic C library
7045
7046 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7047 macro.
7048 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7049 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7050
7051 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7052 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7053 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7054 to support multiple C libraries. Handle Bionic.
7055 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7056 (BIONIC_DYNAMIC_LINKER64): Define.
7057 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7058 Update.
7059 (TARGET_HAS_SINCOS): Enable for Bionic.
7060
7061 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
7062 the last option specified on command line take effect.
7063 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7064 (mbionic): New.
7065 (mglibc, muclibc): Update.
7066
7067 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7068 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7069 DEFAULT_LIBC.
7070
7071 * doc/invoke.texi (-mglibc, -muclibc): Update.
7072 (-mbionic): Document.
7073
7074 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7075
7076 * c-common.h (c_register_addr_space): Add prototype.
7077 (ADDR_SPACE_KEYWORD): Remove.
7078 * c-common.c (c_register_addr_space): New function.
7079 (c_addr_space_name): Reimplement.
7080 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7081
7082 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7083 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7084
7085 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7086 Remove TARGET_ADDR_SPACE_KEYWORDS.
7087
7088 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7089
7090 * input.c: New file.
7091 * input.h (main_input_filename): Move declaration to toplev.h.
7092 * toplev.c (input_location, line_table): Move to input.c
7093 * toplev.h (main_input_filename): Move declaration from input.h.
7094 * tree.c (expand_location): Move to input.c.
7095 * Makefile.in (OBJS-common): Add input.o.
7096 (input.o): Add dependencies.
7097
7098 2010-05-27 Richard Guenther <rguenther@suse.de>
7099
7100 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7101 for non-existant files.
7102 (fork_execute): Mark args_name file as deleted.
7103
7104 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7105
7106 PR bootstrp/44287
7107 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7108 (narrow_signed_type): Likewise.
7109
7110 2010-05-26 Jan Hubicka <jh@suse.cz>
7111
7112 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7113 edge only when checking is enabled; check using former_clone_of;
7114 check inline clones too.
7115 (cgraph_materialize_clone): Record former_clone_of pointer.
7116 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7117 combining redirections; dump args_to_skip bitmap
7118 (cgraph_materialize_all_clones): Do no redirection here.
7119 * ipa-inline.c (inline_transform): Do redirection here.
7120 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7121 cheking only).
7122
7123 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7124
7125 * config/avr/avr-c.c: Do not include regs.h.
7126 Include cpplib.h for cpp_define and tree.h for c-common.h.
7127 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7128 * config/avr/t-avr: Fix dependencies for avr-c.o.
7129
7130 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7131
7132 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7133 string instead of SYMBOL_REF rtx.
7134 * rtl.h (set_stack_check_libfunc): Move prototype from here...
7135 * libfuncs.h: ...to here. Adjust for explow.c change.
7136
7137 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7138
7139 * pretty-print.c: Don't include ggc.h.
7140 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7141 (identifier_to_locale): Use them for allocation.
7142 * pretty-print.h (identifier_to_locale_alloc,
7143 identifier_to_locale_free): Declare.
7144 * toplev.c (alloc_for_identifier_to_locale): New.
7145 (general_init): Set identifier_to_locale_alloc and
7146 identifier_to_locale_free.
7147 * Makefile.in (pretty-print.o): Update dependencies.
7148
7149 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7150
7151 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7152 pointer types if they have different alignment or mode.
7153
7154 2010-05-26 Anatoly Sokolov <aesok@post.ru>
7155
7156 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7157 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7158 * config/sparc/sparc-protos.h (function_value): Remove declaration.
7159 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7160 sparc_function_value_regno_p): New functions.
7161 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7162 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7163 (function_value): Rename to...
7164 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7165 argument to 'outgoing'.
7166 (function_arg_record_value, function_arg_union_value,
7167 function_arg_vector_value): Update comment.
7168
7169 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7170
7171 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7172 (fde_needed_for_eh_p): New predicate.
7173 (output_call_frame_info): Use it throughout to decide whether FDEs
7174 are needed for EH purpose.
7175 (dwarf2out_begin_prologue): Reorder assignments.
7176
7177 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7178
7179 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7180 special case loop->header.
7181 (is_predicated): New.
7182 (if_convertible_loop_p): Call it.
7183
7184 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7185
7186 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7187 iterator in parameter. Do not generate code during the analysis.
7188 (tree_if_convert_cond_stmt): Removed.
7189 (tree_if_convert_stmt): Removed.
7190 (predicate_bbs): New.
7191 (if_convertible_loop_p): Call predicate_bbs.
7192 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7193 now contains all the analysis part.
7194
7195 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7196
7197 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7198 statements in the analysis part.
7199 (tree_if_convert_stmt): Update comment.
7200 (remove_conditions_and_labels): New.
7201 (combine_blocks): Call remove_conditions_and_labels.
7202 (tree_if_conversion): Update comment.
7203
7204 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7205
7206 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7207 than 2 predecessors or more than 2 successors.
7208
7209 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7210
7211 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7212 of loops in which the data dependence analysis fails.
7213
7214 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7215
7216 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7217 CDI_POST_DOMINATORS.
7218 (tree_if_conversion): Same.
7219
7220 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7221
7222 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7223
7224 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7225
7226 * tree-if-conv.c: Update copyright years. Fix comments.
7227 Fix indentation.
7228
7229 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
7230
7231 * builtin-types.def (BT_INT128): New primitive type.
7232 (BT_UINT128): Likewise.
7233 * c-common.c (c_common_r): Add __int128 keyword.
7234 (c_common_type_for_size): Handle __int128.
7235 (c_common_type_for_mode): Likewise.
7236 (c_common_signed_or_unsigned_type): Likewise.
7237 (c_common_nodes_and_builtins): Add builtin type
7238 if target supports 128-bit integer scalar.
7239 * c-common.h (enum rid): Add RID_INT128.
7240 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7241 if target supports 128-bit integer scalar.
7242 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7243 (finish_declspecs): Likewise.
7244 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7245 (c_token_starts_declspecs): Likewise.
7246 (c_parser_declspecs): Likewise.
7247 (c_parser_attributes): Likewise.
7248 (c_parser_objc_selector): Likewise.
7249 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7250 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7251 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7252 * tree.c (make_or_reuse_type): Likewise.
7253 (make_unsigned_type): Likewise.
7254 (build_common_tree_nodes_2): Likewise.
7255 * tree.h (enum integer_type_kind): Add itk_int128 and
7256 itk_unsigned_int128.
7257 (int128_integer_type_node): New define.
7258 (int128_unsigned_type_node): New define.
7259 * doc/extend.texi: Add documentation about __int128 type.
7260
7261 2010-05-26 Richard Guenther <rguenther@suse.de>
7262
7263 * tree-ssa-sccvn.c (copy_nary): Adjust.
7264 (copy_phis): Rename to ...
7265 (copy_phi): ... this. Adjust.
7266 (copy_references): Rename to ...
7267 (copy_reference): ... this. Adjust.
7268 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7269 result into the valid table.
7270
7271 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7272
7273 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7274 insn-config.h, insn-codes.h, recog.h, and optabs.h.
7275
7276 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7277
7278 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7279
7280 2010-05-26 Richard Guenther <rguenther@suse.de>
7281
7282 * opts.c (common_handle_option): Handle OPT_Ofast.
7283
7284 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7285
7286 * diagnostic.c: Don't include opts.h.
7287 (permissive_error_option): Define.
7288 (diagnostic_initialize): Take n_opts parameter. Allocate memory
7289 for classify_diagnostic. Don't use memset for
7290 classify_diagnostic. Initialize new and recently added fields.
7291 (diagnostic_classify_diagnostic): Use context->n_opts instead of
7292 N_OPTS.
7293 (diagnostic_report_diagnostic): Pass context parameter to
7294 diagnostic_report_warnings_p. Use option_enabled and option_name
7295 hooks from context.
7296 (emit_diagnostic): Use permissive_error_option.
7297 (permerror): Likewise.
7298 * diagnostic.h: Don't include options.h.
7299 (struct diagnostic_context): Add n_opts, opt_permissive,
7300 inhibit_warnings, warn_system_headers, option_enabled and
7301 option_name fields. Change classify_diagnostic to a pointer.
7302 * opts-diagnostic.h: New file.
7303 * opts.c: Include opts-diagnostic.h.
7304 (common_handle_option): Set global_dc fields for -Wfatal-errors,
7305 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7306 (option_name): New function.
7307 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7308 (c_common_handle_option): Set global_dc->permissive for
7309 -fpermissive.
7310 * c-common.c (c_cpp_error): Save and restore
7311 global_dc->warn_system_headers, not variable warn_system_headers.
7312 * toplev.c: Include opts-diagnostic.h.
7313 (general_init): Update call to diagnostic_initialize. Set
7314 global_dc->show_column, global_dc->option_enabled and
7315 global_dc->option_name.
7316 (process_options): Don't set global_dc fields here.
7317 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7318 (diagnostic.o, opts.o, toplev.o): Update dependencies.
7319
7320 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7321
7322 * config/picochip/picochip.md (movsi): Split a movsi from a
7323 const after reload.
7324
7325 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7326
7327 * ggc-zone.c: Update copyright year.
7328 (poison_region): Mark memory for Valgrind as undefined before
7329 memset () call and inaccessible afterwards.
7330 (ggc_pch_total_size): Change type of i to int.
7331
7332 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7333
7334 * ggc-common.c (ggc_free_overhead): Allow empty slot.
7335
7336 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7337
7338 * ggc-common.c: Update copyright year.
7339 (ggc_rlimit_bound): Remove prototype. Compile only if
7340 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7341 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7342 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
7343 (ggc_min_heapsize_heuristic): Likewise.
7344
7345 2010-05-26 Richard Guenther <rguenther@suse.de>
7346
7347 PR rtl-optimization/44164
7348 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7349 no-common access-path disambiguation.
7350 (indirect_ref_may_alias_decl_p): Adjust.
7351 (indirect_refs_may_alias_p): Likewise.
7352 (refs_may_alias_p_1): Likewise.
7353
7354 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7355
7356 * c-typeck.c: Do not include expr.h.
7357
7358 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7359
7360 * rtl.h (decl_default_tls_model): Move prototype from here...
7361 * output.h: ...to here.
7362 * c-decl.c: Do not include rtl.h.
7363 * c-pragma.c: Likewise.
7364 * c-parser.c: Likewise.
7365 * c-gimplify.c: Likewise. And also not hard-reg-set.
7366 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
7367 FIXME note for it. Add a FIXME note for expr.h.
7368 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7369 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7370 defined.
7371
7372 2010-05-26 Jakub Jelinek <jakub@redhat.com>
7373
7374 PR target/44199
7375 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7376 or total_size is larger than red zone size for non-V4 ABI, emit a
7377 stack_tie resp. frame_tie insn before stack pointer restore.
7378 * config/rs6000/rs6000.md (frame_tie): New insn.
7379
7380 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
7381
7382 * function.h (struct function): Add can_throw_non_call_exceptions bit.
7383 * lto-streamer-in.c (input_function): Stream it in.
7384 * lto-streamer-out.c (output_function): Stream it out.
7385 * function.c (allocate_struct_function): Set it.
7386 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7387 for flag_non_call_exceptions.
7388 * cfgbuild.c (control_flow_insn_p): Likewise.
7389 (make_edges): Likewise.
7390 * cfgexpand.c (expand_stack_alignment): Likewise.
7391 * combine.c (distribute_notes): Likewise.
7392 * cse.c (cse_extended_basic_block): Likewise.
7393 * except.c (insn_could_throw_p): Likewise.
7394 * gcse.c (simple_mem): Likewise.
7395 * ipa-pure-const.c (check_call): Likewise.
7396 (check_stmt ): Likewise.
7397 * lower-subreg.c (lower-subreg.c): Likewise.
7398 * optabs.c (emit_libcall_block): Likewise.
7399 (prepare_cmp_insn): Likewise.
7400 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7401 * postreload.c (rest_of_handle_postreload): Likewise.
7402 * reload1.c (reload_as_needed): Likewise.
7403 (emit_input_reload_insns): Likewise.
7404 (emit_output_reload_insns): Likewise.
7405 (fixup_abnormal_edges): Likewise.
7406 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7407 * store-motion.c (find_moveable_store): Likewise.
7408 * tree-eh.c (stmt_could_throw_p): Likewise.
7409 (tree_could_throw_p): Likewise.
7410 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7411 * config/arm/arm.c (arm_expand_prologue): Likewise.
7412 (thumb1_expand_prologue): Likewise.
7413 * config/rx/rx.md (cbranchsf4): Likewise.
7414 (cmpsf): Likewise.
7415 * config/s390/s390.c (s390_emit_prologue): Likewise.
7416 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7417 (inline_forbidden_into_p): New predicate.
7418 (expand_call_inline): Use it to forbid inlining.
7419 (tree_can_inline_p): Likewise.
7420
7421 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7422
7423 * config/i386/i386-c.c: Do not include rtl.h.
7424 * config/i386/t-i386: Update dependencies.
7425
7426 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7427
7428 * attribs.c: Do not include rtl.h.
7429 * Makefile.in: Update dependencies.
7430
7431 2010-05-25 Anatoly Sokolov <aesok@post.ru>
7432
7433 * double-int.h (double_int_and): New.
7434 * combine.c (try_combine): Clean up, use double_int_* and
7435 immed_double_int_const functions.
7436
7437 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7438
7439 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7440 stderr to /dev/null instead of grep -q.
7441 * configure: Regenerate.
7442
7443 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7444
7445 * Makefile.in (EXCEPT_H): Fix typo.
7446
7447 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
7448
7449 * ira-build.c (update_conflict_hard_reg_costs): New.
7450 (ira_build): Call update_conflict_hard_reg_costs.
7451
7452 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7453
7454 PR debug/41371
7455 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7456 ENABLE_CHECKING.
7457 (intersect_loc_chains): Walk the s2var's loc_chain together
7458 with s1node chain as long as the locations are equal, don't
7459 call find_loc_in_1pdv in that case.
7460
7461 PR debug/42801
7462 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7463 (copy_bind_expr): ... instead of here.
7464 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7465 if the block hasn't been remapped.
7466 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7467 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7468
7469 2010-05-25 Richard Guenther <rguenther@suse.de>
7470
7471 PR middle-end/44069
7472 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7473 out-of-bounds array accesses.
7474
7475 2010-05-25 Richard Guenther <rguenther@suse.de>
7476
7477 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7478 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7479 (run_gcc): Re-organize to make cleanup easier.
7480
7481 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7482
7483 * config/s390/s390.c (optimization_options): Fix and move the
7484 flag_prefetch_loop_arrays override ...
7485 (override_options): ... here.
7486
7487 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7488
7489 * diagnostic.c: Don't include plugin.h.
7490 (diagnostic_report_diagnostic): Don't handle plugins specially
7491 here. Pass context to internal_error callback.
7492 * diagnostic.h (struct diagnostic_context): Add context parameter
7493 to internal_error callback.
7494 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7495 * plugin.h (struct diagnostic_context): Declare.
7496 (warn_if_plugins, plugins_internal_error_function): Declare.
7497 * toplev.c (general_init): Set global_dc->internal_error.
7498 * Makefile.in (diagnostic.o): Update dependencies.
7499
7500 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
7501
7502 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7503 * config/rs6000/t-darwin64: New.
7504 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7505 build crt2.
7506
7507 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
7508
7509 PR 44203
7510 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7511 match the original (and intended) behaviour before r159557. This
7512 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7513 in two ways.
7514
7515 2010-05-25 Richard Guenther <rguenther@suse.de>
7516
7517 * doc/invoke.texi: Document -Ofast.
7518 * target.h (struct gcc_target): Add handle_ofast.
7519 * target-def.h (TARGET_HANDLE_OFAST): Add.
7520 (TARGET_INITIALIZER): Adjust.
7521 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
7522 * common.opt (Ofast): Add.
7523
7524 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7525
7526 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7527 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7528
7529 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7530
7531 PR target/43610
7532 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7533 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
7534 false_rtx. Use false_rtx to compute the correct *ptest for reversed
7535 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7536
7537 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7538
7539 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7540 DW_OP_minus with negated offset instead of DW_OP_plus.
7541 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7542
7543 2010-05-25 Wei Guozhi <carrot@google.com>
7544
7545 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7546 tst instruction and a new alternative.
7547 * config/arm/constraints.md (Pu): New constraint.
7548
7549 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
7550
7551 * function.c (assign_stack_local_1): Initialize variable
7552 to avoid warning when bootstrapping at -O3.
7553
7554 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
7555
7556 * configure.ac (all_lang_makefiles): Remove everything related to it.
7557 * configure: Regenerate.
7558 * Makefile.in: Fix reference to ada Make-lang.in.
7559 Remove support for LANG_MAKEFILES.
7560
7561 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
7562 Sandra Loosemore <sandra@codesourcery.com>
7563
7564 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7565 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7566 description. Add arm_neon_fp16_ok.
7567 (Add Options): Add arm_neon and arm_neon_fp16.
7568
7569 2010-05-24 Joseph Myers <joseph@codesourcery.com>
7570
7571 * diagnostic.c: Don't include flags.h.
7572 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7573 context parameters. Check flags in the context passed as a parameter.
7574 (diagnostic_build_prefix): Add context parameter. Check
7575 show_column flag in context.
7576 (diagnostic_action_after_output): Check fatal_errors flag in context.
7577 (diagnostic_report_current_module): Check show_column flag in context.
7578 (default_diagnostic_starter): Update call to
7579 diagnostic_build_prefix.
7580 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7581 (emit_diagnostic): Pass context to permissive_error_kind.
7582 (permerror): Pass context to permissive_error_kind.
7583 * diagnostic.h (struct diagnostic_context): Add show_column,
7584 pedantic_errors, permissive and fatal_errors fields.
7585 (diagnostic_build_prefix): Update prototype.
7586 * langhooks.c
7587 * toplev.c (process_options): Set flags in global_dc from
7588 flag_show_column, flag_pedantic_errors, flag_permissive,
7589 flag_fatal_errors.
7590 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7591 to diagnostic_build_prefix.
7592 * Makefile.in (diagnostic.o): Update dependencies.
7593
7594 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
7595
7596 * config/i386/ia32intrin.h (__crc32q): Define only if
7597 __SSE4_2__ is defined.
7598
7599 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
7600
7601 PR target/44132
7602 PR middle-end/43602
7603 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7604 DECL_VISIBILITY_SPECIFIED.
7605 (emutls_decl): Set DECL_PRESERVE_P and copy
7606 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7607 (emutls_finalize_control_var): New callback.
7608 (emutls_finish): Finalize emutls control variables.
7609 * toplev.c (compile_file): Move the call to emutls_finish ()
7610 before varpool_assemble_pending_decls ().
7611
7612 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
7613
7614 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7615 added to the preprocessor condition.
7616
7617 2010-05-24 Paul Brook <paul@codesourcery.com>
7618
7619 * gengtype-lex.l: Add HARD_REG_SET.
7620 * expr.c (expand_expr_real_1): Record writes to hard registers.
7621 * function.c (rtl_data): Add asm_clobbers.
7622 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7623 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7624 Use crtl->asm_clobbers.
7625
7626 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7627
7628 * doc/makefile.texi (Makefile): Mention stages 'profile'
7629 and 'feedback' for profiledbootstrap.
7630
7631 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
7632
7633 PR target/44245
7634 * config/i386/i386.c (def_builtin): Properly check
7635 OPTION_MASK_ISA_64BIT.
7636
7637 2010-05-23 Joseph Myers <joseph@codesourcery.com>
7638
7639 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7640 typedefs with different but compatible types. Allow duplicate
7641 typedefs with the same type except for pedantic non-C1X, but give
7642 warning for variably modified types.
7643 * c-typeck.c (tagged_types_tu_compatible_p,
7644 function_types_compatible_p, type_lists_compatible_p,
7645 comptypes_internal): Add parameter different_types_p; set
7646 *different_types_p for different but compatible types. All
7647 callers changed.
7648 (comptypes_check_different_types): New.
7649 * c-tree.h (comptypes_check_different_types): Declare.
7650
7651 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
7652
7653 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
7654 * jump.c: Include basic-block.h.
7655 * profile.c: Likewise.
7656 * tree-profile.c: Likewise.
7657 * coverage.c: Likewise.
7658 * basic-block.h (optimize_function_for_size_p): Move to function.h.
7659 (optimize_function_for_speed_p): Likewise.
7660 * function.h (optimize_function_for_size_p,
7661 optimize_function_for_speed_p): Moved here from basic-block.h.
7662 * Makefile.in: Update dependencies.
7663
7664 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7665
7666 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7667 before calling make; allow override through $MAKE.
7668 * doc/invoke.texi (Optimize Options): Document override.
7669
7670 2010-05-23 Anatoly Sokolov <aesok@post.ru>
7671
7672 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7673 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7674 (rs6000_mode_dependent_address_ptr): Make static.
7675 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7676 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7677 Remove.
7678
7679 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
7680
7681 PR target/43869
7682 * config/i386/i386.c: Make sure that the correct regparm is passed.
7683
7684 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
7685
7686 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7687 * sbitmap.c: ...to here to internalize sbitmap element access.
7688 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7689 Explain why basic-block.h is included.
7690 * function.h: Include tm.h for CUMULATIVE_ARGS.
7691 * Makefile.in: Update dependencies.
7692
7693 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
7694
7695 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7696 New core types.
7697 * sbitmap.h (struct sbitmap_def): Do not typedef here.
7698 * sbitmap.c: Include sbitmap.h.
7699 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7700 hard-reg-set.h. Split everything related to regsets out from here...
7701 * regset.h: ...to here. New file.
7702 * df.h: Include regset.h and sbitmap.h.
7703 * tree-flow.h: Likewise.
7704 * cfgloop.h: Likewise.
7705 * except.h: Do not include sbitmap.h. Include hashtab.h.
7706 * cgraph.h: Include vec.h and function.h.
7707 * reload.h (struct insn_chain): Change types of live_throughout
7708 and dead_or_set from regset_head to bitmap_head.
7709 (compute_use_by_pseudos): Be defined also if regset.h is not included.
7710 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
7711 spilled_regs from regset_head to bitmap_head to avoid dependency
7712 in regset.h.
7713 * sel-sched-ir.h: Include regset.h.
7714 * reload.c: Include df.h before reload.h.
7715 * caller-save.c: Likewise.
7716 * reload1.c: Likewise.
7717 * ira.c: Likewise.
7718 (mark_elimination): Update type of r to bitmap, consistent with
7719 DF_LR_IN.
7720 * dominance.c: Include bitmap.h.
7721 * modulo-sched.c: Include df.h.
7722 * cfganal.c: Include bitmap.h and sbitmap.h.
7723 * cfgbuild.c: Include sbitmap.h.
7724 * lcm.c: Include sbitmap.h.
7725 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
7726 * domwalk.c: Include sbitmap.h, exclude ggc.h.
7727 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
7728 * cselib.c: Include bitmap.h.
7729 * tree-optimize.c: Include regset.h.
7730 * stmt.c: Include bitmap.h.
7731 * Makefile.in: Update dependencies.
7732
7733 2010-05-22 Jan Hubicka <jh@suse.cz>
7734
7735 * cgraph.h (struct varpool_node): Add same_comdat_group.
7736 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
7737 pointer.
7738 (output_varpool): Update call of lto_output_varpool_node.
7739 (input_varpool): Read same_comdat_group pointer.
7740 (input_varpool_1): Fixup same_comdat_group pointer.
7741 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
7742 group is needed, all are.
7743 * varpool.c (varpool_remove_node): Remove node from same comdat group
7744 linklist too.
7745 (varpool_analyze_pending_decls): Walk same comdat groups.
7746
7747 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
7748
7749 * rtl.h (union rtunion_def): Remove rt_bit member.
7750 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
7751 * print-rtl (print_rtx): Do not print the member.
7752 * gengtype.c (adjust_field_rtx_def): Do not handle it.
7753 * gengenrtl.c (type_from_format): Likewise.
7754 (accessor_from_format): Likewise.
7755
7756 2010-05-22 Joseph Myers <joseph@codesourcery.com>
7757
7758 * dbgcnt.c: Include toplev.h instead of errors.h.
7759 * ira-emit.c: Don't include errors.h.
7760 * ira.c: Include toplev.h instead of errors.h.
7761 * lto-compress.c: Include toplev.h instead of errors.h.
7762 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
7763 ira.o, dbgcnt.o): Update dependencies.
7764
7765 2010-05-22 Richard Guenther <rguenther@suse.de>
7766
7767 * gimple.c (gimple_types_compatible_p): Check type qualifications
7768 before merging pointer to complete and pointer to incomplete type.
7769 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
7770 we use our own resolution algorithm. The gold linker plugin
7771 doesn't do the job we want it to do here.
7772
7773 2010-05-22 Anatoly Sokolov <aesok@post.ru>
7774
7775 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7776 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7777 (sparc_mode_dependent_address_p): New function.
7778
7779 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7780
7781 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
7782
7783 * timevar.c: Do not include any core headers.
7784 (timevar_print): De-i18n-ize.
7785 (print_time): Likewise.
7786 * timevar.h (timevar_push, timevar_pop): Make inline functions.
7787
7788 2010-05-21 Joseph Myers <joseph@codesourcery.com>
7789
7790 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
7791 langhooks-def.h.
7792 (diagnostic_initialize): Initialize x_data not last_function.
7793 (diagnostic_report_current_function): Move to tree-diagnostic.c.
7794 (default_diagnostic_starter): Call
7795 diagnostic_report_current_module not
7796 diagnostic_report_current_function.
7797 (diagnostic_report_diagnostic): Initialize x_data not
7798 abstract_origin.
7799 (verbatim): Likewise.
7800 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
7801 x_data.
7802 (struct diagnostic_context): Change last_function to x_data.
7803 (diagnostic_auxiliary_data): Replace with
7804 diagnostic_context_auxiliary_data and
7805 diagnostic_info_auxiliary_data.
7806 (diagnostic_last_function_changed, diagnostic_set_last_function,
7807 diagnostic_report_current_function): Move to tree-diagnostic.h.
7808 (print_declaration, dump_generic_node, print_generic_stmt,
7809 print_generic_stmt_indented, print_generic_expr,
7810 print_generic_decl, debug_c_tree, dump_omp_clauses,
7811 print_call_name, debug_generic_expr, debug_generic_stmt,
7812 debug_tree_chain, default_tree_printer): Move to
7813 tree-pretty-print.h.
7814 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
7815 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
7816 gimple-pretty-print.h.
7817 * pretty-print.c: Don't include tree.h
7818 (pp_base_format): Don't handle %K here.
7819 (pp_base_tree_identifier): Move to tree-pretty-print.c.
7820 * pretty-print.h (text_info): Change abstract_origin to x_data.
7821 (pp_tree_identifier, pp_unsupported_tree,
7822 pp_base_tree_identifier): Move to tree-pretty-print.h.
7823 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
7824 tree-pretty-print.h: New files.
7825 * tree-pretty-print.c: Include tree-pretty-print.h.
7826 (percent_K_format): New. Moved from pretty-print.c.
7827 (pp_base_tree_identifier): Move from pretty-print.c.
7828 * c-objc-common.c: Include tree-pretty-print.h.
7829 (c_tree_printer): Handle %K here.
7830 * langhooks.c: Include tree-diagnostic.h.
7831 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
7832 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
7833 (default_tree_printer): Handle %K using percent_K_format.
7834 (general_init): Use default_tree_diagnostic_starter.
7835 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
7836 (free_lang_data): Use default_tree_diagnostic_starter.
7837 * c-pretty-print.c: Include tree-pretty-print.h.
7838 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7839 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7840 * dwarf2out.c: Include tree-pretty-print.h.
7841 * except.c: Include tree-pretty-print.h.
7842 * gimple-pretty-print.c: Include tree-pretty-print.h and
7843 gimple-pretty-print.h.
7844 * gimplify.c: Include tree-pretty-print.h.
7845 * graphite-poly.c: Include tree-pretty-print.h and
7846 gimple-pretty-print.h.
7847 * ipa-cp.c: Include tree-pretty-print.h.
7848 * ipa-inline.c: Include gimple-pretty-print.h.
7849 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7850 * ipa-pure-const.c: Include gimple-pretty-print.h.
7851 * ipa-struct-reorg.c: Include tree-pretty-print.h and
7852 gimple-pretty-print.h.
7853 * ipa-type-escape.c: Include tree-pretty-print.h.
7854 * print-rtl.c: Include tree-pretty-print.h.
7855 * print-tree.c: Include gimple-pretty-print.h.
7856 * sese.c: Include tree-pretty-print.h.
7857 * tree-affine.c: Include tree-pretty-print.h.
7858 * tree-browser.c: Include tree-pretty-print.h.
7859 * tree-call-cdce.c: Include gimple-pretty-print.h.
7860 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7861 * tree-chrec.c: Include tree-pretty-print.h.
7862 * tree-data-ref.c: Include tree-pretty-print.h and
7863 gimple-pretty-print.h.
7864 * tree-dfa.c: Include tree-pretty-print.h.
7865 * tree-if-conv.c: Include tree-pretty-print.h and
7866 gimple-pretty-print.h.
7867 * tree-inline.c: Include tree-pretty-print.h.
7868 * tree-into-ssa.c: Include tree-pretty-print.h and
7869 gimple-pretty-print.h.
7870 * tree-nrv.c: Include tree-pretty-print.h.
7871 * tree-object-size.c: Include tree-pretty-print.h and
7872 gimple-pretty-print.h.
7873 * tree-outof-ssa.c: Include tree-pretty-print.h and
7874 gimple-pretty-print.h.
7875 * tree-parloops.c: Include tree-pretty-print.h and
7876 gimple-pretty-print.h.
7877 * tree-predcom.c: Include tree-pretty-print.h and
7878 gimple-pretty-print.h.
7879 * tree-scalar-evolution.c: Include tree-pretty-print.h and
7880 gimple-pretty-print.h.
7881 * tree-sra.c: Include tree-pretty-print.h.
7882 * tree-ssa-address.c: Include tree-pretty-print.h.
7883 * tree-ssa-alias.c: Include tree-pretty-print.h.
7884 * tree-ssa-ccp.c: Include tree-pretty-print.h and
7885 gimple-pretty-print.h.
7886 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
7887 * tree-ssa-copy.c: Include tree-pretty-print.h and
7888 gimple-pretty-print.h.
7889 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
7890 * tree-ssa-dce.c: Include tree-pretty-print.h and
7891 gimple-pretty-print.h.
7892 * tree-ssa-dom.c: Include tree-pretty-print.h and
7893 gimple-pretty-print.h.
7894 * tree-ssa-dse.c: Include gimple-pretty-print.h.
7895 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
7896 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
7897 * tree-ssa-live.c: Include tree-pretty-print.h and
7898 gimple-pretty-print.h.
7899 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
7900 gimple-pretty-print.h.
7901 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
7902 gimple-pretty-print.h.
7903 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
7904 gimple-pretty-print.h.
7905 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
7906 gimple-pretty-print.h.
7907 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
7908 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
7909 * tree-ssa-operands.c: Include tree-pretty-print.h and
7910 gimple-pretty-print.h.
7911 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
7912 gimple-pretty-print.h.
7913 * tree-ssa-pre.c: Include tree-pretty-print.h and
7914 gimple-pretty-print.h.
7915 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
7916 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
7917 gimple-pretty-print.h.
7918 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
7919 gimple-pretty-print.h.
7920 * tree-ssa-sink.c: Include gimple-pretty-print.h.
7921 * tree-ssa-ter.c: Include tree-pretty-print.h and
7922 gimple-pretty-print.h.
7923 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7924 * tree-ssa.c: Include tree-pretty-print.h and
7925 gimple-pretty-print.h.
7926 * tree-stdarg.c: Include gimple-pretty-print.h.
7927 * tree-switch-conversion.c: Include gimple-pretty-print.h.
7928 * tree-tailcall.c: Include tree-pretty-print.h and
7929 gimple-pretty-print.h.
7930 * tree-vect-data-refs.c: Include tree-pretty-print.h and
7931 gimple-pretty-print.h.
7932 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7933 gimple-pretty-print.h.
7934 * tree-vect-loop.c: Include tree-pretty-print.h and
7935 gimple-pretty-print.h.
7936 * tree-vect-patterns.c: Include gimple-pretty-print.h.
7937 * tree-vect-slp.c: Include tree-pretty-print.h and
7938 gimple-pretty-print.h.
7939 * tree-vect-stmts.c: Include tree-pretty-print.h and
7940 gimple-pretty-print.h.
7941 * tree-vectorizer.c: Include tree-pretty-print.h.
7942 * tree-vrp.c: Include tree-pretty-print.h and
7943 gimple-pretty-print.h.
7944 * value-prof.c: Include tree-pretty-print.h and
7945 gimple-pretty-print.h.
7946 * var-tracking.c: Include tree-pretty-print.h.
7947 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7948 (tree-diagnostic.o): New dependencies.
7949 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7950 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7951 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7952 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7953 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7954 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7955 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7956 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7957 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7958 tree-ssa-address.o, tree-ssa-loop-niter.o,
7959 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7960 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7961 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7962 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7963 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7964 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7965 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7966 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7967 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7968 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7969 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7970 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7971 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7972 tree-switch-conversion.o, var-tracking.o, value-prof.o,
7973 cfgexpand.o, pretty-print.o): Update dependencies.
7974
7975 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
7976
7977 * tree-ssa-structalias.c: Remove tm_p.h from include.
7978
7979 2010-05-21 Jeff Law <law@redhat.com>
7980
7981 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7982
7983 2010-05-21 Jason Merrill <jason@redhat.com>
7984
7985 * tree-eh.c (cleanup_is_dead_in): New.
7986 (lower_try_finally): Don't generate a dead cleanup region.
7987 (lower_cleanup): Likewise.
7988
7989 2010-05-21 Jakub Jelinek <jakub@redhat.com>
7990
7991 PR debug/44223
7992 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7993 unchain each use from the cyclic next_regno_use chain first.
7994
7995 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7996
7997 * real: Do not include gmp.h, mpfr.h, and mpc.h.
7998 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7999 (real_value_negate, real_value_abs): New prototypes.
8000 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8001 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8002 new include file for interface between MPFR and REAL_VALUE_TYPE.
8003 * real.c: Include realmpfr.h.
8004 (real_arithmetic2): Remove legacy function.
8005 (real_value_negate): New.
8006 (real_value_abs): New.
8007 (mfpr_from_real, real_from_mpfr): Move from here...
8008 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8009 * builtins.c: Include realmpfr.h.
8010 * fold-const.c: Include realmpfr.h.
8011 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8012 (fold_negate_const): Likewise.
8013 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8014 * toplev.c: Include realmpfr.h.
8015 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8016 and real_value_negate.
8017 * fixed-value.c (check_real_for_fixed_mode): Likewise.
8018 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8019 (vfp3_const_double_index): Likewise.
8020 (arm_print_operand): Likewise.
8021 * Makefile.in: Update dependencies.
8022
8023 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8024
8025 * config/s390/s390.c (override_options): Increase the default
8026 of max-completely-peel-times.
8027
8028 2010-05-21 Julian Brown <julian@codesourcery.com>
8029 Mark Mitchell <mark@codesourcery.com>
8030
8031 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8032 sibling calls for Thumb-1.
8033 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8034 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8035 Thumb-2.
8036 (*call_insn, *call_value_insn): Don't use for Thumb-2.
8037 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8038 for Thumb-2.
8039 (return): New expander.
8040 (*arm_return): New name for ARM return insn.
8041 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8042
8043 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
8044
8045 * config.gcc (sparc64-*-rtems*): New target.
8046
8047 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8048
8049 * tree.c (build_function_decl_skip_args): Fix grammar.
8050 (build_function_type_list_1): Fix typos, adjust formatting.
8051
8052 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8053
8054 * tree.h: Include real.h and fixed-value.h as basic datatypes.
8055 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8056 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8057 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8058 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8059 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8060 tree-pretty-print.c, tree-loop-distribution.c,
8061 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8062 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8063 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8064 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8065 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8066 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8067 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8068 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8069 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8070 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8071 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8072 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8073 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8074 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8075 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8076 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8077 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8078 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8079 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8080 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8081 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8082 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8083 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8084 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8085 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8086 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8087 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8088 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8089 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8090 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8091 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8092 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8093 config/score/score7.c, config/score/score.c, config/arm/arm.c,
8094 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8095 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8096 config/bfin/bfin.c: Clean up redundant includes.
8097 * Makefile.in: Update accordingly.
8098
8099 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8100
8101 PR middle-end/44204
8102 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8103 statement has no arguments.
8104
8105 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
8106
8107 PR/44139
8108 * varasm.c (emutls_decl): Merge attributes to new decl.
8109
8110 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
8111
8112 PR middle-end/44101
8113 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8114 around the uniquized constructor if its type requires a conversion.
8115
8116 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8117
8118 PR debug/44205
8119 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8120 at -O0 goto_locus of any of the incoming edges differs from
8121 goto_locus of outgoing edge, or gimple_location of any of the
8122 labels differs.
8123
8124 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
8125
8126 * ira.c (ira_non_ordered_class_hard_regs): Define.
8127 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8128 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8129 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8130 cost of unaligned hard regs when allocating multi-reg pseudos.
8131
8132 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
8133
8134 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8135 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8136 for TARGET_NO_FLOAT.
8137 * config/mips/mips.c (mips_file_start): Expand conditional expression
8138 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8139 (mips_override_options): Move -mno-float override -msoft-float and
8140 -mhard-float.
8141 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8142 Condition(TARGET_SUPPORTS_NO_FLOAT).
8143 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8144 __mips_no_float here.
8145 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8146 (TARGET_SUPPORTS_NO_FLOAT): Define.
8147 * config/mips/sdemtk.opt: Delete.
8148
8149 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8150
8151 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8152
8153 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
8154
8155 PR target/43733
8156 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8157 * configure: Regenerate.
8158 * config.in: Regenerate.
8159 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8160 instead of sahf only for 64bit targets.
8161
8162 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8163
8164 PR debug/44178
8165 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8166 setup_ref_regs for DEBUG_INSNs.
8167
8168 2010-05-20 Jan Hubicka <jh@suse.cz>
8169
8170 PR middle-end/44197
8171 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8172
8173 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8174
8175 PR bootstrap/43870
8176 * df-scan.c (df_ref_compare): Stabilize sort.
8177
8178 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8179
8180 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8181 argument. Don't use DW_OP_piece if offset is non-zero,
8182 put offset into second DW_OP_bit_piece argument.
8183 (dw_sra_loc_expr): Adjust callers. For memory expressions
8184 compute offset.
8185
8186 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
8187
8188 PR target/44202
8189 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8190 settings for 16-bit-constant "addo" alternative.
8191
8192 2010-05-19 James E. Wilson <wilson@codesourcery.com>
8193
8194 * config/mips/mips-dsp.md (add<DSPV:mode>3,
8195 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8196
8197 PR target/43764
8198 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
8199 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8200 Use it.
8201
8202 2010-05-19 Joseph Myers <joseph@codesourcery.com>
8203
8204 * diagnostic.c (FLOAT, FFS): Don't undefine.
8205 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8206 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8207 include ordering.
8208
8209 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
8210
8211 * combine.c (propagate_for_debug): Call make_compound_operation
8212 on the source value.
8213 (try_combine): When implementing a split chosen by find_split_point,
8214 either copy i2src or set it to null. Assert that i2src is not null
8215 before substituting into CALL_INSN_FUNCTION_USAGE.
8216
8217 2010-05-19 Anatoly Sokolov <aesok@post.ru>
8218
8219 * double-int.h (double_int_ior): New function.
8220 * tree.h (build_int_cst_wide_type): Remove.
8221 * tree.c (build_int_cst_wide_type): Remove.
8222 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8223 of build_int_cst_wide_type.
8224 * stor-layout.c (set_sizetype): (Ditto.).
8225 * dojump.c (do_jump): Use build_int_cstu instead of
8226 build_int_cst_wide_type.
8227
8228 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8229
8230 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8231 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8232 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8233 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8234 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
8235 propagate the 'data' argument to copy_tree_r.
8236 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8237 Propagate 'data' argument to walk_tree.
8238 (copy_if_shared): New function.
8239 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8240 (unmark_visited): New function.
8241 (unshare_body): Call copy_if_shared instead of doing it manually.
8242 (unvisit_body): Call unmark_visited instead of doing it manually.
8243
8244 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
8245
8246 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8247 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
8248 * hooks.c: Likewise.
8249 * target-def.h (TARGET_FOLD_BUILTIN): Define to
8250 hook_tree_tree_int_treep_bool_null.
8251 * target.h (struct gcc_target): Update signature of fold_builtin
8252 field.
8253 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8254 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8255 instead of the call expression.
8256 (fold_builtin_call_array): Pass n and argarray directly.
8257 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8258 consing a list.
8259 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
8260 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
8261 `i' and use it in place of `arity'.
8262 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8263 Dereference `args' directly.
8264 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8265
8266 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8267
8268 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8269 3dnow, sse3, sse2.
8270 (Directives): Document optional dg-require-effective-target
8271 selector.
8272
8273 2010-05-19 Richard Guenther <rguenther@suse.de>
8274
8275 PR lto/44196
8276 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8277
8278 2010-05-19 Richard Guenther <rguenther@suse.de>
8279
8280 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8281 * common.opt (fwhopr=): New.
8282 * opts.c (common_handle_option): Handle OPT_fwhopr.
8283 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8284 * collect2.c (main): Match -fwhopr*.
8285 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8286 Execute ltrans stage in parallel when jobs is bigger than 1.
8287
8288 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8289
8290 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8291 pentiumpro on Solaris 8/x86 with Sun as.
8292 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8293 hidden alias bug.
8294 (gcc_cv_as_ix86_quad): Check for .quad directive.
8295 * configure: Regenerate.
8296 * config.in: Regenerate.
8297 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8298
8299 2010-05-19 Martin Jambor <mjambor@suse.cz>
8300
8301 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8302 also for indirect edges. Actual printing moved...
8303 (ipa_print_node_jump_functions_for_edge): ...here.
8304 (ipa_compute_jump_functions): Renamed to
8305 ipa_compute_jump_functions_for_edge and made static.
8306 (ipa_compute_jump_functions): New function.
8307 (make_edge_direct_to_target): Check if the number of arguments on
8308 the newly direct edge is the same as the number of parametrs of
8309 the callee.
8310 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8311 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
8312 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8313 analysis functions unconditionally, call the new
8314 ipa_analyze_params_uses on the node instead of every edge.
8315
8316 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
8317
8318 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8319 to tree.
8320 (dump_mem_ref): Adopt debug code to handle a tree as step. This
8321 also checks for a constant int vs. non-constant but
8322 loop-invariant steps.
8323 (find_or_create_group): Change the sort algorithm to only consider
8324 steps that are constant ints.
8325 (idx_analyze_ref): Adopt code to handle a tree instead of a
8326 HOST_WIDE_INT for step.
8327 (gather_memory_references_ref): Handle tree instead of int and be
8328 prepared to see a NULL_TREE.
8329 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8330 prefetches if the step cannot be calculated at compile time.
8331 (issue_prefetch_ref): Issue prefetches for non-constant but
8332 loop-invariant steps.
8333
8334 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8335
8336 Revert:
8337 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8338
8339 * tree.h (build_call_list): Remove.
8340 * tree.c (build_call_list): Remove.
8341
8342 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8343
8344 * tree.h (build_call_list): Remove.
8345 * tree.c (build_call_list): Remove.
8346
8347 2010-05-18 Jan Hubicka <jh@suse.cz>
8348
8349 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8350
8351 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
8352
8353 PR rtl-optimization/43332
8354 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8355
8356 2010-05-18 Anatoly Sokolov <aesok@post.ru>
8357
8358 * tree.h (build_int_cstu): Implement as static inline.
8359 * tree.c (build_int_cstu): Remove function.
8360 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8361 sign extended.
8362
8363 2010-05-18 Richard Guenther <rguenther@suse.de>
8364
8365 PR lto/44143
8366 * lto-wrapper.c (verbose): New variable. Initialize from -v.
8367 (debug): Initialize from -save-temps.
8368 (collect_execute): Print command-line when verbose.
8369 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
8370 for ltrans invocation. Produce -dumpbase flag again.
8371 (process_args): Remove.
8372 (main): Simplify.
8373 * collect2.c (maybe_run_lto_and_relink): Only pass object
8374 files to lto-wrapper.
8375 * gcc.c (LINK_COMMAND_SPEC): Likewise.
8376
8377 2010-05-18 Jan Hubicka <jh@suse.cz>
8378
8379 * opts.c (decode_options): Do not disable whopr at ipa_cp.
8380 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8381
8382 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8383
8384 PR lto/44184
8385 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8386 in a GIMPLE_ASM.
8387 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8388 in a GIMPLE_ASM.
8389
8390 2010-05-18 Jakub Jelinek <jakub@redhat.com>
8391
8392 PR debug/41371
8393 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8394 rtx_equal_p inline.
8395
8396 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8397
8398 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8399 lto-macho as lto_binary_reader.
8400
8401 * darwin.c (darwin_asm_named_section): Do not add assembler comment
8402 after .section directive; just print it before the directive instead.
8403
8404 2010-05-17 Jan Hubicka <jh@suse.cz>
8405
8406 * cgraph.c (cgraph_create_virtual_clone): Only check
8407 versionable_function_p when not in wpa and checking is enabled.
8408 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8409 there are no more functions to materialize.
8410
8411 2010-05-17 Jan Hubicka <jh@suse.cz>
8412
8413 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8414 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8415 New functions.
8416 (output_cgraph): Call output_cgraph_opt_summary.
8417 (input_cgrpah): Call input_cgraph_opt_summary.
8418 (output_cgraph_opt_summary_p, output_node_opt_summary,
8419 input_node_opt_summary, input_cgraph_opt_section): New functions.
8420 * lto-section-in.c (lto_section_name): Add cgraphopt.
8421 * tree-inline.c (tree_function_versioning): Handle parm_num.
8422 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8423 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8424
8425 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8426
8427 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8428 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8429 the insn to prefetch ratio heuristic to loops with known trip count.
8430
8431 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8432
8433 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8434 (schedule_prefetches): Do not generate a prefetch if the unroll factor
8435 is far from what is required by the prefetch.
8436
8437 2010-05-17 Jan Hubicka <jh@suse.cz>
8438
8439 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8440 (ipcp_estimate_growth): Likewise.
8441 (ipcp_const_param_count): Likewise.
8442 (ipcp_insert_stage): Likewise.
8443 * ipa-prop.c (visit_load_for_mod_analysis): New function.
8444 (visit_store_addr_for_mod_analysis): Set used flag.
8445 (ipa_detect_param_modifications): Set used flag for SSE params;
8446 update use of walk_stmt_load_store_addr_ops.
8447 (ipa_print_node_params): Print used flag.
8448 (ipa_write_node_info): Stream used flag.
8449 (ipa_read_node_info): Likewise.
8450 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8451 (ipa_is_param_used): New function.
8452 (lto_ipa_fixup_call_notes): Remove unused declaration.
8453
8454 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8455
8456 PR target/44074
8457 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8458 * configure: Regenerate.
8459 * config.in: Regenerate.
8460 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8461 !HAVE_AS_IX86_REP_LOCK_PREFIX.
8462 Don't emit whitespace.
8463 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8464 (*rep_movsi): Likewise.
8465 (*rep_movsi_rex64): Likewise.
8466 (*rep_movqi): Likewise.
8467 (*rep_movqi_rex64): Likewise.
8468 (*rep_stosdi_rex64): Likewise.
8469 (*rep_stossi): Likewise.
8470 (*rep_stossi_rex64): Likewise.
8471 (*rep_stosqi): Likewise.
8472 (*rep_stosqi_rex64): Likewise.
8473 (*cmpstrnqi_nz_1): Use {%;} after repz.
8474 (*cmpstrnqi_nz_rex_1): Likewise.
8475 (*cmpstrnqi_1): Likewise.
8476 (*cmpstrnqi_rex_1): Likewise.
8477 (*strlenqi_1): Use {%;} after repnz.
8478 (*strlenqi_rex_1): Likewise.
8479 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8480 (*sync_compare_and_swap<mode>): Likewise.
8481 (sync_double_compare_and_swap<mode>): Likewise.
8482 (*sync_double_compare_and_swapdi_pic): Likewise.
8483 (sync_old_add<mode>): Likewise.
8484 (sync_add<mode>): Likewise.
8485 (sync_sub<mode>): Likewise.
8486 (sync_<code><mode>): Likewise.
8487
8488 2010-05-17 Martin Jambor <mjambor@suse.cz>
8489
8490 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8491 otr_token and polymorphic.
8492 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8493 (cgraph_clone_edge): Copy the above fields.
8494 * tree.c (get_binfo_at_offset): New function.
8495 * tree.h (get_binfo_at_offset): Declare.
8496 * ipa-prop.h (enum jump_func_type): Added known_type jump function
8497 type, reordered items, updated comments.
8498 (union jump_func_value): Added base_type field, reordered fields.
8499 (enum ipa_lattice_type): Moved down in the file.
8500 (struct ipa_param_descriptor): New field polymorphic.
8501 (ipa_is_param_polymorphic): New function.
8502 * ipa-prop.c: Include gimple.h and gimple-fold.h.
8503 (ipa_print_node_jump_functions): Print known type jump functions.
8504 (compute_complex_pass_through): Renamed to...
8505 (compute_complex_assign_jump_func): this.
8506 (compute_complex_ancestor_jump_func): New function.
8507 (compute_known_type_jump_func): Likewise.
8508 (compute_scalar_jump_functions): Create known type and complex ancestor
8509 jump functions.
8510 (ipa_note_param_call): New parameter polymorphic, set the corresponding
8511 flag in the call note accordingly.
8512 (ipa_analyze_call_uses): Renamed to...
8513 (ipa_analyze_indirect_call_uses): this. New parameter target, define
8514 variable var only in the block where it is used.
8515 (ipa_analyze_virtual_call_uses): New function.
8516 (ipa_analyze_call_uses): Likewise.
8517 (combine_known_type_and_ancestor_jfs): Likewise.
8518 (update_jump_functions_after_inlining): Implemented handling of a
8519 number of new jump function types combination.
8520 (print_edge_addition_message): Removed.
8521 (make_edge_direct_to_target): New function.
8522 (try_make_edge_direct_simple_call): Likewise.
8523 (try_make_edge_direct_virtual_call): Likewise.
8524 (update_call_notes_after_inlining): Renamed to...
8525 (update_indirect_edges_after_inlining): this. Moved edge creation for
8526 indirect calls to try_make_edge_direct_simple_call, also calls
8527 try_make_edge_direct_virtual_call for virtual calls.
8528 (ipa_print_node_params): Changed the header message.
8529 (ipa_write_jump_function): Stream also known type jump functions.
8530 (ipa_read_jump_function): Likewise.
8531 (ipa_write_indirect_edge_info): Stream new fields in
8532 cgraph_indirect_call_info.
8533 (ipa_read_indirect_edge_info): Likewise.
8534 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8535 GIMPLE_FOLD_H.
8536
8537 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8538
8539 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8540
8541 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8542
8543 * tree.h (CALL_EXPR_ARGS): Delete.
8544 (call_expr_arglist): Delete.
8545 * tree.c (call_expr_arglist): Delete.
8546 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8547 targetm.fold_builtin.
8548 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8549 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8550 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8551 arglist parameter. Use CALL_EXPR_ARG.
8552 (picochip_expand_builtin_3op): Likewise.
8553 (picochip_expand_builtin_2opvoid): Likewise.
8554 (picochip_expand_array_get): Likewise.
8555 (picochip_expand_array_put): Likewise.
8556 (picochip_expand_array_testport): Likewise.
8557 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
8558 rather than arglist.
8559 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8560 CALL_EXPR_ARGS.
8561 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8562 than TREE_VALUE and TREE_CHAIN.
8563 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8564 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8565 the arglist.
8566
8567 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8568
8569 PR bootstrap/42347
8570 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8571 to have no fallthru edge.
8572
8573 PR middle-end/44102
8574 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8575 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8576 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8577 add BARRIER after previous bb if needed.
8578
8579 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8580
8581 * tree.c (build_function_type_list_1): Remove bogus assert condition.
8582
8583 2010-05-17 Alan Modra <amodra@gmail.com>
8584
8585 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8586 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
8587 with copy_reg rtx param.
8588 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8589 Correct cases where code for ABI_V4 did not initialise the reg
8590 used to access frame. Also leave frame_reg_rtx as sp for large
8591 frames that save no regs.
8592
8593 2010-05-17 Martin Jambor <mjambor@suse.cz>
8594
8595 PR middle-end/44133
8596 * tree-sra.c (create_access_replacement): New parameter rename, mark
8597 the replaement for renaming only when it is true.
8598 (get_access_replacement): Pass true in the rename parameter of
8599 create_access_replacement.
8600 (get_unrenamed_access_replacement): New function.
8601 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8602 replacement declaration from it.
8603
8604 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
8605
8606 * function.c (try_fit_stack_local, add_frame_space): New static
8607 functions.
8608 (assign_stack_local_1): Use them. Look for opportunities to use
8609 space previously wasted on alignment.
8610 * function.h (struct frame_space): New.
8611 (struct rtl_data): Add FRAME_SPACE_LIST member.
8612 * reload1.c (something_was_spilled): New static variable.
8613 (alter_reg): Set it.
8614 (reload): Test it in addition to testing if the frame size changed.
8615
8616 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
8617
8618 * config/s390/s390.c: Define sane prefetch settings and activate
8619 flag_prefetch_loop_arrays on -O3.
8620 * config/s390/s390.h: Declare that read can use write prefetch.
8621
8622 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8623
8624 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8625 build.
8626
8627 2010-05-16 Jan Hubicka <jh@suse.cz>
8628
8629 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8630 function body; do not check stdarg field of struct function.
8631
8632 2010-05-16 Jan Hubicka <jh@suse.cz>
8633
8634 * cgraph.c (dump_cgraph_node): Dump versionable flag.
8635 * cgraph.h (cgraph_local_info): Add versionable flag.
8636 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8637 (ipcp_versionable_function_p): Use it.
8638 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8639 versionable flag.
8640
8641 2010-05-16 Jan Hubicka <jh@suse.cz>
8642
8643 * cgraph.c (cgraph_clone_node): Take decl argument and insert
8644 clone into hash when it is different from orig.
8645 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8646 * cgraph.h (cgraph_clone_node): Update prototype.
8647 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8648 (lto_cgraph_encoder_delete): Delete body map.
8649 (lto_cgraph_encoder_size): Move to header.
8650 (lto_cgraph_encoder_encode_body_p,
8651 lto_set_cgraph_encoder_encode_body): New.
8652 (lto_output_node): Do not take written_decls argument; output clone_of
8653 pointer.
8654 (add_node_to): Add include_body_argument; call
8655 lto_set_cgraph_encoder_encode_body on master of the clone.
8656 (add_references): Update use of add_node_to.
8657 (compute_ltrans_boundary): Likewise.
8658 (output_cgraph): Do not create written_decls bitmap.
8659 (input_node): Take nodes argument; stream in clone_of correctly.
8660 (input_cgraph_1): Update use of input_node.
8661 * lto-streamer-out.c (lto_output): Use encoder info to decide
8662 what bodies to output.
8663 * ipa-inline.c (cgraph_clone_inlined_nodes,
8664 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8665 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8666 (lto_cgraph_encoder_size): Define here.
8667 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8668 Declare.
8669
8670 2010-05-16 Richard Guenther <rguenther@suse.de>
8671
8672 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8673 -fipa-type-escape.
8674 * ipa-type-escape.c (gate_type_escape_vars): Run when
8675 -fipa-struct-reorg runs.
8676 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8677 * common.opt (fipa-type-escape): Remove.
8678
8679 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8680
8681 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8682 (decode_options): Likewise.
8683 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8684
8685 2010-05-16 Jan Hubicka <jh@suse.cz>
8686
8687 * ipa.c (function_and_variable_visibility): Also bring local all
8688 aliases.
8689
8690 2010-05-16 Richard Guenther <rguenther@suse.de>
8691
8692 * alias.c (nonoverlapping_memrefs_p): Remove use of
8693 IPA type-escape information.
8694
8695 2010-05-16 Joseph Myers <joseph@codesourcery.com>
8696
8697 * c-common.c (c_common_reswords): Add _Static_assert for C.
8698 * c-parser.c (c_token_starts_declaration,
8699 c_parser_next_token_starts_declaration,
8700 c_parser_static_assert_declaration_no_semi,
8701 c_parser_static_assert_declaration): New.
8702 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8703 Handle static assertions if static_assert_ok.
8704 (c_parser_external_declaration, c_parser_declaration_or_fndef,
8705 c_parser_compound_statement_nostart, c_parser_label,
8706 c_parser_for_statement, c_parser_objc_methodprotolist,
8707 c_parser_omp_for_loop): All callers of
8708 c_parser_declaration_or_fndef changed.
8709 (c_parser_struct_declaration): Handle static assertions.
8710 (c_parser_compound_statement_nostart): Use
8711 c_parser_next_token_starts_declaration and
8712 c_token_starts_declaration to detect start of declarations.
8713 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
8714 Likewise.
8715
8716 2010-05-16 Anatoly Sokolov <aesok@post.ru>
8717
8718 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8719 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8720 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8721 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8722 (mmix_function_outgoing_value): Rename to...
8723 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
8724 (mmix_function_value_regno_p): Make static.
8725 (mmix_libcall_value): New function.
8726 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
8727 mmix_function_value_regno_p): Remove declaration.
8728
8729 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8730
8731 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
8732 BUILT_IN_ALLOCA if stack checking is enabled.
8733
8734 2010-05-16 Richard Guenther <rguenther@suse.de>
8735
8736 * var-tracking.c (vars_copy_1): Inline ...
8737 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
8738 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
8739 (variable_merge_over_cur): Adjust. Merge asserts.
8740 (variable_merge_over_src): Likewise.
8741 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
8742 (variable_post_merge_new_vals): Merge asserts.
8743 (variable_post_merge_perm_vals): Likewise.
8744 (find_mem_expr_in_1pdv): Likewise.
8745 (dataflow_set_different_value): Remove.
8746 (onepart_variable_different_p): Merge asserts.
8747 (variable_different_p): Likewise.
8748 (dataflow_set_different_1): Inline ...
8749 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
8750 (emit_notes_for_differences_1): Merge asserts.
8751
8752 2010-05-16 Richard Guenther <rguenther@suse.de>
8753
8754 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
8755 * optabs.c (libfunc_decl_hash): Likewise.
8756 * varasm.c (emutls_decl): Likewise.
8757
8758 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
8759
8760 * c-decl.c: Don't include gimple.h.
8761 (merge_decls): Do not copy gimple_body.
8762
8763 2010-05-15 Jason Merrill <jason@redhat.com>
8764
8765 * c.opt: Add -fnothrow-opt.
8766
8767 2010-05-15 Jan Hubicka <jh@suse.cz>
8768
8769 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
8770 analyzed.
8771 * passes.c (ipa_write_summaries): Write all analyzed nodes.
8772
8773 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
8774
8775 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
8776 * Makefile.in: Add it.
8777 Fix all other Makefile dependencies for changes below.
8778 * tree.h: Include it instead of defining VEC primitives here.
8779 * gimple.h: Likewise.
8780 * rtl.h: Likewise.
8781 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
8782 * except.h: Include vecir.h, break dependence on tree.h.
8783
8784 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
8785 Move from here...
8786 * tree-iterator.c: ...to here.
8787 * tree-iterator.h: Fix file introduction comment. Add extern markers.
8788
8789 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
8790 tm_p.h.
8791 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
8792 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
8793 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
8794 tree-mudflap.h, and target.h.
8795 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
8796 predict.h, tree-inline.h, gimple.h, and langhooks.h.
8797 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
8798 Add FIXME for why gimple.h is still included (should be unnecessary
8799 since GCC 4.5 gimplification unit-at-a-time).
8800 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
8801 * c-pragma.c: Add FIXME for why function.h needs to be included just
8802 for cfun, at front-end level.
8803 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
8804 Do not include ggc.h, but include vecprim.h for VEC(char).
8805 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
8806 Explain why target.h is included.
8807 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
8808 Explain why gimple.h is included.
8809 * c-ppoutput.c: Do not include tm.h.
8810 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
8811 * c-parses.c: Explain why rtl.h is included, and that this (and only
8812 this) is also why tm.h must be included.
8813 Do not include except.h.
8814 * c-lang.c: Do not include ggc.h.
8815
8816 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
8817
8818 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
8819
8820 2010-05-15 Joseph Myers <joseph@codesourcery.com>
8821
8822 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
8823 unions by default if those structs and unions have no tags. Do
8824 not condition anonymous struct and unions handling on flag_iso.
8825 Allow anonymous structs and unions for C1X.
8826 (finish_struct): Do not diagnose lack of named fields when
8827 anonymous structs and unions present for C1X. Accept flexible
8828 array members in structure with anonymous structs or unions but no
8829 directly named fields.
8830 * doc/extend.texi (Unnamed Fields): Update.
8831
8832 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
8833
8834 * gimple.h (compare_field_offset): Rename into...
8835 (gimple_compare_field_offset): ...this.
8836 * gimple.c (compare_field_offset): Rename into...
8837 (gimple_compare_field_offset): ...this. Compare the full access if
8838 the offset is self-referential.
8839 (gimple_types_compatible_p): Adjust for above renaming.
8840 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
8841 DECL_NONADDRESSABLE_P flag of fields before merging them.
8842
8843 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
8844
8845 * tree.h (ctor_to_list): Delete.
8846 * tree.c (ctor_to_list): Delete.
8847
8848 2010-05-15 Jan Hubicka <jh@suse.cz>
8849
8850 * ipa-reference.c: Include toplev.h
8851 (is_proper_for_analysis): Only add to all_module_statics
8852 if it is allocated.
8853 (write_node_summary_p, stream_out_bitmap,
8854 ipa_reference_write_optimization_summary,
8855 ipa_reference_read_optimization_summary): New.
8856 (struct ipa_opt_pass_d pass_ipa_reference): Add
8857 optimization summary streaming.
8858 * lto-cgraph.c (referenced_from_this_partition_p,
8859 reachable_from_this_partition_p): New functions.
8860 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8861 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
8862 * opts.c (decode_options): Enable ipa_reference.
8863 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
8864 * lto-streamer.h (referenced_from_this_partition_p,
8865 reachable_from_this_partition_p): Declare.
8866
8867 2010-05-15 Richard Guenther <rguenther@suse.de>
8868
8869 PR tree-optimization/44038
8870 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
8871 taking the address of a V_C_E of a constant.
8872
8873 2010-05-14 Jan Hubicka <jh@suse.cz>
8874
8875 * tree.h (memory_identifier_string): Remove.
8876 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
8877 (ipa_reference_global_vars_info_d): Remove statics_not_read and
8878 statics_not_written.
8879 (ipa_reference_optimization_summary_d): New structure.
8880 (ipa_reference_optimization_summary_t): New type and vector.
8881 (ipa_reference_vars_info_d): Embedd structures instead of using
8882 pointers.
8883 (reference_vars_to_consider): Remove out of GGC space.
8884 (module_statics_escape): Remove.
8885 (global_info_obstack): Rename to ...
8886 (optimization_summary_obstack): ... this one.
8887 (initialization_status_t): Remove.
8888 (memory_identifier_string): Remove.
8889 (get_reference_vars_info): Fix indenting.
8890 (set_reference_vars_info): Likewise.
8891 (get_reference_optimization_summary): New.
8892 (set_reference_optimization_summary): New.
8893 (get_global_reference_vars_info): Remove.
8894 (ipa_reference_get_read_global): Remove.
8895 (ipa_reference_get_written_global): Remove.
8896 (ipa_reference_get_not_read_global): Update.
8897 (ipa_reference_get_not_written_global): Update.
8898 (is_proper_for_analysis): Outlaw addressable.
8899 (propagate_bits): Update for new datastructures.
8900 (analyze_variable): Remove.
8901 (init_function_info): Update for new datastructures.
8902 (clean_function_local_data): Remove.
8903 (clean_function): Remove.
8904 (copy_global_bitmap): Use optimizations_summary_obstack.
8905 (duplicate_node_data): Duplicate optimization summary only.
8906 (remove_node_data): Remove optimization summary only.
8907 (generate_summary): Do not analyze variables; do not compute
8908 module_statics_escape; do not prune solutions by it.
8909 (read_write_all_from_decl): Fix typos in comments.
8910 (propagate): Doscover readonly and nonaddressable first;
8911 update for new datastructures; share global bitmaps.
8912 * ipa-reference.h (ipa_reference_get_read_global,
8913 ipa_reference_get_written_global): Remove.
8914 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
8915 * Makefile.in: Remove ipa-refereference from GT files.
8916
8917 2010-05-14 Jakub Jelinek <jakub@redhat.com>
8918
8919 PR debug/44112
8920 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
8921 for all SYMBOL_REF_DECLs.
8922
8923 2010-05-14 Jan Hubicka <jh@suse.cz>
8924
8925 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8926 (varpool_all_refs_explicit_p): New inline function.
8927 * ipa-reference.c: Update comment.
8928 (module_statics_written): Remove.
8929 (get_static_decl): Remove.
8930 (ipa_init): Do not initialize module_statics_written.
8931 (analyze_function): Likewise.
8932 (generate_summary): Likewise; do not compute module_statics_readonly
8933 and do not update variable flags.
8934 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8935 * ipa.c: Inlucde flags.h
8936 (cgraph_local_node_p): New.
8937 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8938 promote functions to local.
8939 (ipa_discover_readonly_nonaddressable_vars): New function.
8940 (function_and_variable_visibility): Use cgraph_local_node_p.
8941 * varpool.c (varpool_finalize_decl): Set force_output for
8942 DECL_PRESERVE_P vars.
8943
8944 2010-05-14 Jan Hubicka <jh@suse.cz>
8945
8946 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8947
8948 2010-05-14 Richard Guenther <rguenther@suse.de>
8949
8950 PR tree-optimization/44119
8951 * tree-ssa-pre.c (eliminate): Properly mark replacement of
8952 a PHI node necessary.
8953
8954 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
8955
8956 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8957
8958 2010-05-14 Jason Merrill <jason@redhat.com>
8959
8960 PR c++/44127
8961 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8962 (gimple_call_set_nothrow): New.
8963 * gimple.c (gimple_build_call_from_tree): Call it.
8964 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8965
8966 PR c++/44127
8967 * gimplify.c (gimplify_seq_add_stmt): No longer static.
8968 * gimple.h: Declare it.
8969 * gimple.c (gimple_build_eh_filter): No ops.
8970
8971 2010-05-14 Jan Hubicka <jh@suse.cz>
8972
8973 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8974 nodes already in queue.
8975 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8976 re-enqueueing node.
8977
8978 2010-05-14 Jakub Jelinek <jakub@redhat.com>
8979
8980 PR debug/44136
8981 * cfgexpand.c (expand_debug_expr): If non-memory op0
8982 has BLKmode, return NULL.
8983
8984 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
8985
8986 * config.gcc: Add support for --with-cpu option for bdver1.
8987 * config/i386/i386.h (TARGET_BDVER1): New macro.
8988 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8989 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8990 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8991 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8992 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8993 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8994 (processor_type): Add PROCESSOR_BDVER1.
8995 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8996 processor_type in config/i386/i386.h.
8997 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8998 movaps <reg, reg> instead of movapd <reg, reg> when replacing
8999 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9000 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9001 to emit packed xor instead of packed double/packed integer
9002 xor for SSE and AVX when moving a zero value.
9003 * config/i386/sse.md: Add check for
9004 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9005 movapd/movdqa for SSE and AVX.
9006 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9007 single logical operations i.e and, or and xor instead of packed double
9008 logical operations for SSE and AVX.
9009 * config/i386/i386-c.c (ix86_target_macros_internal):
9010 Add PROCESSOR_BDVER1.
9011 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9012 (has_fma4, has_xop): New.
9013 * config/i386/i386.c (bdver1_cost): New variable.
9014 (m_BDVER1): New macro.
9015 (m_AMD_MULTIPLE): Add m_BDVER1.
9016 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9017 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9018 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9019 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9020 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9021 x86_tune_sse_partial_reg_dependency,
9022 x86_tune_sse_unaligned_load_optimal,
9023 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9024 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9025 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9026 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9027 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9028 Enable/disable for bdver1.
9029 (processor_target_table): Add bdver1_cost.
9030 (cpu_names): Add bdver1.
9031 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9032 processor_alias_table.
9033 (ix86_expand_vector_move_misalign): Change.
9034 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9035 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9036 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9037 of movupd/movdqu for SSE and AVX.
9038 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9039 (ix86_tune_adjust_cost): Add code for bdver1.
9040 (standard_sse_constant_opcode): Add check for
9041 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9042 of packed double xor for SSE and AVX.
9043
9044 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
9045
9046 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9047 result to unsigned.
9048
9049 2010-05-14 Tristan Gingold <gingold@adacore.com>
9050
9051 * toplev.c (default_debug_hooks): Remove this variable.
9052 (process_options): Remove assignments to default_debug_hooks.
9053
9054 2010-05-14 Martin Jambor <mjambor@suse.cz>
9055
9056 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9057 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9058 * langhooks.h (struct lang_hooks_for_decls): Removed field
9059 fold_obj_type_ref.
9060 * tree.c (free_lang_data): Remove assignment to
9061 lang_hooks.fold_obj_type_ref.
9062 * tree.def (OBJ_TYPE_REF): Update comment.
9063
9064 2010-05-14 Richard Guenther <rguenther@suse.de>
9065
9066 PR tree-optimization/44124
9067 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9068
9069 2010-05-14 Alan Modra <amodra@gmail.com>
9070
9071 PR target/44075
9072 * config/rs6000/rs6000.c (struct machine_function): Reorder
9073 fields for better packing. Add lr_save_state.
9074 (rs6000_ra_ever_killed): Return lr_save_state if set.
9075 (rs6000_emit_eh_reg_restore): Set lr_save_state.
9076
9077 2010-05-13 Jan Hubicka <jh@suse.cz>
9078
9079 * varpool.c (decide_is_variable_needed): Drop code checking
9080 TREE_SYMBOL_REFERENCED.
9081
9082 2010-05-13 Jan Hubicka <jh@suse.cz>
9083
9084 * final.c (output_addr_const): Do not call mark_decl_referenced.
9085 * cgraphunit.c (process_function_and_variable_attributes): Use
9086 mark_needed_node dirrectly.
9087 (assemble_thunk): Do not call mark_decl_referenced.
9088
9089 2010-05-13 Anatoly Sokolov <aesok@post.ru>
9090
9091 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9092
9093 2010-05-13 Jeff Law <law@redhat.com>
9094
9095 * ira-conflicts.c (print_allocno_conflicts): New function broken out
9096 from...
9097 (print_conflicts): Call print_allocno_conflicts.
9098
9099 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9100
9101 PR debug/44104
9102 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9103 if it is NULL.
9104
9105 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
9106
9107 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9108 t-mingw-w64 or t-mingw-w32 for multilib configuration.
9109 * config/i386/t-mingw-w32: New.
9110 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9111
9112 2010-05-13 Martin Jambor <mjambor@suse.cz>
9113
9114 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9115 gimple-fold.c).
9116 * gimple-fold.c (get_base_binfo_for_type): New function.
9117 (gimple_get_relevant_ref_binfo): Likewise.
9118 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9119 (gimple_fold_obj_type_ref): Likewise.
9120 (fold_gimple_call): Simplify condition for folding virtual calls
9121 and call gimple_fold_obj_type_ref.
9122 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9123 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9124
9125 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
9126
9127 * config/rs6000/rs6000-protos.h
9128 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9129 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9130 (rs6000_debug_mode_dependent_address)
9131 (rs6000_mode_dependent_address_ptr): Likewise.
9132
9133 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9134
9135 PR debug/43983
9136 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9137 by SRA.
9138 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9139 * tree-sra.c (create_access_replacement): Call unshare_expr before
9140 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9141 * dwarf2out.c: Include tree-flow.h.
9142 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9143 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9144 Handle DW_OP_bit_piece.
9145 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9146 construct_piece_list, adjust_piece_list): New functions.
9147 (add_var_loc_to_decl): Handle SRA optimized variables.
9148 Adjust for var_loc_note to loc field renaming.
9149 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9150 in VAR_LOCATION note.
9151 (new_loc_descr_op_bit_piece): New function.
9152 (dw_sra_loc_expr): New function.
9153 (dw_loc_list): Use it. Don't handle the last range after the
9154 loop, handle it inside of the loop. Adjust for var_loc_note
9155 to loc field renaming.
9156 (add_location_or_const_value_attribute): Only special case
9157 single entry loc lists if loc is NOTE_P. Adjust for
9158 var_loc_note to loc field renaming.
9159 (dwarf2out_var_location): Don't set newloc->var_loc_note
9160 and newloc->next here.
9161
9162 2010-05-12 Jan Hubicka <jh@suse.cz>
9163
9164 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9165 flag.
9166 * cgraph.h (cgraph_only_called_directly_p,
9167 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9168 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9169 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9170 (assemble
9171 * ipa.c (cgraph_remove_unreachable_nodes): Use
9172 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9173 flags.
9174 * tree-inline.c (copy_bb): Check address_taken flag.
9175 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9176 externally_visible flag.
9177
9178 2010-05-12 Jason Merrill <jason@redhat.com>
9179
9180 PR bootstrap/44048
9181 PR target/44099
9182 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9183 * sdbout.c (plain_type_1): Likewise.
9184 * dwarf2out.c (is_base_type): Likewise.
9185 (gen_type_die_with_usage): Likewise. Generate
9186 DW_TAG_unspecified_type for any LANG_TYPE.
9187
9188 2010-05-12 Jan Hubicka <jh@suse.cz>
9189
9190 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9191 indrect edges too.
9192 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9193 (cgraph_clone_edge): Update.
9194 (cgraph_node_remove_callees): Remove indirect calls too.
9195 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9196 (cgraph_create_indirect_edge): Update prototype.
9197 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9198 is_proper_for_analysis.
9199 (add_new_function, visited_nodes, function_insertion_hook_holder,
9200 get_local_reference_vars_info, mark_address_taken, mark_address,
9201 mark_load, mark_store, check_asm_memory_clobber, check_call,
9202 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9203 (ipa_init): Do not initialize visited_nodes;
9204 function_insertion_hook_holder.
9205 (analyze_variable): Rewrite.
9206 (analyze_function): Rewrite.
9207 (copy_local_bitmap): Remove.
9208 (duplicate_node_dat): Do not duplicate local info.
9209 (generate_summary): Simplify to only walk cgraph.
9210 (write_node_summary_p, ipa_reference_write_summary,
9211 ipa_reference_read_summary): Remove.
9212 (propagate): Do not remove function insertion;
9213 generate summary.
9214 (pass_ipa_reference): NULLify summary handling fields.
9215 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9216 (input_edge): Input ecf_flags.
9217 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9218 (update_indirect_edges_after_inlining): Ignore edges with unknown
9219 param.
9220
9221 2010-05-12 Sriraman Tallam <tmsriram@google.com>
9222
9223 * implicit-zee.c: New file.
9224 * tree-pass.h (pass_implicit_zee): Declare.
9225 * passes.c (init_optimization_passes): Add zee pass.
9226 * common.opt (fzee): New flag.
9227 * timevar.def (TV_ZEE): Define.
9228 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9229 and beyond.
9230 * Makefile.in (implicit-zee.o): Add new build file.
9231
9232 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9233 Nathan Froyd <froydnj@codesourcery.com>
9234
9235 * c-common.c (sync_resolve_params): Remove write-only variable.
9236
9237 2010-05-12 Anatoly Sokolov <aesok@post.ru>
9238
9239 * target.h (struct gcc_target): Add mode_dependent_address_p field.
9240 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9241 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9242 * targhooks.c (default_mode_dependent_address_p): New function.
9243 * targhooks.h (default_mode_dependent_address_p): Declare function.
9244 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9245 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9246 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9247 target hook. Change return type to bool.
9248 * recog.h (mode_dependent_address_p): Change return type to bool.
9249
9250 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9251 Nathan Froyd <froydnj@codesourcery.com>
9252
9253 * tree-mudflap.c (build_function_type_0, build_function_type_1,
9254 build_function_type_2, build_function_type_3): Remove.
9255 (mudflap_init): Use build_function_type_list.
9256
9257 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9258 Nathan Froyd <froydnj@codesourcery.com>
9259
9260 * coverage.c (build_fn_info_value): Call build_constructor instead of
9261 build_constructor_from_list.
9262 (build_ctr_info_value): Likewise.
9263 (build_gcov_info): Likewise.
9264
9265 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
9266
9267 * tree.c (build_constructor): Compute TREE_CONSTANT for the
9268 resultant constructor.
9269 (build_constructor_single): Don't set TREE_CONSTANT.
9270 (build_constructor_from_list): Don't compute TREE_CONSTANT.
9271
9272 2010-05-12 Jan Hubicka <jh@suse.cz>
9273
9274 * cgraph.h (struct varpool_node): Add aux.
9275 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9276 * varpool.c (varpool_remove_node): Do not remove initializer.
9277 (varpool_reset_queue): Export.
9278 (varpool_finalize_decl): Volatile vars are forced to be output.
9279 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9280 replaced decl.
9281 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9282 process_references, varpool_can_remove_if_no_refs): New functions.
9283 (cgraph_remove_unreachable_nodes): Handle variables too.
9284
9285 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
9286
9287 PR target/44088
9288 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9289
9290 2010-05-12 Jakub Jelinek <jakub@redhat.com>
9291
9292 PR middle-end/44085
9293 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9294 change value of ORT_TASK.
9295 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9296 (omp_notice_threadprivate_variable): New function.
9297 (omp_notice_variable): Call it for threadprivate variables.
9298 If enclosing ctx is a task, print enclosing task rather than
9299 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
9300 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9301 if task has untied clause.
9302
9303 PR debug/42278
9304 * dwarf2out.c (base_type_die): Don't add name attribute here.
9305 (modified_type_die): Instead of sizetype use
9306 its underlying original type. If a DW_TAG_base_type doesn't
9307 have name added, add __unknown__.
9308 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9309 always call force_type_die instead.
9310
9311 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9312
9313 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9314 for __stack_chk_guard.
9315
9316 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9317
9318 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9319 don't call start_source_file debug hook here...
9320 (finish_options): ... but here, after outputting predefined and
9321 command line defines and undefs.
9322
9323 PR middle-end/44071
9324 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9325 no fallthru edge.
9326 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9327 optimizing away empty bb with no successors, move over its
9328 footer chain to fallthru predecessor.
9329 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9330 (rtl_split_edge): For asm goto call patch_jump_insn even if
9331 splitting fallthru edge.
9332
9333 PR c++/44059
9334 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9335 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9336 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9337 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9338 on DW.ref.* decls.
9339
9340 PR c++/44062
9341 * c-parser.c (c_parser_expression): Mark LHS of a comma
9342 expression as read if it is a decl, handled component or
9343 COMPOUND_EXPR with that on the RHS.
9344 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9345 if it is a decl or handled component.
9346
9347 2010-05-11 Jan Hubicka <jh@suse.cz>
9348
9349 * lto-symtab.c (lto_symtab_free): New function.
9350 * lto-streamer.h (lto_symtab_free): Declare.
9351
9352 2010-05-11 Jan Hubicka <jh@suse.cz>
9353
9354 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9355 that if function is needed it is reachable.
9356 (lto_output_node): See if it the function is reachable or referenced.
9357 (output_cgraph): Update call of lto_output_node.
9358 * lto-streamer.h (reachable_from_other_partition_p): Declare.
9359
9360 2010-05-11 Jan Hubicka <jh@suse.cz>
9361
9362 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9363 Mark as used.
9364
9365 2010-05-11 Jan Hubicka <jh@suse.cz>
9366
9367 PR tree-optimize/44063
9368 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9369 queue.
9370 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9371 limits.
9372 (estimate_function_body_sizes): Compute sizes even when disregarding.
9373
9374 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
9375
9376 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9377
9378 2010-05-11 Jan Hubicka <jh@suse.cz>
9379
9380 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9381 into every boundary.
9382
9383 2010-05-11 Jan Hubicka <jh@suse.cz>
9384
9385 * matrix-reorg.c (matrix_reorg): Rebuild edges.
9386
9387 2010-05-11 Jan Hubicka <jh@suse.cz>
9388
9389 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9390 lto_streamer_cache_delete): Put nodes into heap.
9391 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9392 heap.
9393
9394 2010-05-11 Jan Hubicka <jh@suse.cz>
9395
9396 * cgraphbuild.c (cgraph_rebuild_references): New.
9397 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9398 out extern inlines.
9399 * cgraph.h (cgraph_rebuild_references): Declare.
9400 * tree-inline.c (tree_function_versioning): Use it.
9401 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9402
9403 2010-05-11 Jan Hubicka <jh@suse.cz>
9404
9405 * cgraph.c: Include ipa-utils.h
9406 (cgraph_create_virtual_clone): Update references.
9407 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9408
9409 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9410
9411 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9412 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9413 cache size.
9414
9415 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9416
9417 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9418
9419 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9420
9421 * gcc.c (execute): For -### don't quote arguments that
9422 contain just alphanumerics and _/-. characters.
9423 * doc/invoke.texi: Document that change for -###.
9424
9425 PR debug/44023
9426 * df-problems.c (struct dead_debug): Add to_rescan field.
9427 (dead_debug_init): Clear to_rescan field.
9428 (dead_debug_finish): Rescan all debug insns in to_rescan
9429 bitmap and free the bitmap.
9430 (dead_debug_insert_before): Instead of rescanning debug insns
9431 immediately queue their rescanning until dead_debug_finish.
9432 (df_note_bb_compute): After dead_debug_add do continue instead
9433 of break.
9434
9435 2010-05-10 Jakub Jelinek <jakub@redhat.com>
9436
9437 PR debug/44028
9438 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9439 clear also INSN_REG_USE_LIST.
9440
9441 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9442
9443 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9444
9445 2010-05-10 Jan Hubicka <jh@suse.cz>
9446
9447 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9448 commited change.
9449
9450 2010-05-10 Jan Hubicka <jh@suse.cz>
9451
9452 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9453 Allocate encoders.
9454 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9455 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9456 (lto_streamer_cache_create): Init alloc pool.
9457 (lto_streamer_cache_delete): Free alloc pool.
9458 * lto-streamer.h: Include alloc pool.
9459 (lto_streamer_cache_d): Use alloc pool.
9460 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9461
9462 2010-05-10 Jan Hubicka <jh@suse.cz>
9463
9464 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9465 * cgraphbuild.c: Include except.h
9466 (record_type_list, record_eh_tables): New function.
9467 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9468
9469 2010-05-10 Jan Hubicka <jh@suse.cz>
9470
9471 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9472 __frame_dummy_init_array_entry, force_to_data): Attribute as used
9473 rather than unused.
9474
9475 2010-05-10 Michael Matz <matz@suse.de>
9476
9477 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9478 (can_reassociate_p): Use FLOAT_TYPE_P.
9479 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9480 (vect_force_simple_reduction): ... this.
9481 * tree-parloops.c (gather_scalar_reductions): Use
9482 vect_force_simple_reduction.
9483 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9484 vect_is_simple_reduction, add modify argument, if true rewrite
9485 "a-b" into "a+(-b)".
9486 (vect_is_simple_reduction, vect_force_simple_reduction): New
9487 functions.
9488 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9489
9490 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
9491 Vladimir Makarov <vmakarov@redhat.com>
9492
9493 PR rtl-optimization/44012
9494 * ira-build.c (remove_unnecessary_allocnos): Nullify
9495 regno_allocno_map of the removed allocno.
9496
9497 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9498
9499 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9500 to /dev/null.
9501 * configure: Regenerate.
9502
9503 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9504
9505 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9506 unused.
9507 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9508 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9509 support in Sun ld.
9510 * configure: Regenerate.
9511
9512 2010-05-10 Richard Guenther <rguenther@suse.de>
9513
9514 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9515 marked if the entry identifier is marked.
9516
9517 2010-05-10 Richard Guenther <rguenther@suse.de>
9518
9519 * c-common.c (struct c_common_attributes): Add fnspec attribute.
9520 (handle_fnspec_attribute): New function.
9521 * gimple.h (gimple_call_return_flags): Declare.
9522 (gimple_call_arg_flags): Likewise.
9523 * gimple.c (gimple_call_arg_flags): New function.
9524 (gimple_call_return_flags): Likewise.
9525 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9526 New argument flags.
9527 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9528 return value flags.
9529 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9530 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9531 main work to ...
9532 (make_heapvar_for): ... this new function.
9533 (handle_rhs_call): Handle fnspec attribute argument specifiers.
9534 (handle_lhs_call): Likewise.
9535 (find_func_aliases): Adjust.
9536
9537 2010-05-10 Richard Guenther <rguenther@suse.de>
9538
9539 PR tree-optimization/44050
9540 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9541
9542 2010-05-10 Wei Guozhi <carrot@google.com>
9543
9544 PR target/42879
9545 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9546
9547 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9548
9549 PR c/10676
9550 * c-typeck.c (lookup_field): Take a type directly. Update
9551 recursive calls.
9552 (build_component_ref): Update call to lookup_field.
9553 (set_init_label): Use lookup_field to find initialized field.
9554 Handle returned list of fields like a sequence of designators.
9555
9556 2010-05-09 Richard Guenther <rguenther@suse.de>
9557
9558 PR middle-end/44024
9559 * fold-const.c (tree_single_nonzero_warnv_p): Properly
9560 handle &FUNCTION_DECL.
9561
9562 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9563
9564 PR c/4784
9565 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
9566 structures and unions recursively.
9567 (detect_field_duplicates): Move duplicate detection with a hash to
9568 detect_field_duplicates_hash. Always use a hash if anonymous
9569 structures or unions are present.
9570 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9571 give errors.
9572
9573 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
9574
9575 PR target/44046
9576 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9577 detect Atom, Core 2 and Core i7.
9578
9579 2010-05-09 Richard Guenther <rguenther@suse.de>
9580
9581 * gcc.c (store_arg): Handle temporary file deletion for
9582 joined arguments.
9583
9584 2010-05-09 Richard Guenther <rguenther@suse.de>
9585
9586 PR middle-end/44043
9587 * ipa-inline.c (estimate_function_body_sizes): Return after
9588 disregarding inline limits.
9589
9590 2010-05-09 Richard Guenther <rguenther@suse.de>
9591
9592 * gcc.c (store_arg): Revert last change.
9593
9594 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
9595
9596 PR middle-end/28685
9597 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9598 (optimize_ops_list): Call it.
9599
9600 2010-05-08 Richard Guenther <rguenther@suse.de>
9601
9602 PR tree-optimization/44030
9603 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
9604 NECESSARY flag if we propagate from a inserted expression.
9605
9606 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
9607
9608 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9609 domain types as equal if they are both PLACEHOLDER_EXPRs.
9610
9611 2010-05-08 Richard Guenther <rguenther@suse.de>
9612
9613 * lto-wrapper.c (run_gcc): Remove linker output from
9614 command line for LTRANS invocation.
9615
9616 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
9617
9618 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9619 lto-macho as lto_binary_reader.
9620 * target.h (struct gcc_target): New hooks lto_start and lto_end.
9621 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9622 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9623 in lto_start and lto_end calls.
9624 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
9625 magic numbers.
9626 (scan_prog_file): Update is_elf_or_coff call.
9627 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9628
9629 * collect2.c (main): Fix enum comparison.
9630
9631 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9632 Add prototypes.
9633 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9634 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
9635 and TARGET_ASM_LTO_END.
9636 * darwin.c: Include obstack.h and lto-streamer.h.
9637 (lto_section_names_offset, lto_section_names_obstack,
9638 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9639 global variables.
9640 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9641 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
9642 to a temporary file.
9643 (darwin_asm_lto_end): New function. Restore asm_out_file.
9644 (darwin_asm_named_section): For LTO sections, replace the name with
9645 the offset of the section name in a string table, and build this
9646 table.
9647 (darwin_file_start): Initialize global vars for LTO support.
9648 (darwin_file_end): If output to asm_out_file was redirected, append it
9649 to the proper asm_out_file here. Add the section names section.
9650
9651 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
9652
9653 * c-pragma.c (pending_weak_d, pending_weak): New.
9654 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9655 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9656 handle_pragma_weak): Update the uses of pending_weaks.
9657
9658 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9659
9660 PR documentation/44016
9661 * doc/standards.texi (Standards): Link to unversioned
9662 cxx0x_status.html page.
9663
9664 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
9665
9666 PR target/43708
9667 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9668 in addition to TREE_USED, to avoid "set but unused" warnings.
9669
9670 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9671
9672 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9673 (is_loop_prefetching_profitable): Do not insert prefetches
9674 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9675 times the prefetch ahead distance.
9676
9677 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9678
9679 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9680 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9681 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9682 the unroll_factor.
9683
9684 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9685
9686 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9687 a diagnostic info when the insn-to-mem ratio is too small.
9688
9689 2010-05-07 Richard Guenther <rguenther@suse.de>
9690
9691 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9692 the linker plugin.
9693 (store_arg): Queue temp_filename for deletion instead of
9694 the whole argument.
9695
9696 2010-05-07 Richard Guenther <rguenther@suse.de>
9697
9698 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9699 (run_gcc): Handle LTRANS phase invocation.
9700 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9701
9702 2010-05-07 Jakub Jelinek <jakub@redhat.com>
9703
9704 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
9705 this is also meaningful on PARM_DECLs and RESULT_DECLs.
9706
9707 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9708
9709 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
9710
9711 2010-05-07 Richard Guenther <rguenther@suse.de>
9712
9713 PR tree-optimization/44020
9714 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
9715 code when PRE is not yet initialized.
9716
9717 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9718
9719 * config/mips/dbxmdebug.h: Remove.
9720 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
9721
9722 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
9723
9724 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
9725 with null pointer and also warn about ordered comparison of zero with
9726 pointer if -Wextra.
9727
9728 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9729
9730 * graphite-blocking.c
9731 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
9732 * graphite-clast-to-gimple.c
9733 (clast_to_gcc_expression): Same.
9734 (precision_for_value): Same.
9735 (precision_for_interval): Same.
9736 (gcc_type_for_interval): Same.
9737 (graphite_create_new_guard): Same.
9738 (compute_bounds_for_level): Same.
9739 (graphite_create_new_loop_guard): Same.
9740 * graphite-interchange.c
9741 (build_linearized_memory_access): Same.
9742 (pdr_stride_in_loop): Same.
9743 (memory_strides_in_loop_1): Same.
9744 (memory_strides_in_loop): Same.
9745 (extend_scattering): Same.
9746 (psct_scattering_dim_for_loop_depth): Same.
9747 (pbb_number_of_iterations): Same.
9748 * graphite-poly.h
9749 (debug_iteration_domains): Same.
9750 * graphite-ppl.c
9751 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9752 (ppl_set_inhomogeneous_gmp): Same.
9753 (ppl_strip_loop): Same.
9754 (ppl_lexico_compare_linear_expressions): Same.
9755 (ppl_read_polyhedron_matrix): Same.
9756 (ppl_max_for_le_pointset): Same.
9757 * graphite-ppl.h
9758 (ppl_read_polyhedron_matrix): Same.
9759 (tree_int_to_gmp): Same.
9760 (gmp_cst_to_tree): Same.
9761 (ppl_set_inhomogeneous): Same.
9762 (ppl_set_inhomogeneous_tree): Same.
9763 (ppl_set_coef): Same.
9764 (ppl_set_coef_tree): Same.
9765 * graphite-sese-to-poly.c
9766 (build_pbb_scattering_polyhedrons): Same.
9767 (build_scop_scattering): Same.
9768 (scan_tree_for_params_right_scev): Same.
9769 (scan_tree_for_params): Same.
9770 (find_params_in_bb): Same.
9771 (find_scop_parameters): Same.
9772 (add_upper_bounds_from_estimated_nit): Same.
9773 (build_loop_iteration_domains): Same.
9774 (add_condition_to_domain): Same.
9775 (pdr_add_memory_accesses): Same.
9776
9777 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9778
9779 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
9780 CLooG's value_* macros to their respective mpz_* counterparts.
9781 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
9782 (graphite_create_new_loop_guard): Same.
9783 * graphite-interchange.c (build_linearized_memory_access): Same.
9784 (pdr_stride_in_loop): Same.
9785 (memory_strides_in_loop_1): Same.
9786 (1st_interchange_profitable_p): Same.
9787 * graphite-poly.c (extend_scattering): Same.
9788 (psct_scattering_dim_for_loop_depth): Same.
9789 (pbb_number_of_iterations): Same.
9790 (pbb_number_of_iterations_at_time): Same.
9791 * graphite-poly.h (new_1st_loop): Same.
9792 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
9793 (oppose_constraint): Same.
9794 (insert_constraint_into_matrix): Same.
9795 (ppl_set_inhomogeneous_gmp): Same.
9796 (ppl_set_coef_gmp): Same.
9797 (ppl_strip_loop): Same.
9798 (ppl_lexico_compare_linear_expressions): Same.
9799 (ppl_max_for_le_pointset): Same.
9800 (ppl_min_for_le_pointset): Same.
9801 (ppl_build_realtion): Same.
9802 * graphite-ppl.h (gmp_cst_to_tree): Same.
9803 (ppl_set_inhomogeneous): Same.
9804 (ppl_set_inhomogeneous_tree): Same.
9805 (ppl_set_coef): Same.
9806 (ppl_set_coef_tree): Same.
9807 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9808 (build_scop_scattering): Same.
9809 (add_value_to_dim): Same.
9810 (scan_tree_for_params_right_scev): Same.
9811 (scan_tree_for_params_int): Same.
9812 (scan_tree_for_params): Same.
9813 (find_params_in_bb): Same.
9814 (find_scop_parameters): Same.
9815 (add_upper_bounds_from_estimated_nit): Same.
9816 (build_loop_iteration_domains): Same.
9817 (create_linear_expr_from_tree): Same.
9818 (add_condition_to_domain): Same.
9819 (pdr_add_memory_accesses): Same.
9820
9821 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
9822 Jason Merrill <jason@redhat.com>
9823
9824 * c-common.c (c_common_reswords): Add nullptr.
9825 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
9826 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
9827 (gen_type_die_with_usage): Likewise.
9828 * dbxout.c (dbxout_type): Likewise.
9829 * sdbout.c (plain_type_1): Likewise.
9830
9831 2010-05-06 Jason Merrill <jason@redhat.com>
9832
9833 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
9834 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
9835 ret appropriately.
9836 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
9837
9838 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
9839 stripping WITH_SIZE_EXPR.
9840 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
9841 change.
9842
9843 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9844
9845 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
9846 list of obsolete configurations.
9847 Disabled check for obsolete configurations.
9848 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
9849 Removed support for previous versions.
9850 * config/mips/iris.h: Removed.
9851 * config/mips/iris5.h: Removed.
9852 * config/mips/iris6.h: Merged old iris.h contents.
9853 (TARGET_IRIX): Removed.
9854 (DRIVER_SELF_SPECS): Removed mabi=32.
9855 (IDENT_ASM_OP): Removed undef.
9856 (STARTFILE_SPEC): Removed mabi=32.
9857 (ENDFILE_SPEC): Likewise.
9858 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
9859 (MACHINE_TYPE): Update for IRIX 6.5.
9860 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
9861 TARGET_IRIX by TARGET_IRIX6.
9862 (mips_file_start): Likewise.
9863 (mips_output_external): Remove IRIX 5/6 O32 support.
9864 (mips_output_function_prologue): Likewise.
9865 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
9866 TARGET_IRIX6.
9867 (TARGET_CPU_CPP_BUILTINS): Likewise.
9868 (TARGET_IRIX): Removed.
9869 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
9870 (MULTILIB_DIRNAMES): Removed 32.
9871 (MULTILIB_OSDIRNAMES): Removed ../lib.
9872 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
9873 (Specific, mips-sgi-irix5): Document removal.
9874 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
9875 Remove references to older IRIX 6 releases and the O32 ABI.
9876
9877 2010-05-06 Jakub Jelinek <jakub@redhat.com>
9878
9879 PR bootstrap/43994
9880 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
9881 instead of DF_REF_REAL_REG.
9882
9883 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
9884
9885 PR target/43888
9886 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
9887 handling to still return true for x64 targets.
9888
9889 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
9890
9891 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
9892
9893 2010-05-06 Jan Hubicka <jh@suse.cz>
9894
9895 PR tree-optimization/43791
9896 * ipa-inline.c (update_caller_keys): Remove bogus
9897 disregard_inline_limits check.
9898
9899 2010-05-06 Michael Matz <matz@suse.de>
9900
9901 PR tree-optimization/43984
9902 * tree-ssa-pre.c (inserted_phi_names): Remove.
9903 (inserted_exprs): Change to bitmap.
9904 (create_expression_by_pieces): Set bits, don't append to vector.
9905 (insert_into_preds_of_block): Don't handle inserted_phi_names.
9906 (eliminate): Don't look at inserted_phi_names, remove deleted
9907 insns from inserted_exprs.
9908 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
9909 (init_pre, fini_pre): Allocate and free bitmaps.
9910 (execute_pre): Insert insns on edges before elimination.
9911
9912 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
9913
9914 * tree.c (initializer_zerop): Handle STRING_CST.
9915
9916 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
9917
9918 PR 40989
9919 * doc/invoke.texi (Wimplicit): Document as C only.
9920 * opts.c (common_handle_option): Add argument kind.
9921 (handle_option): Rename as read_cmdline_option. Factor out code to...
9922 (handle_option): ... here. New.
9923 (handle_options): Rename as read_cmdline_options.
9924 (decode_options): Update call.
9925 (set_option): Use option index instead of option pointer. Classify
9926 diagnostics correctly.
9927 (enable_warning_as_error): Call handle_option.
9928 * opts.h (set_option): Update declaration.
9929 (handle_option): Declare.
9930 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9931 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9932 * c-opts.c (set_Wimplicit): Delete.
9933 (c_family_lang_mask): New static constant.
9934 (c_common_handle_option): Add argument kind. Use handle_option
9935 instead of set_Wimplicit.
9936 (c_common_post_options): warn_implicit and warn_implicit_int
9937 are disabled by default.
9938 * c-common.c (warn_implicit): Do not define here.
9939 * c-common.h (warn_implicit): Do not declare here.
9940 (c_common_handle_option): Update declaration.
9941 * lto-opts.c (lto_reissue_options): Update call to set_option.
9942
9943 2010-05-06 Richard Guenther <rguenther@suse.de>
9944
9945 PR tree-optimization/43571
9946 * domwalk.c (walk_dominator_tree): Walk the dominator
9947 sons in more optimal order.
9948
9949 2010-05-06 Richard Guenther <rguenther@suse.de>
9950
9951 PR tree-optimization/43934
9952 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9953 (stmt_cost): Likewise.
9954 (extract_true_false_args_from_phi): New helper.
9955 (determine_max_movement): For PHI nodes verify we can hoist them
9956 and compute their cost.
9957 (determine_invariantness_stmt): Handle PHI nodes.
9958 (move_computations_stmt): Likewise. Hoist PHI nodes in
9959 if-converted form using COND_EXPRs.
9960 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9961 (tree_ssa_lim): Likewise.
9962 * tree-flow.h (tree_ssa_lim): Adjust prototype.
9963 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9964
9965 2010-05-06 Richard Guenther <rguenther@suse.de>
9966
9967 PR tree-optimization/43987
9968 * tree-ssa-structalias.c (could_have_pointers): For possibly
9969 address-taken variables force pointers to be recorded.
9970 (create_variable_info_for_1): Likewise.
9971 (push_fields_onto_fieldstack): Pass in wheter all fields
9972 must have pointers.
9973 (find_func_aliases): Query types instead of vars whether
9974 they contain pointers where appropriate.
9975
9976 2010-05-06 Jan Hubicka <jh@suse.cz>
9977
9978 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9979 (record_reference, mark_address, mark_load, mark_store): Record
9980 references.
9981 (record_references_in_initializer): Update call of record_references.
9982 (rebuild_cgraph_edges): Remove all references before rebuiding.
9983 * cgraph.c (cgraph_create_node): Clear ref list.
9984 (cgraph_remove_node): Remove references.
9985 (dump_cgraph_node): Dump references.
9986 (cgraph_clone_node): Clone references.
9987 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9988 (struct cgraph_node, varpool_node): Add ref_lst.
9989 * ipa-ref.c: New file.
9990 * ipa-ref.h: New file.
9991 * ipa-ref-inline.h: New file.
9992 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9993 (referenced_from_other_partition_p): New function.
9994 (lto_output_varpool_node): Take set arugment; call
9995 referenced_from_other_partition.
9996 (lto_output_ref): New.
9997 (add_references): New.
9998 (output_refs): New.
9999 (output_cgraph): Compute boundary based on references; output refs.
10000 (output_varpool): Accept cgraph_node_set argument.
10001 (input_ref): New.
10002 (input_refs): New.
10003 (input_cgraph): Call input_refs.
10004 * lto-section-in.c (lto_section_name): Add refs.
10005 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10006 (ipa-ref.o): New file.
10007 * varpool.c (varpool_node): Clear ipa ref list.
10008 (varpool_remove_node): Remove references.
10009 (dump_varpool_node): Dump references.
10010 (varpool_assemble_decl): Only compile finalized ones.
10011 (varpool_extra_name_alias): Initialize ref list.
10012 * lto-streamer.c (lto-get_section_name): Add .refs section.
10013 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10014 (referenced_from_other_partition_p): Declared.
10015
10016 2010-05-06 Ira Rosen <irar@il.ibm.com>
10017
10018 PR tree-optimization/43901
10019 * tree-vect-stmts.c (vectorizable_call): Assert that vector
10020 type is not NULL if it's transformation phase, and return
10021 FALSE if it's analysis.
10022 (vectorizable_conversion, vectorizable_operation,
10023 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10024
10025 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10026
10027 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10028 Delete.
10029 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10030 New define.
10031 * config/mips/mips-protos.h
10032 (mips_small_register_classes_for_mode_p): Delete prototype.
10033
10034 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
10035
10036 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10037 * config/arm/arm.c (multiple_operation_profitable_p,
10038 compute_offset_order): New static functions.
10039 (load_multiple_sequence, store_multiple_sequence): Use them.
10040 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
10041 memory offsets, not register numbers.
10042 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10043
10044 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
10045
10046 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10047 (get_pending_sizes, put_pending_size, put_pending_sizes):
10048 Update the uses of pending_sizes.
10049 * c-decl.c (store_parm_decls): Likewise.
10050 * c-tree.h (struct c_arg_info): Likewise.
10051 * tree.h: Update the prototype for get_pending_sizes and
10052 put_pending_sizes.
10053
10054 2010-05-05 Jason Merrill <jason@redhat.com>
10055
10056 PR debug/43370
10057 * c-common.c (handle_aligned_attribute): Respect
10058 ATTR_FLAG_TYPE_IN_PLACE.
10059
10060 PR testsuite/43758
10061 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10062 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10063 (TARGET_INITIALIZER): Use it.
10064 * c-common.c (attribute_takes_identifier_p): Call it.
10065 * c-common.h: Update prototype.
10066 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10067 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10068
10069 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10070
10071 PR debug/43950
10072 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10073 DW_ID_down_case for Fortran compilation units.
10074
10075 2010-05-05 Jan Hubicka <jh@suse.cz>
10076
10077 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10078 handle aliases.
10079
10080 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
10081
10082 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10083 a variable-sized RESULT_DECL.
10084
10085 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
10086
10087 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10088
10089 2010-05-05 Jason Merrill <jason@redhat.com>
10090
10091 PR c++/43787
10092 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10093 returns GS_OK.
10094 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10095
10096 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
10097 Jakub Jelinek <jakub@redhat.com>
10098
10099 PR debug/43478
10100 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10101 (dead_debug_init, dead_debug_finish): New functions.
10102 (dead_debug_add, dead_debug_insert_before): Likewise.
10103 (df_note_bb_compute): Initialize a dead_debug object, add dead
10104 debug uses to it, insert debug bind insns before death insns,
10105 reset debug insns that refer to pending uses at the end.
10106 * rtl.h (make_debug_expr_from_rtl): New prototype.
10107 * varasm.c (make_debug_expr_from_rtl): New function.
10108
10109 2010-05-05 Jan Hubicka <jh@suse.cz>
10110
10111 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10112 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10113 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10114 lto_varpool_encoder_deref, lto_varpool_encoder_size,
10115 lto_varpool_encoder_encode_initializer_p,
10116 lto_set_varpool_encoder_encode_initializer): New functions.
10117 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10118 call output_varpool.
10119 (input_varpool_node): Do not always set analyzed.
10120 (input_cgraph_1): Return vector of cgraph nodes.
10121 (input_varpool_1): Return vector of varpools.
10122 (input_cgraph): Free the vectors.
10123 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10124 output only initializers needed.
10125 (lto_output): Only call output_cgraph.
10126 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10127 * lto-section-out.c (lto_new_out_decl_state): Initialize
10128 state->varpool_node_encoder.
10129 * lto-streamer.h (lto_varpool_encoder_d): New.
10130 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10131 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10132 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10133 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10134 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10135 Declare.
10136 (output_varpool, input_varpool): Remove declarations.
10137
10138 2010-05-05 Jan Hubicka <jh@suse.cz>
10139
10140 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10141 with body can prevail.
10142
10143 2010-05-05 Jan Hubicka <jh@suse.cz>
10144
10145 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10146 size.
10147
10148 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10149
10150 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10151
10152 * gengtype.h (erro_at_line): Constify pos argument.
10153
10154 * gengtype.c: Include hashtab.h.
10155 (enum gc_used): Document GC_MAYBE_POINTED_TO.
10156 (error_at_line): Constify pos argument.
10157 (do_typedef): Initialize p->opt field.
10158 (get_file_gtfilename): Fix comment typo.
10159 (struct walk_type_data): Constify line field.
10160 (get_output_file_for_structure): New function.
10161 (write_local_func_for_structure): Constify orig_s argument.
10162 Use get_output_file_for_structure.
10163 (write_func_for_structure): Use get_output_file_for_structure.
10164 (INDENT): New define.
10165 (dump_pair, dump_type, dump_type_list, dump_typekind)
10166 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10167 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10168 functions.
10169 (seen_types): New variable.
10170 (main): New variable do_dump. Process "-d" command line option.
10171 Call dump_everything if dump requested.
10172
10173 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10174
10175 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10176 in a temporary instead of invoking the macro multiple times.
10177 (track_expr_p): Likewise.
10178
10179 2010-05-04 Neil Vachharajani <nvachhar@google.com>
10180
10181 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10182 per new semantics.
10183 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10184 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
10185 conditions for printing notes.
10186 * common.opt (-Wcoverage-mismatch): Allow negative, default to
10187 true, update documentation.
10188 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10189
10190 2010-05-04 Jakub Jelinek <jakub@redhat.com>
10191
10192 PR c/43981
10193 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10194 on dimen.
10195
10196 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10197
10198 PR target/43799
10199 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10200 (*sse_prologue_save_insn1): Likewise.
10201 (SSE prologue save splitter): Likewise.
10202
10203 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
10204
10205 * tree.c (free_lang_data_in_one_sizepos): New inline function.
10206 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10207 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10208 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10209 all decls. Call it on DECL_FIELD_OFFSET of fields.
10210 (find_decls_types_r): Follow DECL_VALUE_EXPR.
10211 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10212
10213 2010-05-04 Martin Jambor <mjambor@suse.cz>
10214
10215 * tree-sra.c (build_access_from_expr_1): The first parameter type
10216 changed to simple tree.
10217 (build_access_from_expr): Likewise, gsi parameter was eliminated.
10218 (scan_assign_result): Renamed to assignment_mod_result, enum elements
10219 renamed as well.
10220 (build_accesses_from_assign): Removed all parameters except for a
10221 simple gimple statement. Now returns a simple bool.
10222 (scan_function): All non-analysis parts moved to separate functions
10223 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
10224 parameters and updated both callers.
10225 (sra_modify_expr): Removed parameter data.
10226 (sra_modify_function_body): New function.
10227 (perform_intra_sra): Call sra_modify_function_body to modify the
10228 function body.
10229 (replace_removed_params_ssa_names): Parameter data changed into
10230 adjustments vector.
10231 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
10232 changed the parameter dont_convert to convert with the opposite
10233 meaning.
10234 (sra_ipa_modify_assign): Parameter data changed into adjustments
10235 vector, return value changed to bool.
10236 (ipa_sra_modify_function_body): New function.
10237 (sra_ipa_reset_debug_stmts): Updated a comment.
10238 (modify_function): Use ipa_sra_modify_function_body to modify function
10239 body.
10240
10241 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10242
10243 PR middle-end/43671
10244 * alias.c (true_dependence): Handle the same VALUE in x and mem.
10245 (canon_true_dependence): Likewise.
10246 (write_dependence_p): Likewise.
10247
10248 2010-05-04 Jan Hubicka <jh@suse.cz>
10249
10250 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10251 * cgraphbuild.c: Include ipa-utils.h
10252 (record_reference_ctx): New struct.
10253 (record_reference): Simplify to work on initializers; not statements.
10254 (mark_address, mark_load, mark_store): New.
10255 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10256 walk PHI nodes too.
10257 (record_references_in_initializer): Update use of record_reference.
10258 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10259 walk PHI nodes too.
10260
10261 2010-05-04 Jan Hubicka <jh@suse.cz>
10262
10263 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10264 node will be removed anyway.
10265 (lto_varpool_replace_node): Allow also unanalyzed nodes;
10266 relink aliases of node into prevailing node.
10267 * varpool.c (varpool_remove_node): Remove aliases properly;
10268 when removing node, remove all its aliases too; remove DECL_INITIAL
10269 of removed node; ggc_free the varpool node.
10270
10271 2010-05-04 Richard Guenther <rguenther@suse.de>
10272
10273 PR tree-optimization/43879
10274 * tree-ssa-structalias.c (alias_get_name): Use
10275 DECL_ASSEMBLER_NAME if available.
10276 (create_function_info_for): Return the varinfo node.
10277 (ipa_pta_execute): Associate same-body aliases and extra names
10278 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
10279
10280 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10281
10282 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10283
10284 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
10285
10286 PR bootstrap/43964
10287 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10288 only if HONOR_REG_ALLOC_ORDER is not defined.
10289
10290 2010-05-04 Richard Guenther <rguenther@suse.de>
10291
10292 PR tree-optimization/43949
10293 * tree-vrp.c (extract_range_from_binary_expr): Only handle
10294 TRUNC_MOD_EXPR.
10295
10296 2010-04-26 Jason Merrill <jason@redhat.com>
10297
10298 * c.opt (-fstrict-enums): New.
10299 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10300
10301 2010-05-03 David Ung <davidu@mips.com>
10302 James E. Wilson <wilson@codesourcery.com>
10303
10304 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10305 emit the trap instruction before the divide for TUNE_74K.
10306
10307 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
10308
10309 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10310 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10311 based on the above, for new target hook.
10312
10313 * hooks.c (hook_bool_mode_true): New generic hook.
10314 * hooks.h (hook_bool_mode_true): Add prototype.
10315
10316 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10317 target hook.
10318 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10319 target hook, set to hook_bool_mode_false.
10320 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10321 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10322 with targetm.small_register_classes_for_mode_p.
10323 (find_reusable_reload): Likewise.
10324 (combine_reloads): Likewise.
10325 * reload1.c (reload_as_needed): Likewise.
10326 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10327 * ifcvt.c (noce_process_if_block, check_cond_move_block,
10328 dead_or_predicable): Likewise.
10329 * regmove.c (optimize_reg_copy_1): Likewise.
10330 * calls.c (prepare_call_address): Likewise.
10331 (precompute_register_parameters): Likewise.
10332
10333 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10334 hook definition.
10335 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10336 implementation of the hook that considers all register classes
10337 small except for SH64.
10338 (sh_override_options): Use the new hook.
10339 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10340 Add prototype.
10341
10342 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10343 hook definition.
10344 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10345 implementation of the hook that considers all register classes
10346 small for THUMB1.
10347 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10348 Add prototype.
10349
10350 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10351 hook definition.
10352 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10353 implementation of the hook that considers all register classes
10354 small for MIPS16.
10355 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10356 Add prototype.
10357
10358 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10359 hook definition.
10360 * config/m32c/m32c.h: Likewise.
10361 * config/pdp11/pdp11.h: Likewise.
10362 * config/avr/avr.h: Likewise.
10363 * config/xtensa/xtensa.h: Likewise.
10364 * config/m68hc11/m68hc11.h: Likewise.
10365 * config/mn10300/mn10300.h: Likewise.
10366 * config/mcore/mcore.h: Likewise.
10367 * config/h8300/h8300.h: Likewise.
10368 * config/bfin/bfin.h: Likewise.
10369
10370 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10371 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10372
10373 2010-05-03 Anatoly Sokolov <aesok@post.ru>
10374
10375 * double-int.h (tree_to_double_int): Remove macro.
10376 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10377 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10378 (tree_to_double_int): New function.
10379 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10380 Move ...
10381 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10382
10383 2010-05-03 Richard Guenther <rguenther@suse.de>
10384
10385 PR tree-optimization/43971
10386 * tree-ssa-structalias.c (get_constraint_for_1): Fix
10387 constraints in the !flag_delete_null_pointer_checks case.
10388
10389 2010-05-03 Jakub Jelinek <jakub@redhat.com>
10390
10391 PR debug/43972
10392 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10393 result mode matches original rtl mode.
10394
10395 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
10396
10397 PR target/43888
10398 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10399
10400 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10401
10402 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10403 when processing flag options.
10404
10405 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10406
10407 * gcov-iov.c (main): Change format string placeholder
10408 from %#08x to 0x%08x.
10409 * genchecksum.c (dosum): Change format string placeholder
10410 from %#02x to 0x%02x.
10411
10412 2010-05-02 Richard Guenther <rguenther@suse.de>
10413
10414 PR tree-optimization/43879
10415 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10416
10417 2010-05-02 Bruno Haible <bruno@clisp.org>
10418
10419 * doc/extend.texi (Function Attributes): Fix a typo.
10420
10421 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10422
10423 Revert:
10424 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10425 placeholder from 0x%x to %#x.
10426 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10427 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10428 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10429 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10430 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10431 * config/i386/i386.c (ix86_target_string): Ditto.
10432 * config/i386/i386.c (output_pic_addr_const): Ditto.
10433 (print_operand): Ditto.
10434
10435 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10436
10437 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10438 placeholder from 0x%x to %#x.
10439 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10440 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10441 (ASM_OUTPUT_DEBUG_DATA): Ditto.
10442 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10443 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10444 * optc-gen.awk: Ditto.
10445 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10446 (HOST_WIDE_INT_PRINT_HEX): Ditto.
10447 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10448 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10449
10450 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10451
10452 * target.h (struct calls): Add function_value_regno_p field.
10453 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10454 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10455 * targhooks.c (default_function_value_regno_p): New function.
10456 * targhooks.h (default_function_value_regno_p): Declare function.
10457 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10458 * builtins.c. (apply_result_size): (Ditto.).
10459 * combine.c. (likely_spilled_retval_p): (Ditto.).
10460 * mode-switching.c. Include 'target.h'.
10461 (create_pre_exit): Use function_value_regno_p hook.
10462 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10463 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10464 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10465
10466 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10467 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10468 (ix86_function_value_regno_p): Declare as static, change argument
10469 type to const unsigned int.
10470 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10471
10472 2010-05-01 Richard Guenther <rguenther@suse.de>
10473
10474 PR tree-optimization/43949
10475 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10476 types.
10477 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10478
10479 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10480
10481 * rtl.h (CONST_DOUBLE_P): Define.
10482 (rtx_to_double_int): Declare.
10483 * emit-rtl.c (rtx_to_double_int): New function.
10484 * dwarf2out.c (insert_double): New function.
10485 (loc_descriptor, add_const_value_attribute): Clean up, use
10486 rtx_to_double_int and insert_double functions.
10487
10488 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
10489
10490 * doc/extend.texi (Inline): Add missing return keyword to examples.
10491 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10492 "command-line".
10493
10494 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
10495
10496 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10497 the variable part of the offset as well. Use highest_pow2_factor for
10498 all alignment checks.
10499
10500 2010-04-30 Richard Guenther <rguenther@suse.de>
10501
10502 PR tree-optimization/43879
10503 * tree-ssa-structalias.c (type_could_have_pointers): Functions
10504 can have pointers.
10505
10506 2010-04-30 Jan Hubicka <jh@suse.cz>
10507
10508 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10509 varpool.
10510 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10511
10512 2010-04-30 Jan Hubicka <jh@suse.cz>
10513
10514 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10515 New.
10516 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10517 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10518 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10519 cgraph_node_set_needs_ltrans_p): Remove.
10520
10521 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10522
10523 * sdbout.c: Include vec.h, do not include varray.h.
10524 (deferred_global_decls, sdbout_global_decl,
10525 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10526 * toplev.c: Do not include varray.h.
10527 (dump_memory_report): Do not dump VARRAY statistics.
10528 * gengtype.c (open_base_file): Ignore varray.h.
10529 * Makefile.in: Update for abovementioned changes.
10530 Remove all traces of varray.c and varray.h.
10531 * varray.c: Remove file.
10532 * varray.h: Remove file.
10533
10534 2010-04-30 Jan Hubicka <jh@suse.cz>
10535
10536 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10537 references.
10538
10539 2010-04-30 Jan Hubicka <jh@suse.cz>
10540
10541 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10542 needed.
10543
10544 2010-04-30 Richard Guenther <rguenther@suse.de>
10545
10546 * tree-ssa-structalias.c (get_constraint_for_1): Generate
10547 constraints for CONSTRUCTOR.
10548
10549 2010-04-30 Richard Guenther <rguenther@suse.de>
10550
10551 PR lto/43946
10552 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10553 first after all lowering passes.
10554
10555 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10556
10557 * toplev.c: Include varray.h for statistics dumping.
10558 * tree.h: Do not declare varray_head_tag.
10559 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10560 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10561 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10562 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10563 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10564 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10565 c-common.c, c-common.h, reg-stack.c, basic-block.h,
10566 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10567 include varray.h.
10568 * Makefile.in: Update for abovementioned changes.
10569
10570 2010-04-30 Jakub Jelinek <jakub@redhat.com>
10571
10572 PR debug/43942
10573 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10574
10575 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10576
10577 * config/picochip/picochip.c (picochip_legitimize_address): Define.
10578 Use this function to do machine-specific conversion.
10579 (picochip_legitimize_reload_address): Likewise.
10580 (picochip_legitimate_address_p): Check valid base register only if
10581 strict.
10582 (picochip_check_conditional_copy): Check for modw only if opnd is
10583 register.
10584 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10585 to call the function in c.
10586 * config/picochip/picochip-protos.h
10587 (picochip_legitimize_reload_address): Define.
10588 * config/picochip/picochip.md (supported_compare1): Define.
10589
10590 2010-04-30 Jan Hubicka <jh@suse.cz>
10591
10592 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10593 (cgraph_global_info): Remove inlined.
10594 (LTO_cgraph_tag_names): Remove.
10595 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10596 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10597 simplify cgraph tags and document.
10598 (lto_output_node): Use only LTO_cgraph_unavail_node and
10599 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10600 for_functions_valid, global info, process and output flags.
10601 (input_overwrite_node): Initialize estimated stack size and
10602 estimated growth. Do not read flags we no longer store.
10603 (input_node): Likewise do not read info no longer stored.
10604 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10605 flag.
10606
10607 2010-04-30 Richard Guenther <rguenther@suse.de>
10608
10609 PR tree-optimization/43879
10610 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10611 handle non-zero initializers.
10612
10613 2010-04-30 Richard Guenther <rguenther@suse.de>
10614
10615 * builtins.c (fold_builtin_1): Delete free (0).
10616
10617 2010-04-29 Jan Hubicka <jh@suse.cz>
10618
10619 * gengtype.c (open_base_files): Add lto-streamer.h
10620 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10621 (pass_ipa_cp): GGC collect.
10622 * toplev. (compile_file): Do not output symbols.
10623 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10624 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10625 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10626 * lto-section-in.c: Include ggc.h
10627 (lto_new_in_decl_state): Alloc in GGC.
10628 (lto_delete_in_decl_state): Likewise.
10629 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10630 Collect.
10631
10632 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
10633
10634 PR target/42895
10635 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10636 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
10637 (HONOR_REG_ALLOC_ORDER): Describe new macro.
10638 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10639 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10640 account only if HONOR_REG_ALLOC_ORDER is not defined.
10641 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10642 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10643
10644 2010-04-29 Jon Grant <04@jguk.org>
10645
10646 * collect2.c (vflag): Change type from int to bool.
10647 (debug): Likewise.
10648 (helpflag): New global bool.
10649 (main): Set vflag and debug with boolean, not integer truth values.
10650 Accept new "--help" option and output usage text if found.
10651 * collect2.h (vflag): Update prototype.
10652 (debug): Likewise.
10653
10654 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
10655
10656 PR bootstrap/43936
10657 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10658
10659 2010-04-29 Richard Guenther <rguenther@suse.de>
10660
10661 PR bootstrap/43935
10662 * plugin.h (invoke_plugin_callbacks): Annotate arguments
10663 with ATTRIBUTE_UNUSED.
10664
10665 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
10666
10667 PR target/43921
10668 * config/i386/i386.c (get_some_local_dynamic_name): Replace
10669 INSN_P with NONDEBUG_INSN_P.
10670 (distance_non_agu_define): Likewise.
10671 (distance_agu_use): Likewise.
10672
10673 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
10674
10675 From Dominique d'Humieres <dominiq@lps.ens.fr>
10676 PR bootstrap/43858
10677 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10678 test_set.
10679
10680 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
10681
10682 * plugin.h (invoke_plugin_callbacks): New inline function.
10683 * plugin.c (flag_plugin_added): New global flag.
10684 (add_new_plugin): Initialize above flag.
10685 (invoke_plugin_callbacks): Rename to ...
10686 (invoke_plugin_callbacks_full): ... this.
10687
10688 2010-04-28 Jan Hubicka <jh@suse.cz>
10689
10690 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10691 (lto_varpool_replace_node): New.
10692 (lto_symtab_resolve_symbols): Resolve varpool nodes.
10693 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10694 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10695 * cgraph.h (varpool_node_ptr): New type.
10696 (varpool_node_ptr): New vector.
10697 (varpool_node_set_def): New structure.
10698 (varpool_node_set): New type.
10699 (varpool_node_set): New vector.
10700 (varpool_node_set_element_def): New structure.
10701 (varpool_node_set_element, const_varpool_node_set_element): New types.
10702 (varpool_node_set_iterator): New type.
10703 (varpool_node): Add prev pointers, add used_from_other_partition,
10704 in_other_partition.
10705 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
10706 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
10707 varpool_get_node, varpool_remove_node): Declare.
10708 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
10709 varpool_node_set_size): New inlines.
10710 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
10711 * tree-pass.h (varpool_node_set_def): Forward declare.
10712 (ipa_opt_pass_d): Summary writting takes vnode sets too.
10713 (ipa_write_optimization_summaries): Update prototype.
10714 * ipa-cp.c (ipcp_write_summary): Update.
10715 * ipa-reference.c (ipa_reference_write_summary): Update.
10716 * lto-cgraph.c (lto_output_varpool_node): New static function.
10717 (output_varpool): New function.
10718 (input_varpool_node): New static function.
10719 (input_varpool_1): New function.
10720 (input_cgraph): Input varpool.
10721 * ipa-pure-const.c (pure_const_write_summary): Update.
10722 * lto-streamer-out.c (lto_output): Update, output varpool too.
10723 (write_global_stream): Kill WPA hack.
10724 (produce_asm_for_decls): Update.
10725 (output_alias_pair_p): Handle variables.
10726 (output_unreferenced_globals): Output only needed partition of varpool.
10727 * ipa-inline.c (inline_write_summary): Update.
10728 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
10729 cgraph.
10730 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
10731 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
10732 varpool_node_set_new, varpool_node_set_add,
10733 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
10734 debug_varpool_node_set): New functions.
10735 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
10736 (execute_one_pass): Process new decls too.
10737 (ipa_write_summaries_2): Pass around vsets.
10738 (ipa_write_summaries_1): Likewise.
10739 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
10740 to add.
10741 (ipa_write_optimization_summaries_1): Pass around vsets.
10742 (ipa_write_optimization_summaries): Likewise.
10743 * varpool.c (varpool_get_node): New.
10744 (varpool_node): Update doubly linked lists.
10745 (varpool_remove_node): New.
10746 (dump_varpool_node): More dumping.
10747 (varpool_enqueue_needed_node): Update doubly linked lists.
10748 (decide_is_variable_needed): Kill ltrans hack.
10749 (varpool_finalize_decl): Kill lto hack.
10750 (varpool_assemble_decl): Skip decls in other partitions.
10751 (varpool_assemble_pending_decls): Update doubly linkes lists.
10752 (varpool_empty_needed_queue): Likewise.
10753 (varpool_extra_name_alias): Likewise.
10754 * lto-streamer.c (lto_get_section_name): Add vars section.
10755 * lto-streamer.h (lto_section_type): Update.
10756 (output_varpool, input_varpool): Declare.
10757
10758 2010-04-28 Mike Stump <mikestump@comcast.net>
10759
10760 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
10761
10762 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10763
10764 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
10765 record or union type with RECORD_OR_UNION_TYPE_P predicate.
10766 (lto_input_ts_type_tree_pointers): Likewise.
10767 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
10768 (lto_output_ts_type_tree_pointers): Likewise.
10769
10770 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10771
10772 Uniquization of constants at the Tree level
10773 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
10774 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
10775 bit to the end.
10776 (tree_output_constant_def): Declare.
10777 * gimplify.c (gimplify_init_constructor): When using block copy, first
10778 uniquize the constant constructor on the RHS.
10779 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
10780 DECL_IN_CONSTANT_POOL flag.
10781 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
10782 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
10783 constant pool.
10784 (assemble_variable): Deal with symbols belonging to the tree constant
10785 pool.
10786 (get_constant_section): Add ALIGN parameter and simplify.
10787 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
10788 (assemble_constant_contents): Use the expression of the VAR_DECL.
10789 (output_constant_def_contents): Use the alignment of the VAR_DECL.
10790 (tree_output_constant_def): New global function.
10791 (mark_constant): Use the expression of the VAR_DECL.
10792 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
10793 its expression.
10794 (output_object_block): Likewise and assemble the expression.
10795
10796 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10797
10798 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
10799 hash_tree, eq_tree): New tree hash table.
10800 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
10801 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
10802 lto_orig_address_remove): Reimplement.
10803
10804 2010-04-28 Xinliang David Li <davidxl@google.com>
10805
10806 PR c/42643
10807 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
10808 (compute_uninit_opnds_pos): New function.
10809 (is_non_loop_exit_postdominating): New function.
10810 (compute_control_dep_chain): New function.
10811 (find_pdom): New function.
10812 (convert_control_dep_chain_into_preds): New function.
10813 (find_predicates): New function.
10814 (find_control_equiv_block): New function.
10815 (collect_phi_def_edges): New function.
10816 (find_def_preds): New function.
10817 (find_dom): New function.
10818 (dump_predicates): New function.
10819 (get_cmp_code): New function.
10820 (is_value_included_in): New function.
10821 (find_matching_predicate_in_rest_chains): New function.
10822 (use_pred_not_overlap_with_undef_path_pred): New function.
10823 (is_use_properly_guarded): New function.
10824 (normalize_cond_1): New function.
10825 (is_and_or_or): New function.
10826 (normalize_cond): New function.
10827 (is_gcond_subset_of): New function.
10828 (is_subset_of_any): New function.
10829 (is_or_set_subset_of): New function.
10830 (is_and_set_subset_of): New function.
10831 (is_norm_cond_subset_of): New function.
10832 (is_pred_expr_subset_of): New function.
10833 (is_pred_chain_subset_of): New function.
10834 (is_included_in): New function.
10835 (is_superset_of): New function.
10836 (find_uninit_use): New function.
10837 (warn_uninitialized_phi): New function.
10838 (compute_possibly_undefined_names): New function.
10839 (ssa_undefined_value_p): New function.
10840 (execute_late_warn_uninitialized): New function.
10841 * tree-ssa.c (ssa_undefined_value_p): Removed.
10842 (warn_uninit): Changed to extern.
10843 (warn_uninitialized_phi): Removed.
10844 (warn_uninitialized_vars): Changed to extern.
10845 (execute_late_warn_uninitialized): Removed
10846 * tree-flow.h: Add new prototypes.
10847 * timevar.def: Add new time variable.
10848 * Makefile.in: Add new build file.
10849
10850 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
10851
10852 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10853 type if available.
10854
10855 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10856
10857 PR target/22224
10858 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
10859
10860 2010-04-28 Martin Jambor <mjambor@suse.cz>
10861
10862 * cgraph.h (struct cgraph_node): New field indirect_calls.
10863 (struct cgraph_indirect_call_info): New type.
10864 (struct cgraph_edge): Removed field indirect_call. New fields
10865 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
10866 (cgraph_create_indirect_edge): Declare.
10867 (cgraph_make_edge_direct): Likewise.
10868 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
10869 * ipa-prop.h (struct ipa_param_call_note): Removed.
10870 (struct ipa_node_params): Removed field param_calls.
10871 (ipa_create_all_structures_for_iinln): Declare.
10872 * cgraph.c: Described indirect edges and uids in initial comment.
10873 (cgraph_add_edge_to_call_site_hash): New function.
10874 (cgraph_edge): Search also among the indirect edges, use
10875 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
10876 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
10877 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
10878 site hash.
10879 (initialize_inline_failed): Assign a reason to indirect edges.
10880 (cgraph_create_edge_1): New function.
10881 (cgraph_create_edge): Moved some functionality to
10882 cgraph_create_edge_1.
10883 (cgraph_create_indirect_edge): New function.
10884 (cgraph_edge_remove_callee): Add an assert checking for
10885 non-indirectness.
10886 (cgraph_edge_remove_caller): Special-case indirect edges.
10887 (cgraph_remove_edge): Likewise.
10888 (cgraph_set_edge_callee): New function.
10889 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
10890 (cgraph_make_edge_direct): New function.
10891 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
10892 the declaration of the call statement matches.
10893 (cgraph_node_remove_callees): Special-case indirect edges.
10894 (cgraph_clone_edge): Likewise.
10895 (cgraph_clone_node): Clone also the indirect edges.
10896 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
10897 indirect_call, dump count of indirect_calls edges.
10898 * ipa-prop.c (iinlining_processed_edges): New variable.
10899 (ipa_note_param_call): Create indirect edges instead of
10900 creating notes. New parameter node.
10901 (ipa_analyze_call_uses): New parameter node, pass it on to
10902 ipa_note_param_call.
10903 (ipa_analyze_stmt_uses): Likewise.
10904 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
10905 (print_edge_addition_message): Work on edges rather than on notes.
10906 (update_call_notes_after_inlining): Likewise, renamed to
10907 update_indirect_edges_after_inlining.
10908 (ipa_create_all_structures_for_iinln): New function.
10909 (ipa_free_node_params_substructures): Do not free notes.
10910 (ipa_edge_duplication_hook): Propagate bits within
10911 iinlining_processed_edges bitmap.
10912 (ipa_node_duplication_hook): Do not duplicate notes.
10913 (free_all_ipa_structures_after_ipa_cp): Renamed to
10914 ipa_free_all_structures_after_ipa_cp.
10915 (free_all_ipa_structures_after_iinln): Renamed to
10916 ipa_free_all_structures_after_iinln.
10917 (ipa_write_param_call_note): Removed.
10918 (ipa_read_param_call_note): Removed.
10919 (ipa_write_indirect_edge_info): New function.
10920 (ipa_read_indirect_edge_info): Likewise.
10921 (ipa_write_node_info): Do not stream notes, do stream information
10922 in indirect edges.
10923 (ipa_read_node_info): Likewise.
10924 (lto_ipa_fixup_call_notes): Removed.
10925 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10926 * ipa-inline.c (pass_ipa_inline): Likewise.
10927 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10928 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10929 * tree-inline.c (copy_bb): Removed an unnecessary double check for
10930 is_gimple_call.
10931 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10932 edges.
10933 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10934 (output_cgraph): Stream also indirect edges.
10935 (lto_output_edge): Added capability to stream indirect edges.
10936 (input_edge): Likewise.
10937 (input_cgraph_1): Likewise.
10938 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10939 of indirect edges.
10940
10941 2010-04-28 Richard Guenther <rguenther@suse.de>
10942
10943 PR tree-optimization/43879
10944 PR tree-optimization/43909
10945 * tree-ssa-structalias.c (struct variable_info): Add
10946 only_restrict_pointers flag.
10947 (new_var_info): Initialize it. Increment stats.total_vars here.
10948 (create_function_info_for): Do not increment stats.total_vars here.
10949 (get_function_part_constraint): Fix build with C++.
10950 (insert_into_field_list): Remove.
10951 (push_fields_onto_fieldstack): Properly merge fields.
10952 (create_variable_info_for): Split and simplify.
10953 (create_variable_info_for_1): New piece.
10954 (intra_create_variable_infos): Properly make restrict constraints
10955 from parameters.
10956
10957 2010-04-28 Richard Guenther <rguenther@suse.de>
10958
10959 PR c++/43880
10960 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10961
10962 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
10963 Jan Hubicka <hubicka@ucw.cz>
10964
10965 * doc/invoke.texi (-Wsuggest-attribute=const,
10966 -Wsuggest-attribute=pure): Document.
10967 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10968 (function_always_visible_to_compiler_p,
10969 suggest_attribute, warn_function_pure, warn_function_const):
10970 New functions.
10971 (check_call): Improve debug info.
10972 (analyze_function): Do not check availability.
10973 (add_new_function): Check availability.
10974 (propagate): Output warnings.
10975 (skip_function_for_local_pure_const): New function.
10976 (local_pure_const): Use it; output warnings.
10977 * common.opt (Wsuggest-attribute=const,
10978 Wsuggest-attribute=pure): New.
10979
10980 2010-04-27 Jakub Jelinek <jakub@redhat.com>
10981
10982 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10983 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10984 or DW_CFA_def_cfa_offset{,_sf}.
10985
10986 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
10987
10988 * tree.h: Fix truncated long macros.
10989
10990 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
10991
10992 * collect2.c (TARGET_64BIT): Redefine to target's default.
10993 * tlink.c: Likewise.
10994 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10995 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10996 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10997 for underscoring __USER_LABEL_PREFIX__.
10998 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10999 (SUB_LINK_ENTRY32): New.
11000 (SUB_LINK_ENTRY64): New.
11001 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11002 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11003 (SUB_LINK_ENTRY64): New.
11004 (SUB_LINK_ENTRY): New.
11005 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11006 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11007 x64 target is choosen.
11008 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11009 * configure: Regenerated.
11010 * configure.ac (leading-mingw64-underscores): Option added.
11011
11012 2010-04-27 Jan Hubicka <jh@suse.cz>
11013
11014 * doc/invoke.texi (-fipa-profile): Document.
11015 * opts.c (decode_options): Enable ipa-profile at -O1.
11016 * timevar.def (TV_IPA_PROFILE): Define.
11017 * common.opt (fipa-profile): Add.
11018 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11019 flag for clones.
11020 (cgraph_propagate_frequency): Handle only local ones.
11021 * tree-pass.h (pass_ipa_profile): Declare.
11022 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11023 (pass_ipa_profile): Use TV_IPA_PROFILE.
11024 * ipa.c (ipa_profile): New function.
11025 (gate_ipa_profile): Likewise.
11026 (pass_ipa_profile): New global variable.
11027 * passes.c (pass_ipa_profile): New.
11028
11029 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
11030
11031 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11032
11033 2010-04-27 Martin Jambor <mjambor@suse.cz>
11034
11035 PR middle-end/43812
11036 * ipa.c (dissolve_same_comdat_group_list): New function.
11037 (function_and_variable_visibility): Call
11038 dissolve_same_comdat_group_list when comdat group contains external or
11039 newly local nodes.
11040 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11041 lists are circular and that they contain only DECL_ONE_ONLY nodes.
11042
11043 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11044
11045 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11046 (const_hash_1) <VECTOR_CST>: New case.
11047 (compare_constant) <VECTOR_CST>: Likewise.
11048 <ADDR_EXPR>: Deal with LABEL_REFs.
11049 (copy_constant) <VECTOR_CST>: New case.
11050
11051 2010-04-27 Jan Hubicka <jh@suse.cz>
11052
11053 * cgraph.c (cgraph_propagate_frequency): New function.
11054 * cgraph.h (cgraph_propagate_frequency): Declare.
11055 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11056 cgraph_propagate_frequency.
11057
11058 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11059
11060 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11061
11062 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
11063
11064 PR target/40657
11065 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11066 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11067 here to determine which regs to push and how much stack to reserve.
11068
11069 2010-04-27 Jie Zhang <jie@codesourcery.com>
11070
11071 * doc/gimple.texi (gimple_statement_with_ops): Remove
11072 addresses_taken field.
11073 (gimple_statement_with_memory_ops): Likewise.
11074
11075 2010-04-27 Jan Hubicka <jh@suse.cz>
11076
11077 * tree-inline.c (eni_inlining_weights): Remove.
11078 (estimate_num_insns): Special case more builtins.
11079
11080 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
11081
11082 PR c/32207
11083 * c-typeck.c (build_binary_op): Move forward check for comparison
11084 pointer with null pointer constant and adjust the diagnostic message.
11085
11086 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
11087
11088 PR lto/42776
11089 * configure.ac (gcc_cv_as_section_has_align): Set if installed
11090 binutils supports extended .section directive needed by LTO, or
11091 warn if older binutils found.
11092 (LTO_BINARY_READER): New AC_SUBST'd variable.
11093 (LTO_USE_LIBELF): Likewise.
11094 * gcc/config.gcc (lto_binary_reader): New target-specific configure
11095 variable.
11096 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11097 (LTO_USE_LIBELF): Likewise.
11098 * configure: Regenerate.
11099
11100 * collect2.c (is_elf): Rename from this ...
11101 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11102 object files in addition to ELF-formatted ones.
11103 (scan_prog_file): Caller updated. Also allow for LTO info marker
11104 symbol to be prefixed or not by an extra underscore.
11105
11106 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11107 * config/i386/winnt.c: Also #include lto-streamer.h
11108 (i386_pe_asm_named_section): Specify 1-byte section alignment for
11109 LTO named sections.
11110 (i386_pe_asm_output_aligned_decl_common): Add comment.
11111 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11112
11113 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
11114
11115 PR target/43889
11116 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11117 Add missing earlyclobber for second alternative.
11118
11119 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
11120
11121 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11122 bits for artificial defs at the top of the block.
11123 * fwprop.c (single_def_use_enter_block): Don't call it.
11124
11125 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
11126
11127 PR 43715
11128 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11129 instead of "$gcc_cv_objdump -T".
11130 Use "-undefined dynamic_lookup" on darwin.
11131 * gcc/configure: Regenerate.
11132
11133 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11134
11135 PR c/43893
11136 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11137
11138 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11139
11140 * c-parser.c (struct c_token): Move location field up.
11141 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11142 (struct c_declspecs): Convert typespec_word, storage_class, and
11143 default_int_p into bitfields.
11144 (struct c_declarator): Move loc field up.
11145
11146 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11147
11148 * cfgloop.h (struct loop): Move can_be_parallel field up.
11149 * ipa-prop.h (struct ip_node_params): Move bitfields up.
11150 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11151 down.
11152 (struct iv_cand): Convert pos field into a bitfield.
11153 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11154 field up.
11155 (struct _stmt_vec_info): Shuffle fields for better packing.
11156
11157 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11158
11159 * varasm.c (IN_NAMED_SECTION): Remove guard.
11160 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11161 (IN_NAMED_SECTION_P): ...this.
11162 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11163 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11164
11165 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11166
11167 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11168 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
11169 of shadowing it. Fix comments.
11170
11171 2010-04-26 Jan Hubicka <jh@suse.cz>
11172
11173 * cgraph.c (cgraph_create_node): Set node frequency to normal.
11174 (cgraph_clone_node): Copy function frequency.
11175 * cgraph.h (node_frequency): New enum
11176 (struct cgraph_node): Add.
11177 * final.c (rest_of_clean_state): Update.
11178 * lto-cgraph.c (lto_output_node): Output node frequency.
11179 (input_overwrite_node): Input node frequency.
11180 * tre-ssa-loop-ivopts (computation_cost): Update.
11181 * lto-streamer-out.c (output_function): Do not output function
11182 frequency.
11183 * predict.c (maybe_hot_frequency_p): Update and handle functions
11184 executed once.
11185 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11186 attribute lookup.
11187 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11188 (compute_function_frequency): Set noreturn functions to be executed
11189 once.
11190 (choose_function_section): Update.
11191 * lto-streamer-in.c (input_function): Do not input function frequency.
11192 * function.c (allocate_struct_function): Do not initialize function
11193 frequency.
11194 * function.h (function_frequency): Remove.
11195 (struct function): Remove function frequency.
11196 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11197 (try_update): Update.
11198 * tree-inline.c (initialize_cfun): Do not update function frequency.
11199 * passes.c (pass_init_dump_file): Update.
11200 * i386.c (ix86_compute_frame_layout): Update.
11201 (ix86_pad_returns): Update.
11202
11203 2010-04-26 Jie Zhang <jie@codesourcery.com>
11204
11205 PR tree-optimization/43833
11206 * tree-vrp.c (range_int_cst_p): New.
11207 (range_int_cst_singleton_p): New.
11208 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11209 when both operands are constants. Use range_int_cst_p in
11210 BIT_IOR_EXPR case.
11211
11212 2010-04-26 Jan Hubicka <jh@suse.cz>
11213
11214 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11215
11216 2010-04-26 Richard Guenther <rguenther@suse.de>
11217
11218 PR lto/43080
11219 * gimple.c (gimple_decl_printable_name): Deal gracefully
11220 with a NULL DECL_NAME.
11221
11222 2010-04-26 Richard Guenther <rguenther@suse.de>
11223
11224 PR lto/42425
11225 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11226 if emitting debug information and it is either a function
11227 or a namespace decl.
11228
11229 2010-04-26 Ira Rosen <irar@il.ibm.com>
11230
11231 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11232 determine if the statement is vectorizable, and a macro to access it.
11233 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11234 Skip statements that can't be vectorized. If the analysis fails,
11235 mark the statement as unvectorizable if vectorizing basic block.
11236 (vect_compute_data_refs_alignment): Likewise.
11237 (vect_verify_datarefs_alignment): Skip statements marked as
11238 unvectorizable. Add print.
11239 (vect_analyze_group_access): Skip statements that can't be
11240 vectorized. If the analysis fails, mark the statement as
11241 unvectorizable if vectorizing basic block.
11242 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11243 * tree-vect-stmts.c (vectorizable_store): Fix the number of
11244 generated stmts for SLP.
11245 (new_stmt_vec_info): Initialize the new field.
11246 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11247 statements marked as unvectorizable.
11248
11249 2010-04-25 Joseph Myers <joseph@codesourcery.com>
11250
11251 * c-common.c (flag_isoc1x): New.
11252 (flag_isoc99): Update comment.
11253 * c-common.h (flag_isoc1x): New.
11254 (flag_isoc99): Update comment.
11255 * c-cppbuiltin.c (builtin_define_float_constants): Also define
11256 __<type>_DECIMAL_DIG__.
11257 * c-opts.c (set_std_c1x): New.
11258 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11259 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11260 * c.opt (-std=c1x, -std=gnu1x): New options.
11261 * doc/cpp.texi: Mention -std=c1x.
11262 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11263 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11264 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11265 * doc/standards.texi: Mention C1X.
11266 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11267 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11268 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11269 Define for C1X.
11270
11271 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
11272
11273 * config/i386/gmon-sol2.c (_mcleanup): Change format string
11274 placeholder from 0x%x to %#x.
11275 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11276 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11277 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11278 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11279 * config/i386/i386.c (ix86_target_string): Ditto.
11280 (output_pic_addr_const): Ditto.
11281 (print_operand): Ditto.
11282
11283 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
11284
11285 * combine.c (find_split_point): Add third argument. Use it
11286 to find nested multiply-accumulate instructions. Adjust calls.
11287 (try_combine): Adjust call to find_split_point.
11288
11289 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11290
11291 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11292
11293 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
11294
11295 PR tree-optimization/41442
11296 * fold-const.c (merge_truthop_with_opposite_arm): New function.
11297 (fold_binary_loc): Call it.
11298
11299 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11300
11301 * toplev.c (general_init): Set default for fdiagnostics-show-option.
11302 * opts.c (common_handle_option): Allow disabling it.
11303 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11304
11305 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
11306
11307 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11308 between modes if both types are integral.
11309
11310 2010-04-23 Richard Guenther <rguenther@suse.de>
11311
11312 PR tree-optimization/43572
11313 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11314
11315 2010-04-23 Richard Guenther <rguenther@suse.de>
11316
11317 PR lto/43455
11318 * tree-inline.c (tree_can_inline_p): Also check compatibility
11319 of return types.
11320
11321 2010-04-23 Martin Jambor <mjambor@suse.cz>
11322
11323 PR tree-optimization/43846
11324 * tree-sra.c (struct access): New flag grp_assignment_read.
11325 (build_accesses_from_assign): Set grp_assignment_read.
11326 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11327 (enum mark_read_status): New type.
11328 (analyze_access_subtree): Propagate grp_assignment_read, create
11329 accesses also if both direct_read and root->grp_assignment_read.
11330
11331 2010-04-23 Martin Jambor <mjambor@suse.cz>
11332
11333 PR middle-end/43835
11334 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11335 function does not have type attributes.
11336
11337 2010-04-23 Richard Guenther <rguenther@suse.de>
11338
11339 PR lto/42653
11340 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11341 of FUNCTION_DECLs.
11342
11343 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11344
11345 * sese.h (create_if_region_on_edge): Remove.
11346
11347 * sese.c (create_if_region_on_edge): Make static.
11348
11349 * tree-inline.c: Do not include ggc.h.
11350
11351 * expr.c: Do not include ggc.h.
11352
11353 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11354 dependencies.
11355
11356 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
11357
11358 PR target/43744
11359 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11360 in the middle of insns for casesi_worker_2.
11361
11362 2010-04-22 David Edelsohn <edelsohn@gnu.org>
11363
11364 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11365
11366 2010-04-22 Ira Rosen <irar@il.ibm.com>
11367
11368 PR tree-optimization/43842
11369 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11370 loop unrolling in update of exit phis. Fix comment.
11371 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11372 least two reduction statements in the loop before starting SLP
11373 analysis.
11374
11375 2010-04-22 Nick Clifton <nickc@redhat.com>
11376
11377 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11378
11379 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
11380
11381 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11382 to simplify a + ~a.
11383
11384 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11385
11386 * tree-parloops.c (loop_parallel_p): New argument
11387 parloop_obstack. Pass it down.
11388 (parallelize_loops): New variable parloop_obstack. Initialize it,
11389 pass it down, free it.
11390
11391 * tree-loop-linear.c (linear_transform_loops): Pass down
11392 lambda_obstack.
11393
11394 * tree-data-ref.h (lambda_compute_access_matrices): New argument
11395 of type struct obstack *.
11396
11397 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11398 scratch_obstack. Initialize it, pass down, free it.
11399
11400 * lambda.h (lambda_loop_new): Remove.
11401 (lambda_matrix_new, lambda_matrix_inverse)
11402 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11403 argument of type struct obstack *.
11404
11405 * lambda-trans.c (lambda_trans_matrix_new): New argument
11406 lambda_obstack. Pass it down, use obstack allocation for ret.
11407 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
11408 it down.
11409
11410 * lambda-mat.c (lambda_matrix_get_column)
11411 (lambda_matrix_project_to_null): Remove.
11412 (lambda_matrix_new): New argument lambda_obstack. Use obstack
11413 allocation for mat.
11414 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11415 lambda_obstack.
11416
11417 * lambda-code.c (lambda_loop_new): New function.
11418 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11419 (lambda_compute_auxillary_space, lambda_compute_target_space)
11420 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11421 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11422 (build_access_matrix): New argument lambda_obstack. Use obstack
11423 allocation for am.
11424 (lambda_compute_step_signs, lambda_compute_access_matrices): New
11425 argument lambda_obstack. Pass it down.
11426
11427 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11428
11429 * optabs.h (expand_widening_mult): Declare.
11430
11431 2010-04-22 Richard Guenther <rguenther@suse.de>
11432
11433 PR tree-optimization/43845
11434 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11435 lookup the CALL_EXPR function and arguments.
11436
11437 2010-04-22 Nick Clifton <nickc@redhat.com>
11438
11439 * config/stormy16/stormy16.c
11440 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11441 * config/stormy16/stormy16.h: Tidy up formatting.
11442 (DONT_USE_BUILTIN_SETJMP): Remove definition.
11443 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11444 (ineqbranchsi): Delete pattern.
11445 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11446 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11447 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11448 stormy16-lib2-ucmpsi2.c.
11449
11450 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11451
11452 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11453 df_simulate_find_noclobber_defs as appropriate. Keep track of an
11454 extra set merge_set_noclobber, and use it to relax the final test
11455 slightly.
11456 * df.h (df_simulate_find_noclobber_defs): Declare.
11457 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11458 conditional defs.
11459 (df_simulate_find_noclobber_defs): New function.
11460
11461 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
11462
11463 * config/i386/i386.md: Use {} around multi-line preparation statements.
11464
11465 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11466
11467 * c-tree.h (push_init_level, pop_init_level, set_init_index)
11468 (process_init_element): New argument of type struct obstack *.
11469
11470 * c-typeck.c (push_init_level, pop_init_level, set_designator)
11471 (set_init_index, set_init_label, set_nonincremental_init)
11472 (set_nonincremental_init_from_string, find_init_member)
11473 (output_init_element, output_pending_init_elements)
11474 (process_init_element): New argument braced_init_obstack. Pass it
11475 down.
11476 (push_range_stack, add_pending_init): New argument
11477 braced_init_obstack. Use obstack allocation.
11478
11479 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11480 braced_init_obstack. Pass it down.
11481 (c_parser_braced_init): New variables ret, braced_init_obstack.
11482 Initialize obstack, pass it down and finally free it.
11483
11484 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11485
11486 PR middle-end/29274
11487 * tree-pass.h (pass_optimize_widening_mul): Declare.
11488 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11489 gate_optimize_widening_mul): New static functions.
11490 (pass_optimize_widening_mul): New.
11491 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11492 <case MULT_EXPR>: Remove support for widening multiplies.
11493 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11494 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11495 simplify_gen_unary rather than directly building extensions.
11496 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11497 WIDEN_MULT_EXPR.
11498 * expmed.c (expand_widening_mult): New function.
11499 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11500
11501 2010-04-21 Jan Hubicka <jh@suse.cz>
11502
11503 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11504 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11505 * lto-wpa-fixup.c: Remove.
11506 * Makefile.in (lto-wpa-fixup.o): Remove.
11507 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11508 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11509 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11510
11511 2010-04-21 Jan Hubicka <jh@suse.cz>
11512
11513 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11514 add write_optimization_summary, read_optimization_summary.
11515 (ipa_write_summaries_of_cgraph_node_set): Remove.
11516 (ipa_write_optimization_summaries): Declare.
11517 (ipa_read_optimization_summaries): Declare.
11518 * ipa-cp.c (pass_ipa_cp): Update.
11519 * ipa-reference.c (pass_ipa_reference): Update.
11520 * ipa-pure-const.c (pass_ipa_pure_const): Update.
11521 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11522 Update.
11523 * ipa-inline.c (pass_ipa_inline): Update.
11524 * ipa.c (pass_ipa_whole_program): Update.
11525 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11526 * passes.c (ipa_write_summaries_1): Do not test wpa.
11527 (ipa_write_optimization_summaries_1): New.
11528 (ipa_write_optimization_summaries): New.
11529 (ipa_read_summaries): Do not test ltrans.
11530 (ipa_read_optimization_summaries_1): New.
11531 (ipa_read_optimization_summaries): New.
11532
11533 2010-04-21 Jan Hubicka <jh@suse.cz>
11534
11535 * lto-cgraph.c (lto_output_node): Do not output comdat groups
11536 for boundary nodes.
11537 (output_cgraph): Do not arrange comdat groups for boundary nodes.
11538
11539 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11540
11541 PR debug/40040
11542 * dwarf2out.c (add_name_and_src_coords_attributes): Add
11543 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11544
11545 2010-04-21 Jan Hubicka <jh@suse.cz>
11546
11547 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11548
11549 2010-04-21 Jan Hubicka <jh@suse.cz>
11550
11551 * varpool.c (decide_is_variable_needed): Variable is always needed
11552 during ltrans.
11553
11554 2010-04-21 Jan Hubicka <jh@suse.cz>
11555
11556 * opts.c (decode_options): Enable pure-const pass for whopr.
11557
11558 2010-04-21 Jan Hubicka <jh@suse.cz>
11559
11560 * cgraph.c (dump_cgraph_node): Dump also assembler name.
11561 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11562 at WPA dumping.
11563 (cgraph_decide_inlining): Do not expect callee to be removed in all
11564 cases.
11565
11566 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
11567
11568 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11569
11570 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11571
11572 * config/i386/i386.md (x86_shrd): Add athlon_decode and
11573 amdfam10_decode attributes.
11574
11575 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11576
11577 PR middle-end/43570
11578 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11579 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11580 (lower_copyprivate_clauses): Use private var in outer
11581 context instead of original var. Make sure the types
11582 are correct for VLAs.
11583
11584 2010-04-21 Richard Guenther <rguenther@suse.de>
11585
11586 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11587 to non-pointer objects.
11588
11589 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11590
11591 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
11592 last chain entry if it starts with the still current label.
11593 (add_location_or_const_value_attribute): Check that
11594 loc_list->first->next is NULL instead of comparing ->first with ->last.
11595 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11596 to add_var_loc_to_decl.
11597
11598 * dwarf2out.c (output_call_frame_info): For dw_cie_version
11599 >= 4 add also address size and segment size fields into CIE header.
11600
11601 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11602 long as address size is the same as sizeof (void *) and
11603 segment size is 0.
11604 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
11605 address size or segment size is unexpected, return DW_EH_PE_omit.
11606 (classify_object_over_fdes): If get_cie_encoding returned
11607 DW_EH_PE_omit, return -1.
11608 (init_object): If classify_object_over_fdes returned -1,
11609 pretend there were no FDEs at all.
11610
11611 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11612
11613 * config/i386/i386.md (bswap<mode>2): Macroize expander from
11614 bswap{si,di}2 using SWI48 mode iterator.
11615 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11616 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
11617 set modrm attribute of bswap insn to 0 and remove length attribute.
11618 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11619 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
11620 set mode attribute to <MODE> and remove length attribute.
11621
11622 2010-04-20 James E. Wilson <wilson@codesourcery.com>
11623
11624 PR rtl-optimization/43520
11625 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11626 zero available registers.
11627
11628 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11629
11630 * builtins.c (fold_builtin_cproj): Fold more cases.
11631
11632 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11633
11634 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11635 (fold_builtin_1): Fold builtin cproj.
11636 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11637 Use ATTR_CONST_NOTHROW_LIST.
11638
11639 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
11640
11641 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11642 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
11643 ffsi2_no_cmove for !TARGET_CMOVE.
11644 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
11645 (ffssi2): Remove expander.
11646 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11647 mode iterator.
11648 (ctz<mode>2): Ditto from ctz{si,di}2.
11649 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11650 mode iterator.
11651 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11652 mode iterator.
11653
11654 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11655
11656 * dwarf2out.c (AT_linkage_name): Define.
11657 (clone_as_declaration): Handle DW_AT_linkage_name.
11658 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11659 of DW_AT_MIPS_linkage_name.
11660 (move_linkage_attr): Likewise.
11661 (dwarf2out_finish): Likewise.
11662
11663 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
11664
11665 PR middle-end/41952
11666 * fold-const.c (fold_comparison): New folding rule.
11667
11668 2010-04-20 Anatoly Sokolov <aesok@post.ru>
11669
11670 * double-int.h (double_int_setbit): Declare.
11671 * double-int.c (double_int_setbit): New function.
11672 * rtl.h (immed_double_int_const): Declare.
11673 * emit-rtl.c (immed_double_int_const): New function.
11674 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11675 and immed_double_int_const functions.
11676 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11677 expand_copysign_bit): (Ditto.).
11678 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11679 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11680 * dojump.c (prefer_and_bit_test): (Ditto.).
11681 * expr.c (convert_modes, reduce_to_bit_field_precision,
11682 const_vector_from_tree): (Ditto.).
11683 * expmed.c (mask_rtx, lshift_value): (Ditto.).
11684
11685 2010-04-20 Jan Hubicka <jh@suse.cz>
11686
11687 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11688 (dump_cgraph_node): Dump new flags.
11689 * cgraph.h (struct cgraph_node): Add flags
11690 reachable_from_other_partition and in_other_partition.
11691 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11692 other partition can not be removed.
11693 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11694 the other partition must be output; silence sanity checking on
11695 leaking functions bodies from other paritition.
11696 * lto-cgraph.c (reachable_from_other_partition_p): New function.
11697 (lto_output_node): Output new flags; do not sanity check that inline
11698 clones are output; drop lto_forced_extern_inline_p code; do not mock
11699 visibility flags at partition boundaries.
11700 (add_node_to): New function.
11701 (output_cgraph): Use it to sort functions so masters appear before
11702 clones.
11703 (input_overwrite_node): Input new flags.
11704 * passes.c (ipa_write_summaries): Do not call
11705 lto_new_extern_inline_states.
11706 * lto-section-out.c (forced_extern_inline,
11707 lto_new_extern_inline_states lto_delete_extern_inline_states,
11708 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
11709 * lto-streamer.h (lto_new_extern_inline_states,
11710 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
11711 lto_forced_extern_inline_p): Kill.
11712
11713 2010-04-20 Richard Guenther <rguenther@suse.de>
11714
11715 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
11716 from vars that can have pointers.
11717 (process_constraint): Dump useless constraints.
11718
11719 2010-04-20 Richard Guenther <rguenther@suse.de>
11720
11721 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
11722 (dump_sa_points_to_info): Remove asserts.
11723 (init_base_vars): nothing_id isn't an escape point nor does it
11724 have pointers.
11725
11726 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11727
11728 * tree.h (TYPE_REF_IS_RVALUE): Define.
11729 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
11730 should_move_die_to_comdat, prune_unused_types_walk): Handle
11731 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
11732 (modified_type_die, gen_reference_type_die): Emit
11733 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
11734 if TYPE_REF_IS_RVALUE and -gdwarf-4.
11735
11736 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11737
11738 PR target/43635
11739 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
11740 calls for -fpic -m31 if they have been sibcall optimized.
11741
11742 2010-04-19 James E. Wilson <wilson@codesourcery.com>
11743
11744 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
11745 ar.lc fixed and call-used.
11746
11747 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11748
11749 2010-04-19 Jan Hubicka <jh@suse.cz>
11750
11751 * opts.c (decode_options): Disable whpr incompatible passes.
11752 * lto/lto.c (lto_1_to_1_map): Skip clones.
11753 (read_cgraph_and_symbols): Do not mark everything as needed.
11754 (do_whole_program_analysis): Do map only after optimizing;
11755 set proper cgraph_state; use passmanager.
11756
11757 2010-04-19 DJ Delorie <dj@redhat.com>
11758
11759 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
11760 POINTER_PLUS_EXPR and fix them.
11761
11762 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
11763
11764 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
11765 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
11766 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
11767 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
11768 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
11769 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
11770 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
11771 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
11772 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
11773 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
11774 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
11775
11776 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
11777
11778 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
11779 (check_cond_move_block): Likewise.
11780 (cond_move_process_if_block): Likewise.
11781 (noce_find_if_block): Improve formatting.
11782 (find_if_header): Pass 0 to memset and tweak conditions.
11783 (cond_exec_find_if_block): Fix long lines and tweak conditions.
11784
11785 2010-04-19 Jakub Jelinek <jakub@redhat.com>
11786
11787 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
11788 for -gdwarf-4.
11789
11790 PR middle-end/43337
11791 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
11792 with non-local decl doesn't need chain.
11793
11794 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
11795
11796 * ira-color.c (allocno_reload_assign): Avoid accumulating
11797 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
11798
11799 2010-04-19 Martin Jambor <mjambor@suse.cz>
11800
11801 * gimple.h (create_tmp_reg): Declare.
11802 * gimplify.c (create_tmp_reg): New function.
11803 (gimplify_return_expr): Use create_tmp_reg.
11804 (gimplify_omp_atomic): Likewise.
11805 (gimple_regimplify_operands): Likewise.
11806 * tree-dfa.c (make_rename_temp): Likewise.
11807 * tree-predcom.c (predcom_tmp_var): Likewise.
11808 (reassociate_to_the_same_stmt): Likewise.
11809 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
11810 (get_replaced_param_substitute): Likewise.
11811 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11812 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
11813 * tree-ssa-pre.c (get_representative_for): Likewise.
11814 (create_expression_by_pieces): Likewise.
11815 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11816 (create_tailcall_accumulator): Likewise.
11817
11818 2010-04-19 Martin Jambor <mjambor@suse.cz>
11819
11820 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
11821 new_stmt.
11822 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
11823
11824 2010-04-19 Richard Guenther <rguenther@suse.de>
11825
11826 PR tree-optimization/43796
11827 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
11828 from SCEV in the lattice.
11829 (vrp_visit_phi_node): Dump change.
11830
11831 2010-04-19 Richard Guenther <rguenther@suse.de>
11832
11833 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
11834 * configure: Re-generated.
11835
11836 2010-04-19 Richard Guenther <rguenther@suse.de>
11837
11838 PR tree-optimization/43783
11839 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
11840 constant ARRAY_REF operands two and three if possible.
11841
11842 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
11843
11844 PR target/43766
11845 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
11846
11847 2010-04-19 Jie Zhang <jie@codesourcery.com>
11848
11849 PR target/43662
11850 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
11851
11852 2010-04-19 Ira Rosen <irar@il.ibm.com>
11853
11854 PR tree-optimization/37027
11855 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
11856 and macro to access it.
11857 (vectorizable_reduction): Add argument.
11858 (vect_get_slp_defs): Likewise.
11859 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
11860 statements for possible use in SLP.
11861 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
11862 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
11863 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
11864 add new argument.
11865 (vectorizable_reduction): Likewise.
11866 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
11867 vect_get_slp_defs.
11868 (vectorizable_type_demotion, vectorizable_type_promotion,
11869 vectorizable_store): Likewise.
11870 (vect_analyze_stmt): Update call to vectorizable_reduction.
11871 (vect_transform_stmt): Likewise.
11872 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
11873 (vect_build_slp_tree): Fix indentation. Check that there are no loads
11874 from different interleaving chains in same node.
11875 (vect_slp_rearrange_stmts): New function.
11876 (vect_supported_load_permutation_p): Allow load permutations for
11877 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
11878 inside SLP nodes if necessary.
11879 (vect_analyze_slp_instance): Handle reductions.
11880 (vect_analyze_slp): Try to build SLP instances originating from groups
11881 of reductions.
11882 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
11883 (vect_get_constant_vectors): Create initial vectors for reductions
11884 according to reduction code. Add new argument.
11885 (vect_get_slp_defs): Add new argument, pass it to
11886 vect_get_constant_vectors.
11887 (vect_schedule_slp_instance): Remove SLP tree root statements.
11888
11889 2010-04-19 Jakub Jelinek <jakub@redhat.com>
11890
11891 * tree.h (ENUM_IS_SCOPED): Define.
11892 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
11893 for ENUM_IS_SCOPED enums.
11894
11895 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
11896
11897 * fold-const.c (fold_comparison): Use ssizetype.
11898 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11899 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
11900 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
11901 * tree-object-size.c (compute_object_sizes): Use size_type_node.
11902
11903 * tree.h (initialize_sizetypes): Remove parameter.
11904 (build_common_tree_nodes): Remove second parameter.
11905 * stor-layout.c (initialize_sizetypes): Remove parameter.
11906 Always create an unsigned type.
11907 (set_sizetype): Assert that the passed type is unsigned and simplify.
11908 * tree.c (build_common_tree_nodes): Remove second parameter.
11909 Adjust call to initialize_sizetypes.
11910 * c-decl.c (c_init_decl_processing): Remove second argument in call to
11911 build_common_tree_nodes.
11912
11913 2010-04-18 Matthias Klose <doko@ubuntu.com>
11914
11915 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
11916
11917 2010-04-18 Ira Rosen <irar@il.ibm.com>
11918
11919 PR tree-optimization/43771
11920 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
11921 load permutation doesn't have gaps.
11922
11923 2010-04-18 Jan Hubicka <jh@suse.cz>
11924
11925 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11926 (sse_prologue_save_insn expander): Use new pattern.
11927 (sse_prologue_save_insn1): New pattern and splitter.
11928 (sse_prologue_save_insn): Update to deal also with 64bit aligned
11929 blocks.
11930 * i386.c (setup_incoming_varargs_64): Do not compute jump
11931 destination here.
11932 (ix86_gimplify_va_arg): Update alignment needed.
11933 (ix86_local_alignment): Do not align all local arrays to 128bit.
11934
11935 2010-04-17 Jan Hubicka <jh@suse.cz>
11936
11937 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11938
11939 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11940
11941 * arm.md (negdi2): Remove redundant code to force values into a
11942 register.
11943
11944 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11945
11946 * arm/bpabi.S: Add EABI alignment attributes to objects.
11947 * arm/bpabi-v6m.S: Likewise.
11948 * arm/crti.asm: Likewise.
11949 * arm/crtn.asm: Likewise.
11950 * arm/lib1funcs.asm: Likewise.
11951 * arm/libunwind.S: Likewise.
11952
11953 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11954
11955 * arm-protos.h (tune_params): New structure.
11956 * arm.c (current_tune): New variable.
11957 (arm_constant_limit): Delete.
11958 (struct processors): Add pointer to the tune parameters.
11959 (arm_slowmul_tune): New tuning option.
11960 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11961 (all_cores): Adjust to pick up the tuning model.
11962 (arm_constant_limit): New function.
11963 (arm_override_options): Select the appropriate tuning model. Delete
11964 initialization of arm_const_limit.
11965 (arm_split_constant): Use the new constant-limit model.
11966 (arm_rtx_costs): Pick up the current tuning model.
11967 * arm.md (is_strongarm, is_xscale): Delete.
11968 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11969 for Xscale variant architectures.
11970 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11971
11972 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11973
11974 * config/arm/arm.c (arm_gen_constant): Remove unused variable
11975 can_shift.
11976 (arm_rtx_costs_1): Remove unused variable extra_cost.
11977 (arm_unwind_emit_set): Use variable offset.
11978 (thumb1_output_casesi): Remove unused variable flags.
11979
11980 2010-04-16 Jeff Law <law@redhat.com>
11981
11982 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11983 needing assignment rather than doing a two-phase assignment. Remove
11984 unused variable 'm'.
11985
11986 2010-04-16 Jakub Jelinek <jakub@redhat.com>
11987
11988 PR bootstrap/43767
11989 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11990
11991 2010-04-16 Doug Kwan <dougkwan@google.com>
11992
11993 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11994 (next_operand_entry_id): New static variable.
11995 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11996 (add_to_ops_vec): Assigned unique ID to operand entry.
11997 (struct oecount_s): New field ID.
11998 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11999 (undistribute_ops_list): Assign unique IDs to oecounts.
12000 (init_reassoc): reset next_operand_entry_id.
12001
12002 2010-04-16 Doug Kwan <dougkwan@google.com>
12003
12004 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12005 missing left parenthesis.
12006
12007 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
12008
12009 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12010 *btdi_rex64 using SWI48 mode iterator.
12011 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12012 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12013 *jcc_btdi_mask_rex64.
12014
12015 2010-04-16 Anatoly Sokolov <aesok@post.ru>
12016
12017 * double-int.h (tree_to_double_int): Convert to macro.
12018 * double-int.c (tree_to_double_int): Remove.
12019
12020 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12021
12022 PR debug/43762
12023 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12024 with want_address 2 and in case a single element list might be
12025 possible, call it again with want_address 0.
12026
12027 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12028
12029 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12030 case 'W' print operands for HI mode.
12031 * config/h8300/h8300.h (Y0, Y2) : New constraints.
12032 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12033 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12034 * config/h8300/predicate.md (bit_register_indirect_operand): New.
12035
12036 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12037
12038 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12039 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12040 #xx:3 and #xx:4 mode.
12041
12042 * config/h8300/h8300.md (inverted load with HImode dest): Add
12043 support for H8300SX.
12044
12045 * config/h8300/predicate.md (bit_operand): Allow immediate values that
12046 satisfy 'U' constraint.
12047
12048 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12049
12050 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12051 * configure: Regenerate.
12052 * config.in: Regenerate.
12053 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12054 works.
12055
12056 2010-04-16 Richard Guenther <rguenther@suse.de>
12057
12058 * tree.h (struct tree_decl_minimal): Move pt_uid ...
12059 (struct tree_decl_common): ... here.
12060 (DECL_PT_UID): Adjust.
12061 (SET_DECL_PT_UID): Likewise.
12062 (DECL_PT_UID_SET_P): Likewise.
12063
12064 2010-04-16 Richard Guenther <rguenther@suse.de>
12065
12066 PR tree-optimization/43572
12067 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12068 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12069 * tree-flow.h (is_call_clobbered): Remove.
12070 * tree-flow-inline.h (is_call_clobbered): Likewise.
12071 * tree-dfa.c (dump_variable): Do not dump call clobber state.
12072 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12073 (execute_return_slot_opt): Adjust.
12074 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12075 check for call clobbered vars here.
12076 (find_tail_calls): Move tailcall verification to the
12077 proper place.
12078
12079 2010-04-16 Diego Novillo <dnovillo@google.com>
12080
12081 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12082
12083 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12084
12085 PR target/40603
12086 * config/arm/arm.md (cbranchqi4): New pattern.
12087 * config/arm/predicates.md (const0_operand,
12088 cbranchqi4_comparison_operator): New predicates.
12089
12090 2010-04-16 Richard Guenther <rguenther@suse.de>
12091
12092 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12093 (dump_gimple_stmt): Likewise.
12094
12095 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12096
12097 * recog.h (struct recog_data): New field is_operator.
12098 (struct insn_operand_data): New field is_operator.
12099 * recog.c (extract_insn): Set recog_data.is_operator.
12100 * genoutput.c (output_operand_data): Emit code to set the
12101 is_operator field.
12102 * reload.c (find_reloads): Use it rather than testing for an
12103 empty constraint string.
12104
12105 PR target/41514
12106 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12107 If the previous insn is a cbranchsi4_insn with the same arguments,
12108 omit the compare instruction.
12109
12110 * config/arm/arm.md (addsi3_cbranch): If destination is a high
12111 register, inputs must be low registers and we need a low register
12112 scratch. Handle alternative 2 like alternative 3.
12113
12114 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12115
12116 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12117 don't call get_addr on both. If one expression is a VALUE and
12118 the other a REG, check VALUE's locs if the REG isn't among them.
12119
12120 2010-04-16 Christian Bruel <christian.bruel@st.com>
12121
12122 * config/sh/sh.h (sh_frame_pointer_required): New function.
12123 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12124 (flag_omit_frame_pointer) Set.
12125 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12126 (rounded_frame_size): Adjust size with outgoing_args_size.
12127 (sh_set_return_address): Must return from stack pointer.
12128 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12129 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12130 (ACCUMULATE_OUTGOING_ARGS): Define.
12131 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12132 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12133
12134 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12135
12136 PR target/43471
12137 * config/sh/sh.c (sh_legitimize_reload_address): Use
12138 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12139 Remove a unneeded check for offset_base.
12140
12141 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
12142
12143 * configure: Regenerated.
12144
12145 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12146
12147 * config/s390/s390.c (s390_call_save_register_used): Switch back
12148 to HARD_REGNO_NREGS.
12149
12150 2010-04-15 Richard Guenther <rguenther@suse.de>
12151
12152 * alias.c (alias_set_subset_of): Handle alias-set zero
12153 child properly.
12154
12155 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
12156 Julian Brown <julian@codesourcery.com>
12157
12158 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12159 alternatives according to use of high and low regs.
12160 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12161 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12162 optimizing for size on Thumb-2.
12163
12164 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
12165
12166 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12167
12168 2010-04-15 Richard Guenther <rguenther@suse.de>
12169
12170 * tree-ssa-structalias.c (struct variable_info): Add
12171 is_fn_info flag.
12172 (new_var_info): Initialize it.
12173 (dump_constraints): Support printing last added constraints.
12174 (debug_constraints): Adjust.
12175 (dump_constraint_graph): Likewise.
12176 (make_heapvar_for): Check for NULL cfun.
12177 (get_function_part_constraint): New function.
12178 (get_fi_for_callee): Likewise.
12179 (find_func_aliases): Properly implement IPA PTA constraints.
12180 (process_ipa_clobber): New function.
12181 (find_func_clobbers): Likewise.
12182 (insert_into_field_list_sorted): Remove.
12183 (create_function_info_for): Properly allocate vars for IPA mode.
12184 Do not use insert_into_field_list_sorted.
12185 (create_variable_info_for): Properly generate constraints for
12186 global vars in IPA mode.
12187 (dump_solution_for_var): Always dump the solution.
12188 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12189 (find_what_var_points_to): Adjust.
12190 (pt_solution_set): Change.
12191 (pt_solution_ior_into): New function.
12192 (pt_solution_empty_p): Export.
12193 (pt_solution_includes_global): Adjust.
12194 (pt_solution_includes_1): Likewise.
12195 (pt_solutions_intersect_1): Likewise.
12196 (dump_sa_points_to_info): Check some invariants.
12197 (solve_constraints): Move constraint dumping ...
12198 (compute_points_to_sets): ... here.
12199 (ipa_pta_execute): ... and here.
12200 (compute_may_aliases): Do not re-compute points-to info
12201 locally if IPA info is available.
12202 (ipa_escaped_pt): New global var.
12203 (ipa_pta_execute): Properly implement IPA PTA.
12204 * tree-into-ssa.c (dump_decl_set): Support dumping
12205 decls not in referenced-vars.
12206 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12207 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12208 (dump_points_to_solution): Likewise.
12209 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12210 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12211 (remap_gimple_stmt): Reset call clobber/use information if necessary.
12212 (copy_decl_to_var): Copy DECL_PT_UID.
12213 (copy_result_decl_to_var): Likewise.
12214 * tree.c (make_node_stat): Initialize DECL_PT_UID.
12215 (copy_node_stat): Copy it.
12216 * tree.h (DECL_PT_UID): New macro.
12217 (SET_DECL_PT_UID): Likewise.
12218 (DECL_PT_UID_SET_P): Likewise.
12219 (struct tree_decl_minimal): Add pt_uid member.
12220 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12221 (pt_solution_empty_p): Declare.
12222 (pt_solution_set): Adjust.
12223 (ipa_escaped_pt): Declare.
12224 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12225 * gimple-pretty-print.c (pp_points_to_solution): New function.
12226 (dump_gimple_call): Dump call clobber/use information.
12227 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12228 * tree-pass.h (TDF_ALIAS): New dump option.
12229 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12230 * doc/invoke.texi (-fipa-pta): Update documentation.
12231
12232 2010-04-15 Richard Guenther <rguenther@suse.de>
12233
12234 * Makefile.in (OBJS-common): Add gimple-fold.o.
12235 (gimple-fold.o): New rule.
12236 * tree.h (maybe_fold_offset_to_reference,
12237 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12238 prototypes ...
12239 * gimple.h: ... here.
12240 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12241 may_propagate_address_into_dereference): Move prototypes ...
12242 * gimple.h: ... here.
12243 * tree-ssa-ccp.c (get_symbol_constant_value,
12244 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12245 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12246 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12247 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12248 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12249 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12250 gimplify_and_update_call_from_tree): Move ...
12251 * gimple-fold.c: ... here. New file.
12252 (ccp_fold_builtin): Rename to ...
12253 (gimple_fold_builtin): ... this.
12254 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12255
12256 2010-04-15 Richard Guenther <rguenther@suse.de>
12257
12258 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12259 fit_double_type, force_fit_type_double, add_double_with_sign,
12260 neg_double, mul_double_with_sign, lshift_double, rshift_double,
12261 lrotate_double, rrotate_double, div_and_round_double): Move ...
12262 * double-int.c: ... here.
12263 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12264 add_double, neg_double, mul_double_with_sign, mul_double,
12265 lshift_double, rshift_double, lrotate_double, rrotate_double,
12266 div_and_round_double): Move prototypes ...
12267 * double-int.h: ... here.
12268
12269 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
12270
12271 PR target/43742
12272 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
12273 matching constraints to ensure inputs match the output.
12274
12275 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12276
12277 PR target/43742
12278 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12279 in an input-only operand.
12280
12281 2010-04-15 Anatoly Sokolov <aesok@post.ru>
12282
12283 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12284 (double_int_not, double_int_lshift, double_int_rshift): Declare.
12285 (double_int_negative_p): Convert to static inline function.
12286 * double-int.c (double_int_lshift, double_int_lshift): New functions.
12287 (double_int_negative_p): Remove.
12288 * tree.h (lshift_double, rshift_double):
12289 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12290 * fold-const.c (fold_convert_const_int_from_real,
12291 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12292 (lshift_double): Change type of arith argument to bool.
12293 (rshift_double): Change type of arith argument to bool. Correct
12294 comment.
12295 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12296
12297 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
12298
12299 PR target/21803
12300 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12301 at the start and end of the then/else blocks, and omit them from the
12302 conversion.
12303 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
12304 argument; all callers changed. Pass zero to old_insns_match_p instead.
12305 (flow_find_head_matching_sequence): New function.
12306 (old_insns_match_p): Check REG_EH_REGION notes for calls.
12307 * basic-block.h (flow_find_cross_jump,
12308 flow_find_head_matching_sequence): Declare functions.
12309
12310 2010-04-14 Jason Merrill <jason@redhat.com>
12311
12312 PR c++/36625
12313 * c-common.c (attribute_takes_identifier_p): New fn.
12314 * c-common.h: Declare it.
12315
12316 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12317
12318 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12319 splitter condition.
12320 (*udivmod<mode>4): Ditto.
12321
12322 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12323
12324 * config/i386/i386.md (maxmin_int): Rename code attribute from
12325 maxminiprefix and update all users.
12326 (maxmin_float): Ditto from maxminfprefix.
12327 (logic): Ditto from logicprefix.
12328 (absneg_mnemonic): Ditto from absnegprefix.
12329 * config/i386/mmx.md: Update all users of maxminiprefix,
12330 maxminfprefix and logicprefix for rename.
12331 * config/i386/sse.md: Ditto.
12332 * config/i386/sync.md (sync_<code><mode>): Update for
12333 logicprefix rename.
12334
12335 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12336
12337 PR 42966
12338 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12339 warnings converted to errors.
12340
12341 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12342
12343 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12344 used insn_type variable.
12345 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12346 to avoid set-but-not-used warning.
12347
12348 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12349
12350 * df-core.c (df_ref_debug): Change format string placeholder
12351 from 0x%x to %#x.
12352 * dwarf2asm.c (dw2_asm_output_data_raw,
12353 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12354 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12355 * dwarf2out.c (output_cfi, output_cfi_directive,
12356 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12357 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12358 Ditto.
12359 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12360 * print-rtl.c (print_rtx): Ditto.
12361
12362 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12363
12364 PR middle-end/42694
12365 * builtins.c (expand_builtin_pow_root): New function to expand pow
12366 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12367 series of sqrt and cbrt calls under -ffast-math.
12368 (expand_builtin_pow): Call it.
12369
12370 2010-04-14 Michael Matz <matz@suse.de>
12371
12372 PR tree-optimization/42963
12373 * tree-cfg.c (touched_switch_bbs): New static variable.
12374 (group_case_labels_stmt): New function broken out from ...
12375 (group_case_labels): ... here, use the above.
12376 (start_recording_case_labels): Allocate touched_switch_bbs.
12377 (end_recording_case_labels): Deallocate it, call
12378 group_case_labels_stmt.
12379 (gimple_redirect_edge_and_branch): Remember index of affected BB.
12380
12381 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12382
12383 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12384 from insn template.
12385
12386 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12387
12388 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12389
12390 2010-04-13 Jan Hubicka <jh@suse.cz>
12391
12392 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12393 of optimized out static functions.
12394 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12395 cost computation. Also sanity check for overflows.
12396 (update_caller_keys): Update cgraph_edge_badness call; properly
12397 update fibheap and sanity check that it is up to date.
12398 (add_new_edges_to_heap): Update cgraph_edge_badness.
12399 (cgraph_decide_inlining_of_small_function): Likewise;
12400 add sanity checking that badness in heap is up to date;
12401 improve dumping of reason; Update badness of calls to the
12402 offline copy of function currently inlined; dump badness
12403 of functions not inlined because of unit growth limits.
12404
12405 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12406
12407 PR middle-end/32628
12408 * c-common.c (pointer_int_sum): Disregard overflow that occured only
12409 because of sign-extension change when converting to sizetype here...
12410 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12411
12412 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12413 the folding to constants. Remove redundant final conversion.
12414 (fold_binary) <associate>: Do not associate if the re-association of
12415 constants alone overflows.
12416 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12417 to the end of the list.
12418 (multiple_of_p) <COND_EXPR>: New case.
12419
12420 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12421
12422 * opt-functions.awk (opt_sanitized_name): New.
12423 (opt_enum): New.
12424 * optc-gen.awk: Use it
12425 * opth-gen.awk: Use it.
12426
12427 2010-04-13 Martin Jambor <mjambor@suse.cz>
12428
12429 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12430 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12431 children. Call replace_uses_with_default_def_ssa_name to handle
12432 SSA_NAES on lhs.
12433
12434 2010-04-13 Michael Matz <matz@suse.de>
12435
12436 PR middle-end/43730
12437 * builtins.c (expand_builtin_interclass_mathfn): Also create
12438 a register if the predicate doesn't match.
12439
12440 2010-04-13 Diego Novillo <dnovillo@google.com>
12441
12442 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12443 * c-pch.c: Include timevar.h.
12444 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12445 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12446 * ggc-common.c: Include timevar.h.
12447 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12448 * timevar.def (TV_PCH_SAVE): Define.
12449 (TV_PCH_CPP_SAVE): Define.
12450 (TV_PCH_PTR_REALLOC): Define.
12451 (TV_PCH_PTR_SORT): Define.
12452 (TV_PCH_RESTORE): Define.
12453 (TV_PCH_CPP_RESTORE): Define.
12454
12455 2010-04-13 Michael Matz <matz@suse.de>
12456
12457 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12458 into MINUS_EXPRs.
12459 (can_reassociate_p): New function.
12460 (break_up_subtract_bb, reassociate_bb): Use it.
12461
12462 2010-04-13 Richard Guenther <rguenther@suse.de>
12463
12464 PR bootstrap/43737
12465 * builtins.c (c_readstr): Fix assert.
12466
12467 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
12468
12469 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12470 when generating cltd insn.
12471
12472 (*ashl<mode>3_1): Remove special handling for register operand 2.
12473 (*ashlsi3_1_zext): Ditto.
12474 (*ashlhi3_1): Ditto.
12475 (*ashlhi3_1_lea): Ditto.
12476 (*ashlqi3_1): Ditto.
12477 (*ashlqi3_1_lea): Ditto.
12478 (*<shiftrt_insn><mode>3_1): Ditto.
12479 (*<shiftrt_insn>si3_1_zext): Ditto.
12480 (*<shiftrt_insn>qi3_1_slp): Ditto.
12481 (*<rotate_insn><mode>3_1): Ditto.
12482 (*<rotate_insn>si3_1_zext): Ditto.
12483 (*<rotate_insn>qi3_1_slp): Ditto.
12484
12485 2010-04-13 Richard Guenther <rguenther@suse.de>
12486
12487 * tree-ssa-structalias.c (callused_id): Remove.
12488 (call_stmt_vars): New.
12489 (get_call_vi): Likewise.
12490 (lookup_call_use_vi): Likewise.
12491 (lookup_call_clobber_vi): Likewise.
12492 (get_call_use_vi): Likewise.
12493 (get_call_clobber_vi): Likewise.
12494 (make_transitive_closure_constraints): Likewise.
12495 (handle_const_call): Adjust to do per-call call-used handling.
12496 (handle_pure_call): Likewise.
12497 (find_what_var_points_to): Remove general callused handling.
12498 (init_base_vars): Likewise.
12499 (init_alias_vars): Initialize call_stmt_vars.
12500 (compute_points_to_sets): Process call-used and call-clobbered
12501 vars for call statements.
12502 (delete_points_to_sets): Free call_stmt_vars.
12503
12504 2010-04-13 Richard Guenther <rguenther@suse.de>
12505
12506 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12507 Only add RW dependence for dependence distance zero.
12508 Adjust maximal vectorization factor according to dependences.
12509 Move alignment handling ...
12510 (vect_find_same_alignment_drs): ... here. New function.
12511 (vect_analyze_data_ref_dependences): Adjust.
12512 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12513 (vect_analyze_data_refs): Adjust minimal vectorization factor
12514 according to data references.
12515 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12516 dependences before determining the vectorization factor.
12517 Analyze alignment after determining the vectorization factor.
12518 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12519 dependences before alignment.
12520 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12521 Adjust prototype.
12522 (vect_analyze_data_refs): Likewise.
12523 (MAX_VECTORIZATION_FACTOR): New define.
12524
12525 2010-04-13 Duncan Sands <baldrick@free.fr>
12526
12527 * except.h (lang_eh_type_covers): Remove.
12528 * except.c (lang_eh_type_covers): Likewise.
12529
12530 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12531 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12532
12533 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12534 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12535 UNITS_PER_LONG where it is ABI relevant.
12536 (s390_return_addr_rtx): Likewise.
12537 (s390_back_chain_rtx): Likewise.
12538 (s390_frame_area): Likewise.
12539 (s390_frame_info): Likewise.
12540 (s390_initial_elimination_offset): Likewise.
12541 (save_gprs): Likewise.
12542 (s390_emit_prologue): Likewise.
12543 (s390_emit_epilogue): Likewise.
12544 (s390_function_arg_advance): Likewise.
12545 (s390_function_arg): Likewise.
12546 (s390_va_start): Likewise.
12547 (s390_gimplify_va_arg): Likewise.
12548 (s390_function_profiler): Likewise.
12549 (s390_optimize_prologue): Likewise.
12550 (s390_rtx_costs): Likewise.
12551 (s390_secondary_reload): Likewise.
12552 (s390_promote_function_mode): Likewise.
12553 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12554 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12555 registers available.
12556 (s390_unwind_word_mode): New function.
12557 (s390_function_value): Split 64 bit values into register pair if
12558 used as return value.
12559 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12560 function call parameters. Handle parallels.
12561 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12562 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12563 (DWARF_CIE_DATA_ALIGNMENT): New macro.
12564 (s390_expand_setmem): Remove unused variable src_addr.
12565 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12566 deal with 64 bit registers.
12567 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12568 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12569 (UNITS_PER_LONG): New macro.
12570 * libjava/include/s390-signal.h: Define extended ucontext
12571 structure containing the upper halfs of the 64 bit registers.
12572
12573 2010-04-13 Simon Baldwin <simonb@google.com>
12574
12575 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12576
12577 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12578
12579 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12580 rvalue on the RHS if the LHS is of a non-renamable type.
12581 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12582
12583 2010-04-13 Matthias Klose <doko@ubuntu.com>
12584
12585 * gcc.c (cc1_options): Handle -iplugindir before processing
12586 the cc1 spec. Only add -iplugindir once.
12587 (cpp_unique_options): Add -iplugindir option if -fplugin* options
12588 found.
12589 * common.opt (iplugindir): Remove `Separate' property, initialize.
12590 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12591 option.
12592 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12593 (distclean): Remove plugin dir.
12594 * doc/invoke.texi: Document -iplugindir.
12595
12596 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
12597
12598 * doc/plugins.texi (Loading Plugins): Document short
12599 -fplugin=foo option.
12600 (Plugin API): Mention default_plugin_dir_name function.
12601
12602 * gcc.c (find_file_spec_function): Add new declaration.
12603 (static_spec_func): Use it for "find-file".
12604 (find_file_spec_function): Add new function.
12605 (cc1_options): Add -iplugindir option if -fplugin* options found.
12606
12607 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12608
12609 * plugin.c (add_new_plugin): Updated comment, and handle short
12610 plugin name.
12611 (default_plugin_dir_name): Added new function.
12612
12613 * common.opt (iplugindir): New option to set the plugin directory.
12614
12615 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
12616
12617 * config/i386/i386.md (any_rotate): New code iterator.
12618 (rotate_insn): New code attribute.
12619 (rotate): Ditto.
12620 (SWIM124): New mode iterator.
12621 (<rotate_insn>ti3): New expander.
12622 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12623 any_rotate code iterator.
12624 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12625 using any_rotate code iterator and SWIM124 mode iterator.
12626 (ix86_rotlti3): New insn_and_split pattern.
12627 (ix86_rotrti3): Ditto.
12628 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12629 ix86_rotl{di,ti}3 patterns.
12630 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12631 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12632 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12633 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12634 code iterator and SWI mode iterator.
12635 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12636 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12637 code iterator.
12638 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12639 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12640 (bswap rotatert splitter): Add splitter.
12641 (bswap splitter): Macroize splitter using any_rotate code iterator.
12642 Add insn predicate to split only for TARGET_USE_XCHGB or when
12643 optimizing function for size.
12644
12645 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12646
12647 * config/pa/pa.c (emit_move_sequence): Remove use of
12648 deleted variable flag_argument_noalias.
12649
12650 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12651
12652 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12653 configurations.
12654 Add to unsupported targets list.
12655 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12656 sparc*-sun-solaris2.[567]* from target lists.
12657 * configure: Regenerate.
12658 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12659 removal.
12660 Remove Solaris 7 patch references.
12661 (Specific, sparc-sun-solaris2.7): Removed.
12662 (sparc-sun-solaris2*): Update Solaris 7 example.
12663 (sparc64-*-solaris2*): Likewise.
12664
12665 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12666
12667 * config.build (alpha*-dec-osf4*): Remove.
12668 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12669 of obsolete configurations.
12670 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12671 support.
12672 * config/alpha/t-osf4: Renamed to ...
12673 * config/alpha/t-osf5: ... this.
12674 * config/alpha/osf.h: Renamed to ...
12675 * config/alpha/osf5.h: ... this.
12676 Merged old osf5.h contents.
12677 Update comments.
12678 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12679 (EXTRA_SPECS): Removed.
12680 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12681 reflect removal of Tru64 UNIX V4.0/V5.0 support.
12682 Document that.
12683
12684 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12685
12686 * doc/contrib.texi (Contributors, Rainer Orth): Update.
12687
12688 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
12689
12690 PR/43702
12691 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12692 __thiscall convention.
12693
12694 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12695
12696 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12697 orig_base.
12698 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12699
12700 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12701
12702 * function.c (assign_parms_initialize_all): Add unused attribute
12703 to fntype.
12704
12705 2010-04-12 Richard Guenther <rguenther@suse.de>
12706
12707 * gsstruct.def (GSS_CALL): New.
12708 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
12709 * gimple.h: Include tree-ssa-alias.h.
12710 (struct gimple_statement_call): New.
12711 (union gimple_statement_struct_d): Add gimple_call member.
12712 (gimple_call_reset_alias_info): Declare.
12713 (gimple_call_use_set): New function.
12714 (gimple_call_clobber_set): Likewise.
12715 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
12716 * gimple.c (gimple_call_reset_alias_info): New function.
12717 (gimple_build_call_1): Call it.
12718 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12719 * tree-inline.c (remap_gimple_stmt): Likewise.
12720 (expand_call_inline): Remove callused handling.
12721 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
12722 * tree-dfa.c (dump_variable): Likewise.
12723 * tree-parloops.c (parallelize_loops): Likewise.
12724 * tree-ssa.c (init_tree_ssa): Likewise.
12725 (delete_tree_ssa): Likewise.
12726 * tree-flow-inline.h (is_call_used): Remove.
12727 * tree-flow.h (struct gimple_df): Remove callused member.
12728 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
12729 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
12730 (ref_maybe_used_by_call_p_1): Simplify.
12731 (call_may_clobber_ref_p_1): Likewise.
12732 * tree-ssa-structalias.c (compute_points_to_sets): Set
12733 the call stmt used and clobbered sets.
12734 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
12735 (find_tail_calls): Verify the tail call.
12736
12737 2010-04-12 Richard Guenther <rguenther@suse.de>
12738
12739 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
12740 single-iteration always-inline inlining.
12741 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
12742 (cgraph_decide_inlining): Do not handle always-inline specially.
12743 (try_inline): Remove always-inline cycle detection special case.
12744 Do not recurse on always-inlines.
12745 (cgraph_early_inlining): Do not iterate if not optimizing.
12746 (cgraph_gate_early_inlining): remove.
12747 (pass_early_inline): Run unconditionally.
12748 (gate_cgraph_decide_inlining): New function.
12749 (pass_ipa_inline): Use it. Do not run the IPA inliner if
12750 not inlining or optimizing.
12751 (cgraph_decide_inlining_of_small_functions): Also consider
12752 always-inline functions.
12753 (cgraph_default_inline_p): Return true for nodes which should
12754 disregard inline limits.
12755 (estimate_function_body_sizes): Assume zero size and time for
12756 nodes which are marked as disregarding inline limits.
12757 (cgraph_decide_recursive_inlining): Do not perform recursive
12758 inlining on always-inline nodes.
12759
12760 2010-04-12 Jakub Jelinek <jakub@redhat.com>
12761
12762 PR bootstrap/43699
12763 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
12764 for exprs satisfying handled_component_p.
12765
12766 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
12767
12768 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
12769 non-constant aggregate elements.
12770
12771 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
12772 is a real initialization.
12773
12774 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
12775
12776 PR c/36774
12777 * c-decl.c (start_function): Move forward check for nested function.
12778
12779 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
12780
12781 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
12782 * config/sh/sh.c: Include reload.h.
12783 (sh_legitimize_reload_address): New.
12784 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
12785 sh_legitimize_reload_address.
12786
12787 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12788
12789 * config/sh/sh.md (*movqi_pop): New insn pattern.
12790 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
12791
12792 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12793
12794 * config/i386/i386.md (any_shiftrt): New code iterator.
12795 (shiftrt_insn): New code attribute.
12796 (shiftrt): Ditto.
12797 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
12798 using any_shiftrt code iterator.
12799 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
12800 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
12801 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
12802 pattern from corresponding peephole2 patterns.
12803 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
12804 using any_shiftrt code iterator.
12805 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
12806 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
12807 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
12808 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
12809 *{ashr,lshr}<mode>3_cmp_zext.
12810 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
12811
12812 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12813
12814 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
12815 scratch register.
12816 (*lshr<mode>3_cconly): Ditto.
12817
12818 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12819
12820 * config/i386/i386.md (lshr<mode>3): Macroize expander from
12821 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12822 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
12823 pattern from *lshr{di,ti}3_1 and corresponding splitters using
12824 DWI mode iterator.
12825 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12826 from corresponding peephole2 patterns.
12827 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
12828 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
12829 and *lshrdi3_1_rex64 using SWI mode iterator.
12830 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
12831 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
12832 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
12833 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
12834 and *lshrdi3_cmp_rex64 using SWI mode iterator.
12835 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
12836 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
12837 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
12838 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
12839 SWI mode iterator.
12840
12841 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
12842
12843 * config/i386/i386.md (ashr<mode>3): Macroize expander from
12844 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12845 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
12846 pattern from *ashr{di,ti}3_1 and corresponding splitters using
12847 DWI mode iterator.
12848 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12849 from corresponding peephole2 patterns.
12850 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
12851 (ashrsi3_cvt): Rename from ashrsi3_31.
12852 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
12853 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
12854 and x86_64_shift_adj_3 using SWI48 mode iterator.
12855 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
12856 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
12857 and *ashrdi3_1_rex64 using SWI mode iterator.
12858 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
12859 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
12860 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
12861 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
12862 and *ashrdi3_cmp_rex64 using SWI mode iterator.
12863 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
12864 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
12865 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
12866 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
12867 SWI mode iterator.
12868 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
12869 * config/i386/i386.c (ix86_split_ashr): Update for renamed
12870 x86_shift<mode>_adj_3 expanders.
12871
12872 2010-04-10 Wei Guozhi <carrot@google.com>
12873
12874 PR target/42601
12875 * config/arm/arm.c (arm_pic_static_addr): New function.
12876 (legitimize_pic_address): Call arm_pic_static_addr when it detects
12877 a static symbol.
12878 (arm_output_addr_const_extra): Output expression for new pattern.
12879 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
12880
12881 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
12882
12883 * ira-costs.c (record_reg_classes): Ignore alternatives that are
12884 not enabled.
12885
12886 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
12887 * web.c: Include "insn-config.h" and "recog.h".
12888 (union_match_dups): New function.
12889 (web_main): Call it.
12890 (union_defs): Don't try to recognize match_dups.
12891
12892 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
12893 if doing so would replace the entire pattern.
12894
12895 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
12896
12897 PR target/43707
12898 PR target/43709
12899 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
12900 and splitter pattern. Change splitter operand 1 predicate to
12901 nonmemory_operand.
12902
12903 2010-04-09 Martin Jambor <mjambor@suse.cz>
12904
12905 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
12906 lattices are addresses of CONST_DECLs with the same initial value.
12907 (ipcp_print_all_lattices): Print values of CONST_DECLs.
12908 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
12909
12910 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
12911 Bernd Schmidt <bernds@codesourcery.com>
12912
12913 * loop-invariant.c (replace_uses): New static function.
12914 (move_invariant_reg): Use it to ensure we can replace the uses.
12915
12916 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
12917
12918 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
12919 function template.
12920 (picochip_override_options): Enable section anchors only above -O1.
12921 (picochip_reorg): Fixed a couple of build warnings.
12922
12923 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12924
12925 * configure.ac (plugin -rdynamic test): Log result.
12926 * configure: Regenerate.
12927 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12928 (RDYNAMIC_SPEC): Define.
12929 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12930
12931 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12932
12933 * configure.ac: Determine Sun ld version numbers.
12934 (comdat_group): Restrict GNU ld version checks to gld.
12935 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12936 (enable_comdat): Support --enable-comdat.
12937 * configure: Regenerate.
12938 * doc/install.texi (Configuration): Document --enable-comdat.
12939
12940 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12941
12942 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
12943 * config/sol2-gld.h: ... here.
12944 * config.gcc (sparc*-*-solaris2*): Reflect this.
12945 (i[34567]86-*-solaris2*): Use it.
12946
12947 2010-04-09 Steve Ellcey <sje@cup.hp.com>
12948
12949 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12950 setup_clocks_p.
12951 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12952
12953 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12954
12955 PR 42965
12956 * diagnostic.c (diagnostic_initialize): Initialize
12957 some_warnings_are_errors.
12958 (diagnostic_finish): New.
12959 (diagnostic_action_after_output): Call it before exiting.
12960 (diagnostic_report_diagnostic): Do not print message here. Set
12961 some_warnings_are_errors.
12962 * diagnostic.h (diagnostic_context): Delete
12963 issue_warnings_are_errors_message. Add some_warnings_are_errors.
12964 (diagnostic_finish): Declare.
12965 * toplev.c (toplev_main): Call it before exit.
12966
12967 2010-04-09 Jason Merrill <jason@redhat.com>
12968
12969 PR c++/42623
12970 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12971 for incomplete type.
12972
12973 PR c++/41788
12974 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12975 based on a warning flag.
12976
12977 2010-04-09 Richard Guenther <rguenther@suse.de>
12978
12979 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12980
12981 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
12982
12983 PR bootstrap/43684
12984 * varasm.c (default_assemble_visibility): Wrap vars that are
12985 set, but unused, by targets without GAS.
12986 * config/rs6000/rs6000.c (paired_emit_vector_compare):
12987 Remove set, but unused, vars.
12988 (rs6000_legitimize_tls_address): Likewise.
12989 (altivec_expand_dst_builtin): Likewise.
12990 * config/darwin.c (machopic_classify_symbol): Likewise.
12991 (machopic_indirection_name): Likewise.
12992
12993 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
12994
12995 * config/i386/i386.md (DWI): New mode iterator.
12996 (S): New mode attribute.
12997 (shift_operand): Ditto.
12998 (shift_immediate_operand): Ditto.
12999 (ashl_input_operand): Ditto.
13000 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13001 using SDWIM mode iterator.
13002 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
13003 pattern from *ashl{di,ti}3_1 and corresponding splitters using
13004 DWI mode iterator.
13005 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13006 from corresponding peephole2 patterns.
13007 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13008 and x86_64_shift_adj_1 using SWI48 mode iterator.
13009 (x86_shift<mode>_adj_2): Ditto.
13010 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13011 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13012 using SWI48 mode iterator.
13013 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13014 *ashldi3_cmp_rex64 using SWI mode iterator.
13015 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13016 *ashldi3_cconly_rex64 using SWI mode iterator.
13017 * config/i386/i386.c (ix86_split_ashl): Update for renamed
13018 x86_shift<mode>_adj_{1,2}.
13019 (ix86_split_ashr): Ditto.
13020 (ix86_split_lshr): Ditto.
13021
13022 2010-04-09 Richard Guenther <rguenther@suse.de>
13023
13024 * target.h (builtin_conversion): Pass in input and output types.
13025 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13026 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13027 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13028 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13029
13030 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13031 Handle AVX modes.
13032 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13033
13034 2010-04-09 Richard Guenther <rguenther@suse.de>
13035
13036 PR target/43152
13037 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13038
13039 2010-04-09 Richard Guenther <rguenther@suse.de>
13040
13041 * tree-vectorizer.h (struct _stmt_vec_info): Document
13042 that vectype is the type of the LHS.
13043 (supportable_widening_operation, supportable_narrowing_operation):
13044 Get both input and output vector types as arguments.
13045 (vect_is_simple_use_1): Declare.
13046 (get_same_sized_vectype): Likewise.
13047 * tree-vect-loop.c (vect_determine_vectorization_factor):
13048 Set STMT_VINFO_VECTYPE to the vector type of the def.
13049 (vectorizable_reduction): Adjust.
13050 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13051 Adjust. Specify the output vector type.
13052 (vect_pattern_recog_1): Adjust.
13053 * tree-vect-stmts.c (get_same_sized_vectype): New function.
13054 (vectorizable_call): Adjust.
13055 (vectorizable_conversion): Likewise.
13056 (vectorizable_operation): Likewise.
13057 (vectorizable_type_demotion): Likewise.
13058 (vectorizable_type_promotion): Likewise.
13059 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13060 the def.
13061 (vect_is_simple_use_1): New function.
13062 (supportable_widening_operation): Get both input and output
13063 vector types.
13064 (supportable_narrowing_operation): Likewise.
13065 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13066
13067 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
13068
13069 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13070 __thiscall and _thiscall as predefined macros.
13071 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13072 thiscall attribute handling.
13073 (ix86_comp_type_attributes): Likewise.
13074 (ix86_function_regparm): Likewise.
13075 (ix86_return_pops_args): Likewise.
13076 (init_cumulative_args): Likewise.
13077 (find_drap_reg): Likewise.
13078 (ix86_static_chain): Likewise.
13079 (x86_this_parameter): Likewise.
13080 (x86_output_mi_thunk): Likewise.
13081 (ix86_attribute_table): Add description for thiscall attribute.
13082 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13083 * doc/extend.texi: Add documentation for thiscall.
13084
13085 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13086
13087 PR c++/28584
13088 * c.opt (Wint-to-pointer-cast): Available in C++.
13089 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13090
13091 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
13092
13093 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13094 * calls.c (expand_call): Pass the function type to aggregate_value_p.
13095 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13096 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
13097 function type instead. Reorder and simplify checks.
13098
13099 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13100
13101 2010-04-08 Jing Yu <jingyu@google.com>
13102 Zdenek Dvorak <ook@ucw.cz>
13103
13104 PR tree-optimization/42720
13105 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13106 loop unswitch conditions here from ...
13107 (tree_unswitch_single_loop): ... here.
13108
13109 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13110
13111 * tree-if-conv.c: Fix comments and simplify logic.
13112
13113 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13114
13115 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13116 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
13117 (main_tree_if_conversion): Update call to tree_if_conversion.
13118
13119 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13120
13121 PR 42485
13122 * doc/invoke.texi (-b,-V): Delete.
13123 * doc/tm.texi: Do not mention -b.
13124 * gcc.c (display_help): Delete -b and -V.
13125 (process_command): Delete -b and -V.
13126 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13127
13128 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
13129 Wolfgang Gellerich <gellerich@de.ibm.com>
13130
13131 Implement target hook for loop unrolling
13132 * target.h (loop_unroll_adjust): Add a new target hook function.
13133 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13134 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13135 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13136 (s390_loop_unroll_adjust): Implement the new target hook for s390.
13137 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13138 target hook.
13139 (decide_unroll_stupid): Likewise.
13140
13141 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13142
13143 PR target/43643
13144 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13145
13146 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13147
13148 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13149 (Specific, *-*-solaris2*): Likewise.
13150 Don't prefer Sun as over GNU as.
13151
13152 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
13153
13154 * config/s390/s390.c (override_options): Adjust the z10 defaults
13155 for max-unroll-times, max-completely-peeled-insns
13156 and max-completely-peel-times.
13157
13158 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13159
13160 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13161 instructions for z10.
13162 (s390_expand_setmem): Likewise.
13163 (s390_expand_cmpmem): Likewise.
13164
13165 2010-04-08 Richard Guenther <rguenther@suse.de>
13166
13167 PR tree-optimization/43679
13168 * tree-ssa-pre.c (eliminate): Only propagate copies.
13169
13170 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13171
13172 PR bootstrap/43681
13173 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13174 set but not used variable warning.
13175
13176 2010-04-08 Wei Guozhi <carrot@google.com>
13177
13178 PR target/41653
13179 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13180 (arm_size_rtx_costs): Call the new function when optimized for size.
13181
13182 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13183
13184 PR debug/43670
13185 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13186 op0 is not a MEM, just return NULL instead of assertion
13187 failure.
13188 (discover_nonconstant_array_refs): Don't walk debug stmts.
13189
13190 2010-04-08 Doug Kwan <dougkwan@google.com>
13191
13192 * configure.ac: Recognize gold and do not use its version number
13193 to test ld features.
13194 * configure: Regenerate.
13195
13196 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
13197
13198 PR middle-end/40815
13199 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13200 (negate_value): Move code to push elements to broken_up_substracts ...
13201 (eliminate_plus_minus_pair): ... here. Push operands that have no
13202 negative pair to plus_negates.
13203 (repropagate_negates, init_reassoc, fini_reassoc): Update.
13204
13205 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13206
13207 * doc/install.texi (Configuration): Move description of
13208 --enable-lto, --with-libelf*, --enable-gold from Java section to
13209 general section.
13210
13211 * doc/generic.texi (Working with declarations)
13212 (Function Properties, C and C++ Trees): Fix typos.
13213 * doc/sourcebuild.texi (Top Level): Likewise.
13214
13215 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13216
13217 PR c/18624
13218 * tree.h (DECL_READ_P): Define.
13219 (struct tree_decl_common): Add decl_read_flag.
13220 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13221 a set but not used warning.
13222 (merge_decls): Merge DECL_READ_P flag.
13223 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13224 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13225 * c-common.c (handle_used_attribute, handle_unused_attribute):
13226 Likewise.
13227 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13228 New prototypes.
13229 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13230 New functions.
13231 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13232 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13233 c_parser_binary_expression, c_parser_cast_expression,
13234 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13235 Call default_function_array_read_conversion instead of
13236 default_function_array_conversion where needed.
13237 (c_parser_unary_expression, c_parser_conditional_expression,
13238 c_parser_postfix_expression_after_primary, c_parser_initelt):
13239 Likewise. Call mark_exp_read where needed.
13240 (c_parser_statement_after_labels, c_parser_asm_operands,
13241 c_parser_typeof_specifier, c_parser_sizeof_expression,
13242 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13243 where needed.
13244 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13245 New.
13246 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13247 (warn_unused_but_set_parameter): Default to warn_unused
13248 && extra_warnings.
13249 * doc/invoke.texi: Document -Wunused-but-set-variable and
13250 -Wunused-but-set-parameter.
13251
13252 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13253 used count variable.
13254 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13255 when operandN variables aren't used in the body of the expander
13256 or splitter.
13257 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13258 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13259 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13260 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13261 FOR_EACH_IMM_USE_ON_STMT): Likewise.
13262 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13263 * tree.c (PROCESS_ARG): Likewise.
13264
13265 2010-04-07 Simon Baldwin <simonb@google.com>
13266
13267 * diagnostic.h (diagnostic_override_option_index): New macro to
13268 set a diagnostic's option_index.
13269 * c-tree.h (c_cpp_error): Add warning reason argument.
13270 * opts.c (_warning_as_error_callback): New.
13271 (register_warning_as_error_callback): Store callback for
13272 warnings enabled via enable_warning_as_error.
13273 (enable_warning_as_error): Call callback, minor code tidy.
13274 * opts.h (register_warning_as_error_callback): Declare.
13275 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13276 response to -Werror=.
13277 (c_common_init_options): Register warning_as_error_callback in opts.c.
13278 * common.opt: Add -Wno-cpp option.
13279 * c-common.c (struct reason_option_codes_t): Map cpp warning
13280 reason codes to gcc option indexes.
13281 * (c_option_controlling_cpp_error): New function, lookup the gcc
13282 option index for a cpp warning reason code.
13283 * (c_cpp_error): Add warning reason argument, call
13284 c_option_controlling_cpp_error for diagnostic_override_option_index.
13285 * doc/invoke.texi: Document -Wno-cpp.
13286
13287 2010-04-07 Richard Guenther <rguenther@suse.de>
13288
13289 * ipa-reference.c (mark_load): Use get_base_address.
13290 (mark_store): Likewise.
13291
13292 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13293 inserting GIMPLE_NOPs into the IL.
13294 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13295 Explicitly strip handled components and indirect references.
13296
13297 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13298 folding address expressions.
13299 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13300 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13301 operand_equal_p to compare decls.
13302 (ptr_deref_may_alias_decl_p): Likewise.
13303 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13304 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13305 Handle reversed comparison ops.
13306 * tree-sra.c (asm_visit_addr): Use get_base_address.
13307 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13308 * ipa-reference.c (mark_address): Use get_base_address.
13309
13310 2010-04-07 Richard Guenther <rguenther@suse.de>
13311
13312 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13313 Propagate constants everywhere.
13314
13315 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13316
13317 PR debug/43516
13318 * tree.c (MAX_INT_CACHED_PREC): Define.
13319 (nonstandard_integer_type_cache): New array.
13320 (build_nonstandard_integer_type): Cache results for precision
13321 <= MAX_INT_CACHED_PREC.
13322
13323 2010-04-07 Richard Guenther <rguenther@suse.de>
13324
13325 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13326 -fargument-noalias-global, -fargument-noalias-anything): Remove.
13327 * common.opt: Likewise.
13328 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13329 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13330 (nonoverlapping_memrefs_p): Likewise.
13331 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13332 * opts.c (common_handle_option): Handle OPT_fargument_alias,
13333 OPT_fargument_noalias, OPT_fargument_noalias_anything and
13334 OPT_fargument_noalias_global for backward compatibility.
13335
13336 2010-04-07 Richard Guenther <rguenther@suse.de>
13337
13338 PR tree-optimization/43270
13339 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13340 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13341 * tree-ssa-pre.c (phi_translate_1): Adjust.
13342 (fully_constant_expression): Split out vn_reference handling to ...
13343 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13344 Fold reads from constant strings.
13345 (vn_reference_lookup): Handle fully constant references.
13346 (vn_reference_lookup_pieces): Likewise.
13347 * Makefile.in (expmed.o-warn): Add -Wno-error.
13348
13349 2010-04-07 Martin Jambor <mjambor@suse.cz>
13350
13351 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13352
13353 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
13354
13355 PR driver/41594
13356 * gcc.c: Add -static-libstdc++ to list of recognized options.
13357
13358 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13359
13360 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13361
13362 2010-04-07 Richard Guenther <rguenther@suse.de>
13363
13364 PR middle-end/42617
13365 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13366 bases build simple mem attributes to retain points-to information.
13367
13368 2010-04-07 Richard Guenther <rguenther@suse.de>
13369
13370 PR middle-end/42617
13371 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13372 preserve points-to related information.
13373
13374 2010-04-07 Richard Guenther <rguenther@suse.de>
13375
13376 PR middle-end/42617
13377 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13378 discard plain indirect references.
13379 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13380 * tree.c (tree_nop_conversion): Likewise.
13381
13382 2010-04-07 Dodji Seketeli <dodji@redhat.com>
13383
13384 PR debug/43628
13385 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13386
13387 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
13388
13389 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13390 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13391
13392 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13393
13394 * tree-if-conv.c: Fix indentation and comments.
13395
13396 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13397
13398 * tree-if-conv.c: Sort static functions in topological order.
13399
13400 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13401
13402 * tree-if-conv.c: Fix indentation and comments.
13403
13404 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13405
13406 PR middle-end/43519
13407 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13408 lang_hooks.types.type_for_size instead of
13409 build_nonstandard_integer_type.
13410 When converting an unsigned type to signed, double its precision.
13411 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13412 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13413 (graphite_create_new_loop_guard): When ub + 1 wraps around,
13414 use lb <= ub.
13415
13416 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13417
13418 PR middle-end/43519
13419 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13420 POINTER_PLUS_EXPR for pointer types.
13421
13422 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13423
13424 PR middle-end/43519
13425 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13426 * graphite-clast-to-gimple.c: Include langhooks.h.
13427 (max_signed_precision_type): New.
13428 (max_precision_type): Takes two types as arguments.
13429 (precision_for_value): New.
13430 (precision_for_interval): New.
13431 (gcc_type_for_interval): New.
13432 (gcc_type_for_value): New.
13433 (gcc_type_for_clast_term): New.
13434 (gcc_type_for_clast_red): New.
13435 (gcc_type_for_clast_bin): New.
13436 (gcc_type_for_clast_expr): Split up into several functions.
13437 (gcc_type_for_clast_eq): Rewritten.
13438 (compute_bounds_for_level): New.
13439 (compute_type_for_level_1): New.
13440 (compute_type_for_level): New.
13441 (gcc_type_for_cloog_iv): Removed.
13442 (gcc_type_for_iv_of_clast_loop): Rewritten.
13443 (graphite_create_new_loop): Compute the lower and upper bound types
13444 with gcc_type_for_clast_expr.
13445 (graphite_create_new_loop_guard): Same.
13446 (find_cloog_iv_in_expr): Removed.
13447 (compute_cloog_iv_types_1): Removed.
13448 (compute_cloog_iv_types): Removed.
13449 (gloog): Do not call compute_cloog_iv_types.
13450 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13451 GBB_CLOOG_IV_TYPES.
13452 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13453 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13454 (GBB_CLOOG_IV_TYPES): Removed.
13455
13456 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13457
13458 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13459 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13460 (detect_commutative_reduction): Same.
13461
13462 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13463
13464 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13465 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
13466 argument.
13467 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13468 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13469 (rewrite_commutative_reductions_out_of_ssa): Same.
13470 * passes.c (execute_function_todo): Call verify_ssa for every pass
13471 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
13472 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13473 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13474 with an extra argument.
13475 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
13476 verify_ssa only when the extra argument is true.
13477 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13478 with an extra argument.
13479 (tree_transform_and_unroll_loop): Same.
13480
13481 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13482
13483 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13484 for all the passes of the LNO having LOOP_CLOSED_SSA.
13485 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13486 * tree-loop-distribution.c (pass_loop_distribution): Same.
13487 * tree-pass.h (TODO_verify_loops): Removed.
13488 * tree-ssa-loop.c (pass_tree_loop_init): Same.
13489 (pass_lim): Same.
13490 (pass_tree_unswitch): Same.
13491 (pass_predcom): Same.
13492 (pass_vectorize): Same.
13493 (pass_linear_transform): Same.
13494 (pass_graphite_transforms): Same.
13495 (pass_iv_canon): Same.
13496 (pass_complete_unroll): Same.
13497 (pass_complete_unrolli): Same.
13498 (pass_parallelize_loops): Same.
13499 (pass_loop_prefetch): Same.
13500 (pass_iv_optimize): Same.
13501
13502 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
13503
13504 PR middle-end/32824
13505 * passes.c (init_optimization_passes): Move pass_lim before
13506 pass_copy_prop and pass_dce_loop.
13507
13508 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13509
13510 PR target/43667
13511 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13512 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13513 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13514 MULTI_* defines for 4 argument vpermil2p* builtins.
13515
13516 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13517
13518 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13519 * config/i386/i386.c (x86_maybe_negate_const_int): New.
13520 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13521 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13522 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13523 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13524 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13525 Use x86_maybe_negate_const_int to output insn mnemonic.
13526 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
13527 check from instruction predicate. Update comments.
13528 * config/i386/sync.md (sync_add<mode>): Use
13529 x86_maybe_negate_const_int to output insn mnemonic.
13530
13531 2010-04-06 Jan Hubicka <jh@suse.cz>
13532
13533 PR tree-optimization/42906
13534 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13535 IGNORE_SELF argument. Set visited_control_parents for fully
13536 processed BBs.
13537 (find_obviously_necessary_stmts): Update call of
13538 mark_control_dependent_edges_necessary.
13539 (propagate_necessity): Likewise. Handle PHI edges more curefully.
13540
13541 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13542
13543 * config/i386/i386.md: Remove comment about 'e' and 'E'
13544 operand modifier.
13545
13546 2010-04-06 Richard Guenther <rguenther@suse.de>
13547
13548 PR tree-optimization/43627
13549 * tree-vrp.c (extract_range_from_unary_expr): Widenings
13550 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13551 not varying.
13552
13553 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13554
13555 * BASE-VER: Change to 4.6.0.
13556
13557 PR target/43638
13558 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13559 handling.
13560
13561 2010-04-06 Richard Guenther <rguenther@suse.de>
13562
13563 PR middle-end/43661
13564 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13565
13566 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13567
13568 * doc/invoke.texi (Optimize Options): Document that LTO
13569 won't remove object access purely due to incompatible
13570 declarations.
13571
13572 2010-04-04 Matthias Klose <doko@ubuntu.com>
13573
13574 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13575 Initialize variable.
13576
13577 2010-04-03 Richard Guenther <rguenther@suse.de>
13578
13579 PR middle-end/42509
13580 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13581 require a non-NULL MEM_OFFSET.
13582
13583 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
13584
13585 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13586 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13587 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13588 config/alpha/predicates.md, config/arm/arm.md,
13589 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13590 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13591 config/darwin9.h, config/darwin.c, config/darwin.h,
13592 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13593 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13594 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13595 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13596 config/mips/mips.md, config/mn10300/mn10300.c,
13597 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13598 config/rs6000/aix.h, config/rs6000/dfp.md,
13599 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13600 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13601 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13602 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13603 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13604 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13605 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13606 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13607 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13608 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13609 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13610 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13611 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13612 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13613 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13614 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13615 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13616 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13617 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13618 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13619 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13620 opt-functions.awk, opth-gen.awk, params.def, passes.c,
13621 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13622 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13623 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13624 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13625 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13626 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13627 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13628 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13629 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13630 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13631 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13632 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13633 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13634 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13635
13636 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13637
13638 PR other/43620
13639 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13640 * aclocal.m4: Regenerate.
13641
13642 2010-04-02 Richard Guenther <rguenther@suse.de>
13643
13644 PR tree-optimization/43629
13645 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13646 if we have seen a constant value.
13647
13648 2010-04-02 Joseph Myers <joseph@codesourcery.com>
13649
13650 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13651
13652 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
13653
13654 PR target/43469
13655 * arm.c (legitimize_tls_address): Adjust call to
13656 gen_tls_load_dot_plus_four.
13657 (arm_note_pic_base): New function.
13658 (arm_cannot_copy_insn_p): Use it.
13659 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13660 constraint.
13661
13662 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13663
13664 PR bootstrap/43531
13665
13666 Revert:
13667 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13668
13669 * Makefile.in ($(out_object_file)): Depend on
13670 gt-$(basename $(notdir $(out_file))).h.
13671
13672 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
13673
13674 * config.gcc (lm32-*-rtems*): Add t-lm32.
13675
13676 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
13677
13678 * config.gcc: Add lm32-*-rtems*.
13679 * config/lm32/rtems.h: New file.
13680
13681 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
13682
13683 PR target/42609
13684 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13685
13686 2010-04-01 Jakub Jelinek <jakub@redhat.com>
13687
13688 * dwarf2out.c (output_compilation_unit_header): For
13689 -gdwarf-4 use version 4 instead of version 3.
13690 (output_line_info): For version 4 and above emit additional
13691 maximum ops per insn header field.
13692 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13693
13694 * dwarf2out.c (is_c_family, is_java): Remove.
13695 (lower_bound_default): New function.
13696 (add_bound_info, gen_descr_array_type_die): Use it.
13697
13698 2010-04-01 Dodji Seketeli <dodji@redhat.com>
13699
13700 PR debug/43325
13701 * dwarf2out.c (gen_variable_die): Allow debug info for variable
13702 re-declaration when it happens in a function.
13703
13704 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
13705
13706 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
13707 (cgraph_remove_function_insertion_hook): Same.
13708 (cgraph_call_function_insertion_hooks): Same.
13709
13710 2010-04-01 Richard Guenther <rguenther@suse.de>
13711
13712 PR middle-end/43614
13713 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
13714 and TREE_THIS_VOLATILE.
13715 (copy_ref_info): Likewise.
13716 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
13717 * tree.c (build6_stat): Ignore side-effects of all but arg5
13718 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
13719 TARGET_MEM_REF.
13720
13721 2010-04-01 Richard Guenther <rguenther@suse.de>
13722
13723 PR tree-optimization/43607
13724 * ipa-type-escape.c (check_call): Do not access non-existing
13725 arguments.
13726
13727 2010-04-01 Richard Guenther <rguenther@suse.de>
13728
13729 PR middle-end/43602
13730 Revert
13731 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
13732 Jack Howarth <howarth@bromo.med.uc.edu>
13733
13734 * tree-profile.c (tree_init_ic_make_global_vars): Make static
13735 variables TLS.
13736
13737 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13738
13739 * doc/install.texi (Prerequisites): Document libelf usability on
13740 IRIX 5/6 and Solaris 2.
13741 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
13742 Update GNU as, GNU ld requirements.
13743 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
13744 Document Sun Studio compiler download.
13745 Update and simplify as, ld recommendations.
13746 (Specific, *-*-solaris2.7): Note obsoletion, removal.
13747
13748 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13749
13750 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
13751 with_tune_32 to pentium4.
13752
13753 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
13754
13755 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
13756
13757 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13758
13759 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
13760 obsoletion, removal.
13761 Update IDO URL.
13762 Document GNU as requirement.
13763 Update configure requirements.
13764 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
13765 Recomment IRIX 6.5.18+.
13766 Document IDF/IDL requirement.
13767 Document GNU as requirement.
13768 Document GNU ld bootstrap failure.
13769 Remove freeware.sgi.com reference.
13770
13771 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13772
13773 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
13774 UNIX V4.0, V5.0 obsoletion, removal.
13775 Remove --with-gc=simple reference.
13776 Update VM requirements during bootstrap.
13777 Remove -oldas bootstrap description.
13778 Update binutils reference.
13779 Remove comparison failure note.
13780
13781 2010-03-31 Richard Guenther <rguenther@suse.de>
13782 Zdenek Dvorak <ook@ucw.cz>
13783 Sebastian Pop <sebastian.pop@amd.com>
13784
13785 PR middle-end/43464
13786 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
13787 with multiple arguments.
13788 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
13789
13790 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13791
13792 * graphite-dependences.c (print_pddr): Call print_pdr with an
13793 extra argument.
13794 * graphite-poly.c (debug_pdr): Add an extra argument for the
13795 verbosity level.
13796 (print_pdr): Same.
13797 (print_pbb_domain): Same.
13798 (print_pbb): Same.
13799 (print_scop_context): Same.
13800 (print_scop): Same.
13801 (print_cloog): Same.
13802 (debug_pbb_domain): Same.
13803 (debug_pbb): Same.
13804 (print_pdrs): Same.
13805 (debug_pdrs): Same.
13806 (debug_scop_context): Same.
13807 (debug_scop): Same.
13808 (debug_cloog): Same.
13809 (print_scop_params): Same.
13810 (debug_scop_params): Same.
13811 (print_iteration_domain): Same.
13812 (print_iteration_domains): Same.
13813 (debug_iteration_domain): Same.
13814 (debug_iteration_domains): Same.
13815 (print_scattering_function): Same.
13816 (print_scattering_functions): Same.
13817 (debug_scattering_function): Same.
13818 (debug_scattering_functions): Same.
13819 * graphite-poly.h (debug_pdr): Update declaration.
13820 (print_pdr): Same.
13821 (print_pbb_domain): Same.
13822 (print_pbb): Same.
13823 (print_scop_context): Same.
13824 (print_scop): Same.
13825 (print_cloog): Same.
13826 (debug_pbb_domain): Same.
13827 (debug_pbb): Same.
13828 (print_pdrs): Same.
13829 (debug_pdrs): Same.
13830 (debug_scop_context): Same.
13831 (debug_scop): Same.
13832 (debug_cloog): Same.
13833 (print_scop_params): Same.
13834 (debug_scop_params): Same.
13835 (print_iteration_domain): Same.
13836 (print_iteration_domains): Same.
13837 (debug_iteration_domain): Same.
13838 (debug_iteration_domains): Same.
13839 (print_scattering_function): Same.
13840 (print_scattering_functions): Same.
13841 (debug_scattering_function): Same.
13842 (debug_scattering_functions): Same.
13843
13844 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13845
13846 * graphite-poly.c (print_scattering_function_1): New.
13847 (print_scattering_function): Call it.
13848 (print_scop_params): Remove spaces at the end of lines.
13849 (print_cloog): New.
13850 (debug_cloog): New.
13851 * graphite-poly.h (print_cloog): Declared.
13852 (debug_cloog): Declared.
13853
13854 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13855
13856 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
13857 in loop->header.
13858 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
13859 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
13860 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
13861 to switch between adding the IV bump in loop->latch or in loop->header.
13862
13863 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13864
13865 * graphite-poly.c (print_scattering_function): Pretty print following
13866 the scoplib format.
13867 (print_pdr): Same.
13868 (print_pbb_domain): Same.
13869 (dump_gbb_cases): Same.
13870 (dump_gbb_conditions): Same.
13871 (print_pdrs): Same.
13872 (print_pbb): Same.
13873 (print_scop_params): Same.
13874 (print_scop_context): Same.
13875 (print_scop): Same.
13876 (print_pbb_body): New.
13877 (lst_indent_to): New.
13878 (print_lst): Start new lines with a #.
13879 * graphite-poly.h (pbb_bb): New.
13880 (pbb_index): Use pbb_bb.
13881 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
13882 disjuncts.
13883 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
13884
13885 2010-03-31 Jakub Jelinek <jakub@redhat.com>
13886
13887 * dwarf2out.c (size_of_die): For -gdwarf-4 use
13888 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
13889 and 0 instead of 1 for dw_val_class_flag.
13890 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
13891 dw_val_class_range_list, dw_val_class_loc_list,
13892 dw_val_class_lineptr and dw_val_class_macptr, use
13893 DW_FORM_flag_present for dw_val_class_flag and
13894 DW_FORM_exprloc for dw_val_class_loc.
13895 (output_die): For -gdwarf-4 print dw_val_class_loc
13896 size as uleb128 instead of 1 or 2 bytes and don't print
13897 anything for dw_val_class_flag.
13898
13899 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
13900 instead of cselib_lookup following by tweaking locs->setting_insn.
13901
13902 PR bootstrap/43596
13903 * cselib.c (cselib_process_insn): Clear cselib_current_insn
13904 even before returning from label, setjmp call or volatile asm
13905 handling.
13906
13907 2010-03-31 Richard Guenther <rguenther@suse.de>
13908
13909 PR middle-end/43600
13910 * cgraphunit.c (cgraph_output_in_order): Do not allocate
13911 temporary data on stack.
13912
13913 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13914
13915 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
13916 (PUSHSECTION_ASM_OP): Remove.
13917 (POPSECTION_ASM_OP): Remove.
13918 (PUSHSECTION_FORMAT): Remove.
13919 * config/sol2.h (PUSHSECTION_FORMAT): Define.
13920 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
13921 * config/sol2.c (solaris_output_init_fini): Use it.
13922
13923 2010-03-31 Jie Zhang <jie@codesourcery.com>
13924
13925 PR 43574
13926 * opt-functions.awk (var_type_struct): Use signed char type
13927 for simple variables.
13928
13929 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13930
13931 * config/sol2.c: Include output.h.
13932 (solaris_assemble_visibility): New function.
13933 * config/t-sol2 (sol2.o): Add output.h dependency.
13934 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13935 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13936 Redefine.
13937
13938 2010-03-31 Jakub Jelinek <jakub@redhat.com>
13939
13940 PR target/43580
13941 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13942 V2SImode or XFmode on PRE_DEC.
13943
13944 PR debug/43557
13945 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13946 BLKmode.
13947
13948 2010-03-31 Jie Zhang <jie@codesourcery.com>
13949
13950 PR 43562
13951 * reload.h (caller_save_initialized_p): Declare.
13952 * toplev.c (backend_init_target): Don't call
13953 init_caller_save but set caller_save_initialized_p to false.
13954 * caller-save.c (caller_save_initialized_p): Define.
13955 (init_caller_save): Check caller_save_initialized_p.
13956 * ira.c (ira): Call init_caller_save if flag_caller_saves.
13957
13958 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13959
13960 PR target/39048
13961 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13962 and soft-fp/t-softfp to tmake_file.
13963 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13964 (LIBGCC2_TF_CEXT): Define.
13965 (TF_SIZE): Define.
13966
13967 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
13968
13969 PR debug/42977
13970 * cselib.c (n_useless_values): Document handling of debug locs.
13971 (n_useless_debug_values, n_debug_values): New variables.
13972 (new_elt_loc_list): Don't add to debug values, keep count.
13973 (promote_debug_loc): New.
13974 (cselib_reset_table): Zero new variables.
13975 (entry_and_rtx_equal_p): Promote debug locs.
13976 (discard_useless_locs): Increment n_useless_debug_values for
13977 debug values.
13978 (remove_useless_values): Adjust n_useless_values and n_debug_values
13979 with n_useless_debug_values.
13980 (add_mem_for_addr): Promote debug locs.
13981 (cselib_lookup_mem): Likewise.
13982 (cselib_lookup_addr): Renamed to...
13983 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
13984 (cselib_log_lookup): ... this. Turn into...
13985 (cselib_lookup_addr): ... new wrapper.
13986 (cselib_lookup_from_insn): New.
13987 (cselib_invalidate_regno): Increment n_useless_debug_values for
13988 debug values.
13989 (cselib_invalidate_mem): Likewise.
13990 (cselib_process_insn): Take n_deleted and n_debug_values into
13991 account to guard remove_useless_value call.
13992 (cselib_finish): Zero n_useless_debug_values.
13993 * cselib.h (cselib_lookup_from_insn): Declare.
13994 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13995 (sched_analyze_2): Likewise.
13996
13997 2010-03-30 Jakub Jelinek <jakub@redhat.com>
13998
13999 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14000 functions.
14001 (adjust_mems): Replace narrowing SUBREG of expression containing
14002 just PLUS, MINUS, MULT and ASHIFT of registers and constants
14003 with operations in the narrower mode.
14004
14005 PR debug/43593
14006 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14007 regs_invalidated_by_call instead all call_used_reg_set registers.
14008
14009 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
14010
14011 PR middle-end/43430
14012 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14013 pointer comparisons with types_compatible_p.
14014 * tree-vect-stmts.c (vectorizable_call): Same.
14015 (vectorizable_condition): Same.
14016
14017 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14018
14019 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14020 stack check if the mask would be zero.
14021
14022 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14023 Jack Howarth <howarth@bromo.med.uc.edu>
14024
14025 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14026 variables TLS.
14027
14028 2010-03-30 Joseph Myers <joseph@codesourcery.com>
14029
14030 PR other/25232
14031 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
14032 and __unordtf2.
14033 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14034 Include ___unordxf2 and ___unordtf2.
14035 * config/i386/libgcc-glibc.ver: Do not define inheritance from
14036 GCC_4.4.0 here.
14037
14038 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
14039
14040 * config/lm32/t-lm32: New file.
14041 * config.gcc: Use the above file when targetting lm32.
14042
14043 2010-03-28 Duncan Sands <baldrick@free.fr>
14044
14045 * Makefile.in (PLUGIN_HEADERS): Add except.h.
14046
14047 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14048
14049 PR middle-end/43431
14050 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14051 Improve vectorization cost model diagnostic.
14052
14053 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14054
14055 PR middle-end/43436
14056 * tree-vect-data-refs.c (vect_analyze_data_refs): When
14057 compute_data_dependences_for_loop returns false, early exit
14058 and output an extra diagnostic for the failed data reference
14059 analysis.
14060
14061 2010-03-29 Richard Guenther <rguenther@suse.de>
14062
14063 PR tree-optimization/43560
14064 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14065 (can_sm_ref_p): Treat stores to readonly locations as trapping.
14066
14067 2010-03-29 Jie Zhang <jie@codesourcery.com>
14068
14069 PR 43564
14070 * toplev.c (process_options): Set optimization_default_node
14071 and optimization_current_node.
14072 * opts.c (decode_options): Don't set optimization_default_node
14073 and optimization_current_node.
14074
14075 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
14076
14077 * config/rtems.h: Abandon -qrtems_debug.
14078
14079 2010-03-28 Jan Hubicka <jh@suse.cz>
14080
14081 PR tree-optimization/43505
14082 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14083 map should not be copied.
14084
14085 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14086
14087 PR middle-end/41674
14088 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14089 cdtors, set DECL_PRESERVE_P.
14090 * ipa.c (cgraph_externally_visible_p): Return true if declaration
14091 should be preseved.
14092
14093 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
14094
14095 PR tree-optimization/43528
14096 * stor-layout.c (place_field): Check that constant fits into
14097 unsigned HWI when skipping calculation of MS bitfield layout.
14098
14099 2010-03-27 Jan Hubicka <jh@suse.cz>
14100
14101 PR middle-end/43391
14102 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14103 notice_global_symbol work.
14104
14105 2010-03-27 Jakub Jelinek <jakub@redhat.com>
14106
14107 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14108 instead of dwarf2out_decl.
14109 (struct var_loc_node): Remove section_label field.
14110 (dwarf2out_function_decl): New function.
14111 (dwarf2out_var_location): Don't set section_label field.
14112 (dwarf2out_begin_function): Don't empty decl_loc_table here.
14113
14114 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14115
14116 PR tree-optimization/43544
14117 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14118 First argument for builtin vectorized function hook is now a
14119 tree to be able to distinguish between machine specific and
14120 standard builtins.
14121 * targhooks.c (default_builtin_vectorized_function): Ditto.
14122 * targhooks.h (default_builtin_vectorized_function): Ditto.
14123 * target.h (struct gcc_target): Ditto.
14124 * tree-vect-stmts.c (vectorizable_function): Ditto.
14125 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14126 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14127 Ditto.
14128
14129 2010-03-26 Joseph Myers <joseph@codesourcery.com>
14130
14131 PR c/43381
14132 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14133 nested binding iff it is a FUNCTION_DECL.
14134 (store_parm_decls_newstyle): Pass nested=true to bind for
14135 FUNCTION_DECLs amongst parameters.
14136
14137 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14138
14139 * var-tracking.c (vt_expand_loc_callback): Don't run
14140 cselib_expand_value_rtx_cb in dummy mode if
14141 cselib_dummy_expand_value_rtx_cb returned false.
14142
14143 * var-tracking.c (emit_note_insn_var_location): For one part
14144 notes with offset 0, don't add EXPR_LIST around the location.
14145 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14146 add_location_or_const_value_attribute): Adjust for that change.
14147
14148 PR debug/43540
14149 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14150 into first operand and location into second.
14151 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14152 dw_cfi_oprnd_loc for DW_CFA_expression.
14153 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14154 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14155 assume first argument is regnum and second argument is location.
14156
14157 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14158
14159 PR target/42113
14160 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14161 of scratch register to DImode. Split to DImode comparison operator.
14162 Use SImode subreg of scratch register in the multiplication.
14163 (*cmp_sadd_sidi): Ditto.
14164 (*cmp_ssub_si): Ditto.
14165 (*cmp_ssub_sidi): Ditto.
14166
14167 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14168
14169 PR target/43524
14170 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14171 Remove invalid assert and wrong comment.
14172
14173 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14174
14175 PR debug/43516
14176 * flags.h (final_insns_dump_p): New extern.
14177 * final.c (final_insns_dump_p): New variable.
14178 (rest_of_clean_state): Set it before -fdump-final-insns=
14179 dumping, clear afterwards.
14180 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14181 MEM_ALIAS_SET on MEMs.
14182
14183 2010-03-26 David S. Miller <davem@davemloft.net>
14184
14185 * configure.ac: Fix sparc GOTDATA_OP bug check.
14186 * configure: Rebuild.
14187
14188 2010-03-26 Alan Modra <amodra@gmail.com>
14189
14190 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14191
14192 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14193
14194 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14195 TLS_SECTION_ASM_FLAG.
14196
14197 2010-03-25 Jakub Jelinek <jakub@redhat.com>
14198
14199 PR bootstrap/43511
14200 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14201 Clear first_function_block_is_cold.
14202
14203 PR c/43385
14204 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14205 argument if the argument is truth_value_p.
14206
14207 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14208
14209 * config/rs6000/constraints.md: Update copyright year for my changes.
14210
14211 PR target/43484
14212 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14213 used in reg+reg addressing, swap registers.
14214
14215 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14216
14217 PR debug/43293
14218 * target.h (struct gcc_target): Add code_end hook.
14219 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14220 if not yet defined.
14221 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14222 * toplev.c (compile_file): Call targetm.asm_out.code_end
14223 hook before unwind info/debug info output.
14224 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14225 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14226 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14227 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14228 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14229 * config/i386/i386.c (ix86_file_end): Renamed to...
14230 (ix86_code_end): ... this. Make static. Don't call
14231 file_end_indicate_exec_stack. Emit unwind info using
14232 final_start_function/final_end_function.
14233 (darwin_x86_file_end): Remove.
14234 (TARGET_ASM_CODE_END): Define.
14235 * config/i386/i386.h (TARGET_ASM_FILE_END,
14236 NEED_INDICATE_EXEC_STACK): Don't define.
14237 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14238 (TARGET_ASM_FILE_END): Define to darwin_file_end.
14239 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14240 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14241
14242 PR target/43498
14243 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14244 at the beginning and final_end_function at the end.
14245 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14246
14247 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14248
14249 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14250 and Sun as TLS syntax.
14251 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14252 * configure: Regenerate.
14253 * config.in: Regenerate.
14254 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14255 (default_elf_asm_named_section): Use it.
14256 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14257 (i386_output_dwarf_dtprel): Likewise.
14258 (output_addr_const_extra): Likewise.
14259 (output_pic_addr_const): Lowercase @GOTTPOFF.
14260 (output_addr_const_extra): Likewise.
14261 (output_pic_addr_const): Lowercase @GOTNTPOFF.
14262 (output_addr_const_extra): Likewise.
14263 (output_pic_addr_const): Lowercase @INDNTPOFF.
14264 (output_addr_const_extra): Likewise.
14265 (output_pic_addr_const): Lowercase @NTPOFF.
14266 (output_addr_const_extra): Likewise.
14267 (output_pic_addr_const): Lowercase @TPOFF.
14268 (output_addr_const_extra): Likewise.
14269 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14270 (*tls_global_dynamic_64): Likewise.
14271 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14272 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14273
14274 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14275 (ASM_OUTPUT_TLS_COMMON): Use it.
14276 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14277
14278 PR target/38118
14279 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14280 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14281 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14282 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14283 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14284 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14285
14286 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14287
14288 * config/i386/i386.c (override_options): Don't accept
14289 -mtls-dialect=sun any longer.
14290 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14291 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14292 (*tls_local_dynamic_base_32_sun): Likewise.
14293 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14294
14295 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14296
14297 PR debug/43508
14298 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14299 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14300
14301 PR debug/43479
14302 * ira.c (adjust_cleared_regs): New function.
14303 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14304
14305 PR debug/19192
14306 PR debug/43479
14307 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14308 from gimple_block.
14309 * expr.c (expand_expr_real): Restore previous
14310 curr_insn_source_location and curr_insn_block after
14311 expand_expr_real_1 call.
14312 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14313 instead of expand_expr_real_1.
14314
14315 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
14316
14317 PR rtl-optimization/43413
14318 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14319 hard regs too.
14320
14321 2010-03-22 James E. Wilson <wilson@codesourcery.com>
14322
14323 PR target/43348
14324 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14325 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14326
14327 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
14328
14329 * config/i386/i386.c (ix86_target_string): Add -mfma.
14330 Fix a typo in comment.
14331
14332 2010-03-22 Mike Stump <mikestump@comcast.net>
14333
14334 PR target/23071
14335 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14336 Don't overly align based upon packed packed fields.
14337
14338 2010-03-22 Jason Merrill <jason@redhat.com>
14339
14340 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14341 Use () rather than [], and move before the element type.
14342
14343 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14344
14345 * doc/configfiles.texi (Configuration Files): Removed
14346 fixinc/Makefile*, intl/Makefile.*.
14347 * doc/makefile.texi: Fixed markup. Abstract from version
14348 control system used.
14349 (Makefile): Removed obsolete gcc/java/parse.y example.
14350 * doc/sourcebuild.texi: Likewise.
14351 (Top Level): Added config, gnattools, libdecnumber, libgcc,
14352 libgomp, libssp. Removed fastjar.
14353 (Miscellaneous Docs): Clarify location.
14354 Added COPYING3, COPYING3.LIB.
14355 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14356
14357 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14358
14359 PR target/38085
14360 * config/i386/i386.c (x86_function_profiler)
14361 [!NO_PROFILE_COUNTERS]: Fix typo.
14362 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14363 instead of callq.
14364
14365 2010-03-22 Janis Johnson <janis187@us.ibm.com>
14366 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14367
14368 * doc/sourcebuild.texi (Test Directives): Split into six
14369 subsections, with most of the current text in new subsections
14370 Directives, Selectors, and Final Actions.
14371 (Directives): Split list of test directives into multiple
14372 subsubsections.
14373 (Selectors): Describe use and syntax of selectors.
14374 (Effective-Target Keywords): Describe all existing keywords.
14375 (Add Options): Describe features for dg-add-options.
14376 (Require Support): Describe variants of dg-require-support.
14377 (Final Actions): Describe commands to use in dg-final.
14378
14379 2010-03-22 Michael Matz <matz@suse.de>
14380
14381 PR middle-end/43475
14382 * recog.c (validate_replace_rtx_group): Replace also in
14383 REG_EQUAL and REG_EQUIV notes.
14384
14385 2010-03-22 Richard Guenther <rguenther@suse.de>
14386
14387 PR tree-optimization/43390
14388 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14389 sure vector extracts are type correct.
14390
14391 2010-03-22 Richard Guenther <rguenther@suse.de>
14392
14393 PR middle-end/40106
14394 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14395 x * sqrt (x) even when optimizing for size if the target
14396 has native support for sqrt.
14397
14398 2010-03-22 Jakub Jelinek <jakub@redhat.com>
14399
14400 * varasm.c (make_decl_rtl_for_debug): Also clear
14401 flag_mudflap for the duration of make_decl_rtl call.
14402
14403 PR debug/43443
14404 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14405 locs from preserved VALUEs.
14406
14407 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14408
14409 PR middle-end/42718
14410 * pa.md (movmemsi): Set align to one if zero.
14411 (movmemdi): Likewise.
14412
14413 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
14414
14415 PR target/42321
14416 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14417 with their corresponding prologue pushes.
14418
14419 2010-03-20 Andrew Pinski <pinskia@gmail.com>
14420
14421 PR target/43156
14422 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14423 at the begining or end.
14424 (spu_expand_epilogue): Likewise.
14425
14426 2010-03-20 Richard Guenther <rguenther@suse.de>
14427
14428 PR rtl-optimization/43438
14429 * combine.c (make_extraction): Properly zero-/sign-extend an
14430 extraction of the low part of a CONST_INT. Also handle
14431 CONST_DOUBLE.
14432
14433 2010-03-19 Mike Stump <mikestump@comcast.net>
14434
14435 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14436 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14437 (override_options): Use SUBTARGET32_DEFAULT_CPU.
14438
14439 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14440
14441 PR c/43211
14442 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14443 an error.
14444
14445 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
14446
14447 PR rtl-optimization/42258
14448 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14449 use that may match DEF.
14450
14451 PR target/40697
14452 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14453 the cost of loading the constant rather than assuming
14454 COSTS_N_INSNS (1).
14455 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14456 outer code is AND, do the same tests as the andsi3 expander and
14457 return COSTS_N_INSNS (1) if and is cheap.
14458
14459 * optabs.c (avoid_expensive_constant): Fix formatting.
14460
14461 2010-03-19 Michael Matz <matz@suse.de>
14462
14463 PR c++/43116
14464 * attribs.c (decl_attributes): When rebuilding a function pointer
14465 type use the same qualifiers as the original pointer type.
14466
14467 2010-03-19 Martin Jambor <mjambor@suse.cz>
14468
14469 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14470 and is_gimple_ip_invariant_address.
14471
14472 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14473
14474 Revert
14475 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14476
14477 * config/arm/arm.c (arm_override_options): Turn off
14478 flag_dwarf2_cfi_asm for AAPCS variants.
14479
14480 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14481
14482 PR target/43399
14483 * config/arm/arm.c (emit_multi_reg_push): Update comments.
14484 Use PRE_MODIFY instead of PRE_DEC.
14485 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14486 (vfp_emit_fstmd): Likewise.
14487
14488 2010-03-19 Michael Matz <matz@suse.de>
14489
14490 PR target/43305
14491 * builtins.c (expand_builtin_interclass_mathfn,
14492 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14493 if that fails.
14494
14495 2010-03-19 Richard Guenther <rguenther@suse.de>
14496
14497 PR tree-optimization/43415
14498 * tree-ssa-pre.c (phi_translate): Split out worker to ...
14499 (phi_translate_1): ... this.
14500 (phi_translate): Move all caching here. Cache all NARY
14501 and REFERENCE translations.
14502
14503 2010-03-19 David S. Miller <davem@davemloft.net>
14504
14505 With help from Eric Botcazou.
14506 * config/sparc/sparc.c: Include dwarf2out.h.
14507 (emit_pic_helper): Delete.
14508 (pic_helper_symbol_name): Delete.
14509 (pic_helper_emitted_p): Delete.
14510 (pic_helper_needed): New.
14511 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14512 (get_pc_thunk_name): New.
14513 (load_pic_register): Remove 'delay_pic_helper' arg. Use
14514 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14515 Set pic_helper_needed to true. Don't call emit_pic_helper.
14516 (sparc_expand_prologue): Update load_pic_register call.
14517 (sparc_output_mi_thunk): Likewise.
14518 (sparc_file_end): Emit a hidden comdat symbol for the PIC
14519 thunk if possible. Output CFI information as needed.
14520
14521 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14522 Jack Howarth <howarth@bromo.med.uc.edu>
14523
14524 PR target/36399
14525 * config/i386/i386.h: Fix ABI on darwin x86-32.
14526
14527 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
14528
14529 * tree.h: Declare make_decl_rtl_for_debug.
14530 * varasm.c (make_decl_rtl_for_debug): New.
14531 * dwarf2out.c (rtl_for_decl_location): Call it.
14532 * cfgexpand.c (expand_debug_expr): Call it.
14533
14534 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14535
14536 PR bootstrap/43399
14537 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14538 mem_mode.
14539
14540 PR bootstrap/43403
14541 * var-tracking.c (vt_init_cfa_base): Do nothing if
14542 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14543
14544 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
14545
14546 PR debug/42873
14547 * var-tracking.c (canonicalize_vars_star): New.
14548 (dataflow_post_merge_adjust): Use it.
14549
14550 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14551
14552 PR debug/43058
14553 * var-tracking.c (non_suitable_const): New function.
14554 (add_uses): For DEBUG_INSNs with constants, don't record any
14555 value, instead just the constant value itself.
14556 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14557 is not VAR_LOC_UNKNOWN_P, set var to the constant.
14558 (emit_notes_in_bb): Likewise.
14559 (emit_note_insn_var_location): For onepart variables if
14560 cur_loc is a VOIDmode constant, use DECL_MODE.
14561
14562 2010-03-18 Martin Jambor <mjambor@suse.cz>
14563
14564 PR middle-end/42450
14565 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14566 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14567 all non-clones. Moved call redirection...
14568 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14569 (cgraph_materialize_all_clones): Dispose of all
14570 combined_args_to_skip bitmaps.
14571 (verify_cgraph_node): Do not check for edges pointing to wrong
14572 nodes in inline clones.
14573 * tree-inline.c (copy_bb): Call
14574 cgraph_redirect_edge_call_stmt_to_callee.
14575 * ipa.c (cgraph_remove_unreachable_nodes): Call
14576 cgraph_node_remove_callees even when there are used clones.
14577
14578 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14579
14580 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14581
14582 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14583
14584 PR target/43383
14585 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14586 for 32bit.
14587
14588 2010-03-18 Michael Matz <matz@suse.de>
14589
14590 PR middle-end/43419
14591 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14592 into sqrt(x) if we need to preserve signed zeros.
14593
14594 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
14595 Eric Botcazou <ebotcazou@adacore.com>
14596
14597 PR rtl-optimization/43360
14598 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14599 note if we don't know its invariant status.
14600
14601 2010-03-18 Michael Matz <matz@suse.de>
14602
14603 PR tree-optimization/43402
14604 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14605 PHI chains of ssa names registered for update.
14606
14607 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
14608
14609 PR target/42427
14610 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14611 non-offsettable and pre_modify update addressing.
14612 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14613 and "2" alternatives "#".
14614 (*movdd_softfloat32): Make all alternatives "#";
14615 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14616 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14617 (*movdf_softfloat32): Make all alternatives "#";
14618 (movdi): Use the new DIFD mode iterator to create a common splitter
14619 for movdi, movdf and movdd patterns.
14620
14621 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
14622
14623 * common.opt (dumpdir): Remove redundant tab.
14624
14625 2010-03-17 Martin Jambor <mjambor@suse.cz>
14626
14627 PR tree-optimization/43347
14628 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14629 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14630
14631 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
14632
14633 PR rtl-optimization/42216
14634 * regrename.c (create_new_chain): New function, broken out from...
14635 (scan_rtx_reg): ... here. Call it. Handle the case where we are
14636 appending a use to an empty chain.
14637 (build_def_use): Remove previous changes that convert OP_INOUT to
14638 OP_OUT operands; instead detect the case where an OP_INOUT operand
14639 uses a previously untracked register and create an empty chain for it.
14640
14641 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14642
14643 * doc/extend.texi (Function Attributes): Rewrite unfinished
14644 sentence in ms_abi documentation.
14645
14646 2010-03-17 Alan Modra <amodra@gmail.com>
14647
14648 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14649 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14650 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14651 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14652
14653 2010-03-16 Richard Henderson <rth@redhat.com>
14654
14655 PR middle-end/43365
14656 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14657 (lower_try_finally): Save and restore eh_seq around the expansion
14658 of the try-finally.
14659
14660 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
14661
14662 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14663 statements before splitting block.
14664
14665 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14666
14667 * doc/sourcebuild.texi (Testsuites): Fix markup.
14668 Use pathnames relative to gcc/testsuite.
14669 (Test Directives): Move description of how timeout is determined.
14670 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14671 (C Tests): Correct gcc.misc-tests directory.
14672 Framework tests now live in gcc.test-framework.
14673
14674 2010-03-16 Richard Guenther <rguenther@suse.de>
14675
14676 PR middle-end/43379
14677 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14678 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14679
14680 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
14681 Alexandre Oliva <aoliva@redhat.com>
14682
14683 PR tree-optimization/42917
14684 * lambda-code.c (remove_iv): Skip debug statements.
14685 (lambda_loopnest_to_gcc_loopnest): Likewise.
14686 (not_interesting_stmt): Debug statements are not interesting.
14687
14688 2010-03-16 Jakub Jelinek <jakub@redhat.com>
14689
14690 PR debug/43051
14691 PR debug/43092
14692 * cselib.c (cselib_preserve_constants,
14693 cfa_base_preserved_val): New static variables.
14694 (preserve_only_constants): New function.
14695 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14696 clear its REG_VALUES. If cselib_preserve_constants, don't
14697 empty the whole hash table, but preserve there VALUEs with constants,
14698 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14699 (cselib_preserve_cfa_base_value): New function.
14700 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14701 (cselib_init): Change argument to int bitfield. Set
14702 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14703 is in it.
14704 (cselib_finish): Clear cselib_preserve_constants and
14705 cfa_base_preserved_val.
14706 * cselib.h (enum cselib_record_what): New enum.
14707 (cselib_init): Change argument to int.
14708 (cselib_preserve_cfa_base_value): New prototype.
14709 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
14710 * dse.c (dse_step1): Likewise.
14711 * cfgcleanup.c (thread_jump): Likewise.
14712 * sched-deps.c (sched_analyze): Likewise.
14713 * gcse.c (local_cprop_pass): Likewise.
14714 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
14715 If FN is non-NULL, call the callback always and whenever it returns
14716 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
14717 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
14718 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
14719 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
14720 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
14721 * var-tracking.c: Include recog.h.
14722 (bb_stack_adjust_offset): Remove.
14723 (vt_stack_adjustments): Don't call it, instead just gather the
14724 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
14725 (adjust_stack_reference): Remove.
14726 (compute_cfa_pointer): New function.
14727 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
14728 (struct adjust_mem_data): New type.
14729 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
14730 functions.
14731 (get_address_mode): New function.
14732 (replace_expr_with_values): Use it.
14733 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
14734 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
14735 (adjust_sets): Remove.
14736 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
14737 Use get_address_mode.
14738 (get_adjusted_src): Remove.
14739 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
14740 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
14741 (add_with_sets): Don't call adjust_sets.
14742 (fp_setter, vt_init_cfa_base): New functions.
14743 (vt_initialize): Change return type to bool. Move most of pool etc.
14744 initialization to the beginning of the function from end. Pass
14745 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
14746 If !frame_pointer_needed, call vt_stack_adjustment before mos
14747 vector is filled, call vt_init_cfa_base if argp/framep has been
14748 eliminated to sp. If frame_pointer_needed and argp/framep has
14749 been eliminated to hard frame pointer, set
14750 hard_frame_pointer_adjustment and call vt_init_cfa_base after
14751 encountering fp setter in the prologue. For MO_ADJUST, call
14752 log_op_type before pusing the op into mos vector, not afterwards.
14753 Call adjust_insn before cselib_process_insn/add_with_sets,
14754 call cancel_changes (0) afterwards.
14755 (variable_tracking_main_1): Adjust for vt_initialize calling
14756 vt_stack_adjustments and returning whether it succeeded or not.
14757
14758 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
14759
14760 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
14761 debug statements.
14762
14763 2010-03-15 Jakub Jelinek <jakub@redhat.com>
14764
14765 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
14766 has been set.
14767 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
14768 drap_reg has not been set.
14769
14770 2010-03-15 Michael Matz <matz@suse.de>
14771
14772 PR middle-end/43300
14773 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
14774 use it to expand block copies.
14775 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14776 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
14777 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
14778
14779 2010-03-15 Richard Guenther <rguenther@suse.de>
14780
14781 PR tree-optimization/43367
14782 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
14783 elimination check.
14784
14785 2010-03-15 Richard Guenther <rguenther@suse.de>
14786
14787 PR tree-optimization/43317
14788 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
14789
14790 2010-03-15 Martin Jambor <mjambor@suse.cz>
14791
14792 PR tree-optimization/43141
14793 * tree-sra.c (create_abstract_origin): New function.
14794 (modify_function): Call create_abstract_origin.
14795
14796 2010-03-15 Chris Demetriou <cgd@google.com>
14797
14798 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
14799 wasn't copied.
14800
14801 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14802
14803 PR middle-end/43354
14804 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
14805 call insert_out_of_ssa_copy for default definitions.
14806
14807 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14808
14809 * graphite-clast-to-gimple.c (my_long_long): Defined.
14810 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
14811 * graphite-sese-to-poly.c (my_long_long): Defined.
14812 (scop_ivs_can_be_represented): Use it.
14813
14814 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14815
14816 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
14817 graphite-max-bbs-per-function, and loop-block-tile-size.
14818 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
14819 with "maximum".
14820 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
14821
14822 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14823
14824 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
14825 forward declaration.
14826 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
14827 (add_upper_bounds_from_estimated_nit): New.
14828 (build_loop_iteration_domains): Use it.
14829
14830 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14831
14832 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
14833
14834 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14835
14836 PR middle-end/43306
14837 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
14838 should be an INTEGER_CST. Also handle CASE_CONVERT.
14839
14840 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14841
14842 * graphite.c (graphite_initialize): To bound the number of bbs per
14843 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14844 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
14845 * doc/invoke.texi: Document it.
14846
14847 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14848
14849 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
14850 * graphite-sese-to-poly.h (build_poly_scop): Same.
14851
14852 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14853
14854 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
14855 the number of parameters in the scop. Use as an upper bound
14856 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
14857 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
14858 * doc/invoke.texi: Document it.
14859
14860 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
14861
14862 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
14863 * doc/c-tree.texi: Remove.
14864 * doc/generic.texi: Merge c-tree.texi here.
14865 * doc/gccint.texi (Trees): Remove menu entry.
14866 (c-tree.texi): Remove @include.
14867 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
14868 * doc/languages.texi (Reading RTL): Ditto.
14869
14870 2010-03-12 Steve Ellcey <sje@cup.hp.com>
14871
14872 PR target/42869
14873 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
14874
14875 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14876
14877 PR middle-end/42431
14878 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
14879 code added to work around reload clobbering CONST insns.
14880
14881 2010-03-12 Jakub Jelinek <jakub@redhat.com>
14882
14883 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
14884 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
14885 (cselib_preserve_only_values): Remove retain argument, don't
14886 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
14887 * cselib.h (cselib_preserve_only_values): Remove retain argument.
14888 * var-tracking.c (micro_operation): Move insn field before union.
14889 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
14890 (struct variable_tracking_info_def): Remove n_mos field, change
14891 mos into a vector of micro_operations.
14892 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
14893 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
14894 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
14895 changing into a vector.
14896 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
14897 come before all other uops generated by add_stores.
14898 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
14899 argument removal.
14900 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
14901 a vector. Run just one pass over the bbs instead of separate counting
14902 and computation phase.
14903 (vt_finalize): Free VTI (bb)->mos vector instead of array.
14904
14905 PR debug/43329
14906 * tree-inline.c (remap_decls): Put old_var rather than origin_var
14907 into *nonlocalized_list vector.
14908 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
14909 even if origin is non-NULL.
14910 (gen_variable_die): Likewise.
14911 (process_scope_var): Don't change origin.
14912 (gen_decl_die): Likewise.
14913 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
14914 before adding new edges instead of after it, fix moving over
14915 debug stmts.
14916
14917 2010-03-11 David S. Miller <davem@davemloft.net>
14918
14919 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
14920 of four.
14921 * configure: Rebuild.
14922
14923 2010-03-11 Martin Jambor <mjambor@suse.cz>
14924
14925 PR tree-optimization/43257
14926 * tree.c (assign_assembler_name_if_neeeded): New function.
14927 (free_lang_data_in_cgraph): Assembler name assignment moved to the
14928 above new function.
14929 * tree.h (assign_assembler_name_if_neeeded): Declare.
14930 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14931 the function if needed.
14932
14933 2010-03-11 Chris Demetriou <cgd@google.com>
14934
14935 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14936 include/stdint-gcc.h, and include/stdint.h world-readable.
14937
14938 2010-03-11 Richard Guenther <rguenther@suse.de>
14939
14940 PR tree-optimization/43255
14941 * tree-vrp.c (process_assert_insertions_for): Do not insert
14942 asserts for trivial conditions.
14943
14944 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14945
14946 PR tree-optimization/43280
14947 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14948 generation. Move calculation of size out of the if branch.
14949 (find_bswap): Modify compare number generation.
14950
14951 2010-03-11 Richard Guenther <rguenther@suse.de>
14952
14953 PR lto/43200
14954 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14955 (input_gimple_stmt): Fixup handled component types during
14956 operand read. Also fix up decls in ADDR_EXPRs.
14957
14958 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
14959
14960 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14961 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14962
14963 2010-03-10 Jan Hubicka <jh@suse.cz>
14964
14965 PR c/43288
14966 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14967 * varasm.c (get_variable_section): Don't do that here...
14968 (make_decl_rtl): ... and here.
14969 (do_assemble_alias): Produce decl RTL.
14970 (assemble_alias): Likewise.
14971
14972 2010-03-10 Jakub Jelinek <jakub@redhat.com>
14973
14974 PR debug/43290
14975 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14976 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14977 of fde->vdrap_reg.
14978 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14979 (based_loc_descr): Only express drap or vdrap regno based expressions
14980 using DW_OP_fbreg when not optimizing.
14981 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14982 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14983 REG_CFA_SET_VDRAP note.
14984
14985 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
14986
14987 PR tree-optimization/43236
14988 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14989 error in calculation of base address in reverse iteration case.
14990 (generate_builtin): Take number of latch executions if the statement
14991 is in the latch.
14992
14993 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
14994
14995 PR middle-end/42859
14996 * tree-eh.c: Include pointer-set.h.
14997 (lower_eh_dispatch): Filter out duplicate case labels and
14998 remove the unneeded edge when the label is unused. Return
14999 true when some edges are removed.
15000 (execute_lower_eh_dispatch): When any lowering resulted in
15001 removing an edge, also delete unreachable blocks.
15002
15003 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15004
15005 PR bootstrap/43287
15006 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15007 UNSPEC_MACHOPIC_OFFSET.
15008
15009 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
15010
15011 PR target/43294
15012 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15013 (m68k_delegitimize_address): New function.
15014
15015 2010-03-09 Jakub Jelinek <jakub@redhat.com>
15016
15017 PR debug/43299
15018 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15019
15020 PR debug/43299
15021 * var-tracking.c (adjust_sets): New function.
15022 (count_with_sets, add_with_sets): Use it.
15023 (get_adjusted_src): New inline function.
15024 (add_stores): Use it.
15025
15026 PR debug/43304
15027 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15028 call cselib_dummy_expand_value_rtx_cb instead of
15029 cselib_expand_value_rtx_cb.
15030
15031 PR debug/43293
15032 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15033 * config/i386/i386.c: Include debug.h and dwarf2out.h.
15034 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15035 and .cfi_endproc around the pic thunks.
15036 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15037 all queued unwind info register saves are saved before the call.
15038 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15039 considered as sp-=4 for unwind info and the pop as sp+=4 which
15040 also clobbers dest, but doesn't actually restore it.
15041
15042 PR debug/43290
15043 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15044 RTX_FRAME_RELATED_P.
15045
15046 2010-03-09 Jie Zhang <jie@codesourcery.com>
15047
15048 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15049 whitespaces in output template.
15050
15051 2010-03-09 Jie Zhang <jie@codesourcery.com>
15052
15053 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15054 out array boundary.
15055
15056 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15057
15058 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15059 builtins.exp in a separate job.
15060
15061 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15062
15063 * graphite-sese-to-poly.c (add_param_constraints): Use
15064 lower_bound_in_type and upper_bound_in_type.
15065
15066 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15067
15068 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15069 instead of unsigned_type_node.
15070
15071 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15072 Reza Yazdani <reza.yazdani@amd.com>
15073
15074 PR middle-end/43065
15075 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15076 on pointer type parameters.
15077
15078 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15079
15080 PR middle-end/42644
15081 PR middle-end/42130
15082 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15083 handle conversions from pointer to integers.
15084 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15085 induction variable, to be able to work with code generated by CLooG.
15086 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15087 (build_poly_scop): Bail out if we cannot codegen a loop.
15088
15089 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15090
15091 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15092 code generation with gloog_error.
15093
15094 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15095
15096 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15097 Call fold_convert on all the returned values.
15098 (expand_scalar_variables_expr): Pass to
15099 expand_scalar_variables_ssa_name the type of the resulting expression.
15100
15101 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15102
15103 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15104 ppl_min_for_le_pointset.
15105 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15106 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15107
15108 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15109
15110 * graphite-dependences.c (map_into_dep_poly): Removed.
15111 (dependence_polyhedron_1): Use combine_context_id_scat.
15112
15113 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15114
15115 * graphite-poly.h (struct poly_scattering): Add layout documentation.
15116 (struct poly_bb): Same.
15117 (combine_context_id_scat): New.
15118
15119 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15120
15121 PR middle-end/42326
15122 * sese.c (name_defined_in_loop_p): Return false for default
15123 definitions.
15124
15125 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15126
15127 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15128 and clean up the logic.
15129
15130 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15131
15132 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15133 early return.
15134
15135 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15136
15137 * var-tracking.c (remove_cselib_value_chains): Define only for
15138 ENABLE_CHECKING.
15139 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15140 delete_slot_part, emit_notes_for_differences_1): Don't call
15141 remove_cselib_value_chains here.
15142 (set_slot_part, emit_notes_for_differences_2): Don't call
15143 add_cselib_value_chains here.
15144 (preserved_values): New vector.
15145 (preserve_value): New function.
15146 (add_uses, add_stores, vt_add_function_parameters): Use it
15147 instead of cselib_preserve_value.
15148 (changed_values_stack): New vector.
15149 (check_changed_vars_0): New function.
15150 (check_changed_vars_1, check_changed_vars_2): Use it.
15151 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15152 changed_values_stack VALUEs.
15153 (vt_emit_notes): For all preserved_values call
15154 add_cselib_value_chains. If ENABLE_CHECKING call
15155 remove_cselib_value_chains before verifying value_chains is empty.
15156 Initialize and free changed_values_stack.
15157 (vt_initialize): Initialize preserved_values.
15158 (vt_finalize): Free preserved_values.
15159
15160 2010-03-08 Richard Guenther <rguenther@suse.de>
15161
15162 PR tree-optimization/43269
15163 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15164 region detection.
15165
15166 2010-03-08 Martin Jambor <mjambor@suse.cz>
15167
15168 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15169 (ipa_is_param_called): Removed.
15170 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15171 (ipa_print_node_params): Do not print the called flag.
15172 (ipa_write_node_info): Do not stream the called flag.
15173 (ipa_read_node_info): Likewise.
15174
15175 2010-03-07 Jakub Jelinek <jakub@redhat.com>
15176
15177 PR debug/43176
15178 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15179 * cselib.c (struct expand_value_data): Add dummy field.
15180 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15181 dummy to false.
15182 (cselib_dummy_expand_value_rtx_cb): New function.
15183 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15184 any rtl.
15185 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15186 * var-tracking.c: Include pointer-set.h.
15187 (variable): Change n_var_parts to char from int. Add
15188 cur_loc_changed and in_changed_variables fields.
15189 (variable_canonicalize): Remove.
15190 (shared_var_p): New inline function.
15191 (unshare_variable): Maintain cur_loc_changed and
15192 in_changed_variables fields. If var was in changed_variables,
15193 replace it there with new_var. Just copy cur_loc instead of
15194 resetting it to something else.
15195 (variable_union): Don't recompute cur_loc. Use shared_var_p.
15196 (dataflow_set_union): Don't call variable_canonicalize.
15197 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15198 of their DEBUG_EXPR_TREE_DECLs.
15199 (canonicalize_loc_order_check): Verify that cur_loc is NULL
15200 and in_changed_variables and cur_loc_changed is false.
15201 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15202 and cur_loc_changed. Don't update cur_loc here.
15203 (variable_merge_over_src): Don't call variable_canonicalize.
15204 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
15205 removing loc that is equal to cur_loc, clear cur_loc,
15206 set cur_loc_changed and ensure variable_was_changed is called.
15207 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
15208 compare pointers in cur_loc check, if it is equal to loc,
15209 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
15210 (variable_different_p): Remove compare_current_location argument,
15211 don't compare cur_loc.
15212 (dataflow_set_different_1): Adjust variable_different_p caller.
15213 (variable_was_changed): If dv had some var in changed_variables
15214 already, reset in_changed_variables flag for it and propagate
15215 cur_loc_changed over to the new variable. On empty var
15216 always set cur_loc_changed. Set in_changed_variables on whatever
15217 var is added to changed_variables.
15218 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15219 Use shared_var_p. When removing loc that is equal to cur_loc,
15220 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
15221 end, don't set it to something else, just call variable_was_changed.
15222 (delete_slot_part): Use shared_var_p. When cur_loc equals to
15223 loc being removed, clear cur_loc and set cur_loc_changed.
15224 Set cur_loc_changed if all locations have been removed.
15225 (struct expand_loc_callback_data): New type.
15226 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15227 allocated. Always create SUBREGs if simplify_subreg failed.
15228 Prefer to use cur_loc, when that fails and still in
15229 changed_variables (and seen first time) recompute it. Set
15230 cur_loc_changed of variables which had to change cur_loc and
15231 compute elcd->cur_loc_changed if any of the subexpressions used
15232 had to change cur_loc.
15233 (vt_expand_loc): Adjust to pass arguments in
15234 expand_loc_callback_data structure.
15235 (vt_expand_loc_dummy): New function.
15236 (emitted_notes): New variable.
15237 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15238 that weren't used for any other decl in current
15239 emit_notes_for_changes call call vt_expand_loc_dummy to update
15240 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
15241 first loc_chain location if NULL before. Always use just
15242 cur_loc instead of first loc_chain location. When cur_loc_changed
15243 is false, when not --enable-checking=rtl just don't emit any note.
15244 When rtl checking, compute the note and assert it is the same
15245 as previous note. Clear cur_loc_changed and in_changed_variables
15246 at the end before removing from changed_variables.
15247 (check_changed_vars_3): New function.
15248 (emit_notes_for_changes): Traverse changed_vars to call
15249 check_changed_vars_3 on each changed var.
15250 (emit_notes_for_differences_1): Clear cur_loc_changed and
15251 in_changed_variables. Recompute cur_loc of new_var.
15252 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15253 (vt_emit_notes): Initialize and destroy emitted_notes.
15254
15255 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
15256
15257 PR rtl-optimization/42220
15258 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15259 Use verify_reg_tracked to determine if we should use OP_OUT rather
15260 than OP_INOUT.
15261 (build_def_use): If we see an in-out operand for a register that we
15262 know nothing about, treat is an output if possible, fail the block if
15263 not.
15264
15265 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15266
15267 PR debug/42897
15268 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15269 permanently.
15270
15271 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15272
15273 PR debug/42897
15274 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15275 uses of relevant DEFs that are dead outside the loop too.
15276
15277 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15278
15279 * var-tracking.c (dataflow_set_merge): Swap src and src2.
15280 Reverted:
15281 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15282 PR debug/41371
15283 * var-tracking.c (values_to_unmark): New variable.
15284 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15285 values_to_unmark vector. Moved body to...
15286 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15287 instead queue it into values_to_unmark vector.
15288 (vt_find_locations): Free values_to_unmark vector.
15289
15290 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
15291
15292 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15293 (site.exp): Export them when plugins are enabled.
15294
15295 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
15296
15297 PR middle-end/42326
15298 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15299 that contain scevs.
15300 (chrec_fold_multiply): Same.
15301
15302 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15303
15304 PR c/43248
15305 * c-decl.c (build_compound_literal): Return early if init is
15306 an error_mark_node.
15307
15308 2010-03-04 Martin Jambor <mjambor@suse.cz>
15309
15310 PR tree-optimization/43164
15311 PR tree-optimization/43191
15312 * tree-sra.c (type_consists_of_records_p): Reject records with
15313 zero-size bit-fields at the end.
15314
15315 2010-03-04 Mike Stump <mikestump@comcast.net>
15316
15317 * Makefile.in (TAGS): Remove *.y.
15318
15319 2010-03-04 Richard Guenther <rguenther@suse.de>
15320
15321 PR tree-optimization/40761
15322 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15323 in reverse order.
15324 (my_rev_post_order_compute): New function.
15325 (init_pre): Call it.
15326
15327 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
15328
15329 PR middle-end/43209
15330 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15331 decrease the cost of an IV candidate when the cost is infinite.
15332
15333 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15334
15335 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15336 Use '3DNow!' for the extension of that name, ensure normal space
15337 after the string.
15338 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15339
15340 2010-03-03 Jeff Law <law@redhat.com>
15341
15342 * PR middle-end/32693
15343 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15344 than gen_rtx_SUBREG.
15345 (extract_bit_field_1): Likewise.
15346
15347 2010-03-03 Janis Johnson <janis187@us.ibm.com>
15348
15349 * doc/sourcebuild.texi (Test directives): Document that arguments
15350 include-opts and exclude-opts are now optional for dg-skip-if,
15351 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15352
15353 2010-03-03 Jason Merrill <jason@redhat.com>
15354
15355 PR c++/12909
15356 * cgraph.h (varpool_node): Add extra_name field.
15357 * varpool.c (varpool_extra_name_alias): New.
15358 (varpool_assemble_decl): Emit extra name aliases.
15359 (varpool_mark_needed_node): Look past an extra name alias.
15360 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15361 * lto-streamer-in.c (lto_input_tree): Read it.
15362 * lto-streamer-out.c (output_unreferenced_globals): Write it.
15363
15364 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
15365
15366 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15367 (sparc*-*-solaris2*): ...this.
15368
15369 2010-03-03 Jakub Jelinek <jakub@redhat.com>
15370
15371 PR debug/43229
15372 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15373 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
15374 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15375 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15376
15377 PR debug/43237
15378 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15379 fallthrough to default handling, just with want_address 0 instead of 2.
15380 For single element lists, add_AT_loc directly, otherwise create an
15381 artificial variable DIE and stick location list to it.
15382
15383 PR debug/43177
15384 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15385 (VAL_EXPR_HAS_REVERSE): Define.
15386 (reverse_op): New function.
15387 (add_stores): For reversible operations add an extra MO_VAL_USE.
15388
15389 2010-03-02 Jason Merrill <jason@redhat.com>
15390
15391 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15392
15393 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
15394
15395 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15396 (sparc64-*-linux*): Likewise.
15397 (sparc64-*-solaris2*): Include assembler files before linker ones.
15398 (sparc-*-solaris2*): Simplify and reorder to match previous case.
15399 * config/sparc/gas.h: Delete.
15400 * config/sparc/sol2-64.h: Add copyright notice.
15401 * config/sparc/sol2-gas-bi.h: Likewise.
15402 * config/sparc/sol2-gld.h: Likewise.
15403 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15404 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15405 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15406 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15407 (sparc_elf_asm_named_section): Rename into...
15408 (sparc_solaris_elf_asm_named_section): ...this. Always define.
15409
15410 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
15411
15412 * config/alpha/alpha.c (override_options): Fix -mtune error message.
15413
15414 2010-03-02 Jeff Law <law@redhat.com>
15415
15416 PR middle-end/42431
15417 * reload1.c (rtx_p, substitute_stack): Declare.
15418 (substitute): Record addresses of changed rtxs.
15419 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15420 Restore the original rtx when complete.
15421 (reload): Free subsitute_stack when complete.
15422
15423 2010-03-02 Janis Johnson <janis187@us.ibm.com>
15424
15425 * doc/gccint.texi (menu): Add Testsuites as a chapter.
15426 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15427 new chapter.
15428 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15429 LTO Testing, gcov Testing, profopt Testing, compat Testing,
15430 Torture Tests): Change from subsection to section.
15431
15432 2010-03-02 Jakub Jelinek <jakub@redhat.com>
15433 Steven Bosscher <steven@gcc.gnu.org>
15434
15435 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15436 instead of bb.
15437
15438 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
15439
15440 PR middle-end/42640
15441 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15442 the assignment from the new induction variable to the assignment
15443 of the value from the original loop PHI function.
15444
15445 2010-03-01 Janis Johnson <janis187@us.ibm.com>
15446 Daniel Jacobowitz <dan@codesourcery.com>
15447
15448 * doc/sourcebuild.texi (Test directives): Clarify options to
15449 dg-skip-if.
15450
15451 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15452
15453 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15454 Disable cfi directives unless GCC and gas agree on using read-only
15455 .eh_frame sections for 64-bit.
15456 * configure: Regenerate.
15457
15458 2010-03-01 Richard Guenther <rguenther@suse.de>
15459
15460 PR tree-optimization/43220
15461 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15462 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15463
15464 2010-03-01 Richard Guenther <rguenther@suse.de>
15465 Martin Jambor <mjambor@suse.cz>
15466
15467 PR middle-end/41250
15468 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15469 gimplified parameters.
15470
15471 2010-03-01 Christian Bruel <christian.bruel@st.com>
15472
15473 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15474
15475 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15476
15477 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15478
15479 2010-03-01 Richard Guenther <rguenther@suse.de>
15480
15481 PR middle-end/43213
15482 * expr.c (expand_assignment): Use the alias-oracle to tell
15483 if the rhs aliases the result decl.
15484
15485 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15486
15487 PR pch/14940
15488 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15489 to sol_gt_pch_get_address.
15490 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15491 64-bit, SPARC and x86.
15492 (sol_gt_pch_get_address): New function.
15493
15494 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
15495
15496 * toplev.h (inform_n, error_n): Declare.
15497 * diagnostic.c (inform_n, error_n): New function.
15498
15499 2010-03-01 Jakub Jelinek <jakub@redhat.com>
15500
15501 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15502 has no rtl yet when processing local_decls, queue it and recheck
15503 if deferred stack allocation hasn't assigned it rtl.
15504
15505 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
15506
15507 * config/sh/sh.c (unspec_bbr_uid): New.
15508 (gen_block_redirect): Use it instead of INSN_UID.
15509 (gen_far_branch): Likewise.
15510
15511 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
15512
15513 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15514 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15515
15516 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15517
15518 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15519 (Warning Options): -Wno-conversion-null is valid for
15520 Objective-C++ as well.
15521 * doc/tm.texi (Named Address Spaces): Likewise.
15522 * doc/plugins.texi (Plugins): Replace TABs with spaces.
15523 * doc/tree-ssa.texi (Tree SSA): Likewise.
15524
15525 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15526
15527 PR bootstrap/43202
15528 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15529 by default. Don't set the default arch for
15530 i[34567]86-*-darwin*|x86_64-*-darwin*.
15531
15532 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15533
15534 PR bootstrap/43202
15535 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15536 default. Set the default 32bit/64bit archs with $with_arch
15537 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15538
15539 2010-02-27 Richard Guenther <rguenther@suse.de>
15540
15541 PR tree-optimization/43186
15542 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15543 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15544 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15545 unroller iterations.
15546
15547 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15548
15549 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15550 required and i[34567]86-*-* targets don't support 64bit ISA.
15551
15552 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
15553
15554 PR ada/43096
15555 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15556 the same alias set.
15557
15558 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15559
15560 * config.gcc: Set the default arch at least to Prescott for
15561 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15562 if SSE math is enabled.
15563
15564 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15565
15566 * diagnostic.c (diagnostic_initialize): Update.
15567 (diagnostic_report_diagnostic): Test inhibit_notes_p for
15568 informative notes.
15569 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15570 (diagnostic_inhibit_notes): New.
15571 * toplev.c (process_options): inhibit notes with -fcompare-debug.
15572
15573 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15574
15575 PR c/20631
15576 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15577 * doc/standards.texi: Likewise.
15578 * doc/extend.texi: Likewise.
15579 * doc/trouble.texi: Likewise.
15580 * doc/cppopts.texi: Likewise.
15581 * doc/install.texi: Likewise.
15582 * c.opt (std=c90,std=gnu90): New options.
15583 * c-opts.c (c_common_handle_option): Handle them.
15584
15585 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15586
15587 PR c/24577
15588 * c-decl.c (undeclared_variable): Use an informative note.
15589
15590 2010-02-26 Richard Guenther <rguenther@suse.de>
15591
15592 PR tree-optimization/43186
15593 * gimple.h (gimple_fold): Remove.
15594 * gimple.c (gimple_fold): Remove. Inline into single user ...
15595 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15596 Try harder for conditions.
15597
15598 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15599
15600 PR debug/43190
15601 * function.c (used_types_insert): Don't skip through named pointer
15602 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
15603 and it is different from the main variant's type.
15604
15605 2010-02-26 Nick Clifton <nickc@redhat.com>
15606
15607 * config/rx/rx.md (sminsi3): Remove bogus alternative.
15608
15609 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15610
15611 * config.gcc: Support --with-fpmath=sse for x86.
15612
15613 * config/i386/ssemath.h: New.
15614
15615 * doc/install.texi (--with-fpmath=sse): Documented.
15616
15617 2010-02-26 Richard Guenther <rguenther@suse.de>
15618
15619 PR tree-optimization/43188
15620 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15621 vector types of over-aligned element type.
15622
15623 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
15624
15625 PR target/43175
15626 * config/i386/i386.c (expand_vec_perm_blend): Use correct
15627 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
15628
15629 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15630
15631 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15632
15633 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15634
15635 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15636 * var-tracking.c: Include diagnostic.h.
15637 (debug_dv): New function.
15638 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15639
15640 PR debug/43160
15641 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15642 (add_value_chain, add_value_chains, remove_value_chain,
15643 remove_value_chains): Handle DEBUG_EXPRs.
15644 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15645
15646 PR debug/43161
15647 * regcprop.c (struct queued_debug_insn_change): New type.
15648 (struct value_data_entry): Add debug_insn_changes field.
15649 (struct value_data): Add n_debug_insn_changes field.
15650 (debug_insn_changes_pool): New variable.
15651 (free_debug_insn_changes, apply_debug_insn_changes,
15652 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15653 (kill_value_one_regno): Call free_debug_insn_changes if needed.
15654 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15655 fields.
15656 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15657 changes for them.
15658 (copyprop_hardreg_forward_1): Don't call apply_change_group for
15659 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
15660 changes, call cprop_find_used_regs via note_stores.
15661 (copyprop_hardreg_forward): When copying vd from predecessor
15662 which has any queued DEBUG_INSN changes, make sure the pointers are
15663 cleared. At the end call df_analyze and then if there are any
15664 DEBUG_INSN changes queued at the end of some basic block for still
15665 live registers, apply them.
15666 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15667
15668 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
15669
15670 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15671 (arm*-*-*): Ditto.
15672
15673 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
15674
15675 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15676 targets. Set the default with_cpu/with_arch from arch/cpu.
15677 Allow x86-64 and native for with_cpu/with_arch.
15678
15679 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
15680
15681 * ebitmap.c: Change calls to verify_popcount with calls to
15682 sbitmap_verify_popcount.
15683 (ebitmap_clear_bit): Fixed map->cacheindex test and
15684 map>cache update when bit clearing results in an empty
15685 element.
15686
15687 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15688
15689 PR target/43154
15690 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15691 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15692 and support both V2DF and V2DI modes.
15693 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15694 support both V2DF and V2DI modes.
15695 (general): Delete trailing whitespace from a few patterns.
15696
15697 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15698 V2DF/V2DI interleave high/low builtins.
15699
15700 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15701 new VSX builtins.
15702
15703 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
15704 interleave high/low functions.
15705
15706 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15707
15708 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
15709 #pragma extern_prefix.
15710
15711 2010-02-25 Jakub Jelinek <jakub@redhat.com>
15712
15713 PR debug/43166
15714 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
15715 BLKmode, assert op0 is a MEM and just adjust its mode.
15716
15717 PR debug/43165
15718 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
15719 if bitpos isn't multiple of mode's bitsize.
15720
15721 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15722
15723 * c.opt (-ftemplate-depth=): New.
15724 (-ftemplate-depth-): Deprecate.
15725 * optc-gen.awk: Handle -ftemplate-depth=.
15726 * opth-gen.awk: Likewise.
15727 * c-opts.c (c_common_handle_option): Likewise.
15728 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
15729
15730 2010-02-24 Jason Merrill <jason@redhat.com>
15731
15732 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
15733
15734 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15735
15736 * cfg.c (alloc_aux_for_block): Remove inline.
15737 (alloc_aux_for_edge): Likewise.
15738
15739 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15740
15741 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
15742
15743 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15744
15745 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
15746 * config/i386/sol2-gas.h: New file.
15747 * config.gcc (i[34567]86-*-solaris2*): Use it.
15748
15749 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15750
15751 PR c/43128
15752 * c-typeck.c (ep_convert_and_check): New.
15753 (build_conditional_expr): Use it.
15754 (build_binary_op): Likewise.
15755
15756 2010-02-24 Jakub Jelinek <jakub@redhat.com>
15757
15758 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
15759
15760 PR debug/43150
15761 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
15762 bounds even for -O+.
15763 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
15764 expr needs to have DECL_NAME set.
15765
15766 2010-02-24 Nick Clifton <nickc@redhat.com>
15767
15768 * config/mep/mep.c: Include gimple.h.
15769 (mep_function_uses_sp): Delete unused function.
15770 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
15771 parameters. Use unsigned integers to count args. Return a
15772 NULL_RTX instead of an error_mark_node. Toidy up formatting.
15773
15774 2010-02-23 Jakub Jelinek <jakub@redhat.com>
15775
15776 PR target/43107
15777 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
15778 greater or equal to nelt instead of 2 * nelt.
15779 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
15780 with nelt - 1.
15781
15782 2010-02-23 Jason Merrill <jason@redhat.com>
15783
15784 PR debug/42800
15785 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
15786 in cfun->local_decls even if they have register types.
15787
15788 PR c++/42837
15789 * stor-layout.c (place_field): Don't warn about unnecessary
15790 DECL_PACKED if the type is packed.
15791
15792 2010-02-23 Jakub Jelinek <jakub@redhat.com>
15793
15794 PR target/43139
15795 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
15796 GOTOFF relocs, even when the base reg isn't pic pointer.
15797
15798 2010-02-23 Michael Matz <matz@suse.de>
15799
15800 PR debug/43077
15801 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
15802 (expand_gimple_basic_block): Generate and use debug temps if there
15803 are debug uses left after the last real use of TERed ssa names.
15804 Unlink debug immediate uses when they are expanded.
15805
15806 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15807
15808 PR 43123
15809 * config/i386/i386.c (override_options): Reorganise to provide
15810 better error messages.
15811
15812 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15813
15814 PR middle-end/43083
15815 * graphite-scop-detection.c (create_single_exit_edge): Move
15816 the call to find_single_exit_edge to....
15817 (create_sese_edges): ...here. Don't handle multiple edges
15818 exiting the function.
15819 (build_graphite_scops): Don't handle multiple edges
15820 exiting the function.
15821
15822 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15823
15824 PR middle-end/43097
15825 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
15826 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
15827
15828 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15829
15830 PR middle-end/43026
15831 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
15832
15833 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15834
15835 PR c++/43126
15836 * c-typeck.c (convert_arguments): Print declaration location.
15837 * c-common.c (validate_nargs): Rename as
15838 builtin_function_validate_nargs.
15839 (check_builtin_function_arguments): Update.
15840
15841 2010-02-22 Richard Guenther <rguenther@suse.de>
15842
15843 PR lto/43045
15844 * tree-inline.c (declare_return_variable): Use the type of
15845 the call stmt lhs if available.
15846
15847 2010-02-22 Duncan Sands <baldrick@free.fr>
15848
15849 * passes.c (register_pass): Always consider all pass lists when
15850 ref_pass_instance_number is zero.
15851
15852 2010-02-22 Richard Guenther <rguenther@suse.de>
15853
15854 PR tree-optimization/42749
15855 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
15856 parameter. Do arithmetic in the original type.
15857 (update_accumulator_with_ops): Likewise.
15858 (adjust_accumulator_values): Adjust.
15859
15860 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15861
15862 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
15863 (QI to BLKmode splitter): New splitter.
15864
15865 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
15866
15867 * config/i386/i386.c (initial_ix86_tune_features): Turn on
15868 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
15869
15870 2010-02-22 Richard Guenther <rguenther@suse.de>
15871
15872 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
15873
15874 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
15875
15876 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
15877 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
15878 ($(T)crti.o, $(T)crtn.o): Remove rules.
15879
15880 2010-02-21 Tobias Burnus <burnus@net-b.de>
15881
15882 PR fortran/35259
15883 * doc/invoke.texi (-fassociative-math): Document that this
15884 option is automatically enabled for Fortran.
15885
15886 2010-02-20 David S. Miller <davem@davemloft.net>
15887
15888 * configure.ac: Test if linker and assembler properly support
15889 GOTDATA_OP relocations.
15890 * configure: Rebuild.
15891 * config.in: Likewise.
15892 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
15893 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
15894 (movsi_high_pic): Likewise.
15895 (movdi_lo_sum_pic): Likewise.
15896 (movdi_high_pic): Likewise.
15897 (movsi_pic_gotdata_op): New pattern.
15898 (movdi_pic_gotdata_op): Likewise.
15899 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
15900 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
15901
15902 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
15903
15904 PR target/43067
15905 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
15906 attribute to ssemul.
15907 (xop_mulv2div2di3_high): Ditto.
15908
15909 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15910
15911 PR c++/35669
15912 * c.opt (Wconversion-null): New option.
15913 * doc/invoke.texi (Wconversion-null): Document.
15914
15915 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15916
15917 * common.opt (Wlarger-than-): Add Undocumented.
15918
15919 2010-02-19 Mike Stump <mikestump@comcast.net>
15920
15921 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15922
15923 2010-02-19 Jason Merrill <jason@redhat.com>
15924
15925 PR target/40332
15926 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15927 * configure: Likewise.
15928
15929 2010-02-20 Alan Modra <amodra@gmail.com>
15930
15931 PR middle-end/42344
15932 * cgraph.h (cgraph_make_decl_local): Declare.
15933 * cgraph.c (cgraph_make_decl_local): New function.
15934 (cgraph_make_node_local): Use it.
15935 * cgraphunit.c (cgraph_function_versioning): Likewise.
15936 * ipa.c (function_and_variable_visibility): Likewise.
15937
15938 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15939
15940 PR bootstrap/43121
15941 * except.c (sjlj_emit_function_enter): Don't call
15942 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15943 directly.
15944 * rtl.h (add_reg_br_prob_note): Remove prototype.
15945
15946 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
15947
15948 PR 41779
15949 * c-common.c (conversion_warning): Remove widening conversions
15950 before checking the conversion of integers to reals.
15951
15952 2010-02-19 Mike Stump <mikestump@comcast.net>
15953
15954 PR middle-end/43125
15955 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15956
15957 PR objc/43061
15958 * cgraphunit.c (process_function_and_variable_attributes): Check
15959 DECL_PRESERVE_P instead of looking up attribute "used".
15960 * ipa-pure-const.c (check_decl): Likewise.
15961 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15962 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15963 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15964 instead of attribute "used".
15965 * config/sol2-c.c (solaris_pragma_init): Likewise.
15966 (solaris_pragma_fini): Likewise.
15967
15968 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15969
15970 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15971 Use XCNEW instead of xcalloc.
15972 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15973 XNEW instead of xmalloc.
15974 (get_fields): Use XNEWVEC instead of xmalloc.
15975
15976 PR debug/43084
15977 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15978 populate vars array.
15979 (create_new_general_access): For debug stmts just reset value.
15980 (get_stmt_accesses): For accesses within debug stmts just record them
15981 using add_access_to_acc_sites instead of preventing the peeling or
15982 counting them as accesses.
15983
15984 PR middle-end/42233
15985 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15986
15987 2010-02-19 Richard Guenther <rguenther@suse.de>
15988
15989 PR tree-optimization/42916
15990 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15991 instructions.
15992
15993 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
15994
15995 * configure.ac: Replace all uses of changequote in macro arguments
15996 with proper quoting.
15997
15998 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15999
16000 PR middle-end/42233
16001 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16002
16003 2010-02-19 Richard Guenther <rguenther@suse.de>
16004
16005 PR tree-optimization/42944
16006 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16007 test for aliasing with errno.
16008
16009 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16010
16011 PR middle-end/42233
16012 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16013 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16014 * dojump.c: Include output.h.
16015 (inv): New inline function.
16016 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16017 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16018 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16019 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16020 argument, pass it down to other calls.
16021 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
16022 add REG_BR_PROB note to the conditional jump.
16023 * cfgexpand.c (add_reg_br_prob_note): Removed.
16024 (expand_gimple_cond): Don't call it, add the probability
16025 as last argument to jumpif_1/jumpifnot_1.
16026 * Makefile.in (dojump.o): Depend on output.h.
16027 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16028 callers.
16029 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16030 * stmt.c (do_jump_if_equal): Likewise.
16031 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16032 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16033 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16034 Likewise.
16035 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16036 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16037 jumpifnot_1 callers.
16038 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16039 callers.
16040 (store_expr): Adjust jumpifnot caller.
16041 (store_constructor): Adjust jumpif caller.
16042
16043 PR middle-end/42233
16044 * gimplify.c (gimple_boolify): For __builtin_expect call
16045 gimple_boolify also on its first argument.
16046
16047 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
16048
16049 * configure.ac (gnu-unique-object): Wrap regexps using [] in
16050 changequote block.
16051 (__stack_chk_fail): Ditto. Remove quadrigraphs.
16052 * configure: Regenerated.
16053
16054 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16055
16056 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16057 lang_hooks.types_compatible_p instead of comptypes.
16058
16059 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16060
16061 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16062 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16063 if __prefer_thumb__ is defined.
16064
16065 2010-02-18 Martin Jambor <mjambor@suse.cz>
16066
16067 PR tree-optimization/43066
16068 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16069 array with zero-sized element type.
16070
16071 2010-02-18 Jakub Jelinek <jakub@redhat.com>
16072
16073 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16074 rtx, allocate struct var_loc_node here and return it to the
16075 caller, and only if it is actually needed.
16076 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16077 move it earlier and return immediately if it returns NULL.
16078
16079 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
16080
16081 * config/sparc/gas.h: New file. Restore
16082 TARGET_ASM_NAMED_SECTION to its ELF default.
16083 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16084 check !HAVE_GNU_AS.
16085 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16086 Likewise. Add ATTRIBUTE_UNUSED to prototype.
16087 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16088 after sparc/sysv4.h.
16089
16090 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
16091
16092 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16093
16094 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
16095
16096 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16097 patterns from predicated pattern.
16098
16099 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
16100
16101 PR target/43103
16102 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16103 for insn mnemonic suffix.
16104
16105 2010-02-17 Richard Guenther <rguenther@suse.de>
16106
16107 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16108 to loop PHI nodes.
16109
16110 2010-02-17 Jakub Jelinek <jakub@redhat.com>
16111
16112 PR debug/42918
16113 * caller-save.c (save_call_clobbered_regs): If BB ends with
16114 a DEBUG_INSN, move any notes in between last real insn and the last
16115 DEBUG_INSN after the last DEBUG_INSN.
16116
16117 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
16118
16119 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16120 Fix return type. Fix argument type. Explain meaning of return value.
16121
16122 2010-02-16 Richard Guenther <rguenther@suse.de>
16123
16124 PR tree-optimization/41043
16125 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
16126 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16127 statements ...
16128 (vrp_visit_phi_node): ... but only for loop PHI nodes.
16129
16130 2010-02-16 Ira Rosen <irar@il.ibm.com>
16131
16132 PR tree-optimization/43074
16133 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16134 * tree-vect-loop.c (vect_analyze_loop_operations): Add
16135 vectorizable cycles in hybrid SLP check.
16136 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16137
16138 2010-02-16 Richard Guenther <rguenther@suse.de>
16139
16140 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16141 (true_dependence): If memrefs_conflict_p computes must-alias
16142 trust it. Move TBAA check after offset-based disambiguation.
16143 (canon_true_dependence): Likewise.
16144
16145 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
16146
16147 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16148 * doc/invoke.texi: Document it.
16149 * var-tracking.c: Include toplev.h and params.h.
16150 (vt_find_locations): Return bool indicating success. Compute
16151 hash sizes unconditionally. Check new parameter, report.
16152 (variable_tracking_main_1): Check vt_find_locations results and
16153 retry. Renamed from...
16154 (variable_tracking_main): ... this. New wrapper to preserve
16155 flag_var_tracking_assignments.
16156 * Makefile.in (var-tracking.o): Adjust dependencies.
16157
16158 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
16159 Jakub Jelinek <jakub@redhat.com>
16160
16161 PR target/42854
16162 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16163 if weak_import attribute is present.
16164 * config/darwin.c (machopic_select_section): Likewise.
16165
16166 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
16167
16168 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16169 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16170 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16171 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16172
16173 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16174 types.
16175
16176 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16177 Fix argument types.
16178
16179 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16180 Rewrite text to refer to the names.
16181
16182 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
16183
16184 * config/i386/i386-builtin-types.def
16185 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16186 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16187 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16188 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16189 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16190 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16191 IX86_BUILTIN_VPERMIL2PS256.
16192 (MULTI_ARG_4_DF2_DI_I): Defined.
16193 (MULTI_ARG_4_DF2_DI_I1): Defined.
16194 (MULTI_ARG_4_SF2_SI_I): Defined.
16195 (MULTI_ARG_4_SF2_SI_I1): Defined.
16196 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16197 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16198 __builtin_ia32_vpermil2ps256.
16199 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16200 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16201 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
16202 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16203 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16204 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
16205 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16206 CODE_FOR_xop_vpermil2v8sf3.
16207 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16208 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16209 * config/i386/xopintrin.h (_mm_permute2_pd): New.
16210 (_mm256_permute2_pd): New.
16211 (_mm_permute2_ps): New.
16212 (_mm256_permute2_ps): New.
16213
16214 2010-02-15 Nick Clifton <nickc@redhat.com>
16215
16216 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16217 boolean parameters. Use emit_jump_insn when emitting a pop
16218 instruction containing a return insn.
16219 (push): Use 'true' rather than '1' as second parameter to F.
16220 (h8300_expand_prologue): Likewise.
16221 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16222 (h8300_expand_epilogue): Likewise.
16223
16224 2010-02-15 Richard Guenther <rguenther@suse.de>
16225
16226 PR middle-end/43068
16227 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16228 if that is zero.
16229
16230 2010-02-15 Nick Clifton <nickc@redhat.com>
16231
16232 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16233 delta.
16234
16235 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
16236
16237 * intl.c (fake_ngettext): New function.
16238 * intl.h (fake_ngettext): Declare.
16239 (ngettext): Define macro.
16240 * collect2.c (notice_translated): New function.
16241 (main): Use notice_translated and ngettext.
16242 * collect2.h (notice_translated): Declare.
16243
16244 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
16245
16246 * reorg.c (delete_computation): Comment fixes.
16247 * caller-save.c (setup_save_areas): Idem.
16248 * sel-sched-dump.c (dump_lv_set): Idem.
16249 * rtl.def: Idem.
16250
16251 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16252
16253 * config/s390/s390.c (s390_sched_init): New function.
16254 (TARGET_SCHED_INIT): Target hook defined.
16255
16256 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
16257 Jack Howarth <howarth@bromo.med.uc.edu>
16258 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16259
16260 PR target/42982
16261 Partial revert of unintended change in fix for PR41605.
16262 * config/darwin.h: Fix typo.
16263 * config/darwin9.h: Same.
16264
16265 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16266
16267 * c-pch.c (pch_init): Clear v.
16268
16269 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16270
16271 PR middle-end/42930
16272 * graphite-scop-detection.c (graphite_can_represent_scev): Call
16273 graphite_can_represent_init for MULT_EXPR.
16274
16275 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16276
16277 PR middle-end/42914
16278 PR middle-end/42530
16279 * graphite-sese-to-poly.c (remove_phi): New.
16280 (translate_scalar_reduction_to_array): Call remove_phi.
16281
16282 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16283
16284 PR middle-end/42771
16285 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16286 * graphite-clast-to-gimple.h (gloog): Update declaration.
16287 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16288 * graphite-poly.h (struct poly_bb): Add missing comments.
16289 (struct scop): Add poly_scop_p field.
16290 (POLY_SCOP_P): New.
16291 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16292 * graphite.c (graphite_transform_loops): Build the polyhedral
16293 representation for each scop before code generation.
16294 * sese.c (rename_variables_in_operand): Removed.
16295 (rename_variables_in_expr): Return the renamed expression.
16296 (rename_sese_parameters): New.
16297 * sese.h (rename_sese_parameters): Declared.
16298
16299 2010-02-11 Richard Guenther <rguenther@suse.de>
16300
16301 PR tree-optimization/42998
16302 * tree-ssa-pre.c (create_expression_by_pieces): Treat
16303 POINTER_PLUS_EXPR properly.
16304
16305 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16306 Changpeng Fang <changpeng.fang@amd.com>
16307
16308 PR middle-end/40886
16309 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16310 the cost of an IV candidate when the IV is used in a test against zero.
16311
16312 * gcc.dg/tree-ssa/ivopts-3.c: New.
16313
16314 2010-02-11 Richard Guenther <rguenther@suse.de>
16315
16316 PR lto/41664
16317 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16318 pointer-vs-decl case by swapping refs. Handle some cases
16319 of pointer-vs-decl disambiguations more conservatively.
16320 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16321 to false after expanding.
16322
16323 2010-02-11 Richard Guenther <rguenther@suse.de>
16324
16325 PR driver/43021
16326 * gcc.c (process_command): Handle LTO file@offset case more
16327 appropriately.
16328
16329 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16330
16331 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16332 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
16333 of DEBUG_INSNs.
16334 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16335
16336 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16337 if MEM's mode size isn't DWARF2_ADDR_SIZE.
16338 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16339 Optimize eq/ne comparisons when both arguments are known to be
16340 zero-extended.
16341 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16342 Don't mask operands unnecessarily if they are known to be already
16343 zero-extended.
16344
16345 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
16346
16347 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16348 instead of loop.
16349
16350 2010-02-10 Richard Guenther <rguenther@suse.de>
16351
16352 PR tree-optimization/43017
16353 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16354 for wrapping signed arithmetic.
16355
16356 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16357
16358 PR debug/43010
16359 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16360 if no debug info should be emitted for it.
16361
16362 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
16363
16364 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16365 note when flag_exceptions is set.
16366
16367 2010-02-10 Duncan Sands <baldrick@free.fr>
16368
16369 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16370
16371 2010-02-10 Richard Guenther <rguenther@suse.de>
16372
16373 PR c/43007
16374 * tree.c (get_unwidened): Handle constants.
16375 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16376
16377 2010-02-10 Martin Jambor <mjambor@suse.cz>
16378
16379 PR lto/42985
16380 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16381 check for variable argument counts independently.
16382
16383 2010-02-10 Christian Bruel <christian.bruel@st.com>
16384
16385 PR target/42841
16386 * config/sh/sh.c (find_barrier): Increase length for non delayed
16387 conditional branches.
16388
16389 2010-02-10 Christian Bruel <christian.bruel@st.com>
16390
16391 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16392
16393 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16394
16395 * builtins.c (set_builtin_user_assembler_name): Also handle
16396 ffs if int is smaller than word.
16397
16398 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
16399
16400 PR middle-end/42973
16401 * ira-conflicts.c (get_dup): Remove.
16402 (process_reg_shuffles): Add new parameter. Use it as an
16403 additional guard for copy generation.
16404 (add_insn_allocno_copies): Rewrite.
16405
16406 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
16407
16408 * common.opt (fsched2-use-traces): Preserved for backward
16409 compatibility.
16410 * doc/invoke.texi: Remove the documentation about option
16411 -fsched2-use-traces.
16412 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16413 flag_sched2_use_traces.
16414 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16415 the backward compatibility flag section.
16416
16417 2010-02-09 Richard Guenther <rguenther@suse.de>
16418
16419 PR tree-optimization/43008
16420 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16421 make HEAP variables initialized from global memory if they
16422 are not known builtin functions.
16423 (find_func_aliases): Adjust.
16424
16425 2010-02-09 Richard Guenther <rguenther@suse.de>
16426
16427 PR tree-optimization/43000
16428 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16429 arithmetic manually.
16430
16431 2010-02-08 Jakub Jelinek <jakub@redhat.com>
16432
16433 PR tree-optimization/42931
16434 * tree-loop-linear.c (try_interchange_loops): Don't call
16435 double_int_mul if estimated_loop_iterations failed.
16436
16437 2010-02-08 Martin Jambor <mjambor@suse.cz>
16438
16439 PR middle-end/42898
16440 * tree-sra.c (build_accesses_from_assign): Do not mark in
16441 should_scalarize_away_bitmap if stmt has volatile ops.
16442 (sra_modify_assign): Do not process assigns piecemeal if if stmt
16443 has volatile ops.
16444
16445 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
16446
16447 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16448
16449 2010-02-07 Adam Nemet <adambnmet@gmail.com>
16450
16451 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16452 before the pattern.
16453
16454 2010-02-07 Andrew Pinski <pinskia@gmail.com>
16455
16456 PR middle-end/42946
16457 * df-core.c (df_finish_pass): Change type of saved_flags to int.
16458
16459 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16460
16461 PR middle-end/42988
16462 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16463 to unknown_dependence.
16464 (graphite_legal_transform_dr): Handle the unknown_dependence.
16465 (graphite_carried_dependence_level_k): Same.
16466
16467 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16468
16469 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16470
16471 2010-02-07 Richard Guenther <rguenther@suse.de>
16472
16473 PR middle-end/42991
16474 * expr.c (get_inner_reference): Always initialize *pbitsize.
16475
16476 2010-02-07 Richard Guenther <rguenther@suse.de>
16477
16478 PR middle-end/42956
16479 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16480 new ARRAY_REFs on variable size element or minimal index arrays.
16481 Complete.
16482 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16483 gimple_fold_indirect_ref.
16484
16485 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
16486
16487 PR target/42957
16488 * arm.c (arm_override_options): Just return if the user has specified
16489 an invalid fpu name.
16490
16491 2010-02-03 Jason Merrill <jason@redhat.com>
16492
16493 PR c++/42870
16494 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16495 i386_pe_maybe_record_exported_symbol.
16496
16497 2010-02-05 Steve Ellcey <sje@cup.hp.com>
16498
16499 PR target/42924
16500 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16501 (pa_delegitimize_address): New function.
16502
16503 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
16504
16505 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16506 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16507
16508 2010-02-05 Richard Guenther <rguenther@suse.de>
16509
16510 PR lto/42762
16511 * lto-streamer-in.c (get_resolution): Deal with references
16512 to undefined functions.
16513
16514 2010-02-05 Richard Guenther <rguenther@suse.de>
16515
16516 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16517 (fold_const_aggregate_ref): Likewise.
16518 (ccp_fold_stmt): Substitute loads.
16519 (maybe_fold_reference): Verify types before substituting.
16520 Unshare properly.
16521 (fold_gimple_assign): Unshare properly.
16522 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16523
16524 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
16525
16526 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16527 for rs6000_gen_cell_microcode.
16528
16529 2010-02-04 Richard Guenther <rguenther@suse.de>
16530
16531 PR rtl-optimization/42952
16532 * dse.c (const_or_frame_p): Remove MEM handling.
16533
16534 2010-02-04 Nick Clifton <nickc@redhat.com>
16535
16536 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16537 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16538 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16539 (mn10300_asm_output_mi_thunk): New function.
16540 (mn10300_can_output_mu_thunk): New function.
16541 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16542 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
16543 (FUNCTION_ARG): Delete incorrect comment.
16544
16545 2010-02-03 Jason Merrill <jason@redhat.com>
16546
16547 PR c++/40138
16548 * fold-const.c (operand_equal_p): Handle erroneous types.
16549
16550 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16551
16552 * config/h8300/h8300.md (can_delay): Fix attibute condition.
16553
16554 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
16555
16556 PR rtl-optimization/42941
16557 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16558 of xmalloc.
16559
16560 2010-02-03 Jason Merrill <jason@redhat.com>
16561
16562 PR c++/35652
16563 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16564
16565 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
16566
16567 PR debug/42896
16568 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
16569 (cselib_reset_table): Renamed from...
16570 (cselib_reset_table_with_next_value): ... this.
16571 (cselib_get_next_uid): Renamed from...
16572 (cselib_get_next_unknown_value): ... this.
16573 * cselib.c (next_uid): Renamed from...
16574 (next_unknown_value): ... this.
16575 (cselib_clear_table): Adjust.
16576 (cselib_reset_table): Adjust. Renamed from...
16577 (cselib_reset_table_with_next_value): ... this.
16578 (cselib_get_next_uid): Adjust. Renamed from...
16579 (cselib_get_next_unknown_value): ... this.
16580 (get_value_hash): Use hash.
16581 (cselib_hash_rtx): Likewise.
16582 (new_cselib_val): Adjust. Set and dump uid.
16583 (cselib_lookup_mem): Pass next_uid as hash.
16584 (cselib_subst_to_values): Likewise.
16585 (cselib_log_lookup): Dump uid.
16586 (cselib_lookup): Pass next_uid as hash. Adjust.
16587 (cselib_process_insn): Adjust.
16588 (cselib_init): Initialize next_uid.
16589 (cselib_finish): Adjust.
16590 (dump_cselib_table): Likewise.
16591 * dse.c (canon_address): Dump value uid.
16592 * print-rtl.c (print_rtx): Print value uid.
16593 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16594 (dvuid): New type.
16595 (dv_uid): New function, sort of renamed from...
16596 (dv_htab_hash): ... this, reimplemented in terms of it and...
16597 (dv_uid2hash): ... this. New.
16598 (variable_htab_eq): Drop excess assertions.
16599 (tie_break_pointers): Removed.
16600 (canon_value_cmp): Compare uids.
16601 (variable_post_merge_New_vals): Print uids.
16602 (vt_add_function_parameters): Adjust.
16603 (vt_initialize): Reset table. Adjust.
16604
16605 2010-02-03 Richard Guenther <rguenther@suse.de>
16606
16607 PR tree-optimization/42944
16608 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16609 (call_may_clobber_ref_p_1): Likewise. Properly handle
16610 malloc and calloc clobbering errno.
16611
16612 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
16613
16614 * doc/invoke.texi: Fix name of sched1 dump.
16615
16616 * opts.c (decode_options): Set flag_tree_switch_conversion
16617 only conditionally on optimize >= 2.
16618
16619 * gcse.c: Assorted comment fixes in pass description.
16620
16621 2010-02-03 Anthony Green <green@moxielogic.com>
16622
16623 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16624 nop padding in order to maintain alignment of storage location of
16625 target function address.
16626 (moxie_trampoline_init): Store target function address at newly
16627 aligned location.
16628 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16629 to 32.
16630 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16631
16632 2010-02-03 Richard Guenther <rguenther@suse.de>
16633
16634 PR middle-end/42927
16635 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16636
16637 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16638
16639 * config.gcc: Reenable check for obsolete targets.
16640 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16641 mips-sgi-irix6.[0-4]*.
16642
16643 2010-02-02 Nick Clifton <nickc@redhat.com>
16644
16645 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16646 constant size of 4 as being the same as 0.
16647 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16648 can take values in the range 0..4.
16649
16650 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
16651
16652 PR java/41991
16653 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16654 as _darwin10_Unwind_FindEnclosingFunction().
16655 * libgcc-libsystem.ver: New.
16656
16657 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
16658
16659 PR target/41399
16660 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16661 implicitly set registers.
16662
16663 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
16664
16665 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16666 (arm_override_options): Allow automatic selection of the thread
16667 pointer register if thumb2.
16668 (legitimize_pic_address): Improve code sequences for Thumb2.
16669 (arm_call_tls_get_addr): Likewise.
16670 (legitimize_tls_address): Likewise.
16671 * arm.md (pic_load_addr_arm): Delete. Replace with ...
16672 (pic_load_addr_32bit): ... this. New named pattern.
16673 * thumb2.md (pic_load_addr_thumb2): Delete.
16674 (pic_load_dot_plus_four): Delete.
16675 (tls_load_dot_plus_four): New named pattern.
16676
16677 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16678
16679 PR libgomp/29986
16680 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16681 Document fix for TLS bug.
16682
16683 2010-01-31 Richard Guenther <rguenther@suse.de>
16684
16685 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16686 conservatively correct.
16687
16688 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16689
16690 PR target/42850
16691 Revert:
16692 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16693
16694 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16695
16696 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16697
16698 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16699
16700 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
16701
16702 * config.gcc: Adjust order of makefile fragments for mingw targets.
16703
16704 2010-01-31 Richard Guenther <rguenther@suse.de>
16705
16706 PR middle-end/42898
16707 * gimplify.c (gimplify_init_constructor): For volatile LHS
16708 initialize a temporary.
16709
16710 2010-01-31 Matthias Klose <doko@ubuntu.com>
16711
16712 * configure.ac: Fix __stack_chk_fail check for cross builds configured
16713 --with-headers
16714 * configure: Regenerate.
16715
16716 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
16717
16718 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16719 the same alias set and their sizes different constantness.
16720 (aliasing_component_refs_p): Revert 2009-10-24 change.
16721
16722 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16723
16724 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
16725 unused.
16726
16727 2010-01-29 Richard Guenther <rguenther@suse.de>
16728
16729 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
16730 Assert we successfully updated the call.
16731
16732 2010-01-29 Jakub Jelinek <jakub@redhat.com>
16733
16734 PR rtl-optimization/42889
16735 * df.h (df_set_bb_dirty_nonlr): New prototype.
16736 * df-core.c (df_set_bb_dirty_nonlr): New function.
16737 * df-scan.c (df_insn_rescan): Call it instead of
16738 df_set_bb_dirty for DEBUG_INSNs.
16739
16740 2010-01-29 Richard Guenther <rguenther@suse.de>
16741
16742 PR middle-end/37448
16743 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
16744 quadratic behavior in most cases.
16745
16746 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
16747
16748 PR target/42891
16749 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
16750 in the call to gen_x86_movsicc_0_m1.
16751
16752 2010-01-28 Richard Guenther <rguenther@suse.de>
16753
16754 PR tree-optimization/42871
16755 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
16756
16757 2010-01-28 Richard Guenther <rguenther@suse.de>
16758
16759 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
16760 into call arguments.
16761
16762 2010-01-28 Richard Guenther <rguenther@suse.de>
16763
16764 PR middle-end/42883
16765 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
16766 the forwarder if the destination is an EH landing pad.
16767
16768 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
16769
16770 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
16771 block list passed to gimple_duplicate_sese_tail.
16772 (parallelize_loops): Avoid parallelization when the function
16773 has_nonlocal_label.
16774 Avoid parallelization when the preheader is IRREDUCIBLE.
16775 Try to optimize when estimated_loop_iterations_int is unresolved.
16776 Add the loop's location to the dump file.
16777 * tree-cfg.c (add_phi_args_after_redirect): Remove.
16778 (gimple_duplicate_sese_tail): Remove the check for the latch.
16779 Redirect nexits to the exit block.
16780 Remove handling of the incoming edges to the latch.
16781 Redirect the backedge from the copied latch to the exit bb.
16782
16783 2010-01-28 Michael Matz <matz@suse.de>
16784
16785 PR target/42881
16786 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
16787 Wrap force_reg into a sequence, emit it before user.
16788
16789 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
16790
16791 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
16792 (arm_rev): New.
16793 (arm_legacy_rev): Likewise.
16794 (thumb_legacy_rev): Likewise.
16795
16796 2010-01-27 Jakub Jelinek <jakub@redhat.com>
16797
16798 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
16799 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
16800 on MEM's address failed, try avoid_constant_pool_reference and
16801 recurse if it returned something different.
16802 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
16803 address, try avoid_constant_pool_reference and recurse if it
16804 returned something different.
16805 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
16806 address and avoid_constant_pool_reference returned something
16807 different, don't set have_address.
16808
16809 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
16810
16811 PR debug/42861
16812 * var-tracking.c (val_store): Add modified argument, obey it.
16813 Adjust callers.
16814 (count_uses): Move down logging of main.
16815 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
16816 don't need resolution.
16817 (emit_notes_in_bb): Likewise.
16818
16819 2010-01-27 Richard Guenther <rguenther@suse.de>
16820
16821 PR middle-end/42878
16822 * tree-inline.c (remap_decl): Delay remapping of SSA name
16823 default definitions until we need them.
16824
16825 2010-01-27 Jakub Jelinek <jakub@redhat.com>
16826
16827 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16828 (rs6000_delegitimize_address): New function.
16829
16830 * config/s390/s390.c (s390_delegitimize_address): Call
16831 delegitimize_mem_from_attrs.
16832
16833 PR middle-end/42874
16834 * tree-inline.c (cannot_copy_type_1): Removed.
16835 (copy_forbidden): Don't forbid copying of functions containing
16836 records/unions with variable length fields.
16837
16838 2010-01-27 Christian Bruel <christian.bruel@st.com>
16839
16840 Revert:
16841 PR target/42841
16842 * config/sh/sh.c (find_barrier): Increase length for non delayed
16843 conditional branches.
16844
16845 2010-01-27 Matthias Klose <doko@ubuntu.com>
16846
16847 * configure.ac (gnu-unique-object): Fix ldd version check.
16848 * configure: Regenerate.
16849
16850 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16851
16852 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
16853 HAVE_GNU_AS value.
16854 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
16855 Test for HAVE_GNU_AS value.
16856
16857 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16858
16859 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
16860 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
16861 INT64_TYPE): Define.
16862 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
16863 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16864 INT_LEAST64_TYPE): Define.
16865 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
16866 UINT_LEAST64_TYPE): Define.
16867 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
16868 INT_FAST64_TYPE): Define.
16869 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16870 UINT_FAST64_TYPE): Define.
16871 (INTMAX_TYPE, UINTMAX_TYPE): Define.
16872 (INTPTR_TYPE, UINTPTR_TYPE): Define.
16873 (SIG_ATOMIC_TYPE): Define.
16874
16875 2010-01-26 Richard Guenther <rguenther@suse.de>
16876
16877 * df-scan.c (df_scan_set_bb_info): Remove assert.
16878 (df_insn_rescan_debug_internal): Merge asserts.
16879 (df_install_ref): Likewise.
16880 (df_mark_reg): Use bitmap_set_range.
16881 (df_hard_reg_used_p): Remove assert.
16882 (df_hard_reg_used_count): Likewise.
16883
16884 2010-01-26 Richard Guenther <rguenther@suse.de>
16885
16886 PR rtl-optimization/42685
16887 * web.c (web_main): Ignore DEBUG_INSNs.
16888
16889 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
16890
16891 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
16892
16893 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
16894 Fix types of fndecl and arglist parameters.
16895
16896 2010-01-26 Richard Guenther <rguenther@suse.de>
16897
16898 PR middle-end/42806
16899 * tree-eh.c (unsplit_eh): Skip debug insns.
16900
16901 2010-01-26 Richard Guenther <rguenther@suse.de>
16902
16903 PR tree-optimization/42250
16904 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
16905
16906 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16907
16908 PR fortran/42866
16909 * omp-low.c (expand_omp_sections): Only use single_pred if
16910 l2_bb is single_pred_p.
16911
16912 2010-01-25 Christian Bruel <christian.bruel@st.com>
16913
16914 PR target/42841
16915 * config/sh/sh.c (find_barrier): Increase length for non delayed
16916 conditional branches.
16917 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
16918
16919 2010-01-24 David S. Miller <davem@davemloft.net>
16920
16921 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16922 define if not using GAS.
16923 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16924 Likewise. Delete SECTION_MERGE code, which is only applicable
16925 when using GAS.
16926
16927 2010-01-24 Mark Mitchell <mark@codesourcery.com>
16928
16929 PR c++/42748
16930 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16931 mangling of va_list in system headers.
16932
16933 2010-01-23 Toon Moene <toon@moene.org>
16934
16935 * tree-predcom.c (combine_chains): Return NULL, not false.
16936
16937 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
16938
16939 * tree-loop-distribution.c (distribute_loop): Fix declaration and
16940 initialization of variable res to agree with return type.
16941
16942 2010-01-22 Steve Ellcey <sje@cup.hp.com>
16943
16944 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16945 * tree-sra.c: Add include of expr.h.
16946
16947 2010-01-22 Jakub Jelinek <jakub@redhat.com>
16948
16949 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16950 insert the debug stmt on the single non-EH edge from the stmt.
16951
16952 2010-01-22 Richard Henderson <rth@redhat.com>
16953
16954 PR tree-opt/42833
16955 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16956 the RHS until after generate_subtree_copies has insertted its
16957 code before the current statement.
16958
16959 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
16960
16961 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16962
16963 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16964
16965 2010-01-21 Martin Jambor <mjambor@suse.cz>
16966
16967 PR tree-optimization/42585
16968 * tree-sra.c (struct access): New field grp_total_scalarization.
16969 (dump_access): Dump the new field.
16970 (should_scalarize_away_bitmap): New variable.
16971 (cannot_scalarize_away_bitmap): Likewise.
16972 (sra_initialize): Allocate new bitmaps.
16973 (sra_deinitialize): Free new bitmaps.
16974 (create_access_1): New function.
16975 (create_access): Parts moved to create_access_1.
16976 (type_consists_of_records_p): New function.
16977 (completely_scalarize_record): Likewise.
16978 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16979 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16980 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16981 access.
16982 (analyze_all_variable_accesses): Completely scalarize small eligible
16983 records.
16984
16985 2010-01-21 Martin Jambor <mjambor@suse.cz>
16986
16987 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16988
16989 2010-01-21 Andrew Haley <aph@redhat.com>
16990
16991 * gcc.c (process_command): Move lang_specific_driver before
16992 setting cc_libexec_prefix.
16993
16994 2010-01-21 Richard Guenther <rguenther@suse.de>
16995
16996 PR middle-end/19988
16997 * fold-const.c (negate_expr_p): Pretend only negative
16998 real constants are easily negatable.
16999
17000 2010-01-20 Janis Johnson <janis187@us.ibm.com>
17001 Jason Merrill <jason@redhat.com>
17002
17003 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17004 (TYPE_TRANSPARENT_AGGR): this, for union and record.
17005 * calls.c (initialize argument_information): Handle it.
17006 * c-common.c (handle_transparent_union_attribute): Use new name.
17007 * c-decl.c (finish_struct): Ditto.
17008 * c-typeck.c (type_lists_compatible_p): Ditto.
17009 (convert_for_assignment): Use new name and also handle record.
17010 * function.c (aggregate_value_p): Handle it.
17011 (pass_by_reference): Ditto.
17012 (assign_parm_data_types): Ditto.
17013 * print-tree.c (print_node): Ditto.
17014 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17015 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17016 * tree.c (first_field): New fn.
17017
17018 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
17019
17020 PR target/42818
17021 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17022 even when linking statically, for now.
17023
17024 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17025
17026 PR debug/42715
17027 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17028 without a cselib val.
17029 (count_uses): Accept MO_VAL_SET with no val on stores.
17030 (add_stores): Likewise.
17031
17032 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17033
17034 * var-tracking.c (check_value_val): Add a compile time assertion.
17035 (dv_is_decl_p): Simplify.
17036 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17037 gcc_assert if ENABLE_CHECKING.
17038
17039 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17040
17041 PR debug/42782
17042 * var-tracking.c: Include tree-flow.h.
17043 (mem_dies_at_call): New.
17044 (dataflow_set_preserve_mem_locs): Use it.
17045 (dataflow_set_remove_mem_locs): Likewise.
17046 (dump_var): Renamed from dump_variable. Adjust all callers.
17047 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
17048 * Makefile.in (var-tracking.o): Adjust deps.
17049
17050 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
17051
17052 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17053
17054 2010-01-20 Richard Guenther <rguenther@suse.de>
17055
17056 PR tree-optimization/42717
17057 * tree-ssa-dce.c (get_live_post_dom): Remove.
17058 (forward_edge_to_pdom): Take an arbitrary edge to copy
17059 degenerate PHI args from.
17060 (remove_dead_stmt): Use the first post-dominator even if it
17061 does not contain live statements as redirection destination.
17062
17063 2010-01-20 Richard Guenther <rguenther@suse.de>
17064
17065 * tree-inline.c (estimate_num_insns): Handle EH builtins.
17066
17067 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17068
17069 * sel-sched.c (create_speculation_check): Remove set but not used
17070 variable twin.
17071 (try_transformation_cache): Remove set but not used variable ds.
17072 (calculate_privileged_insns): Remove set but not used variables
17073 cur_insn and min_spec_insn.
17074 (find_best_expr): Remove set but not used variable avail_n.
17075 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17076 variable e.
17077 * cgraphunit.c (assemble_thunk): Remove set but not used variable
17078 false_label.
17079 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17080 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17081 new_scop_exit_edge.
17082
17083 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
17084
17085 PR bootstrap/42786
17086 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17087 cpu types. Add support for *-sse3 cpu types.
17088 (x86_64-*-*): Ditto.
17089
17090 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17091
17092 PR middle-end/42803
17093 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17094 argument, call initializer_constant_valid_p_1 instead of
17095 initializer_constant_valid_p, pass CACHE to it, return NULL
17096 immediately if first call returns NULL.
17097 (initializer_constant_valid_p_1): New function.
17098 (initializer_constant_valid_p): Use it.
17099
17100 2010-01-20 Thomas Quinot <quinot@adacore.com>
17101
17102 * tree.def (PLACEHOLDER_EXPR): Fix comment.
17103
17104 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17105
17106 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17107 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17108 (loc_list_from_tree): Don't handle unsigned division. Handle
17109 signed modulo using DW_OP_{over,over,div,mul,minus}.
17110 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17111 modulo instead of signed.
17112
17113 2010-01-20 DJ Delorie <dj@redhat.com>
17114
17115 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17116 (Fpa): Pass it
17117 (h8300_emit_stack_adjustment): Propogate it.
17118 (push): Pass it.
17119 (h8300_expand_prologue): Likewise.
17120 (h8300_expand_epilogue): Likewise.
17121
17122 2010-01-19 Michael Matz <matz@suse.de>
17123
17124 PR tree-optimization/41783
17125 * tree-data-ref.c (toplevel): Include flags.h.
17126 (dump_data_dependence_relation): Also dump the inputs if the
17127 result will be unknown.
17128 (split_constant_offset_1): Look through some conversions.
17129 * tree-predcom.c (determine_roots_comp): Restart a new chain if
17130 the offset from last element is too large.
17131 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17132 (reassociate_to_the_same_stmt): Handle vector registers.
17133 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17134 (e.g. conversions).
17135 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17136 wide_prolog_niters argument, emit widening instructions.
17137 (vect_do_peeling_for_alignment): Adjust caller, use widened
17138 variant of the iteration cound.
17139 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17140
17141 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17142
17143 PR target/38697
17144 * config/arm/neon-testgen.m (emit_automatics): New parameter
17145 features. Adjust for Fixed_return_reg feature.
17146 (test_intrinsic): Call emit_automatics with new feature.
17147 * config/arm/neon.ml: Update copyright years.
17148 (features): New Fixed_return_reg feature.
17149 (ops): Update feature for Vget_low.
17150
17151 2010-01-19 Jakub Jelinek <jakub@redhat.com>
17152
17153 PR tree-optimization/42719
17154 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17155 stmt uses.
17156
17157 PR debug/42728
17158 * fwprop.c (all_uses_available_at): Return false if def_set dest
17159 is a REG that is used in def_insn.
17160
17161 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
17162
17163 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17164
17165 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17166 Add argument names.
17167
17168 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17169
17170 * target.h (struct gcc_target) <secondary_reload>: Change type
17171 of last argument to secondary_reload_info *.
17172
17173 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
17174
17175 PR target/42774
17176 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17177 memory references with unaligned offsets. Remove CQImode handling.
17178 (unaligned_memory_operand): Return 1 for memory references with
17179 unaligned offsets. Remove CQImode handling.
17180
17181 2010-01-18 Richard Guenther <rguenther@suse.de>
17182
17183 PR middle-end/39954
17184 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17185 builtin calls.
17186
17187 2010-01-18 Richard Guenther <rguenther@suse.de>
17188
17189 PR tree-optimization/42781
17190 * tree-ssa-structalias.c (find_what_var_points_to): Skip
17191 restrict processing only if the original variable was artificial.
17192
17193 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
17194
17195 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17196 find number of popped argument bytes.
17197
17198 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17199 Fix the text that describes the return value for invalid insns.
17200
17201 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
17202
17203 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17204 Clarify what 'cost of the -dependence' is. Fix quoting.
17205
17206 * toplev.c (default_get_pch_validity): Rename argument to "sz".
17207 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17208
17209 2010-01-17 Jakub Jelinek <jakub@redhat.com>
17210
17211 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17212 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17213
17214 2010-01-17 Richard Guenther <rguenther@suse.de>
17215
17216 PR middle-end/42248
17217 * function.c (split_complex_args): Take a VEC to modify.
17218 (assign_parms_augmented_arg_list): Build a VEC instead of
17219 a chain of PARM_DECLs.
17220 (assign_parms_unsplit_complex): Take a VEC of arguments.
17221 Do not fixup unmodified parms.
17222 (assign_parms): Deal with the VEC.
17223 (gimplify_parameters): Likewise.
17224
17225 2010-01-17 Richard Guenther <rguenther@suse.de>
17226
17227 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17228 node existence check.
17229 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17230 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17231 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17232 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17233 (gimple_execute_on_growing_pred): Likewise.
17234
17235 2010-01-17 Richard Guenther <rguenther@suse.de>
17236
17237 PR tree-optimization/42773
17238 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17239 (compute_antic_aux): Likewise.
17240 (compute_partial_antic_aux): Likewise.
17241
17242 2010-01-17 Jie Zhang <jie.zhang@analog.com>
17243
17244 PR debug/42767
17245 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17246 and US_TRUNCATE.
17247
17248 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
17249
17250 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17251 appearance.
17252
17253 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17254 Fix markup for strict argument.
17255
17256 (TARGET_SCHED_REORDER2): Fix argument types.
17257
17258 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17259 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17260
17261 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17262 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17263
17264 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17265 Add argument name.
17266
17267 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17268 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17269 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17270 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17271 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17272
17273 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17274
17275 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17276
17277 (TARGET_ASM_RELOC_RW_MASK): Add return type.
17278 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17279
17280 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17281
17282 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17283 Use prototype.
17284
17285 (TARGET_ASM_NAMED_SECTION): Fix argument list.
17286
17287 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17288 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17289
17290 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17291
17292 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17293
17294 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17295 referring to it. Fix language.
17296
17297 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17298
17299 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17300
17301 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17302
17303 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17304
17305 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17306 '@var{stream}. Remove stray 'and'.
17307
17308 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17309
17310 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17311
17312 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17313
17314 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17315 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17316
17317 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17318 Fix description of return value.
17319 Rename argument "sz" to "len."
17320
17321 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17322 Clarify meaning of 'true' return value.
17323
17324 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17325
17326 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17327 rep_mode versus mode_rep.
17328
17329 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17330
17331 (TARGET_BUILTIN_DECL): Fix name.
17332
17333 (TARGET_COMMUTATIVE_P): Fix type of first argument.
17334
17335 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17336
17337 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17338
17339 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17340
17341 (TARGET_RELAXED_ORDERING): Use @deftypevr.
17342
17343 (TARGET_GET_DRAP_RTX): Note that this is a hook.
17344 Clarify language.
17345
17346 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17347 Rename argument tm_fn to md_fn.
17348
17349 (TARGET_OPTION_PRINT): Fix argument list.
17350
17351 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
17352
17353 PR target/42664
17354 * config/i386/i386.c (ix86_fixup_binary_operands):
17355 Revert FMA4 fixup of operands.
17356
17357 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17358
17359 PR gcc/42525
17360 * Makefile.in (write_entries_to_file, install-plugin):
17361 Use \012 instead of \n with tr.
17362
17363 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
17364
17365 * configure.ac (HAVE_AS_REF): New C macro.
17366 * configure: Regenerate.
17367 * config.in: Likewise.
17368 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17369 if HAVE_AS_REF.
17370 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17371 if HAVE_AS_REF.
17372
17373 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
17374
17375 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17376
17377 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17378
17379 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17380
17381 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17382
17383 (TARGET_IN_SMALL_DATA_P): Fix argument type.
17384
17385 (TARGET_BINDS_LOCAL_P): Fix argument type.
17386
17387 (TARGET_ASM_FILE_END): Use prototype.
17388
17389 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17390
17391 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17392
17393 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17394
17395 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17396
17397 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17398 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17399
17400 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17401 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17402
17403 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17404 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17405 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17406 (TARGET_ADDR_SPACE_CONVERT): Likewise.
17407
17408 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17409
17410 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17411
17412 (TARGET_INIT_BUILTINS): Use prototype.
17413
17414 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17415 Put 'const char *' in braces. Fix parameter types.
17416 (TARGET_INVALID_CONVERSION): Fix parameter types.
17417 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17418 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17419
17420 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17421 Fix argument type.
17422
17423 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17424
17425 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17426
17427 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
17428
17429 * doc/tm.texi (TARGET_HELP): Fix return type.
17430
17431 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17432 in braces. Fix argument types.
17433
17434 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17435
17436 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17437
17438 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17439
17440 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17441 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17442
17443 (TARGET_MANGLE_TYPE): Fix argument types.
17444
17445 (TARGET_IRA_COVER_CLASSES): Use prototype.
17446
17447 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
17448
17449 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17450
17451 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17452
17453 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17454
17455 (TARGET_CALLEE_COPIES): Fix argument types.
17456
17457 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17458
17459 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17460
17461 (TARGET_FUNCTION_VALUE): Fix argument types.
17462
17463 (TARGET_RETURN_IN_MSB): Fix argument type.
17464
17465 (TARGET_RETURN_IN_MEMORY): Fix argument types.
17466
17467 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17468
17469 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17470
17471 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17472 agree with return type.
17473
17474 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17475
17476 2010-01-15 Jing Yu <jingyu@google.com>
17477
17478 PR rtl-optimization/42691
17479 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17480 a pseudo to a constant and are merged, and adjust comments.
17481
17482 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
17483
17484 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17485
17486 2010-01-15 Richard Guenther <rguenther@suse.de>
17487
17488 PR middle-end/42739
17489 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17490 labels of computed or non-local gotos to the destination.
17491 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17492 landing pad label is the first label.
17493
17494 2010-01-15 Richard Guenther <rguenther@suse.de>
17495
17496 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17497
17498 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17499
17500 PR target/42747
17501 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17502 to allow generation of the xssqrtdp instruction on power7.
17503 (sqrtdf2_fpr): Ditto.
17504
17505 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17506
17507 PR middle-end/42674
17508 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17509 functions with noreturn attribute.
17510
17511 PR c++/42608
17512 * varasm.c (declare_weak): Add weak attribute to decl if it
17513 doesn't have one already.
17514 (assemble_external): Only add decls to weak_decls if they also
17515 have weak attribute.
17516
17517 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
17518
17519 * var-tracking.c (var_reg_delete): Don't delete the association
17520 between REGs and values or one-part variables if the register
17521 isn't clobbered.
17522
17523 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17524
17525 PR debug/42657
17526 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17527 because its first operand is a non-localized variable.
17528
17529 2010-01-14 Martin Jambor <mjambor@suse.cz>
17530
17531 PR tree-optimization/42706
17532 * tree-sra.c (encountered_recursive_call): New variable.
17533 (encountered_unchangable_recursive_call): Likewise.
17534 (sra_initialize): Initialize both new variables.
17535 (callsite_has_enough_arguments_p): New function.
17536 (scan_function): Call decl and flags check only for IPA-SRA, check
17537 whether there is a recursive call and whether it has enough arguments.
17538 (all_callers_have_enough_arguments_p): New function.
17539 (convert_callers): Look for recursive calls only when
17540 encountered_recursive_call is set.
17541 (ipa_early_sra): Bail out either if
17542 !all_callers_have_enough_arguments_p or
17543 encountered_unchangable_recursive_call.
17544
17545 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17546
17547 * sel-sched.c: Add 2010 to copyright years.
17548 * sel-sched-ir.c: Likewise.
17549 * sel-sched-ir.h: Likewise.
17550
17551 2010-01-14 Martin Jambor <mjambor@suse.cz>
17552
17553 PR tree-optimization/42714
17554 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17555 constructors specially.
17556
17557 2010-01-14 Andi Kleen <ak@linux.intel.com>
17558
17559 * config/i386/drivers-i386.c (detect_caches_intel):
17560 Add l2sizekb parameter and fill in.
17561 (host_detect_local_cpu): Add l2sizekb, fill in.
17562 Add Atom small cache heuristic.
17563
17564 2010-01-14 Andi Kleen <ak@linux.intel.com>
17565
17566 * config/i386/drivers-i386.c (detect_caches_cpuid4):
17567 Add level3 parameter and fill in.
17568 (detect_caches_intel): Handle level3 cache.
17569
17570 2010-01-14 Andi Kleen <ak@linux.intel.com>
17571
17572 * config/i386/drivers-i386.c (host_detect_local_cpu):
17573 Fix core duo detection.
17574
17575 2010-01-14 Andi Kleen <ak@linux.intel.com>
17576
17577 * config/i386/drivers-i386.c (host_detect_local_cpu):
17578 Fix Atom detection.
17579
17580 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17581
17582 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17583 (rs6000_variable_issue_1): this. Use...
17584 (rs6000_variable_issue): here. Reimplement. Print debug info.
17585
17586 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17587
17588 * sel-sched-ir.c (sel_restore_other_notes): Rename to
17589 sel_restore_notes. Update all callers. Call reemit_notes
17590 for all insns.
17591
17592 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17593
17594 PR rtl-optimization/42246
17595 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17596 loops.
17597
17598 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17599
17600 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17601 all successors is the same as number of successors in current region.
17602
17603 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17604
17605 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17606 to rename is not separable. Otherwise check that its LHS is not NULL.
17607
17608 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17609
17610 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
17611
17612 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17613
17614 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17615 available registers when failed to discover LHS register class.
17616 Fix indentation. Update comment.
17617
17618 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17619 Alexander Monakov <amonakov@ispras.ru>
17620
17621 PR rtl-optimization/42389
17622 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17623 to can_issue_more.
17624 (advance_state_on_fence): Likewise.
17625 (sel_target_adjust_priority): Print debug output only when
17626 sched_verbose >= 4, not 2.
17627 (get_expr_cost): Do not issue all unique insns on the next cycle.
17628 (fill_insns): Initialize can_issue_more from the value saved
17629 with the fence.
17630 * sel-sched-ir.c (flist_add): New parameter issue_more.
17631 Init FENCE_ISSUE_MORE with it.
17632 (merge_fences): Likewise.
17633 (init_fences): Update call to flist_add.
17634 (add_to_fences, add_clean_fence_to_fences)
17635 (add_dirty_fence_to_fences): Likewise.
17636 (move_fence_to_fences): Update call to merge_fences.
17637 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17638 sched groups.
17639 * sel-sched-ir.h (struct _fence): New field issue_more.
17640 (FENCE_ISSUE_MORE): New accessor macro.
17641
17642 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17643
17644 PR rtl-optimization/42388
17645 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17646 that have no predecessors nor successors. Do not call move_bb_info
17647 for empty blocks outside of current region.
17648
17649 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17650
17651 PR rtl-optimization/42294
17652 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17653 * sel-sched.c (move_exprs_to_boundary): Transitively add all
17654 originators' originators.
17655
17656 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17657
17658 PR rtl-optimization/39453
17659 PR rtl-optimization/42246
17660 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17661 for pipelining_p.
17662 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17663
17664 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17665 Alexander Monakov <amonakov@ispras.ru>
17666
17667 PR middle-end/42245
17668 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
17669 (maybe_tidy_empty_bb): ... here. Make static. Add new
17670 argument. Update all callers.
17671 (tidy_control_flow): ... and here. Recompute topological order
17672 of basic blocks in region if necessary.
17673 (sel_redirect_edge_and_branch): Change return type. Return true
17674 if topological order might have been invalidated.
17675 (purge_empty_blocks): Export and move from...
17676 * sel-sched.c (purge_empty_blocks): ... here.
17677 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17678 (maybe_tidy_empty_bb): Delete prototype.
17679 (purge_empty_blocks): Declare.
17680
17681 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17682
17683 PR rtl-optimization/42249
17684 * sel-sched.c (try_replace_dest_reg): When chosen register
17685 and original register is the same, do not bail out early, but
17686 still check all original insns for validity of replacing destination
17687 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17688 in this case.
17689
17690 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17691
17692 PR c/42721
17693 Port from no-undefined-overflow branch:
17694 2009-03-09 Richard Guenther <rguenther@suse.de>
17695
17696 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17697
17698 2010-01-14 Richard Guenther <rguenther@suse.de>
17699
17700 PR lto/42665
17701 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17702
17703 2010-01-14 Ira Rosen <irar@il.ibm.com>
17704
17705 PR tree-optimization/42709
17706 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
17707 as scalar type in creation of constant vector operand.
17708
17709 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17710
17711 PR testsuite/42414
17712 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
17713 (check-parallel-%): Match `testsuite' directory component only
17714 at the end.
17715
17716 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
17717
17718 PR translation/39521
17719 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
17720 strings with _().
17721
17722 2010-01-13 Richard Guenther <rguenther@suse.de>
17723
17724 PR tree-optimization/42730
17725 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
17726 offset zero.
17727
17728 2010-01-13 Steve Ellcey <sje@cup.hp.com>
17729
17730 PR target/pr42542
17731 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
17732 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
17733 them signed.
17734
17735 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
17736
17737 * config/bfin/libgcc-bfin.ver: Regenerate based on current
17738 libgcc-std.ver. Add entries for ___smulsi3_highpart and
17739 ___umulsi3_highpart.
17740
17741 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
17742 rather than schedule_insns if the pass is enabled.
17743
17744 2010-01-13 Martin Jambor <mjambor@suse.cz>
17745
17746 PR tree-optimization/42704
17747 * tree-sra.c (sra_modify_assign): Do not delete assignments to
17748 SSA_NAMEs.
17749
17750 2010-01-13 Martin Jambor <mjambor@suse.cz>
17751
17752 PR tree-optimization/42703
17753 * tree-sra.c (analyze_access_subtree): Check that we can build a
17754 reference to the original data within the aggregate.
17755
17756 2010-01-13 Richard Guenther <rguenther@suse.de>
17757
17758 PR tree-optimization/42705
17759 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
17760
17761 2010-01-13 Richard Guenther <rguenther@suse.de>
17762
17763 PR middle-end/42716
17764 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
17765
17766 2010-01-13 Jakub Jelinek <jakub@redhat.com>
17767
17768 PR debug/41371
17769 * var-tracking.c (values_to_unmark): New variable.
17770 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17771 values_to_unmark vector. Moved body to...
17772 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
17773 instead queue it into values_to_unmark vector.
17774 (vt_find_locations): Free values_to_unmark vector.
17775
17776 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
17777
17778 * config/s390/s390.c (override_options): Set
17779 default of max-pending-list-length to 256
17780
17781 2010-01-13 Richard Guenther <rguenther@suse.de>
17782
17783 PR lto/42678
17784 * tree-pass.h (PROP_gimple_lcx): New.
17785 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
17786 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
17787 before the final cleanup_eh.
17788 (dump_properties): Dump PROP_gimple_lcx.
17789 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
17790 (tree_lower_complex_O0): Remove.
17791 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
17792 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
17793 tree_lower_complex, schedule TODO_update_ssa.
17794 * lto-streamer-out.c (output_function): Stream the functions
17795 properties.
17796 * lto-streamer-in.c (input_function): Likewise.
17797 (lto_read_body): Do not override them here.
17798
17799 2010-01-12 Joseph Myers <joseph@codesourcery.com>
17800
17801 PR c/42708
17802 * c-typeck.c (build_c_cast): Fold value cast to union type before
17803 wrapping it in a CONSTRUCTOR.
17804
17805 2010-01-12 Jakub Jelinek <jakub@redhat.com>
17806
17807 PR rtl-optimization/42699
17808 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
17809 involved.
17810
17811 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17812
17813 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17814 SUBTARGET_WARN_UNUSED_SPEC): Move ...
17815 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17816 SUBTARGET_WARN_UNUSED_SPEC): ... here
17817 * config/mips/iris5.h (LIBGCC_SPEC): Define.
17818
17819 2010-01-12 Julian Brown <julian@codesourcery.com>
17820
17821 * config/arm/neon-schedgen.ml (Utils): Don't try to
17822 open missing module.
17823 (find_with_result): New.
17824
17825 2010-01-12 Jakub Jelinek <jakub@redhat.com>
17826
17827 PR debug/42662
17828 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
17829 sharing when canonicalizing ({lt,ge}u (plus a b) b).
17830
17831 PR tree-optimization/42645
17832 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
17833 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
17834 decl_map, set processing_debug_stmt to -1 and return name without
17835 any remapping.
17836
17837 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
17838
17839 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
17840 binutils version, and reword target configuration description.
17841
17842 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
17843
17844 * config/avr/avr.h (LINKER_NAME): Remove.
17845
17846 2010-01-11 Janis Johnson <janis187@us.ibm.com>
17847
17848 PR target/42416
17849 * config/rs6000/rs6000.c (rs6000_override_options): On targets
17850 that support VSX, warn for -mno-altivec if vsx is not disabled,
17851 and disable vsx.
17852
17853 2010-01-11 Joseph Myers <joseph@codesourcery.com>
17854 Shujing Zhao <pearly.zhao@oracle.com>
17855
17856 PR translation/42469
17857 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
17858 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
17859 character between option name and help text.
17860 * c.opt (imultilib): Likewise.
17861
17862 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
17863
17864 * lto-streamer-out.c (output_unreferenced_globals): Output static
17865 variables.
17866
17867 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
17868
17869 PR rtl-optimization/42621
17870 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
17871 optimizing for size.
17872 (duplicate_computed_gotos): Remove now-redundant check.
17873
17874 2010-01-10 Steve Ellcey <sje@cup.hp.com>
17875
17876 PR target/37454
17877 * configure.ac: Save and restore LDFLAGS and LIBS
17878 * configure: Regenerate.
17879
17880 2010-01-10 Richard Guenther <rguenther@suse.de>
17881
17882 PR middle-end/42667
17883 * builtins.c (fold_builtin_strlen): Add type argument and
17884 convert the resulting length to it.
17885 (fold_builtin_1): Adjust.
17886
17887 2010-01-09 Jakub Jelinek <jakub@redhat.com>
17888
17889 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
17890 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
17891 1 insn.
17892 (num_insns_constant_wide): Adjust for that change.
17893
17894 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17895
17896 PR debug/42631
17897 * web.c (union_defs): Add used argument, to combine uses of
17898 uninitialized regs.
17899 (entry_register): Adjust type and tests of used argument.
17900 (web_main): Widen used for new use. Pass it to union_defs.
17901 * df.h (union_defs): Adjust prototype.
17902
17903 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17904
17905 PR debug/42630
17906 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
17907 uses in new incoming argument. Free body.
17908 (reset_debug_uses_in_loop): New.
17909 (analyze_insn_to_expand_var): Call the latter if the former found
17910 anything. Fix whitespace. Reject invalid dest overlaps before
17911 going through all insns in the loop.
17912
17913 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17914
17915 PR debug/42629
17916 * haifa-sched.c (dying_use_p): Debug insns don't count.
17917
17918 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17919
17920 PR middle-end/42363
17921 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17922 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17923 (verify_gimple_call): Reject LHS in noreturn calls.
17924
17925 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17926
17927 PR debug/42604
17928 PR debug/42395
17929 * tree-vect-loop-manip.c (adjust_info): New type.
17930 (adjust_vec): New pointer to vector.
17931 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17932 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17933 (slpeel_update_phis_for_duplicate_loop): Use them.
17934 (slpeel_update_phi_nodes_for_guard1): Likewise.
17935 (slpeel_update_phi_nodes_for_guard2): Likewise.
17936 (slpeel_tree_peel_loop_to_edge): Likewise.
17937 (vect_update_ivs_after_vectorizer): Likewise.
17938
17939 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17940
17941 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17942 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17943
17944 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17945
17946 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17947 bogus uninitialized warning.
17948
17949 2010-01-09 Richard Guenther <rguenther@suse.de>
17950
17951 PR middle-end/42512
17952 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17953 the evolution is compatible with the initial condition.
17954
17955 2010-01-09 Jakub Jelinek <jakub@redhat.com>
17956
17957 * gcc.c (process_command): Update copyright notice dates.
17958 * gcov.c (print_version): Likewise.
17959 * gcov-dump.c (print_version): Likewise.
17960 * mips-tfile.c (main): Likewise.
17961 * mips-tdump.c (main): Likewise.
17962
17963 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
17964
17965 PR target/41885
17966 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17967 (rotlhi3): Delete.
17968 (rotlhi3_8): Delete.
17969 (rotlsi3): Delete.
17970 (rotlsi3_8): Delete.
17971 (rotlsi3_16): Delete.
17972 (rotlsi3_24): Delete.
17973 (rotl<mode>3): New.
17974 (*rotw<mode>3): New.
17975 (*rotb<mode>3): New.
17976 * config/avr/avr.c (avr_rotate_bytes): New function.
17977 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17978
17979 2010-01-08 Steve Ellcey <sje@cup.hp.com>
17980
17981 PR target/37454
17982 * configure.ac: Modify -rdynamic check.
17983 * configure: Regenerate.
17984
17985 2010-01-08 DJ Delorie <dj@redhat.com>
17986
17987 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17988 register popping order.
17989
17990 2010-01-08 Richard Guenther <rguenther@suse.de>
17991
17992 PR lto/42528
17993 * c.opt (fsigned-char): Also let LTO handle this option.
17994 (funsigned-char): Likewise.
17995
17996 2010-01-07 Richard Guenther <rguenther@suse.de>
17997
17998 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17999 (gimple_op): Likewise.
18000 (gimple_op_ptr): Likewise.
18001 (gimple_assign_set_lhs): Remove gcc_assert.
18002 (gimple_assign_set_rhs1): Likewise.
18003 (gimple_assign_set_rhs2): Likewise.
18004 (gimple_call_set_lhs): Likewise.
18005 (gimple_call_set_fn): Likewise.
18006 (gimple_call_set_fndecl): Likewise.
18007 (gimple_call_fndecl): Likewise.
18008 (gimple_call_return_type): Likewise.
18009 (gimple_call_set_chain): Likewise.
18010 (gimple_call_num_args): Likewise.
18011 (gimple_call_set_arg): Likewise.
18012 (gimple_cond_set_code): Likewise.
18013 (gimple_cond_set_lhs): Likewise.
18014 (gimple_cond_set_rhs): Likewise.
18015 (gimple_cond_set_true_label): Likewise.
18016 (gimple_cond_set_false_label): Likewise.
18017 (gimple_label_set_label): Likewise.
18018 (gimple_goto_set_dest): Likewise.
18019 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18020 (gimple_debug_bind_get_value): Likewise.
18021 (gimple_debug_bind_get_value_ptr): Likewise.
18022 (gimple_debug_bind_set_var): Likewise.
18023 (gimple_debug_bind_set_value): Likewise.
18024 (gimple_debug_bind_reset_value): Likewise.
18025 (gimple_debug_bind_has_value_p): Likewise.
18026 (gimple_return_retval_ptr): Remove gcc_assert.
18027 (gimple_return_retval): Likewise.
18028 (gimple_return_set_retval): Likewise.
18029 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18030 (safe_referenced_var_iterator): Remove.
18031 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18032 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18033 (fill_referenced_var_vec): Remove.
18034 (first_readonly_imm_use): Remove redundant gcc_assert.
18035 (phi_arg_index_from_use): Combine gcc_asserts.
18036 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18037 (first_imm_use_stmt): Remove redundant gcc_assert.
18038 * tree-cfg.c (verify_gimple_call): Verify function and chain
18039 operands. Verify arguments.
18040 (verify_types_in_gimple_stmt): Verify condition code and labels.
18041
18042 2010-01-07 Richard Guenther <rguenther@suse.de>
18043
18044 PR tree-optimization/42641
18045 * sese.c (rename_map_elt_info): Use the SSA name version, do
18046 not hash pointers.
18047
18048 2010-01-07 Jakub Jelinek <jakub@redhat.com>
18049
18050 PR tree-optimization/42625
18051 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18052 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18053
18054 2010-01-07 Duncan Sands <baldrick@free.fr>
18055
18056 * Makefile.in (PLUGIN_HEADERS): Add version.h.
18057
18058 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
18059
18060 PR target/42511
18061 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18062 note itself is not function_invariant_p.
18063
18064 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
18065
18066 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18067 Do not add the DF_NOTE problem.
18068 * store-motion.c (execute_rtl_store_motion): Likewise.
18069
18070 2010-01-07 Martin Jambor <mjambor@suse.cz>
18071
18072 PR tree-optimization/42157
18073 * tree-sra.c (compare_access_positions): Stabilize sort if both
18074 accesses have integer types, return zero immediately if they are the
18075 same.
18076
18077 2010-01-06 Richard Henderson <rth@redhat.com>
18078
18079 PR middle-end/41883
18080 * haifa-sched.c (add_to_note_list): Merge into ...
18081 (concat_note_lists): ... here, and ...
18082 (unlink_other_notes, rm_other_notes): Merge into...
18083 (remove_notes): ... here. Create REG_SAVE_NOTEs for
18084 NOTE_INSN_EPILOGUE_BEG.
18085
18086 2010-01-06 Richard Guenther <rguenther@suse.de>
18087
18088 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18089 not inline regular functions into always-inline functions.
18090
18091 2010-01-06 Nick Clifton <nickc@redhat.com>
18092
18093 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18094 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18095 used together.
18096 (OVERRIDE_OPTIONS): Delete.
18097 (OPTIMIZATION_OPTIONS): Define.
18098 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18099 * config/rx/rx.c (rx_handle_option): Issue an error message if
18100 -mcpu=rx200 and -fpu are used together.
18101 (rx_set_optimization_options): New function. Issue an error
18102 message if an optimization attribute attempts to reset the FPU/
18103 math optimization pairing.
18104 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18105 * config/rx/rx.opt: Set the default to 32-bit doubles.
18106 * config/rx/t-rx: Add multilibs for -nofpu option.
18107 * doc/invoke.texi: Update documentation of RX options.
18108
18109 2010-01-06 Richard Guenther <rguenther@suse.de>
18110
18111 * tree-ssa-pre.c (name_to_id): New global.
18112 (alloc_expression_id): Simplify SSA name handling.
18113 (lookup_expression_id): Likewise.
18114 (init_pre): Zero name_to_id.
18115 (fini_pre): Free it.
18116
18117 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
18118
18119 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18120
18121 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
18122
18123 PR target/42542
18124 * config/i386/sse.md (smaxv2di3): New.
18125 (umaxv2di3): Likewise.
18126 (sminv2di3): Likewise.
18127 (uminv2di3): Likewise.
18128
18129 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
18130
18131 PR target/42564
18132 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18133 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18134 (legitimize_tls_address): Likewise.
18135 (sparc_tls_referenced_p): Likewise.
18136 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18137 and adjust calls to legitimize_pic_address.
18138 (legitimate_constant_p) Use sparc_tls_referenced_p.
18139 (legitimate_pic_operand_p): Likewise.
18140 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18141 (sparc_tls_symbol_ref_1): Delete.
18142 (sparc_tls_referenced_p): Make static, recognize specific patterns.
18143 (legitimize_tls_address): Make static, handle CONST patterns.
18144 (legitimize_pic_address): Make static, remove unused parameter and
18145 adjust recursive calls.
18146 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18147 and adjust call to legitimize_pic_address.
18148 (sparc_output_mi_thunk): Likewise.
18149
18150 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
18151 H.J. Lu <hongjiu.lu@intel.com>
18152
18153 PR target/42542
18154 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18155 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18156 operands to make them signed.
18157
18158 Revert:
18159 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18160
18161 PR target/42542
18162 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18163 GTU to GT for V4SI and V2DI.
18164
18165 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18166 (umin<mode>3): Removed.
18167 (uminv8hi3): New.
18168 (uminv4si3): Likewise.
18169
18170 2010-01-05 Martin Jambor <mjambor@suse.cz>
18171
18172 PR tree-optimization/42462
18173 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18174 current_function_decl to helper functions and macros.
18175
18176 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18177
18178 PR bootstrap/41771
18179 * flags.h: Don't include real.h.
18180 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18181 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18182 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18183 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18184 * dominance.c: Update copyright.
18185 * gimple.c (walk_gimple_op): Remove inline.
18186 * tree-ssa-reassoc.c: Include real.h.
18187 * Makefile.in (FLAGS_H): Remove $(REAL_H).
18188 (tree-ssa-reassoc.o): Depend on $(REAL_H).
18189
18190 2010-01-05 Nick Clifton <nickc@redhat.com>
18191
18192 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18193 register to push into the stack frame when the accumulator has to
18194 be saved during interrupts.
18195
18196 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
18197
18198 * doc/invoke.texi: Remove the documentation about option
18199 -Wunreachable-code.
18200 * common.opt (Wunreachable-code): Preserved for backward
18201 compatibility.
18202 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18203 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18204 the backward compatibility flag section.
18205
18206 2010-01-05 Richard Guenther <rguenther@suse.de>
18207
18208 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18209
18210 2010-01-05 Jakub Jelinek <jakub@redhat.com>
18211
18212 PR other/42611
18213 * cfgexpand.c (expand_one_var): Diagnose too large variables.
18214
18215 PR tree-optimization/42508
18216 * tree-sra.c (convert_callers): Check for recursive call
18217 by comparing cgraph nodes instead of decls.
18218 (modify_function): Call ipa_modify_formal_parameters also
18219 on all same_body aliases.
18220
18221 * cgraphunit.c (cgraph_materialize_all_clones): Compare
18222 cgraph nodes when checking for same_body aliases.
18223
18224 2010-01-05 Richard Guenther <rguenther@suse.de>
18225
18226 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18227 allocation and lookup.
18228 (get_or_alloc_expr_for_constant): Likewise.
18229 (phi_translate): Sink allocation.
18230
18231 2010-01-04 Richard Guenther <rguenther@suse.de>
18232
18233 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18234 a new entry only if needed.
18235 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18236 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18237 hashtable lookup.
18238 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18239 the result array.
18240 (phi_translate): Handle CONSTANTs early.
18241
18242 2010-01-04 Martin Jambor <mjambor@suse.cz>
18243
18244 PR tree-optimization/42398
18245 * tree-sra.c (struct access): Removed flag grp_different_types.
18246 (dump_access): Do not dump the removed flag.
18247 (sort_and_splice_var_accesses): Do not set the removed flag.
18248 (sra_modify_expr): Check for type compatibility directly.
18249
18250 2010-01-04 Martin Jambor <mjambor@suse.cz>
18251
18252 PR tree-optimization/42366
18253 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18254 edges with variable number of parameters.
18255 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18256 flag instead of asserting it.
18257 (ipa_read_node_info): Read uses_analysis_done flag.
18258
18259 2010-01-04 Richard Guenther <rguenther@suse.de>
18260
18261 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18262 iterative_hash_* as intended.
18263 (vn_reference_compute_hash): Likewise. Simplify hashing
18264 SSA names.
18265 (vn_reference_lookup_2): Likewise.
18266 (vn_nary_op_compute_hash): Likewise.
18267 (vn_phi_compute_hash): Likewise.
18268 (expressions_equal_p): Remove strange code.
18269 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18270 (pre_expr_hash): Likewise. Simplify hashing SSA names.
18271 (bitmap_insert_into_set_1): Take value-id as parameter.
18272 (add_to_value): Pass it.
18273 (bitmap_insert_into_set): Likewise.
18274 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
18275
18276 2010-01-04 Jakub Jelinek <jakub@redhat.com>
18277
18278 PR driver/42442
18279 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18280 (do_self_spec): For switches with SWITCH_IGNORE set set also
18281 SWITCH_IGNORE_PERMANENTLY.
18282 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18283 of SWITCH_IGNORE.
18284
18285 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
18286
18287 * lto-streamer-out.c (output_unreferenced_globals): Output the full
18288 tree of an unreferenced global var.
18289
18290 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18291
18292 PR target/42542
18293 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18294 GTU to GT for V4SI and V2DI.
18295
18296 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18297 (umin<mode>3): Removed.
18298 (uminv8hi3): New.
18299 (uminv4si3): Likewise.
18300
18301 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18302
18303 PR lto/42581
18304 * collect2.c (main): Turn on trace in collect2 if -v is passed
18305 to gcc with LTO.
18306
18307 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
18308
18309 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
18310 description of expression operand.
18311
18312 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
18313
18314 * configure.ac: Add install-html to target_list for Make-hooks.
18315 * configure: Regenerate.
18316 * fortran/Make-lang.in (F95_HTMLFILES): New.
18317 (fortran.html): Use it.
18318 (fortran.install-html): New.
18319 * Makefile.in (install-html): Add lang.install-html.
18320 * java/Make-lang.in (JAVA_HTMLFILES): New.
18321 (java.html): Use it.
18322 (java.install-html): New.
18323 * objc/Make-lang.in (objc.install-html): New.
18324 * objcp/Make-lang.in (obj-c++.install-html): New.
18325 * cp/Make-lang.in (c++.install-html): New.
18326 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18327 * lto/Make-lang.in (lto.install-html): New.
18328
18329 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18330
18331 PR lto/42520
18332 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18333
18334 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
18335
18336 PR rtl-optimization/41862
18337 * store-motion.c (store_killed_in_insn, compute_store_table,
18338 remove_reachable_equiv_notes, replace_store_insn,
18339 build_store_vectors): Ignore all DEBUG_INSNs.
18340
18341 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18342
18343 PR lto/41564
18344 * common.opt: Add dumpdir.
18345
18346 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18347 isn't specified.
18348 (option_map): Add --dumpdir.
18349
18350 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18351
18352 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18353
18354 * opts.c (decode_options): Try dump_dir_name first if
18355 dump_base_name isn't an absolute path.
18356 (common_handle_option): Handle OPT_dumpdir.
18357
18358 * toplev.c (dump_dir_name): New.
18359 (print_switch_values): Also ignore -dumpdir.
18360
18361 * toplev.h (dump_dir_name): New.
18362
18363 2010-01-03 Richard Guenther <rguenther@suse.de>
18364
18365 PR tree-optimization/42589
18366 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18367 double-word expansion of bswap32.
18368
18369 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
18370
18371 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18372 with BLOCK_FOR_INSN.
18373 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18374 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18375 noce_process_if_block): Likewise.
18376 * gcse.c (compute_local_properties, insert_expr_in_table,
18377 insert_set_in_table, canon_list_insert, find_avail_set,
18378 pre_insert_copy_insn): Likewise.
18379
18380 * basic-block.h (BLOCK_NUM): Move from here...
18381 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18382
18383 2010-01-03 Richard Guenther <rguenther@suse.de>
18384
18385 PR tree-optimization/42438
18386 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18387 contains_may_not_return_call flag.
18388 (BB_MAY_NOTRETURN): New.
18389 (valid_in_sets): Trapping nary operations are not valid
18390 in blocks that may not return.
18391 (insert_into_preds_of_block): Remove check for trapping expressions.
18392 (compute_avail): Compute also BB_MAY_NOTRETURN.
18393
18394 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
18395
18396 * doc/invoke.texi: Add 2010 to copyright years.
18397
18398 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
18399
18400 * config/sparc/sparc.c: Fix formatting nits.
18401
18402 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
18403 Alexander Monakov <amonakov@ispras.ru>
18404
18405 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18406
18407 2010-01-02 Richard Guenther <rguenther@suse.de>
18408
18409 PR middle-end/42577
18410 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18411 (simplify_switch_using_ranges): Mark to be removed edges
18412 as non-executable.
18413
18414 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18415
18416 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18417
18418 * collect2.c (scan_libraries): Add missing argument in call to
18419 scan_prog_file.
18420
18421 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
18422
18423 PR target/42448
18424 * config/alpha/predicates.md (aligned_memory_operand): Return false
18425 for CQImode.
18426 (unaligned_memory_operand): Return true for CQImode.
18427 * config/alpha/alpha.c (get_aligned_mem): Assert that location
18428 doesn not cross aligned SImode word boundary.
18429
18430 2010-01-02 Anatoly Sokolov <aesok@post.ru>
18431
18432 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18433 Remove.
18434 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18435 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18436
18437 2010-01-02 Richard Guenther <rguenther@suse.de>
18438
18439 PR lto/41597
18440 * toplev.c (compile_file): Emit LTO marker properly. Change
18441 it to __gnu_lto_v1.
18442 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18443
18444 2010-01-01 Richard Guenther <rguenther@suse.de>
18445
18446 PR debug/42455
18447 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18448
18449 2010-01-01 Richard Guenther <rguenther@suse.de>
18450
18451 PR c/42570
18452 * c-decl.c (grokdeclarator): For zero-size arrays force
18453 structural equality checks as layout_type does.
18454
18455 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18456
18457 * builtins.c: Update copyright to 2010.
18458
18459 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18460
18461 PR lto/42531
18462 * lto-streamer-out.c (produce_asm): Revert the last change.
18463 (copy_function): Likewise.
18464
18465 * lto-streamer.c (lto_get_section_name): Skip any leading
18466 asterisk in name.
18467
18468 2010-01-01 Richard Guenther <rguenther@suse.de>
18469
18470 PR middle-end/42559
18471 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18472 for LABEL_DECLs.
18473
18474 \f
18475 Copyright (C) 2010 Free Software Foundation, Inc.
18476
18477 Copying and distribution of this file, with or without modification,
18478 are permitted in any medium without royalty provided the copyright
18479 notice and this notice are preserved.