1 2008-09-11 Martin Jambor <mjambor@suse.cz>
3 * ipa-prop.h (struct ipa_param_flags): Removed.
4 (struct ipa_param_descriptor): New structure.
5 (struct ipa_node_params): ipcp_lattices, param_decls and
6 param_flags moved to ipa_param_description.
7 (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
8 descriptors. Renamed all users.
9 (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
10 changed to access descriptors. Renamed all users.
11 (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
12 to access descriptors. Renamed all users.
13 * ipa-cp.c (ipcp_init_cloned_node): Call
14 ipa_initialize_node_params instead of ipa_count_formal_params and
15 ipa_create_param_decls_array.
16 (ipcp_analyze_node): Likewise.
17 (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
18 descriptors. Renamed all users.
19 (ipcp_initialize_node_lattices): Remove allocation.
20 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
21 ipa_initialize_node_params instead of ipa_count_formal_params and
22 ipa_create_param_decls_array.
23 * ipa-prop.c (ipa_create_param_decls_array): Renamed to
24 ipa_populate_param_decls, made static, added parameter info,
25 renamed mt to node, removed allocation, changed to use
27 (ipa_count_formal_params): Made static, added parameter info,
29 (ipa_initialize_node_params): New function.
30 (ipa_check_stmt_modifications): Changed to use descriptors.
31 (ipa_detect_param_modifications): Removed allocation, changed to
33 (ipa_note_param_call): Changed to use descriptors.
34 (ipa_analyze_params_uses): Removed allocation.
35 (ipa_free_node_params_substructures): Changed to use descriptors.
36 (ipa_edge_duplication_hook): Use the unused attribute.
37 (ipa_node_duplication_hook): Use the unused attribute, changed to
38 use descriptors, changed to duplicate descriptors.
40 * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
41 changed all callers. Call ipa_propagate_indirect_call_infos if doing
42 indirect inlining. Made static.
43 (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
44 functions called only once.
45 (cgraph_decide_recursive_inlining): Don't call
46 ipa_propagate_indirect_call_infos, pass new_edges to
47 cgraph_mark_inline_edge instead.
48 (cgraph_decide_inlining_of_small_functions): Don't call
49 ipa_propagate_indirect_call_infos, pass new_edges to
50 cgraph_mark_inline_edge instead.
51 (cgraph_decide_inlining): Don't call
52 ipa_propagate_indirect_call_infos.
53 * ipa-prop.c: Check that vectors are allocated.
55 * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
56 iff a new cgraph edges have been created.
57 (cgraph_decide_inlining): New variable redo_always_inline.
58 Flattening and always_inlining loop until callgraph stabilizes.
59 * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
60 true iff new cgraph edges have been created.
61 (propagate_info_to_inlined_callees): Likewise.
62 (ipa_propagate_indirect_call_infos): Likewise.
64 2008-09-11 Richard Guenther <rguenther@suse.de>
66 * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
67 (set_prologue_iterations): Likewise.
68 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
70 (vect_update_init_of_dr): Likewise.
71 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
73 * fold-const.c (fold_unary): Do not generate calculations
76 2008-09-11 Paolo Bonzini <bonzini@gnu.org>
78 * dojump.c (do_jump) [BIT_AND_EXPR]: Move below. Fall through to
79 TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
80 (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
82 * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return a bool.
83 * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
84 VRP's simplify_stmt_using_ranges. Do simplify_stmt_using_ranges
85 before finalizing the changes.
86 * tree-vrp.c (extract_range_from_binary_expr): Add limited support
88 (simplify_truth_ops_using_ranges): New.
89 (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
90 simplify_cond_using_ranges, simplify_switch_using_ranges): Return
91 whether a simplification was made.
92 (simplify_stmt_using_ranges): Ditto, and accept a GSI. For GS_ASSIGN,
93 use a switch statement and also call simplify_truth_ops_using_ranges.
95 2008-09-11 Jan Hubicka <jh@suse.cz>
97 * ggc-common.c (loc_array): Make static.
98 * dce.c (rest_of_handle_ud_dce): Free worklist.
100 2008-09-11 Jan Hubicka <jh@suse.cz>
102 * cgraph.c (cgraph_release_function_body): Plug memory leak on
103 ipa_transforms_to_apply and CFG; ggc_free gimple df and struct function
104 so we are sure we do not dangle it forever.
105 * function.c (outer_function_chain, find_function_data): Remove.
106 (function_context_stack): New.
107 (push_function_context, pop_function_context): Update.
108 * function.h (struct function): Remove pointer outer.
109 (outer_function_chain, find_function_data): Remove.
110 * stmt.c (force_label_rtx): Remove dead call of find_function_data.
112 2008-09-11 Jan Hubicka <jh@suse.cz>
115 * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
117 2008-09-11 Jan Hubicka <jh@suse.cz>
119 * tree-ssa-pre.c (phi_translate_1): Fix memory leak
121 2008-09-11 Jan Hubicka <jh@suse.cz>
123 * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
124 (free_var_map_entry): New function.
125 (redirect_edge_var_map_destroy): Use it.
127 2008-09-11 Jan Hubicka <jh@suse.cz>
130 * tree-inline.c (add_lexical_block): Replace with ...
131 (prepend_lexical_block): ... prepend at begginig.
132 (remap_blocks): Use it and reverse later.
133 (expand_call_inline): Use prepend_lexical_block.
135 2008-09-11 Jan Hubicka <jh@suse.cz>
137 * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
139 2008-09-11 Jan Hubicka <jh@suse.cz>
141 * function.c (free_after_compilation): Call insn_locators_free.
142 * cfglayout.c (insn_locators_free): New function.
143 * rtl.h (insn_locators_free): Declare.
145 2008-09-11 Jan Hubicka <jh@suse.cz>
147 * ifcvt.c (check_cond_move_block): Make regs argument pointer to vector pointer.
148 (cond_move_process_if_block): Update call.
150 2008-09-11 Jan Hubicka <jh@suse.cz>
152 * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
153 * vec.c: Include hashtab.h
154 (vec_descriptor, ptr_hash_entry): New structures.
155 (vec_desc_hash, vec_ptr_map): New static variables.
156 (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
157 register_overhead, free_overhead, vec_heap_free): New functions.
158 (vec_gc_o_reserve_1): ggc_free when resizing to 0.
159 (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
160 (cmp_statistic, add_statistics, dump_vec_loc_statistics): New functions.
162 2008-09-11 Ira Rosen <irar@il.ibm.com>
164 PR tree-optimization/37474
165 * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
166 length of load permutation.
168 2008-09-11 Andreas Schwab <schwab@suse.de>
170 * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
172 2008-09-11 Jakub Jelinek <jakub@redhat.com>
175 * expmed.c (extract_low_bits): Avoid creating invalid subregs.
176 * dse.c (find_shift_sequence): Use extract_low_bits instead of
179 2008-09-11 Ira Rosen <irar@il.ibm.com>
181 * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
184 2008-09-10 Jakub Jelinek <jakub@redhat.com>
187 * gimplify.c (gimplify_body): Call default_rtl_profile.
190 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
191 instead of tok->val.node if not expanding to something else. Handle
192 intervening CPP_PADDING tokens.
193 (altivec_categorize_keyword): Remove unneeded comparisons.
195 2008-09-10 Richard Guenther <rguenther@suse.de>
197 * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
199 2008-09-10 Richard Guenther <rguenther@suse.de>
202 * tree-inline.c (insert_init_stmt): Make sure to not
203 insert invalid gimple stores.
205 2008-09-10 Sebastian Pop <sebastian.pop@amd.com>
207 PR tree-optimization/37388
208 * toplev.c (process_options): Fail and warn when graphite
209 flags are used, but the compiler has not been configured
210 with graphite libraries.
211 * graphite.c (graphite_transform_loops): Remove printfs
212 to dump_file for the case when graphite is not available.
214 2008-09-10 H.J. Lu <hongjiu.lu@intel.com>
217 * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
218 the even element into register.
219 (ix86_expand_vector_init_general): Don't use
220 ix86_expand_vector_init_interleave on V16QImode and V8HImode
221 if we can't move from GPR to SSE register directly.
223 2008-09-10 Bernd Schmidt <bernd.schmidt@analog.com>
225 * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
226 not lose track of the number of NOPs needed. Number of NOPs needed
227 for sync vs. loads workaround was switched; corrected. Run second
228 pass for all workarounds. No NOPs needed after call insns. Change
229 second pass to use find_next_insn_start and find_load helpers in order
230 to properly detect parallel insns.
231 * config/bfin/bfin.md (cbranch_with_nops): Increase length.
233 2008-09-10 Jan Hubicka <jh@suse.cz>
235 * value-prof.c (gimple_ic): Fix tuplification bug.
236 * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized var
239 2008-09-10 Jakub Jelinek <jakub@redhat.com>
241 PR tree-optimization/37353
242 * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
243 (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
244 calls instead of cond_dead_built_in_calls.
245 (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
246 initalize the vector only before adding first entry. Use VEC_safe_push
247 instead of VEC_quick_push. Pass cond_dead_built_in_calls to
248 shrink_wrap_conditional_dead_built_in_calls call.
250 2008-09-10 Ira Rosen <irar@il.ibm.com>
252 PR tree-optimization/37385
253 * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
254 and use it as a vector type if not NULL.
255 (vectorizable_store): Call vect_create_data_ref_ptr with the type of
257 (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
259 (vectorizable_load): Likewise.
261 2008-09-10 Jakub Jelinek <jakub@redhat.com>
263 * config/i386/i386.md (SWI32): New mode iterator.
264 (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
267 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
269 PR rtl-optimization/37435
270 * caller-save.c (insert_restore, insert_save): Check the mode by
273 2008-09-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
276 * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
278 (dw2_output_indirect_constant_1): Use unstripped name in symbol
281 2008-09-09 Sandra Loosemore <sandra@codesourcery.com>
283 * doc/invoke.texi (ARM Options): Correct errors in discussion
284 of -mfloat-abi, -mhard-float, and -msoft-float.
286 2008-09-09 Jakub Jelinek <jakub@redhat.com>
287 Jan Hubicka <jh@suse.cz>
290 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
291 calling gimple_regimplify_operands on it. Iterate over all newly
292 added statements, not just the last one.
293 (insert_init_stmt): Insert stmt into seq first, then call
294 gimple_regimplify_operands on it. Don't create new gimplification
295 context, nor find referenced vars.
297 2008-09-09 Jakub Jelinek <jakub@redhat.com>
300 * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
301 to pointer to vector pointer.
302 * ipa-prop.c (ipa_propagate_indirect_call_infos,
303 propagate_info_to_inlined_callees): Likewise.
304 (update_call_notes_after_inlining): Likewise. Push new indirect edge
305 to *new_edges instead of new_edges. Reread IPA_EDGE_REF after
306 ipa_check_create_edge_args.
307 * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
308 to pointer to vector pointer.
309 (cgraph_decide_inlining_of_small_function): Adjust
310 cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
314 * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when optimizing
317 PR rtl-optimization/37408
318 * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
321 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
323 PR tree-optimization/37375
324 * tree-scalar-evolution.c (scev_info_str): Add field instantiated_below.
325 (new_scev_info_str, eq_scev_info, find_var_scev_info,
326 set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
327 set_instantiated_value): Pass instantiated_below.
328 (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls to
330 (instantiate_scev_1, instantiate_scev): Pass a basic block above which the
331 definitions are not instantiated.
333 * tree-scalar-evolution.h (instantiate_scev): Update declaration.
334 (block_before_loop): New.
335 * tree-data-ref.c (dr_analyze_indices): Update uses of instantiate_scev.
336 * graphite.c (block_before_scop): New.
337 (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
338 basic block, not a loop for determining the parameters.
339 (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
341 (idx_record_params, find_params_in_bb, find_scop_parameters,
342 build_loop_iteration_domains, add_conditions_to_domain): Update calls
345 * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
347 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
351 * ira-build.c (ira_create_allocno): Setup frequency to 0.
353 * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
354 Check zero freq and increase if necessary.
356 2008-09-09 Vladimir Makarov <vmakarov@redhat.com>
358 * ira-conflicts.c (process_regs_for_copy): Check that the hard
359 regno is in the right range. Add comments.
361 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
363 * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
365 * mips-tfile.c (copy_object): Cast alloca result to int *.
366 * mips-tdump.c (print_symbol): Cast xmalloc return values to
368 Rename class to sclass.
369 (read_tfile): Cast read_seek return values to proper types.
370 Cast xcalloc return value to proper type.
372 2008-09-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
374 * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
375 * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
376 * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
378 2008-09-09 Jan Hubicka <jh@suse.cz>
380 * profile.c (is_edge_inconsistent): Add debug output; ignore negative count
382 (is_inconsistent): Add debug output.
384 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
386 * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
388 (choose_ready): When first insn is chosen from the ready list, also
391 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
393 PR rtl-optimization/37360
394 * haifa-sched.c (max_issue): Do not assert that we never issue more
395 insns than issue_rate. Add comment.
397 2008-09-09 Richard Guenther <rguenther@suse.de>
399 * tree-cfg.c (verify_types_in_gimple_op): Remove.
400 (verify_types_in_gimple_call): Rename to ...
401 (verify_gimple_call): ... this. Enhance.
402 (verify_types_in_gimple_cond): Remove.
403 (verify_gimple_comparison): New function ...
404 (verify_types_in_gimple_assign): ... split out from here.
405 (verify_types_in_gimple_return): Rename to ...
406 (verify_gimple_return): ... this. Enhance.
407 (verify_types_in_gimple_switch): Rename to ...
408 (verify_gimple_switch): ... this. Enhance.
409 (verify_gimple_goto): New function.
410 (verify_types_in_gimple_phi): Rename to ...
411 (verify_gimple_phi): ... this. Enhance.
412 (verify_types_in_gimple_stmt): Adjust calls to helper functions.
413 Fold in single-statement cases from verify_types_in_gimple_seq_2.
414 (verify_types_in_gimple_seq_2): Remove cases handled in
415 verify_types_in_gimple_stmt.
417 2008-09-09 Bernd Schmidt <bernd.schmidt@analog.com>
419 * config/bfin/bfin.c (n_regs_to_save): New static variable.
420 (push_multiple_operation, pop_multiple_operation): Set it.
421 (workaround_rts_anomaly): New function.
422 (workaround_speculation): New function, broken out of bfin_reorg.
423 (bfin_reorg): Call the new functions.
425 2008-09-09 Richard Guenther <rguenther@suse.de>
429 * gimplify.c (gimplify_conversion): Change conversions of
430 non-register type to VIEW_CONVERT_EXPRs.
431 (gimplify_addr_expr): If we need to make the operand
432 addressable make sure to use a properly initialized
433 temporary for that so it gets a valid gimple store.
435 2008-09-09 Aldy Hernandez <aldyh@redhat.com>
437 * function.h (struct function): Add function_start_locus.
438 * cfgexpand.c (gimple_expand_cfg): Use it.
439 * c-parser.c (c_parser_declaration_or_fndef): Set it.
441 2008-09-09 Richard Guenther <rguenther@suse.de>
443 PR tree-optimization/37433
444 * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
447 2008-09-09 Richard Guenther <rguenther@suse.de>
449 PR tree-optimization/37387
450 * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
451 and bits to a common type.
453 2008-09-09 Nick Clifton <nickc@redhat.com>
455 * config/v850/v850.md (return): Restore frame size restriction.
457 2008-09-09 Paolo Bonzini <bonzini@gnu.org>
459 * c-common.c (c_expand_decl): Remove.
460 * c-common.h (anon_aggr_type_p): Remove prototype.
461 (DECL_ANON_UNION_ELEMS): Remove.
462 * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
463 * c-decl.c (anon_aggr_type_p): Remove.
464 * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
465 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
466 * langhooks.h (struct lang_hooks): Remove expand_decl.
467 * langhooks.c (lhd_expand_decl): Remove.
468 * stmt.c (expand_anon_union_decl): Remove.
469 * tree.h (expand_anon_union_decl): Remove prototype.
471 2008-08-09 Andy Hutchinson <hutchinsonandy@aim.com>
474 * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
476 * config/avr/avr.md (QISI) : Define mode iterator.
477 (negated_tst<mode>) : Redefine as split using mode macro.
478 (reversed_tstqi): Define insn as reversed compare with zero.
479 (reversed_tsthi): Ditto.
480 (reversed_tstsi): Ditto.
482 2008-09-08 Jakub Jelinek <jakub@redhat.com>
485 * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
486 call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
489 * predict.c (optimize_function_for_size_p): Don't segfault if
491 * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
492 tree_swap_operands_p): Don't test cfun != NULL before calling
493 optimize_function_for_s*_p.
495 2008-09-08 Eric Botcazou <ebotcazou@adacore.com>
497 * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
500 2008-09-08 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
502 * crx/crx.h (IRA_COVER_CLASSES): Define.
504 2008-09-08 Jakub Jelinek <jakub@redhat.com>
507 * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
508 even when a stmt has been gimple_modified_p, but after fold_stmt is
509 not any longer. Remove unneeded may_have_exposed_new_symbols
512 2008-09-08 Richard Guenther <rguenther@suse.de>
514 PR tree-optimization/37421
515 * tree-ssa-sccvn.c (visit_copy): Make sure to fully
518 2008-09-08 Jakub Jelinek <jakub@redhat.com>
521 * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
523 2008-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
526 * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
527 * pa-hpux10.h (LINK_SPEC): Likewise.
528 * pa-hpux11.h (LINK_SPEC): Likewise.
530 2008-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
532 * pa32-regs.h (IRA_COVER_CLASSES): Define.
533 * pa64-regs.h (IRA_COVER_CLASSES): Define.
535 2008-09-07 Helge Deller <deller@gmx.de>
537 * pa/linux-atomic.c: New file.
538 * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
539 * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
541 2008-09-07 Richard Guenther <rguenther@suse.de>
542 Ira Rosen <irar@il.ibm.com>
544 PR tree-optimization/36630
545 * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
546 Call STRIP_NOPS before calling evolution_part_in_loop_num.
548 2008-09-07 Dorit Nuzman <dorit@il.ibm.com>
549 Ira Rosen <irar@il.ibm.com>
551 PR tree-optimization/35642
552 * config/rs6000/altivec.md (mulv8hi3): Implement.
554 2008-09-06 Jeff Law <law@redhat.com>
556 * h8300/h8300.h (IRA_COVER_CLASSES): Define.
558 2008-09-06 Jan Hubicka <jh@suse.cz>
560 PR tree-optimization/14703
561 * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored declarations.
562 * passes.c (init_optimization_passes): Recompute inline parameters.
564 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
566 * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
569 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
570 Peter Fuerst <post@pfrst.de>
572 * doc/invoke.texi: Document -mr10k-cache-barrier=.
573 * doc/extend.texi: Document __builtin_mips_cache.
574 * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
575 * config/mips/mips.opt (mr10k-cache-barrier=): New option.
576 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
577 __GCC_HAVE_BUILTIN_MIPS_CACHE.
578 (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
579 * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
580 (set_push_mips_isas): New variable.
581 (mips_r10k_cache_barrier): New variable.
582 (cache): New availability predicate.
583 (mips_builtins): Add an entry for __builtin_mips_cache.
584 (mips_build_cvpointer_type): New function.
585 (MIPS_ATYPE_CVPOINTER): New macro.
586 (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
588 (r10k_simplified_address_p, r10k_simplify_address)
589 (r10k_uncached_address_p, r10k_safe_address_p)
590 (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
591 (r10k_needs_protection_p_call, r10k_needs_protection_p)
592 (r10k_insert_cache_barriers): New functions.
593 (mips_reorg_process_insns): Delete cache barriers after a
594 branch-likely instruction.
595 (mips_reorg): Call r10k_insert_cache_barriers.
596 (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
597 * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
598 (UNSPEC_R10K_CACHE_BARRIER): Likewise.
599 (mips_cache, r10k_cache_barrier): New define_insns.
601 2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
603 * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
604 * ira-color.c (setup_allocno_left_conflicts_num): Use
605 hard_reg_set_equal_p instead of a comparison with
606 ira_zero_hard_reg_set.
607 * ira.c (setup_reg_subclasses): Likewise.
608 (setup_cover_and_important_classes): Likewise.
609 (setup_class_translate): Likewise.
610 (setup_reg_class_intersect_union): Likewise.
611 (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
612 (ira_init_once): Don't initialize them.
614 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
616 * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
618 2008-09-05 Vladimir Makarov <vmakarov@redhat.com>
620 * ira-color.c (ira_fast_allocation): Permit global allocno
623 2008-09-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
625 Improved branch hints, safe hints, and scheduling.
627 * haifa-sched.c (sched_emit_insn) : Define.
628 * sched-int.h (sched_emit_insn) : Add prototype.
629 * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
630 -mhint-max-distance -msafe-hints) : Document.
631 * config/spu/spu.c (spu_flag_var_tracking): New.
632 (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
633 TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
634 TARGET_ASM_FILE_START): Define.
635 (TARGET_SCHED_ADJUST_PRIORITY): Remove.
636 (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
637 (spu_emit_branch_hint): Add blocks argument.
638 (insert_branch_hints, insert_nops): Remove.
639 (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
640 uses_ls_unit, spu_sched_init_global, spu_sched_init,
641 spu_sched_reorder, asm_file_start): New functions.
642 (clock_var, spu_sched_length, pipe0_clock,
643 pipe1_clock, prev_clock_var, prev_priority,
644 spu_ls_first, prev_ls_clock): New static variables.
645 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
646 * config/spu.md (iprefetch): Add operand, make it clobber MEM.
647 (nopn_nv): Add a non-volatile version of nop.
648 * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
649 -mhint-max-distance, -msafe-hints): New options.
651 2008-09-05 Janis Johnson <janis187@us.ibm.com>
652 Samuel Tardieu <sam@rfc1149.net>
654 * opts.c (decode_options): Combine nested if statements.
657 * opts.c (decode_options): Handle more relationships among
658 unit-at-a-time, toplevel-reorder, and section-anchors.
660 2008-09-05 David Daney <ddaney@avtrex.com>
662 * doc/install.texi (--enable-reduced-reflection): Document new option.
664 2008-09-05 Bob Wilson <bob.wilson@acm.org>
666 * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
668 (constantpool_operand): New.
669 (move_operand): Disallow sub-word modes for the constant pool.
670 * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
671 (xtensa_secondary_reload_class): Replace with....
672 (xtensa_secondary_reload): this function. Remove SIGN_EXTEND check.
673 Set icode for sub-word reloads from the constant pool.
674 * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
675 (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
676 * config/xtensa/xtensa.md (reload<mode>_literal): New.
677 * config/xtensa/xtensa-protos.h: Update prototypes.
679 2008-09-05 Joseph Myers <joseph@codesourcery.com>
681 * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
682 (REG_CLASS_NAMES): Update.
683 (REG_CLASS_CONTENTS): Update.
684 * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
685 of ALL_REGS for regs 77 and 78.
686 * function.c (instantiate_virtual_regs_in_insn): Assert that
687 return value of simplify_gen_subreg is not NULL.
689 2008-09-05 Paolo Bonzini <bonzini@gnu.org>
691 * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
692 (gen_rtvec_v): Fix coding standards.
694 2008-09-04 Jan Hubicka <jh@suse.cz>
696 * i386.c (decide_alg): Be more conservative about optimizing for size.
698 2008-09-04 Ian Lance Taylor <iant@google.com>
700 * varasm.c (narrowing_initializer_constant_valid_p): New
702 (initializer_constant_valid_p): Call it.
704 2008-09-04 Jeff Law <law@redhat.com>
706 * fold-const.c (native_encode_real): Fix computation of WORDS.
707 (native_interpret_real): Likewise.
709 2008-09-04 Janis Johnson <janis187@us.ibm.com>
711 * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
713 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
715 * ira-conflicts.c (process_regs_for_copy): Check insn to check
716 that the cost is already taken into account in ira-costs.c
718 * ira-int.h (ira_debug_copy, ira_debug_copies): New.
720 * ira-build.c (print_copy, print_copies, ira_debug_copy,
721 ira_debug_copies): New.
722 (ira_bulid): Call print_copies.
724 * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
726 2008-09-04 Samuel Tardieu <sam@rfc1149.net>
729 * config/rs6000/rs6000.c (optimization_options): Remove check of
732 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
734 * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
735 * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
736 second operand is a reg_imm10_operand.
737 * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
738 *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
739 (*seq_<GPR:mode><GPR2:mode>): Rename to
740 *seq_zero_<GPR:mode><GPR2:mode>. Don't match if
742 (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
743 *seq_zero_<GPR:mode><GPR2:mode>_mip16. Don't match if
745 (*sne_<GPR:mode><GPR2:mode>): Rename to
746 *sne_zero_<GPR:mode><GPR2:mode>. Don't match if
749 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
751 * config/mips/mips.h (ISA_HAS_EXTS): New macro.
752 * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
753 combining an arithmetic right shift by more than 31 and a
754 trunction. Don't match for out-of-range shift amounts. Set
755 attribute mode to <MODE>.
756 (*lshr32_trunc<mode>): Name the pattern combining a logical right
757 shift by 32 and and a truncation. Set attribute mode to <MODE>.
758 (*<optab>_trunc<mode>_exts): New pattern for truncated right
759 shifts by less than 32.
760 (extv): Change predicate on first operand to accept registers.
761 Change predicate of the other operands from immediate_operand to
762 const_int_operand. Expand exts when source is a register.
763 (extzv): Change predicate of the constant operands from
764 immediate_operand to const_int_operand.
765 (extzv<mode>): Change predicate of the constant operands from
766 immediate_operand to const_int_operand and no constraint. Also
768 (*extzv_trunc<mode>_exts): New pattern.
770 2008-09-04 Adam Nemet <anemet@caviumnetworks.com>
772 * config/mips/mips.h (ISA_HAS_CINS): New macro.
773 * config/mips/mips-protos.h (mask_low_and_shift_p,
774 mask_low_and_shift_len): Declare.
775 * config/mips/mips.c (mask_low_and_shift_p,
776 mask_low_and_shift_len): New functions.
777 (mips_print_operand): Handle new operand prefix "m".
778 * config/mips/mips.md (*cins<mode>): New pattern.
780 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
782 * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
785 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
787 * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
788 regardless of epilogue_completed.
790 2008-09-04 Vladimir Makarov <vmakarov@redhat.com>
793 * ira-lives.c (process_bb_node_lives): Check setjmp.
795 2008-09-04 Richard Sandiford <rdsandiford@googlemail.com>
798 * ira-build.c (form_loop_tree): Reverse BB walk.
799 (create_bb_allocnos): Likewise.
800 * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
801 (mark_reg_store): Rename to...
802 (mark_ref_live): ...this and take a df_ref argument instead of
803 note_stores arguments. Assert that we have a register.
804 (mark_reg_clobber): Delete.
805 (def_conflicts_with_inputs_p): New function.
806 (mark_reg_conflicts): Delete.
807 (mark_reg_death): Rename to...
808 (mark_ref_dead): ...this and take a df_ref argument instead of
809 a register. Assert that we have a register.
810 (process_bb_node_lives): Hoist frequency calculation out of
811 instruction walk. Convert from a forwards scan to a backwards scan.
812 Use DF_REF_USES and DF_REF_DEFS instead of register notes and
813 note_stores. Remove EH_RETURN_DATA_REGNO and regs_set handling.
814 (create_allocno_live_ranges): Don't create regs_set.
816 2008-09-04 Ian Lance Taylor <iant@google.com>
818 * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
820 * calls.c (emit_library_call_value_1): Use MEM_P rather than
821 comparing MODE with MEM.
822 * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
823 comparing with GF_PREDICT_TAKEN.
824 (gimple_get_lhs): Change code to enum gimple_code.
825 (gimple_set_lhs): Likewise.
826 * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
827 * omp-low.c (find_omp_clause): Change kind parameter to enum
829 * tree-flow.h (find_omp_clause): Update declaration.
830 * regrename.c (clear_dead_regs): Change kind parameter to enum
832 * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
834 * see.c (see_get_extension_data): Change return type to enum
835 entry_type. Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
836 SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
837 (see_gen_normalized_extension): Change extension_code parameter to
839 (see_seek_pre_extension_expr): Change extension_code to enum
841 (see_merge_one_def_extension): Likewise.
842 (see_handle_relevant_defs): Likewise.
843 (see_handle_relevant_uses): Likewise.
844 (see_analyze_one_def): Likewise.
845 * tree-cfg.c (need_fake_edge_p): Compare gimple code with
846 GIMPLE_ASM rather than ASM_EXPR.
847 * tree-ssa-alias.c (is_escape_site): Compare gimple code with
848 GIMPLE_RETURN rather than RETURN_EXPR.
849 * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
850 (evaluate_stmt): Likewise.
851 * tree-vect-analyze.c (vect_analyze_operations): Change relevance
852 to enum vect_relevant.
853 (vect_mark_stmts_to_be_vectorized): Change assertion to not
854 compare gimple codes with tree codes.
856 2008-09-04 Paul Brook <paul@codesourcery.com>
858 * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
860 2008-09-04 Bernd Schmidt <bernd.schmidt@analog.com>
862 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
863 pointer check lost in the recent no-unit-at-a-time patch.
865 2008-09-04 Jan Hubicka <jh@suse.cz>
868 * tree-switch-conversion.c (check_final_bb): Accept only IP
871 2008-09-04 Jan Hubicka <jh@suse.cz>
873 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
875 (vrp_evaluate_conditional_warnv_with_ops): ... this one. Add
876 using_ranges argument.
877 (vrp_evaluate_conditional): Avoid bogus warning for type range.
878 (vrp_visit_cond_stmt): Update call of
879 vrp_evaluate_conditional_warnv_with_ops
881 2008-09-04 Jan Hubicka <jh@suse.cz>
883 PR tree-optimization/37345
884 PR tree-optimization/37358
885 PR tree-optimization/37357
886 * tree.c (build_function_type_skip_args): Build distinct type copy;
888 (build_function_decl_skip_args): Set type of new decl not orig decl;
889 clear DECL_VINDEX for methods turned into functions.
891 2008-09-04 Nick Clifton <nickc@redhat.com>
893 * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler
895 * configure: Regenerate.
896 * config.in: Regenerate.
897 * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
898 alignment field, if it is supported.
900 2008-09-04 Kai Tietz <kai.tietz@onevision.com>
902 * config/i386/t-mingw32 (SHLIB_LC): Change order of import
905 2008-09-03 David Edelsohn <edelsohn@gnu.org>
907 * config/rs6000/rs6000.c (processor_target_table): Do not
908 enable VMX for POWER6.
910 2008-09-03 Anton Blanchard <anton@samba.org>
912 * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
913 emit memory barrier before operation.
915 2008-09-03 John David Anglin <dave.anglin@nrc.cnrc.gc.ca>
918 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
919 default_elf_asm_output_external.
921 2008-09-03 Jeff Law <law@redhat.com>
923 * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
925 2008-09-03 Richard Henderson <rth@redhat.com>
927 * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
928 memory barrier to below the test-and-set.
929 (alpha_split_lock_test_and_set_12): Likewise.
931 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
935 * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
938 * ira-color.c (print_loop_title): Use all_allocnos.
939 (color_pass): Ditto. Don't add border_allocnos. Check that
940 subloop allocno in the correspdoning bitmap all_allocnos.
942 * ira-emit.c (change_loop): Use all_allocnos.
944 * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
946 (ira_create_allocno): Set up all_allocnos bit for the created
948 (create_cap_allocno): Remove setting mentioned_allocnos.
949 (create_insn_allocnos): Ditto.
950 (remove_unnecessary_allocnos): Use all_allocnos.
951 (check_allocno_creation): Check that allocnos are in the
952 corresponding bitmap all_allocnos.
954 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
958 * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
959 (process_regs_for_copy): Process subregs. Refine check when cost
960 is taken into account in ira-costs.c.
961 (process_reg_shuffles): Use REG_SUBREG_P.
962 (add_insn_allocno_copies): Ditto. Ignore modes.
964 * ira-color.c (conflict_allocno_vec): New.
965 (COST_HOP_DIVISOR): New macro.
966 (update_copy_costs_1): Use it.
967 (update_conflict_hard_regno_costs): New function.
968 (assign_hard_reg): Use it.
969 (ira_color): Allocate and free conflict_allocno_vec.
971 2008-09-03 Vladimir Makarov <vmakarov@redhat.com>
975 * ira-int.h (ira_sort_insn_chain): Remove.
977 * ira.c (basic_block_order_nums, chain_insn_order,
978 chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
979 (ira): Don't call ira_sort_insn_chain.
981 * reload1.c (reload): Don't call ira_sort_insn_chain.
983 2008-09-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
986 * cgraphunit.c (update_call_expr): Remove eh regions from statements
987 which become non throw.
988 (cgraph_function_versioning): Also clear DECL_WEAK. Call
989 update_call_expr after updating the flags on the decl.
991 2008-09-03 Jan Hubicka <jh@suse.cz>
993 PR tree-optimization/37315
994 * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
995 * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
996 (cgraph_analyze_functions): Use node->analyzed
997 (cgraph_mark_functions_to_output): Likewise.
998 (cgraph_expand_function): All functions can be released after
1000 (cgraph_optimize): Use gimple_has_body_p.
1001 * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
1002 (cgraph_decide_inlining_incrementally): Likewise.
1003 (inline_transform): Inline transform.
1004 * tree-inline.c (initialize_cfun): Do now shallow copy structure;
1006 (inlinable_function_p): Drop gimple_body check.
1007 (expand_call_inline): Use gimple_has_body_p.
1008 * gimple.c (gimple_has_body_p): New.
1009 * gimple.h (gimple_has_body_p): Add prototype.
1010 * tree-cfg.c (execute_build_cfg): Remove gimple_body.
1011 (dump_function_to_file): Use gimple_has_body_p check.
1013 2008-09-03 Jakub Jelinek <jakub@redhat.com>
1016 * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
1018 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
1020 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
1022 From Michael Frysinger <michael.frysinger@analog.com>
1023 * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
1024 bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549. Add 0.2
1027 2008-09-03 Hari Sandanagobalane <hariharan@picochip.com>
1030 * doc/extend.texi: Document picoChip builtin functions.
1031 * doc/invoke.texi: Document picoChip options.
1032 * doc/contrib.texi: Add picoChip contribution.
1033 * doc/md.texi: Document picoChip constraints.
1034 * config.gcc: Add picochip-*-*.
1035 * config/picochip/: Add new port.
1037 2008-09-03 Richard Guenther <rguenther@suse.de>
1039 PR tree-optimization/37328
1040 * tree-sra.c (sra_build_assignment): Gimplify properly.
1041 (generate_copy_inout): Take the correct stmt as definition,
1042 remove bogus assert.
1044 2008-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
1046 * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
1049 From Michael Frysinger <michael.frysinger@analog.com>
1050 * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
1052 2008-09-03 Danny Smith <dannysmith@usrs.sourceforge.net>
1054 * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
1056 (__gthread_setspecific): Revert 2008-08-31 change to
1057 __GTHREAD_HIDE_W32API case. Apply it to !__GTHREAD_HIDE_W32API
1060 2008-09-02 Aldy Hernandez <aldyh@redhat.com>
1062 * diagnostic.c (error_at): New.
1063 * toplev.h (error_at): New prototype.
1064 * c-typeck.c (build_array_ref): Call error_at instead of error.
1065 Pass location to pedwarn.
1067 2008-09-02 Adam Nemet <anemet@caviumnetworks.com>
1069 * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
1071 2008-09-02 Jakub Jelinek <jakub@redhat.com>
1073 * dwarf2out.c (tree_add_const_value_attribute): Only handle
1074 VAR_DECL and CONST_DECL.
1076 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
1077 Jakub Jelinek <jakub@redhat.com>
1079 * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
1080 (setup_incoming_varargs_64): Assume cum != NULL. Set/check
1081 ix86_varargs_gpr_size and ix86_varargs_fpr_size. Use
1082 ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
1083 Don't set ix86_save_varrargs_registers.
1084 (ix86_setup_incoming_varargs): Assume cum != NULL.
1085 (ix86_va_start): Check ix86_varargs_gpr_size and
1086 ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
1087 cfun->va_list_fpr_size, respectively. Subtract 8*X86_64_REGPARM_MAX
1088 from frame pointer if ix86_varargs_gpr_size == 0.
1089 (ix86_compute_frame_layout): Updated.
1090 * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
1091 (ix86_varargs_gpr_size): Define.
1092 (ix86_varargs_fpr_size): Likewise.
1093 (machine_function): Remove save_varrargs_registers.
1094 Add varargs_gpr_size and varargs_fpr_size.
1096 2008-09-02 Jakub Jelinek <jakub@redhat.com>
1098 * config/alpha/alpha.c (va_list_skip_additions,
1099 alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
1100 (alpha_gimplify_va_arg): Call unshare_expr on second use of
1103 PR tree-optimization/36766
1104 * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
1105 for already removed basic blocks.
1108 * real.c (real_maxval): Clear a lower bit to make real_maxval
1109 match get_max_float for IBM long double format.
1111 2008-09-02 Andreas Schwab <schwab@suse.de>
1113 * configure.ac: Use m4_quote to quote the expansion of m4_do.
1114 * configure: Regenerate.
1116 2008-09-02 Richard Sandiford <rdsandiford@googlemail.com>
1118 * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
1119 SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
1120 checking for a non-VOID CONSTANT_P.
1122 2008-09-02 Jan Hubicka <jh@suse.cz>
1124 * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
1125 * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
1127 2008-09-02 H.J. Lu <hongjiu.lu@intel.com>
1129 * expr.c (emit_group_store): Don't assert stack temp mode size.
1131 2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
1132 Tobias Grosser <grosser@fim.uni-passau.de>
1133 Jan Sjodin <jan.sjodin@amd.com>
1134 Harsha Jagasia <harsha.jagasia@amd.com>
1135 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
1136 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1137 Adrien Eliche <aeliche@isty.uvsq.fr>
1139 Merge from graphite branch.
1142 * tree-loop-linear.c (perfect_loop_nest_depth): Export.
1143 * doc/invoke.texi (-floop-block, -floop-interchange,
1144 -floop-strip-mine): Document new flags.
1145 * tree-into-ssa.c (gimple_vec): Moved...
1146 * tree-loop-distribution.c (rdg_component): Moved...
1147 * cfgloopmanip.c: Include tree-flow.h.
1148 (update_dominators_in_loop): New.
1149 (create_empty_if_region_on_edge): New.
1150 (create_empty_loop_on_edge): New.
1151 (loopify): Use update_dominators_in_loop.
1152 * tree-pass.h (pass_graphite_transforms): Declared.
1153 * configure: Regenerate.
1154 * tree-phinodes.c (make_phi_node): Export.
1155 (add_phi_node_to_bb): New, split from create_phi_node.
1156 * tree-chrec.c (for_each_scev_op): New.
1157 * tree-chrec.h (for_each_scev_op): Declared.
1158 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
1159 (remove_statement): Call get_phi_with_result.
1160 * config.in (HAVE_cloog): Undef.
1161 * gdbinit.in (pgg): New.
1162 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
1163 * tree-ssa-loop.c (graphite_transforms): New.
1164 (gate_graphite_transforms): New.
1165 (pass_graphite_transforms): New.
1166 * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
1167 HAVE_cloog): Defined.
1168 * tree-vectorizer.c (rename_variables_in_bb): Export.
1169 * tree-data-ref.c (dr_may_alias_p): Export.
1170 (stmt_simple_memref_p): New.
1171 (find_data_references_in_stmt): Export.
1172 (find_data_references_in_loop): Export.
1173 (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
1174 (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
1175 (create_rdg_vertices): Export.
1176 (build_empty_rdg): New.
1177 (build_rdg): Call build_empty_rdg. Free dependence_relations.
1178 * tree-data-ref.h (rdg_component): ... here.
1180 (struct data_reference): Add a field scop.
1182 (find_data_references_in_loop): Declared.
1183 (find_data_references_in_stmt): Declared.
1184 (create_rdg_vertices): Declared.
1185 (dr_may_alias_p): Declared.
1186 (stmt_simple_memref_p): Declared.
1187 (struct rdg_edge): Add a field ddr_p relation.
1188 (build_empty_rdg): Declared.
1189 * lambda.h (lambda_matrix): Declare a VEC of.
1190 (find_induction_var_from_exit_cond): Declared.
1191 (lambda_vector_compare): New.
1192 * common.opt (fgraphite, floop-strip-mine,
1193 floop-interchange, floop-block): New flags.
1194 * lambda-code.c (find_induction_var_from_exit_cond): Export.
1195 * cfgloop.c (is_loop_exit): New.
1196 * cfgloop.h (is_loop_exit): Declared.
1197 (create_empty_if_region_on_edge): Declared.
1198 (create_empty_loop_on_edge): Declared.
1199 * tree-flow.h (add_phi_node_to_bb): Declared.
1200 (make_phi_node): Declared.
1201 (rename_variables_in_bb): Declared.
1202 (perfect_loop_nest_depth): Declared.
1203 (graphite_transform_loops): Declared.
1204 * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
1205 (graphite.o-warn): Add -Wno-error.
1206 (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
1207 (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
1208 (INCLUDES): Add PPLINC, CLOOGINC.
1209 (OBJS-common): Add graphite.o.
1210 (graphite.o): Add rule.
1211 * gimple.h (gimple_vec): ... here.
1212 * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
1213 * passes.c (init_optimization_passes): Schedule
1214 pass_graphite_transforms.
1216 2008-09-02 Samuel Tardieu <sam@rfc1149.net>
1219 * opts.c (decode_options): Move processing of -fno-unit-at-a-time
1220 and -fno-toplevel-reorder after handle_options.
1222 2008-09-02 Paul Brook <paul@codesourcery.com>
1224 * config/arm/arm.c (arm_tune_cortex_a9): Define.
1225 (arm_override_options): Set arm_tune_cortex_a9.
1226 (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
1227 (arm_issue_rate): Handle cortexa9.
1228 * config/arm/arm.h (arm_tune_cortex_a9): Declare.
1229 * config/arm/arm-cores.def: Add cortex-a9.
1230 * config/arm/arm-tune.md: Regenerate.
1231 * config/arm/arm.md: Include cortex-a9.md.
1232 (generic_sched, generic_vfp): Add cortexa9.
1233 * config/arm/cortex-a9.md: New file.
1235 2008-09-02 Richard Guenther <rguenther@suse.de>
1237 PR tree-optimization/37327
1238 * tree-vrp.c (register_new_assert_for): Make sure to not have
1239 TREE_OVERFLOW set on the bound.
1241 2008-09-02 Alexander Monakov <amonakov@ispras.ru>
1243 Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
1245 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
1246 * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
1249 2008-09-02 Victor Kaplansky <victork@il.ibm.com>
1251 * gcc/config/spu/spu.md (divdf3): Removed.
1253 2008-09-02 Jakub Jelinek <jakub@redhat.com>
1255 PR tree-optimization/37095
1256 * cgraph.c (cgraph_node): When creating new cgraph node after
1257 assembler_name_hash has been populated, record it in the hash
1260 2008-09-01 Paul Brook <paul@codesourcery.com>
1262 * doc/invoke.texi: Document -mword-relocations.
1263 * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1264 * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1265 * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1266 * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
1267 (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
1268 (arm_emit_movpair): New function.
1269 (arm_print_operand <c>): Handle sybolic addresses.
1270 * config/arm/arm.h (TARGET_USE_MOVT): Define.
1271 (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1272 * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
1273 * config/arm/arm.opt: Add -mword-relocations.
1274 * config/arm/arm.md (movsi): Use arm_emit_movpair.
1275 (arm_movt, arm_movw): New.
1277 2008-09-01 Paul Brook <paul@codesourcery.com>
1279 * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
1280 Allow Interworking on ARMv4 EABI based targets.
1281 * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
1282 (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
1284 2008-09-01 Paul Brook <paul@codesourcery.com>
1286 * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
1287 optimized LT0 test. Remove optimization for GT.
1289 2008-09-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1291 * pa64-hpux.h (LIB_SPEC): Link against librt when building static
1292 openmp applications.
1293 * pa-hpux11.h (LIB_SPEC): Likewise.
1295 * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
1298 2008-09-01 Jan Hubicka <jh@suse.cz>
1300 * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
1301 present, use only counts; when guessed use only frequencies.
1302 (estimate_bb_frequencies): Use function_frequency.
1303 * profile.c (compute_branch_probabilities): Exit early when
1304 profile reading failed. Set profile_status.
1305 (branch_prob): Do not set profile_status.
1307 2008-09-01 Aldy Hernandez <aldyh@redhat.com>
1309 * tree.c (protected_set_expr_location): New.
1310 * tree.h (protected_set_expr_location): New prototype.
1311 * c-tree.h (build_array_ref): Add argument.
1312 (parser_build_unary_op): Same.
1313 * c-typeck.c (build_indirect_ref): Handle new location argument.
1314 (build_array_ref): Same.
1315 (parser_build_unary_op): Same.
1316 * gimplify.c (gimplify_asm_expr): Set input_location before calling
1318 * c-omp.c (c_finish_omp_atomic): Pass location when calling
1320 * c-common.c (finish_label_address_expr): Handle new location
1322 * c-common.h (build_indirect_ref): Add argument.
1323 (finish_label_address_expr): Same.
1324 * c-parser.c (c_parser_unary_expression): Pass location to build
1326 (c_parser_postfix_expression): Same.
1328 2008-09-01 Paul Brook <paul@codesourcery.com>
1330 * config/arm/arm.md: Include cortex-r4f.md.
1331 (attr fpu): Update type list.
1332 (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
1333 fconstd, fcmps and fcmpd.
1334 (attr tune_cortexr4): Define.
1335 (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
1336 * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
1337 fconsts, fconstd, fcmps and fcmpd. Use them in insn patterns.
1338 * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
1339 * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
1341 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
1342 cortex_a8_vfp_farith: Ditto.
1343 * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
1344 * config/arm/cortex-r4.md: Use tune_cortexr4.
1345 * config/arm/cortex-r4f.md: New file.
1347 2008-09-01 Richard Guenther <rguenther@suse.de>
1349 PR tree-optimization/37305
1350 * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
1351 the result of constant conversions.
1352 (fold_gimple_assign): Likewise.
1354 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
1356 * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
1357 #ifdef ENABLE_CHECKING.
1359 2008-09-01 Andrey Belevantsev <abel@ispras.ru>
1361 * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
1362 * sched-int.h (print_insn, print_pattern, print_value): Declare also
1363 when !INSN_SCHEDULING.
1365 2008-09-01 Andreas Schwab <schwab@suse.de>
1367 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
1369 2008-09-01 Paul Brook <paul@codesourcery.com>
1371 * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1373 2008-09-01 Jan Hubicka <jh@suse.cz>
1375 * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1377 * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
1378 * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1379 * gimplify.c (gimplify_init_constructor): Add speed operand.
1380 * tree-sra.c (decide_block_copy): Likewise.
1381 * tree-inline.c (estimate_move_cost): Likewise.
1382 * config/alpha/alpha.h (MOVE_RATIO): Update.
1383 * config/frv/frv.c (MOVE_RATIO): Update.
1384 * config/spu/spu.h (MOVE_RATIO): Update.
1385 * config/sparc/sparc.h (MOVE_RATIO): Update.
1386 * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1387 * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1388 * config/cris/cris.h (MOVE_RATIO): Update.
1389 * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1390 * config/arm/arm.h (MOVE_RATIO): Update.
1391 * config/pa/pa.md: Update uses of MOVE_RATIO
1392 * config/pa/pa.h (MOVE_RATIO): Update.
1393 * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
1394 * config/h8300/h8300.h (MOVE_RATIO): Update.
1395 * config/v850/v850.h (MOVE_RATIO): Update.
1396 * config/bfin/bfin.h (MOVE_RATIO): Update.
1398 2008-08-31 Andrey Belevantsev <abel@ispras.ru>
1399 Dmitry Melnik <dm@ispras.ru>
1400 Dmitry Zhurikhin <zhur@ispras.ru>
1401 Alexander Monakov <amonakov@ispras.ru>
1402 Maxim Kuvyrkov <maxim@codesourcery.com>
1404 * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1405 sel-sched-dump.c, sel-sched-ir.c: New files.
1406 * Makefile.in (OBJS-common): Add selective scheduling object
1408 (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1409 (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1410 (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1411 * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1412 * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1413 (make_forwarder_block): Update loop latch if we have redirected
1414 the loop latch edge.
1415 * cfgloop.c (get_loop_body_in_custom_order): New function.
1416 * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1417 (CP_FALLTHRU_PREHEADERS): Likewise.
1418 (get_loop_body_in_custom_order): Declare.
1419 * cfgloopmanip.c (has_preds_from_loop): New.
1420 (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1421 Assert that the preheader edge will be fall thru when it is set.
1422 * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1423 fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1424 fsel-sched-substitution, fselective-scheduling): New flags.
1425 * cse.c (hash_rtx_cb): New.
1427 * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1428 sel_sched_insn_cnt): New counters.
1429 * final.c (compute_alignments): Export. Free dominance info after loop_optimizer_finalize.
1430 * genattr.c (main): Output maximal_insn_latency prototype.
1431 * genautomata.c (output_default_latencies): New. Factor its code from ...
1432 (output_internal_insn_latency_func): ... here.
1433 (output_internal_maximal_insn_latency_func): New.
1434 (output_maximal_insn_latency_func): New.
1435 * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1436 (struct hard_reg_set_iterator): New.
1437 (hard_reg_set_iter_init, hard_reg_set_iter_set,
1438 hard_reg_set_iter_next): New functions.
1439 (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1440 * lists.c (remove_free_INSN_LIST_node,
1441 remove_free_EXPR_LIST_node): New functions.
1442 * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
1443 set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
1444 (loop_optimizer_finalize): Do not verify flow info after reload.
1445 * recog.c (validate_replace_rtx_1): New parameter simplify.
1446 Default it to true. Update all uses. Factor out simplifying
1448 (simplify_while_replacing): ... this new function.
1449 (validate_replace_rtx_part,
1450 validate_replace_rtx_part_nosimplify): New.
1451 * recog.h (validate_replace_rtx_part,
1452 validate_replace_rtx_part_nosimplify): Declare.
1453 * rtl.c (rtx_equal_p_cb): New.
1454 (rtx_equal_p): Use it.
1455 * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1456 (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1457 debug_bb_n_slim, debug_bb_slim, print_rtl_slim): Likewise.
1458 * vecprim.h: Add a vector type for unsigned int.
1459 * haifa-sched.c: Include vecprim.h and cfgloop.h.
1460 (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1461 ready_try, cycle_issued_insns, spec_info): Make global.
1462 (readyp): Initialize.
1463 (dfa_lookahead): New global variable.
1464 (old_max_uid, old_last_basic_block): Remove.
1465 (h_i_d): Make it a vector.
1466 (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1468 (after_recovery, adding_bb_to_current_region_p):
1469 New variables to handle correct insertion of the recovery code.
1470 (struct ready_list): Move declaration to sched-int.h.
1471 (rgn_n_insns): Removed.
1472 (rtx_vec_t): Move to sched-int.h.
1473 (find_insn_reg_weight): Remove.
1474 (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1475 (haifa_init_h_i_d, haifa_finish_h_i_d):
1476 New functions to initialize / finalize haifa instruction data.
1477 (extend_h_i_d, init_h_i_d): Rewrite.
1478 (unlink_other_notes): Move logic to add_to_note_list. Handle
1479 selective scheduler.
1480 (ready_lastpos, ready_element, ready_sort, reemit_notes,
1481 find_fallthru_edge): Make global, remove static prototypes.
1482 (max_issue): Make global. Add privileged_n and state parameters. Use
1484 (extend_global, extend_all): Removed.
1485 (init_before_recovery): Add new param. Fix the handling of the case
1486 when we insert a recovery code before the EXIT which has a predecessor
1487 with a fallthrough edge to it.
1488 (create_recovery_block): Make global. Rename to
1489 sched_create_recovery_block. Update.
1490 (change_pattern): Rename to sched_change_pattern. Make global.
1491 (speculate_insn): Rename to sched_speculate_insn. Make global.
1492 Split haifa-specific functionality into ...
1493 (haifa_change_pattern): New static function.
1494 (sched_extend_bb): New static function.
1495 (sched_init_bbs): New function.
1496 (current_sched_info): Change type to struct haifa_sched_info.
1497 (insn_cost): Adjust for selective scheduling.
1498 (dep_cost_1): New function. Move logic from ...
1499 (dep_cost): ... here.
1500 (dep_cost): Use dep_cost_1.
1501 (contributes_to_priority_p): Use sched_deps_info instead of
1503 (priority): Adjust to work with selective scheduling. Process the
1504 corner case when all dependencies don't contribute to priority.
1505 (rank_for_schedule): Use ds_weak instead of dep_weak.
1506 (advance_state): New function. Move logic from ...
1507 (advance_one_cycle): ... here.
1508 (add_to_note_list, concat_note_lists): New functions.
1509 (rm_other_notes): Make static. Adjust for selective scheduling.
1510 (remove_notes, restore_other_notes): New functions.
1511 (move_insn): Add two arguments. Update assert. Don't call
1513 (choose_ready): Remove lookahead variable, use dfa_lookahead.
1514 Remove more_issue, max_points. Move the code to initialize
1515 max_lookahead_tries to max_issue.
1516 (schedule_block): Remove rgn_n_insns1 parameter. Don't allocate
1517 ready. Adjust use of move_insn. Call restore_other_notes.
1519 (sched_init, sched_finish): Move Haifa-specific initialization/
1521 (haifa_sched_init, haifa_sched_finish): ... respectively.
1523 (setup_sched_dump): New function.
1524 (haifa_init_only_bb): New static function.
1525 (haifa_speculate_insn): New static function.
1526 (try_ready): Use haifa_* instead of speculate_insn and
1528 (extend_ready, extend_all): Remove.
1529 (sched_extend_ready_list, sched_finish_ready_list): New functions.
1530 (create_check_block_twin, add_to_speculative_block): Use
1531 haifa_insns_init instead of extend_global. Update to use new
1532 initialization functions. Change parameter. Factor out code from
1533 create_check_block_twin to ...
1534 (sched_create_recovery_edges) ... this new function.
1535 (add_block): Remove.
1536 (sched_scan_info): New.
1537 (extend_bb): Use sched_scan_info.
1538 (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1539 static functions for walking through scheduling region.
1540 (sched_luids): New vector variable to replace uid_to_luid.
1541 (luids_extend_insn): New function.
1542 (sched_max_luid): New variable.
1543 (luids_init_insn): New function.
1544 (sched_init_luids, sched_finish_luids): New functions.
1545 (insn_luid): New debug function.
1546 (sched_extend_target): New function.
1547 (haifa_init_insn): New static function.
1548 (sched_init_only_bb): New hook.
1549 (sched_split_block): New hook.
1550 (sched_split_block_1): New function.
1551 (sched_create_empty_bb): New hook.
1552 (sched_create_empty_bb_1): New function.
1553 (common_sched_info, ready): New global variables.
1554 (current_sched_info_var): Remove.
1555 (move_block_after_check): Use common_sched_info.
1556 (haifa_luid_for_non_insn): New static function.
1557 (init_before_recovery): Use haifa_init_only_bb instead of
1559 (increase_insn_priority): New.
1560 * modulo-sched.c: (issue_rate): Remove static declaration.
1561 (sms_sched_info): Change type to haifa_sched_info.
1562 (sms_sched_deps_info, sms_common_sched_info): New variables.
1563 (setup_sched_infos): New.
1564 (sms_schedule): Initialize them. Call haifa_sched_init/finish.
1565 Do not call regstat_free_calls_crossed.
1566 (sms_print_insn): Use const_rtx.
1567 * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1568 PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1569 PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1570 PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1571 * sched-deps.c (sched_deps_info): New. Update all relevant uses of
1572 current_sched_info to use it.
1573 (enum reg_pending_barrier_mode): Move to sched-int.h.
1574 (h_d_i_d): New variable. Initialize to NULL.
1575 ({true, output, anti, spec, forward}_dependency_cache): Initialize
1577 (estimate_dep_weak): Remove static declaration.
1578 (sched_has_condition_p): New function. Adjust users of
1579 sched_get_condition to use it instead.
1580 (conditions_mutex_p): Add arguments indicating which conditions are
1582 (sched_get_condition_with_rev): Rename from sched_get_condition. Add
1583 argument to indicate whether returned condition is reversed. Do not
1584 generate new rtx when condition should be reversed; indicate it by
1585 setting new argument instead.
1586 (add_dependence_list_and_free): Add deps parameter.
1587 Update all users. Do not free dependence list when
1588 deps context is readonly.
1589 (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1591 (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1592 (remove_from_deps): New. Use the above functions.
1593 (cur_insn, can_start_lhs_rhs_p): New static variables.
1594 (add_or_update_back_dep_1): Initialize present_dep_type.
1595 (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1596 haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1597 haifa_note_dep): New functions implementing dependence hooks for
1598 the Haifa scheduler.
1599 (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1600 note_dep): New functions.
1601 (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1603 (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1604 (free_deps): Initialize deps->reg_last.
1605 (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1606 sched_analyze_insn): Update to use dependency hooks infrastructure
1607 and readonly contexts.
1608 (deps_analyze_insn): New function. Move part of logic from ...
1609 (sched_analyze): ... here. Also move some logic to ...
1610 (deps_start_bb): ... here. New function.
1611 (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1613 (sched_deps_init): New function. Move code from ...
1614 (init_dependency_caches): ... here. Remove.
1615 (init_deps_data_vector): New.
1616 (sched_deps_finish): New function. Move code from ...
1617 (free_dependency_caches): ... here. Remove.
1618 (init_deps_global, finish_deps_global): Adjust for use with
1619 selective scheduling.
1620 (get_dep_weak): Move logic to ...
1621 (get_dep_weak_1): New function.
1622 (ds_merge): Move logic to ...
1623 (ds_merge_1): New static function.
1624 (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1625 (ds_get_max_dep_weak): New function.
1626 * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1627 (n_insns): Rename to rgn_n_insns.
1628 (debug_ebb_dependencies): New function.
1629 (init_ready_list): Use it.
1630 (begin_schedule_ready): Use sched_init_only_bb.
1631 (ebb_print_insn): Indicate when an insn starts a new cycle.
1632 (contributes_to_priority, compute_jump_reg_dependencies,
1633 add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1634 (add_block1): Remove to ebb_add_block.
1635 (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1636 (schedule_ebb): Initialize them. Use remove_notes instead of
1637 rm_other_notes. Use haifa_local_init/finish.
1638 (schedule_ebbs): Use haifa_sched_init/finish.
1639 * sched-int.h: Include vecprim.h, remove rtl.h.
1640 (struct ready_list): Delete declaration.
1641 (sched_verbose_param, enum sched_pass_id_t,
1642 bb_vec_t, insn_vec_t, rtx_vec_t): New.
1643 (struct sched_scan_info_def): New structure.
1644 (sched_scan_info, sched_scan, sched_init_bbs,
1645 sched_init_luids, sched_finish_luids, sched_extend_target,
1646 haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1647 (struct common_sched_info_def): New.
1648 (common_sched_info, haifa_common_sched_info,
1649 sched_emulate_haifa_p): Declare.
1651 (sched_luids): Declare.
1652 (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1653 (sched_max_luid, insn_luid): Declare.
1654 (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1655 (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1656 print_insn, print_pattern, print_value, haifa_classify_insn,
1657 sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1658 setup_sched_dump, sched_init, sched_finish,
1659 sel_insn_is_speculation_check): Export.
1660 (struct ready_list): Move from haifa-sched.c.
1661 (ready_try, ready, max_issue): Export.
1662 (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1663 sched_init_only_bb, sched_split_block, sched_split_block_1,
1664 sched_create_empty_bb, sched_create_empty_bb_1,
1665 sched_create_recovery_block, sched_create_recovery_edges): Export.
1666 (enum reg_pending_barrier_mode): Export.
1667 (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1669 (struct sched_info): Rename to haifa_sched_info. Use const_rtx for
1670 print_insn field. Move add_block and fix_recovery_cfg to
1671 common_sched_info_def. Move compute_jump_reg_dependencies, use_cselib ...
1672 (struct sched_deps_info_def): ... this new structure.
1673 (sched_deps_info): Declare.
1674 (struct spec_info_def): Remove weakness_cutoff, add
1675 data_weakness_cutoff and control_weakness_cutoff.
1676 (spec_info): Declare.
1677 (struct _haifa_deps_insn_data): Split from haifa_insn_data. Add
1679 (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1680 (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1681 (current_sched_info): Change type to struct haifa_sched_info.
1682 (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1683 (h_d_i_d): New variable.
1684 (HDID): New accessor macro.
1685 (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1686 (HID): New accessor macro. Rewrite h_i_d accessor macros through HID
1688 (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1689 (enum SCHED_FLAGS): Update for selective scheduler.
1690 (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1691 (init_dependency_caches, free_dependency_caches): Delete declarations.
1692 (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1693 estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1694 ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1695 sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1696 haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1698 (rm_other_notes): Delete declaration.
1699 (schedule_block): Remove one argument.
1700 (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1701 ready_element, ready_lastpos, sched_extend_ready_list,
1702 sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1703 concat_note_lists): Export.
1704 (struct region): Move from sched-rgn.h.
1705 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1706 RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1707 BLOCK_TO_BB, CONTAINING_RGN): Export.
1708 (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1709 (current_nr_blocks, current_blocks, target_bb): Likewise.
1710 (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1711 sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1712 sched_rgn_local_init, extend_regions,
1713 rgn_make_new_region_out_of_new_block, compute_priorities,
1714 debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1715 extend_rgns, deps_join rgn_setup_common_sched_info,
1716 rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1717 dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1718 (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1719 increase_insn_priority): Likewise.
1720 * sched-rgn.c: Include sel-sched.h.
1721 (ref_counts): New static variable. Use it ...
1722 (INSN_REF_COUNT): ... here. Rewrite and move closer to uses.
1723 (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1724 (sched_is_disabled_for_current_region_p): Delete static declaration.
1725 (struct region): Move to sched-int.h.
1726 (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1727 ebb_head): Define and initialize.
1728 (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1729 BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1730 BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1732 (find_single_block_region): Add new argument to indicate that EBB
1733 regions should be constructed.
1734 (debug_live): Delete declaration.
1735 (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
1736 (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1738 (init_regions): Delete declaration.
1739 (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1740 rgn_estimate_number_of_insns): New.
1741 (too_large): Use estimate_number_of_insns.
1742 (haifa_find_rgns): New. Move the code from ...
1743 (find_rgns): ... here. Call either sel_find_rgns or haifa_find_rgns.
1744 (free_trg_info): New.
1745 (compute_trg_info): Allocate candidate tables here instead of ...
1746 (init_ready_list): ... here.
1747 (rgn_print_insn): Use const_rtx.
1748 (contributes_to_priority, extend_regions): Delete static declaration.
1749 (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1750 (add_block1): Rename to rgn_add_block.
1751 (debug_rgn_dependencies): Delete static qualifier.
1752 (new_ready): Use sched_deps_info. Simplify.
1753 (rgn_common_sched_info, rgn_const_sched_deps_info,
1754 rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
1755 (region_sched_info): Rename to rgn_const_sched_info.
1756 (deps_join): New, extracted from ...
1757 (propagate_deps): ... here.
1758 (compute_block_dependences, debug_dependencies): Update for selective
1760 (free_rgn_deps, compute_priorities): New functions.
1761 (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1762 sched_rgn_compute_dependencies): New functions.
1763 (schedule_region): Use them.
1764 (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1765 rgn_setup_common_sched_info, rgn_setup_sched_infos):
1767 (schedule_insns): Call new functions that were split out.
1768 (rgn_make_new_region_out_of_new_block): New.
1769 (get_rgn_sched_max_insns_priority): New.
1770 (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1771 scheduling when appropriate.
1772 * sched-vis.c: Include insn-attr.h.
1773 (print_value, print_pattern): Make global.
1774 (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1775 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1776 TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1777 TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1778 TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1779 TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1780 hooks. Initialize them to 0.
1781 (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1782 * target.h (struct gcc_target): Add them. Rename gen_check field to
1784 * flags.h (sel_sched_switch_set): Declare.
1785 * opts.c (sel_sched_switch_set): New variable.
1786 (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1787 pipelining is disabled from command line.
1788 (common_handle_option): Record whether selective scheduling is
1789 requested from command line.
1790 * doc/invoke.texi: Document new flags and parameters.
1791 * doc/tm.texi: Document new target hooks.
1792 * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
1793 (dfa_state_size): Do not declare locally.
1794 * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1795 * config/rs6000/rs6000.c (rs6000_init_sched_context,
1796 rs6000_alloc_sched_context, rs6000_set_sched_context,
1797 rs6000_free_sched_context): New functions.
1798 (struct _rs6000_sched_context): New.
1799 (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1801 (rs6000_sched_finish): Do not run for selective scheduling.
1803 2008-08-31 Jan Hubicka <jh@suse.cz>
1805 * frv.c (frv_rtx_costs): Update forward declaration.
1806 * spu.c (spu_rtx_costs): Likewise.
1807 * pdp11.c: Include df.h
1808 (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1809 * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1810 (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1811 * iq2000.c (iq2000_address_cost): Add speed argument.
1812 (iq2000_rtx_costs): Likewise.
1813 * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1814 update call of mn10300_address_cost.
1815 * mcore.c: Include df.h
1816 (mcore_rtx_costs): Update prototype.
1817 * score3.c: Include df.h
1818 (score3_rtx_costs): Remove speed argument.
1819 * score7.c: Include df.h
1820 (score7_address_cost): Remove speed argument.
1821 * score-protos.h (score_address_cost): Update prototype.
1822 * score.c: Include df.h
1823 (score_rtx_costs): Update call of costs functions.
1824 * v850.c (v850_rtx_costs): Add bool argument.
1826 2008-08-31 Hans-Peter Nilsson <hp@axis.com>
1828 * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1830 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1832 * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1833 * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1835 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1837 * mkmap-flat.awk: Add option pe_dll.
1838 * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1839 * config/i386/t-cygwin (SHLIB_LC): Add.
1840 * config/i386/t-mingw32 (SHLIB_LC): Add.
1841 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1842 (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1843 (LINK_SPEC): Support libgcc_s.
1844 (LIBGCC_SPEC): Support libgcc_s.
1845 (LIBGCC_SONAME): New.
1847 2008-08-31 Jan Hubicka <jh@suse.cz>
1849 * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1850 mistakely had old version of patch.
1852 * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1853 (ipcp_estimate_growth): New.
1854 (ipcp_insert_stage): Use ipcp_estimate_growth.
1855 * profile.c (branch_prob): When reading failed, do not consider
1858 2008-08-31 Jan Hubicka <jh@suse.cz>
1860 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1861 loop is optimized for speed.
1863 2008-08-31 Richard Guenther <rguenther@suse.de>
1866 * fold-const.c (fold_binary): Retain conversions in folding
1869 2008-08-31 Jan Hubicka <jh@suse.cz>
1871 * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
1872 * predict.c (maybe_hot_frequency_p): Make inline.
1873 (maybe_hot_count_p): Break out from ...
1874 (maybe_hot_bb_p): ... this one.
1875 (maybe_hot_edge_p): Simplify.
1876 * basic-block.h (probably_cold_bb_p): Remove.
1878 2008-08-31 Jakub Jelinek <jakub@redhat.com>
1881 * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1883 * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1884 * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1885 Also split V4SFmode.
1886 * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1889 2008-08-31 Jan Hubicka <jh@suse.cz>
1891 * predict.c (PROB_VERY_LIKELY): Make small enough so things
1893 * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1895 2008-08-31 Jakub Jelinek <jakub@redhat.com>
1898 * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1901 * dwarf2out.c (native_encode_initializer): Subtract min_index for
1902 non-range array index. Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1904 2008-08-31 Jan Hubicka <jh@suse.cz>
1906 * sparc.h (BRANCH_COST): Fix macro definition.
1907 * avr.c (avr_operand_rtx_cost): Add speed argument.
1908 (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1910 2008-08-31 Richard Guenther <rguenther@suse.de>
1912 * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1913 types instead of operands. Re-instantiate verifying of
1914 binary expression operands.
1916 2008-08-30 Jan Hubicka <jh@suse.cz>
1918 * fwprop.c (should_replace_address): Add speed attribute.
1919 (PR_OPTIMIZE_FOR_SPEED): New flag.
1920 (propagate_rtx_1): Use it.
1921 (propagate_rtx): Set it.
1922 (try_fwprop_subst): Update call of rtx_costs.
1923 (forward_propagate_and_simplify): LIkewise.
1924 * hooks.c (hook_int_rtx_bool_0): New
1925 (hook_bool_rtx_int_int_intp_false): Replace by ...
1926 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1927 * hooks.h (hook_int_rtx_bool_0): New
1928 (hook_bool_rtx_int_int_intp_false): Replace by ...
1929 (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1930 * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1931 (prepare_cmp_insn): UPdate call of rtx_cost.
1932 * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1933 (reload_cse_simplify_operands): Update call of rtx_cost.
1934 (reload_cse_move2add): call of rtx_cost.
1935 * target.h (struct gcc_target): Update rtx_costs and address_costs.
1936 * rtlanal.c (rtx_cost): Add speed argument.
1937 (address_cost): Add speed argument
1938 (default_address_cost): Likewise.
1939 (insn_rtx_cost): Likewise.
1940 * cfgloopanal.c (seq_cost): Add speed argument.
1941 (target_reg_cost, target_spill_cost): Turn to array.
1942 (init_set_costs): Update for speed.
1943 (estimate_reg_pressure_cost): Add speed argument.
1944 * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1945 * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1946 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1947 (seq_cost): Add speed argument.
1948 (computation_cost): Add speed arugment.
1949 (add_cost, multiply_by_const, get_address_cost): add speed argument.
1950 (force_expr_to_var_cost): Update for profile info.
1951 (force_var_cost): Likewise.
1952 (split_address_cost): Likewise.
1953 (ptr_difference_cost): Likewise.
1954 (difference_cost): Likewise.
1955 (get_computation_cost_at): Likewise.
1956 (determine_iv_cost): Likewise.
1957 (ivopts_global_cost_for_size): Likewise.
1958 (rewrite_use_address): Likewise.
1959 (tree_ssa_iv_optimize_loop): Initialize speed field.
1960 * cse.c (optimize_this_for_speed_p): New static var.
1961 (notreg_cost): Update call of rtx_cost.
1962 (cse_extended_basic_block): set optimize_this_for_speed_p.
1963 * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1964 (noce_try_cmove_arith): Likewise.
1965 (noce_try_sign_mask): LIkewise.
1966 * expr.c (compress_float_constant): Update rtx_cost calls.
1967 * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1968 (addr_to_parts): Likewise.
1969 (create_mem_ref): Likewise.
1970 * dse.c (find_shift_sequence): Add speed argument.
1971 (replace_read): Update call.
1972 * calls.c (precompute_register_parameters): Update call of rtx_cost.
1973 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
1974 * neg_cost, shift_cost, shiftadd_cost,
1975 shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
1976 mul_highpart_cost): Increase dimension.
1977 (init_expmed): Initialize for both size and speed.
1978 (expand_shift): Use profile.
1979 (synth_mult): Use profile.
1980 (choose_mult_variant): Use profile.
1981 (expand_mult): Use profile.
1982 (expand_mult_highpart_optab): Use profile.
1983 (expand_mult_highpart): Use profile.
1984 (expand_smod_pow2): Use profile.
1985 (expand_divmod): Use profile.
1986 * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
1987 * loop-invariant.c (create_new_invariant): Use profile.
1988 (gain_for_invariant): Add speed parameter.
1989 (best_gain_for_invariant): Likewise.
1990 (find_invariants_to_move): Likewise.
1991 (move_single_loop_invariants): Set it.
1992 * target-def.h (TARGET_RTX_COSTS): Use hook.
1993 * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
1994 (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1995 * output.h (default_address_cost): Update prototype.
1996 * combine.c (optimize_this_for_speed_p): New static var.
1997 (combine_validate_cost): Update call of rtx_cost.
1998 (combine_instructions): Set optimize_this_for_speed_p.
1999 (expand_compound_operation): Update call of rtx_cost.
2000 (make_extraction):Update call of rtx_cost.
2001 (force_to_mode):Update call of rtx_cost.
2002 (distribute_and_simplify_rtx):Update call of rtx_cost.
2003 * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
2004 (estimate_reg_pressure_cost): Update prototype.
2005 * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
2006 * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
2008 * config/alpha/alpha.c (alpha_rtx_costs): Update.
2009 (alpha_rtx_costs): Update.
2010 * config/frv/frv.c (frv_rtx_costs): Update.
2011 * config/s390/s390.c (s390_rtx_costs): Update.
2012 * config/m32c/m32c.c (m32c_memory_move_cost): Update.
2013 (m32c_rtx_costs): Update.
2014 * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
2015 (spu_rtx_costs): Update.
2016 * config/sparc/sparc.c (sparc_rtx_costs): Update.
2017 * config/m32r/m32r.c (m32r_rtx_costs): Update.
2018 * config/i386/i386.c (:ix86_address_cost): Update.
2019 (ix86_rtx_costs): Update.
2020 * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
2021 * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
2022 * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
2023 * config/crx/crx.c (crx_address_cost): Update.
2024 * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
2025 * config/stormy16/stormy16.c
2026 (xstormy16_address_cost, xstormy16_rtx_costs): Update.
2027 * config/m68hc11/m68hc11.c
2028 (m68hc11_address_cost, m68hc11_rtx_costs): Update.
2029 * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
2030 * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
2031 * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
2032 * config/ia64/ia64.c (ia64_rtx_costs): Update.
2033 * config/m68k/m68k.c (m68k_rtx_costs): Update.
2034 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
2035 * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
2036 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
2037 (mcore_rtx_costs): update.
2038 * config/score/score3.c (score3_rtx_costs): Update.
2039 * config/score/score7.c (score7_rtx_costs): Update.
2040 * config/score/score3.h (score3_rtx_costs):Update.
2041 * config/score/score7.h (score7_rtx_costs): Update.
2042 * config/score/score.c (score_rtx_costs): Update.
2043 * config/arm/arm.c (arm_address_cost): Update.
2044 (arm_rtx_costs_1): Update.
2045 (arm_rtx_costs_1): Update.
2046 (arm_size_rtx_costs): Update.
2047 (arm_size_rtx_costs): Update.
2048 (arm_size_rtx_costs): Update.
2049 (arm_xscale_rtx_costs): Update.
2050 (arm_thumb_address_cost): Update.
2051 * config/pa/pa.c (hppa_address_cost): Update.
2052 * config/mips/mips.c (mips_rtx_costs): Update.
2053 * config/vax/vax.c (vax_address_cost): Update.
2054 * config/h8300/h8300.c (h8300_shift_costs): Update.
2055 (h8300_rtx_costs): Update.
2056 * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
2057 (v850_rtx_costs): Update.
2058 * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
2059 * config/bfin/bfin.c
2060 (bfin_address_cost): Update.
2061 (bfin_rtx_costs): Update.
2062 * stmt.c (lshift_cheap_p): Update.
2064 2008-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2067 * expmed.c (extract_bit_field_1): Check the mode size to make
2068 sure the vector modes have the same size.
2070 2008-08-29 Michael Meissner <gnu@the-meissners.org>
2072 * dojump.c (top level): Include basic-block.h to declare
2073 optimize_insn_for_speed_p
2075 * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
2077 * opts.h (CL_SAVE): New option class for marking options that are
2078 target specific options usable in the target attribute.
2079 (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
2081 * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
2082 can easily find the target specific options that are safe to use
2083 in the attribute or pragma.
2085 * attribs.c (decl_attributes): Change #pragma GCC option to
2086 #pragma GCC target, and attribute((option(...))) to
2087 attribute((target(...))).
2089 * doc/extend.texi (target attribute): Change from option
2090 attribute. Delete push/pop/reset.
2091 (#pragma GCC target): Change from #pragma GCC option. Delete
2093 (#pragma GCC push_options): Document new pragma.
2094 (#pragma GCC pop_options): Document new pragma.
2095 (#pragma GCC reset_options): Document new pragma.
2097 * targhooks.c (default_target_option_valid_attribute_p): Add
2098 warning about port not supporting target attributes.
2099 (default_target_option_pragma_parse): New function, warn about
2100 #pragma GCC target not being supported.
2102 * targhooks.h (default_target_option_pragma_parse): Add
2105 * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
2106 TI_CURRENT_OPTION_PRAGMA.
2107 (current_target_pragma): Rename from current_option_pragma.
2109 * target.h: (struct target_option): Delete booleans for changing
2110 the optimization level on hot/cold functions. Change signature of
2111 pragma_parse hook to take a second tree.
2113 * c-tree.h (c_builtin_function_ext_scope): Add declaration.
2115 * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
2116 that the declaration is done at global scope.
2118 * langhooks.c (add_builtin_function_common): Move most of the code
2119 from add_builtin_function here, calling the hook passed in.
2120 (add_builtin_function): Call add_builtin_function_common with
2121 standard builtin hook.
2122 (add_builtin_function_ext_scope): New function to add builtins to
2125 * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
2127 (add_builtin_function_ext_scope): Add declaration.
2129 * c-pragma.c (handle_pragma_target): Rename from
2130 handle_pragma_option, #pragma GCC option is now #pragma GCC
2131 target. Move warning about port not supporting target options to
2132 default pragma parse hook. Remove push/pop/reset from this
2134 (handle_pragma_optimize): Remove push/pop/reset from this pragma.
2135 (option_stack): Delete static variable.
2136 (optimize_stack): Ditto.
2137 (optons_stack): New stack of saved target and optimization
2139 (handle_pragma_push_options): New function to handle pushing both
2140 target and optimization options.
2141 (handle_pragma_pop_options): New function to handle popping both
2142 target and optimization options.
2143 (handle_pragma_reset_options): New function to handle resetting
2144 both target and optimization options to their initial state.
2145 (init_pragma): Rename handle_pragma_option to
2146 handle_pragma_target. Add support for push_options, pop_options,
2147 and reset_options pragmas.
2149 * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
2150 default_target_option_pragma_parse.
2151 (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
2152 default_target_option_valid_attribute_p.
2153 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2154 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2155 (TARGET_OPTION_HOOKS): Delete the fields for whether to change
2156 optimization level on hot/cold functions.
2158 * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
2159 if the caller and callee have different optimization levels.
2161 * c-common.c (handle_target_attribute): Rename from
2162 handle_option_attribute, attribute((option(...))) is now
2163 attribute((target(...))). Move warning if the port does not
2164 support target attributes to the default hook.
2165 (handle_hot_attribute): Delete code to change the optimization
2166 level of hot functions.
2167 (handle_cold_attribute): Ditto.
2169 * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
2170 argument that is the binary tree options to use if there are no
2171 arguments. Call ix86_valid_target_attribute_tree instead of
2172 ix86_valid_option_attribute_tree.
2173 (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
2174 (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
2175 ix86_pragma_option_parse.
2177 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2178 Rename from ix86_valid_option_attribute_tree.
2180 * config/i386/i386.c (ix86_add_new_builtins): New function to add
2181 new builtins when the ISA changes.
2182 (ix86_valid_target_attribute_tree): Rename from
2183 ix86_valid_option_attribute_tree. Change callers. If the
2184 function specified optimization options, use those as the starting
2185 point before setting up the target attributes. If the
2186 optimization options were changed in the course of setting the
2187 target attributes, record the new optimization options.
2188 (ix86_valid_target_attribute_tree_inner_p): Rename from
2189 ix86_valid_option_attribute_tree_inner_p. Change callers. Call
2190 ix86_add_new_builtins if the ISA changed.
2191 (ix86_valid_target_attribute_p): Rename from
2192 ix86_valid_option_attribute_p. Change callers.
2193 (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
2194 __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
2195 as delayed builtin functions.
2196 (struct builtin_isa): New structure to record builtin functions
2197 that should be delayed until the ISA for that function is used.
2198 (ix86_builtins_isa): Change from int to struct to track builtin
2199 functions we want to declare at some point.
2200 (def_builtin): If the front end can delay defining the builtin
2201 functions, don't create builtins for ISAs not part of the default
2203 (def_builtin_const): Ditto.
2204 (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
2205 __builtin_ia32_pcmov_v2di to be different builtin functions.
2206 (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
2207 a structure instead of an int.
2208 (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
2209 ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
2210 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2211 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2213 * config/ia64/ia64.h
2214 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2215 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2217 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
2218 hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
2219 (LANG_HOOKS_INITIALIZER): Add
2220 LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
2222 2008-08-30 Kaz Kojima <kkojima@gcc.gnu.org>
2225 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
2226 the reload address with the index register for SFmode
2227 access with a displacement.
2229 2008-08-30 Jan Hubicka <jh@suse.cz>
2231 * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
2232 * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
2233 * dojump.c (do_jump): Likewise.
2234 * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
2235 (note-if_info): Add BRANCH_COST.
2236 (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
2237 noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
2238 noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
2240 * expr.h (BRANCH_COST): Update default.
2241 * predict.c (predictable_edge_p): New function.
2242 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
2243 Update BRANCH_COST call.
2244 * basic-block.h (predictable_edge_p): Declare.
2245 * config/alpha/alpha.h (BRANCH_COST): Update.
2246 * config/frv/frv.h (BRANCH_COST): Update.
2247 * config/s390/s390.h (BRANCH_COST): Update.
2248 * config/spu/spu.h (BRANCH_COST): Update.
2249 * config/sparc/sparc.h (BRANCH_COST): Update.
2250 * config/m32r/m32r.h (BRANCH_COST): Update.
2251 * config/i386/i386.h (BRANCH_COST): Update.
2252 * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
2253 * config/sh/sh.h (BRANCH_COST): Update.
2254 * config/pdp11/pdp11.h (BRANCH_COST): Update.
2255 * config/avr/avr.h (BRANCH_COST): Update.
2256 * config/crx/crx.h (BRANCH_COST): Update.
2257 * config/xtensa/xtensa.h (BRANCH_COST): Update.
2258 * config/stormy16/stormy16.h (BRANCH_COST): Update.
2259 * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
2260 * config/iq2000/iq2000.h (BRANCH_COST): Update.
2261 * config/ia64/ia64.h (BRANCH_COST): Update.
2262 * config/rs6000/rs6000.h (BRANCH_COST): Update.
2263 * config/arc/arc.h (BRANCH_COST): Update.
2264 * config/score/score.h (BRANCH_COST): Update.
2265 * config/arm/arm.h (BRANCH_COST): Update.
2266 * config/pa/pa.h (BRANCH_COST): Update.
2267 * config/mips/mips.h (BRANCH_COST): Update.
2268 * config/vax/vax.h (BRANCH_COST): Update.
2269 * config/h8300/h8300.h (BRANCH_COST): Update.
2270 * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
2271 * doc/invoke.texi (predictable-branch-cost-outcome): Document.
2272 * doc/tm.texi (BRANCH_COST): Update.
2274 2008-08-30 Samuel Tardieu <sam@rfc1149.net>
2277 * config/arm/arm.c (arm_optimization_options): Set
2278 flag_section_anchors to 2 instead of 1 to distinguish it from
2279 -fsection-anchors given explicitely on the command line.
2281 2008-08-30 Richard Sandiford <rdsandiford@googlemail.com>
2283 * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
2284 final insn of a split.
2286 2008-08-30 Jan Hubicka <jh@suse.cz>
2288 * postreload-gcse.c (gate_handle_gcse2): Disable for functions
2289 optimized for speed.
2290 * final.c (compute_alignments): Use optimize_bb_for_size_p.
2291 * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
2292 * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
2293 flag_gcse_after_reload_set): New static vars.
2294 (common_handle_option): Enable those flags for profile-use.
2295 (decode_options): Remove optimize_size flags that are handled
2296 on higher granuality.
2297 * tree-vectorizer.c (vectorize_loops): Use
2298 optimize_loop_nest_for_speed_p.
2299 * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
2300 * tree-predcom.c (tree_predictive_commoning): Use
2301 optimize_loop_for_speed_p.
2302 * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
2303 * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
2304 * predict.c (optimize_loop_for_speed_p): Fix walk.
2306 2008-08-30 Jan Hubicka <jh@suse.cz>
2308 * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
2310 (cgraph_decide_inlining_of_small_function): Use edge->count to detect
2311 profile presence locally.
2313 2008-08-29 Joseph Myers <joseph@codesourcery.com>
2316 * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
2317 versions before 4.0.
2319 2008-08-29 Jan Hubicka <jh@suse.cz>
2321 * tree-inline.c (insert_init_stmt): Insert sequence even when
2324 2008-08-29 Jeff Law <law@redhat.com>
2326 * mn10300.c (mn10300_secondary_reload_class): We need secondary
2327 reloads for AM33-2 if IN is a pseudo with an equivalent memory
2328 location and class is an FP register.
2330 2008-08-29 Jan Hubicka <jh@suse.cz>
2332 * see.c (see_merge_one_def_extension): Silence used uninitialized
2334 * matrix-reorg.c (check_allocation_function): Likewise.
2335 * config/i386/driver-i386.c (detect_caches_amd): Likewise.
2337 2008-08-29 Jakub Jelinek <jakub@redhat.com>
2340 * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
2341 compute new & and | in type rather than TREE_TYPE (arg0).
2343 * dwarf2out.c (fortran_common): Update comment.
2344 (gen_variable_die): Swap com_die and var_die variables in Fortran
2345 COMMON block handling code.
2347 * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
2349 * dwarf2out.c (gen_const_die): New function.
2350 (size_of_die, value_format, output_die): Output larger
2351 dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
2352 (native_encode_initializer): New function.
2353 (tree_add_const_value_attribute): Call it.
2354 (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
2356 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
2357 DECL_BY_REFERENCE decls don't pass TREE_READONLY and
2358 TREE_THIS_VOLATILE to add_type_attribute.
2360 * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
2362 (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
2365 * dwarf2out.c (loc_by_reference): New function.
2366 (add_location_or_const_value_attribute): Use it.
2369 * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
2370 as DW_TAG_variable children of DW_TAG_common_block rather than
2371 DW_TAG_member children. Put DW_AT_external to individual
2372 DW_TAG_variable DIEs, not to DW_TAG_common_block.
2374 * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2375 loc_descriptor_from_tree_1.
2379 * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2380 arguments to imported_module_or_decl.
2381 (debug_nothing_tree_tree): Removed.
2382 (debug_nothing_tree_tree_tree_bool): New prototype.
2383 * debug.c (do_nothing_debug_hooks): Adjust.
2384 (debug_nothing_tree_tree): Removed.
2385 (debug_nothing_tree_tree_tree_bool): New function.
2386 * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2387 (gen_variable_die): Put all common vars for the
2388 same COMMON block under one DW_TAG_common_block.
2389 (declare_in_namespace): Return new context_die, for Fortran
2390 return the module DIE instead of adding extra declarations into
2392 (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2393 (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2394 instead of DW_TAG_namespace. If DECL_EXTERNAL is set, add
2396 (dwarf2out_global_decl): Don't skip Fortran global vars.
2397 (gen_decl_die): Likewise. Adjust declare_in_namespace callers.
2398 (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2399 If NAME is non-NULL, add DW_AT_name. If CHILD is non-NULL, put
2400 DW_TAG_imported_declaration as child of previous
2401 DW_TAG_imported_module.
2402 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2403 * sdbout.c (sdb_debug_hooks): Likewise.
2404 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2406 2008-08-29 Jan Hubicka <jh@suse.cz>
2408 * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2410 * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2411 * ipa-cp.c (n_cloning_candidates): New static variable.
2412 (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2413 (ipcp_print_all_lattices): Improve debug output.
2414 (ipcp_cloning_candidate_p): New function.
2415 (ipcp_initialize_node_lattices): Use it.
2416 (ipcp_init_stage): Do only analyzis here; prettier debug output.
2417 (ipcp_propagate_stage): Prettier debug output.
2418 (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2419 (ipcp_print_all_structures): Remove.
2420 (ipcp_need_redirect_p): Test !n_cloning_candidates.
2421 (ipcp_insert_stage): Prettier debug output; call
2422 cgraph_remove_unreachable_nodes before propagating.
2423 (pass_ipa_cp): Schedule function removal pass.
2424 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2426 (cgraph_maybe_hot_edge_p): Move to ...
2427 * predict.c (cgraph_maybe_hot_edge_p) ... here.
2428 * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2429 (common_handle_option): Set them; enable ipa-cp when profiling.
2430 * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2431 (ipa_print_all_jump_functions): Likewise.
2432 (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2433 (ipa_print_node_params, ipa_print_all_params): New.
2434 * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2435 ipa_print_all_param_flags): Remove.
2436 (ipa_print_node_params, ipa_print_all_params): New.
2438 2008-08-29 Bob Wilson <bob.wilson@acm.org>
2440 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2441 change from 2008-04-03.
2442 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2444 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
2448 * ira-color.c (push_allocnos_to_stack): Truncate
2449 removed_splay_allocno_vec.
2451 2008-08-29 Vladimir Makarov <vmakarov@redhat.com>
2454 * ira-color (ira_fast_allocation): Don't assign hard registers to
2457 2008-08-29 Jan Hubicka <jh@suse.cz>
2460 * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2461 for cold internal loops.
2463 2008-08-29 Richard Guenther <rguenther@suse.de>
2465 * tree-ssa-structalias.c (create_variable_info_for): Do not
2466 create fields for heap vars or vars with a noalias state.
2467 For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2470 2008-08-29 Richard Guenther <rguenther@suse.de>
2472 * common.opt (ftree-store-ccp): Mark as preserved for
2473 backward compatibility.
2474 * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2475 * tree-pass.h (pass_store_ccp): Remove.
2476 * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2477 (first_vdef): Remove declaration.
2478 (get_value_loaded_by): Likewise.
2479 * tree-ssa-ccp.c (do_store_ccp): Remove.
2480 (get_default_value): Simplify as do_store_ccp is always false
2481 now. Do not initialize mem_ref.
2482 (set_value_varying): Likewise.
2483 (canonicalize_float_value): Likewise.
2484 (set_lattice_value): Likewise.
2485 (likely_value): Likewise.
2486 (surely_varying_stmt_p): Likewise.
2487 (ccp_initialize): Likewise.
2488 (ccp_lattice_meet): Likewise.
2489 (ccp_visit_phi_node): Likewise.
2490 (ccp_fold): Likewise.
2491 (evaluate_stmt): Likewise.
2492 (visit_assignment): Likewise.
2493 (ccp_visit_stmt): Likewise.
2494 (execute_ssa_ccp): Fold into ...
2495 (do_ssa_ccp): ... this.
2496 (do_ssa_store_ccp): Remove.
2497 (gate_store_ccp): Likewise.
2498 (pass_store_ccp): Likewise.
2499 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2501 * tree-ssa-propagate.c (first_vdef): Remove.
2502 (get_value_loaded_by): Likewise.
2503 (replace_vuses_in): Likewise.
2504 (substitute_and_fold): Do not call replace_vuses_in.
2505 * opts.c (decode_options): Do not set flag_tree_store_ccp.
2507 2008-08-29 Richard Guenther <rguenther@suse.de>
2510 * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2511 PARAM_NOALIAS tags with is_heapvar.
2512 * tree-ssa-operands.c (access_can_touch_variable): Offset
2513 based tests do not apply for heapvars. Fix offset test.
2515 2008-08-29 Jan Hubicka <jh@suse.cz>
2517 * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2518 (-fipa-cp-clone): Enabled by default at -O3.
2519 * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2520 make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2522 2008-08-29 Jan Hubicka <jh@suse.cz>
2524 * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2526 * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2528 * gimple.c (giple_copy_call_skip_args): New function.
2529 (giple_copy_call_skip_args): Declare.
2531 * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2532 * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2533 (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2534 (ipcp_create_replace_map): Improve debug output.
2535 (ipcp_need_redirect_p): Return false when not clonning.
2536 (ipcp_update_callgraph): Skip args.
2537 (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2539 * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2540 (save_inline_function_body): Update call of tree_function_versioning.
2541 * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2542 * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2543 (tree_function_versioning): Likewise.
2544 * tree-inline.h (tree_function_versioning): Update prototype.
2546 2008-08-29 Jan Hubicka <jh@suse.cz>
2548 * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2549 * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
2550 * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2551 * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
2552 * value-prof.c (gimple_divmod_fixed_value_transform,
2553 gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2554 gimple_stringops_transform): Use optimize_bb_for_size_p.
2555 * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2556 * final.c (compute_alignments): Use optimize_function_for_size_p.
2557 * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2558 (fold_builtin_strcpy, fold_builtin_fputs): Use
2559 optimize_function_for_size_p.
2560 * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2561 * recog.c (relax_delay_slots): Likewise.
2562 * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
2563 (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2564 * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2565 optimize_function_for_size_p.
2566 (cgraph_decide_inlining_of_small_function): Use
2567 optimize_function_for_size_p.
2568 * global.c (find_reg): Use optimize_function_for_size_p.
2569 * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
2570 flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
2571 flag_prefetch_loop_arrays. Those can work it out from profile.
2572 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2573 optimize_loop_for_speed_p.
2574 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2576 (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2577 * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2578 * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2579 * local-alloc.c (block_alloc): Pass BB pointer.
2580 (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2581 * gcse.c (gcse_main): Use optimize_function_for_size_p.
2582 * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
2583 (decide_peel_completely): Likewise.
2584 * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2585 optimize_loop_for_size_p.
2586 (vect_enhance_data_refs_alignment): Likewise.
2587 * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2588 (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
2589 * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2590 (try_crossjump_bb): Use optimize_bb_for_size_p.
2591 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2592 optimize_loop_for_speed_p.
2593 * bb-reorder.c (find_traces_1_round): Likewise.
2594 (copy_bb): Use optimize_bb_for_speed_p.
2595 (duplicate_computed_gotos): Likewise.
2596 * basic-block.h (optimize_loop_nest_for_size_p,
2597 optimize_loop_nest_for_speed_p): New.
2598 * stmt.c (expand_case): Use optimize_insn_for_size_p.
2600 2008-08-29 Tristan Gingold <gingold@adacore.com>
2602 * gcov.c (main): Call expandargv.
2604 2008-08-29 Jan Hubicka <jh@suse.cz>
2606 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2608 * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2610 (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2611 * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2613 (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2615 2008-08-29 Jan Hubicka <jh@suse.cz>
2617 * tree-pass.h (pass_strip_predict_hints): Declare.
2618 * predict.c (strip_builtin_expect): Rename to ...
2619 (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2620 (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2621 (tree_estimate_probability): Do not strip builtin_expect.
2622 (pass_strip_predict_hints): New pass.
2623 * tree-inline.c (expand_call_inline): When inlining cold function, predict
2625 * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2627 2008-08-29 Richard Guenther <rguenther@suse.de>
2629 PR tree-optimization/37207
2630 * tree-vrp.c (extract_range_from_binary_expr): Also try
2631 to constant fold if only one of the operands is a constant.
2633 2008-08-29 Nick Clifton <nickc@redhat.com>
2635 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2636 the same way as SYMBOL_REFs.
2638 2008-08-28 Bob Wilson <bob.wilson@acm.org>
2640 * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2642 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
2644 * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2645 * config/mips/mips.md (branch_likely): Remove const. Fix
2647 (define_delay for type "branch"): Change to only apply for branch
2648 with likely variant.
2649 (define_delay for type "branch" and "branch_likely" no). New delay
2651 (equality_op): New code iterator.
2652 (bbv, bbinv): New code attributes.
2653 (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2656 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2657 Andrew Pinski <pinskia@gcc.gnu.org>
2660 * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2662 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
2664 * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2665 rule that a symbolic constant must be defined and >= 0 for the
2666 corresponding facility to be present at compile-time.
2667 * gthr-posix.c: Likewise.
2669 2008-08-28 Adam Nemet <anemet@caviumnetworks.com>
2671 * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2672 * config/mips/mips.md (D): New mode attribute.
2673 (mulsi3, muldi3): Merge it into ...
2674 (mul<mode>3): ... new template. Use _mul3 ending for 3-op
2676 (muldi3_mul3): New pattern.
2677 (mulsi3_mult3): Rename to mulsi3_mul3.
2679 2008-08-28 Jan Hubicka <jh@suse.cz>
2681 * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2683 * predict.c (always_optimize_for_size_p): Rename to ...
2684 (optimize_function_for_size): ... this one; make extern.
2685 (optimize_function_for_speed_p): New.
2686 (optimize_bb_for_size_p, optimize_bb_for_size_p,
2687 optimize_edge_for_size_p,optimize_edge_for_size_p,
2688 optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2689 * basic-block.h (optimize_function_for_size_p,
2690 optimize_function_for_speed_p): Declare.
2691 * i386.md (optimize_size checks): Replace them by appropriate
2693 (standard_80387_constant_p, ix86_compute_frame_layout,
2694 ix86_expand_epilogue, ix86_decompose_address,
2695 print_operand, emit_i387_cw_initialization,
2696 inline_memory_move_cost, ix86_pad_returns,
2697 ix86_reorg): Replace optimize_size checks.
2699 2008-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2701 * rtl.h (simplify_subreg_regno): Declare.
2702 * rtlanal.c (simplify_subreg_regno): New function, split out from...
2703 * simplify-rtx.c (simplify_subreg): ...here.
2704 * reload.c (find_reloads): Use simplify_subreg_regno instead of
2705 subreg_offset_representable_p.
2707 2008-08-28 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2710 * c-typeck.c (convert_for_assignment): Give a note describing what
2711 was passed and what was expected.
2713 2008-08-28 Joey Ye <joey.ye@intel.com>
2715 * doc/extend.texi: Document AVX built-in functions.
2716 * doc/invoke.texi: Document -mavx.
2718 2008-08-28 H.J. Lu <hongjiu.lu@intel.com>
2719 Joey Ye <joey.ye@intel.com>
2720 Xuepeng Guo <xuepeng.guo@intel.com>
2722 * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2724 * config/i386/cpuid.h (bit_FMA): New.
2725 (bit_XSAVE): Likewise.
2726 (bit_OSXSAVE): Likewise.
2727 (bit_AVX): Likewise.
2729 * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2730 define. Use ASM_OUTPUT_AVX_PREFIX.
2732 * config/i386/gmmintrin.h: New.
2734 * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2735 (OPTION_MASK_ISA_AVX_SET): New.
2736 (OPTION_MASK_ISA_FMA_SET): Likewise.
2737 (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2738 (OPTION_MASK_ISA_FMA_SET): Likewise.
2739 (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2740 (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2741 (pta_flags): Add PTA_AVX and PTA_FMA.
2742 (override_options): Handle PTA_AVX and PTA_FMA.
2743 (init_cumulative_args): Handle warn_avx.
2744 (classify_argument): Return 0 for COImode and OImode. Return
2745 1 and X86_64_AVX_CLASS for 256bit vector types.
2746 (examine_argument): Handle X86_64_AVX_CLASS.
2747 (construct_container): Likewise.
2748 (function_arg_advance_32): Pass OImode and 256bit vector types
2750 (function_arg_advance_64): Take a new argument to indicate if a
2751 parameter is named. Handle 256bit vector types. Return
2752 immediately for unnamed 256bit vector mode parameters.
2753 (function_arg_advance): Updated.
2754 (function_arg_32): Add comments for TImode. Handle OImode
2755 and 256bit vector types.
2756 (function_arg_64): Take a new argument to indicate if a
2757 parameter is named. Handle 256bit vector types. Return NULL
2758 for unnamed 256bit vector mode parameters.
2759 (function_arg): Updated.
2760 (setup_incoming_varargs_64): Support
2761 AVX encoding for *sse_prologue_save_insn.
2762 (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2763 (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2764 enabled. For all 1s in 256bit vector modes, return 3 if AVX is
2765 enabled, otherwise return -3.
2766 (standard_sse_constant_opcode): Handle AVX and 256bit vector
2768 (print_reg): Support AVX registers. Handle 'x' and 't'.
2769 Handle 'd' to duplicate the operand.
2770 (print_operand): Likewise. Also support AVX vector compare
2772 (output_387_binary_op): Support AVX.
2773 (output_fp_compare): Likewise.
2774 (ix86_expand_vector_move_misalign): Likewise.
2775 (ix86_attr_length_vex_default): New.
2776 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2777 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2778 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2779 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2780 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2781 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2782 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2783 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2784 IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2785 IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2786 IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2787 IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2788 IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2789 IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2790 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2791 IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2792 IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2793 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2794 IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2795 IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2796 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2797 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2798 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2799 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2800 IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2801 IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2802 IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2803 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2804 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2805 IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2806 IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2807 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2808 IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2809 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2810 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2811 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2812 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2813 IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2814 IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2815 IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2816 IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2817 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2818 IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2819 IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2820 IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2821 IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2822 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2823 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2824 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2825 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2826 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2827 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2828 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2829 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2830 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2831 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2832 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2833 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2834 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2835 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2836 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2837 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2838 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2839 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2840 and IX86_BUILTIN_MOVMSKPS256,
2841 (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2842 V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2843 V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2844 V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2845 V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2846 VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2847 VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2848 VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2849 (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2850 INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2851 INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2852 INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2853 V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2854 V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2855 V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2856 V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2857 V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2858 V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2859 V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2860 V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2861 V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2862 V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2863 V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2864 V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2865 V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2866 V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2867 (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2868 IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2869 IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2870 IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2871 IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2872 IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2873 IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2874 IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2875 IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2876 IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2877 IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2878 IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2879 (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2880 IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2881 IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2882 IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2883 IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2884 IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2885 IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2886 IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2887 IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2888 IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2889 IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2890 IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2891 IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2892 IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2893 IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2894 IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2895 IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2896 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2897 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2898 IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2900 IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2901 IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2902 IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2903 IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2904 IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2905 IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2906 IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2907 IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2908 IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2909 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2910 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2911 IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2912 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2913 IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2914 IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2915 IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2916 IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2917 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2918 IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2919 IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2920 IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2921 IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2922 IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2923 IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2924 IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2925 IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2926 IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2927 IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2928 IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2929 IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2930 IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2931 IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2932 IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2933 IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2934 IX86_BUILTIN_MOVMSKPS256.
2935 (ix86_init_mmx_sse_builtins): Support AVX builtins.
2936 (ix86_expand_args_builtin): Likewise.
2937 (ix86_expand_special_args_builtin): Likewise.
2938 (ix86_hard_regno_mode_ok): Handle AVX modes.
2939 (ix86_expand_vector_init_duplicate): Likewise.
2940 (ix86_expand_vector_init_one_nonzero): Likewise.
2941 (ix86_expand_vector_init_one_var): Likewise.
2942 (ix86_expand_vector_init_concat): Likewise.
2943 (ix86_expand_vector_init_general): Likewise.
2944 (ix86_expand_vector_set): Likewise.
2945 (ix86_vector_mode_supported_p): Likewise.
2946 (x86_extended_reg_mentioned_p): Check INSN_P before using
2949 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2950 OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2952 * config/i386/i386.h (TARGET_AVX): New.
2953 (TARGET_FMA): Likewise.
2954 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2955 (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2956 (VALID_AVX256_REG_MODE): New.
2957 (AVX256_VEC_FLOAT_MODE_P): Likewise.
2958 (AVX_FLOAT_MODE_P): Likewise.
2959 (AVX128_VEC_FLOAT_MODE_P): Likewise.
2960 (AVX256_VEC_FLOAT_MODE_P): Likewise.
2961 (AVX_VEC_FLOAT_MODE_P): Likewise.
2962 (ASM_OUTPUT_AVX_PREFIX): Likewise.
2963 (ASM_OUTPUT_OPCODE): Likewise.
2964 (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2966 (SSE_REG_MODE_P): Allow 256bit vector modes.
2967 (ix86_args): Add a warn_avx field.
2969 * config/i386/i386.md (UNSPEC_PCMP): New.
2970 (UNSPEC_VPERMIL): Likewise.
2971 (UNSPEC_VPERMIL2): Likewise.
2972 (UNSPEC_VPERMIL2F128): Likewise.
2973 (UNSPEC_MASKLOAD): Likewise.
2974 (UNSPEC_MASKSTORE): Likewise.
2975 (UNSPEC_CAST): Likewise.
2976 (UNSPEC_VTESTP): Likewise.
2977 (UNSPECV_VZEROALL): Likewise.
2978 (UNSPECV_VZEROUPPER): Likewise.
2979 (XMM0_REG): Likewise.
2980 (XMM1_REG): Likewise.
2981 (XMM2_REG): Likewise.
2982 (XMM3_REG): Likewise.
2983 (XMM4_REG): Likewise.
2984 (XMM5_REG): Likewise.
2985 (XMM6_REG): Likewise.
2986 (XMM8_REG): Likewise.
2987 (XMM9_REG): Likewise.
2988 (XMM10_REG): Likewise.
2989 (XMM11_REG): Likewise.
2990 (XMM12_REG): Likewise.
2991 (XMM13_REG): Likewise.
2992 (XMM14_REG): Likewise.
2993 (XMM15_REG): Likewise.
2995 (prefix_vex_imm8): Likewise.
2996 (prefix_vex_w): Likewise.
2997 (length_vex): Likewise.
3000 (*avx_ashlti3): Likewise.
3001 (*avx_lshrti3): Likewise.
3002 (*avx_setcc<mode>): Likewise.
3003 (*fop_<mode>_comm_mixed_avx): Likewise.
3004 (*fop_<mode>_comm_avx): Likewise.
3005 (*fop_<mode>_1_mixed_avx): Likewise.
3006 (*fop_<mode>_1_avx): Likewise.
3007 (*avx_<code><mode>3): Likewise.
3008 (*avx_ieee_smin<mode>3): Likewise.
3009 (*avx_ieee_smax<mode>3): Likewise.
3010 (mode): Add OI, V8SF and V4DF.
3011 (length): Support VEX prefix.
3012 (*cmpfp_i_mixed): Set prefix attribute.
3013 (*cmpfp_i_sse): Likewise.
3014 (*cmpfp_iu_mixed): Likewise.
3015 (*cmpfp_iu_sse): Likewise.
3016 (*movsi_1): Support AVX.
3017 (*movdi_2): Likewise.
3018 (*movdi_1_rex64): Likewise.
3019 (*movti_internal): Likewise.
3020 (*movti_rex64): Likewise.
3021 (*movsf_1): Likewise.
3022 (*movdf_nointeger): Likewise.
3023 (*movdf_integer_rex64): Likewise.
3024 (*movtf_internal): Likewise.
3025 (zero_extendsidi2_32): Likewise.
3026 (zero_extendsidi2_rex64): Likewise.
3027 (*extendsfdf2_mixed): Likewise.
3028 (*extendsfdf2_sse): Likewise.
3029 (*truncdfsf_fast_mixed): Likewise.
3030 (*truncdfsf_fast_sse): Likewise.
3031 (*truncdfsf_mixed): Likewise.
3032 (fix_trunc<mode>di_sse): Likewise.
3033 (fix_trunc<mode>si_sse): Likewise.
3034 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3035 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3036 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3037 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3038 (*rcpsf2_sse): Likewise.
3039 (*rsqrtsf2_sse): Likewise.
3040 (*sqrt<mode>2_sse): Likewise.
3041 (sse4_1_round<mode>2): Likewise.
3042 (*sse_prologue_save_insn): Disallow REX prefix for AVX.
3043 Support AVX. Set length attribute properly for AVX.
3045 * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
3046 (VECTOR_MODES (FLOAT, 32)): Likewise.
3047 (VECTOR_MODE (INT, DI, 8)): Likewise.
3048 (VECTOR_MODE (INT, HI, 32)): Likewise.
3049 (VECTOR_MODE (INT, QI, 64)): Likewise.
3050 (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
3051 (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
3052 (VECTOR_MODE (INT, DI, 4)): Removed.
3053 (VECTOR_MODE (INT, SI, 8)): Likewise.
3054 (VECTOR_MODE (INT, HI, 16)): Likewise.
3055 (VECTOR_MODE (INT, QI, 32)): Likewise.
3056 (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
3057 (INT_MODE (OI, 32)): Likewise.
3059 * config/i386/i386.opt (mavx): New.
3062 * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
3064 * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
3065 (*mov<mode>_internal_avx): New.
3066 (*movv2sf_internal_rex64_avx): Likewise.
3067 (*movv2sf_internal_avx): Likewise.
3069 * config/i386/predicates.md (const_4_to_5_operand): New.
3070 (const_6_to_7_operand): Likewise.
3071 (const_8_to_11_operand): Likewise.
3072 (const_12_to_15_operand): Likewise.
3073 (avx_comparison_float_operator): Likewise.
3075 * config/i386/sse.md (AVX256MODEI): New.
3076 (AVX256MODE): Likewise.
3077 (AVXMODEQI): Likewise.
3078 (AVXMODE): Likewise.
3079 (AVX256MODEF2P): Likewise.
3080 (AVX256MODE2P): Likewise.
3081 (AVX256MODE4P): Likewise.
3082 (AVX256MODE8P): Likewise.
3083 (AVXMODEF2P): Likewise.
3084 (AVXMODEF4P): Likewise.
3085 (AVXMODEDCVTDQ2PS): Likewise.
3086 (AVXMODEDCVTPS2DQ): Likewise.
3087 (avxvecmode): Likewise.
3088 (avxvecpsmode): Likewise.
3089 (avxhalfvecmode): Likewise.
3090 (avxscalarmode): Likewise.
3091 (avxcvtvecmode): Likewise.
3092 (avxpermvecmode): Likewise.
3093 (avxmodesuffixf2c): Likewise.
3094 (avxmodesuffixp): Likewise.
3095 (avxmodesuffixs): Likewise.
3096 (avxmodesuffix): Likewise.
3097 (vpermilbits): Likewise.
3098 (pinsrbits): Likewise.
3099 (mov<mode>): Likewise.
3100 (*mov<mode>_internal): Likewise.
3101 (push<mode>1): Likewise.
3102 (movmisalign<mode>): Likewise.
3103 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3104 (avx_movdqu<avxmodesuffix>): Likewise.
3105 (avx_lddqu<avxmodesuffix>): Likewise.
3106 (<plusminus_insn><mode>3): Likewise.
3107 (*avx_<plusminus_insn><mode>3): Likewise.
3108 (*avx_vm<plusminus_insn><mode>3): Likewise.
3109 (mul<mode>3): Likewise.
3110 (*avx_mul<mode>3): Likewise.
3111 (*avx_vmmul<mode>3): Likewise.
3112 (divv8sf3): Likewise.
3113 (divv4df3): Likewise.
3114 (avx_div<mode>3): Likewise.
3115 (*avx_div<mode>3): Likewise.
3116 (*avx_vmdiv<mode>3): Likewise.
3117 (avx_rcpv8sf2): Likewise.
3118 (*avx_vmrcpv4sf2): Likewise.
3119 (sqrtv8sf2): Likewise.
3120 (avx_sqrtv8sf2): Likewise.
3121 (*avx_vmsqrt<mode>2): Likewise.
3122 (rsqrtv8sf2): Likewise.
3123 (avx_rsqrtv8sf2): Likewise.
3124 (*avx_vmrsqrtv4sf2): Likewise.
3125 (<code><mode>3): Likewise.
3126 (*avx_<code><mode>3_finite): Likewise.
3127 (*avx_<code><mode>3): Likewise.
3128 (*avx_vm<code><mode>3): Likewise.
3129 (*avx_ieee_smin<mode>3): Likewise.
3130 (*avx_ieee_smax<mode>3): Likewise.
3131 (avx_addsubv8sf3): Likewise.
3132 (avx_addsubv4df3): Likewise.
3133 (*avx_addsubv4sf3): Likewise.
3134 (*avx_addsubv2df3): Likewise.
3135 (avx_h<plusminus_insn>v4df3): Likewise.
3136 (avx_h<plusminus_insn>v8sf3): Likewise.
3137 (*avx_h<plusminus_insn>v4sf3): Likewise.
3138 (*avx_h<plusminus_insn>v2df3): Likewise.
3139 (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
3140 (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
3141 (*avx_maskcmp<mode>3): Likewise.
3142 (avx_nand<mode>3): Likewise.
3143 (*avx_<code><mode>3): Likewise.
3144 (*avx_nand<mode>3): Likewise.
3145 (*avx_<code><mode>3): Likewise.
3146 (*avx_cvtsi2ss): Likewise.
3147 (*avx_cvtsi2ssq): Likewise.
3148 (*avx_cvtsi2sd): Likewise.
3149 (*avx_cvtsi2sdq): Likewise.
3150 (*avx_cvtsd2ss): Likewise.
3151 (avx_cvtss2sd): Likewise.
3152 (avx_cvtdq2ps<avxmodesuffix>): Likewise.
3153 (avx_cvtps2dq<avxmodesuffix>): Likewise.
3154 (avx_cvttps2dq<avxmodesuffix>): Likewise.
3155 (*avx_cvtsi2sd): Likewise.
3156 (*avx_cvtsi2sdq): Likewise.
3157 (avx_cvtdq2pd256): Likewise.
3158 (avx_cvtpd2dq256): Likewise.
3159 (avx_cvttpd2dq256): Likewise.
3160 (*avx_cvtsd2ss): Likewise.
3161 (*avx_cvtss2sd): Likewise.
3162 (avx_cvtpd2ps256): Likewise.
3163 (avx_cvtps2pd256): Likewise.
3164 (*avx_movhlps): Likewise.
3165 (*avx_movlhps): Likewise.
3166 (avx_unpckhps256): Likewise.
3167 (*avx_unpckhps): Likewise.
3168 (avx_unpcklps256): Likewise.
3169 (*avx_unpcklps): Likewise.
3170 (avx_movshdup256): Likewise.
3171 (avx_movsldup256): Likewise.
3172 (avx_shufps256): Likewise.
3173 (avx_shufps256_1): Likewise.
3174 (*avx_shufps_<mode>): Likewise.
3175 (*avx_loadhps): Likewise.
3176 (*avx_storelps): Likewise.
3177 (*avx_loadlps): Likewise.
3178 (*avx_movss): Likewise.
3179 (*vec_dupv4sf_avx): Likewise.
3180 (*vec_concatv2sf_avx): Likewise.
3181 (*vec_concatv4sf_avx): Likewise.
3182 (*vec_setv4sf_0_avx): Likewise.
3183 (*vec_setv4sf_avx): Likewise.
3184 (*avx_insertps): Likewise.
3185 (avx_vextractf128<mode>): Likewise.
3186 (vec_extract_lo_<mode>): Likewise.
3187 (vec_extract_hi_<mode>): Likewise.
3188 (vec_extract_lo_<mode>): Likewise.
3189 (vec_extract_hi_<mode>): Likewise.
3190 (vec_extract_lo_v16hi): Likewise.
3191 (vec_extract_hi_v16hi): Likewise.
3192 (vec_extract_lo_v32qi): Likewise.
3193 (vec_extract_hi_v32qi): Likewise.
3194 (avx_unpckhpd256): Likewise.
3195 (*avx_unpckhpd): Likewise.
3196 (avx_movddup256): Likewise.
3197 (*avx_movddup): Likewise.
3198 (avx_unpcklpd256): Likewise.
3199 (*avx_unpcklpd): Likewise.
3200 (avx_shufpd256): Likewise.
3201 (avx_shufpd256_1): Likewise.
3202 (*avx_punpckhqdq): Likewise.
3203 (*avx_punpcklqdq): Likewise.
3204 (*avx_shufpd_<mode>): Likewise.
3205 (*avx_storehpd): Likewise.
3206 (*avx_loadhpd): Likewise.
3207 (*avx_loadlpd): Likewise.
3208 (*avx_movsd): Likewise.
3209 (*vec_concatv2df_avx): Likewise.
3210 (*avx_<plusminus_insn><mode>3): Likewise.
3211 (*avx_<plusminus_insn><mode>3): Likewise.
3212 (*avx_mulv8hi3): Likewise.
3213 (*avxv8hi3_highpart): Likewise.
3214 (*avx_umulv8hi3_highpart): Likewise.
3215 (*avx_umulv2siv2di3): Likewise.
3216 (*avx_mulv2siv2di3): Likewise.
3217 (*avx_pmaddwd): Likewise.
3218 (*avx_mulv4si3): Likewise.
3219 (*avx_ashr<mode>3): Likewise.
3220 (*avx_lshr<mode>3): Likewise.
3221 (*avx_ashl<mode>3): Likewise.
3222 (*avx_<code><mode>3): Likewise.
3223 (*avx_eq<mode>3): Likewise.
3224 (*avx_gt<mode>3): Likewise.
3225 (*avx_nand<mode>3): Likewise.
3226 (*avx_nand<mode>3): Likewise.
3227 (*avx_<code><mode>3): Likewise.
3228 (*avx_<code><mode>3): Likewise.
3229 (*avx_packsswb): Likewise.
3230 (*avx_packssdw): Likewise.
3231 (*avx_packuswb): Likewise.
3232 (*avx_punpckhbw): Likewise.
3233 (*avx_punpcklbw): Likewise.
3234 (*avx_punpckhwd): Likewise.
3235 (*avx_punpcklwd): Likewise.
3236 (*avx_punpckhdq): Likewise.
3237 (*avx_punpckldq): Likewise.
3238 (*avx_pinsr<avxmodesuffixs>): Likewise.
3239 (*avx_pinsrq): Likewise.
3240 (*avx_loadld): Likewise.
3241 (*vec_extractv2di_1_rex64_avx): Likewise.
3242 (*vec_extractv2di_1_avx): Likewise.
3243 (*vec_dupv2di_avx): Likewise.
3244 (*vec_concatv2si_avx): Likewise.
3245 (*vec_concatv4si_1_avx): Likewise.
3246 (*vec_concatv2di_avx): Likewise.
3247 (*vec_concatv2di_rex64_avx): Likewise.
3248 (*avx_uavgv16qi3): Likewise.
3249 (*avx_uavgv8hi3): Likewise.
3250 (*avx_psadbw): Likewise.
3251 (avx_movmskp<avxmodesuffixf2c>256): Likewise.
3252 (*avx_phaddwv8hi3): Likewise.
3253 (*avx_phadddv4si3): Likewise.
3254 (*avx_phaddswv8hi3): Likewise.
3255 (*avx_phsubwv8hi3): Likewise.
3256 (*avx_phsubdv4si3): Likewise.
3257 (*avx_phsubswv8hi3): Likewise.
3258 (*avx_pmaddubsw128): Likewise.
3259 (*avx_pmulhrswv8hi3): Likewise.
3260 (*avx_pshufbv16qi3): Likewise.
3261 (*avx_psign<mode>3): Likewise.
3262 (*avx_palignrti): Likewise.
3263 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3264 (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3265 (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3266 (*avx_mpsadbw): Likewise.
3267 (*avx_packusdw): Likewise.
3268 (*avx_pblendvb): Likewise.
3269 (*avx_pblendw): Likewise.
3270 (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3271 (avx_ptest256): Likewise.
3272 (avx_roundp<avxmodesuffixf2c>256): Likewise.
3273 (*avx_rounds<ssemodesuffixf2c>): Likewise.
3274 (*avx_aesenc): Likewise.
3275 (*avx_aesenclast): Likewise.
3276 (*avx_aesdec): Likewise.
3277 (*avx_aesdeclast): Likewise.
3278 (avx_vzeroupper): Likewise.
3279 (avx_vzeroupper_rex64): Likewise.
3280 (avx_vpermil<mode>): Likewise.
3281 (avx_vpermilvar<mode>3): Likewise.
3282 (avx_vpermil2<mode>3): Likewise.
3283 (avx_vperm2f128<mode>3): Likewise.
3284 (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3285 (avx_vbroadcastss256): Likewise.
3286 (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
3287 (avx_vinsertf128<mode>): Likewise.
3288 (vec_set_lo_<mode>): Likewise.
3289 (vec_set_hi_<mode>): Likewise.
3290 (vec_set_lo_<mode>): Likewise.
3291 (vec_set_hi_<mode>): Likewise.
3292 (vec_set_lo_v16hi): Likewise.
3293 (vec_set_hi_v16hi): Likewise.
3294 (vec_set_lo_v32qi): Likewise.
3295 (vec_set_hi_v32qi): Likewise.
3296 (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3297 (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3298 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3299 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
3300 (vec_init<mode>): Likewise.
3301 (*vec_concat<mode>_avx): Likewise.
3302 (blendbits): Support V8SF and V4DF.
3303 (sse2_movq128): Support AVX.
3304 (<sse>_movnt<mode>): Likewise.
3305 (sse2_movntv2di): Likewise.
3306 (sse_rcpv4sf2): Likewise.
3307 (sse_sqrtv4sf2): Likewise.
3308 (sse_rsqrtv4sf2): Likewise.
3309 (<sse>_comi): Likewise.
3310 (<sse>_ucomi): Likewise.
3311 (sse_cvtss2si): Likewise.
3312 (sse_cvtss2si_2): Likewise.
3313 (sse_cvtss2siq): Likewise.
3314 (sse_cvtss2siq_2): Likewise.
3315 (sse_cvttss2si): Likewise.
3316 (sse_cvttss2siq): Likewise.
3317 (sse2_cvtsd2si): Likewise.
3318 (sse2_cvtsd2si_2): Likewise.
3319 (sse2_cvtsd2siq): Likewise.
3320 (sse2_cvtsd2siq_2): Likewise.
3321 (sse2_cvttsd2si): Likewise.
3322 (sse2_cvttsd2siq): Likewise.
3323 (sse2_cvtdq2pd): Likewise.
3324 (*sse2_cvtpd2dq): Likewise.
3325 (*sse2_cvttpd2dq): Likewise.
3326 (*sse2_cvtpd2ps): Likewise.
3327 (sse2_cvtps2pd): Likewise.
3328 (sse3_movshdup): Likewise.
3329 (sse3_movsldup): Likewise.
3330 (sse_storehps): Likewise.
3331 (*sse4_1_extractps): Likewise.
3332 (sse2_storelpd): Likewise.
3333 (vec_dupv2df_sse3): Likewise.
3334 (*vec_concatv2df_sse3): Likewise.
3335 (*sse4_1_pextrb): Likewise.
3336 (*sse4_1_pextrb_memory): Likewise.
3337 (*sse2_pextrw): Likewise.
3338 (*sse4_1_pextrw_memory): Likewise.
3339 (*sse4_1_pextrd): Likewise.
3340 (*sse4_1_pextrq): Likewise.
3341 (sse2_pshufd_1): Likewise.
3342 (sse2_pshuflw_1): Likewise.
3343 (sse2_pshufhw_1): Likewise.
3344 (*sse2_storeq_rex64): Likewise.
3345 (*vec_dupv4si): Likewise.
3346 (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
3347 (sse2_pmovmskb): Likewise.
3348 (*sse2_maskmovdqu): Likewise.
3349 (*sse2_maskmovdqu_rex64): Likewise.
3350 (sse_ldmxcsr): Likewise.
3351 (sse_stmxcsr): Likewise.
3352 (abs<mode>2): Likewise.
3353 (sse4_1_movntdqa): Likewise.
3354 (sse4_1_phminposuw): Likewise.
3355 (sse4_1_extendv8qiv8hi2): Likewise.
3356 (*sse4_1_extendv8qiv8hi2): Likewise.
3357 (sse4_1_extendv4qiv4si2): Likewise.
3358 (*sse4_1_extendv4qiv4si2): Likewise.
3359 (sse4_1_extendv2qiv2di2): Likewise.
3360 (*sse4_1_extendv2qiv2di2): Likewise.
3361 (sse4_1_extendv4hiv4si2): Likewise.
3362 (*sse4_1_extendv4hiv4si2): Likewise.
3363 (sse4_1_extendv2hiv2di2): Likewise.
3364 (*sse4_1_extendv2hiv2di2): Likewise.
3365 (sse4_1_extendv2siv2di2): Likewise.
3366 (*sse4_1_extendv2siv2di2): Likewise.
3367 (sse4_1_zero_extendv8qiv8hi2): Likewise.
3368 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
3369 (sse4_1_zero_extendv4qiv4si2): Likewise.
3370 (*sse4_1_zero_extendv4qiv4si2): Likewise.
3371 (sse4_1_zero_extendv2qiv2di2): Likewise.
3372 (*sse4_1_zero_extendv2qiv2di2): Likewise.
3373 (sse4_1_zero_extendv4hiv4si2): Likewise.
3374 (*sse4_1_zero_extendv4hiv4si2): Likewise.
3375 (sse4_1_zero_extendv2hiv2di2): Likewise.
3376 (*sse4_1_zero_extendv2hiv2di2): Likewise.
3377 (sse4_1_zero_extendv2siv2di2): Likewise.
3378 (*sse4_1_zero_extendv2siv2di2): Likewise.
3379 (sse4_1_ptest): Likewise.
3380 (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3381 (sse4_2_pcmpestri): Likewise.
3382 (sse4_2_pcmpestrm): Likewise.
3383 (sse4_2_pcmpistri): Likewise.
3384 (sse4_2_pcmpistrm): Likewise.
3386 (aeskeygenassist): Likewise.
3388 2008-08-28 Uros Bizjak <ubizjak@gmail.com>
3390 * config/i386/predicates.md (vzeroall_operation): New.
3392 * config/i386/sse.md (avx_vzeroall): New.
3393 (*avx_vzeroall): Likewise.
3395 2008-08-28 Paul Brook <paul@codesourcery.com>
3396 Mark Shinwell <shinwell@codesourcery.com>
3397 Richard Earnshaw <richard.earnshaw@arm.com>
3399 * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3400 (TARGET_MIN_ANCHOR_OFFSET): New.
3401 (arm_override_options): Set correct anchor ranges for Thumb-1
3402 and Thumb-2 if required.
3403 (legitimize_pic_address): Handle case involving a TLS symbol
3404 reference with an addend.
3405 (arm_optimization_options): Enable section anchors at -O1 and
3407 * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3408 * config/arm/arm-protos.h (arm_optimization_options): New.
3410 2008-08-28 Nick Clifton <nickc@redhat.com>
3412 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3413 * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3416 * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3417 * config/v850/v850.md (return): Remove frame size restriction.
3419 * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3421 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3423 * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3425 * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3427 2008-08-28 Paul Brook <paul@codesourcery.com>
3429 * config/arm/vfp11.md: Update license notice.
3430 * config/arm/cortex-r4.md: Ditto.
3432 2008-08-28 Richard Guenther <rguenther@suse.de>
3434 PR tree-optimization/37207
3435 * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3438 2008-08-28 Dodji Seketeli <dodji@redhat.com>
3441 * tree.c (int_fits_type_p): Don't forget unsigned integers
3442 of type sizetype which higher end word equals -1.
3444 2008-08-28 Ira Rosen <irar@il.ibm.com>
3446 * target.h (struct vectorize): Add new target builtin.
3447 * tree-vectorizer.c (destroy_loop_vec_info): Call
3448 vect_free_slp_instance instead of vect_free_slp_node.
3449 * tree-vectorizer.h (enum slp_load_perm_type): New.
3450 (struct _slp_instance): Add new fields.
3451 (SLP_INSTANCE_LOAD_PERMUTATION): New.
3452 (SLP_INSTANCE_LOADS): New.
3453 (vect_free_slp_tree): Remove.
3454 (vect_free_slp_instance): Declare.
3455 (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3456 (vectorizable_load): Add argument.
3457 (vect_transform_slp_perm_load): New.
3458 * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3460 (vect_get_place_in_interleaving_chain): New function.
3461 (vect_free_slp_tree): Make static.
3462 (vect_free_slp_instance): New function.
3463 (vect_build_slp_tree): Add new arguments. Allow load permutations and
3464 collect the load location in the interleaving chain.
3465 (vect_supported_slp_permutation_p): New function.
3466 (vect_supported_load_permutation_p): Likewise.
3467 (vect_analyze_slp_instance): In case of loads permutation, call
3468 vect_supported_load_permutation_p to check that the permutation is
3470 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3471 * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3472 (vect_create_mask_and_perm): New function.
3473 (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3474 (vectorizable_load): Add an argument. Don't keep the created vectors
3475 statements in the node if permutation is required. Call
3476 vect_transform_slp_perm_load to generate the permutation.
3477 (vect_transform_stmt): Add new argument. Call vectorizable_load with
3478 additional argument.
3479 (vect_schedule_slp_instance): In case of loads permutation, allocate
3480 vectorized statements structure for all the related SLP nodes. Call
3481 vect_transform_stmt with addditional argument.
3482 (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3483 * config/spu/spu.c (spu_builtin_vec_perm): New.
3484 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3485 * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3486 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3487 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3489 2008-08-28 Chris Fairles <chris.fairles@gmail.com>
3491 * gthr-posix.h (__gthread_create, __gthread_join, __gthread_detach,
3492 __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3493 __gthread_cond_signal, __gthread_cond_timedwait,
3494 __gthread_cond_timedwait_recursive): New functions.
3495 * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3497 * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3500 2008-08-28 Richard Guenther <rguenther@suse.de>
3503 * fold-const.c (maybe_canonicalize_comparison_1): Require
3504 undefined overflow only for canonicalizing A +- CST cmp CST.
3505 Make sure to not generate new constants that are not inside
3506 their TYPE_MIN/MAX_VALUE range.
3507 (maybe_canonicalize_comparison): Remove undefined overflow
3509 (fold_binary): Remove now duplicate folding.
3511 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
3513 * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3514 use not updated in the last change.
3516 2008-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3518 * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3519 (IRA_COVER_CLASSES): Add FPUL_REGS.
3521 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3524 * c-common.c (conversion_warning): Check for null operands.
3526 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3529 * c-decl.c (check_for_loop_decls): Improve error message. Give
3532 2008-08-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3535 * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3536 (convert_for_assignment): Pass corrent OPT_W* parameter to
3537 WARN_FOR_ASSIGNMENT.
3539 2008-08-27 Paolo Carlini <paolo.carlini@oracle.com>
3542 * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3544 2008-08-27 Paul Brook <paul@codesourcery.com>
3546 * config.gcc: Loosen checks for arm uclinux eabi targets.
3548 2008-08-27 Paul Brook <paul@codesourcery.com>
3550 * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3552 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3554 2008-08-26 Douglas Gregor <doug.gregor@gmail.com>
3556 * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3557 the enumerators of an ENUMERAL_TYPE.
3558 * dbxout.c (dbxout_type): Ditto.
3560 2008-08-26 Andrew Pinski <andrew_pinski@playstation.sony.com>
3563 * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3564 (fwprop_addr): Check that the loop_father is not the outer loop.
3566 2008-08-26 Paul Brook <paul@codesourcery.com>
3568 * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3569 Remove documentation entry for fmul type.
3570 Use fmuls to annotate single-precision multiplication patterns,
3571 fmuld to annotate double-precision multiplication patterns,
3572 fmacs to annotate single-precision multiply-accumulate patterns
3573 and fmacd to annotate double-precision multiply-accumulate patterns.
3574 * config/arm/vfp11.md: Update reservations accordingly.
3575 * config/arm/arm.md: Note that certain values of the "type"
3576 attribute are documented in vfp.md.
3577 * config/arm/arm1020e.md: Remove out of date duplicate comment.
3578 (v10_cvt): Use new fmul types.
3580 2008-08-26 Paul Brook <paul@codesourcery.com>
3582 * config/arm/vfp.md: Move pipeline description for VFP11 to...
3583 * config/arm/vfp11.md: ...here. New.
3584 * config/arm/arm.md: Include vfp11.md.
3586 2008-08-26 Hans-Peter Nilsson <hp@axis.com>
3588 * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3589 parameter to inform call.
3591 2008-08-26 Jeff Law <law@redhat.com>
3593 * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3594 avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3595 preferred class when copying a constant into a partial word register.
3597 2008-08-26 Ben Elliston <bje@au.ibm.com>
3599 * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3600 * cp/typeck.c: Likewise.
3601 * cp/tree.c: Likewise.
3602 * gimple-low.c: Likewise.
3605 2008-08-26 Vladimir Makarov <vmakarov@redhat.com>
3607 * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3608 ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3610 * doc/passes.texi: Describe IRA.
3612 * doc/tm.texi (IRA_COVER_CLASSES,
3613 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3615 * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3616 (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3617 -fira-propagate-cost, -fno-ira-share-save-slots,
3618 -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3620 * flags.h (ira_algorithm): New enumeration.
3621 (flag_ira_algorithm, flag_ira_verbose): New external variable
3624 * postreload.c (gate_handle_postreload): Don't do post reload
3625 optimizations unless the reload is completed.
3627 * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3630 * tree-pass.h (pass_ira): New external variable declaration.
3632 * reload.h: Add 2008 to the Copyright.
3634 * cfgloopanal.c: Include params.h.
3635 (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3638 * params.h (IRA_MAX_LOOPS_NUM): New macro.
3640 * toplev.c (ira.h): New include.
3641 (flag_ira_algorithm, flag_ira_verbose): New external variables.
3642 (backend_init_target): Call ira_init.
3643 (backend_init): Call ira_init_once.
3644 (finalize): Call finish_ira_once.
3646 * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3647 flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3650 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3651 may_move_out_cost): New external variable declarations.
3652 (move_table): New typedef.
3654 * caller-save.c: Include headers output.h and ira.h.
3655 (no_caller_save_reg_set): New global variable.
3656 (save_slots_num, save_slots): New variables.
3657 (reg_save_code, reg_restore_code, add_stored_regs): Add
3659 (init_caller_save): Set up no_caller_save_reg_set.
3660 (init_save_areas): Reset save_slots_num.
3661 (saved_hard_reg): New structure.
3662 (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3663 (initiate_saved_hard_regs, new_saved_hard_reg,
3664 finish_saved_hard_regs, saved_hard_reg_compare_func): New
3666 (setup_save_areas): Add code for sharing stack slots.
3667 (all_blocks): New variable.
3668 (save_call_clobbered_regs): Process pseudo-register too.
3669 (mark_set_regs): Process pseudo-register too.
3670 (insert_one_insn): Put the insn after bb note in a empty basic
3671 block. Add insn check.
3673 * global.c (eliminable_regset): Make it external.
3674 (mark_elimination): Use DF_LR_IN for IRA.
3675 (pseudo_for_reload_consideration_p): New.
3676 (build_insn_chain): Make it external. Don't ignore spilled
3677 pseudos for IRA. Use pseudo_for_reload_consideration_p.
3678 (gate_handle_global_alloc): New function.
3679 (pass_global_alloc): Add the gate function.
3681 * opts.c (decode_options): Set up flag_ira. Print the warning for
3683 (common_handle_option): Process -fira-algorithm and -fira-verbose.
3685 * timevar.def (TV_IRA, TV_RELOAD): New passes.
3687 * regmove.c (regmove_optimize): Don't do replacement of output for
3690 * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3691 New external variable declarations.
3693 * local-alloc.c (update_equiv_regs): Make it external. Return
3694 true if jump label rebuilding should be done. Rescan new_insn for
3696 (gate_handle_local_alloc): New function.
3697 (pass_local_alloc): Add the gate function.
3699 * alias.c (value_addr_p, stack_addr_p): New functions.
3700 (nonoverlapping_memrefs_p): Use them for IRA.
3702 * common.opt (fira, fira-algorithm, fira-coalesce,
3703 fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3704 fira-verbose): New options.
3706 * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3707 move_cost, may_move_in_cost, may_move_out_cost): Make the
3709 (move_table): Remove typedef.
3710 (init_move_cost): Make it external.
3711 (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3714 * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3715 setup_reg_classes): New function prototypes.
3716 (eliminable_regset): New external variable declaration.
3717 (build_insn_chain, update_equiv_regs): New function prototypes.
3719 * Makefile.in (IRA_INT_H): New definition.
3720 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3721 ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3722 (reload1.o, toplev.o): Add dependence on ira.h.
3723 (cfgloopanal.o): Add PARAMS_H.
3724 (caller-save.o): Add dependence on output.h and ira.h.
3725 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3726 ira-emit.o, ira-lives.o): New entries.
3728 * passes.c (pass_ira): New pass.
3730 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3732 * reload1.c (ira.h): Include the header.
3733 (changed_allocation_pseudos): New bitmap.
3734 (init_reload): Initiate the bitmap.
3735 (compute_use_by_pseudos): Permits spilled registers in FROM.
3736 (temp_pseudo_reg_arr): New variable.
3737 (reload): Allocate and free temp_pseudo_reg_arr. Sort pseudos for
3738 IRA. Call alter_reg with the additional parameter. Don't clear
3739 spilled_pseudos for IRA. Restore original insn chain for IRA.
3740 Clear changed_allocation_pseudos at the end of reload.
3741 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3742 (hard_regno_to_pseudo_regno): New variable.
3743 (count_pseudo): Check spilled pseudos. Set up
3744 hard_regno_to_pseudo_regno.
3745 (count_spilled_pseudo): Check spilled pseudos. Update
3746 hard_regno_to_pseudo_regno.
3747 (find_reg): Use better_spill_reload_regno_p. Check
3748 hard_regno_to_pseudo_regno.
3749 (alter_reg): Set up spilled_pseudos. Add a new parameter. Add
3751 (eliminate_regs_1): Use additional parameter for alter_reg.
3752 (finish_spills): Set up pseudo_previous_regs only for spilled
3753 pseudos. Call reassign_pseudos once for all spilled pseudos, pass
3754 more arguments. Don't clear live_throughout and dead_or_set for
3755 spilled pseudos. Use additional parameter for alter_reg. Call
3756 mark_allocation_change. Set up changed_allocation_pseudos.
3757 Remove sanity check.
3758 (emit_input_reload_insns, delete_output_reload): Use additional
3759 parameter for alter_reg. Call mark_allocation_change.
3760 (substitute, gen_reload_chain_without_interm_reg_p): New
3762 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3764 * testsuite/gcc.dg/20080410-1.c: New file.
3766 * config/s390/s390.h (IRA_COVER_CLASSES,
3767 IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3769 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3771 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3773 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3775 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3777 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3779 * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3781 2008-08-24 Jeff Law <law@redhat.com>
3782 * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3783 when ignoring unavailable registers.
3785 2008-08-24 Jeff Law <law@redhat.com>
3786 * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3787 FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3788 * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3789 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3791 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3792 * ira-build.c (allocno_range_compare_func): Stabilize sort.
3794 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3795 * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3796 * reload1.c (find_reg): Process registers in register allocation order.
3798 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3799 * toplev.c (backend_init_target): Move ira_init call from
3801 (lang_dependent_init_target): ...to here.
3803 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3804 * ira.c (setup_class_subset_and_memory_move_costs): Don't
3805 calculate memory move costs for NO_REGS.
3807 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3808 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3809 STACK_REGS is defined.
3811 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3812 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3814 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3815 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3817 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3818 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3819 * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3822 2008-08-26 Victor Kaplansky <victork@il.ibm.com>
3823 Dorit Nuzman <dorit@il.ibm.com>
3825 * gcc/config/spu/spu.md (vec_extract_evenv4si,
3826 vec_extract_evenv4sf, vec_extract_evenv8hi,
3827 vec_extract_evenv16qi, vec_extract_oddv4si,
3828 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3829 vec_interleave_highv4sf, vec_interleave_lowv4sf,
3830 vec_interleave_highv4si, vec_interleave_lowv4si,
3831 vec_interleave_highv8hi, vec_interleave_lowv8hi,
3832 vec_interleave_highv16qi, vec_interleave_lowv16qi,
3833 vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3835 2008-08-25 Janis Johnson <janis187@us.ibm.com>
3838 * config/rs6000/rs6000.c (optimization_options): Don't default to
3839 section anchors without toplevel reorder.
3841 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3843 * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3844 (mfc_end_critical_section): Likewise.
3846 2008-08-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3848 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3849 all type qualifiers from element type to vector type.
3851 2008-08-25 David Daney <ddaney@avtrex.com>
3853 * config/mips/mips.md (immediate_insn): Move up in file, fix
3854 comment typo, reformat.
3855 (fetchop_bit, atomic_hiqi_op memory_barrier,
3856 sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3857 sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3858 sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3859 sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3860 sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3861 sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3862 sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3863 sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3864 sync_old_nand<mode>, sync_new_nand<mode>,
3865 sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3866 test_and_set_12): Moved to sync.md.
3868 * config/mips/sync.md: New file.
3870 2008-08-25 Richard Henderson <rth@redhat.com>
3872 * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3873 (regsave): Likewise.
3874 (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3875 (output_cfi_directive): Likewise.
3876 (div_data_align): New.
3877 (output_cfi): Use it.
3879 2008-08-24 Adam Nemet <anemet@caviumnetworks.com>
3881 * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3882 * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3883 (TARGET_OCTEON): New macro.
3884 (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3885 (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3886 (ISA_HAS_POP): New macro.
3887 * config/mips/driver-native.c (host_detect_local_cpu): Handle
3889 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3891 * config/mips/mips.md (cpu): Add octeon.
3892 (type): Add pop attribute value.
3893 (popcount<mode>2): New pattern.
3894 * doc/invoke.texi (-march=@var{arch}): Add octeon.
3896 2008-08-24 Jan Hubicka <jh@suse.cz>
3898 * doc/invoke.texi (-fipa-cp-clone): New option.
3899 (-fipa-cp): Update docs.
3900 (--param ipcp-unit-growth):New.
3901 * ipa-cp.c: Include fibheap.h, params.h
3902 (ipcp_initialize_node_lattices): When not cloning, all externally
3903 visible functions are bottom.
3904 (ipcp_need_redirect_p): Accept clones.
3905 (ipcp_insert_stage): Use cost driven heuristics.
3906 (max_count, dead_nodes): New static vars.
3907 (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3908 ipcp_const_param_count): New functions.
3909 * common.opt (ipa-cp-clone): New command line option.
3910 * params.def (ipcp-unit-growth): New.
3912 2008-08-24 Jan Hubicka <jh@suse.cz>
3914 * tree-inline.c (tree_function_versioning): Look harder
3915 for referenced vars.
3917 2008-08-24 Razya Ladelsky <razya@il.ibm.com>
3919 PR tree-optimization/37185
3920 * matrix-reorg.c (transform_access_sites): Update changed stmt.
3922 2008-08-23 Jan Hubicka <jh@suse.cz>
3924 * ipa-cp.c (ipcp_analyze_node): New function.
3925 (ipcp_update_cloned_node): Use it.
3926 (ipcp_init_stage): Likewise.
3927 * ipa-inline.c (function_insertion_hook_holder): New static var.
3928 (analyze_function): Break out from ....
3929 (inline_generate_summary): Here; register insertion hook.
3930 (cgraph_decide_inlining): Remove hook.
3931 (add_new_function): New function.
3933 2008-08-23 Jan Hubicka <jh@suse.cz>
3935 * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3937 2008-08-23 Jan Hubicka <jh@suse.cz>
3939 * ipa-cp.c (constant_val_insert): Remove.
3940 (ipcp_propagate_one_const): Remove.
3941 (ipcp_create_replace_map): Always insert replacements to the map.
3942 (ipcp_insert_stage): Do not try to insert statements by hand.
3943 * tree-inline.c (insert_init_stmt): Break out from ...
3944 (setup_one_parameter): ... here; allow NULL BB pointer.
3945 (tree_function_versioning): Use setup_one_parameter to process
3948 2008-08-23 Jan Hubicka <jh@suse.cz>
3950 * tree.c (decl_address_ip_invariant_p): New function.
3951 * tree.h (decl_address_ip_invariant_p): Declare.
3952 * gimple.c (strip_invariant_refs): Break out from ...
3953 (is_gimple_invariant_address): ... here
3954 (is_gimple_ip_invariant_address): New function.
3955 (is_gimple_ip_invariant): New function.
3956 * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3959 * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3960 (ipcp_lat_is_insertable): All constants are insertable.
3961 (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3962 IPA_CONST_VALUE_REF.
3963 (ipcp_initialize_node_lattices): Propagate all types of operands.
3964 (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3965 (ipcp_create_replace_map): Reformat.
3966 (ipcp_need_redirect_p): Simplify.
3967 (ipcp_insert_stage): Check that argument is used before clonning.
3968 * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
3969 (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
3970 (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
3971 (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
3972 * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
3973 (jump_func_type): Remove IPA_CONST_VALUE_REF.
3974 * tree-inline.c (tree_function_versioning): Add variables referenced by
3977 2008-08-23 Jan Hubicka <jh@suse.cz>
3980 * i386.c (standard_80387_constant_p): Use optimize_size.
3982 2008-08-23 Ira Rosen <irar@il.ibm.com>
3984 PR tree-optimization/37161
3985 * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
3986 * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
3987 (vect_determine_vectorization_factor): Move the scalar type
3988 retrieval to vect_get_smallest_scalar_type.
3989 (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
3990 scalar type. Remove redundant computation.
3991 * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
3992 (vect_get_slp_defs): Take the type of RHS into account if
3993 necessary by calling vect_get_smallest_scalar_type. Call
3994 vect_get_constant_vectors with additional argument.
3996 2008-08-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3999 * doc/invoke.texi (Wwrite-strings): Clarify description.
4001 2008-08-23 Ira Rosen <irar@il.ibm.com>
4003 PR tree-optimization/37174
4004 * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
4005 def stmt is a part of the loop before accessing its stmt_vec_info.
4007 2008-08-22 Anatoly Sokolov <aesok@post.ru>
4010 * config/avr/avr.md (UNSPEC_SWAP): New constants.
4011 (*swap): New insn pattern.
4012 (*ashlqi3): Rename from ashlqi3 insn pattern.
4013 (ashlqi3): New expanders.
4014 (*lshrqi3): Rename from lshrqi3 insn pattern.
4015 (lshrqi3): New expanders.
4016 (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
4017 lshrqi3_const5, lshrqi3_const6): New splitters.
4018 (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
4019 lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
4022 2008-08-22 Richard Guenther <rguenther@suse.de>
4024 PR tree-optimization/37078
4025 * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
4026 [+INF, +INF] ranges.
4028 2008-08-22 Richard Guenther <rguenther@suse.de>
4030 PR tree-optimization/37143
4031 * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
4032 a conversion statement instead of a copy.
4034 2008-08-22 Uros Bizjak <ubizjak@gmail.com>
4037 * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
4038 CCCmode, CCOmode and CCSmode destination modes.
4041 * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
4042 from different units in a single alternative.
4043 (*vec_extractv2sf_1): Ditto.
4044 (*vec_extractv2si_0): Ditto.
4045 (*vec_extractv2si_1): Ditto.
4046 * config/i386/sse.md (sse2_storehpd): Ditto.
4047 (sse2_storelpd): Ditto.
4048 (sse2_loadhpd): Ditto.
4049 (sse2_loadlpd): Ditto.
4052 * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
4053 (popcountsi2): Ditto.
4054 (clzdi2_abm): Ditto.
4055 (popcountdi2): Ditto.
4056 (clzhi2_abm): Ditto.
4057 (popcounthi2): Ditto.
4059 2008-08-22 Richard Guenther <rguenther@suse.de>
4063 * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
4064 if the multiplication does not overflow.
4066 2008-08-21 Nathan Sidwell <nathan@codesourcery.com>
4068 * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
4070 2008-08-21 Richard Henderson <rth@redhat.com>
4072 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
4073 spurrious comma from test.
4074 * configure: Rebuild.
4076 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4079 * builtins.c (fold_builtin_next_arg): Add warning about undefined
4082 2008-08-21 Aldy Hernandez <aldyh@redhat.com>
4084 * c-tree.h (grokfield): New argument.
4085 * c-decl.c (grokfield): Handle new location argument.
4086 * c-parser.c (c_parser_struct_declaration): Pass location to
4089 2008-08-21 Richard Guenther <rguenther@suse.de>
4091 * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
4093 2008-08-21 Jan Hubicka <jh@suse.cz>
4095 * cgraph.c (first_cgraph_function_insertion_hook): New variable.
4096 (cgraph_add_function_insertion_hook,
4097 cgraph_remove_function_insertion_hook,
4098 cgraph_call_function_insertion_hooks): New functions.
4099 * cgraph.h (cgraph_add_function_insertion_hook,
4100 cgraph_remove_function_insertion_hook,
4101 cgraph_call_function_insertion_hooks): Declare.
4102 * ipa-reference.c (function_insertion_hook_holder): New variable.
4103 (check_operand, look_for_address_of): When checking late, do not care
4104 about module bitmaps.
4105 (add_new_function): New function.
4106 (generate_summary): Register hooks; zero module bitmaps.
4107 (propagate): Unregister hooks.
4108 * ipa-pure-const.c (function_insertion_hook_holder): New variable.
4109 (add_new_function): New function.
4110 (generate_summary): Register hook.
4111 (propagate): Remove hook.
4113 * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
4115 * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
4116 * ipa-cp.c (ipcp_update_cloned_node): New function.
4117 (build_const_val): Handle functions correctly; bring type logic
4118 into sync with tree-inline.c
4119 (ipcp_init_stage): Take care of computing stuff needed by
4120 indirect inlining; update clones.
4121 (ipcp_generate_summary): Break out of ipcp_driver.
4122 (ipcp_driver): Do only execution and transformation.
4123 (pass_ipa_cp): Make IPA_PASS.
4124 * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
4126 * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
4127 ipcp, some info is already available.
4128 * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
4129 * tree-inline.c (remap_ssa_name): Unshare expression.
4131 2008-08-21 Richard Guenther <rguenther@suse.de>
4133 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
4134 a PHI ask VN if it is already available.
4135 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
4136 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
4138 2008-08-21 Richard Guenther <rguenther@suse.de>
4141 * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
4142 makes sure to produce a result of the correct type.
4144 2008-08-21 Jan Hubicka <jh@suse.cz>
4145 Backport from LTO branch:
4147 2008-05-05 Kenneth Zadeck <zadeck@naturalbridge.com>
4148 Jan Hubicka <jh@suse.cz>
4151 (init_state, finish_state, set_function_state, generate_summary):
4153 (scan_stmt): Renamed from scan_function. Changed to keep state in
4154 local static vars rather than cgraph aux field.
4155 (propagate): Renamed from static_execute. Changed to keep state in
4156 local static vars rather than cgraph aux field.
4157 (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
4158 * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
4160 2008-07-15 Kenneth Zadeck <zadeck@naturalbridge.com>
4162 * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
4163 * ipa-reference.c (init_function_info, generate_summary,
4164 propagate): New functions.
4165 (analyze_function): Call init_function_info.
4166 (static_execute): Stripped into generate_summary and propagate.
4167 (pass_ipa_reference): Made into ipa_opt_pass.
4169 2008-08-21 Richard Guenther <rguenther@suse.de>
4171 PR tree-optimization/37181
4172 * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
4174 (extract_range_from_unary_expr): Likewise.
4176 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4178 * diagnostic.c (pedwarn_at): Rename as pedwarn.
4180 * toplev.h (pedwarn_at): Likewise.
4181 * builtins.c: Update all calls to pedwarn.
4182 * c-lex.c: Likewise.
4183 * toplev.c: Likewise.
4184 * c-tree.h: Likewise.
4185 * c-decl.c: Likewise.
4186 * c-errors.c: Likewise.
4187 * c-typeck.c: Likewise.
4188 * c-common.c: Likewise.
4189 * c-parser.c: Likewise.
4191 2008-08-20 Joseph Myers <joseph@codesourcery.com>
4194 * config/sparc/sparc.c (function_arg_slotno): Handle structure
4195 with MODE_VECTOR_INT mode.
4197 2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4200 * tree-ssa.c (warn_uninit): Do not warn for variables that can be
4201 initialized outside the current module.
4202 (warn_uninitialized_var): Ignore left-hand side when walking the
4203 trees. Ignore address expressions. Examine VUSE operands in gimple
4204 statements with a variable declaration on the right-hand side.
4206 2008-08-20 Richard Sandiford <rdsandiford@googlemail.com>
4209 * rtlanal.c (subreg_offset_representable_p): Revert last change.
4211 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4214 * c-common.c (conversion_warning): Do not warn if applying bit-and
4215 operator to unsigned constant that fits in the target type.
4217 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4220 * c-common.c (conversion_warning): Do not warn for artificial
4223 2008-08-20 Richard Guenther <rguenther@suse.de>
4225 * tree-vrp.c (op_with_constant_singleton_value_range): New function.
4226 (extract_range_from_binary_expr): Fall back to constant propagation.
4227 (extract_range_from_unary_expr): Likewise.
4229 2008-08-20 Richard Guenther <rguenther@suse.de>
4231 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
4232 with TREE_THIS_VOLATILE on shared nodes.
4233 (fold_stmt_r): Likewise.
4235 2008-08-20 Jakub Jelinek <jakub@redhat.com>
4238 * c-parser.c (c_parser_attributes): For keywords use canonical
4239 spelling for attr_name.
4241 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4243 * value-prof.c (check_counter): Revert wrong call to error.
4245 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4247 * profile.c: Update calls to inform.
4248 * value-prof.c: Update calls to inform.
4250 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4252 * diagnostic.c (inform): Add an explicit location_t parameter.
4253 * toplev.h (inform): Update declaration.
4254 * builtins.c: Update all calls to inform.
4255 * c-common.c: Likewise.
4256 * c-decl.c: Likewise.
4257 * c-opts.c: Likewise.
4258 * c-pch.c: Likewise.
4259 * c-pragma.c: Likewise.
4260 * c-typeck.c: Likewise.
4261 * coverage.c: Likewise.
4263 * toplev.c: Likewise.
4264 * tree-cfg.c: Likewise.
4265 * tree-ssa.c: Likewise.
4267 2008-08-20 H.J. Lu <hongjiu.lu@intel.com>
4270 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
4271 V2DI mode, for SSE4.1, use movq instead of vector set if the
4272 second element is zero and inter-unit moves are OK.
4274 2008-08-20 Richard Guenther <rguenther@suse.de>
4276 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
4277 properly handle conversion/copy chains after tuplification.
4279 2008-08-20 Richard Guenther <rguenther@suse.de>
4281 * passes.c (init_optimization_passes): Move the second
4282 forwprop pass before alias computation. Remove the second
4283 DCE pass. Remove the first dominator and phi copy/const
4286 2008-08-20 Nick Clifton <nickc@redhat.com>
4288 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
4289 support of this feature. Do not assume that a sufficiently new
4290 assembler will support the feature regardless of the target type.
4291 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
4292 * configure: Regenerate.
4294 2008-08-20 Richard Guenther <rguenther@suse.de>
4296 * tree-vrp.c (found_in_subgraph): Remove.
4297 (live): New global static.
4298 (live_on_edge): New function.
4299 (blocks_visited): Remove.
4300 (register_edge_assert_for_2): Use live_on_edge.
4301 (find_conditional_asserts): Remove code dealing with
4302 found_in_subgraph. Do not walk the CFG.
4303 (find_switch_asserts): Likewise.
4304 (find_assert_locations_1): Renamed from find_assert_locations.
4305 Move finding assert locations for conditional and switch
4306 statements first. Update live bitmap. Do not walk the CFG.
4307 (find_assert_locations): New function.
4308 (insert_range_assertions): Remove entry of CFG walk.
4309 Adjust call to find_assert_locations.
4310 * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
4311 that only can appear because of fake exit edges but assert we
4312 never try to insert on those.
4313 (fini_pre): Do not remove fake exit edges here...
4314 (execute_pre): ...but here, before committing edge inserts.
4316 2008-08-19 Richard Guenther <rguenther@suse.de>
4318 * passes.c (init_optimization_passes): Exchange store-ccp
4321 2008-08-19 Rafael Espíndola <espindola@google.com>
4323 * varasm.c (weak_decls): Move earlier in the file.
4324 (assemble_external): Add weak decls to the weak_decls list.
4325 (declare_weak): Don't add decls to the weak_decls list.
4327 2008-08-19 H.J. Lu <hongjiu.lu@intel.com>
4330 * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
4331 before (sse2_shufpd_<mode>).
4333 2008-08-19 Jakub Jelinek <jakub@redhat.com>
4336 * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
4337 * tree.c (block_nonartificial_location): Likewise.
4339 2008-08-19 Richard Guenther <rguenther@suse.de>
4341 PR tree-optimization/35972
4342 PR tree-optimization/23094
4343 * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
4345 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4346 handle MISALIGNED_INDIRECT_REF.
4347 (get_ref_from_reference_ops): New helper.
4348 (vn_reference_lookup_pieces): Walk the use-def chain using the
4349 alias-oracle if requested.
4350 * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
4351 walking the use-def chain.
4352 (compute_avail): But not here.
4353 (create_component_ref_by_pieces_1): Properly handle
4354 MISALIGNED_INDIRECT_REF.
4355 (do_regular_insertion): Handle fully redundant
4356 expressions after PHI-translation also for SSA_NAME values, not
4357 only constants. Correctly use edoubleprime for that.
4359 2008-08-19 Ira Rosen <irar@il.ibm.com>
4361 * tree-vectorizer.c (supportable_widening_operation): Support
4362 multi-step conversion, return the number of steps in such conversion
4363 and the required intermediate types.
4364 (supportable_narrowing_operation): Likewise.
4365 * tree-vectorizer.h (vect_pow2): New function.
4366 (supportable_widening_operation): Change argument types.
4367 (supportable_narrowing_operation): Likewise.
4368 (vectorizable_type_promotion): Add an argument.
4369 (vectorizable_type_demotion): Likewise.
4370 * tree-vect-analyze.c (vect_analyze_operations): Call
4371 vectorizable_type_promotion and vectorizable_type_demotion with
4372 additional argument.
4373 (vect_get_and_check_slp_defs): Detect patterns.
4374 (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4376 (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4377 vect_build_slp_tree with correct arguments. Calculate unrolling factor
4378 according to the smallest type in the loop.
4379 (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4380 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4381 supportable_widening_operation with correct arguments.
4382 * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4383 operands lists according to the number of vector statements in left
4384 or right node, if exists.
4385 (vect_gen_widened_results_half): Remove unused argument.
4386 (vectorizable_conversion): Call supportable_widening_operation,
4387 supportable_narrowing_operation, and vect_gen_widened_results_half
4388 with correct arguments.
4389 (vectorizable_assignment): Change documentation, support multiple
4391 (vectorizable_operation): Likewise.
4392 (vect_get_loop_based_defs): New function.
4393 (vect_create_vectorized_demotion_stmts): Likewise.
4394 (vectorizable_type_demotion): Support loop-aware SLP and general
4395 multi-step conversion. Call vect_get_loop_based_defs and
4396 vect_create_vectorized_demotion_stmts for transformation.
4397 (vect_create_vectorized_promotion_stmts): New function.
4398 (vectorizable_type_promotion): Support loop-aware SLP and general
4399 multi-step conversion. Call vect_create_vectorized_promotion_stmts
4401 (vectorizable_store): Change documentation, support multiple
4403 (vectorizable_load): Likewise.
4404 (vect_transform_stmt): Pass SLP_NODE to
4405 vectorizable_type_promotion and vectorizable_type_demotion.
4406 (vect_schedule_slp_instance): Move here the calculation of number
4407 of vectorized statements for each node from...
4408 (vect_schedule_slp): ... here.
4409 (vect_transform_loop): Call vect_schedule_slp without the last
4412 2008-08-19 Dorit Nuzman <dorit@il.ibm.com>
4415 * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4416 to == in assert statement.
4417 (vectorizable_reduction): Fix typo.
4419 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
4422 * value-prof.c (check_counter): Dereference pointer to overall
4423 count when printing it.
4425 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
4427 * profile.h: Really add it.
4429 2008-08-18 H.J. Lu <hongjiu.lu@intel.com>
4431 * mcf.c: Really add it.
4433 2008-08-18 Paul Yuan <yingbo.com@gmail.com>
4434 Vinodha Ramasamy <vinodha@google.com>
4436 * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4438 * value-prof.c (check_counter): Fix the counter if
4439 flag_profile_correction is true.
4440 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4441 tree_mod_subtract_transform):
4442 Follow check_counter parameter change.
4443 * common.opt (fprofile-correction): New option.
4445 * profile.h: Likewise.
4446 * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4447 (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4448 is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4450 (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4451 flag_profile_correction is set.
4453 2008-08-18 Richard Sandiford <rdsandiford@googlemail.com>
4455 * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4457 2008-08-18 Tomas Bily <tbily@suse.cz>
4459 * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4460 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4462 * tree-data-ref.c (split_constant_offset_1): Likewise.
4463 * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4464 * tree-sra.c (sra_walk_expr): Likewise.
4465 * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4466 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4467 * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4468 * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4470 * gimple.c (gimple_assign_unary_nop_p): Likewise.
4471 * tree-vect-transform.c (vectorizable_type_demotion)
4472 (vectorizable_type_promotion): Likewise.
4473 * tree-inline.c (expand_call_inline):
4474 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4475 (forward_propagate_addr_expr_1, forward_propagate_comparison)
4476 (tree_ssa_forward_propagate_single_use_vars): Likewise.
4477 * expr.c (expand_expr_real_1): Likewise.
4478 * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4479 (gimple_assign_unary_useless_conversion_p): Likewise.
4480 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4481 * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4482 * fold-const.c (fold_unary): Likewise.
4483 * tree.h (CONVERT_EXPR_P): Likewise.
4484 * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4485 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4487 (register_edge_assert_for_2, extract_range_from_unary_expr)
4488 (register_edge_assert_for_1): Likewise.
4490 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4492 * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4493 dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4494 (enum real_value_const): Delete.
4495 (get_real_const): Delete.
4496 * real.c (get_real_const): Delete.
4497 (dconst_e_ptr): Define.
4498 (dconst_third_ptr): Define.
4499 (dconst_sqrt2_ptr): Define.
4500 * builtins.c: Update all callers.
4502 2008-08-18 Richard Guenther <rguenther@suse.de>
4504 * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4505 statement iterator after statement removal.
4507 2008-08-18 Andreas Tobler <a.tobler@schweiz.org>
4509 * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4510 (detect_processor_freebsd): Likewise.
4511 (host_detect_local_cpu): Call newly added functions for FreeBSD.
4513 2008-08-18 Richard Guenther <rguenther@suse.de>
4515 * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4516 and loads have the correct types.
4518 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4521 * c-opts.c (cpp_opts): Remove static.
4522 * c-parser.c (cpp_opts): Declare it extern.
4523 (disable_extension_diagnostics): Handle cpp options.
4524 (enable_extension_diagnostics): Likewise.
4526 2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4528 * diagnostics.c (permerror_at): Rename as permerror.
4529 (permerror): Delete.
4530 * toplev.h: Likewise.
4532 2008-08-18 Richard Guenther <rguenther@suse.de>
4534 * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4535 sdse1 and addressables2 passes. Replace dce1 with cddce1.
4536 Move call_cdce before build_alias. Move copyrename2,
4537 cunrolli and ccp2 beafore build_alias. Re-add addressable2
4538 right after final inlining.
4539 * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4540 (pass_build_cfg): But instead via TODO_dump_func.
4542 2008-08-18 Richard Guenther <rguenther@suse.de>
4544 * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4546 (scalarize_init): If we failed to generate some initializers
4547 do not generate zeros for not instantiated members. Instead
4548 rely on the copy out.
4549 * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4550 about missing flow-sensitive alias info only if we have
4553 2008-08-17 Nick Clifton <nickc@redhat.com>
4555 * doc/extend.texi (Function Attributes): Fix typo in description
4556 if hot function attribute.
4558 2008-08-17 Daniel Jacobowitz <dan@codesourcery.com>
4559 Richard Sandiford <rdsandiford@googlemail.com>
4561 * doc/install.texi (--with-mips-plt): Document.
4562 * doc/invoke.texi (-mplt, -mno-plt): Document.
4563 * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4564 and handle ${with_mips_plt}.
4565 * config/mips/mips.opt (mplt): New option.
4566 * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4567 (TARGET_ABICALLS_PIC2): Likewise.
4568 (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4569 (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4570 (ASM_SPEC): Use !mabi=* instead of !mabi*.
4571 (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4572 to decide whether to output ".option picX" directives.
4573 * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4574 Pass -call_nonpic rather than -KPIC for -mplt.
4575 (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4576 on the command line. Also remove it when -mabi=64 is used without
4578 * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4579 * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4580 TARGET_ABICALLS_PIC0.
4581 (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4583 (mips16_build_function_stub): Only output ".option pic" directives
4584 and PIC stubs if TARGET_ABICALLS_PIC2. Call through $25 instead of $1.
4585 (mips16_build_call_stub): Fix comment and remove redundant
4586 ".set at"/"set .noat" directives.
4587 (mips_function_rodata_section): Use the default behaviour for
4588 TARGET_ABSOLUTE_ABICALLS.
4589 (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4590 (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4591 (mips_restore_gp): Do nothing if the current function doesn't use
4593 (mips_expand_prologue): Only save $gp if the current function uses it.
4594 Use a normal move for TARGET_ABICALLS_PIC0.
4595 (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4597 2008-08-17 Richard Sandiford <rdsandiford@googlemail.com>
4599 * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4600 of function when handling GLOBAL_POINTER_REGNUM.
4602 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4605 * common.opt (-fstack-check): Do not declare the variable here.
4606 (-fstack-check=): New option variant.
4607 * doc/invoke.texi (Code Gen Options): Document it.
4608 * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4609 (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4610 (STACK_CHECK_STATIC_BUILTIN): New macro.
4611 * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4612 * opts.c: Include expr.h.
4613 (common_handle_option) <OPT_fold_stack_check_>: New case.
4614 <OPT_fstack_check>: Likewise.
4615 * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4616 consistently in the test for variable-sized types. Adjust for
4617 new behaviour of flag_stack_check.
4618 * explow.c: Include except.h.
4619 (allocate_dynamic_stack_space): Do not take into account
4620 STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4621 * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4622 for variable-sized parameters. Treat all parameters whose size is
4623 greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4624 stack checking is enabled.
4625 * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4626 size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4627 if generic stack checking is enabled.
4628 (expand_function_end): Adjust for new behaviour of flag_stack_check.
4629 * reload1.c (reload): Likewise.
4630 * stmt.c (expand_decl): Assert that all automatic variables have
4631 fixed size at this point and remove dead code.
4632 * flags.h (stack_check_type): New enumeration type.
4633 (flag_stack_check): Declare.
4634 * toplev.c (flag_stack_check): New global variable.
4635 * Makefile.in (opts.o): Add dependency on EXPR_H.
4636 (explow.o): Add dependency on except.h.
4638 2008-08-16 Andy Hutchinson <hutchinsonandy@aim.com>
4640 * config/avr/avr.c (avr_override_options): Reduce value of
4641 PARAM_INLINE_CALL_COST.
4643 2008-08-15 Eric Botcazou <ebotcazou@adacore.com>
4645 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4646 to BLKmode, try to fetch an inner memory reference. Use 'mode' in
4647 lieu of TYPE_MODE (type) throughout.
4649 2008-08-15 Joseph Myers <joseph@codesourcery.com>
4651 * config/arm/arm.c (add_minipool_backward_ref): Check for
4652 8-byte-aligned entries in second case of forcing insertion after a
4653 particular entry. Change third case to avoid inserting
4654 non-8-byte-aligned entries before 8-byte-aligned ones.
4656 2008-08-15 Richard Guenther <rguenther@suse.de>
4658 * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4659 strip components for unknown size accesses.
4661 2008-08-15 Wolfgang Gellerich <gellerich@de.ibm.com>
4663 * config/s390/2097.md New file.
4664 * config/s390/s390.md ("z10prop" attribute): Define none,
4665 z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4666 z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4667 z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4668 possible values and apply them to insns as appropriate.
4669 ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4670 ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4671 fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4672 fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
4674 ("bfp" mode attribute): Removed. Every occurence replaced
4676 * config/s390/s390.c (struct "z10_cost"): Updated entries.
4677 * config/s390/2084.md (insn_reservation "x_itof"): Updated
4680 2008-08-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4683 * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4686 2008-08-14 Dorit Nuzman <dorit@il.ibm.com>
4688 * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4689 additional argument. Support reduction when duplication is needed due
4690 to data-types of different sizes in the loop.
4691 (get_initial_def_for_induction): Fix printout.
4692 (vect_get_vec_def_for_stmt_copy): Support case where the
4693 vec_stmt_for_operand is a phi node.
4694 (vectorizable_reduction): Support reduction when duplication is needed
4695 due to data-types of different sizes in the loop.
4696 (vectorizable_call): Remove restriction to not vectorize in case we
4697 have data-types of different sizes in the loop.
4698 (vectorizable_conversion): Likewise.
4699 (vectorizable_operation): Likewise.
4700 (vectorizable_type_demotion): Likewise.
4701 (vectorizable_type_promotion): Likewise.
4702 (vectorizable_induction): Add restriction to not vectorize in case
4703 we have data-types of different sizes in the loop.
4705 2008-08-14 Christophe Saout <christophe@saout.de>
4706 Uros Bizjak <ubizjak@gmail.com>
4709 * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4710 (*vec_concatv2di_rex64_sse4_1): Ditto.
4711 (*vec_concatv2di_rex64_sse): Ditto.
4713 2008-08-14 Jakub Jelinek <jakub@redhat.com>
4716 * fold-const.c (fold_widened_comparison): Do not allow
4717 sign changes that change the result even if shorter type
4718 is wider than arg1_unw's type.
4720 2008-08-13 Kazu Hirata <kazu@codesourcery.com>
4722 * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4723 Skip if the multilib testing specifies -march that does not
4724 agree with the one specified in the testcase.
4726 2008-08-13 Joseph Myers <joseph@codesourcery.com>
4728 * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4729 zero extend SImode values being converted to TFmode before passing
4732 2008-08-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4734 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4735 __PPU__ when targeting the Cell/B.E. PPU processor.
4737 2008-08-13 Eric Botcazou <ebotcazou@adacore.com>
4739 * gimple.h (gimple_call_set_chain): Accept SSA variables.
4740 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4741 Rematerialize the static chain, if any.
4742 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4745 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
4747 * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4748 (new_loc_descr): Likewise.
4749 (add_loc_descr): Likewise.
4750 (size_of_loc_descr): Likewise.
4751 (size_of_locs): Likewise.
4752 (output_loc_operands): Likewise.
4753 (output_loc_sequence): Likewise.
4754 (new_reg_loc_descr): New.
4755 (build_cfa_loc): Use it.
4756 (build_cfa_aligned_loc): Likewise.
4757 (one_reg_loc_descriptor): Likewise.
4758 (based_loc_descr): Likewise.
4760 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4763 * doc/invoke.texi (Wmain): Update.
4764 * c-decl.c (start_decl): warn_main is only 0 or 1.
4765 (start_function): Likewise. Fix formatting.
4766 (finish_function): Delete redundant warning.
4767 * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4768 * c-opts (c_common_handle_option): -Wall only has effect if
4769 warn_main is uninitialized. OPT_Wmain is automatically
4770 handled. -pedantic also enables Wmain.
4771 (c_common_post_options): Handle all logic for Wmain here.
4772 * c-common.c (warn_main): Delete.
4773 (check_main_parameter_types): Make pedwarns conditional on
4775 * c-common.h (warn_main): Delete.
4777 2008-08-13 H.J. Lu <hongjiu.lu@intel.com>
4780 * expr.c (emit_group_store): Allocate stack temp with the
4781 largest alignment when copying from register to stack.
4783 2008-08-13 Richard Guenther <rguenther@suse.de>
4785 * tree.h (maybe_fold_offset_to_address): Declare.
4786 * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4787 (ccp_fold): Handle pointer conversions the same as fold_stmt.
4788 Likewise for POINTER_PLUS_EXPR.
4789 (maybe_fold_offset_to_reference): Enable disabled code.
4790 (maybe_fold_offset_to_address): New function.
4791 (fold_stmt_r): Use it.
4792 (fold_gimple_assign): Likewise.
4793 * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4794 (gimplify_expr): Likewise.
4796 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4798 * toplev.h (pedwarn_at): Fix declaration.
4800 2008-08-13 Joseph Myers <joseph@codesourcery.com>
4802 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4803 LINK_SPEC): Use %R in -Y P argument.
4805 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4808 * diagnostic.c (pedwarn_at): New.
4809 * toplev.h (pedwarn_at): Declare.
4810 * c-tree.h (build_enumerator): Update declaration.
4811 * c-decl.c (finish_enum): Update comment.
4812 (build_enumerator): Take a location parameter. Give a pedwarn but do
4813 not perform any conversion.
4814 * c-parser.c (c_parser_enum_specifier): Set correct location for
4817 2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4820 * c-common.c (conversion_warning): Use a switch. Ignore boolean
4821 expressions except for conversions to signed:1 bitfields. Handle
4822 COND_EXPR with constant operands.
4824 2008-08-13 Richard Guenther <rguenther@suse.de>
4826 PR tree-optimization/15255
4827 * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4828 (struct oecount_s): New struct and VEC types.
4830 (oecount_hash): New function.
4831 (oecount_eq): Likewise.
4832 (oecount_cmp): Likewise.
4833 (zero_one_operation): New function.
4834 (build_and_add_sum): Likewise.
4835 (undistribute_ops_list): Perform un-distribution of multiplication
4836 and division on the chain of summands.
4837 (should_break_up_subtract): Also break up subtracts for factors.
4838 (reassociate_bb): Delete dead visited statements.
4839 Call undistribute_ops_list. Re-sort and optimize if it did something.
4840 * passes.c (init_optimization_passes): Move DSE before
4842 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4845 2008-08-12 Janis Johnson <janis187@us.ibm.com>
4847 * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4849 * doc/invoke.texi: Revert unintended checkin.
4851 2008-08-12 Nathan Froyd <froydnj@codesourcery.com>
4854 * gcc.c (include_spec_function): Tweak call to find_a_file.
4856 2008-08-12 Jakub Jelinek <jakub@redhat.com>
4859 * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4860 and TRUTH_ORIF_EXPR.
4861 * dojump.c (do_jump): Likewise.
4863 PR tree-optimization/37084
4864 * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4865 if id->regimplify, don't assume stmt is a cast assignment.
4867 2008-08-12 Anatoly Sokolov <aesok@post.ru>
4869 * final.c (final_scan_insn): Use app_enable/app_disable functions.
4871 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4874 * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4877 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4879 * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4880 (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4882 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4883 * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4884 * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4885 * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4886 * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4888 * doc/tm.texi (Storage Layout): Remove documentation for
4889 TARGET_FLOAT_FORMAT.
4891 * simplify-rtx.c (simplify_binary_operation_1): Replace
4892 TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4894 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4896 * real.h (struct real_format): New member has_sign_dependent_rounding.
4897 * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4898 spu_single_format, ieee_double_format, mips_double_format,
4899 motorola_double_format, ieee_extended_motorola_format,
4900 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4901 ieee_extended_intel_96_round_53_format, ibm_extended_format,
4902 mips_extended_format, ieee_quad_format, mips_quad_format,
4903 vax_f_format, vax_d_format, vax_g_format): Initialize it.
4904 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4906 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4907 MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4908 * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4909 MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4910 (ROUND_TOWARDS_ZERO): Likewise.
4912 * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4913 (FLOAT_MODE_FORMAT): New macro.
4914 (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4915 (MODE_COMPOSITE_P): ... this new macro.
4916 (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4917 MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4918 * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4920 * flags.h: Include "real.h".
4922 * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4923 REAL_MODE_FORMAT_COMPOSITE_P.
4924 * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4926 * doc/tm.texi (Storage Layout): Remove documentation of
4927 MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4928 MODE_HAS_SIGN_DEPENDENT_ROUNDING. Update documentation of
4929 ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4930 they only apply to libgcc2.a.
4932 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4934 * config/spu/float_disf.c: New file.
4935 * config/spu/float_unsdisf.c: New file.
4936 * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4937 (LIB2FUNCS_EXCLUDE): Define.
4939 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4940 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4942 * real.h (struct real_format): New member round_towards_zero.
4943 * real.c (round_for_format): Respect fmt->round_towards_zero.
4944 (ieee_single_format, mips_single_format, motorola_single_format,
4945 spu_single_format, ieee_double_format, mips_double_format,
4946 motorola_double_format, ieee_extended_motorola_format,
4947 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4948 ieee_extended_intel_96_round_53_format, ibm_extended_format,
4949 mips_extended_format, ieee_quad_format, mips_quad_format,
4950 vax_f_format, vax_d_format, vax_g_format): Initialize it.
4951 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4953 * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4954 real_format to choose rounding mode when calling MPFR functions.
4955 (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4956 (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4958 * real.h (real_to_decimal_for_mode): Add prototype.
4959 * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4960 Respect target rounding mode when generating decimal representation.
4961 (real_to_decimal): New stub for backwards compatibility.
4962 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4963 real_to_decimal_for_mode instead of real_to_decimal.
4965 * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4967 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4968 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
4970 * real.c (spu_single_format): New variable.
4971 * real.h (spu_single_format): Declare.
4973 * config/spu/spu.c (spu_override_options): Install SFmode format.
4974 (spu_split_immediate): Use integer mode to operate on pieces of
4975 floating-point values in all cases.
4977 * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
4978 ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
4979 ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
4981 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4983 * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
4985 2008-08-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4987 * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
4989 2008-08-12 Jakub Jelinek <jakub@redhat.com>
4992 * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
4993 on the VAR_DECL instead of TYPE_READONLY on its type.
4995 2008-08-12 Ira Rosen <irar@il.ibm.com>
4997 * tree-vectorizer.c: Depend on langhooks.h.
4998 (supportable_widening_operation): Add two arguments. Support double
5000 (supportable_narrowing_operation): Likewise.
5001 * tree-vectorizer.h (supportable_widening_operation): Add two
5003 (supportable_narrowing_operation): Likewise.
5004 * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
5005 supportable_widening_operation with correct arguments.
5006 * tree-vect-transform.c (vectorizable_conversion): Likewise.
5007 (vectorizable_type_demotion): Support double type conversions.
5008 (vectorizable_type_promotion): Likewise.
5009 * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
5011 2008-08-11 Michael Matz <matz@suse.de>
5013 * i386/i386.c (override_options): Move initialisation from
5014 flag_schedule_insns_after_reload to here from ...
5015 (optimization_options): ... here.
5017 2008-08-11 Jakub Jelinek <jakub@redhat.com>
5019 PR rtl-optimization/36998
5020 * dwarf2out.c (compute_barrier_args_size_1,
5021 compute_barrier_args_size): Temporarily remove assertions.
5023 2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5026 * tree-ssa.c (struct walk_data): Add new flag
5027 warn_possibly_uninitialized.
5028 (warn_uninitialized_var): Use it.
5029 (warn_uninitialized_vars): New.
5030 (execute_early_warn_uninitialized): Call it.
5031 (execute_late_warn_uninitialized): Likewise.
5033 2008-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
5036 * reload1.c (gen_reload): Guard calls to get_secondary_mem
5039 2008-08-09 Jan Hubicka <jh@suse.cz>
5042 * optabs.c (maybe_emit_unop_insn): Remove produced code if
5044 (expand_fix): Be prepared for expansion to fail.
5045 (expand_sfix_optab): Remove instructions if expansion failed.
5047 2008-08-09 Anatoly Sokolov <aesok@post.ru>
5049 * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
5051 * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
5052 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5054 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5056 * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
5057 mips/t-libgcc-mips16 to tmake_file.
5058 * config/mips/mips-protos.h (mips_call_type): New enum.
5059 (mips_pic_base_register, mips_got_load): Declare.
5060 (mips_restore_gp): Take an rtx argument.
5061 (mips_use_pic_fn_addr_reg_p): Declare.
5062 (mips_expand_call): Replace the sibcall_p argument with
5063 a mips_call_type argument. Add a lazy_p parameter.
5064 (mips_split_call): Declare.
5065 * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
5066 (MIPS16_PIC_TEMP): Likewise.
5067 (reg_class): Delete M16_NA_REGS.
5068 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5069 (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
5070 (mips_split_hi_p): Declare.
5071 * config/mips/mips.c (mips_split_hi_p): New array.
5072 (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
5073 (mips_got_symbol_type_p): New function.
5074 (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
5075 (mips16_stub_function_p): New function.
5076 (mips16_local_function_p): Likewise.
5077 (mips_use_pic_fn_addr_reg_p): Likewise.
5078 (mips_cannot_force_const_mem): Return false for HIGHs.
5079 Extend CONST_INT and symbolic handling to MIPS16, using
5080 mips_symbol_insns to check that the base symbol type is a
5081 legitimate constant. Reject GOT-based constants if
5082 TARGET_MIPS16_PCREL_LOADS.
5083 (mips_const_insns): Check targetm.cannot_force_const_mem when
5084 decomposing a symbolic base and a large offset.
5085 (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
5086 When calling a function that needs $25 from MIPS16 code,
5087 move the target address into $25 separately and add a USE
5089 (mips16_gp_pseudo_reg): Insert the initializer immediately
5090 before the first real insn.
5091 (mips_pic_base_register, mips_got_load): New functions.
5092 (mips_split_symbol): Generalize the name of the LO_SUM_OUT
5093 parameter to LOW_OUT. Say that it can be any valid SET_SRC
5094 when splitting a load-address operation. Split SYMBOL_GOT_DISP
5095 constants and highs of SYMBOL_GOT_PAGE_OFST constants.
5096 (mips_call_tls_get_addr): Update the call to mips_expand_call,
5097 also passing NULL_RTX rather than const0_rtx as the aux argument.
5098 (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
5099 instead of TARGET_EXPLICIT_RELOCS.
5100 (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
5101 (mips_load_call_address): Replace the sibcall_p argument with
5102 a mips_call_type argument. Use mips_got_load.
5103 (mips16_local_alias): New structure.
5104 (mips16_local_aliases): New variable.
5105 (mips16_local_aliases_hash): New function.
5106 (mips16_local_aliases_eq): Likewise.
5107 (mips16_local_alias): Likewise.
5108 (mips16_stub_function): Likewise.
5109 (mips16_build_function_stub): Create a local alias for the target
5110 function. Handle TARGET_ABICALLS. For PIC abicalls, emit a
5111 .cpload directive and an R_MIPS_NONE relocation for the target
5112 function, then load the alias rather than the function itself.
5113 Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
5114 (mips16_copy_fpr_return_value): Use mips16_stub_function and
5115 mips_expand_call. Set SYMBOL_REF_BIND_NOW on the symbol.
5116 (mips16_build_call_stub): Replace the FN parameter with an
5117 FN_PTR parameter. Force the address into a register if it
5118 isn't a call_insn_operand; don't rely on the caller to do this.
5119 If a call to a locally-defined and locally-binding MIPS16
5120 function must be made indirectly, redirect the call to the
5121 function's local alias. Use mips16_stub_function_p,
5122 mips16_stub_function, mips_expand_call and use_reg.
5123 Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
5124 Use explicit %hi and %lo accesses where possible.
5125 Use MIPS_CALL to generate the correct code form of a
5126 jal instruction. Add clobbers of $18 instead of uses.
5127 Update the call to mips_emit_call_insn.
5128 (mips_expand_call): Replace the SIBCALL_P argument with a
5129 mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
5130 Take a LAZY_P parameter. Call mips16_build_call_stub first,
5131 allowing it to modify the call address. Update the calls to
5132 mips_load_call_address and mips_emit_call_insn.
5133 (mips_split_call): New function.
5134 (mips_init_relocs): Clear mips_split_hi_p. Only use %gp_rel if
5135 !TARGET_MIPS16. Split SYMBOL_GOT_DISP, and the high parts of
5136 SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
5137 (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
5138 (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
5140 (mips_cprestore_slot): New function.
5141 (mips_restore_gp): Take a TEMP parameter. Handle TARGET_MIPS16
5142 and use mips_cprestore_slot.
5143 (mips_output_function_prologue): Handle TARGET_MIPS16 for
5145 (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
5146 then use a copygp_mips16 instruction to set up $28.
5147 (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
5148 (mips16_lay_out_constants): Call split_all_insns_noflow.
5149 (mips_reorg_process_insns): Explicitly set all_noreorder_p to
5150 false if TARGET_MIPS16.
5151 (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
5152 (mips_output_mi_thunk): Use mips_got_symbol_type_p. Use the
5153 mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
5154 (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
5155 MIPS16 code. Allow MIPS16 o32 PIC.
5156 (mips_override_options): Allow MIPS16 o32 PIC.
5157 * config/mips/mips.md: Lower CONST_GP_P moves into register moves
5158 after reload if TARGET_USE_GOT.
5159 (UNSPEC_COPYGP): New constant.
5160 (length): Use a default length of 8 for MIPS16 GOT loads.
5161 (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
5162 (*got_page<mode>): Check mips_split_hi_p.
5163 (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
5164 (unspec_got<mode>, unspec_call<mode>): New expanders.
5165 (load_got<mode>, load_call<mode>): Remove the length attributes.
5166 Use a got attribute instead of a type attribute.
5167 (copygp_mips16): New insn.
5168 (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
5169 (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
5170 (sibcall, sibcall_value, call, call_value): Update the calls
5171 to mips_expand_call.
5172 (call_internal, call_value_internal): Use mips_split_call.
5173 (call_value_multiple_internal): Likewise.
5174 (call_split): Move after call_internal (the insn it is split from).
5175 (call_internal_direct, call_value_internal_direct): Turn into
5176 define_insn_and_splits. Split if TARGET_SPLIT_CALLS.
5177 (call_direct_split, call_value_direct_split): New patterns.
5178 * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
5179 and use M16_REGS instead of M16_NA_REGS.
5180 * config/mips/predicates.md (const_call_insn_operand): Replace
5181 the TARGET_ABSOLUTE_ABICALLS-based check with a more general
5182 mips_use_pic_fn_addr_reg_p check.
5183 (move_operand): Reject HIGHs if mips_split_hi_p.
5184 * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
5185 (__mips16_floatunsisf): Inline __mips16_floatsisf.
5186 (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
5187 * config/mips/libgcc-mips16.ver: New file.
5188 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
5189 $(srcdir)/config/mips/libgcc-mips16.ver.
5191 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5193 * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
5194 (mips_unspec_address, mips_unspec_offset_high): Likewise.
5195 (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
5196 (mips16_cfun_returns_in_fpr_p): Likewise.
5198 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5200 * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
5201 * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
5202 rather than 4 to PC.
5204 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5206 * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
5207 (FUNCTION_PROFILER): Save the static chain pointer into $2
5208 beforehand and restore it aftewards.
5209 (TRAMPOLINE_TEMPLATE): Adjust accordingly. Load the target
5210 address directly into $25 and call the function through $25;
5211 do not clobber $3. Pad the DImode version to cover the space
5212 left by the deleted $25 <- $3 move.
5213 (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
5214 the removal of the $25 <- $3 move.
5215 (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
5216 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5218 2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5219 Daniel Jacobowitz <dan@codesourcery.com>
5221 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
5222 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
5223 (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
5224 * config/mips/mips.c (mips_start_function_definition): New function.
5225 (mips_end_function_definition): Likewise.
5226 (mips_output_function_prologue): Use mips_start_function_definition.
5227 (mips_output_function_epilogue): Use mips_end_function_definition.
5228 (build_mips16_function_stub): Use mips_start_function_definition
5229 and mips_end_function_definition.
5230 (build_mips16_call_stub): Likewise.
5232 2008-08-09 Richard Guenther <rguenther@suse.de>
5234 * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
5235 * gimple.h (gimple_call_fn): Adjust comment.
5236 (gimple_call_set_fndecl): New function.
5237 (gimple_call_fndecl): Adjust for GIMPLE_CALL no
5238 longer having bare FUNCTION_DECL operand.
5239 (gimple_call_return_type): Likewise.
5240 * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
5242 * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
5243 (gimple_mod_pow2): Likewise.
5244 (gimple_mod_subtract): Likewise.
5245 (gimple_ic): Likewise.
5246 (gimple_stringop_fixed_value): Likewise.
5247 (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
5248 longer having bare FUNCTION_DECL operand.
5249 * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
5250 * omp-low.c (optimize_omp_library_calls): Likewise.
5251 * cgraphunit.c (update_call_expr): Likewise.
5252 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5253 (execute_convert_to_rsqrt): Likewise.
5254 * cfgexpand.c (gimple_to_tree): Simplify.
5255 (release_stmt_tree): Fix for GIMPLE_CALL no longer having
5256 bare FUNCTION_DECL operand.
5257 * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
5258 (convert_gimple_call): Use gimple_call_fndecl.
5259 * c-common.c (c_warn_unused_result): Likewise.
5261 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5264 * c-typeck.c (digest_init): Call verify_sequence_points from here.
5265 (c_finish_return): Likewise.
5266 (c_start_case): Likewise.
5267 * c-common.c (warn_for_collisions_1): Use explicit location in
5269 * c-parser.c (c_parser_condition): New. Call
5270 verify_sequence_points.
5271 (c_parser_paren_condition): Call c_parser_condition.
5272 (c_parser_for_statement): Call c_parser_condition.
5274 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5277 * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
5278 * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
5279 Moved from diagnostic.h
5280 (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
5282 (emit_diagnostic): New.
5283 (warning0, pedwarn0): Delete.
5284 (warning, warning_at, pedwarn, permerror): Return bool.
5285 * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
5286 Moved to diagnostic.c.
5287 (struct diagnostic_context): Use correct type for
5288 classify_diagnostic.
5289 (diagnostic_report_diagnostic): Update declaration.
5290 (emit_diagnostic): Declare.
5291 * errors.c (warning): Return bool.
5292 * errors.h (warning): Update declaration.
5293 * toplev.h (warning0, pedwarn0): Delete.
5294 (warning, warning_at, pedwarn, permerror): Return bool.
5295 * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
5296 * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
5297 inform. Update all calls.
5298 (diagnose_mismatched_decls): Check return value of warning/pedwarn
5299 before giving informative note.
5300 (implicit_decl_warning): Likewise.
5301 * c-typeck.c (build_function_call): Likewise.
5302 * tree-sssa.c (warn_uninit): Likewise.
5303 * builtins.c (gimplify_va_arg_expr): Likewise.
5305 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5308 * doc/invoke.texi (-Wextra): Move warning from here...
5309 (-Wuninitialized): ... to here.
5311 2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5314 * flags.h (set_Wunused): Delete
5315 * toplev.c (process_options): Handle Wunused flags here.
5316 * opts.c (maybe_warn_unused_parameter): Delete.
5317 (common_handle_option): Replace set_Wunused by warn_unused.
5318 (set_Wextra): Do not handle Wunused-parameter here.
5319 (set_Wunused): Delete.
5320 * c-opts.c (c_common_handle_option): Replace set_Wunused by
5322 * common.opt (Wunused): Add Var and Init.
5323 (Wunused-function): Likewise.
5324 (Wunused-label): Likewise.
5325 (Wunused-parameter): Likewise.
5326 (Wunused-value): Likewise.
5327 (Wunused-variable): Likewise.
5329 2008-08-08 Peter Bergner <bergner@vnet.ibm.com>
5331 * doc/invoke.texi: Add cpu_type power7.
5332 * config.in (HAVE_AS_VSX): New.
5333 * config.gcc: Add cpu_type power7.
5334 * configure.ac (HAVE_AS_VSX): Check for assembler support of the
5336 * configure: Regenerate.
5337 * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
5339 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
5340 (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
5341 (EXTRA_SPECS): Add asm_cpu_power7 spec string.
5343 2008-08-08 Dorit Nuzman <dorit@il.ibm.com>
5345 * tree-vect-transform.c (vectorizable_conversion): Pass the integral
5346 type to vectorize.builtin_conversion.
5347 (vectorizable_conversion): Likewise.
5348 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
5349 integral type as input.
5350 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
5352 (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
5353 and ALTIVEC_BUILTIN_VCTSXS.
5354 (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
5357 2008-08-08 Richard Guenther <rguenther@suse.de>
5359 * tree-ssa-ccp.c (likely_value): Calls are not all varying.
5360 (surely_varying_stmt_p): Calls are varying only if they are
5361 non-builtin and not indirect or have no result.
5362 (ccp_fold): Re-instantiate code before the tuples merge.
5364 2008-08-08 Richard Guenther <rguenther@suse.de>
5366 PR tree-optimization/37056
5367 * gimple.h (gimple_assign_rhs_class): New helper function.
5368 * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
5369 unary operations properly.
5371 2008-08-07 Jan Hubicka <jh@suse.cz>
5373 * i386.h (ix86_size_cost): Declare.
5374 (ix86_cur_cost): New function macro.
5375 * i386.md (peepholes expanding size and splitters): Predicate by
5376 optimize_insn_for_speed_p.
5377 (peepholes reduce size and splitters): Predicate by
5378 optimize_insn_for_size_p.
5379 * i386.c (ix86_size_cost): Rename from ...
5380 (size_cost): This one.
5381 (override_options): Update.
5382 (decide_alg): Likewise.
5383 (ix86_expand_clear): Use RTL profile.
5384 (ix86_pad_returns): Use RTL profile.
5386 2008-08-07 Jan Hubicka <jh@suse.cz>
5388 * recog.c (split_all_insns): Set RTL profile
5389 (peephole2_optimize): Likewise.
5390 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5391 * combine.c (combine_instructions): Likewise.
5393 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5395 * c-common.c (c_common_reswords): Also warn about keyword "bool".
5397 2008-08-07 Bob Wilson <bob.wilson@acm.org>
5399 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5400 value in a6 after the set_frame_ptr insn.
5402 2008-08-07 Richard Henderson <rth@redhat.com>
5405 * gcc.c (cpp_options): Pass along -g*.
5407 2008-08-07 Joseph Myers <joseph@codesourcery.com>
5409 * config/arm/arm.c (output_move_neon): Update comment describing
5410 big-endian vector layout.
5411 (arm_assemble_integer): Do not handle big-endian NEON vectors
5413 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5414 neon_vget_lane<mode>_sext_internal,
5415 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5416 element indices for big-endian.
5418 2008-08-07 Richard Henderson <rth@redhat.com>
5420 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5421 * configure, config.in: Rebuild.
5422 * debug.h (dwarf2out_do_cfi_asm): Declare.
5423 * c-cppbuiltin.c (c_cpp_builtins): Use it.
5424 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5425 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5426 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5428 2008-08-07 Joseph Myers <joseph@codesourcery.com>
5430 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5431 movv2si_internal): Combine into mov<mode>_internal.
5432 (movv2si_internal_2): Remove.
5434 2008-08-07 Jan Hubicka <jh@suse.cz>
5437 * i386.md (single stringop patterns): Enable unconditionally.
5439 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
5442 * config/i386/emmintrin.h (_mm_move_epi64): Use
5443 __builtin_ia32_movq128.
5445 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5446 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5448 * config/i386/sse.md (sse2_movq128): New.
5450 * doc/extend.texi: Document __builtin_ia32_movq128.
5452 2008-08-07 Richard Guenther <rguenther@suse.de>
5455 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5456 pointers can access anything.
5458 2008-08-06 Jan Hubicka <jh@suse.cz>
5460 * optabs.c (emit_unop_insn): Break out to ...
5461 (maybe_emit_unop_insn): ... this one.
5462 (expand_sfix_optab): Use maybe variant.
5463 * optabs.h (maybe_emit_unop_insn): Declare.
5465 * i386.md (mov0 patterns): Enable by default.
5466 (FP conversion expanders): Disable expansion of code expanding
5467 sequences when instruction should be optimized for size.
5468 (single strinop patterns): Enable when optimizing for size.
5469 (string expanders): Disable expanding of code expanding sequences
5470 when optimizning instruction for size.
5471 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5473 (ix86_fp_comparison_sahf_cost): Likewise.
5474 (ix86_expand_branch): Likewise.
5475 (ix86_expand_ashl_const): Likewise.
5476 (ix86_split_ashl): Likewise.
5477 (ix86_expand_strlen): Likewise.
5478 (ix86_emit_fp_unordered_jump): Likewie.
5480 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5482 * c-common.c: Fix typo.
5483 (c_common_reswords): Activate more C++ keyword warnings.
5485 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5487 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5490 * diagnostic.c (permerror_at): New.
5491 * toplev.h (permerror_at): Declare.
5493 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
5494 Ira Rosen <irar@il.ibm.com>
5496 * tree-vect-transform.c (vect_model_simple_cost): Return
5497 immediately if stmt is pure SLP.
5498 (vect_model_store_cost): Ditto.
5499 (vect_model_load_cost): Ditto.
5500 (vectorizable_store): Remove PURE_SLP check before call
5501 to vect_model_store_cost.
5502 (vect_model_store_cost): When checking whether stmt describe
5503 strided access, add a check that it is not slp_node.
5505 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5508 * c-common.c (warn_for_sign_compare): New. Handle separately the
5509 case that 'constant' is zero.
5510 * c-typeck.c (build_binary_op): Move code to c-common.c
5512 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5514 * config/alpha/alpha.c (alpha_preferred_reload_class,
5515 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5516 alpha_output_mi_thunk_osf): Avoid C++ keywords.
5517 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5518 * config/arm/arm.md: Likewise.
5519 * config/avr/avr-protos.h (preferred_reload_class,
5520 test_hard_reg_class, avr_simplify_comparison_p,
5521 out_shift_with_cnt, class_max_nregs): Likewise.
5522 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5523 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5524 preferred_reload_class, test_hard_reg_class): Likewise.
5525 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5526 bfin_memory_move_cost, bfin_secondary_reload,
5527 bfin_output_mi_thunk): Likewise.
5528 * config/crx/crx.c (crx_secondary_reload_class,
5529 crx_memory_move_cost): Likewise.
5530 * config/frv/frv-protos.h (frv_secondary_reload_class,
5531 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5532 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5533 frv_secondary_reload_class, frv_class_likely_spilled_p,
5534 frv_class_max_nregs): Likewise.
5535 * config/h8300/h8300.c (h8300_classify_operand,
5536 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5538 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5539 * config/ia64/ia64.c (ia64_preferred_reload_class,
5540 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5541 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5542 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5544 * config/m68hc11/m68hc11.c (preferred_reload_class,
5545 m68hc11_memory_move_cost): Likewise.
5546 * config/mcore/mcore.c (mcore_secondary_reload_class,
5547 mcore_reload_class): Likewise.
5548 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5549 mips_class_max_nregs, mips_cannot_change_mode_class,
5550 mips_preferred_reload_class, mips_secondary_reload_class,
5551 mips_output_mi_thunk): Likewise.
5552 * config/mmix/mmix.c (mmix_preferred_reload_class,
5553 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5555 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5557 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5558 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5559 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5560 * config/rs6000/rs6000.c (paired_expand_vector_init,
5561 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5562 compare_section_name, rs6000_memory_move_cost): Likewise.
5563 * config/s390/s390.c (s390_emit_compare_and_swap,
5564 s390_preferred_reload_class, s390_secondary_reload,
5565 legitimize_pic_address, legitimize_tls_address,
5566 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5567 s390_class_max_nregs): Likewise.
5568 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5569 * config/s390/s390.md: Likewise.
5570 * config/score/score-protos.h (score_secondary_reload_class,
5571 score_preferred_reload_class): Likewise.
5572 * config/score/score.c (score_preferred_reload_class,
5573 score_secondary_reload_class): Likewise.
5574 * config/score/score3.c (score3_output_mi_thunk,
5575 score3_preferred_reload_class, score3_secondary_reload_class,
5576 score3_hard_regno_mode_ok): Likewise.
5577 * config/score/score3.h (score3_preferred_reload_class,
5578 score3_secondary_reload_class): Likewise.
5579 * config/score/score7.c (score7_output_mi_thunk,
5580 score7_preferred_reload_class, score7_secondary_reload_class,
5581 score7_hard_regno_mode_ok): Likewise.
5582 * config/score/score7.h (score7_preferred_reload_class,
5583 score7_secondary_reload_class): Likewise.
5584 * config/sh/sh.c (prepare_move_operands, output_far_jump,
5585 output_branchy_insn, add_constant, gen_block_redirect,
5586 sh_insn_length_adjustment, sh_cannot_change_mode_class,
5587 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
5589 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5590 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5591 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5592 xstormy16_preferred_reload_class): Likewise.
5593 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5594 xtensa_expand_atomic, override_options,
5595 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5597 * reorg.c (try_merge_delay_insns): Likewise.
5598 * tree.c (merge_dllimport_decl_attributes): Likewise.
5600 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5602 2008-08-06 Michael Matz <matz@suse.de>
5604 * Makefile.in (write_entries_to_file): Quote words.
5605 * gengtype.c: (read_input_line): Skip over leading white-space.
5607 2008-08-06 Marc Gauthier <marc@tensilica.com>
5609 * config.gcc: Match more processor names for Xtensa.
5610 * configure.ac: Likewise.
5611 * doc/install.texi (Specific): Likewise.
5612 * configure: Regenerate.
5614 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5616 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5617 * calls.c (avoid_likely_spilled_reg): Likewise.
5618 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5619 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5620 * config/i386/i386.c (ix86_expand_special_args_builtin,
5621 ix86_secondary_reload): Likewise.
5622 * except.c (struct eh_region, gen_eh_region_catch,
5623 remove_unreachable_regions, duplicate_eh_regions,
5624 assign_filter_values, build_post_landing_pads,
5625 sjlj_find_directly_reachable_regions, remove_eh_handler,
5626 reachable_next_level, foreach_reachable_handler,
5627 can_throw_internal_1, can_throw_external_1,
5628 collect_one_action_chain): Likewise.
5629 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5630 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5631 * function.c (update_temp_slot_address, instantiate_new_reg,
5632 instantiate_virtual_regs_in_rtx,
5633 instantiate_virtual_regs_in_insn): Likewise.
5634 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5635 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5636 gimplify_cleanup_point_expr): Likewise.
5637 * ipa-cp.c (ipcp_lattice_changed): Likewise.
5638 * passes.c (next_pass_1): Likewise.
5639 * print-tree.c (print_node_brief, print_node): Likewise.
5640 * profile.c (branch_prob): Likewise.
5641 * tree-dump.c (dump_register): Likewise.
5642 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5644 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5645 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5646 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5647 copy_arguments_for_versioning, copy_static_chain): Likewise.
5648 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5649 add_new_name_mapping, register_new_name_mapping): Likewise.
5650 * tree-mudflap.c (mf_xform_derefs): Likewise.
5651 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5652 get_init_expr, combine_chains): Likewise.
5653 * tree-pretty-print.c (dump_generic_node): Likewise.
5654 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5655 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5656 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5657 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5659 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
5662 * calls.c (expand_call): Use the biggest preferred stack
5665 2008-08-06 Michael Matz <matz@suse.de>
5668 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5669 for reused reload, instead of overwriting them.
5671 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
5674 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5675 for incoming stack boundary.
5677 * function.c (assign_parm_find_entry_rtl): Update
5678 parm_stack_boundary.
5680 * function.h (rtl_data): Add parm_stack_boundary.
5682 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5683 parm_stack_boundary for incoming stack boundary.
5685 2008-08-06 Joseph Myers <joseph@codesourcery.com>
5687 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5688 for unrepresentable subregs or treat them as equal to other regs
5689 or subregs with the same register number.
5691 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
5694 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5697 2008-08-06 Jan Hubicka <jh@suse.cz>
5699 * predict.c (maybe_hot_frequency_p): When profile is absent, all
5700 frequencies might be hot.
5702 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
5704 * reload.c (find_reloads): Force constants into literal pool
5705 also if they are wrapped in a SUBREG.
5707 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5710 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5711 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5712 Don't allow predicated instructions for data speculation.
5713 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5716 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5718 * haifa-sched.c (extend_global): Split to extend_global_data and
5719 extend_region_data. Update all uses.
5720 (extend_all): Rename to extend_block_data.
5722 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5724 * sched-rgn.c (new_ready): Check if instruction can be
5725 speculatively scheduled before attempting speculation.
5726 (debug_rgn_dependencies): Remove wrongful assert.
5728 2008-08-05 Bob Wilson <bob.wilson@acm.org>
5730 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5732 2008-08-05 Bob Wilson <bob.wilson@acm.org>
5734 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5735 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5736 va_size, and type_size.
5738 2008-08-04 Jason Merrill <jason@redhat.com>
5741 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5742 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5744 2008-08-05 Richard Henderson <rth@redhat.com>
5746 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5747 * configure: Rebuild.
5749 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
5752 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5753 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5756 2008-08-05 Richard Henderson <rth@redhat.com>
5758 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5759 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5760 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5761 * common.opt (fdwarf2-cfi-asm): New.
5762 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5763 * config.in, configure: Rebuild.
5764 * dwarf2asm.c (dw2_asm_output_data_raw): New.
5765 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5766 (dw2_force_const_mem): Externalize.
5767 * dwarf2asm.h: Update.
5768 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5769 generate a real label.
5770 (output_cfi_directive): New.
5771 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5772 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5773 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5775 (dwarf2out_end_epilogue): Emit .cfi_endproc.
5776 (output_loc_operands_raw, output_loc_sequence_raw): New.
5777 (output_cfa_loc_raw): New.
5779 2008-08-05 Paul Brook <paul@codesourcery.com>
5781 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5782 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5783 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5784 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
5785 * config/arm/arm.h (TARGET_VFPD32): Define.
5786 (TARGET_VFP3): Use TARGET_VFPD32.
5787 (fputype): Add FPUTYPE_VFP3D16.
5788 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5789 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5790 * config/arm/arm-cores.def: Add cortex-r4f.
5791 * config/arm/arm-tune.md: Regenerate.
5793 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5795 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5796 Reword some comments throughout the file.
5798 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5799 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5800 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5801 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5803 (MFC_START_ENABLE): Remove PPU-only define.
5804 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5805 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5807 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5808 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5809 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5810 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5811 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5812 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5813 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5815 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5816 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5817 (mfc_sdcrt, mfc_sdcrtst): Likewise.
5818 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5820 (spu_read_machine_status): Fix typo.
5822 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5824 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5825 SUBREG of multi-word hard register.
5826 * config/spu/spu.c (valid_subreg): Likewise.
5827 (adjust_operand): Handle SUBREGs of multi-word hard registers.
5829 2008-08-04 Richard Guenther <rguenther@suse.de>
5831 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5832 the candidate with the stripped base if that base is different
5833 from the original base even for offset zero.
5835 2008-08-04 Richard Guenther <rguenther@suse.de>
5838 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5839 check for no_overflow.
5841 2008-08-04 Richard Guenther <rguenther@suse.de>
5843 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5845 2008-08-04 Paul Brook <paul@codesourcery.com>
5847 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5848 (arm_order_regs_for_local_alloc): New function.
5849 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5851 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5853 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
5856 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5857 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5858 (ix86_expand_epilogue): Likewise.
5860 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
5862 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5865 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
5867 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5868 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5869 (*movv2sf_internal_rex64): Ditto.
5871 2008-08-03 Jan Hubicka <jh@suse.cz>
5873 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5874 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5875 * expmed.c (expand_smod_pow2): Likewise.
5877 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
5880 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5881 alternative 0 of operand 1.
5882 (*vec_concatv2di_rex64_sse): Ditto.
5883 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5885 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5886 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5887 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5888 (*movv2sf_internal_rex64): Ditto.
5890 2008-08-02 Richard Guenther <rguenther@suse.de>
5893 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5894 (ssedoublesizemode): New mode attribute.
5895 (sse_shufps): Call gen_sse_shufps_v4sf.
5896 (sse_shufps_1): Macroize.
5897 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5898 (sse2_shufpd_1): Macroize.
5899 (vec_extract_odd, vec_extract_even): New expanders.
5900 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5901 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5902 * i386.c (ix86_expand_vector_init_one_nonzero): Call
5903 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5904 (ix86_expand_vector_set): Likewise.
5905 (ix86_expand_reduc_v4sf): Likewise.
5907 2008-08-01 Doug Kwan <dougkwan@google.com>
5909 * matrix-reorg.c: Re-enable all code.
5910 (struct malloc_call_data): Change CALL_STMT to gimple type.
5911 (collect_data_for_malloc_call): Tuplify.
5912 (struct access_site_info): Change STMT to gimple type.
5913 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5914 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5915 (struct free_info): Change STMT to gimple type.
5916 (struct matrix_access_phi_node): Change PHI to gimple type.
5917 (get_inner_of_cast_expr): Remove.
5918 (may_flatten_matrices_1): Tuplify.
5919 (may_flatten_matrices): Ditto.
5920 (mark_min_matrix_escape_level): Ditto.
5921 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5922 (ssa_accessed_in_call_rhs): New
5923 (ssa_accessed_in_assign_rhs): New
5924 (record_access_alloc_site_info): Tuplify.
5925 (add_allocation_site): Ditto.
5926 (analyze_matrix_allocation_site): Ditto.
5927 (analyze_transpose): Ditto.
5928 (get_index_from_offset): Ditto.
5929 (update_type_size): Ditto.
5930 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5931 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5932 (analyze_accesses_for_phi_node): Tuplify.
5933 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5934 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5935 (analyze_matrix_accesses): Tuplify.
5936 (check_var_data): New call-back type for check_var_notmodified_p.
5937 (check_var_notmodified_p): Tuplify and use call-back struct to
5938 return statement found.
5939 (can_calculate_expr_before_stmt): Factor out statement related code
5941 (can_calculate_stmt_before_stmt): New.
5942 (check_allocation_function): Tuplify.
5943 (find_sites_in_func): Ditto.
5944 (record_all_accesses_in_func): Ditto.
5945 (transform_access_sites): Ditto.
5946 (transform_allocation_sites): Ditto.
5947 (matrix_reorg): Re-enable.
5948 (gate_matrix_reorg): Re-enable.
5950 2008-08-01 Jakub Jelinek <jakub@redhat.com>
5952 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5953 for labels for which it hasn't been set yet. If it has been set,
5954 stop walking insns and continue with next worklist item.
5955 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5956 if the only BARRIER is at the very end of a function.
5958 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
5960 * cfgexpand.c (expand_stack_alignment): Assert that
5961 stack_realign_drap and drap_rtx must match.
5963 * function.c (instantiate_new_reg): If DRAP is used to realign
5964 stack, replace virtual_incoming_args_rtx with internal arg
5967 2008-08-01 Richard Guenther <rguenther@suse.de>
5969 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
5970 loop information only if we initialized it.
5971 (execute_pre): Call fini_pre with in_fre.
5972 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
5973 if we do not unroll because we hit max-completely-peeled-insns.
5974 Use our estimation for consistency, do allow shrinking.
5976 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
5978 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
5979 with MIN_STACK_BOUNDARY.
5980 (ix86_update_stack_boundary): Likewise.
5981 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
5984 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
5985 (MIN_STACK_BOUNDARY): This.
5987 2008-08-01 Richard Guenther <rguenther@suse.de>
5990 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
5992 2008-08-01 Richard Guenther <rguenther@suse.de>
5994 PR tree-optimization/36988
5995 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
5996 do not matter if that doesn't change volatile qualification.
5998 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
6000 * configure.ac: Do not generate libada-mk. Do not subst
6002 * libada-mk.in: Remove.
6003 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
6004 * configure: Regenerate.
6006 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
6008 * tree-pass.h: Added comment about not dumping passes with name
6009 starting with star in struct opt_pass.
6010 * passes.c (register_dump_files_1): Don't do dump for a pass with
6011 name starting with star.
6012 * doc/passes.texi (Pass manager): Mention pass names and special
6013 meaning of star prefix to avoid dump.
6015 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
6017 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
6019 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
6020 (ISA_MIPS64R2): New macro.
6021 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
6022 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
6023 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
6024 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
6025 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
6026 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
6027 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
6028 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
6029 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
6030 Move up to keep list alphabetically sorted.
6031 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
6032 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
6034 * doc/invoke.texi (MIPS Options): Add -mips64r2.
6035 (-march=@var{arch}): Add mips64r2.
6037 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6039 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
6041 2008-07-31 Steve Ellcey <sje@cup.hp.com>
6043 * expr.c (expand_assignment): Check for complete type.
6045 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6048 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
6050 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
6051 for stack alignment.
6053 * function.h (rtl_data): Add stack_realign_tried. Update comments.
6055 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
6057 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
6058 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
6060 2008-07-31 Jakub Jelinek <jakub@redhat.com>
6062 PR rtl-optimization/36419
6063 * dwarf2out.c (barrier_args_size): New variable.
6064 (compute_barrier_args_size, compute_barrier_args_size_1): New
6066 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
6067 if not called yet in the current function, use barrier_args_size
6068 array to find the new args_size value.
6069 (dwarf2out_frame_debug): Free and clear barrier_args_size.
6071 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6074 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
6077 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
6080 * dwarf2out.c (dwarf2out_args_size_adjust): New.
6081 (dwarf2out_stack_adjust): Use it.
6082 (dwarf2out_frame_debug_expr): Likewise.
6084 2008-07-31 Richard Guenther <rguenther@suse.de>
6086 PR tree-optimization/36978
6087 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
6088 the generated condition.
6090 2008-07-31 Richard Guenther <rguenther@suse.de>
6092 * passes.c (init_optimization_passes): Always call
6093 pass_early_warn_uninitialized.
6094 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
6095 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
6096 * doc/passes.texi (Warn for uninitialized variables): Adjust.
6098 2008-07-31 Jakub Jelinek <jakub@redhat.com>
6101 * builtins.c (maybe_emit_free_warning): New function.
6102 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
6103 maybe_emit_free_warning for BUILT_IN_FREE.
6106 * dwarf2out.c (get_context_die): New function.
6107 (force_decl_die, force_type_die): Use it.
6108 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
6109 returns NULL, force generation of DW_TAG_typedef and put that into
6112 PR preprocessor/36649
6113 * c-pch.c (c_common_read_pch): Save and restore
6114 line_table->trace_includes across PCH restore.
6116 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
6119 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
6121 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
6124 * final.c (call_from_call_insn): Handle COND_EXEC.
6126 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
6128 * builtins.c (std_gimplify_va_arg_expr): Replace
6129 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
6130 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6132 2008-07-30 Joey Ye <joey.ye@intel.com>
6133 H.J. Lu <hongjiu.lu@intel.com>
6135 * builtins.c (expand_builtin_setjmp_receiver): Replace
6136 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
6137 (expand_builtin_apply_args_1): Likewise.
6138 (expand_builtin_longjmp): Need DRAP for stack alignment.
6139 (expand_builtin_apply): Likewise.
6141 * caller-save.c (setup_save_areas): Call assign_stack_local_1
6142 instead of assign_stack_local to allow alignment reduction.
6144 * calls.c (emit_call_1): Need DRAP for stack alignment if
6146 (expand_call): Replace virtual_incoming_args_rtx with
6147 crtl->args.internal_arg_pointer.
6148 * stmt.c (expand_nl_goto_receiver): Likewise.
6150 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
6151 alignment and store to stack_alignment_estimated and
6152 max_used_stack_slot_alignment.
6153 (expand_one_var): Likewise.
6154 (expand_stack_alignment): New function.
6155 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
6156 and stack_alignment_estimated fields in rtl_data. Call
6157 expand_stack_alignment at end.
6159 * defaults.h (INCOMING_STACK_BOUNDARY): New.
6160 (MAX_STACK_ALIGNMENT): Likewise.
6161 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
6162 (SUPPORTS_STACK_ALIGNMENT): Likewise.
6164 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
6165 stack alignment when generating virtual registers.
6167 * function.c (assign_stack_local): Renamed to ...
6168 (assign_stack_local_1): This. Add a parameter to indicate
6169 if it is OK to reduce alignment.
6170 (assign_stack_local): Use it.
6171 (instantiate_new_reg): Instantiate virtual incoming args rtx
6172 to vDRAP if stack realignment and DRAP is needed.
6173 (assign_parms): Collect parameter/return type alignment and
6174 contribute to stack_alignment_estimated.
6175 (locate_and_pad_parm): Likewise.
6176 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
6177 with crtl->args.internal_arg_pointer.
6179 * function.h (rtl_data): Add new field drap_reg,
6180 max_used_stack_slot_alignment, stack_alignment_estimated,
6181 stack_realign_needed, need_drap, stack_realign_processed and
6182 stack_realign_finalized.
6183 (stack_realign_fp): New macro.
6184 (stack_realign_drap): Likewise.
6186 * global.c (compute_regsets): Frame pointer is needed when
6187 stack is realigned. Can eliminate frame pointer when stack is
6188 realigned and dynamic realigned argument pointer isn't used.
6190 * reload1.c (update_eliminables): Frame pointer is needed
6191 when stack is realigned.
6192 (init_elim_table): Can eliminate frame pointer when stack is
6193 realigned and dynamic realigned argument pointer isn't used.
6195 * rtl.h (assign_stack_local_1): Declare new funtion.
6197 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
6198 (TARGET_GET_DRAP_RTX): Likewise.
6199 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
6200 TARGET_GET_DRAP_RTX.
6202 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
6204 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6205 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
6207 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
6208 H.J. Lu <hongjiu.lu@intel.com>
6210 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
6211 vdrap_reg, stack_realign and drap_reg_saved.
6212 (add_cfi): Don't allow redefining CFA when DRAP is used.
6213 (reg_save): Handle stack alignment.
6214 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
6215 alignment. Don't generate DWARF information for (set fp sp)
6217 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
6219 (int_loc_descriptor): Move prototype forward. Also define if
6220 DWARF2_UNWIND_INFO is true.
6221 (output_cfa_loc): Handle DW_CFA_expression.
6222 (build_cfa_aligned_loc): New.
6223 (based_loc_descr): Update assert for stack realign. For local
6224 variables, use sp+offset when stack is aligned without drap and
6225 fp+offset when stack is aligned with drap. For arguments, use
6226 cfa+offset when drap is used to align stack.
6228 2008-07-30 Joey Ye <joey.ye@intel.com>
6229 H.J. Lu <hongjiu.lu@intel.com>
6231 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
6233 (ix86_gen_andsp): New.
6234 (ix86_user_incoming_stack_boundary): Likewise.
6235 (ix86_default_incoming_stack_boundary): Likewise.
6236 (ix86_incoming_stack_boundary): Likewise.
6237 (ix86_can_eliminate): Likewise.
6238 (find_drap_reg): Likewise.
6239 (ix86_update_stack_boundary): Likewise.
6240 (ix86_get_drap_rtx): Likewise.
6241 (ix86_finalize_stack_realign_flags): Likewise.
6242 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
6243 (TARGET_GET_DRAP_RTX): Likewise.
6244 (override_options): Overide option value for new options.
6245 (ix86_function_ok_for_sibcall): Remove check for
6246 force_align_arg_pointer.
6247 (ix86_handle_cconv_attribute): Likewise.
6248 (ix86_function_regparm): Likewise.
6249 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
6250 (ix86_va_start): Replace virtual_incoming_args_rtx with
6251 crtl->args.internal_arg_pointer.
6252 (ix86_select_alt_pic_regnum): Check DRAP register.
6253 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
6254 (ix86_compute_frame_layout): Compute frame layout wrt stack
6256 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
6257 (ix86_expand_prologue): Decide if stack realignment is needed
6258 and generate prologue code accordingly.
6259 (ix86_expand_epilogue): Generate epilogue code wrt stack
6260 realignment is really needed or not.
6262 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
6263 (ABI_STACK_BOUNDARY): Likewise.
6264 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
6265 (STACK_REALIGN_DEFAULT): Likewise.
6266 (INCOMING_STACK_BOUNDARY): Likewise.
6267 (MAX_STACK_ALIGNMENT): Likewise.
6268 (ix86_incoming_stack_boundary): Likewise.
6269 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
6270 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
6271 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
6272 (machine_function): Remove force_align_arg_pointer.
6274 * config/i386/i386.md (BX_REG): New.
6275 (R13_REG): Likewise.
6277 * config/i386/i386.opt (mforce_drap): New.
6278 (mincoming-stack-boundary): Likewise.
6279 (mstackrealign): Add Init(-1).
6281 * config/i386/i386-protos.h (ix86_can_eliminate): New
6283 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
6285 * doc/extend.texi: Update force_align_arg_pointer.
6287 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
6290 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
6291 (INCOMING_STACK_BOUNDARY): Likewise.
6292 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
6293 (TARGET_GET_DRAP_RTX): Likewise.
6295 2008-07-30 Andreas Schwab <schwab@suse.de>
6297 PR rtl-optimization/36929
6298 * dse.c (replace_inc_dec): Use emit_insn_before instead of
6299 add_insn_before and fix argument order.
6300 (replace_inc_dec_mem): Handle NULL rtx.
6302 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
6304 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
6306 (arm_compute_initial_elimination_offset): Use it.
6307 (arm_compute_save_reg_mask): Include static chain save slot when
6308 calculating alignment.
6309 (arm_get_frame_offsets): Ditto.
6310 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
6311 that we can use to decrement the stack when the stack decrement
6312 could be too big for an immediate value in a single insn.
6313 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
6315 2008-07-30 Richard Guenther <rguenther@suse.de>
6317 PR tree-optimization/36967
6318 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
6319 Release defs of statements we remove.
6321 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
6323 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
6324 instead of NULL_RTVEC.
6326 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
6330 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
6333 2008-07-30 Rafael Ávila de Espíndola <espindola@google.com>
6335 * final.c (call_from_call_insn): New.
6336 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
6338 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
6340 * configure.ac: Substitute ADA_CFLAGS.
6341 * configure: Regenerate.
6342 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
6343 * Makefile.in: Remove mention of X_* variables.
6344 * config/pa/x-ada-hpux10: Remove.
6345 * config/pa/x-ada: Remove.
6347 * doc/fragments.texi: Update.
6349 2008-07-30 Olivier Hainque <hainque@adacore.com>
6351 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
6352 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
6353 __dso_handle explicitly here.
6355 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6358 * c-typeck.c (build_binary_op): Encapsulate code into...
6359 * c-common.c (shorten_binary_op): ...this new function.
6360 (conversion_warning): Use the new function. Handle non-negative
6361 constant in bitwise-and.
6362 * c-common.h (shorten_binary_op): Declare.
6364 2008-07-30 Olivier Hainque <hainque@adacore.com>
6366 * scan.c (make_sstring_space): Add explicit conversions of
6367 allocator's return value.
6368 * fix-header.c (recognized_function): Likewise.
6370 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6372 * doc/cpp.texi: Update to GFDL 1.2.
6373 * doc/gcc.texi: Do not list GPL as Invariant Section.
6374 * doc/gccint.texi: Likewise. Update copyright years.
6375 * doc/install.texi: Update copyright years.
6377 2008-07-30 Alan Modra <amodra@bigpond.net.au>
6380 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6381 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6383 2008-07-29 Jan Hubicka <jh@suse.cz>
6385 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6386 (grokdeclarator): Likewise.
6387 * langhooks.c (lhd_warn_unused_global_decl): Use
6388 DECL_DECLARED_INLINE_P.
6389 * print-tree.c (print_node): Remove DECL_INLINE check.
6391 2008-07-29 Richard Guenther <rguenther@suse.de>
6393 PR tree-optimization/36945
6394 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6395 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6396 Record invariant addresses un-decomposed.
6397 (copy_reference_ops_from_call): Record reference call
6398 arguments properly. Simplify.
6399 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6400 helper split out from ...
6401 (create_component_ref_by_pieces): ... here. Simplify.
6402 Prepare for recursive invocation for call arguments.
6403 (create_expression_by_pieces): Adjust call to
6404 create_component_ref_by_pieces.
6405 (compute_avail): Process operand 2 of reference ops.
6407 2008-07-29 Richard Guenther <rguenther@suse.de>
6409 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6411 2008-07-29 Jakub Jelinek <jakub@redhat.com>
6413 * c-format.c (check_format_types): Revert unwanted checkin.
6415 2008-07-29 Jan Hubicka <jh@suse.cz>
6417 * flags.h (flag_really_no_inline): Remove.
6418 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6419 * toplev.c (flag_really_no_inline): Remove.
6420 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6421 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6422 (cgraph_decide_inlining_incrementally): Likewise.
6423 (compute_inline_parameters): Likewise.
6424 * opts.c (decode_options): Simplify.
6425 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6426 * common.opt (finline): Initialize to 1.
6427 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6429 2008-07-29 Jan Hubicka <jh@suse.cz>
6431 * predict.c (always_optimize_for_size_p): New function.
6432 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6433 optimize_edge_for_size_p, optimize_edge_for_speed_p,
6434 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
6436 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6437 * function.c (prepare_function_start): Set default profile.
6438 * function.h (rtl_data): Add maybe_hot_insn_p.
6439 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6440 (construct_exit_block): Likewise.
6441 (tree_expand_cfg): Likewise.
6443 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6444 optimize_edge_for_size_p, optimize_edge_for_speed_p,
6445 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6446 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6449 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6452 * c-decl.c (merge_decls): Merge USED flags.
6454 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
6456 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6457 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6458 next_stack, lab_false and lab_over trees.
6460 2008-07-28 Richard Guenther <rguenther@suse.de>
6462 PR tree-optimization/36957
6463 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6464 (useless_type_conversion_p): Remove.
6465 (types_compatible_p): Remove.
6466 * gimple.h (tree_ssa_useless_type_conversion): Declare.
6467 (useless_type_conversion_p): Declare.
6468 (types_compatible_p): Declare.
6469 (gimple_expr_type): Return the base type only if it is
6470 trivially convertible to the subtype.
6472 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
6474 * configure.ac: Use the m4_do macro to concatenate the warnings into
6475 one string in ACX_PROG_CC_WARNING_OPTS,
6476 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6477 * configure: Regenerate.
6479 2008-07-28 Richard Guenther <rguenther@suse.de>
6481 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6482 (insert_fake_stores): Remove.
6483 (realify_fake_stores): Likewise.
6484 (execute_pre): Remove dead code.
6485 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6486 (find_func_aliases): Deal with it here instead.
6487 Re-enable gcc_unreachable call.
6489 2008-07-28 Richard Guenther <rguenther@suse.de>
6491 Merge from gimple-tuples-branch.
6493 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6494 * gimple.def: New file.
6495 * gsstruct.def: Likewise.
6496 * gimple-iterator.c: Likewise.
6497 * gimple-pretty-print.c: Likewise.
6498 * tree-gimple.c: Removed. Merged into ...
6499 * gimple.c: ... here. New file.
6500 * tree-gimple.h: Removed. Merged into ...
6501 * gimple.h: ... here. New file.
6503 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6504 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6505 --enable-checking=gimple flag.
6506 * config.in: Likewise.
6507 * configure: Regenerated.
6509 * tree-ssa-operands.h: Tuplified.
6510 * tree-vrp.c: Likewise.
6511 * tree-loop-linear.c: Likewise.
6512 * tree-into-ssa.c: Likewise.
6513 * tree-ssa-loop-im.c: Likewise.
6514 * tree-dump.c: Likewise.
6515 * tree-complex.c: Likewise.
6516 * cgraphbuild.c: Likewise.
6517 * tree-ssa-threadupdate.c: Likewise.
6518 * tree-ssa-loop-niter.c: Likewise.
6519 * tree-pretty-print.c: Likewise.
6520 * tracer.c: Likewise.
6521 * gengtype.c: Likewise.
6522 * tree-loop-distribution.c: Likewise.
6523 * tree-ssa-loop-unswitch.c: Likewise.
6524 * cgraph.c: Likewise.
6525 * cgraph.h: Likewise.
6526 * tree-ssa-loop-manip.c: Likewise.
6527 * value-prof.c: Likewise.
6528 * tree-ssa-loop-ch.c: Likewise.
6529 * tree-tailcall.c: Likewise.
6530 * value-prof.h: Likewise.
6533 * tree-pass.h: Likewise.
6534 * ipa-cp.c: Likewise.
6535 * tree-scalar-evolution.c: Likewise.
6536 * tree-scalar-evolution.h: Likewise.
6537 * target.h: Likewise.
6538 * lambda-mat.c: Likewise.
6539 * tree-phinodes.c: Likewise.
6540 * diagnostic.h: Likewise.
6541 * builtins.c: Likewise.
6542 * tree-ssa-alias-warnings.c: Likewise.
6543 * cfghooks.c: Likewise.
6544 * fold-const.c: Likewise.
6545 * cfghooks.h: Likewise.
6546 * omp-low.c: Likewise.
6547 * tree-ssa-dse.c: Likewise.
6548 * ipa-reference.c: Likewise.
6549 * tree-ssa-uncprop.c: Likewise.
6550 * toplev.c: Likewise.
6551 * tree-gimple.c: Likewise.
6552 * tree-gimple.h: Likewise.
6553 * tree-chrec.c: Likewise.
6554 * tree-chrec.h: Likewise.
6555 * tree-ssa-sccvn.c: Likewise.
6556 * tree-ssa-sccvn.h: Likewise.
6557 * cgraphunit.c: Likewise.
6558 * tree-ssa-copyrename.c: Likewise.
6559 * tree-ssa-ccp.c: Likewise.
6560 * tree-ssa-loop-ivopts.c: Likewise.
6561 * tree-nomudflap.c: Likewise.
6562 * tree-call-cdce.c: Likewise.
6563 * ipa-pure-const.c: Likewise.
6564 * c-format.c: Likewise.
6565 * tree-stdarg.c: Likewise.
6566 * tree-ssa-math-opts.c: Likewise.
6567 * tree-ssa-dom.c: Likewise.
6568 * tree-nrv.c: Likewise.
6569 * tree-ssa-propagate.c: Likewise.
6570 * ipa-utils.c: Likewise.
6571 * tree-ssa-propagate.h: Likewise.
6572 * tree-ssa-alias.c: Likewise.
6573 * gimple-low.c: Likewise.
6574 * tree-ssa-sink.c: Likewise.
6575 * ipa-inline.c: Likewise.
6576 * c-semantics.c: Likewise.
6577 * dwarf2out.c: Likewise.
6579 * tree-ssa-loop-ivcanon.c: Likewise.
6580 * predict.c: Likewise.
6581 * tree-ssa-loop.c: Likewise.
6582 * tree-parloops.c: Likewise.
6583 * tree-ssa-address.c: Likewise.
6584 * tree-ssa-ifcombine.c: Likewise.
6585 * matrix-reorg.c: Likewise.
6586 * c-decl.c: Likewise.
6587 * tree-eh.c: Likewise.
6588 * c-pretty-print.c: Likewise.
6589 * lambda-trans.c: Likewise.
6590 * function.c: Likewise.
6591 * langhooks.c: Likewise.
6592 * ebitmap.h: Likewise.
6593 * tree-vectorizer.c: Likewise.
6594 * function.h: Likewise.
6595 * langhooks.h: Likewise.
6596 * tree-vectorizer.h: Likewise.
6597 * ipa-type-escape.c: Likewise.
6598 * ipa-type-escape.h: Likewise.
6599 * domwalk.c: Likewise.
6600 * tree-if-conv.c: Likewise.
6601 * profile.c: Likewise.
6602 * domwalk.h: Likewise.
6603 * tree-data-ref.c: Likewise.
6604 * tree-data-ref.h: Likewise.
6605 * tree-flow-inline.h: Likewise.
6606 * tree-affine.c: Likewise.
6607 * tree-vect-analyze.c: Likewise.
6608 * c-typeck.c: Likewise.
6609 * gimplify.c: Likewise.
6610 * coretypes.h: Likewise.
6611 * tree-ssa-phiopt.c: Likewise.
6612 * calls.c: Likewise.
6613 * tree-ssa-coalesce.c: Likewise.
6614 * tree.def: Likewise.
6615 * tree-dfa.c: Likewise.
6616 * except.c: Likewise.
6617 * except.h: Likewise.
6618 * cfgexpand.c: Likewise.
6619 * tree-cfgcleanup.c: Likewise.
6620 * tree-ssa-pre.c: Likewise.
6621 * tree-ssa-live.c: Likewise.
6622 * tree-sra.c: Likewise.
6623 * tree-ssa-live.h: Likewise.
6624 * tree-predcom.c: Likewise.
6625 * lambda.h: Likewise.
6626 * tree-mudflap.c: Likewise.
6627 * ipa-prop.c: Likewise.
6628 * print-tree.c: Likewise.
6629 * tree-ssa-copy.c: Likewise.
6630 * ipa-prop.h: Likewise.
6631 * tree-ssa-forwprop.c: Likewise.
6632 * ggc-page.c: Likewise.
6633 * c-omp.c: Likewise.
6634 * tree-ssa-dce.c: Likewise.
6635 * tree-vect-patterns.c: Likewise.
6636 * tree-ssa-ter.c: Likewise.
6637 * tree-nested.c: Likewise.
6638 * tree-ssa.c: Likewise.
6639 * lambda-code.c: Likewise.
6640 * tree-ssa-loop-prefetch.c: Likewise.
6641 * tree-inline.c: Likewise.
6642 * tree-inline.h: Likewise.
6643 * tree-iterator.c: Likewise.
6644 * tree-optimize.c: Likewise.
6645 * tree-ssa-phiprop.c: Likewise.
6646 * tree-vect-transform.c: Likewise.
6647 * tree-object-size.c: Likewise.
6648 * tree-outof-ssa.c: Likewise.
6649 * cfgloop.c: Likewise.
6650 * system.h: Likewise.
6651 * tree-profile.c: Likewise.
6652 * cfgloop.h: Likewise.
6653 * c-gimplify.c: Likewise.
6654 * c-common.c: Likewise.
6655 * tree-vect-generic.c: Likewise.
6656 * tree-flow.h: Likewise.
6657 * c-common.h: Likewise.
6658 * basic-block.h: Likewise.
6659 * tree-ssa-structalias.c: Likewise.
6660 * tree-switch-conversion.c: Likewise.
6661 * tree-ssa-structalias.h: Likewise.
6662 * tree-cfg.c: Likewise.
6663 * passes.c: Likewise.
6664 * ipa-struct-reorg.c: Likewise.
6665 * ipa-struct-reorg.h: Likewise.
6666 * tree-ssa-reassoc.c: Likewise.
6667 * cfgrtl.c: Likewise.
6668 * varpool.c: Likewise.
6670 * tree-ssanames.c: Likewise.
6671 * tree-ssa-threadedge.c: Likewise.
6672 * langhooks-def.h: Likewise.
6673 * tree-ssa-operands.c: Likewise.
6674 * config/alpha/alpha.c: Likewise.
6675 * config/frv/frv.c: Likewise.
6676 * config/s390/s390.c: Likewise.
6677 * config/m32c/m32c.c: Likewise.
6678 * config/m32c/m32c-protos.h: Likewise.
6679 * config/spu/spu.c: Likewise.
6680 * config/sparc/sparc.c: Likewise.
6681 * config/i386/i386.c: Likewise.
6682 * config/sh/sh.c: Likewise.
6683 * config/xtensa/xtensa.c: Likewise.
6684 * config/stormy16/stormy16.c: Likewise.
6685 * config/ia64/ia64.c: Likewise.
6686 * config/rs6000/rs6000.c: Likewise.
6687 * config/pa/pa.c: Likewise.
6688 * config/mips/mips.c: Likewise.
6690 2008-07-28 Simon Baldwin <simonb@google.com>
6692 * c-pragma.c (handle_pragma_message): New function.
6693 (init_pragma): Register handle_pragma_message.
6694 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6697 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
6699 PR tree-optimization/35252
6700 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6701 REALPART_EXPR to be considered as same load operation.
6703 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
6705 PR tree-optimization/36830
6706 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6707 (expressions_equal_p): Return false if only one operand is null.
6709 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
6711 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6712 version requirements.
6714 2008-07-26 Olivier Hainque <hainque@adacore.com>
6716 * collect2.c (symkind): New enum. Symbol kinds we care about.
6717 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
6718 code and head comment accordingly.
6719 (scan_prog_file): Use symkind names instead of bare integers.
6721 2008-07-25 Jan Hubicka <jh@suse.cz>
6723 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6725 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6726 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6727 * dojump.c (clear_pending_stack_adjust): Likewise.
6728 * print-tree.c (print_node): Ignore DECL_INLINE.
6729 * tree-inline.c (inlinable_function_p): Likewise.
6731 2008-07-25 Michael Meissner <gnu@the-meissners.org>
6733 * doc/extend.texi (hot attribute): Document that the hot attribute
6734 turns on -O3 for some ports.
6735 (cold attribute): Document that the cold attribute turns on -Os
6738 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6739 reflect function specific option support.
6741 * target.h (struct target_option_hooks): Add fields to say whether
6742 the cold attribute implies -Os and the hot attribute implies -O3.
6744 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6745 By default, do not turn on -Os for cold functions.
6746 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6747 not turn on -O3 for hot functions.
6749 * c-common.c (handle_hot_attribute): Use target hook to determine
6750 if hot functions should enable -O3.
6751 (handle_cold_attribute): Use target hook to determine if cold
6752 functions should enable -Os.
6754 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6755 (override_options): Move disable scheduling to
6756 optimization_options.
6757 (optimization_options): Disable scheduling here, not
6759 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6760 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6762 * config/ia64/ia64.c (ia64_override_options): Move setting
6763 scheduling flags to ia64_optimization_options.
6764 (ia64_optimization_options): Disable scheduling options here, and
6765 not in ia64_override_options.
6766 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6767 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6769 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
6772 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6774 2008-07-25 Martin Jambor <mjambor@suse.cz>
6776 PR tree-optimization/36926
6777 * ipa-prop.c (ipa_analyze_call_uses): Call
6778 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6780 2008-07-25 Joseph Myers <joseph@codesourcery.com>
6782 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6783 movv2si_internal): Add mem = reg alternative.
6785 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
6788 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6789 DEFAULT_PCC_STRUCT_RETURN to 127.
6791 2008-07-24 Jan Hubicka <jh@suse.cz>
6793 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6794 (build_cgraph_edges): Likewise.
6795 * cgraph.c (cgraph_node): Do not update assembler hash.
6796 (cgraph_remove_node): Drop non-unit-at-a-time code.
6797 * tree-pass.h (pass_O0_always_inline): Remove.
6798 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6799 * toplev.c (process_options): Flag unit-at-a-time does not imply
6801 * cgraphunit.c: Update comments.
6802 (decide_is_function_needed): Drop non-unit-at-a-time mode.
6803 (cgraph_assemble_pending_functions): Remove.
6804 (cgraph_reset_node): Drop non-unit-at-a-time code.
6805 (cgraph_finalize_function): Likewise.
6806 (cgraph_analyze_function): Likewise.
6807 (cgraph_finalize_compilation_unit): Likewise.
6808 (cgraph_expand_function): Likewise.
6809 (cgraph_optimize): Likesise.
6810 (save_inline_function_body): Likewise.
6811 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6812 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6813 * ipa-inline.c: Update comments.
6814 (enum inlining_mode): remove INLINE_SPEED.
6815 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6816 (cgraph_mark_inline_edge): Likewise.
6817 (try_inline): Likewise.
6818 (cgraph_decide_inlining_incrementally): Likewise.
6819 (cgraph_gate_inlining): Remove.
6820 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6821 (cgraph_gate_early_inlining): Likewise.
6822 (gate_inline_passes): Remove.
6823 (pass_inline_parameters, pass_ipa_inline): Remove gates.
6824 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6825 pass_O0_always_inline): Remove.
6826 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6827 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6828 * opts.c (no_unit_at_a_time_default): Remove.
6829 (decode_options): Remove flag_unit_at_a_time reset and warning.
6830 * opts.h (no_unit_at_a_time_default): Remove.
6831 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6832 early in GNU dialect.
6833 (merge_decls): Update comment; drop unit-at-a-time check.
6834 (finish_decl): Likewise.
6835 (grok_declaration): Remove flag_inline_trees code.
6836 (finish_functions): Return on function returning non-void on all
6838 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6839 * cfgexpand.c (expand_one_static_var): Remove.
6840 (expand_one_var): Remove expand_one_static_var call.
6841 (expand_used_vars_for_block): Remove flag_unit_a_time check.
6842 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6843 and flag_unit_at_a-time compatibility checks.
6844 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6845 * tree-inline.c (flag_inline_trees): Remove.
6846 (inlinable_function_p): Don't check it.
6847 (expand_call_inline): Remove non-unit-at-a-time code.
6848 * tree-inline.h (flag_inline_trees): Remove.
6849 * tree-optimize.c (execute_early_local_optimizations): Remove
6850 unit-at-a-time checks.
6851 (tree_rest_of_compilation): Likewise.
6852 * combine.c (setup_incoming_promotions): Likewise.
6853 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6854 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6855 * passes.c (pass_inline_parameters): Update comments; remove
6856 O0_alwaysinline pass.
6857 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6858 (execute_one_pass): Likewise.
6859 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6860 (ix86_function_sseregparm): Likewise.
6861 * arm.c (arm_function_in_section_p): Likewise.
6862 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6863 * varpool.c: Update comments.
6864 (decide_is_variable_needed): Remove unit-at-a-time checks.
6865 (varpool_finalize_decl): Likewise.
6867 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
6869 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6871 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6873 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
6875 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6876 imp symbol extension.
6878 2008-07-23 Ian Lance Taylor <iant@google.com>
6880 * tree-vrp.c (infer_value_range): Ignore asm statements when
6881 looking for memory accesses for -fdelete-null-pointer-checks.
6883 2008-07-24 Ben Elliston <bje@au.ibm.com>
6885 * config/spu/spu-c.c (__vector_keyword): New variable.
6886 (vector_keyword): Likewise.
6887 (spu_categorize_keyword): New function.
6888 (spu_macro_to_expand): Likewise.
6889 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6890 compiling an ISO C dialect.
6892 2008-07-24 Ben Elliston <bje@au.ibm.com>
6894 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6897 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6899 * configure: Regenerate.
6900 * configure.ac: Require texinfo 4.7.
6901 * doc/install.texi: Document texinfo 4.7 requirement.
6903 2008-07-23 Martin Jambor <mjambor@suse.cz>
6905 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6906 rather than for DECL_SAVED_TREE.
6907 * ipa-prop.c: Include diagnostic.h.
6908 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6910 (ipa_detect_param_modifications): Function rewritten from scratch.
6911 (ipa_compute_jump_functions): Changed accesses to modification flags.
6912 (ipa_free_node_params_substructures): Update flags destruction.
6913 (ipa_node_duplication_hook): Update flags duplication.
6914 (ipa_print_all_params_modified): Updated flag access.
6915 * ipa-prop.h (struct ipa_param_flags): New structure.
6916 (struct ipa_node_params): New field modification_analysis_done,
6917 modified_flags changed into param_flags.
6918 (ipa_is_ith_param_modified): Changed to use new flags.
6919 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6921 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6922 ipa-cp.c and split into two functions.
6923 (ipa_print_node_jump_functions): New function.
6924 (compute_scalar_jump_functions): New function.
6925 (type_like_member_ptr_p): New function.
6926 (compute_pass_through_member_ptrs): New function.
6927 (fill_member_ptr_cst_jump_function): New function.
6928 (determine_cst_member_ptr): New function.
6929 (compute_cst_member_ptr_arguments): New function.
6930 (ipa_compute_jump_functions): Complete rewrite.
6931 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6932 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6933 (struct ipa_member_ptr_cst): New structure.
6934 (union jump_func_value): New field member_cst.
6935 * ipa-cp.c (ipcp_lat_is_insertable): New function.
6936 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6937 jump function types.
6938 (ipcp_print_all_lattices): Slight fprintf rearrangement.
6939 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6940 instead of ipcp_print_all_jump_functions.
6941 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6942 only for replacable scalars.
6944 * doc/invoke.texi (Optimize options): Add description of
6945 -findirect-inlining.
6946 * common.opt (flag_indirect_inlining): New flag.
6947 * opts.c (decode_options): Set flag_indirect_inlining when
6950 * ipa-inline.c: Include ipa-prop.h.
6951 (inline_indirect_intraprocedural_analysis): New function.
6952 (inline_generate_summary): Allocate parameter and argument info
6953 structures, call inline_indirect_intraprocedural_analysis on each
6954 node when doing indirect inlining and deallocate indirect inlining
6955 data structures in the end.
6956 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6957 (free_all_ipa_structures_after_iinln): New function.
6958 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6960 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6962 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6963 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6964 of computing the frequency separately.
6965 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6966 of computing the frequency separately.
6967 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6968 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6969 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6970 (ipa_get_stmt_member_ptr_load_param): New function.
6971 (ipa_is_ssa_with_stmt_def): New function.
6972 (ipa_note_param_call): New function.
6973 (ipa_analyze_call_uses): New function.
6974 (ipa_analyze_stmt_uses): New function.
6975 (ipa_analyze_params_uses): New function.
6976 (ipa_free_node_params_substructures): Also free the param_calls linked
6978 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
6979 (ipa_print_node_param_flags): New function.
6980 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
6981 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
6982 * ipa-prop.h (struct ipa_param_flags): New field called.
6983 (struct ipa_param_call_note): New structure.
6984 (struct ipa_node_params): New fields param_calls and
6986 (ipa_is_ith_param_called): New function.
6987 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6988 ipa_analyze_params_uses and dump parameter flags.
6990 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
6991 ipa_propagate_indirect_call_infos if performing indirect inlining,
6992 pass a new parameter new_edges to it.
6993 (add_new_edges_to_heap): New fucntion.
6994 (cgraph_decide_inlining_of_small_functions): New vector
6995 new_indirect_edges for newly found indirect edges , call
6996 ipa_propagate_indirect_call_infos after inlining.
6997 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
6998 inlining if performing indirect inlining. Call
6999 free_all_ipa_structures_after_iinln when doing so too.
7000 (inline_generate_summary): Do not call
7001 free_all_ipa_structures_after_iinln here.
7002 * ipa-prop.c (update_jump_functions_after_inlining): New function.
7003 (print_edge_addition_message): New function.
7004 (update_call_notes_after_inlining): New function.
7005 (propagate_info_to_inlined_callees): New function.
7006 (ipa_propagate_indirect_call_infos): New function.
7007 * ipa-prop.h: Include cgraph.h
7008 (struct ipa_param_call_note): Fields reordered, new field processed.
7009 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
7011 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
7012 rediscovered call statements.
7013 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
7014 (dump_cgraph_node): Dump also the indirect_call flag.
7015 (cgraph_clone_edge): Copy also the indirect_call flag.
7016 * tree-inline.c (copy_bb): Do not check for fndecls from call
7017 expressions, check for edge availability when moving clones.
7018 (get_indirect_callee_fndecl): New function.
7019 (expand_call_inline): If callee declaration is not apprent from
7020 the statement, try calling get_indirect_callee_fndecl. Do not
7021 issue warnings or call sorry when not inlinings an indirect edge.
7022 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
7024 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
7025 bit more frandly to matching.
7026 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
7027 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
7028 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
7030 2008-07-23 Michael Meissner <gnu@the-meissners.org>
7033 * opth-gen.awk: Suppress function specific features when building
7035 * optc-gen.awk: Ditto.
7037 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7040 * diagnostic.c (pedwarn): Add opt parameter.
7042 * c-tree.h (pedwarn_init): Add opt parameter.
7043 (pedwarn_c90): Likewise.
7044 (pedwarn_c99): Likewise.
7045 * c-errors.c (pedwarn_c99): Likewise.
7046 (pedwarn_c90): Likewise.
7047 * toplev.h (pedwarn): Update declaration.
7048 (pedwarn0): Declare.
7049 * c-lex.c: All calls to pedwarn changed.
7050 * builtins.c: All calls to pedwarn changed.
7051 * toplev.c: All calls to pedwarn changed.
7052 * c-decl.c: All calls to pedwarn changed.
7053 * c-typeck.c: All calls to pedwarn changed.
7054 * c-common.c: All calls to pedwarn changed.
7055 * c-parser.c: All calls to pedwarn changed.
7057 2008-07-23 Michael Meissner <gnu@the-meissners.org>
7058 Karthik Kumar <karthikkumar@gmail.com>
7060 * attribs.c (file scope): Include c-common.h.
7061 (decl_attributes): Add support for #pragma GCC optimize and
7064 * targhooks.c (default_can_inline_p): New function that is the
7065 default for the TARGET_CAN_INLINE_P target hook.
7067 * targhooks.h (default_can_inline_p): Add declaration.
7069 * tree.c (cl_optimization_node): New static tree for building
7070 OPTIMIZATION_NODE tree.
7071 (cl_target_option_node): New static tree for building
7072 TARGET_OPTION_NODE tree.
7073 (cl_option_hash_table): New hash table for hashing
7074 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7075 (cl_option_hash_hash): New function to provide the hash value for
7076 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7077 (cl_option_hash_eq): New function to provide an equality test for
7078 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7079 (tree_code_size): Add support for OPTIMIZATION_NODE and
7080 TARGET_OPTION_NODE trees.
7081 (tree_code_structure): Add support for OPTIMIZATION_NODE and
7082 TARGET_OPTION_NODE trees.
7083 (build_optimization_node): Build a tree that has all of the
7084 current optimization options.
7085 (build_target_option_node): Build a tree that has the target
7086 options that might be changed on a per function basis.
7088 * tree.h (file scope): Include options.h.
7089 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
7090 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7091 (TREE_OPTIMIZATION): Ditto.
7092 (TREE_TARGET_SPECIFIC): Ditto.
7093 (struct tree_function_decl): Add fields for remembering the
7094 current optimization options and target specific options.
7095 (struct tree_optimization_option): New tree variant that remembers
7096 the optimization options.
7097 (struct tree_target_option): New tree variant that remembers the
7098 target specific flags that might change for compiling a particular
7100 (union tree_node): Include tree_optimization_option and
7101 tree_target_option fields.
7102 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
7103 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
7104 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
7105 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
7106 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
7107 optimization and target options.
7108 (optimization_default_node): New macro to refer to global_trees
7110 (optimization_current_node): Ditto.
7111 (optimization_cold_node): Ditto.
7112 (optimization_hot_node): Ditto.
7113 (target_option_default_node): Ditto.
7114 (target_option_current_node): Ditto.
7115 (current_option_pragma): Ditto.
7116 (current_optimize_pragma): Ditto.
7118 * target.h (struct gcc_target): Add valid_option_attribute_p,
7119 target_option_save, target_option_restore, target_option_print,
7120 target_option_pragma_parse, and can_inline_p hooks.
7122 * toplev.h (parse_optimize_options): Add declaration.
7123 (fast_math_flags_struct_set_p): Ditto.
7125 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
7126 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
7129 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
7130 tree_can_inline_p hook to see if one function can inline another.
7131 (cgraph_decide_inlining): Ditto.
7132 (cgraph_decide_inlining_incrementally): Ditto.
7134 * opts.c (decode_options): Add support for running multiple times
7135 to allow functions with different target or optimization options
7136 than was specified on the command line.
7137 (fast_math_flags_struct_set_p): New function that is similar to
7138 fast_math_flags_set_p, except it uses the values in the
7139 cl_optimization structure instead of global variables.
7141 * optc-gen.awk: Add support for TargetSave to allow a back end to
7142 declare new fields that need to be saved when using function
7143 specific options. Include flags.h and target.h in the options.c
7144 source. Add support for Save to indicate which options can be set
7145 for individual functions. Generate cl_optimize_save,
7146 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
7147 cl_target_option_restore, cl_target_option_print functions to
7148 allow functions to use different optimization or target options.
7150 * opt-functions.awk (var_type_struct): Return the type used for
7151 storing the field in a structure.
7153 * opth-gen.awk: Add support for TargetSave to allow a back end to
7154 declare new fields that need to be saved when using function
7155 specific options. Add support for Save to indicate which options
7156 can be set for individual functions. Only generate one extern for
7157 Mask fields. Generate cl_optimization and cl_target_option
7158 structures to remember optimization and target options.
7160 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
7161 collecting new tree nodes.
7162 (TS_TARGET_OPTION): Ditto.
7164 * c-decl.c (merge_decls): Merge function specific target and
7165 optimization options.
7167 * function.c (invoke_set_current_function_hook): If the function
7168 uses different optimization options, change the global variables
7171 * coretypes.h (struct cl_optimization): Add forward reference.
7172 (struct cl_target_option): Ditto.
7174 * c-pragma.c (option_stack): New static vector to remember the
7175 current #pragma GCC option stack.
7176 (handle_pragma_option): New function to support #pragma GCC option
7177 to change target options.
7178 (optimize_stack): New static vector to remember the current
7179 #pragma GCC optimize stack.
7180 (handle_pragma_optimize): New function to support #pragma GCC
7181 optimize to change optimization options.
7182 (init_pragma): Add support for #pragma GCC optimize and #pragma
7185 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
7186 optimization options.
7187 (TARGET_OPTION_NODE): New tree code for remembering certain target
7190 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
7191 TARGET_OPTION_NODE trees.
7193 * common.opt (-O): Add Optimization flag.
7195 (-fmath-errno): Ditto.
7196 (-falign-functions): Add UInteger flag to make sure flag gets full
7197 int in cl_optimization structure.
7198 (-falign-jumps): Ditto.
7199 (-falign-labels): Ditto.
7200 (-falign-loops): Ditto.
7201 (-fsched-stalled-insns): Ditto.
7202 (-fsched-stalled-insns-dep): Ditto.
7204 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
7206 (TARGET_OPTION_SAVE): Ditto.
7207 (TARGET_OPTION_RESTORE): Ditto.
7208 (TARGET_OPTION_PRINT): Ditto.
7209 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7210 (TARGET_CAN_INLINE_P): Ditto.
7211 (TARGET_INITIALIZER): Add new hooks.
7213 * tree-inline.c (tree_can_inline_p): New function to determine
7214 whether one function can inline another. Check if the functions
7215 use compatible optimization options, and also call the backend
7218 * tree-inline.h (tree_can_inline_p): Add declaration.
7220 * c-common.c (c_common_attribute): Add support for option and
7221 optimize attributes.
7222 (handle_option_attribute): Add support for the option attribute to
7223 allow the user to specify different target options for compiling a
7225 (handle_optimize_attribute): Add support for the optimize
7226 attribute to allow the user to specify different optimization
7227 options for compiling a specific function.
7228 (handle_hot_attribute): Turn on -O3 optimization for this one
7229 function if it isn't the default optimization level.
7230 (handle_cold_attribute): Turn on -Os optimization for this one
7231 function if it insn't the default optimization.
7232 (const_char_p): New const char * typedef.
7233 (optimize_args): New static vector to remember the optimization
7235 (parse_optimize_options): New function to set up the optimization
7236 arguments from either the optimize attribute or #pragma GCC optimize.
7238 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
7239 (builtin_define_std): Ditto.
7241 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
7242 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
7243 (x86_64-*-*): Ditto.
7245 * Makefile.in (TREE_H): Add options.h.
7246 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
7248 * doc/extend.texi (option attribute): Document new attribute.
7249 (optimize attribute): Ditto.
7250 (hot attribute): Document hot attribute sets -O3.
7251 (cold attribute): Document cold attribute sets -Os.
7252 (#pragma GCC option): Document new pragma.
7253 (#pragma GCC optimize): Ditto.
7255 * doc/options.texi (TargetSave): Document TargetSave syntax.
7256 (UInteger): Document UInteger must be used for certain flags.
7257 (Save): Document Save option to create target specific options
7258 that can be saved/restored on a function specific context.
7260 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
7261 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7263 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
7264 (TARGET_OPTION_SAVE): Ditto.
7265 (TARGET_OPTION_RESTORE): Ditto.
7266 (TARGET_OPTION_PRINT): Ditto.
7267 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7268 (TARGET_CAN_INLINE_P): Ditto.
7270 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
7272 (-mfpmath=both): Ditto.
7274 2008-07-23 Michael Meissner <gnu@the-meissners.org>
7275 Karthik Kumar <karthikkumar@gmail.com>
7277 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
7278 (TARGET_POPCNT): Ditto.
7279 (TARGET_SAHF): Ditto.
7280 (TARGET_AES): Ditto.
7281 (TARGET_PCLMUL): Ditto.
7282 (TARGET_CMPXCHG16B): Ditto.
7283 (TARGET_RECIP): Move switch into target_flags.
7284 (TARGET_FUSED_MADD): Ditto.
7285 (ix86_arch_features): Make an unsigned char type.
7286 (ix86_tune_features): Ditto.
7287 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
7288 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
7289 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
7291 * config/i386/i386.opt (arch): New TargetSave field to define
7292 fields that need to be saved for function specific option support.
7295 (branch_cost): Ditto.
7296 (ix86_isa_flags_explicit): Ditto.
7297 (tune_defaulted): Ditto.
7298 (arch_specified): Ditto.
7299 (-m128-long-double): Add Save flag to save option for target
7300 specific option support.
7302 (-maccumulate-outgoing-args): Ditto.
7303 (-malign-double): Ditto.
7304 (-malign-stringops): Ditto.
7305 (-mfancy-math-387): Ditto.
7306 (-mhard-float): Ditto.
7308 (-minline-all-stringops): Ditto.
7309 (-minline-stringops-dynamically): Ditto.
7310 (-mms-bitfields): Ditto.
7311 (-mno-align-stringops): Ditto.
7312 (-mno-fancy-math-387): Ditto.
7313 (-mno-push-args): Ditto.
7314 (-mno-red-zone): Ditto.
7315 (-mpush-args): Ditto.
7316 (-mred-zone): Ditto.
7318 (-msseregparm): Ditto.
7319 (-mstack-arg-probe): Ditto.
7334 (-mrecip): Move flag into target_flags.
7336 (-mno-fused-madd): Ditto.
7337 (-mfused-madd): Ditto.
7338 (-mabm): Move flag into ix86_isa_flags.
7345 * config/i386/i386-c.c: New file for #pragma support.
7346 (ix86_target_macros_internal): New function to #define or #undef
7347 target macros based when the user uses the #pragma GCC option to
7348 change target options.
7349 (ix86_pragma_option_parse): New function to add #pragma GCC option
7351 (ix86_target_macros): Move defining the target macros here from
7352 TARGET_CPU_CPP_BUILTINS in i386.h.
7353 (ix86_register_pragmas): Register the #pragma GCC option hook. If
7354 defined, initialize any subtarget #pragmas.
7356 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
7357 REGISTER_TARGET_PRAGMAS.
7359 * config/i386/t-i386: New file for x86 dependencies.
7360 (i386.o): Make dependencies mirror the include files used.
7361 (i386-c.o): New file, add dependencies.
7363 * config/i386/i386-protos.h (override_options): Add bool argument.
7364 (ix86_valid_option_attribute_tree): Add declaration.
7365 (ix86_target_macros): Ditto.
7366 (ix86_register_macros): Ditto.
7368 * config/i386/i386.c (ix86_tune_features): Move initialization of
7369 the target masks to initial_ix86_tune_features to allow functions
7370 to have different target options. Make type unsigned char,
7371 instead of unsigned int.
7372 (initial_ix86_tune_features): New static vector to hold processor
7373 masks for the tune variables.
7374 (ix86_arch_features): Move initialization of the target masks to
7375 initial_ix86_arch_features to allow functions to have different
7376 target options. Make type unsigned char, instead of unsigned int.
7377 (initial_ix86_arch_features): New static vector to hold processor
7378 masks for the arch variables.
7379 (enum ix86_function_specific_strings): New enum to describe the
7380 string options used for attribute((option(...))).
7381 (ix86_target_string): New function to return a string that
7382 describes the target options.
7383 (ix86_debug_options): New function to print the current options in
7385 (ix86_function_specific_save): New function hook to save the
7386 function specific global variables in the cl_target_option structure.
7387 (ix86_function_specific_restore): New function hook to restore the
7388 function specific variables from the cl_target_option structure to
7389 the global variables.
7390 (ix86_function_specific_print): New function hook to print the
7391 target specific options in the cl_target_option structure.
7392 (ix86_valid_option_attribute_p): New function hook to validate
7393 attribute((option(...))) arguments.
7394 (ix86_valid_option_attribute_tree): New function that is common
7395 code between attribute((option(...))) and #pragma GCC option
7396 support that parses the options and returns a tree holding the options.
7397 (ix86_valid_option_attribute_inner_p): New helper function for
7398 ix86_valid_option_attribute_tree.
7399 (ix86_can_inline_p): New function hook to decide if one function
7400 can inline another on a target specific basis.
7401 (ix86_set_current_function); New function hook to switch target
7402 options if the user used attribute((option(...))) or #pragma GCC
7404 (ix86_tune_defaulted): Move to static file scope from
7406 (ix86_arch_specified): Ditto.
7407 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7409 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7410 (OPTION_MASK_ISA_ABM_SET): Ditto.
7411 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7412 (OPTION_MASK_ISA_CX16_SET): Ditto.
7413 (OPTION_MASK_ISA_SAHF_SET): Ditto.
7414 (OPTION_MASK_ISA_AES_UNSET): Ditto.
7415 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7416 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7417 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7418 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7419 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7420 (struct ptt): Move to static file scope from override_options.
7421 (processor_target_table): Ditto.
7423 (ix86_handle_option): Add support for options that are now isa options.
7424 (override_options): Add support for declaring functions that
7425 support different target options than were specified on the
7426 command line. Move struct ptt, processor_target_table, cpu_names,
7427 ix86_tune_defaulted, ix86_arch_specified to static file scope.
7428 Add bool argument. Fix up error messages so the appropriate error
7429 is given for either command line or attribute.
7430 (ix86_previous_fndecl): New static to remember previous function
7431 declaration to see if we need to change target options.
7432 (ix86_builtins_isa): New array to record the ISA of each builtin
7434 (def_builtin): Always create the builtin function, even if the
7435 current ISA doesn't support it.
7436 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7437 tests for those builtins.
7438 (ix86_init_builtins): Remove TARGET_MMX test for calling
7439 ix86_init_mmx_sse_builtins.
7440 (ix86_expand_builtin): If the current ISA doesn't support a given
7441 builtin, signal an error.
7442 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7443 (TARGET_SET_CURRENT_FUNCTION): Ditto.
7444 (TARGET_OPTION_SAVE): Ditto.
7445 (TARGET_OPTION_RESTORE): Ditto.
7446 (TARGET_OPTION_PRINT): Ditto.
7447 (TARGET_CAN_INLINE_P): Ditto.
7449 2008-07-22 Rafael Ávila de Espíndola <espindola@google.com>
7451 * c-typeck.c (build_external_ref): Don't call assemble_external.
7452 * final.c (output_operand): Call assemble_external.
7454 2008-07-21 DJ Delorie <dj@redhat.com>
7456 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7457 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7459 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7461 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7462 original insn and splitter contents into ...
7463 ("*div<mode>3_fast"): ... this new pattern. Enable only if
7464 flag_unsafe_math_optimizations. Add dummy scratch register.
7465 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
7466 !flag_unsafe_math_optimizations. Returns number with next
7467 highest magnitude if this is still less or equal to the true
7468 quotient in magnitude.
7470 2008-07-21 Rafael Ávila de Espíndola <espindola@google.com>
7472 * Makefile.in: Replace toplev.h with TOPLEV_H.
7473 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7474 * c-lex.c (fe_file_change): Don't set in_system_header.
7475 * c-parser.c (c_token): Remove in_system_header.
7476 (c_lex_one_token): Don't set in_system_header.
7477 (c_parser_set_source_position_from_token): Don't set in_system_header.
7478 * diagnostic.c (diagnostic_report_diagnostic): Use location from
7481 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7482 * flags.h (in_system_header): Remove.
7483 * function.c (saved_in_system_header): Remove.
7484 (push_cfun): Don't set in_system_header.
7485 (pop_cfun): Don't set in_system_header.
7486 (push_struct_function): Don't set in_system_header.
7487 * input.h (expanded_location): Add sysp.
7488 (in_system_header_at): New.
7489 (in_system_header): New.
7490 * toplev.c (in_system_header): Remove.
7491 * toplev.h: Include input.h
7493 * tree-cfg.c (execute_warn_function_return): Call warning_at.
7494 * tree-ssa.c (warn_uninit): Call warning_at.
7495 (warn_uninitialized_var): Update calls to warn_uninit.
7496 (warn_uninitialized_phi): Update calls to warn_uninit.
7497 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7498 (expand_location): Initialize xloc.sysp.
7499 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7500 (tree_decl_with_vis): Remove in_system_header_flag.
7502 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
7505 * recog.c (asm_operand_ok): Change the order of the extra
7506 memory constraint checks.
7508 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7511 * tree-switch-conversion.c (build_one_array): Call
7512 varpool_mark_needed_node and varpool_finalize_decl
7513 instead of assemble_variable.
7515 2008-07-19 Jan Hubicka <jh@suse.cz>
7517 * cgraph.c (cgraph_add_new_function): Do early local passes.
7518 * tree-nrv.c (gate_pass_return_slot): New gate.
7519 (pass_nrv): Add the gate.
7520 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7522 (coalesce_ssa_name): Coalesce SSA names.
7523 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7524 not optimizing so unused user vars remains visible.
7525 * common.opt (flag_tree_ter): Always enable by default.
7526 * tree-ssa-ter.c: Include flags.h
7527 (is_replaceable_p): Check that locations match; when aliasing is missing
7528 be conservative about loads.
7529 * tree-optimize.c (gate_init_datastructures): Remove.
7530 (pass_init_datastructures): New.
7531 * passes.c: Reorder passes so we always go into SSA.
7533 2008-07-19 Jan Hubicka <jh@suse.cz>
7535 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7536 * doc/invoke.texi (--combine): Likewise.
7537 (-finline-functions-called-once): Update levels when enabled.
7538 (-funit-at-a-time): Document new behaviour.
7539 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7540 -fno-section-anchors when disabled explicitly.
7541 (inline params): They are not ignored now.
7542 (precompiled headers): Remove unit-at-a-time as being incompatible.
7543 * opts.c (decode_options): Handle unit-at-a-time as alias;
7544 imply -fno-section-anchors when toplevel reorder is disabled
7546 * common.opt (ftoplevel-reorder): Set default value to 2.
7547 (funit-at-a-time): Set default value to 1.
7548 * config/rs6000/rs6000.c (optimization_options): Set section anchors
7551 2008-07-19 Jan Hubicka <jh@suse.cz>
7553 * builtins.c (expand_builtin_int_roundingfn,
7554 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7557 2008-07-19 Richard Guenther <rguenther@suse.de>
7560 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7561 * tree-ssa-sccvn.c (get_constant_value_id): New function.
7562 * tree-ssa-pre.c (get_expr_value_id): For newly created
7563 constant value-ids make sure to add the expression to its
7566 2008-07-19 Jakub Jelinek <jakub@redhat.com>
7569 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7570 return value of the builtin is ignored.
7572 2008-07-19 Olivier Hainque <hainque@adacore.com>
7574 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7575 bits, a C conformant malloc implementation has to provide.
7576 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7578 2008-07-19 Joseph Myers <joseph@codesourcery.com>
7582 * reload.c (find_reloads_subreg_address): Only reload address if
7583 reloaded == 0, not for reloaded != 1.
7586 2008-07-16 Joseph Myers <joseph@codesourcery.com>
7587 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7588 (m32c_legitimate_address_p): Handle "++rii" addresses created by
7589 m32c_legitimize_reload_address.
7591 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7592 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7593 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7595 2008-07-19 Olivier Hainque <hainque@adacore.com>
7597 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7598 argument, saying whether nested array are to be collapsed
7599 into a single array type DIE with multiple subscripts.
7600 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7601 issues, centralize the nested array types collapsing control and
7602 disable the transformation for Ada.
7604 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
7607 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7609 (x86_64_shift_adj_2): New expander.
7610 (x86_64_shift_adj_3): Ditto.
7611 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7612 to split TImode operands.
7613 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7614 (ix86_split_lshr): Ditto.
7616 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
7618 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7619 and __CHAR32_TYPE__.
7620 * c-typeck.c (digest_init): Support char16_t and char32_t.
7621 (set_nonincremental_init_from_string): Idem.
7623 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
7626 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7627 PREFERRED_STACK_BOUNDARY.
7628 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7630 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
7633 * function.c (locate_and_pad_parm): Cap boundary earlier.
7635 2008-07-17 Julian Brown <julian@codesourcery.com>
7637 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7638 no-op for targets which don't use DLLs.
7640 2008-07-17 Martin Jambor <mjambor@suse.cz>
7642 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7643 that nodes are relevant by examining the node->analyzed flag.
7644 (ipcp_init_stage): Check which nodes are relevant, assert that the
7645 relevant ones are also required.
7646 (ipcp_propagate_stage): Check on the side arrays are properly
7648 (ipcp_print_all_jump_functions): Make sure not to touch any node
7649 that is not analyzed or an edge that does not have a corresponding
7650 entry in the on-the-side vectors.
7651 (ipcp_function_scale_print): Likewise.
7652 (ipcp_update_callgraph): Check that the node is relevant.
7653 (ipcp_insert_stage): Check that the node is relevant. Check there is
7654 an info for every node and edge.
7655 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7656 (ipa_print_all_tree_maps): Likewise and a new variable info.
7657 (ipa_print_all_params_modified): Likewise.
7658 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7660 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
7663 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7665 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
7667 PR rtl-optimization/36753
7668 * fwprop.c (use_killed_between): Don't shortcut
7669 single-definition global registers.
7671 2008-07-16 Jan Hubicka <jh@suse.cz>
7673 * cgraph.h (varpool_empty_needed_queue): Declare.
7674 * cgraphunit.c (output_in_order): Mark all variables as needed;
7676 * varpool.c (varpool_assemble_node): Update debug queue.
7677 (varpool_assemble_pending_decls): Don't do it here.
7678 (varpool_empty_needed_queue): New function.
7680 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7682 * recog.c (peephole2_optimize): Fix formatting.
7684 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7686 * c-pch.c (get_ident): Avoid C++ keywords.
7687 * combine-stack-adj.c (single_set_for_csa): Likewise.
7688 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7689 output_asm_insn): Likewise.
7690 * reload.c (push_secondary_reload, find_reusable_reload,
7691 push_reload, combine_reloads, find_reloads,
7692 debug_reload_to_stream): Likewise.
7693 * reload.h (struct reload): Likewise.
7694 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7695 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7696 emit_output_reload_insns): Likewise.
7697 * targhooks.c (default_secondary_reload): Likewise.
7698 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7700 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7702 * recog.c (validate_change_1, validate_change,
7703 validate_unshare_change, validate_replace_rtx_1, struct
7704 funny_match, constrain_operands, peephole2_optimize): Avoid C++
7706 * reload.c (push_secondary_reload, secondary_reload_class,
7707 scratch_reload_class, find_valid_class, find_reusable_reload,
7708 push_reload, find_dummy_reload, find_reloads_address_1,
7709 find_reloads_address_part, find_equiv_reg): Likewise.
7710 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7711 choose_reload_regs): Likewise.
7712 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7714 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7715 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7716 * sched-rgn.c (concat_INSN_LIST): Likewise.
7717 * stor-layout.c (mode_for_size, mode_for_size_tree,
7718 smallest_mode_for_size): Likewise.
7720 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7722 * cfg.c (dump_reg_info): Avoid C++ keywords.
7723 * dwarf2asm.c (dw2_force_const_mem,
7724 dw2_asm_output_encoded_addr_rtx): Likewise.
7725 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7726 * expmed.c (expand_shift): Likewise.
7727 * global.c (find_reg): Likewise.
7728 * graph.c (draw_edge): Likewise.
7729 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7730 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7731 widen_clz, widen_bswap, expand_parity, expand_unop,
7732 emit_cmp_and_jump_insn_1): Likewise.
7733 * postreload.c (reload_cse_simplify_operands): Likewise.
7734 * ra.h (add_neighbor): Likewise.
7735 * reg-stack.c (remove_regno_note, change_stack): Likewise.
7736 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7737 record_reg_classes, copy_cost, record_address_regs,
7738 invalid_mode_change_p): Likewise.
7739 * regrename.c (regrename_optimize, scan_rtx_reg,
7740 dump_def_use_chain, find_oldest_value_reg,
7741 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7743 2008-07-16 David Edelsohn <edelsohn@gnu.org>
7745 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7746 MASK_POWERPC64 for power4 in previous commit.
7748 2008-07-16 Olivier Hainque <hainque@adacore.com>
7750 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7751 instead of bare conversion to cast const-ness away.
7753 2008-07-16 Anatoly Sokolov <aesok@post.ru>
7755 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7756 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7757 * config/xtensa/xtensa.c (xtensa_function_value): New function.
7758 (TARGET_FUNCTION_VALUE): Define.
7760 2008-07-16 David Edelsohn <edelsohn@gnu.org>
7762 * config/rs6000/rs6000.c (processor_target_table): Add
7763 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7765 2008-07-16 Joseph Myers <joseph@codesourcery.com>
7768 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7769 (m32c_legitimate_address_p): Handle "++rii" addresses created by
7770 m32c_legitimize_reload_address.
7772 2007-07-16 Rafael Ávila de Espíndola <espindola@google.com>
7774 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7775 DECL_IN_SYSTEM_HEADER in sync.
7777 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
7779 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7780 * tree-ssa-pre.c (pre_expr_eq): Ditto
7781 (get_constant_for_value_id): Take a type as an argument.
7782 (fully_constant_expression): Pass in type.
7783 (find_or_generate_expression): Short circuit constant case.
7784 (create_expression_by_pieces): Remove special casing of
7786 (do_regular_insertion): Short circuit constant case.
7787 (do_partial_partial_insertion): Ditto.
7789 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7792 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7794 2008-07-15 Bob Wilson <bob.wilson@acm.org>
7796 * config/xtensa/libgcc-xtensa.ver: New file.
7797 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7799 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7801 * df-problems.c (df_set_note): Avoid C++ keywords.
7802 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7803 * dse.c (record_store, remove_useless_values): Likewise.
7804 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7805 gen_reg_rtx_offset, operand_subword, change_address_1,
7806 change_address, adjust_address_1, offset_address,
7807 widen_memory_access, emit_copy_of_insn_after): Likewise.
7808 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7809 * fwprop.c (should_replace_address, propagate_rtx_1,
7810 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7812 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7813 gcse_emit_move_after, update_ld_motion_stores): Likewise.
7814 * lcm.c (compute_insert_delete, pre_edge_lcm,
7815 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7816 * lower-subreg.c (resolve_reg_notes): Likewise.
7817 * mode-switching.c (optimize_mode_switching): Likewise.
7819 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7821 * bt-load.c (add_btr_def, migrate_btr_def,
7822 branch_target_load_optimize): Avoid C++ keywords.
7823 * caller-save.c (insert_restore, insert_save, insert_one_insn):
7825 * combine.c (subst, simplify_set, make_extraction,
7826 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7827 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7828 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7830 2008-07-15 Richard Guenther <rguenther@suse.de>
7833 * c-common.c (strict_aliasing_warning): Do not warn for
7834 TYPE_REF_CAN_ALIAS_ALL pointers.
7835 (c_common_get_alias_set): may_alias types are not special.
7836 * tree.c (build_pointer_type_for_mode): Look up the may_alias
7837 attribute and set can_ref_all accordingly.
7838 (build_reference_type_for_mode): Likewise.
7839 * doc/extend.texi (may_alias): Clarify.
7841 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
7844 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7845 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7847 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
7850 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7851 gcc_assert, instead call output_operand_lossage.
7853 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
7855 * builtins.c (std_canonical_va_list): Treat structure based
7858 2008-07-15 Ben Elliston <bje@au.ibm.com>
7860 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7862 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com>
7864 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7867 2008-07-14 Jan Hubicka <jh@suse.cz>
7869 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7870 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7871 fix predicates and constraints.
7872 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7873 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7875 2008-07-14 Doug Kwan <dougkwan@google.com>
7877 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7878 additional option file arm/eabi.opt.
7879 * config/arm/eabi.h (File): New configuration file for EABI targets.
7880 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7881 SUBSUBTARGET_EXTRA_SPECS.
7882 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7883 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7884 from STARTFILE_SPEC so that it can be referenced in an override.
7885 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7886 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7887 can be referenced in an override.
7888 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7889 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7890 so that it can be referenced in an override.
7891 (LINK_SPEC): Use BPABI_LINK_SPEC.
7892 * config/arm/eabi.opt (File): New.
7894 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7896 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7897 (FIXED_VALUE_H): New variable.
7898 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7899 input.h, fixed-value.h.
7900 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7901 (BASIC_BLOCK_H): Use $(BITMAP_H).
7902 (FUNCTION_H): Add varray.h.
7903 (IPA_REFERENCE_H): Use $(BITMAP_H).
7904 (CGRAPH_H): Add $(BASIC_BLOCK_H).
7905 (DF_H): Use $(BITMAP_H).
7906 (GGC_H): Add statistics.h.
7908 (INSN_ATTR_H): Use it.
7909 (SYSTEM_H): Add safe-ctype.h, filenames.h.
7911 (SYMTAB_H): Add $(OBSTACK_H).
7912 (CPP_INTERNAL_H): New.
7913 (TREE_DUMP_H): Add tree-pass.h.
7914 (TREE_FLOW_H): Use $(BITMAP_H)
7915 (PRETTY_PRINT_H): Use $(INPUT_H).
7916 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7919 (many object files): Fix lots of header dependencies throughout.
7921 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7923 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7925 (s-gtyp-input): Use them to write tmp-gi.list.
7926 (echo_to_gi.list): Remove.
7928 2008-07-14 Richard Guenther <rguenther@suse.de>
7930 * tree-ssa-sccvn.c (pre_info): Remove.
7931 (switch_to_PRE_table): Likewise.
7932 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
7933 (set_hashtable_value_ids): Do not create value-ids for the
7935 (run_scc_vn): Remove double test. Remove bogus special-case
7936 in value-number printing.
7937 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7938 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7940 * tree-flow-inline.h (get_value_handle): Remove.
7941 * tree-flow.h (get_value_handle): Remove.
7943 2008-07-14 Martin Jambor <mjambor@suse.cz>
7945 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7946 in which we generate arithmetics is not a subrange.
7948 2008-07-14 Martin Jambor <mjambor@suse.cz>
7950 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7952 2008-07-14 Richard Guenther <rguenther@suse.de>
7954 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7956 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
7959 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7960 reload for symbol refs moved to r0 with -fPIC.
7961 (legitimize_pic_address): Use the target register as temporary
7963 (emit_symbolic_move): Adjust comment.
7964 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7967 2008-07-14 Ben Elliston <bje@au.ibm.com>
7969 * c-common.h (C_CPP_HASHNODE): New macro.
7970 * coretypes.h (struct cpp_token): Forward declare.
7971 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7972 the context-sensitive keyword method.
7973 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
7974 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
7975 expand_bool_pixel): New.
7976 (altivec_categorize_keyword): New function.
7977 (init_vector_keywords): New function.
7978 (rs6000_macro_to_expand): Likewise.
7979 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
7980 compiling an ISO C dialect.
7982 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
7984 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
7985 (create_expression_by_pieces): Fix typo.
7986 (do_regular_insertion): Use debug counter here too.
7988 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
7991 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
7992 CONST_OK_FOR_LETTER_P. All port-local users changed.
7993 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
7994 implement Kp matching power-of-two.
7995 (CONSTRAINT_LEN): Define to match.
7996 * config/cris/cris.md: Replace all use of constraint K with Kc.
7997 ("*btst*): Use Kp for operand 0 of last alternative.
7999 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8002 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
8005 2008-07-13 Jan Hubicka <jh@suse.cz>
8007 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
8010 2008-07-13 Richard Guenther <rguenther@suse.de>
8013 * langhooks.c (lhd_print_error_function): Deal with recursive
8016 2008-07-12 Jan Hubicka <jh@suse.cz>
8018 * cgraph.c (assembler_name_hash): New static var.
8019 (hash_node_by_assembler_name, eq_assembler_name): New.
8020 (cgraph_node_for_asm): Use hashtable.
8021 (cgraph_remove_node): Maintain hashtable.
8022 (change_decl_assembler_name): Sanity check that names are not changing
8023 after aliasing was processed.
8024 * cgraph.h (varpoon_node): Add next GGC marker.
8025 * tree.c (decl_assembler_name_equal): Constify.
8026 (decl_assembler_name_hash): New.
8027 * tree.h (decl_assembler_name_equal): Constify.
8028 (decl_assembler_name_hash): Update.
8030 2008-07-12 David Daney <ddaney@avtrex.com>
8032 * config/mips/driver-native.c (host_detect_local_cpu): Handle
8035 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
8037 * doc/md.texi: Document the MIPS "v" constraint.
8038 * config/mips/mips.h (reg_class): Revert last change.
8039 (REG_CLASS_NAMES): Likewise.
8040 (REG_CLASS_CONTENTS): Likewise.
8041 * config/mips/mips.c (mips_regno_to_class): Likewise.
8042 * config/mips/constraints.md (v): Likewise, but add documentation.
8043 Add a comment to say that this constraint should not be used in
8046 2008-07-11 DJ Delorie <dj@redhat.com>
8048 * config/h8300/h8300.md (length): Fix branch offset limit.
8050 2008-07-11 Anatoly Sokolov <aesok@post.ru>
8052 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
8053 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
8054 (avr_hard_regno_scratch_ok): New function.
8055 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8056 * config/avr/avr.md (all peepholes that request a scratch register):
8057 Remove avr_peep2_scratch_safe use.
8059 2008-07-11 Tom Tromey <tromey@redhat.com>
8060 Ian Lance Taylor <iant@google.com>
8062 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
8063 (struct c_common_resword): Define.
8064 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
8065 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
8066 (c_common_reswords, num_c_common_reswords): Declare.
8067 * c-common.c (c_common_reswords): New global const array.
8068 (num_c_common_reswords): New const int.
8069 * c-parser.c (struct resword, reswords): Don't define.
8070 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
8071 (c_parse_init): Clarify mask code. Use c_common_reswords rather
8072 than reswords. If warning about C++ keywords, give them a special
8074 (c_lex_one_token): Warn about C++ keywords. Call
8075 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
8076 (c_parser_external_declaration): Look for RID_xxx rather than
8077 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
8078 (c_parser_statement_after_labels): Likewise.
8079 (c_parser_objc_class_instance_variables): Likewise.
8080 (c_parser_objc_class_declaration): Likewise.
8081 (c_parser_objc_try_catch_statement): Likewise.
8082 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
8083 (declspecs_add_type): Likewise.
8085 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
8087 * ggc-page.c (alloc_page):
8088 Substituting xmalloc, xcalloc with
8089 XNEWVEC and XCNEWVAR macros which add the
8092 2008-07-11 Richard Guenther <rguenther@suse.de>
8094 PR tree-optimization/36765
8095 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
8096 aliases from HEAP vars to SMTs.
8098 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8100 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
8101 * configure.ac (loose_warn): Move -Wc++-compat from here...
8102 (strict_warn): ...to here.
8103 * configure: Regenerate.
8105 2008-07-10 Joseph Myers <joseph@codesourcery.com>
8107 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
8108 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
8109 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
8110 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
8111 excluding more specific h8300-*-* and sh-*-* targets.
8113 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
8115 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
8117 (execute_pre): Call loop_optimizer_finalize in early exit.
8119 2008-07-10 Jakub Jelinek <jakub@redhat.com>
8122 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
8123 uids in the bitmap, not just VAR_DECL uids.
8125 PR rtl-optimization/36419
8126 * combine-stack-adj.c (adjust_frame_related_expr): New function.
8127 (combine_stack_adjustments_for_block): Call it if needed. Delete
8129 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
8130 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
8131 prologue sp adjustment.
8133 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
8136 * opts.c (print_ignored_options): Report postponed diagnostics for
8137 unknown -Wno-* options as warnings, not errors.
8138 (postpone_unknown_option_error): Renamed to...
8139 (postpone_unknown_option_warning): ... this.
8141 2008-07-09 Doug Kwan <dougkwan@google.com>
8144 2008-07-08 Doug Kwan <dougkwan@google.com>
8146 * config/arm/arm.opt (mandroid): New option.
8147 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8148 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8150 (CC1PLUS_SPEC): Same.
8152 (STARTFILE_SPEC): Same.
8153 (ENDFILE_SPEC): Same.
8154 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8157 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
8160 * config/mips/mips.h (reg_class): Remove V1_REG.
8161 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8162 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
8164 (mips_get_tp): New function.
8165 (mips_legitimize_tls_address): Use it.
8166 * config/mips/constraints.md (v): Delete.
8167 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
8168 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
8169 After reload, split into a move and ...
8170 (*tls_get_tp_<mode>_split): ...this new instruction.
8172 2008-07-09 David Daney <ddaney@avtrex.com>
8174 * config/mips/driver-native.c: Include coretypes.h and tm.h.
8176 2008-07-09 Jakub Jelinek <jakub@redhat.com>
8178 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
8179 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
8181 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
8182 htab_delete should be called. Don't free c.
8183 (lookup_tmp_var): Create temp_htab lazily.
8184 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
8185 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
8187 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
8188 lower_omp_ordered, lower_omp_critical, lower_omp_for,
8189 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
8190 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
8191 * tree-sra.c (generate_element_init): Likewise.
8192 * tree-mudflap.c (execute_mudflap_function_ops,
8193 execute_mudflap_function_decls): Likewise.
8194 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
8195 * tree-gimple.h (struct gimplify_ctx): New type.
8196 (push_gimplify_context): Adjust prototype.
8198 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
8200 * tree-ssa-pre.c (phi_translate_1): Update placement of
8203 2008-07-09 Anatoly Sokolov <aesok@post.ru>
8205 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
8206 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
8207 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
8208 * targhooks.c (default_hard_regno_scratch_ok): New function.
8209 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
8210 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
8211 * recog.c: Include "target.h".
8212 (peep2_find_free_register): Add check for global regs. Add target
8214 * Makefile.in (recog.o): Depend on target.h.
8216 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
8218 * config/sh/sh.c (sh_canonical_va_list_type): New.
8219 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
8221 2008-07-09 Raksit Ashok <raksit@google.com>
8223 * doc/invoke.texi (Option Summary): Mention new option
8224 -Wdisallowed-function-list=...
8225 (Warning Options): Document -Wdisallowed-function-list=...
8226 * common.opt (Wdisallowed-function-list=): New flag.
8227 * flags.h (warn_disallowed_functions): External definition of new
8228 boolean warning flag.
8229 (warn_if_disallowed_function_p): Declare new function.
8230 * opts.c (warning_disallowed_functions): New static variable.
8231 (warn_disallowed_functions): New boolean warning flag.
8232 (warn_if_disallowed_function_p): New function.
8233 (add_comma_separated_to_vector): Rename
8234 add_instrument_functions_exclude_list to this.
8235 (common_handle_option): Handle new option. Rename calls to
8236 add_instrument_functions_exclude_list into calls to
8237 add_comma_separated_to_vector.
8238 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
8239 based on flag warn_disallowed_functions.
8241 2008-07-09 Christian Bruel <christian.bruel@st.com>
8243 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
8244 instead of get_attr_length.
8246 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8248 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
8250 * genemit.c (gen_insn): Likewise.
8251 * gengtype.c (note_def_vec): Likewise.
8252 * gengtype.h (note_def_vec): Likewise.
8253 * genoutput.c (struct data, output_insn_data, process_template,
8254 gen_expand, gen_split, note_constraint): Likewise.
8255 * genrecog.c (new_decision, add_to_sequence, factor_tests,
8256 make_insn_sequence): Likewise.
8257 * gensupport.c (record_insn_name): Likewise.
8259 2008-07-08 Doug Kwan <dougkwan@google.com>
8261 * config/arm/arm.opt (mandroid): New option.
8262 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8263 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8265 (CC1PLUS_SPEC): Same.
8267 (STARTFILE_SPEC): Same.
8268 (ENDFILE_SPEC): Same.
8269 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8272 2008-07-08 Raksit Ashok <raksit@google.com>
8274 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
8275 (set_storage_via_setmem): Fix expected_align parameter.
8276 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
8277 missing from the list.
8278 * doc/md.texi (movmem): Explicitly state that expected alignment is
8279 to be expressed in bytes.
8280 (setmem): Explicitly state that expected alignment is to be expressed
8283 2008-07-08 Joseph Myers <joseph@codesourcery.com>
8285 * reload.c (find_reloads_subreg_address): Do not require validity
8286 of address in original mode before reloading address.
8288 2008-07-07 Tianwei Sheng <tianweis@google.com>
8290 * df-core.c (df_remove_problem): Adjust the access to avoid out of
8291 bounds array access.
8293 2008-07-08 Jakub Jelinek <jakub@redhat.com>
8295 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
8297 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
8299 Fix PR tree-optimization/23455
8300 Fix PR tree-optimization/35286
8301 Fix PR tree-optimization/35287
8302 * Makefile.in (OBJS-common): Remove tree-vn.o.
8303 (tree-vn.o): Remove.
8304 * dbgcnt.def: Add treepre_insert debug counter.
8305 * gcc/tree-flow.h (add_to_value): Updated for other changes.
8306 (debug_value_expressions): Ditto.
8307 (print_value_expressions): Ditto.
8308 * tree-pretty-print.c (dump_generic_node): Updated for
8309 VALUE_HANDLE removal.
8310 * tree-ssa-dom.c (record_equality): Ditto.
8311 (cprop_operand): Ditto.
8312 (lookup_avail_expr): Ditto.
8313 * tree-ssa-threadedge.c
8314 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
8315 (simplify_control_stmt_condition): Ditto.
8316 * tree.c (tree_code_size): Ditto.
8317 (tree_node_structure): Ditto.
8318 (iterative_hash_expr): Ditto.
8320 * tree.h (VALUE_HANDLE_ID): Ditto.
8321 (VALUE_HANDLE_EXPR_SET): Ditto.
8322 (struct tree_value_handle): Ditto.
8323 (union tree_node): Ditto.
8324 * treestruct.def: Ditto.
8325 * tree-vn.c: Removed.
8326 * tree-ssa-pre.c: Rewritten entirely.
8327 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
8328 (constant_value_ids): Ditto.
8329 (vn_nary_op_t): Moved to header.
8331 (vn_reference_op_t): Ditto
8332 (vn_reference_t): Ditto.
8333 (next_value_id): New variable.
8334 (VN_INFO): Add an assert.
8335 (vn_constant_eq): New function.
8336 (vn_constant_hash): Ditto.
8337 (get_or_alloc_constant_value_id): Ditto.
8338 (value_id_constant_p): Ditto.
8339 (vn_reference_compute_hash): De-staticify.
8340 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
8341 Disable some code with a FIXME. Remove VALUE_HANDLE use.
8342 (valueize_refs): Update opcode if it changes from ssa name to constant.
8343 (vn_reference_lookup_1): Add new argument.
8344 (vn_reference_lookup): Ditto.
8345 (vn_reference_lookup_pieces): New function.
8346 (vn_reference_insert): Add return type. Modify to deal with value ids.
8347 (vn_reference_insert_pieces): New function.
8348 (vn_nary_op_compute_hash): De-staticify.
8349 (vn_nary_op_eq): Ditto.
8350 (vn_nary_op_lookup_pieces): New function.
8351 (vn_nary_op_lookup): Add new argument.
8352 (vn_nary_op_insert_pieces): New function.
8353 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
8354 (vn_phi_insert): Ditto.
8355 (visit_unary_op): Update for callee changes.
8356 (visit_binary_op): Ditto.
8357 (visit_reference_op_load): Ditto.
8358 (visit_reference_op_store): Ditto.
8359 (init_scc_vn): Init next_value_id, constant_to_value_id and
8361 (free_scc_vn): Free them.
8362 (set_hashtable_value_ids): New function.
8363 (run_scc_vn): Use it.
8364 (get_max_value_id): New function.
8365 (get_next_value_id): Ditto.
8366 (expressions_equal_p): Moved from tree-vn.c
8367 (sort_vuses): Ditto.
8368 (sort_vuses_heap): Ditto.
8369 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
8371 * tree.c (iterative_hash_hashval_t): Made non-static
8372 * tree.h (iterative_hash_hashval_t): Declare it.
8374 2008-07-08 Martin Jambor <mjambor@suse.cz>
8376 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8377 instead of ipa_create_node_params.
8378 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8379 ipa_check_create_edge_args, free them with
8380 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8382 * ipa-prop.c: Include flags.h and tree-inline.h.
8383 (ipa_node_params_vector): New variable.
8384 (ipa_edge_args_vector): New variable.
8385 (edge_removal_hook_holder): New variable.
8386 (node_removal_hook_holder): New variable.
8387 (edge_duplication_hook_holder): New variable.
8388 (node_duplication_hook_holder): New variable.
8389 (ipa_detect_param_modifications): Check for presence of modified flags.
8390 (ipa_compute_jump_functions): Check for presence of jump functions.
8391 (ipa_free_edge_args_substructures): New function.
8392 (ipa_create_node_params): Removed.
8393 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8394 (ipa_free_node_params_substructures): New function.
8395 (ipa_free_all_node_params): Changed to deallocate the on-the-side
8397 (ipa_edge_removal_hook): New function.
8398 (ipa_node_removal_hook): New function.
8399 (duplicate_array): New function.
8400 (ipa_edge_duplication_hook): New function.
8401 (ipa_node_duplication_hook): New function.
8402 (ipa_register_cgraph_hooks): New function.
8403 (ipa_unregister_cgraph_hooks): New function.
8404 (free_all_ipa_structures_after_ipa_cp): New function.
8406 * ipa-prop.h: Include vec.h.
8407 (ipa_node_params_t): New typedef with vector types for it.
8408 (ipa_edge_args_t): New typedef with vector types for it.
8409 (IPA_NODE_REF): Changed to access an on-the-side vector.
8410 (IPA_EDGE_REF): Changed to access an on-the-side vector.
8411 (ipa_check_create_node_params): New function.
8412 (ipa_check_create_edge_args): New function.
8414 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
8417 2008-07-07 Tom Tromey <tromey@redhat.com>
8419 * configure, config.in: Rebuilt.
8420 * configure.ac: Don't check for scandir or alphasort.
8422 2008-07-07 Joseph Myers <joseph@codesourcery.com>
8424 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8425 types immediately after creating them.
8427 2008-07-07 Joseph Myers <joseph@codesourcery.com>
8429 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8431 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
8433 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8434 dump_constraint_graph.
8435 (dump_constraint_edge): New function.
8436 (dump_constraint_graph): New function.
8437 (debug_constraint_graph): New function.
8438 (dump_constraint): Removed useless comparison.
8439 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8440 (dump_constraint_graph): Declare.
8441 (debug_constraint_graph): Declare.
8442 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8444 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
8446 * config/i386/i386.c (is_va_list_char_pointer): New.
8447 (ix86_va_start): Replace compare with ms_va_list_type_node
8448 by is_va_list_char_pointer.
8449 (ix86_gimplify_va_arg): Likewise.
8451 2008-07-07 Martin Jambor <mjambor@suse.cz>
8453 * cgraph.c (cgraph_edge_max_uid): New variable.
8454 (struct cgraph_edge_hook_list): New type.
8455 (struct cgraph_node_hook_list): New type.
8456 (struct cgraph_2edge_hook_list): New type.
8457 (struct cgraph_2node_hook_list): New type.
8458 (first_cgraph_edge_removal_hook): New variable.
8459 (first_cgraph_node_removal_hook): New variable.
8460 (first_cgraph_edge_duplicated_hook): New variable.
8461 (first_cgraph_node_duplicated_hook): New variable.
8462 (cgraph_add_edge_removal_hook): New function.
8463 (cgraph_remove_edge_removal_hook): New function.
8464 (cgraph_call_edge_removal_hooks): New function.
8465 (cgraph_add_node_removal_hook): New function.
8466 (cgraph_remove_node_removal_hook): New function.
8467 (cgraph_call_node_removal_hooks): New function.
8468 (cgraph_add_edge_duplication_hook): New function.
8469 (cgraph_remove_edge_duplication_hook): New function.
8470 (cgraph_call_edge_duplication_hooks): New function.
8471 (cgraph_add_node_duplication_hook): New function.
8472 (cgraph_remove_node_duplication_hook): New function.
8473 (cgraph_call_node_duplication_hooks): New function.
8474 (cgraph_create_edge): Assign to edge uid.
8475 (cgraph_remove_edge): Call edge removal hooks.
8476 (cgraph_node_remove_callees): Call edge removal hooks.
8477 (cgraph_node_remove_callers): Call edge removal hooks.
8478 (cgraph_remove_node): Call node removal hooks.
8479 (cgraph_clone_edge): Call edge duplication hooks.
8480 (cgraph_clone_node): Call node duplication hooks.
8482 * cgraph.h (cgraph_edge): New field uid.
8483 (cgraph_edge_hook): New type.
8484 (cgraph_node_hook): New type.
8485 (cgraph_2edge_hook): New type.
8486 (cgraph_2node_hook): New type.
8488 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
8490 * config.in: Regenerate.
8492 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
8494 * gcc.c (print_sysroot): New.
8495 (option_map, display_help, process_command): Handle the
8496 -print-sysroot option.
8497 (main): Print the sysroot if requested.
8498 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8500 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8503 * unwind-pe.h (size_of_encoded_value): add attribute unused.
8505 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
8507 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8508 (assign_parm_setup_block_p): Also check mode of entry_parm.
8510 2008-07-07 Richard Guenther <rguenther@suse.de>
8512 * tree-ssa-structalias.h (set_used_smts): Remove.
8513 * tree-ssa-structalias.c (used_smts): Likewise.
8514 (set_used_smts): Likewise.
8515 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8516 call to set_used_smts.
8518 2008-07-07 Richard Guenther <rguenther@suse.de>
8520 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8521 (new_var_info): Set it to false.
8522 (solution_set_add): Correctly handle pointers outside a var and
8524 (type_safe): Treat variables with is_full_var properly.
8525 (do_sd_constraint): Likewise.
8526 (do_ds_constraint): Likewise.
8527 (process_constraint): Remove zeroing offset for !use_field_sensitive.
8528 (get_constraint_for_ptr_offset): New function.
8529 (get_constraint_for_component_ref): For addresses at least include
8530 the last field of the variable. Handle is_full_vars properly.
8531 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8532 (handle_ptr_arith): Remove.
8533 (find_func_aliases): Simplify assignment handling.
8534 (create_function_info_for): For parameter and result varinfos set
8536 (create_variable_info_for): Set is_full_var flag whenever we
8537 just created a single varinfo for a decl.
8538 (init_alias_vars): Initialize use_field_sensitive from
8539 max-fields-for-field-sensitive parameter.
8541 2008-07-07 Richard Guenther <rguenther@suse.de>
8543 PR tree-optimization/36713
8544 * tree-flow-inline.h (is_call_used): New function.
8545 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8546 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8547 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8549 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8551 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8553 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
8555 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8557 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8558 Nathan Sidwell <nathan@codesourcery.com>
8560 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
8561 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8563 * config/m68k/t-linux: New.
8564 * doc/install.texi: Document m68k-*-linux is now multilibbed by
8567 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
8569 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8570 * config/m68k/m68k-devices.def: Remove multilibs that only differ
8573 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8575 * gcc.c (execute): Fix -Wc++-compat warning.
8577 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
8580 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8581 constant for little endian.
8583 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
8585 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8586 mips_base_mips16 instead of TARGET_MIPS16.
8587 (mips_base_mips16): Declare.
8588 * config/mips/mips.c (mips_base_mips16): Make global.
8589 (was_mips16_p): Remove GTY marker.
8590 (was_mips16_pch_p): New variable.
8591 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8592 (mips_override_options): Force to non-MIPS16 mode initially.
8593 Do not complain about MIPS16 PIC incompatibilities here.
8594 Only allow -mgpopt if -mexplicit-relocs is in force for
8597 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
8599 * configure.ac: Check for caddr_t, define to char * if not defined.
8600 * configure: Regenerate.
8601 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8602 (mmap_gt_pch_use_address): Likewise.
8603 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8605 2008-07-06 Richard Guenther <rguenther@suse.de>
8607 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8608 (new_var_info): Deal with it.
8609 (solution_set_add): Likewise.
8610 (bitpos_of_field): Make signed, fix.
8611 (struct fieldoff): Remove type and decl fields. Make size field
8612 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
8614 (fieldoff_compare): Deal with it.
8615 (push_fields_onto_fieldstack): Remove has_union argument, glob
8616 adjacent non-pointer fields together.
8617 (create_function_info_for): Do not set has_union.
8618 (create_variable_info_for): Simplify.
8620 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
8622 * config.gcc (extra_headers): Add cross-stdarg.h for target
8623 x86_64-*-* and i?86-*-*.
8624 * config/i386/cross-stdarg.h: New.
8625 * builtins.c (std_fn_abi_va_list): New.
8626 (std_canonical_va_list_type): New.
8627 (stabilize_va_list): Replace va_list_type_node use by
8628 mtarget.canonical_va_list_type.
8629 (gimplify_va_arg_expr): Likewise.
8630 (expand_builtin_va_copy): Replace va_list_type_node use by
8631 mtarget.fn_abi_va_list.
8632 * tree-sra.c (is_va_list_type): New helper.
8633 (decl_can_be_decomposed_p): Replace
8634 va_list_type_node use by is_va_list_type.
8635 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8636 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8637 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8638 * config/i386/i386-protos.h (ix86_get_valist_type): New.
8639 (ix86_enum_va_list): New.
8640 * config/i386/i386.c (sysv_va_list_type_node): New.
8641 (ms_va_list_type_node): New.
8642 (ix86_function_type_abi): Remove sorry.
8643 (ix86_build_builtin_va_list_abi): New.
8644 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8646 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8647 (ix86_init_builtins_va_builtins_abi): New.
8648 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8650 (ix86_handle_abi_attribute): New.
8651 (attribute_spec): Add sysv_abi and ms_abi.
8652 (ix86_fn_abi_va_list): New.
8653 (ix86_canonical_va_list_type): New.
8654 (ix86_enum_va_list): New.
8655 (TARGET_FN_ABI_VA_LIST): New.
8656 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8657 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8658 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8659 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8660 (TARGET_ENUM_VA_LIST): New.
8661 * expr.h (std_fn_abi_va_list): New.
8662 (std_canonical_va_list_type): New.
8663 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8664 (TARGET_CANONICAL_VA_LIST_TYPE): New.
8665 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8666 TARGET_CANONICAL_VA_LIST_TYPE.
8667 * target.h (struct gcc_target): Add fn_abi_va_list hook
8668 and canonical_va_list_type hook.
8670 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8672 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8673 integral and pointer types.
8675 2008-07-04 Roger Sayle <roger@eyesopen.com>
8677 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8678 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8680 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
8683 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8685 2008-07-04 Jakub Jelinek <jakub@redhat.com>
8687 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8688 build_gimple_modify_stmt.
8689 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
8690 gimple operand. Use fold_build* instead of build*.
8692 2008-07-04 Richard Guenther <rguenther@suse.de>
8694 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8695 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8696 properly to compute the reachability set if we do field-sensitive PTA.
8697 * invoke.texi (max-fields-for-field-sensitive): Document default.
8698 * opts.c (decode_options): Set max-fields-for-field-sensitive to
8699 100 for optimize >= 2.
8701 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8703 * ggc-zone.c (lookup_page_table_if_allocated,
8704 set_page_table_entry, zone_find_object_size, alloc_small_page,
8705 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8706 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8707 -Wc++-compat and/or -Wcast-qual warnings.
8709 2008-07-04 Alan Modra <amodra@bigpond.net.au>
8712 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8713 pic_offset_table_rtx to be marked as used here.
8714 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8715 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8716 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8717 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8720 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8722 * alloc-pool.c (hash_descriptor, eq_descriptor,
8723 alloc_pool_descriptor): Fix -Wc++-compat warnings.
8724 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8726 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8727 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8728 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8729 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8732 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
8734 * tree-flow.h (loop_only_exit_p): Declare.
8735 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8736 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8737 the number of iterations if it is constant. Otherwise, if this is the
8738 only possible exit of the loop, use the conservative estimate on the
8739 number of iterations of the entire loop if available.
8741 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
8743 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8744 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8745 Add synchronization functions.
8746 * config/sync.c: New file.
8747 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8748 (LIBGCC_SYNC_CFLAGS): Likewise.
8750 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
8753 * config/i386/i386.md (mode): Add TF to "mode" attribute.
8754 (*pushtf_sse): New insn pattern.
8755 (pushtf splitters): New splitters.
8757 2008-07-03 Michael Meissner <gnu@the-meissners.org>
8760 * predict.c (build_predict_expr): Use void_type_node for the tree
8761 type, instead of NULL_TREE.
8763 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
8765 * config/i386/i386.c (contains_aligned_value_p): Return true
8767 (ix86_data_alignment): Align TCmode to 128bits.
8768 (ix86_local_alignment): Likewise.
8770 2008-07-03 Andrew Haley <aph@redhat.com>
8773 * vec.h (VEC_TA): New.
8774 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8775 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8776 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8777 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8778 (C_COMMON_FIXED_TYPES): Remove first arg.
8779 (C_COMMON_FIXED_MODE_TYPES): Likewise.
8780 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8781 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8782 not to use empty macro arguments.
8784 2008-07-02 Joseph Myers <joseph@codesourcery.com>
8786 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8787 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8788 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8789 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8790 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8791 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8792 config/ia64/crtn.asm, config/m68hc11/larith.asm,
8793 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8794 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8795 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8796 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8797 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8798 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8799 config/rs6000/e500crtres64gpr.asm,
8800 config/rs6000/e500crtres64gprctr.asm,
8801 config/rs6000/e500crtrest32gpr.asm,
8802 config/rs6000/e500crtrest64gpr.asm,
8803 config/rs6000/e500crtresx32gpr.asm,
8804 config/rs6000/e500crtresx64gpr.asm,
8805 config/rs6000/e500crtsav32gpr.asm,
8806 config/rs6000/e500crtsav64gpr.asm,
8807 config/rs6000/e500crtsav64gprctr.asm,
8808 config/rs6000/e500crtsavg32gpr.asm,
8809 config/rs6000/e500crtsavg64gpr.asm,
8810 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8811 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8812 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8813 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8814 config/sparc/sol2-cn.asm: Remove .file directives.
8816 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
8818 * resource.c (mark_referenced_resources): Look inside
8819 UNSPEC_VOLATILEs and ASM_INPUTs.
8821 2008-07-02 Ian Lance Taylor <iant@google.com>
8823 * rtlanal.c (add_reg_note): New function.
8824 * rtl.h (add_reg_note): Declare.
8825 * auto-inc-dec.c (attempt_change): Use add_reg_note.
8826 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8827 * builtins.c (expand_builtin_longjmp): Likewise.
8828 (expand_builtin_nonlocal_goto): Likewise.
8829 * calls.c (emit_call_1, expand_call): Likewise.
8830 * cfgexpand.c (add_reg_br_prob_note): Likewise.
8831 * cfglayout.c (fixup_reorder_chain): Likewise.
8832 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8833 (commit_one_edge_insertion): Likewise.
8834 * combine.c (move_deaths, distribute_notes): Likewise.
8835 * df-problems.c (df_set_note): Likewise.
8836 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8837 (set_unique_reg_note): Likewise.
8838 (emit_copy_of_insn_after): Likewise.
8839 * expr.c (expand_expr_real): Likewise.
8840 * gcse.c (add_label_notes): Likewise.
8841 * haifa-sched.c (create_check_block_twin): Likewise.
8842 * jump.c (mark_jump_label_1): Likewise.
8843 * loop-doloop.c (add_test, doloop_modify): Likewise.
8844 * loop-unswitch.c (compare_and_jump_seq): Likewise.
8845 * lower-subreg.c (move_eh_region_note): Likewise.
8846 * optabs.c (emit_libcall_block): Likewise.
8847 * predict.c (predict_insn): Likewise.
8848 (combine_predictions_for_insn): Likewise.
8849 * recog.c (peephole2_optimize): Likewise.
8850 * regmove.c (try_auto_increment): Likewise.
8851 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8852 * reload.c (find_reloads): Likewise.
8853 * reload1.c (fixup_eh_region_note): Likewise.
8854 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8855 * reorg.c (delete_prior_computation): Likewise.
8856 (delete_computation, dbr_schedule): Likewise.
8857 * config/pa/pa.c (legitimize_pic_address): Likewise.
8858 * config/sh/sh.c (sh_reorg): Likewise.
8860 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8863 * config/libgcc-glibc.ver: Add %exclude.
8864 * config/m32r/libgcc-glibc.ver: Likwise.
8865 * config/s390/libgcc-glibc.ver: Likwise.
8866 * config/sh/libgcc-glibc.ver: Likwise.
8867 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8869 * config/i386/libgcc-glibc.ver: New.
8871 * config/i386/libgcc-x86_64-glibc.ver: Removed.
8873 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8875 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8876 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8877 i[34567]86-*-linux*, x86_64-*-linux*. Add
8878 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8879 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8880 x86_64-*-linux*. Add i386/t-linux to tmake_file for
8881 i[34567]86-*-linux*, x86_64-*-linux*.
8883 * libgcc-std.ver: Add empty GCC_4.4.0.
8885 * mkmap-symver.awk: Support multiple versions per symbol.
8887 * config/i386/i386.c (ix86_init_builtins): Always define
8888 __builtin_fabsq and __builtin_copysignq with fallbacks.
8889 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8890 and __builtin_copysignq if SSE2 isn't available.
8892 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8893 (LIBGCC2_TF_CEXT): Likwise.
8896 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8898 * config/i386/sfp-machine.h: Moved to libgcc.
8900 * config/i386/sfp-machine.h: New.
8901 * config/i386/t-linux: Likwise.
8903 * config/i386/t-darwin: Remove softfp_wrap_start and
8905 * config/i386/t-darwin64: Likewise.
8907 * config/i386/t-fprules-softfp64: Renamed to ...
8908 * config/i386/t-fprules-softfp: This.
8910 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8911 and softfp_wrap_end.
8913 2008-07-02 Jason Merrill <jason@redhat.com>
8915 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8917 * tree.c (ctor_to_list): New fn.
8918 * tree.h: Declare it.
8919 (CONSTRUCTOR_ELT): New macro.
8920 (CONSTRUCTOR_NELTS): New macro.
8922 2008-07-02 Richard Guenther <rguenther@suse.de>
8924 * tree-ssa-structalias.c (struct variable_info): Reorder
8925 to fill padding on 64bit hosts. Make collapsed_to an int.
8926 (get_varinfo_fc): Deal with that.
8927 (new_var_info): Likewise.
8928 (collapse_rest_of_var): Likewise.
8930 2008-07-02 Joshua Sumali <jsumali@redhat.com>
8932 * doc/install.texi (--enable-java-home): Document.
8933 (--enable-aot-compile-rpm): Likewise.
8934 (--with-arch-directory): Likewise.
8935 (--with-os-directory): Likewise.
8936 (--with-origin-name): Likewise.
8937 (--with-arch-suffix): Likewise.
8938 (--with-jvm-root-dir): Likewise.
8939 (--with-jvm-jar-dir): Likewise.
8940 (--with-python-dir): Likewise.
8942 2008-07-02 Richard Guenther <rguenther@suse.de>
8944 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8945 from decls explicitly. Merge operand checking from tuples.
8947 2008-07-02 Martin Jambor <mjambor@suse.cz>
8949 * tree-switch-conversion.c: Included timevar.h which I forgot before.
8951 2008-07-02 Martin Jambor <mjambor@suse.cz>
8953 * tree-switch-conversion.c: Included timevar.h
8954 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8956 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8958 2008-07-02 Martin Jambor <mjambor@suse.cz>
8960 * tree-switch-conversion.c: Corrected various comments and
8962 (build_constructors): Fixed minor formatting mistakes.
8964 * invoke.texi (Optimize Options): Corrected the
8965 switch-conversion-max-branch-ratio parameter.
8967 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
8969 * final.c (asm_insn_count): Return zero for an empty asm body.
8971 2008-07-02 Richard Guenther <rguenther@suse.de>
8973 * bitmap.h (bitmap_set_bit): Return bool.
8974 (bitmap_clear_bit): Likewise.
8975 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
8976 write to the bitmap if it would.
8977 (bitmap_clear_bit): Likewise.
8978 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8979 bitmap_set_bit return value.
8980 (add_pred_graph_edge): Likewise.
8981 (add_graph_edge): Likewise.
8982 (do_sd_constraint): Likewise.
8983 (do_ds_constraint): Likewise.
8985 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8987 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8988 Fix -Wc++-compat and/or -Wcast-qual warnings.
8989 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8990 gen_regparm_prefix): Likewise.
8991 * vmsdbgout.c (write_modbeg, lookup_filename,
8992 vmsdbgout_source_line, vmsdbgout_init): Likewise.
8994 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
8996 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8997 defaults.h definition apply.
8999 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
9001 * function.c (assign_parm_remove_parallels): New.
9002 (assign_parm_setup_block_p): Do not return true for non-BLKmode
9004 (assign_parm_setup_block): Do not handle them.
9005 (assign_parm_setup_reg, assign_parm_setup_stack): Call
9006 assign_parm_remove_parallels.
9008 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
9010 * c-typeck.c (convert_for_assignment): Use
9011 vector_targets_convertible_p.
9012 * c-common.c (vector_targets_convertible_p): New.
9013 * c-common.h (vector_targets_convertible_p): New prototype.
9014 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
9015 opaque_p_V2SI_type_node.
9017 2008-07-01 Steve Ellcey <sje@cup.hp.com>
9019 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
9022 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
9024 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
9025 TFmode constants via two element DImode vector for hosts with
9026 HOST_BITS_PER_WIDE_INT < 64.
9027 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
9028 also for HOST_BITS_PER_WIDE_INT < 64.
9030 2008-07-01 Richard Guenther <rguenther@suse.de>
9032 PR tree-optimization/36666
9033 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
9034 (get_constraint_exp_from_ssa_var): Split into ...
9035 (get_constraint_exp_for_temp): ... this ...
9036 (get_constraint_for_ssa_var): ... and that.
9037 Return constraint expressions for all touched sub-fields
9038 if the results address is not taken.
9039 (process_constraint): Remove assertion that aggregate
9040 assignments do not happen at this place.
9041 (get_constraint_for_component_ref): Add address_p argument.
9042 Return constraint expressions for all touched sub-fields
9043 if the results address is not taken.
9044 (do_deref): Use get_constraint_exp_for_temp.
9045 (get_constraint_for_1): Rename from ...
9046 (get_constraint_for): ... this. Add the old function as wrapper.
9047 (do_structure_copy): Use get_constraint_for_1.
9049 2008-07-01 Martin Jambor <mjambor@suse.cz>
9051 * Makefile.in (tree-switch-conversion.o): Add.
9052 (OBJS-common): Add tree-swtch-conversion.o.
9053 * passes.c (init_optimization_passes): Add pass_convert_switch.
9054 * tree-pass.h: (pass_convert_switch): Add.
9055 * tree-switch-conversion.c: New file.
9056 * gcc.dg/tree-ssa/cswtch.c: New testcase.
9057 * common.opt (ftree-cswtch): New option.
9058 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9059 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9060 * opts.c (decode_options): Set flag_tree_switch_conversion when
9061 optimization level is >= 2.
9062 * doc/invoke.texi (Optimize Options): Added description of
9063 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
9065 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9067 * config/darwin-driver.c (darwin_default_min_version): Fix
9068 -Wc++-compat warnings.
9070 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
9072 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
9075 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
9077 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
9079 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
9081 PR rtl-optimization/34744
9082 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
9083 (df_scan_free_internal): Free data structures not
9084 allocated in storage pools.
9085 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
9086 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
9087 df_scan_free_mws_vec.
9088 * dse.c (dse_step6): Free offset_map_p and offset_map_n
9091 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
9093 * config/i386/i386.c (contains_aligned_value_p): Return true
9095 (ix86_function_arg_boundary): Return its natural boundary
9097 (return_in_memory_32): Don't check TDmode.
9098 (ix86_split_to_parts): Support splitting into 4 parts and
9099 support TFmode for 32bit target.
9100 (ix86_split_long_move): Support splitting into 4 parts.
9101 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
9103 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
9104 (ix86_init_builtins): Here.
9105 (ix86_scalar_mode_supported_p): Always return true for TFmode.
9106 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
9107 'q' and 'w', respectively.
9109 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
9111 (movtf_internal): Likewise.
9112 (<code>tf2): Likewise.
9113 (*absnegtf2_sse): Likewise.
9114 (copysign<mode>3): Likewise.
9115 (copysign<mode>3_const): Likewise.
9116 (copysign<mode>3_var): Likewise.
9117 (define_split UNSPEC_COPYSIGN): Likewise.
9118 * config/i386/sse.md (*nandtf3): Likewise.
9119 (<code>tf3): Likewise.
9120 (*<code>tf3): Likewise.
9122 2008-06-30 Joey Ye <joey.ye@intel.com>
9123 H.J. Lu <hongjiu.lu@intel.com>
9125 * global.c (compute_regsets): Set frame_pointer_needed here.
9126 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
9128 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9130 * doc/install.texi (specific): Expand Windows build notes.
9132 2008-06-30 Ira Rosen <irar@il.ibm.com>
9134 PR tree-optimization/36648
9135 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
9136 number of prolog iterations by step. Fix the comment.
9138 2008-06-30 Richard Guenther <rguenther@suse.de>
9141 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
9142 handle calls from ECF_MALLOC functions.
9143 (handle_pure_call): ECF_MALLOC functions do not return
9145 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
9147 2008-06-29 Andreas Schwab <schwab@suse.de>
9149 * config/m68k/m68k.c (print_operand): Always print a float
9151 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
9152 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
9155 * config/rs6000/x-linux64: Remove never used file.
9157 2008-06-29 Richard Guenther <rguenther@suse.de>
9159 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
9161 (struct alias_info): Move ...
9162 * tree-ssa-alias.c: ... here.
9163 (update_alias_info): Declare.
9164 (compute_may_aliases): Call it.
9165 (update_alias_info): New function.
9166 * tree-ssa-structalias.c (update_alias_info): Move ...
9167 * tree-ssa-alias.c (update_alias_info_1): ... here.
9168 * tree-ssa-structalias.c (process_constraint_1): Remove
9169 unused from_call argument. Rename to ...
9170 (process_constraint): ... this. Delete old wrapper.
9171 (make_constraint_to): Adjust callers.
9172 (handle_const_call): Likewise.
9173 (handle_pure_call): Likewise.
9174 (init_base_vars): Likewise.
9175 (handle_lhs_call): Likewise. Remove unnecessary constraint.
9176 (find_func_aliases): We don't need structure copies for
9178 (make_constraint_from_anything): Remove.
9179 (create_variable_info_for): For globals make constraints
9180 from escaped, not from anything.
9181 (compute_points_to_sets): Do not call update_alias_info.
9182 (ipa_pta_execute): Use make_constraint_from.
9184 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9186 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
9187 (bitmap.o-warn, dominance.o-warn): New.
9188 * configure.ac (cxx_compat_warn): Delete.
9189 (loose_warn): Add -Wcast-qual and -Wc++-compat.
9190 * system.h: Remove #pragma diagnostic for -Wcast-qual and
9192 * configure: Regenerate.
9194 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
9197 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9199 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
9200 * df-scan.c (df_notes_rescan): Likewise.
9201 * ggc-page.c (set_page_table_entry): Likewise.
9202 * intl.c (gcc_gettext_width): Likewise.
9203 * varasm.c (get_unnamed_section, get_noswitch_section,
9204 get_section): Likewise.
9206 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
9208 * regrename.c (build_def_use): Don't copy RTX.
9210 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
9212 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
9213 (Type Attributes): Fix nesting of @table and @subsection. Adjust
9214 punctuation. Use @ref instead of @xref.
9215 (Function Names): Remove stray @display/@end display.
9216 (C++ Attributes): Use @ref instead of @xref.
9217 (Deprecated Features): Fix punctuation around @xref.
9218 (Backwards Compatibility): Likewise.
9219 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
9221 2008-06-28 Joseph Myers <joseph@codesourcery.com>
9223 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
9224 constants for E500 double.
9226 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9228 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
9229 element type of const_vector.
9231 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
9233 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
9234 Remove FLAGS_REG clobber from expander pattern.
9235 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
9236 (anddi3, andsi3, andhi3, andqi3): Ditto.
9237 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
9238 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
9239 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
9240 (ashlsi3, ashlhi3, ashlqi3): Ditto.
9241 (ashrsi3, ashrhi3, ashrqi3): Ditto.
9242 (lshrsi3, lshrhi3, lshrqi3): Ditto.
9243 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
9244 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
9246 2008-06-28 Richard Guenther <rguenther@suse.de>
9248 * tree-ssa-structalias.c (callused_id, var_callused,
9249 callused_tree): Add.
9250 (handle_pure_call): New function.
9251 (find_func_aliases): Call it.
9252 (find_what_p_points_to): Handle the call-used set.
9253 (clobber_what_escaped): Likewise.
9254 (compute_call_used_vars): New function.
9255 (init_base_vars): Init the call-used variable.
9256 (do_sd_constraint): Do not propagate the solution from CALLUSED
9257 but use CALLUSED as a placeholder.
9258 (solve_graph): Likewise.
9259 * tree-flow-inline.h (gimple_call_used_vars): New function.
9260 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
9261 (compute_call_used_vars): Declare.
9262 * tree-ssa-alias.c (set_initial_properties): Call
9263 compute_call_used_vars.
9264 (reset_alias_info): Clear call-used variables.
9265 (add_call_clobber_ops): Assert we are not called for const/pure
9266 functions. Remove handling of them.
9267 (add_call_read_ops): Handle pure functions by adding the
9268 call-used set of variables as VUSEs.
9269 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
9270 (delete_tree_ssa): Free it.
9271 * tree-dfa.c (remove_referenced_var): Clear the var from the
9274 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
9276 * tree.c (build_varargs_function_type_list): New.
9277 (build_function_type_list_1): New.
9278 (build_function_type_list): Use build_function_type_list_1.
9279 * tree.h (build_varargs_function_type_list): New.
9281 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9284 * config/spu/spu.c (spu_builtin_splats): Do not generate
9285 invalid CONST_VECTOR expressions.
9286 (spu_expand_vector_init): Likewise.
9288 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
9290 * optabs.c (libfunc_decls): New variable.
9291 (libfunc_decl_hash, libfunc_decl_eq): New functions.
9292 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
9293 for the same function twice.
9295 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
9297 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
9298 ix86_expand_binary_operator directly.
9299 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
9301 (*ashrti3_1): Ditto.
9302 (*lshrti3_1): Ditto.
9303 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
9304 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
9305 using only one splitter. Conditionaly execute splitter before or
9306 after peephole2 pass.
9307 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
9308 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
9309 Use only one alternative in asm template.
9310 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
9312 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
9313 "J" operand constraint for operand 2.
9314 (*ashldi3_cconly_rex64): Ditto.
9315 (*ashrdi3_cmp_rex64): Ditto.
9316 (*ashrdi3_cconly_rex64): Ditto.
9317 (*lshrdi3_cmp_rex64): Ditto.
9318 (*lshrdi3_cconly_rex64): Ditto.
9319 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
9320 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
9321 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
9324 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9326 * gimplify.c (omp_is_private): Don't return true if decl is not
9327 already private on #pragma omp for or #pragma omp parallel for.
9330 * tree-cfg.c (struct move_stmt_d): Replace block field with
9331 orig_block and new_block fields.
9332 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
9333 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
9334 (move_block_to_fn): Replace vars_map and new_label_map arguments
9335 with struct move_stmt_d pointer.
9336 (replace_block_vars_by_duplicates): New function.
9337 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
9338 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
9339 all subblocks of ORIG_BLOCK to the new function. Call
9340 replace_block_vars_by_duplicates.
9341 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
9342 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
9343 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
9344 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
9345 (expand_omp): Temporarily set input_location to the location of
9346 region's controlling stmt.
9347 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
9348 BIND_EXPR, push ctx->block_vars and gimplification vars into
9349 the BIND_EXPR and its block's BLOCK_VARS instead of directly
9351 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
9352 there are any BLOCK_VARS.
9353 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
9354 OMP_PARALLEL or OMP_TASK stmt.
9355 (lower_omp): Save and restore input_location around the lower_omp_1
9358 2008-06-27 Richard Guenther <rguenther@suse.de>
9360 PR tree-optimization/36400
9361 PR tree-optimization/36373
9362 PR tree-optimization/36344
9363 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9364 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9365 (update_alias_info): Remove call clobbering code.
9366 (make_constraint_to): New helper function.
9367 (make_escape_constraint): Likewise.
9368 (handle_rhs_call): Use it on all pointer containing arguments.
9369 Also mark the static chain escaped.
9370 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9371 instead of ANYTHING.
9372 (make_constraint_from): New helper split out from ...
9373 (make_constraint_from_anything): ... here.
9374 (find_func_aliases): Add constraints for escape sites.
9375 (intra_create_variable_infos): Make constraints from NONLOCAL
9377 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9379 (clobber_what_p_points_to): Remove.
9380 (clobber_what_escaped): New function.
9381 (init_base_vars): Init NONLOCAL and ESCAPED.
9382 (do_sd_constraint): Do not propagate the solution from ESCAPED
9383 but use ESCAPED as a placeholder.
9384 (solve_graph): Likewise.
9385 * tree-flow.h (clobber_what_p_points_to): Remove.
9386 (clobber_what_escaped): Declare.
9387 * tree-ssa-alias.c (set_initial_properties): Call it.
9388 Remove code clobbering escaped pointers.
9390 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
9392 * function.c (allocate_struct_function): Only allocate a unique
9393 funcdef_no if the decl is nonzero.
9395 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
9397 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9398 * config/mips/mips.c (mips_split_const_insns): New function.
9399 * config/mips/mips.md (move_type): New attribute.
9400 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
9401 (dword_mode): New attribute.
9402 (type): Avoid long line. Map "move_type"s to "type"s,
9403 choosing "multi" for doubleword moves if appropriate.
9404 Swap MTC/MFC comments to match their declaration order.
9405 (extended_mips16): Default to "yes" if "move_type" is "sll0",
9406 "type" is "branch" or "jal" is "direct".
9407 (length): Handle "extended_mips16" first. Make the default
9408 "0" for "ghost" instructions. Set the length from "move_type".
9409 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9410 of "type", with "sll0" for the register alternative. Remove the
9411 "extended_mips16" attribute.
9412 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9413 of "type", with "shift_shift" for the register alternative.
9414 Remove the "length" attribute.
9415 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9416 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9417 of "type", with "andi" for the register alternative.
9418 (*zero_extendqihi2): Likewise.
9419 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9420 of "andi" instead of a "type" of "arith".
9421 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9423 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9424 (mov_<store>r, *mov<mode>_ra): Likewise.
9425 (extendsidi2): Use "move_type" instead of "type", with "move"
9426 for the register alternative.
9427 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9428 of "type", with "signext" for the register alternative.
9429 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9430 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9431 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9432 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9433 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9434 (unnamed branch insn): Likewise.
9435 (*movdi_gp32_fp64): Fold into...
9436 (*movdi_32bit): ...here.
9437 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9438 (*movdf_hardfloat): ...this new pattern.
9439 (*movdf_softfloat): Remove redundant FPR alternatives.
9440 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9441 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9442 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
9443 the "move" attribute.
9444 (*movdi_32bit): Use "move_type" instead of "type" and remove the
9445 "length" attribute. Use "fpload" and "fpstore" instead of "load"
9446 and "store" for COP loads and stores.
9447 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9448 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9449 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9450 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9451 (*movtf_mips16, *movv2sf): Likewise.
9452 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9453 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9454 (mfhc1<mode>): Use "move_type" instead of "move".
9455 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9456 (loadgp_blockage): Remove the "length" attribute.
9457 (blockage, set_got_version, update_got_version): Likewise.
9458 (call_internal): Remove the "extended_mips16" attribute.
9459 (call_value_internal, call_value_multiple_internal): Likewise.
9460 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9462 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9463 the "length" attribute.
9465 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9467 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9468 -Wcast-qual warnings.
9469 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9470 handle_pragma_pop_macro): Likewise.
9471 * collect2.c (resolve_lib_name): Likewise.
9472 * config/arc/arc.c (arc_init): Likewise.
9473 * config/arm/arm.c (neon_builtin_compare,
9474 locate_neon_builtin_icode): Likewise.
9475 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9476 * config/bfin/bfin.c (bfin_init_machine_status,
9477 bfin_optimize_loop): Likewise.
9478 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9479 * config/cris/cris.c (cris_init_expanders): Likewise.
9480 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9481 * config/darwin.c (machopic_indirection_eq,
9482 machopic_indirection_name, machopic_output_indirection): Likewise.
9483 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9484 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9485 frv_optimize_membar): Likewise.
9486 * config/i386/cygwin.h (mingw_scan,
9487 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9488 * config/i386/cygwin1.c (mingw_scan): Likewise.
9489 * config/i386/i386.c (machopic_output_stub): Likewise.
9490 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9491 i386_pe_unique_section): Likewise.
9492 * config/ia64/ia64.c (ia64_init_machine_status,
9493 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9495 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9496 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9497 * config/m68k/m68k.c (m68k_handle_option,
9498 m68k_sched_md_init_global): Likewise.
9499 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9500 mcore_unique_section): Likewise.
9501 * config/mips/mips.c (mips_block_move_straight,
9502 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9504 * config/mmix/mmix.c (mmix_init_machine_status,
9505 mmix_encode_section_info): Likewise.
9506 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9507 * config/rs6000/rs6000.c (rs6000_init_machine_status,
9508 print_operand_address, output_toc, redefine_groups,
9509 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9510 * config/s390/s390.c (s390_init_machine_status): Likewise.
9511 * config/score/score.c (score_block_move_straight,
9512 score_block_move_loop_body): Likewise.
9513 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9514 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9515 * emit-rtl.c (find_auto_inc): Likewise.
9516 * gcc.c (translate_options, process_command): Likewise.
9517 * reorg.c (dbr_schedule): Likewise.
9518 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9519 * xcoffout.c (xcoffout_declare_function): Likewise.
9521 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
9523 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9524 ipa-pta working again.
9526 2008-06-27 David Edelsohn <edelsohn@gnu.org>
9528 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9531 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
9533 * config.gcc (powerpc*-*-*): Add new core e500mc.
9534 * config/rs6000/e500mc.md: New file.
9535 * config/rs6000/rs6000.c (processor_costs): Add new costs for
9537 (rs6000_override_options): Add e500mc case to
9538 processor_target_table. Altivec and Spe options not allowed
9539 with e500mc. Add isel instruction to e500mc by
9540 default. Initialize rs6000_cost for e500mc.
9541 (rs6000_issue_rate): Set issue rate for e500mc.
9542 * config/rs6000/rs6000.h (processor_type): Add
9543 PROCESSOR_PPCE500MC.
9544 (ASM_CPU_SPEC): Add e500mc.
9545 Set TARGET_ISEL to rs6000_isel.
9546 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9547 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9548 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9550 * doc/invoke.texi: Add e500mc to list of cpus.
9552 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9555 * c-lex.c (lex_charconst): Initialize unsignedp.
9557 2008-06-27 Olivier Hainque <hainque@adacore.com>
9559 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9560 documented assumptions.
9562 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
9564 * dwarf2out.c: Remove trailing white spaces. Break long line
9567 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
9569 * libfuncs.h (LTI_synchronize): New libfunc_index.
9570 (synchronize_libfunc): Declare.
9571 * builtins.c (expand_builtin_synchronize): Consider using
9572 synchronize_libfunc before falling back on an asm blockage.
9573 * config/mips/mips.c: Include libfuncs.h
9574 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9576 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
9578 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9579 parameter. Copy stack_reg to r11 where appropriate.
9580 (no_global_regs_above): Add gpr parameter.
9581 (rs6000_stack_info): Only add padding for SPE save area if we
9582 are saving SPE GPRs and CR.
9583 (saveres_routine_syms): New variable.
9584 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9586 (rs6000_savres_routine_sym): New function.
9587 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9589 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
9590 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
9591 Tweak FPR out-of-line saving.
9592 (rs6000_make_savres_rtx): New function.
9593 (rs6000_use_multiple_p): New function.
9594 (rs6000_savres_strategy): New function.
9595 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
9596 out-of-line if appropriate.
9597 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9598 if we are optimizing for size.
9599 (GP_SAVE_INLINE): Define.
9600 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9601 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9602 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9603 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9604 (*save_fpregs_<mode>): Add use of r11.
9605 (*restore_gpregs_<mode>): New insn.
9606 (*return_and_restore_gpregs_<mode>): New insn.
9607 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9609 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9610 (*restore_gpregs_spe): New insn.
9611 (*return_and_restore_gpregs_spe): New insn.
9612 * config/rs6000/predicates.md (save_world_operation): Fix check.
9614 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9616 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9617 this point, so assert that.
9619 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9621 * cfganal.c: Include vec.h and vecprim.h.
9622 (compute_idf): Import from...
9623 * tree-into-ssa (compute_idf): ...here.
9624 * basic-block.h (compute_idf): Export.
9626 2008-06-26 Joseph Myers <joseph@codesourcery.com>
9628 * c-decl.c (merge_decls): Use !current_function_decl to check for
9629 extern declaration of C99 inline function being at file scope.
9631 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
9633 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9635 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9637 * alias.c (record_alias_subset, init_alias_analysis): Fix
9638 -Wc++-compat and/or -Wcast-qual warnings.
9639 * attribs.c (lookup_attribute_spec): Likewise.
9640 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9641 copy_bb, connect_traces,
9642 find_rarely_executed_basic_blocks_and_cr): Likewise.
9643 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9644 note_btr_set, migrate_btr_defs): Likewise.
9645 * builtins.c (result_vector, expand_builtin_memcpy,
9646 expand_builtin_mempcpy_args, expand_builtin_strncpy,
9647 builtin_memset_read_str, expand_builtin_printf,
9648 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9650 * caller-save.c (mark_set_regs): Likewise.
9651 * calls.c (expand_call, emit_library_call_value_1): Likewise.
9652 * cgraph.c (cgraph_edge): Likewise.
9653 * combine.c (likely_spilled_retval_1): Likewise.
9654 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9655 htab_counts_entry_del, get_coverage_counts): Likewise.
9656 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9657 new_cselib_val): Likewise.
9658 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9659 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9661 * df-core.c (df_compact_blocks): Likewise.
9662 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9663 * df-scan.c (df_grow_reg_info, df_ref_create,
9664 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9665 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9666 df_record_entry_block_defs, df_record_exit_block_uses,
9667 df_bb_verify): Likewise.
9668 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9669 DF_REF_EXTRACT_MODE_CONST): New.
9670 * dominance.c (get_immediate_dominator, get_dominated_by,
9671 nearest_common_dominator, root_of_dom_tree,
9672 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9673 -Wc++-compat and/or -Wcast-qual warnings.
9674 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9675 record_store, replace_read, check_mem_read_rtx, scan_insn,
9676 dse_step1, dse_record_singleton_alias_set): Likewise.
9677 * dwarf2asm.c (dw2_force_const_mem): Likewise.
9679 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9681 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9682 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9683 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9684 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9685 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9686 add_ranges_num, add_ranges_by_labels, file_info_cmp,
9687 file_name_acquire, output_file_names, add_const_value_attribute,
9688 premark_used_types_helper, file_table_eq, file_table_hash,
9689 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9690 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9691 -Wcast-qual warnings.
9692 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9693 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9694 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9695 gen_reg_rtx, start_sequence, init_emit): Likewise.
9696 * et-forest.c (et_new_occ, et_new_tree): Likewise.
9697 * except.c (init_eh_for_function, gen_eh_region,
9698 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9699 arh_to_landing_pad, arh_to_label, add_action_record,
9700 add_call_site, switch_to_exception_section): Likewise.
9701 * expmed.c (synth_mult): Likewise.
9702 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9703 store_expr): Likewise.
9704 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9706 * function.c (assign_stack_temp_for_type,
9707 allocate_struct_function, match_asm_constraints_1): Likewise.
9708 * gcov-io.c (gcov_allocate): Likewise.
9709 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9710 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9711 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9712 record_one_set, insert_expr_in_table, insert_set_in_table,
9713 dump_hash_table, compute_hash_table_work, alloc_hash_table,
9714 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9715 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9716 -Wcast-qual warnings.
9718 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9720 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9721 -Wcast-qual warnings.
9722 * gcc.c (process_command): Likewise.
9723 * genattrtab.c (oballoc): Use XOBNEW.
9724 (oballocvec): Define.
9725 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9726 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9727 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9728 -Wc++-compat and/or -Wcast-qual warnings.
9729 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9730 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9731 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9732 gen_presence_absence_set, gen_automaton, gen_regexp_el,
9733 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9734 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9735 add_excls, process_presence_absence_names,
9736 process_presence_absence_patterns, add_presence_absence,
9737 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9738 get_free_state, add_arc, get_free_automata_list_el,
9739 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9740 transform_3, cache_presence, create_ainsns, create_automata,
9741 create_state_ainsn_table, dfa_insn_code_enlarge,
9742 output_trans_func, output_min_issue_delay_func,
9743 output_dead_lock_func, output_reset_func,
9744 output_get_cpu_unit_code_func, output_dfa_start_func,
9745 expand_automata): Likewise.
9746 * genextract.c (gen_insn): Likewise.
9747 * gengtype-lex.l: Likewise.
9748 * gengtype.c (read_input_list, adjust_field_type,
9749 process_gc_options): Likewise.
9750 * genoutput.c (note_constraint): Likewise.
9751 * genpreds.c (mangle, add_constraint): Likewise.
9752 * genrecog.c (process_define_predicate, new_decision,
9753 add_to_sequence): Likewise.
9754 * gensupport.c (record_insn_name): Likewise.
9756 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9758 * config/i386/driver-i386.c (detect_caches_amd,
9759 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9760 and/or -Wcast-qual warnings.
9761 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9762 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9763 gt_pch_save): Likewise.
9764 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9765 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9766 * global.c (compute_regsets): Likewise.
9767 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9768 finish_graph_dump_file): Likewise.
9769 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9770 unlink_bb_notes): Likewise.
9771 * integrate.c (get_hard_reg_initial_val): Likewise.
9772 * ipa-prop.c (ipa_push_func_to_list): Likewise.
9773 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9774 * local-alloc.c (update_equiv_regs): Likewise.
9775 * loop-invariant.c (check_invariant_table_size,
9776 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9778 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9779 altered_reg_used, mark_altered): Likewise.
9780 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9781 insert_var_expansion_initialization,
9782 combine_var_copies_in_loop_exit, apply_opt_in_copies,
9783 release_var_copies): Likewise.
9784 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9785 analyze_matrix_decl, add_allocation_site, analyze_transpose,
9786 analyze_accesses_for_phi_node, check_var_notmodified_p,
9787 check_allocation_function, find_sites_in_func,
9788 record_all_accesses_in_func, transform_access_sites,
9789 transform_allocation_sites): Likewise.
9790 * omp-low.c (new_omp_region, create_omp_child_function_name,
9791 check_omp_nesting_restrictions, check_combined_parallel,
9792 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9793 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9794 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9795 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9797 * opts-common.c (prune_options): Likewise.
9798 * opts.c (add_input_filename, print_filtered_help,
9799 get_option_state): Likewise.
9800 * params.c (add_params): Likewise.
9801 * passes.c (set_pass_for_id, next_pass_1,
9802 do_per_function_toporder, pass_fini_dump_file): Likewise.
9803 * postreload.c (reload_cse_simplify_operands): Likewise.
9804 * predict.c (tree_predicted_by_p, tree_predict_edge,
9805 clear_bb_predictions, combine_predictions_for_bb): Likewise.
9807 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9809 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9811 * recog.c (check_asm_operands, validate_change_1): Likewise.
9812 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9813 subst_asm_stack_regs): Likewise.
9814 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9815 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9816 * regmove.c (reg_is_remote_constant_p): Likewise.
9817 * regrename.c (regrename_optimize, scan_rtx_reg,
9818 kill_clobbered_value, kill_set_value, kill_autoinc_value):
9820 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9821 regstat_compute_calls_crossed): Likewise.
9822 * reload1.c (init_reload, new_insn_chain,
9823 has_nonexceptional_receiver, reload, copy_reloads,
9824 calculate_needs_all_insns, init_elim_table): Likewise.
9825 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9826 * rtl.c (shallow_copy_rtx_stat): Likewise.
9827 * rtlanal.c (parms_set): Likewise.
9828 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9829 sbitmap_resize, sbitmap_vector_alloc): Likewise.
9830 * sched-ebb.c (earliest_block_with_similiar_load,
9831 add_deps_for_risky_insns): Likewise.
9832 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9833 schedule_region): Likewise.
9834 * see.c (eq_descriptor_pre_extension,
9835 hash_descriptor_pre_extension, hash_del_pre_extension,
9836 eq_descriptor_properties, hash_descriptor_properties,
9837 hash_del_properties, see_seek_pre_extension_expr,
9838 see_initialize_data_structures, see_print_register_properties,
9839 see_print_pre_extension_expr, see_delete_merged_def_extension,
9840 see_delete_unmerged_def_extension, see_emit_use_extension,
9841 see_pre_delete_extension, see_map_extension, see_commit_changes,
9842 see_analyze_merged_def_local_prop,
9843 see_analyze_merged_def_local_prop,
9844 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9845 see_set_prop_merged_def, see_set_prop_unmerged_def,
9846 see_set_prop_unmerged_use, see_print_one_extension,
9847 see_merge_one_use_extension, see_merge_one_def_extension,
9848 see_store_reference_and_extension, see_update_uses_relevancy,
9849 see_update_defs_relevancy): Likewise.
9850 * statistics.c (hash_statistics_hash, hash_statistics_eq,
9851 hash_statistics_free, curr_statistics_hash): Likewise.
9852 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9853 expand_asm_operands, expand_return, case_bit_test_cmp,
9854 expand_case): Likewise.
9855 * stor-layout.c (start_record_layout): Likewise.
9856 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9857 gt_pch_save_stringpool): Likewise.
9858 * tree-data-ref.c (hash_stmt_vertex_info,
9859 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9860 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9862 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
9865 * config/i386/i386.md : Change constraints of HImode and QImode
9866 immediate operands from "i" to "n". Change SImode "ni" constraint to
9867 "i" and SImode "rmi" constraint to "g". Remove all constraints
9868 from const0_operand and const1_operand predicated operands.
9869 (i): Change QImode and HImode attribute from "i" to "n".
9870 (*subqi_2): Change HImode operands to QImode.
9873 2008-06-25 Olivier Hainque <hainque@adacore.com>
9875 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9878 2008-06-25 Richard Guenther <rguenther@suse.de>
9880 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9881 not overflow the result type.
9883 2008-06-25 Richard Guenther <rguenther@suse.de>
9885 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9886 (vn_lookup): Likewise.
9888 2008-06-25 Richard Guenther <rguenther@suse.de>
9890 PR tree-optimization/35518
9891 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9892 * tree-sra.c (instantiate_element): Use fold_build3 to build
9894 (try_instantiate_multiple_fields): Likewise.
9896 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9898 * config/rs6000/rs6000.md: Change all string instruction's clobber to
9901 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9903 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9904 use_backchain_to_restore_sp to true
9905 if the offset of the link register save area would go over the 32k - 1
9906 offset limit of the load
9909 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
9911 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9912 anchor for the type-punning blurb. Cross-reference "Structures
9913 unions enumerations and bit-fields implementation". Provide a
9914 cast-through-pointer example. Make final sentence self-contained.
9915 * doc/implement-c.texi (Structures unions enumerations and
9916 bit-fields implementation): Cross-reference the type-punning blurb
9917 in the -fstrict-aliasing documentation.
9919 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9922 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9923 the memory instead of the memory itself for the save area.
9925 2008-06-24 Olivier Hainque <hainque@adacore.com>
9926 Nicolas Roche <roche@adacore.com>
9928 * gengtype.c (srcdir_len): size_t instead of int.
9929 (get_file_realbasename): New function. For F a filename, the real
9930 basename of F, with all the path components stripped.
9931 (get_file_srcdir_relative_path): New function. For F a filename, the
9932 relative path to F from $(srcdir).
9933 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9934 get_file_realbasename. Adjust the head comment.
9935 (get_prefix_langdir_index): New function. For F a filename, return the
9936 lang_dir_names[] relative index of the language directory that is
9938 (get_file_langdir): For F a filename, return the name of the language
9939 directory where F is located.
9940 (get_file_gtfilename): New function. The gt- output file name for an
9942 (get_output_file_with_visibility): Replace in-line computations with
9943 uses of get_file_gtfilename and get_prefix_langdir_index.
9944 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9946 2008-06-24 Jakub Jelinek <jakub@redhat.com>
9948 PR tree-optimization/36504
9949 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9950 references without base address.
9952 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9955 * calls.c (expand_call): Increase alignment for recursive functions.
9957 2008-06-23 Anatoly Sokolov <aesok@post.ru>
9959 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9960 (TARGET_FUNCTION_VALUE): New define.
9961 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9962 * config/avr/avr.h (FUNCTION_VALUE): Remove.
9964 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9966 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9967 (fmod<mode>3): Ditto.
9968 (remainderxf3): Ditto.
9969 (remainder<mode>3): Ditto.
9971 2008-06-23 Jakub Jelinek <jakub@redhat.com>
9974 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9975 REG is a hard register.
9977 PR tree-optimization/36508
9978 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9979 499, don't check it at all in release compilers.
9981 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9983 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9984 together with SSE_TARGET_MATH to disable insn pattern.
9985 (*fop_<MODEF:mode>_2_i387): Ditto.
9986 (*fop_<MODEF:mode>_3_i387): Ditto.
9988 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
9990 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9992 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9995 * gimplify.c (gimplify_asm_expr): Check the return code of
9996 parse_output_constraint call, set function return and is_inout
9999 2008-06-22 Ian Lance Taylor <iant@google.com>
10001 * c-lex.c (narrowest_unsigned_type): Change itk to int.
10002 (narrowest_signed_type): Likewise.
10003 * c-typeck.c (c_common_type): Change local variable mclass to enum
10005 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
10006 tcc_comparison, not the tree code itself.
10007 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
10008 (c_expand_expr): Cast modifier to enum expand_modifier.
10009 * c-common.h (C_RID_CODE): Add casts.
10010 (C_SET_RID_CODE): Define.
10011 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
10012 (c_lex_one_token): Add cast to avoid warning.
10013 (c_parser_objc_type_name): Rename local typename to type_name.
10014 (check_no_duplicate_clause): Change code parameter to enum
10016 (c_parser_omp_var_list_parens): Change kind parameter to enum
10018 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
10019 c_parser_omp_list_var_parens.
10020 (c_parser_omp_threadprivate): Likewise.
10021 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
10022 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
10023 * c-format.c (NO_FMT): Define.
10024 (printf_length_specs): Use NO_FMT.
10025 (asm_fprintf_length_specs): Likewise.
10026 (gcc_diag_length_specs): Likewise.
10027 (scanf_length_specs): Likewise.
10028 (strfmon_length_specs): Likewise.
10029 (gcc_gfc_length_specs): Likewise.
10030 (printf_flag_specs): Change 0 to STD_C89.
10031 (asm_fprintf_flag_specs): Likewise.
10032 (gcc_diag_flag_specs): Likewise.
10033 (gcc_cxxdiag_flag_specs): Likewise.
10034 (scanf_flag_specs): Likewise.
10035 (strftime_flag_specs): Likewise.
10036 (strfmon_flag_specs): Likewise.
10037 (print_char_table): Likewise.
10038 (asm_fprintf_char_table): Likewise.
10039 (gcc_diag_char_table): Likewise.
10040 (gcc_tdiag_char_table): Likewise.
10041 (gcc_cdiag_char_table): Likewise.
10042 (gcc_cxxdiag_char_table): Likewise.
10043 (gcc_gfc_char_table): Likewise.
10044 (scan_char_table): Likewise.
10045 (time_char_table): Likewis.
10046 (monetary_char_table): Likewise.
10047 * c-format.h (BADLEN): Likewise.
10049 2008-06-21 Ian Lance Taylor <iant@google.com>
10051 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
10052 Define END_OF_BASE_TREE_CODES around inclusion.
10053 * tree.c (tree_code_type): New global array.
10054 (tree_code_length, tree_code_name): Likewise.
10055 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
10056 $(lang_tree_files).
10057 (all-tree.def, s-alltree): New targets.
10058 (gencheck.h, s-gencheck): Remove.
10059 (tree.o): Depend upon all-tree.def.
10060 (build/gencheck.o): Remove gencheck.h dependency.
10061 (mostlyclean): Don't remove gencheck.h.
10062 * c-common.h (enum c_tree_code): Remove.
10063 * c-lang.c (tree_code_type): Remove.
10064 (tree_code_length, tree_code_name): Remove.
10065 * gencheck.c (tree_codes): Include all-tree.def, rather than
10066 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
10068 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
10070 * cp/cp-tree.h (enum cplus_tree_code): Remove.
10071 (operator_name_info): Size to MAX_TREE_CODES.
10072 (assignment_operator_name_info): Likewise.
10073 * cp/cp-lang.c (tree_code_type): Remove.
10074 (tree_code_length, tree_code_name): Remove.
10075 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
10076 (assignment_operator_name_info): Likewise.
10077 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
10079 * cp/mangle.c (write_expression): Likewise.
10080 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
10081 * fortran/f95-lang.c (tree_code_type): Remove.
10082 (tree_code_length, tree_code_name): Remove.
10083 * java/java-tree.h (enum java_tree_code): Remove.
10084 * java/lang.c (tree_code_type): Remove.
10085 (tree_code_length, tree_code_name): Remove.
10086 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
10087 * objc/objc-act.h (enum objc_tree_code): Remove.
10088 * objc/objc-lang.c (tree_code_type): Remove.
10089 (tree_code_length, tree_code_name): Remove.
10090 * objcp/objcp-lang.c (tree_code_type): Remove.
10091 (tree_code_length, tree_code_name): Remove.
10092 * ada/ada-tree.h (enum gnat_tree_code): Remove.
10093 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
10094 * ada/misc.c (tree_code_type): Remove.
10095 (tree_code_length, tree_code_name): Remove.
10097 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
10099 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
10100 the grand_bitmap_obstack.
10102 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10104 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
10105 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
10106 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
10107 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
10108 move_stmt_r, new_label_mapper): Likewise.
10109 * tree-complex.c (cvc_lookup): Likewise.
10110 * tree-dfa.c (create_function_ann): Likewise.
10111 * tree-dump.c (dump_register): Likewise.
10112 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
10113 find_phi_replacement_condition): Likewise.
10114 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
10115 tree_function_versioning): Likewise.
10116 * tree-into-ssa.c (cmp_dfsnum): Likewise.
10117 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
10118 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
10119 get_nonlocal_debug_decl, convert_nonlocal_reference,
10120 convert_nonlocal_omp_clauses, get_local_debug_decl,
10121 convert_local_reference, convert_local_omp_clauses,
10122 convert_nl_goto_reference, convert_nl_goto_receiver,
10123 convert_tramp_reference, convert_call_expr): Likewise.
10124 * tree-outof-ssa.c (contains_tree_r): Likewise.
10125 * tree-parloops.c (reduction_phi, initialize_reductions,
10126 eliminate_local_variables_1, add_field_for_reduction,
10127 add_field_for_name, create_phi_for_local_result,
10128 create_call_for_reduction_1, create_loads_for_reductions,
10129 create_stores_for_reduction, create_loads_and_stores_for_name):
10131 * tree-phinodes.c (allocate_phi_node): Likewise.
10132 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
10133 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
10134 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
10135 * tree-ssa-coalesce.c (compare_pairs): Likewise.
10136 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
10137 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
10138 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
10139 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10140 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
10141 vn_nary_op_insert): Likewise.
10142 * tree-ssa.c (redirect_edge_var_map_add,
10143 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
10144 * tree-vectorizer.c (vectorize_loops): Likewise.
10145 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
10146 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
10147 tree_cons_stat, build1_stat, build_variant_type_copy,
10148 decl_init_priority_lookup, decl_fini_priority_lookup,
10149 decl_priority_info, decl_restrict_base_lookup,
10150 decl_restrict_base_insert, decl_debug_expr_lookup,
10151 decl_debug_expr_insert, decl_value_expr_lookup,
10152 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
10153 type_hash_add, get_file_function_name, tree_check_failed,
10154 tree_not_check_failed, tree_range_check_failed,
10155 omp_clause_range_check_failed, build_omp_clause,
10156 build_vl_exp_stat): Likewise.
10157 * value-prof.c (gimple_histogram_value,
10158 gimple_duplicate_stmt_histograms): Likewise.
10159 * var-tracking.c (attrs_list_insert, attrs_list_copy,
10160 unshare_variable, variable_union_info_cmp_pos, variable_union,
10161 dataflow_set_different_1, dataflow_set_different_2,
10162 vt_find_locations, variable_was_changed, set_variable_part,
10163 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
10164 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
10165 section_entry_hash, object_block_entry_eq,
10166 object_block_entry_hash, create_block_symbol,
10167 initialize_cold_section_name, default_function_rodata_section,
10168 strip_reg_name, set_user_assembler_name, const_desc_eq,
10169 build_constant_desc, output_constant_def, lookup_constant_def,
10170 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
10171 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
10172 default_internal_label): Likewise.
10173 * varray.c (varray_init, varray_grow): Likewise.
10174 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
10176 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
10178 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
10179 operators for "test" insn. Macroize insn using SWI mode macro.
10180 (*jcc_fused_2): Ditto.
10181 (*jcc_fused_3): Macroize insn using SWI mode macro.
10182 (*jcc_fused_4): Ditto.
10184 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
10186 * tree-ssa-pre.c: Fix typo in comment.
10187 (init_antic, fini_antic): Add explicit funtions for
10188 initializing and deinitializing ANTIC and AVAIL sets.
10189 (create_expression_by_pieces): Fix typo in comment.
10190 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
10191 (execute_pre): Eventually dump details about ANTIC_IN.
10193 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10195 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
10196 * gcc.c (translate_options, init_spec, store_arg, read_specs,
10197 add_to_obstack, file_at_path, find_a_file, execute,
10198 add_preprocessor_option, add_assembler_option, add_linker_option,
10199 process_command, insert_wrapper, do_option_spec, do_self_spec,
10200 spec_path, do_spec_1, is_directory, main, used_arg,
10201 getenv_spec_function): Likewise.
10202 * tlink.c (symbol_hash_lookup, file_hash_lookup,
10203 demangled_hash_lookup, symbol_push, file_push, frob_extension):
10206 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
10208 * doc/rtl.texi: Updated subreg section.
10210 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10213 * cgraphunit.c (cgraph_process_new_functions): Don't clear
10214 node->needed and node->reachable.
10215 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
10216 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
10217 (expand_task_call): Don't call expand_task_copyfn.
10218 (expand_task_copyfn): Renamed to...
10219 (finalize_task_copyfn): ... this.
10221 2008-06-19 Jan Hubicka <jh@suse.cz>
10223 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
10224 clobbering framepointer.
10226 2008-06-19 Jan Hubicka <jh@suse.cz>
10228 * tree-optimize.c (execute_early_local_optimizations): Set
10229 cgraph_state only at first invocation.
10231 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10233 * system.h (-Wc++-compat): Activate as a warning, no an error.
10235 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
10237 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
10238 instead of "#" in insn asm template.
10239 (*jcc_fused_2): Ditto.
10241 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
10243 * config/i386/i386.h (ix86_tune_indices)
10244 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
10245 (TARGET_FUSE_CMP_AND_BRANCH): New define.
10246 * config/i386/i386.md (*jcc_fused_1): New insn pattern
10247 (*jcc_fused_2): Ditto.
10248 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10249 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10250 (print operand): Handle 'E' and 'e' code.
10252 2008-06-19 Anatoly Sokolov <aesok@post.ru>
10254 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
10255 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10256 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10258 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
10260 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
10262 (cgraph_expand_function): Use local copy of decl.
10263 (cgraph_expand_all_functions): Remove redundant initialization of
10265 (cgraph_optimize): Reword internal_error message.
10267 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
10269 * arm-protos.h (arm_return_in_memory): Remove public
10270 arm_return_in_memory() prototype.
10271 * arm.c (arm_return_in_memory): Add static prototype, add target
10272 hook macro, change definition and comments.
10273 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
10275 2008-06-19 Ben Elliston <bje@au.ibm.com>
10277 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
10278 real.c: Remove references to IEEE 754R.
10279 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
10280 * doc/libgcc.texi (Decimal float library routines): Likewise.
10282 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10284 * targhooks.h (struct gcc_target): New member unwind_word_mode.
10285 (default_unwind_word_mode): Add prototype.
10286 * targhooks.c (default_unwind_word_mode): New function.
10287 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
10288 instead of word_mode.
10289 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
10290 (TARGET_INITIALIZER): Use it.
10292 * c-common.c (handle_mode_attribute): Support "unwind_word"
10294 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
10296 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
10297 word_mode to access SjLj_Function_Context member "data".
10298 (sjlj_emit_dispatch_table): Likewise. Also, perform type
10299 conversion from targetm.eh_return_filter_mode () to
10300 targetm.unwind_word_mode () if they differ.
10302 * builtin-types.def (BT_UNWINDWORD): New primitive type.
10303 (BT_FN_UNWINDWORD_PTR): New function type.
10304 (BT_FN_WORD_PTR): Remove.
10305 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
10306 * except.c (expand_builtin_extend_pointer): Convert pointer to
10307 targetm.unwind_word_mode () instead of word_mode.
10309 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
10310 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
10311 (spu_unwind_word_mode): New function.
10312 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
10313 (TARGET_UNWIND_WORD_MODE): Define.
10314 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
10316 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10318 * config/spu/spu.c (reg_align): Remove.
10319 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
10320 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
10321 (spu_split_store): Likewise.
10323 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
10325 * gcc/tree-vn.c: Fix typo in comment.
10327 2008-06-18 Jan Hubicka <jh@suse.cz>
10329 * cgraphunit.c (cgraph_optimize): Output debug info when doing
10330 toplevel reorder too.
10332 2008-06-18 Jan Hubicka <jh@suse.cz>
10334 * c-opts.c (c_common_post_options): PCH is not compatible with
10336 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
10337 -fno-toplevel-reorder by default now.
10339 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10341 PR documentation/30739
10342 * doc/install.texi (Prerequisites): Document dependency on awk.
10344 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
10345 Ian Lance Taylor <iant@google.com>
10347 PR rtl-optimization/35604
10348 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
10349 only want to change jump destinations, not eventual label comparisons.
10351 2008-06-16 Jan Hubicka <jh@suse.cz>
10353 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
10355 (cgraph_analyze_function): Likewise.
10357 2008-06-16 Jan Hubicka <jh@suse.cz>
10359 * cgraph.h (cgraph_mark_if_needed): New function.
10360 * cgraphunit.c (cgraph_mark_if_needed): New function.
10361 * c-decl.c (duplicate_decl): Use it.
10363 2008-06-16 Jan Hubicka <jh@suse.cz>
10365 * cgraph.c (cgraph_add_new_function): When in expansion state, do
10368 2008-06-16 Jan Hubicka <jh@suse.cz>
10370 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10372 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
10373 Kazu Hirata <kazu@codesourcery.com>
10374 Maxim Kuvyrkov <maxim@codesourcery.com
10376 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10377 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10378 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10379 EXTRA_SPEC_FUNCTIONS.
10380 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10381 (DRIVER_SELF_SPECS): Adjust.
10382 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10383 * config/mips/st.h, config/mips/t-st: New.
10384 * config/mips/driver-native.c, config/mips/x-native: New.
10385 * doc/invoke.texi (MIPS): Document 'native' value for -march and
10388 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10390 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10392 (ISA_HAS_FP_CONDMOVE): New macro.
10393 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10394 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10395 (ISA_HAS_NMADD3_NMSUB3): New macro.
10396 * config/mips/mips.c (mips_rtx_costs): Update.
10397 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10398 compiling for ST Loongson 2E/2F.
10399 (madd<mode>): Rename to madd4<mode>. Update.
10400 (madd3<mode>): New pattern.
10401 (msub<mode>): Rename to msub4<mode>. Update.
10402 (msub3<mode>): New pattern.
10403 (nmadd<mode>): Rename to nmadd4<mode>. Update.
10404 (nmadd3<mode>): New pattern.
10405 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
10406 (nmadd3<mode>_fastmath): New pattern.
10407 (nmsub<mode>): Rename to nmsub4<mode>. Update.
10408 (nmsub3<mode>): New pattern.
10409 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
10410 (nmsub3<mode>_fastmath): New pattern.
10411 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10413 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
10415 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10416 (DF_REF_INSN_INFO): New.
10417 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10418 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10419 with a NULL DF_REF_INSN_INFO.
10420 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10422 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10423 DF_INSN_INFO_EQ_USES): New.
10424 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10425 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10426 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10427 * df-core.c: Update comment for above changes.
10428 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10429 DF_INSN_UID_* macros.
10430 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10431 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10432 insn rtx. Update all callers.
10433 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10434 df_ref_create_structure, df_insn_refs_collect): Likewise.
10435 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10436 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10437 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10438 macros to access the insn refs.
10439 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10440 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10441 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10442 for accessing the refs.
10443 (try_fwprop_subst): Likewise.
10444 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10445 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10446 for accessing the refs.
10447 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10448 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10449 to look at the insn refs.
10450 (record_uses): Likewise.
10451 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10453 (mark_artificial_uses): Don't mark_insn for artificial refs.
10454 (mark_reg_rependencies): Likewise.
10456 * doc/rtl.texi: Remove documentation of ADDRESSOF.
10458 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10460 * configure: Regenerate.
10462 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10464 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10465 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10466 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10468 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10470 * config/avr/avr.c (avr_mcu_t): Add attiny167.
10471 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10472 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10474 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10476 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10477 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10478 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10480 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
10482 * tree-ssa-sccvn.c: Fix format of comments.
10484 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
10486 * cgraph.c: Remove unneeded forward declarations of eq_node()
10489 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
10491 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10493 (see_update_relevancy): Likewise.
10494 * fwprop.c (try_fwprop_subst): Likewise.
10495 * rtlanal.c (noop_move_p): Likewise.
10496 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10497 notes to non-existing libcall blocks.
10498 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
10500 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10501 (dead_libcall_p): Remove.
10502 (delete_trivially_dead_insns): Don't use it.
10503 * web.c (union_defs): Remove comment about keeping nops.
10504 * gcse.c (hash_scan_insn): Don't take libcall pointers.
10505 (compute_hash_table_work): Don't track libcall notes.
10506 (do_local_cprop): Don't take libcall pointers. Don't update
10508 (adjust_libcall_notes): Deleted.
10509 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10510 ever have existed in the first place).
10511 (replace_store_insn): Don't try to remove libcall notes.
10512 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10513 (resolve_reg_notes): Don't call them.
10514 (resolve_simple_move): Likewise.
10515 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10516 Don't remove REG_RETVAL notes.
10517 * emit-rtl.c (try_split): Don't update libcall notes.
10518 (emit_copy_of_insn_after): Dito.
10519 * cselib.c (cselib_current_insn_in_libcall): Remove.
10520 (cselib_process_insn): Don't set/clear it.
10521 (new_elt_loc_list): Don't record it.
10522 (cselib_init): Don't initialize it.
10523 * cselib.c (struct elt_loc_list): Remove in_libcall field.
10524 * loop-invariant.c (find_invariant_insn): Don't look for libcall
10526 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10527 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10528 (init_deps): Don't initialize it.
10529 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10530 * combine.c (delete_noop_moves): Don't update libcall notes.
10531 (can_combine_p): Remove now pointless #if 0 block.
10532 (try_combine): Remove another obsolete #if 0 block.
10533 (distribute_notes): Don't distribute libcall notes.
10534 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10535 * dce.c (libcall_dead_p): Remove.
10536 (delete_unmarked_insns): Don't handle libcall blocks.
10537 (preserve_libcall_for_dce): Remove.
10538 (prescan_insns_for_dce): Don't special-case libcall block insns.
10539 * reload1 (reload): Don't handle libcall notes.
10540 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10543 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10545 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10546 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10547 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10549 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10551 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10552 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10553 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10555 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10557 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10559 2008-06-16 Ira Rosen <irar@il.ibm.com>
10561 PR tree-optimization/36493
10562 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10563 the arguments list. Use VECTYPE to create vector pointer.
10564 (vectorizable_store): Fail if accesses through a pointer to vectype
10565 do not alias the original memory reference operands.
10566 Call vect_create_data_ref_ptr without the removed argument.
10567 (vectorizable_load): Likewise.
10568 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10571 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
10574 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10575 reg_equiv_constant.
10577 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10579 * config/mips/loongson2ef.md: New file.
10580 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10581 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10582 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10583 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10584 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10586 (loongson2ef.md): New include.
10587 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10588 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10589 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10590 (loongson_gt_<mode>, loongson_extract_halfword)
10591 (loongson_insert_halfword_0, loongson_insert_halfword_2)
10592 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10593 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10594 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10595 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10596 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10597 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10598 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10599 (vec_interleave_low<mode>): Define type attribute.
10600 * config/mips/mips.c (mips_ls2): New static variable.
10601 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10602 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10603 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10604 Implement target scheduling hooks.
10605 (mips_multipass_dfa_lookahead): Update to handle tuning for
10607 (mips_sched_init): Initialize data for Loongson scheduling.
10608 (mips_ls2_variable_issue): New static function.
10609 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10611 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10612 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10613 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10614 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10615 Handle ST Loongson 2E/2F cores.
10616 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10618 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10620 * omp-low.c (extract_omp_for_data): Fix comment typo.
10623 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10625 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10626 FIXME note about gcc/config.guess.
10627 * doc/options.texi (Option file format): Remove non-ASCII bytes.
10628 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10629 * doc/cppopts.texi: Likewise.
10630 * doc/extend.texi: Likewise.
10631 * doc/gcc.texi: Likewise.
10632 * doc/gccint.texi: Likewise.
10633 * doc/gcov.texi: Likewise.
10634 * doc/gty.texi: Likewise.
10635 * doc/hostconfig.texi: Likewise.
10636 * doc/install.texi: Likewise.
10637 * doc/invoke.texi: Likewise.
10638 * doc/loop.texi: Likewise.
10639 * doc/makefile.texi: Likewise.
10640 * doc/md.texi: Likewise.
10641 * doc/passes.texi: Likewise.
10642 * doc/tm.texi: Likewise.
10643 * doc/tree-ssa.texi: Likewise.
10644 * doc/trouble.texi: Likewise.
10646 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
10647 Nathan Sidwell <nathan@codesourcery.com>
10648 Maxim Kuvyrkov <maxim@codesourcery.com>
10649 Richard Sandiford <rdsandiford@googlemail.com>
10651 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10652 * config/mips/mips-protos.h (mips_expand_vector_init): New.
10653 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10655 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10656 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10657 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10659 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10660 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10661 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10662 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10663 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10664 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10665 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10666 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10667 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10668 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10669 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10670 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10671 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10672 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10673 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10674 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10675 (mips_builtins): Add Loongson builtins.
10676 (mips_loongson_2ef_bdesc): New.
10677 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10678 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10679 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10680 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10682 (mips_expand_vector_init): New.
10683 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10684 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10686 * config/mips/mips.md: Add unspec numbers for Loongson
10687 builtins. Include loongson.md.
10688 (MOVE64): Include Loongson vector modes.
10689 (SPLITF): Include Loongson vector modes.
10690 (HALFMODE): Handle Loongson vector modes.
10691 * config/mips/loongson.md: New.
10692 * config/mips/loongson.h: New.
10693 * config.gcc: Add loongson.h header for mips*-*-* targets.
10694 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10696 2008-06-14 Joseph Myers <joseph@codesourcery.com>
10698 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10699 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10700 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10701 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10702 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10703 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10704 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10705 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10706 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10707 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10708 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10709 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10710 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10711 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10712 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10713 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10714 Remove use_fixproto=yes.
10715 (ia64*-*-hpux*): Remove comment about using fixproto.
10716 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10718 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10720 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10722 * configure: Regenerate.
10724 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
10726 PR middle-end/36520
10727 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10728 before evaluating it.
10730 2008-06-13 Jakub Jelinek <jakub@redhat.com>
10733 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10734 nested inline functions.
10735 (start_decl, start_function): Don't invert DECL_EXTERNAL
10736 for nested inline functions.
10738 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10740 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10741 splits that must be made for correctness.
10743 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10745 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10746 (AVAIL_NON_MIPS16): Likewise.
10747 (mips_builtin_description): Replace target_flags with a predicate.
10748 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10749 (dspr2_32): New availability predicates.
10750 (MIPS_BUILTIN): New macro.
10751 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10752 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10753 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10754 Replace the TARGET_FLAGS parameters with AVAIL parameters.
10755 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10756 (mips_dsp_32only_bdesc): Merge into...
10757 (mips_builtins): ...this new array.
10758 (mips_bdesc_map, mips_bdesc_arrays): Delete.
10759 (mips_init_builtins): Update after above changes.
10760 (mips_expand_builtin_1): Merge into...
10761 (mips_expand_builtin): ...here and update after above changes.
10763 2008-06-12 Paul Brook <paul@codesourcery.com>
10765 * longlong.h (__arm__): Define count_leading_zeros.
10766 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10767 (clzsi2, clzdi2): New functions.
10768 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10769 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10770 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10771 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10772 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10773 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10774 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10775 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10776 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10777 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10779 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
10781 * config/m68k/m68k.c (m68k_tune_flags): New.
10782 (override_options): Compute m68k_tune_flags.
10783 (MULL_COST, MULW_COST): Update for various variants of CFV2.
10784 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10786 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10788 PR middle-end/36506
10789 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10791 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10793 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10794 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10796 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10798 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10799 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10801 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10803 PR middle-end/36506
10804 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10807 2008-06-12 Richard Guenther <rguenther@suse.de>
10809 PR tree-optimization/36345
10810 * tree-flow.h (struct ptr_info_def): Align escape_mask,
10811 add memory_tag_needed flag.
10812 (may_alias_p): Declare.
10813 * tree-ssa-alias.c (may_alias_p): Export.
10814 (set_initial_properties): Use memory_tag_needed flag.
10815 (update_reference_counts): Likewise.
10816 (reset_alias_info): Reset memory_tag_needed flag.
10817 (create_name_tags): Check memory_tag_needed flag.
10818 (dump_points_to_info_for): Dump it.
10819 * tree-ssa-structalias.c (struct variable_info): Remove
10820 directly_dereferenced flag.
10821 (new_var_info): Do not initialize it.
10822 (process_constraint_1): Do not set it.
10823 (update_alias_info): Set is_dereferenced flag.
10824 (set_uids_in_ptset): Use may_alias_p.
10825 (set_used_smts): Check memory_tag_needed flag.
10826 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
10827 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10828 memory_tag_needed flag.
10829 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10830 from broken design.
10832 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
10834 * config/i386/i386.c (ix86_compute_frame_layout): Disable
10835 red zone for w64 abi.
10836 (ix86_expand_prologue): Likewise.
10837 (ix86_force_to_memory): Likewise.
10838 (ix86_free_from_memory): Likewise.
10840 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
10843 * config/rs6000/rs6000.c (rs6000_override_options): Set
10844 rs6000_isel conditionally to the absence of comand line override.
10845 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10846 Remove duplicate rs6000_isel setting.
10847 * config/rs6000/eabispe.h: Ditto.
10849 2008-06-11 Richard Guenther <rguenther@suse.de>
10851 * alias.c (get_alias_set): Use the element alias-set for arrays.
10852 (record_component_aliases): For arrays and vectors do nothing.
10853 * c-common.c (strict_aliasing_warning): Handle the cases
10854 of alias set zero explicitly.
10855 * Makefile.in (dfp.o-warn): Add -Wno-error.
10857 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10859 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10861 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10862 tune_32 tune_64 to supported_defaults. Allow values not
10863 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10864 x86_64. Do not override cpu_32 or cpu_64 values from target name.
10865 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10866 with_cpu_64 to generic for 64-bit-supporting configurations, not
10867 with_cpu. Remove FIXMEs.
10868 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10869 --with-arch-64, --with-tune-32, --with-tune-64): Document.
10870 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10871 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10872 arch_32 and arch_64.
10874 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
10875 Olivier Hainque <hainque@adacore.com>
10877 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10878 Use DECL_SIZE_UNIT to retrieve the size of the field.
10880 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10882 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10883 with function calls after declarations. Lay out
10884 neon_float_type_node before further use.
10886 2008-06-11 Richard Guenther <rguenther@suse.de>
10888 * tree-flow.h (may_point_to_global_var): Declare.
10889 * tree-ssa-alias.c (may_point_to_global_var): New function.
10890 * tree-ssa-sink.c (is_hidden_global_store): Use it.
10892 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
10894 * configure.ac: Teach that fido supports .debug_line.
10895 * configure: Regenerate.
10897 2008-06-10 Tom Tromey <tromey@redhat.com>
10899 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10902 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10904 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10905 (encode_decimal64, decode_decimal64, encode_decimal128,
10906 decode_decimal128): Reverse order of 32-bit parts of value if host
10907 and target endianness differ.
10909 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
10911 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10912 Avoid division by 0.
10913 (tree_mod_pow2_value_transform): Likewise.
10914 (tree_ic_transform): Likewise.
10915 (tree_stringops_transform): Likewise.
10916 (tree_mod_subtract_transform): Likewise.
10917 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10918 (copy_edges_for_bb): Likewise.
10919 (initialize_cfun): Likewise.
10921 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10923 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10924 nonmemory_operand. Add "N" operand constraint.
10926 (*jcc_btdi_mask_rex64): New instruction and split pattern.
10927 (*jcc_btsi_mask): Ditto.
10928 (*jcc_btsi_mask_1): Ditto.
10930 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10932 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10933 TYPE_CANONICAL for copied element type.
10935 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10938 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10939 Add m_CORE2 and m_GENERIC.
10940 * config/i386/predicates.md (bt_comparison_operator): New predicate.
10941 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10943 (*jcc_btdi_rex64): New instruction and split pattern.
10944 (*jcc_btsi): Ditto.
10945 (*jcc_btsi_1): Ditto.
10946 (*btsq): Fix Intel asm dialect operand order.
10950 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
10952 PR middle-end/36447
10953 * simplify-rtx.c (simplify_subreg): Add check for shift count
10956 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
10958 * doc/md.texi: Synchronize with later constraints.md change.
10959 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10960 with a C implementation.
10961 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10963 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10964 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10965 when moving to and from MD_REGNUM.
10966 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10967 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10968 Handle byte and halfword moves.
10969 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10971 * config/mips/constraints.md (h): Turn into NO_REGS.
10972 (l, x): Update documentation.
10973 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10974 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10975 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10976 (HILO): New mode iterator.
10978 (any_div): New code iterator.
10979 (u): Extend code attribute to div and udiv.
10980 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10981 d_operand in the splitters. Remove redundant CONST_INT checks.
10982 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10983 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10984 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
10985 accordingly, using normal moves instead of unspecs to move LO into
10986 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
10987 (<u>mulsidi3): Handle expansion in C code.
10988 (<u>mulsidi3_32bit_internal): Rename to...
10989 (<u>mulsidi3_32bit): ...this.
10990 (<u>mulsidi3_32bit_r4000): Fix insn separator.
10991 (*<u>mulsidi3_64bit): Rename to...
10992 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
10993 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
10994 to set LO and HI to the multiplication result. Use a normal move
10995 for MFLO and an unspec for MFHI.
10996 (*<u>mulsidi3_64bit_parts): Replace with...
10997 (<u>mulsidi3_64bit_hilo): ...this new instruction.
10998 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10999 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
11000 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
11001 instead of HI. Split the instruction into a separate multiplication
11002 and MFHI if !TARGET_FIX_R4000.
11003 (<su>muldi3_highpart): Likewise.
11004 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
11005 and the "=h" clobber.
11006 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
11007 (<u>mulditi3): New expander.
11008 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
11009 (madsi): Remove "=h" clobber.
11010 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
11011 Force the modulus result to be a GPR and split the instruction into
11012 a division followed by an MFHI after reload.
11013 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
11014 (*lea_high64): Use d_operand in the define_peephole2. Likewise
11015 the MIPS16 HIGH define_split.
11016 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
11017 of acc<->gpr moves to "multi".
11018 (*movdi_64bit): Replace the single "x" alternative with
11019 alternatives for moving into and out of "a".
11020 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
11021 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
11022 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
11023 Use d_operand in the splitters. Remove redundant CONST_INT checks.
11024 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
11025 (movti): New expander.
11026 (*movti, *movti_mips16): New insns.
11027 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
11028 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
11029 (mthi<GPR:mode>_<HILO:mode>): Likewise.
11030 * config/mips/predicates.md (fpr_operand): Delete.
11031 (d_operand): New predicate.
11033 2008-06-09 Michael Meissner <michael.meissner@amd.com>
11035 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
11036 failure on some Bourne shells.
11037 (x86_64-*-*): Ditto.
11039 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
11041 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
11043 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
11045 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
11046 (sparc-sun-solaris2*): Likewise.
11048 2008-06-09 Arnaud Charlet <charlet@adacore.com
11050 * doc/install.texi: Update requirements to build the Ada compiler.
11052 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
11054 * df-scan.c (struct df_scan_problem_data): Remove the
11055 mw_link_pool alloc pool.
11056 (df_scan_free_internal): Don't free it.
11057 (df_scan_alloc): Don't allocate it.
11058 * df.h (struct df_link): Update comment.
11060 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
11062 * except.h: Correct checks for when SJLJ exceptions must be used.
11064 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11066 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
11069 2008-06-08 Joseph Myers <joseph@codesourcery.com>
11071 PR tree-optimization/36218
11072 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
11073 configure for the build system.
11074 (BUILD_LDFLAGS): Define.
11075 * configure: Regenerate.
11076 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
11078 2008-07-08 Anatoly Sokolov <aesok@post.ru>
11081 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
11082 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
11083 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
11085 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
11087 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
11089 2008-06-07 Joseph Myers <joseph@codesourcery.com>
11091 * config.gcc (Obsolete configurations): Remove list of
11093 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
11094 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
11095 targets matched by those patterns.
11096 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
11097 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
11098 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
11099 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
11100 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
11101 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
11102 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
11103 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
11104 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
11105 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
11106 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
11107 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
11108 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
11109 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
11110 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
11111 Make code for Solaris 7 and greater unconditional for Solaris.
11112 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
11113 Remove --with-* handling.
11114 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
11115 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
11116 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
11117 LINK_OS_WINDISS_SPEC): Remove.
11118 * config/rs6000/sysv4.opt (mwindiss): Remove.
11119 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
11120 * configure: Regenerate.
11121 * doc/cpp.texi: Don't mention BeOS.
11122 * doc/extend.texi (interrupt): Don't mention MS1.
11123 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
11124 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
11125 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
11126 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
11127 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
11129 * doc/invoke.texi (MT Options): Remove.
11130 (-mwindiss): Remove.
11131 (CRIS Options): Remove cris-axis-aout references.
11132 (HPPA Options): Don't mention hppa1.1-*-pro.
11133 * doc/md.texi: (MorphoTech family): Remove.
11134 * libgcc2.c: Don't handle UWIN.
11135 * config/alpha/t-unicosmk: Remove.
11136 * config/alpha/unicosmk.h: Remove.
11137 * config/arm/kaos-arm.h: Remove.
11138 * config/arm/kaos-strongarm.h: Remove.
11139 * config/arm/strongarm-coff.h: Remove.
11140 * config/arm/strongarm-elf.h: Remove.
11141 * config/arm/strongarm-pe.h: Remove.
11142 * config/arm/t-strongarm-pe: Remove.
11143 * config/arm/t-xscale-coff: Remove.
11144 * config/arm/t-xscale-elf: Remove.
11145 * config/arm/xscale-coff.h: Remove.
11146 * config/arm/xscale-elf.h: Remove.
11147 * config/chorus.h: Remove.
11148 * config/cris/aout.h: Remove.
11149 * config/cris/aout.opt: Remove.
11150 * config/cris/t-aout: Remove.
11151 * config/i386/beos-elf.h: Remove.
11152 * config/i386/kaos-i386.h: Remove.
11153 * config/i386/ptx4-i.h: Remove.
11154 * config/i386/sco5.h: Remove.
11155 * config/i386/sco5.opt: Remove.
11156 * config/i386/sysv4-cpp.h: Remove.
11157 * config/i386/sysv5.h: Remove.
11158 * config/i386/t-beos: Remove.
11159 * config/i386/t-sco5: Remove.
11160 * config/i386/t-uwin: Remove.
11161 * config/i386/uwin.asm: Remove.
11162 * config/i386/uwin.h: Remove.
11163 * config/kaos.h: Remove.
11164 * config/mips/windiss.h: Remove.
11165 * config/mt: Remove directory.
11166 * config/pa/pa-osf.h: Remove.
11167 * config/pa/pa-pro-end.h: Remove.
11168 * config/pa/t-pro: Remove.
11169 * config/ptx4.h: Remove.
11170 * config/rs6000/beos.h: Remove.
11171 * config/rs6000/kaos-ppc.h: Remove.
11172 * config/rs6000/t-beos: Remove.
11173 * config/rs6000/windiss.h: Remove.
11174 * config/sh/kaos-sh.h: Remove.
11175 * config/sol2-6.h: Remove.
11176 * config/sparc/sol26-sld.h: Remove.
11177 * config/sparc/sysv4-only.h: Remove.
11178 * config/vax/bsd.h: Remove.
11179 * config/vax/t-memfuncs: Remove.
11180 * config/vax/ultrix.h: Remove.
11181 * config/vax/vaxv.h: Remove.
11182 * config/windiss.h: Remove.
11184 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
11186 PR rtl-optimization/36438
11187 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
11188 for vector shifts with constant scalar shift operands.
11190 2008-06-06 Sandip Matte <sandip@rmicorp.com>
11192 * doc/invoke.texi: Document -march=xlr.
11193 * config/mips/xlr.md: New file.
11194 * config/mips/mips.md: Include it.
11196 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
11197 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
11198 (mips_rtx_cost_data): Likewise.
11200 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
11202 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
11203 PRE_INC and PRE_DEC cases.
11205 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11207 PR rtl-optimization/36419
11208 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
11209 the emitting jump insn.
11212 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
11213 is not bool, boolify the whole *expr_p and convert to the desired type.
11215 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11217 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
11218 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
11219 Add omp_private_outer_ref hook, add another argument to
11220 omp_clause_default_ctor hook.
11221 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
11222 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
11223 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
11224 hook_tree_tree_tree_tree_null.
11225 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
11226 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
11227 * hooks.c (hook_tree_tree_tree_tree_null): New function.
11228 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
11229 * tree.def (OMP_TASK): New tree code.
11230 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
11231 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
11232 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
11233 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
11234 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
11235 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
11236 OMP_CLAUSE_COLLAPSE_EXPR): Define.
11237 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11238 (OMP_DIRECTIVE_P): Add OMP_TASK.
11239 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
11240 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
11241 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
11242 and OMP_CLAUSE_UNTIED entries.
11243 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
11245 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11246 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
11247 * tree-pretty-print.c (dump_omp_clause): Handle
11248 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11249 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11250 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
11251 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
11252 warning about unsigned iterators. Change decl/init/cond/incr
11253 arguments to TREE_VECs, check arguments for all collapsed loops.
11254 (c_finish_omp_taskwait): New function.
11255 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
11257 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
11258 default_function_array_conversion on init. Add par_clauses argument.
11259 If decl is present in parallel's lastprivate clause, change it to
11260 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
11261 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
11262 collapse count in clauses.
11263 (c_parser_omp_for, c_parser_omp_parallel): Adjust
11264 c_parser_omp_for_loop callers.
11265 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
11266 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
11267 (c_parser_omp_clause_name): Handle collapse and untied clauses.
11268 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
11270 (c_parser_omp_clause_schedule): Handle schedule(auto).
11271 Include correct location in the error message.
11272 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
11273 and PRAGMA_OMP_CLAUSE_UNTIED.
11274 (OMP_TASK_CLAUSE_MASK): Define.
11275 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
11276 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
11277 * tree-nested.c (convert_nonlocal_omp_clauses,
11278 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
11279 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
11280 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11281 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
11283 (conver_nonlocal_reference, convert_local_reference,
11284 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
11285 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
11286 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
11287 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
11288 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
11289 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
11290 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
11291 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
11292 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11294 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
11295 * c-common.h (c_finish_omp_taskwait): New prototype.
11296 * gimple-low.c (lower_stmt): Handle OMP_TASK.
11297 * tree-parloops.c (create_parallel_loop): Create 1 entry
11298 vectors for OMP_FOR_{INIT,COND,INCR}.
11299 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11300 (make_edges): Handle OMP_TASK.
11301 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
11302 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11303 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
11304 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
11305 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
11306 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11307 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11308 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
11309 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
11310 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
11311 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
11312 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
11313 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
11314 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
11315 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
11316 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
11317 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
11318 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
11319 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
11320 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
11321 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
11322 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
11323 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
11324 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
11325 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
11326 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
11327 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
11328 original iterator is present in lastprivate clause or if
11329 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
11330 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11331 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
11332 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
11333 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
11334 if it is set, lookup var in outer contexts too. Handle
11335 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
11336 to be implicitly determined firstprivate for task regions.
11337 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
11338 if it is set, lookup var in outer contexts too. Set
11339 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
11340 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
11341 OMP_CLAUSE_UNTIED. Take region_type as last argument
11342 instead of in_parallel and in_combined_parallel.
11343 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11345 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
11346 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
11347 (new_omp_context): Set default_kind to
11348 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
11349 (omp_region_type): New enum.
11350 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
11351 fields, add region_type.
11352 (new_omp_context): Take region_type as argument instead of is_parallel
11353 and is_combined_parallel.
11354 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
11355 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
11356 ctx->is_combined_parallel checks.
11357 (gimplify_omp_task): New function.
11358 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11360 * omp-low.c (extract_omp_for_data): Use schedule(static)
11361 for schedule(auto). Handle pointer and unsigned iterators.
11362 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
11363 Add loops argument. Extract data for collapsed OMP_FOR loops.
11364 (expand_parallel_call): Assert sched_kind isn't auto,
11365 map runtime schedule to index 3.
11366 (struct omp_for_data_loop): New type.
11367 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11368 Add loop, loops, collapse and iter_type fields.
11369 (workshare_safe_to_combine_p): Disallow combined for if
11370 iter_type is unsigned long long. Don't combine collapse > 1 loops
11371 unless all bounds and steps are constant. Adjust extract_omp_for_data
11373 (expand_omp_for_generic): Handle pointer, unsigned and long long
11374 iterators. Handle collapsed OMP_FOR loops. Adjust
11375 for struct omp_for_data changes. If libgomp function doesn't return
11376 boolean_type_node, add comparison of the return value with 0.
11377 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11378 pointer, unsigned and long long iterators. Adjust for struct
11379 omp_for_data changes.
11380 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11381 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
11382 unsigned long long. Allocate loops array, pass it to
11383 extract_omp_for_data. For collapse > 1 loops use always
11384 expand_omp_for_generic.
11385 (omp_context): Add sfield_map and srecord_type fields.
11386 (is_task_ctx, lookup_sfield): New functions.
11387 (use_pointer_for_field): Use is_task_ctx helper. Change first
11388 argument's type from const_tree to tree. Clarify comment.
11389 In OMP_TASK disallow copy-in/out sharing.
11390 (build_sender_ref): Call lookup_sfield instead of lookup_field.
11391 (install_var_field): Add mask argument. Populate both record_type
11392 and srecord_type if needed.
11393 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11395 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11396 and DECL_FIELD_OFFSET.
11397 (scan_sharing_clauses): Adjust install_var_field callers. For
11398 firstprivate clauses on explicit tasks allocate the var by value in
11399 record_type unconditionally, rather than by reference.
11400 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11401 Use is_taskreg_ctx instead of is_parallel_ctx.
11402 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11403 (create_omp_child_function_name): Add task_copy argument, use
11404 *_omp_cpyfn* names if it is true.
11405 (create_omp_child_function): Add task_copy argument, if true create
11406 *_omp_cpyfn* helper function.
11407 (scan_omp_parallel): Adjust create_omp_child_function callers.
11408 Rename parallel_nesting_level to taskreg_nesting_level.
11409 (scan_omp_task): New function.
11410 (lower_rec_input_clauses): Don't run constructors for firstprivate
11411 explicit task vars which are initialized by *_omp_cpyfn*.
11412 Pass outer var ref to omp_clause_default_ctor hook if
11413 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11414 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11415 OMP_CLAUSE_REDUCTION_INIT.
11416 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11417 avoid duplicate setting of fields. Handle
11418 OMP_CLAUSE_PRIVATE_OUTER_REF.
11419 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
11420 copy-out if TREE_READONLY, only copy-in.
11421 (expand_task_copyfn): New function.
11422 (expand_task_call): New function.
11423 (struct omp_taskcopy_context): New type.
11424 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11426 (lower_omp_parallel): Rename to...
11427 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
11428 Call create_task_copyfn if srecord_type is needed. Adjust
11430 (task_shared_vars): New variable.
11431 (check_omp_nesting_restrictions): Warn if work-sharing,
11432 barrier, master or ordered region is closely nested inside OMP_TASK.
11433 Add warnings for barrier if closely nested inside of work-sharing,
11434 ordered, or master region.
11435 (scan_omp_1): Call check_omp_nesting_restrictions even for
11436 GOMP_barrier calls. Rename parallel_nesting_level to
11437 taskreg_nesting_level. Handle OMP_TASK.
11438 (lower_lastprivate_clauses): Even if some lastprivate is found on a
11439 work-sharing construct, continue looking for them on parent parallel
11441 (lower_omp_for_lastprivate): Add lastprivate clauses
11442 to the beginning of dlist rather than end. Adjust for struct
11443 omp_for_data changes.
11444 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11445 not after it. Handle collapsed OMP_FOR loops, adjust for
11446 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11447 (get_ws_args_for): Adjust extract_omp_for_data caller.
11448 (scan_omp_for): Handle collapsed OMP_FOR
11449 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11450 (lower_omp_single_simple): If libgomp function doesn't return
11451 boolean_type_node, add comparison of the return value with 0.
11452 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11453 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
11454 (parallel_nesting_level): Rename to...
11455 (taskreg_nesting_level): ... this.
11456 (is_taskreg_ctx): New function.
11457 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11458 of is_parallel_ctx.
11459 (execute_lower_omp): Rename parallel_nesting_level to
11460 taskreg_nesting_level.
11461 (expand_omp_parallel): Rename to...
11462 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
11463 Call omp_task_call for OMP_TASK regions.
11464 (expand_omp): Adjust caller, handle OMP_TASK.
11465 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11467 * bitmap.c (bitmap_default_obstack_depth): New variable.
11468 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11469 if argument is NULL and bitmap_default_obstack is already initialized.
11470 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11472 * matrix-reorg.c (matrix_reorg): Likewise.
11474 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
11476 * config/i386/i386.md (*indirect_jump): Macroize using P
11477 mode iterator. Remove !TARGET_64BIT from insn constraints.
11478 (*tablejump_1): Ditto.
11479 (*indirect_jump_rex64): Remove insn pattern.
11480 (*tablejump_1_rex64): Ditto.
11481 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11482 and eh_return_si insn patterns.
11484 2008-06-06 Richard Guenther <rguenther@suse.de>
11486 * tree-ssa-structalias.c (merge_smts_into): Remove.
11487 (find_what_p_points_to): Do not bother to compute the
11488 points-to set for pt_anything pointers.
11489 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11490 for pt_anything pointers is ok.
11492 2008-06-06 Jan Hubicka <jh@suse.cz>
11494 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11496 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11498 * cgraph.c: Fix typos in comments.
11499 (cgraph_availability_names): Fix string typo.
11500 * fold-const.c: Fix typos in comments.
11501 (fold_binary): Fix typo in warning.
11502 * genautomata.c: Fix typos in comments.
11503 (check_presence_pattern_sets): Fix typo in local variable.
11504 (output_description): Fix typo in output.
11505 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11506 * hwint.h: Likewise.
11507 * matrix-reorg.c (check_allocation_function): Likewise.
11508 * omega.c (smooth_weird_equations): Likewise.
11509 * auto-inc-dec.c: Fix typos in comments.
11510 * bb-reorder.c: Likewise.
11511 * builtins.c: Likewise.
11512 * c-common.c: Likewise.
11513 * c-cppbuiltin.c: Likewise.
11514 * c-parser.c: Likewise.
11515 * c-pretty-print.c: Likewise.
11516 * cfgcleanup.c: Likewise.
11517 * cfgexpand.c: Likewise.
11518 * cfghooks.c: Likewise.
11519 * cfglayout.c: Likewise.
11520 * cfgloopmanip.c: Likewise.
11521 * cgraphunit.c: Likewise.
11522 * coverage.c: Likewise.
11523 * dbxout.c: Likewise.
11524 * df-byte-scan.c: Likewise.
11525 * df-core.c: Likewise.
11526 * df-problems.c: Likewise.
11527 * df-scan.c: Likewise.
11529 * dominance.c: Likewise.
11530 * domwalk.c: Likewise.
11532 * dwarf2out.c: Likewise.
11533 * emit-rtl.c: Likewise.
11534 * et-forest.c: Likewise.
11535 * function.c: Likewise.
11536 * function.h: Likewise.
11538 * gcov-io.c: Likewise.
11539 * gcov.c: Likewise.
11540 * gcse.c: Likewise.
11541 * genattrtab.c: Likewise.
11542 * ggc-page.c: Likewise.
11543 * gimplify.c: Likewise.
11544 * gthr-lynx.h: Likewise.
11545 * haifa-sched.c: Likewise.
11546 * ipa-cp.c: Likewise.
11547 * ipa-inline.c: Likewise.
11548 * ipa-prop.h: Likewise.
11549 * ipa-pure-const.c: Likewise.
11550 * ipa-struct-reorg.c: Likewise.
11551 * ipa-struct-reorg.h: Likewise.
11552 * ipa-type-escape.c: Likewise.
11554 * loop-doloop.c: Likewise.
11555 * mips-tfile.c: Likewise.
11556 * mkmap-flat.awk: Likewise.
11557 * mkmap-symver.awk: Likewise.
11558 * modulo-sched.c: Likewise.
11559 * omp-low.c: Likewise.
11560 * optabs.c: Likewise.
11561 * optabs.h: Likewise.
11562 * opts.c: Likewise.
11563 * passes.c: Likewise.
11564 * postreload-gcse.c: Likewise.
11565 * postreload.c: Likewise.
11566 * predict.c: Likewise.
11567 * pretty-print.h: Likewise.
11568 * profile.c: Likewise.
11569 * protoize.c: Likewise.
11570 * ra-conflict.c: Likewise.
11571 * real.c: Likewise.
11572 * recog.c: Likewise.
11573 * regclass.c: Likewise.
11574 * regs.h: Likewise.
11575 * reload.c: Likewise.
11576 * rtl-error.c: Likewise.
11577 * rtlanal.c: Likewise.
11578 * scan.h: Likewise.
11579 * sched-rgn.c: Likewise.
11581 * stmt.c: Likewise.
11582 * target.h: Likewise.
11583 * tree-dfa.c: Likewise.
11584 * tree-eh.c: Likewise.
11585 * tree-flow-inline.h: Likewise.
11586 * tree-inline.c: Likewise.
11587 * tree-into-ssa.c: Likewise.
11588 * tree-loop-distribution.c: Likewise.
11589 * tree-nested.c: Likewise.
11590 * tree-parloops.c: Likewise.
11591 * tree-pass.h: Likewise.
11592 * tree-pretty-print.c: Likewise.
11593 * tree-profile.c: Likewise.
11594 * tree-scalar-evolution.c: Likewise.
11595 * tree-sra.c: Likewise.
11596 * tree-ssa-alias-warnings.c: Likewise.
11597 * tree-ssa-ccp.c: Likewise.
11598 * tree-ssa-coalesce.c: Likewise.
11599 * tree-ssa-dom.c: Likewise.
11600 * tree-ssa-dse.c: Likewise.
11601 * tree-ssa-forwprop.c: Likewise.
11602 * tree-ssa-live.c: Likewise.
11603 * tree-ssa-live.h: Likewise.
11604 * tree-ssa-loop-im.c: Likewise.
11605 * tree-ssa-loop-ivopts.c: Likewise.
11606 * tree-ssa-loop-niter.c: Likewise.
11607 * tree-ssa-loop-prefetch.c: Likewise.
11608 * tree-ssa-phiopt.c: Likewise.
11609 * tree-ssa-phiprop.c: Likewise.
11610 * tree-ssa-sccvn.c: Likewise.
11611 * tree-ssa-ter.c: Likewise.
11612 * tree-ssa-threadupdate.c: Likewise.
11613 * tree-ssa.c: Likewise.
11614 * tree-vect-analyze.c: Likewise.
11615 * tree-vect-transform.c: Likewise.
11616 * tree-vectorizer.c: Likewise.
11617 * tree-vn.c: Likewise.
11618 * tree-vrp.c: Likewise.
11619 * tree.c: Likewise.
11620 * tree.def: Likewise.
11621 * tree.h: Likewise.
11622 * unwind-dw2-fde.c: Likewise.
11623 * unwind.inc: Likewise.
11624 * value-prof.c: Likewise.
11625 * vmsdbgout.c: Likewise.
11627 2008-06-05 David Edelsohn <edelsohn@gnu.org>
11629 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11630 always place FP constants in the TOC for TARGET_POWERPC64.
11631 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11633 2008-06-05 Joseph Myers <joseph@codesourcery.com>
11635 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11636 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11637 enable for TARGET_E500_DOUBLE.
11638 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11639 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11640 floating-point modes like integer modes for E500 double.
11641 (rs6000_legitimate_offset_address_p): Likewise.
11642 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
11643 addressing for DDmode for E500 double.
11644 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11645 modes as using 64-bits of registers for E500 double.
11646 (spe_build_register_parallel): Do not handle DDmode or TDmode.
11647 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11648 specially for E500 double.
11649 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11650 TDmode for E500 double.
11651 (rs6000_gimplify_va_arg): Only handle SDmode in registers
11652 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11653 (rs6000_split_multireg_move): Do not handle TDmode specially for
11655 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11656 using 64-bit registers for E500 double.
11657 (emit_frame_save): Do not handle DDmode specially for E500 double.
11658 (gen_frame_mem_offset): Likewise.
11659 (rs6000_function_value): Do not call spe_build_register_parallel
11660 for DDmode or TDmode.
11661 (rs6000_libcall_value): Likewise.
11662 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11663 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11666 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
11668 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11671 2008-06-04 Junjie Gu <jgu@tensilica.com>
11673 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11674 comparison for frame pointers.
11676 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11679 * config/avr/avr.h (PUSH_ROUNDING): Remove.
11681 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11684 * builtins.c (expand_builtin_signbit): Don't take lowpart when
11685 register is already smaller or equal to required mode.
11687 2008-06-04 Xinliang David Li <davidxl@google.com>
11689 * tree-call-cdce.c: New file.
11690 (cond_dead_built_in_calls): New static variable.
11691 (input_domain): New struct.
11692 (check_pow): New function.
11693 (check_builtin_call): Ditto.
11694 (check_target_format): Ditto.
11695 (is_call_dce_candidate): Ditto.
11696 (gen_one_condition): Ditto.
11697 (gen_conditions_for_domain): Ditto.
11698 (get_domain): Ditto.
11699 (gen_conditions_for_pow_cst_base): Ditto.
11700 (gen_conditions_for_pow_int_base): Ditto.
11701 (gen_conditions_for_pow): Ditto.
11702 (get_no_error_domain): Ditto.
11703 (gen_shrink_wrap_conditions): Ditto.
11704 (shrink_wrap_one_built_in_call): Ditto.
11705 (shink_wrap_conditional_dead_built_in_calls): Ditto.
11706 (tree_call_cdce): Ditto.
11707 (gate_call_cdce): Ditto.
11708 (pass_call_cdce): New gimple pass.
11709 * passes.c: (init_optimization_passes): New pass.
11710 * tree-pass.h: New pass declaration.
11711 * opts.c (decode_options): New flag setting.
11712 * common.opt: Add -ftree-builtin-call-dce flag.
11713 * Makefile.in: Add new source file.
11714 * tempvar.def: New tv_id.
11715 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11717 2008-06-04 Richard Guenther <rguenther@suse.de>
11719 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11720 (is_call_clobbered): Always check var_ann->call_clobbered.
11721 (mark_call_clobbered): Always set var_ann->call_clobbered.
11722 (clear_call_clobbered): Always clear var_ann->call_clobbered.
11723 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11724 (reset_alias_info): Clear call clobbering info on MTAGs and
11726 (set_pt_anything): Set pt_global_mem.
11727 (create_tag_raw): Adjust comment.
11728 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11730 2008-06-04 Joseph Myers <joseph@codesourcery.com>
11731 Maxim Kuvyrkov <maxim@codesourcery.com>
11733 * config/m68k/m68k.opt (mxgot): New option.
11734 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11735 (m68k_output_addr_const_extra): New.
11736 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11737 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11738 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11739 * doc/invoke.texi (M680x0 Options): Document -mxgot.
11741 2008-06-04 Richard Guenther <rguenther@suse.de>
11743 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11744 negative or non-representable offsets.
11746 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
11748 * config/i386/i386.c (ix86_gen_leave): New.
11749 (ix86_gen_pop1): Likewise.
11750 (ix86_gen_add3): Likewise.
11751 (ix86_gen_sub3): Likewise.
11752 (ix86_gen_sub3_carry): Likewise.
11753 (ix86_gen_one_cmpl2): Likewise.
11754 (ix86_gen_monitor): Likewise.
11755 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11756 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11757 ix86_gen_one_cmpl2 and ix86_gen_monitor.
11758 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11759 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11760 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11761 (ix86_expand_epilogue): Updated.
11762 (print_operand): Handle integer register operand for 'z'.
11763 (ix86_expand_strlensi_unroll_1): Likewise.
11764 (ix86_expand_strlen): Likewise.
11765 (ix86_expand_builtin): Likewise.
11766 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11767 mov{q}/mov{l} and add{q}/add{l}.
11769 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11771 * config/i386/i386.md (P): New mode iterator.
11772 (SFmode push_operand splitter): Macroize DImode and SImode pushes
11773 using P mode iterator.
11774 (DFmode push_operand splitter): Ditto.
11775 (XFmode push_operand splitter): Ditto.
11776 (DFmode float_extend SFmode push_operand splitter): Ditto.
11777 (XFmode float_extend SFmode push_operand splitter): Do not generate
11778 SImode pushes for 64bit target. Macroize Dimode and SImode
11779 pushes using P mode iterator.
11780 (XFmode float_extend DFmode push_operand splitter): Ditto.
11782 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11784 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11785 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11786 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11787 return type to int.
11788 (ix86_call_abi_override): Remove check for call_used_regs.
11790 2008-06-03 Richard Guenther <rguenther@suse.de>
11792 * tree-ssa-structalias.c (find_func_aliases): Add constraints
11793 for the lhs of calls if the return type contains pointers.
11795 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11797 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11798 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11799 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11800 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11801 of cfun and DEFAULT_ABI to deceide abi mode.
11802 (DEFAULT_ABI): New.
11803 (REG_PARM_STACK_SPACE): Removed.
11804 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11805 (STACK_BOUNDARY): Use default target to deceide stack boundary.
11806 * config/i386/i386-protos.h (ix86_cfun_abi): New.
11807 (ix86_function_abi): Likewise.
11808 (ix86_function_type_abi): Likewise.
11809 (ix86_call_abi_override): Likewise.
11810 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11811 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11812 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11813 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11815 (X86_64_REGPARM_MAX): New.
11816 (X86_64_SSE_REGPARM_MAX): New.
11817 (X64_REGPARM_MAX): New.
11818 (X64_SSE_REGPARM_MAX): New.
11819 (X86_32_REGPARM_MAX): New.
11820 (X86_32_SSE_REGPARM_MAX): New.
11821 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11822 (ix86_function_regparm): Handle user calling abi.
11823 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11824 by DEFAULT_ABI versus SYSV_ABI check.
11825 (ix86_reg_parm_stack_space): New.
11826 (ix86_function_type_abi): New.
11827 (ix86_call_abi_override): New.
11828 (ix86_function_abi): New.
11829 (ix86_cfun_abi): New.
11830 (init_cumulative_args): Call abi specific initialization.
11831 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11832 (function_arg_64): Extend SSE_REGPARM_MAX check.
11833 (function_arg (): Remove TARGET_64BIT_MS_ABI.
11834 (ix86_pass_by_reference): Likewise.
11835 (ix86_function_value_regno_p): Likewise.
11836 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11837 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11838 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11839 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11840 (setup_incoming_varargs_64): Adjust regparm for call abi.
11841 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11842 (ix86_va_start): Likewise.
11843 (ix86_gimplify_va_arg): Likewise.
11844 (ix86_expand_prologue): Likewise.
11845 (output_pic_addr_const): Likewise.
11846 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11847 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11848 (x86_output_mi_thunk): Likewise.
11849 (x86_function_profiler): Likewise.
11850 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11851 (SYSV_ABI, MS_ABI): New constants.
11852 (DEFAULT_ABI): New.
11853 (init_regs): Add prototype of function in regclass.c file.
11854 (OVERRIDE_ABI_FORMAT): New.
11855 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11856 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11857 (OUTGOING_REG_PARM_STACK_SPACE): New.
11858 (ix86_reg_parm_stack_space): New prototype.
11859 (CUMULATIVE_ARGS): Add call_abi member.
11860 (machine_function): Add call_abi member.
11861 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11862 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11864 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
11867 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11868 (avr_builtin_setjmp_frame_value): New function.
11869 * config/avr/avr.md (nonlocal_goto_receiver): Define.
11870 (nonlocal_goto): Define.
11872 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
11874 * config/mips/mips.c (mips_emit_loadgp): Return early if
11875 there is nothing do to, otherwise emit a blockage if
11876 !TARGET_EXPLICIT_RELOCS || crtl->profile.
11877 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11879 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11881 * configure.ac: Drop unneeded backslash ending up in config.in.
11882 * acinclude.m4: Likewise.
11883 * config.in: Regenerate.
11885 2008-05-26 Jan Hubicka <jh@suse.cz>
11887 * predict.c (maybe_hot_frequency_p): Break out of...
11888 (maybe_hot_bb_p): ... here.
11889 (maybe_hot_edge_p): New.
11890 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11891 * basic-block.h (maybe_hot_edge_p): Declare.
11893 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
11895 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11896 (*cmpfp_<mode>_cc): Ditto.
11897 (*fp_jcc_8<mode>_387): Ditto.
11898 (*fop_<MODEF:mode>_2_i387): Ditto.
11899 (*fop_<MODEF:mode>_3_i387): Ditto.
11900 (*fop_xf_2_i387): Ditto.
11901 (*fop_xf_3_i387): Ditto.
11903 2008-06-02 Tomas Bily <tbily@suse.cz>
11905 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11907 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11909 * config/mips/mips.c (mips_valid_offset_p): New function.
11910 (mips_valid_lo_sum_p): Likewise.
11911 (mips_classify_address): Use them.
11912 (mips_force_address): New function.
11913 (mips_legitimize_address): Use it.
11914 * config/mips/mips.md (MOVE128): New mode iterator.
11915 (movtf): Require TARGET_64BIT. Remove empty strings.
11916 (*movtf_internal): Rename to...
11917 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
11918 of "R" and use {,fp}{load,store} attributes instead of "multi".
11919 Use a separate define_split.
11920 (*movtf_mips16): New pattern.
11922 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11924 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11925 * config/mips/mips.c (mips_expand_before_return): New function.
11926 (mips_expand_epilogue): Call it.
11927 * config/mips/mips.md (return): Turn into a define_expand.
11928 (*return): New insn.
11930 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11932 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11933 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11934 functions. Do not emit uses and clobbers of CONCATs; individually
11935 use and clobber their operands.
11936 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11937 gen_clobber, emit_use and gen_use.
11938 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11939 (expand_builtin_return): Likewise.
11940 * cfgbuild.c (count_basic_blocks): Likewise.
11941 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11942 * explow.c (emit_stack_restore): Likewise.
11943 * expmed.c (extract_bit_field_1): Likewise.
11944 * expr.c (convert_move, emit_move_complex_parts): Likewise.
11945 (emit_move_multi_word, store_constructor): Likewise.
11946 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11947 (thread_prologue_and_epilogue_insns): Likewise.
11948 * lower-subreg.c (resolve_simple_move): Likewise.
11949 * optabs.c (widen_operand, expand_binop): Likewise.
11950 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11951 * reload.c (find_reloads): Likewise.
11952 * reload1.c (eliminate_regs_in_insn): Likewise.
11953 * stmt.c (expand_nl_goto_receiver): Likewise.
11954 * config/alpha/alpha.md (builtin_longjmp): Likewise.
11955 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11956 * config/arm/arm.c (arm_load_pic_register): Likewise.
11957 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11958 * config/arm/arm.md (untyped_return): Likewise.
11959 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11960 * config/avr/avr.c (expand_prologue): Likewise.
11961 * config/bfin/bfin.c (do_unlink): Likewise.
11962 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11963 * config/cris/cris.c (cris_expand_prologue): Likewise.
11964 * config/darwin.c (machopic_indirect_data_reference): Likewise.
11965 (machopic_legitimize_pic_address): Likewise.
11966 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11967 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11968 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11969 (ix86_expand_convert_uns_didf_sse): Likewise.
11970 (ix86_expand_vector_init_general): Likewise.
11971 * config/ia64/ia64.md (eh_epilogue): Likewise.
11972 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11973 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11974 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11975 (config/iq2000/iq2000.c): Likewise.
11976 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11977 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11978 (builtin_longjmp): Likewise.
11979 * config/mn10300/mn10300.md (call, call_value): Likewise.
11980 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11981 * config/pdp11/pdp11.md (abshi2): Likewise.
11982 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11983 * config/s390/s390.c (s390_emit_prologue): Likewise.
11984 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11985 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11986 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11987 * config/sh/sh.c (prepare_move_operands): Likewise.
11988 (output_stack_adjust, sh_expand_epilogue): Likewise.
11989 (sh_set_return_address, sh_expand_t_scc): Likewise.
11990 * config/sparc/sparc.c (load_pic_register): Likewise.
11991 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11992 * config/spu/spu.c (spu_expand_epilogue): Likewise.
11993 * config/v850/v850.c (expand_epilogue): Likewise.
11995 2008-05-31 Anatoly Sokolov <aesok@post.ru>
11997 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11998 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11999 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
12000 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
12001 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
12002 stack pointer register.
12003 (output_movhi): Remove code for interrupt specific writing to the
12004 stack pointer register.
12006 2008-05-31 Richard Guenther <rguenther@suse.de>
12008 PR tree-optimization/34244
12009 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
12010 (tree_expr_nonzero_warnv_p): Likewise.
12011 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
12012 ssa_name_nonnegative_p.
12013 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
12014 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
12015 not tree_expr_nonzero_warnv_p.
12017 PR tree-optimization/36262
12019 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
12021 PR tree-optimization/34244
12022 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
12023 (record_numbers_of_iterations): New function.
12024 (execute_vrp): Cache the numbers of iterations of loops.
12025 * tree-scalar-evolution.c (scev_reset_except_niters):
12027 (scev_reset): Use scev_reset_except_niters.
12028 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
12030 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
12032 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12033 __WORKAROUND_RETS when appropriate.
12035 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
12037 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
12038 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
12040 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
12041 *fop_df_comm_sse insn patterns using MODEF mode iterator.
12042 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
12043 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
12044 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
12045 *fop_df_1_mixed insn patterns using MODEF mode iterator.
12046 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
12047 *fop_df_1_sse insn patterns using MODEF mode iterator.
12048 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
12049 *fop_df_1_i387 insn patterns using MODEF mode iterator.
12050 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
12051 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
12052 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
12053 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
12054 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
12055 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
12056 (*fop_xf_4_i387): Use <MODE> for mode attribute.
12057 (*fop_xf_5_i387): Ditto.
12058 (*fop_xf_6_i387): Ditto.
12060 2008-05-30 Richard Guenther <rguenther@suse.de>
12062 * builtins.c (build_string_literal): Avoid generating
12063 a non-gimple_val result.
12065 2008-05-30 DJ Delorie <dj@redhat.com>
12067 * exec-tool.in: Use an environment variable (private) instead of a
12068 file (shared) as a semaphore, so as to not break parallel builds.
12070 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
12072 * optabs.c (maybe_encapsulate_block): Remove.
12073 (emit_libcall_block): Adjust accordingly.
12074 * optabs.h (maybe_encapsulate_block): Remove prototype.
12076 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
12077 Don't use maybe_encapsulate_block.
12079 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
12081 * config/rs6000/rs6000.c (rs6000_legitimize_address,
12082 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
12083 rtx is a SYMBOL_REF before calling get_pool_constant.
12085 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
12087 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
12089 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
12091 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
12092 rather than OS names to choose INO_T_EQ definition.
12093 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
12094 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
12096 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
12099 * config/darwin-f.c: New.
12100 * config/t-darwin: Added rule to build darwin-f.o.
12101 * config.gcc: Defined new variable, fortran_target_objs.
12102 (*-*-darwin*): Set fortran_target_objs.
12103 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
12104 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
12105 * configure: Regenerated.
12107 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
12110 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
12111 canonical type if needed.
12113 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
12115 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
12117 2008-05-29 Richard Guenther <rguenther@suse.de>
12119 PR tree-optimization/36343
12120 PR tree-optimization/36346
12121 PR tree-optimization/36347
12122 * tree-flow.h (clobber_what_p_points_to): Declare.
12123 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
12124 pointed-to variable is dereferenced is irrelevant to whether
12125 the pointer can access the pointed-to variable.
12126 (clobber_what_p_points_to): New function.
12127 * tree-ssa-alias.c (set_initial_properties): Use it.
12128 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
12129 call clobber check for NMTs.
12131 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
12133 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
12134 for printing gcov_type.
12136 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
12138 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
12139 and the eh region information.
12140 * value-prof.c (gimple_move_stmt_histograms): New function.
12141 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
12143 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
12145 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
12147 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
12149 * value-prof.c (tree_ic_transform): Print counts.
12150 * tree-profile.c (tree_gen_ic_func_profiler):
12151 Clear __gcov_indreict_call_callee variable to avoid misattribution
12154 2008-05-28 Rafael Espíndola <espindola@google.com>
12156 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
12159 2008-05-28 Richard Guenther <rguenther@suse.de>
12161 PR tree-optimization/36339
12162 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
12163 and clobbering code out of the loop.
12165 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
12167 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
12170 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
12171 s390_contiguous_bitmask_p, s390_symref_operand_p,
12172 s390_check_symref_alignment, s390_reload_larl_operand,
12173 s390_reload_symref_address): New functions.
12174 (s390_branch_condition_mnemonic): Support compare and branch
12176 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
12177 and 'W' constraints.
12178 (s390_secondary_reload): Add secondary reloads for unaligned
12179 symbol refs or symbol refs to floating point or QI/TI mode
12181 (legitimate_address_p): Accept symbol references as addresses.
12182 (s390_expand_insv): Use rotate and insert selected bits
12183 instruction for insv when building for z10.
12184 (print_operand_address): Handle symbol ref addresses.
12185 (print_operand): Output modifier 'c' added for signed byte values.
12186 (s390_encode_section_info): Mark symbol refs with
12187 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
12189 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
12190 (length attribute): RRF, RRR have 4 byte length.
12191 (FPALL, INTALL): New mode iterators added.
12192 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
12193 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
12194 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
12195 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
12196 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
12197 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
12198 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
12199 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
12201 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
12202 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
12203 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
12204 reload<INTALL:mode><P:mode>_toreg_z10,
12205 reload<FPALL:mode><P:mode>_tomem_z10,
12206 reload<FPALL:mode><P:mode>_toreg_z10,
12207 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
12208 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
12209 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
12210 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
12212 (movmem, clrmem, cmpmem): New splitters added.
12214 * config/s390/predicates.md (larl_operand): Use
12215 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
12216 SYMBOL_REF_ALIGN1_P.
12217 (s390_signed_integer_comparison,
12218 s390_unsigned_integer_comparison): New predicates.
12220 * config/s390/s390-protos.h (s390_check_symref_alignment,
12221 s390_contiguous_bitmask_p, s390_reload_larl_operand,
12222 s390_reload_symref_address,
12223 s390_compare_and_branch_condition_mask): Prototypes added.
12225 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
12226 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
12227 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
12229 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
12231 * config/s390/s390.c (z10_cost): New cost function for z10.
12232 (s390_handle_arch_option, override_options): Support -march=z10 switch.
12233 (s390_issue_rate): Adjust issue rate for z10.
12234 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
12235 (processor_flags): Add PF_Z10.
12236 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
12237 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
12238 * gcc/config.gcc: Add z10.
12240 2008-05-28 Richard Guenther <rguenther@suse.de>
12242 PR tree-optimization/36291
12243 * tree-flow. h (struct gimple_df): Remove var_anns member.
12244 * tree-flow-inline.h (gimple_var_anns): Remove.
12245 (var_ann): Simplify.
12246 * tree-dfa.c (create_var_ann): Simplify.
12247 (remove_referenced_var): Clear alias info from var_anns of globals.
12248 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12249 (delete_tree_ssa): Clear alias info from var_anns of globals.
12250 Do not free var_anns.
12251 (var_ann_eq): Remove.
12252 (var_ann_hash): Likewise.
12254 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
12256 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
12257 and loongson2f entries.
12258 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
12259 * config/mips/mips.h (processor_type): Add Loongson-2E
12260 and Loongson-2F entries.
12261 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
12262 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
12263 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
12264 * doc/invoke.texi (MIPS Options): Document loongson2e
12265 and loongson2f processor names.
12267 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
12271 * config/i386/i386.c (ix86_function_arg_boundary): Use
12272 alignment of canonical type.
12273 (ix86_expand_vector_move): Check unaligned memory access for
12276 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
12278 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
12279 Moved to the front of file.
12281 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
12282 H.J. Lu <hongjiu.lu@intel.com>
12284 * dwarf2out.c (current_fde): New.
12286 (lookup_cfa:): Likewise.
12287 (dwarf2out_end_epilogue): Likewise.
12288 (dwarf2out_note_section_used): Likewise.
12290 2008-05-27 Michael Matz <matz@suse.de>
12293 * c.opt (Wenum-compare): New warning option.
12294 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
12296 2008-05-27 Michael Matz <matz@suse.de>
12298 PR middle-end/36326
12299 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
12301 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
12302 into memory as tail calls.
12304 2008-05-27 Richard Guenther <rguenther@suse.de>
12306 PR tree-optimization/36339
12307 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
12308 pointers cause all addressable variables to be call clobbered.
12310 2008-05-27 Richard Guenther <rguenther@suse.de>
12312 PR tree-optimization/36245
12313 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
12315 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12317 * config/s390/s390.md: Replace all occurences of the 'm'
12318 constraint with 'RT'.
12320 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12322 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
12324 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
12326 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
12327 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
12328 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
12330 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12332 * reload.c: (find_reloads): Skip alternatives according to the
12333 "enabled" attribute. Constify the constraint variable.
12334 * recog.c (get_attr_enabled): Add default implementation.
12335 (extract_insn): Set the alternative_enabled_p array
12336 in the recog_data struct.
12337 (preprocess_constraints, constrain_operands): Skip
12338 alternatives according to the "enabled" attribute
12339 * recog.h (struct recog_data): New field alternative_enabled_p.
12340 (skip_alternative): New inline function.
12341 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
12342 (record_reg_classes): Skip alternative according to the
12343 "enabled" attribute.
12345 * doc/md.texi: Add documention for the "enabled" attribute.
12347 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12349 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
12350 * postreload.c (reload_cse_simplify_operands): Replace 'm'
12351 constraint with TARGET_MEM_CONSTRAINT.
12352 * recog.c (asm_operand_ok, preprocess_constraints,
12353 constrain_operands): Likewise.
12354 * regclass.c (record_reg_classes): Likewise.
12355 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
12356 * reload1.c (maybe_fix_stack_asms): Likewise.
12357 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12358 * recog.h: Adjust comment.
12359 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12360 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12361 * doc/md.texi: Add a note to description of 'm' constraint.
12362 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12364 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
12366 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12367 that the bitfield is of integral type before testing its precision.
12369 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
12370 Sa Liu <saliu@de.ibm.com>
12372 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12373 __modti3, __udivti3, __umodti3 and __udivmodti4.
12374 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12375 that implement TImode mul and div functions.
12376 * config/spu/multi3.c: New. Implement __multi3.
12377 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12378 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12381 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
12383 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12384 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12385 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12386 tls_sysv_suffix): New mode and mode attribute iterators.
12387 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12388 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12389 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12390 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12391 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12394 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
12396 PR tree-optimization/36329
12397 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12398 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12399 * cgraphbuild.c (initialize_inline_failed): Use the latter
12400 macro in lieu of the former.
12401 * ipa-inline.c (cgraph_mark_inline): Likewise.
12402 (cgraph_decide_inlining_of_small_function): Likewise.
12403 (cgraph_decide_inlining): Likewise.
12404 (cgraph_decide_inlining_incrementally): Likewise.
12406 2008-05-26 Tristan Gingold <gingold@adacore.com>
12407 Anatoly Sokolov <aesok@post.ru>
12409 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12410 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12411 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12412 optimization for 'avr6' architecture.
12414 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
12417 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12419 2008-05-26 Richard Guenther <rguenther@suse.de>
12421 * tree-ssa-sccvn.c (expr_has_constants): Declare.
12422 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12424 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
12426 PR middle-end/36253
12427 * caller-save.c (insert_restore): Verify alignment of spill space.
12428 (insert_save): Likewise.
12429 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12430 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12431 (STACK_SLOT_ALIGNMENT): Likewise.
12432 * function.c (LOCAL_ALIGNMENT): Removed.
12433 (get_stack_local_alignment): New.
12434 (assign_stack_local): Use it. Set alignment on stack slot.
12435 (assign_stack_temp_for_type): Use get_stack_local_alignment.
12436 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12437 (STACK_SLOT_ALIGNMENT): New.
12438 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12439 stack slot in XFmode.
12441 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12443 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
12446 * config/i386/i386.md (allocate_stack_worker_64): Make sure
12447 argument operand in rax isn't removed.
12449 2008-05-26 Richard Guenther <rguenther@suse.de>
12451 PR middle-end/36300
12452 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12453 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
12455 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12458 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12460 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
12462 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12463 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12465 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
12467 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12468 build a trampoline if we don't want one.
12469 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12470 return zero for nested functions if we don't want a trampoline.
12472 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12474 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12476 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12479 * c.opt: Removed undocumented option '-lang-fortran'.
12480 * c-common.h: Removed global variable 'lang_fortran'.
12481 * c-opts.c (c_common_handle_option): Removed code to handle
12482 option '-lang-fortran'. Updated includes.
12483 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12484 definition of '__GFORTRAN__'.
12485 (define__GNUC__): Reimplemented to use BASEVER and
12486 cpp_define_formatted.
12487 (builtin_define_with_value_n): Removed.
12488 * c-incpath.h: Renamed to ...
12489 * incpath.h: ... this.
12490 * c-incpath.c: Renamed to ...
12491 * incpath.c: ... this. Updated includes.
12492 * fix-header.c: Updated includes.
12493 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12494 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12495 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12497 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
12499 * tree.h: Update the table of flags used on tree nodes.
12500 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12501 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12502 (FORCED_LABEL): Add access check.
12503 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12504 (ASM_INPUT_P): Likewise.
12505 (ASM_VOLATILE_P): Likewise.
12506 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12507 (OMP_SECTION_LAST): Access private_flag directly.
12508 (OMP_RETURN_NOWAIT): Likewise.
12509 (OMP_PARALLEL_COMBINED): Likewise.
12510 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12511 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12512 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12513 deprecated_flag directly.
12515 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
12517 * final.c (frame_pointer_needed): Removed.
12518 * flags.h (frame_pointer_needed): Likewise.
12520 * function.h (rtl_data): Add frame_pointer_needed.
12521 (frame_pointer_needed): New.
12523 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
12525 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12527 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
12529 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12532 2008-05-25 Alan Modra <amodra@bigpond.net.au>
12534 * c-common.c (strip_array_types): Move function to..
12536 (get_inner_array_type): Delete.
12537 * c-common.h (strip_array_types): Move declaration to..
12539 (get_inner_array_type): Delete.
12540 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12541 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12542 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12543 * config/pa/pa.c (emit_move_sequence): Likewise.
12545 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
12547 * config/i386/i386.md (*sse_prologue_save_insn): Set length
12550 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
12552 * function.c: Include target hook for nonlocal_goto frame value.
12554 2008-05-24 Richard Guenther <rguenther@suse.de>
12556 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12557 variable can be only accessed through a pointer or a union.
12559 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12561 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12562 * doc/extend.texi: Likewise.
12564 2008-05-23 DJ Delorie <dj@redhat.com>
12566 * config/m32c/jump.md (untyped_call): Add.
12568 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12569 for A24 to PSImode.
12570 (m32c_address_cost): Detail costs for indirect offsets.
12572 2008-05-23 Rafael Espíndola <espindola@google.com>
12574 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12575 if a node is a SUBREG.
12576 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12579 2008-05-23 Paul Brook <paul@codesourcery.com>
12580 Carlos O'Donell <carlos@codesourcery.com>
12582 * doc/extend.texi: Clarify use of __attribute__((naked)).
12583 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12584 * target.h (gcc_target): Add allocate_stack_slots_for_args.
12585 * function.c (use_register_for_decl): Use
12586 targetm.calls.allocate_stack_slots_for_args.
12587 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12588 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12589 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12591 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
12593 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12595 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
12597 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12598 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12599 is only rounded once.
12601 2008-05-23 Richard Guenther <rguenther@suse.de>
12603 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12605 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
12606 Jakub Jelinek <jakub@redhat.com>
12609 * configure.ac: Handle --enable-cld.
12610 * configure: Regenerated.
12611 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12612 * config/i386/i386.h (struct machine_function): Add needs_cld field.
12613 (ix86_current_function_needs_cld): New define.
12614 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12615 (cld): New isns pattern.
12616 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12617 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12618 * config/i386/i386.opt (mcld): New option.
12619 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12620 TARGET_CLD and ix86_current_function_needs_cld.
12621 (override_options): Use -mcld by default for 32-bit code if
12624 * doc/install.texi (Options specification): Document --enable-cld.
12625 * doc/invoke.texi (Machine Dependent Options)
12626 [i386 and x86-64 Options]: Add -mcld option.
12627 (Intel 386 and AMD x86-64 Options): Document -mcld option.
12629 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
12630 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12631 (return_in_memory_64): Likewise.
12632 (return_in_memory_ms_64): Likewise.
12634 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12636 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12637 * builtins.c (fold_builtin_fpclassify): New.
12638 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12639 * builtins.def (BUILT_IN_FPCLASSIFY): New.
12640 * c-common.c (handle_type_generic_attribute): Adjust to accept
12641 fixed arguments before an elipsis.
12642 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12643 * doc/extend.texi: Document __builtin_fpclassify.
12645 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
12647 * omp-low.c (gate_expand_omp_ssa): Remove.
12648 (pass_expand_omp_ssa): Remove.
12649 (gate_expand_omp): Do not check for flag_openmp_ssa.
12650 * common.opt (-fopenmp-ssa): Remove.
12651 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12653 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
12655 * config/sh/sh.opt (mfixed-range): New option.
12656 * config/sh/sh-protos.h (sh_fix_range): Declare.
12657 * config/sh/sh.c (sh_fix_range): New function.
12658 * config/sh/sh.h (sh_fixed_range_str): Declare.
12659 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12661 * doc/invoke.texi (SH Options): Document -mfixed-range.
12663 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
12665 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12666 it before the redeclaration.
12668 2008-05-22 Anatoly Sokolov <aesok@post.ru>
12670 * config/avr/avr.c (get_sequence_length): Add new function.
12671 (expand_prologue, expand_epilogue): Remove duplicate code.
12673 2008-05-22 Rafael Espíndola <espindola@google.com>
12675 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12678 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
12680 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12681 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12683 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12684 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12685 (vect_update_misalignment_for_peel): Likewise.
12686 (vector_alignment_reachable_p): Likewise.
12687 * tree-vect-transform.c (vectorizable_load): Likewise.
12688 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12689 (get_vectype_for_scalar_type): Pass mode of scalar_type
12690 to UNITS_PER_SIMD_WORD.
12692 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12693 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12694 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12695 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12696 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12698 2008-05-22 Ira Rosen <irar@il.ibm.com>
12700 PR tree-optimization/36293
12701 * tree-vect-transform.c (vect_transform_strided_load): Don't check
12702 if the first load must be skipped because of a gap.
12704 2008-05-22 Richard Guenther <rguenther@suse.de>
12706 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
12707 more cases of offset disambiguation that is possible if
12708 strict-aliasing rules apply.
12709 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12710 for basic offset and type-based disambiguation.
12712 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12714 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12715 ix86_expand_vector_set on V16QImode for SSE4.1.
12717 2008-05-21 Tom Tromey <tromey@redhat.com>
12719 * c.opt (Wimport): Mark as undocumented.
12720 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12722 (Warning Options): Likewise.
12723 * doc/cppopts.texi: Don't mention -Wimport.
12725 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
12727 PR tree-optimization/36287
12728 PR tree-optimization/36286
12729 * lambda-code.c (build_access_matrix): Do not use the loop->num
12730 for computing the number of induction variables: use the loop depth
12733 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
12736 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12737 option -f(no-)leading-underscore.
12739 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12741 * config/i386/i386.c (ix86_expand_vector_init_general): Use
12742 GET_MODE_NUNITS (mode).
12744 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
12746 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12747 (-mmulhw): Add 464 to description.
12748 (-mdlmzb): Likewise.
12749 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12750 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12752 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12753 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12754 * config/rs6000/rs6000.md: Update comments for 464.
12756 2008-05-21 Janis Johnson <janis187@us.ibm.com>
12758 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12760 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12762 * config/i386/sse.md (vec_extractv4sf): Removed.
12763 (vec_extractv2df): Likewise.
12764 (vec_extractv2di): Likewise.
12765 (vec_extractv4si): Likewise.
12766 (vec_extractv8hi): Likewise.
12767 (vec_extractv16qi): Likewise.
12768 (vec_extract<mode>): New.
12770 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12772 * config/i386/sse.md (vec_setv4sf): Removed.
12773 (vec_setv2df): Likewise.
12774 (vec_setv2di): Likewise.
12775 (vec_setv4si): Likewise.
12776 (vec_setv8hi): Likewise.
12777 (vec_setv16qi): Likewise.
12778 (vec_set<mode>): New.
12780 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12782 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12783 goto for vec_concat and vec_interleave.
12785 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12787 * config/i386/sse.md (vec_initv4sf): Removed.
12788 (vec_initv2df): Likewise.
12789 (vec_initv2di): Likewise.
12790 (vec_initv4si): Likewise.
12791 (vec_initv8hi): Likewise.
12792 (vec_initv16qi): Likewise.
12793 (vec_init<mode>): New.
12795 2008-05-21 Joseph Myers <joseph@codesourcery.com>
12797 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12799 2008-05-21 Tom Tromey <tromey@redhat.com>
12801 * ggc-zone.c (lookup_page_table_if_allocated): New function.
12802 (zone_find_object_offset): Likewise.
12803 (gt_ggc_m_S): Likewise.
12804 (highest_bit): Likewise.
12805 * ggc-page.c (gt_ggc_m_S): New function.
12806 * stringpool.c (string_stack): Remove.
12807 (init_stringpool): Update.
12808 (ggc_alloc_string): Use ggc_alloc.
12809 (maybe_delete_ident): New function.
12810 (ggc_purge_stringpool): Likewise.
12811 (gt_ggc_m_S): Remove.
12812 * ggc-common.c (ggc_protect_identifiers): New global.
12813 (ggc_mark_roots): Call ggc_purge_stringpool. Use
12814 ggc_protect_identifiers.
12815 * ggc.h (ggc_protect_identifiers): Declare.
12816 (gt_ggc_m_S): Update.
12817 (ggc_purge_stringpool): Declare.
12818 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12819 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12821 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12823 2008-05-21 David S. Miller <davem@davemloft.net>
12825 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12828 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
12830 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12833 2008-05-20 David Daney <ddaney@avtrex.com>
12835 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12836 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12837 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12838 UNSPEC_UPDATE_GOT_VERSION): Renumber.
12839 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12840 (atomic_hiqi_op): New define_code_iterator.
12841 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12842 mips_expand_compare_and_swap_12.
12843 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12844 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
12845 (sync_<optab><mode>, sync_old_<optab><mode>,
12846 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12847 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12848 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12849 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12850 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12851 (test_and_set_12): New insn.
12852 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12853 sync_new_<optab><mode>, sync_old_nand<mode>,
12854 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
12855 clobber to operand 0 for SI and DI mode insns.
12856 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12857 mips_gen_fn_4): New typedefs.
12858 (mips_gen_fn_ptrs): Define new union type.
12859 (mips_expand_compare_and_swap_12): Remove declaration.
12860 (mips_expand_atomic_qihi): Declare function.
12861 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12862 (mips_expand_atomic_qihi): ... this. Use new generator function
12864 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12865 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12866 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12867 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12868 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12869 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12870 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12871 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12872 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12873 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12876 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
12878 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12881 2008-05-20 Anatoly Sokolov <aesok@post.ru>
12883 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12884 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12885 (avr_attribute_table): Add 'OS_main' function attribute.
12886 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12887 functions with 'OS_main' attribute.
12889 2008-05-20 Richard Guenther <rguenther@suse.de>
12891 PR tree-optimization/35204
12892 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12893 helper, split out from ...
12894 (DFS): ... here. Make the DFS walk non-recursive.
12896 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
12897 Jan Sjodin <jan.sjodin@amd.com>
12899 PR tree-optimization/36181
12900 * tree-parloops.c (loop_has_vector_phi_nodes): New.
12901 (parallelize_loops): Don't parallelize when the loop has vector
12904 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12905 Sebastian Pop <sebastian.pop@amd.com>
12907 * tree-loop-linear.c (gather_interchange_stats): Look in the access
12908 matrix, and never look at the tree representation of the memory
12910 (linear_transform_loops): Computes parameters and access matrices.
12911 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12913 (access_matrix_get_index_for_parameter): New.
12914 * tree-data-ref.h (struct access_matrix): New.
12915 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12916 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12917 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12918 am_vector_index_for_loop): New.
12919 (struct data_reference): Add field access_matrix.
12920 (DR_ACCESS_MATRIX): New.
12921 (compute_data_dependences_for_loop): Update declaration.
12922 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12923 * lambda.h (lambda_vector_vec_p): Declared.
12924 * lambda-code.c: Depend on pointer-set.h.
12925 (lambda_collect_parameters_from_af, lambda_collect_parameters,
12926 av_for_af_base, av_for_af, build_access_matrix,
12927 lambda_compute_access_matrices): New.
12928 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12930 2008-05-20 Joseph Myers <joseph@codesourcery.com>
12932 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12933 $SOURCEDIR/include.
12935 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12936 Sebastian Pop <sebastian.pop@amd.com>
12938 PR tree-optimization/36206
12939 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12941 (instantiate_scev_1): Rename flags to fold_conversions.
12942 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12943 outeside instantiation_loop.
12944 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12945 (evolution_function_is_affine_or_constant_p): Removed.
12946 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12948 (analyze_siv_subscript): Pass in the loop nest number.
12949 Call evolution_function_is_affine_in_loop instead of
12950 evolution_function_is_affine_p.
12951 (analyze_overlapping_iterations): Pass in the loop nest number.
12953 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12954 Sebastian Pop <sebastian.pop@amd.com>
12956 PR tree-optimization/36206
12957 * tree-chrec.h (chrec_fold_op): New.
12958 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12961 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
12963 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12965 (remove_duplicates): Do not set inode on non-inode systems.
12968 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
12970 * config.gcc (tm_file): Update comments about relative pathnames.
12972 2008-05-20 Richard Guenther <rguenther@suse.de>
12974 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12975 * tree-ssa-sccvn.c (process_scc): Likewise.
12976 * tree-ssa-sink.c (execute_sink_code): Likewise.
12977 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12978 * tree-vrp.c (process_assert_insertions): Likewise.
12979 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12980 (perform_tree_ssa_dce): Likewise.
12981 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12982 (dump_dominator_optimization_stats): Likewise.
12983 * tree-vectorizer.c (vectorize_loops): Likewise.
12985 2008-05-20 Richard Guenther <rguenther@suse.de>
12987 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12989 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
12991 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12992 (ix86_i386elf_return_in_memory): Likewise.
12993 (ix86_i386interix_return_in_memory): Likewise.
12994 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12995 (SUBTARGET_RETURN_IN_MEMORY): New.
12996 * config/i386/i386elf.h: Likewise.
12997 * config/i386/ptx4-i.h: Likewise.
12998 * config/i386/sol2-10.h: Likewise.
12999 * config/i386/sysv4.h: Likewise.
13000 * config/i386/vx-common.h: Likewise.
13001 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
13002 * config/i386/i386.c (ix86_return_in_memory): Made static and
13003 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
13004 (ix86_i386elf_return_in_memory): Removed.
13005 (ix86_i386interix_return_in_memory): Removed.
13006 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
13007 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
13009 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
13011 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
13013 2008-05-19 Xinliang David Li <davidxl@google.com>
13015 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
13017 * common.opt: Ditto.
13018 * doc/invoke.texi: Ditto.
13020 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
13022 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
13023 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
13025 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
13027 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
13028 sizes of operand array from 8/4 to 4/2.
13029 (ix86_expand_vector_init_general): Change size of operand array
13030 from 32 to 16. Remove op0, op1 and half_mode.
13032 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
13034 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
13035 (ix86_expand_vector_init_interleave): Likewise.
13036 (ix86_expand_vector_init_general): Use them. Assert
13037 word_mode == SImode when n_words == 4.
13039 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
13041 * config/i386/i386.c (ix86_secondary_reload): New static function.
13042 (TARGET_SECONDARY_RELOAD): New define.
13043 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
13044 * config/i386/i386.md (reload_outqi): Remove.
13046 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13048 PR middle-end/35509
13049 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
13050 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
13051 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
13052 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
13053 (fold_builtin_1): Likewise.
13054 * builtins.def (BUILT_IN_ISINF_SIGN): New.
13055 c-common.c (check_builtin_function_arguments): Handle
13056 BUILT_IN_ISINF_SIGN.
13057 * doc/extend.texi: Document __builtin_isinf_sign.
13058 * fold-const.c (operand_equal_p): Handle COND_EXPR.
13060 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
13062 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
13063 EH cleanup at the end of the pass, search for those that have been
13064 turned into forwarder blocks and do the cleanup on their successor.
13066 2008-05-18 Richard Guenther <rguenther@suse.de>
13068 * tree-cfg.c (verify_gimple_expr): Allow conversions from
13069 pointers to sizetype and vice versa.
13071 2008-05-18 Xinliang David Li <davidxl@google.com>
13073 * gcc/tree-ssa-dce.c: Coding style fix.
13074 (check_pow): Documentation comment.
13075 (check_log): Documenation comment. Coding style fix.
13076 (is_unnecessary_except_errno_call): Ditto.
13077 (gen_conditions_for_pow): Ditto.
13078 (gen_conditions_for_log): Ditto.
13079 (gen_shrink_wrap_conditions): Ditto.
13080 (shrink_wrap_one_built_in_calls): Ditto.
13081 * gcc/doc/invoke.texi: Better documentation string.
13082 * ChangeLog: Fix wrong change log entries from
13083 May 17 checkin on function call DCE.
13085 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
13087 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
13089 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
13091 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
13092 * df-problems.c (simulation routines): Fixed block comment to
13093 properly say how to add forwards scanning functions.
13095 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
13097 * tree-inline.c (setup_one_parameter): Remove dead code.
13099 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
13101 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
13102 a BIT_AND_EXPR only for an INTEGER_TYPE.
13104 2008-05-17 Xinliang David Li <davidxl@google.com>
13106 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
13107 (check_pow, check_log, is_unnecessary_except_errno_call): New
13108 functions to check for eliminating math functions that are pure
13109 except for setting errno.
13110 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
13111 general condition expressions for shrink-wrapping pow/log calls.
13112 (gen_shrink_wrap_conditions): Ditto.
13113 (shrink_wrap_one_built_in_call): Ditto.
13114 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
13115 (mark_operand_necessary): If debugging, output if OP is necessary.
13116 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
13118 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
13120 * gcc/common.opt: New user flag -ftree-builtin-dce.
13121 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
13123 2008-05-16 David S. Miller <davem@davemloft.net>
13125 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
13126 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13128 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
13131 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
13133 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13135 * ifcvt.c (dead_or_predicable): Rename
13136 df_simulate_one_insn_backwards to df_simulate_one_insn.
13137 * recog.c (peephole2_optimize): Ditto.
13138 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
13140 * df.h: Rename df_simulate_one_insn_backwards to
13141 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
13142 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
13143 scanning of defs and uses.
13144 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
13145 (df_simulate_one_insn_forwards): Removed.
13147 2008-05-16 Doug Kwan <dougkwan@google.com>
13149 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
13151 (real_from_string): Handle NaNs and Inf as approriate.
13153 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
13155 * doc/gty.texi (Source Files Containing Type Information): Note
13156 that headers should appear first in the gtfiles list.
13158 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13160 * tree.def (COND_EXEC): Properly documented this code.
13162 2008-05-16 Diego Novillo <dnovillo@google.com>
13164 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
13165 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
13168 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13170 * tree-ssa-dse (max_stmt_uid): Removed.
13171 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
13172 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
13173 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
13174 * function.h (cfun.last_stmt_uid): New field.
13175 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
13176 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
13178 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
13179 (create_stmt_ann): Initialize the ann->uid field.
13180 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
13182 * tree-flow.h (renumber_gimple_stmt_uids): New function.
13184 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
13186 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
13187 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
13188 (init_empty_tree_cfg): Call it.
13190 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13192 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
13195 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
13197 * doc/invoke.text (-fdump-tree-*-verbose): New option.
13198 * tree-dump.c (dump_options): New verbose option.
13199 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
13201 * tree-pass.h (TDF_VERBOSE): New dump flag.
13202 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
13203 (tree-flow.h): Added include.
13204 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
13206 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
13208 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
13210 From Jie Zhang <jie.zhang@analog.com>
13211 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13212 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
13213 mcpu=bf561-none and mcpu=bf561-0.2.
13214 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13215 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13216 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13217 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13218 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
13219 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
13220 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
13222 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
13223 (cputype_selected): Remove.
13224 (bfin_handle_option): Don't use cputype_selected.
13225 (override_options): When no mcpu option, enable all workarounds.
13226 Don't use bfin_workarounds.
13227 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
13229 (DEFAULT_CPU_TYPE): Don't define.
13231 2008-05-16 Richard Guenther <rguenther@suse.de>
13233 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
13234 on deletion of the last stmt.
13236 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
13238 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
13239 V8HImode for SSE2 and V16QImode for SSE4.1.
13241 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
13243 * cgraph.h (compute_inline_parameters): Made public.
13244 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
13245 variable_generate_summary, function_write_summary,
13246 variable_write_summary, variable_read_summary. Added generate_summary,
13247 write_summary, read_summary.
13248 * cgraphunit.c (cgraph_process_new_functions): Changed call from
13249 pass_ipa_inline.function_generate_summary, to
13250 compute_inline_parameters.
13251 * ipa-inline.c (compute_inline_parameters): Made public and added
13253 (compute_inline_parameters_for_current): New function.
13254 (pass_inline_param): Now calls compute_inline_parameters_for_current.
13255 (inline_generate_summary): Removed parameter and made to loop over
13257 (pass_ipa_inline): Updated for new IPA_PASS structure.
13258 * passes.c (execute_ipa_summary_passes): Now is called once per
13259 pass rather than once per node*pass.
13261 2008-05-15 Anatoly Sokolov <aesok@post.ru>
13263 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
13264 avr_have_mul_p, avr_asm_only_p): Remove variables.
13265 (avr_override_options): Remove initialization of removed variables.
13266 (avr_file_start): Convert removed variables to fields of
13267 'struct base_arch_s *avr_current_arch'.
13268 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
13269 (AVR_HAVE_MUL): (Ditto.).
13270 (AVR_HAVE_MOVW): (Ditto.).
13271 (AVR_HAVE_LPMX): (Ditto.).
13272 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
13273 avr_asm_only_p): Remove declaration.
13275 2008-05-15 Diego Novillo <dnovillo@google.com>
13277 * config/arm/arm.c (arm_return_in_memory): Fix return type.
13278 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
13280 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
13282 PR middle-end/36194
13283 * combine.c (check_conversion): Rename back to check_promoted_subreg.
13284 Don't call record_truncated_value from here.
13285 (record_truncated_value): Turn it into a for_each_rtx callback.
13286 (record_truncated_values): New function.
13287 (combine_instructions): Call note_uses with record_truncated_values.
13288 Change name of check_conversion to check_promoted_subreg.
13290 2008-05-15 Janis Johnson <janis187@us.ibm.com>
13292 * doc/sourcebuild.texi: Document support for torture tests.
13294 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
13296 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
13297 to alternative 4 of operand 2.
13299 2008-05-15 Richard Guenther <rguenther@suse.de>
13301 * tree-pass.h (current_pass): Declare.
13302 (get_pass_for_id): Likewise.
13303 * passes.c (passes_by_id, passes_by_id_size): New globals.
13304 (set_pass_for_id): New function.
13305 (get_pass_for_id): Likewise.
13306 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
13307 (execute_function_todo): Flush per function statistics.
13308 * toplev.c (compile_file): Init statistics.
13309 (general_init): Do early statistics initialization.
13310 (finalize): Finish statistics.
13311 * statistics.h (statistics_early_init): Declare.
13312 (statistics_init): Likewise.
13313 (statistics_fini): Likewise.
13314 (statistics_fini_pass): Likewise.
13315 (statistics_counter_event): Likewise.
13316 (statistics_histogram_event): Likewise.
13317 * statistics.c: New file.
13318 * Makefile.in (OBJS-common): Add statistics.o.
13319 (statistics.o): Add dependencies.
13320 * doc/invoke.texi (-fdump-statistics): Document.
13322 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
13323 (insert): Likewise.
13324 (execute_pre): Use statistics_counter_event.
13325 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
13326 (substitute_and_fold): Increment it. Use statistics_counter_event.
13328 2008-05-15 Diego Novillo <dnovillo@google.com>
13330 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
13332 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
13333 * tree-ssa-alias.c (new_type_alias): Remove references to
13334 sub-variables from comment.
13335 * tree-ssa-operands.c (swap_tree_operands): Likewise.
13337 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
13339 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
13340 attribute to 1 only for insertps alternative.
13342 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
13344 * config/bfin/bfin.md (loadbytes): New pattern.
13345 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
13346 (bfin_init_builtins): Initialize it.
13347 (bdesc_1arg): Add it.
13349 2008-05-15 Sa Liu <saliu@de.ibm.com>
13351 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
13352 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
13353 * testsuite/lib/target-supports.exp: Add
13354 check_effective_target_fortran_integer_16.
13356 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
13358 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
13359 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13360 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
13361 (TARGET_RETURN_IN_MEMORY): Define.
13363 2008-05-15 Richard Guenther <rguenther@suse.de>
13365 PR middle-end/36244
13366 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13367 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13368 represent unmodifiable vars.
13370 2008-05-15 Richard Guenther <rguenther@suse.de>
13372 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13373 INDIRECT_REF and TARGET_MEM_REF.
13374 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13377 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
13378 H.J. Lu <hongjiu.lu@intel.com>
13380 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13381 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13382 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
13383 insn alternatives. Add missing alternatives.
13384 (*vec_concatv2di_rex64_sse4_1): Likewise.
13385 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13386 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13387 Require TARGET_SSE.
13389 2008-05-15 Richard Guenther <rguenther@suse.de>
13391 PR tree-optimization/36009
13392 PR tree-optimization/36204
13393 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13394 (determine_invariantness_stmt): Record the loop a store is
13395 always executed in.
13396 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13399 2008-05-15 Richard Guenther <rguenther@suse.de>
13401 PR tree-optimization/34330
13402 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13403 through the pointer will alias the SMT.
13405 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
13407 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13409 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
13411 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13413 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13414 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13416 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13417 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13418 (vashl_optab): New optab for vector/vector shifts.
13419 (vashr_optab): Ditto.
13420 (vlshr_optab): Ditto.
13421 (vrotl_optab): Ditto.
13422 (vrotr_optab): Ditto.
13423 (optab_subtype): New enum for optab_for_tree_code call.
13424 (optab_for_tree_code): Add enum optab_subtype argument.
13426 * optabs.c (optab_for_tree_code): Take an additional argument to
13427 distinguish between a vector shift by a scalar and vector shift by
13428 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
13429 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
13430 vector shift by a vector.
13431 (expand_widen_pattern_expr): Pass additional argument to
13432 optab_for_tree_code.
13434 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13435 vrotl_optab, vrotr_optab.
13437 * expr.c (expand_expr_real_1): Update calls to
13438 optab_for_tree_code to distinguish between vector shifted by a
13439 scalar and vector shifted by a vector.
13440 * tree-vectorizer.c (supportable_widening_operation): Ditto.
13441 (supportable_narrowing_operation): Ditto.
13442 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13443 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13444 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13445 (vect_create_epilog_for_reduction): Ditto.
13446 (vectorizable_reduction): Ditto.
13447 (vectorizable_operation): Ditto.
13448 (vect_strided_store_supported): Ditto.
13449 (vect_strided_load_supported): Ditto.
13450 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13451 * expmed.c (expand_shift): Ditto.
13453 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13455 (ashr@var{m}3): Ditto.
13456 (vashl@var{m}3): Document new vector/vector shift standard name.
13457 (vashr@var{m}3): Ditto.
13458 (vlshr@var{m}3): Ditto.
13459 (vrotl@var{m}3): Ditto.
13460 (vrotr@var{m}3): Ditto.
13462 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13463 (PPERM_INVERT): Ditto.
13464 (PPERM_REVERSE): Ditto.
13465 (PPERM_REV_INV): Ditto.
13466 (PPERM_ZERO): Ditto.
13467 (PPERM_ONES): Ditto.
13468 (PPERM_SIGN): Ditto.
13469 (PPERM_INV_SIGN): Ditto.
13470 (PPERM_SRC1): Ditto.
13471 (PPERM_SRC2): Ditto.
13473 * config/i386/sse.md (mulv2di3): Add SSE5 support.
13474 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13475 allows a memory operand to be the value being added, and split it
13476 to improve vectorization.
13477 (sse5_pmacsdqh_mem): Ditto.
13478 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13479 (sse5_mulv2div2di3_high): Ditto.
13480 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13481 (vec_pack_trunc_v4si): Ditto.
13482 (vec_pack_trunc_v2di): Ditto.
13483 (sse5_pcmov_<mode>): Remove code that tried to use use
13484 andps/andnps instead of pcmov.
13485 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13486 pmacsdqh instructions.
13487 (vec_widen_smult_lo_v4si): Ditto.
13489 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13490 (PPERM_INVERT): Ditto.
13491 (PPERM_REVERSE): Ditto.
13492 (PPERM_REV_INV): Ditto.
13493 (PPERM_ZERO): Ditto.
13494 (PPERM_ONES): Ditto.
13495 (PPERM_SIGN): Ditto.
13496 (PPERM_INV_SIGN): Ditto.
13497 (PPERM_SRC1): Ditto.
13498 (PPERM_SRC2): Ditto.
13499 (ix86_expand_sse_movcc): Move the SSE5 test after the if
13501 (ix86_expand_int_vcond): If SSE5 generate all possible integer
13503 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13504 says ignore whether the last reference is a memory operand.
13506 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13507 Paolo Bonzini <bonzini at gnu dot org>
13509 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13512 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13513 (vlshr<mode>3): Rename from vlshr<mode>3.
13514 (vashr<mode>3): Rename from vashr<mode>3.
13515 (mulv4sf3): Change the names of vector shift patterns.
13519 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13522 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13547 * config/spu/spu.md (v): New iterator macro to add v for vector types.
13548 (floatunssidf2_internal): Change vector/vector shift names.
13549 (floatunsdidf2_internal): Ditto.
13556 (vashl<mode>3): Rename from ashl<mode>3.
13557 (vashr<mode>3): Rename from ashr<mode>3.
13558 (vlshr<mode>3): Rename from lshr<mode>3.
13559 (vrotl<mode>3): Rename from rotl<mode>3.
13561 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13564 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13565 multiply gives the wrong value when doing widening multiplies.
13566 (vec_widen_smult_lo_v4si): Ditto.
13568 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13570 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13571 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13572 emit_library_call_value.
13573 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13574 * tree.h (ECF_LIBCALL_BLOCK): Removed.
13575 * calls.c (initialize_argument_information, precompute_arguments,
13576 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13577 (precompute_arguments): Removed flags parameter.
13578 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13580 2008-05-14 Richard Guenther <rguenther@suse.de>
13582 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13583 Make sure to register the store if the use is a PHI_NODE.
13585 2008-05-14 Olivier Hainque <hainque@adacore.com>
13587 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13588 memory if the component is to be referenced in BLKmode according
13589 to get_inner_reference.
13591 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
13593 * calls.c (emit_library_call_value_1): Restore code clearing
13594 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13596 2008-05-14 Olivier Hainque <hainque@adacore.com>
13597 Nicolas Roche <roche@adacore.com>
13599 * configure.ac: Add support for a "gcc_subdir" variable in
13600 config-lang.in, to denote a subdirectory where the language/GCC
13601 integration files are to be found.
13602 * configure: Regenerate.
13604 2008-05-14 Ira Rosen <irar@il.ibm.com>
13606 PR tree-optimization/36098
13607 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13608 value for the first load in the group in case of a gap.
13609 (vect_build_slp_tree): Check that there are no gaps in loads.
13611 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13613 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13614 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13615 expand_copysign_bit, ): Change call to emit_no_conflict_block to
13616 emit_insn and remove unneeded code to construct extra args.
13617 (emit_no_conflict_block): Removed.
13618 * optabls.h: (emit_no_conflict_block): Removed.
13619 * cse.c (cse_extended_basic_block): Remove search for
13620 REG_NO_CONFLICT note.
13621 * global.c: Removed incorrect comment added in revision 117.
13622 * expr.c (convert_move): Change call to emit_no_conflict_block to
13624 * recog.c: Change comments so that they do not mention
13626 * local_alloc.c (combine_regs): Removed last parameter.
13627 (no_conflict_p): Removed.
13628 (block_alloc): Removed note, no_conflict_combined_regno and set
13629 local vars. Removed all code to process REG_NO_CONFLICT blocks.
13630 (combine_regs): Removed already_dead and code to look for
13631 REG_NO_CONFLICT notes.
13632 * lower_subreg (remove_retval_note): Removed code to look for
13633 REG_NO_CONFLICT block.
13634 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13635 (resolve_clobber): Remove code to process libcalls that have
13636 REG_NO_CONFLICT notes.
13637 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13639 * combine.c (can_combine_p, distribute_notes): Removed
13640 REG_NO_CONFLICT case.
13641 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13643 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13644 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13646 * reg-notes.def (NO_CONFLICT): Removed.
13648 2008-05-14 David S. Miller <davem@davemloft.net>
13650 * config/sparc/sparc.c (sparc_profile_hook): If
13651 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13652 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13653 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13655 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
13657 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13659 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
13662 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13663 and op1 expansion before vector concat to have less live pseudos.
13665 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
13667 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13668 ix86_expand_vector_set if supported.
13670 2008-05-13 Diego Novillo <dnovillo@google.com>
13671 Kenneth Zadeck <zadeck@naturalbridge.com>
13673 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13675 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13676 phinodes_print_statistics, init_ssanames, fini_ssanames,
13677 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13678 release_ssa_name, release_defs, replace_ssa_name_symbol,
13679 ssanames_print_statistics): Move ...
13680 * tree-flow.h: ... here.
13681 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13682 Use FN instead of cfun.
13683 (make_ssa_name_fn): Rename from make_ssa_name.
13684 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13685 * tree-flow-inline.h (make_ssa_name): Move from
13686 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
13687 * omp-low.c (expand_omp_parallel):
13688 * tree-flow-inline.h (redirect_edge_var_map_result):
13689 * tree-ssa.c (init_tree_ssa): Add argument FN.
13690 Use it instead of cfun. Update all users.
13692 2008-05-13 Tom Tromey <tromey@redhat.com>
13694 PR preprocessor/22168:
13695 * doc/cpp.texi (Top): Update menu.
13696 (Alternatives to Wrapper #ifndef): New node.
13697 (Other Directives): Document deprecation.
13698 (Obsolete Features): Remove menu.
13699 (Assertions): Merge node into Obsolete Features.
13700 (Obsolete once-only headers): Move earlier; rename to Alternatives
13701 to Wrapper #ifndef.
13702 * doc/cppopts.texi: Update.
13703 * c.opt (Wdeprecated): Enable for C and ObjC.
13704 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13705 (C++ Dialect Options): Move -Wno-deprecated from here to...
13706 (Warning Options): ... here.
13708 2008-05-13 Richard Guenther <rguenther@suse.de>
13710 PR middle-end/36227
13711 * fold-const.c (fold_sign_changed_comparison): Do not allow
13712 changes in pointer-ness.
13714 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
13717 * config/sh/sh.c (sh_expand_prologue): Don't clear
13718 RTX_FRAME_RELATED_P for push insns.
13720 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
13722 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13724 2008-05-12 Anatoly Sokolov <aesok@post.ru>
13726 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13727 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13728 Use 'machine->is_leaf' instead of 'leaf_func_p'.
13730 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
13732 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13733 (*vec_concatv4sf_sse): This.
13734 (*sse2_concatv2si): Renamed to ...
13735 (*vec_concatv2si_sse2): This.
13736 (*sse1_concatv2si): Renamed to ...
13737 (*vec_concatv2si_sse): This.
13738 (*vec_concatv2di_rex): Renamed to ...
13739 (*vec_concatv2di_rex64): This.
13740 (*vec_concatv2si_sse4_1): New.
13741 (*vec_concatv2di_rex64_sse4_1): Likewise.
13743 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
13745 PR rtl-optimization/36111
13746 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13747 that was created for swappable operands.
13749 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
13752 * Makefile.in: Substitute GNATMAKE and GNATBIND.
13753 * configure.ac: Add call to ACX_PROG_GNAT.
13755 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
13757 * optc-gen.awk: Fix comment typo.
13759 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13761 * pretty-print.c (pp_integer_with_precision): Use
13762 HOST_LONG_LONG_FORMAT.
13764 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
13766 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13768 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
13770 * config/i386/i386.c (bdesc_ptest): Removed.
13771 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13772 (bdesc_args): Add __builtin_ia32_ptestz128,
13773 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13774 (ix86_init_mmx_sse_builtins): Updated.
13775 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13776 (ix86_expand_builtin): Updated.
13778 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
13780 * tree-cfg.c (valid_fixed_convert_types_p): New function.
13781 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13783 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
13785 * value-prof.c (interesting_stringop_to_profile): Do not
13786 return early for BUILT_IN_MEMPCPY.
13788 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
13790 * calls.c (expand_call): Don't use callgraph to increase
13791 preferred_stack_boundary.
13793 * cgraph.h (cgraph_rtl_info): Use unsigned on
13794 preferred_incoming_stack_boundary.
13796 * final.c (rest_of_clean_state): Use unsigned on
13797 preferred_stack_boundary.
13799 2008-05-09 Tom Tromey <tromey@redhat.com>
13801 PR preprocessor/22231:
13802 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13805 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
13807 PR tree-optimization/36129
13808 * tree-ssa-ccp.c: Include value-prof.h.
13809 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13810 built-in function was folded to a constant.
13811 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13813 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
13814 Sebastian Pop <sebastian.pop@amd.com>
13816 * tree-scalar-evolution.c: Document instantiate_scev.
13817 (instantiate_parameters_1): Renamed instantiate_scev_1.
13818 Don't use the same loop for instantiation_loop and evolution_loop.
13819 (instantiate_scev): New.
13820 (instantiate_parameters): Moved...
13821 (resolve_mixers): Update call to instantiate_scev_1 to pass the
13822 same loop twice. Maintains the semantics for this function.
13823 * tree-scalar-evolution.h (instantiate_scev): Declare.
13824 (instantiate_parameters): ...here. Now static inline.
13825 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13826 instead of resolve_mixers.
13828 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
13830 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13832 2008-05-09 Tomas Bily <tbily@suse.cz>
13834 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13835 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13836 * tree-ssa-structalias.c (get_constraint_for): Likewise.
13837 * c-common.c (c_common_truthvalue_conversion): Likewise.
13838 * tree-object-size.c (compute_object_offset): Likewise.
13839 * tree-inline.c (estimate_num_insns_1): Likewise.
13840 * varasm.c (const_hash_1, compare_constant, copy_constant)
13841 (compute_reloc_for_constant, output_addressed_constants)
13842 (initializer_constant_valid_p): Likewise.
13843 * c-omp.c (check_omp_for_incr_expr): Likewise.
13844 * gimplify.c (gimplify_expr): Likewise.
13845 * c-typeck.c (c_finish_return): Likewise.
13846 * tree-vectorizer.c (supportable_widening_operation)
13847 (supportable_narrowing_operation): Likewise.
13848 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13849 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13850 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13851 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13852 (descr_info_loc): Likewise.
13853 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13854 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13855 (fold_unary): Likewise.
13856 * builtins.c (get_pointer_alignment): Likewise.
13857 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13858 (instantiate_parameters_1): Likewise.
13859 * tree.c (expr_align, stabilize_reference): Likewise.
13860 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13861 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13862 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13863 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13864 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13865 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13867 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13868 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13869 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13870 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13871 (forward_propagate_comparison)
13872 (tree_ssa_forward_propagate_single_use_vars): Likewise.
13873 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13874 * emit-rtl.c (component_ref_for_mem_expr)
13875 (set_mem_attributes_minus_bitpos): Likewise.
13876 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13877 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13879 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13880 (build_function_call, pointer_diff, build_compound_expr)
13881 (c_finish_return): Likewise.
13882 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13883 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13885 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13886 * expr.c (is_aligning_offset): Likewise.
13887 * tree-ssa-alias.c (is_escape_site): Likewise.
13888 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13889 (check_all_va_list_escapes): Likewise.
13890 * tree-ssa-loop-ivopts.c (determine_base_object)
13891 (determine_common_wider_type): Likewise.
13892 * dojump.c (do_jump): Likewise.
13893 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13894 * tree-gimple.c (is_gimple_cast): Likewise.
13895 * fold-const.c (decode_field_reference, )
13896 (fold_sign_changed_comparison, fold_unary, fold_comparison)
13897 (fold_binary): Likewise.
13898 * tree-ssa-alias-warnings.c (find_alias_site_helper)
13899 (already_warned_in_frontend_p): Likewise.
13900 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13901 * tree.c (really_constant_p, get_unwidened): Likewise.
13902 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13903 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13904 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13906 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13908 (CONVERT_EXPR_P): Define.
13909 (CASE_CONVERT): Define.
13911 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
13913 PR middle-end/36117
13914 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13915 (delete_unmarked_insns): When deleting a call, call
13916 delete_unreachable_blocks.
13917 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13918 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13920 2008-05-08 Richard Guenther <rguenther@suse.de>
13922 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13923 (-ftree-salias): Likewise.
13924 (salias-max-implicit-fields): Remove param documentation.
13925 (salias-max-array-elements): Likewise.
13926 * tree-pass.h (pass_create_structure_vars): Remove.
13927 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13928 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13929 * tree-ssa-alias.c (create_structure_vars): Remove.
13930 (gate_structure_vars): Likewise.
13931 (pass_create_structure_vars): Likewise.
13932 (gate_build_alias): Likewise.
13933 (pass_build_alias): Adjust to run always and dump the function.
13934 * common.opt (ftree-salias): Hide.
13935 * passes.c (init_optimization_passes): Remove
13936 pass_create_structure_vars, adjust comment.
13937 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13938 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13939 * opts.c (decode_options): Do not set flag_tree_salias.
13940 (common_handle_option): Add OPT_ftree_salias to the backward
13941 compatibility section.
13943 2008-05-08 Richard Guenther <rguenther@suse.de>
13945 * tree-flow-inline.h (var_can_have_subvars): Move ...
13946 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13947 * tree-flow.h (var_can_have_subvars): Remove.
13948 (push_fields_onto_fieldstack): Remove.
13949 (sort_fieldstack): Likewise.
13950 (struct fieldoff): Move ...
13951 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
13952 alias_set and base_for_components fields.
13953 (sort_fieldstack): Make static.
13954 (push_fields_onto_fieldstack): Likewise. Remove code that
13955 handles anything but RECORD_TYPEs. Remove alias_set and
13956 base_for_components handling.
13957 (create_variable_info_for): Adjust.
13959 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
13961 * common.opt (Wframe-larger-than=): Shorten the help message
13963 * doc/invoke.texi (Wframe-larger-than=): Add more description.
13965 2008-05-08 Rafael Espíndola <espindola@google.com>
13967 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13969 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13970 trap and that both operands are gimple values.
13971 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13972 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13975 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
13977 * read-rtl.c (join_c_conditions): Return the first string if the
13978 two strings are equal.
13980 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
13982 * gensupport.h (pred_data): Add a "num_codes" field.
13983 (add_predicate_code): Declare.
13984 * gensupport.c (add_predicate_code): New function.
13985 (std_pred_table): Add an "allows_const_p" field.
13986 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13987 Remove the (incomplete) list of such codes from the codes field.
13988 (init_predicate_table): Use add_predicate_code. Add all
13989 RTX_CONST_OBJs if allows_const_p is true.
13990 * genrecog.c (process_define_predicate): Use add_predicate_code.
13992 2008-05-08 David Daney <ddaney@avtrex.com>
13993 Richard Sandiford <rsandifo@nildram.co.uk>
13995 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13996 special case of constant zero operands.
13997 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13998 old and new values. Special case constant zero values.
13999 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
14001 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
14002 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
14004 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
14007 * simplify-rtx.c (simplify_plus_minus): Create CONST of
14008 similar RTX_CONST_OBJ before CONST_INT.
14010 2008-05-08 Steve Ellcey <sje@cup.hp.com>
14012 * stmt.c (expand_stack_restore): Change sa mode if needed.
14014 2008-05-08 Richard Guenther <rguenther@suse.de>
14016 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
14017 return type to bool.
14018 (ix86_sol10_return_in_memory): Likewise.
14019 (ix86_i386elf_return_in_memory): Likewise.
14020 (ix86_i386interix_return_in_memory): Likewise.
14021 * config/i386/i386.c (ix86_return_in_memory): Likewise.
14022 (ix86_sol10_return_in_memory): Likewise.
14023 (ix86_i386elf_return_in_memory): Likewise.
14024 (ix86_i386interix_return_in_memory): Likewise.
14026 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
14029 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
14031 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
14032 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
14035 2008-05-08 Richard Guenther <rguenther@suse.de>
14037 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
14038 * tree-data-ref.h (struct dr_alias): Remove subvars field.
14039 (DR_SUBVARS): Remove.
14040 * tree-dfa.c (dump_subvars_for): Remove.
14041 (debug_subvars_for): Likewise.
14042 (dump_variable): Do not dump subvars.
14043 (remove_referenced_var): Do not remove subvars.
14044 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
14045 (lookup_subvars_for_var): Remove.
14046 (get_subvars_for_var): Likewise.
14047 (get_subvars_at): Likewise.
14048 (get_first_overlapping_subvar): Likewise.
14049 (overlap_subvar): Likewise.
14050 * tree-flow.h (subvar_t): Remove.
14051 (struct var_ann_d): Remove subvars field.
14052 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
14053 argument. Remove special handling of SFTs.
14054 (compute_tag_properties): Likewise.
14055 (set_initial_properties): Likewise.
14056 (compute_call_clobbered): Likewise.
14057 (count_mem_refs): Likewise.
14058 (compute_memory_partitions): Likewise.
14059 (compute_flow_insensitive_aliasing): Likewise.
14060 (setup_pointers_and_addressables): Likewise.
14061 (new_type_alias): Likewise.
14062 (struct used_part): Remove.
14063 (used_portions): Likewise.
14064 (struct used_part_map): Likewise.
14065 (used_part_map_eq): Likewise.
14066 (used_part_map_hash): Likewise.
14067 (free_used_part_map): Likewise.
14068 (up_lookup): Likewise.
14069 (up_insert): Likewise.
14070 (get_or_create_used_part_for): Likewise.
14071 (create_sft): Likewise.
14072 (create_overlap_variables_for): Likewise.
14073 (find_used_portions): Likewise.
14074 (create_structure_vars): Likewise.
14075 * tree.def (STRUCT_FIELD_TAG): Remove.
14076 * tree.h (MTAG_P): Adjust.
14077 (struct tree_memory_tag): Remove base_for_components and
14078 unpartitionable flags.
14079 (struct tree_struct_field_tag): Remove.
14080 (SFT_PARENT_VAR): Likewise.
14081 (SFT_OFFSET): Likewise.
14082 (SFT_SIZE): Likewise.
14083 (SFT_NONADDRESSABLE_P): Likewise.
14084 (SFT_ALIAS_SET): Likewise.
14085 (SFT_UNPARTITIONABLE_P): Likewise.
14086 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
14087 (union tree_node): Remove sft field.
14088 * alias.c (get_alias_set): Remove special handling of SFTs.
14089 * print-tree.c (print_node): Remove handling of SFTs.
14090 * tree-dump.c (dequeue_and_dump): Likewise.
14091 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
14092 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
14093 * tree-predcom.c (set_alias_info): Do not set subvars.
14094 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
14095 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
14096 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
14097 (add_vars_for_offset): Remove.
14098 (add_virtual_operand): Remove special handling of SFTs.
14099 (add_call_clobber_ops): Likewise.
14100 (add_call_read_ops): Likewise.
14101 (get_asm_expr_operands): Likewise.
14102 (get_modify_stmt_operands): Likewise.
14103 (get_expr_operands): Likewise.
14104 (add_to_addressable_set): Likewise.
14105 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
14106 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
14107 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
14108 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
14109 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
14110 (tree_node_structure): Likewise.
14111 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
14113 (find_what_p_points_to): Likewise.
14115 2008-05-08 Sa Liu <saliu@de.ibm.com>
14117 * config/spu/spu.md: Fixed subti3 pattern.
14119 2008-05-08 Richard Guenther <rguenther@suse.de>
14121 PR middle-end/36154
14122 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14123 sure to create a representative for trailing arrays for PTA.
14125 2008-05-08 Richard Guenther <rguenther@suse.de>
14127 PR middle-end/36172
14128 * fold-const.c (operand_equal_p): Two objects which types
14129 differ in pointerness are not equal.
14131 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
14133 * calls.c (compute_argument_block_size): Add argument tree fndecl.
14134 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
14135 (emit_library_call_value_1): Add new variable fndecl initialized by
14136 NULL_TREE. It should be the decl type of orgfun, but this information
14137 seems not to be available here, so it uses the default calling abi.
14138 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
14139 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
14140 by TARGET_RETURN_IN_MEMORY.
14141 * config/i386/i386-interix.h: Likewise.
14142 * config/i386/i386.h: Likewise.
14143 * config/i386/i386elf.h: Likewise.
14144 * config/i386/ptx4-i.h: Likewise.
14145 * config/i386/sol2-10.h: Likewise.
14146 * config/i386/sysv4.h: Likewise.
14147 * config/i386/vx-common.h: Likewise.
14148 * config/cris/cris.h: Removed #if 0 clause.
14149 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
14150 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
14152 (ix86_sol10_return_in_memory): Likewise.
14153 (ix86_i386elf_return_in_memory): New.
14154 (ix86_i386interix_return_in_memory): New.
14155 * config/mt/mt-protos.h (mt_return_in_memory): New.
14156 * config/mt/mt.c: Likewise.
14157 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14158 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
14159 * config/bfin/bfin.h: Likewise.
14160 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
14162 * config/bfin/bfin.c: Likewise.
14163 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14164 * config/alpha/unicosmk.h: Likewise.
14165 * config/i386/cygming.h: Likewise.
14166 * config/iq2000/iq2000.h: Likewise.
14167 * config/mips/mips.h: Likewise.
14168 * config/mn10300/mn10300.h: Likewise.
14169 * config/rs6000/rs6000.h: Likewise.
14170 * config/score/score.h: Likewise.
14171 * config/spu/spu.h: Likewise.
14172 * config/v850/v850.h: Likewise.
14173 * defaults.h: Likewise.
14174 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
14175 * expr.c (emit_block_move): Adjust use of
14176 OUTGOING_REG_PARM_STACK_SPACE.
14177 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
14178 OUTGOING_REG_PARM_STACK_SPACE.
14179 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
14181 2008-05-08 Jakub Jelinek <jakub@redhat.com>
14183 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
14184 on OMP_RETURN for OMP_FOR.
14187 * dwarf2out.c (dw_expand_expr, common_check): Removed.
14188 (fortran_common): New function.
14189 (gen_variable_die): Call fortran_common instead of common_check,
14190 adjust for it returning tree instead of rtx. Formatting.
14192 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
14196 * see.c (see_copy_insn): Copy new pure const attributes for new call.
14197 * c-decl.c (merge_decls): Ditto.
14198 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
14199 to RTL_CONST_OR_PURE_CALL_P.
14200 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
14201 Initialized DECL_LOOPING_CONST_PURE.
14202 (process_call_operands): Set tree_side_effects properly.
14203 * tree.h (TREE_READONLY_DECL_P): Removed.
14204 (DECL_IS_PURE): Renamed to DECL_PURE_P.
14205 (DECL_LOOPING_OR_CONST_P): New macro.
14206 (struct tree_function_decl): Added looping_const_or_pure_p.
14207 (ECF_*) Renumbered.
14208 (ECF_LOOPING_OR_CONST_P): New macro.
14209 * rtlanal.c (pure_const_p): Removed.
14210 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
14211 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
14212 to RTL_CONST_CALL_P.
14213 * ipa-pure-const.c (pure_const_state_e): Added looping field.
14214 (check_decl, check_tree, check_call, scan_function): Initialize
14216 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
14217 (static_execute): Set looping true for recursive functions.
14218 Undo setting state to IPA_NEITHER for recursive functions.
14219 * cse.c (cse_insn):
14220 * ifcvt.c (noce_can_store_speculate_p): Changed
14221 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
14222 RTL_CONST_OR_PURE_CALL_P.
14223 * dse.c (scan_insn): Ditto.
14224 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
14225 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
14226 RTL_CONST_OR_PURE_CALL_P.
14227 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
14228 pure_call_p to RTL_CONST_CALL_P.
14229 * gimplify.c (gimplify_call_expr): Clear side effects for
14230 non-looping pure and constant calls.
14231 * calls.c (emit_call_1): Set rtl flags from ecf flags.
14232 (flags_from_decl_or_type): Set ecf flags from decl flags.
14233 (initialize_argument_information): Turn off
14234 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
14235 Change const to pure if callee_copies is true rather than just
14237 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
14238 way of marking pure calls.
14239 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
14240 Remove hack that was supposed to fix pr7335 and remove old
14241 way of marking pure calls.
14242 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
14243 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
14244 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
14245 RTL_CONST_OR_PURE_CALL_P.
14246 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
14247 * loop-invariant.c (find_exits, find_invariant_bb): Changed
14248 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14249 * sched-deps.c (schedule_analyze): Ditto.
14250 * rtl.h (struct rtx_def): Use call field, unchanging field, and
14251 return_val field of calls to represent pure and const function info.
14252 (CONST_OR_PURE_CALL_P): Deleted macro.
14253 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14254 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
14255 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
14257 * tree-optimize.c (execute_fixup_cfg): Added test for
14258 ECF_LOOPING_CONST_OR_PURE.
14259 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
14261 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
14262 effects for looping pure or const calls.
14263 (verify_gimple_expr): Added verification code.
14264 * config/alpha/alpha.c (alpha_legitimize_address,
14265 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
14267 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
14268 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
14269 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
14270 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
14271 RTL_CONST_OR_PURE_CALL_P.
14272 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
14273 and const calls to be deleted.
14275 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
14278 * config/i386/mmx.md (mmx_subv2sf3): New expander.
14279 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
14280 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
14281 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14282 to handle nonimmediate operands.
14283 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
14284 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
14285 to handle nonimmediate operands.
14286 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
14287 (mmx_pmulhrwv4hi3): New expander. Use
14288 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14289 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
14290 (sse2_umulv1siv1di3): New expander. Use
14291 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14292 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
14293 (mmx_eq<mode>3): New expander. Use
14294 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14295 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
14296 (mmx_uavgv8qi3): New expander. Use
14297 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14298 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
14299 (mmx_uavgv4hi3): New expander. Use
14300 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14302 * config/i386/sse.md
14303 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
14304 to handle nonimmediate operands.
14305 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
14306 to handle nonimmediate operands.
14307 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
14308 to handle nonimmediate operands.
14309 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
14310 to handle nonimmediate operands.
14311 (sse2_unpckhpd_exp): New expander. Use
14312 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14313 (sse2_unpcklpd_exp): New expander. Use
14314 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14315 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
14316 to handle nonimmediate operands.
14317 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
14318 to handle nonimmediate operands.
14319 (*sse2_<plusminus_insn><mode>3): Rename from
14320 sse2_<plusminus_insn><mode>3 insn pattern.
14321 (sse2_<plusminus_insn><mode>3): New expander. Use
14322 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14323 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
14324 (sse2_umulv2siv2di3): New expander. Use
14325 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14326 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
14327 (sse4_1_mulv2siv2di3): New expander. Use
14328 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14329 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
14330 (sse2_pmaddwd): New expander. Use
14331 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14332 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
14333 (sse2_eq<mode>3): New expander. Use
14334 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14335 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
14336 (sse4_1_eqv2di3): New expander. Use
14337 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14338 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14339 (sse2_uavgv16qi3): New expander. Use
14340 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14341 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14342 (sse2_uavgv16qi3): New expander. Use
14343 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14344 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
14345 (sse2_uavgv8hi3): New expander. Use
14346 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14347 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
14348 (ssse3_pmulhrswv8hi3): New expander. Use
14349 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14350 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
14351 (ssse3_pmulhrswv4hi3): New expander. Use
14352 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14354 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
14355 (<sse>_vmmul<mode>3): Ditto.
14356 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
14358 (ssse3_pmaddubsw128): Use register_operand for operand 1.
14359 (ssse3_pmaddubsw): Ditto.
14361 * config/i386/i386.c (struct_builtin_description)
14362 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14363 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14364 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14365 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14366 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14367 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14368 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14369 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14370 (ix86_fixup_binary_operands): Assert that src1
14371 and src2 must have the same mode when swapped.
14372 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14373 and ix86_binary_operator_ok. Do not force operands in registers
14376 2008-05-07 Jan Hubicka <jh@suse.cz>
14378 * cgraph.c (dump_cgraph_node): Update.
14379 * cgraph.h (cgraph_local_info): Break out inline summary.
14380 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14382 * ipa-inline (inline_summary): New accestor function.
14383 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14384 cgraph_decide_inlining, compute_inline_parameters): Update.
14385 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14387 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
14389 Cleanup ColdFire scheduling support and add V4 pipeline model.
14391 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14392 (define_attr cpu): Add cfv4 value.
14393 (define_attr type, define_attr type1): Merge into a single 'type'
14394 attribute. Update all uses.
14395 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14396 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
14398 (define_attr opx_mem, define_attr opy_mem): Remove.
14399 (define_attr op_mem): Clean up, update comment.
14400 (define_attr size): Use specific values instead of general int.
14401 (define_attr guess, define_attr split): Remove. Update all uses.
14402 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14403 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14404 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14405 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14406 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14407 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14408 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14409 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14410 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14411 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14412 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14413 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14414 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14415 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14416 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14417 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14418 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14419 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14420 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14421 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14422 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14423 Update or set attributes.
14424 (stack_tie): New fake instruction.
14426 * config/m68k/m68k.h (TUNE_CFV4): New macro.
14427 (m68k_sched_attr_size): Update declaration.
14428 (m68k_sched_attr_type2): Remove.
14429 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14430 Declare new bypass predicates.
14432 * config/m68k/m68k.c (m68k_sched_issue_rate,
14433 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14435 (TARGET_SCHED_ISSUE_RATE,
14436 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14437 (override_options): Handle scheduling for ColdFire V4 core.
14438 (m68k_expand_prologue): Emit stack_tie.
14439 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14440 'OP_TYPE_FPN'. Update all uses.
14441 (sched_guess_p): Remove.
14442 (sched_address_type): Handle symbolic addresses.
14443 (sched_get_operand): New static function.
14444 (sched_operand_type): Merge into sched_attr_op_type.
14445 (sched_attr_op_type): Handle FP registers, handle quick constants,
14447 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14448 (m68k_sched_attr_size): Update. Move logic to ...
14449 (sched_get_attr_size_int): New static function.
14450 (sched_get_opxy_mem_type): New static function.
14451 (m68k_sched_attr_op_mem): Update.
14452 (m68k_sched_attr_type2): Remove.
14453 (sched_cfv4_bypass_data): New static variable.
14454 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14455 (m68k_sched_issue_rate): Implement scheduler hook.
14456 (struct _sched_ib: enabled_p): New field.
14457 (m68k_sched_variable_issue): Update. Handle V4.
14458 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14459 sched_dump_class_func_t, sched_dump_split_class,
14460 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14461 sched_dump_dfa_class, m68k_sched_dump): Remove.
14462 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14464 (m68k_sched_init_global): Remove statisctics dumping, introduce
14465 sanity check that all instructions have pipeline reservations. Handle
14467 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14468 Handle ColdFire V4 core.
14469 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14470 New static functions.
14471 (m68k_sched_address_bypass_p): New bypass predicate.
14472 (sched_get_indexed_address_scale): New static function.
14473 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14475 * cf.md: Update comments.
14476 (define_attr type2): Remove. Use 'type' attribute instead.
14478 (cf_ib): Rename to cfv123_ib. Update all uses.
14479 (cf_oep): Rename to cfv123_oep. Update all uses.
14480 (cf_chr): Rename to cfv123_chr. Update all uses.
14481 (cf_mem): Rename to cfv123_mem. Update all uses.
14482 (cf_mac): Move to more appropriate place.
14483 (cfv123_guess): New automaton and cpu_unit.
14484 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14485 Update uses of 'size' attribute. Handle before reload scheduling.
14486 (cfv123_guess): New dummy reservation for unhandled instructions.
14487 (cfv4_*): Pipeline description of ColdFire V4 core.
14488 (ignore): New reservation to handle 'ignore' type.
14490 2008-05-07 Ian Lance Taylor <iant@google.com>
14492 PR middle-end/36013
14493 * gimplify.c (find_single_pointer_decl_1): Don't look through
14495 (find_single_pointer_decl): Adjust comments.
14497 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14499 PR middle-end/36137
14500 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14501 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14503 PR middle-end/36106
14504 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14505 integral type rather than floating point, then VIEW_CONVERT_EXPR
14506 to the floating point type.
14508 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
14510 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14511 TFmode op0 to register.
14513 2008-05-07 Alan Modra <amodra@bigpond.net.au>
14515 * c-decl.c (grokdeclarator): Comment typo.
14517 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
14519 * tree-flow.h: Remove prototype for computed_goto_p.
14520 * tree-cfg.c (computed_goto_p): Make static.
14522 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
14525 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14526 (contains_aligned_value_p): This. Handle _Decimal128.
14527 (ix86_function_arg_boundary): Only align _Decimal128 to its
14528 natural boundary and handle it properly.
14530 2008-05-06 Martin Jambor <mjambor@suse.cz>
14532 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14533 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14534 (ipcp_method_set_orig_node): Removed.
14535 (ipcp_cval_get_cvalue_type): Removed.
14536 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14537 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14538 (ipcp_cval_set_cvalue_type): Removed.
14539 (ipcp_cval_get_cvalue): Removed.
14540 (ipcp_cval_set_cvalue): Removed.
14541 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14542 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14543 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14544 (ipcp_cval_meet): Renamed to ipa_lattice_meet
14545 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14546 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14547 (ipcp_get_ith_lattice): Changed parameters.
14548 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14549 (ipcp_lattice_from_jfunc): Changed parameters.
14550 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14551 (ipcp_method_cval_print): Added temporary variable info.
14552 (ipcp_redirect): Removed already unused local variable caller.
14553 (ipcp_redirect): New temporary variable orig_callee_info
14554 (ipcp_redirect): Removed newly unused local variable callee.
14555 (ipcp_redirect): Removed (a bit confusing) local variable type.
14556 (ipcp_insert_stage): Added local variable info.
14557 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14559 (ipcp_formal_create): Removed.
14560 (ipcp_method_cval_set): Removed.
14561 (ipcp_propagate_stage): Renamed lattice variables.
14562 (ipcp_method_cval_set_cvalue_type): Removed.
14563 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14564 (ipcp_print_all_lattices): Changed printed strings to refer to
14565 lattices rather than cvals.
14566 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14567 (ipcp_propagate_const): Changed formal parameters.
14568 (build_const_val): Changed formal parameters.
14569 (ipcp_insert_stage): Removed useless variable cvalue
14570 (build_const_val): Changed formal parameters.
14571 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14572 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14573 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14574 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14575 (ipcp_print_func_profile_counts): Changed string from "method" to
14577 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14578 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14579 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14580 (ipcp_structures_print): Renamed to ipcp_print_all_structures
14581 (ipcp_profile_print): Renamed to ipcp_print_profile_data
14582 (ipcp_lat_is_const): Changed parameters and made inline.
14583 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14584 (ipcp_redirect): Renamed to ipcp_need_redirect_p
14585 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14586 the predicate condition directly
14587 (ipcp_propagate_stage): Added local variable args. Removed local
14588 variable callee. (Both are mere code simplifications.)
14589 (ipcp_method_dont_insert_const): Renamed to
14590 ipcp_node_not_modifiable_p.
14591 (ipcp_node_not_modifiable_p): Made inline.
14592 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14593 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14594 (ipcp_print_all_lattices): Removed variable cvalue
14595 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14598 2008-05-06 Olivier Hainque <hainque@adacore.com>
14600 * tree-sra.c (try_instantiate_multiple_fields): Early return
14601 if field has POINTER_TYPE.
14603 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
14605 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14606 by using 'q' specifier for instruction.
14607 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14609 2008-05-06 Anatoly Sokolov <aesok@post.ru>
14611 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14612 Change mode of zero_extract from QImode to HImode.
14613 (sign bit tests peepholes): (Ditto.).
14615 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
14617 * config/i386/mmx.md: Remove double backslashes from asm templates.
14618 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14619 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14620 to handle nonimmediate operands.
14621 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14622 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14623 to handle nonimmediate operands.
14624 (*mmx_<code>v2sf3_finite): New insn pattern.
14625 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14626 (mmx_<code>v2sf3): New expander. Use
14627 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14628 (mmx_<plusminus_insn><mode>3): New expander. Use
14629 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14630 (*mmx_<plusminus_insn><mode>3): New insn pattern.
14631 (mmx_add<mode>3): Removed.
14632 (mmx_ssadd<mode>3): Ditto.
14633 (mmx_usadd<mode>3): Ditto.
14634 (mmx_sub<mode>3): Ditto.
14635 (mmx_sssub<mode>3): Ditto.
14636 (mmx_ussub<mode>3): Ditto.
14637 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14638 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
14639 to handle nonimmediate operands.
14640 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14642 (mmx_smulv4hi3_highpart): New expander. Use
14643 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14644 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14646 (mmx_umulv4hi3_highpart): New expander. Use
14647 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14648 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14649 (mmx_<code>v4hi3): New expander. Use
14650 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14651 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14652 (mmx_<code>v8qi3): New expander. Use
14653 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14654 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14655 (mmx_<code><mode>3): New expander. Use
14656 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14658 2008-05-05 Jan Hubicka <jh@suse.cz>
14660 PR tree-optimization/36118
14661 * passes.c (pass_init_dump_file): Fix dump header.
14663 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
14665 PR middle-end/36141
14666 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14667 VCE for function decls.
14669 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14671 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14673 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14675 * config/i386/i386.md (sat_plusminus): New.
14676 (plusminus_insn): Likewise.
14677 (plusminus_mnemonic): Likewise.
14679 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14680 (*<addsub><mode>3_cc_overflow): Renamed to ...
14681 (*<plusminus_insn><mode>3_cc_overflow): This.
14682 (*<addsub>si3_zext_cc_overflow): Renamed to ...
14683 (*<plusminus_insn>si3_zext_cc_overflow): This.
14685 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14686 (<plusminus_insn><mode>3): This.
14687 (*<addsub><mode>3): Renamed to ...
14688 (*<plusminus_insn><mode>3): This.
14689 (<sse>_vm<addsub><mode>3): Renamed to ...
14690 (<sse>_vm<plusminus_insn><mode>3): This.
14691 (sse3_h<addsub>v4sf3): Renamed to ...
14692 (sse3_h<plusminus_insn>v4sf3): This.
14693 (sse3_h<addsub>v2df3): Renamed to ...
14694 (sse3_h<plusminus_insn>v2df3): This.
14695 (<plusminus_insn><mode>3): New.
14696 (*<plusminus_insn><mode>3): Likewise.
14697 (sse2_<plusminus_insn><mode>3): Likewise.
14698 (add<mode>): Removed.
14699 (*add<mode>3): Likewise.
14700 (sse2_ssadd<mode>3): Likewise.
14701 (sse2_usadd<mode>3): Likewise.
14702 (sub<mode>3): Likewise.
14703 (*sub<mode>3): Likewise.
14704 (sse2_sssub<mode>3): Likewise.
14705 (sse2_ussub<mode>3): Likewise.
14707 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
14709 * gthr-single.h: Add in required interface elements as per gthr.h.
14710 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14711 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14712 Generalize UNUSED macro.
14713 (__gthread_once): Add.
14714 (__gthread_key_create): Add.
14715 (__gthread_key_delete): Add.
14716 (__gthread_getspecific): Add.
14717 (__gthread_setspecific): Add.
14719 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
14721 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14722 the same size types for the indirect reference on the rhs, then
14725 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
14727 * config/i386/i386.md
14728 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14729 one insn template instead of template series.
14730 (*xordi_1_rex64): Ditto.
14731 (*xordi_2_rex64): Ditto.
14733 2008-05-05 Ira Rosen <irar@il.ibm.com>
14735 PR tree-optimization/36119
14736 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14739 2008-06-04 Jan Hubicka <jh@suse.cz>
14741 tree-optimization/36100
14742 * tree-pass.h (pass_O0_always_inline): Declare.
14743 * ipa-inline.c (inline_transform): Remove dead code.
14744 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14745 pass_O0_always_inline): New.
14746 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14748 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
14750 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14751 mnemonic in this_param move for TARGET_64BIT.
14753 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
14755 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14756 (*strmovsi_rex_1): Ditto.
14757 (*strsetsi_1): Ditto.
14758 (*strsetsi_rex_1): Ditto.
14760 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14761 adddicc expanders using SWI mode iterator.
14763 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
14766 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14769 2008-05-04 David S. Miller <davem@davemloft.net>
14771 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14772 (sparc*-*-linux*): Use linux.h in tm_file.
14773 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14774 compiler defaulting to 32-bit.
14775 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14777 * config/sparc/linux.h: Remove definitions now obtained
14778 properly from linux.h
14779 * config/sparc/linux64.h: Likewise.
14780 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14781 don't want this setting for 32-bit builds in a biarch compiler.
14782 * doc/install.texi: Add sparc-linux to list of targets
14783 supporting --enable-targets=all.
14785 2008-05-03 Andrew Pinski <pinskia@gmail.com>
14787 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14789 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
14791 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14792 after V4SI_FTYPE_V8HI.
14793 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14794 case V4SI_FTYPE_V2DF.
14796 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
14798 * doc/invoke.texi (max-flow-memory-locations): Removed.
14799 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14801 2008-05-03 Richard Guenther <rguenther@suse.de>
14803 PR middle-end/34973
14804 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14806 2008-05-02 David S. Miller <davem@davemloft.net>
14808 * config.gcc (need_64bit_hwint): Document libcpp dependency.
14810 2008-05-02 Simon Baldwin <simonb@google.com>
14813 * c-common.h (warn_array_subscript_range): Removed.
14814 * c-common.c (warn_array_subscript_range): Ditto.
14815 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14816 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14818 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14820 * config/i386/i386.c (ix86_special_builtin_type): New.
14821 (bdesc_special_args): Likewise.
14822 (ix86_expand_special_args_builtin): Likewise.
14823 (ix86_init_mmx_sse_builtins): Updated.
14824 (ix86_expand_builtin): Updated.
14825 (ix86_expand_store_builtin): Removed.
14826 (ix86_expand_unop_builtin): Likewise.
14828 * config/i386/mm3dnow.h (__v2sf): Moved to ...
14829 * config/i386/mmintrin.h (__v2sf): Here.
14831 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14833 (_mm_loadl_pi): Likewise.
14834 (_mm_storeh_pi): Replace __v2si with __v2sf.
14835 (_mm_storel_pi): Likewise.
14837 * doc/extend.texi: Correct __builtin_ia32_loadhps,
14838 __builtin_ia32_loadlps, __builtin_ia32_storehps,
14839 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14840 __builtin_ia32_loadlpd.
14842 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14844 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14845 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14846 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
14847 (ix86_init_mmx_sse_builtins): Updated.
14848 (ix86_expand_args_builtin): Likewise.
14849 (ix86_expand_builtin): Likewise.
14850 (ix86_expand_unop1_builtin): Renamed to ...
14851 (ix86_expand_unop_vec_merge_builtin): This.
14853 2008-05-01 Jan Hubicka <jh@suse.cz>
14856 * ipa-inline.c (inline_generate_summary): Make static.
14857 (inline_transform): Do not call inlining at -O0; make static.
14858 * passes.c (execute_todo): Add sanity check.
14859 (execute_one_ipa_transform_pass): Execute proper flags.
14861 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
14863 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14864 (DECL_NONADDRESSABLE_P): Likewise.
14865 * alias.c (record_component_aliases): Fix comment.
14867 2008-05-01 Simon Baldwin <simonb@google.com>
14869 * c-common.h (warn_array_subscript_range): New function.
14870 * c-common.c (warn_array_subscript_range): Ditto.
14871 * tree-vrp.c (check_array_ref): Corrected code to agree with
14872 comment, ignoring only arrays of size 0 or size 1.
14873 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14875 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14877 * config/i386/i386.c (ix86_builtin_type): Replace
14878 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14879 (bdesc_args): Updated.
14880 (ix86_init_mmx_sse_builtins): Likewise.
14881 (ix86_expand_args_builtin): Likewise.
14883 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14886 * doc/extend.texi: Correct __builtin_ia32_palignr.
14888 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14891 * config/i386/i386.c (bdesc_crc32): Removed.
14892 (ix86_expand_crc32): Likewise.
14893 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14894 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14895 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
14896 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14897 UINT_FTYPE_UINT_UCHAR.
14898 (bdesc_args): Updated. Add crc32 builtins.
14899 (ix86_init_mmx_sse_builtins): Updated.
14900 (ix86_expand_args_builtin): Updated to support subreg.
14902 * doc/extend.texi: Correct __builtin_ia32_crc32di.
14904 2008-05-01 Jan Hubicka <jh@suse.cz>
14906 * tree-pass.h (opt_pass): Add IPA_PASS.
14907 (varpool_node, cgraph_node): Forward declare.
14908 (ipa_opt_pass): Define.
14909 (pass_ipa_inline): Turn into ipa_opt_pass.
14910 (pass_apply_inline): Remove.
14911 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14912 (apply_inline): Turn into ....
14913 (inline_transform): ... this one.
14914 (inline_generate_summary): New function.
14915 (pass_apply_inline): Remove.
14916 * function.h (ipa_opt_pass): Forward declare structure; typedef;
14918 (struct function): Add ipa_transforms_to_apply.
14919 * passes.c (register_one_dump_file): Work on IPA_PASS.
14920 (init_optimization_passes): Remove pass_inline_parameters and
14922 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14923 (execute_one_pass) ... here; apply transforms when possible.
14924 (add_ipa_transform_pass, execute_ipa_summary_asses,
14925 execute_one_ipa_transform_pass): New.
14926 (execute_ipa_pass_list): Update for IPA_PASS type.
14928 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14930 * config/i386/i386.c (ix86_builtin_type): Add
14931 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14932 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14933 (bdesc_args): Add SSE4a builtins.
14934 (ix86_init_mmx_sse_builtins): Updated.
14935 (ix86_expand_args_builtin): Likewise.
14936 (ix86_expand_builtin): Likewise.
14938 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14940 * config/i386/i386.c (ix86_builtin_type): Add
14941 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14942 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14943 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14944 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14945 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14946 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14947 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14948 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14949 and DI_FTYPE_DI_DI_INT.
14950 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14951 (ix86_init_mmx_sse_builtins): Updated.
14952 (ix86_expand_args_builtin): Likewise.
14953 (ix86_expand_builtin): Likewise.
14954 (ix86_expand_binop_imm_builtin): Removed.
14956 * doc/extend.texi: Correct __builtin_ia32_palignr128.
14958 2008-04-30 Richard Guenther <rguenther@suse.de>
14960 PR tree-optimization/32921
14961 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14963 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
14965 * config/arm/arm.c (arm_unwind_emit): Use
14966 crtl->all_throwers_are_sibcalls instead of
14967 cfun->all_throwers_are_sibcalls.
14968 (arm_output_fn_unwind): Likewise.
14969 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14970 instead of cfun->uses_pic_offset_table.
14971 (frv_expand_prologue): Likewise.
14972 (frv_frame_pointer_required): Likewise.
14973 (frv_expand_fdpic_call): Likewise.
14974 (frv_emit_movsi): Likewise.
14975 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14976 cfun->returns_pcc_struct instead of
14977 current_function_returns_pcc_struct.
14978 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14979 instead of cfun->calls_eh_return.
14980 (m32c_pushm_popm): Likewise.
14981 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14982 "extern" declaration.
14984 2008-04-30 Richard Guenther <rguenther@suse.de>
14986 PR tree-optimization/21636
14987 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14989 (evaluate_stmt): Print the likely value.
14990 (ccp_visit_stmt): Avoid excessive vertical spacing.
14992 2008-04-30 Rafael Espíndola <espindola@google.com>
14994 * builtins.c (fold_call_expr): Return realret.
14995 * tree-ssa-threadedge.c
14996 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14997 __builtin_object_size.
14999 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
15001 * gcc.c (wrapper_string): New variable.
15002 (insert_wrapper): New function.
15003 (execute): New option -wrapper.
15004 * doc/invoke.texi (Overall Options): New driver option -wrapper.
15006 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
15008 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
15009 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
15010 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
15012 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
15013 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
15014 config/rs6000/e500crtres64gprctr.asm,
15015 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
15016 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
15017 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
15018 config/rs6000/e500crtsav64gprctr.asm,
15019 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
15020 config/rs6000/e500crtsavg64gprctr.asm: New files.
15021 * config/rs6000/t-ppccomm: Add build rules for new files.
15022 (LIB2FUNCS_STATIC_EXTRA): Add new files.
15023 * config/rs6000/t-netbsd: Add build rules for new files.
15024 (LIB2FUNCS_STATIC_EXTRA): New variable.
15025 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
15026 (CRTSAVRES_DEFAULT_SPEC): Likewise.
15027 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
15029 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
15031 * config/i386/i386.c (ix86_builtin_type): Add
15032 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
15033 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
15034 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
15035 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
15036 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
15037 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
15038 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
15039 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
15040 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
15041 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
15042 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
15043 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
15044 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
15045 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
15046 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
15047 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
15048 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
15049 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
15050 V1DI_FTYPE_V2SI_V2SI.
15051 (bdesc_2arg): Moved to ...
15052 (bdesc_args): Here.
15053 (ix86_init_mmx_sse_builtins): Updated.
15054 (ix86_expand_args_builtin): Updated. Take a pointer
15055 to const struct builtin_description. Handle comparison
15057 (ix86_expand_sse_compare): Take a new argument for swapping operands.
15058 (ix86_expand_builtin): Updated.
15060 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
15061 (ssse3_pmaddubsw128): This.
15062 (ssse3_pmaddubswv4hi3): Renamed to ...
15063 (ssse3_pmaddubsw): This.
15065 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
15066 (__builtin_ia32_packssdw128): Likewise.
15067 (__builtin_ia32_packuswb128): Likewise.
15068 (__builtin_ia32_pmaddubsw): Likewise.
15069 (__builtin_ia32_pmaddubsw128): Likewise.
15071 2008-04-30 Richard Guenther <rguenther@suse.de>
15073 PR tree-optimization/14847
15074 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
15075 (recognize_bits_test): Use it.
15076 (recognize_single_bit_test): Likewise.
15078 2008-04-30 Martin Jambor <mjambor@suse.cz>
15080 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
15081 instead of setting number of formal parameters to zero.
15082 (ipcp_init_stage): Do not set the number of actual parameters to zero
15084 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
15085 which are called with variable number of arguments.
15086 (ipcp_insert_stage): Explicitely skipping all nodes which are
15087 called with variable number of arguments.
15088 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
15089 number of parameters.
15091 * ipa-prop.h (struct ipa_node_params): Added flag
15092 called_with_var_arguments
15093 (ipa_set_param_count): Added. Changed sole setter to use it.
15094 (ipa_get_param_count): Added. All readers of param_count
15095 converted to use it instead.
15096 (ipa_set_called_with_variable_arg): Added.
15097 (ipa_is_called_with_var_arguments): Added.
15098 (ipa_get_ith_param): Added. All readers of param_decls converted
15100 (ipa_set_cs_argument_count): Added, sole writer to argument_count
15102 (ipa_get_cs_argument_count): Added, all readers of argument_count
15104 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
15107 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
15108 (struct ipcp_lattice): Renamed cval_type to type
15109 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
15111 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
15112 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
15113 (ipcp_insert_stage): Changed the type of variable cvalue to tree
15114 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
15115 (build_const_val): Changed the type of parameter cvalue to tree
15116 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
15117 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
15119 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
15122 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
15123 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
15124 (ipa_add_method): Renamed to ipa_push_func_to_list
15125 (ipa_remove_method): Renamed to ipa_pop_func_from_list
15126 (ipa_callsite_param_count): Removed.
15127 (ipa_callsite_param_count_set): Removed.
15128 (ipa_callsite_param): Removed.
15129 (ipa_callsite_callee): Removed.
15130 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
15131 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
15132 (ipa_method_formal_count): Removed.
15133 (ipa_method_formal_count_set): Removed.
15134 (ipa_method_get_tree): Removed.
15135 (ipa_method_tree_map_create): Removed.
15136 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
15137 (ipa_create_param_decls_array): Creates the array itself
15138 (ipa_create_param_decls_array): Temporary variable info instead of
15139 a few dereferences.
15140 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
15141 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
15142 (get_type): Removed.
15143 (ipa_jf_get_info_type): Removed.
15144 (ipa_node_create): Renamed to ipa_create_node_params
15145 (ipa_free): Renamed to ipa_free_all_node_params
15146 (ipa_nodes_create): Renamed to ipa_create_all_node_params
15147 (ipa_edges_create): Renamed to ipa_create_all_edge_args
15148 (ipa_edges_free): Renamed to ipa_free_all_edge_args
15149 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
15150 (ipa_free_all_node_params): Deallocation to jump_functions moved to
15151 ipa_free_all_edge_args
15152 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
15153 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
15154 (ipa_create_methodlist_node): Removed.
15155 (ipa_methodlist_method): Removed.
15156 (ipa_methodlist_method_set): Removed.
15157 (ipa_methodlist_next_method): Removed.
15158 (ipa_methodlist_next_method_set): Removed.
15159 (ipa_method_is_modified): Removed.
15160 (ipa_method_modify_create): Removed.
15161 (ipa_method_modify_init): Temporary variable info instead of a few
15163 (ipa_detect_param_modifications): Temporary variable info instead of
15164 a few dereferences.
15165 (ipa_compute_jump_functions): Temporary variable info instead of
15166 a few dereferences.
15167 (ipa_method_modify_set): Removed.
15168 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
15169 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
15170 than craph_node as the first parameter.
15171 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
15172 (ipa_method_modify_init): Removed.
15173 (ipa_compute_jump_functions): Added a temp variable instead of
15174 repeatadly dereferencing the cgraph_edge.aux pointer
15175 (ipa_callsite_param_set_type): Removed.
15176 (ipa_compute_jump_functions): i renamed to index and moved to
15178 (ipa_callsite_param_set_info_type_formal): Removed.
15179 (ipa_callsite_param_set_info_type): Removed.
15180 (ipa_callsite_param_map_create): Removed.
15181 (ipa_callsite_tree): Removed.
15182 (ipa_callsite_caller): Removed.
15183 (ipa_pop_func_from_list): return_method removed to return_func
15185 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
15186 prefixed all values with IPA_. Changed all users.
15187 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
15188 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
15189 and FORMAL_IPATYPE IPA_PASS_THROUGH.
15190 (union parameter_info): Renamed to jump_func_value.
15191 (union jump_func_value): Renamed value to constant
15192 (struct ipa_jump_func): Renamed info_type to value
15193 (struct ipa_node): Renamed to ipa_node_params
15194 (struct ipa_node_params): Renamed ipa_arg_num to param_count
15195 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
15196 (struct ipa_node_params): Renamed ipa_mod to modified_flags
15197 (struct ipa_edge): Renamed to ipa_edge_args
15198 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
15199 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
15200 (struct ipa_methodlist): Renamed to ipa_func_list
15201 (struct ipa_func_list): method_p renamed to node, next_method
15203 (ipa_methodlist_p): Removed, switched all users to struct pointer
15204 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
15206 2008-04-30 Alan Modra <amodra@bigpond.net.au>
15208 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
15209 (rs6000_emit_epilogue): Use backchain to restore only when we
15210 have a large frame. Make use of frame pointer to restore if we
15211 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
15213 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
15215 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15216 Add mode to zero_extract.
15217 (sign bit tests peepholes): (Ditto.).
15219 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
15221 * config/i386/i386.c (ix86_builtins): Replace Prescott New
15222 Instructions in comments with SSE3.
15223 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
15224 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
15225 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
15226 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
15227 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
15228 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
15229 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
15230 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
15231 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
15232 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
15233 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
15234 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
15235 (bdesc_sse_args): Renamed to ...
15236 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
15237 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
15238 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
15239 IX86_BUILTIN_FABSQ.
15240 (bdesc_1arg): Moved to ...
15241 (bdesc_args): Here.
15242 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
15243 Instructions in comments with SSE3.
15244 (ix86_expand_sse_operands_builtin): Renamed to ...
15245 (ix86_expand_args_builtin): This. Updated.
15246 (ix86_expand_unop1_builtin): Update comments.
15247 (ix86_expand_builtin): Updated.
15249 2008-04-29 Richard Guenther <rguenther@suse.de>
15251 PR tree-optimization/36078
15252 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
15253 Update virtual SSA form after cleaning up the CFG.
15255 2008-04-29 Richard Guenther <rguenther@suse.de>
15257 PR middle-end/15255
15258 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
15260 2008-04-29 Richard Guenther <rguenther@suse.de>
15262 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
15263 (compute_may_aliases): Do not call finalize_ref_all_pointers.
15264 (compute_flow_insensitive_aliasing): Do not treat
15265 PTR_IS_REF_ALL pointers special.
15266 (get_smt_for): Likewise.
15267 (may_alias_p): Re-structure.
15268 (is_escape_site): A ref-all pointer conversion is not an escape site.
15269 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
15270 PTR_IS_REF_ALL pointers special.
15271 * tree-ssa-structalias.h (struct alias_info): Remove
15272 ref_all_symbol_mem_tag field.
15273 (PTR_IS_REF_ALL): Remove.
15275 2008-04-29 Richard Guenther <rguenther@suse.de>
15277 PR middle-end/36077
15278 * fold-const.c (extract_muldiv_1): In combining division constants
15279 make sure to never overflow.
15281 2008-04-29 Nick Clifton <nickc@redhat.com>
15283 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
15285 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15288 * optc-gen.awk: Work around HP-UX/IA awk bug.
15290 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
15292 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
15295 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
15298 * config/i386/i386.md
15299 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
15300 Change operand 1 predicate to nonimmediate_operand.
15302 2008-04-28 Jakub Jelinek <jakub@redhat.com>
15305 * dwarf2out.c (struct die_struct): Mark as chain_circular through
15307 * gengtype.c (walk_type, write_func_for_structure): Handle
15309 * doc/gty.texi: Document chain_circular.
15311 2008-04-28 Richard Guenther <rguenther@suse.de>
15313 PR tree-optimization/36066
15314 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
15317 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
15320 * config/i386/i386.md
15321 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
15322 Use match_scratch instead of match_operand for operands 3 and 4.
15324 2008-04-27 Richard Guenther <rguenther@suse.de>
15326 PR tree-optimization/18754
15327 PR tree-optimization/34223
15328 * tree-pass.h (pass_complete_unrolli): Declare.
15329 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
15330 loop size before and after unconditionally of UL_NO_GROWTH in effect.
15331 Rewrite loop into loop closed SSA form if it is not already.
15332 (tree_unroll_loops_completely): Re-structure to iterate over
15333 innermost loops with intermediate CFG cleanups.
15334 Unroll outermost loops only if requested or the code does not grow
15336 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
15337 loops are available.
15338 (tree_vectorize): Instead do so here.
15339 (tree_complete_unroll): Also unroll outermost loops.
15340 (tree_complete_unroll_inner): New function.
15341 (gate_tree_complete_unroll_inner): Likewise.
15342 (pass_complete_unrolli): New pass.
15343 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
15344 uses outside of the loop.
15345 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
15346 form if it is available.
15347 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
15348 * passes.c (init_optimization_passes): Schedule complete inner
15349 loop unrolling pass before the first CCP pass after final inlining.
15351 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
15353 * targhooks.h (default_emutls_var_fields,
15354 default_emutls_var_init): Declare.
15355 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
15356 * target.h (struct gcc_target): Add struct emutls member.
15357 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
15358 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
15359 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15360 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15361 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15362 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15363 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15364 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15365 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15366 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15367 emit debug information.
15368 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15369 * varasm.c: Include targhooks.h.
15370 (emutls_object_section, emutls_tmpl_section): New.
15371 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15372 (EMUTLS_SEPARATOR): New.
15373 (prefix_name): New.
15374 (get_emutls_object_name): New.
15375 (default_emutls_var_fields): New, broken out of ...
15376 (get_emutls_object_type): ... here. Adjust to use target hooks.
15377 (get_emutls_init_templ_addr): Adjust to use target hooks.
15378 (emutls_decl): Adjust to use target hooks.
15379 (emutls_finish): Likewise.
15380 (default_emutls_var_init): New, broken out of ...
15381 (assemble_variable): ... here. Adjust to use target hooks.
15382 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15383 SECCAT_EMUTLS_TMPL.
15384 * c-common.c (handle_section_attribute): Prevent overriding
15385 sections for emulated tls with special sections.
15386 * config/i386/i386.c (x86_64_elf_select_section): Add
15387 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15388 (x86_64_elf_unique_section): Likewise.
15389 * config/vxworks.c: Include tree.h.
15390 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15391 (vxworks_override_options): Set TLS scheme.
15392 * doc/tm.texi (Emulated TLS): New node.
15394 2008-04-26 Simon Baldwin <simonb@google.com>
15397 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15398 with propagated string constants.
15400 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
15402 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15403 constraint for operand 2 when operand 0 is memory operand.
15404 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15405 operand 0 is memory operand.
15406 (fix_trunc<mode>_i387_with_temp): Ditto.
15407 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15408 operand 2 when operand 1 is memory operand.
15409 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15410 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15411 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15412 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15413 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15414 operands 2,3 and 4 when operand 1 is memory operand.
15415 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15417 (fistdi2_floor_with_temp): Ditto.
15418 (fist<mode>2_floor_with_temp): Ditto.
15419 (fistdi2_ceil_with_temp): Ditto.
15420 (fist<mode>2_ceil_with_temp): Ditto.
15421 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15423 2008-04-26 David Daney <ddaney@avtrex.com>
15425 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15427 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15428 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15429 UNSPEC_UPDATE_GOT_VERSION): Renumber.
15430 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15431 (compare_and_swap_12): New insn.
15432 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15433 * config/mips/mips.c (mips_force_binary): New function.
15434 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15435 (mips_expand_compare_and_swap_12): New function.
15436 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15438 2008-04-25 Jan Hubicka <jh@suse.cz>
15441 * cfgexpand.c (pass_expand): Turn into RTL pass.
15442 * passes.c (execute_one_pass): Do pass typechecking after execution.
15443 * tree-pass.h (pass_expand): Turn into RTL pass.
15445 * function.h (struct rtl_data): Move here fields
15446 accesses_prior_frames, calls_eh_return, saves_all_registers,
15447 has_nonlocal_goto, has_asm_statement, is_thunk,
15448 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15449 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15450 arg_pointer_save_area_init from struct function; turn into bool.
15451 (struct function): Move
15452 calls_eh_return, saves_all_registers, has_nonlocal_goto,
15453 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15454 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15455 tail_call_emit, arg_pointer_save_area_init
15456 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
15457 (current_function_returns_struct, current_function_returns_pcc_struct,
15458 current_function_calls_setjmp, current_function_calls_alloca,
15459 current_function_accesses_prior_frames,
15460 current_function_calls_eh_return, current_function_is_thunk,
15461 current_function_stdarg, current_function_profile,
15462 current_function_limit_stack, current_function_uses_pic_offset_table,
15463 current_function_uses_const_pool, current_function_has_nonlocal_label,
15464 current_function_saves_all_registers,
15465 current_function_has_nonlocal_goto,
15466 current_function_has_asm_statement): Remove accesor macros.
15467 * ra-conflict.c (global_conflicts): Update.
15468 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15469 (suitable_for_tail_call_opt_p): Update.
15470 * builtins.c (expand_builtin_return_addr): Update.
15471 (expand_builtin_setjmp_setup): Update.
15472 (expand_builtin_nonlocal_goto): Update.
15473 * final.c (final_start_function): Update.
15474 (profile_function): Update.
15475 (leaf_function_p): Update.
15476 (only_leaf_regs_used): Update.
15477 * df-scan.c (df_get_exit_block_use_set): Update.
15478 * dojump.c (clear_pending_stack_adjust): Update.
15479 * tree-stdarg.c (gate_optimize_stdarg): Update.
15480 * gimple-low.c (lower_function_body): Update.
15481 * global.c (compute_regsets): Update.
15482 (global_alloc): Update.
15483 * dwarf2out.c (dwarf2out_begin_prologue): Update.
15484 * expr.c (expand_assignment): Update.
15485 * dse.c (dse_step0): Update.
15486 (dse_step1): Update.
15487 * c-decl.c (store_parm_decls): Update.
15488 * local-alloc.c (combine_regs): Update.
15489 (find_free_reg): Update.
15490 * function.c (assign_parms_augmented_arg_list): Update.
15491 (assign_parm_find_data_types): Update.
15492 (assign_parms): Update.
15493 (allocate_struct_function): Update.
15494 (expand_function_start): Update.
15495 (expand_function_end): Update.
15496 (get_arg_pointer_save_area): Update.
15497 (thread_prologue_and_epilogue_insns): Update.
15498 (rest_of_match_asm_constraints): Update.
15499 * stor-layout.c (variable_size): Update.
15500 * gcse.c (gcse_main): Update.
15501 (bypass_jumps): Update.
15502 * gimplify.c (gimplify_function_tree): Update.
15503 * calls.c (emit_call_1): Update.
15504 (expand_call): Update.
15505 * bt-load.c (compute_defs_uses_and_gen): Update.
15506 * except.c (sjlj_assign_call_site_values): Update.
15507 (sjlj_emit_function_enter): Update.
15508 (can_throw_external): Update.
15509 (set_nothrow_function_flags): Update.
15510 (expand_builtin_unwind_init): Update.
15511 (expand_eh_return): Update.
15512 (convert_to_eh_region_ranges): Update.
15513 (output_function_exception_table): Update.
15514 * emit-rtl.c (gen_tmp_stack_mem): Update.
15515 * cfgexpand.c (expand_used_vars): Update.
15516 (tree_expand_cfg): Update.
15517 * cfgcleanup.c (rest_of_handle_jump): Update.
15518 * explow.c (allocate_dynamic_stack_space): Update.
15519 * varasm.c (assemble_start_function): Update.
15520 (force_const_mem): Update.
15521 (mark_constant_pool): Update.
15522 * tree-optimize.c (tree_rest_of_compilation): Update.
15523 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15524 * tree-cfg.c (notice_special_calls): Update.
15525 (is_ctrl_altering_stmt): Update.
15526 (tree_can_make_abnormal_goto): Update.
15527 (tree_purge_dead_abnormal_call_edges): Update.
15528 * config/alpha/predicates.md: Update.
15529 * config/alpha/alpha.c (alpha_sa_mask): Update.
15530 (alpha_sa_size): Update.
15531 (alpha_does_function_need_gp): Update.
15532 (alpha_expand_prologue): Update.
15533 (alpha_start_function): Update.
15534 (alpha_output_function_end_prologue): Update.
15535 (alpha_expand_epilogue): Update.
15536 * config/frv/frv.c (frv_stack_info): Update.
15537 (frv_expand_epilogue): Update.
15538 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15539 (s390_register_info): Update.
15540 (s390_frame_info): Update.
15541 (s390_init_frame_layout): Update.
15542 (s390_can_eliminate): Update.
15543 (save_gprs): Update.
15544 * config/spu/spu.c (spu_split_immediate): Update.
15545 (need_to_save_reg): Update.
15546 (spu_expand_prologue): Update.
15547 (spu_expand_epilogue): Update.
15548 * config/sparc/sparc.md: Update.
15549 * config/sparc/sparc.c (eligible_for_return_delay): Update.
15550 (sparc_tls_got): Update.
15551 (legitimize_pic_address): Update.
15552 (sparc_emit_call_insn): Update.
15553 (sparc_expand_prologue): Update.
15554 (output_return): Update.
15555 (print_operand): Update.
15556 (sparc_function_ok_for_sibcall): Update.
15557 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15558 * config/m32r/m32r.md: Update.
15559 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15560 (m32r_compute_frame_size): Update.
15561 (m32r_expand_prologue): Update.
15562 (m32r_expand_epilogue): Update.
15563 (m32r_legitimize_pic_address): Update.
15564 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15565 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15566 * config/i386/i386.c (ix86_frame_pointer_required): Update.
15567 (gen_push): Update.
15568 (ix86_save_reg): Update.
15569 (ix86_compute_frame_layout): Update.
15570 (ix86_expand_prologue): Update.
15571 (ix86_expand_epilogue): Update.
15572 * config/sh/sh.c (output_stack_adjust): Update.
15573 (calc_live_regs): Update.
15574 (sh5_schedule_saves): Update.
15575 (sh_expand_prologue): Update.
15576 (sh_expand_epilogue): Update.
15577 (sh_setup_incoming_varargs): Update.
15578 (sh_allocate_initial_value): Update.
15579 (sh_get_pr_initial_val): Update.
15580 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15581 * config/sh/sh.md (label:): Update.
15582 * config/avr/avr.c (out_movhi_mr_r): Update.
15583 * config/crx/crx.h (enum): Update.
15584 * config/xtensa/xtensa.h (along): Update.
15585 * config/stormy16/stormy16.c Update.
15586 (xstormy16_compute_stack_layout): Update.
15587 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15588 (fr30_expand_prologue): Update.
15589 * config/cris/cris.c (cris_conditional_register_usage): Update.
15590 (cris_reg_saved_in_regsave_area): Update.
15591 (cris_initial_frame_pointer_offset): Update.
15592 (cris_simple_epilogue): Update.
15593 (cris_expand_prologue): Update.
15594 (cris_expand_epilogue): Update.
15595 (cris_expand_pic_call_address): Update.
15596 (cris_asm_output_symbol_ref): Update.
15597 (cris_asm_output_label_ref): Update.
15598 * config/cris/cris.md Update.
15599 * config/iq2000/iq2000.c (compute_frame_size): Update.
15600 (iq2000_expand_epilogue): Update.
15601 * config/mt/mt.h (save_direction): Update.
15602 * config/mn10300/mn10300.c (mn10300_function_value): Update.
15603 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15604 (ia64_secondary_reload_class): Update.
15605 * config/m68k/m68k.c (m68k_save_reg): Update.
15606 (m68k_expand_prologue): Update.
15607 (m68k_expand_epilogue): Update.
15608 (legitimize_pic_address): Update.
15609 * config/rs6000/rs6000.c (rs6000_got_register): Update.
15610 (first_reg_to_save): Update.
15611 (first_altivec_reg_to_save): Update.
15612 (compute_vrsave_mask): Update.
15613 (compute_save_world_info): Update.
15614 (rs6000_stack_info): Update.
15615 (spe_func_has_64bit_regs_p): Update.
15616 (rs6000_ra_ever_killed): Update.
15617 (rs6000_emit_eh_reg_restore): Update.
15618 (rs6000_emit_allocate_stack): Update.
15619 (rs6000_emit_prologue): Update.
15620 (rs6000_emit_epilogue): Update.
15621 (rs6000_output_function_epilogue): Update.
15622 (output_profile_hook): Update.
15623 (rs6000_elf_declare_function_name): Update.
15624 * config/rs6000/rs6000.h (rs6000_args): Update.
15625 * config/rs6000/rs6000.md: Update.
15626 * config/mcore/mcore.c (mcore_expand_prolog): Update.
15627 * config/arc/arc.c (arc_output_function_epilogue): Update.
15628 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15629 * config/darwin.c (machopic_function_base_name): Update.
15630 * config/score/score3.c (score3_compute_frame_size): Update.
15633 (score3_epilogue): Update.
15634 * config/score/score7.c (score7_compute_frame_size): Update.
15635 (score7_prologue): Update.
15636 (score7_epilogue): Update.
15637 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15638 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15639 * config/arm/arm.c (use_return_insn): Update.
15640 (require_pic_register): Update.
15641 (arm_load_pic_register): Update.
15642 (arm_compute_save_reg0_reg12_mask): Update.
15643 (arm_compute_save_reg_mask): Update.
15644 (thumb1_compute_save_reg_mask): Update.
15645 (output_return_instruction): Update.
15646 (arm_output_function_prologue): Update.
15647 (arm_output_epilogue): Update.
15648 (arm_get_frame_offsets): Update.
15649 (arm_expand_prologue): Update.
15650 (thumb_pushpop): Update.
15651 (thumb_exit): Update.
15652 (thumb1_expand_prologue): Update.
15653 (thumb1_expand_epilogue): Update.
15654 (arm_unwind_emit): Update.
15655 (arm_output_fn_unwind): Update.
15656 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15657 * config/arm/arm.md: Update.
15658 * config/pa/pa.md: Update.
15659 * config/pa/pa.c (legitimize_pic_address): Update.
15660 (compute_frame_size): Update.
15661 (hppa_expand_prologue): Update.
15662 (hppa_expand_epilogue): Update.
15663 (borx_reg_operand): Update.
15664 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15665 (HARD_REGNO_RENAME_OK): Update.
15666 * config/mips/mips.c (mips_global_pointer): Update.
15667 (mips_save_reg_p): Update.
15668 (mips_compute_frame_info): Update.
15669 (mips_frame_pointer_required): Update.
15670 (mips_expand_prologue): Update.
15671 (mips_expand_epilogue): Update.
15672 (mips_can_use_return_insn): Update.
15673 (mips_reorg_process_insns): Update.
15674 * config/v850/v850.c (compute_register_save_size): Update.
15675 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15676 * config/mmix/mmix.c (along): Update.
15677 (mmix_expand_epilogue): Update.
15678 * config/bfin/bfin.c (legitimize_pic_address): Update.
15679 (must_save_p): Update.
15680 (stack_frame_needed_p): Update.
15681 (add_to_reg): Update.
15682 (bfin_expand_prologue): Update.
15683 * stmt.c (expand_asm_operands): Update.
15684 * reload1.c (reload): Update.
15685 (init_elim_table): Update.
15687 2008-04-25 Bob Wilson <bob.wilson@acm.org>
15689 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15691 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
15693 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15694 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
15695 (mov<mode>): Removed.
15696 (*movv4sf_internal): Likewise.
15697 (*movv2df_internal): Likewise.
15699 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15701 * config.gcc (crx-*-elf): Remove deprecation.
15703 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
15705 * config/i386/cygming-crtend.c (register_frame_ctor): Register
15706 __gcc_deregister_frame with atexit.
15707 (deregister_frame_dtor): Remove.
15709 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
15710 Nathan Sidwell <nathan@codesourcery.com>
15712 * config/rs6000/rs6000.opt (mspe): Remove Var property.
15714 * config/rs6000/rs6000.h (rs6000_spe): Declare.
15715 (rs6000_isel): Likewise.
15716 * config/rs6000/rs6000.c (rs6000_spe): New variable.
15717 (rs6000_isel): New variable.
15718 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15720 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15723 * c-common.c (handle_vector_size_attribute): Call
15724 lang_hooks.types.reconstruct_complex_type instead of
15725 reconstruct_complex_type.
15726 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15727 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15728 * langhooks.h (struct lang_hooks_for_types): Add
15729 reconstruct_complex_type hook.
15730 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15731 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15733 2008-04-24 Richard Guenther <rguenther@suse.de>
15735 * c-common.h (check_builtin_function_arguments): Declare.
15736 * c-common.c (validate_nargs): New function.
15737 (check_builtin_function_arguments): Likewise.
15738 * c-typeck.c (build_function_call): Call
15739 check_builtin_function_arguments.
15740 * builtins.c (fold_builtin_classify): Remove error reporting code.
15741 (fold_builtin_unordered_cmp): Likewise.
15742 (fold_builtin_1): Likewise.
15743 (fold_builtin_n): Likewise.
15745 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15747 PR tree-optimization/36008
15748 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15749 the original op1, rather than delta by step.
15751 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
15752 Sebastian Pop <sebastian.pop@amd.com>
15754 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15755 eliminate_local_variables_stmt, eliminate_local_variables,
15756 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15757 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15758 of code delimited by two edges in the CFG.
15759 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15760 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15761 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
15762 the case of parallelisation of reductions.
15763 (expr_invariant_in_region_p): New.
15765 * tree-flow.h (gather_blocks_in_sese_region): Declared.
15766 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15768 2008-04-24 Ira Rosen <irar@il.ibm.com>
15769 Richard Guenther <rguenther@suse.de>
15771 PR tree-optimization/36034
15772 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15773 incapable of dealing with loads with gaps.
15775 2008-04-24 Rafael Espíndola <espindola@google.com>
15777 * tree-flow.h (vrp_evaluate_conditional): Change signature.
15778 * tree-ssa-propagate.c (fold_predicate_in): Update call to
15779 vrp_evaluate_conditional.
15780 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15781 (vrp_evaluate_conditional): Split the cond argument.
15782 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15783 (simplify_stmt_for_jump_threading): Update call to
15784 vrp_evaluate_conditional.
15786 2008-04-24 Ira Rosen <irar@il.ibm.com>
15788 PR tree-optimization/35982
15789 * tree-vect-analyze.c (vect_check_interleaving): Check that the
15790 interleaved data-refs are of the same type.
15792 2008-04-24 Danny Smith <dannysmith@users.net>
15794 * c-format.c (check_format_info_main): Use strncmp rather than a
15795 magic prefix to handle multichar length specs.
15796 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15797 Don't prefix "I64" and "I32" with '\0'.
15799 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15802 * config/i386/i386.c (init_cumulative_args): Don't pass anything
15803 in registers for -m32 only if stdarg_p (fntype).
15805 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
15807 PR rtl-optimization/36006
15808 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15809 temp to op0 in order to avoid invalid rtx sharing.
15811 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15813 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
15814 check TREE_INVARIANT.
15815 * tree-gimple.c (is_gimple_address): New.
15816 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15817 * tree-gimple.h (is_gimple_address): New.
15818 * tree.h (decl_address_invariant_p): New.
15819 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15820 (build_string): Likewise.
15821 (decl_address_invariant_p): New, from is_gimple_invariant_address.
15822 (tree_invariant_p_1): Likewise.
15823 (save_expr): Use it.
15824 (tree_invariant_p): New.
15825 (skip_simple_arithmetic): Use it.
15826 (stabilize_reference_1): Use it.
15827 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15829 (build1_stat): Drop code to compute TREE_INVARIANT.
15830 (build2_stat): Drop code to compute TREE_INVARIANT.
15831 (build3_stat): Drop code to compute TREE_INVARIANT.
15832 (build4_stat): Drop code to compute TREE_INVARIANT.
15833 (build5_stat): Drop code to compute TREE_INVARIANT.
15834 (build7_stat): Drop code to compute TREE_INVARIANT.
15835 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15836 * tree.h (struct tree_base): Remove invariant_flag.
15837 (TREE_INVARIANT): Remove.
15838 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15839 (fold_builtin_expect): Check TREE_CONSTANT.
15840 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15841 * c-tree.h (c_expr_to_decl): Drop third parameter.
15842 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15843 (build_c_cast): Don't set TREE_INVARIANT.
15844 (pop_init_level): Don't set TREE_INVARIANT.
15845 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15846 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15848 (gimplify_init_constructor): Don't set TREE_INVARIANT.
15849 (gimplify_addr_expr): Adjust comment.
15850 * tree-mudflap.c (mf_build_string):
15851 * print-tree.c (print_node): Don't print TREE_INVARIANT.
15852 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15853 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15854 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15855 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15856 * langhooks.h (struct lang_hooks): Drop third parameter from
15859 2008-04-23 Richard Guenther <rguenther@suse.de>
15861 PR tree-optimization/27799
15862 PR tree-optimization/32921
15863 PR tree-optimization/32624
15864 * tree-ssa-structalias.c (merge_smts_into): Only merge the
15865 SMTs aliases and the tag itself into the solution.
15866 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15867 merge the points-to solution back into the SMT aliases.
15868 (may_alias_p): Use alias_set_subset_of instead of
15869 aliases_conflict_p. A pointer which points to
15870 memory with alias set zero may access any variable.
15872 2008-04-23 Richard Guenther <rguenther@suse.de>
15874 * alias.c (alias_set_subset_of): Correctly handle asking
15875 if zero is a subset of an alias set with zero child.
15876 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15877 (compute_flow_insensitive_aliasing): Correctly walk all
15878 pointers. Do not unnecessarily union sets.
15880 2008-04-23 Richard Guenther <rguenther@suse.de>
15882 PR middle-end/36021
15883 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15885 2008-04-22 Tomas Bily <tbily@suse.cz>
15887 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15889 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15891 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15892 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15893 * tree-inline.c (estimate_num_insns_1): Likewise.
15894 * varasm.c (const_hash_1, compare_constant, copy_constant)
15895 (compute_reloc_for_constant, output_addressed_constants): Likewise.
15896 * emit-rtl.c (component_ref_for_mem_expr)
15897 (set_mem_attributes_minus_bitpos): Likewise.
15898 * expr.c (highest_pow2_factor, expand_expr_real_1, )
15899 (is_aligning_offset): Likewise.
15900 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15901 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15902 * dojump.c (do_jump): Likewise.
15903 * builtins.c (get_pointer_alignment, get_memory_rtx)
15904 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15905 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15907 2008-04-23 Jakub Jelinek <jakub@redhat.com>
15909 PR rtl-optimization/36017
15910 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15911 expanding the library call.
15913 2008-04-22 Ian Lance Taylor <iant@google.com>
15915 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15916 than size_in_bytes.
15918 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
15920 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15921 of LR/CTR moves for Power6.
15923 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15925 PR middle-end/36003
15926 * passes.c (init_optimization_passes): Remove
15927 pass_fast_rtl_byte_dce.
15929 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
15932 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15933 builtin functions to generate faster code.
15934 (_mm_cvtpu16_ps): Ditto.
15935 (_mm_cvtpi32x2_ps): Ditto.
15937 2008-04-22 Nick Clifton <nickc@redhat.com>
15939 * common.opt (ftree-loop-distribution): Add Optimization
15942 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15943 (frv_expand_builtin_va_start): Likewise.
15945 * config/arm/arm.c (thumb_find_work_register): Fix location of
15946 argument register count.
15948 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15950 Support scheduling for ColdFire V1 and V3 microarchitecture.
15951 Improve scheduling of multiplication instructions.
15953 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
15954 (mac): New instruction attribute.
15955 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15956 (m68k_sched_mac): New variable.
15957 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15958 Handle cfv1 and cfv3.
15959 (max_insn_size): New static variable.
15960 (struct _sched_ib): New type.
15961 (sched_ib): New static variable.
15962 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15963 to fields of 'struct _sched_ib sched_ib'. Update all uses.
15964 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15966 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15967 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
15968 new variables. Update.
15969 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15970 Add modeling of cfv3 instruction buffer. Update.
15971 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15972 * config/m68k/m68k.h (TUNE_CFV3): New macro.
15973 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15974 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15975 a particular reservation applies to.
15976 (type2): Reorganize attribute values. Rename alu to alu_reg,
15977 alu_l to alu, move_l to omove. Join move to alu. Split mul
15978 to mul_l and mul_w.
15979 (cf_ib_*): Simplify description of instruction buffer.
15980 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15981 (cf_mem): Split into cf_mem1 and cf_mem2.
15982 (cf_v2_move_??): Rename to cfv12_alu_??.
15983 (cf_v2_move_l_??): Rename to cfv12_omove_??.
15984 (cf_v2_mul_??): Remove reservations.
15985 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15986 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15987 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15989 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15990 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15991 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15992 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15993 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15994 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15995 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15996 expansions of the above reservations for instructions of sizes
15999 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
16001 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
16003 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
16005 * coverage.c: Include tree-pass.h.
16006 (coverage_counter_alloc): Print da_file_name to the dump file.
16008 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
16010 * sbitmap.c (sbitmap_range_empty_p): New function.
16011 * sbitmap.h (sbitmap_range_empty_p): New function.
16012 * bitmap.h: Now includes obstack.h.
16014 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
16015 Kenneth Zadeck <zadeck@naturalbridge.com>
16017 * dbgcnt.def (ra_byte_scan): Added.
16018 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
16019 when the last hit happens for a counter.
16020 * timevar.def (TV_DF_BYTE_LR): New variable.
16021 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
16022 * passes.c (pass_fast_rtl_byte_dce): New pass.
16023 * fwprop.c (update_df): Added mode to call df_ref_create.
16024 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16025 DF_REF_EXTRACT_OFFSET.
16026 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
16027 DF_BYTE_LR_OUT, df_byte_lr): New macro.
16029 (df_ref_extract): Added mode field.
16030 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
16031 DF_REF_EXTRACT_OFFSET.
16032 (DF_REF_EXTRACT_MODE): New macro.
16033 (df_byte_lr_bb_info): New structure.
16034 (df_print_byte_regset, df_compute_accessed_bytes,
16035 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
16036 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
16037 df_byte_lr_simulate_uses,
16038 df_byte_lr_simulate_artificial_refs_at_top,
16039 df_byte_lr_simulate_artificial_refs_at_end,
16040 df_compute_accessed_bytes): New function.
16041 (df_ref_create): Add parameter.
16042 (df_byte_lr_get_bb_info): New inline function.
16043 * df-scan.c (df_ref_record, df_uses_record,
16044 df_ref_create_structure): Added mode parameter.
16045 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
16046 df_defs_record, df_uses_record, df_get_conditional_uses,
16047 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
16048 df_entry_block_defs_collect, df_exit_block_uses_collect):
16049 Added mode parameter to calls to df_ref_record, df_uses_record,
16050 df_ref_create_structure.
16051 (df_ref_equal_p, df_ref_compare): Added test for modes.
16052 (df_ref_create_structure): Added code to set mode. Renamed
16053 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16054 DF_REF_EXTRACT_OFFSET.
16055 * df-core.c (df_print_byte_regset): New function.
16056 * df-byte-scan.c: New file.
16057 * df-problems.c (df_rd_transfer_function): Removed unnecessary
16058 calls to BITMAP_FREE.
16059 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
16060 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
16061 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
16062 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
16063 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
16064 df_byte_lr_local_compute, df_byte_lr_init,
16065 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16066 df_byte_lr_transfer_function, df_byte_lr_free,
16067 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
16068 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
16069 df_byte_lr_simulate_uses,
16070 df_byte_lr_simulate_artificial_refs_at_top,
16071 df_byte_lr_simulate_artificial_refs_at_end): New function.
16072 * dce.c (byte_dce_process_block): New function.
16073 (dce_process_block): au is now passed in rather than computed
16074 locally. Changed loops that look at artificial defs to not look
16075 for conditional or partial ones, because there never are any.
16076 (fast_dce): Now is able to drive byte_dce_process_block or
16077 dce_process_block depending on the kind of dce being done.
16078 (rest_of_handle_fast_dce): Add parameter to fast_dce.
16079 (rest_of_handle_fast_byte_dce): New function.
16080 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
16081 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
16083 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
16086 * gcc.h: Added fortran options that take arguments to
16087 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
16090 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
16092 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
16093 scalarization if on the LHS and not a full access.
16095 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16097 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
16099 2008-04-18 Rafael Espíndola <espindola@google.com>
16101 * tree-vrp.c (find_case_label_index): Fix the binary search.
16102 (find_case_label_range): New.
16103 (vrp_visit_switch_stmt): Use find_case_label_range.
16104 (simplify_switch_using_ranges): Use find_case_label_range.
16106 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
16108 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
16109 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
16111 2008-04-18 Tom Tromey <tromey@redhat.com>
16114 * doc/cpp.texi (Implementation-defined behavior): Mention
16117 2008-04-18 Ian Lance Taylor <iant@google.com>
16119 * fold-const.c (pointer_may_wrap_p): New static function.
16120 (fold_comparison): Add another test for pointer overflow. Use
16121 pointer_may_wrap_p to disable some false positives.
16123 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
16125 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
16126 (fname_as_string): Match updated cpp_interpret_string prototype.
16127 (fix_string_type): Support char16_t* and char32_t*.
16128 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
16129 derivative) nodes. Register as builtin if C++0x.
16130 (c_parse_error): Support CPP_CHAR{16,32}.
16131 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
16132 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
16133 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
16134 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
16135 CTI_CHAR32_ARRAY_TYPE>: New elements.
16136 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
16137 char32_type_node, signed_char32_type_node, char16_array_type_node,
16138 char32_array_type_node): New defines.
16139 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
16140 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
16141 (lex_string): Support CPP_STRING{16,32}, match updated
16142 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
16143 (lex_charconst): Support CPP_CHAR{16,32}.
16144 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
16145 and CPP_STRING{16,32}.
16147 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
16150 * aclocal.m4: Regenerate.
16151 * configure: Regenerate.
16153 2008-04-18 Jan Hubicka <jh@suse.cz>
16155 * except.c (dw2_size_of_call_site_table,
16156 sjlj_size_of_call_site_table): Use vector API for call_site_record.
16158 * cgraphbuild.c (build_cgraph_edges): Update.
16159 * tree-pass.h: Update comment.
16160 * final.c (leaf_function_p): Update.
16161 (leaf_renumber_regs): Update.
16162 (rest_of_clean_state): Update.
16163 * omp-low.c (expand_omp_parallel): Update.
16164 * ipa-reference.c (analyze_function): Update.
16165 * reorg.c (find_end_label): Update.
16166 (optimize_skip): Update.
16167 (fill_simple_delay_slots): Update.
16168 (fill_simple_delay_slots): Update.
16169 (make_return_insns): Update.
16170 (dbr_schedule): Update.
16171 * gimple-low.c (record_vars_into): Update.
16172 * cfgbuild.c (make_edges): Update.
16173 * function.c (assign_stack_local): Update.
16174 (assign_parm_adjust_stack_rtl): Update.
16175 (locate_and_pad_parm): Update.
16176 (allocate_struct_function): Do not initialize stack_alignment_needed
16177 and preferred_stack_boundary here.
16178 (stack_protect_prologue): Update.
16179 (stack_protect_epilogue): Update.
16180 (expand_function_start): Initialize stack_alignment_needed,
16181 preferred_stack_boundary and max_jumptable_ents.
16182 (expand_function_end): Update.
16183 (free_after_compilation): Do not NULLify epilogue_delay_list.
16184 * function.h (struct rtl_data): Add stack_protect_guard,
16185 stack_alignment_needed,
16186 preferred_stack_boundary, epilogue_delay_list.
16187 (struct function): Remove value_histograms, stack_alignment_needed,
16188 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
16190 unexpanded_var_list, stack_protect_guard.
16191 (current_function_epilogue_delay_list): Remove.
16192 * ipa-type-escape.c (analyze_function): Update.
16193 * gimplify.c (pop_gimplify_context): Update comment.
16194 * calls.c (expand_call): Update.
16195 (emit_library_call_value_1): Update.
16196 * except.c (set_nothrow_function_flags): Update.
16197 * cfgexpand.c (get_decl_align_unit): Update.
16198 (create_stack_guard): Update.
16199 (estimated_stack_frame_size): Update.
16200 (expand_used_vars): Update.
16201 (tree_expand_cfg): Free histogram earliers, init expansion variables.
16202 * explow.c (allocate_dynamic_stack_space): Update.
16203 * tree-ssa-live.c (remove_unused_locals): Update.
16204 * varasm.c (mark_constant_pool): Update.
16205 * tree-inline.c (remap_decls): Update.
16206 (initialize_cfun): Update.
16207 (declare_return_variable): Update.
16208 (inline_forbidden_p): Update.
16209 (expand_call_inline): Update.
16210 (declare_inline_vars): Update.
16211 (tree_function_versioning): Update.
16212 * tree-flow.h (value_histograms): New.
16213 (VALUE_HISTOGRAMS): New macro.
16214 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
16216 * tree-cfg.c (set_bb_for_stmt): Update.
16217 (replace_by_duplicate_decl): Update.
16218 (move_block_to_fn): Update.
16219 (new_label_mapper): Update.
16220 (dump_function_to_file): Update.
16221 * ipa-struct-reorg.c (build_data_structure): Update.
16222 * cfgrtl.c (print_rtl_with_bb): Update.
16223 * reload1.c (reload): Update.
16225 * config/i386/i386.c (setup_incoming_varargs_64,
16226 ix86_compute_frame_layout): Update.
16227 * config/arc/arc.c (arc_output_function_epilogue): Update.
16229 2008-04-18 Marius Strobl <marius@FreeBSD.org>
16231 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
16232 for FreeBSD as well.
16233 * gthr-posix95.h: Likewise.
16235 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
16237 PR rtl-optimization/35838
16238 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
16239 out the byte offset of the first subreg.
16241 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
16243 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
16244 to split_ti instead of three separate calls with single member arrays.
16245 (subti3 splitter): Ditto.
16246 (adddi3 splitter): Ditto with split_di.
16247 (subdi3 splitter): Ditto.
16248 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16249 two separate calls with single member arrays. Swap match_dup
16250 operands 1 and 2 to better fit into the array.
16251 (negdi2 splitter): Ditto with split_di.
16252 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
16253 two separate calls with single member arrays. Swap match_dup operands
16254 6 and 7 to better fit into the array.
16256 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
16258 * config/i386/i386.c (sse_builtin_type): New.
16259 (bdesc_sse_args): Likewise.
16260 (bdesc_sse_3arg): Removed.
16261 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16262 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
16263 IX86_BUILTIN_ROUNDPS.
16264 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
16265 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
16266 IX86_BUILTIN_ROUNDPS.
16267 (ix86_expand_sse_4_operands_builtin): Removed.
16268 (ix86_expand_sse_operands_builtin): New.
16269 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
16270 and CODE_FOR_sse4_1_roundps.
16271 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16272 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
16274 2008-04-17 Alan Modra <amodra@bigpond.net.au>
16277 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
16278 regs before frame pop when needed. If use_backchain_to_restore_sp
16279 then load backchain into a temp reg to restore vr and vrsave. Add
16280 code to restore vr after frame pop if possible.
16282 2008-04-17 Richard Guenther <rguenther@suse.de>
16284 * tree-vn.c (expressions_equal_p): Do not check type
16285 equality or compatibility before calling operand_equal_p.
16286 * fold-const.c (operand_equal_p): Check equivalence of
16287 integer constants before bailing out due to signedness or
16288 precision differences.
16289 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
16290 spurious differences in type qualification. Ignore types
16291 for COMPONENT_REFs at all.
16293 2008-04-17 Christian Bruel <christian.bruel@st.com>
16295 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
16296 msw_skip comparison.
16298 2008-04-16 Jakub Jelinek <jakub@redhat.com>
16301 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
16304 PR tree-optimization/35899
16305 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
16306 rather than TREE_OPERAND.
16308 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
16311 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
16312 temporary registers. Change operand predicate to general_operand.
16313 (remainderxf3): Ditto.
16315 2008-04-16 Richard Guenther <rguenther@suse.de>
16317 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
16318 * tree-affine.c (aff_combination_expand): Look through some
16321 2008-04-15 Doug Kwan <dougkwan@google.com>
16323 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
16325 * tree-pretty-print.c (dump_generic_node): Ditto.
16326 * final.c (output_addr_const): Ditto.
16327 * dwarf2out.c (output_cfi): Ditto.
16328 * c-pretty-print.c (pp_c_integer_constant): Ditto.
16329 * print-rtl.c (print_rtx): Ditto.
16330 * print-tree.c (print_node_brief, print_node): Ditto.
16331 * c-common.c (match_case_to_enum_1): Ditto.
16332 * sched-vis.c (print_value): Ditto.
16333 * config/i386/i386.c (print_operand): Cast to long unsigned int
16336 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
16337 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
16338 MS Windows VirtualProtect function.
16340 2008-04-15 Jan Hubicka <jh@suse.cz>
16342 * gengtype.c (write_root): Param_is argument is OK.
16343 * expr.c (expand_expr_real_1): Update call of get_exception_*.
16344 * function.h: Include varray.h
16345 (rtl_eh): New stucture based on except.c one.
16346 (call_site_record): New forward declaration and vector type.
16347 * calls.c (emit_call_1): Do not call
16348 note_current_region_may_contain_throw.
16349 * except.c (eh_status): Remove cur_region, try_region since they are
16351 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
16352 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
16353 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
16354 Remove call_site_data_used, call_site_data_size.
16355 Turn call_site_record into vector in function.h.
16356 (note_current_region_may_contain_throw): Remove.
16357 (get_exception_pointer, get_exception_filter): Do not take struct
16358 function argument; update.
16359 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16360 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16361 build_post_landing_pads, dw2_build_landing_pads,
16362 sjlj_assign_call_site_values, sjlj_mark_call_sites,
16363 sjlj_emit_function_enter, sjlj_emit_function_enter,
16364 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16365 sjlj_build_landing_pads, finish_eh_generation,
16366 remove_exception_handler_label, remove_eh_handler,
16367 maybe_remove_eh_handler, add_reachable_handler,
16368 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16369 add_action_record, collect_one_action_chain, add_call_site,
16370 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16371 sjlj_output_call_site_table, output_function_exception_table,
16372 * except.h (note_current_region_may_contain_throw): Remove
16373 (get_exception_pointer, get_exception_filter): Do not take struct
16375 * Makefile.in (GTFILES): Put varargs before struct function.
16377 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
16379 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16380 punt for STRING_CST.
16381 (get_constraint_for): Deal with STRING_CST here instead.
16383 2008-04-15 Richard Guenther <rguenther@suse.de>
16385 * tree-ssa-propagate.c (substitute_and_fold): Substitute
16386 statements in a basic-block with a backward walk. Do not
16387 substitute into dead statements but instead remove those.
16389 2008-04-15 Richard Guenther <rguenther@suse.de>
16391 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16392 to zero, thus disable creation of SFTs.
16394 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
16396 * tree-predcom.c (suitable_reference_p): Return false if the
16397 reference can throw.
16399 2008-04-15 Jakub Jelinek <jakub@redhat.com>
16402 * c-decl.c (finish_decl): If extern or static var has variable
16403 size, set TREE_TYPE (decl) to error_mark_node.
16405 2008-04-15 Rafael Espíndola <espindola@google.com>
16407 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16410 2008-04-15 Richard Guenther <rguenther@suse.de>
16412 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16413 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16414 (visit_reference_op_load): Do walk vuse-vdef chains on
16415 vn_reference_lookup.
16416 (visit_reference_op_store): But do not here.
16417 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16418 vn_reference_lookup.
16419 (vn_lookup_with_vuses): But do so here.
16421 2008-04-14 Ian Lance Taylor <iant@google.com>
16423 * fold-const.c (fold_overflow_warning): Remove assertion.
16425 2008-04-15 Ben Elliston <bje@au.ibm.com>
16427 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16428 temp1 local variables.
16430 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
16433 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16434 ".text.unlikely" section as executable.
16436 2008-04-14 James E. Wilson <wilson@tuliptree.org>
16438 * config/ia64/ia64.c (rtx_needs_barrier): Handle
16439 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16440 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16441 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16442 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16443 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16444 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16446 2008-04-14 Ian Lance Taylor <iant@google.com>
16448 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16449 * fold-const.c (fold_comparison): If appropriate, test
16450 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16451 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16452 reassociating a pointer type.
16453 * doc/invoke.texi (Optimize Options): Document that
16454 -fstrict-overflow applies to pointer wraparound.
16456 2008-04-13 Jan Hubicka <jh@suse.cz>
16458 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16460 2008-04-12 Andrew Pinski <pinskia@gmail.com>
16462 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16463 we are going to "save the world".
16465 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
16467 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16468 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16469 operand 0 constraint, not "=".
16471 2008-04-11 James E. Wilson <wilson@tuliptree.org>
16473 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16475 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
16477 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16478 of size of positions_needed * CHAR_BIT.
16480 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
16482 PR middle-end/35897
16483 * dse.c (store_info): Change positions_needed to unsigned
16485 (lowpart_bitmask): New.
16486 (record_store): Cast to unsigned HOST_WIDE_INT for
16487 positions_needed. Assert width <= size of positions_needed *
16488 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
16489 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
16490 lowpart_bitmask to set mask.
16492 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
16494 * config/bfin/constraints.md: New file.
16495 * config/bfin/bfin.md: Include it.
16496 (adddi3): Use satisfies_constraint functions instead of the old macros.
16497 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16498 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16499 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16500 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16501 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16502 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16503 EXTRA_CONSTRAINT): Delete.
16504 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16505 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16507 * config/bfin/bfin.c: Include "tm-constrs.h".
16508 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16509 Use satisfies_constraint functions instead of the old macros.
16510 * doc/md.texi (Blackfin Constraints): Update file name reference.
16512 2008-04-11 Richard Guenther <rguenther@suse.de>
16514 PR tree-optimization/35869
16515 * tree-vrp.c (execute_vrp): Move switch statement update after
16516 jump threading. Schedule another cfg cleanup run.
16518 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
16521 * attribs.c (decl_attributes): Return early on errorneous node.
16523 2008-04-10 Oleg Ryjkov <olegr@google.com>
16525 * tree.h (struct tree_base): Added a new flag default_def_flag.
16526 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16528 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
16530 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16532 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16535 * pa.md: Define mode iterator P. Define mode attribute dwc.
16536 (dcacheflush): Update pattern to use iterator P and attribute dwc.
16537 (icacheflush): Likewise.
16538 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16539 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16541 2008-04-11 Ben Elliston <bje@au.ibm.com>
16543 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16545 2008-04-10 Rafael Espíndola <espindola@google.com>
16547 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16548 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16549 (extract_range_from_expr): The same.
16551 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16553 * config/mips/mips.md (GPR2): New mode iterator.
16554 (seq): Add comment.
16555 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16556 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16557 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16558 Rewrite these to take two modes, the mode of comparison and the
16559 mode of the destination.
16560 * config/mips/mips.c (mips_expand_scc): Instead of having
16561 paradoxical subreg as destination, expand "narrowing" scc if mode
16562 of comparison is SI and target is requested in DI mode.
16563 (mips_emit_int_order_test): Update comment. Make mode of
16564 comparison match CMP0 rather than TARGET. When creating inverse
16565 target use mode of TARGET.
16567 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16569 * gcov-dump.c (tag_summary): Only print summaries for the first
16570 GCOV_COUNTERS_SUMMABLE counters.
16572 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
16574 * config/i386/i386.md (absneg): New code iterator.
16575 (absnegprefix): New code attribute.
16576 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16577 patterns using absneg code iterator.
16578 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16579 using absneg code iterator.
16580 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16581 *neg<mode>2 patterns using absneg code iterator.
16582 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16583 *negextendsfdf2 patterns using absneg code iterator.
16584 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16585 *negextendsfxf2 patterns using absneg code iterator.
16586 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16587 *negextendsfdf2 patterns using absneg code iterator.
16588 * config/i386/sse.md (<code><mode>2): Macroize expander from
16589 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16591 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
16593 * config/s390/s390.h: Remove the remains of the recent search
16594 & replace action of current_function_outgoing_args_size.
16596 2008-04-10 Ira Rosen <irar@il.ibm.com>
16598 PR tree-optimization/35821
16599 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16600 NEW_STMT_LIST is not NULL.
16602 2008-04-09 David Edelsohn <edelsohn@gnu.org>
16605 * toplev.c (process_options): Remove -ffunction-sections debugging
16608 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
16610 PR middle-end/PR28690
16611 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16612 than gen_rtx_fmt_ee to perform more canonicalizations.
16614 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16617 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16619 2008-04-09 Richard Guenther <rguenther@suse.de>
16621 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16622 (dump_function_to_file): Dump function arguments with types.
16624 2008-04-08 Richard Guenther <rguenther@suse.de>
16626 * fold-const.c (fold_widened_comparison): Do not allow
16627 sign-changes that change the result.
16629 2008-04-08 Janis Johnson <janis187@us.ibm.com>
16632 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16633 kinds of indirect references.
16635 2008-04-08 David Edelsohn <edelsohn@gnu.org>
16637 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16638 GNU Fortran language string.
16640 2008-04-08 Rafael Espíndola <espindola@google.com>
16642 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16643 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16644 * tree.h (tree_call_nonnegative_warnv_p): New.
16646 2008-04-08 Jan Hubicka <jh@suse.cz>
16648 * function.c (free_after_compilation): Clear out regno_reg_rtx
16651 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
16654 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16656 PR middle-end/PR28690
16657 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16658 same precedence as REG_POINTER and MEM_POINTER operands.
16660 2008-04-08 Richard Guenther <rguenther@suse.de>
16662 PR middle-end/35834
16663 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16664 for adding index to base.
16666 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
16668 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16669 (MINGW_ENABLE_EXECUTE_STACK): New.
16670 (IN_LIBGCC2): For libgcc include windows.h file for
16671 function declarations.
16673 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
16675 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16676 and tem2 if tem1 is not a REG or MULT.
16678 2008-04-08 Jan Hubicka <jh@suse.cz>
16680 * function.h (incomming_args): Break out of struct function.
16681 (function_subsections): Break out of struct function.
16682 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16683 return_rtx and hard_reg_initial_vals from struct function.
16684 Kill inl_max_label_num.
16685 (current_function_pops_args, current_function_args_info,
16686 current_function_args_size, current_function_args_size,
16687 current_function_pretend_args_size,
16688 current_function_outgoing_args_size,
16689 current_function_internal_arg_pointer, current_function_return_rtx):
16690 Kill compatibility accestor macros.
16691 * builtins.c (expand_builtin_apply_args_1): Update.
16692 (expand_builtin_next_arg): Update.
16693 * df-scan.c (df_get_call_refs): Update.
16694 * dbxout.c (dbxout_function_end): Update.
16695 * dwarf2out.c (dwarf2out_switch_text_section): Update.
16696 (output_line_info): Update.
16697 (secname_for_decl): Update.
16698 (dwarf2out_var_location): Update.
16699 * function.c (free_after_compilation): Update.
16700 (assign_parm_find_stack_rtl): Update.
16701 (assign_parms): Update.
16702 (expand_dummy_function_end): Update.
16703 (expand_function_end): Update.
16704 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16705 (expand_call): Update.
16706 (emit_library_call_value_1): Update.
16707 (store_one_arg): Update.
16708 * varasm.c (initialize_cold_section_name): Update.
16709 (unlikely_text_section): Update.
16710 (unlikely_text_section_p): Update.
16711 (assemble_start_function): Update.
16712 (assemble_end_function): Update.
16713 (default_section_type_flags): Update.
16714 (switch_to_section): Update.
16715 * integrate.c (set_decl_abstract_flags): Update.
16716 (get_hard_reg_initial_val): Update.
16717 (has_hard_reg_initial_val): Update.
16718 (allocate_initial_values): Update.
16719 * resource.c (init_resource_info): Update.
16720 * config/alpha/alpha.c (NUM_ARGS): Update.
16721 (direct_return): Update.
16722 (alpha_va_start): Update.
16723 (alpha_sa_size): Update.
16724 (alpha_initial_elimination_offset): Update.
16725 (alpha_expand_prologue): Update.
16726 (alpha_start_function): Update.
16727 (alpha_expand_epilogue): Update.
16728 (unicosmk_initial_elimination_offset):
16729 * config/alpha/alpha.md (call expander): Update.
16730 * config/s390/s390.c (s390_register_info): Update.
16731 (s390_register_info): Update.
16732 (s390_frame_info): Update.
16733 (s390_initial_elimination_offset): Update.
16734 (s390_build_builtin_va_list): Update.
16735 (s390_va_start): Update.
16736 * config/spu/spu.c (direct_return): Update.
16737 (spu_expand_prologue): Update.
16738 (spu_initial_elimination_offset): Update.
16739 (spu_build_builtin_va_list): Update.
16740 (spu_va_start): Update.
16741 * config/sparc/sparc.c (sparc_init_modes): Update.
16742 (sparc_compute_frame_size): Update.
16743 (function_value): Update.
16744 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16745 * config/i386/i386.md (return expander): Update.
16746 * config/i386/i386.c (ix86_va_start): Update.
16747 (ix86_can_use_return_insn_p): Update.
16748 (ix86_compute_frame_layout): Update.
16749 (ix86_expand_epilogue): Update.
16750 * config/sh/sh.c (output_stack_adjust): Update.
16751 (calc_live_regs): Update.
16752 (sh_expand_prologue): Update.
16753 (sh_builtin_saveregs): Update.
16754 (sh_va_start): Update.
16755 (initial_elimination_offset): Update.
16756 (sh_allocate_initial_value): Update.
16757 (sh_function_ok_for_sibcall): Update.
16758 (sh_get_pr_initial_val): Update.
16759 * config/sh/sh.md (return expander): Update.
16760 * config/avr/avr.c (frame_pointer_required_p): UPdate.
16761 * config/crx/crx.c (crx_compute_frame): UPdate.
16762 (crx_initial_elimination_offset): UPdate.
16763 * config/xtensa/xtensa.c (compute_frame_size): Update
16764 (xtensa_builtin_saveregs): Update.
16765 (xtensa_va_start): Update.
16766 (order_regs_for_local_alloc): Update.
16767 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16768 (xstormy16_expand_builtin_va_start): Update.
16769 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16770 * config/m68hc11/m68hc11.md (return expanders): Update.
16771 * config/m68hc11/m68hc11.c (expand_prologue): Update.
16772 (expand_epilogue): Update.
16773 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16774 (cris_simple_epilogue): Update.
16775 (cris_expand_prologue): Update.
16776 (cris_expand_epilogue): Update.
16777 * config/iq2000/iq2000.c (iq2000_va_start): Update.
16778 (compute_frame_size): Update.
16779 * config/mt/mt.c (mt_compute_frame_size): Update.
16780 * config/mn10300/mn10300.c (expand_prologue): Update.
16781 (expand_epilogue): Update.
16782 (initial_offset): Update.
16783 (mn10300_builtin_saveregs):
16784 * config/mn10300/mn10300.md (return expander): Update.
16785 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16786 (ia64_initial_elimination_offset): Update.
16787 (ia64_initial_elimination_offset): Update.
16788 (ia64_expand_prologue): Update.
16789 * config/m68k/m68k.md (return expander): Update.
16790 * config/rs6000/rs6000.c (rs6000_va_start): Update.
16791 (rs6000_stack_info): Update.
16792 * config/mcore/mcore.c (layout_mcore_frame): Update.
16793 (mcore_expand_prolog): Update.
16794 * config/arc/arc.c (arc_compute_frame_size): Update.
16795 * config/score/score3.c (score3_compute_frame_size): Update.
16796 * config/score/score7.c (score7_compute_frame_size): Update.
16797 * config/arm/arm.c (use_return_insn): Update.
16798 (thumb_find_work_register): Update.
16799 (arm_compute_save_reg_mask): Update.
16800 (arm_output_function_prologue): Update.
16801 (arm_output_epilogue): Update.
16802 (arm_size_return_regs): Update.
16803 (arm_get_frame_offsets): Update.
16804 (arm_expand_prologue): Update.
16805 (thumb_exit): Update.
16806 (thumb_unexpanded_epilogue): Update.
16807 (thumb1_output_function_prologue): Update.
16808 * config/pa/pa.md (return expander): Update.
16809 * config/pa/pa.c (compute_frame_size): Update.
16810 (hppa_builtin_saveregs): Update.
16811 * config/mips/mips.c (mips_va_start): Update.
16812 (mips16_build_function_stub): Update.
16813 (mips_compute_frame_info): Update.
16814 (mips_restore_gp): Update.
16815 (mips_output_function_prologue): Update.
16816 (mips_expand_prologue): Update.
16817 * config/v850/v850.c (compute_frame_size): Update.
16818 (expand_prologue): * config/mmix/mmix.c (along): update.
16819 (mmix_initial_elimination_offset): update.
16820 (mmix_reorg): update.
16821 (mmix_use_simple_return): update.
16822 (mmix_expand_prologue): update.
16823 (mmix_expand_epilogue): Update.
16824 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16825 (emit_link_insn): Update.
16827 2008-04-08 Anatoly Sokolov <aesok@post.ru>
16829 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16830 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16832 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16835 2008-04-07 Jan Hubicka <jh@suse.cz>
16837 * function.h (rtl): Rename to x_rtl.
16838 (crtl): New define.
16839 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16840 frame_offset, stack_check_probe_note, arg_pointer_save_area,
16841 used_temp_slots avail_temp_slots, temp_slot_level,
16842 nonlocal_goto_handler_labels): Update accesstors.
16843 (rtl): New global variable.
16844 (struct function): Move some fileds to rtl_data.
16845 (get_arg_pointer_save_area): Update prototype.
16846 * builtins.c (expand_builtin_setjmp_receiver): Update call of
16847 get_arg_pointer_save_area.
16848 * expr.c (init_expr): Update
16849 * function.c (get_frame_size): Update
16850 (assign_stack_local): Update
16851 (expand_function_end): Update.
16852 (get_art_pointer_save_area): Update
16854 * emit-rtl.c (rtl): Declare.
16855 (regno_reg_rtx): Declare.
16856 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16858 (gen_reg_rtx): Update.
16859 * varasm.c (n_deferred_constatns): Update accestor.
16860 (init_varasm_status): Do not allocate varasm_status.
16861 (force_const_mem, get_pool_size, output_constant_pool): Update.
16862 * stmt.c (force_label_rtx): Do not use x_ prefixes.
16863 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16864 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16865 * sparc/sparc.h (INIT_EXPANDERS): Update.
16866 * ia64/ia64.h (INIT_EXPANDERS): Update.
16868 2008-04-07 James E. Wilson <wilson@tuliptree.org>
16870 * reload.c (push_secondary_reload): Add missing break to for loop.
16872 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16874 PR middle-end/PR28690
16875 * rtlanal.c: Update copyright years.
16876 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16877 as REG_POINTER and MEM_POINTER operands.
16878 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16879 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16880 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16881 * gcse.c: Update copyright years.
16882 (pre_delete): Call gen_reg_rtx_and_attrs.
16883 (hoist_code): Likewise.
16884 (build_store_vectors): Likewise.
16885 (delete_store): Likewise.
16886 * loop-invariant.c (move_invariant_reg): Likewise.
16887 Update copyright years.
16889 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
16891 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16892 control string instead of quoted.
16894 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
16896 * doc/rtl.texi: Rewrite of subreg section.
16898 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
16901 * config/i386/i386.c (legitimize_pic_address): Add treating
16902 of dllimport SYM_REF's.
16903 (legitimize_dllimport_symbol): Add prototype.
16905 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16907 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
16908 reference in constructor with non self-referential type.
16910 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16912 Removal of Return with Depressed Stack Pointer support
16913 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16914 (ECF_SP_DEPRESSED): Likewise.
16915 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16916 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16917 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16918 (expand_call): Do not test ECF_SP_DEPRESSED.
16919 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16920 * function.c (keep_stack_depressed): Delete.
16921 (handle_epilogue_set): Likewise.
16922 (update_epilogue_consts): Likewise.
16923 (emit_equiv_load): Likewise.
16924 (thread_prologue_and_epilogue_insns): Remove support for Return with
16925 Depressed Stack Pointer.
16926 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16928 2008-04-06 Richard Guenther <rguenther@suse.de>
16930 PR tree-optimization/35400
16931 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16932 information from SSA_NAMEs.
16934 2008-04-06 Anatoly Sokolov <aesok@post.ru>
16936 * config/avr/avr.h (avr_mega_p): Remove declaration.
16937 (AVR_MEGA): Remove macro.
16938 * config/avr/avr.c (avr_mega_p): Remove variable.
16939 (avr_override_options): Remove inicializion of avr_mega_p.
16940 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16941 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16942 (avr_jump_mode): (Ditto.).
16943 (avr_output_progmem_section_asm_op): (Ditto.).
16944 (avr_asm_init_sections): (Ditto.).
16945 (avr_asm_init_sections): (Ditto.).
16946 (avr_rtx_costs): (Ditto.).
16947 * config/avr/avr.md: (Ditto.).
16948 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16951 2008-04-06 Richard Guenther <rguenther@suse.de>
16953 PR tree-optimization/35842
16954 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16955 is_gimple_invariant_address.
16957 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16959 * gcc.c (default_compilers): Sync Fortran extensions list with
16960 that in fortran/lang-specs.h.
16961 * doc/invoke.texi: Likewise.
16962 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16963 * dwarf2out.c (gen_compile_unit_die): Likewise.
16965 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
16967 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16969 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
16972 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16973 attribute is used for nested functions.
16975 2008-04-05 Jan Hubicka <jh@suse.cz>
16977 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16979 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16981 (dump_files): Update.
16982 (enable_rtl_dump_file): Do not accept letter argument.
16983 * tree-pass.h (dump_file_info): Remove letter argument.
16984 * toplev.c (decode_d_option): Update -da handling.
16985 * toplev.h (enable_rtl_dump_file): Update prototype.
16986 * passes.c (register_one_dump_file): Do not accept IPA argument; work
16987 it out based on pass type.
16988 (register_dump_files_1): Likewise.
16989 (init_optimization_passes): Update register_one_dump_file calls.
16990 (execute_one_pass): Sanity check that IPA passes are called at IPA
16991 level and RTL passes at RTL level.
16992 (execute_pass_list): IPA pass can not be after or subpass of
16994 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16995 disallov RTL subpasses of IPA subpasses.
16997 2008-04-05 Ben Elliston <bje@au.ibm.com>
16999 * tree-cfg.c (need_fake_edge_p): Return false for calls to
17000 builtins that return exactly once and do not throw. Cache call to
17003 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
17005 PR rtl-optimization/34916
17006 PR middle-end/35519
17007 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
17008 between instruction pairs.
17010 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
17012 * doc/invoke.texi: Document -mbitops for SH.
17013 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
17014 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
17015 * config/sh/sh.c (print_operand): Add %t operand code.
17016 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
17017 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
17018 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
17019 (extendqihi2): Likewise.
17020 (movqi_i): Likewise.
17021 (insv): Use bset, bclr and bst instructions for SH2A if possible.
17022 (extv): Use bld instruction for SH2A if possible.
17024 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
17025 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
17026 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
17027 (bset.b, bclr.b): Define peepholes.
17028 * config/sh/sh.opt (mbitops): New option.
17030 2008-04-04 Janis Johnson <janis187@us.ibm.com>
17033 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
17034 and view convert expression.
17036 2008-04-04 Jakub Jelinek <jakub@redhat.com>
17039 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
17041 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
17043 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
17045 * config/i386/cpuid.h (bit_AES): New.
17046 (bit_PCLMUL): Likewise.
17048 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
17049 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
17050 SSE2 if AES or PCLMUL is enabled.
17051 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
17052 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17053 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
17054 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
17055 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
17056 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
17057 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17058 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
17059 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
17060 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
17061 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
17062 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
17063 __builtin_ia32_aeskeygenassist128 and
17064 __builtin_ia32_pclmulqdq128.
17065 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
17066 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
17067 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
17069 * config/i386/i386.h (TARGET_AES): New.
17070 (TARGET_PCLMUL): Likewise.
17071 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
17073 * config/i386/i386.md (UNSPEC_AESENC): New.
17074 (UNSPEC_AESENCLAST): Likewise.
17075 (UNSPEC_AESDEC): Likewise.
17076 (UNSPEC_AESDECLAST): Likewise.
17077 (UNSPEC_AESIMC): Likewise.
17078 (UNSPEC_AESKEYGENASSIST): Likewise.
17079 (UNSPEC_PCLMUL): Likewise.
17081 * config/i386/i386.opt (maes): New.
17082 (mpclmul): Likewise.
17084 * config/i386/sse.md (aesenc): New pattern.
17085 (aesenclast): Likewise.
17086 (aesdec): Likewise.
17087 (aesdeclast): Likewise.
17088 (aesimc): Likewise.
17089 (aeskeygenassist): Likewise.
17090 (pclmulqdq): Likewise.
17092 * config/i386/wmmintrin.h: New.
17094 * doc/extend.texi: Document AES and PCLMUL built-in function.
17096 * doc/invoke.texi: Document -maes and -mpclmul.
17098 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
17100 * function.c (free_after_parsing): Replace with
17101 cxx_push_function_context from C++ front-end.
17102 (allocate_struct_function): Don't call langhook.
17103 * langhooks.h (struct lang_hooks_for_functions): Delete.
17104 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
17106 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
17107 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
17108 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
17109 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
17110 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
17111 remove LANG_HOOKS_FUNCTION_INITIALIZER.
17112 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
17114 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
17115 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
17117 2008-04-04 Jakub Jelinek <jakub@redhat.com>
17120 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
17123 2008-04-04 Richard Guenther <rguenther@suse.de>
17125 PR middle-end/35823
17126 * fold-const.c (optimize_minmax_comparison): Use the correct
17127 type for the constant in the simplified comparison.
17129 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
17131 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
17132 Pass L2 size as "--param l2-cache-size" to the compiler.
17133 (decode_l2_cache): New function to decode L2 cache parameters using
17134 0x8000006 extended cpuid function.
17135 (detect_caches_amd): Determine parameters of L2 cache using
17136 decode_l2_caches function.
17137 (decode_caches_intel): Decode L2 cache parameters.
17138 (detect_caches_intel): Determine L2 cache parameters using
17139 decode_caches_intel and decode_l2_caches functions.
17141 2008-04-03 Bob Wilson <bob.wilson@acm.org>
17143 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
17144 secondary input reload for subword loads from the constant pool.
17146 2008-04-03 Janis Johnson <janis187@us.ibm.com>
17149 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
17150 constants of the appropriate size for runtime calculations.
17153 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
17154 decimal-float literal constant zero.
17156 2008-04-03 Jakub Jelinek <jakub@redhat.com>
17159 * c-parser.c (c_parser_omp_atomic): Call
17160 default_function_array_conversion on the RHS.
17162 PR middle-end/35818
17163 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
17164 call is_variable_sized if decl has incomplete type.
17166 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
17168 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
17170 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
17172 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
17174 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
17175 (sgt<u>): Merge sgt and sgtu into new expander.
17176 (sgt, sgtu): Remove expanders.
17177 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
17178 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
17179 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
17180 *sgtu_<mode>_mips16 into new pattern.
17181 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
17182 (sge<u>): Merge sge and sgeu into new expander.
17183 (sge, sgeu): Remove expanders.
17184 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
17186 (*sge_<mode>, second *sge_<mode>): Remove patterns.
17187 (slt<u>): Merge slt and sltu into new expander.
17188 (slt, sltu): Remove expanders.
17189 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
17190 (*slt_<mode>, *sltu_<mode>): Remove patterns.
17191 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
17192 *sltu_<mode>_mips16 into new pattern.
17193 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
17194 (sle<u>): Merge sle and sleu into new expander.
17195 (sle, sleu): Remove expanders.
17196 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
17197 (*sle_<mode>, *sleu_<mode>): Remove patterns.
17198 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
17199 *sleu_<mode>_mips16 into new pattern.
17200 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
17202 2008-04-03 Jan Hubicka <jh@suse.cz>
17204 PR tree-optimization/35795
17205 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
17206 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17207 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17208 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17209 * score/score3.c (score3_output_mi_thunk): Likewise.
17210 * score/score7.c (score7_output_mi_thunk): Likewise.
17211 * mips/mips.c (mips_output_mi_thunk): Likewise.
17213 2008-04-03 Richard Guenther <rguenther@suse.de>
17215 * tree-vrp.c (extract_range_from_unary_expr): Handle all
17216 conversions. Simplify code.
17218 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
17220 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
17222 2008-04-03 Tom Tromey <tromey@redhat.com>
17223 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17225 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17226 * config/bfin/t-bfin-linux (generated_files): Add
17227 linux-sysroot-suffix.h.
17228 * doc/install.texi (Prerequisites): Require make 3.80.
17229 * doc/sourcebuild.texi (Front End Directory): Document new
17231 * Makefile.in (generated_files): New variable.
17232 (ALL_HOST_OBJS): New variable.
17233 ($(ALL_HOST_OBJS)): New target.
17235 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
17237 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
17238 (remap_block): Call id->transform_lang_insert_block instead
17240 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
17241 Set id.transform_lang_insert_block to NULL.
17242 (clone_body): Move to cp/optimize.c
17243 * tree-inline.h (struct copy_body_data): Change
17244 transform_lang_insert_block to function pointer.
17245 (copy_generic_body, copy_decl_no_change): Export.
17246 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
17247 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
17248 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17250 * c-tree.h (insert_block): Kill.
17251 * c-decl.c (insert_block): Kill.
17253 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
17255 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17256 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17257 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
17259 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
17260 argument, call {push,pop}_function_context from here.
17261 * c-parser.c: Use c_{push,pop}_function_context.
17263 * function.c (push_function_context_to): Move meat ...
17264 (push_function_context): ... here. Simplify.
17265 * function.c (pop_function_context_from): Move meat ...
17266 (pop_function_context): ... here. Simplify.
17267 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
17269 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17270 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17271 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
17272 * tree.h (push_function_context_to, pop_function_context_from): Remove.
17274 2008-04-03 Ben Elliston <bje@au.ibm.com>
17276 * expmed.c (extract_force_align_mem_bit_field): Remove.
17278 2008-04-03 Richard Guenther <rguenther@suse.de>
17280 PR middle-end/35800
17281 * expr.h (try_casesi): Adjust prototype.
17282 * expr.c (try_casesi): Take fallback label as extra parameter.
17283 Use that for gen_casesi if default_label is NULL.
17284 * stmt.c (expand_case): Pass fallback label to try_casesi,
17285 make sure to fill gaps with a fallback label if default_label
17288 2008-04-03 Dominique d'Humières <dominiq@lps.ens.fr>
17291 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
17293 2008-04-03 Ben Elliston <bje@au.ibm.com>
17295 * expmed.c (extract_split_bit_field): Remove if (0) code.
17296 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
17297 (do_ds_constraint): Likewise.
17299 2008-04-02 Joseph Myers <joseph@codesourcery.com>
17301 * doc/cppopts.texi (-dU): Document.
17302 * c-common.h (flag_dump_macros): Update comment.
17303 * c-opts.c (handle_OPT_d): Handle -dU.
17304 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
17305 dump_queued_macros, cb_used_define, cb_used_undef): New.
17306 (init_pp_output): Handle -dU.
17307 (cb_line_change): Call dump_queued_macros.
17308 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
17310 2008-04-02 Anatoly Sokolov <aesok@post.ru>
17312 * config/avr/predicates.md (io_address_operand): New predicate.
17313 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
17314 * config/avr/avr.c (avr_io_address_p): Remove function.
17315 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
17316 'avr_io_address_p' function.
17317 (out_movhi_r_mr): (Ditto.).
17318 (out_movqi_mr_r): (Ditto.).
17319 (out_movhi_mr_r): (Ditto.).
17320 (avr_address_cost): (Ditto.).
17322 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
17324 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
17325 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
17326 in 32bit mode when XMM registers are available to avoid store
17328 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
17329 corresponding post-reload splitters.
17331 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
17333 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
17334 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
17335 __builtin_ia32_roundss.
17336 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
17337 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17338 __builtin_ia32_roundss.
17339 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
17340 IX86_BUILTIN_SHUFPD here.
17342 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
17344 * config/i386/i386.md (plogic): New.
17345 (plogicprefix): Likewise.
17347 * config/i386/mmx.md (mmx_<code><mode>3): New.
17348 (mmx_and<mode>3): Removed.
17349 (mmx_ior<mode>3): Likewise.
17350 (mmx_xor<mode>3): Likewise.
17352 * config/i386/sse.md (<code><mode>3): New.
17353 (*<code><mode>3): Likewise.
17354 (*<code><mode>3): Likewise.
17355 (<code><mode>3): Likewise.
17356 (*sse_<code><mode>3): Likewise.
17357 (*sse2_<code><mode>3): Likewise.
17358 (<code>tf3): Likewise.
17359 (*<code>tf3): Likewise.
17360 (and<mode>3): Likewise.
17361 (*and<mode>3): Likewise.
17362 (ior<mode>3): Removed.
17363 (*ior<mode>3): Likewise.
17364 (xor<mode>3): Likewise.
17365 (*xor<mode>3): Likewise.
17366 (*and<mode>3): Likewise.
17367 (*ior<mode>3): Likewise.
17368 (*xor<mode>3): Likewise.
17369 (and<mode>3): Likewise.
17370 (*sse_and<mode>3): Likewise.
17371 (*sse2_and<mode>3): Likewise.
17372 (andtf3): Likewise.
17373 (*andtf3): Likewise.
17374 (ior<mode>3): Likewise.
17375 (*sse_ior<mode>3): Likewise.
17376 (*sse2_ior<mode>3): Likewise.
17377 (iortf3): Likewise.
17378 (*iortf3): Likewise.
17379 (xor<mode>3): Likewise.
17380 (*sse_xor<mode>3): Likewise.
17381 (*sse2_xor<mode>3): Likewise.
17382 (xortf3): Likewise.
17383 (*xortf3): Likewise.
17385 2008-04-02 Richard Guenther <rguenther@suse.de>
17387 PR tree-optimization/14495
17388 PR tree-optimization/34793
17389 * tree-vrp.c (struct switch_update): New structure.
17390 (to_remove_edges, to_update_switch_stmts): New VECs.
17391 (simplify_switch_using_ranges): New function. Remove not taken
17392 case labels and edges.
17393 (simplify_stmt_using_ranges): Call it.
17394 (identify_jump_threads): Mark edges we have queued for removal
17395 so we don't thread them.
17396 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17398 * tree-cfg.c (group_case_labels): Deal with missing default label.
17399 (tree_verify_flow_info): Allow missing default label.
17400 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17401 (emit_case_nodes): Likewise.
17402 (expand_case): Do not rely on the default label to be present.
17403 * expr.c (try_casesi): Deal with NULL default_label.
17404 (do_tablejump): Likewise.
17406 2008-04-02 Richard Guenther <rguenther@suse.de>
17408 PR tree-optimization/14495
17409 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17410 SWITCH_EXPR here ...
17411 (vrp_visit_switch_stmt): ... but here (new function).
17412 (find_case_label_index): New helper function.
17413 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17415 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17417 * fwprop.c: Fix ISO-C99ism.
17419 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17422 * Makefile.in (objdir): Set it here.
17423 * configure.ac: Not here. Find dynamic linker characteristics.
17424 * exec-tool.in: Use them.
17425 * aclocal.m4: Regenerate.
17426 * configure: Regenerate.
17428 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17430 * expr.c (expand_var): Delete it.
17431 * expr.h (expand_var): Delete prototype.
17432 * function.c (expand_function_start): Use expand_decl instead.
17433 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17436 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
17438 PR rtl-optimization/35542
17439 * fwprop.c (forward_propagate_and_simplify): Replace
17440 loc_reg_mentioned_in_p with reg_mentioned_p.
17442 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17444 PR rtl-optimization/35281
17445 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17446 (propagate_rtx_1): Handle PR_HANDLE_MEM.
17447 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17448 (varying_mem_p): Move above propagate_rtx.
17449 (all_uses_available_at): Do not check MEMs.
17451 2008-04-02 Rafael Espíndola <espindola@google.com>
17453 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17454 (register_edge_assert_for_2): Split the cond argument.
17455 (register_edge_assert_for_1): Adjust for the change in
17456 register_edge_assert_for_2.
17457 (register_edge_assert_for): Split the cond argument.
17458 (find_switch_asserts): Adjust for the change in
17459 register_edge_assert_for.
17461 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
17463 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17464 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17465 offsets for 64-bit mingw.
17466 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17467 abi for x86_64-pc-mingw.
17469 2008-04-02 Richard Guenther <rguenther@suse.de>
17471 * tree-vrp.c (extract_range_from_assert): Make sure to not
17472 produce range min/max with TREE_OVERFOW set.
17473 If merging a anti-range and a range keep the anti-range if
17474 the range covers all values of the type.
17475 (register_edge_assert_for_2): Only allow sign-changing
17476 conversions in detecting canonical range checks. Also
17477 register an assert for the unsigned name if useful.
17479 PR tree-optimization/35787
17480 * tree-vrp.c (vrp_val_max): New function.
17481 (vrp_val_min): Likewise.
17482 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17483 (vrp_val_is_min): Likewise.
17484 (supports_overflow_infinity): Use vrp_val_{min,max}.
17485 (negative_overflow_infinity): Likewise.
17486 (positive_overflow_infinity): Likewise.
17487 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17488 (is_positive_overflow_infinity): Likewise.
17489 (is_overflow_infinity): Likewise.
17490 (avoid_overflow_infinity): Use vrp_val_{min,max} and
17491 vrp_val_is_{min,max}.
17492 (set_and_canonicalize_value_range): Canonicalize anti-ranges
17493 to ranges if possible. Avoid empty ranges.
17495 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17497 PR middle-end/35705
17498 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17499 the expression is a function address.
17501 2008-04-01 George Helffrich <george@gcc.gnu.org>
17503 PR fortran/35154, fortran/23057
17504 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17505 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17506 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17507 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17509 (dbxout_syms): Check for COMMON-based symbol and wrap in
17510 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17511 in bracket for efficiency.
17513 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17514 using DW_TAG_common_block + member offset.
17515 (add_pubname_string): New function.
17516 (dw_expand_expr): New function to find block name and offset for
17518 (common_check): New function to check whether symbol in Fortran COMMON.
17519 (gen_variable_die): If COMMON, use DW_TAG_common_block.
17521 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
17524 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17526 2008-04-02 Ben Elliston <bje@au.ibm.com>
17528 * config/v850/v850.md (casesi): Remove if (0) code.
17529 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17530 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17532 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
17534 * config/i386/i386.md (rex64suffix): New mode attribute.
17535 (floathi<mode>2): Disable expander for SSE math.
17536 (*floathi<mode>2_1): New insn insn_and_split pattern.
17537 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17538 corresponding post-reload splitters.
17539 (*floathi<mode>2_i387): New macroized insn pattern.
17540 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17541 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17542 insn_and_split pattern.
17543 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17544 New macroized instruction patterns and corresponding post-reload
17546 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17547 and corresponding post-reload splitters.
17548 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17549 New macroized instruction patterns.
17550 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17551 macroized instruction patterns and corresponding post-reload splitters.
17552 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17553 corresponding post-reload splitters.
17554 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17555 New macroized instruction patterns.
17556 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17557 corresponding post-reload splitters.
17558 (*floatsi<mode>2_i387): New macroized instruction patterns.
17560 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
17562 * config/i386/i386.md (smaxmin): New.
17563 (umaxmin): Likewise.
17564 (maxminiprefix): Likewise.
17565 (maxminfprefix): Likewise.
17566 (<code><mode>3): Likewise.
17567 (smin<mode>3): Removed.
17568 (smax<mode>3): Likewise.
17570 * config/i386/mmx.md (mmx_<code>v2sf3): New.
17571 (mmx_<code>v4hi3): Likewise.
17572 (mmx_<code>v8qi3): Likewise.
17573 (mmx_smaxv2sf3): Removed.
17574 (mmx_sminv2sf3): Likewise.
17575 (mmx_umaxv8qi3): Likewise.
17576 (mmx_smaxv4hi3): Likewise.
17577 (mmx_uminv8qi3): Likewise.
17578 (mmx_sminv4hi3): Likewise.
17580 * config/i386/sse.md (<addsub><mode>3): New.
17581 (*<addsub><mode>3): Likewise.
17582 (<sse>_vm<addsub><mode>3): Likewise.
17583 (<maxmin><mode>3): Likewise.
17584 (*<maxmin><mode>3_finite): Likewise.
17585 (*<maxmin><mode>3): Likewise.
17586 (<sse>_vm<maxmin><mode>3): Likewise.
17587 (sse3_h<addsub>v4sf3): Likewise.
17588 (sse3_h<addsub>v2df3): Likewise.
17589 (<maxmin>v16qi3): Likewise.
17590 (*<maxmin>v16qi3): Likewise.
17591 (<maxmin>v8hi3): Likewise.
17592 (*<maxmin>v8hi3): Likewise.
17593 (*sse4_1_<maxmin><mode>3): Likewise.
17594 (*sse4_1_<maxmin><mode>3): Likewise.
17595 (add<mode>3): Removed.
17596 (*add<mode>3): Likewise.
17597 (<sse>_vmadd<mode>3): Likewise.
17598 (sub<mode>3): Likewise.
17599 (*sub<mode>3): Likewise.
17600 (<sse>_vmsub<mode>3): Likewise.
17601 (smin<mode>3): Likewise.
17602 (*smin<mode>3_finite): Likewise.
17603 (*smin<mode>3): Likewise.
17604 (<sse>_vmsmin<mode>3): Likewise.
17605 (smax<mode>3): Likewise.
17606 (*smax<mode>3_finite): Likewise.
17607 (*smax<mode>3): Likewise.
17608 (<sse>_vmsmax<mode>3): Likewise.
17609 (sse3_haddv4sf3): Likewise.
17610 (sse3_haddv2df3): Likewise.
17611 (sse3_hsubv4sf3): Likewise.
17612 (sse3_hsubv2df3): Likewise.
17613 (umaxv16qi3): Likewise.
17614 (*umaxv16qi3): Likewise.
17615 (smaxv8hi3): Likewise.
17616 (*smaxv8hi3): Likewise.
17617 (*sse4_1_smax<mode>3): Likewise.
17618 (*sse4_1_umax<mode>3): Likewise.
17619 (uminv16qi3): Likewise.
17620 (*uminv16qi3): Likewise.
17621 (sminv8hi3): Likewise.
17622 (*sminv8hi3): Likewise.
17623 (*sse4_1_smin<mode>3): Likewise.
17624 (*sse4_1_umin<mode>3): Likewise.
17626 2008-04-01 Rafael Espíndola <espindola@google.com>
17628 * tree-cfg.c (verify_expr): remove in_phi.
17629 (verify_stmt): Don't call walk_tree with verify_expr. Use
17630 is_gimple_min_invariant instead of is_gimple_val.
17632 2008-04-01 Joseph Myers <joseph@codesourcery.com>
17634 * doc/include/gpl_v3.texi: Update for manpage generation.
17635 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17637 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17638 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17639 gpl_v3.texi instead of gpl.texi.
17642 2008-04-01 Jakub Jelinek <jakub@redhat.com>
17645 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17647 2008-04-01 Rafael Espíndola <espindola@google.com>
17649 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17650 (extract_code_and_val_from_cond): Use
17651 extract_code_and_val_from_cond_with_ops.
17653 2008-04-01 Jan Hubicka <jh@suse.cz>
17655 * function.c (free_after_compilation): Free epilogue_delay_list.
17656 (prepare_function_start): Assert that previous compilation was freed.
17658 2008-04-01 Jan Hubicka <jh@suse.cz>
17659 Jim Wilson <wilson@tuliptree.org>
17660 Andreas Tobler <andreast@gcc.gnu.org>
17662 PR middle-end/35781
17663 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17664 rtl.emit instead cfun->emit.
17665 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17666 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17668 2008-04-01 Ben Elliston <bje@au.ibm.com>
17670 * doc/c-tree.texi (Function Basics): Fix grammatical error.
17672 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
17674 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17676 (fprofile-use): Add var flag_profile_use
17677 * coverage.c (coverage_begin_output): Do not open a gcno file for
17678 output only if -ftest-coverage is set.
17679 Do not add getpwd() to gcda file path.
17680 (build_gcov_info): Check the new flag
17681 flag_profile_datafile_relative_path.
17682 (coverage_init): Use profile_data_prefix.
17683 Read profile counter only if flag_profile_use is set.
17684 * opts.c (common_handle_option): New option fprofile-use=,
17685 fprofile-dir=, fprofile-generate=.
17686 * toplev.c (profile_data_prefix): New variable definition.
17687 * toplev.h (profile_data_prefix): New declaration.
17688 * doc/invoke.tex (Option Summary, Optimization Options):
17691 2008-03-31 James E. Wilson <wilson@tuliptree.org>
17693 * varasm.c (output_constant_pool_1): In LABEL_REF check,
17694 use tmp consistently.
17697 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17698 * config/ia64/ia64.c (rtx_needs_barrier): Handle
17699 UNSPEC_FR_RECIP_APPROX_RES.
17700 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17702 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
17705 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17707 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
17709 PR middle-end/30186
17710 * fold-const.c (fold_indirect_ref_1): Support accessing non first
17711 element of the vector via a pointer.
17713 2008-03-31 Ian Lance Taylor <iant@google.com>
17715 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17717 2008-03-31 Jan Hubicka <jh@suse.cz>
17719 * builtins.c (expand_builtin_setjmp_receiver): Update call of
17720 get_arg_pointer_save_area.
17721 * expr.c (init_expr): Just clear out rtl.expr.
17722 * function.c (free_after_compilation): Clear out whole RTL structure.
17723 (get_func_frame_size): Merge into ...
17724 (get_frame_size): ... this one.
17725 (assign_stack_local_1): Merge into ...
17726 (assign_stack_local): ... this one.
17727 (expand_function_end): Update call of get_arg_pointer_save_area.
17728 (get_art_pointer_save_area): Remove cfun argument.
17729 * function.h (emit_status): regno_pointer_align does not need length
17730 attribute. Move x_regno_reg_rtx to ...
17731 (regno_reg_rtx): ... new global array.
17732 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17733 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17734 apply_args_value, forced_labels, stack_pointer_delta):
17736 (struct varasm_status): Move here from varasm.c
17737 (struct rtl_data): New. Move here some fields from struct function.
17738 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17739 frame_offset, stack_check_probe_note, arg_pointer_save_area,
17740 used_temp_slots avail_temp_slots, temp_slot_level,
17741 nonlocal_goto_handler_labels): Update accesstors.
17742 (rtl): New global variable.
17743 (struct function): Move some fileds to rtl_data.
17744 (get_arg_pointer_save_area): Update prototype.
17745 * emit-rtl.c (rtl): Declare.
17746 (regno_reg_rtx): Declare.
17747 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17749 (gen_reg_rtx): Update.
17750 (init_virtual_regs): Do not tate emit_status argument.
17751 (init_emit): Do not allocate emit.
17752 * varasm.c (varasm_statuc): Move to function.h.
17753 (n_deferred_constatns): Update accestor.
17754 (init_varasm_status): Do not allocate varasm_status.
17755 (force_const_mem, get_pool_size, output_constant_pool): Update.
17756 * stmt.c (force_label_rtx): Do not use x_ prefixes.
17757 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17759 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
17761 PR rtl-optimization/35729
17762 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17765 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
17768 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17769 load/store if memory is unaligned.
17770 (*movti_rex64): Likewise.
17772 * config/i386/predicates.md (misaligned_operand): New.
17774 2008-03-31 Andrew Pinski <pinskia@gmail.com>
17777 * tree-ssa-phiopt.c (conditional_replacement): Return early for
17780 2008-03-31 Jan Beulich <jbeulich@novell.com>
17782 * config/ia64/constraints.md: Add 'j' constraint.
17783 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17784 (movdi_internal): Likewise.
17786 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
17789 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17791 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
17794 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17795 proper error message for the third argument on blendpd and
17798 * config/i386/sse.md (blendbits): New.
17799 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17801 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
17803 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17805 2008-03-30 Richard Guenther <rguenther@suse.de>
17807 PR middle-end/31023
17808 * fold-const.c (fold_sign_changed_comparison): Do leave
17809 conversions to base-types alone.
17811 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
17813 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17814 the link register if one altivec register is be saved.
17816 2008-03-30 Ben Elliston <bje@au.ibm.com>
17818 * final.c (final_scan_insn): Remove if (0) code.
17820 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
17822 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17824 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
17826 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17827 of V4SFmode to ix86_binary_operator_ok.
17829 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
17831 * config/i386/i386.c (override_options): Initialize
17832 ix86_veclib_handler to ix86_veclibabi_svml when
17833 -mveclibabi=svml is used.
17834 (ix86_veclibabi_svml): New function for SVML ABI style
17835 vectorization support.
17836 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17838 2008-03-28 Rafael Espíndola <espindola@google.com>
17840 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17841 (tree_binary_nonnegative_warnv_p): Make it public.
17842 (tree_single_nonnegative_warnv_p): Make it public.
17843 (tree_invalid_nonnegative_warnv_p): Make it public.
17844 (tree_unary_nonzero_warnv_p): Make it public.
17845 (tree_binary_nonzero_warnv_p): Make it public
17846 (tree_single_nonzero_warnv_p): Make it public.
17847 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17848 (extract_range_from_binary_expr): Split the expr argument.
17849 (extract_range_from_unary_expr): Split the expr argument.
17850 (extract_range_from_comparison): Split the expr argument.
17851 (extract_range_from_expr): Use the new aux functions.
17852 (vrp_evaluate_conditional_warnv): Use
17853 vrp_evaluate_conditional_warnv_with_ops.
17854 * tree.h (tree_unary_nonzero_warnv_p): Declare.
17855 (tree_binary_nonzero_warnv_p): Declare.
17856 (tree_single_nonzero_warnv_p): Declare.
17857 (tree_expr_nonzero_warnv_p): Declare.
17858 (tree_unary_nonnegative_warnv_p): Declare.
17859 (tree_binary_nonnegative_warnv_p): Declare.
17860 (tree_single_nonnegative_warnv_p): Declare.
17861 (tree_invalid_nonnegative_warnv_p): Declare.
17863 2008-03-28 Richard Guenther <rguenther@suse.de>
17865 PR tree-optimization/30317
17866 PR tree-optimization/30911
17867 PR tree-optimization/34793
17868 * tree-vrp.c (set_and_canonicalize_value_range): New function.
17869 (struct assert_locus_d): New member EXPR.
17870 (register_new_assert_for): Add EXPR parameter to support
17871 ASSERT_EXPR <name, expr OP limit>.
17872 (register_edge_assert_for_1): Adjust callers.
17873 (find_assert_locations): Likewise.
17874 (process_assert_insertions_for): Build condition from expression.
17875 (extract_range_from_assert): Handle ASSERT_EXPRs
17876 of the form ASSERT_EXPR <name, expr OP limit>.
17877 (register_edge_assert_for_2): New helper registering
17878 asserts for comparisons. Recognize range tests of the form
17879 (unsigned)i - CST1 OP CST2.
17880 (register_edge_assert_for_1): Use it.
17881 (register_edge_assert_for): Likewise.
17882 (needs_overflow_infinity): Integer sub-types
17883 do not need overflow infinities.
17884 (vrp_val_is_max): The extreme values of integer sub-types
17885 are those of the base type.
17886 (vrp_val_is_min): Likewise.
17887 * tree.def (ASSERT_EXPR): Document extra allowed conditional
17890 2008-03-28 Nick Clifton <nickc@redhat.com>
17893 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17894 Return GENERAL_REGS for stack adjustment reloads.
17896 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
17899 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17900 const_vector when all the vectors are constant.
17902 2008-03-27 Bob Wilson <bob.wilson@acm.org>
17904 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17906 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17907 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17909 (s<code>_sf): Use new scc_sf attribute for opcode names.
17911 2008-03-27 Tom Tromey <tromey@redhat.com>
17913 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17914 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17915 config/spu/t-spu-elf, config/i386/t-interix,
17916 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17917 config/i386/x-darwin, config/i386/x-mingw32,
17918 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17919 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17920 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17921 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17922 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17923 config/rs6000/x-darwin, config/rs6000/t-rs6000,
17924 config/score/t-score-elf, config/arm/t-strongarm-pe,
17925 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17926 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17927 Revert automatic dependency patch.
17929 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
17932 * config/i386/i386.c (ix86_function_arg_boundary): Align
17933 decimal floating point to its natural boundary.
17935 2008-03-27 Richard Guenther <rguenther@suse.de>
17937 PR middle-end/35716
17938 * fold-const.c (fold_comparison): Restrict distinct decl
17939 comparison folding to VAR_DECLs and PARM_DECLs. Do not
17940 solely rely on operand_equal_p.
17942 2008-03-27 Richard Guenther <rguenther@suse.de>
17945 * c-common.c (handle_weak_attribute): Reject combination of
17948 2008-03-27 Richard Guenther <rguenther@suse.de>
17950 PR tree-optimization/32810
17951 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17952 conversions from DECL_INITIAL.
17953 (fold_const_aggregate_ref): Likewise from constructor elements.
17955 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
17957 * tree-affine.h (aff_combination_expand): Declare.
17958 (get_inner_reference_aff): Likewise.
17959 * tree-affine.c (aff_combination_expand): Split out from
17960 tree_to_aff_combination_expand.
17961 (get_inner_reference_aff): New function.
17962 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17963 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17964 (struct lim_aux_data): sm_done field removed.
17965 (mem_ref_loc_p, mem_ref_locs_p): New types.
17966 (struct mem_ref): Added id, stored, accesses_in_loop,
17967 indep_loop, dep_loop, indep_ref, dep_ref fields.
17968 Removed is_stored, locs and next fields.
17969 (memory_accesses): New variable.
17970 (movement_possibility): Do not allow moving statements
17971 that store to memory.
17972 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17974 (determine_max_movement): For statements with memory references,
17975 find the outermost loop in that the reference is independent.
17976 (move_computations_stmt): Mark the virtual operands for renaming.
17977 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17978 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17979 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17980 add_vop_ref_mapping, create_vop_ref_mapping_loop,
17981 create_vop_ref_mapping, analyze_memory_references,
17982 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17983 get_all_locs_in_loop, ref_always_accessed_p,
17984 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17985 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17986 store_motion_loop, store_motion): New functions.
17987 (struct vop_to_refs_elt): New type.
17988 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17989 memref_hash, memref_eq, hoist_memory_references): Rewritten.
17990 (schedule_sm): Replaced by...
17991 (execute_sm): ... this.
17992 (determine_lsm_ref, hoist_memory_references,
17993 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17994 find_more_ref_vops, free_mem_ref, free_mem_refs,
17995 determine_lsm_loop, determine_lsm): Removed.
17996 (tree_ssa_lim_finalize): Free data structures used by store motion.
17997 (tree_ssa_lim): Call analyze_memory_references. Use
17998 store_motion instead of determine_lsm.
18000 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
18002 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
18003 rename tmake_file to m68hc11/t-m68hc11.
18004 (mcore): Set inhibit_libc to true.
18005 * config.host (alpha*-dec-*vms*): Set extra_programs.
18006 (interix3*): Don't use host_xmake_file.
18007 * configure.ac: Let config.gcc override inhibit_libc.
18008 * configure: Regenerate.
18010 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
18011 * config/t-openbsd-thread: Remove commented out lines.
18013 * config/x-interix: Remove.
18015 * config/m68hc11/t-m68hc11-gas: Rename to...
18016 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
18018 * config/mcore/t-mcore: Remove T_CFLAGS.
18019 * config/mcore/t-mcore-pe: Likewise.
18021 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
18023 * configure.ac: Replace custom __GNU_SOURCE test with
18024 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
18025 * aclocal.m4: Regenerate.
18026 * configure: Regenerate.
18027 * config.in: Regenerate.
18029 2008-03-27 Richard Guenther <rguenther@suse.de>
18031 * fold-const.c (target.h): Include.
18032 (fold_comparison): Fold comparison of addresses of decls
18033 that bind locally or of constants. Consolidate address folding code.
18034 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
18035 results from fold_binary_to_constant.
18036 (compare_values_warnv): Likewise.
18038 2008-03-27 Andrew Pinski <pinskia@gmail.com>
18040 PR middle-end/35429
18041 * fold-const.c (fold_truthop): Check for integeral types when folding
18042 a == 0 && b == 0 and a != 0 || b != 0 .
18044 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
18046 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
18048 2008-03-26 Andreas Schwab <schwab@suse.de>
18050 * doc/invoke.texi: Fix use of @item vs. @itemx.
18052 2008-03-26 Tom Tromey <tromey@redhat.com>
18054 * Makefile.in (build/gensupport.o, build/print-rtl.o,
18055 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
18056 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
18057 build/gencodes.o, build/genconditions.o, build/genconfig.o,
18058 build/genconstants.o, build/genemit.o, build/genextract.o,
18059 build/genflags.o, build/genmddeps.o, build/genopinit.o,
18060 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
18063 2008-03-26 Richard Guenther <rguenther@suse.de>
18066 2008-03-26 Richard Guenther <rguenther@suse.de>
18068 * fold-const.c (target.h): Include.
18069 (fold_comparison): Fold comparison of addresses of two decls
18070 that bind locally. Consolidate address folding code.
18072 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18074 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
18075 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
18076 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
18077 dconstsqrt2, dconstthird, dconste and/or dconst10.
18078 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
18079 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
18080 dconstsqrt2, dconste): Delete.
18081 (init_emit_once): Likewise. Simplify initializing dconstm1.
18083 * real.c (get_real_const): New.
18084 * real.h (dconst3, dconst10, dconstm2, dconstthird,
18085 dconstsqrt2, dconste): Delete.
18086 (real_value_const, get_real_const): New.
18088 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
18090 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
18092 * config/i386/i386.c (ix86_function_arg_boundary): Check
18093 BIGGEST_ALIGNMENT instead of 128.
18094 (setup_incoming_varargs_64): Likewise.
18096 2008-03-26 Tom Tromey <tromey@redhat.com>
18098 * Makefile.in (DEPFILES): Add missing '/'.
18100 2008-03-26 Richard Guenther <rguenther@suse.de>
18102 * fold-const.c (target.h): Include.
18103 (fold_comparison): Fold comparison of addresses of two decls
18104 that bind locally. Consolidate address folding code.
18106 2008-03-26 Nick Clifton <nickc@redhat.com>
18109 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
18110 not allow INT+INT as a legitimate addressing mode.
18112 2008-03-26 Richard Guenther <rguenther@suse.de>
18114 * tree-flow.h (widen_bitfield): Remove declaration.
18115 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
18116 (widen_bitfield): Remove function.
18117 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
18120 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
18123 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
18126 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
18128 PR rtl-optimization/35232
18129 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
18130 (forget_old_reloads_1, forget_marked_reloads): Don't clear
18131 reg_reloaded_call_part_clobbered here.
18132 (reload_regs_reach_end_p): New function.
18133 (reload_reg_rtx_for_input): New variable.
18134 (reload_reg_rtx_for_output): Likewise.
18135 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
18136 when reassigning a pseudo register. Load reloadreg from
18137 reload_reg_rtx_for_input, moving the mode and register
18139 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
18140 instead of the original when deciding whether an input reload
18141 would be a no-op or whether an output reload can be deleted.
18142 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
18143 when setting up new_spill_reg_store. Load it from
18144 reload_reg_rtx_for_output, moving the mode and register
18146 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
18147 instead of the original when deciding whether an output reload
18148 would be a no-op. Do the same when modifying insn notes.
18149 Use rtx_equal_p instead of == to compare the registers.
18150 (inherit_piecemeal_p): Take a mode and two register numbers
18152 (emit_reload_insns): Clear new_spill_reg_store for every hard
18153 register in the reload register. Remove spill registers
18154 from reg_reloaded_valid before considering whether to record
18155 inheritance information for them. Use reload_reg_rtx_for_output
18156 instead of reg_rtx when recording output reloads. Use
18157 reload_reg_rtx_for_input instead of reg_rtx when recording
18158 input reloads. Set or clear reg_reloaded_call_part_clobbered
18159 at the same time as setting reg_reloaded_valid.
18160 (delete_output_reload): Add a new_reload_reg parameter and use it
18161 instead of rld[j].reg_rtx.
18162 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
18165 2008-03-25 Tom Tromey <tromey@redhat.com>
18167 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
18168 (build/genattr.o): Likewise.
18169 (build/genattrtab.o): Likewise.
18170 (build/gencodes.o): Likewise.
18171 (build/genconfig.o): Likewise.
18172 (build/genconstants.o): Likewise.
18173 (build/genemit.o): Likewise.
18174 (build/genextract.o): Likewise.
18175 (build/genflags.o): Likewise.
18177 2008-03-25 Bob Wilson <bob.wilson@acm.org>
18179 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
18180 instead of size_int for integer types.
18181 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
18182 to match type of MINUS_EXPR.
18184 2008-03-25 Tom Tromey <tromey@redhat.com>
18186 * configure: Rebuilt.
18187 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
18190 2008-03-25 Tom Tromey <tromey@redhat.com>
18192 * config/x-solaris (host-solaris.o): Update.
18193 * config/x-linux (host-linux.o): Update.
18194 * config/x-hpux (host-hpux.o): Update.
18195 * config/x-darwin (host-darwin.o): Update.
18196 * config/v850/t-v850e (v850-c.o): Update.
18197 * config/v850/t-v850 (v850-c.o): Update.
18198 * config/t-vxworks (vxworks.o): Update.
18199 * config/t-sol2 (sol2-c.o, sol2.o): Update.
18200 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
18201 * config/spu/t-spu-elf (spu-c.o): Update.
18203 * config/sh/t-symbian (sh-c.o): Update.
18204 (symbian.o): Update.
18205 * config/sh/t-sh (sh-c.o): Update.
18206 * config/score/t-score-elf (score7.o, score3.o): Update.
18207 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
18208 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
18209 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
18210 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
18211 (rs6000.o): Remove.
18212 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18213 * config/m32c/t-m32c (m32c-pragma.o): Update.
18214 * config/ia64/t-ia64 (ia64-c.o): Update.
18215 * config/i386/x-mingw32 (host-mingw32.o): Update.
18216 * config/i386/x-i386 (driver-i386.o): Update.
18217 * config/i386/x-darwin (host-i386-darwin.o): Update.
18218 * config/i386/x-cygwin (host-cygwin.o): Update.
18219 * config/i386/t-nwld (nwld.o): Update.
18220 * config/i386/t-netware (netware.o): Update.
18221 * config/i386/t-interix (winnt.o): Update.
18222 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
18223 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
18224 msformat-c.o): Update.
18225 * config/bfin/t-bfin-linux (generated_files): Add
18226 linux-sysroot-suffix.h.
18227 * config/arm/t-wince-pe (pe.o): Update.
18228 * config/arm/t-strongarm-pe (pe.o): Update.
18229 * config/arm/t-pe (pe.o): Update.
18230 * config/arm/t-arm (arm-c.o): Update.
18231 * doc/install.texi (Prerequisites): Require make 3.80.
18232 * Makefile.in: Remove .o targets.
18233 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
18234 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
18235 (simple_generated_h, simple_generated_c): Move earlier.
18236 (generated_files): New variable.
18237 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
18238 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
18239 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
18240 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
18241 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
18242 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
18243 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
18244 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
18245 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
18246 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
18247 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
18248 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18250 (COMPILE.base, COMPILE): New variables.
18251 (%.o): New pattern rule.
18252 (ALL_HOST_OBJS): New variable.
18253 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
18254 (dummy-checksum.o, cc1-checksum.o): Remove.
18255 (DRIVER_SHLIB): New variable.
18256 (DRIVER_DEFINES): Use it.
18257 (gencondmd.c): Move out of build/.
18258 (s-conditions): Update.
18259 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
18260 (ALL_BUILD_OBJS): Likewise.
18261 (build/%.o): Use BUILDCOMPILE.
18262 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
18263 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
18264 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
18265 build/gencheck.o, build/gencodes.o, build/genconditions.o,
18266 build/genconfig.o, build/genconstants.o, build/genemit.o,
18267 build/genextract.o, build/genflags.o, build/genmddeps.o,
18268 build/genopinit.o, build/genoutput.o, build/genpeep.o,
18269 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
18270 build/gen-protos.o, build/scan.o, build/fix-header.o,
18271 build/scan-decls.o): Simplify.
18272 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
18273 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
18274 prefix.o, toplev.o): Reduce to variable setting.
18275 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
18276 ($(out_object_file), gcc-options.o): New targets.
18277 ($(ALL_HOST_OBJS)): New target. Include dependency files.
18278 * configure: Rebuilt.
18279 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
18280 * doc/sourcebuild.texi (Front End Directory): Document new variable.
18282 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
18284 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
18285 complain when we hit an error, return ERROR_MARK_NODE.
18287 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18289 * config/sh/constraints.md (Pso, Psz): New constraints.
18290 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
18291 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
18293 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18295 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
18296 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
18298 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18300 * config/sh/sh.md (prefetch): Add condition for SH2A target.
18301 (prefetch_sh2a): New.
18303 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
18304 Naveen.H.S <naveen.hs@kpitcummins.com>
18306 * config/sh/constraints.md (I28): New constraint.
18307 * config/sh/sh.c (broken_move): Add support for movi20s.
18308 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
18310 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
18311 Jayant Sonar <Jayant.sonar@kpitcummins.com>
18312 Naveen.H.S <naveen.hs@kpitcummins.com>
18314 * config/sh/sh.c (SH_ATTRIBUTES): Define.
18315 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18316 (print_operand): Handle resbank in %@ operand code.
18317 (sh_encode_section_info): New.
18318 (push_regs): Add conditions for resbank.
18319 (sh_expand_epilogue): Likewise.
18320 (sh_insert_attributes): Likewise.
18321 (sh_attribute_table): Likewise.
18322 (sh_handle_resbank_handler_attribute): New.
18323 (sh2a_handle_function_vector_handler_attribute): New.
18324 (sh2a_is_function_vector_call): New.
18325 (sh2a_get_function_vector_number): New.
18326 (sh2a_function_vector_p): New.
18327 (sh_cfun_resbank_handler_p): New.
18328 * config/sh/sh.md (calli): Emit jsr/n if possible.
18329 (calli_tbr_rel): New.
18330 (calli_pcrel): Emit jsr/n if possible.
18331 (return_i): Emit rts/n if possible.
18332 (call_valuei_tbr_rel): New.
18333 (call_valuei_pcrel): Add condition for SH2A target.
18334 (call_value): Likewise.
18335 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
18336 (sh2a_get_function_vector_number): Likewise.
18337 (sh2a_is_function_vector_call): Likewise.
18338 * doc/extend.texi: Document TBR relative addressing of SH2A.
18339 (resbank): Add description for SH2A.
18341 2008-03-24 Richard Guenther <rguenther@suse.de>
18344 * gimplify.c (gimplify_modify_expr): For frontend type-correct
18345 pointer assignments change conversions according to middle-end rules.
18346 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
18347 * configure.ac: Include type checking in yes.
18348 * configure: Regenerate.
18350 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18352 * diagnostic.c (diagnostic_count_diagnostic): Delete.
18353 (diagnostic_report_diagnostic): Update. Handle ICEs here.
18355 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
18357 * gthr-vxworks.h (UNUSED): Define.
18359 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
18361 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18363 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
18365 * doc/extend.texi (Function Attributes): Add missing comma in the
18366 example of the "alloc_size" attribute.
18368 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
18371 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
18373 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18376 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
18379 * stor-layout.c (update_alignment_for_field): Set minimum alignment
18380 of the underlying type of a MS bitfield layout to the natural
18381 alignment of the type.
18383 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
18385 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18386 to their natural alignment to avoid store forwarding stalls.
18388 2008-03-22 Richard Guenther <rguenther@suse.de>
18390 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18391 For PHI nodes verify the address is invariant.
18392 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18393 (get_symbol_constant_value): Use is_gimple_min_invariant.
18394 (maybe_fold_stmt_indirect): Likewise.
18396 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
18398 PR rtl-optimization/33927
18399 * Makefile.in (dse.o): Depend on $(TM_P_H).
18400 * expr.h (extract_low_bits): Declare.
18401 * expmed.c (extract_low_bits): New function.
18402 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18403 * dse.c: Include tm_p.h.
18404 (find_shift_sequence): Remove the read_reg argument and return the
18405 read value. Emit the instructions instead of returning them.
18406 Iterate on new_mode rather than calculating it each time.
18407 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
18408 source to NEW_MODE and extract_low_bits to convert the shifted
18409 value to READ_MODE.
18410 (replace_read): Allow the load and store to have different mode
18411 classes. Use extract_low_bits when SHIFT == 0. Create the shift
18412 or extraction instructions before trying the replacement. Update
18413 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18415 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
18417 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18418 to their natural alignment to avoid store forwarding stalls.
18420 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
18423 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18424 encouraging but not allowing gprs for input;
18425 change the input constraint to !f#r.
18426 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18428 change the output constraint to !f#r.
18430 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
18433 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18434 corresponding post-reload splitters.
18435 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18436 when x87 FP math is selected.
18437 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18438 New function prototype.
18439 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18440 unreachable function to ease macroization of insn patterns.
18442 2008-03-21 Martin Jambor <mjambor@suse.cz>
18444 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18445 reference dumps if ddr is NULL or dependence is unknown.
18447 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
18449 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18450 unsigned extension into account.
18451 (ATOMIC_COMPARE_AND_SWAP): Likewise.
18452 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18453 Do computations on a scratch register.
18455 2008-03-21 Richard Guenther <rguenther@suse.de>
18457 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18458 Use is_gimple_min_invariant instead of TREE_INVARIANT.
18459 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18460 * tree-ssa-dom.c (record_equality): Likewise.
18461 * tree-inline.c (copy_body_r): Likewise.
18462 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18465 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
18467 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18468 as 'delete_unused' argument.
18470 2008-03-20 Richard Guenther <rguenther@suse.de>
18472 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18473 special casing of constant qualifiers.
18474 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18475 care about them in general.
18476 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18477 regardless of their type.
18478 (fold_stmt_r): Forcefully fold *& if we end up with that.
18480 2008-03-20 Paul Brook <paul@codesourcery.com>
18482 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18483 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18485 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18487 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18488 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18490 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
18492 * common.opt (Wmudflap): New option.
18493 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18494 (mx_register_decls): Likewise.
18495 (mudflap_finish_file): Likewise.
18496 * doc/invoke.texi: Document -Wno-mudflap.
18498 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
18500 * c-format.c (replace_format_name_to_system_name): New.
18501 (cmp_attribs): New.
18502 (convert_format_name_to_system_name): New.
18503 (decode_format_attr): Add use of convert_format_name_to_system_name.
18504 (format_types_orig): Add gnu_ prefix to names.
18505 (check_format_info_main): Special treating of \0 escaped names for
18506 supporting multi-character format specifiers as I32, I64.
18507 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18508 (gnu_target_overrides_format_attributes): New.
18509 * c-format.h: Add structure target_ovr_attr to hold
18510 system specific formatter names.
18511 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18512 msformat-c.o file to c_target_objs and cxx_target_objs.
18513 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18514 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18515 (TARGET_N_FORMAT_TYPES): New.
18516 * config/i386/msformat-c.c: New.
18517 * config/i386/t-cygming: Add build rule for msformat-c.o.
18518 * doc/extend.texi: Add new format names gnu_* and ms_* and
18520 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18522 2008-03-20 Ira Rosen <irar@il.ibm.com>
18524 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18525 optimizations turned on under -O3.
18526 (ftree-vectorize): Add that the flag is turned on with -O3.
18528 2008-03-20 Ben Elliston <bje@au.ibm.com>
18530 * regmove.c (try_auto_increment): Fix spelling error in comment.
18531 * final.c (final_scan_insn): Likewise.
18533 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
18536 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18537 allocator preferences for "y" and "r" class registers.
18538 ("*mov<mode>_internal"): Ditto.
18539 ("*movv2sf_internal_rex64"): Ditto.
18540 ("*movv2sf_internal"): Ditto.
18542 2008-03-19 Michael Matz <matz@suse.de>
18544 PR middle-end/35616
18545 * calls.c (expand_call): Check overlap of arguments with call
18546 address for sibcalls.
18548 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
18551 * stor-layout.c (update_alignment_for_field): Set minimum alignment
18552 of the underlying type of a MS bitfield layout to the natural
18553 alignment of the type.
18555 2008-03-19 Jan Hubicka <jh@suse.cz>
18558 * toplev.c (decode_d_option): Handle all CPP flags.
18559 * tree-vrp.c: Update tree_pass descriptors.
18560 * regrename.c: Update tree_pass descriptors.
18561 * fwprop.c: Update tree_pass descriptors.
18562 * doc/invoke.texi: Remove documentation of dropped -d? flags.
18563 * tree-into-ssa.c: Update tree_pass descriptors.
18564 * tree-dump.c: Update tree_pass descriptors.
18565 * tree-complex.c: Update tree_pass descriptors.
18566 * tree-dump.h: Update tree_pass descriptors.
18567 * see.c: Update tree_pass descriptors.
18568 * cgraphbuild.c: Update tree_pass descriptors.
18569 * tracer.c: Update tree_pass descriptors.
18570 * tree-loop-distribution.c: Update tree_pass descriptors.
18571 * cgraph.c: Update tree_pass descriptors.
18572 * postreload-gcse.c: Update tree_pass descriptors.
18573 * postreload.c: Update tree_pass descriptors.
18574 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18575 * tree-tailcall.c: Update tree_pass descriptors.
18576 * tree-pass.h (tree_opt_pass): Rename to ...
18577 (opt_pass) ... this one; add "type" field and remove letter field.
18578 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18579 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18580 all_lowering_passes): Update declaration.
18581 * ipa-cp.c: Update tree_pass descriptors.
18582 * final.c: Update tree_pass descriptors.
18583 * omp-low.c: Update tree_pass descriptors.
18584 * tree-ssa-dse.c: Update tree_pass descriptors.
18585 * ipa-reference.c: Update tree_pass descriptors.
18586 * tree-ssa-uncprop.c: Update tree_pass descriptors.
18587 * auto-inc-dec.c: Update tree_pass descriptors.
18588 * reorg.c: Update tree_pass descriptors.
18589 * cgraphunit.c: Update tree_pass descriptors.
18590 * tree-ssa-copyrename.c: Update tree_pass descriptors.
18591 * tree-ssa-ccp.c: Update tree_pass descriptors.
18592 * df-core.c: Update tree_pass descriptors.
18593 * mode-switching.c: Update tree_pass descriptors.
18594 * tree-nomudflap.c: Update tree_pass descriptors.
18595 * modulo-sched.c: Update tree_pass descriptors.
18596 * ipa-pure-const.c: Update tree_pass descriptors.
18597 * cse.c: Update tree_pass descriptors.
18598 * web.c: Update tree_pass descriptors.
18599 * tree-stdarg.c: Update tree_pass descriptors.
18600 * tree-ssa-math-opts.c: Update tree_pass descriptors.
18601 * tree-ssa-dom.c: Update tree_pass descriptors.
18602 * tree-nrv.c: Update tree_pass descriptors.
18603 * tree-ssa-alias.c: Update tree_pass descriptors.
18604 * loop-init.c: Update tree_pass descriptors.
18605 * gimple-low.c: Update tree_pass descriptors.
18606 * ipa-inline.c: Update tree_pass descriptors.
18607 * tree-ssa-sink.c: Update tree_pass descriptors.
18608 * global.c: Update tree_pass descriptors.
18609 * ifcvt.c: Update tree_pass descriptors.
18610 * jump.c: Update tree_pass descriptors.
18611 * predict.c: Update tree_pass descriptors.
18612 * tree-ssa-loop.c: Update tree_pass descriptors.
18613 * recog.c: Update tree_pass descriptors.
18614 * dse.c: Update tree_pass descriptors.
18615 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18616 * tree-eh.c: Update tree_pass descriptors.
18617 * regmove.c: Update tree_pass descriptors.
18619 * function.c: Update tree_pass descriptors.
18620 * tree-vectorizer.c: Update tree_pass descriptors.
18621 * gcse.c: Update tree_pass descriptors.
18622 * ipa-type-escape.c: Update tree_pass descriptors.
18623 * tree-if-conv.c: Update tree_pass descriptors.
18624 * init-regs.c: Update tree_pass descriptors.
18625 * ipa.c: Update tree_pass descriptors.
18626 * tree-ssa-phiopt.c: Update tree_pass descriptors.
18627 * rtl-factoring.c: Update tree_pass descriptors.
18628 * lower-subreg.c: Update tree_pass descriptors.
18629 * bt-load.c: Update tree_pass descriptors.
18630 * tree-dfa.c: Update tree_pass descriptors.
18631 * except.c: Update tree_pass descriptors.
18632 * emit-rtl.c: Update tree_pass descriptors.
18633 * cfgexpand.c: Update tree_pass descriptors.
18634 * tree-cfgcleanup.c: Update tree_pass descriptors.
18635 * cfgcleanup.c: Update tree_pass descriptors.
18636 * tree-ssa-pre.c: Update tree_pass descriptors.
18637 * tree-sra.c: Update tree_pass descriptors.
18638 * tree-mudflap.c: Update tree_pass descriptors.
18639 * tree-ssa-copy.c: Update tree_pass descriptors.
18640 * cfglayout.c: Update tree_pass descriptors.
18641 * tree-ssa-forwprop.c: Update tree_pass descriptors.
18642 * tree-ssa-dce.c: Update tree_pass descriptors.
18643 * tree-ssa.c: Update tree_pass descriptors.
18644 * regclass.c: Update tree_pass descriptors.
18645 * integrate.c: Update tree_pass descriptors.
18646 * tree-optimize.c: Update tree_pass descriptors.
18647 * tree-ssa-phiprop.c: Update tree_pass descriptors.
18648 * tree-object-size.c: Update tree_pass descriptors.
18649 * combine.c: Update tree_pass descriptors.
18650 * tree-outof-ssa.c: Update tree_pass descriptors.
18651 * bb-reorder.c: Update tree_pass descriptors.
18652 * stack-ptr-mod.c: Update tree_pass descriptors.
18653 * var-tracking.c: Update tree_pass descriptors.
18654 * tree-profile.c: Update tree_pass descriptors.
18655 * tree-vect-generic.c: Update tree_pass descriptors.
18656 * reg-stack.c: Update tree_pass descriptors.
18657 * sched-rgn.c: Update tree_pass descriptors.
18658 * tree-ssa-structalias.c: Update tree_pass descriptors.
18659 * tree-cfg.c: Update tree_pass descriptors.
18660 * passes.c (current_pass): Update declaration.
18661 (finish_optimization_passes): Update.
18662 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18663 (register_one_dump_file, register_dump_files_1, next_pass_1):
18665 (init_optimization_passes): Update handling of new types.
18666 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18667 * ipa-struct-reorg.c: Update tree_pass descriptors.
18668 * tree-ssa-reassoc.c: Update tree_pass descriptors.
18669 * combine-stack-adj.c: Update tree_pass descriptors.
18670 * cfgrtl.c: Update tree_pass descriptors.
18671 * dce.c: Update tree_pass descriptors.
18672 * tree-ssanames.c: Update tree_pass descriptors.
18674 2008-03-19 Richard Guenther <rguenther@suse.de>
18676 PR middle-end/35609
18677 * tree-ssa.c (walk_data): New structure.
18678 (warn_uninitialized_var): If not always_executed warn with "maybe"
18680 (execute_early_warn_uninitialized): Compute post-dominators.
18681 Initialize always_executed before processing each basic block.
18683 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
18686 * config/i386/i386.c (x86_this_parameter): Calculate correct location
18687 of "this" pointer when "regparm = N" or "fastcall" is in effect.
18689 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18691 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18693 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
18695 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18697 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18698 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18699 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
18700 target after ignore has been set, and move there also the commputation
18701 of subtarget and original_target.
18702 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18703 (LANG_HOOKS_INITIALIZER): Remove it.
18704 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18706 2008-03-18 Richard Guenther <rguenther@suse.de>
18708 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18709 found an expression with constants, note that in the VN for the lhs.
18710 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18711 fold them to constants if possible. Run cleanup_cfg if done so.
18712 (execute_pre): Return todo.
18713 (do_pre): Likewise.
18714 (execute_fre): Likewise.
18715 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18717 (get_prop_source_stmt): Look through pointer conversions.
18719 2008-03-18 Jan Hubicka <jh@suse.cz>
18721 * tree-pretty-print.c: Include predict.h.
18722 (dump_generic_node): Dump predictor.
18723 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18724 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18725 * gimple-low.c (lower_stmt): Likewise.
18726 * expr.c (expand_expr_real): Likewise.
18727 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18729 (build_predict_expr, build_predict_expr): New.
18730 * predict.h (predictor_name, build_predict_expr): Update.
18731 * c-typeck.c (c_finish_bc_stmt): Add prediction.
18732 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18733 * predict.def (PRED_CONTINUE): Update hitrate.
18734 * tree.def (PREDICT_EXPR): Define.
18735 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18736 do not handle BIND_EXPR.
18737 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18738 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18739 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18742 2008-03-18 Michael Matz <matz@suse.de>
18744 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18746 2008-03-18 Richard Guenther <rguenther@suse.de>
18748 * tree-gimple.h (is_gimple_invariant_address): Declare.
18749 (is_gimple_constant): Likewise.
18750 * tree-gimple.c (is_gimple_constant): New function.
18751 (is_gimple_invariant_address): Likewise.
18752 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18753 and is_gimple_invariant_address.
18754 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18756 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18757 an addressable base.
18759 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18761 PR middle-end/35611
18762 * gimplify.c (gimplify_expr): Gimplify second operand of
18765 2008-03-17 Richard Guenther <rguenther@suse.de>
18767 PR tree-optimization/19637
18768 * fold-const.c (fold_unary): Remove restrictions of removing
18769 intermediate pointer-conversions (P2)(P1)P0.
18770 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18771 conversion to void pointer.
18772 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18774 2008-03-16 James E. Wilson <wilson@tuliptree.org>
18777 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18778 emulated thread local variables.
18780 2008-03-16 Richard Guenther <rguenther@suse.de>
18782 PR middle-end/35607
18783 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18784 expand TREE_INVARIANT operations that are not gimple invariant.
18786 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
18788 * doc/extend.texi (Alignment): Say that the ABI controls
18789 the __alignof__ for non-strict-alignment targets rather
18790 than being a recommendation.
18792 2008-03-15 Paul Brook <paul@codesourcery.com>
18794 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18796 (arm_output_fn_unwind): Mark functions that can not be unwound.
18798 2008-03-15 Paul Brook <paul@codesourcery.com>
18800 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18801 extension instructions.
18803 2008-03-15 Richard Guenther <rguenther@suse.de>
18805 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18806 and fold constant aggregate refs.
18807 (fold_const_aggregate_ref): Handle string constants
18808 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
18809 (evaluate_stmt): Simplify now that ccp_fold folds constant
18812 2008-03-15 Paul Brook <paul@codesourcery.com>
18814 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18815 (extzv): Use gen_extzv_t2.
18816 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18818 2008-03-15 Richard Guenther <rguenther@suse.de>
18820 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18821 (fold_const_aggregate_ref): Likewise.
18822 (get_value): Return NULL if we don't have any values.
18823 (ccp_finalize): Set const_val to NULL after freeing it.
18824 * tree-flow.h (get_symbol_constant_value): Declare.
18825 (fold_const_aggregate_ref): Likewise.
18826 * tree-ssa-sccvn.c (try_to_simplify): Use them.
18828 2008-03-15 Richard Guenther <rguenther@suse.de>
18830 PR middle-end/35593
18831 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18832 to not produce negative array indices if not allowed. Add
18833 parameter to indicate that.
18834 (maybe_fold_offset_to_component_ref): Allow negative array
18835 indices only for the first member of a structure.
18836 (maybe_fold_offset_to_reference): Allow negative array indices.
18837 (maybe_fold_stmt_addition): Likewise.
18839 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
18840 Anatoly Sokolov <aesok@post.ru>
18842 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18843 (avr_arch): Add ARCH_AVR6.
18844 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18845 (initial_elimination_offset): Initialize and use 'avr_pc_size'
18846 instead of fixed value 2.
18847 (print_operand_address): Use gs() asm specifier instead of pm().
18848 (avr_assemble_integer): (Ditto.).
18849 (avr_output_addr_vec_elt): (Ditto.).
18850 (print_operand): Handle "!" code.
18851 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18852 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18853 (AVR_HAVE_EIJMP_EICALL): Define.
18854 (AVR_3_BYTE_PC): Redefine.
18855 (AVR_2_BYTE_PC): (Ditto.).
18856 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18857 (LINK_SPEC): Add atmega2560 and atmega2561.
18858 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18860 * config/avr/avr.md (call_insn): Use eicall instead of icall
18861 for 3 byte PC devices.
18862 (call_value_insn): (Ditto.).
18863 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18864 (indirect_jump): Use only for for 2 byte PC devices.
18865 (*tablejump): (Ditto.).
18866 (*indirect_jump_avr6): Add insn.
18867 (*tablejump_rjmp): Don't use for 3 byte PC devices.
18868 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18869 instead of ijmp for 3 byte PC devices.
18870 (__tablejump2__): (Ditto.).
18871 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18872 (MULITLIB_DIRNAMES): (Ditto.).
18873 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18875 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
18877 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18878 "sse2_umulsidi3". Use V1DI mode for operand 0.
18879 ("mmx_psadbw"): Use V1DI mode for operand 0.
18880 * config/i386/i386-modes.def (V1SI): New vector mode.
18881 * config/i386/i386.c (struct builtin_description)
18882 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18883 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18884 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18885 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18886 v1di_ftype_v8qi_v8qi type.
18887 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18889 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18890 __builtin_ia32_pmuludq]: Fix the mode of return value.
18892 2008-03-15 Richard Guenther <rguenther@suse.de>
18894 PR middle-end/35595
18895 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18898 2008-03-14 Bob Wilson <bob.wilson@acm.org>
18900 * doc/invoke.texi (Option Summary, Xtensa Options): Document
18901 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18902 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18903 unless TARGET_SERIALIZE_VOLATILE is enabled.
18904 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18905 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18906 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18908 2008-03-14 Richard Guenther <rguenther@suse.de>
18910 PR tree-optimization/34172
18911 * tree-flow.h (refs_may_alias_p): Declare.
18912 (get_single_def_stmt): Likewise.
18913 (get_single_def_stmt_from_phi): Likewise.
18914 (get_single_def_stmt_with_phi): Likewise.
18915 * tree-dfa.c (refs_may_alias_p): New function.
18916 (get_single_def_stmt): Likewise.
18917 (get_single_def_stmt_from_phi): Likewise.
18918 (get_single_def_stmt_with_phi): Likewise.
18919 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18920 (vn_reference_lookup_1): New helper function.
18921 (vn_reference_lookup): Walk the virtual use-def chain to
18922 continue searching for a match if the def does not alias the
18923 reference we are looking for.
18925 2008-03-14 David Edelsohn <edelsohn@gnu.org>
18927 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
18928 archive and Perzl. Update The Written Word listing.
18930 2008-03-14 Richard Guenther <rguenther@suse.de>
18932 PR tree-optimization/34043
18933 PR tree-optimization/33989
18934 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18936 (bitmap_find_leader): Use extra argument to verify dominance
18937 relationship inside a basic-block.
18938 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18939 (find_leader_in_sets): Adjust.
18940 (create_component_ref_by_pieces): Take extra argument for
18941 dominance check, handle lookup failures.
18942 (find_or_generate_expression): Likewise.
18943 (create_expression_by_pieces): Likewise.
18944 (insert_into_preds_of_block): Adjust.
18945 (create_value_expr_from): If asked for, verify all operands
18946 are in the blocks AVAIL_OUT set.
18947 (make_values_for_stmt): Check for SSA_NAMEs that are life
18948 over an abnormal edge.
18949 (compute_avail): Remove such check.
18950 (do_SCCVN_insertion): New function.
18951 (eliminate): If we do not find a leader suitable for replacement
18952 insert a replacement expression from SCCVN if available.
18953 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18954 (struct vn_ssa_aux): Add needs_insertion flag.
18955 * tree-ssa-sccvn.c (may_insert): New global flag.
18956 (copy_reference_ops_from_ref): Value-number union member access
18957 based on its size, not type and member if insertion is allowed.
18958 (visit_reference_op_load): For a weak match from union type
18959 punning lookup a view-converted value and insert a SSA_NAME
18960 for that value if that is not found.
18961 (visit_use): Make dumps shorter. Do not disallow value numbering
18962 SSA_NAMEs that are life over an abnormal edge to constants.
18963 (free_scc_vn): Release inserted SSA_NAMEs.
18964 (run_scc_vn): New flag to specify whether insertion is allowed.
18965 Process SSA_NAMEs in forward order.
18966 * tree-ssa-loop-im.c (for_each_index): Handle invariant
18967 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18968 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18969 pointer type to/from integral types that do not change the
18970 precision to regular conversions.
18972 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
18974 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18975 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18976 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18977 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18978 input arguments and the mode of return value. Built-in functions
18979 that operate on whole 64-bit MMX register now use V1DI mode.
18981 2008-03-13 Alon Dayan <alond@il.ibm.com>
18982 Olga Golovanevsky <olga@il.ibm.com>
18984 PR tree-optimization/35041
18985 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18986 to locate the right position in a statement.
18988 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
18992 * config/i386/xmmintrin.h: Change all static inline functions to
18993 extern inline and add __gnu_inline__ attribute.
18994 * config/i386/bmintrin.h: Ditto.
18995 * config/i386/smmintrin.h: Ditto.
18996 * config/i386/tmmintrin.h: Ditto.
18997 * config/i386/mmintrin-common.h: Ditto.
18998 * config/i386/ammintrin.h: Ditto.
18999 * config/i386/emmintrin.h: Ditto.
19000 * config/i386/pmmintrin.h: Ditto.
19001 * config/i386/mmintrin.h: Ditto.
19002 * config/i386/mm3dnow.h: Ditto.
19004 2008-03-13 Jakub Jelinek <jakub@redhat.com>
19006 PR middle-end/35185
19007 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
19008 (lower_omp_2): New function.
19009 (lower_omp_1, lower_omp): Rewritten.
19011 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
19014 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
19015 with the phrase "Microsoft Windows compilers".
19016 (Push/Pop Macro Pragmas): New subsection. Document
19017 #pragma push_macro and pragma pop_macro.
19019 2008-03-12 Paul Brook <paul@codesourcery.com>
19021 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
19023 2008-03-12 Paul Brook <paul@codesourcery.com>
19025 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
19026 (thumb2_alusi3_short): Exclude PLUS and MINUS.
19027 (thumb2_addsi_shortim): Rename ...
19028 (thumb2_addsi_short): ... to this. Allow register operands.
19029 (thumb2_subsi_short): New pattern.
19030 (thumb2_one_cmplsi2_short,
19031 thumb2_negsi2_short): New patterns and peepholes.
19033 2008-03-12 Paul Brook <paul@codesourcery.com>
19035 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
19037 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
19039 * config/i386/i386.md (int_cond): New code iterator.
19041 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
19042 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
19043 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
19044 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
19045 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
19046 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
19047 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
19048 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
19050 2008-03-12 Paul Brook <paul@codesourcery.com>
19052 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
19053 instead of {arm,thumb}_compute_save_reg_mask.
19054 (output_return_instruction): Ditto.
19055 (thumb_unexpanded_epilogue): Ditto.
19056 (thumb1_expand_prologue): Ditto.
19057 (thumb1_output_function_prologue): Ditto.
19058 (arm_set_return_address): Ditto.
19059 (thumb_set_return_address): Ditto.
19060 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
19061 regs to achieve stack alignment.
19062 (thumb1_compute_save_reg_mask): Fix compiler warning.
19063 (arm_output_epilogue): Use offsets->saved_regs_mask.
19064 Adjust stack pointer by poping call clobered registers.
19065 (arm_expand_prologue): Use offsets->saved_regs_mask.
19066 Adjust stack pointer by pushing extra registers.
19067 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
19069 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
19072 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
19073 conversion to the operands of a multiplication.
19075 2008-03-12 Richard Guenther <rguenther@suse.de>
19077 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
19078 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
19079 * timevar.def (TV_TREE_PHIPROP): Add.
19080 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
19081 pass description. Use TV_TREE_PHIPROP.
19082 * tree-ssa-forwprop.c: Remove phiprop code.
19084 2008-03-12 Jakub Jelinek <jakub@redhat.com>
19086 PR middle-end/35549
19087 * omp-low.c (maybe_lookup_decl): Constify first argument.
19088 (use_pointer_for_field): Change last argument from bool to
19089 omp_context *. Disallow shared copy-in/out in nested
19090 parallel if decl is shared in outer parallel too.
19091 (build_outer_var_ref, scan_sharing_clauses,
19092 lower_rec_input_clauses, lower_copyprivate_clauses,
19093 lower_send_clauses, lower_send_shared_vars): Adjust callers.
19095 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
19096 Ira Rosen <irar@il.ibm.com>
19098 * tree-vectorizer.c (free_stmt_vec_info): New function.
19099 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
19100 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
19101 * tree-vectorizer.h (free_stmt_vec_info): Declare.
19102 * tree-vect-transform.c (vectorizable_conversion): Free
19103 vec_oprnds0 if it was allocated.
19104 (vect_permute_store_chain): Remove unused VECs.
19105 (vectorizable_store): Free VECs that are allocated in the..
19107 (vect_transform_strided_load, vectorizable_load): Likewise.
19108 (vect_remove_stores): Simplify the code.
19109 (vect_transform_loop): Move code to vect_remove_stores().
19110 Call vect_remove_stores() and free_stmt_vec_info().
19112 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19114 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
19115 TARGET_HPUX. Revise comment.
19116 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
19117 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
19118 Use sr4 variant of `be' instruction when not generating PIC code.
19119 (attr_length_call): Adjust for above change.
19121 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19123 * ipa-reference.c (static_execute): Remove module_statics_const and
19124 associated setting code.
19126 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
19129 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
19130 predicate for operand 1.
19131 (paritysi2_cmp): Use register_operand predicate for operand 2.
19132 Use earlyclobber modifier for operand 1. Remove support for
19134 (paritydi2_cmp): Use register_operand predicate for operand 3.
19135 Use earlyclobber modifier for operand 1. Remove support for
19138 2008-03-11 Paul Brook <paul@codesourcery.com>
19139 Vladimir Prus <vladimir@codesourcery.com>
19141 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
19142 (arm_compute_save_reg0_reg12_mask): Always
19143 check if register 11 must be saved. Always safe hard frame pointer
19144 when frame_pointer_needeed.
19145 (arm_compute_save_reg_mask): Save IP and PC
19146 only with apcs frames.
19147 (arm_output_epilogue): Adjust Thumb2 codepath to
19148 be also invoked and work for ARM non-apcs frames.
19149 (arm_expand_prologue): Don't bother saving IP
19150 for non-apcs frame, since it's not clobbered by
19151 prologue code. Implement non-apcs frame
19154 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
19156 PR rtl-optimization/35281
19157 * expr.c (convert_move): Use a new pseudo for the intermediate
19158 from_mode->word_mode result.
19160 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
19162 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
19163 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
19164 * toplev.c (compile_file): Don't call it.
19166 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
19168 PR middle-end/35526
19169 * expr.c (store_expr): Call emit_block_move if the mode
19170 of "temp" RTX is BLKmode.
19172 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
19173 Richard Guenther <rguenther@suse.de>
19175 PR tree-optimization/31358
19176 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
19177 the step with a NULL_TREE.
19178 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
19179 to sizetype if type is a pointer type.
19180 (add_candidate_1): Don't convert the base and step to
19181 the generic type if the orginal type is a pointer type.
19182 (add_iv_value_candidates): Use sizetype for the step
19183 if type is a pointer type.
19184 (cand_value_at): Likewise.
19185 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
19187 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
19188 Don't convert the tem affine to the type.
19189 (add_elt_to_tree): Use sizetype for the step if a pointer.
19190 Use POINTER_PLUS_EXPR for pointers.
19191 (aff_combination_to_tree): Use sizetype for the step if a
19194 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
19196 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
19197 Remove commutativity hint.
19199 2008-03-10 Jakub Jelinek <jakub@redhat.com>
19203 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
19204 errorneous type. Check that v is a VAR_DECL.
19206 PR middle-end/35099
19207 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
19209 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
19211 PR tree-optimization/35494
19212 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
19213 may be overriden at link and run time.
19215 2008-03-10 Richard Guenther <rguenther@suse.de>
19217 PR tree-optimization/34677
19218 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
19219 (poolify_tree): Likewise.
19220 (modify_expr_template): Likewise.
19221 (poolify_modify_stmt): Likewise.
19222 (insert_fake_stores): Handle all component-ref style stores
19223 in addition to INDIRECT_REF. Also handle complex types.
19224 Do not poolify the inserted load.
19225 (realify_fake_stores): Do not rebuild the tree but only
19226 make it a SSA_NAME copy.
19227 (init_pre): Remove initialzation of modify_expr_template.
19228 Do not allocate modify_expr_node_pool.
19229 (fini_pre): Do not free modify_expr_node_pool.
19231 2008-03-10 Paul Brook <paul@codesourcery.com>
19233 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
19234 to avoid conflicts.
19236 2008-03-10 Paul Brook <paul@codesourcery.com>
19237 Mark Shinwell <shinwell@codesourcery.com>
19239 * config/arm/cortex-r4.md: New.
19240 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
19242 * config/arm/arm.md: Include cortex-r4.md.
19243 (insn): Add smmls, sdiv and udiv values.
19244 (generic_sched): Don't use generic scheduling for Cortex-R4.
19245 (arm_issue_rate): New function.
19246 (TARGET_SCHED_ISSUE_RATE): Define.
19248 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
19250 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
19252 2008-03-10 Richard Guenther <rguenther@suse.de>
19254 * tree-ssa-pre.c (get_sccvn_value): Simplify.
19255 (compute_avail): Do not add stmt uses to AVAIL_OUT.
19257 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
19259 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19260 Set default to true.
19262 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19264 * c.opt (Wsynth): Deprecate.
19265 * doc/invoke.texi (Option Summary, Warning Options): Document
19266 -Wno-format-contains-nul.
19268 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
19271 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
19272 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
19274 2008-03-09 Ira Rosen <irar@il.ibm.com>
19276 * config/rs6000/rs6000.c (builtin_description): Rename vector
19277 left shift operations.
19278 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
19279 (altivec_vsl<VI_char>): Rename to ...
19280 (ashl<mode>3): ... new name.
19281 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
19283 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
19285 2008-03-08 Richard Guenther <rguenther@suse.de>
19287 * coverage.h (tree_coverage_counter_addr): Declare.
19288 * coverage.c (tree_coverage_counter_addr): New function.
19289 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
19290 before using again.
19291 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
19292 (tree_gen_one_value_profiler): Likewise.
19293 (tree_gen_ic_profiler): Likewise.
19294 (tree_gen_average_profiler): Likewise.
19295 (tree_gen_ior_profiler): Likewise.
19297 2008-03-08 Richard Guenther <rguenther@suse.de>
19299 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
19300 (vn_binary_op_insert): Likewise.
19301 (vn_unary_op_lookup): Likewise.
19302 (vn_unary_op_insert): Likewise.
19303 (vn_nary_op_lookup): Declare.
19304 (vn_nary_op_insert): Likewise.
19305 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
19306 and binary hashes, use a single obstack for unary_op_pool
19307 and binary_op_pool.
19308 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
19309 a single struct vn_nary_op_s. Store tree code length and
19310 a variable number of operands.
19311 (struct vn_reference_op_struct): Remove unused op2.
19312 (vn_reference_op_eq): Do not compare op2.
19313 (vn_reference_op_compute_hash): Do not compute hash of op2.
19314 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
19315 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
19316 with vn_nary_op_compute_hash.
19317 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
19318 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
19320 (vn_unary_op_insert, vn_binary_op_insert): Replace with
19322 (visit_unary_op): Call nary functions.
19323 (visit_binary_op): Likewise.
19324 (process_scc): Adjust for struct vn_tables_s changes.
19325 (allocate_vn_table): Likewise.
19326 (free_vn_table): Likewise.
19327 * tree-vn.c (vn_add): Call nary functions.
19328 (vn_lookup): Likewise.
19330 2008-03-08 Jakub Jelinek <jakub@redhat.com>
19333 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
19334 wdst back after sync_compare_and_swapqhi_internal.
19336 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
19339 * config/i386/i386-modes.def (V1DI): New vector mode.
19340 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
19341 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
19342 (MMXMODE248): Ditto.
19343 (MMXMODE): Add V1DI mode.
19344 (mmxvecsize): Change DI mode to V1DI mode.
19345 ("mov<mode>): Use MMXMODEI8 mode iterator.
19346 ("*mov<mode>_internal_rex64"): Ditto.
19347 ("*mov<mode>_internal"): Ditto.
19348 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
19349 ("mmx_sub<mode>3"): Ditto.
19350 ("mmx_adddi3"): Remove insn pattern.
19351 ("mmx_subdi3"): Ditto.
19352 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
19353 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
19354 ("mmx_ashl<mode>3"): Ditto.
19355 ("mmx_lshrdi3"): Remove insn pattern.
19356 ("mmx_ashldi3"): Ditto.
19357 * config/i386/i386.c (classify_argument): Handle V1DImode.
19358 (function_arg_advance_32): Ditto.
19359 (function_arg_32): Ditto.
19360 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19361 mmx_addv1di3 insn pattern.
19362 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19363 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19364 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19365 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19366 Remove definitions of built-in functions.
19367 (V1DI_type_node): New node.
19368 (v1di_ftype_v1di_int): Ditto.
19369 (v1di_ftype_v1di_v1di): Ditto.
19370 (v2si_ftype_v2si_si): Ditto.
19371 (v4hi_ftype_v4hi_di): Remove node.
19372 (v2si_ftype_v2si_di): Ditto.
19373 (ix86_init_mmx_sse_builtins): Handle V1DImode.
19374 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19375 Redefine builtins using def_builtin_const with *_ftype_*_int node.
19376 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19377 Add new builtins using def_builtin_const.
19378 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19379 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19380 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19381 * config/i386/mmintrin.h (__v1di): New typedef.
19382 (_mm_add_si64): Cast arguments to __v1di type.
19383 (_mm_sub_si64): Ditto.
19384 (_mm_sll_pi16): Cast __count to __v4hi type.
19385 (_mm_sll_pi32): Cast __count to __v2si type.
19386 (_mm_sll_si64): Cast arguments to __v1di type.
19387 (_mm_srl_pi16): Cast __count to __v4hi type.
19388 (_mm_srl_pi32): Cast __count to __v2si type.
19389 (_mm_srl_si64): Cast arguments to __v1di type.
19390 (_mm_sra_pi16): Cast __count to __v4hi type.
19391 (_mm_sra_pi32): Cast __count to __v2si type.
19392 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19393 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19394 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19395 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19396 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19397 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19398 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19399 (_mm_srai_pi32): Use __builtin_ia32_psradi.
19400 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19401 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19402 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19403 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19405 2008-03-07 Joseph Myers <joseph@codesourcery.com>
19407 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19409 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
19412 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19413 reg+const addressing for Altivec modes. Don't generate reg+reg
19414 addressing for TFmode or TDmode quantities.
19416 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
19418 * c-common.c (vector_types_convertible_p): Call langhook
19419 instead of comptypes.
19421 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
19424 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19425 integral and scalar float variables which have a
19428 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
19430 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19431 dwarf_register_span hook when emitting unwind information for
19432 register-to-memory saves.
19433 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19434 (rs6000_frame_related): Remove call to spe_synthesize_frame.
19436 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19438 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19439 for the same VAR_DECL.
19441 2008-03-06 Tom Tromey <tromey@redhat.com>
19443 * treelang: Delete.
19444 * doc/standards.texi (Standards): Don't mention treelang.
19445 * doc/invoke.texi (Overall Options): Don't mention treelang.
19446 * doc/install.texi (Prerequisites): Don't mention bison or
19448 (Configuration): Don't mention treelang.
19449 (Building): Likewise.
19450 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19452 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
19454 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19455 word-extractions out of a multi-word object.
19457 2008-03-06 Richard Guenther <rguenther@suse.de>
19459 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19460 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19461 result type and precision.
19462 * expr.c (get_inner_reference): Set unsignedp based on the result
19463 type of BIT_FIELD_REF.
19464 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19465 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19466 (try_instantiate_multiple_fields): Likewise. Use the correct type
19468 (sra_build_assignment): Likewise.
19469 (sra_build_elt_assignment): Likewise.
19470 (sra_explode_bitfield_assignment): Likewise.
19471 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19472 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19473 set BIT_FIELD_REF_UNSIGNED.
19474 (vectorizable_load): Likewise.
19476 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
19478 * cse.c (cse_extended_basic_block): Invalidate artificial defs
19481 2008-03-06 Richard Guenther <rguenther@suse.de>
19483 * alias.c (struct alias_set_entry): Move has_zero_child field
19484 to pack with alias_set.
19486 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
19488 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19491 2008-03-05 Ian Lance Taylor <iant@google.com>
19493 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19495 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
19497 * fwprop.c (update_df): Support width and offset parameters of
19499 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19500 global_conflicts): Change DF_REF_EXTRACT to either
19501 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19502 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19503 * df-scan.c (df_ref_record, df_defs_record,
19504 df_ref_create_structure, df_def_record_1, df_uses_record,
19505 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19506 df_bb_refs_collect, df_entry_block_defs_collect,
19507 df_exit_block_uses_collect): Support new width and offset fields.
19508 (ref_extract_pool): New storage pool.
19509 (df_free_ref): New function.
19510 (df_reg_chain_unlink, df_free_collection_rec,
19511 df_sort_and_compress_refs): Call df_free_ref.
19512 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19514 (df_ref_create_structure): Allocate df_ref_extract if offset and
19515 width fields are used.
19516 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19517 (df_uses_record): Get offset and width from ZERO_EXTRACT
19519 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19520 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19521 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19522 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19523 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19524 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19525 (df_ref_extract): New structure.
19526 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19527 (df_ref_create): Add width and offset parameters.
19529 2008-03-05 Richard Guenther <rguenther@suse.de>
19531 * tree-ssa-structalias.c (get_constraint_for_component_ref):
19532 Use ranges_overlap_p.
19533 (offset_overlaps_with_access): Rename
19534 to ranges_overlap_p and move ...
19535 * tree-flow-inline.h (ranges_overlap_p): ... here.
19537 * tree.h (get_inner_reference, handled_component_p): Update
19540 * tree.h (record_component_aliases, get_alias_set,
19541 alias_sets_conflict_p, alias_sets_must_conflict_p,
19542 objects_must_conflict_p): Move declarations ...
19543 * alias.h (record_component_aliases, get_alias_set,
19544 alias_sets_conflict_p, alias_sets_must_conflict_p,
19545 objects_must_conflict_p): ... here.
19546 Include coretypes.h.
19547 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19549 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
19551 * cfg.c: Include tree-flow.h.
19552 (remove_edge_raw): Call redirect_edge_var_map_clear.
19553 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19554 * tree-flow-inline.h (redirect_edge_var_map_def): New.
19555 (redirect_edge_var_map_result): New.
19556 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19557 PENDING_STMT use with redirect_edge_var_map_*.
19558 * tree-ssa.c (edge_var_maps): New definition.
19559 (redirect_edge_var_map_add): New.
19560 (redirect_edge_var_map_clear): New.
19561 (redirect_edge_var_map_dup): New.
19562 (redirect_edge_var_map_vector): New.
19563 (redirect_edge_var_map_destroy): New.
19564 (ssa_redirect_edge): Replace PENDING_STMT use with
19565 redirect_edge_var_map_*.
19566 (flush_pending_stmts): Same.
19567 (delete_tree_ssa): Destroy edge var map.
19568 * tree-flow.h (struct _edge_var_map): New.
19569 Define edge_var_map vector type.
19570 Declare redirect_edge_var_map_* prototypes.
19571 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19572 * tree-cfg.c (reinstall_phi_args): Replace
19573 PENDING_STMT use with redirect_edge_var_map_*.
19575 2008-03-05 Richard Guenther <rguenther@suse.de>
19577 PR tree-optimization/35472
19578 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19579 whose single use_stmt has a overlapping set of loaded and
19580 stored symbols as that use_stmt might be a noop assignment then.
19582 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
19584 * gthr-rtems.h: Implement __gthread_mutex_destroy.
19586 2008-03-05 Richard Guenther <rguenther@suse.de>
19589 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19590 should be constants.
19591 * tree-cfg.c (verify_expr): Verify it.
19592 * fold-const.c (fold_truthop): Remove code generating
19593 BIT_FIELD_REFs of structure bases.
19594 (fold_binary): Likewise.
19595 (fold_ternary): Position and size of BIT_FIELD_REFs are
19596 always host integers.
19597 (make_bit_field_ref): Remove.
19598 (optimize_bit_field_compare): Remove.
19599 (all_ones_mask_p): Remove.
19601 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
19604 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19605 (split_block_and_df_analyze): New. Split basic block and rebuild
19607 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19609 (split_pattern_seq): Likewise.
19610 (erase_matching_seqs): Likewise.
19611 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19613 2008-03-04 Geoff Keating <geoffk@apple.com>
19615 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19616 declaration and code.
19617 (tree_invalid_nonnegative_warnv_p): Likewise.
19619 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
19621 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19622 examples. Truncate option-names then causing overfull hbox.
19624 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19627 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19629 * configure: Rebuilt.
19631 2008-03-04 Rafael Espíndola <espindola@google.com>
19633 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19634 (tree_unary_nonnegative_warnv_p): New.
19635 (tree_binary_nonnegative_warnv_p): New.
19636 (tree_single_nonnegative_warnv_p): New.
19637 (tree_invalid_nonnegative_warnv_p): New.
19638 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19640 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19643 * opts.c (handle_option): Postpone 'unknown option' errors only for
19646 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
19649 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19652 2008-03-04 Rafael Espíndola <espindola@google.com>
19654 * fold-const.c (tree_unary_nonzero_warnv_p): New.
19655 (tree_binary_nonzero_warnv_p): New.
19656 (tree_single_nonzero_warnv_p): New.
19657 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19659 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
19661 PR middle-end/35456
19662 * fold-const.c (fold_cond_expr_with_comparison): Prevent
19663 transformations for modes that have signed zeros.
19664 * ifcvt.c (noce_try_abs): Ditto.
19666 2008-03-04 Joseph Myers <joseph@codesourcery.com>
19668 * config/i386/i386.c (override_options): Force
19669 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19671 2008-03-04 Jan Hubicka <jh@suse.cz>
19674 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19677 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19679 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
19680 label to probe the stack.
19682 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19684 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19685 (__gthr_win32_mutex_destroy): Declare.
19686 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19687 __gthr_win32_mutex_destroy.
19688 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
19690 2008-03-03 Jan Hubicka <jh@suse.cz>
19693 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19694 aggressive on inlining cold calls.
19696 2008-03-03 Richard Guenther <rguenther@suse.de>
19698 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19699 struct copies into the expression table.
19700 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19701 (try_to_simplify): Likewise.
19702 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19703 integral and pointer arguments which do not change the
19704 precision to NOP_EXPRs.
19705 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19706 VIEW_CONVERT_EXPR case.
19708 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
19710 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19711 defined in a loop at depth 0 is invariant.
19712 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19713 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19714 be called at loop depth 0.
19716 2008-03-02 Jakub Jelinek <jakub@redhat.com>
19719 * gcc.c (process_command): Update copyright notice dates.
19720 * gcov.c (print_version): Likewise.
19721 * gcov-dump.c (print_version): Likewise.
19722 * mips-tfile.c (main): Likewise.
19723 * mips-tdump.c (main): Likewise.
19725 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19728 * c-common.c (flag_permissive): Delete.
19729 (constant_expression_warnings): Check flags first.
19730 (constant_expression_error): New.
19731 * c-common.h (flag_permissive): Delete.
19732 (constant_expression_error): Declare.
19733 * flags.h (flag_permissive): Declare. Update description.
19734 * diagnostic.c (pedwarn): Update.
19736 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19737 (permissive_error_kind): New.
19738 * toplev.c (flag_permissive): Define. Update description.
19739 * toplev.h (permissive_error_kind): Declare.
19740 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19741 (pedwarn_c90): Use pedantic_warning_kind.
19742 * c-opts.c (c_common_post_options): flag_permissive does not affect
19743 flag_pedantic_errors.
19745 2008-03-02 Joseph Myers <joseph@codesourcery.com>
19747 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19748 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19749 __absvsi2, __absvDI2): Use unsigned arithmetic.
19751 2008-03-02 Andi Kleen <ak@suse.de>
19752 Richard Guenther <rguenther@suse.de>
19754 * struct-equiv.c: Remove file.
19755 * cfg_cleanup.c (condjump_equiv_p): Remove.
19756 * Makefile.in (OBJS-common): Remove struct-equiv.o.
19757 (struct-equiv.o): Remove rule.
19758 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19759 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19760 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19762 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19764 * ifcvt.c (noce_process_if_block): Try to handle only the then
19765 block if the else block exists but isn't suitable.
19767 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19770 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19771 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19772 regression from previous patch.
19774 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19777 * gthr.h: Add __gthread_mutex_destroy as a function that must be
19779 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19780 * gthr-single.h (__gthread_mutex_destroy): Likewise.
19781 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19782 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19783 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19784 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19785 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19786 (__gthread_mutex_destroy_function): Rename to
19787 __gthread_mutex_destroy.
19788 * gthr-dce.h (__gthread_mutex_destroy): Call
19789 pthread_mutex_destroy.
19790 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19791 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19792 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19794 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19796 * df-scan.c (df_ref_chain_change_bb): Simplify.
19797 (df_insn_change_bb): Add new_bb argument. Simplify. Call
19798 set_block_for_insn if there's any change.
19799 * df.h ((df_insn_change_bb): Fix prototype.
19800 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19801 df_insn_change_bb, don't call set_block_for_insn.
19802 * emit-rtl.c (reorder_insns): Likewise.
19803 * haifa-sched.c (move_insn): Likewise.
19805 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19807 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19809 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19811 * tree-flow-inline.h (next_readonly_imm_use): Return
19812 NULL_USE_OPERAND_P after the end.
19814 2008-03-01 Richard Guenther <rguenther@suse.de>
19816 PR tree-optimization/35411
19817 * tree-sra.c (sra_build_assignment): Split conversion to
19818 final type to a separate statement if we are not assigning
19821 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19823 * fold-const.c (fold_convertible_p): Correct the logic to follow
19824 that in fold_convert().
19826 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
19829 * tree-inline.c (build_duplicate_type): When we make a
19830 duplicate type, make it unique in the canonical types system.
19832 2008-02-29 Tom Tromey <tromey@redhat.com>
19834 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19835 input_file_stack_history, input_file_stack_restored): Remove.
19836 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19837 * input.h (struct file_stack): Remove.
19838 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19839 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19841 * diagnostic.h (struct diagnostic_context) <last_module>: Change
19843 (diagnostic_last_module_changed): Add 'map' argument.
19844 (diagnostic_set_last_function): Likewise.
19845 * diagnostic.c (undiagnostic_report_current_module): Iterate using
19846 line map, not input_file_stack.
19847 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19849 2008-02-29 Paul Brook <paul@codesourcery.com>
19851 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19853 2008-02-29 Paul Brook <paul@codesourcery.com>
19855 * config/arm/ieee754-df.S (muldf3): Use RET macros.
19857 2008-02-29 Richard Guenther <rguenther@suse.de>
19859 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19861 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19862 value for comparing for a store match.
19863 (simplify_unary_expression): Do nothing for SSA_NAMEs.
19864 (try_to_simplify): Do not do a full-blown reference lookup.
19866 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19868 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19869 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19871 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19873 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
19875 * tree-loop-linear.c (try_interchange_loops): Compare memory access
19876 strides against cache sizes.
19878 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19880 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19883 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
19885 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19886 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19887 is smaller than the original promoted value.
19888 (simplify_subreg): If OP is a SUBREG, try to preserve its
19889 SUBREG_PROMOTED_VAR_P information.
19891 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
19893 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19894 (VN_INFO_GET): Allocate new objects on the obstack.
19895 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
19896 for rpo_numbers_temp, for consistency.
19897 (free_scc_vn): Free the obstack.
19899 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
19901 * doc/invoke.texi: Document -ftree-loop-distribution.
19902 * tree-loop-distribution.c: New.
19903 * tree-pass.h (pass_loop_distribution): New.
19904 * graphds.h (struct graph): Add htab_t indices.
19905 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19906 * tree-vectorizer.c (rename_variables_in_loop): Extern.
19907 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19908 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19909 * tree-data-ref.c (debug_data_dependence_relations): New.
19910 (dump_data_dependence_relation): Also print data references.
19911 (free_data_ref): Extern.
19912 (same_access_functions): Moved...
19913 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19914 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19915 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19916 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19917 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19918 (stmts_from_loop): Skip LABEL_EXPR.
19919 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19921 (build_rdg): Initialize rdg->indices htab.
19922 (free_rdg, stores_from_loop, ref_base_address,
19923 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19924 have_similar_memory_accesses_1, ref_base_address_1,
19925 remove_similar_memory_refs): New.
19926 * tree-data-ref.h: Depend on tree-chrec.h.
19927 (debug_data_dependence_relations, free_data_ref): Declared.
19928 (same_access_functions): ... here.
19929 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19931 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19932 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19933 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19934 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19935 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19936 rdg_vertex_for_stmt): Declared.
19937 (struct rdg_edge): Add level.
19939 (free_rdg, stores_from_loop, remove_similar_memory_refs,
19940 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19942 (rdg_has_similar_memory_accesses): New.
19943 * tree-vect-analyze.c: Remove unused static decls.
19944 * lambda.h (dependence_level): New.
19945 * common.opt (ftree-loop-distribution): New.
19946 * tree-flow.h (mark_virtual_ops_in_bb,
19947 slpeel_tree_duplicate_loop_to_edge_cfg,
19948 rename_variables_in_loop): Declared.
19949 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19950 (OBJS-common): Add tree-loop-distribution.o.
19951 (tree-loop-distribution.o): New rule.
19952 * tree-cfg.c (mark_virtual_ops_in_bb): New.
19953 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19954 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19956 2008-02-28 Joseph Myers <joseph@codesourcery.com>
19959 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19960 other than structures and unions.
19962 2008-02-28 Richard Guenther <rguenther@suse.de>
19965 2008-02-26 Richard Guenther <rguenther@suse.de>
19967 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19968 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19969 (lookup_decl_from_uid): Declare.
19970 (remove_decl_from_map): Likewise.
19971 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19972 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19973 (decl_for_uid_map): New global hashtable mapping DECL_UID
19975 (init_ttree): Allocate it.
19976 (insert_decl_to_uid_decl_map): New helper function.
19977 (make_node_stat): Insert new decls into the map.
19978 (copy_node_stat): Likewise.
19979 (lookup_decl_from_uid): New function.
19980 (remove_decl_from_map): Likewise.
19981 (print_decl_for_uid_map_statistics): New helper.
19982 (dump_tree_statistics): Call it.
19984 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19985 (referenced_var_iterator): Adjust.
19986 (FOR_EACH_REFERENCED_VAR): Adjust.
19987 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19988 (num_referenced_vars): Adjust.
19989 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19990 (first_referenced_var): Remove.
19991 (end_referenced_vars_p): Likewise.
19992 (next_referenced_var): Likewise.
19993 (referenced_var_iterator_set): New helper function.
19994 * tree-dfa.c (referenced_var_lookup): Adjust.
19995 (referenced_var_check_and_insert): Likewise.
19996 (remove_referenced_var): Likewise.
19997 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19998 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19999 (verify_call_clobbering): Likewise.
20000 (verify_memory_partitions): Likewise.
20001 (init_tree_ssa): Allocate bitmap instead of hashtable for
20003 (delete_tree_ssa): Adjust.
20004 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20005 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20006 (compute_tag_properties): Likewise.
20007 (set_initial_properties): Likewise.
20008 (find_partition_for): Likewise.
20009 (update_reference_counts): Likewise.
20010 (dump_may_aliases_for): Likewise.
20011 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20012 (add_call_clobber_ops): Likewise.
20013 (add_call_read_ops): Likewise.
20014 (get_asm_expr_operands): Likewise.
20015 * tree-into-ssa.c (dump_decl_set): Likewise.
20016 (update_ssa): Likewise.
20017 * tree-sra.c (scan_function): Likewise.
20018 (decide_instantiations): Likewise.
20019 (scalarize_parms): Likewise.
20020 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20021 (dsa_named_for): Likewise.
20022 * tree-ssa-structalias.c (update_alias_info): Likewise.
20023 (merge_smts_into): Likewise.
20025 2008-02-27 David Daney <ddaney@avtrex.com>
20028 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
20029 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
20030 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
20031 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
20032 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
20034 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
20037 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
20038 (BUILT_IN_NEXTTOWARD): Remove.
20039 (BUILT_IN_NEXTTOWARDF): Ditto.
20040 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
20041 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
20043 2008-02-27 Tom Tromey <tromey@redhat.com>
20045 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
20046 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
20048 2008-02-27 Jan Beulich <jbeulich@novell.com>
20050 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
20051 update the respective field on newdecl.
20053 2008-02-27 Revital Eres <eres@il.ibm.com>
20055 PR rtl-optimization/34999
20056 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
20057 crossing edges that ends with a call insn.
20058 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
20059 call insn and clear the EDGE_CROSSING flag of the crossing edge
20060 when fixing fallthru edges.
20062 2008-02-27 Richard Guenther <rguenther@suse.de>
20064 PR middle-end/35390
20065 * fold-const.c (fold_unary): Return the correct argument,
20066 converted to the result type.
20068 2008-02-27 Richard Guenther <rguenther@suse.de>
20070 PR middle-end/34971
20071 * expr.c (expand_expr_real_1): Assert on rotates that operate
20073 * fold-const.c (fold_binary): Use the types precision, not the
20074 bitsize of the mode if folding rotate expressions. Build rotates
20075 only for full modes.
20077 2008-02-27 Jakub Jelinek <jakub@redhat.com>
20079 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
20080 and CPP_PRAGMA_EOL.
20081 * c-pragma.c (pragma_ns_name): New typedef.
20082 (registered_pp_pragmas): New variable.
20083 (c_pp_lookup_pragma): New function.
20084 (c_register_pragma_1): If flag_preprocess_only, do nothing
20085 for non-expanded pragmas, for expanded ones push pragma's
20086 namespace and name into registered_pp_pragmas vector.
20087 (c_invoke_pragma_handler): Register OpenMP pragmas even when
20088 flag_preprocess_only, don't register GCC pch_preprocess
20089 pragma if flag_preprocess_only.
20090 * c-opts.c (c_common_init): Call init_pragma even if
20091 flag_preprocess_only.
20092 * c-pragma.c (c_pp_lookup_pragma): New prototype.
20093 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
20094 cpp_register_pragma if flag_preprocess_only.
20096 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20099 * c-parser.c (c_parser_translation_unit): Warn for empty
20100 translation unit, not empty source file.
20102 2008-02-26 Paul Brook <paul@codesourcery.com>
20104 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
20105 operand for Thumb-2.
20106 * config/arm/arm.h (reg_class): Add CORE_REGS.
20107 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
20108 (BASE_REG_CLASS): Use CORE_REGS.
20109 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
20110 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
20111 (REGNO_OK_FOR_INDEX_P): Exclude SP.
20112 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
20113 ARM_REGNO_OK_FOR_INDEX_P.
20114 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
20115 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
20116 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
20117 (ldm/stm peepholes): Ditto.
20118 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
20119 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
20120 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
20121 * config/arm/constraints.md: Enable "k" constraint on ARM.
20123 2008-02-27 Ben Elliston <bje@au.ibm.com>
20125 * config/rs6000/rs6000.c: Annotate cache line size field in all
20126 instances of struct processor_costs.
20128 2008-02-26 David Edelsohn <edelsohn@gnu.org>
20130 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
20131 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
20132 jump_bypass): New counters.
20133 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
20134 * dce.c (gate_ud_dce): Same.
20135 (gate_fast_dce): Same.
20136 * dse.c (gate_dse1): New function.
20137 (gate_dse2): New function.
20138 (gate_dse): Merge results of new gate functions.
20139 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
20140 (gate_handle_jump_bypass): Add dbg_cnt.
20141 (gate_handle_gcse): Add dbg_cnt.
20142 * ifcvt.c (gate_handle_if_conversion): Same.
20143 (gate_handle_if_after_combine): Same.
20144 (gate_handle_if_after_reload): Same.
20145 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
20147 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
20149 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
20151 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
20153 2008-02-26 Jason Merrill <jason@redhat.com>
20156 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
20157 alone if it's the naming decl for the type's main variant.
20159 2008-02-26 Tom Tromey <tromey@redhat.com>
20161 * system.h (USE_MAPPED_LOCATION): Poison.
20162 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
20163 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
20164 (make_goto_expr_edges): Likewise.
20165 (remove_bb): Likewise.
20166 (execute_warn_function_return): Likewise.
20167 * basic-block.h (struct edge_def) <goto_locus>: Change type to
20169 * c-common.c (fname_decl): Remove old location code.
20170 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
20172 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
20174 (ASM_INPUT_SOURCE_LOCATION): Likewise.
20175 (gen_rtx_ASM_INPUT): Likewise.
20176 (gen_rtx_ASM_INPUT_loc): Likewise.
20177 (get_rtx_asm_OPERANDS): Remove.
20178 * cfglayout.c (insn_locators_alloc): Remove old location code.
20179 (set_curr_insn_source_location): Likewise.
20180 (curr_insn_locator): Likewise.
20181 * print-tree.c (print_node): Remove old location code.
20182 * tree-mudflap.c (mf_varname_tree): Remove old location code.
20183 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
20184 * cfgexpand.c (expand_gimple_cond_expr): Don't use
20185 location_from_locus.
20186 (construct_exit_block): Remove old location code.
20187 * emit-rtl.c (force_next_line_note): Remove old location code.
20188 * profile.c (branch_prob): Remove old location code.
20189 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
20190 LOC_LINE): Remove old-location variants.
20191 * langhooks.c (lhd_print_error_function): Remove old location
20193 * configure, config.in: Rebuilt.
20194 * configure.ac (--enable-mapped-location): Remove.
20195 * c-decl.c (c_init_decl_processing): Remove old location code.
20196 (finish_function): Likewise.
20197 * recog.c (decode_asm_operands): Remove old location code.
20198 * c-pch.c (c_common_read_pch): Remove old location code.
20199 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
20201 * gimple-low.c (lower_function_body): Remove old location code.
20202 * toplev.c (unknown_location): Remove.
20203 (push_srcloc): Remove old-location variant.
20204 (process_options): Remove old location code.
20205 (lang_dependent_init): Likewise.
20206 * input.h (UNKNOWN_LOCATION): Move definition.
20207 (location_t): Undeprecate.
20208 (source_locus): Remove.
20209 (location_from_locus): Remove.
20210 (struct location_s): Remove.
20211 Remove all old-location code.
20212 (input_line, input_filename): Remove.
20213 * final.c (final_scan_insn): Remove old location code.
20214 * diagnostic.c (diagnostic_build_prefix): Remove
20215 USE_MAPPED_LOCATION test.
20216 * tree.h (gimple_stmt) <locus>: Now a location_t.
20217 (tree_exp) <locus>: Likewise.
20218 (DECL_IS_BUILTIN): Remove old-location variant.
20219 (annotate_with_file_line, annotate_with_locus): Likewise.
20220 (expr_locus, set_expr_locus): Update.
20221 * tree.c (build1_stat): Remove old location code.
20222 (last_annotated_node): Remove.
20223 (annotate_with_file_line): Remove old-location variant.
20224 (annotate_with_locus): Likewise.
20225 (expr_location): Remove old location code.
20226 (set_expr_location): Likewise.
20227 (expr_has_location): Likewise.
20228 (expr_locus): Likewise.
20229 (set_expr_locus): Likewise.
20230 (expr_filename): Don't use location_from_locus.
20231 (expr_lineno): Likewise.
20232 * rtl-error.c (location_for_asm): Remove old location code.
20233 * c-lex.c (cb_line_change): Remove old location code.
20234 (fe_file_change): Likewise.
20235 (cb_def_pragma): Likewise.
20236 (c_lex_with_flags): Likewise.
20237 * gengtype.c (do_typedef): Don't special-case location types.
20238 (define_location_structures): Remove.
20239 (main): Don't call define_location_structures.
20240 * tree-pretty-print.c (dump_implicit_edges): Remove old location
20243 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20246 * builtins.def (BUILT_IN_STDARG_START): Remove.
20247 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
20248 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20249 * tree-inline.c (inline_forbidden_p_1): Likewise.
20251 2008-02-26 Richard Guenther <rguenther@suse.de>
20253 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20254 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20255 (lookup_decl_from_uid): Declare.
20256 (remove_decl_from_map): Likewise.
20257 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20258 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20259 (decl_for_uid_map): New global hashtable mapping DECL_UID
20261 (init_ttree): Allocate it.
20262 (insert_decl_to_uid_decl_map): New helper function.
20263 (make_node_stat): Insert new decls into the map.
20264 (copy_node_stat): Likewise.
20265 (lookup_decl_from_uid): New function.
20266 (remove_decl_from_map): Likewise.
20267 (print_decl_for_uid_map_statistics): New helper.
20268 (dump_tree_statistics): Call it.
20270 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20271 (referenced_var_iterator): Adjust.
20272 (FOR_EACH_REFERENCED_VAR): Adjust.
20273 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20274 (num_referenced_vars): Adjust.
20275 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20276 (first_referenced_var): Remove.
20277 (end_referenced_vars_p): Likewise.
20278 (next_referenced_var): Likewise.
20279 (referenced_var_iterator_set): New helper function.
20280 * tree-dfa.c (referenced_var_lookup): Adjust.
20281 (referenced_var_check_and_insert): Likewise.
20282 (remove_referenced_var): Likewise.
20283 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20284 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20285 (verify_call_clobbering): Likewise.
20286 (verify_memory_partitions): Likewise.
20287 (init_tree_ssa): Allocate bitmap instead of hashtable for
20289 (delete_tree_ssa): Adjust.
20290 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20291 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20292 (compute_tag_properties): Likewise.
20293 (set_initial_properties): Likewise.
20294 (find_partition_for): Likewise.
20295 (update_reference_counts): Likewise.
20296 (dump_may_aliases_for): Likewise.
20297 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20298 (add_call_clobber_ops): Likewise.
20299 (add_call_read_ops): Likewise.
20300 (get_asm_expr_operands): Likewise.
20301 * tree-into-ssa.c (dump_decl_set): Likewise.
20302 (update_ssa): Likewise.
20303 * tree-sra.c (scan_function): Likewise.
20304 (decide_instantiations): Likewise.
20305 (scalarize_parms): Likewise.
20306 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20307 (dsa_named_for): Likewise.
20308 * tree-ssa-structalias.c (update_alias_info): Likewise.
20309 (merge_smts_into): Likewise.
20311 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20314 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
20315 * c-opts.c (c_common_handle_option): Wall enables
20316 Wvolatile-register-var.
20317 * common.opt: Move Wvolatile-register-var to...
20320 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20322 * common.opt (Wlarger-than=): New.
20323 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
20325 * opts.c (common_handle_option): Handle -Wlarger-than=.
20326 * optc-gen.awk: Likewise.
20327 * opth-gen.awk: Likewise.
20328 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
20329 * tree-optimize.c (tree_rest_of_compilation): Likewise.
20331 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20333 * c-common.c (match_case_to_enum_1): Add appropriate
20334 OPT_W* parameter to warning.
20335 (c_do_switch_warnings): Likewise.
20336 * c-typeck.c (warning_init): Add one more parameter following
20337 'warning' function.
20338 (push_init_level): Update call to warning_init.
20339 (pop_init_level): Likewise.
20340 (add_pending_init): Likewise.
20341 (output_init_element: Likewise.
20343 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20346 * toplev.c (toplev_main): If there are warnings or error, print
20347 errors for ignored options.
20348 * opts.c (ignored_options): New static variable.
20349 (postpone_unknown_option_error): New.
20350 (print_ignored_options): New.
20351 (handle_option): Postpone errors for unknown -Wno-* options.
20352 * opts.h (print_ignored_options): Declare.
20354 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
20356 * config/mips/mips.md (loadgp_blockage, blockage): Change type
20359 2008-02-25 Richard Guenther <rguenther@suse.de>
20362 2008-02-25 Richard Guenther <rguenther@suse.de>
20364 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20365 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20366 (lookup_decl_from_uid): Declare.
20367 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20368 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20369 (decl_for_uid_map): New global hashtable mapping DECL_UID
20371 (init_ttree): Allocate it.
20372 (insert_decl_to_uid_decl_map): New helper function.
20373 (make_node_stat): Insert new decls into the map.
20374 (copy_node_stat): Likewise.
20375 (lookup_decl_from_uid): New function.
20376 (print_decl_for_uid_map_statistics): New helper.
20377 (dump_tree_statistics): Call it.
20379 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20380 (referenced_var_iterator): Adjust.
20381 (FOR_EACH_REFERENCED_VAR): Adjust.
20382 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20383 (num_referenced_vars): Adjust.
20384 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20385 (first_referenced_var): Remove.
20386 (end_referenced_vars_p): Likewise.
20387 (next_referenced_var): Likewise.
20388 (referenced_var_iterator_set): New helper function.
20389 * tree-dfa.c (referenced_var_lookup): Adjust.
20390 (referenced_var_check_and_insert): Likewise.
20391 (remove_referenced_var): Likewise.
20392 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20393 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20394 (verify_call_clobbering): Likewise.
20395 (verify_memory_partitions): Likewise.
20396 (init_tree_ssa): Allocate bitmap instead of hashtable for
20398 (delete_tree_ssa): Adjust.
20399 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20400 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20401 (compute_tag_properties): Likewise.
20402 (set_initial_properties): Likewise.
20403 (find_partition_for): Likewise.
20404 (update_reference_counts): Likewise.
20405 (dump_may_aliases_for): Likewise.
20406 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20407 (add_call_clobber_ops): Likewise.
20408 (add_call_read_ops): Likewise.
20409 (get_asm_expr_operands): Likewise.
20410 * tree-into-ssa.c (dump_decl_set): Likewise.
20411 (update_ssa): Likewise.
20412 * tree-sra.c (scan_function): Likewise.
20413 (decide_instantiations): Likewise.
20414 (scalarize_parms): Likewise.
20415 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20416 (dsa_named_for): Likewise.
20417 * tree-ssa-structalias.c (update_alias_info): Likewise.
20418 (merge_smts_into): Likewise.
20420 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
20423 * doc/invoke.texi (-fcx-limited-range): Document new option.
20424 * toplev.c (process_options): Handle -fcx-fortran-rules.
20425 * common.opt: Add documentation for -fcx-fortran-rules.
20427 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
20430 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20431 actual behaviour and C99.
20433 2008-02-26 Ben Elliston <bje@au.ibm.com>
20435 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20436 (ASM_CPU_POWER6_SPEC): Likewise.
20437 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20438 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20439 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20441 2008-02-25 Richard Guenther <rguenther@suse.de>
20443 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20444 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20445 (lookup_decl_from_uid): Declare.
20446 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20447 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20448 (decl_for_uid_map): New global hashtable mapping DECL_UID
20450 (init_ttree): Allocate it.
20451 (insert_decl_to_uid_decl_map): New helper function.
20452 (make_node_stat): Insert new decls into the map.
20453 (copy_node_stat): Likewise.
20454 (lookup_decl_from_uid): New function.
20455 (print_decl_for_uid_map_statistics): New helper.
20456 (dump_tree_statistics): Call it.
20458 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20459 (referenced_var_iterator): Adjust.
20460 (FOR_EACH_REFERENCED_VAR): Adjust.
20461 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20462 (num_referenced_vars): Adjust.
20463 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20464 (first_referenced_var): Remove.
20465 (end_referenced_vars_p): Likewise.
20466 (next_referenced_var): Likewise.
20467 (referenced_var_iterator_set): New helper function.
20468 * tree-dfa.c (referenced_var_lookup): Adjust.
20469 (referenced_var_check_and_insert): Likewise.
20470 (remove_referenced_var): Likewise.
20471 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20472 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20473 (verify_call_clobbering): Likewise.
20474 (verify_memory_partitions): Likewise.
20475 (init_tree_ssa): Allocate bitmap instead of hashtable for
20477 (delete_tree_ssa): Adjust.
20478 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20479 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20480 (compute_tag_properties): Likewise.
20481 (set_initial_properties): Likewise.
20482 (find_partition_for): Likewise.
20483 (update_reference_counts): Likewise.
20484 (dump_may_aliases_for): Likewise.
20485 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20486 (add_call_clobber_ops): Likewise.
20487 (add_call_read_ops): Likewise.
20488 (get_asm_expr_operands): Likewise.
20489 * tree-into-ssa.c (dump_decl_set): Likewise.
20490 (update_ssa): Likewise.
20491 * tree-sra.c (scan_function): Likewise.
20492 (decide_instantiations): Likewise.
20493 (scalarize_parms): Likewise.
20494 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20495 (dsa_named_for): Likewise.
20496 * tree-ssa-structalias.c (update_alias_info): Likewise.
20497 (merge_smts_into): Likewise.
20499 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
20502 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20503 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20504 * alias.h (nonoverlapping_memrefs_p): Likewise.
20506 2008-02-25 Jan Beulich <jbeulich@novell.com>
20508 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20509 * config/i386/netware-libgcc.exp: Add __bswap?i2,
20510 __emultls_get_address, __emultls_register_common,
20511 __floatundi?f, and _Unwind_GetIPInfo.
20512 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20513 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20514 (gen_regparm_prefix): Likewise.
20515 (i386_nlm_encode_section_info): Sync with
20516 config/i386/winnt.c:i386_pe_encode_section_info().
20517 (i386_nlm_maybe_mangle_decl_assembler_name): New.
20518 i386_nlm_mangle_decl_assembler_name): New.
20519 (netware_override_options): New.
20520 * config/i386/netware.h (netware_override_options): Declare.
20521 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20522 (i386_nlm_mangle_decl_assembler_name): Declare.
20523 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20525 2008-02-25 Ben Elliston <bje@au.ibm.com>
20528 * c-decl.c (grokdeclarator): Remove unused local variables
20529 `typedef_type' and `type_as_written'.
20531 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20532 unused local variable `has_hot_blocks'.
20533 (fix_crossing_conditional_branches): Remove unused local variable
20536 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
20538 PR middle-end/19984
20539 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20540 using DEF_C99_BUILTIN.
20541 (BUILT_IN_NANF): Ditto.
20542 (BUILT_IN_NANL): Ditto.
20544 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
20545 Revital Eres <eres@il.ibm.com>
20547 * modulo-sched.c (calculate_must_precede_follow): Address TODO
20548 regarding the order of two dependent insns in the same row.
20550 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
20552 * stor-layout.c (layout_decl): Do not bump the alignment of a
20553 bit-field to more than byte alignment if it is packed.
20555 2008-02-24 David Edelsohn <edelsohn@gnu.org>
20557 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20560 2008-02-24 Diego Novillo <dnovillo@google.com>
20562 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20565 * tree-vrp.c (vrp_evaluate_conditional): With
20566 -Wtype-limits, emit a warning when comparing against a
20567 constant outside the natural range of OP0's type.
20568 * c.opt (Wtype-limits): Move ...
20569 * common.opt (Wtype-limits): ... here.
20571 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
20573 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20574 * config/rs6000/e300c2c3.md: New file.
20575 * config/rs6000/rs6000.c (processor_costs): Add new costs for
20577 (rs6000_override_options): Add e300c2 and e300c3 cases to
20578 processor_target_table. Do not allow usage of Altivec or Spe
20579 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20580 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20581 * config/rs6000/rs6000.h (processor_type): Add
20582 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20583 (ASM_CPU_SPEC): Add e300c2 and e300c3.
20584 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20585 and ppce300c3. Include e300c2c3.md.
20587 2008-02-23 David Edelsohn <edelsohn@gnu.org>
20589 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20590 instead of TARGET_STRICT_ALIGN.
20592 2008-02-23 Joseph Myers <joseph@codesourcery.com>
20594 * explow.c (memory_address): Assert that the generated address is
20597 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20600 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20601 * config/darwin-ppc-ldouble-patch.def: New file.
20602 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20603 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20604 SUBTARGET_INIT_BUILTINS if defined.
20605 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20608 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20611 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20612 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20614 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20617 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20618 file" warning condtional on -Winvalid-PCH.
20620 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
20622 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20624 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
20628 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20629 prevent reload from using MMX registers.
20630 (*mov<mode>_internal): Ditto.
20631 (*movv2sf_internal_rex64): Ditto.
20632 (*movv2sf_internal): Ditto.
20634 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20636 PR documentation/31569
20637 * doc/install.texi2html: Use makeinfo --no-number-sections.
20639 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20641 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20642 ensure that we can address an entire entity > 8 bytes. Don't
20643 generate reg+reg addressing for such data.
20645 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20647 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20648 strings when optimizing for size, unless the target cares about
20651 2008-02-22 Tom Tromey <tromey@redhat.com>
20653 * regclass.c (current_pass): Remove declaration.
20655 2008-02-22 Anatoly Sokolov <aesok@post.ru>
20657 * config/avr/libgcc.S (__RAMPZ__): Define.
20658 (__do_copy_data): Add for devices with 128KB code memory.
20660 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20662 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20664 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20666 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
20668 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20671 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20674 * c-typeck.c (build_binary_op): Warn about floating point
20675 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20677 2008-02-21 Janis Johnson <janis187@us.ibm.com>
20680 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20681 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20683 (rs6000_override_options): Set altivec_abi as default, not override,
20684 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20685 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20686 is used; use new member spe_abi.
20687 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20688 spe_abi and altivec_abi.
20690 2008-02-22 Tomas Bily <tbily@suse.cz>
20692 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20694 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20697 * config.build (build_file_translate): Set to `CMD //c' only if
20699 * Makefile.in (build_file_translate): Improve comment.
20701 2008-02-21 Jan Hubicka <jh@suse.cz>
20703 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20704 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20705 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20707 2008-02-21 Michael Matz <matz@suse.de>
20710 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20712 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
20714 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20715 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20716 as insn constraint.
20717 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20718 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20719 SSE_VEC_FLOAT_MODE_P as insn constraint.
20720 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20721 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20722 sse4a_movntdf using MODEF mode iterator.
20723 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20724 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20725 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20726 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20727 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20728 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20729 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20731 2008-02-21 Richard Guenther <rguenther@suse.de>
20733 * tree.def (PAREN_EXPR): New tree code.
20734 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20736 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20737 * expr.c (expand_expr_real_1): Likewise.
20738 * tree-inline.c (estimate_num_insns_1): Likewise.
20739 * tree-complex.c (expand_complex_move): Likewise.
20740 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20743 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20746 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20748 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20751 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20753 * config/sh/sh.c (find_barrier): Don't go past
20754 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20756 2008-02-20 DJ Delorie <dj@redhat.com>
20758 * config/h8300/h8300.md (insv): Force source operand to be a register.
20760 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20761 as a jump, not as a plain insn.
20763 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
20765 * doc/invoke.texi (Warning Options): Add new option
20766 -Wframe-larger-than=.
20767 (-Wframe-larger-than): Document.
20769 * flags.h (warn_frame_larger_than, frame_larger_than_size):
20770 Add declarations for new option variables.
20772 * final.c (final_start_function): Check the frame size
20773 before emission and issue a Wframe-larger-than warning.
20775 * opts.c (warn_frame_larger_than, frame_larger_than_size):
20776 Add definitions for new option variables.
20777 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20779 * common.opt (Wframe-larger-than=): New option.
20781 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20783 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20784 (<sse>_div<mode>3): Ditto.
20785 (<sse>_vmdiv<mode>3): Ditto.
20786 (<sse>_vmsqrt<mode>2): Ditto.
20787 (*smax<mode>3): Ditto.
20788 (sse5_frcz<mode>2): Ditto.
20789 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
20790 as insn constraint.
20792 2008-02-20 Richard Guenther <rguenther@suse.de>
20794 PR middle-end/35265
20795 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20796 be happy with INTEGRAL_TYPE_P.
20798 2008-02-20 Richard Guenther <rguenther@suse.de>
20800 * fold-const.c (split_tree): Associate floatig-point expressions
20801 if flag_associative_math is set.
20803 2008-02-20 Richard Guenther <rguenther@suse.de>
20805 * tree.h (fold_real_zero_addition_p): Declare.
20806 * fold-const.c (fold_real_zero_addition_p): Export.
20807 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20808 floating-point operations with zero and one.
20810 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
20812 * doc/install.texi: Correct references to CFLAGS, replacing them
20813 with BOOT_CFLAGS. Document flags used during bootstrap for
20816 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20818 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20819 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20820 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20822 (smin<mode>3): Ditto from similar patterns.
20823 (smax<mode>3): Ditto.
20824 (*ieee_smin<mode>3): Ditto.
20825 (*ieee_smax<mode>3): Ditto.
20826 * config/i386/sse.md (sse): New mode attribute.
20827 (mov<mode>): Macroize expander from movv4sf and movv2df using
20828 SSEMODEF2P mode iterator.
20829 (<sse>_movnt<mode>): Ditto from similar patterns. Use
20830 SSE_VEC_FLOAT_MODE_P as insn constraint.
20831 (storent<mode>): Ditto.
20832 (storent<mode>): Macroize expander from storentsf and storentdf using
20833 MODEF mode iterator.
20834 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20835 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20836 (abs<mode>2): Ditto from similar patterns.
20837 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20838 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20839 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20840 (<sse>_vmsqrt<mode>2): Ditto.
20841 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20842 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20843 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20844 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20845 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20846 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20847 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20849 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20850 iterator and SSE_FLOAT_MODE_P as insn constraint.
20851 (<sse>_ucomi): Ditto from similar patterns.
20852 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20853 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20854 SSE_VEC_FLOAT_MODE_P as insn constraint.
20855 (vcond<mode>): Ditto from similar patterns.
20856 (and<mode>3, *and<mode>3): Ditto.
20857 (<sse>_nand<mode>3): Ditto.
20858 (ior<mode>3, *ior<mode>3): Ditto.
20859 (xor<mode>3, *xor<mode>3): Ditto.
20860 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20861 iterator and SSE_FLOAT_MODE_P as insn constraint.
20862 (*nand<mode>3): Ditto from similar patterns.
20863 (*ior<mode>3): Ditto.
20864 (*xor<mode>3): Ditto.
20866 2008-02-20 Ira Rosen <irar@il.ibm.com>
20868 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20869 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20870 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20872 2008-02-19 Jan Hubicka <jh@suse.cz>
20874 * predict.c (tree_bb_level_predictions): Remove variable next
20875 mistakely introduced by previous commit.
20877 2008-02-19 Jan Hubicka <jh@suse.cz>
20879 * predict.c (predict_paths_leading_to): Rewrite.
20880 (predict_paths_for_bb): New.
20881 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20883 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20886 * Makefile.in (build_file_translate): New.
20887 (gcc-vers.texi): Use it for translating $(abs_srcdir).
20888 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20889 * configure.ac (build_file_translate): Substitute it.
20890 * configure: Regenerate.
20892 2008-02-19 Jan Hubicka <jh@suse.cz>
20894 PR rtl-optimization/34408
20895 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20898 2008-02-19 Jan Hubicka <jh@suse.cz>
20900 PR middle-end/28779
20901 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20904 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
20907 * config/i386/i386-modes.def: Revert the last DI alignment
20908 change until Ada people can look into it.
20910 2008-02-19 Nick Clifton <nickc@redhat.com>
20912 * opts.c (print_specific_help): Fix typo in --help text.
20914 2008-02-19 Jakub Jelinek <jakub@redhat.com>
20917 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20918 32-bit inline asm without asm alternatives for host GCC < 3.0.
20920 2008-02-19 Richard Guenther <rguenther@suse.de>
20922 PR tree-optimization/34989
20923 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20924 Allow propagation to INDIRECT_REF if we can simplify only.
20926 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20928 * c-common.c (warn_for_collisions_1): Use appropriate option when
20931 2008-02-19 Nick Clifton <nickc@redhat.com>
20934 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20935 (handle_options): Fix indentation.
20936 (print_filtered_help): If no language-specific options were
20937 displayed tell the user how to list all the options supported by
20938 the language's front-end.
20939 (print_specific_help): Fix indentation and remove duplicate line.
20940 (common_handle_option): Handle the -v option.
20941 For --help enable the display of undocumented options if the -v
20942 switch has been included on the command line.
20943 For --help= check for overlaps in the arguments between the option
20944 classes and the language names and issue a warning when they
20945 cannot be disambiguated.
20946 * c.opt (v): Pass on to the common option handler.
20948 2008-02-19 Revital Eres <eres@il.ibm.com>
20950 * modulo-sched.c (sms_schedule): Change dump message when
20951 create_ddg function fails.
20952 (try_scheduling_node_in_cycle): Rename row to cycle.
20953 (print_partial_schedule): Rename CYCLE to ROW.
20955 2008-02-19 Christian Bruel <christian.bruel@st.com>
20956 Zdenek Dvorak <ook@ucw.cz>
20958 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20960 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
20963 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20964 (*x86_movdicc_0_m1_se): Ditto.
20966 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
20968 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20969 (CMPtype): Define as __gcc_CMPtype.
20970 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20971 (CMPtype): Define as __gcc_CMPtype.
20973 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
20975 Support valgrind 3.3 for --enable-checking=valgrind.
20976 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20978 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20979 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20980 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20981 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20982 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20983 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20984 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20986 * ggc-zone.c: Similar.
20987 * ggc-page.c: Similar.
20989 2008-02-19 Paul Brook <paul@codesourcery.com>
20992 * config/arm/ieee754-df.S: Fix do_it typo.
20993 * config/arm/ieee754-sf.S: Fix do_it typo.
20995 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
20998 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20999 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
21000 (OPTION_MASK_ISA_SSE_SET): Likewise.
21001 (OPTION_MASK_ISA_SSE2_SET): Likewise.
21002 (OPTION_MASK_ISA_SSE3_SET): Likewise.
21003 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
21004 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
21005 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
21006 (OPTION_MASK_ISA_SSE4_SET): Likewise.
21007 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
21008 (OPTION_MASK_ISA_SSE5_SET): Likewise.
21009 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
21010 (OPTION_MASK_ISA_MMX_UNSET): Updated.
21011 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
21012 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
21013 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
21014 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
21015 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
21016 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
21017 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
21018 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
21019 (OPTION_MASK_ISA_SSE4): Removed.
21020 (ix86_handle_option): Turn on bits in ix86_isa_flags and
21021 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
21022 (override_options): Don't turn on implied SSE/MMX bits in
21025 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
21027 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21030 2008-02-18 Joey Ye <joey.ye@intel.com>
21032 PR middle-end/34921
21033 * tree-nested.c (insert_field_into_struct): Set type alignment
21034 to field alignment if the former is less than the latter.
21036 2008-02-18 Jakub Jelinek <jakub@redhat.com>
21038 * BASE-VER: Set to 4.4.0.
21040 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21042 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
21043 * doc/cfg.texi: Likewise.
21044 * doc/extend.texi: Likewise.
21045 * doc/gty.texi: Likewise.
21046 * doc/invoke.texi: Likewise.
21047 * doc/loop.texi: Likewise.
21048 * doc/md.texi: Likewise.
21049 * doc/passes.texi: Likewise.
21050 * doc/rtl.texi: Likewise.
21051 * doc/sourcebuild.texi: Likewise.
21052 * doc/tm.texi: Likewise.
21053 * doc/tree-ssa.texi: Likewise.
21055 2008-02-17 Richard Guenther <rguenther@suse.de>
21057 PR middle-end/35227
21058 * tree-complex.c (init_parameter_lattice_values): Handle parameters
21059 without default definition.
21061 2008-02-17 Richard Guenther <rguenther@suse.de>
21063 PR tree-optimization/35231
21064 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
21067 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
21070 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21071 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21072 libgcc_cmp_return mode.
21074 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21077 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
21079 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
21081 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
21084 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21086 * doc/c-tree.texi: Use `@.' where appropriate.
21087 * doc/extend.texi: Likewise.
21088 * doc/install.texi: Likewise.
21089 * doc/invoke.texi: Likewise.
21090 * doc/loop.texi: Likewise.
21091 * doc/makefile.texi: Likewise.
21092 * doc/md.texi: Likewise.
21093 * doc/passes.texi: Likewise.
21094 * doc/standards.texi: Likewise.
21095 * doc/tm.texi: Likewise.
21097 2008-02-15 Jakub Jelinek <jakub@redhat.com>
21099 PR middle-end/35196
21100 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
21102 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
21103 rather than in entry_bb.
21105 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21107 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21108 libgcc_cmp_return mode.
21110 2008-02-15 Jakub Jelinek <jakub@redhat.com>
21112 PR middle-end/35130
21113 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
21114 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
21116 2008-02-15 Richard Guenther <rguenther@suse.de>
21117 Zdenek Dvorak <ook@ucw.cz>
21119 PR tree-optimization/35164
21120 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
21121 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
21122 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21123 Only propagate addresses which do not have abnormal SSA_NAMEs
21126 2008-02-15 Joseph Myers <joseph@codesourcery.com>
21129 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
21131 2008-02-15 Jan Hubicka <jh@suse.cz>
21133 PR middle-end/35149
21134 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
21136 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21138 PR middle-end/34621
21139 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
21140 when calculating alignment_pad.
21142 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
21144 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
21145 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
21146 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
21147 and STACK_BOUNDARY define.
21149 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
21151 PR preprocessor/35061
21152 * c-pragma.c (handle_pragma_pop_macro): Check that
21153 pushed_macro_table has been allocated.
21155 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
21157 PR middle-end/35136
21158 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
21159 (force_gimple_operand): Likewise.
21160 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
21161 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
21162 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
21163 (find_interesting_uses_address): Check addressability and alignment
21164 of the base expression only after substituting bases of IVs into it.
21166 2008-02-14 Michael Matz <matz@suse.de>
21169 * function.c (instantiate_virtual_regs_in_insn): Reload address
21170 before falling back to reloading the whole operand.
21172 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
21174 * config/s390/s390.c (s390_mainpool_start): Emit the pool
21175 before the first section switch note.
21177 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21179 * doc/bugreport.texi: Update copyright years.
21180 * doc/c-tree.texi: Likewise.
21181 * doc/cfg.texi: Likewise.
21182 * doc/cpp.texi: Likewise.
21183 * doc/cppinternals.texi: Likewise.
21184 * doc/fragments.texi: Likewise.
21185 * doc/frontends.texi: Likewise.
21186 * doc/gcc.texi: Likewise.
21187 * doc/gty.texi: Likewise.
21188 * doc/hostconfig.texi: Likewise.
21189 * doc/implement-c.texi: Likewise.
21190 * doc/libgcc.texi: Likewise.
21191 * doc/loop.texi: Likewise.
21192 * doc/makefile.texi: Likewise.
21193 * doc/options.texi: Likewise.
21194 * doc/passes.texi: Likewise.
21195 * doc/rtl.texi: Likewise.
21196 * doc/sourcebuild.texi: Likewise.
21197 * doc/standards.texi: Likewise.
21198 * doc/tree-ssa.texi: Likewise.
21199 * doc/trouble.texi: Likewise.
21201 * doc/extend.texi: Use @: or add comma where appropriate.
21202 * doc/invoke.texi: Likewise.
21203 * doc/tm.texi: Likewise.
21205 2008-02-14 Alan Modra <amodra@bigpond.net.au>
21208 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
21211 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
21213 * doc/md.texi (clz, ctz): Add reference.
21214 * doc/rtl.texi (clz, ctz): Likewise.
21216 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21219 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
21222 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
21224 * config/s390/s390.c (struct constant_pool): New field
21225 emit_pool_after added.
21226 (s390_mainpool_start): Set the emit_pool_after flag according
21227 to the section switch notes.
21228 (s390_mainpool_finish): Consider emit_pool_after when emitting
21229 the literal pool at the end of the function.
21230 (s390_chunkify_start): Force literal pool splits at section
21233 2008-02-13 Michael Matz <matz@suse.de>
21236 * var-tracking.c (clobber_variable_part): Correctly traverse the
21239 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21242 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
21243 Add -fdump-ipa-inline.
21244 * tree-dump.c (dump_files): Remove tree-inlined dump.
21245 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
21247 2008-02-12 Richard Guenther <rguenther@suse.de>
21249 PR tree-optimization/35171
21250 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
21253 2008-02-12 Richard Guenther <rguenther@suse.de>
21255 PR middle-end/35163
21256 * fold-const.c (fold_widened_comparison): Use get_unwidened in
21257 value-preserving mode. Disallow final truncation.
21259 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
21261 PR middle-end/35136
21262 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
21263 code from here to...
21264 (force_gimple_operand): ...here.
21266 2008-02-12 Jakub Jelinek <jakub@redhat.com>
21269 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
21270 non-compatible pointers.
21271 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
21272 different FIELD_DECLs, try harder by comparing field offsets, sizes
21275 PR inline-asm/35160
21276 * function.c (match_asm_constraints_1): Don't replace the same input
21279 2008-02-12 Anatoly Sokolov <aesok@post.ru>
21281 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
21282 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
21283 (expand_epilogue): Restore RAMPZ register.
21284 * config/avr/avr.md (RAMPZ_ADDR): New constant.
21286 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
21288 * config/i386/cygwin.asm: (__alloca): Correct calling
21289 convention and alignment.
21290 (__chkstk): Force 8 byte stack alignment.
21292 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
21293 Richard Guenther <rguenther@suse.de>
21295 PR tree-optimization/33992
21296 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
21297 the zero we compare against.
21299 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
21301 PR libfortran/35063
21302 * gthr-win32.h (__gthread_mutex_destroy_function): New function
21303 to CloseHandle after unlocking to prevent accumulation of handle
21306 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21308 PR middle_end/34150
21309 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
21310 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
21311 and update LABEL_NUSES during and after reload.
21313 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
21315 PR middle-end/34627
21316 * combine.c (simplify_if_then_else): Make sure the comparison is
21317 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
21319 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
21322 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
21323 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
21324 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
21325 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
21326 * tree.h (get_type_static_bounds): Likewise.
21328 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21330 * doc/invoke.texi (Option Summary, C++ Dialect Options)
21331 (Objective-C and Objective-C++ Dialect Options, Warning Options):
21332 Make -Wfoo language annotations match what the compiler outputs.
21334 2008-02-08 Sa Liu <saliu@de.ibm.com>
21336 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
21337 intrinsics spu_convts, spu_convtu, spu_convtf.
21339 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
21341 * doc/extend.texi (Function Attributes) <noinline>: Mention
21342 asm ("") as method to keep calls.
21344 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21347 * doc/options.texi (Options): Replace references to opts.sh with
21349 * opts-common.c: Likewise.
21350 * optc-gen.awk: Likewise.
21352 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
21354 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
21356 2008-02-07 Richard Henderson <rth@redhat.com>
21359 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21360 EXPR_LIST for the REG_EQUAL instead of a comparison with a
21363 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
21365 PR tree-optimization/35085
21366 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21367 for operand entry oe2 in addition to operand entry oe3 in order to
21368 expose more opportunities for vectorizer sum reduction.
21370 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21373 * Makefile.in (LIBS): Remove $(GMPLIBS).
21374 (cc1-dummy, cc1): Add $(GMPLIBS).
21376 2008-02-06 Jan Hubicka <jh@suse.cz>
21379 * i386.md (moddf_integer): Do not produce partial memory stalls for
21380 targets where it hurts.
21382 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
21385 * optabs.c (expand_float): Do not check for decimal modes when
21386 expanding unsigned integer through signed conversion.
21388 2008-02-06 Nick Clifton <nickc@redhat.com>
21390 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21391 inside the clobber with a match_operand and duplicated operand
21392 number in the constraint.
21393 (ineqbranchsi): Delete redundant comment.
21395 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
21397 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21398 builtin_define ("__USE_INIT_FINI__").
21399 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21401 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21403 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21405 PR documentation/30330
21406 * doc/invoke.texi (C++ Dialect Options)
21407 (Objective-C and Objective-C++ Dialect Options, Warning Options):
21408 For each warning option -Wfoo that allows -Wno-foo, ensure both
21409 -Wfoo and -Wno-foo are listed in the option index. Fix index
21410 entry of -Wswitch-default, index -Wnormalized= including the
21411 `=', and -Wlarger-than-@var{len} including @var{len}.
21413 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
21415 * config/i386/i386.md (floatunssisf2): Use
21416 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21417 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21418 Macroize expander using MODEF mode iterator.
21420 2008-02-05 Diego Novillo <dnovillo@google.com>
21422 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21425 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21427 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21430 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21432 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
21435 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21436 to indicate if a message should be generated.
21437 (init_cumulative_args): Updated.
21438 (function_value_32): Likewise.
21440 2008-02-05 Joseph Myers <joseph@codesourcery.com>
21442 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21444 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
21447 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21448 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21450 2008-02-04 Diego Novillo <dnovillo@google.com>
21452 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21455 * tree-vrp.c (vrp_evaluate_conditional): With
21456 -Wtype-limits, emit a warning when comparing against a
21457 constant outside the natural range of OP0's type.
21459 2008-02-04 Richard Guenther <rguenther@suse.de>
21461 PR middle-end/33631
21462 * expr.c (count_type_elements): Give for unions instead of
21465 2008-02-04 Richard Guenther <rguenther@suse.de>
21467 PR middle-end/35043
21468 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21469 to TYPE_DOMAINs base type instead of using bitsizetype here.
21471 2008-02-03 Jason Merrill <jason@redhat.com>
21473 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21475 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21478 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21479 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21480 (RS/6000 and PowerPC Options): Fix typos and markup.
21481 * doc/passes.texi (Tree-SSA passes): Likewise.
21483 2008-02-02 Michael Matz <matz@suse.de>
21486 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21487 from record_last_reg_set_info.
21488 (record_last_reg_set_info): Take an RTX argument, iterate over all
21489 constituent hardregs.
21490 (record_last_set_info, record_opr_changes): Change calls to
21491 new signature or to record_last_reg_set_info_regno.
21493 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
21495 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21497 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
21499 PR rtl-optimization/34773
21500 * reg-notes.def (EQUAL): Mention significance of combination of
21501 REG_EQUAL and REG_RETVAL.
21502 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21503 insn that has a REG_RETVAL.
21505 2008-02-01 Roger Sayle <roger@eyesopen.com>
21508 * configure.ac (--enable-fixed-point): Disable unless explicitly
21510 * configure: Regenerate.
21512 2008-02-01 Richard Guenther <rguenther@suse.de>
21515 * invoke.texi (-finline-limit): Remove no longer true parts
21516 of the documentation. Note that there is no default value.
21518 2008-02-01 Andrew Pinski <pinskia@gmail.com>
21519 Mark Mitchell <mark@codesourcery.com>
21520 Ben Elliston <bje@au.ibm.com>
21523 * doc/extend.texi (Other Builtins): Document.
21525 2008-01-31 Tom Browder <tom.browder@gmail.com>
21527 * doc/c-tree.texi (Types): Fix grammar.
21528 (Expression trees): Ditto.
21529 * doc/passes.texi (Tree-SSA passes): Ditto.
21531 * doc/configterms.texi (Configure Terms): Fix typo.
21532 * doc/cpp.texi (Common Predefined Macros): Ditto.
21533 * doc/md.texi (Machine Constraints): Ditto.
21535 * doc/makefile.texi (Makefile): Add comma.
21537 2008-01-31 Tom Browder <tom.browder@gmail.com>
21538 Gerald Pfeifer <gerald@pfeifer.com>
21540 * doc/sourcebuild.texi (Front End): Remove references to CVS
21541 and CVSROOT/modules.
21542 (Texinfo Manuals): Replace reference to CVS by one to SVN.
21543 (Back End): Remove reference to CVS.
21545 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21548 * config/mips/mips.c (gen_load_const_gp): New function, taking a
21550 (mips16_gp_pseudo_reg): ...here.
21551 * config/mips/mips.md (load_const_gp): Replace with...
21552 (load_const_gp_<mode>): ...this :P-based insn.
21554 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21556 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21557 options. Minor fixes.
21558 (-std): Move reference to standards closer to where language
21559 standards are first mentioned.
21561 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21563 PR rtl-optimization/34995
21564 * reload.c (alternative_allows_const_pool_ref): Take an rtx
21565 parameter and return a bool. If the rtx parameter is nonnull,
21566 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21567 (find_reloads): Update call accordingly. Pass the new operand
21568 if it needed no address reloads, otherwise pass null.
21570 2008-01-30 Richard Henderson <rth@redhat.com>
21573 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21574 for unbounded arrays.
21576 2008-01-30 Silvius Rus <rus@google.com>
21578 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21580 2008-01-30 Jan Hubicka <jh@suse.cz>
21583 * i386.c (init_cumulative_args): Use real function declaration when
21586 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
21588 PR rtl-optimization/34998
21589 * global.c (build_insn_chain): Treat non-subreg_lowpart
21590 SUBREGs of pseudos as clobbering all the words covered by the
21591 SUBREG, not just all the bytes.
21592 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
21593 original df_ref rather than an extract parameter.
21594 (global_conflicts): Update call accordingly.
21596 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
21598 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21599 the overflow check to make it easier to read.
21600 (__fixtfdi): Change the type of the ll member in union
21601 long_double to UDItype_x.
21603 2008-01-30 Jakub Jelinek <jakub@redhat.com>
21605 PR middle-end/34969
21606 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21607 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21608 * tree-inline.c (fold_marked_statements): Call
21609 cgraph_update_edges_for_call_stmt if folding a call statement.
21610 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21611 debug_generic_stmt calls, reset it back afterwards.
21614 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21616 * c-typeck.c (build_external_ref): Don't pedwarn about
21617 static vars in current function's scope.
21619 2008-01-29 Joseph Myers <joseph@codesourcery.com>
21621 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21623 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
21626 * ipa-struct-reorg.c: Fix spelling.
21627 * params.def: Ditto.
21629 2008-01-29 Richard Guenther <rguenther@suse.de>
21631 PR middle-end/35006
21632 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21634 * tree-inline.c (remap_type): Increment remapping_type_depth
21635 around remapping types.
21636 (copy_body_r): Only add referenced variables if they are referenced
21637 from code, not types.
21639 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
21650 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21651 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21653 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
21656 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21657 pointer for tiny stack.
21659 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21661 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21663 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21665 * config/vx-common.h: Fix typo in comment.
21667 2008-01-28 Ian Lance Taylor <iant@google.com>
21671 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21672 coalesce pointers if they have different DECL_NO_TBAA_P values.
21673 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21674 between variables with different DECL_NO_TBAA_P values.
21676 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
21679 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21680 are not legitimate small data references on SPE targets.
21682 2008-01-28 David Daney <ddaney@avtrex.com>
21684 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21686 2008-01-28 David Daney <ddaney@avtrex.com>
21688 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
21690 2008-01-27 Joseph Myers <joseph@codesourcery.com>
21692 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21693 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21694 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21695 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21696 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21697 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21698 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21699 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21701 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21703 * basic-block.h (condjump_equiv_p): Fix comment.
21705 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21707 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21708 print_generic_stmt_indented): Fix comment.
21710 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21712 * configure.ac (__stack_chk_fail): Add detecion for availability
21713 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21714 * configure: Regenerate.
21716 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
21718 PR middle-end/34688
21719 * final.c (output_addr_const): Handle TRUNCATE.
21721 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
21724 * tree-ssa-loop-ivopts.c (comp_cost): New type.
21725 (zero_cost, infinite_cost): New constants.
21726 (struct cost_pair): Change type of cost to comp_cost.
21727 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21728 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21730 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21731 split_address_cost, ptr_difference_cost, difference_cost,
21732 get_computation_cost_at, get_computation_cost,
21733 determine_use_iv_cost_generic, determine_use_iv_cost_address,
21734 determine_use_iv_cost_condition, determine_use_iv_costs,
21735 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21736 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21737 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21738 Change type of cost to comp_cost.
21739 (determine_iv_cost): Increase cost of non-original ivs, instead
21740 of decreasing the cost of original ones.
21741 (get_address_cost): Indicate the complexity of the addressing mode
21743 (try_add_cand_for): Prefer using ivs not specific to some object.
21744 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21746 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
21747 Janis Johnson <janis187@us.ibm.com>
21750 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21751 (TARGET_INSTANTIATE_DECLS): Likewise.
21752 * target.h (expand_to_rtl_hook): New target hook.
21753 (instantiate_decls): Likewise.
21754 * function.c (instantiate_decl): Make non-static. Rename to...
21755 (instantiate_decl_rtl): ... this.
21756 (instantiate_expr): Use instantiate_decl_rtl.
21757 (instantiate_decls_1): Likewise.
21758 (instantiate_decls): Likewise.
21759 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21760 * function.h (instantiate_decl_rtl): Add prototype.
21761 * cfgexpand.c (target.h): New include.
21762 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21763 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21764 (TARGET_INSTANTIATE_DECLS): Likewise.
21765 (TARGET_INITIALIZER): New target hooks added.
21766 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21768 * config/rs6000/rs6000.c (tree-flow.h): New include.
21769 (machine_function): Add sdmode_stack_slot field.
21770 (rs6000_alloc_sdmode_stack_slot): New function.
21771 (rs6000_instantiate_decls): Likewise.
21772 (rs6000_secondary_memory_needed_rtx): Likewise.
21773 (rs6000_check_sdmode): Likewise.
21774 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21775 (TARGET_INSTANTIATE_DECLS): Likewise.
21776 (rs6000_hard_regno_mode_ok): Allow SDmode.
21777 (num_insns_constant): Likewise. Handle _Decimal32 constants.
21778 (rs6000_emit_move): Handle SDmode.
21779 (function_arg_advance): Likewise.
21780 (function_arg): Likewise.
21781 (rs6000_gimplify_va_arg): Likewise. Add special handling of
21782 SDmode var args for 32-bit compiles.
21783 (rs6000_secondary_reload_class): Handle SDmode.
21784 (rs6000_output_function_epilogue): Likewise.
21785 (rs6000_function_value): Simplify if statement.
21786 (rs6000_libcall_value): Likewise.
21787 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21788 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21789 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21790 (movsd_hardfloat): New define_insn.
21791 (movsd_softfloat): Likewise.
21792 (movsd_store): Likewise.
21793 (movsd_load): Likewise.
21794 (extendsddd2): Likewise.
21795 (extendsdtd2): Likewise.
21796 (truncddsd2): Likewise.
21797 (movdd_hardfloat64): Fixup comment.
21798 (UNSPEC_MOVSD_LOAD): New constant.
21799 (UNSPEC_MOVSD_STORE): Likewise.
21801 2008-01-26 Jakub Jelinek <jakub@redhat.com>
21804 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21806 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21807 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21808 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21809 and TRUTH_XOR_EXPR.
21811 2008-01-26 David Edelsohn <edelsohn@gnu.org>
21814 * config.gcc: Separate AIX 5.3 from AIX 6.1.
21815 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21816 __LONGDOUBLE128 too.
21817 * config/rs6000/aix61.h: New file.
21819 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21821 PR rtl-optimization/34959
21822 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21823 popcount and parity rtxes the same mode as their operand.
21824 Truncate or extend the result to the return value's mode
21827 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21830 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21831 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21832 to GOT_VERSION_REGNUM.
21833 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21834 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21835 * config/mips/mips.c (mips_emit_call_insn): New function.
21836 (mips_call_tls_get_addr): Call mips_expand_call directly.
21837 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21839 (mips16_build_call_stub): Likewise. Return the call insn or null.
21840 (mips_expand_call): Update the call to mips16_build_call_stub
21841 accordingly and a remove redundant condition. Assert that MIPS16
21842 stubs do not use lazy binding. Use mips_emit_call_insn and return
21844 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21846 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21847 (mips_avoid_hazard): Remove hazard_set handling.
21848 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21849 (UNSPEC_RESTORE_GP): ...this.
21850 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21851 (FAKE_CALL_REGNO): Rename to...
21852 (GOT_VERSION_REGNUM): ...this.
21853 (type): Add "ghost" value. Add an associated insn reservation.
21854 (hazard_set): Remove.
21855 (exception_receiver): Rename to...
21856 (restore_gp): ...this and update the unspec identifier accordingly.
21857 (exception_receiver, nonlocal_got_receiver): New expanders.
21858 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
21859 FAKE_CALL_REGNO. Remove hazard_set attribute.
21860 (set_got_version, update_got_version): New patterns.
21862 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
21865 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21867 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21870 * doc/install.texi2html: Generate gcc-vers.texi.
21872 2008-01-25 DJ Delorie <dj@redhat.com>
21874 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21876 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21878 * config/c4x: Remove directory.
21879 * config.gcc (crx-*, mt-*): Mark obsolete.
21880 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21881 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21882 sh-*-rtemscoff*): Remove cases.
21883 * defaults.h (C4X_FLOAT_FORMAT): Remove.
21884 * real.c (encode_c4x_single, decode_c4x_single,
21885 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21886 c4x_extended_format): Remove.
21887 * real.h (c4x_single_format, c4x_extended_format): Remove.
21888 * doc/extend.texi (interrupt, naked): Remove mention of attributes
21890 (Pragmas): Remove comment about c4x pragmas.
21891 * doc/install.texi (c4x): Remove target-specific instructions.
21892 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21893 * doc/md.texi (Machine Constraints): Remove C4x documentation.
21894 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21895 refer to C4x source files as examples.
21896 (C4X_FLOAT_FORMAT): Remove documentation.
21898 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
21900 * config/bfin/bfin.c (override_options): Reorder tests so that
21901 flag_pic gets enabled for -msep-data.
21903 2008-01-25 Richard Guenther <rguenther@suse.de>
21905 PR middle-end/32244
21906 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21907 to its bitfield precision if required.
21909 2008-01-25 Jakub Jelinek <jakub@redhat.com>
21911 PR middle-end/33880
21912 * tree-nested.c (walk_omp_for): New function.
21913 (convert_nonlocal_reference, convert_local_reference): Call
21914 walk_omp_for on OMP_FOR.
21915 (convert_call_expr): Call walk_body on OMP_FOR's
21916 OMP_FOR_PRE_INIT_BODY.
21918 2008-01-25 Richard Guenther <rguenther@suse.de>
21920 PR tree-optimization/34966
21921 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21922 default defs and PHI_NODEs we have to insert after the
21923 defining statement.
21925 2008-01-24 Nick Clifton <nickc@redhat.com>
21927 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21928 Provide a default definition.
21929 (LIBGCC2_UNITS_PER_WORD): Likewise.
21931 * config/stormy16/stormy16.c: Include df.h for the prototype
21932 for df_regs_ever_live_p.
21933 (xstormy16_expand_builtin_va_start): Convert the stack offset
21934 into a component_ref and then use POINTER_PLUS_EXPR to add it
21935 to the incoming_virtual_args_rtx.
21936 (xstormy16_gimplify_va_arg_expr): Rename to
21937 xstormy16_gimplify_va_arg_expr.
21938 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21939 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21940 xstormy16_gimplify_va_arg_expr.
21941 Fix up some formatting issues.
21943 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21944 Move to predicates.md.
21945 (xs_hi_general_operand): Likewise.
21946 (xs_hi_nonmemory_operand): Likewise.
21947 * config/stormy16/predicates.md:
21948 (xstormy16_carry_plus_operand): New predicate.
21949 (xs_hi_general_operand): New predicate.
21950 (xs_hi_nonmemory_operand): New predicate.
21951 * config/stormy16/stormy16-protos.h:
21952 (xstormy16_carry_plus_operand): Delete prototype.
21953 (xs_hi_general_operand): Likewise.
21954 (xs_hi_nonmemory_operand): Likewise.
21956 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21957 modifiers as they are no longer needed and they can trigger
21958 reload spill failures.
21960 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21961 with a match_operand in order to help reload.
21963 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21964 constraint with 'e' for the 8th alternative as this version of
21965 the mov.w instruction only accepts the lower 8 registers.
21967 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
21970 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21971 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21974 2008-01-25 Jakub Jelinek <jakub@redhat.com>
21976 PR middle-end/33333
21977 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21979 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
21981 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21983 (remove_structure): Update allocations list before removing structure.
21985 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
21987 * ipa-struct-reorg.c (is_safe_cond_expr,
21988 create_new_stmts_for_cond_expr): Use integer_zerop function,
21989 that recognize not only zero-pointer, but zero-integer too.
21991 2008-01-25 Ben Elliston <bje@au.ibm.com>
21994 * fixproto: Escape "." in sed expression that strips leading "./".
21996 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
21999 * gcc.c (SWITCH_OK): Removed.
22000 (SWITCH_LIVE): Changed to bit.
22001 (SWITCH_FALSE): Likewise.
22002 (SWITCH_IGNORE): Likewise.
22003 (switchstr): Change live_cond to unsigned int.
22004 (process_command): Replace SWITCH_OK with 0.
22005 (do_self_spec): Likewise.
22006 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
22007 (give_switch): Likewise.
22008 (used_arg): Likewise.
22009 (do_spec_1): Set the SWITCH_IGNORE bit.
22010 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
22011 bits. Set the SWITCH_LIVE bit.
22013 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
22015 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
22017 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
22019 PR tree-optimization/34472
22020 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
22021 parameter to a "bool *" and set *DATA to false if there is
22022 an unsafe access. Do not delete the structure here.
22023 (check_cond_exprs): Delete it here instead.
22024 (check_cond_exprs, exclude_cold_structs): Do not increase
22025 I when removing a structure.
22027 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
22030 * config/i386/i386.c (ix86_expand_vector_init): Consider only
22031 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
22033 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
22035 PR middle-end/34934
22036 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
22037 a fixed vector for stack.
22039 2008-01-24 Ben Elliston <bje@au.ibm.com>
22042 * doc/gcc.texi (Software development): Add a direntry for g++.
22044 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
22046 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
22047 stale and straggling -fforce-addr comments above.
22049 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
22051 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
22052 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
22054 2008-01-23 Michael Matz <matz@suse.de>
22057 * dwarf2out.c (force_type_die): Use modified_type_die instead of
22060 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
22062 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
22063 malloc result type.
22065 2008-01-23 Anatoly Sokolov <aesok@post.ru>
22067 * config/avr/avr.c (avr_current_arch): New variable.
22068 (avr_arch_types): Add 'avr31' and 'avr51' entries.
22069 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
22070 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
22071 (avr_override_options): Init 'avr_current_arch'.
22072 (base_arch_s): Move from here...
22073 * config/avr/avr.h (base_arch_s): ... here. Add new members
22074 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
22075 'mega' to 'have_jmp_call'.
22076 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
22077 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
22079 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
22081 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22082 MULTILIB_MATCHES): Ditto.
22084 2008-01-23 Richard Guenther <rguenther@suse.de>
22086 PR middle-end/31529
22087 * cgraphunit.c (cgraph_reset_node): Always mark the node
22088 not reachable if it is not queued already.
22090 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
22092 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
22093 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
22094 (cputype_selected): New static variable.
22095 (bfin_handle_option): Set it if -mcpu is used.
22096 (override_option): Select default set of workarounds if no cpu type
22097 selected on the command line.
22098 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
22100 From Michael Frysinger <michael.frysinger@analog.com>
22101 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
22102 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
22104 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
22105 for bf547, bf523, bf524, and bf526.
22106 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
22108 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22109 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
22110 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
22111 __ADSPBF547__ and __ADSPBF54x__ for bf547.
22112 * doc/invoke.texi (Blackfin Options): Document that
22113 -mcpu now accept bf547, bf523, bf524, and bf526.
22115 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
22117 PR rtl-optimization/34628
22118 * combine.c (try_combine): Stop and undo after the first combination
22119 if an autoincrement side-effect on the first insn has effectively
22122 2008-01-22 David Edelsohn <edelsohn@gnu.org>
22125 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22126 Offset addresses are not valid for Altivec or paired float modes.
22128 2008-01-22 Jakub Jelinek <jakub@redhat.com>
22131 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
22132 if DECL_INITIAL (decl) is error_mark_node.
22135 * c-common.c (handle_vector_size_attribute): Only allow
22136 integral, scalar float and fixed point types. Handle OFFSET_TYPE
22137 the same way as pointer, array etc. types.
22138 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
22141 * tree.c (build_type_attribute_qual_variant): Call
22142 build_qualified_type if attributes are equal, but quals are not.
22144 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22147 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
22148 * flags.h (warn_strict_aliasing): Remove.
22149 (warn_strict_overflow): Remove.
22150 * opts.c (warn_strict_aliasing): Remove.
22151 (warn_strict_overflow): Remove.
22152 * c-opts.c (c_common_handle_option): -Wall only sets
22153 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
22154 (c_common_post_options): Give default values to -Wstrict-aliasing
22155 and -Wstrict-overflow if they are uninitialized.
22156 * common.opt (Wstrict-aliasing): Specify Var and Init.
22157 (Wstrict-overflow): Likewise.
22159 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
22161 PR rtl-optimization/26854
22162 PR rtl-optimization/34400
22163 PR rtl-optimization/34884
22164 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
22166 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
22167 (df_rd_bb_info.expanded_lr_out): Deleted
22168 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
22169 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
22170 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22171 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22172 Removed code to allocate, initialize or free expanded_lr_out.
22173 (df_rd_bb_local_compute_process_def): Restructured to make more
22175 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
22176 sets if the sets are being trimmed.
22178 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
22181 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
22182 (as_vers): Likewise.
22183 * configure: Regenerated.
22185 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22187 PR middle-end/33092
22188 * tree-pass.h (pass_build_alias): New pass.
22189 * tree-ssa-alias.c (gate_build_alias): New.
22190 (pass_build_alias): New.
22191 * passes.c (init_optimization_passes): Add pass_build_alias after
22192 pass_create_structure_vars.
22194 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
22196 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
22197 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
22198 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
22199 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
22200 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
22201 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
22202 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
22203 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
22204 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
22205 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
22206 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
22207 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
22208 * config/s390/s390.md (FP_ALL): New mode iterator.
22209 (_d): New mode attribute.
22210 ("*signbit<mode>2>"): Changed mode of first operand.
22211 ("isinf<mode>2"): Changed mode of first operand.
22212 ("*TDC_insn"): Adaptation for DFP modes.
22214 2008-01-22 Ben Elliston <bje@au.ibm.com>
22216 * tree.c (check_qualified_type): Improve function description.
22218 2008-01-21 Jason Merrill <jason@redhat.com>
22221 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
22222 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
22225 2008-01-21 DJ Delorie <dj@redhat.com>
22227 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
22230 2008-01-21 Richard Guenther <rguenther@suse.de>
22232 PR middle-end/34856
22233 * tree-cfg.c (verify_expr): Allow all invariant expressions
22234 instead of just constant class ones as reference argument.
22235 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
22236 like any other constant.
22237 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22239 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
22241 * regmove.c (fixup_match_1): Update call crossed frequencies.
22243 2008-01-21 Richard Guenther <rguenther@suse.de>
22246 * tree-inline.c (setup_one_parameter): Deal with mismatched
22247 types using a VIEW_CONVERT_EXPR.
22249 2008-01-21 Alon Dayan <alond@il.ibm.com>
22250 Olga Golovanevsky <olga@il.ibm.com>
22252 PR tree-optimization/34701
22253 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
22254 when the structure size is not a power of 2.
22256 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
22258 * doc/install.texi: Add doc for --enable-checking=df.
22260 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
22262 PR rtl-optimization/34808
22263 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
22265 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
22267 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
22270 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
22272 PR rtl-optimization/26854
22273 PR rtl-optimization/34400
22274 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
22276 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
22277 (df_rd_bb_info.expanded_lr_out): New.
22278 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
22279 * loop_iv.c (iv_analysis_loop_init): Ditto.
22280 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22281 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22282 Added code to allocate, initialize or free expanded_lr_out.
22283 (df_rd_bb_local_compute_process_def): Restructured to make
22284 more understandable.
22285 (df_rd_confluence_n): Add code to do nothing with fake edges and
22286 code to no apply invalidate_by_call sets if the sets are being trimmed.
22287 (df_lr_local_finalize): Renamed to df_lr_finalize.
22288 (df_live_local_finalize): Renamed to df_live_finalize.
22290 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
22293 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
22294 deciding whether to use reciprocal instructions.
22296 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
22298 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
22299 dwarf2out_note_section_used if cold_text_section is NULL.
22301 2008-01-19 Jakub Jelinek <jakub@redhat.com>
22303 PR gcov-profile/34610
22304 * tree-cfg.c (make_edges): Mark both outgoing edges from
22305 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
22306 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
22307 from OMP_FOR and OMP_CONTINUE outgoing edges.
22309 * tree-profile.c (tree_profiling): Return early if
22310 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
22312 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
22313 from cfun to child_cfun.
22314 * function.h (struct function): Add after_tree_profile bit.
22316 2008-01-19 Anatoly Sokolov <aesok@post.ru>
22318 * config/avr/avr.S (_exit): Disable interrupt.
22320 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
22321 Steven Bosscher <stevenb.gcc@gmail.com>
22323 PR rtl-optimization/26854
22324 PR rtl-optimization/34400
22325 * df-problems.c (df_live_scratch): New scratch bitmap.
22326 (df_live_alloc): Allocate df_live_scratch when doing df_live.
22327 (df_live_reset): Clear the proper bitmaps.
22328 (df_live_bb_local_compute): Only process the artificial defs once
22329 since the order is not important.
22330 (df_live_init): Init the df_live sets only with the variables
22331 found live by df_lr.
22332 (df_live_transfer_function): Use the df_lr sets to prune the
22333 df_live sets as they are being computed.
22334 (df_live_free): Free df_live_scratch.
22336 2008-01-18 Ian Lance Taylor <iant@google.com>
22338 * common.opt: Add fmerge-debug-strings.
22339 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
22340 flag_merge_debug_strings rather than flag_merge_constants.
22341 * doc/invoke.texi (Option Summary): Mention
22342 -fmerge-debug-strings.
22343 (Debugging Options): Document -fmerge-debug-strings.
22345 2008-01-18 Ian Lance Taylor <iant@google.com>
22348 * tree.h (DECL_IS_OPERATOR_NEW): Define.
22349 (struct tree_function_decl): Add new field operator_new_flag.
22350 * tree-inline.c (expand_call_inline): When inlining a call to
22351 operator new, force the return value to go into a variable, and
22352 set DECL_NO_TBAA_P on that variable.
22353 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
22355 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
22358 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
22359 DWARF2_DEBUGGING_INFO.
22360 (dwarf2out_note_section_used): Ditto. Add prototype.
22361 (have_multiple_function_sections, text_section_used,
22362 cold_text_section_used, *cold_text_sections): Move declarations
22365 2008-01-17 Bob Wilson <bob.wilson@acm.org>
22367 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22368 field and add signal_ra.
22369 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22370 assignments to frame state pc. Move end of stack check after
22371 MD_FALLBACK_FRAME_STATE_FOR.
22372 (uw_update_context_1): Use frame state signal_regs if set, instead
22373 of checking signal_frame flag.
22374 (uw_update_context): Use frame state signal_ra if set.
22375 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22376 * config/xtensa/linux-unwind.h: New file.
22378 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
22380 * modulo-sched.c (get_sched_window): Fix comment typo.
22382 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
22384 PR tree-optimization/34648
22385 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22387 2008-01-17 Anatoly Sokolov <aesok@post.ru>
22389 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22390 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22392 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
22394 PR rtl-optimization/34400
22395 * df-core.c (df_worklist_dataflow_overeager,
22396 df_worklist_dataflow_doublequeue): New functions.
22397 (df_worklist_dataflow): Two different worklist solvers.
22398 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22401 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22404 * doc/invoke.texi: Document the dependence on pthread for fopenmp
22405 and ftree-parallelize-loops.
22407 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
22409 PR rtl-optimization/34826
22410 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22412 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
22414 * global.c (find_reg): Mark the eh regs as used if necessary.
22415 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22416 * ra.h (struct allocno): no_eh_reg field added. Changed
22417 no_stack_reg type to bitfield.
22419 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
22421 * tree.c (substitute_in_expr): Add missing 'break'.
22423 2008-01-17 Richard Guenther <rguenther@suse.de>
22425 PR tree-optimization/34825
22426 * tree-ssa-math-opts.c (is_division_by): Do not recognize
22427 x / x as division to handle.
22429 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22431 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22432 "-pthread" is specified.
22433 * pa-hpux11.h (LIB_SPEC): Likewise.
22435 2008-01-16 Janis Johnson <janis187@us.ibm.com>
22436 Peter Bergner <bergner@vnet.ibm.com>
22438 PR rtl-optimization/33796
22439 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22441 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22443 PR libgfortran/34699
22444 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22446 * pa-hpux10.h (LINK_SPEC): Likewise.
22447 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22449 2008-01-16 Richard Guenther <rguenther@suse.de>
22451 PR middle-end/32628
22452 * fold-const.c (fold_convert_const_int_from_int): Do not
22453 set overflow if that occured only because of a sign extension
22454 change when converting from/to a sizetype with the same
22455 precision and signedness.
22457 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
22460 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22461 location address to the correct place. Update copyright year.
22463 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22465 * lambda-code.c (lambda_transform_legal_p): Handle the case of
22466 no dependences in the dependence_relations vector.
22468 2008-01-16 Jan Hubicka <jh@suse.cz>
22470 PR rtl-optimization/31396
22471 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22472 * cfg.c (dump_reg_info): Print it.
22473 * regs.h (struct reg_info_t): add freq_calls_crossed.
22474 (REG_FREQ_CALLS_CROSSED): New macro.
22475 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22476 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22477 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22478 regmove_optimize): Update call crossed frequencies.
22479 * local-alloc.c (struct qty): Add freq_calls_crossed.
22480 (alloc_qty): Copute freq_calls_crossed.
22481 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22482 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22483 * ra.h (struct allocno): Add freq_calls_crossed.
22485 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22487 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22488 libgomp when compiling with ftree-parallelize-loops.
22489 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22491 2008-01-16 Richard Guenther <rguenther@suse.de>
22493 PR tree-optimization/34769
22494 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22495 * tree.c (int_cst_value): Instead make this function more
22496 permissive in what it accepts as valid input. Document this
22497 function always sign-extends the value.
22499 2008-01-16 Jakub Jelinek <jakub@redhat.com>
22500 Richard Guenther <rguenther@suse.de>
22503 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22504 (gimple_fold_indirect_ref_rhs): ... this.
22505 (gimple_fold_indirect_ref): New function with foldings
22506 that preserve lvalueness.
22507 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22508 * tree-flow.h (gimple_fold_indirect_ref): Declare.
22509 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22510 to fold an INDIRECT_REF, fall back to the old use of
22511 fold_indirect_ref_1.
22513 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22515 * tree-data-ref.c (subscript_dependence_tester_1): Call
22516 free_conflict_function.
22517 (compute_self_dependence): Same.
22519 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
22522 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22523 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
22525 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22526 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22527 for DWARF2_UNWIND_INFO targets.
22529 2008-01-16 Richard Guenther <rguenther@suse.de>
22532 * c-typeck.c (common_pointer_type): Do not merge inconsistent
22533 type qualifiers for function types.
22535 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
22537 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22538 loop_iterator li from previous commit.
22540 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
22542 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22544 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22546 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22547 (parallelize_loops): Don't parallelize irreducible components.
22549 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22552 * c-opts (c_common_post_options): Do not enable CPP
22553 flag_pedantic_errors by default.
22555 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
22557 PR rtl-optimization/31944
22558 * cse.c (remove_pseudo_from_table): New function.
22559 (merge_equiv_classes): Use above function to remove pseudo-registers.
22560 (invalidate): Likewise.
22562 2008-01-13 Richard Guenther <rguenther@suse.de>
22564 PR middle-end/34601
22565 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22566 instead of TYPE_MODE to deal with calls from expand_one_error_var.
22568 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
22570 * gcse.c (cprop_jump): Call validate_unshare_change instead of
22571 validate_change to unshare the source of the PC set.
22573 2008-01-12 Jan Hubicka <jh@suse.cz>
22575 PR middle-end/32135
22576 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22577 references above array bounds. This might trigger bounds checks for
22578 pointers to arrays.
22580 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22582 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22583 new_replaceable_dependencies.
22585 2008-01-12 Doug Kwan <dougkwan@google.com>
22587 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22588 instead of OPT_Wreturn_type in warning due to ignored return type
22590 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22591 options included in -Wextra.
22592 * c.opt: New option -Wignored_qualifiers.
22593 * doc/invoke.texi (Warning Options, -Wextra): Add new option
22594 -Wignore_qualifiers.
22595 (-Wignored-qualifiers): Document.
22596 (-Wreturn-type): Remove description of functionality now handled
22597 by -Wignored-qualifiers.
22599 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
22602 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22603 NOP_EXPR if it is between integral types with the same precision.
22605 2008-01-12 Jan Hubicka <jh@suse.cz>
22608 * invoke.texi (max-inline-recursive-depth): Fix default value.
22610 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
22612 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22615 2008-01-11 Bob Wilson <bob.wilson@acm.org>
22617 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22619 2008-01-11 James E. Wilson <wilson@specifix.com>
22622 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22624 2008-01-11 Anatoly Sokolov <aesok@post.ru>
22626 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22627 save/restore frame pointer register and don't use 'call-prologues'
22628 optimization in function with "OS_task" attribute.
22630 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
22632 PR middle-end/31309
22633 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22634 when copying to memory.
22636 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
22638 PR rtl-optimization/30905
22639 * cfgcleanup.c: Include dce.h
22640 (crossjumps_occured): New global variable.
22641 (try_crossjump_bb): Exit loop after finding a fallthru edge.
22642 If something changed, set crossjumps_occured to true.
22643 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22644 Don't add/remove fake edges to exit here...
22645 (cleanup_cfg): ...but do it here, when crossjumping.
22646 Run a fast DCE when successful crossjumps occured in the latest
22647 iteration of try_optimize_cfg.
22649 2008-01-11 Richard Guenther <rguenther@suse.de>
22651 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22652 (struct vn_unary_op_s): Likewise.
22653 (vn_reference_insert): Free old reference on hash collision.
22655 2008-01-10 Raksit Ashok <raksit@google.com>
22657 PR rtl-optimization/27971
22658 * combine.c (find_split_point): Split PLUS expressions which are
22659 inside a MEM rtx, and whose first operand is complex.
22661 2008-01-10 DJ Delorie <dj@redhat.com>
22663 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22664 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22665 (m32c_hard_regno_ok): Call the underlying function.
22667 2008-01-10 Richard Guenther <rguenther@suse.de>
22669 PR middle-end/34683
22670 * tree-cfg.c (tree_merge_blocks): Do not go through the
22671 full-blown folding and stmt updating path if we just deal
22672 with virtual operands.
22673 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22674 test for abnormal SSA_NAMEs.
22676 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
22678 PR middle-end/34641
22679 * reload.c (push_reload): Add assertions. All constants from
22680 reg_equiv_constant should have been used for replacing the respective
22682 (find_reloads_address): Invoke find_reloads_address_part for
22683 constant taken from the reg_equiv_constant array.
22685 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
22687 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22688 field (valnum) the first in the struct. Replace bools with
22691 2008-01-10 Richard Guenther <rguenther@suse.de>
22693 PR tree-optimization/34651
22694 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
22695 types and ordering for masking and converting.
22697 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
22699 PR tree-optimization/34017
22700 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22701 also for PHI_NODE expressions.
22703 2008-01-09 Jan Hubicka <jh@suse.cz>
22705 PR tree-optimization/34708
22706 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22707 based on number of case labels.
22708 (init_inline_once): Remove switch_cost.
22709 * tree-inline.h (eni_weights_d): Remove switch_cost.
22711 2008-01-09 Richard Guenther <rguenther@suse.de>
22712 Andrew Pinski <andrew_pinski@playstation.sony.com>
22714 PR middle-end/30132
22715 * gimplify.c (gimplify_cond_expr): Do not create an addressable
22716 temporary if an rvalue is ok or an lvalue is not required.
22718 2008-01-09 Richard Guenther <rguenther@suse.de>
22720 PR middle-end/34458
22721 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22722 adjust return type.
22724 2008-01-09 Richard Guenther <rguenther@suse.de>
22726 PR middle-end/34679
22727 * tree.c (host_integerp): Check for sizetype only if the
22728 type is an integer type.
22730 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
22733 * opts.c (decode_options): Disable inlining of functions called
22734 once if not in unit-at-a-time mode.
22736 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
22738 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22740 2008-01-08 Richard Guenther <rguenther@suse.de>
22742 PR middle-end/31863
22743 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22744 out early if the result will be unused.
22746 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22751 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22752 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22755 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
22757 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22758 for vectorization tuned.
22760 2008-01-08 Richard Guenther <rguenther@suse.de>
22762 PR tree-optimization/34683
22763 * tree-ssa-operands.c (operand_build_cmp): Export.
22764 * tree-ssa-operands.h (operand_build_cmp): Declare.
22765 * tree-vn.c (vuses_compare): Remove.
22766 (sort_vuses): Use operand_build_cmp.
22767 (sort_vuses_heap): Likewise.
22768 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22769 to re-use old VEC if available. Do not sort already sorted VUSEs.
22770 (vdefs_to_vec): Do not sort already sorted VDEFs.
22772 2008-01-08 Jakub Jelinek <jakub@redhat.com>
22774 PR middle-end/34694
22775 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22777 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22780 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22781 limitations of reciprocal sequences on x86 targets.
22783 2008-01-08 Richard Guenther <rguenther@suse.de>
22785 PR tree-optimization/34683
22786 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22788 2008-01-07 Jakub Jelinek <jakub@redhat.com>
22791 * config/darwin.c (darwin_mergeable_string_section): Don't use
22792 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22794 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
22797 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22798 negxf2. Macroize expander using X87MODEF mode iterator. Change
22799 predicates of op0 and op1 to register_operand.
22800 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
22801 expander using X87MODEF mode iterator. Change predicates of
22802 op0 and op1 to register_operand.
22803 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22804 corresponding patterns and macroize using MODEF macro. Change
22805 predicates of op0 and op1 to register_operand and remove
22806 "m" constraint. Disparage "r" alternative with "!".
22807 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22808 macroize using X87MODEF macro. Change predicates of op0 and op1
22809 to register_operand and remove "m" constraint. Disparage "r"
22810 alternative with "!".
22811 (absneg splitter with memory operands): Remove.
22812 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22813 patterns and macroize using X87MODEF mode iterator.
22814 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22815 Change predicate of op1 to register_operand.
22816 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22817 for memory operands.
22819 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
22821 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22823 2008-01-07 Richard Guenther <rguenther@suse.de>
22825 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22828 2008-01-07 Richard Guenther <rguenther@suse.de>
22830 PR tree-optimization/34683
22831 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22832 VOPs of the needed size to save memory. Use VEC_quick_push
22833 to save compile-time.
22834 (vdefs_to_vec): Likewise.
22836 2008-01-07 Sa Liu <saliu@de.ibm.com>
22838 * config/spu/spu.md (divdf3): Genetate inline code for double
22839 division. The implementation doesn't handle INF or NAN, therefore it
22840 only applies when -ffinite-math-only is given.
22842 2008-01-06 Paolo Carlini <pcarlini@suse.de>
22845 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22846 * doc/cpp.texi ([Common Predefined Macros]): Document.
22848 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
22850 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22851 order to use commutative addition instead of subtraction.
22853 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
22854 Mircea Namolaru <namolaru@il.ibm.com>
22855 Vladimir Yanovsky <yanov@il.ibm.com>
22856 Revital Eres <eres@il.ibm.com>
22858 PR tree-optimization/34263
22859 * tree-outof-ssa.c (process_single_block_loop_latch,
22860 contains_tree_r): New functions.
22861 (analyze_edges_for_bb): Call process_single_block_loop_latch
22862 function to empty single-basic-block latch block if possible.
22864 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22866 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22868 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22870 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22872 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22874 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22876 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22878 2008-01-05 Jakub Jelinek <jakub@redhat.com>
22880 PR tree-optimization/34618
22881 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22884 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22887 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22888 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
22889 Update copyright year.
22891 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22892 Update copyright year.
22893 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22896 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
22898 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22899 edge does not point to current bb before changing need_assert.
22901 2008-01-04 Richard Guenther <rguenther@suse.de>
22903 PR middle-end/34029
22904 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22905 for verifying purposes if they are is_gimple_min_invariant.
22907 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
22909 PR tree-optimization/34448
22910 PR tree-optimization/34465
22911 * gimplify.c (gimplify_init_constructor): Add new parameter
22912 notify_temp_creation. Use it.
22913 (gimplify_modify_expr_rhs): Take volatiles into account when
22914 optimizing constructors.
22915 Do not optimize constructors if gimplify_init_constructor will dump to
22917 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22918 * gcc.c-torture/compile/pr34448.c: New.
22920 2008-01-04 Jakub Jelinek <jakub@redhat.com>
22922 PR gcov-profile/34609
22923 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22924 return_slot if result is TREE_ADDRESSABLE.
22926 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
22928 * config/mips/mips.md (sqrt_condition): Tweak comment.
22929 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
22931 2008-01-03 Tom Tromey <tromey@redhat.com>
22934 * c-common.c (c_type_hash): Handle VLAs.
22936 2008-01-03 Jan Hubicka <jh@suse.cz>
22938 PR tree-optimization/31081
22939 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22940 0 when inlining and not inlining to first basic block.
22941 (remap_decl): When var is initialized to 0, don't set default_def.
22942 (expand_call_inline): Set entry_bb.
22943 * tree-inline.h (copy_body_data): Add entry_bb.
22945 2008-01-03 Jakub Jelinek <jakub@redhat.com>
22948 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22951 PR tree-optimization/29484
22952 * tree-inline.c (inline_forbidden_p_2): New function.
22953 (inline_forbidden_p): Disallow inlining if some static var
22954 has an address of a local LABEL_DECL in its initializer.
22955 * doc/extend.texi (Labels as Values): Document &&foo behaviour
22958 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
22960 PR tree-optimization/34635
22961 * tree-data-ref.c (add_other_self_distances): Make sure that the
22962 evolution step is constant.
22964 2008-01-03 Jakub Jelinek <jakub@redhat.com>
22966 PR middle-end/34608
22967 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22969 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
22971 * tree-sra.c (scalarize_init): Insert the generate_element_init
22972 statements after the generate_element_zero statements.
22974 2008-01-02 Richard Guenther <rguenther@suse.de>
22976 PR middle-end/34093
22977 PR middle-end/31976
22978 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22979 for very large number of operands instead of ICEing.
22981 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
22984 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22985 while stack probing.
22987 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
22989 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22992 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
22994 PR libmudflap/26442
22995 * tree-mudflap.c (mx_register_decls): Guard warning by
22996 !DECL_ARTIFICIAL check.
22998 2008-01-01 Jakub Jelinek <jakub@redhat.com>
23000 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
23001 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
23002 sse5_perm<mode>): Fix constraints.