1 2006-02-08 Paolo Bonzini <bonzini@gnu.org>
3 * passes.c (register_one_dump_file): Accept the current properties
4 instead of pass number. Adjust call to dump_register. Remove
6 (register_dump_files): Now a wrapper around...
7 (register_dump_files_1): ... this one. Do not modify the pass
9 (next_pass_1): Cosmetic fix.
10 (execute_todo): Keep second parameter only. Use curr_properties instead
11 of fetching it from the pass structure. Check and set last_verified.
12 (execute_one_pass): Handle TODO_set_props. Use curr_properties
13 instead of fetching it from the pass structure. Fix calls to
14 execute_todo. Update curr_properties and initialize .vcg RTL dump
15 after running the pass. Reset last_verified.
16 * tree-dump.c (dump_files): Renumber consecutively. Put .cgraph dump
18 (FIRST_AUTO_NUMBERED_DUMP): New.
19 (dump_register): Remove "num" parameter, assign it within the
21 (get_dump_file_name): Modify template for dumps.
22 * tree-dump.h (dump_register): Adjust prototype.
23 * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
24 (PROP_trees): Add PROP_gimple_lomp.
25 (TODO_set_props): New.
26 * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
27 * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
28 * cfgexpand.c (pass_expand): Destroy PROP_trees.
31 2006-02-08 Jakub Jelinek <jakub@redhat.com>
33 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
34 (sparc64-*-linux*): Likewise.
35 * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
36 * config/sparc/t-linux: New file.
37 * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
38 __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
39 (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
40 -m32 -mlong-double-128.
42 * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
43 * config/alpha/t-linux: New file.
44 * config/alpha/libgcc-alpha-ldbl.ver: New file.
46 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
47 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
48 (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
49 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
50 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
51 (CPP_ARCH32_SPEC): Remove.
53 2006-02-07 Uttam Pawar <uttamp@us.ibm.com>
55 PR tree-optimization/26145
56 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
59 2006-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
62 * pa.c (attr_length_indirect_call): Don't return length 8 for distances
63 >= 240000 when generating code for SOM runtime.
64 (output_indirect_call): Don't use "b,l" instruction for indirect calls
65 to $$dyncall when generating code for SOM runtime..
67 2006-02-07 Dirk Mueller <dmueller@suse.com>
70 * doc/invoke.texi (-Wsequence-point): Update documentation
71 that -Wsequence-point is implemented for C++ as well.
73 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
75 * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
76 * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
78 * doc/invoke.texi (SPARC options): Document -pthread.
80 2006-02-07 Geoffrey Keating <geoffk@apple.com>
82 * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
85 2006-02-07 Roger Sayle <roger@eyesopen.com>
87 * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
88 Correct comment describing BOOLEAN_TYPE.
90 2006-02-07 Dirk Mueller <dmueller@suse.com>
92 * c.opt: C++ frontend supports -Wdiv-by-zero.
93 * c-opts.c (c_common_handle_option): Remove dead case.
95 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
97 * configure.ac (TLS assembler check): Do not enable TLS by
98 default on SPARC/Solaris before version 10.
99 * configure: Regenerate.
101 2006-02-07 David Edelsohn <edelsohn@gnu.org>
103 * doc/invoke.texi (xl-compat): Document conversion and support
106 2006-02-07 Jeff Law <law@redhat.com>
108 * tree-vrp.c (find_conditional_asserts): Update comments.
109 (simplify_stmt_for_jump_threading): New.
110 (identify_jump_threads, finalize_jump_threads): New.
111 (vrp_finalize): Call identify_jump_threads.
112 (execute_vrp): Call finalize_jump_threads.
113 * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
114 (vrp_element, vrp_data, vrp_element_p): Remove.
115 (vrp_hash_elt, vrp_variables_stack): Remove.
116 (vrp_hash, vrp_eq, record_range): Remove.
117 (simplify_cond_and_lookup_avail_expr): Remove.
118 (extract_range_from_cond): Remove.
119 (thread_across_edge): Relocated into tree-ssa-threadedge.c.
120 (simplify_stmt_for_jump_threading): New.
121 (dom_thread_across_edge): New wrapper.
122 (tree_ssa_dominator_optimize): No longer initialize or
123 finalize any of the VRP datastructures. Remove iteration
124 step and simplify as a result of removal of iteration step.
125 (pass_dominator): Perform a cfg cleanup after DOM.
126 (dom_opt_finalize_block): Use the new common routines
127 for threading jumps. Simplify stack management slightly.
128 No longer need to unwind VRP state.
129 (record_equivalences_from_incoming_edge): No longer record
131 (eliminate_redundant_computations): No longer call
132 simplify_cond_and_lookup_avail_expr.
133 * tree-flow.h (potentially_threadable_block): Prototype.
134 (thread_across_edge): Likewise.
135 * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
136 (tree-ssa-threadedge.o): Add dependencies.
137 * tree-ssa-threadedge.c: New file.
138 * passes.c (init_optimization_passes): Merge PHIs before
139 calling VRP. Run VRP again late in the SSA optimization pipeline.
141 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
143 * df-core.c (df_set_blocks): Do not dereference function pointers.
144 (df_finish1): Likewise.
145 (df_hybrid_search_forward): Likewise.
146 (df_hybrid_search_backward): Likewise.
147 (df_iterative_dataflow): Likewise.
148 (df_analyze_problem): Likewise.
149 (df_compact_blocks): Likewise.
151 * df-scan.c (df_rescan_blocks): Likewise.
152 (df_record_entry_block_defs): Likewise.
154 * genconditions.c (write_conditions): Guard the definition of
155 'insn_conditions' with the check on GCC version.
156 (write_writer): Guard the traversal 'insn_conditions' with
157 the check on GCC version.
159 2006-02-07 Richard Guenther <rguenther@suse.de>
163 2006-01-30 Richard Guenther <rguenther@suse.de>
165 * gimplify.c (gimplify_target_expr): Handle easy cases
166 without creating a temporary.
168 2006-02-07 Pete Steinmetz <steinmtz@us.ibm.com>
170 * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
171 use of float in probability computations. Use edge probabilities
172 in place of statically computed probabilities.
173 (min_spec_prob): New static variable.
174 (schedule_insns): Initialize it.
175 (GET_SRC_PROB): Removed.
176 * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
178 2006-02-07 Alexandre Oliva <aoliva@redhat.com>
181 * config/ia64/unwind-ia64.c: Revert last change.
182 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
183 (INCOMING_FRAME_SP_OFFSET): Define.
185 2006-02-06 Roger Sayle <roger@eyesopen.com>
187 * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
189 2006-02-07 Ben Elliston <bje@au.ibm.com>
191 * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
192 (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
193 (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
194 (ix86_return_in_memory): Handle TDmode.
195 (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
196 (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
198 2006-02-06 Richard Sandiford <richard@codesourcery.com>
200 * reorg.c (dbr_schedule): Use dump_file instead of file.
202 2006-02-06 Steve Ellcey <sje@cup.hp.com>
205 * config/ia64/predicates.md (extr_len_operand): New predicate.
206 * config/ia64/ia64.md (extv): Tighten constraints.
208 (*tbit_and_2): Ditto.
209 (*tbit_and_3): Ditto.
215 2006-02-06 Andrew Pinski <pinskia@physics.uc.edu>
218 * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
220 2006-02-06 Zdenek Dvorak <dvorakz@suse.cz>
222 * tree-vrp.c (execute_vrp): Do not pass dump argument to.
223 loop_optimizer_init and loop_optimizer_finalize
224 * tree-ssa-sink.c (execute_sink_code): Ditto.
225 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
226 * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
227 tree_ssa_loop_done): Ditto.
228 * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
229 * sched-ebb.c: Include output.h.
230 (schedule_ebbs): Do not use dump argument.
231 * value-prof.h (struct profile_hooks): Remove profile_dump_file.
232 * loop.c (loop_dump_stream): Removed.
233 (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
235 (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
236 emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
237 final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
238 loop_iterations, strength_reduce, record_biv, record_giv,
239 final_giv_value, check_final_value, check_ext_dependent_givs,
240 combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
241 try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
242 dump_file instead of loop_dump_stream.
243 * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
245 * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
247 * flow.c (life_analysis, rest_of_handle_life): Ditto.
248 * haifa-sched.c: Include output.h
249 (schedule_insns, sched_init): Do not use dump argument.
250 * mode-switching.c (optimize_mode_switching): Ditto.
251 * modulo-sched.c (stats_file): Removed.
252 (print_node_sched_params): Do not call argument dump_file.
253 (sms_schedule_by_order, loop_canon_p, sms_schedule,
254 rest_of_handle_sms): Do not use dump argument. Use dump_file instead
256 * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
258 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
259 rtl_loop_init, rtl_loop_done): Ditto.
260 * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
261 * predict.c (combine_predictions_for_bb, tree_estimate_probability):
263 * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
264 * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
265 * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
266 rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
267 * emit-rtl.c (renumber_insns): Ditto.
268 * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
269 expand_gimple_basic_block, tree_expand_cfg): Ditto.
270 * regclass.c (regclass): Ditto.
271 * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
272 remove_ssa_form, rewrite_out_of_ssa): Ditto.
273 * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
274 convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
276 * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
277 * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
279 * gcse.c (gcse_file, debug_stderr): Removed.
280 (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
281 rest_of_handle_gcse): Do not use dump argument.
282 (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
283 one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
284 pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
285 compute_code_hoist_vbeinout, compute_code_hoist_data,
286 one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
287 compute_store_table, build_store_vectors, insert_insn_start_bb,
288 insert_store, remove_reachable_equiv_notes, replace_store_insn,
289 store_motion): Use dump_file instead of gcse_file.
290 * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
291 * profile.c (profile_dump_file): Removed.
292 (branch_prob): Use dump_file instead of profile_dump_file.
293 * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
295 * tree-ssa-copy.c (dump_copy_of): Ditto.
296 * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
297 dump file to life_analysis.
298 * bt-load.c (branch_target_load_optimize): Ditto.
299 * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
301 * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
302 regclass, dbr_schedule): Declaration changed.
303 * sched-int.h (sched_init): Declaration changed.
304 * tree-profile.c (tree_profile_dump_file): Removed.
305 (tree_profile_hooks): Removed profile_dump_file hook.
306 * rtl-profile (rtl_profile_dump_file): Removed.
307 (rtl_profile_hooks): emoved profile_dump_file hook.
308 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
310 * c-gimplify.c (c_genericize): Do not call local variable dump_file.
311 * tree-cfg.c (build_tree_cfg): Ditto.
312 * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
313 * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
315 * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
316 life_analysis and schedule_insns.
317 * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
319 * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
321 * config/mips/mips.c (mips_reorg): Ditto.
322 * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
325 2006-02-06 Aldy Hernandez <aldyh@redhat.com>
327 * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
328 (s390_mangle_fundamental_type): New.
329 * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
332 * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
333 (alpha_mangle_fundamental_type): New.
334 * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
337 * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
339 * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
341 * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
342 (sparc_mangle_fundamental_type): New.
344 2006-02-06 Jakub Jelinek <jakub@redhat.com>
346 * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
347 (s390x-*-linux*): Likewise.
348 * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
349 * config/s390/t-linux: New file.
351 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
353 * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
354 sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
356 2006-02-06 Daniel Berlin <dberlin@dberlin.org>
358 * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
359 (ANTIC_SAFE_LOADS): New macro.
360 (find_or_generate_expression): Add prototype.
361 (set_contains_value): Allow null set for sake of not always having
362 to allocate ANTIC_SAFE_LOADS.
363 (phi_translate): Move placement of AGGREGATE_TYPE_P check.
364 Allow COMPONENT_REF too.
365 (valid_in_set): Allow COMPONENT_REF.
366 Check ANTIC_SAFE_LOADS too.
367 (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
368 (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
370 (can_PRE_operation): Add COMPONENT_REF.
371 (create_component_ref_by_pieces): New function.
372 (create_expression_by_pieces): Use create_component_ref_by_pieces.
373 (insert_aux): Move AGGREGATE_TYPE_P check here.
374 (compute_avail): Set bb local stmt uids.
375 (pass_pre): Use TODO_update_ssa_only_virtuals.
377 2006-02-06 Ben Elliston <bje@au.ibm.com>
379 * configure.ac: Unconditionally disable decimal float by default.
380 * configure: Regenerate.
382 2006-02-06 Ben Elliston <bje@au.ibm.com>
384 * read-rtl.c (read_name): Terminate reading on EOF.
386 2006-02-06 Ben Elliston <bje@au.ibm.com>
388 * dfp.c (decimal_real_arithmetic): Change second argument type
389 from int to enum tree_code. Do not always return true, but now
390 return result of any call to decimal_do helper functions.
391 * dfp.h (decimal_real_arithmetic): Update prototype.
393 2006-02-05 Eric Botcazou <ebotcazou@libertysurf.fr>
395 * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
397 2006-02-05 Andrew Pinski <pinskia@physics.uc.edu>
400 * tree-cfg.c (cleanup_dead_labels): Also don't remove
403 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
405 * tree-vrp.c (cfg_loops): Removed.
406 (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
407 Use current_loops instead of cfg_loops. Pass flags to
409 * cfgloopmanip.c (fix_loop_structure): Update only available
411 * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
413 * modulo-sched.c (build_loops_structure): Removed.
414 (sms_schedule): Use loop_optimizer_init.
415 * loop-init.c (loop_optimizer_init): Use flags to determine
416 which properties of loops to prepare.
417 (rtl_loop_init): Pass flags to loop_optimizer_init.
418 * tree-ssa-sink.c (execute_sink_code): Ditto.
419 * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
420 * tree-ssa-pre.c (init_pre): Ditto.
421 * cfgloop.h (LOOPS_NORMAL): New.
422 (loop_optimizer_init): Declaration changed.
424 2006-02-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
426 * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
427 * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
429 * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
431 * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
433 * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
434 * pa/t-pa64: Delete quadlib.c rule.
435 * pa/x-ada: Revert last change.
436 * pa/t-pa: Revert last change. Delete quadlib.c rule.
438 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
440 PR rtl-optimization/26087
441 * rtlanal.c (canonicalize_condition): Do not cross basic block
444 2006-02-04 Alexandre Oliva <aoliva@redhat.com>
447 * config/ia64/ia64.c: Include debug.h.
448 (MAX_ARTIFICIAL_LABEL_BYTES): New.
449 (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
450 (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
451 (process_epilogue, process_set, process_for_unwind_directive):
452 Output unwind info only if requested. Add CFA info if requested.
453 Add new arguments as needed. Adjust callers.
454 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
456 (DWARF2_FRAME_INFO): Define to zero.
457 * config/ia64/unwind-ia64.c: Remove code that compensated for
458 the CFA offset error fixed above.
459 * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
460 * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
461 (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
462 -funwind-tables and -fexceptions to enable frame info.
463 (dwarf2out_frame_init): Define initial CFA even if
464 DWARF2_UNWIND_INFO is disabled. Call initial_return_save if
465 DWARF2_UNWIND_INFO is nonzero, not just defined.
466 (dwarf2out_frame_finish): Output non-EH call frame info only
467 if DWARF2_FRAME_INFO is nonzero.
468 (convert_cfa_to_loc_list,
469 compute_frame_pointer_to_cfa_displacement): Define even if
470 unwind info is not supported.
471 (gen_subprogram_die): Use the above unconditionally. Remove
472 legacy alternate code.
473 * toplev.c (compile_file): Compile in call to
474 dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
475 (lang_dependent_init): Ditto for dwarf2out_frame_init.
477 2006-02-04 David Edelsohn <edelsohn@gnu.org>
478 Jakub Jelinek <jakub@redhat.com>
480 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
481 IBM extended float format long double as "g" on powerpc*-linux.
483 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
486 * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
487 * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
489 2006-02-03 Jason Merrill <jason@redhat.com>
492 * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
495 * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
496 on the return slot if it's an NRV.
498 2006-02-03 Zdenek Dvorak <dvorakz@suse.cz>
500 * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
501 (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
502 rewrite_use): Do not handle USE_OUTER.
503 (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
504 add_iv_outer_candidates, may_replace_final_value,
505 determine_use_iv_cost_outer, rewrite_use_outer): Removed.
506 (find_interesting_uses_op): Functionality of
507 find_interesting_uses_outer_or_nonlin moved here.
508 (find_interesting_uses_outside): Use find_interesting_uses_op.
510 2006-02-03 Alan Modra <amodra@bigpond.net.au>
513 * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
515 2006-02-03 Andreas Krebbel <krebbel1@de.ibm.com>
516 Ulrich Weigand <uweigand@de.ibm.com>
519 * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
520 "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
521 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
522 * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
524 (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
525 (s390_rtx_costs): Use the new fields to calculate rtx costs.
526 (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
527 Define secondary reloads for TFmode moves.
528 (constant_modes): Add TFmode.
529 (NR_C_MODES): Set to 8.
530 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
532 (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
533 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
534 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
535 CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
536 * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
537 fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
538 (FPR mode macro): Add TFmode.
539 (DSF mode macro): New.
540 (<de>, <dee> mode attributes): Removed.
541 (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
542 ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
543 "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
544 "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
545 "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
546 "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
547 "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
548 "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
549 "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
550 "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
551 "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
552 "*negabs<mode>2", "sqrt<mode>2"):
553 Changed <de> to <xde>. R constraint replaced by <Rf>.
554 ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
556 ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
557 ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
558 ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
560 ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
561 "extenddftf2", "extendsftf2"): New expanders.
562 ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
563 "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
564 "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
565 * config/s390/s390.opt (mlong-double-128, mlong-double-64):
567 * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
568 * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
569 __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
570 __floatditf): Add a GCC_4.1.0 symbol version tag.
571 * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
574 2006-02-02 Andrew Pinski <pinskia@physics.uc.edu>
577 * config/i386/i386.c (ix86_function_ok_for_sibcall):
578 Use targetm.binds_local_p instead of TREE_PUBLIC.
580 2006-02-02 Roger Sayle <roger@eyesopen.com>
582 * tree.h (TYPE_STRING_FLAG): Document that this field may be used
583 on INTEGER_TYPEs to indicate that it denotes a character type.
584 * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
585 signed_char_type_node, unsigned_char_type_node and char_type_node.
586 * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
587 INTEGER_TYPE. Use TYPE_STRING_FLAG to decide whether to emit
588 a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
590 2006-02-02 Zdenek Dvorak <dvorakz@suse.cz>
591 Daniel Berlin <dberlin@dberlin.org>
593 * tree-tailcall.c (arg_needs_copy_p): New function.
594 (eliminate_tail_call): Use arg_needs_copy_p.
595 (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
596 (add_virtual_phis): New function.
598 2006-02-02 Jakub Jelinek <jakub@redhat.com>
600 * config/sparc/sparc.c (sparc_output_scratch_registers): Use
601 #ignore instead of #scratch for %g7 .register directive.
603 2006-02-02 Andreas Tobler <a.tobler@schweiz.ch>
605 * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
608 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
610 * flow.c (calculate_global_regs_live): Assert that there aren't any
613 2006-02-02 Paolo Bonzini <bonzini@gnu.org>
615 * tree-flow-inline.h (bsi_after_labels): Rewrite, return
617 * lambda-code.c (perfect_nestify): Use bsi_insert_before on
618 bsi_after_labels iterator.
619 * tree-if-conv.c (find_phi_replacement_condition,
620 replace_phi_with_cond_modify_expr): Likewise.
621 * tree-scalar-evolution.c (scev_const_prop): Likewise.
622 * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
624 2006-02-02 Diego Novillo <dnovillo@redhat.com>
626 * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
628 2006-02-02 Diego Novillo <dnovillo@redhat.com>
631 * tree-cfg.c (move_block_to_fn): Clear out the basic block
632 array after growing it.
634 2006-02-01 Steve Ellcey <sje@cup.hp.com>
637 * fold-const.c (fold_checksum_tree): Change type of buf.
639 2006-02-01 Bernd Schmidt <bernd.schmidt@analog.com>
641 * reload.c (push_secondary_reload): Initialize t_icode.
643 2006-02-01 Jakub Jelinek <jakub@redhat.com>
645 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
646 -msoft-float -mlong-double-128 only issue a warning, but don't
647 swich to DFmode long double.
649 2006-02-01 Hans-Peter Nilsson <hp@axis.com>
651 * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
652 has a constant equivalent, iterate over equivalents for arg0,
653 calling simplify_relational_operation and if there's a result
654 cheaper than X, apply fold_rtx and return the result.
656 2006-02-01 Jan Hubicka <jh@suse.cz>
658 * opts.c (no_unit_at_a_time_default): New global variable.
659 (decode_options): Use it.
660 * opts.h (no_unit_at_a_time_default): Declare.
662 2006-02-01 Paul Brook <paul@codesourcery.com>
664 * function.c (assign_parm_setup_reg): Use function argument promotion
666 * expr.c (expand_expr_real_1): Use function argument promotion rules
669 2006-02-01 Steve Ellcey <sje@cup.hp.com>
671 * gcc.c (process_command): Change j to 'unsigned int'.
673 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
676 * expr.c (expand_expr_real_1) <case ARRAY_REF>:
677 Use the corrected index for the character
678 out of the string constant.
680 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
682 * mode-switching.c (optimize_mode_switching): Fix size
683 allocated for bb_info[n_entities].
685 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
687 * gcc.c (main): Correct type that is allocated for
690 2006-01-31 Jakub Jelinek <jakub@redhat.com>
692 * config/s390/s390.c (init_alignment_context): Set
693 ALIAS_SET_MEMORY_BARRIER on the MEM.
694 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
696 2006-01-31 Uttam Pawar <uttamp@us.ibm.com>
699 * loop-unroll.c (unroll_loop_runtime_iterations): Free
701 * tree-ssa-live.c (type_var_init): Allocate bitmap after
704 2006-01-31 Marcin Dalecki <martin@dalecki.de>
706 * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
707 * regrename.c: Ditto.
708 * tree-ssa-loop-im.c: Ditto.
709 * tree-dump.c: Ditto.
710 * tree-complex.c: Ditto.
712 * tree-ssa-threadupdate.c: Ditto.
714 * java/class.c: Ditto.
715 * java/jcf-parse.c: Ditto.
716 * java/resource.c: Ditto.
717 * java/except.c: Ditto.
718 * java/jvspec.c: Ditto.
719 * java/jcf-write.c: Ditto.
720 * java/jcf-path.c: Ditto.
721 * java/gjavah.c: Ditto.
722 * java/zextract.c: Ditto.
723 * java/jcf-io.c: Ditto.
725 * java/buffer.c: Ditto.
726 * java/lang.c: Ditto.
727 * java/parse-scan.y: Ditto.
730 * cfgloopmanip.c: Ditto.
731 * postreload-gcse.c: Ditto.
732 * tree-ssa-loop-manip.c: Ditto.
733 * postreload.c: Ditto.
734 * tree-ssa-loop-ch.c: Ditto.
738 * diagnostic.c: Ditto.
740 * genoutput.c: Ditto.
743 * cfgloopanal.c: Ditto.
744 * objc/objc-act.c: Ditto.
746 * genextract.c: Ditto.
747 * genautomata.c: Ditto.
748 * pretty-print.c: Ditto.
750 * cgraphunit.c: Ditto.
753 * haifa-sched.c: Ditto.
754 * dominance.c: Ditto.
756 * tree-ssa-loop-ivopts.c: Ditto.
758 * mode-switching.c: Ditto.
759 * modulo-sched.c: Ditto.
761 * ipa-pure-const.c: Ditto.
763 * fix-header.c: Ditto.
765 * tree-stdarg.c: Ditto.
766 * ipa-utils.c: Ditto.
767 * loop-init.c: Ditto.
768 * ipa-inline.c: Ditto.
771 * alloc-pool.c: Ditto.
772 * dwarf2out.c: Ditto.
774 * genattrtab.c: Ditto.
775 * tree-ssa-loop-ivcanon.c: Ditto.
779 * fortran/gfortranspec.c: Ditto.
781 * local-alloc.c: Ditto.
782 * langhooks.c: Ditto.
784 * tree-vectorizer.c: Ditto.
786 * ipa-type-escape.c: Ditto.
788 * tree-if-conv.c: Ditto.
791 * tree-data-ref.c: Ditto.
792 * loop-unroll.c: Ditto.
793 * treelang/treetree.c: Ditto.
796 * ggc-common.c: Ditto.
800 * tree-cfgcleanup.c: Ditto.
801 * tree-ssa-pre.c: Ditto.
802 * cfgcleanup.c: Ditto.
803 * loop-invariant.c: Ditto.
806 * print-tree.c: Ditto.
809 * sched-deps.c: Ditto.
811 * tree-object-size.c: Ditto.
813 * bb-reorder.c: Ditto.
815 * var-tracking.c: Ditto.
817 * df-problems.c: Ditto.
818 * reg-stack.c: Ditto.
821 * sched-rgn.c: Ditto.
822 * tree-ssa-structalias.c: Ditto.
823 * tree-ssa-reassoc.c: Ditto.
824 * config/darwin-c.c: Ditto.
825 * config/darwin.c: Ditto.
826 * config/arm/arm.c: Ditto.
831 2006-01-31 Nicolas Pitre <nico@cam.org>
833 * arm.md (smaxsi3): Make aware of smax_m1.
836 2006-01-31 Nathan Sidwell <nathan@codesourcery.com>
838 * gcc/config/m68k/lb1sf68.asm: Use moveq to load small constants.
840 2006-01-31 Richard Guenther <rguenther@suse.de>
842 * doc/invoke.texi (-msselibm): Document.
843 * target.h (expand_library_builtin): New target hook.
844 * builtins.c (expand_builtin): Use expand_library_builtin.
845 (default_expand_library_builtin): New function.
846 * gcc.c (LINK_GCC_MATH_SPEC): Define.
847 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
848 (link_gcc_math_spec): Declare.
849 (static_specs): Add link_gcc_math_spec.
850 * expr.h (default_expand_library_builtin): Declare.
851 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
852 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
853 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
854 * config/i386/i386.opt (msselibm): New target option.
855 * config/i386/i386.c (ix86_builtin_function_variants): New array.
856 (ix86_init_sse_abi_builtins): New function.
857 (ix86_expand_library_builtin): Likewise.
858 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
859 (override_options): Handle error conditions wrt -msselibm.
860 (ix86_builtins): Add function codes for SSE2 ABI builtins.
861 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
862 * doc/extend.texi (__builtin_sse2_*): Document new target specific
865 2006-01-31 Richard Guenther <rguenther@suse.de>
866 Paolo Bonzini <bonzini@gnu.org>
868 * doc/install.texi (--disable-libgcc-math): Document.
870 2006-01-30 Marcin Dalecki <martin@dalecki.de>
872 * expr.h (expand_normal): new inline function.
873 * builtins.c: use it, use EXPAND_NORMAL explicitely.
875 * dwarf2out.c: use it.
880 * config/sparc/sparc.c: use it.
881 * config/i386/i386.c: use it.
882 * config/rs6000/rs6000.c: use it.
883 * config/arm/arm.c: use it.
884 * config/mips/mips.c: use it.
885 * stmt.c: use it, use EXPAND_NORMAL explicitely.
887 2006-01-30 Roger Sayle <roger@eyesopen.com>
889 * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
890 argv to the appropriate type.
892 2006-01-30 Zdenek Dvorak <dvorakz@suse.cz>
894 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
897 2006-01-30 Ulrich Weigand <uweigand@de.ibm.com>
900 * config/s390/s390.c (struct machine_function): New flag
901 decomposed_literal_pool_addresses_ok_p.
902 (s390_reorg): Set it before final stage of literal pool transforms.
903 (s390_decompose_address): Only accept displacements of the form
904 (minus (label_ref ...) (label_ref ...)) if that flag is set.
906 2006-01-30 Carlos O'Donell <carlos@codesourcery.com>
908 * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
909 the comparison routine return.
911 2006-01-30 Michael Matz <matz@suse.de>
913 * global.c (find_reg): Only evict for global regs.
914 Take n_refs into account and dump more info.
916 2006-01-30 J"orn Rennecke <joern.rennecke@st.com>
919 * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
920 (pragma_trap, pragma_nosave_low_regs): Likewise.
921 (current_function_anonymous_args): Likewise.
922 (sh_deferred_function_attributes): New variable.
923 (sh_deferred_function_attributes_tail): Likewise.
924 (print_operand): For '@', look up trap_exit attribute.
925 (calc_live_regs): Look up trapa_handler attribute. For trapa
926 handlers, save/restore fpscr, but don't do any other
927 interrupt-specific saves.
928 Don't save r0..r7 if the nosave_low_regs attribute is in effect.
929 Fix check for partially saved registers to check for SHmedia.
930 (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
931 (sh_output_function_epilogue): Don't clear any of the removed
933 (sh_insert_attributes): Don't check pragma_interrupt.
934 Insert deferred attributes. Check that interrupt attribute is
935 present for other attributes that require its presence.
936 (sh_attribute_table): Add new attributes trapa_handler and
938 (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
939 Don't check for pragma_interrupt. Don't store argument.
940 * sh.h (pragma_interrupt, sp_switch): Don't declare.
941 (sh_deferred_function_attributes): Declare.
942 (sh_deferred_function_attributes_tail): Likewise.
943 * sh.md (sp_switch_1): Add operand. Change generator caller.
944 (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
945 (*return_i): Don't use when trap_exit attribute is in effect.
946 (*return_trapa): New insn pattern.
948 * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
949 setting c_target_objs and cxx_target_objs.
950 * t-sh: Add rule for sh-c.o.
952 2006-01-30 Richard Guenther <rguenther@suse.de>
955 * gimplify.c (gimplify_target_expr): Handle easy cases
956 without creating a temporary.
958 2006-01-30 Nathan Sidwell <nathan@codesourcery.com>
960 * vec.h (safe_grow): Remove duplicated line.
962 2006-01-29 Diego Novillo <dnovillo@redhat.com>
965 * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
966 (expand_omp): ... here.
967 (expand_omp_parallel): Only remove barriers for combined
968 parallel+workshare constructs.
970 2006-01-29 Eric Botcazou <ebotcazou@adacore.com>
974 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
975 * tree.c (build_qualified_type): Chain the new type to the original
976 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
977 a POINTER_TYPE or a REFERENCE_TYPE respectively.
978 (build_pointer_type_for_mode): Only return unqualified types.
979 (build_reference_type_for_mode): Likewise.
981 2006-01-29 Gabriel Dos Reis <gdr@integgrable-solutions.net>
983 * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
984 * Makefile.in (CXX_COMPAT_WARN): Define.
985 * configure: Regenerate.
987 2006-01-29 Dorit Nuzman <dorit@il.ibm.com>
990 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
993 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
995 * toplev.c: Fix thinko.
997 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
998 Marcin Dalecki <martin@dalecki.de>
1000 * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
1001 (push_srcloc): Use XNEW.
1002 (init_asm_output, default_get_pch_validity): Use XNEWVEC.
1004 2006-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
1006 * df-core.c (df_set_blocks): Deleted all variable.
1008 2006-01-28 Ian Lance Taylor <ian@airs.com>
1010 * cgraphunit.c (cgraph_assemble_pending_functions): Call
1011 cgraph_output_pending_asms.
1013 2006-01-28 Zack Weinberg <zackw@panix.com>
1015 * c.opt: Add -W(no-)overlength-strings.
1016 * doc/invoke.texi: Document it.
1017 * c-opts.c (c_common_handle_option): -pedantic implies
1018 -Woverlength-strings, if not explicitly disabled already.
1019 (c_common_post_options): -Woverlength-strings defaults to off, and
1020 is always off for C++.
1021 * c-common.c (fix_string_type): Issue warning about strings longer
1022 than is portable only if warn_overlength_strings. Rearrange code
1023 a little for clarity.
1024 * configure.in: Check for -Wno-overlength-strings as well before
1025 enabling -pedantic in stage 1.
1026 * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
1027 (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
1029 * genconditions.c (write_header, write_one_condition)
1030 (write_conditions, write_writer): Consolidate very long strings
1031 that were broken up to fit in C89 portable limit. Don't use
1032 printf when fputs will do.
1034 2006-01-28 Adam Nemet <anemet@caviumnetworks.com>
1036 * combine.c (simplify_comparison <AND>): Check
1037 TRULY_NOOP_TRUNCATION before start using a subreg.
1039 * config/mips/mips.md (*branch_zero<mode>,
1040 *branch_zero<mode>_inverted, *branch_equality<mode>,
1041 *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
1042 Remove mode check from comparisons.
1044 2006-01-28 Kenneth Zadeck <zadeck@naturalbridge.com>
1046 * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
1048 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
1050 * expmed.c (const_mult_add_overflow_p): Remove.
1051 * expr.h: Remove the prototype for const_mult_add_overflow_p.
1053 * recog.c (validate_replace_rtx_subexp): Remove.
1054 * recog.h: Remove the prototype for
1055 validate_replace_rtx_subexp.
1057 * integrate.h: Remove the prototype for
1058 copy_decl_for_inlining.
1059 * rtl.h: Remove the prototype for mark_constant_function.
1060 * tree-vectorizer.h: Remove the prototype for
1061 vect_strip_conversion.
1063 * modulo-sched.c (create_partial_schedule,
1064 free_partial_schedule, reset_partial_schedule): Make them
1067 * hooks.c (hook_bool_rtx_int_false): Remove.
1068 * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
1070 2006-01-28 David Edelsohn <edelsohn@gnu.org>
1072 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
1073 and -mlong-double-128 are incompatible.
1074 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
1075 * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
1076 (TARGET_LIBGCC2_CFLAGS): Define.
1077 * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
1078 (TARGET_LIBGCC2_CFLAGS): Same.
1079 * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
1081 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
1084 * c-typeck.c (build_binary_op): Perform implicit casts of
1085 operands before shortening them.
1087 * cfgloopmanip.c (split_loop_bb): Remove.
1088 * cfgloop.h: Remove the prototype for split_loop_bb.
1090 * cfgloop.c (flow_loop_outside_edge_p): Remove.
1091 * cfgloop.h: Remove the prototype for
1092 flow_loop_outside_edge_p.
1094 * emit-rtl.c (init_virtual_regs): Make it static.
1095 * function.h: Remove the prototype for init_virtual_regs.
1097 * recog.c (peephole2_optimize): Make it static.
1098 * recog.h: Remove the prototype for peephole2_optimize.
1100 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
1102 * df-scan.c (df_record_entry_block_defs): Check if
1103 INCOMING_RETURN_ADDR_RTX is defined.
1105 2006-01-27 Daniel Berlin <dberlin@dberlin.org>
1106 Kenneth Zadeck <zadeck@naturalbridge.com>
1108 PR rtl-optimization/24762
1109 * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
1110 * targhooks.c (hook_void_bitmap): New hook prototype.
1111 * targhoohs.h (hook_void_bitmap): Ditto.
1112 * bitmap.h (bitmap_head_def): Moved to coretypes.h.
1113 * coretypes.h (bitmap_head_def): Moved from bitmap.h.
1114 * target.h (live_on_entry): New function pointer.
1115 * df-scan.c (df_all_hard_regs): Removed.
1116 (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
1117 (df_scan_free_internal): Added df->entry_block_defs.
1118 (df_scan_alloc): Ditto.
1119 (df_scan_dump): Ditto.
1120 (df_uses_record): Plumbed flag field properly thru calls.
1121 Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
1122 This part fixes PR24762.
1123 (df_bb_refs_record): Added code to make the frame and arg
1124 pointers live in EH blocks.
1125 (df_refs_record): Added call to df_record_entry_block_defs.
1126 (df_record_entry_block_defs): New function.
1127 * df-core.c: Added comments to describe new artifical defs.
1128 * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
1129 (entry_block_defs): New field in struct df.
1130 (df_all_hard_regs): Deleted.
1131 * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
1132 * df-problems.c (df_ru_bb_local_compute_process_def):
1133 Added code to handle artifical defs in the entry to a function.
1134 (df_ru_bb_local_compute): Ditto.
1135 (df_rd_bb_local_compute_process_def): Ditto.
1136 (df_rd_bb_local_compute): Ditto.
1137 (df_lr_bb_local_compute): Ditto.
1138 (df_ur_bb_local_compute): Ditto.
1139 (df_urec_bb_local_compute): Ditto.
1140 (df_chain_create_bb): Ditto.
1141 (df_ur_local_finalize): Removed entry.
1142 (df_urec_init): Ditto.
1143 (df_urec_local_finalize): Ditto.
1144 (df_ri_bb_compute): Added detection of last use of pseudos.
1145 * Makefile.in (df-scan.o): Updated dependencies.
1146 * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
1147 * config/mips/mips.c (mips_set_live_on_entry): Added.
1148 * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
1150 * dce.c (marked_insn_p): Added code to handle artifical defs.
1152 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
1154 * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
1156 (_mm_cvtsi128_si64): Likewise.
1157 (_mm_cvtsd_si64): Likewise.
1158 (_mm_cvttsd_si64): Likewise.
1159 (_mm_cvtsi64_sd): Likewise.
1160 (_mm_cvtsi64_si128): Likewise.
1161 * config/i386/mmintrin.h (_m_from_int64): Likewise.
1162 (_mm_cvtsi64_m64): Likewise.
1163 (_m_to_int64): Likewise.
1164 (_mm_cvtm64_si64): Likewise.
1165 * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
1166 (_mm_cvttss_si64): Likewise.
1167 (_mm_cvtsi64_ss): Likewise.
1168 (_mm_cvtss_f32): Likewise.
1170 2006-01-27 Carlos O'Donell <carlos@codesourcery.com>
1172 * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
1173 for pragma redefine_extname.
1175 2006-01-27 Jakub Jelinek <jakub@redhat.com>
1178 * libgcc-std.ver: Add GCC_4.1.0 symbol version.
1179 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
1180 -mno-minimal-toc to previous content.
1181 (bispecs): Remove goal.
1182 * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
1183 * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
1184 compatibility aliases on powerpc-*-*gnu*.
1185 * config/rs6000/libgcc-ppc-glibc.ver: New file.
1186 * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
1187 libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
1188 (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
1189 (ldblspecs): New goal.
1190 * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
1191 * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
1193 * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
1194 L_sf_to_tf or L_df_to_tf is defined.
1196 2006-01-27 David Edelsohn <edelsohn@gnu.org>
1197 Alan Modra <amodra@bigpond.net.au>
1200 * config/rs6000/linux.h (POWERPC_LINUX): Define.
1201 * config/rs6000/linux64.h (POWERPC_LINUX): Define.
1202 * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
1203 * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
1204 * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
1205 * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
1206 (rs6000_override_options): Initialize rs6000_ieeequad.
1207 Initialize TFmode format to ibm_extended_format if not
1209 (rs6000_handle_option): Accept -mabi= ibmlongdouble and
1211 (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
1212 (rs6000_return_in_memory): Only return IEEEQUAD in memory.
1213 (function_arg_advance): IBM long double passed in two FPRs, not
1215 (function_arg): IBM long double passed in FPRs.
1216 (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
1217 (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
1218 Only multireg GPR aligned.
1219 (rs6000_init_libfuncs): Enable IBM long double functions if not
1221 (rs6000_generate_compare): Use IBM long double compare if not
1223 * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
1224 (TARGET_IEEEQUAD): Define.
1225 (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
1226 not TARGET_IEEEQUAD.
1227 * config/rs6000/rs6000.md: Enable TFmode patterns if
1229 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
1230 * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
1231 and -mlong-double-128 are incompatible.
1232 * doc/invoke.texi (-mabi): Collect options together. Add
1233 ibmlongdouble and ieeelongdouble.
1235 2006-01-27 Richard Sandiford <richard@codesourcery.com>
1237 * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
1239 * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
1240 * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
1241 (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
1242 * rtl.h (rtunion_def): Remove rt_ptr.
1244 (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
1245 (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
1246 * config/i386/winnt.c (i386_pe_mark_dllexport)
1247 (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
1249 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
1251 * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
1253 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
1257 * gthr-dce.h: Do not gthrw-ify pthread_once_init,
1258 pthread_key_delete. From John David Anglin. gthrw-ify
1259 pthread_getunique_np only if it it's not a macro. Delete
1261 (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
1262 __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
1263 __gthread_objc_condition_signal, __gthread_key_delete): Add
1264 "__attribute__ ((__unused__))" to unused arguments.
1265 (__gthread_recursive_mutex_init_function): Add missing return.
1266 * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
1267 gthr-posix95.h: Use macro-based approach for name redirection
1268 on targets missing weakref.
1270 2006-01-26 Zack Weinberg <zackw@panix.com>
1272 * genconditions.c (write_header): In generated code, #ifdef out
1273 all includes and fake declarations, except includes of bconfig.h
1274 and system.h, unless GCC_VERSION >= 3001. Do not include
1275 gensupport.h in any case.
1276 (write_conditions): Generate a definition of struct c_test. Add
1277 a comment to the generated #endif.
1278 (write_one_condition): Escape backslashes in string too.
1279 (write_writer): Generated code must escape backslashes and quote
1280 marks (but not newlines) in the strings it writes.
1281 * Makefile.in (build/gencondmd.o): Update dependencies.
1283 2006-01-26 Steve Ellcey <sje@cup.hp.com>
1286 * Makefile.in (insn-automata.o): Add header file dependencies.
1287 * genautomata.c: Add includes.
1289 2006-01-26 Steve Ellcey <sje@cup.hp.com>
1292 * Makefile.in (insn-automata.o): Add -Wno-error flag.
1294 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
1296 * configure.ac: Expect target tools paths to be passed from the toplevel
1297 and wrap the detection into AS_SET_VAR_IF. Extract side-effects out of
1299 * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
1301 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
1304 * c.opt (Wpointer-sign): Init to -1.
1305 * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
1306 OPT_pedantic, to 0 otherwise.
1307 * doc/invoke.texi: Update.
1309 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
1311 * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
1312 constants provided by 80387 instructions in the destination mode.
1314 2006-01-26 Richard Guenther <rguenther@suse.de>
1315 Andrew Pinski <pinskia@physics.uc.edu>
1318 partial PR tree-opt/17064
1319 * tree-ssa-structalias.c (intra_create_variable_infos):
1320 Create heap variables for incoming parameters if
1321 flag_argument_noalias > 1.
1322 (find_what_p_points_to): Look through default defs of
1325 2006-01-26 Jeff Law <law@redhat.com>
1328 * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
1329 with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
1330 within the VR_RANGE, use the VR_RANGE as the result, not the
1332 (adjust_range_with_scev): Reject ranges from SCEV which are out of
1333 bounds for the type.
1335 2006-01-26 Daniel Berlin <dberlin@dberlin.org>
1337 * tree-ssa-alias.c (maybe_create_global_var): Change
1338 subvar walking to an assertion that we don't have subvar'd variables.
1340 2006-01-26 Andrew Pinski <pinskia@physics.uc.edu>
1343 * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
1344 Use a new variable, inner. PARM_DECLs are always non-weak.
1346 2006-01-26 Shantonu Sen <ssen@opendarwin.org>
1348 * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
1351 2006-01-26 Adam Nemet <anemet@caviumnetworks.com>
1353 * config/mips/mips.md (*clear_upper32): New combiner pattern.
1355 2006-01-26 Richard Earnshaw <richard.earnshaw@arm.com>
1357 * arm.md (smaxsi3, sminsi3): Convert to define_expand.
1358 (smax_insn, smin_insn, smax_0, smin_0): New.
1360 2006-01-26 Hans-Peter Nilsson <hp@axis.com>
1363 * config/cris/cris.c (cris_order_for_addsi3): New function.
1364 * config/cris/cris-protos.h: Prototype it.
1365 * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
1366 (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
1367 (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
1368 (split for "op.S1 [rx=rx+i],ry (swapped)")
1369 (split for "op(s|u).S1 [rx=rx+i],ry")
1370 (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
1371 Apply cris_order_for_addsi3 when generating addsi3 insns.
1373 2006-01-25 Diego Novillo <dnovillo@redhat.com>
1375 * tree.h (TREE_RANGE_CHECK): Fix range predicate.
1376 (TREE_BLOCK): Add call to EXPR_CHECK.
1378 2006-01-25 Diego Novillo <dnovillo@redhat.com>
1381 * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
1382 * tree-pretty-print.c (dump_omp_clause): Extract from ...
1383 (dump_omp_clauses): ... here.
1384 (dump_generic_node): Handle OMP_CLAUSE.
1385 * tree.c (omp_clause_num_ops): New.
1386 (omp_clause_code_name): New.
1387 (tree_code_size): Handle OMP_CLAUSE.
1388 (tree_size): Likewise.
1389 (make_node): Document handling of OMP_CLAUSE.
1390 (tree_node_structure): Handle OMP_CLAUSE.
1391 (omp_clause_check_failed): New.
1392 (omp_clause_range_check_failed): New.
1393 (omp_clause_operand_check_failed): New.
1394 (build_omp_clause): New.
1395 (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
1396 * tree.h (enum omp_clause_code): Declare.
1397 (OMP_CLAUSE_SUBCODE_CHECK): Define.
1398 (OMP_CLAUSE_RANGE_CHECK): Define.
1399 (OMP_CLAUSE_ELT_CHECK): Define.
1400 (omp_clause_check_failed): Declare.
1401 (omp_clause_operand_check_failed): Declare.
1402 (omp_clause_range_check_failed): Declare.
1403 (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
1404 (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
1405 (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
1406 (OMP_CLAUSE_LASTPRIVATE): Likewise.
1407 (OMP_CLAUSE_IF_EXPR): Likewise.
1408 (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
1409 (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
1410 (OMP_CLAUSE_REDUCTION_CODE): Likewise.
1411 (OMP_CLAUSE_REDUCTION_INIT): Likewise.
1412 (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
1413 (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
1414 Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
1415 (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
1416 (OMP_CLAUSE_DEFAULT_KIND): Likewise.
1417 (OMP_CLAUSE_CODE): Define.
1418 (OMP_CLAUSE_SET_CODE): Define.
1419 (OMP_CLAUSE_CODE): Define.
1420 (OMP_CLAUSE_OPERAND): Define.
1421 (struct tree_omp_clause): Declare.
1422 (union tree_node): Add field 'omp_clause'.
1423 * treestruct.def (TS_OMP_CLAUSE): Define.
1424 * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
1425 OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
1426 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
1427 OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
1428 OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
1429 OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
1430 (OMP_CLAUSE): Define.
1431 * print-tree.c (print_node): Handle OMP_CLAUSE.
1432 * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
1433 * c-typeck.c: Likewise.
1434 * gimplify.c: Likewise.
1435 * c-omp.c: Likewise.
1436 * tree-nested.c: Likewise.
1437 * tree-inline.c: Likewise.
1438 * c-parser.c: Likewise.
1439 * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
1442 2006-01-25 Roger Sayle <roger@eyesopen.com>
1444 PR rtl-optimization/25703
1445 * combine.c (try_combine): Handle zero_extract and strict_low_part
1446 of non-lowpart SUBREGs for constant reg_subword_p set optimization.
1448 2006-01-25 Peter Bergner <bergner@vnet.ibm.com>
1450 * global.c: Fix comment typos.
1452 2006-01-25 Andrew Pinski <pinskia@physics.uc.edu>
1455 * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
1456 Use output_addr_const instead of assemble_name.
1458 2006-01-25 Paolo Bonzini <bonzini@gnu.org>
1460 * Makefile.in (sched-vis.o): Update dependencies.
1461 * haifa-sched.c (sched_finish): Clear current_sched_info.
1462 * cfg.c (dump_bb_info): New, split from dump_flow_info.
1463 (dump_flow_info): Call it.
1464 * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
1466 * basic-block.h (dump_bb_info): Declare.
1467 * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
1468 option, and apply options only for dump files whose TDF_RTL,
1469 TDF_TREE, or TDF_IPA bits match.
1470 * rtl.h: Declare new functions exported from sched-vis.c.
1471 * sched-vis.c: Enable also if scheduling is not used.
1472 (print_value): Print the mode of registers if not inside scheduling.
1473 (print_insn): Make it work outside the scheduler. Beautify the output
1475 (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
1477 2006-01-25 Richard Sandiford <richard@codesourcery.com>
1479 * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
1480 * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
1481 a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
1482 depending on the value of CONSTANT_POOL_ADDRESS_P.
1483 * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
1485 * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
1486 rather than SYMBOL_REF_DECL.
1487 (rtx_constant_pool): Remove const_rtx_sym_htab.
1488 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
1489 (init_varasm_status): Don't initialize const_rtx_sym_htab.
1490 (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
1491 Remove handling of const_rtx_sym_htab.
1492 (find_pool_constant): Delete.
1493 (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
1494 rather than find_pool_constant.
1495 (get_pool_constant_for_function): Delete.
1496 (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
1498 * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
1499 (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
1500 (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
1501 (SYMBOL_REF_CONSTANT): New macro.
1502 (get_pool_constant_for_function): Delete.
1503 * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
1504 rather than SYMBOL_REF_DECL.
1505 (i386_pe_mark_dllimport): Likewise.
1506 * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
1507 rather than SYMBOL_REF_DECL.
1508 * config/darwin.c (machopic_indirect_data_reference): Likewise.
1509 (machopic_indirect_call_target): Likewise.
1511 2006-01-25 Eric Botcazou <ebotcazou@adacore.com>
1513 * flow.c (delete_noop_moves): Add missing EOL to dump message.
1515 2006-01-25 Richard Sandiford <richard@codesourcery.com>
1517 * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
1519 2006-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
1521 * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
1523 2006-01-24 David Daney <ddaney@avtrex.com>
1526 * configure.ac (enable_tls): New enable option.
1527 (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
1528 * configure: Regenerate.
1529 * doc/install.texi (--enable-tls): Document new option.
1530 (--disable-tls): Ditto.
1532 2006-01-24 Richard Henderson <rth@redehat.com>
1534 * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
1535 * alias.c (true_dependence): Respect it.
1536 (canon_true_dependence, write_dependence_p): Likewise.
1537 * builtins.c (get_builtin_sync_mem): Set it.
1539 2006-01-25 Zdenek Dvorak <dvorakz@suse.cz>
1541 * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
1544 2006-01-24 DJ Delorie <dj@redhat.com>
1546 * expmed.c (store_bit_field): Don't arbitrarily deny using insv
1547 for storing constants in single-bit bitfields.
1549 2006-01-25 Ben Elliston <bje@au.ibm.com>
1551 * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
1553 2006-01-24 Andrew Pinski <pinskia@physics.uc.edu>
1556 * tree-ssa-pre.c (phi_translate): Return NULL
1557 for AGGREGATE_TYPE's.
1559 2006-01-24 Zack Weinberg <zackw@panix.com>
1561 * genautomata.c (process_state_for_insn_equiv_partition):
1562 Use xcalloc for insn_arcs_array.
1563 * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
1564 (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
1566 2006-01-24 Richard Henderson <rth@redhat.com>
1568 * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
1571 2006-01-23 Paolo Bonzini <bonzini@gnu.org>
1573 PR rtl-optimization/25890
1574 PR rtl-optimization/25905
1575 * combine.c (expand_compound_operation, expand_field_assignment):
1576 Fail if the bitfield's final position is out of bounds.
1578 2006-01-24 Ian Lance Taylor <ian@airs.com>
1581 * cgraphunit.c (cgraph_output_in_order): Don't clear
1582 cgraph_asm_nodes until after asm strings have been output.
1584 2006-01-23 Adam Nemet <anemet@caviumnetworks.com>
1586 * fix-header.c (read_scan_file): Add new parameter imultilib when
1587 calling register_include_chains.
1589 2006-01-23 Diego Novillo <dnovillo@redhat.com>
1591 * omp-low.c: Update documentation.
1593 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
1594 Daniel Berlin <dberlin@dberlin.org>
1598 * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
1599 return from the function.
1601 2006-01-22 Zack Weinberg <zackw@panix.com>
1603 * rtl.def (match_code): Add second argument.
1604 * genpreds.c (write_extract_subexp): New function.
1605 (write_match_code): Add path argument. Use write_extract_subexp.
1606 (write_predicate_expr): Pass path to write_match_code.
1607 (mark_mode_tests): MATCH_CODE applied to a subexpression does
1608 not perform a mode test.
1609 * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
1610 a subexpression does not constrain the top-level code set.
1611 * read-rtl.c (read_rtx_variadic): New function.
1612 (read_rtx_1): Use it; allow AND and IOR to be variadic.
1613 * doc/md.texi: Document new notation.
1614 * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
1615 (cmpsi_operand): ... here, using new notation.
1617 2006-01-22 Zack Weinberg <zackw@panix.com>
1619 * varray.c: Remove GENERATOR_FILE #ifdefs.
1621 2006-01-22 Zack Weinberg <zackw@panix.com>
1623 * genautomata.c (output_reserved_units_table): Emit nothing if
1624 description->query_units_num is zero. Remove extra blank line.
1625 (output_cpu_unit_reservation_p): Short circuit
1626 if description->query_units_num is zero.
1628 2006-01-22 Zack Weinberg <zackw@panix.com>
1630 * genattrtab.c: Don't include genattrtab.h. Define ATTR_NONE
1631 and ATTR_SPECIAL (from genattrtab.h). Don't define num_dfa_decls
1632 nor any of the random handful of variables that used to be necessary
1633 when this program was linked with rtlanal.o. Prune set of forward
1634 function declarations.
1635 (struct attr_desc): Remove static_p field.
1636 (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
1637 (check_attr_test, make_internal_attr, make_numeric_value): Make static.
1638 (attr_string): Do not read the character one past the length of
1640 (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
1641 (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
1642 (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
1643 (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
1644 (make_automaton_attrs): New.
1645 (main): Do not call into genautomata. Call local gen_bypass
1646 and gen_insn_reserv as appropriate. Call make_automaton_attrs.
1647 Remove special case for insn_alts.
1648 * genautomata.c: Include gensupport.h; not genattrtab.h nor
1649 varray.h (leftover from previous change). Prune set of forward
1650 function declarations. Remove state_alts fields from all
1651 structures. Remove state_alts_table from struct automaton.
1652 Make everything except main static. Do not maintain num_dfa_decls.
1653 Do not maintain state_alts fields of various structures.
1654 (process_decls): Don't validate condexp for dm_insn_reserv decls.
1655 (add_arc): Remove state_alts argument. All callers updated.
1656 (output_reserved_units_table): Emit #ifdef here...
1657 (output_tables): ...not here. Don't generate state_alts tables.
1658 (expand_automata): Don't generate attributes.
1659 (write_automata): Don't generate state_alts functions.
1660 (main): New function.
1661 (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
1662 (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
1663 (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
1664 (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
1665 (BYPASS_P_FUNC_NAME, output_state_alts_table)
1666 (output_automata_list_state_alts_code, output_internal_state_alts_func)
1667 (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
1668 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
1670 * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
1671 * genattrtab.h: Delete file.
1672 * Makefile.in (OBJS-common): Add insn-automata.o.
1673 (insn-automata.o): New rule.
1674 (simple_generated_c): Add insn-automata.c.
1675 (build/genattrtab.o, build/genautomata.o): Update dependencies.
1676 (genprogmd): Add automata.
1677 (build/genattrtab): Needs no extra objects nor libraries.
1678 (build/genautomata): Needs build/vec.o and -lm.
1680 2006-01-22 Zack Weinberg <zackw@panix.com>
1682 * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
1683 (output_dfa_max_issue_rate, locked_states_num): Delete.
1684 (struct automaton): Add locked_states field.
1685 (output_dead_lock_vect): Save number of locked states in
1686 automaton->locked_states. If it is zero, don't print anything.
1687 (output_max_insn_queue_index_def): Define max_insn_queue_index const.
1688 (output_internal_dead_lock_func): Only test the dead_lock_vect
1689 for automata that have locked states.
1690 (output_statistics): Always print the number of locked states for
1691 each automaton. Calculate total number of locked states here.
1692 (write_automata): Don't call output_dfa_max_issue_rate.
1693 * genattrtab.c: Define length_unit_log as a const variable.
1694 * genattr.c: Don't emit MAX_DFA_ISSUE_RATE. Declare
1695 max_insn_queue_index const.
1696 * final.c (length_unit_log): Declare const.
1697 * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
1699 2006-01-22 Zack Weinberg <zackw@panix.com>
1701 * genautomata.c: Include vec.h, not varray.h.
1702 Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
1703 VLA_HWINT_ macros. Change vla_hwint_t to a typedef for
1704 VEC(vect_el_t,heap) *. Convert all uses of VLA_* macros to
1705 VEC_* macros operating on appropriately typed vectors, or to
1706 malloced arrays when the size is known in advance. Const-ify
1707 many char* variables and function arguments. No functional changes.
1708 * Makefile.in (build/varray.o): Delete rule.
1709 (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
1710 (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
1712 2006-01-22 Zack Weinberg <zackw@panix.com>
1714 * gensupport.c: Define get_insn_name and record_insn_name here.
1715 (read_md_rtx): Call record_insn_name as appropriate.
1716 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
1717 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
1718 * genpreds.c, genrecog.c: Don't define get_insn_name nor
1720 * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
1721 (BUILD_VARRAY): Delete.
1722 (genprognormal): Rename genprogmd. Fold in all programs from
1723 genprognoprint; also attrtab.
1724 (build/genattrtab): Just mention genautomata.o and varray.o.
1725 Reorganize a bit, add comments to make the categories clearer.
1727 2006-01-22 Zack Weinberg <zackw@panix.com>
1729 * genconditions.c (condition_table, add_condition): Delete.
1730 (write_conditions): Don't emit n_insn_conditions nor
1731 insn_elision_unavailable. Issue the gcc version #ifdef here,
1732 inside the table, with no #else clause ...
1733 (write_header): ...not here.
1734 (write_writer): New function.
1735 (main): Don't initialize condition_table. Use add_c_test.
1737 * gensupport.c (init_md_reader_args_cb): Handle multiple input
1738 files on the command line.
1739 (maybe_eval_c_test): Don't check insn_elision_unavailable.
1740 Return -1 if there is no entry in the table, don't abort.
1741 (add_c_test, traverse_c_tests): New functions.
1742 * gensupport.h (insn_elision_unavailable, insn_conditions)
1743 (n_insn_conditions): Delete declarations.
1744 (add_c_test, traverse_c_tests): Declare.
1745 * read-rtl.c: Include gensupport.h.
1746 (read_conditions): New function.
1747 (read_rtx): If read_rtx_1 returns 0, treat as EOF.
1748 (read_rtx_1): If we get EOF when we were looking for an initial
1749 open paren, return 0. Call read_conditions when appropriate.
1750 * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
1751 dummy-conditions.o. Eliminate references to insn-conditions.o,
1752 or change them to build/gencondmd.o, as appropriate. Remove
1753 insn-constants.h from $(simple_generated_h) and insn-conditions.c
1754 from $(simple_generated_c). For all files remaining in those
1755 two lists, add insn-conditions.md to the generator command line.
1756 Give insn-constants.h/s-constants their own rules. Add rules
1757 for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
1758 (build/read-rtl.o): Depend on gensupport.h.
1759 (genprognormal): Include preds.
1760 (genprogearly): Rename genprognoprint; only difference is now that
1761 they don't link with $(BUILD_PRINT).
1762 * dummy-conditions.c: Delete.
1764 2006-01-22 Zack Weinberg <zackw@panix.com>
1766 * genextract.c: Don't include insn-config.h. Do include vec.h.
1767 Declare vectors of int, char, and locstr.
1768 (locstr): New typedef.
1769 (struct extraction): Make all array fields into bare pointers.
1770 (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
1771 (insn_code_number): Delete.
1772 (accum_extract): New struct.
1773 (VEC_safe_set_locstr, VEC_char_to_string): New functions.
1774 (gen_insn): Take insn_code_number as an argument. Use an
1775 accum_extract structure instead of loading data directly into
1776 a struct extraction, and having to know how big it might get.
1777 (walk_rtx): Operate entirely on an accum_extract structure.
1778 (print_path): Avoid unnecessary use of printf.
1779 (print_header): New function, split out of main. Distinguish
1780 more carefully between an unrecognizable insn and an insn that
1781 has the code number of a define_expand.
1782 (main): Pass insn_code_number to gen_insn. Call print_header
1783 only after parsing. Avoid unnecessary use of printf.
1784 * Makefile.in (build/vec.o): New rule.
1785 (build/genextract): Depend on build/vec.o.
1786 (build/genextract.o): Don't depend on insn-config.h.
1788 2006-01-22 Zack Weinberg <zackw@panix.com>
1790 * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
1791 $(RUN_GEN). Use pattern rules to factor out as much boilerplate as
1792 practical. Eliminate per-generator-program link rules.
1794 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
1797 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
1798 with a call expr to ...
1799 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
1801 2006-01-23 Richard Guenther <rguenther@suse.de>
1803 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
1804 before make_edge with conditional EDGE_TRUE_VALUE.
1806 2006-01-23 Steven Bosscher <stevenb.gcc@gmail.com>
1807 Jan Hubicka <jh@suse.cz>
1808 Richard Guenther <rguenther@suse.de>
1810 PR rtl-optimization/25654
1811 * cfgexpand.c (aggregate_contains_union_type): New function.
1812 (add_alias_set_conflicts): Call it. Make sure to add conflicts
1813 for structure variables that contain a union type.
1815 2006-01-23 Richard Sandiford <richard@codesourcery.com>
1817 * gengtype.c (new_structure): Return the structure.
1818 (create_option): Add an extra "next" argument.
1819 (create_field): New function.
1820 (adjust_field_rtx_def): Use create_option and create_field.
1821 Remove a now-unnecessary call to find_structure.
1822 (adjust_field_tree_def): Likewise.
1823 (note_yacc_type): Remove an unnecessary call to find_structure.
1824 * gengtype.h (new_structure): Return the structure.
1825 (create_option): Add an extra argument.
1826 * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
1827 (option): Adjust calls to create_option.
1829 2006-01-22 David Edelsohn <edelsohn@gnu.org>
1831 * config/rs6000/aix.h (STACK_BOUNDARY): Define.
1833 2006-01-22 Paul Brook <paul@codesourcery.com>
1834 Peter Barada <peter@the-baradas.com>
1836 * config/m68k/m68k.md: Add Coldfire FPU support.
1837 Define FP mode macro and associated attributes.
1838 Use it for float mode patterns.
1839 * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
1840 (LIBCALL_VALUE): Use m68k_libcall_value.
1841 * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
1842 (m68k_function_value): Ditto.
1843 (emit_move_sequence): Ditto.
1844 * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
1845 * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
1846 * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
1847 (MULTILIB_EXCEPTIONS): Ditto.
1848 * config/m68k/m68k.opt: Add mcfv4e.
1849 * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
1850 (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
1851 (m68k_output_function_prologue): Save ColdFire FPU registers.
1852 (m68k_output_function_epilogue): Restore ColdFire FPU registers.
1853 (force_mode, fp_reg_operand, emit_move_sequence): New functions.
1854 (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
1855 ColdFire FPU registers.
1856 (m68k_libcall_value, m68k_function_value): New functions.
1857 * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
1858 (LIBCALL_VALUE): Use m68k_libcall_value.
1859 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
1860 (MASK_COLDFIRE): Add MASK_CFV4E.
1861 (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
1862 (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
1863 (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
1864 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
1865 (GO_IF_LEGITIMATE_ADDRESS): Use it.
1866 (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
1867 * doc/invoke.tex: Document -mcfv4e on m68k.
1869 2006-01-22 Ranjit Mathew <rmathew@gcc.gnu.org>
1871 * doc/contribute.texi: Change CVS to SVN and update the corresponding
1874 2006-01-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1877 * c-opts.c (c_common_handle_option): Don't include
1878 -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
1879 * doc/invoke.texi (C++ Dialect Options): Document that
1880 -Wnon-virtual-dtor is no longer included in -Wall.
1882 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
1884 * gcov.c (print_version), gcov-dump.c (print_version),
1885 mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
1888 2006-01-21 Kenneth Zadeck <zadeck@naturalbridge.com>
1890 * df-scan.c (problem_SCAN): Added NULL reset function.
1891 (df_scan_reset_blocks): Added code to call reset block function
1892 (df_bb_refs_delete) Fixed comment.
1893 (df_insn_refs_delete): Made tolerant of deleting non existent info
1894 for dataflow problems that need to be reset.
1895 * df-core.c (df_set_blocks): Ditto.
1896 * df.h (struct df_problem): Added reset_fun.
1897 * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
1898 problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
1899 (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
1900 functions to clear out all references to def-use or use-def chains.
1902 2006-01-21 Ben Elliston <bje@au.ibm.com>
1904 * varasm.c (assemble_real): Initialise data array.
1906 2006-01-20 Paul Brook <paul@codesourcery.com>
1908 Merge from csl-arm-branch.
1909 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
1910 * config/arm/arm.md (movdi): Force operands[1] to a register
1911 if we have a non-register source.
1912 (*arm_movdi, *movdf_soft_insn): Require that one of the
1913 operands be a register.
1914 * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
1915 * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
1917 2006-01-20 DJ Delorie <dj@redhat.com>
1919 * varasm.c (initialize_constant_valid_p): Allow pointers
1920 initialized from integer constants of lesser precision.
1921 (output_constant): Allow non-int-sized pointer modes to be
1922 initialized from integer constants.
1924 2006-01-20 Joseph S. Myers <joseph@codesourcery.com>
1927 * cppdefault.h (struct default_include): Add multilib flag.
1928 * cppdefault.c (cpp_include_defaults): Set it.
1929 * c.opt (-imultilib): New option.
1930 * c-opts.c (imultilib): New.
1931 (c_common_handle_option): Handle -imultilib.
1932 (c_common_post_options): Likewise.
1933 * c-incpath.c (add_standard_paths, register_include_chains):
1935 * c-incpath.h (register_include_chains): Add extra parameter.
1936 * gcc.c (do_spec_1): Generate -imultilib option.
1937 (The Specs Language): Update %I description.
1938 (process_command): Update copyright notice.
1939 * doc/cppopts.texi (-imultilib): Document.
1940 * doc/invoke.texi (-imultilib): Include in option summary.
1941 (%I): Update specs documentation.
1943 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
1945 * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
1947 2006-01-20 Richard Sandiford <richard@codesourcery.com>
1949 * stmt.c (case_bit_test_cmp): Stabilize the sort using code
1952 2006-01-20 Richard Guenther <rguenther@suse.de>
1953 Steven Bosscher <stevenb.gcc@gmail.com>
1955 PR rtl-optimization/24626
1956 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
1957 EDGE_TRUE_VALUE if in RTL mode.
1960 2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
1961 * cfgrtl.c (rtl_verify_flow_info_1): Fix.
1963 2006-01-20 Dirk Mueller <dmueller@suse.com>
1966 * c-parser.c (c_parser_if_body): Use build_empty_stmt()
1967 instead of a special NOP marker.
1968 * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
1969 NOP marker handling.
1970 * c-common.h (empty_body_warning): Add forward declaration.
1971 * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
1972 Now uses IS_EMPTY_STMT() instead of special NOP markers.
1974 2006-01-20 Paul Brook <paul@codesourcery.com>
1976 * Makefile.in (lang_checks): Keep going if mkdir fails.
1978 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
1980 * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
1981 be able to clean out basic block when not necessary.
1982 (df_scan_free): Fixed to properly delete information if df is
1983 unused before calling df_finish.
1984 (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
1985 df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
1987 (df_bb_refs_delete): New function.
1988 (df_refs_delete): Moved per block code to df_bb_refs_delete.
1989 * df-core.c (df_set_blocks): Added code to properly clean out
1990 unused blocks if they are not part of the blocks to consider.
1991 Added additional null check.
1992 (df_compact_blocks): Added basic block parameter to free_bb_fun to
1993 be able to clean out basic block when not necessary
1994 * df.h (df_free_bb_function): Ditto.
1995 (df_bb_refs_delete): New function.
1996 * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
1997 df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
1998 basic block parameter to be able to clean out basic block when not
2000 (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
2001 (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
2002 Fixed to properly delete information if df is unused before
2005 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
2007 PR rtl-optimization/25799
2008 * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
2009 Corrected confluence operator to remove bits from op2 before oring
2010 with op1 rather than removing bits from op1.
2011 (df_ru_transfer_function): Corrected test on wrong bitmap which
2012 caused infinite loop. Both of these problems were introduced in
2013 the dataflow rewrite.
2015 2006-01-19 DJ Delorie <dj@redhat.com>
2017 * reload1.c (find_reload_regs): Note the details of reload
2018 failures in the dump file.
2019 (spill_failure): Likewise.
2021 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
2023 * loop-iv.c: Include df.h and hashtab.h.
2024 (enum iv_grd_result): New enum.
2025 (DF_REF_IV, DF_REF_IV_SET): New macros.
2026 (struct biv_entry): New.
2027 (df, bivs): New global variables.
2028 (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
2029 assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
2031 (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
2032 iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
2033 analyzed_for_bivness_p, record_biv): New functions.
2034 (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
2035 get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
2036 iv_analyze, biv_p, iv_analysis_done): Work with df representation of
2038 (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
2040 (iv_number_of_iterations): Use new interface to iv analysis.
2041 * loop-unroll.c: Do not include varray.h.
2042 (analyze_iv_to_split_insn): Use new interface to iv
2044 * loop-unswitch.c (may_unswitch_on): Ditto.
2045 * df.c (df_bitmaps_free): Only work for bbs for that structures are
2047 (df_bb_modify): Realloc tables to the new index.
2048 (df_find_use): New function.
2049 * df.h (df_find_use): Declare.
2050 * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
2052 * cfgloop.h (struct rtx_iv): Remove analysed field.
2053 (iv_get_reaching_def): Removed.
2054 (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
2055 * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
2056 (loop-iv.o): Add df.h and hashtab.h dependency.
2057 * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
2059 2006-01-20 Alan Modra <amodra@bigpond.net.au>
2062 * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
2064 (__floatundisf, __floatundidf): Likewise.
2065 * libgcc2.h (IS_IBM_EXTENDED): Define.
2067 2006-01-19 DJ Delorie <dj@redhat.com>
2069 * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
2071 2006-01-19 Paul Brook <paul@codesourcery.com>
2073 * gcc/config/arm/arm.c (arm_compute_func_type): Treat all functions
2074 as nothrow when unwinding tables are disabled.
2076 2006-01-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2079 * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
2080 of bit-field" when in system header.
2082 2006-01-19 DJ Delorie <dj@redhat.com>
2084 * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
2085 the 16 bit shift limit of the m16c.
2087 2006-01-19 Andrew Pinski <pinskia@physics.uc.edu>
2090 * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
2091 * config/i386/i386.c (output_set_got): Output the label if we have one
2092 for the TARGET_DEEP_BRANCH_PREDICTION case.
2094 2006-01-19 Jan Hubicka <jh@suse.cz>
2095 H.J. Lu <hongjiu.lu@intel.com>
2096 Evandro Menezes <evandro.menezes@amd.com>
2098 * invoke.texi (generic): Document
2100 * config.gcc: Make x86_64-* and i686-* default to generic tunning.
2101 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
2102 TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
2103 (x86_use_incdec, x86_pad_returns): New variables
2104 (TARGET_CPU_DEFAULT_generic): New constant
2105 (TARGET_CPU_DEFAULT_NAMES): Add generic.
2106 (enum processor_type): Add generic32 and generic64.
2107 * i386.md (cpu attribute): Add generic32/generic64
2108 (movhi splitter): Behave sanely when both partial_reg_dependency and
2109 partial_reg_stall are set.
2110 (K8 splitters): Enable for generic as well.
2111 * predicates.md (incdec_operand): Use TARGET_INCDEC
2112 (aligned_operand): Avoid memory mismatch stalls.
2113 * athlon.md: Enable for generic64, new patterns for 128bit moves.
2114 * ppro.md: Enable for generic32
2115 * i386.c (generic64_cost, generic32_cost): New.
2116 (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
2117 (x86_use_leave): Enable for generic64. (x86_use_sahf,
2118 x86_ext_80387_constants): Enable for generic32. (x86_push_memory,
2119 x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
2120 x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
2121 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
2122 x86_partial_reg_dependency, x86_memory_mismatch_stall,
2123 x86_accumulate_outgoing_args, x86_prologue_using_move,
2124 x86_epilogue_using_move, x86_arch_always_fancy_math_387,
2125 x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
2127 (x86_use_incdec, x86_pad_returns): New.
2128 (override_options): Add generic32 and generic64, translate "generic"
2129 to generic32/generic64 and "i686" to "generic32", refuse
2130 "generic32"/"generic64" as arch target.
2131 (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
2132 (ix86_reorg): Honor PAD_RETURNS.
2134 2006-01-19 Diego Novillo <dnovillo@redhat.com>
2136 * tree-pretty-print.c (dump_generic_node): Handle
2137 OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
2138 * cgraph.c (cgraph_expand_queue): Rename from
2139 cgraph_analyze_queue. Update all users.
2140 * cgraphunit.c (cgraph_assemble_pending_functions): Process
2141 cgraph_expand_queue.
2142 (cgraph_expand_all_functions): Likewise.
2143 (cgraph_finalize_pending_functions): Remove. Update callers.
2145 * tree.h (OMP_DIRECTIVE_P): Define.
2146 (OMP_PARALLEL_FN): Define.
2147 (OMP_PARALLEL_DATA_ARG): Define.
2148 (OMP_SECTIONS_SECTIONS): Define.
2149 * tree-pass.h (pass_expand_omp): Declare.
2150 * omp-low.c (struct omp_region): Declare.
2151 (struct omp_context): Remove fields 'parallel_type',
2152 'parallel_start_ix' and 'parallel_start_additional_args'.
2154 (struct omp_for_data): Rename from struct expand_omp_for_data.
2155 (omp_regions): New static variable.
2156 (root_omp_region): New static variable.
2157 (find_omp_clause): Make static.
2158 (is_in_combined_parallel_ctx): Remove.
2159 (is_combined_parallel): New.
2160 (extract_omp_for_data): Move earlier in the file.
2161 (workshare_safe_to_combine_p): New.
2162 (get_ws_args_for): New.
2163 (determine_parallel_type): Move earlier in the file.
2164 (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
2166 (omp_copy_decl): Likewise.
2167 (create_omp_child_function): Likewise.
2168 (lookup_omp_region): New.
2169 (dump_omp_region): New.
2170 (debug_omp_region): New.
2171 (debug_all_omp_regions): New.
2172 (new_omp_region): New.
2173 (scan_omp_parallel): If parallel_nesting_level > 1, the
2174 directive is nested within another parallel directive.
2175 Set OMP_PARALLEL_FN.
2176 (scan_omp_for): Do not try to handle combined parallel+for
2178 Remove FIXME comment.
2179 (scan_omp_nested): Remove.
2180 (scan_omp_1): Do not call scan_omp_nested when
2181 parallel_nesting_level is > 1.
2182 Do not change the DECL_CONTEXT of local variables found.
2183 (lookup_decl_in_outer_ctx): New.
2184 (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
2185 (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
2186 (lower_reduction_clauses): Rename from expand_reduction_clauses.
2187 (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
2188 If CTX is nested, lookup VAR in the outer context when
2189 building copy assignment.
2190 (lower_send_clauses): Rename from expand_send_clauses.
2191 If CTX is nested, lookup VAR in the outer context when
2192 building copy assignments.
2193 (lower_send_shared_vars): Rename from expand_send_shared_vars.
2194 If CTX is nested, lookup VAR in the outer context when
2195 building copy assignments.
2196 (expand_parallel_call): Rename from build_parallel_call.
2197 Handle combined parallel+workshare cases.
2198 Re-implement to emit code into the CFG.
2200 (expand_omp_parallel): Re-implement to emit code into the CFG.
2201 Call move_sese_region_to_fn to outline the sub-graph
2202 containing the parallel region.
2203 (expand_omp_for_1): Remove.
2204 (expand_omp_for_generic): Re-implement to emit code into the
2206 (expand_omp_for_static_nochunk): Likewise.
2207 (expand_omp_for_static_chunk): Likewise.
2208 (expand_omp_for): Likewise.
2209 (expand_omp_sections): Likewise.
2210 (remove_exit_barriers): New.
2211 (expand_omp_synch): New.
2213 (build_omp_regions_1): New.
2214 (build_omp_regions): New.
2215 (execute_expand_omp): New.
2216 (gate_expand_omp): New.
2217 (pass_expand_omp): Define.
2218 (lower_omp_sections): Rename from expand_omp_sections.
2219 Set OMP_SECTIONS_SECTIONS.
2220 (lower_omp_single_simple): Rename from expand_omp_single_simple.
2221 (lower_omp_single_copy): Rename from expand_omp_single_copy.
2222 (lower_omp_single): Rename from expand_omp_simple.
2223 (lower_omp_master): Rename from expand_omp_master.
2224 (lower_omp_ordered): Rename from expand_omp_ordered.
2225 (lower_omp_critical): Rename from expand_omp_critical.
2226 (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
2227 (lower_omp_for): Re-implement.
2228 (lower_omp_parallel): Re-implement.
2229 (lower_regimplify): Rename from expand_regimplify.
2230 (lower_omp_1): Rename from expand_omp_1.
2231 If there are syntax errors in the program, replace every
2232 OpenMP directive with NOP.
2233 Call lower_omp_* instead of expand_omp_*.
2234 (lower_omp): Rename from expand_omp.
2236 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
2237 * tree-gimple.h (enum omp_parallel_type): Remove.
2238 (gimple_boolify): Declare extern.
2239 (find_omp_clause, determine_parallel_type): Remove.
2241 * gimple-low.c (lower_omp_directive): New.
2242 (lower_stmt): Call it.
2243 (record_vars_into): Move from ...
2244 (record_vars): ... here.
2245 Call record_vars_into with current_function_decl.
2247 * gimplify.c (struct gimplify_ctx): Remove fields
2248 combined_pre_p and combined_ctxp. Update users.
2249 (get_formal_tmp_var): Add documentation.
2250 (gimple_boolify): Make extern.
2251 (gimplify_expr_in_ctx): Remove. Update callers.
2252 (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
2253 will always be a BIND_EXPR.
2254 (gimplify_expr): Handle OMP_RETURN_EXPR.
2255 * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
2256 (OMP_PARALLEL): Add 3 operands.
2257 (OMP_SECTIONS): Add 1 operand.
2258 (OMP_RETURN_EXPR): Define.
2260 * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
2261 (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
2262 * tree-iterator.c (alloc_stmt_list): Assert that we are not
2263 creating a circular free list.
2264 (free_stmt_list): Assert that we are not freeing stmt_list_cache.
2266 * tree-flow.h (move_sese_region_to_fn): Declare.
2267 (record_vars_into): Declare.
2268 * tree-cfg.c (make_omp_sections_edges): New.
2269 (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
2270 OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
2271 OMP_SECTIONS and OMP_SECTION.
2272 (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
2273 (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
2274 (verify_stmt): Do not handle OMP_DIRECTIVE_P.
2275 (gather_blocks_in_sese_region): New.
2276 (struct move_stmt_d): Declare.
2278 (move_block_to_fn): New.
2279 (move_sese_region_to_fn): New.
2281 * passes.c (init_optimization_passes): Schedule
2282 pass_expand_omp after pass_init_datastructures.
2284 * tree-ssa-operands.c (get_expr_operands): Handle
2285 OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
2286 OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
2288 2006-01-19 Jeff Law <law@redhat.com>
2290 * tree-vrp.c (extract_range_from_assert): Refine the result range
2291 if the variable referenced by the ASSERT_EXPR has a range and
2292 either the tentative result range or the previous range is a
2295 2006-01-19 Richard Sandiford <richard@codesourcery.com>
2297 * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
2299 2006-01-19 Jan Hubicka <jh@suse.cz>
2301 * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
2303 2006-01-19 Paolo Bonzini <bonzini@gnu.org>
2305 * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
2306 (expand_compound_operation, expand_field_assignment): Fail if the
2307 bit lengths of an extract operation are out of range.
2308 (make_extraction): Compute wanted_inner_mode based on the position
2309 and length of the extraction. Make it extraction_mode for non-constant
2310 positions, and do not modify offset in that case. When generating a
2311 new MEM, use a mode that can hold the extraction while keeping correct
2312 alignment. Remove code that supported MEMs wrapped by USEs.
2313 (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
2315 2006-01-19 Andreas Krebbel <krebbel1@de.ibm.com>
2317 * config/s390/s390.md ("Y", "y"): New mode attribute.
2318 ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
2319 "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
2320 "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
2321 "*addsi3_imm_cc", "*addsi3_carry1_cc",
2322 "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
2323 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
2324 "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
2325 "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
2326 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
2327 "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
2328 "addsi3", "subsi3"): Insn patterns removed.
2329 ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
2330 "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
2331 "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
2332 "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
2333 "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
2334 "*sub<mode>3_cconly2"): New insn patterns.
2335 ("addsi3", "subsi3"): New expanders.
2337 2006-01-19 Dorit Nuzman <dorit@il.ibm.com>
2339 * Makefile.in (tree-vect-patterns.o): Add rule for new file.
2340 * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
2341 existing STMT_VINFO_VECTYPE if available.
2342 (vect_mark_relevant): Add special handling for stmts that are
2343 marked as STMT_VINFO_IN_PATTERN_P.
2344 (vect_analyze_loop): Call vect_pattern_recog.
2345 * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
2346 * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
2348 (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
2349 (vect_recog_func_ptr): New function-pointer type.
2350 * tree-vect-patterns.c: New file.
2351 (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
2352 (vect_recog_dot_prod_pattern, vect_pattern_recog):
2353 (vect_pattern_recog_1): New functions.
2354 (vect_pattern_recog_funcs): New array of function pointers.
2356 * tree-vectorizer.h (ternary_op): New enum value.
2357 * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
2358 declaration. Revised documentation. Removed redundant dump prints.
2359 Removed redundant argument. Added support for reduction patterns.
2360 (vectorizable_reduction): Added support for reduction patterns.
2361 (vect_transform_stmt): Added support for patterns.
2363 * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
2364 * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
2365 * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
2366 (expand_widen_pattern_expr): New function.
2367 (init_optabs): Initialize new optabs udot_prod_optab,
2369 * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
2370 (sdot_prod_optab, udot_prod_optab): Define new optabs.
2371 (expand_widen_pattern_expr): New function declaration.
2372 * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
2374 * tree-inline.c (estimate_num_insns_1): Added cases for new
2375 tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
2376 * tree-pretty-print.c (dump_generic_node): Likewise.
2377 (op_prio): Likewise.
2378 (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
2379 * tree-ssa-operands.c (get_expr_operands): Added case for
2381 * tree-vect-patterns.c (widened_name_p): New function.
2382 (vect_recog_dot_prod_pattern): Added function implementation.
2383 * tree-vect-transform.c (get_initial_def_for_reduction): Added
2384 cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
2385 * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
2386 * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
2388 * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
2389 * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
2390 * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
2391 (init_optabs): Initialize new optabs widen_ssum_optab,
2393 * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
2394 (widen_ssum_optab, widen_usum_optab): Define new optabs.
2395 * tree-vect-generic.c: (expand_vector_operations_1): Check type of
2396 use instead of type of def.
2397 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
2398 function implementation.
2399 * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
2400 widen_ssumv8hi): New.
2402 * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
2405 2006-01-19 Richard Sandiford <richard@codesourcery.com>
2408 * c-decl.c (add_flexible_array_elts_to_size): New function.
2409 (finish_decl): Use it.
2411 2006-01-18 Andrew Pinski <pinskia@physics.uc.edu>
2413 * diagnostic.h: Include options.h.
2414 * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
2415 dependancies for diagnostic.h.
2416 * Makefile.in (DIAGNOSTIC_H): Add options.h.
2418 2006-01-16 Daniel Berlin <dberlin@dberlin.org>
2420 * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
2421 (ssa_ro_call_cache_valid): Ditto.
2422 * tree-ssa-alias.c (sort_tags_by_id): New function.
2423 (init_transitive_clobber_worklist): Ditto.
2424 (add_to_worklist): Ditto.
2425 (mark_aliases_call_clobbered): Ditto.
2426 (compute_tag_properties): Ditto.
2427 (set_initial_properties): Ditto.
2428 (compute_call_clobbered): Ditto.
2429 (compute_may_aliases): Call compute_call_clobbered and grouping.
2430 (compute_flow_sensitive_aliasing): Remove clobbering related code.
2431 (compute_flow_insensitive_aliasing): Grouping now happens in our
2433 (setup_pointers_and_addressables): Remove clobbering related code.
2434 (add_may_alias): Ditto.
2435 (replace_may_alias): Ditto.
2436 (get_nmt_for): Ditto.
2437 (create_global_var):
2438 (is_escape_site): Return an escape_type enumeration.
2439 * tree-flow-inline.h (is_call_clobbered): Global var does not
2440 imply call clobbered.
2441 (mark_call_clobbered): Take a reason for marking this. Remove
2442 marking of globalness, and cache invalidation.
2443 (clear_call_clobbered): Remove cache invalidation code.
2444 * tree-dfa.c (dump_variable): If details is on, dump the reason
2446 * tree-outof-ssa.c (create_temp): Copy escape mask from original
2448 * tree-flow.h (struct ptr_info_def): Add escape mask member.
2449 (struct var_ann_d): Ditto.
2450 (enum escape_type): New.
2451 (mark_call_clobbered): Adjust prototype.
2452 * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
2453 are never call clobbered.
2454 Record reasons for escaping.
2455 * tree-ssa-structalias.h (is_escape_site): Update prototype.
2456 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
2457 (ssa_ro_call_cache_valid): Ditto.
2458 (clobbered_v_may_defs): Ditto.
2459 (clobbered_vuses): Ditto.
2460 (ro_call_vuses): Ditto.
2461 (clobber_stats): New.
2462 (init_ssa_operands): Zero out clobber stats.
2463 (fini_ssa_operands): Print out clobber stats.
2464 (get_call_expr_operands): Pass callee fndecl to
2466 (add_call_clobber_ops): Remove use of cache.
2467 Add use of PURE_CONST information.
2468 (add_call_read_ops): Remove use of cache.
2469 Add use of static not_read information.
2471 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
2473 Introduce TLS descriptors for i386 and x86_64.
2474 * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
2475 (TARGET_ANY_GNU_TLS): New macro.
2476 (enum tls_dialect): Added TLS_DIALECT_GNU2.
2477 (struct machine_function): Add tls_descriptor_call_expanded_p.
2478 (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
2479 (ix86_current_function_calls_tls_descriptor): Likewise.
2480 * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
2481 (override_options): Introduce gnu2 tls dialect.
2482 (ix86_frame_pointer_required): Functions containing TLSCALLs are
2484 (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
2486 (legitimize_tls_address): Adjust logic for GNU2 TLS.
2487 (ix86_init_machine_status): Initialize new field.
2488 (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
2489 (ix86_tls_module_base): New.
2490 * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
2491 * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
2492 (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
2493 (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
2494 (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
2495 (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
2496 (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
2497 (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
2498 * config/i386/predicates.md (tls_modbase_operand): New.
2499 (tp_or_register_operand): New.
2501 2006-01-18 Daniel Berlin <dberlin@dberlin.org>
2503 * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
2504 (look_for_address_of): Ditto.
2505 (ipa_init): Walk the function decls.
2506 (static_execute): Don't set readonly on FUNCTION_DECL's.
2508 2006-01-18 Roger Sayle <roger@eyesopen.com>
2510 * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
2511 for shifts where the source and destination registers are different.
2513 2006-01-18 Paul Brook <paul@codesourcery.com>
2515 Merge from csl-arm-branch.
2516 2005-03-14 Julian Brown <julian@codesourcery.com>
2517 * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
2518 (aeabi_llsl): Likewise.
2519 (ashrdi3): Likewise.
2520 (aeabi_lasr): Likewise.
2521 (lshrdi3): Likewise.
2522 (aeabi_llsr): Likewise.
2523 2005-03-10 Julian Brown <julian@codesourcery.com>
2524 * config.gcc: Disable shared libgcc for SymbianOS.
2525 * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
2527 2006-01-18 DJ Delorie <dj@redhat.com>
2529 * c-pragma.c (handle_pragma_diagnostic): New.
2530 (init_pragma): Register it.
2531 * doc/extend.texi: Document it.
2533 * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
2534 * diagnostic.h (diagnostic_classify_diagnostic): Declare.
2535 (diagnostic_context): Add classify_diagnostic[].
2536 * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
2537 as errors if they're overridden to DK_WARNING.
2538 (diagnostic_initialize): Initialize classify_diagnostic[].
2539 (diagnostic_set_kind_override): New.
2540 (diagnostic_report_diagnostic): Check for kind changes.
2541 * opts.c (common_handle_option): Take lang_mask. Update callers.
2543 * common.opt (Werror=): New.
2544 * doc/invoke.texi: Document -Werror=*
2546 2006-01-18 Jeff Law <law@redhat.com>
2548 * tree-vrp.c (test_for_singularity): Correct test for new
2549 min limit. Use operand_equal_p rather than pointer equality
2550 for testing if new min/max values are equal.
2552 * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
2553 using range information until after propagation and folding.
2555 2006-01-18 Richard Henderson <rth@redhat.com>
2556 Aldy Hernandez <aldyh@redhat.com>
2557 Jakub Jelinek <jakub@redhat.com>
2558 Diego Novillo <dnovillo@redhat.com>
2560 * omp-low.c: New file.
2561 * c-omp.c: New file.
2563 2006-01-18 Richard Henderson <rth@redhat.com>
2564 Jakub Jelinek <jakub@redhat.com>
2565 Diego Novillo <dnovillo@redhat.com>
2567 * doc/invoke.texi: Document -fopenmp.
2568 * tree-dump.h (debug_function): Declare.
2569 * hooks.c (hook_bool_tree_bool_false): New function.
2570 (hook_tree_tree_null): Remove.
2571 (hook_tree_tree_tree_null): New.
2572 * hooks.h: Update to match.
2573 * tree-pretty-print.c (debug_tree_chain): New.
2574 (print_generic_expr): Handle TDF_CHAIN.
2575 (dump_generic_node): Handle BLOCK.
2576 Do not abort with incomplete SWITCH_EXPRs.
2577 Do not dump body of an OpenMP directive if TDF_SLIM is given.
2578 <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
2579 print space after directive name.
2580 <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
2581 Handle OMP_MASTER and OMP_ORDERED.
2582 Handle printing of OMP_BODY just in one place, goto
2583 dump_omp_body in the rest of OMP_* nodes that have
2585 Don't handle clause nodes here. Update omp statements to
2586 use dump_omp_clauses.
2587 Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
2588 OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
2589 OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
2590 GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
2591 GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
2592 GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
2593 Adjust output for GOMP_PARALLEL.
2594 (dump_omp_clauses): New.
2595 (print_declaration): Dump DECL_VALUE_EXPR.
2596 (op_symbol_1): Split out of op_symbol.
2597 (dumping_stmts): Remove. Update all users.
2598 * cgraph.c (cgraph_analyze_queue): New.
2599 (cgraph_add_new_function): New.
2600 * cgraph.h (cgraph_analyze_queue): Declare.
2601 (cgraph_add_new_function): Declare.
2602 (cgraph_lower_function): Remove.
2603 * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
2604 nodes. Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
2605 and TYPE_P nodes in its default clause.
2606 (empty_body_p): New.
2607 (tree_range_check_failed): New.
2609 * tree.h (OMP_CLAUSE_REDUCTION_INIT,
2610 OMP_CLAUSE_REDUCTION_MERGE,
2611 OMP_CLAUSE_REDUCTION_PLACEHOLDER,
2612 OMP_CLAUSE_PRIVATE_DEBUG,
2613 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
2614 OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
2615 OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
2616 OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
2617 OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
2618 OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
2619 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
2620 OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
2621 OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
2622 OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
2623 OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
2624 OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
2625 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
2626 OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
2627 (TREE_RANGE_CHECK): New.
2628 (empty_body_p): Declare.
2629 (enum omp_clause_default_kind): New.
2630 (build_string_literal): Declare.
2631 (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
2632 (build5_stat, build5): Declare.
2633 * tree-pass.h (TDF_CHAIN): Define.
2634 * tree-pass.h (PROP_gimple_lomp): Define.
2635 (pass_lower_omp): Declare.
2636 * diagnostic.h (debug_tree_chain): Declare.
2637 * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
2639 (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
2640 * builtins.c (build_string_literal): Make extern.
2641 * gcc.c (include_spec_function): New.
2642 (static_spec_functions): Add it.
2643 (main): Move load of libgomp.spec ...
2644 (LINK_COMMAND_SPEC): ... here.
2645 (link_gomp_spec): New.
2646 (static_specs): Include it.
2647 (LINK_COMMAND_SPEC): Add link_gomp.
2648 (GOMP_SELF_SPECS): New.
2649 (driver_self_specs): Include it.
2650 (switch_matches): Don't mark inline.
2651 (main): Load libgomp.spec.
2652 * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
2653 OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
2654 and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
2655 * tree-gimple.h (enum omp_parallel): Declare.
2656 (determine_parallel_type): Declare.
2657 (omp_firstprivatize_variable): Declare.
2658 (omp_reduction_init): Declare.
2659 (diagnose_omp_structured_block_errors): Declare.
2660 (struct walk_stmt_info): Add want_return_expr.
2661 (struct walk_stmt_info): Add want_bind_expr, want_locations.
2662 (find_omp_clause): Declare.
2663 (insert_field_into_struct): Declare.
2664 (struct walk_stmt_info): Move from tree-nested.c
2665 (walk_stmts): Declare.
2666 * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
2668 * cgraphunit.c (cgraph_lower_function): Make static.
2669 (cgraph_finalize_pending_functions): New.
2670 (cgraph_finalize_function): Call it.
2671 (cgraph_finalize_compilation_unit): Likewise.
2672 * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
2673 BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
2674 (BT_FN_UINT_UINT): New.
2675 (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
2676 DEF_FUNCTION_TYPE_VAR_4): Document.
2677 (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
2678 BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
2679 BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
2680 BT_FN_VOID_OMPFN_PTR_UINT_UINT,
2681 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
2682 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
2683 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
2684 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
2685 * builtins.def: Update DEF_BUILTIN comment to include COND argument.
2686 Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
2687 into separate files.
2688 (DEF_GOMP_BUILTIN): New.
2689 (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
2690 BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
2691 BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
2692 BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
2693 BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
2694 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
2695 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
2696 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
2697 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
2698 BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
2699 BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
2700 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
2701 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
2702 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
2703 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
2704 BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
2705 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
2706 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
2707 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
2708 BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
2709 BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
2710 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
2711 BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
2712 BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
2713 BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
2714 BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
2715 * sync-builtins.def: New file, moved from builtins.def.
2716 * omp-builtins.def: New file, moved from builtins.def.
2717 * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
2718 * gimple-low.c (lower_function_body): Clear data.
2719 (lower_stmt): Do not handle COMPOUND_EXPR.
2720 Remove call to print_node_brief.
2721 * c-tree.h (c_finish_omp_clauses): New prototype.
2722 (C_DECL_THREADPRIVATE_P): Define.
2723 (lookup_name_no_remap, c_omp_remap_private): Remove
2724 (c_begin_omp_parallel, c_finish_omp_parallel): Update.
2725 (check_for_loop_decls): Update decl.
2726 (lookup_name_no_remap, c_omp_remap_private): Declare.
2727 (build_indirect_ref, build_modify_expr, pushdecl,
2728 pushdecl_top_level): Move to c-common.h.
2729 * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
2730 before the switch, but just in the 2 places that need it.
2731 * c-decl.c (diagnose_mismatched_decls): Do not check for
2732 mismatched thread-local attributes when OLDDECL is marked
2733 threadprivate and NEWDECL has no thread-local attributes.
2734 (merge_decls): Merge C_DECL_THREADPRIVATE_P.
2735 (c_gimple_diagnostics_recursively): Rename from
2736 c_warn_unused_result_recursively. Invoke
2737 diagnose_omp_structured_block_errors.
2738 (check_for_loop_decls): Return a singular decl found.
2739 * langhooks.c (lhd_omp_predetermined_sharing): Return
2740 OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
2741 (lhd_omp_firstprivatize_type_sizes): New.
2742 (lhd_omp_assignment): New.
2743 (lhd_omp_predetermined_sharing): New.
2744 * langhooks.h (struct gimplify_omp_ctx): Forward declare.
2745 (struct lang_hooks_for_types): Add
2746 omp_firstprivatize_type_sizes, omp_privatize_by_reference,
2747 omp_predetermined_sharing, omp_disregard_value_expr,
2748 omp_private_debug_clause, omp_clause_default_ctor,
2749 omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
2750 (c_finish_omp_clauses): New.
2751 (c_finish_bc_stmt): Diagnose break within omp for.
2752 (c_begin_omp_parallel, c_finish_omp_parallel): New.
2753 (build_unary_op): Return error_mark after reporting
2755 (build_modify_expr): Likewise.
2756 * gimplify.c: Include optabs.h and pointer-set.h.
2757 (enum gimplify_omp_var_data): Declare.
2758 (struct gimplify_omp_ctx): Declare.
2759 (struct gimplify_ctx): Add fields prev_context, combined_pre_p
2761 (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
2762 (push_gimplify_context, pop_gimplify_context): Allow nesting.
2763 (splay_tree_compare_decl_uid): New.
2764 (new_omp_context): New.
2765 (delete_omp_context): New.
2766 (gimple_add_tmp_var): Call omp_add_variable.
2767 (gimplify_bind_expr): Likewise.
2768 (gimplify_var_or_parm_decl): If omp_notice_variable returned
2769 true, disregard DECL_VALUE_EXPR on the decl if any.
2770 (gimplify_expr_in_ctx): New.
2771 (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
2772 omp_add_variable, omp_notice_variable, omp_is_private
2773 gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
2774 gimplify_adjust_omp_clauses, gimplify_omp_parallel
2775 gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
2776 gimplify_omp_atomic_fetch_op, goa_stabilize_expr
2777 gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
2778 gimplify_omp_atomic): New.
2779 (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
2780 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
2781 OMP_CRITICAL and OMP_ATOMIC.
2782 (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
2783 * c-pragma.h (enum pragma_kind): Add
2784 PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
2785 PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
2786 PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
2787 PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
2788 PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
2789 PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
2790 PRAGMA_OMP_THREADPRIVATE.
2791 * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
2792 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
2793 OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
2794 OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
2795 OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
2796 OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
2797 OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
2798 OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
2799 OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
2800 * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
2801 * tree-ssa-dce.c (find_control_dependence): Do not assume that
2802 ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
2803 * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
2805 (struct nesting_info): Add field_map,
2806 suppress_expansion, debug_var_chain.
2807 (create_nesting_tree): Initialize them.
2808 (lookup_field_for_decl): Use field_map.
2809 (get_nonlocal_debug_decl, get_local_debug_decl): New.
2810 (convert_local_omp_clauses): New.
2811 (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
2812 (walk_body): Split out of walk_function.
2813 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
2814 (convert_nonlocal_reference): Handle omp statements.
2815 (convert_local_reference): Likewise.
2816 (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
2817 (unnest_nesting_tree): New.
2818 (lower_nested_functions): Call it.
2819 (insert_field_into_struct): Make extern.
2820 (struct walk_stmt_info): Move to tree-gimple.h.
2821 (walk_stmts): Make extern.
2822 * omp-builtins.def: New file.
2823 * tree-iterator.c (expr_only): Clarify comment.
2824 * c-common.h (pushdecl_top_level, pushdecl,
2825 build_modify_expr, build_indirect_ref,
2826 c_finish_omp_master, c_finish_omp_critical,
2827 c_finish_omp_ordered, c_finish_omp_barrier,
2828 c_finish_omp_atomic, c_finish_omp_flush,
2829 c_finish_omp_for, c_split_parallel_clauses,
2830 omp_clause_default_kind, c_omp_sharing_predetermined,
2831 c_omp_remap_decl): Declare.
2832 * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
2833 (OBJS-common): Add omp-low.o.
2834 (c-omp.o, omp-low.o): Add.
2835 (gimplify.o): Add dependency on $(OPTABS_H).
2836 (GTFILES): Add omp-low.c.
2837 (gt-stringpool.h): Add.
2838 * tree-cfg.c (set_bb_for_stmt): Do not update the
2839 block-to-labels map if we are currently expanding to RTL.
2840 (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
2842 Handle IDENTIFIER_NODE.
2843 (tree_verify_flow_info): Do not ICE when emitting error
2844 messages about invalid labels.
2845 (dump_function_to_file): Reset CFUN before emitting the body
2847 (debug_function): New.
2848 * passes.c (init_optimization_passes): Schedule
2850 * langhooks-def.h (lhd_omp_predetermined_sharing,
2851 lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
2853 (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
2854 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
2855 (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
2856 LANG_HOOKS_OMP_PREDETERMINED_SHARING,
2857 LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
2858 LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
2859 LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
2860 LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
2861 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
2862 LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
2863 (LANG_HOOK_DECLS): Use them.
2865 2006-01-18 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
2866 Richard Henderson <rth@redhat.com>
2867 Jakub Jelinek <jakub@redhat.com>
2868 Diego Novillo <dnovillo@redhat.com>
2870 * c-parser.c (pragma_omp_clause): Define.
2871 (c_parser_declaration_or_fndef): Document OpenMP syntax.
2872 (c_parser_compound_statement): Likewise.
2873 (c_parser_statement): Likewise.
2874 (c_parser_pragma): Handle omp pragmas.
2875 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
2876 OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
2877 (c_parser_omp_clause_name, check_no_duplicate_clause,
2878 c_parser_omp_variable_list,
2879 c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
2880 c_parser_omp_clause_copyprivate,
2881 c_parser_omp_clause_default,
2882 c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
2883 c_parser_omp_clause_lastprivate,
2884 c_parser_omp_clause_nowait,
2885 c_parser_omp_clause_num_threads,
2886 c_parser_omp_clause_ordered, c_parser_omp_clause_private,
2887 c_parser_omp_clause_reduction,
2888 c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
2889 c_parser_omp_all_clauses, c_parser_omp_structured_block,
2890 c_parser_omp_atomic, c_parser_omp_barrier,
2891 c_parser_omp_critical, c_parser_omp_flush,
2892 c_parser_omp_for_loop, c_parser_omp_for,
2893 c_parser_omp_master, c_parser_omp_ordered,
2894 c_parser_omp_sections_scope, c_parser_omp_sections,
2895 c_parser_omp_parallel, c_parser_omp_single,
2896 c_parser_omp_construct, c_parser_omp_threadprivate): New.
2897 * c-pragma.c (init_pragma): Do omp pragma registration here.
2898 * c.opt (fopenmp): New flag.
2900 2006-01-18 Eric Christopher <echristo@apple.com>
2902 * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
2903 * config/darwin.h (GOMP_SELF_SPECS): Define.
2905 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
2907 * rtl.h: Remove the prototype for reg_alloc.
2909 2006-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2912 * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
2913 hppa[12]*-*-hpux11*): Override default shared libgcc version for both
2914 sjlj and dwarf2 exception handling.
2915 * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
2916 Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
2917 * pa/pa.c (function_value): Treat complex and vector types as
2919 (function_arg): Likewise. Only pass scalar floats in the floating
2920 point argument registers.
2921 * pa/t-slibgcc-dwarf-ver: New file.
2922 * pa/t-slibgcc-sjlj-ver: New file.
2923 * pa/t-slibgcc-elf-ver: Delete file.
2925 2006-01-19 Alan Modra <amodra@bigpond.net.au>
2927 * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
2928 unlikely_test_section_p test.
2930 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
2932 * mode-switching.c (optimize_mode_switching): Make it static.
2933 * basic-block.h: Remove the prototype for
2934 optimize_mode_switching.
2936 * modulo-sched.c (sms_schedule): Make it static.
2937 * rtl.h: Remove the prototype for sms_schedule.
2939 * postreload-gcse.c (gcse_after_reload_main): Make it static.
2940 * rtl.h: Remove the prototype for gcse_after_reload_main.
2942 * reg-stack.c (reg_to_stack): Make it static.
2943 * rtl.h: Remove the prototype for reg_to_stack.
2945 * regrename.c (regrename_optimize, copyprop_hardreg_forward):
2947 * rtl.h: Remove the prototypes for regrename_optimize and
2948 copyprop_hardreg_forward.
2950 2006-01-18 Eric Botcazou <ebotcazou@adacore.com>
2952 * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
2953 alpha_split_tmode_pair. Add 'mode' and 'fixup_overlap' arguments.
2954 Test against the appropriate null constant for the mode.
2955 If 'fixup_overlap' is true, swap the operands if they overlap.
2956 (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
2957 * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
2958 alpha_split_tmode_pair and adjust for above change.
2959 * config/alpha/alpha.md (movtf_internal): Adjust call to
2960 alpha_split_tfmode_pair and rely on it to swap the operands.
2961 (movti_internal): New insn and post-reload splitter.
2962 (movti): New expander.
2964 2006-01-18 Philippe De Muyter <phdm@macqel.be>
2966 * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
2969 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
2971 * rtlanal.c (global_reg_mentioned_p_1,
2972 global_reg_mentioned_p): Remove.
2973 * rtl.h: Remove the prototype for global_reg_mentioned_p.
2975 * flow.c (initialize_uninitialized_subregs): Make it static.
2976 * rtl.h: Remove the prototype for
2977 initialize_uninitialized_subregs.
2979 * function.c (instantiate_virtual_regs): Make it static.
2980 * function.h: Remove the prototype for
2981 instantiate_virtual_regs.
2983 * regmove.c (regmove_optimize, combine_stack_adjustments):
2985 * rtl.h: Remove the prototypes for regmove_optimize and
2986 combine_stack_adjustments.
2988 2006-01-17 Roger Sayle <roger@eyesopen.com>
2990 * config/i386/i386.c (COSTS_N_BYTES): New macro.
2991 (size_cost): Encode costs in bytes so that a reg-reg addition is
2992 equivalent to COSTS_N_INSNS(1).
2993 (override_options): Use the size_cost.branch_cost as the default
2994 ix86_branch_cost when optimizing for size.
2996 2006-01-18 Ben Elliston <bje@au.ibm.com>
2998 * Makefile.in (D32PBIT_FUNCS): New.
2999 (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
3000 (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
3001 D64PBIT_FUNCS and D128PBIT_FUNCS.
3002 (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
3003 * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
3005 (decnumber_dep): Define.
3006 * doc/libgcc.texi (Decimal float library routines): New node.
3007 * config/dfp-bit.h, config/dfp-bit.c: New files.
3009 2006-01-18 Ben Elliston <bje@au.ibm.com>
3011 * expr.c (emit_move_change_mode): Always adjust addresses, not
3012 just during reload. Copy replacements only during reload.
3013 (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
3014 emit_move_via_integer.
3016 2006-01-17 Shantonu Sen <ssen@opendarwin.org>
3018 * Makefile.in (check-%, check-consistency): Use $${srcdir}
3019 instead of $(srcdir) and ${srcdir}.
3021 2006-01-17 Richard Earnshaw <rearnsha@arm.com>
3025 * arm.h (struct machine_function): Add pic_reg.
3026 * arm.c (arm_pic_register): Make unsigned.
3027 (arm_override_options): Only set arm_pic_register if
3028 TARGET_SINGLE_PIC_BASE.
3029 (use_return_insn): Only test for a pic register if it is fixed.
3030 (arm_compute_save_reg0_reg12_mask): Likewise.
3031 (thumb_compute_save_reg_mask): Likewise.
3032 (legitimate_pic_operand): Factor out some known invariants.
3033 (legitimize_pic_address): If we don't have a fixed pic register,
3034 then set up a pseudo in the function entry sequence. Handle the
3035 pic base being in a pseudo.
3036 (arm_load_pic_register): Handle the pic register being in a pseudo.
3037 (arm_expand_prologue): Only set up the pic register if it is fixed.
3038 (thumb_expand_prologue): Likewise.
3039 * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
3040 (pic_load_addr_based_insn): Likewise.
3041 (builtin_setjmp_receiver): Don't restore the pic base if it isn't
3044 2006-01-18 Ben Elliston <bje@au.ibm.com>
3046 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
3047 decimal float modes for all floating point registers.
3049 * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
3050 match_code "mem" with match_test "macho_lo_sum_memory_operand".
3052 2006-01-17 Jakub Jelinek <jakub@redhat.com>
3055 * c-typeck.c (build_unary_op): Fold offsetof-like expressions
3056 even when the pointer is not NULL.
3058 2006-01-16 Ian Lance Taylor <ian@airs.com>
3060 * common.opt (ftoplevel-reorder): New option.
3061 * cgraph.c (cgraph_asm_nodes): New global variable.
3062 (cgraph_asm_last_node): New static variable.
3063 (cgraph_order): New global variable.
3064 (cgraph_create_node): Set new order field.
3065 (cgraph_varpool_node): Likewise.
3066 (decide_is_variable_needed): Return true if not
3067 flag_toplevel_reorder.
3068 (cgraph_add_asm_node): New function.
3069 * cgraph.h (struct cgraph_node): Add order field.
3070 (struct cgraph_varpool_node): Add order field.
3071 (struct cgraph_asm_node): Define.
3072 (cgraph_asm_nodes, cgraph_order): Declare.
3073 (cgraph_add_asm_node): Declare.
3074 * cgraphunit.c (cgraph_varpool_assemble_decl): New static
3076 (cgraph_varpool_assemble_pending_decls): Call it.
3077 (cgraph_output_pending_asms): New static function.
3078 (cgraph_finalize_compilation_unit): Call it.
3079 (struct cgraph_order_sort): Define.
3080 (cgraph_output_in_order): New static function.
3081 (cgraph_optimize): Call cgraph_output_pending_asms. Add code for
3082 !flag_toplevel_reorder case.
3083 * c-parser.c: Include "cgraph.h".
3084 (c_parser_asm_definition): Call cgraph_add_asm_node rather than
3086 * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
3087 than -fno-unit-at-a-time.
3088 * doc/invoke.texi (Option Summary): Mention
3089 -fno-toplevel-reorder.
3090 (Optimize Options): Document -fno-toplevel-reorder. Mention it in
3091 -funit-at-a-time documentation.
3093 2006-01-17 Hans-Peter Nilsson <hp@axis.com>
3094 Kazu Hirata <kazu@codesourcery.com>
3096 * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
3098 2006-01-17 Kazu Hirata <kazu@codesourcery.com>
3100 * Makefile.in (FUNCTION_H): New. Use it instead of
3101 function.h throughout the file.
3102 * function.h: Include tree.h.
3104 2006-01-17 Ben Elliston <bje@au.ibm.com>
3106 * recog.c: Separate some functions with whitespace.
3108 2006-01-16 Richard Henderson <rth@redhat.com>
3110 Merge from gomp branch:
3111 * Makefile.in (TREE_INLINE_H): New. Use it as needed.
3112 * tree-inline.h (struct copy_body_data): Move from tree-inline.c
3113 and rename from struct inline_data. Rename callee* to dst*;
3114 caller* to src*; add copy_decl hook, transform_call_graph_edges,
3115 transform_new_cfg, transform_return_to_modify, and
3116 transform_lang_insert_block flags; remove cloning_p, versioning_p,
3118 (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
3119 (copy_decl_for_dup): Remove.
3120 * tree-inline.c (struct inline_data): Move to header.
3121 (insert_decl_map): Export.
3122 (remap_decl): Update for member name changes. Use copy_decl hook.
3123 Allow for replacement to be a non-decl. Remove dead code.
3124 (remap_type_1): Check for existing mapping.
3125 (remap_type): Export.
3126 (remap_decls): Update for member name changes.
3127 (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
3128 (copy_body, setup_one_parameter, declare_return_variable): Likewise.
3129 (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
3130 (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
3131 (tree_function_versioning, build_duplicate_type): Likewise.
3132 (copy_body_r): Likewise. Export.
3133 (copy_decl_for_dup): Split into ...
3134 (copy_decl_for_dup_finish, copy_decl_to_var,
3135 copy_decl_no_change, copy_decl_maybe_to_var): ... these.
3136 (replace_ref_tree, inlining_p): Remove.
3138 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
3140 * ifcvt.c (if_convert): Make it static.
3141 * rtl.h: Remove the prototype for if_convert.
3143 * local-alloc.c (local_alloc): Make it static.
3144 * rtl.h: Remove the prototype for local_alloc.
3146 * loop.c (loop_optimize): Make it static.
3147 * cfgloop.h: Remove the prototype for loop_optimize.
3150 2006-01-16 DJ Delorie <dj@redhat.com>
3152 * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
3155 2006-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3157 * pa.md: Disparage copies between general and floating-point registers
3158 in 32-bit move patterns.
3160 2006-01-16 H.J. Lu <hongjiu.lu@intel.com>
3163 * Makefile.in (check-%): Depend on site.exp instead of
3164 $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
3167 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
3169 * global.c (global_alloc): Make it static.
3170 * rtl.h: Remove the prototype for global_alloc.
3172 2006-01-16 Richard Guenther <rguenther@suse.de>
3174 * tree-ssa-alias.c (struct used_part): Add write_only field.
3175 (get_or_create_used_part_for): Initialize it to true.
3176 (create_overlap_variables_for): Don't create structure variables
3177 for structures that only are written to.
3178 (find_used_portions): Handle MODIFY_EXPR to track whether a
3179 structure is only written to.
3181 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
3183 * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
3185 * basic-block.h: Remove the prototype for
3186 partition_hot_cold_basic_blocks.
3188 2006-01-16 Rafael Ãvila de EspÃndola <rafael.espindola@gmail.com>
3190 * cppspec.c (lang_specific_spec_functions): Remove.
3191 * gcc.c (lookup_spec_function): Use static_spec_functions directly.
3192 * gcc.h (lang_specific_spec_functions): Remove.
3193 * gccspec.c (lang_specific_spec_functions): Remove.
3195 2006-01-16 Paolo Bonzini <bonzini@gnu.org>
3197 * combine.c (record_value_for_reg): Invalidate registers
3199 (record_dead_and_set_regs_1): Likewise, by passing them to
3200 record_value_for_reg.
3201 (record_dead_and_set_regs): Invalidate stores made by a
3202 call. We do not combine across a call, but we still
3203 relied on equivalences.
3205 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
3207 * tree-vrp.c (extract_range_from_binary_expr): Cope with
3208 vrp_int_const_binop returning non-constant nodes.
3210 2006-01-16 Paul Brook <paul@codesourcery.com>
3212 * config/m68k/m68k.c (output_move_const_into_data_reg):
3213 Output correct mnemonic for mvz and mvs.
3215 2006-01-16 Gabor Loki <loki@gcc.gnu.org>
3217 * rtl-factoring.c: Add sequence abstraction algorithm.
3218 * cfgcleanup.c (outgoing_edges_match): Extra checks.
3219 (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
3221 (block_has_preserve_label): New function.
3222 * common.opt: Register new pass.
3223 * Makefile.in: Ditto.
3225 * timevar.def: Ditto.
3226 * tree-pass.h: Ditto.
3227 * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
3228 * rtl.h (make_jump_insn_raw): Add forward decl.
3229 * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
3231 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
3232 Roger Sayle <roger@eyesopen.com>
3234 * fold-const.c (fold_minmax): New static function.
3235 (fold_binary) <MIN_EXPR>: Call it.
3236 <MAX_EXPR>: Likewise.
3237 * stor-layout.c (place_field): Use DECL_SIZE consistently
3238 in the computation of the new record size.
3240 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
3242 * cse.c (cse_condition_code_reg): Make it static.
3243 * rtl.h: Remove the prototype for cse_condition_code_reg.
3245 * combine.c (combine_instructions): Make it static.
3246 * rtl.h: Remove the prototype for combine_instructions.
3248 2006-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3251 * tree.c (get_file_function_name_long): Concatenate the first global
3252 object name with a string derived from the input filename of the object
3255 2006-01-16 Ben Elliston <bje@au.ibm.com>
3257 * config/i386/winnt-stubs.c: Update FSF address.
3258 * config/xtensa/ieee754-df.S: Ditto.
3259 * config/xtensa/ieee754-sf.S: Ditto.
3261 2006-01-14 Ian Lance Taylor <ian@airs.com>
3263 * ifcvt.c (noce_init_if_info): New static function, broken out of
3264 noce_process_if_block.
3265 (noce_process_if_block): Call noce_init_if_info.
3266 (check_cond_move_block): New static function.
3267 (cond_move_process_if_block): New static function.
3268 (process_if_block): Call cond_move_process_if_block.
3270 2006-01-15 Kazu Hirata <kazu@codesourcery.com>
3272 * cselib.c (hash_table): Rename to cselib_hash_table.
3273 (cselib_clear_table, discard_useless_values,
3274 remove_useless_values, cselib_lookup_mem, cselib_lookup,
3275 cselib_init, cselib_finish): Adjust uses of hash_table.
3277 2006-01-14 Kazu Hirata <kazu@codesourcery.com>
3279 PR tree-optimization/25485
3280 * tree-vrp.c (extract_range_from_binary_expr): Handle cases
3281 where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
3282 is known to be false and true, respectively.
3284 2006-01-14 Richard Guenther <rguenther@suse.de>
3286 PR tree-optimization/22548
3287 PR tree-optimization/22555
3288 PR tree-optimization/22501
3289 * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
3290 * params.def (salias-max-array-elements): New parameter.
3291 * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
3292 * doc/invoke.texi (salias-max-array-elements): Document.
3293 * tree-flow-inline.h (var_can_have_subvars): We also handle
3295 * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
3297 * tree-ssa-structalias.c (params.h): Include.
3298 (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
3299 (find_func_aliases): Handle multiple constraints from ARRAY_REF.
3300 (get_constraint_for): For ADDR_EXPR operating on something
3301 containing an ARRAY_REF, add all subvars to the solution.
3302 (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
3303 * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
3304 for creating MUST_DEFs.
3305 (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
3307 2006-01-14 Zdenek Dvorak <dvorakz@suse.cz>
3309 * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
3311 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
3312 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
3313 number_of_iterations_le): New functions.
3314 (number_of_iterations_special): Removed.
3315 (number_of_iterations_exit): Do not use number_of_iterations_special.
3316 * tree.c (unsigned_type_for): Always return integer type.
3318 2006-01-14 Steven Bosscher <stevenb.gcc@gmail.com>
3319 Richard Guenther <rguenther@suse.de>
3321 PR rtl-optimization/24257
3322 * gcse.c (find_moveable_store): Only consider a store movable
3323 when the SET_SRC of the insn can be assigned to a register.
3325 2006-01-14 Ian Lance Taylor <ian@airs.com>
3327 * tree.c (tree_not_class_check_failed): New function.
3328 * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
3329 (tree_not_class_check_failed): Declare.
3331 2006-01-13 Ian Lance Taylor <ian@airs.com>
3333 * reload1.c (do_output_reload): Add assertion rejecting a
3336 2006-01-13 Adam Nemet <anemet@caviumnetworks.com>
3338 * combine.c (struct reg_stat): Add new fields truncation_label and
3340 (record_value_for_reg): Reset truncated_to_mode.
3341 (record_truncated_value): New function.
3342 (check_promoted_subreg): Call it. Rename to check_conversions.
3343 (combine_instructions): Rename check_promoted_subreg to
3345 (reg_truncated_to_mode): New function.
3346 (make_extraction): Use it. Check TRULY_NOOP_TRUNCATION.
3347 (gen_lowpart_or_truncate): New function.
3348 (force_to_mode): Use it instead of gen_lowpart.
3350 2006-01-13 Diego Novillo <dnovillo@redhat.com>
3352 * tree-ssa-alias.c (add_type_alias): Fix typo. Test whether
3353 VAR is a tag, not its type tag.
3355 2006-01-13 Alexandre Oliva <aoliva@redhat.com>
3357 * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
3358 alternatives to match style of other entries.
3359 (*vec_extractv2di_1_sse): Likewise. Fix mode attr.
3361 2006-01-13 Daniel Berlin <dberlin@dberlin.org>
3363 PR tree-optimization/25771
3364 * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
3367 2006-01-13 Andrew Pinski <pinskia@physics.uc.edu>
3370 * tree-inline.c (declare_return_variable): If the return variable
3371 was marked as a non gimple complex, set the return slot variable
3372 to be a non gimple comple variable.
3374 2006-01-13 Richard Guenther <rguenther@suse.de>