1 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
3 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
5 * reload1.c (reg_equiv_memory_loc_varray): Rename to
6 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
7 (init_reload, reload): Use VEC instead of VARRAY.
8 * reload.h: Update the prototype for
9 reg_equiv_memory_loc_varray.
11 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
12 Eric Botcazou <ebotcazou@libertysurf.fr>
14 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
17 2005-04-13 Uros Bizjak <uros@kss-loka.si>
20 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
21 to expand fallback builtin function call.
23 2006-04-14 Alan Modra <amodra@bigpond.net.au>
26 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
27 and emit libcall here in case the builtin fails.
28 (expand_builtin_strcmp): Always emit the libcall here on failure.
30 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
32 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
33 * flow.c (reg_n_info): Change the type to
34 VEC(reg_info_p,heap) *.
35 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
37 * regs.h (reg_info_p): New.
38 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
39 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
40 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
43 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
45 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
47 * params.h (MAX_SCHED_READY_INSNS): New macro.
48 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
49 past MAX_SCHED_READY_INSNS during the first scheduling pass.
50 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
51 the ready list for 1 cycle during the first scheduling pass.
52 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
54 2006-04-13 Richard Henderson <rth@redhat.com>
57 * gimple-low.c (lower_omp_directive): Remove dead code.
58 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
59 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
60 * omp-low.c (struct omp_region): Move to tree-flow.h.
61 (root_omp_region): Export.
62 (omp_regions, lookup_omp_region): Remove.
63 (determine_parallel_type): Update for struct omp_region changes.
64 (dump_omp_region): Dump regions with block numbers.
65 (new_omp_region): Take type and block instead of stmt; malloc
67 (free_omp_region_1, free_omp_regions): New.
68 (expand_parallel_call): Take entry_stmt as argument; update for
69 changes to omp_region.
70 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
71 (remove_exit_barriers): New.
72 (expand_omp_parallel): Update for struct omp_region changes.
73 (expand_omp_synch): Likewise.
74 (expand_omp): Likewise.
75 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
76 (expand_omp_for_static_chunk): Likewise.
77 (expand_omp_for): Likewise.
78 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
79 (expand_omp_sections): Similarly, with GOMP_sections_end.
80 (expand_omp_single): New.
81 (build_omp_regions_1): Update for OMP_CONTINUE.
82 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
83 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
84 OMP_SECTIONS_SECTIONS.
85 (lower_omp_single_simple): Don't emit barrier here.
86 (lower_omp_single_copy): Likewise.
87 (lower_omp_single): Fix bindings, and lower to straightline now.
88 (lower_omp_master, lower_omp_ordered): Likewise.
89 (lower_omp_critical): Likewise.
90 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
91 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
92 omp edges, free it afterward.
93 (make_omp_sections_edges): Remove.
94 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
95 (move_stmt_r): Handle OMP_CONTINUE.
96 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
97 statement pointers to basic blocks. Add type member.
98 (root_omp_region, new_omp_region, free_omp_regions): Declare.
99 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
100 * tree-inline.c (estimate_num_insns_1): Likewise.
101 * tree-pretty-print.c (dump_generic_node): Likewise.
102 * tree-ssa-operands.c (get_expr_operands): Likewise.
103 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
104 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
106 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
107 (OMP_SECTIONS_SECTIONS): Remove.
108 (OMP_SECTION_LAST): New.
109 (OMP_RETURN_NOWAIT): New.
111 2006-04-13 Roger Sayle <roger@eyesopen.com>
113 * fold-const.c (native_encode_vector, native_interpret_real):
114 Correct obvious mistakes in the previous check-in.
116 2006-04-13 Roger Sayle <roger@eyesopen.com>
118 * fold-const.c (native_encode_expr): New function to encode
119 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
120 or VECTOR_CST into a specified buffer.
121 (native_encode_int): New function.
122 (native_encode_real): New function.
123 (native_encode_complex): New function.
124 (native_encode_vector): New function.
125 (native_interpret_expr): Inverse of native_encode_expr to convert
126 a target representation into an INTEGER_CST, REAL_CST etc...
127 (native_interpret_int): New function.
128 (native_interpret_real): New function.
129 (native_interpret_complex): New function.
130 (native_interpret_vector): New function.
131 (fold_view_convert_expr): New function to constant fold/evaluate
132 a VIEW_CONVERT_EXPR of a suitable constant expression.
133 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
134 Change call of build1 to fold_build1 when constructing a
137 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
138 Ulrich Weigand <uweigand@de.ibm.com>
141 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
144 2006-04-13 Alan Modra <amodra@bigpond.net.au>
147 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
148 optimize to lo_sum for DFmode if !TARGET_FPRS.
150 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
152 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
153 delete_alias_info, compute_flow_sensitive_aliasing,
154 group_aliases): Use VEC instead of VARRAY.
155 * tree-ssa-structalias.c (update_alias_info): Likewise.
156 * tree-ssa-structalias.h (alias_info): Change the type of
157 processed_ptrs to VEC(tree,heap) *.
159 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
162 * config/sh/lib1funcs.h: New file, broken out of:
163 * config/sh/lib1funcs.asm.
164 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
166 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
167 * config/sh/lib1funcs-Os-4-200.asm: New file.
168 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
169 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
170 (EXTRA_MULTILIB_PARTS): Include it.
171 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
172 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
173 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
174 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
177 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
179 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
180 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
181 tpa_compact, root_var_init, type_var_init): Use VEC instead of
183 * tree-ssa-live.h: Include vecprim.h.
184 (tree_partition_associator_d): Change the type of
185 first_partition to VEC(int,heap) *.
186 (tpa_first_partition): Use VEC instead of VARRAY.
188 * Makefile.in (GTFILES): Move functions.h after tree.h.
189 * function.c (reset_block_changes, record_block_change,
190 check_block_change, free_block_changes): Use VEC instead of
192 * function.h (function): Change the type of
193 ib_boundaries_block to VEC(tree,gc) *.
194 * tree-inline.c (copy_cfg_body): Initialize
195 ib_boundaries_block to NULL instead of (varray_type) 0.
197 2006-04-12 Roger Sayle <roger@eyesopen.com>
199 * expr.c (emit_group_store): Correct operand order in call to
200 subreg_lowpart_offset. Always create paradoxical SUBREGs with
201 a SUBREG_BYTE of zero.
203 2006-04-12 Richard Guenther <rguenther@suse.de>
205 * profile.c (compute_branch_probabilities): Remove code
206 encapsulated in !ir_type (), which are remanents of the
207 removed RTL profiling code.
208 * rtl-profile.c: Remove.
210 2006-04-12 Alan Modra <amodra@bigpond.net.au>
212 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
213 magic NULL_RTX comment.
214 (function_arg): Store entire fp arg to mem if any part should go
216 (rs6000_arg_partial_bytes): Adjust for above change.
218 2006-04-11 Roger Sayle <roger@eyesopen.com>
220 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
221 if it hasn't been initialized by dwarf2out_init.
223 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
225 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
226 symbolic constants in branch patterns.
228 2006-04-11 Roger Sayle <roger@eyesopen.com>
230 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
232 2006-04-11 Richard Sandiford <richard@codesourcery.com>
234 PR rtl-optimization/27073
235 * gcse.c (try_replace_reg): Revert last change. Continue to search
236 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
239 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
241 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
242 aggregate types other than record and union types.
243 (function_arg): Likewise.
244 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
246 (function_value): In 64-bit mode, return objects that require it
249 2006-04-11 Roger Sayle <roger@eyesopen.com>
251 * dwarf2out.c (premark_used_types): Remove problematic prototype.
253 2006-04-11 Jakub Jelinek <jakub@redhat.com>
255 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
257 2006-04-03 Jeff Law <law@redhat.com>
260 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
261 alias information too.
263 2006-04-10 Mike Frysinger <vapier@gentoo.org>
265 * gcc/Makefile.in (gcc-cross): Add $(exeext) to target name.
267 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
270 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
271 (premark_used_types_helper): New.
272 (premark_used_types): New.
273 (gen_subprogram_die): Call premark_used_types.
274 (prune_unused_types_walk): Do not prune perennial dies.
275 * function.c (used_types_insert): New.
276 * function.h (struct function): Add used_types_hash field.
277 (used_types_insert): Add prototype.
278 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
279 * c-parser.c (c_parser_cast_expression): Save casted types in used
282 2006-04-11 Mark Mitchell <mark@codesourcery.com>
285 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
286 rs6000_explicit_options.float_gprs.
288 2006-04-10 Roger Sayle <roger@eyesopen.com>
290 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
291 from ix86_expand_vector_init_low_nonzero. Take an additional
292 one_var argument indicating which element is non-zero. Support
293 one_var != 0 for V4SFmode and V4SImode by permuting the result.
294 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
295 with one_var instead of ix86_expand_vector_init_low_nonzero.
297 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
299 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
300 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
301 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
302 build/genextract.o): Depend on vecprim.h.
303 * cfglayout.c, df-problems.c, function.c, genextract.c,
304 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
305 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
309 2006-04-10 Geoffrey Keating <geoffk@apple.com>
311 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
312 Declare VECs of this type.
313 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
314 (remove_children): Delete.
315 (add_dwarf_attr): Use VEC routines.
316 (add_AT_flag): Update for changes to add_dwarf_attr.
317 (add_AT_int): Likewise.
318 (add_AT_unsigned): Likewise.
319 (add_AT_long_long): Likewise.
320 (add_AT_vec): Likewise.
321 (add_AT_string): Likewise.
322 (add_AT_die_ref): Likewise.
323 (add_AT_fde_ref): Likewise.
324 (add_AT_loc): Likewise.
325 (add_AT_loc_list): Likewise.
326 (add_AT_addr): Likewise.
327 (add_AT_lbl_id): Likewise.
328 (add_AT_lineptr): Likewise.
329 (add_AT_macptr): Likewise.
330 (add_AT_offset): Likewise.
331 (add_AT_range_list): Likewise.
332 (get_AT): Use VEC_iterate.
333 (remove_AT): Use VEC_ordered_remove.
334 (free_die): Fold remove_children into here; have it use VEC_iterate.
335 (print_die): Use VEC_iterate on attrs.
336 (reverse_die_lists): Don't reverse attr lists.
337 (die_checksum): Use VEC_iterate on attrs.
338 (same_die_p): Likewise.
339 (output_location_lists): Likewise.
340 (build_abbrev_table): Likewise.
341 (size_of_die): Likewise.
342 (unmark_all_dies): Likewise.
343 (output_abbrev_section): Likewise.
344 (output_die): Likewise.
345 (prune_unused_types_walk_attribs): Likewise.
347 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
349 * doc/install.texi (*-*-solaris2*): Point to the configure page.
351 2006-04-10 Jakub Jelinek <jakub@redhat.com>
354 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
356 2006-04-09 Roger Sayle <roger@eyesopen.com>
358 * expr.c (store_constructor): Don't bother clearing target if
359 we're about to assign a vector to it using vec_init_optab.
361 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
363 * tree-ssa-alias.c (lhs_may_store_to): New function.
364 (recalculate_used_alone): Handle LHS of calls.
366 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
370 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
371 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
372 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
373 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
374 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
375 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
376 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
377 stubs. Add ".align 8" directives before all ".dword" directives.
378 (GTHREAD_USE_WEAK): Revise comment.
379 (TARGET_ATTRIBUTE_WEAK): Define.
380 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
381 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
382 * stublib.c: New file.
387 * pa.md (cbranch patterns): Revise arguments used in calls to
388 output_cbranch, output_bb and output_bvd. Add long branch length
390 (fbranch patterns): Handle long branches.
391 (jump): Revise length check. Revise arguments for output_lbranch call.
392 Add long branch length attributes.
393 (decrement_and_branch_until_zero): Add long branch length attributes.
394 (output_movb, output_parallel_addb and output_parallel_movb patterns):
395 Likewise. Revise arguments for output_parallel_addb and
396 output_parallel_movb calls.
397 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
398 output_parallel_movb and output_parallel_addb): Update prototypes.
399 * pa.c (output_cbranch): Revise arguments. Correct handling of
400 nullification in long branches.
401 (output_lbranch): Add new argument to control extraction of delay
403 (output_bb): Handle long branches.
404 (output_bvb, output_dbra, output_movb, output_parallel_movb,
405 output_parallel_addb): Likewise.
407 2006-04-09 Richard Sandiford <richard@codesourcery.com>
409 PR rtl-optimization/27073
410 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
413 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
415 * tree.h (tree_memory_tag): Add old_used_alone.
416 (SMT_OLD_USED_ALONE): New macro.
417 * tree-ssa-alias.c (recalculate_used_alone): Stop
418 marking things for renaming unnecessarily.
420 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
422 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
423 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
424 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
425 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
426 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
427 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
428 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
429 spelling convensions.
430 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
431 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
432 typos. Follow spelling conventions.
434 2006-04-07 DJ Delorie <dj@redhat.com>
436 * config/m32c/m32c.c (m32c_function_arg): Structures are always
438 (m32c_init_cumulative_args): When a function returns a structure,
439 always pass the pointer to that return area on the stack.
440 (m32c_function_arg_advance): Don't increment the parameter number
441 if we're processing the returned structure pointer.
442 (pushm_info): Reverse order of registers.
444 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
446 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
447 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
448 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
449 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
451 * tree-chrec.c (chrec_fold_multiply_poly_poly,
452 chrec_fold_multiply): Same.
453 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
454 force_expr_to_var_cost): Same.
455 * tree-mudflap.c (mf_xform_derefs_1): Same.
456 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
458 2006-04-07 David Edelsohn <edelsohn@gnu.org>
460 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
461 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
464 2006-04-07 Jan Hubicka <jh@suse.cz>
466 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
468 2006-04-07 Richard Guenther <rguenther@suse.de>
470 PR tree-optimization/26135
471 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
472 loads for store copy-prop.
473 (copy_prop_visit_stmt): Likewise.
475 2006-04-05 Robert Millan <robertmh@gnu.org>
477 * gcc/config/i386/linux.h: Add a comment to mark macros that are
478 being overriden in config/k*bsd-gnu.h.
479 * gcc/config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
481 * gcc/config/knetbsd-gnu.h: Ditto.
483 2006-04-06 Jan Hubicka <jh@suse.cz>
487 * coverage.c (coverage_checksum_string): Reorganize loop to not read
490 2006-04-06 Mike Stump <mrs@apple.com>
492 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
493 for HAVE_nonlocal_goto to be consistent.
494 (expand_builtin_nonlocal_goto): Likewise.
495 (expand_builtin_strcmp): Use #ifdef instead of #if
496 for HAVE_cmpstrnsi to be consistent.
498 2006-04-05 DJ Delorie <dj@redhat.com>
500 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
503 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
505 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
506 got-relative addressing for anything but SImode.
508 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
509 even if the calling function doesn't modify them.
511 2006-04-05 Richard Guenther <rguenther@suse.de>
513 PR tree-optimization/26919
514 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
515 to cgraph_estimate_size_after_inlining.
517 2006-04-05 Alan Modra <amodra@bigpond.net.au>
519 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
521 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
523 PR tree-optimization/26996
524 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
525 VECTOR_TYPE variables.
527 2006-04-05 Richard Guenther <rguenther@suse.de>
529 PR tree-optimization/26763
530 * fold-const.c (fold_comparison): Move folding of
531 PTR + CST CMP PTR + CST ...
532 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
534 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
536 * doc/install.texi (Prerequisites): Refine some wording on
537 bootstrapping and ksh.
538 Move the version numbers of DejaGnu here from the testing section
539 and fix casing of names.
540 Fix markup and clarify wording for autogen requirements.
541 Refer to GCJ instead of just java.
542 Refer to SVN instead of CVS.
543 Describe diffutils as useful instead of necessary.
544 (Downloading the source): Refer to SVN instead of CVS.
545 Adjust a link to our web site accordingly.
546 (Configuration): Fix casing of Bison.
547 (Building): Refer to SVN instead of CVS.
548 Fix a sentence on the use of Bison and remove duplicate (and
549 incorrect) version number of Bison requirement.
550 Remove one redundant list of packages needed for building.
551 (Specific): Avoid reference to CVS.
553 2006-04-04 Eric Christopher <echristo@apple.com>
555 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
556 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
557 (rs6000_handle_struct_attribute): New.
558 (rs6000_ms_bitfield_layout_p): Ditto.
560 2006-04-04 Geoffrey Keating <geoffk@apple.com>
562 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
563 NULL for dso parameter to atexit_common.
565 2006-04-04 Eric Christopher <echristo@apple.com>
567 * config/i386/i386.c (machopic_output_stub): Output \t
568 between instructions and operands.
570 2006-04-04 David Edelsohn <edelsohn@gnu.org>
572 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
573 satisfies_constraint_[IL] to explicit tests on value.
575 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
577 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
578 set_nb_iterations_in_loop): Use build_int_cst instead of
580 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
581 build_int_cst instead of convert.
583 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
585 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
586 new value 2 for incoming.
587 * function.c (expand_function_start): Call struct_value_rtx
589 * config/sparc/sparc.md: Comment updated_return.
590 * config/sparc/sparc.opt: Add -mstd-struct-return option.
591 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
592 struct return if sparc_std_struct_return and incoming is 2.
593 (print_operand): Do not adjust return if
594 sparc_std_struct_return.
596 2006-04-04 Roger Sayle <roger@eyesopen.com>
598 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
599 convert in the middle-end.
600 * expr.c (store_expr, store_constructor, get_inner_reference,
601 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
603 * tree.c (build_range_type): Likewise.
605 2006-04-04 Tom Tromey <tromey@redhat.com>
607 * doc/install.texi (Prerequisites): Mention jar.
609 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
611 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
614 2006-04-04 Matthias Klose <doko@debian.org>
616 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
618 2006-04-03 Geoffrey Keating <geoffk@apple.com>
620 * doc/extend.texi (Function Attributes): Rewrite visibility
621 attribute documentation.
622 * doc/invoke.texi (C++ Dialect Options): Rewrite
623 -fvisibility-inlines-hidden documentation to describe something
624 entirely different, although in practise compatible.
625 (Code Gen Options): Warn about system headers in -fvisibiltity=
628 * doc/extend.texi (Other Builtins): Document that
629 __builtin_nan is a compile-time constant only when its argument
632 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
634 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
635 trying to remove TRUNCATE check if all bits outside the new mode
636 are identical to the sign bit.
638 2006-04-03 Jeff Law <law@redhat.com>
640 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
641 and operand scanning in some common cases.
643 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
644 Dale Johannesen <dalej@apple.com>
647 * regclass.c (struct reg_pref): Update documentation.
648 (regclass): Set prefclass to NO_REGS if memory is the best option.
649 (record_reg_classes): Cope with a prefclass set to NO_REGS.
650 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
651 into account. For non-registers, equate an empty preferred
652 reload class to a `!' in the constraint; move the if clause to
653 do so after those that reject the insn.
654 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
656 (find_dummy_reload): Likewise.
657 * doc/tm.texi (Register Classes): Document what it means
658 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
659 * config/i386/i386.c (ix86_preferred_reload_class): Force
660 using SSE registers (and return NO_REGS for floating-point
661 constants) if math is done with SSE.
662 (ix86_preferred_output_reload_class): New.
663 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
664 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
665 * config/i386/i386.md: Remove # register preferences.
667 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
670 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
671 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
673 (instantiate_parameters_1): Convert the operands before calling
674 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
675 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
677 2006-04-02 Roger Sayle <roger@eyesopen.com>
679 * builtins.c (dummy_object): Use build_int_cst instead of convert.
680 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
682 * dojump.c (do_jump): Likewise.
683 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
684 * gimplify.c (gimple_boolify, gimplify_init_constructor,
685 gimplify_boolean_expr): Likewise.
686 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
687 * varasm.c (array_size_for_constructor): Likewise.
688 * tree-object-size.c (compute_object_offset): Likewise.
690 2006-04-02 Roger Sayle <roger@eyesopen.com>
693 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
694 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
696 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
698 PR tree-optimization/26939
699 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
701 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
703 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
704 at_stmt. Convert the type of operands before calling
705 build_polynomial_chrec.
706 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
708 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
709 (instantiate_parameters_1): Convert the type of operands before calling
710 build_polynomial_chrec.
711 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
712 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
713 reset_evolution_in_loop): Insert asserts to check the types of the
715 (chrec_type): Moved...
716 (eq_evolutions_p): Use operand_equal_p.
717 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
718 the types of the operands.
719 (chrec_type): ...here.
720 * tree-data-ref.c (create_data_ref): Convert the operands before
721 calling chrec_replace_initial_condition.
722 (same_access_functions, analyze_subscript_affine_affine,
723 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
724 (compute_subscript_distance, analyze_ziv_subscript,
725 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
726 analyze_miv_subscript): Convert the operands before calling
727 chrec_fold_minus or chrec_fold_plus.
729 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
731 * tree-data-ref.c (compute_all_dependences): Use a pointer to
732 the dependence_relations vector.
733 (compute_data_dependences_for_loop): Adjust call to
734 compute_all_dependences.
736 2006-04-01 Roger Sayle <roger@eyesopen.com>
737 Richard Henderson <rth@redhat.com>
739 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
740 gimple_boolify on the condition before calling gimplify_expr.
742 2006-03-31 Bob Wilson <bob.wilson@acm.org>
744 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
745 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
746 the frame size. Update to use the new macros.
747 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
748 * config/xtensa/ieee754-df.S: Likewise.
750 2006-03-31 Richard Henderson <rth@redhat.com>
752 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
753 (make_edges): ... here. Control fallthru creation with a local
754 variable. Do not play with fake edges.
755 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
756 (make_goto_expr_edges): Don't play with fake edges. Make for_call
759 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
761 * dwarf2.h (DW64_CIE_ID): Define.
762 * dwarf2out.c (DWARF_CIE_ID): Define.
763 (output_call_frame_info): Output 0xffffffff before standard 8-byte
764 length header. Use DWARF_CIE_ID.
765 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
766 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
768 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
770 * config/sh/linux-atomic.asm: New file.
771 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
773 2006-03-31 DJ Delorie <dj@redhat.com>
775 * config/m32c/cond.md: Set condition flags properly throughout.
776 * config/m32c/minmax.md: Likewise.
777 * config/m32c/prologue.md: Likewise.
778 * config/m32c/bitops.md: Likewise.
779 * config/m32c/muldiv.md: Likewise.
780 * config/m32c/mov.md: Likewise.
781 * config/m32c/addsub.md: Likewise.
782 * config/m32c/m32c.md: Likewise.
783 * config/m32c/jump.md: Likewise.
784 * config/m32c/shift.md: Likewise.
786 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
787 conditionally output the pattern for this.
788 * config/m32c/m32c.c (flags_needed_for_conditional): New.
789 (m32c_compare_redundant): New.
790 (m32c_output_compare): New.
791 * config/m32c/m32c-protos.h (m32c_output_compare): New.
793 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
794 dest, not src. Allow other 4-byte modes.
796 2006-03-30 Denis Chertykov <denisc@overta.ru>
798 * doc/md.texi: Refer to avr/constraints.md instead of
801 2006-03-30 Roger Sayle <roger@eyesopen.com>
803 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
804 signed vs. unsigned comparison failures on some hosts.
806 2006-03-31 Alan Modra <amodra@bigpond.net.au>
809 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
810 change to FLOAT_REGS.
812 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
813 (rs6000_override_options): Use it.
814 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
815 only for -mabi=spe/no-spe and -mabi=altivec.
817 2006-03-30 Geoffrey Keating <geoffk@apple.com>
819 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
822 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
824 * Makefile.in: Rename docdir to gcc_docdir.
826 2006-03-30 Roger Sayle <roger@eyesopen.com>
829 * expr.c (emit_group_store): Optimize group stores into a pseudo
830 register by using a paradoxical subreg to initialize the destination
831 if the first or last member of the group specifies a "low part".
833 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
836 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
837 * target.h (struct gcc_target.speculate_insn): Change type of the
838 second parameter to 'int'.
839 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
840 the second operand of the DEPS_LIST.
841 (copy_DEPS_LIST_list): Update reference to the second operand of the
843 * rtl.h (alloc_DEPS_LIST): Update signature.
844 * sched-int.h (ds_t): Change typedef to 'int'.
845 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
847 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
849 * haifa-sched.c (try_ready): Change condition to restore
850 non-speculative pattern of the instruction.
851 (process_insn_depend_be_in_spec): Code to keep probability of the
852 speculative dependence non-decreasing.
854 2006-03-30 Jie Zhang <jie.zhang@analog.com>
856 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
857 (single_move_for_movmem): ... this. Also change all uses.
858 (bfin_expand_strmov): Renamed to...
859 (bfin_expand_movmem): ... this. Also change all uses.
860 * config/bfin/bfin.md (movstrsi): Renamed to...
863 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
865 PR tree-optimization/26830
867 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
868 (copy_prop_visit_stmt): Remove write-only variable ann.
869 (init_copy_prop): Check variable loop depth here. Do not simulate
870 memory-tag and virtual operand PHIs except for store copy prop.
872 2006-03-30 Richard Guenther <rguenther@suse.de>
874 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
875 variants with double arguments.
877 2006-03-29 David Edelsohn <edelsohn@gnu.org>
879 * genpreds.c (write_tm_constrs_h): Delete variable p.
880 * genconditions.c (write_header): Add tm-constrs.h to included
882 * genpeep.c (main): Add toplev.h to included headers.
883 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
884 (build/genpeep.o): Add toplev.h dependency.
885 * config/rs6000/constraints.md: Add "W" constraint.
887 2006-03-29 Roger Sayle <roger@eyesopen.com>
889 * stor-layout.c (mode_for_size_tree): Remove restiction on type
890 sizes by correctly testing whether the size fits a host integer.
891 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
892 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
893 SImode range for the default sizetype and bitsizetype.
895 2006-03-29 Roger Sayle <roger@eyesopen.com>
897 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
898 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
899 quickly if the argument is already of the correct type.
900 Call fold_build1 instead of build1. Tidy up blank lines.
902 2006-03-29 David Edelsohn <edelsohn@gnu.org>
904 * genemit.c (main): Add tm-constrs.h to included headers.
905 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
906 * genpeep.c (main): Add tm-constrs.h to included headers.
907 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
908 (write_tm_constrs_h): this and write complete file.
909 (write_tm_preds_h): Do not emit satisfies_constraint fns.
910 (write_insn_preds_c): Add tm-constrs.h to included headers.
911 (gen_constrs): New variable.
912 (parse_option): Parse "-c".
913 (main): Invoke write_tm_constrs_h.
914 * genrecog.c (write_header): Add tm-constrs.h to included headers.
915 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
916 (object_out_file): Add tm-constrs.h dependency.
918 (insn-output.o): Same.
920 (insn-preds.o): Same.
921 (insn-recog.o): Same.
922 (tm-constsr.h): New target.
923 (s-constrs-h): New target.
925 * config/rs6000/constraints.md: New file.
926 * config/rs6000/rs6000.c: Include tm-constrs.h.
927 (num_insn_constant_wide): Convert to satisfies_constraint.
928 (rs6000_rtx_costs): Convert to satisfies_constraint.
929 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
930 (CONST_OK_FOR_LETTER_P): Delete.
931 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
932 (EXTRA_CONSTRAINT): Delete.
933 (EXTRA_MEMORY_CONSTRAINT): Delete.
934 (EXTRA_ADDRESS_CONSTRAINT): Delete.
935 * config/rs6000/predicates.md: Convert to satisfies_constraint.
936 * config/rs6000/rs6000.md: Include constraints.md. Convert to
937 satisfies_constraint.
939 * config/i386/i386.c: Include tm-constrs.h.
941 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
943 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
944 * tree-data-ref.c (find_data_references_in_loop,
945 compute_data_dependences_for_loop): Use pointers to VEC.
946 (analyze_all_data_dependences): Adjust calls.
947 * tree-data-ref.h (find_data_references_in_loop,
948 compute_data_dependences_for_loop): Adjust declarations.
949 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
950 compute_data_dependences_for_loop.
952 2006-03-29 Paul Brook <paul@codesourcery.com>
954 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
957 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
959 PR tree-optimization/26859
960 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
962 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
963 for the step after fold_convert.
965 2006-03-29 Paul Brook <paul@codesourcery.com>
967 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
968 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
970 2006-03-29 Paul Brook <paul@codesourcery.com>
973 * targhooks.c (default_narrow_bitfield): New fuction.
974 * targhooks.h (default_narrow_bitfield): add prototype.
975 * target.h (gcc_target): Add narrow_volatile_bitfield.
976 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
977 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
978 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
979 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
981 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
983 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
985 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
986 (NR_C_MODES): Add TDmode, DDmode and SDmode.
987 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
988 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
989 (s390_function_arg_float): Allow SDmode and DDmode values to be
990 passed in floating point registers.
991 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
992 check with SCALAR_FLOAT_MODE_P.
993 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
995 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
997 PR tree-optimization/25985
998 * tree-ssa-loop-niter.c (number_of_iterations_le,
999 number_of_iterations_ne): Make comments more precise.
1000 (number_of_iterations_cond): Add only_exit argument. Use the
1001 fact that signed variables do not overflow only when only_exit
1003 (loop_only_exit_p): New.
1004 (number_of_iterations_exit): Pass result of loop_only_exit_p to
1005 number_of_iterations_cond.
1007 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
1009 PR tree-optimization/26643
1010 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
1013 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
1015 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
1016 (divsi3_i4_int): Likewise.
1018 2006-03-28 Roger Sayle <roger@eyesopen.com>
1020 * expr.c (emit_group_store): Only create a new pseudo reg if the
1021 quantity it needs to hold isn't already a suitable pseudo.
1023 2006-03-28 Jeff Law <law@redhat.com>
1025 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
1026 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
1028 2006-03-28 Roger Sayle <roger@eyesopen.com>
1030 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
1031 the equivalent ~X & Y, and the symmetry related transformations.
1032 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
1033 ~X & Y, and symmetry related transforms.
1035 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1037 Revert my 2006-03-27 patches.
1039 2006-03-28 Roger Sayle <roger@eyesopen.com>
1041 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
1042 ~(T1)X, when T1 and T2 are integer types of the same precision
1043 and (T2)X isn't an extension.
1045 2006-03-28 Jeff Law <law@redhat.com>
1047 PR tree-optimization/26796
1048 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
1049 need EH edge cleanups rather than purging them immediately.
1050 (eliminate_degenerate_phis): Handle queued EH cleanups.
1052 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
1054 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
1057 2006-03-27 Roger Sayle <roger@eyesopen.com>
1060 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
1061 cast BIT_NOT_EXPR operand to the correct type.
1063 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
1065 * tree-loop-linear.c: Don't include varray.h.
1066 (gather_interchange_stats, try_interchange_loops,
1067 linear_transform_loops): Use VEC instead of VARRAY.
1068 * lambda-mat.c: Don't include varray.h.
1069 * tree-chrec.c: Same.
1070 * lambda-trans.c: Same.
1071 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
1072 VEC instead of VARRAY.
1073 * tree-vectorizer.h: Idem.
1074 * tree-data-ref.c (dump_data_references,
1075 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
1076 initialize_data_dependence_relation, finalize_ddr_dependent,
1077 compute_all_dependences, find_data_references_in_loop,
1078 compute_data_dependences_for_loop, analyze_all_data_dependences,
1079 free_dependence_relation, free_dependence_relations,
1080 free_data_refs): Idem.
1081 * tree-data-ref.h (data_reference_p, subscript_p): New.
1082 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
1083 VEC instead of VARRAY.
1084 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
1085 (find_data_references_in_loop, compute_data_dependences_for_loop,
1086 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
1087 dump_data_dependence_relations, free_dependence_relations,
1088 free_data_refs): Adjust declaration.
1089 (lambda_transform_legal_p): Move declaration here...
1090 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
1091 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
1092 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
1093 vect_analyze_data_refs): Use VEC instead of VARRAY.
1094 * lambda.h (lambda_transform_legal_p): ...from here.
1095 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
1096 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
1097 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
1098 tree-chrec.o): Don't depend on VARRAY_H.
1100 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1102 * rtl.def (Copyright): Update date.
1103 (DEPS_LIST): Change type of the second operand to 'int'.
1104 * target.h (Copyright): Update date.
1105 (struct gcc_target.speculate_insn): Change type of the second parameter
1107 * lists.c (Copyright): Update date.
1108 (alloc_DEPS_LIST): Change signature. Update reference to the second
1109 operand of the DEPS_LIST.
1110 (copy_DEPS_LIST_list): Update reference to the second operand of the
1112 * rtl.h (Copyright): Update date.
1113 (alloc_DEPS_LIST): Update signature.
1114 * sched-int.h (Copyright): Update date.
1115 (ds_t): Change typedef to 'int'.
1116 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
1118 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1120 * haifa-sched.c (Copyright): Update date.
1121 (try_ready): Change condition to restore non-speculative pattern
1123 (process_insn_depend_be_in_spec): Code to keep probability of the
1124 speculative dependence non-decreasing.
1126 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
1128 * regrename.c (replace_oldest_value_addr): Initialize a variable to
1129 shut up the compiler.
1131 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
1133 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
1134 to use lib prefix for target.
1135 ($(T)libic_invalidate_array_4-200.a): Likewise.
1136 ($(T)libic_invalidate_array_4a.a): Likewise.
1138 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
1139 J"orn Rennecke <joern.rennecke@st.com>
1141 * superh.opt: New file.
1142 * sh.c (boardtype, osruntime): Remove.
1143 * superh.h (SUBTARGET_OPTIONS): Remove.
1144 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
1146 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
1147 arguments with ^ and/or [].
1149 * config.gcc (sh-*-*): Add quoting to account for quirk of
1151 Replace == with = in enable_incomplete_targets test.
1153 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
1154 with MASK_LITTLE_ENDIAN.
1156 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
1157 * config/sh/sh.opt: Added to some comments.
1158 * config/sh/superh.h: Removed some chaff.
1160 * config/sh/sh.opt: Add m4-[1234]00* options.
1161 * config/sh/sh.c (sh_handle_option): Likewise.
1162 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
1163 (ic_invalidate_array_4-100.o): New rule.
1164 ($(T)libic_invalidate_array_4-100.a): Likewise.
1165 (ic_invalidate_array_4-200.o): Likewise.
1166 ($(T)libic_invalidate_array_4-200.a): Likewise.
1167 (ic_invalidate_array_4a.o): Likewise.
1168 ($(T)libic_invalidate_array_4a.a): Likewise.
1169 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
1170 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
1172 * config/sh/crt1.asm: Merged in profiling code.
1173 * config/sh/superh.h (STARTFILE_SPEC): Override.
1174 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
1175 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
1176 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
1178 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
1179 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
1180 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
1182 * sh.opt (mpretend-cmove): New option.
1183 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
1184 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
1185 (movsicc): Add TARGET_PRETEND_CMOVE code.
1187 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
1189 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
1190 s390_class_max_nregs): New function prototypes.
1191 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
1192 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
1193 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
1194 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
1196 2006-03-26 Geoffrey Keating <geoffk@apple.com>
1198 * dwarf2out.c (add_location_or_const_value_attribute): Call
1199 tree_add_const_value_attribute if nothing else works.
1200 (reference_to_unused): New.
1201 (rtl_for_decl_init): Use reference_to_unused to decide whether
1202 to output an initializer.
1204 2006-03-27 Alan Modra <amodra@bigpond.net.au>
1207 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
1208 peephole removing spe frob_di_df_2.
1210 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
1212 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
1213 (subscript_dependence_tester_1): Declared.
1214 (print_dir_vectors, print_dist_vectors): New.
1215 (debug_data_dependence_relation): New.
1216 (dump_data_dependence_relation): Print more details.
1217 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
1218 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
1219 (save_dist_v, save_dir_v, add_outer_distances,
1220 build_classic_dist_vector_1): New.
1221 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
1222 Don't test for lambda_vector_lexico_pos.
1223 (same_access_functions, add_multivariate_self_dist,
1224 add_other_self_distances, dir_from_dist): New.
1225 (build_classic_dir_vector): Replace implementation almost identical to
1226 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
1228 (subscript_dependence_tester_1): New.
1229 (subscript_dependence_tester): Handle the lexicographically negative
1230 distance vectors by recomputing the dependence relation.
1231 (compute_affine_dependence): Remove parameter loop_nest_depth.
1232 (compute_self_dependence): Don't call compute_subscript_distance.
1233 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
1234 Add a parameter for the loop_nest.
1235 (find_loop_nest_1, find_loop_nest): New.
1236 (compute_data_dependences_for_loop): Compute the loop nest, and give
1237 up if the nest is not well formed.
1238 * tree-data-ref.h (loop_p): New.
1239 (struct data_dependence_relation): Replace size_vect field with
1240 loop_nest, a vec of loops.
1241 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
1242 (DDR_LOOP_NEST): New.
1243 (print_dir_vectors, print_dist_vectors,
1244 debug_data_dependence_relation): Declared.
1245 (index_in_loop_nest): New.
1246 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
1247 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
1250 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
1252 * simplify-rtx.c (simplify_relational_operation): Call
1253 simplify_relational_operation_1 even if mode is VOIDmode.
1255 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
1257 PR tree-optimization/26804
1258 * tree.h (DECL_CALL_CLOBBERED): New macro.
1259 (tree_decl_common): Add call_clobbered_flag.
1260 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
1261 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
1262 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
1263 (mark_non_addressable): Ditto.
1264 * tree-ssa.c (verify_call_clobbered): New function.
1265 (verify_alias_info): Use it.
1266 * tree-pass.h (pass_reset_cc_flags): New prototype.
1267 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
1268 (reset_cc_flags): New function.
1269 * passes.c (init_optimization_passes): Call reset_cc_flags after
1270 initializing referenced_vars.
1272 2006-03-25 Uros Bizjak <uros@kss-loka.si>
1273 Roger Sayle <roger@eyesopen.com>
1276 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
1277 to 1.0 for non-real operands. Implement A / A optimization for
1280 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
1282 * config/i386/i386.c (size_cost): Correct the comment for
1283 cost of storing fp registers.
1284 (i386_cost): Likewise.
1285 (i486_cost): Likewise.
1286 (pentium_cost): Likewise.
1287 (pentiumpro_cost): Likewise.
1288 (k6_cost): Likewise.
1289 (athlon_cost): Likewise.
1290 (k8_cost): Likewise.
1291 (pentium4_cost): Likewise.
1292 (nocona_cost): Likewise.
1293 (generic64_cost): Likewise.
1294 (generic32_cost): Likewise.
1296 2006-03-24 Denis Chertykov <denisc@overta.ru>
1298 * config/avr/avr-protos.h (extra_constraint): Delete.
1299 (extra_constraint_Q): New declaration.
1300 * config/avr/constraints.md: New file.
1301 * config/avr/avr.md: Include it.
1302 (REG_X, REG_Y, REG_Z, REG_W): New constants.
1303 (TMP_REGNO, ZERO_REGNO): Likewise.
1304 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
1305 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
1306 (extra_constraint): Delete.
1307 (extra_constraint_Q): Test for memory constraint 'Q'.
1308 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
1309 (REG_CLASS_FROM_LETTER): Delete.
1310 (CONST_OK_FOR_LETTER_P): Delete.
1311 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1312 (EXTRA_CONSTRAINT): Delete.
1313 (TMP_REGNO): Delete.
1314 (ZERO_REGNO): Delete.
1316 2006-03-24 Jeff Law <law@redhat.com>
1318 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
1319 directly. Call mark_new_vars_to_rename slightly earlier.
1321 2006-03-24 Geoffrey Keating <geoffk@apple.com>
1323 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
1325 (gen_compile_unit_die): Use new language types for Objective-C and
1327 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
1328 DW_LANG_C_plus_plus.
1331 * config/t-darwin (crt3.o): Work around bug 26840.
1332 * config/darwin-crt3.c: Rewrite.
1333 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
1335 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
1337 * doc/invoke.texi: Document -femit-class-debug-always
1338 * common.opt: Add -femit-class-debug-always.
1340 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
1342 * config/s390/s390.c (s390_decompose_address): Allow SImode for
1343 index and base register.
1344 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
1345 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
1346 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
1347 REGNO_OK_FOR_INDEX_P.
1348 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
1350 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
1351 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
1352 REG_OK_FOR_BASE_P): Definitions removed.
1354 2006-03-24 Jakub Jelinek <jakub@redhat.com>
1357 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
1358 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
1359 set yet or weren't marked as local yet.
1361 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
1363 * regrename.c (scan_rtx_address): Initialize a variable to shut up
1366 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
1368 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
1369 (rs6000_legitimate_small_data_p): Delete.
1370 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
1371 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
1372 and make static. Add forward declaration. Update uses.
1373 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
1374 of offsettable_memref_p.
1375 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
1376 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
1378 2006-03-24 Jeff Law <law@redhat.com>
1380 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
1381 around bug in immediate-use iterator.
1383 2006-03-24 Alan Modra <amodra@bigpond.net.au>
1386 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
1387 or __LITTLE_ENDIAN__.
1389 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
1391 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
1392 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
1393 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
1394 * config/sh/sh.opt (mdiv=): Amend description.
1395 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
1396 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
1397 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
1398 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
1399 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
1400 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
1401 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
1402 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
1403 TARGET_DIVIDE_CALL_FP.
1405 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1407 * haifa-sched.c (choose_ready): Fix type of the local variable.
1408 Move local variables. Add comment.
1409 (check_reg_live): Change signature. Make callable from debugger.
1410 * sched-int.h (check_reg_live): Update signature.
1411 * sched-ebb.c (check_reg_live): Update parameters.
1412 * sched-rgn.c (check_reg_live): Ditto.
1413 (region_head_or_leaf_p): Check pointer before dereferencing.
1414 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
1415 before reload on optimization levels below 1.
1417 2006-03-23 Richard Henderson <rth@redhat.com>
1419 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
1423 * config/alpha/predicates.md (local_symbolic_operand): Reject
1426 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
1429 * tree-ssa-pre.c (create_value_expr_from): Don't reject
1430 expressions which have overflowed constants.
1432 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
1434 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
1436 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
1438 * cfgloopmanip.c (create_loop_notes): Removed.
1439 * final.c (final_scan_insn): Do not handle loop notes.
1440 * jump.c (squeeze_notes): Ditto.
1441 * cfglayout.c (skip_insns_after_block,
1442 duplicate_insn_chain): Ditto.
1443 * cfgcleanup.c (rest_of_handle_jump2): Do not call
1445 * cfgloop.h (create_loop_notes): Declaration removed.
1447 2006-03-23 Richard Sandiford <richard@codesourcery.com>
1449 * varasm.c (output_constant_pool): Restore fnname and fndecl
1451 (assemble_start_function): Adjust call accordingly.
1452 (assemble_end_function): Likewise.
1454 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1457 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
1460 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
1462 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1465 * system.h (ICE_EXIT_CODE): New macro.
1466 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
1467 (diagnostic_action_after_output): Likewise.
1468 * gcc.c (fatal_ice): New function.
1469 (execute): Use it instead of fatal.
1470 (fancy_abort): Likewise.
1471 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
1473 2006-03-22 Jeff Law <law@redhat.com>
1475 * loop-unroll.c (analyze_iv_to_split_insn): Handle
1476 iv_analyze_result returning false.
1478 2006-03-22 Jie Zhang <jie.zhang@analog.com>
1480 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
1482 2006-03-22 Richard Henderson <rth@redhat.com>
1485 * except.c (duplicate_eh_regions_0): New.
1486 (duplicate_eh_region_1): Duplicate the children of the node as
1487 well as the node itself. Link them up properly.
1488 (duplicate_eh_region_2): Merge into ...
1489 (duplicate_eh_regions): ... here. Take copy_region argument, and
1490 copy only a sub-tree if asked. Simplify copying and fixup.
1491 (eh_region_outer_p): New.
1492 * except.h (duplicate_eh_regions): Update decl.
1493 (eh_region_outer_p): Declare.
1494 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
1495 (lower_omp_master): Likewise.
1496 (lower_omp_ordered): Likewise.
1497 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
1498 (move_stmt_r): Use it to remap labels. Handle recursion vs
1499 remap_decls_p properly.
1500 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
1501 (find_outermost_region_in_block): New.
1502 (new_label_mapper): New.
1503 (move_sese_region_to_fn): Copy eh information to the new function
1505 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
1507 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
1510 2006-03-22 Richard Sandiford <richard@codesourcery.com>
1512 * doc/md.texi (-mshared): Mention that -mshared code can be linked
1513 into shared libraries.
1515 2006-03-22 Richard Sandiford <richard@codesourcery.com>
1517 * doc/md.texi: Refer to i386/constraints.md instead of
1519 * config/i386/constraints.md: New file, extracted from...
1520 * config/i386/predicates.md: ...here.
1521 * config/i386/i386.md: Include constraints.md.
1523 2006-03-21 Jason Merrill <jason@redhat.com>
1525 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
1528 * expr.c (init_block_move_fn): Force default visibility.
1529 (init_block_clear_fn): Likewise.
1530 * builtins.c (expand_builtin_fork_or_exec): Likewise.
1531 * targhooks.c (default_external_stack_protect_fail): Likewise.
1533 2006-03-21 Richard Sandiford <richard@codesourcery.com>
1535 * config/mips/predicates.md (const_call_insn_operand): Allow direct
1536 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
1537 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
1538 Use TARGET_OLDABI instead of !TARGET_NEWABI.
1539 (loadgp): Use mips_current_loadgp_style.
1540 (loadgp_noshared): New pattern.
1541 (sibcall_internal): Use MIPS_CALL.
1542 (sibcall_value_internal): Likewise.
1543 (sibcall_value_multiple_internal): Likewise.
1544 (call_internal): Likewise.
1545 (call_value_internal): Likewise.
1546 (call_value_multiple_internal): Likewise.
1547 (call_split): Use MIPS_CALL and add an 'S' constraint.
1548 (call_value_split): Likewise.
1549 (call_value_multiple_split): Likewise.
1550 * config/mips/mips.opt (-mabicalls): Tweak docstring.
1551 (-mshared): New option.
1552 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
1553 (mips_current_loadgp_style): Declare.
1554 * config/mips/mips.c (mips_classify_symbol): Avoid using
1555 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
1556 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
1557 TARGET_ABSOLUTE_ABICALLS.
1558 (override_options): Adjust comments. Improve the warning that is
1559 issued when -mabicalls and -G are used together.
1560 (mips_file_start): Remove comment.
1561 (mips_current_loadgp_style): New function.
1562 (mips_gnu_local_gp): New variable.
1563 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
1565 (mips_output_function_prologue): Use mips_current_laodgp_style.
1566 (mips_expand_prologue): Call mips_emit_loadgp before emitting
1567 the cprestore instruction.
1568 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
1569 live for TARGET_ABSOLUTE_ABICALLS.
1570 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
1571 (ASM_SPEC): Pass down -mshared and -mno-shared.
1572 (MIPS_CALL): New macro.
1573 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
1575 * doc/invoke.texi (-mabicalls): Update documentation.
1576 (-mshared): Document.
1578 2006-03-21 Steve Ellcey <sje@cup.hp.com>
1580 * config/ia64/unwind-hpux.c: New file.
1581 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
1583 2006-03-21 Steve Ellcey <sje@cup.hp.com>
1586 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
1588 2006-03-21 Jeff Law <law@redhat.com>
1590 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
1591 type conversions of a VR_VARYING source to a wider type.
1593 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
1595 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
1596 tm_file on Solaris 10 and later.
1597 (sparc64-*-solaris2*): Likewise.
1598 (sparc-*-solaris2*): Likewise.
1599 * config/sol26.h: Rename to config/sol2-6.h.
1600 * config/sol2-10.h: New file.
1602 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
1605 * tree-ssa-pre.c (create_component_ref_by_pieces):
1608 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1611 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
1612 return it immediately.
1614 2006-03-21 Michael Matz <matz@suse.de>
1616 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
1618 (remove_arc, add_arc): Update num_out_arcs member.
1619 (set_out_arc_insns_equiv_num): Returns nothing instead of number
1621 (cache_presence): New function.
1622 (compare_states_for_equiv): New function.
1623 (state_is_differed): Don't take number of outargs, adjust callers.
1624 Use new invariant for speeding up.
1625 (init_equiv_class): Create initial classes based on sorted
1627 (partition_equiv_class): Don't track out_arcs_num.
1628 (evaluate_equiv_classes): Call cache_presence on all states and
1631 2006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
1633 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
1634 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
1635 (bfin_valid_reg_p): Test for pseudos explicitly and use only
1636 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
1638 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
1639 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
1640 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
1641 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1642 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
1644 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
1645 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
1646 (REGNO_REG_CLASS): ARGP is in PREGS.
1647 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
1649 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
1650 to deal with those addresses.
1651 * addresses.h: New file.
1652 * caller-save.c: Include "addresses.h".
1653 (init_caller_save): Use new base_reg_class function.
1654 * rtl-factoring.c: Include "addresses.h".
1655 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
1656 * recog.c: Include "addresses.h".
1657 (preprocess_constraints): Use new base_reg_class function.
1658 * regrename.c: Include "addresses.h".
1659 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
1660 functions. Keep track of a new var INDEX_CODE to compute valid
1662 (replace_oldest_value_addr): Likewise.
1663 (replace_oldest_value_mem): Use base_reg_class.
1664 * reload.c: Include "addresses.h".
1665 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
1666 (find_reloads): Use new base_reg_class function.
1667 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
1668 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
1669 all callers and prototype changed.
1670 * reload1.c: Include "addresses.h".
1671 (maybe_fix_stack_asms): Use base_reg_class.
1672 * regclass.c: Include "addresses.h".
1673 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
1674 (init_reg_autoinc): Use new base_reg_class function.
1675 (record_reg_classes): Likewise.
1676 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
1677 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
1678 Use new args to compute necessary class.
1680 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
1681 regrename.o, rtl-factoring.o): Update dependencies.
1682 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
1683 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1684 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
1685 REG_OK_FOR_INDEX_P): Delete documentation.
1687 2006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
1689 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
1690 from V7 to V9 for Solaris 7 and above.
1692 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
1694 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
1695 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
1696 argument pointers may not alias any other storage.
1697 * common.opt: Define option -fargument-noalias-anything.
1698 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
1699 alias semantics is specified by flag_argument_noalias > 2.
1701 2006-03-20 Jeff Law <law@redhat.com>
1703 * tree-pass.h (pass_phi_only_copy_prop): Delete.
1704 (pass_phi_only_cprop): Declare.
1705 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
1707 * tree-ssa-dom.c (degenerate_phi_result): New function.
1708 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
1709 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
1710 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
1711 (eliminate_degenerate_phis): Likewise.
1712 (pass_phi_only_cprop): New pass descriptor.
1713 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
1714 support code. Callers updated.
1715 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
1716 (store_copy_prop): Likewise.
1717 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
1719 2006-03-20 Jason Merrill <jason@redhat.com>
1722 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
1723 (push_visibility, pop_visibility): Likewise.
1724 * c-pragma.h: Declare them.
1726 2006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
1728 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
1730 * config/sh/sh.c (find_regmode_weight): Change the type of the first
1731 parameter and use get_ebb_head_tail.
1732 (sh_md_init_global): Adjust uses of find_regmode_weight.
1734 2006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
1736 * function.h (struct function) <x_tail_recursion_reentry>:
1737 Rename to x_stack_check_probe_note.
1738 (tail_recursion_reentry): Rename to stack_check_probe_note.
1739 * function.c: Replace tail_recursion_reentry with
1740 stack_check_probe_note everywhere.
1741 (expand_function_start): Only emit a note for
1742 stack_check_probe_note with -fstack-protect.
1743 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
1745 * emit-rtl.c (remove_unnecessary_notes): Remove.
1746 (pass_remove_unnecessary_notes): Remove.
1747 * rtl.h (remove_unnecessary_notes): Remove prototype.
1748 * final.c (final_start_function): Don't call remove_unnecessary_notes.
1749 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
1750 * passes.c (pass_remove_unnecessary_notes): Don't run it.
1752 2006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
1755 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
1756 (valid_in_set): Handle ARRAY_REF.
1757 Change "if min_variant or VH" to asserts.
1758 (create_component_ref_by_pieces): Handle ARRAY_REF.
1759 (create_expression_by_pieces): Likewise.
1760 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
1762 2006-03-20 David Edelsohn <edelsohn@gnu.org>
1764 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
1765 is operand of switch, not str[0].
1767 2006-03-20 Alan Modra <amodra@bigpond.net.au>
1769 * config/rs6000/rs6000.c (rs6000_handle_option): Use
1770 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
1772 2006-03-19 David Edelsohn <edelsohn@gnu.org>
1774 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
1775 end of insn_extra_address_constraint declaration.
1777 2006-03-19 David Edelsohn <edelsohn@gnu.org>
1779 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
1780 (no-sum-in-toc): Same.
1781 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
1783 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
1784 NO_FP_IN_TOC for -fPIC instead of mask.
1786 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
1787 (BOOT_LDFLAGS): Delete.
1789 * config/rs6000/t-aix52: Same.
1791 * config/rs6000/rs6000.md (store_multiple_power): Delete.
1792 (stmsi[345678]_power): New.
1794 2006-03-17 Steve Ellcey <sje@cup.hp.com>
1796 * config/ia64/ia64.opt: Add empty line to end of file.
1798 2006-03-17 Richard Guenther <rguenther@suse.de>
1801 * builtins.c (get_pointer_alignment): For component style references
1802 adjust alignment to the component type alignment. Make sure
1803 to adjust alignment for component access of constants.
1805 2006-03-17 David Edelsohn <edelsohn@gnu.org>
1807 * config/rs6000/rs6000.md (strlensi): Emit barrier after
1810 2006-03-17 Paul Brook <paul@codesourcery.com>
1812 * doc/install.texi: Docuemnt --with-mode.
1813 * config.gcc: Add --with-mode for arm*-*-*.
1814 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
1816 2006-03-17 J"orn Rennecke <joern.rennecke@st.com>
1818 * sh.c (max_labelno_before_reorg): New variable.
1819 (sh_reorg): Initialize it.
1820 (find_barrier): Check max_labelno_before_reorg before using
1821 label_to_alignment. Take length of explicit alignment insns
1822 into account. When seeing a UNSPECV_CONST_END, return it.
1824 * sh.c (fixup_mova): Set mode of affected label to QImode.
1825 (untangle_mova): New function.
1826 (find_barrier): Use it. Check mode of label before decrementing
1828 (sh_reorg): Likewise.
1829 Set mode of all insns back to VOIDmode.
1831 * sh.c (MOVA_LABELREF): New macro.
1832 (mova_p, fixup_mova, sh_reorg): Use it.
1833 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
1834 ADDR_DIFF_VEC matches mova.
1836 2006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
1838 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
1839 with ATTRIBUTE_UNUSED.
1841 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
1843 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
1844 pointer, instead of assuming it is possible to derive the
1845 correct args size from a call insn.
1847 2006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1849 * rtl.h (CONST_INT_P): Define.
1850 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
1851 instead of GET_CODE(x) == CONST_INT.
1852 (vax_rtx_costs): Likewise.
1853 (vax_output_int_move): Likewise.
1854 (vax_output_int_add): Likewise.
1855 (legitimate_constant_address_p): Likewise.
1856 (index_term_p): Likewise.
1857 * config/vax/vax.h (PRINT_OPERAND): Likewise.
1858 * config/vax/vax.md (and<mode>3): Likewise.
1859 (ashrsi3): Likewise.
1861 (movstricthi): Likewise.
1862 (movstrictqi): Likewise.
1863 (rotrsi3): Likewise.
1864 (five unnamed insns): Likewise.
1866 2006-03-16 Geoffrey Keating <geoffk@apple.com>
1868 * doc/tm.texi (SDB and DWARF): Add extra parameter to
1869 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
1870 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
1871 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
1872 Pass to ASM_OUTPUT_DWARF_OFFSET.
1873 * dwarf2out.c (debug_frame_section): New.
1874 (output_call_frame_info): Use debug_frame_section. Pass it to
1875 dw2_asm_output_offset.
1876 (output_die): Pass appropriate section to dw2_asm_output_offset.
1877 (output_compilation_unit_header): Likewise.
1878 (output_pubnames): Likewise.
1879 (output_aranges): Likewise.
1880 (enum dw_val_class): Break dw_val_class_lbl_offset into
1881 dw_val_class_lineptr and dw_val_class_macptr.
1882 (add_AT_lbl_offset): Delete.
1883 (add_AT_lineptr): New.
1884 (add_AT_macptr): New.
1885 (AT_lbl): Expect a lineptr or macptr.
1886 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
1887 (attr_checksum): Likewise.
1888 (same_dw_val_p): Likewise.
1889 (size_of_die): Likewise.
1890 (value_format): Likewise.
1891 (output_die): Likewise.
1892 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
1894 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
1895 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
1896 * config/darwin-protos.h (darwin_file_start): New.
1897 (darwin_asm_output_dwarf_offset): New.
1898 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
1899 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
1901 * config/darwin.c (darwin_emit_unwind_label): Don't output label
1902 if not EH section; simplify.
1903 (darwin_file_start): New.
1904 (darwin_asm_output_dwarf_offset): New.
1905 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
1907 (DEBUG_INFO_SECTION): Likewise.
1908 (DEBUG_ABBREV_SECTION): Likewise.
1909 (DEBUG_ARANGES_SECTION): Likewise.
1910 (DEBUG_MACINFO_SECTION): Likewise.
1911 (DEBUG_LINE_SECTION): Likewise.
1912 (DEBUG_LOC_SECTION): Likewise.
1913 (DEBUG_PUBNAMES_SECTION): Likewise.
1914 (DEBUG_STR_SECTION): Likewise.
1915 (DEBUG_RANGES_SECTION): Likewise.
1916 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
1917 (ASM_OUTPUT_DWARF_OFFSET): New.
1919 2006-03-16 Joseph S. Myers <joseph@codesourcery.com>
1921 * config.gcc (tm_defines): Always add to previous value rather
1924 2006-03-16 Richard Sandiford <richard@codesourcery.com>
1926 * config/mips/predicates.md (splittable_const_int_operand): New,
1927 split from move_operand.
1928 (splittable_symbolic_operand): New.
1929 (move_operand): Add commentary. Use splittable_const_int_operand.
1930 Inline mips_atomic_symbolic_constant_p.
1931 * config/mips/mips.md: Add combine splitters for handling moves
1932 of splittable_const_int_operands and splittable_symbolic_operands.
1933 * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
1934 (mips_split_symbol): Declare.
1935 (mips_move_integer): Declare.
1936 * config/mips/mips.c (mips_split_p): Make global.
1937 (TARGET_MIN_ANCHOR_OFFSET): Override default.
1938 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
1939 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
1940 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
1941 (mips_offset_within_object_p): Handle block symbols.
1942 (mips_atomic_symbolic_constant_p): Delete.
1943 (mips_cannot_force_const_mem): Return false for constants that
1944 mips_legitimize_move can handle.
1945 (mips_use_blocks_for_constant_p): New function.
1946 (mips_split_symbol): Make global.
1947 (mips_move_integer): Likewise. Add a temporary register argument.
1948 (mips_legitimize_const_move): Use splittable_const_int_operand and
1949 splittable_symbolic_operand.
1950 (mips_use_anchors_for_symbol_p): New function.
1951 * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
1952 (mips_split_p): Declare.
1954 2006-03-16 Richard Sandiford <richard@codesourcery.com>
1956 * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
1957 (mips*-*-linux*): Likewise.
1959 2006-03-16 Roger Sayle <roger@eyesopen.com>
1960 Daniel Speyer <dspeyer@wam.umd.edu>
1963 * tree-dump.c (dump_real): New function.
1964 (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
1965 * Makefile.in (REAL_H): New macro for dependencies on real.h.
1966 (tree-dump.o): Add $(REAL_H) to the dependencies.
1968 2006-03-16 Roger Sayle <roger@eyesopen.com>
1971 * real.c (real_from_string): If the mantissa is zero, don't bother
1972 parsing the exponent as the result should always be zero.
1974 2006-03-16 Andreas Krebbel <krebbel1@de.ibm.com>
1976 * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
1978 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1980 * config/ia64/ia64.c (stops_p): Added explicit initialization.
1981 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
1982 ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
1983 ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
1984 ia64_sched_finish_global): New static functions to implement
1985 hooks from gcc_target.sched.
1986 (spec_check_no, max_uid, pending_data_specs): New static variables.
1987 (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
1988 ia64_spec_check_src_p): New static functions.
1989 (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
1990 (TARGET_SCHED_ADJUST_COST): Removed.
1991 (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
1992 TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
1993 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
1994 TARGET_SCHED_GEN_CHECK,
1995 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
1996 TARGET_SCHED_SET_SCHED_FLAGS): New macros.
1997 (update_set_flags, group_barrier_needed, set_src_needs_barrier):
1998 Fixed to handle speculation checks.
1999 (rtx_needs_barrier): Fixed to handle speculative loads and
2001 (ia64_variable_issue): Added code to count speculative loads and their
2003 (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
2005 (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
2007 (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
2009 (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
2010 (ia64_reorg): Reset stops_p to NULL after it is freed.
2011 * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
2012 UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
2013 (itanium_class): chk_s renamed to chk_s_i. New constants: chk_s_f,
2015 (data_speculative, control_speculative, check_load): New attributes.
2016 (mov<mode>_advanced, mov<mode>_speculative,
2017 mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
2018 zero_extend<mode>di2_speculative,
2019 zero_extend<mode>di2_speculative_advanced): New patterns for
2020 data and control speculative loads.
2021 (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
2023 (advanced_load_check_clr_<mode>, speculation_check_<mode>):
2024 New pattern for data and control speculation checks.
2025 (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
2026 ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
2027 reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
2028 Auxiliary definitions for the patterns.
2029 * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
2030 1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
2032 (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
2034 (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
2035 * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
2036 2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
2037 New resource constraints.
2038 (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
2040 (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
2041 * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
2042 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
2043 msched-in-control-spec, msched-ldc, msched-control-ldc,
2044 msched-spec-verbose, msched-prefer-non-data-spec-insns,
2045 msched-prefer-non-control-spec-insns,
2046 msched-count-spec-in-critical-path): New flags to tune speculative
2048 * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
2049 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
2050 msched-in-control-spec, msched-ldc, msched-control-ldc,
2051 msched-spec-verbose, msched-prefer-non-data-spec-insns,
2052 msched-prefer-non-control-spec-insns,
2053 msched-count-spec-in-critical-path): Document new flags.
2055 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2057 * target.h (struct spec_info_def): New opaque declaration.
2058 (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
2059 speculate_insn, needs_block_p, gen_check,
2060 first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
2061 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
2062 TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
2063 TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
2064 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
2065 TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
2067 (TARGET_SCHED): Use new macros.
2068 * rtl.h (copy_DEPS_LIST_list): New prototype.
2069 * sched-int.h (struct sched_info): Change signature of new_ready field,
2070 adjust all initializations. New fields: add_remove_insn,
2071 begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
2072 region_head_or_leaf_p.
2073 (struct spec_info_def): New structure declaration.
2074 (spec_info_t): New typedef.
2075 (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
2076 recovery_block, orig_pat.
2077 (glat_start, glat_end): New variables declaraions.
2078 (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
2080 (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
2081 DETACH_LIFE_INFO, USE_GLAT.
2082 (enum SPEC_SCHED_FLAGS): New enumeration.
2083 (NOTE_NOTE_BB_P): New macro.
2084 (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
2085 attach_life_info, debug_spec_status, check_reg_live): New functions.
2086 (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
2087 all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
2089 (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
2090 * ddg.c (get_block_head_tail): Adjust all uses.
2091 * modulo-sched.c (get_block_head_tail): Adjust all uses.
2092 (sms_sched_info): Initialize new fields.
2093 (contributes_to_priority): Removed.
2094 * haifa-sched.c (params.h): New include.
2095 (get_block_head_tail): Adjust all uses.
2096 (ISSUE_POINTS): New macro.
2097 (glat_start, glat_end): New global variables.
2098 (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
2099 nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
2100 old_last_basic_block, before_recovery, current_sched_info_var,
2101 rgn_n_insns, luid): New static variables.
2102 (insn_cost1): New function. Move logic from insn_cost to here.
2103 (find_insn_reg_weight1): New function. Move logic from
2104 find_insn_reg_weight to here.
2105 (reemit_notes, move_insn, max_issue): Change signature.
2106 (move_insn1): Removed.
2107 (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
2108 extend_bb): New static functions to support extension of scheduler's
2110 (generate_recovery_code, process_insn_depend_be_in_spec,
2111 begin_speculative_block, add_to_speculative_block,
2112 init_before_recovery, create_recovery_block, create_check_block_twin,
2113 fix_recovery_deps): New static functions to support
2114 generation of recovery code.
2115 (fix_jump_move, find_fallthru_edge, dump_new_block_header,
2116 restore_bb_notes, move_block_after_check, move_succs): New static
2117 functions to support ebb scheduling.
2118 (init_glat, init_glat1, attach_life_info1, free_glat): New static
2119 functions to support handling of register live information.
2120 (associate_line_notes_with_blocks, change_pattern, speculate_insn,
2121 sched_remove_insn, clear_priorities, calc_priorities, bb_note,
2122 add_jump_dependencies): New static functions.
2123 (check_cfg, has_edge_p, check_sched_flags): New static functions for
2124 consistancy checking.
2125 (debug_spec_status): New function to call from debugger.
2126 (priority): Added code to handle speculation checks.
2127 (rank_for_schedule): Added code to distinguish speculative instructions.
2128 (schedule_insn): Added code to handle speculation checks.
2129 (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
2130 Fixed to handle ebbs.
2131 (move_insn): Added code to handle ebb scheduling.
2132 (max_issue): Added code to use ISSUE_POINTS of instructions.
2133 (choose_ready): Added code to choose between speculative and
2134 non-speculative instructions.
2135 (schedule_block): Added code to handle ebb scheduling and scheduling of
2136 speculative instructions.
2137 (sched_init): Initialize new variables.
2138 (sched_finish): Free new variables. Print statistics.
2139 (try_ready): Added code to handle speculative instructions.
2140 * lists.c (copy_DEPS_LIST_list): New function.
2141 * sched-deps.c (extend_dependency_caches): New function. Move logic
2142 from create_dependency_caches to here.
2143 (get_dep_weak, ds_merge): Make global.
2144 * genattr.c (main): Code to output prototype for
2145 dfa_clear_single_insn_cache.
2146 * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
2147 (output_dfa_clean_insn_cache_func): Code to output
2148 dfa_clear_single_insn_cache function.
2149 * sched-ebb.c (target_n_insns): Remove. Adjust all users to use
2151 (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
2153 (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
2154 New static variables.
2155 (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
2156 fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
2158 (ebb_sched_info): Initialize new fields.
2159 (get_block_head_tail): Adjust all uses.
2160 (compute_jump_reg_dependencies): Fixed to use glat_start.
2161 (schedule_ebb): Code to remove unreachable last block.
2162 (schedule_ebbs): Added code to update register live information.
2163 * sched-rgn.c (region_sched_info): Initialize new fields.
2164 (get_block_head_tail): Adjust all uses.
2165 (last_was_jump): Removed. Adjust users.
2166 (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
2167 add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
2168 Implement new hooks.
2169 (check_dead_notes1): New static function.
2170 (struct region): New fields: dont_calc_deps, has_real_ebb.
2171 (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
2172 (BB_TO_BLOCK): Fixed to handle EBBs.
2173 (EBB_FIRST_BB, EBB_LAST_BB): New macros.
2174 (ebb_head): New static variable.
2175 (debug_regions, contributes_to_priority): Fixed to handle EBBs.
2176 (find_single_block_regions, find_rgns, find_more_rgns): Initialize
2178 (compute_dom_prob_ps): New assertion.
2179 (check_live_1, update_live_1): Fixed to work with glat_start instead of
2180 global_live_at_start.
2181 (init_ready_list): New assertions.
2182 (can_schedule_ready_p): Split update code to begin_schedule_ready.
2183 (new_ready): Add support for BEGIN_CONTROL speculation.
2184 (schedule_insns): Fixed code that updates register live information
2186 (schedule_region): Fixed to handle EBBs.
2187 (init_regions): Use extend_regions and check_dead_notes1.
2188 * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
2189 PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
2190 * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
2191 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
2192 TARGET_SCHED_GEN_CHECK,
2193 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
2194 TARGET_SCHED_SET_SCHED_FLAGS): Document.
2195 * doc/invoke.texi (max-sched-insn-conflict-delay,
2196 sched-spec-prob-cutoff): Document.
2198 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2200 * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
2201 inter_tick, queue_index.
2202 (struct sched_info): Change signature of init_ready_list field.
2203 Adjust all initializations.
2204 (RESOLVED_DEPS): New access macro.
2205 (ready_add): Remove prototype.
2206 (try_ready): Add prototype.
2207 * sched-rgn.c (init_ready_list): Use try_ready.
2208 (schedule_region): Initialize
2209 current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
2210 * sched-ebb.c (new_ready): Remove. Adjust ebb_sched_info.
2211 (init_ready_list): Use try_ready.
2212 (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
2213 * lists.c (remove_list_elem): Remove `static'.
2214 (remove_free_INSN_LIST_elem): New function.
2215 * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
2216 * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
2217 (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
2219 (readyp): New variable.
2220 (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
2221 change_queue_index, resolve_dep): New static functions.
2222 (try_ready): New function. Adjust callers in sched-rgn.c and
2223 sched-ebb.c to use it instead of ready_add.
2224 (clock_var): Move at the begining of file.
2225 (rank_for_schedule): Fix typo.
2226 (queue_insn): Add assertion. Handle QUEUE_INDEX.
2227 (ready_lastpos): Enforce assertion.
2228 (ready_add): Make it static. Handle QUEUE_INDEX. Add new argument,
2230 (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
2231 (schedule_insn): Rewrite to use try_ready and resolve_dep.
2232 (queue_to_ready): Use free_INSN_LIST_list.
2233 (early_queue_to_ready): Fix typo.
2234 (schedule_block): Init readyp. Move init_ready_list call after the
2235 initialization of clock_var. Fix error in rejecting insn by
2236 targetm.sched.dfa_new_cycle. Add call to fix_inter_tick. Remove code
2237 that previously corrected INSN_TICKs. Add code for handling
2239 (set_priorities): Fix typo.
2240 (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
2241 Clarify comment and code that keeps current_sched_info->next_tail
2244 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2246 * sched-rgn.c (extend_rgns): New static function.
2247 (find_rgns): Use it.
2248 (gather_region_statistics, print_region_statistics): New static
2250 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
2251 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
2253 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2254 Andrey Belevantsev <abel@ispras.ru>
2256 * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
2257 * lists.c (unused_deps_list): New variable.
2258 (free_list): Add assertions to verify the proper distinguishing
2259 between INSN_LISTs and DEPS_LISTs.
2260 (find_list_elem, remove_list_elem, remove_list_node): New static
2262 (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
2263 remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
2264 remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
2265 (alloc_INSN_LIST): Assert that the list we're working on is indeed
2267 (free_INSN_LIST_node): Likewise.
2268 * modulo-sched.c (current_sched_info): Initialize flags field.
2269 * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
2270 * rtl.def (DEPS_LIST): Define.
2271 * rtl.h: Declare new functions from lists.c.
2272 * sched-deps.c (spec_dependency_cache): New static variable.
2273 (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
2274 (add_dependence): Change return type to void. Move the logic to ...
2275 (add_or_update_back_dep_1): ... here. Handle speculative dependencies.
2276 (delete_all_dependences): Add comment about forward_dependency_cache.
2277 Handle spec_dependency_cache. Handle DEPS_LISTs.
2278 (fixup_sched_groups): Clarify the change of priority of output
2279 and anti dependencies.
2280 (sched_analyze_2): Adjust add_dependence calls to create data
2281 speculative dependence.
2282 (add_forward_dependence): Renamed to add_forw_dep, change prototype.
2283 Adjust all callers. Handle DEPS_LISTS.
2284 (compute_forward_dependences): Use add_forw_dep. Sort LOG_LINKs in
2285 presence of speculation.
2286 (init_dependency_caches, free_dependency_caches):
2287 Handle spec_dependency_cache.
2288 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
2289 estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
2290 New static functions.
2291 (add_or_update_back_dep, add_or_update_back_forw_dep,
2292 add_back_forw_dep, delete_back_forw_dep): New functions.
2293 * sched-int.h (ds_t, dw_t): New typedefs.
2294 (struct sched_info): Add new field flags.
2295 (struct haifa_insn_data): Add new bitfield has_internal_dep.
2296 Prototype new sched-deps.c functions.
2297 (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
2298 (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
2299 MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
2300 BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
2301 SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
2302 SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
2304 (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
2306 * sched-rgn.c (current_sched_info): Initialize flags field.
2307 (schedule_insns): Initialize current_sched_info before the sched_init
2309 * sched-ebb.c (current_sched_info): Initialize flags field.
2310 (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
2311 Call add_or_update_back_dep instead of add_dependence.
2312 Create control speculative dependencies.
2313 (schedule_insns): Initialize current_sched_info before the sched_init
2316 2006-03-16 Kaz Kojima <kkojima@gcc.gnu.org>
2318 * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
2320 (sh_fallback_frame_state): Likewise.
2322 2006-03-15 Geoffrey Keating <geoffk@apple.com>
2324 * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
2325 Do switch on default_use_cxa_atexit.
2326 (powerpc*-*-darwin*): Build crt2.o on powerpc.
2327 * config/darwin-crt3.o: New.
2328 * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
2329 to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use.
2330 (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
2332 * config/rs6000/t-darwin: Move crt2.o building to here.
2333 * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
2334 Mac OS version for using __cxa_get_exception_ptr. Don't test versions
2337 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2339 * config/vax/vax.c (nonindexed_address_p): Change logical negation
2340 from '! xxx' to '!xxx' for coding-style conformance.
2341 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
2342 (EXTRA_CONSTRAINT): Likewise.
2343 * config/vax/vax.md (four unnamed insns): Likewise.
2345 2006-03-15 Paul Brook <paul@codesourcery.com>
2347 * config/arm/arm.c (minipool_pad): New.
2348 (add_minipool_forward_ref): Include pool alignment padding in address
2350 (push_minipool_fix): Set minipool_pad.
2351 (minipool_pad): Ditto.
2353 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2355 * config/vax/vax.c (split_quadword_operands): Use MEM_P()
2356 instead of GET_CODE() == MEM and REG_P() instead of
2358 (print_operand_address): Likewise.
2359 (vax_address_cost): Likewise.
2360 (vax_rtx_costs): Likewise.
2361 (vax_notice_update_cc): Likewise.
2362 (vax_output_int_add): Likewise.
2363 (INDEX_REGISTER_P): Likewise.
2364 (BASE_REGISTER_P): Likewise.
2365 (nonindexed_address_p): Likewise.
2366 (vax_mode_dependent_address_p): Likewise.
2367 * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
2368 (PRINT_OPERAND): Likewise.
2369 * config/vax/vax.md (ashlsi3): Likewise.
2370 (ashlsi3): Likewise.
2371 (some more unnamed insns): Likewise.
2373 2006-03-15 Kazu Hirata <kazu@codesourcery.com>
2375 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
2376 iterator-style macro.
2377 (mark_control_dependent_edges_necessary): Update the use of
2378 EXECUTE_IF_CONTROL_DEPENDENT.
2380 2006-03-15 J"orn Rennecke <joern.rennecke@st.com>
2382 * config/sh/predicates.md (cache_address_operand): Special.
2383 (ua_address_operand): Likewise.
2385 2006-03-15 Zdenek Dvorak <dvorakz@suse.cz>
2387 * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
2389 * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
2391 2006-03-15 Andreas Schwab <schwab@suse.de>
2393 * gensupport.c (identify_predicable_attribute): Don't free p_false
2394 when it is still in use.
2396 2006-03-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2398 * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
2399 the default setting here.
2401 2006-03-14 Steven Bosscher <stevenb.gcc@gmail.com>
2403 * tree-pass.h (pass_cfg): Remove.
2404 * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
2405 * passes.c (pass_cfg): Don't run it.
2407 2006-03-14 Kazu Hirata <kazu@codesourcery.com>
2409 * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
2410 * reg-stack.c (stack_regs_mentioned_data): Change the type to
2412 (stack_regs_mentioned): Update the uses of
2413 stack_regs_mentioned_data. Don't access the array beyond its
2415 (reg_to_stack): Update the uses of stack_regs_mentioned_data.
2416 Don't include gt-reg-stack.h.
2418 * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
2419 * system.h (UNALIGNED_WORD_ASM_OP): Poison.
2421 * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
2424 * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
2427 2006-03-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2429 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
2431 2006-03-14 Richard Guenther <rguenther@suse.de>
2433 PR tree-optimization/26672
2434 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
2437 2006-03-14 Richard Guenther <rguenther@suse.de>
2439 PR tree-optimization/26667
2440 * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
2441 node for the callees. Always allow inlining if it will shrink
2444 2006-03-14 Richard Guenther <rguenther@suse.de>
2447 * builtins.c (get_pointer_alignment): Prefer alignment
2448 information from decls over that from types.
2450 2006-03-14 Andrew Pinski <pinskia@physics.uc.edu>
2453 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
2455 2006-03-14 Joseph S. Myers <joseph@codesourcery.com>
2457 * config/rs6000/rs6000.opt (mdlmzb): New option.
2458 (msched-prolog, msched-epilog): Use Var not Mask.
2459 * doc/invoke.texi (-mdlmzb): Document.
2460 * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2462 (rs6000_override_options): Enable -mdlmzb for 405 and 440.
2463 * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
2465 2006-03-13 Uttam Pawar <uttamp@us.ibm.com>
2467 PR rtl-optimization/25739
2468 * bt-load.c (augment_live_range): Free tos pointer.
2470 * gensupport.c (identify_predicable_attribute): Free
2472 * gcov.c (create_file_names): Free name pointer.
2474 2006-03-13 Roger Sayle <roger@eyesopen.com>
2477 * stmt.c (emit_case_nodes): Handle the case where the index is a
2478 CONST_INT, where the comparison mode is specified by the index type.
2480 2006-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2482 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
2485 2006-03-13 Richard Sandiford <richard@codesourcery.com>
2487 * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
2488 (*branch_fp_inverted): Likewise.
2490 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2493 * omp-low.c (expand_omp_for_generic): Mark istart0
2494 and iend0 as addressable.
2496 2006-03-13 Jie Zhang <jie.zhang@analog.com>
2498 * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
2500 2006-03-13 Jeff Law <law@redhat.com>
2502 * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
2503 virtual operands are interesting.
2504 (vrp_visit_stmt): Corresponding changes.
2506 2006-03-13 Bernd Schmidt <bernd.schmidt@analog.com>
2508 * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
2510 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
2511 TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
2512 * config/bfin/crti.S: Use it instead of __PIC__.
2513 * config/bfin/crtn.S: Likewise.
2515 * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
2516 call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
2518 Lose 'G' modifier for call operand.
2519 * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
2520 recognize 'G' modifier.
2522 2006-03-13 Eric Botcazou <ebotcazou@adacore.com>
2525 * gimplify.c (gimplify_switch_expr): Discard empty ranges.
2526 * stmt.c (expand_case): Likewise.
2528 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2530 PR rtl-optimization/26254
2531 * loop-invariant.c (seq_insns_valid_p): New function.
2532 (move_invariant_reg): Only emit new code if it is valid.
2534 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2536 * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
2538 (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
2539 (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
2540 (commit_one_edge_insertion): Do not look for loop notes.
2542 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2544 * jump.c (follow_jumps): Do not check for loop notes. Move check for
2545 flag_test_coverage out of loop.
2547 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2549 * final.c (shorten_branches): Remove outdated comment, and turn
2550 the if branch that guards it to continue.
2552 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2554 * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
2555 * cfgloop.h (struct loop): Remove unused fields.
2557 2006-03-13 Kazu Hirata <kazu@codesourcery.com>
2559 * doc/invoke.texi (-fdump-rtl-loop): Remove.
2560 (-dL, -fdump-rtl-loop2): Update the dump file names
2562 * doc/invoke.texi: Update dump file names.
2564 2006-03-12 Steven Bosscher <stevenb.gcc@gmail.com>
2566 * predict.c (estimate_probability): Remove.
2567 * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
2568 * basic-block.h (estimate_probability): Remove prototype.
2569 * passes.c (finish_optimization_passes): Dump branch prediction or
2570 profiling heuristics to the .profile tree dump.
2571 (init_optimization_passes): Unqueue pass_branch_prob.
2573 * doc/invoke.texi (-fdump-rtl-bp): Remove.
2575 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
2577 * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
2578 * rtl.h (LABEL_NEXTREF): Remove field accessor.
2580 2006-03-11 Eric Botcazou <ebotcazou@adacore.com>
2582 * function.h (frame_offset_overflow): Declare.
2583 * function.c (frame_offset_overflow): New function.
2584 (assign_stack_local_1): Call it to detect that the offset overflows.
2585 * cfgexpand.c (alloc_stack_frame_space): Likewise.
2587 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
2589 * config/sh/sh.c: Include alloc-pool.h.
2590 (label_ref_list_pool): New alloc pool.
2591 (label_ref_list_t): New type for lists of labels.
2592 (struct pool_node): Make wend a label_ref_list_t.
2593 (add_constant): Use the new type, eradicate LABEL_NEXTREF
2595 (dump_table): Likewise.
2596 (sh_reorg): Set up the alloc pool before using add_constant and
2597 dump_table, and destroy it when finishing.
2599 2006-03-11 Richard Sandiford <richard@codesourcery.com>
2601 * config/mips/mips.c: Remove redundant comment.
2603 2006-03-10 Jason Merrill <jason@redhat.com>
2606 * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
2607 the target was declared 'register'.
2609 2006-03-10 Adam Nemet <anemet@caviumnetworks.com>
2611 * genpreds.c (write_insn_constraint_len): Change definition of
2612 insn_constraint_len to return size_t to match the declaration.
2614 2006-03-10 DJ Delorie <dj@redhat.com>
2616 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
2618 (m32c_expand_insv): Fix test for an AND mask.
2620 2006-03-10 Richard Guenther <rguenther@suse.de>
2623 * builtins.c (get_pointer_alignment): Handle component
2624 references for field alignment.
2626 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
2628 * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
2629 when building with libgloss.
2630 (sh*elf): Implement --without-fp option.
2631 (sh64-superh-linux*): Don't multilib.
2633 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
2635 * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
2637 2006-03-09 Andrew Pinski <pinskia@physics.uc.edu>
2639 * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
2640 Set it when one of the replacement functions returned true.
2641 Return TODO_cleanup_cfg if cfgchanged is true.
2642 (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
2644 2006-03-09 Adam Nemet <anemet@caviumnetworks.com>
2646 * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
2647 instead of gen_lowpart.
2649 2006-03-09 Richard Sandiford <richard@codesourcery.com>
2651 * config/mips/mips-protos.h (mips_output_conditional_branch): Change
2653 (mips_output_order_conditional_branch): Declare.
2654 * config/mips/mips.h (MIPS_BRANCH): New macro.
2655 * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
2656 for the comparison. Use gen_condjump.
2657 (mips_output_conditional_branch): Rework interface to take the
2658 asm templates for a direct branch and the inverse of a direct branch.
2659 (mips_output_order_conditional_branch): New function.
2660 (mips_builtin_branch_and_move): New function.
2661 (mips_expand_builtin_compare): Use it. Use VOIDmode for the
2662 branch condition. Use gen_single_cc as the condition for
2663 __builtin_mips_upper_* or __builtin_mips_lower_*.
2664 (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
2665 Use VOIDmode for the branch condition.
2666 * config/mips/predicates.md (order_operator): New predicate.
2667 * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
2668 (branch_fp): Rename to...
2669 (*branch_fp): ...this. Remove mode from comparison operator.
2670 Use new mips_output_conditional_branch interface.
2671 (branch_fp_inverted): Rename to...
2672 (*branch_fp_inverted): ...this and update as for *branch_fp.
2673 (*branch_zero<mode>): Rename to...
2674 (*branch_order<mode>): ...this. Remove mode from comparison operator.
2675 Use mips_output_order_conditional_branch. Only accept ordered
2677 (*branch_zero<mode>_inverted): Rename to...
2678 (*branch_order<mode>_inverted): ...this and update as for
2679 *branch_order<mode>.
2680 (*branch_equality<mode>): Accept zero as the second operand to
2681 the equality operator. Use the new mips_output_conditional_branch
2683 (*branch_equality<mode>_inverted): Likewise.
2684 (condjump): New expander.
2685 * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
2687 * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
2688 (bc1any2t, bc1any2f): Likewise.
2689 (single_cc): New expander.
2690 (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
2692 2006-03-09 Richard Sandiford <richard@codesourcery.com>
2694 * doc/md.texi: Update documentation of MIPS constraints.
2695 * config/mips/constraints.md: New file.
2696 * config/mips/mips.md: Include it.
2697 * config/mips/mips.c (mips_char_to_class): Delete.
2698 (override_options): Don't initialize mips_char_to_class.
2699 * config/mips/mips.h (mips_char_to_class): Delete.
2700 (REG_CLASS_FROM_LETTER): Delete.
2701 (CONST_OK_FOR_LETTER_P): Delete.
2702 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2703 (EXTRA_CONSTRAINT_Y): Delete.
2704 (EXTRA_CONSTRAINT_STR): Delete.
2705 (CONSTRAINT_LEN): Delete.
2706 (EXTRA_MEMORY_CONSTRAINT): Delete.
2708 2006-03-09 Diego Novillo <dnovillo@redhat.com>
2710 * tree-cfg.c (move_block_to_fn): Remove the statements from the
2711 original fn's eh regions.
2713 2006-03-09 Eric Botcazou <ebotcazou@adacore.com>
2715 * fold-const.c (build_range_check): Make sure to use a valid type to
2716 apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
2719 (range_predecessor): New static function.
2720 (range_successor): Likewise.
2721 (merge_ranges): Use them to compute predecessors and successors of
2724 2006-03-09 Roger Sayle <roger@eyesopen.com>
2727 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
2728 X op C3, consider whether C3 overflows towards +Inf or -Inf.
2730 2006-03-08 DJ Delorie <dj@redhat.com>
2732 * config/m32c/addsub.md (addqi3): Disparage a0/a1.
2733 (addpsi3): Expand to include memory operands. Remove
2734 reload-specific splits.
2735 * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
2736 (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
2737 (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
2738 (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
2739 (shift1_qi, shift1_hi, insv): New.
2740 * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
2741 (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
2742 cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
2744 * config/m32c/m32c-protos.h: Update as needed.
2745 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
2746 default the Rcr, Rcl, Raw, and Ral constraints. Add Ra0 and Ra1.
2747 Fail for unrecognized R* constraints.
2748 (m32c_cannot_change_mode_class): Be more picky about pseudos.
2749 (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
2750 (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
2752 (m32c_init_libfuncs): New.
2753 (m32c_legitimate_address_p): Add debug wrapper.
2754 (m32c_rtx_costs): New.
2755 (m32c_address_cost): New.
2756 (conversions): Add 'B' prefix.
2757 (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
2758 operands, or word regnames for QI operands. 'B' prints bit
2760 (m32c_expand_setmemhi): New.
2761 (m32c_expand_movmemhi): New.
2762 (m32c_expand_movstr): New.
2763 (m32c_expand_cmpstr): New.
2764 (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
2765 (m32c_expand_neg_mulpsi3): Handle non-ints.
2766 (m32c_cmp_flg_0): New.
2767 (m32c_expand_movcc): New.
2768 (m32c_expand_insv): New.
2769 (m32c_scc_pattern): New.
2770 * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS. Take
2771 a0/a1 out of SIregs.
2772 (STORE_FLAG_VALUE): New.
2773 * config/m32c/m32c.md: Add unspecs for string moves. Define various mode and
2776 * config/m32c/mov.md: Make constraints more liberal.
2777 (zero_extendqihi2): Optimize r0/r1 case.
2778 * config/m32c/muldiv.md (mulpsi3): Check for intvals.
2779 * config/m32c/predicates.md (m32c_any_operand): New.
2780 (m32c_nonimmediate_operand): New.
2781 (m32c_hl_operand): New.
2782 (m32c_r3_operand): New.
2785 (memsym_operand): New.
2786 (memimmed_operand): New.
2787 (a_qi_operand): New.
2788 (m32c_eqne_operator): New.
2789 (m32c_1bit8_operand): New.
2790 (m32c_1bit16_operand): New.
2791 (m32c_1mask8_operand): New.
2792 (m32c_1mask16_operand): New.
2793 * config/m32c/blkmov.md: New file.
2794 * config/m32c/t-m32c (MD_FILES): Add blkmov.
2796 2006-03-08 Andreas Tobler <a.tobler@schweiz.ch>
2798 * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
2799 unsigned to fix signed/unsigned comparison issue in
2800 DWARF2_FRAME_REG_OUT.
2801 (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
2802 unsigned comparison issue in DWARF2_FRAME_REG_OUT.
2804 * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
2805 of ptr into the ENABLE_CHECKING section.
2807 2006-03-08 Jeff Law <law@redhat.com>
2809 * tree-vrp.c (infer_value_range): Only count pointer uses
2810 and dereferences if -fdelete-null-pointer-checks is enabled.
2812 * tree-vrp.c (find_assert_locations): Infer value ranges for
2813 single use pointers, but do not create ASSERT_EXPRs for them.
2814 When a non-null range is inferred for a pointer, backwards
2815 propagate that range to other equivalent pointers through the
2818 2006-03-08 Paolo Bonzini <bonzini@gnu.org>
2821 * Makefile.in (dvi, html, install-info): Invoke the corresponding
2822 language hook targets.
2823 * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
2824 objcp/Make-lang.in: Create stub rules for dvi, html, install-info
2825 if language hook targets were missing.
2827 2006-03-07 Zdenek Dvorak <dvorakz@suse.cz>
2829 * tree-ssa-opfinalize.h: Removed.
2830 * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
2832 * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
2833 (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
2834 INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
2835 add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
2836 finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
2837 finalize_ssa_v_must_def_ops): New.
2839 2006-03-07 Kenneth Zadeck <zadeck@naturalbridge.com>
2841 * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
2844 2006-03-07 Geoffrey Keating <geoffk@apple.com>
2846 * varasm.c (assemble_end_function): Say that 'fnname' is unused.
2848 * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
2849 addresses with offsets; reorganize.
2851 * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
2852 (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
2853 (expand_builtin_init_dwarf_reg_sizes): Likewise.
2855 2006-03-08 David Billinghurst <David.Billinghurst@riotinto.com>
2858 * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
2860 2006-03-08 Ben Elliston <bje@au.ibm.com>
2862 * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
2864 2006-03-07 Aldy Hernandez <aldyh@redhat.com>
2867 * doc/passes.texi (Tree-SSA passes): Document omp lowering and
2870 2006-03-07 Richard Guenther <rguenther@suse.de>
2872 PR tree-optimization/26587
2873 * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
2875 2006-03-07 Richard Sandiford <richard@codesourcery.com>
2877 * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
2879 2006-03-07 Richard Sandiford <richard@codesourcery.com>
2881 * hooks.c (hook_bool_mode_rtx_true): New function.
2882 * hooks.h (hook_bool_mode_rtx_true): Declare.
2883 * toplev.c (compile_file): Call output_shared_constant_pool.
2884 * varasm.c (shared_constant_pool): New variable.
2885 (assemble_start_function, assemble_end_function): Remove arguments
2886 from call to output_constant_pool.
2887 (create_constant_pool): New function, split out from...
2888 (init_varasm_status): ...here.
2889 (force_const_mem): Choose between the shared and per-function constant
2890 pools. Set current_function_uses_const_pool when reusing old entries
2891 as well as when creating new ones.
2892 (mark_constant): Ignore data argument.
2893 (mark_constants): Remove pool argument.
2894 (mark_constant_pool): Likewise. Use current_function_uses_const_pool
2895 to decide whether the function uses a constant pool.
2896 (output_constant_pool_contents): New function, split out from...
2897 (output_constant_pool): ...here.
2898 (output_shared_constant_pool): New function.
2899 (init_varasm_once): Initialize shared_constant_pool.
2900 * output.h (output_constant_pool): Delete.
2901 (output_shared_constant_pool): Declare.
2902 * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
2903 * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
2905 2006-03-06 Nick Clifton <nickc@redhat.com>
2907 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
2908 flag_strength_reduce.
2910 2006-03-06 Ben Elliston <bje@au.ibm.com>
2912 * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
2913 x86_64-*-linux* configurations.
2915 * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
2916 (LIBGCC2_WORDS_BIG_ENDIAN): Define.
2918 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
2920 * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
2922 * basic-block.h: Remove the extern for
2923 rediscover_loops_after_threading.
2925 * cfgloop.c (cancel_loop): Make it static.
2926 * cfgloop.h: Remove the prototype for cancel_loop.
2928 * flow.c (recompute_reg_usage): Make it static.
2929 * rtl.h: Remove the prototype for recompute_reg_usage.
2931 * function.c (use_return_register): Make it static.
2932 * function.h: Remove the prototype.
2934 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
2936 * recog.c (volatile_mem_p, validate_change_maybe_volatile):
2938 * recog.h: Remove the prototype for
2939 validate_change_maybe_volatile.
2941 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
2943 * rtlanal.c (replace_reg): Remove.
2944 * rtl.h: Remove the prototype for replace_reg.
2946 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
2948 * regclass.c (reg_scan_update): Remove.
2949 (reg_scan_mark_refs): Remove the last argument.
2950 * rtl.h: Remove the prototype for reg_scan_update.
2952 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
2954 * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
2955 combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
2956 config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
2957 config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
2958 df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
2959 loop-invariant.c, omp-low.c, opts.c, passes.c,
2960 rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
2961 tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
2962 tree-ssa-structalias.c, tree-ssa-threadedge.c,
2963 tree-ssa-threadupdate.c, tree-vect-patterns.c,
2964 tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
2965 unwind-dw2.c: Fix comment typos. Follow spelling conventions.
2967 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
2969 * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
2970 * dwarf2out.h: Remove the prototype for
2971 dwarf2out_add_library_unit_info.
2973 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
2975 * tree.c (add_var_to_bind_expr): Remove.
2976 * tree.h: Remove the prototype for add_var_to_bind_expr.
2978 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
2980 * regclass.c (n_non_fixed_regs): Remove.
2981 (init_reg_sets_1, globalize_reg): Remove all uses of
2983 * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
2985 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
2987 * rtlanal.c (insns_safe_to_move_p): Remove.
2988 * rtl.h: Remove the prototype for insns_safe_to_move_p.
2990 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
2992 * expmed.c (expand_mult_add): Remove.
2993 * expr.h: Remove the prototype for expand_mult_add.
2995 2006-03-04 Jakub Jelinek <jakub@redhat.com>
2997 * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
2998 and REG_SAVED_VAL_EXP constants.
2999 * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
3000 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
3001 Handle regs stored by value.
3002 (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
3003 (execute_cfa_program): Handle DW_CFA_val_offset,
3004 DW_CFA_val_offset_sf and DW_CFA_val_expression.
3005 (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
3006 value specially. Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
3007 (uw_install_context_1): Handle target regs stored by value.
3009 2006-03-03 Daniel Berlin <dberlin@dberlin.org>
3011 * tree-sra.c (tree_sra): Return todoflags;
3012 (generate_one_element): Set TODO_update_smt_usage if needed.
3013 (pass_sra): Remove TODO_update_smt_usage.
3014 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
3016 (tree_ssa_forward_propagate_single_use_vars): Return
3017 TODO_update_smt_usage if we need to update SMT usage.
3018 (pass_forwprop): Remove TODO_update_smt_usage.
3020 2006-03-03 Diego Novillo <dnovillo@redhat.com>
3022 * tree-ssa-operands.c: Tidy whitespace. Fix spelling.
3023 (correct_use_link): Remove reference to get_stmt_operands.
3024 (update_stmt_operands): Likewise.
3025 (get_modify_expr_operands): New function factored out of
3026 parse_ssa_operands and get_expr_operands.
3027 Try to create V_MUST_DEFs for LHS by default.
3028 (get_expr_operands) <case MODIFY_EXPR>: Call
3029 get_modify_expr_operands.
3030 <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
3031 <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
3032 (parse_ssa_operands) <case MODIFY_EXPR>: Call
3033 get_modify_expr_operands.
3035 2006-03-03 Kazu Hirata <kazu@codesourcery.com>
3037 * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
3038 * tree-flow.h: Remove the prototype for
3039 referenced_var_lookup_if_exists.
3041 2006-03-03 Steve Ellcey <sje@cup.hp.com>
3043 PR rtl-optimization/26345
3045 * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
3047 2006-03-03 Roger Sayle <roger@eyesopen.com>
3049 PR tree-optimization/26524
3050 * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
3051 fold_convert to create a constant of the appropriate type.
3053 2006-03-03 Richard Sandiford <richard@codesourcery.com>
3055 * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
3056 SYMBOL_REF_IN_BLOCK_P.
3057 * doc/rtl.texi: Likewise. Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
3058 of SYMBOL_FLAG_IN_BLOCK.
3059 * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
3060 instead of SYMBOL_REF_IN_BLOCK_P.
3061 * explow.c (use_anchored_address): Likewise.
3062 * rtl.c (rtx_size): Likewise.
3063 * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
3064 instead of SYMBOL_FLAG_IN_BLOCK.
3065 (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
3066 SYMBOL_REF_IN_BLOCK_P.
3067 (assemble_variable): Likewise.
3068 (output_constant_def_contents): Likewise.
3069 (output_constant_pool): Likewise.
3070 (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
3071 instead of SYMBOL_FLAG_IN_BLOCK.
3072 * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
3073 SYMBOL_REF_IN_BLOCK_P.
3074 (SYMBOL_REF_BLOCK): Likewise.
3075 (SYMBOL_REF_OFFSET): Likewise.
3076 (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
3077 SYMBOL_REF_IN_BLOCK_P.
3078 (SYMBOL_FLAG_IN_BLOCK): Replace with...
3079 (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
3080 (SYMBOL_REF_IN_BLOCK_P): Replace with...
3081 (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
3083 2006-03-03 Jakub Jelinek <jakub@redhat.com>
3085 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
3087 2006-03-02 Roger Sayle <roger@eyesopen.com>
3089 * simplify-rtx.c (simplify_unary_operation): When simplifying
3090 (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
3091 that we perform the right shift in the appropriate mode, and
3092 then extend or truncate the result to requested mode.
3094 2006-03-03 Zdenek Dvorak <dvorakz@suse.cz>
3096 * gengtype.c (main): Handle double_int type.
3097 * tree.h (struct tree_int_cst): Make type of int_cst double_int.
3098 * double-int.c: New file.
3099 * double-int.h: New file.
3100 * system.h: Include doubleint.h.
3101 * Makefile.in (SYSTEM_H): Include double-int.h.
3102 (double-int.o): Add.
3104 2006-03-03 Joseph S. Myers <joseph@codesourcery.com>
3107 * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
3110 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
3112 * tree-vrp.c (remove_range_assertions): Do not update statements
3115 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
3117 * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
3119 * gcse.c (rest_of_handle_gcse): Ditto.
3120 * except.c (gate_handle_eh): Ditto.
3121 * cfgcleanup.c (rest_of_handle_jump2): Ditto.
3122 * basic-block.h (CLEANUP_PRE_LOOP): Remove.
3124 2006-03-02 Eric Christopher <echristo@apple.com>
3126 * config/i386/i386.c (machopic_output_stub): Add indirection to
3129 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
3133 2006-03-02 David S. Miller <davem@sunset.davemloft.net>
3135 Sun Niagara specific optimizations.
3136 * config.gcc: Recognize niagara as target.
3137 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
3138 (TARGET_CPU_niagara): Define.
3139 (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
3140 (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
3141 (CPP_CPU_SPEC): Handle -mcpu=niagara.
3142 (ASM_CPU_SPEC): Likewise.
3143 (PROCESSOR_NIAGARA): New enum entry.
3144 (REGISTER_MOVE_COST): Handle Niagara.
3145 (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
3146 * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
3147 (sparc_override_options): Recognize "niagara", set appropriate
3148 default MASK_* values for it, and align functions to 32-bytes
3149 by default just like ULTRASPARC/ULTRASPARC3.
3150 (sparc_initialize_trampoline): Handle niagara like ultrasparc.
3151 (sparc64_initialize_trampoline): Likewise.
3152 (sparc_use_sched_lookahead): Use zero for niagara.
3153 (sparc_issue_rate): Use one for niagara.
3154 * config/sparc/niagara.md: New file.
3155 * config/sparc/sparc.md: Include it.
3156 * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
3157 ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
3158 when default cpu is niagara.
3159 (CPP_CPU_SPEC): Handle -mcpu=niagara.
3160 (ASM_CPU_SPEC): Likewise.
3161 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
3162 when default cpu is niagara.
3163 (ASM_CPU_SPEC): Handle -mcpu=niagara.
3164 * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
3165 just like v9/ultrasparc/ultrasparc3.
3166 * doc/invoke.texi: Add documentation for "niagara" and improve
3167 existing documentation for ultrasparc variants.
3169 2006-03-02 Diego Novillo <dnovillo@redhat.com>
3171 * tree-ssa-operands.c (update_stmt_operands): Update documentation.
3173 2006-03-02 Richard Sandiford <richard@codesourcery.com>
3175 * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
3176 (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
3177 and say that only one is needed.
3178 * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
3179 * target.h (have_switchable_bss_sections): New hook.
3180 * explow.c (use_anchored_address): Check that the symbol is in a block.
3181 * varasm.c (tls_comm_section, comm_section, lcomm_section)
3182 (bss_noswitch_section): New variables.
3183 (get_unnamed_section): Add SECTION_UNNAMED to the flags.
3184 (get_noswitch_section): New function.
3185 (get_block_for_section): Allow SECT to be null.
3186 (unlikely_text_section_p): Use SECTION_STYLE.
3187 (bss_initializer_p): New function.
3188 (get_variable_section): Move earlier in file. Take a new argument,
3189 prefer_noswitch_p. Move bss checks from assemble_variable to here.
3190 Return one of the new *_sections in such cases.
3191 (get_block_for_decl): New function, extracting some logic from
3192 use_blocks_for_decl_p.
3193 (change_symbol_section): Remove in favor of...
3194 (change_symbol_block): ...this new function.
3195 (use_blocks_for_decl_p): Remove checks now performed by
3197 (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
3198 (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
3199 (emit_local, emit_bss, emit_common): ...these new functions.
3200 Return true if the alignment was honored.
3201 (emit_tls_common): New function.
3202 (asm_emit_uninitialised): Delete.
3203 (assemble_variable_noswitch): New function, split out from...
3204 (assemble_variable): ...here. Don't make decisions about common
3205 variables here. Globalize all public decls that go into non-common
3206 sections. Check whether SYMBOL_REF_BLOCK is null.
3207 (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
3208 (output_constant_pool): Likewise.
3209 (init_varasm_once): Initialize the new section variables.
3210 (have_global_bss_p): New function.
3211 (categorize_decl_for_section): Use bss_initializer_p.
3212 (switch_to_section): Use SECTION_STYLE. Abort for SECTION_NOSWITCH.
3213 (place_block_symbol): Assert that the symbol must be in a block.
3214 * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
3215 (TARGET_INITIALIZER): Include it.
3216 * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
3217 * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
3218 (SECTION_MACH_DEP): Bump by two.
3219 (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
3220 (unnamed_section): Mention SECTION_UNNAMED in comment.
3221 (named_section): Likewise SECTION_NAMED.
3222 (noswitch_section_callback): New type.
3223 (noswitch_section): New structure.
3224 (section): Add a noswitch_section alternative.
3225 (SECTION_STYLE): New macro.
3226 (tls_comm_section, comm_section, lcomm_section): Declare.
3227 (bss_noswitch_section, have_global_bss_p): Declare.
3228 * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
3229 * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
3231 * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
3232 * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
3235 2006-03-02 Daniel Berlin <dberlin@dberlin.org>
3237 * gcc/tree-vrp.c (execute_vrp): Return value.
3238 * gcc/regrename.c (rest_of_handle_regrename): Ditto.
3239 * gcc/tree-into-ssa.c (rewrite_into_ssa): Ditto.
3240 * gcc/tree-complex.c (tree_lower_complex): Ditto.
3241 (tree_lower_complex_O0): Ditto.
3242 * gcc/tracer.c (rest_of_handle_tracer): Ditto.
3243 * gcc/postreload-gcse.c (rest_of_handle_gcse2): Ditto.
3244 * gcc/postreload.c (rest_of_handle_postreload): Ditto.
3245 * gcc/tree-tailcall.c (execute_tail_recursion): Ditto.
3246 (execute_tail_calls): Ditto.
3247 * gcc/tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
3248 * gcc/tree.h (init_function_for_compilation): Ditto.
3249 * gcc/ipa-cp.c (ipcp_driver): Ditto.
3250 * gcc/tree-scalar-evolution.c (scev_const_prop): Ditto.
3251 * gcc/tree-scalar-evolution.h (scev_const_prop): Ditto.
3252 * gcc/final.c (compute_alignments): Ditto.
3253 (rest_of_handle_final): Ditto.
3254 (rest_of_handle_shorten_branches): Ditto.
3255 (rest_of_clean_state): Ditto.
3256 * gcc/omp-low.c (execute_expand_omp): Ditto.
3257 (execute_lower_omp): Ditto.
3258 * gcc/tree-ssa-dse.c (tree_ssa_dse): Ditto.
3259 * gcc/ipa-reference.c (static_execute): Ditto.
3260 * gcc/tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
3261 * gcc/reorg.c (rest_of_handle_delay_slots): Ditto.
3262 (rest_of_handle_machine_reorg): Ditto.
3263 * gcc/cgraphunit.c (rebuild_cgraph_edges): Ditto.
3264 * gcc/flow.c (recompute_reg_usage): Ditto.
3265 (rest_of_handle_remove_death_notes): Ditto.
3266 (rest_of_handle_life): Ditto.
3267 (rest_of_handle_flow2): Ditto.
3268 * gcc/tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
3269 * gcc/tree-ssa-ccp.c (do_ssa_ccp): Ditto.
3270 (do_ssa_store_ccp): Ditto.
3271 (execute_fold_all_builtins): Ditto.
3272 * gcc/mode-switching.c (rest_of_handle_mode_switching): Ditto.
3273 * gcc/modulo-sched.c (rest_of_handle_sms): Ditto.
3274 * gcc/ipa-pure-const.c (static_execute): Ditto.
3275 * gcc/cse.c (rest_of_handle_cse): Ditto.
3276 (rest_of_handle_cse2): Ditto.
3277 * gcc/web.c (rest_of_handle_web): Ditto.
3278 * gcc/tree-stdarg.c (execute_optimize_stdarg): Ditto.
3279 * gcc/tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
3280 * gcc/tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
3281 * gcc/tree-nrv.c (tree_nrv): Ditto.
3282 (execute_return_slot_opt): Ditto.
3283 * gcc/tree-ssa-alias.c (compute_may_aliases): Ditto.
3284 (create_structure_vars): Ditto.
3285 * gcc/loop-init.c (rtl_loop_init): Ditto.
3286 (rtl_loop_done): Ditto.
3287 (rtl_move_loop_invariants): Ditto.
3288 (rtl_unswitch): Ditto.
3289 (rtl_unroll_and_peel_loops): Ditto.
3290 (rtl_doloop): Ditto.
3291 * gcc/gimple-low.c (lower_function_body): Ditto.
3292 (mark_used_blocks): Ditto.
3293 * gcc/tree-ssa-sink.c (execute_sink_code): Ditto.
3294 * gcc/ipa-inline.c (cgraph_decide_inlining): Ditto.
3295 (cgraph_early_inlining): Ditto.
3296 * gcc/global.c (rest_of_handle_global_alloc): Ditto.
3297 * gcc/jump.c (cleanup_barriers): Ditto.
3298 (purge_line_number_notes): Ditto.
3299 * gcc/ifcvt.c (rest_of_handle_if_conversion): Ditto.
3300 (rest_of_handle_if_after_reload): Ditto.
3301 * gcc/tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
3302 (tree_ssa_loop_im): Ditto.
3303 (tree_ssa_loop_unswitch): Ditto.
3304 (tree_vectorize): Ditto.
3305 (tree_linear_transform): Ditto.
3306 (tree_ssa_loop_ivcanon): Ditto.
3307 (tree_ssa_empty_loop): Ditto.
3308 (tree_ssa_loop_bounds): Ditto.
3309 (tree_complete_unroll): Ditto.
3310 (tree_ssa_loop_prefetch): Ditto.
3311 (tree_ssa_loop_ivopts): Ditto.
3312 (tree_ssa_loop_done): Ditto.
3313 * gcc/predict.c (tree_estimate_probability): Ditto.
3314 * gcc/recog.c (split_all_insns_noflow): Ditto.
3315 (rest_of_handle_peephole2): Ditto.
3316 (rest_of_handle_split_all_insns): Ditto.
3317 * gcc/tree-eh.c (lower_eh_constructs): Ditto.
3318 * gcc/regmove.c (rest_of_handle_regmove): Ditto.
3319 (rest_of_handle_stack_adjustments): Ditto.
3320 * gcc/local-alloc.c (rest_of_handle_local_alloc): Ditto.
3321 * gcc/function.c (instantiate_virtual_regs): Ditto.
3322 (init_function_for_compilation): Ditto.
3323 (rest_of_handle_check_leaf_regs): Ditto.
3324 * gcc/gcse.c (rest_of_handle_jump_bypass): Ditto.
3325 (rest_of_handle_gcse): Ditto.
3326 * gcc/ipa-type-escape.c (type_escape_execute): Ditto.
3327 * gcc/alias.c (rest_of_handle_cfg): Ditto.
3328 * gcc/tree-if-conv.c (main_tree_if_conversion): Ditto.
3329 * gcc/profile.c (rest_of_handle_branch_prob): Ditto.
3330 * gcc/tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
3331 * gcc/rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
3332 * gcc/bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
3333 * gcc/tree-dfa.c (find_referenced_vars): Ditto.
3334 * gcc/except.c (set_nothrow_function_flags): Ditto.
3335 (convert_to_eh_region_ranges): Ditto.
3336 (rest_of_handle_eh): Ditto.
3337 * gcc/emit-rtl.c (unshare_all_rtl): Ditto.
3338 (remove_unnecessary_notes): Ditto.
3339 * gcc/except.h (set_nothrow_function_flags): Ditto.
3340 (convert_to_eh_region_ranges): Ditto.
3341 * gcc/cfgexpand.c (tree_expand_cfg): Ditto.
3342 * gcc/tree-cfgcleanup.c (merge_phi_nodes): Ditto.
3343 * gcc/tree-ssa-pre.c (do_pre): Ditto.
3344 (execute_fre): Ditto.
3345 * gcc/cfgcleanup.c (rest_of_handle_jump): Ditto.
3346 (rest_of_handle_jump2): Ditto.
3347 * gcc/tree-sra.c (tree_sra): Ditto.
3348 * gcc/tree-mudflap.c (execute_mudflap_function_ops): Ditto.
3349 (execute_mudflap_function_decls): Ditto.
3350 * gcc/tree-ssa-copy.c (do_copy_prop): Ditto.
3351 (do_store_copy_prop): Ditto.
3352 * gcc/ipa-prop.h (ipcp_driver): Ditto.
3353 * gcc/cfglayout.c (insn_locators_initialize): Ditto.
3354 * gcc/tree-ssa-forwprop.c
3355 (tree_ssa_forward_propagate_single_use_vars): Ditto.
3356 * gcc/cfglayout.h (insn_locators_initialize): Ditto.
3357 * gcc/tree-ssa-dce.c (tree_ssa_dce): Ditto.
3358 * gcc/tree-ssa.c (execute_early_warn_uninitialized): Ditto.
3359 (execute_late_warn_uninitialized): Ditto.
3360 * gcc/rtl.h (cleanup_barriers): Ditto.
3361 (split_all_insns_noflow): Ditto.
3362 (purge_line_number_notes): Ditto.
3363 (unshare_all_rtl): Ditto.
3364 (remove_unnecessary_notes): Ditto.
3365 (recompute_reg_usage): Ditto.
3366 (variable_tracking_main): Ditto.
3367 * gcc/integrate.c (emit_initial_value_sets): Ditto.
3368 * gcc/integrate.h (emit_initial_value_sets): Ditto.
3369 * gcc/tree-optimize.c (execute_free_datastructures): Ditto
3370 (execute_free_cfg_annotations): Ditto.
3371 (execute_fixup_cfg): Ditto.
3372 (execute_cleanup_cfg_pre_ipa): Ditto.
3373 (execute_cleanup_cfg_post_optimizing): Ditto.
3374 (execute_init_datastructures): Ditto.
3375 * gcc/tree-object-size.c (compute_object_sizes): Ditto.
3376 * gcc/combine.c (rest_of_handle_combine): Ditto.
3377 * gcc/tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
3378 * gcc/bb-reorder.c (duplicate_computed_gotos): Ditto.
3379 (rest_of_handle_reorder_blocks): Ditto.
3380 (rest_of_handle_partition_blocks): Ditto.
3381 * gcc/var-tracking.c (variable_tracking_main): Ditto.
3382 * gcc/tree-profile.c (tree_profiling): Ditto.
3383 * gcc/tree-vect-generic.c (expand_vector_operations): Ditto.
3384 * gcc/reg-stack.c (rest_of_handle_stack_regs): Ditto.
3385 * gcc/sched-rgn.c (rest_of_handle_sched): Ditto.
3386 (rest_of_handle_sched2): Ditto.
3387 * gcc/basic-block.h (free_bb_insn): Ditto.
3388 * gcc/tree-ssa-structalias.c (ipa_pta_execute): Ditto.
3389 * gcc/tree-cfg.c (execute_build_cfg): Ditto.
3390 (remove_useless_stmts): Ditto.
3391 (split_critical_edges): Ditto.
3392 (execute_warn_function_return): Ditto.
3393 (execute_warn_function_noreturn): Ditto.
3394 * gcc/tree-ssa-reassoc.c (execute_reassoc): Ditto.
3395 * gcc/cfgrtl.c (free_bb_for_insn): Ditto.
3396 * gcc/passes.c (execute_one_pass): Run additional
3397 todos returned by execute function.
3398 * gcc/tree-pass.h (struct tree_opt_pass): Make execute
3401 2006-03-02 Richard Guenther <rguenther@suse.de>
3403 * tree-ssa-alias.c (find_used_portions): Consider taking
3404 the address as making the variable not write-only.
3406 2006-03-02 Nick Clifton <nickc@redhat.com>
3408 * config.gcc (default_use_cxa_atexit): Extend the description of
3409 this configure variable. Set its default value to "yes" for
3410 Linux, NetBSD and ELF targets on the assumption that they will
3411 use C libraries with the __cxa_atexit function.
3413 2006-03-02 Ben Elliston <bje@au.ibm.com>
3415 * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
3416 parameter as unused to suppress a build warning.
3418 2006-03-02 Ben Elliston <bje@au.ibm.com>
3420 * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
3423 2006-03-01 Roger Sayle <roger@eyesopen.com>
3426 * gthr-posix.h (__gthrw2): Define to take three parameters, the
3427 declared name, the weak reference name, and the typeof name.
3428 (__gthrw): Avoid expanding the declared name suffix.
3429 (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
3431 2006-03-01 Jakub Jelinek <jakub@redhat.com>
3433 * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
3435 (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
3436 DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
3437 DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
3438 DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
3439 DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
3440 (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
3441 (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
3442 DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
3443 (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
3444 DW_DS_leading_separate, DW_DS_trailing_separate): New.
3445 (DW_END_default, DW_END_big, DW_END_little): New.
3446 (DW_END_lo_user, DW_END_hi_user): Define.
3447 (DW_LNE_lo_user, DW_LNE_hi_user): Define.
3448 (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
3449 (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
3452 2006-03-01 Diego Novillo <dnovillo@redhat.com>
3454 * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
3456 * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
3458 (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
3460 * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
3462 * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
3463 to 'symbol_mem_tag'.
3465 * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
3468 2006-03-01 Roger Sayle <roger@eyesopen.com>
3470 * builtins.c (fold_builtin_copysign): Delete unreachable code.
3472 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
3475 * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
3476 MACHO_DYNAMIC_NO_PIC_P.
3477 (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
3479 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
3482 * config/darwin-protos.h (darwin_asm_output_anchor):
3484 * config/darwin-sections.def (cstring_section):
3485 Add SECTION_MERGE to the flags.
3486 (literal4_section): Likewise.
3487 (literal8_section): Likewise.
3488 (objc_selector_refs_section): Likewise.
3489 (objc_cls_refs_section): Likewise.
3490 * config/darwin.c (darwin_asm_output_anchor): New
3492 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
3494 2006-03-01 Daniel Berlin <dberlin@dberlin.org>
3496 Fix PR tree-optimization/26443
3497 * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
3498 to todo and PROP_tmt_usage to properties_destroyed.
3499 * tree-ssa-ccp.c (pass_ccp): Ditto.
3500 (pass_store_ccp): Ditto.
3501 * tree-ssa-dom.c (pass_dominator): Ditto.
3503 2006-03-01 Diego Novillo <dnovillo@redhat.com>
3505 * tree-ssa-operands.c: Cleanup whitespace.
3506 (get_asm_expr_operands): Move before first invocation.
3507 (get_indirect_ref_operands): Likewise.
3508 (get_tmr_operands): Likewise.
3509 (get_call_expr_operands): Likewise.
3510 (append_def): Likewise.
3511 (append_use): Likewise.
3512 (append_v_may_def): Likewise.
3513 (append_v_must_def): Likewise.
3514 (add_call_clobber_ops): Likewise.
3515 (add_call_read_ops): Likewise.
3516 (add_stmt_operand): Likewise.
3517 (add_virtual_operand): Likewise.
3518 (build_ssa_operands): Likewise.
3520 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
3525 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
3526 with a call expr to ...
3527 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
3529 2006-03-01 Diego Novillo <dnovillo@redhat.com>
3531 * tree-vrp.c (extract_range_from_assert): Remove special
3532 handling for types with super-types.
3534 2006-03-01 Ben Elliston <bje@au.ibm.com>
3536 * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
3537 and powerpc64-*-linux* configurations.
3538 * config/t-dfprules: New file.
3540 * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
3541 Compile dfp-bit.c from the source directory using -DWIDTH and
3542 $DFP_CFLAGS to control the compilation of that file, rather than
3543 generating width-specific versions in the build directory.
3544 * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
3545 (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
3547 2006-02-28 Zack Weinberg <zackw@panix.com>
3549 * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
3552 2006-02-28 Eric Christopher <echristo@apple.com>
3554 * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
3555 Set up IN_LIBGCC definition of TARGET_64BIT.
3556 * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
3558 2006-02-28 Roger Sayle <roger@eyesopen.com>
3561 * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
3562 BIT_XOR_EXPR, BIT_AND_EXPR>: Delete. Let fold optimize these
3563 cases via the construction of "expr != 0".
3565 2006-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
3567 * alias.c (alias_invariant, alias_invariant_size): Remove.
3568 (record_base_value): Remove.
3569 (memrefs_conflict_p): Don't look at alias_invariant.
3570 (end_alias_analysis): Don't free it.
3571 * alias.h (record_base_value): Remove prototype.
3573 2006-02-28 Paolo Bonzini <bonzini@gnu.org>
3574 Adam Nemet <anemet@caviumnetworks.com>
3576 * rtl.h (truncated_to_mode): Declare it.
3577 (struct rtl_hooks): Add reg_truncated_to_mode hook.
3578 * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
3579 (RTL_HOOKS_INITIALIZER): Include it.
3580 * rtlhooks.c (reg_truncated_to_mode_general): New function.
3581 * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
3582 reg_truncated_to_mode.
3583 * rtlanal.c (truncated_to_mode): Define it.
3584 * simplify-rtx.c (simplify_unary_operation_1): Use it.
3586 2006-02-28 Jeff Law <law@redhat.com>
3588 * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
3589 conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
3590 the range allowed by TYPE_PRECISION.
3592 * tree.h (strct phi_arg_d): Remove unused NONZERO field.
3594 2006-02-28 Dorit Nuzman <dorit@il.ibm.com>
3596 PR tree-optimization/26419
3597 * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
3600 2006-02-27 Zack Weinberg <zackw@panix.com>
3602 * doc/md.texi: Fix typo in previous change.
3604 2006-02-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3608 2006-02-27 Zack Weinberg <zackw@panix.com>
3610 * rtl.def (define_constraint, define_register_constraint)
3611 (define_memory_constraint, define_address_constraint): New MD forms.
3612 * gensupport.c (process_rtx): Put define_constraint etc on the
3614 * genpreds.c (process_define_predicate): Adjust comment. Validate
3615 the name, and call validate_exp to validate the expression.
3616 (mark_mode_tests, write_extract_subexp): Can assume correct input.
3617 (write_predicate_expr): Likewise. NAME argument no longer necessary;
3618 all callers changed.
3619 (validate_exp, needs_variable, struct constraint_data)
3620 (constraints_by_letter_table, first_constraint, last_constraint_ptr)
3621 (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
3622 (const_dbl_constraints, constraint_max_namelen)
3623 (have_register_constraints, have_memory_constraints)
3624 (have_address_constraints, have_address_constraints)
3625 (have_extra_constraints, have_const_int_constraints)
3626 (have_const_dbl_constraints, mangle, add_constraint)
3627 (process_define_constraint, process_define_register_constraint)
3628 (write_enum_constraint_num, write_lookup_constraint)
3629 (write_insn_constraint_len, write_regclass_for_constraint)
3630 (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
3631 (write_insn_extra_memory_constraint)
3632 (write_insn_extra_address_constraint)
3633 (write_satisfies_constraint_fns): New.
3634 (write_tm_preds_h): If we have new-style constraint definitions,
3635 prototype the functions generated from them, and define the
3636 old constraint interface (still used by generic code) in terms of
3638 (write_insn_preds_c): If we have new-style constraint definitions,
3639 generate all relevant functions from those definitions.
3640 (main): Handle define_constraint etc.
3641 * genoutput.c (struct constraint_data, indep_constraints)
3642 (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
3643 (mdep_constraint_len): New data structures and functions, defined
3644 #ifdef USE_MD_CONSTRAINTS.
3645 (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
3646 (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
3647 use new logic to validate operand constraints against constraint
3649 (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
3651 * defaults.h: If none of the old-style constraint macros are
3652 defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
3653 old-style macros; and poison REG_CLASS_FROM_LETTER,
3654 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
3656 * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
3657 * doc/md.texi: Document new constraint-definition mechanism and the
3658 C interface it provides. Remove references to old mechanism
3659 elsewhere in the document.
3660 (Machine Constraints): Use pathnames relative to gcc directory,
3661 i.e. config/ARCH/FILE. Change i386 section to refer to
3662 config/i386/predicates.md; update that section to match docstrings.
3663 * doc/tm.texi: Move all documentation of the old constraint-
3664 definition macros to their own section, clearly mark as obsolete.
3666 * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
3667 (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
3669 * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
3670 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3671 * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
3673 (splits and peepholes): Use satisfies_constraint_*.
3674 * config/i386/i386.c (memory_address_length)
3675 (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
3677 2006-02-27 Daniel Berlin <dberlin@dberlin.org>
3679 * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
3680 scalar operation to be put back into the loop.
3682 2006-02-27 Jakub Jelinek <jakub@redhat.com>
3685 * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
3686 (extract_cie_info): Handle S flag in augmentation string.
3687 (execute_cfa_program): If context->signal_frame, execute also
3688 fs->pc == context->ra instructions.
3689 (uw_frame_state_for): If context->signal_frame, don't subtract one
3690 from context->ra to find FDE.
3691 (uw_update_context_1): Set context->signal_frame to
3693 (_Unwind_GetIPInfo): New function.
3694 * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
3695 * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
3697 * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
3698 * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
3699 * unwind-compat.c (_Unwind_GetIPInfo): New function.
3700 * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
3701 * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
3702 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
3703 * config/i386/linux-unwind.h (x86_fallback_frame_state,
3704 x86_64_fallback_frame_state): Set fs->signal_frame.
3705 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
3706 (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
3707 (frob_update_context): Likewise. Workaround missing S flag in
3708 Linux 2.6.12 - 2.6.16 kernel vDSOs.
3709 * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
3710 Remove the psw_addr + 1 hack.
3712 2006-02-27 Daniel Berlin <dberlin@dberlin.org>
3714 * tree-ssa-structalias.c (get_constraint_for): Move code to deal
3715 with aggregates here.
3716 (find_func_aliases): Remove code for &<aggregate> from here.
3718 2006-02-26 Roger Sayle <roger@eyesopen.com>
3720 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
3721 (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
3722 Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
3725 2006-02-26 Roger Sayle <roger@eyesopen.com>
3728 * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
3730 2006-02-26 Zdenek Dvorak <dvorakz@suse.cz>
3732 * opts.c (decode_options): Do not handle flag_strength_reduce.
3733 (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
3734 and OPT_fstrength_reduce.
3735 * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
3736 flag_prefetch_loop_arrays for being nonzero.
3737 * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
3739 (fprefetch-loop-arrays-rtl): Removed.
3740 (flag_prefetch_loop_arrays): Do not specify the value.
3742 * doc/passes.texi: Update documentation of loop optimizer
3744 * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
3745 -frerun-loop-opt): Remove.
3747 2006-02-26 Richard Guenther <rguenther@suse.de>
3749 PR tree-optimization/26421
3750 * tree-ssa-alias.c (find_used_portions): Don't treat parameters
3751 in function calls that are ADDR_EXPRs as using the whole structure.
3753 2006-02-26 Steven Bosscher <stevenb.gcc@gmail.com>
3755 * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
3756 * tree-pass.h (pass_loop_optimize): Remove.
3757 * passes.c (pass_loop_optimize): Never run it.
3758 * toplev.c (backend_init): Don't call init_loop.
3759 * opts.c (flag_loop_optimize_set): Remove.
3760 (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
3761 (common_handle_option) <OPT_floop_optimize>: Remove. Don't disable
3762 the old RTL loop optimizer when profiling enabled.
3763 * predict.c (tree_estimate_probability): Always strip builtin_expect.
3764 * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
3765 pre-headers for the sake of the old RTL loop optimizer.
3766 * Makefile.in: Remove all references to loop.o.
3768 * doc/invoke.texi: Remove all references to -floop-optimize
3769 and -frerun-loop-opt.
3771 2006-02-26 Zack Weinberg <zackw@panix.com>
3773 * doc/md.texi (Machine Constraints): Refer to all files with paths
3774 relative to gcc directory (i.e. config/CPU/file). Add missing
3775 @table @code ... @end table to M32C subsection.
3777 2006-02-26 Roger Sayle <roger@eyesopen.com>
3779 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
3781 <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
3783 2006-02-26 Roger Sayle <roger@eyesopen.com>
3784 James A. Morrison <phython@gcc.gnu.org>
3787 * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
3788 when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
3789 new constant C2<<C1, or as (X<0) or (X,false) depending upon the
3790 signedness of the shift operation.
3792 2006-02-26 Dorit Nuzman <dorit@il.ibm.com>
3794 PR tree-optimization/26359
3795 * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
3797 2006-02-25 Roger Sayle <roger@eyesopen.com>
3799 * simplify-rtx.c (simplify_relational_operation_1): Simplify
3800 (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y. Simplify (X^Y) == Y
3801 as X == 0, and some symmetry related transformations.
3802 Simplify (X^C1) == C2 as X == (C1^C2). Split long comment line.
3804 2006-02-25 Roger Sayle <roger@eyesopen.com>
3807 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
3808 and (X^Y) != 0 as X != Y. Fold (X^Y) == Y as X == 0, and some
3809 symmetry related transformations. Fold (X^C1) == C2 as
3812 2006-02-25 Juergen Weigert <jw@suse.de>
3813 Richard Guenther <rguenther@suse.de>
3815 * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
3817 2006-02-24 Adam Nemet <anemet@caviumnetworks.com>
3819 * combine.c (gen_lowpart_or_truncate): Call
3820 simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
3822 2006-02-24 Diego Novillo <dnovillo@redhat.com>
3824 * doc/invoke.texi: Move -fopenmp description to "Options for
3826 Remove reference to -lgomp.
3828 2006-02-24 David Edelsohn <edelsohn@gnu.org>
3830 * doc/install.texi: Require GNU tar version 1.14.
3832 2006-02-24 Geoffrey Keating <geoffk@apple.com>
3834 * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
3835 * doc/invoke.texi (C++ Dialect Options): Document
3836 -fno-use-cxa-get-exception-ptr.
3837 * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
3838 * configure: Regenerate.
3839 * c.opt (fuse-cxa-get-exception-ptr): New.
3840 * c-opts.c (c_common_handle_option): Handle
3841 OPT_fuse_cxa_get_exception_ptr.
3842 * c-common.c (flag_use_cxa_atexit): Update documentation.
3843 (flag_use_cxa_get_exception_ptr): New.
3844 * c-common.h (flag_use_cxa_get_exception_ptr): New.
3845 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
3847 (C_COMMON_OVERRIDE_OPTIONS): New.
3849 2006-02-24 Roger Sayle <roger@eyesopen.com>
3852 * combine.c (try_combine): Explicitly check whether GET_CODE is
3853 a SET or a CLOBBER, instead on checking that it isn't a USE.
3855 2006-02-24 Roger Sayle <roger@eyesopen.com>
3857 * fold-const.c (fold_comparison): New subroutine of fold_binary
3858 containing transformations common to both the equality and
3859 ordering relational operators, factored out of fold_binary.
3860 (fold_binary): Separate out the equality operators (EQ_EXPR
3861 and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
3862 LE_EXPR and GE_EXPR), calling fold_comparison to perform the
3863 transformations common to both.
3864 (fold_div_compare): Fix latent bugs in the previously unreachable
3865 LT_EXPR and GE_EXPR cases.
3867 2006-02-24 David Edelsohn <edelsohn@gnu.org>
3869 * config/rs6000/rs6000.c (rs6000_init_builtins): Change
3870 decl libname for clog to __clog on AIX.
3872 * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
3874 2006-02-24 Alan Modra <amodra@bigpond.net.au>
3877 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3878 output traceback table for thunks. Localise rs6000_stack_info call.
3880 2006-02-23 Roger Sayle <roger@eyesopen.com>
3881 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3883 * gthr-posix.h (__gthrw): Fix typo in comment.
3885 2006-02-23 Geoffrey Keating <geoffk@apple.com>
3887 * doc/cpp.texi (Character sets): Document that we do support
3888 input files to be in any character set.
3890 2006-02-23 Jeff Law <law@redhat.com>
3892 * tree.h (PHI_ARG_NONZERO): Remove.
3893 * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
3894 (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
3895 node to the new node.
3897 PR tree-optimization/26425
3898 * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
3899 min/max, then assume its varying.
3901 2006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
3903 PR rtl-optimization/26316
3904 * rtlanal.c (enum may_trap_p_flags): New.
3905 (may_trap_p_1): Take flags instead of unaligned_mems argument. Ignore
3906 MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
3907 (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
3908 (may_trap_after_code_motion_p): New function.
3909 * loop-invariant.c (find_identical_invariants): Fix dump formating.
3910 (find_invariant_insn): Use may_trap_after_code_motion_p.
3911 * rtl.h (may_trap_after_code_motion_p): Declare.
3913 2006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
3915 * emit-rtl.c (immed_double_const): Cleanup.
3917 2006-02-23 Daniel Berlin <dberlin@dberlin.org>
3919 Fix PR tree-optimization/26376
3920 * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
3923 2006-02-23 Jakub Jelinek <jakub@redhat.com>
3926 * gimplify.c (omp_add_variable): Guard variable size decl test with
3927 DECL_SIZE (decl) check.
3929 2006-02-23 Richard Guenther <rguenther@suse.de>
3932 * tree-ssa-structalias.c (find_func_aliases): Handle complex types
3933 like aggregate types.
3935 2006-02-23 Jakub Jelinek <jakub@redhat.com>
3937 * configure.ac: Add --with{,out}-long-double-128 configure option.
3938 (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
3939 * configure: Rebuilt.
3940 * config.in: Rebuilt.
3941 * doc/install.texi (Options specification): Document
3942 --with-long-double-128.
3944 * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
3945 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
3946 * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
3947 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
3949 2006-02-23 Aldy Hernandez <aldyh@redhat.com>
3951 * config/s390/s390.c (override_options): Handle
3952 TARGET_DEFAULT_LONG_DOUBLE_128.
3954 * config/alpha/alpha.c (override_options): Handle
3955 TARGET_DEFAULT_LONG_DOUBLE_128.
3957 * config/sparc/sparc.c (sparc_override_options): Handle
3958 TARGET_DEFAULT_LONG_DOUBLE_128.
3960 2006-02-22 Daniel Jacobowitz <dan@codesourcery.com>
3962 * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
3963 (real-install-headers-tar, real-install-headers-cpio)
3964 (real-install-headers-cp): New targets.
3966 2006-02-22 Richard Sandiford <richard@codesourcery.com>
3968 * tree.h (variable_section): Delete.
3969 * varasm.c (variable_section): Delete.
3971 2006-02-22 Paolo Bonzini <bonzini@gnu.org>
3973 * install.texi: Add notes on install.texi2html.
3974 (Building in parallel): Do not use footnotes.
3976 2006-02-21 Aldy Hernandez <aldyh@redhat.com>
3979 * doc/install.texi (Configuration): Document --disable-libgomp.
3981 2006-02-21 Geoffrey Keating <geoffk@apple.com>
3983 * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
3985 2006-02-21 Alexandre Oliva <aoliva@redhat.com>
3987 * config/i386/sse.md (vec_extractv2df_1_sse): New.
3988 (vec_extractv2df_0_sse): New.
3990 2006-02-21 Alexandre Oliva <aoliva@redhat.com>
3992 * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
3993 * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
3994 * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
3995 * dwarf2out.c (build_cfa_loc): New offset parameter. Add it
3996 to the result of the expression.
3997 (def_cfa_1): Adjust.
3998 (frame_pointer_cfa_offset): Rename to...
3999 (frame_pointer_fb_offset): ... this. Adjust all uses.
4000 (convert_cfa_to_loc_list): Rename to...
4001 (convert_cfa_to_fb_loc_list): ... this. New offset parameter.
4002 Pass it on to build_cfa_loc.
4003 (compute_frame_pointer_to_cfa_displacement): Rename to...
4004 (compute_frame_pointer_to_fb_displacement): ... this. New
4005 offset parameter. Use it in computation.
4006 (gen_subprogram_die): Compute cfa_fb_offset with the new
4007 macro, and use it to compute the fb loc list and the
4010 2006-02-21 Bernd Schmidt <bernd.schmidt@analog.com>
4012 * config/bfin/predicates.md (cc_operand): Delete predicate. All uses
4013 replaced with register_operand.
4014 * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
4015 non-DREG is expensive.
4016 * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
4017 * config/bfin/bfin.md (movbi): Fix constraints and template for moves
4020 2006-02-21 Joseph S. Myers <joseph@codesourcery.com>
4022 * doc/install.texi2html: Use set -e.
4024 2006-02-21 Richard Sandiford <richard@codesourcery.com>
4026 * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
4027 (ASM_OUTPUT_SHARED_LOCAL): Delete.
4028 * doc/invoke.texi (-fshared-data): Delete.
4029 * common.opt (fshared-data): Delete.
4030 * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
4031 (assemble_static_space): Remove #if 0 code.
4032 * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
4033 (ASM_OUTPUT_SHARED_LOCAL): Poison.
4034 * config/cris/cris.h: Remove FIXME.
4036 2006-02-21 Paolo Bonzini <bonzini@gnu.org>
4038 * doc/sourcebuild.texi (Front End Directory): No more double-colon
4041 2006-02-21 Jakub Jelinek <jakub@redhat.com>
4044 * combine.c (simplify_shift_const_1): Disable nested shifts
4045 optimization for vector shifts.
4047 2006-02-20 Roger Sayle <roger@eyesopen.com>
4049 PR tree-optimization/26361
4050 * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
4051 of unsigned integer types.
4053 2006-02-20 Sebastian Pop <pop@cri.ensmp.fr>
4055 * tree-chrec.c (eq_evolutions_p): New.
4056 * tree-chrec.h (eq_evolutions_p): Declared.
4057 * tree-data-ref.c: Fix formatting.
4058 (datadep_stats, dependence_stats): New.
4060 (print_direction_vector): New.
4061 (dump_data_dependence_relation): Use print_direction_vector.
4062 (object_analysis, create_data_ref): Handle COMPONENT_REF.
4063 (compute_subscript_distance): Static.
4064 (initialize_data_dependence_relation): Static. Get the number
4065 of loops surrounding the references from the callers, and initialize
4066 DDR_SIZE_VECT to nb_loops. Use both base_addr_differ_p and
4067 base_object_differ_p analyzers.
4068 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
4069 compute_overlap_steps_for_affine_1_2,
4070 analyze_subscript_affine_affine): Count the classified dependences.
4071 Print a message when a test failed.
4072 (can_use_analyze_subscript_affine_affine): New.
4073 (analyze_siv_subscript): Compute the data dependences on symbolic
4074 scevs that verify can_use_analyze_subscript_affine_affine.
4075 (chrec_steps_divide_constant_p): Returns true, false, or unknown.
4076 (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
4077 Handle symbolic scevs.
4078 (analyze_overlapping_iterations): Let symbolic affine scevs to be
4080 (subscript_dependence_tester): Moved...
4081 (build_classic_dist_vector, build_classic_dir_vector): Don't use
4082 lambda_vector_clear on newly allocated vectors. Get nb_loops from
4083 DDR_SIZE_VECT instead of getting it in parameter.
4084 (subscript_dependence_tester): ... here. Take as a parameter
4085 loop_nest_depth. Call build_classic_dist_vector and
4086 build_classic_dir_vector.
4087 (compute_affine_dependence): Update subscript_dependence_tester
4088 parameters. Update datadep_stats counters. Call
4089 compute_subscript_distance.
4090 (compute_self_dependence): Save the dist and dir vectors. Call
4091 compute_subscript_distance.
4092 (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
4093 (compute_all_dependences): Reorder parameters as they were before
4094 conversion to VEC. Pass nb_loops and loop_nest_depth. Don't call
4095 compute_subscript_distance. Update the use of
4096 compute_affine_dependence and initialize_data_dependence_relation.
4097 (find_data_references_in_loop): Handle COMPONENT_REF.
4098 (compute_data_dependences_for_loop): Initialize dependence_stats.
4099 Don't call build_classic_dist_vector and build_classic_dir_vector.
4100 Update the parameters of initialize_data_dependence_relation and
4101 compute_all_dependences. Print the statistics from datadep_stats.
4102 (analyze_all_data_dependences): Static. Not used until the pass for
4103 checking the data dependences is contributed.
4104 * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
4105 DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
4106 (initialize_data_dependence_relation, compute_affine_dependence,
4107 analyze_all_data_dependences, compute_subscript_distance): Removed.
4108 (print_direction_vector): New.
4109 * lambda.h (gcd): ... here.
4110 (lambda_vector_gcd): Moved here from gcd_vector.
4111 * lambda-code.c (gcd, gcd_vector): Removed.
4112 (lambda_compute_target_space): Use lambda_vector_gcd. Fix formatting.
4113 * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
4115 2006-02-20 Diego Novillo <dnovillo@redhat.com>
4117 * ipa-type-escape.c: Tidy some comments and white space.
4118 * tree-ssa-operands.c: Likewise.
4120 2006-02-20 Andrew Pinski <pinskia@physics.uc.edu>
4123 * tree-pretty-print.c (debug_tree_chain): Walk the chains.
4124 (dump_decl_name): Do not walk the decl tree chains.
4125 * tree-pass.h (TDF_CHAIN): Remove.
4127 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
4129 * Makefile.in (C): Remove
4131 (.PHONY): Remove C and PROTO
4133 2006-02-20 Roger Sayle <roger@eyesopen.com>
4136 * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
4137 deprecated CHAR_TYPE tree code.
4139 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
4141 * configure.ac (target_list): Add install-info, dvi, html.
4142 * configure: Regenerate.
4144 * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
4145 java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
4146 treelang/Make-lang.in: Do not use double-colon rules.
4148 2006-02-20 Daniel Berlin <dberlin@dberlin.org>
4150 * tree.h (struct tree_memory_tag): Add is_used_alone member.
4151 (TMT_USED_ALONE): New macro.
4152 * tree-pass.h (PROP_tmt_usage): New property.
4153 (TODO_update_tmt_usage): New todo.
4154 * tree-ssa-alias.c (updating_used_alone): New variable.
4155 (recalculate_used_alone): New function.
4156 (compute_may_aliases): Set updating_used_alone, call
4157 recalculate_used_alone.
4158 * tree-sra.c (pass_sra): Note that this pass destroys
4159 PROP_tmt_usage, and add TODO_update_tmt_usage.
4160 * tree-ssa-forwprop.c (pass_forwprop): Ditto.
4161 * tree-flow.h (updating_used_alone): Prototype.
4162 (recalculate_used_alone): Ditto.
4163 * passes.c (execute_todo): Add code to set updating_used_alone,
4164 and call recalculate.
4165 * tree-ssa-operands.c (add_virtual_operand): Only append bare def
4166 for clobber if used alone, and add assert to verify used_alone
4169 2006-02-20 Angel Nunez Mencias <anunez@de.ibm.com>
4171 * config/s390/s390.c (legitimize_pic_address): Assertions checking
4172 for non tls symbols added.
4173 (legitimize_address): Do nothing for PLUS expressions if one of the
4174 addends is a tls symbol reference.
4176 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
4180 * Makefile.in (LDFLAGS): Define from autoconf substitution.
4182 * Makefile.in (BOOTSTRAPPING): New.
4183 (quickstrap): New definition if BOOTSTRAPPING=yes.
4185 * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
4186 * configure.ac: Substitute all_selected_languages with the languages
4187 that were configured. For all the other variables except
4188 lang_specs_files, include all the languages in the tree.
4189 * configure: Regenerate.
4191 * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
4192 if there is one. Run the commands to run fixincludes in the same
4195 * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
4196 * doc/install.texi: Document exact conventions for searching target tools.
4197 Document --with-build-time-tools. Document toplevel bootstrap. Document
4198 something more about building an Ada cross-compiler. Don't list GNU Make
4199 requirements which affect all platforms.
4201 2006-02-19 Roger Sayle <roger@eyesopen.com>
4204 * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
4205 only equivalent if the have both the same mode and precision.
4207 2006-02-20 Ben Elliston <bje@au.ibm.com>
4209 * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
4211 2006-02-19 Roger Sayle <roger@eyesopen.com>
4212 Steven Bosscher <stevenb.gcc@gmail.com>
4214 * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
4215 constant pool references to identify stack mode constants.
4216 * rtlanal.c (constant_pool_constant_p): New predicate to check
4217 whether operand is a floating point constant in the pool.
4218 * rtl.h (constant_pool_constant_p): Prototype here.
4219 * loop.c (scan_loop): Avoid hoisting constants from the constant
4220 pool on STACK_REGS targets.
4221 (load_mems): Likewise.
4222 * loop-invariant.c (get_inv_cost): Make hoisting constant pool
4223 loads into x87 registers expensive in terms of register pressure.
4225 2006-02-19 Roger Sayle <roger@eyesopen.com>
4227 * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
4228 __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
4230 2006-02-19 David Edelsohn <edelsohn@gnu.org>
4232 * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
4233 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
4235 2006-02-19 Daniel Berlin <dberlin@dberlin.org>
4237 * doc/invoke.texi: Document -fipa-pta.
4238 * common.opt: Add ipa-pta option.
4239 * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
4240 (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
4241 (do_ds_constraint): Ditto.
4242 (get_constraint_for): Only add to referenced_vars if
4243 referenced_vars exists.
4244 (insert_into_field_list): Rewrite to do this unsorted.
4245 (insert_into_field_list_sorted): Rename old insert_into_field_list
4247 (create_function_info_for): Use insert_into_field_list_sorted.
4248 (create_variable_info_for): Rewrite so it uses unsorted version,
4249 since the field list is sorted.
4250 (intra_create_variable_infos): Only add to referenced_vars if
4251 referenced_vars exists.
4252 (ipa_pta_execute): Init heapvars, and delete when done.
4253 * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
4255 2006-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4257 * doc/install.texi: Add missing `@samp'.
4259 2006-02-18 Andrew Pinski <pinskia@physics.uc.edu>
4261 * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
4264 2006-02-18 Mark Wielaard <mark@klomp.org>
4266 * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
4267 who added new 4.1 features, bug fixes and integration support.
4269 2006-02-18 David Edelsohn <edelsohn@gnu.org>
4272 * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
4275 2006-02-18 Richard Sandiford <richard@codesourcery.com>
4277 * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
4278 * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
4279 (copy_insn_1): Likewise. Don't copy each field individually.
4281 * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
4283 * reload1.c (eliminate_regs): Use shallow_copy_rtx.
4284 * rtl.c (rtx_size): Rename variable to...
4285 (rtx_code_size): ...this.
4286 (rtx_size): New function.
4287 (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
4288 (copy_rtx): Use shallow_copy_rtx. Don't copy each field individually.
4290 (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
4291 * rtl.h (rtx_code_size): New variable.
4292 (rtx_size): Change from a variable to a function.
4293 (RTX_SIZE): Rename to...
4294 (RTX_CODE_SIZE): ...this.
4297 PR tree-optimization/17106
4298 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
4299 (Anchored Addresses): New section.
4300 * doc/invoke.texi (-fsection-anchors): Document.
4301 * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
4302 (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
4303 (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
4304 * hooks.c (hook_bool_mode_rtx_false): New function.
4305 * hooks.h (hook_bool_mode_rtx_false): Declare.
4306 * gengtype.c (create_optional_field): New function.
4307 (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
4308 SYMBOL_REF_IN_BLOCK_P is true.
4309 * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
4310 (min_anchor_offset, max_anchor_offset): Likewise.
4311 (use_anchors_for_symbol_p): New hook.
4312 * toplev.c (compile_file): Call output_object_blocks.
4313 (target_supports_section_anchors_p): New function.
4314 (process_options): Check that -fsection-anchors is only used on
4315 targets that support it and when -funit-at-a-time is in effect.
4316 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
4317 if the decl doesn't have one.
4318 * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
4319 * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
4320 of force_const_mem through use_anchored_address.
4321 (expand_expr_constant): New function.
4322 (expand_expr_addr_expr_1): Call it. Use the same modifier when
4323 calling expand_expr for INDIRECT_REF.
4324 (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
4325 for all modifiers except EXPAND_INITIALIZER. Use expand_expr_constant.
4326 * expr.h (use_anchored_address): Declare.
4327 * loop-unroll.c: Don't declare rtx vectors here.
4328 * explow.c: Include output.h.
4329 (validize_mem): Call use_anchored_address.
4330 (use_anchored_address): New function.
4331 * common.opt (-fsection-anchors): New switch.
4332 * varasm.c (object_block_htab, anchor_labelno): New variables.
4333 (hash_section, object_block_entry_eq, object_block_entry_hash)
4334 (use_object_blocks_p, get_block_for_section, create_block_symbol)
4335 (use_blocks_for_decl_p, change_symbol_section): New functions.
4336 (get_variable_section): New function, split out from assemble_variable.
4337 (make_decl_rtl): Create a block symbol if use_object_blocks_p and
4338 use_blocks_for_decl_p say so. Use change_symbol_section if the
4339 symbol has already been created.
4340 (assemble_variable_contents): New function, split out from...
4341 (assemble_variable): ...here. Don't output any code for
4342 block symbols; just pass them to place_block_symbol.
4343 Use get_variable_section and assemble_variable_contents.
4344 (get_constant_alignment, get_constant_section, get_constant_size): New
4345 functions, split from output_constant_def_contents.
4346 (build_constant_desc): Create a block symbol if use_object_blocks_p
4347 says so. Or into SYMBOL_REF_FLAGS.
4348 (assemble_constant_contents): New function, split from...
4349 (output_constant_def_contents): ...here. Don't output any code
4350 for block symbols; just pass them to place_section_symbol.
4351 Use get_constant_section and get_constant_alignment.
4352 (force_const_mem): Create a block symbol if use_object_blocks_p and
4353 use_blocks_for_constant_p say so. Or into SYMBOL_REF_FLAGS.
4354 (output_constant_pool_1): Add an explicit alignment argument.
4355 Don't switch sections here.
4356 (output_constant_pool): Adjust call to output_constant_pool_1.
4357 Switch sections here instead. Don't output anything for block symbols;
4358 just pass them to place_block_symbol.
4359 (init_varasm_once): Initialize object_block_htab.
4360 (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
4361 (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
4362 (place_block_symbol, get_section_anchor, output_object_block)
4363 (output_object_block_htab, output_object_blocks): New functions.
4364 * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
4365 (TARGET_ASM_OUT): Include it.
4366 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
4367 (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
4368 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
4369 (TARGET_INITIALIZER): Include them.
4370 * rtl.c (rtl_check_failed_block_symbol): New function.
4371 * rtl.h: Include vec.h. Declare heap and gc rtx vectors.
4372 (block_symbol, object_block): New structures.
4373 (rtx_def): Add a block_symbol field to the union.
4374 (BLOCK_SYMBOL_CHECK): New macro.
4375 (rtl_check_failed_block_symbol): Declare.
4376 (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
4377 (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
4378 (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
4379 (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
4380 * output.h (output_section_symbols): Declare.
4381 (object_block): Name structure.
4382 (place_section_symbol, get_section_anchor, default_asm_output_anchor)
4383 (default_use_anchors_for_symbol_p): Declare.
4384 * Makefile.in (RTL_BASE_H): Add vec.h.
4385 (explow.o): Depend on output.h.
4386 * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
4387 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
4388 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
4389 (rs6000_use_blocks_for_constant_p): New function.
4391 2006-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4393 * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
4395 2006-02-18 Andrew Pinski <pinskia@physics.uc.edu>
4398 * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
4401 2006-02-18 Diego Novillo <dnovillo@redhat.com>
4403 * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
4407 2006-02-18 Jakub Jelinek <jakub@redhat.com>
4410 * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
4411 instead of DECL_REGISTER.
4413 2006-02-18 Olivier Hainque <hainque@adacore.com>
4416 * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
4418 2006-02-18 Joseph S. Myers <joseph@codesourcery.com>
4421 * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
4422 * opth-gen.awk: Handle Var and InverseMask together.
4423 * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
4424 * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
4425 (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
4426 (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
4428 (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
4429 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
4430 * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
4431 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4432 LINUX_DYNAMIC_LINKER): Define.
4433 (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
4434 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
4436 * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4437 (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
4438 * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4439 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4440 (TARGET_C99_FUNCTIONS): Don't define.
4441 * config/i386/linux.h (DYNAMIC_LINKER): Rename to
4442 GLIBC_DYNAMIC_LINKER.
4443 (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
4444 * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
4445 GLIBC_DYNAMIC_LINKER64): Define.
4446 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
4447 LINUX_DYNAMIC_LINKER64.
4448 * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4449 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4450 * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
4451 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4452 * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4453 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4454 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
4455 GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
4456 UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
4457 (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
4458 and LINUX_DYNAMIC_LINKER32.
4459 * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4460 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4461 * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
4462 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4463 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
4465 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
4466 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
4467 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
4468 CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4469 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
4470 (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
4471 (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
4472 * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
4473 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4474 LINUX_DYNAMIC_LINKER): Define.
4475 (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
4476 * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
4477 GLIBC_DYNAMIC_LINKER64): Define.
4478 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
4479 LINUX_DYNAMIC_LINKER64.
4480 * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4481 (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4482 * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
4483 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4484 LINUX_DYNAMIC_LINKER): Define.
4485 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4486 (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
4487 * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
4488 GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
4489 UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
4490 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
4491 (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
4492 (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
4493 (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
4494 * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4495 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4496 * doc/invoke.texi (-muclibc): Remove caveat about supported
4499 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
4501 * doc/cpp.texi (__TIMESTAMP__): Document.
4503 2006-02-17 Roger Sayle <roger@eyesopen.com>
4506 * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
4507 C is one less than the width of X (and related transformations).
4508 * simplify-rtx.c (simplify_unary_operation_1): Transform
4509 (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
4510 depending on STORE_FLAG_VALUE, were C is one less then the
4513 2006-02-17 Daniel Berlin <dberlin@dberlin.org>
4515 Fix PR tree-optimization/26341
4516 * tree-ssa-operands.c (add_virtual_operand): Remove assert
4517 about NAME_MEMORY_TAG's.
4519 2006-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4522 * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
4523 with hardware float support, and software float support. Add fcpy
4524 alternative to hardware patterns. Add alternatives to copy between
4525 general and floating-point registers to the 32-bit pattern.
4526 * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
4527 secondary reload to load a QI or HI mode constant into a floating
4529 * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
4530 * pa64-regs.h (VALID_FP_MODE_P): Likewise.
4532 2006-02-17 Andrew Pinski <pinskia@physics.uc.edu>
4535 * config/rs6000/darwin.md (load_macho_picbase_si): Add
4537 (load_macho_picbase_di): Likewise.
4539 2006-02-16 Jeff Law <law@redhat.com>
4541 * tree-vrp.c (set_value_range_to_nonnegative): New function.
4542 (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
4543 (ssa_name_nonzero_p): Likewise.
4544 (get_value_range): Return NULL if VRP is not running.
4545 (extract_range_from_expr): Fallback to tree_expr_XXX_p if
4546 VRP routines do not discover a range.
4547 (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
4548 * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
4549 * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
4550 (tree_expr_nonnegative_p): Similarly.
4551 * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
4552 (restore_nonzero_vars_to_original_value): Remove.
4553 (unsafe_associative_fp_binop): Remove.
4554 (tree_ssa_dominator_optimize): Remove initialization and
4555 finalization of nonzero_vars and nonzero_vars_stack.
4556 (dom_opt_initialize_block): No longer push marker on
4558 (dom_opt_finalize_block): No longer call
4559 restore_nonzero_vars_to_original_value.
4560 (record_equivalences_from_phis): No longer look for
4561 nonzero PHI arguments.
4562 (cprop_into_successor_phis): No longer propagate nonzero
4563 property into PHI arguments. Lose unused argument. Caller
4565 (record_equivalences_from_stmt): No longer record nonzero
4566 values for SSA_NAMEs.
4567 (lookup_avail_expr): No longer use nonzero_vars.
4569 * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
4570 for sizetype when sizetype is unsigned.
4572 2006-02-16 Denis Nagorny <denis_nagorny@linux.intel.com>
4574 PR rtl-optimization/25603
4575 * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
4576 (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
4577 * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
4578 with new meaning of SETS.
4580 2006-02-16 Joseph S. Myers <joseph@codesourcery.com>
4585 * config/linux.opt: New file.
4586 * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
4587 LINUX_DYNAMIC_LINKER): Define.
4588 (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
4589 * config.gcc (*-*-linux*): Define extra_options.
4590 (*-*-*uclibc*): Define UCLIBC_DEFAULT.
4591 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
4592 * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
4593 GLIBC_DYNAMIC_LINKER.
4594 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
4595 (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4596 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4597 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4598 * doc/invoke.texi (GNU/Linux Options): New section.
4600 2006-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
4602 * config/sparc/sparc.md (setjmp): Rewrite.
4603 (setjmp_32): Delete.
4604 (setjmp_64): Likewise.
4606 2006-02-16 Daniel Berlin <dberlin@dberlin.org>
4608 * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
4611 2006-02-16 Zdenek Dvorak <dvorakz@suse.cz>
4613 * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
4616 2006-02-16 Zdenek Dvorak <dvorakz@suse.cz>
4618 PR rtl-optimization/26296
4619 * Makefile.in (loop-invariant.c): Add except.h dependency.
4620 * loop-invariant.c: Include except.h.
4621 (find_invariant_insn): Ignore insns satisfying can_throw_internal.
4623 2005-02-16 Paul Brook <paul@codesourcery.com>
4625 * reload1.c (emit_reload_insns): Invalidate dead input registers used
4628 2006-02-16 Bernd Schmidt <bernd.schmidt@analog.com>
4630 PR rtl-optimization/25636
4631 * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
4632 when deciding whether an insn is an initializing insn.
4634 2006-02-15 Daniel Berlin <dberlin@dberlin.org>
4636 * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
4637 (tree_code_size): Ditto.
4638 * tree.h (struct tree_memory_tag): Remove parent_var.
4639 (struct tree_struct_field_tag): New.
4642 (union tree_node): Add sft member.
4643 * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
4645 (create_sft): Add size and offset argument, set SFT_OFFSET and
4647 (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
4648 * treestruct.def: Add TS_STRUCT_FIELD_TAG.
4649 * tree-flow-inline.h (get_subvar_at): Update for
4650 SFT_OFFSET/SFT_SIZE.
4651 (var_can_have_subvars): Ditto.
4652 (overlap_subvar): Ditto.
4653 * print-tree.c (print_node): Print out interesting things for
4655 * tree-flow.h (struct subvar): Remove offset and size members.
4656 * tree-ssa-operands.c (get_expr_operands): Update for
4657 get_indirect_ref_operands changes.
4658 (get_indirect_ref_operands): Call add_virtual_operand instead of
4659 add_stmt_operand. Only recurse on base var if requested.
4660 (access_can_touch_variable): New function.
4661 (add_stmt_operand): Split virtual operand handling into ...
4662 (add_virtual_operand): Here. Add offset, size, and for_clobber
4663 arguments. Prune alias sets.
4664 (add_call_clobber_ops): Call add_virtual_operand.
4666 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4669 * combine.c (make_extraction): Bail out if ORIG_POS is negative.
4671 * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
4672 than TREE_CODE as index into omp_clause_num_ops array.
4674 2006-02-15 Uttam Pawar <uttamp@us.ibm.com>
4676 PR rtl-optimization/26184
4677 * modulo-sched.c (generate_reg_moves): Free bitmap vector
4679 * modulo-sched.c (sms_schedule): Free g_arr pointer.
4680 * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
4681 must_precede, must_follow and tobe_scheduled.
4684 * opts.c (common_handle_option): Free new_option pointer.
4685 * df-core.c (df_analyze): Free postorder pointer.
4687 2006-02-15 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
4689 * Makefile.in: Fix the examples about the use of stamps
4691 2006-02-15 Michael Matz <matz@suse.de>
4695 * stor-layout.c (layout_decl): Zero-width bitfields aren't
4696 influenced by maximum_field_alignment or DECL_PACKED.
4697 (update_alignment_for_field): Ditto.
4698 (place_field): Ditto.
4699 * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
4702 2006-02-15 Paolo Bonzini <bonzini@gnu.org>
4704 * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
4705 (debug_flow_info): Pass it.
4706 * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
4707 * bb-reorder.c (reorder_basic_blocks): Likewise.
4708 * cfgcleanup.c (rest_of_handle_jump2): Likewise.
4709 * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
4710 * flow.c (life_analysis, recompute_reg_usage): Likewise.
4711 * gcse.c (gcse_main, bypass_jumps): Likewise.
4712 * ifcvt.c (rest_of_handle_if_conversion): Likewise.
4713 * local-alloc.c (rest_of_handle_local_alloc): Likewise.
4714 * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
4715 * profile.c (compute_branch_probabilities, branch_prob): Likewise.
4716 * rtl.h (dump_flow_info): Adjust prototype.
4717 * tracer.c (rest_of_handle_tracer, tracer): Likewise.
4718 * var-tracking.c (variable_tracking_main): Likewise.
4719 * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
4720 * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
4723 2006-02-15 Marcin Dalecki <martin@dalecki.de>
4725 * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
4728 2006-02-14 Zdenek Dvorak <dvorakz@suse.cz>
4730 PR tree-optimization/26209
4731 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
4732 * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
4734 * tree-cfg.c (replace_uses_by): Do not alter cfg.
4736 2006-02-14 Roger Sayle <roger@eyesopen.com>
4739 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
4740 (X,Y) and the corresponding symmetry related transformations.
4741 (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
4742 (X,Y) and its symmetry related transformations.
4744 2006-02-14 Roger Sayle <roger@eyesopen.com>
4746 * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
4749 2006-02-14 Adam Nemet <anemet@caviumnetworks.com>
4751 * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
4753 2006-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4756 * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
4757 support COMDAT group.
4758 * configure: Regenerate.
4760 2006-02-14 Roger Sayle <roger@eyesopen.com>
4765 * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
4767 2006-02-14 Daniel Berlin <dberlin@dberlin.org>
4769 Fix PR tree-optimization/26260
4771 * doc/invoke.texi (max-fields-for-field-sensitive): Document
4773 * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
4774 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
4775 * tree-ssa-structalias.c (create_variable_info_for): Use
4776 MAX_FIELDS_FOR_FIELD_SENSITIVE.
4778 2006-02-14 Zdenek Dvorak <dvorakz@suse.cz>
4780 * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
4782 * tree-ssa-loop-niter.c (number_of_iterations_ne,
4783 number_of_iterations_lt, number_of_iterations_cond): Remember the shape
4784 of the ending condition.
4785 * tree-ssa-loop-manip.c: Include params.h.
4786 (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
4787 tree_unroll_loop): New functions.
4788 * tree-pass.h (pass_loop_prefetch): Declare.
4789 * loop.c (rest_of_handle_loop_optimize): Test for
4790 -fprefetch-loop-arrays-rtl.
4791 * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
4792 * timevar.def (TV_TREE_PREFETCH): New timevar.
4793 * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
4794 pass_loop_prefetch): New.
4795 * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
4796 (cleanup_tree_cfg_loop): Call scev_reset.
4797 * common.opt (fprefetch-loop-arrays-rtl): Add.
4798 * tree-ssa-loop-prefetch.c: New file.
4799 * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
4800 (new_temp_expr_table): Initialize expr_vars.
4801 (free_temp_expr_table): Cleanup expr_vars.
4802 (check_replaceable, find_replaceable_in_bb): Prevent accumulating
4803 expressions from being merged into one.
4804 * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
4805 (struct tree_niter_desc): Add control, bound and cmp fields.
4806 (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
4808 * Makefile.in (tree-ssa-loop-prefetch.o): Add.
4809 (tree-cfgcleanup.o): Add SCEV_H dependency.
4810 (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
4811 * passes.c (init_optimization_passes): Add pass_loop_prefetch.
4813 2006-02-14 Richard Guenther <rguenther@suse.de>
4815 PR tree-optimization/26258
4816 * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
4817 in PHI argument processing.
4819 2006-02-13 Adam Nemet <anemet@caviumnetworks.com>
4821 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
4822 new expression in the requested machine mode.
4824 2006-02-13 Roger Sayle <roger@eyesopen.com>
4826 * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
4827 directly, instead let do_compare_rtx_and_jump handle this for us.
4828 * expr.c (expand_expr_real_1): Likewise.
4829 * dojump.c (do_jump_by_parts_greater_rtx): Make static. Move
4830 before do_jump_by_parts_greater.
4831 (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
4832 * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
4834 2006-02-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4836 * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
4838 2006-02-13 Zdenek Dvorak <dvorakz@suse.cz>
4840 PR rtl-optimization/26235
4841 * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
4842 (invariant_expr_equal_p): Handle 'i' and 'n' formats. Fail on unknown
4845 2006-02-13 Jeff Law <law@redhat.com>
4847 * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
4850 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4853 * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
4854 twice if decl is a builtin. When trying again, call get_callee_fndecl
4855 first to verify it is still a builtin.
4857 2006-02-13 Geoffrey Keating <geoffk@apple.com>
4859 * dwarf2out.c (base_type_die): Don't add AT_name here.
4860 (subrange_type_die): Don't add AT_name here.
4861 (modified_type_die): Rearrange code flow. Do add AT_name here.
4863 2006-02-13 Zdenek Dvorak <dvorakz@suse.cz>
4865 PR rtl-optimization/26247
4866 PR rtl-optimization/26248
4867 * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
4869 2006-02-13 Richard Sandiford <richard@codesourcery.com>
4871 * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
4872 * config/fixtfdi.c: Likewise.
4873 * config/fixunstfdi.c: Likewise.
4874 * config/floatditf.c: Likewise.
4876 2006-02-13 Roger Sayle <roger@eyesopen.com>
4879 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
4880 into (X,C2) if C1 is a subset of the bits of C2. Transform
4881 (X&C1)|C2 into X|C2 if C1|C2 == ~0. Canonicalize (X&C1)|C2 as
4883 <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
4885 2006-02-13 Josh Conner <jconner@apple.com>
4888 * varasm.c (function_section): Check for section name before
4889 calling select_section on targets that define
4890 USE_SELECT_SECTION_FOR_FUNCTIONS. On other targets, use
4891 unlikely_text_section instead of hot_function_section if
4892 first_function_block_is_cold.
4894 2006-02-13 J"orn Rennecke <joern.rennecke@st.com>
4897 * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
4899 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
4901 PR rtl-optimization/26222
4902 * function.c (assign_stack_temp_for_type): Do not reuse stack slots
4903 after tree->rtl expansion.
4904 * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
4905 before passing it to emit_move_insn.
4907 2006-02-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4909 * doc/invoke.texi (-Write-strings): Document that it is enabled by
4911 * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
4912 Clarify documentation.
4913 * c-common.h (warn_write_strings): Remove.
4914 * c-common.c (warn_write_strings): Likewise.
4915 * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
4918 2006-02-12 Roger Sayle <roger@eyesopen.com>
4921 * dojump.c (do_jump): Call do_compare_rtx_and_jump.
4922 (do_jump_parts_zero_rtx): New function renamed from
4923 do_jump_parts_equality_rtx. Made static. Add a mode argument.
4924 (do_jump_parts_equality_rtx): New function split out from
4925 do_jump_parts_equality. Old implementation renamed as above.
4926 Call do_jump_parts_zero_rtx if either operand is zero.
4927 (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
4928 do all of the heavy lifting.
4929 (do_compare_rtx_and_jump): Handle multi-word comparisons by
4930 calling either do_jump_by_parts_greater_rtx or
4931 do_jump_by_parts_equality_rtx.
4932 * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
4933 * expmed.c (do_cmp_and_jump): Now multi-word optimization has
4934 moved to do_compare_rtx_and_jump, call it directly.
4935 * stmt.c (do_jump_if_equal): Remove static prototype. Add a
4936 mode argument. Call do_compare_rtx_and_jump.
4937 (emit_case_nodes): Update calls to do_jump_if_equal.
4939 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
4941 PR rtl-optimization/26225
4942 * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
4944 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
4946 PR rtl-optimization/26232
4947 * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
4949 2006-02-11 Jason Merrill <jason@redhat.com>
4952 * tree-inline.c (declare_return_variable): Just don't use the
4953 modify target if it's a gimple complex reg and the return slot
4956 2006-02-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4958 * doc/contrib.texi: Update my entry.
4960 2006-02-10 Geoffrey Keating <geoffk@apple.com>
4962 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
4964 2006-02-10 Diego Novillo <dnovillo@redhat.com>
4966 * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
4969 2006-02-10 Zdenek Dvorak <dvorakz@suse.cz>
4971 * doc/invoke.texi (-floop-optimize2): Removed.
4972 * toplev.c (process_options): Remove handling of flag_loop_optimize2.
4973 * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
4974 Test flag_branch_on_count_reg only if HAVE_doloop_end.
4975 * common.opt (floop-optimize2): Removed.
4976 (fmove-loop-invariants): Enabled by default.
4978 2006-02-10 Sebastian Pop <pop@cri.ensmp.fr>
4980 * tree-if-conv.c (combine_blocks): Free the result of
4981 get_loop_exit_edges.
4983 2006-02-10 Jeff Law <law@redhat.com>
4985 * fold-const.c (tree_expr_nonzero_p): Fix thinko.
4987 PR tree-optimization/26213
4988 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
4989 loop trying to follow SSA_NAME_VALUE chains.
4991 2006-02-10 Richard Guenther <rguenther@suse.de>
4993 * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
4994 deal with structures that end in implicitly variable sized arrays.
4996 2006-02-09 Zdenek Dvorak <dvorakz@suse.cz>
4998 PR rtl-optimization/24762
4999 * df-scan.c (df_bb_refs_record): Record correct registers defined on
5002 2006-02-09 Zdenek Dvorak <dvorakz@suse.cz>
5004 * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
5005 (struct ivopts_data): Add regs_used field.
5006 (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
5007 (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
5008 instead of loop_data->regs_used;
5009 (free_loop_data): Do not free aux fields for loops.
5010 (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
5011 and tree_ssa_iv_optimize_finalize.
5013 2006-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
5015 * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
5017 2006-02-09 J"orn Rennecke <joern.rennecke@st.com>
5020 * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
5021 computing the effective result type.
5023 2006-02-09 J"orn Rennecke <joern.rennecke@st.com>
5026 * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
5027 (tree_overlaps_hard_reg_set): Declare.
5028 * stmt.c (decl_overlaps_hard_reg_set_p): Now static. Change return
5029 type and signature to match function type expected by walk_tree.
5030 (tree_overlaps_hard_reg_set): New function.
5031 (decl_conflicts_with_clobbers_p): Rename to:
5032 (tree_conflicts_with_clobbers_p). Take HARD_REG_SET * argument.
5033 Use tree_overlaps_hard_reg_set. Changed caller.
5034 * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
5035 decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
5036 * cris.c (cris_md_asm_clobbers): Likewise.
5038 2006-02-09 Bernd Schmidt <bernd.schmidt@analog.com>
5040 * reload1.c (emit_input_reload_insns): Delete code that tries to
5041 inherit using find_equiv_reg.
5043 2006-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5045 * c-common.h (flag_const_strings): Don't declare.
5046 * c-common.c (flag_const_strings): Remove.
5047 * c.opt (fconst_strings): Remove.
5048 * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
5049 <OPT_Wwrite_strings>: Don't set flag_const_strings.
5050 (c_common_init_options): Don't set flag_const_strings.
5051 * doc/invoke.texi (-fno-const-strings): Remove documentation.
5053 2006-02-09 Richard Earnshaw <richard.earnshaw@arm.com>
5055 * arm.md (tlobits_cbranch): New pattern.
5056 * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
5057 testing a single bit.
5059 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
5062 * tree-ssa-pre.c (create_component_ref_by_pieces):
5063 Handle RETURN_DECL like VAR_DECL.
5065 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
5068 * fold-const.c (fold_indirect_ref_1): Fold
5069 "*(foo *)&complexfoo" to "__real__ complexfoo"
5070 and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
5072 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
5074 * tree-flow-inline.h (var_can_have_subvars):
5075 Volatile variables should not have subvariables.
5077 2006-02-09 Diego Novillo <dnovillo@redhat.com>
5080 * tree-vrp.c (vrp_int_const_binop): Detect overflow when
5081 multiplying unsigned values.
5084 2006-02-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5086 * config/sparc/sparc.c (tls_call_delay): Fix oversight.
5088 2006-02-08 Jason Merrill <jason@redhat.com>
5091 * tree.def: Elaborate on difference from MODIFY_EXPR.
5092 * doc/c-tree.texi (INIT_EXPR): Likewise.
5093 * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
5094 (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
5095 (gimplify_target_expr): Likewise.
5096 (gimplify_cond_expr): Remove target handling.
5097 (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
5098 (gimplify_expr): Clobber it here.
5099 (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
5100 Do return slot optimization if we have an INIT_EXPR.
5103 * tree-inline.c (declare_return_variable): Also clear
5104 DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
5107 * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
5110 * gimplify.c (gimplify_one_sizepos): Fix typo.
5112 2006-02-08 Jeff Law <law@redhat.com>
5114 PR tree-optimization/21417
5115 * tree-ssa-threadedge.c (thread_across_edge): Reject threading
5116 across a backedge if the control statement at the end of the
5117 block is data dependent on other statements in the same block.
5118 (record_temporary_equivalences_from_stmts): Remove over-conservative
5119 test for threading across backedges.
5121 * tree-ssa-dce.c (remove_dead_statement): When removing a dead
5122 control statement, handle all three special cases in the same
5123 manner as they all have the same desired solution. No longer
5124 special case edge flag updating when the post dominator is
5127 2006-02-08 Roger Sayle <roger@eyesopen.com>
5129 * tree.def (CHAR_TYPE): Remove.
5130 * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
5131 * dwarf2out.c (base_type_die, is_base_type): Likewise.
5132 (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
5133 (gen_string_type_die): Delete unreachable function.
5135 * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
5136 * tree.c (build_int_cst_wide, type_contains_placeholder_1,
5137 type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
5138 * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
5139 * builtins.c (type_to_class): Likewise.
5140 * fold-const.c (fold_convert, build_range_check,
5141 merge_ranges): Likewise.
5142 * expr.c (count_type_elements): Likewise.
5143 * c-pretty-print.c (pp_c_type_specifier): Likewise.
5144 * stor-layout.c (layout_type): Likewise.
5145 * ipa-type-escape.c (type_to_consider): Likewise.
5146 * gimplify.c (omp_firstprivatize_type_sizes,
5147 gimplify_type_sizes): Likewise.
5148 * explow.c (promote_mode): Likewise.
5149 * tree-sra.c (is_sra_scalar_type): Likewise.
5150 * varasm.c (output_constant): Likewise.
5151 * tree-inline.c (remap_type_1): Likewise.
5152 * convert.c (convert_to_pointer, convert_to_real,
5153 convert_to_integer, convert_to_complex): Likewise.
5155 2006-02-08 Daniel Berlin <dberlin@dberlin.org>
5157 * df-scan.c (df_def_record_1): A set destination may
5158 be a parallel regardless of mode.
5160 2006-02-08 Roger Sayle <roger@eyesopen.com>
5163 * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
5164 * config/mips/_tilib.c: Remove.
5165 * config/fixtfdi.c: New libgcc source file.
5166 * config/fixunstfdi.c: New source file.
5167 * config/floatditf.c: New source file.
5168 * config/floatunditf.c: New souce file.
5169 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
5170 files above instead of config/mips/_tilib.c.
5171 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
5173 2006-02-08 Jeff Law <law@redhat.com>
5175 PR tree-optimization/26169
5176 * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
5179 2006-02-08 Zdenek Dvorak <dvorakz@suse.cz>
5181 * df.h (DF_REG_SIZE): Return the length of the initialized
5184 2006-02-08 Nathan Sidwell <nathan@codesourcery.com>
5186 * gcc/config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
5187 __muldf3): Return a correctly signed zero.
5189 2006-02-08 Paolo Bonzini <bonzini@gnu.org>
5191 * passes.c (register_one_dump_file): Accept the current properties
5192 instead of pass number. Adjust call to dump_register. Remove
5194 (register_dump_files): Now a wrapper around...
5195 (register_dump_files_1): ... this one. Do not modify the pass
5197 (next_pass_1): Cosmetic fix.
5198 (execute_todo): Keep second parameter only. Use curr_properties
5199 instead of fetching it from the pass structure. Check and set
5201 (execute_one_pass): Handle TODO_set_props. Use curr_properties
5202 instead of fetching it from the pass structure. Fix calls to
5203 execute_todo. Update curr_properties and initialize .vcg RTL dump
5204 after running the pass. Reset last_verified.
5205 * tree-dump.c (dump_files): Renumber consecutively. Put .cgraph dump
5207 (FIRST_AUTO_NUMBERED_DUMP): New.
5208 (dump_register): Remove "num" parameter, assign it within the
5210 (get_dump_file_name): Modify template for dumps.
5211 * tree-dump.h (dump_register): Adjust prototype.
5212 * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
5213 (PROP_trees): Add PROP_gimple_lomp.
5214 (TODO_set_props): New.
5215 * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
5216 * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
5217 * cfgexpand.c (pass_expand): Destroy PROP_trees.
5219 2006-02-08 Jakub Jelinek <jakub@redhat.com>
5221 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
5222 (sparc64-*-linux*): Likewise.
5223 * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
5224 * config/sparc/t-linux: New file.
5225 * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
5226 __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
5227 (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
5228 -m32 -mlong-double-128.
5230 * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
5231 * config/alpha/t-linux: New file.
5232 * config/alpha/libgcc-alpha-ldbl.ver: New file.
5234 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
5235 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
5236 (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
5237 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
5238 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
5239 (CPP_ARCH32_SPEC): Remove.
5241 2006-02-07 Uttam Pawar <uttamp@us.ibm.com>
5243 PR tree-optimization/26145
5244 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
5247 2006-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5250 * pa.c (attr_length_indirect_call): Don't return length 8 for distances
5251 >= 240000 when generating code for SOM runtime.
5252 (output_indirect_call): Don't use "b,l" instruction for indirect calls
5253 to $$dyncall when generating code for SOM runtime..
5255 2006-02-07 Dirk Mueller <dmueller@suse.com>
5258 * doc/invoke.texi (-Wsequence-point): Update documentation
5259 that -Wsequence-point is implemented for C++ as well.
5261 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5263 * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
5264 * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
5265 (LIB_SPEC): Likewise.
5266 * doc/invoke.texi (SPARC options): Document -pthread.
5268 2006-02-07 Geoffrey Keating <geoffk@apple.com>
5270 * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
5273 2006-02-07 Roger Sayle <roger@eyesopen.com>
5275 * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
5276 Correct comment describing BOOLEAN_TYPE.
5278 2006-02-07 Dirk Mueller <dmueller@suse.com>
5280 * c.opt: C++ frontend supports -Wdiv-by-zero.
5281 * c-opts.c (c_common_handle_option): Remove dead case.
5283 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5285 * configure.ac (TLS assembler check): Do not enable TLS by
5286 default on SPARC/Solaris before version 10.
5287 * configure: Regenerate.
5289 2006-02-07 David Edelsohn <edelsohn@gnu.org>
5291 * doc/invoke.texi (xl-compat): Document conversion and support
5294 2006-02-07 Jeff Law <law@redhat.com>
5296 * tree-vrp.c (find_conditional_asserts): Update comments.
5297 (simplify_stmt_for_jump_threading): New.
5298 (identify_jump_threads, finalize_jump_threads): New.
5299 (vrp_finalize): Call identify_jump_threads.
5300 (execute_vrp): Call finalize_jump_threads.
5301 * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
5302 (vrp_element, vrp_data, vrp_element_p): Remove.
5303 (vrp_hash_elt, vrp_variables_stack): Remove.
5304 (vrp_hash, vrp_eq, record_range): Remove.
5305 (simplify_cond_and_lookup_avail_expr): Remove.
5306 (extract_range_from_cond): Remove.
5307 (thread_across_edge): Relocated into tree-ssa-threadedge.c.
5308 (simplify_stmt_for_jump_threading): New.
5309 (dom_thread_across_edge): New wrapper.
5310 (tree_ssa_dominator_optimize): No longer initialize or
5311 finalize any of the VRP datastructures. Remove iteration
5312 step and simplify as a result of removal of iteration step.
5313 (pass_dominator): Perform a cfg cleanup after DOM.
5314 (dom_opt_finalize_block): Use the new common routines
5315 for threading jumps. Simplify stack management slightly.
5316 No longer need to unwind VRP state.
5317 (record_equivalences_from_incoming_edge): No longer record
5319 (eliminate_redundant_computations): No longer call
5320 simplify_cond_and_lookup_avail_expr.
5321 * tree-flow.h (potentially_threadable_block): Prototype.
5322 (thread_across_edge): Likewise.
5323 * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
5324 (tree-ssa-threadedge.o): Add dependencies.
5325 * tree-ssa-threadedge.c: New file.
5326 * passes.c (init_optimization_passes): Merge PHIs before
5327 calling VRP. Run VRP again late in the SSA optimization pipeline.
5329 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5331 * df-core.c (df_set_blocks): Do not dereference function pointers.
5332 (df_finish1): Likewise.
5333 (df_hybrid_search_forward): Likewise.
5334 (df_hybrid_search_backward): Likewise.
5335 (df_iterative_dataflow): Likewise.
5336 (df_analyze_problem): Likewise.
5337 (df_compact_blocks): Likewise.
5338 (df_dump): Likewise.
5339 * df-scan.c (df_rescan_blocks): Likewise.
5340 (df_record_entry_block_defs): Likewise.
5342 * genconditions.c (write_conditions): Guard the definition of
5343 'insn_conditions' with the check on GCC version.
5344 (write_writer): Guard the traversal 'insn_conditions' with
5345 the check on GCC version.
5347 2006-02-07 Richard Guenther <rguenther@suse.de>
5351 2006-01-30 Richard Guenther <rguenther@suse.de>
5353 * gimplify.c (gimplify_target_expr): Handle easy cases
5354 without creating a temporary.
5356 2006-02-07 Pete Steinmetz <steinmtz@us.ibm.com>
5358 * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
5359 use of float in probability computations. Use edge probabilities
5360 in place of statically computed probabilities.
5361 (min_spec_prob): New static variable.
5362 (schedule_insns): Initialize it.
5363 (GET_SRC_PROB): Removed.
5364 * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
5366 2006-02-07 Alexandre Oliva <aoliva@redhat.com>
5369 * config/ia64/unwind-ia64.c: Revert last change.
5370 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
5371 (INCOMING_FRAME_SP_OFFSET): Define.
5373 2006-02-06 Roger Sayle <roger@eyesopen.com>
5375 * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
5377 2006-02-07 Ben Elliston <bje@au.ibm.com>
5379 * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
5380 (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
5381 (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
5382 (ix86_return_in_memory): Handle TDmode.
5383 (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
5384 (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
5386 2006-02-06 Richard Sandiford <richard@codesourcery.com>
5388 * reorg.c (dbr_schedule): Use dump_file instead of file.
5390 2006-02-06 Steve Ellcey <sje@cup.hp.com>
5393 * config/ia64/predicates.md (extr_len_operand): New predicate.
5394 * config/ia64/ia64.md (extv): Tighten constraints.
5396 (*tbit_and_2): Ditto.
5397 (*tbit_and_3): Ditto.
5398 (*tbit_or_2): Ditto.
5399 (*tbit_or_3): Ditto.
5403 2006-02-06 Andrew Pinski <pinskia@physics.uc.edu>
5406 * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
5408 2006-02-06 Zdenek Dvorak <dvorakz@suse.cz>
5410 * tree-vrp.c (execute_vrp): Do not pass dump argument to.
5411 loop_optimizer_init and loop_optimizer_finalize
5412 * tree-ssa-sink.c (execute_sink_code): Ditto.
5413 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
5414 * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
5415 tree_ssa_loop_done): Ditto.
5416 * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
5417 * sched-ebb.c: Include output.h.
5418 (schedule_ebbs): Do not use dump argument.
5419 * value-prof.h (struct profile_hooks): Remove profile_dump_file.
5420 * loop.c (loop_dump_stream): Removed.
5421 (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
5423 (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
5424 emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
5425 final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
5426 loop_iterations, strength_reduce, record_biv, record_giv,
5427 final_giv_value, check_final_value, check_ext_dependent_givs,
5428 combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
5429 try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
5430 dump_file instead of loop_dump_stream.
5431 * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
5433 * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
5435 * flow.c (life_analysis, rest_of_handle_life): Ditto.
5436 * haifa-sched.c: Include output.h
5437 (schedule_insns, sched_init): Do not use dump argument.
5438 * mode-switching.c (optimize_mode_switching): Ditto.
5439 * modulo-sched.c (stats_file): Removed.
5440 (print_node_sched_params): Do not call argument dump_file.
5441 (sms_schedule_by_order, loop_canon_p, sms_schedule,
5442 rest_of_handle_sms): Do not use dump argument. Use dump_file instead
5444 * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
5446 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
5447 rtl_loop_init, rtl_loop_done): Ditto.
5448 * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
5449 * predict.c (combine_predictions_for_bb, tree_estimate_probability):
5451 * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
5452 * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
5453 * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
5454 rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
5455 * emit-rtl.c (renumber_insns): Ditto.
5456 * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
5457 expand_gimple_basic_block, tree_expand_cfg): Ditto.
5458 * regclass.c (regclass): Ditto.
5459 * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
5460 remove_ssa_form, rewrite_out_of_ssa): Ditto.
5461 * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
5462 convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
5464 * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
5465 * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
5467 * gcse.c (gcse_file, debug_stderr): Removed.
5468 (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
5469 rest_of_handle_gcse): Do not use dump argument.
5470 (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
5471 one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
5472 pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
5473 compute_code_hoist_vbeinout, compute_code_hoist_data,
5474 one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
5475 compute_store_table, build_store_vectors, insert_insn_start_bb,
5476 insert_store, remove_reachable_equiv_notes, replace_store_insn,
5477 store_motion): Use dump_file instead of gcse_file.
5478 * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
5479 * profile.c (profile_dump_file): Removed.
5480 (branch_prob): Use dump_file instead of profile_dump_file.
5481 * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
5483 * tree-ssa-copy.c (dump_copy_of): Ditto.
5484 * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
5485 dump file to life_analysis.
5486 * bt-load.c (branch_target_load_optimize): Ditto.
5487 * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
5489 * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
5490 regclass, dbr_schedule): Declaration changed.
5491 * sched-int.h (sched_init): Declaration changed.
5492 * tree-profile.c (tree_profile_dump_file): Removed.
5493 (tree_profile_hooks): Removed profile_dump_file hook.
5494 * rtl-profile (rtl_profile_dump_file): Removed.
5495 (rtl_profile_hooks): emoved profile_dump_file hook.
5496 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
5498 * c-gimplify.c (c_genericize): Do not call local variable dump_file.
5499 * tree-cfg.c (build_tree_cfg): Ditto.
5500 * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
5501 * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
5502 Declaration changed.
5503 * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
5504 life_analysis and schedule_insns.
5505 * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
5507 * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
5509 * config/mips/mips.c (mips_reorg): Ditto.
5510 * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
5513 2006-02-06 Aldy Hernandez <aldyh@redhat.com>
5515 * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
5516 (s390_mangle_fundamental_type): New.
5517 * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5520 * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
5521 (alpha_mangle_fundamental_type): New.
5522 * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5525 * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5527 * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5529 * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
5530 (sparc_mangle_fundamental_type): New.
5532 2006-02-06 Jakub Jelinek <jakub@redhat.com>
5534 * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
5535 (s390x-*-linux*): Likewise.
5536 * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
5537 * config/s390/t-linux: New file.
5539 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
5541 * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
5542 sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
5544 2006-02-06 Daniel Berlin <dberlin@dberlin.org>
5546 * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
5547 (ANTIC_SAFE_LOADS): New macro.
5548 (find_or_generate_expression): Add prototype.
5549 (set_contains_value): Allow null set for sake of not always having
5550 to allocate ANTIC_SAFE_LOADS.
5551 (phi_translate): Move placement of AGGREGATE_TYPE_P check.
5552 Allow COMPONENT_REF too.
5553 (valid_in_set): Allow COMPONENT_REF.
5554 Check ANTIC_SAFE_LOADS too.
5555 (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
5556 (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
5558 (can_PRE_operation): Add COMPONENT_REF.
5559 (create_component_ref_by_pieces): New function.
5560 (create_expression_by_pieces): Use create_component_ref_by_pieces.
5561 (insert_aux): Move AGGREGATE_TYPE_P check here.
5562 (compute_avail): Set bb local stmt uids.
5563 (pass_pre): Use TODO_update_ssa_only_virtuals.
5565 2006-02-06 Ben Elliston <bje@au.ibm.com>
5567 * configure.ac: Unconditionally disable decimal float by default.
5568 * configure: Regenerate.
5570 2006-02-06 Ben Elliston <bje@au.ibm.com>
5572 * read-rtl.c (read_name): Terminate reading on EOF.
5574 2006-02-06 Ben Elliston <bje@au.ibm.com>
5576 * dfp.c (decimal_real_arithmetic): Change second argument type
5577 from int to enum tree_code. Do not always return true, but now
5578 return result of any call to decimal_do helper functions.
5579 * dfp.h (decimal_real_arithmetic): Update prototype.
5581 2006-02-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5583 * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
5585 2006-02-05 Andrew Pinski <pinskia@physics.uc.edu>
5588 * tree-cfg.c (cleanup_dead_labels): Also don't remove
5591 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
5593 * tree-vrp.c (cfg_loops): Removed.
5594 (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
5595 Use current_loops instead of cfg_loops. Pass flags to
5596 loop_optimizer_init.
5597 * cfgloopmanip.c (fix_loop_structure): Update only available
5599 * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
5600 loop_optimizer_init.
5601 * modulo-sched.c (build_loops_structure): Removed.
5602 (sms_schedule): Use loop_optimizer_init.
5603 * loop-init.c (loop_optimizer_init): Use flags to determine
5604 which properties of loops to prepare.
5605 (rtl_loop_init): Pass flags to loop_optimizer_init.
5606 * tree-ssa-sink.c (execute_sink_code): Ditto.
5607 * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
5608 * tree-ssa-pre.c (init_pre): Ditto.
5609 * cfgloop.h (LOOPS_NORMAL): New.
5610 (loop_optimizer_init): Declaration changed.
5612 2006-02-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5614 * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
5615 * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
5617 * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
5619 * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
5621 * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
5622 * pa/t-pa64: Delete quadlib.c rule.
5623 * pa/x-ada: Revert last change.
5624 * pa/t-pa: Revert last change. Delete quadlib.c rule.
5626 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
5628 PR rtl-optimization/26087
5629 * rtlanal.c (canonicalize_condition): Do not cross basic block
5632 2006-02-04 Alexandre Oliva <aoliva@redhat.com>
5635 * config/ia64/ia64.c: Include debug.h.
5636 (MAX_ARTIFICIAL_LABEL_BYTES): New.
5637 (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
5638 (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
5639 (process_epilogue, process_set, process_for_unwind_directive):
5640 Output unwind info only if requested. Add CFA info if requested.
5641 Add new arguments as needed. Adjust callers.
5642 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
5644 (DWARF2_FRAME_INFO): Define to zero.
5645 * config/ia64/unwind-ia64.c: Remove code that compensated for
5646 the CFA offset error fixed above.
5647 * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
5648 * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
5649 (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
5650 -funwind-tables and -fexceptions to enable frame info.
5651 (dwarf2out_frame_init): Define initial CFA even if
5652 DWARF2_UNWIND_INFO is disabled. Call initial_return_save if
5653 DWARF2_UNWIND_INFO is nonzero, not just defined.
5654 (dwarf2out_frame_finish): Output non-EH call frame info only
5655 if DWARF2_FRAME_INFO is nonzero.
5656 (convert_cfa_to_loc_list,
5657 compute_frame_pointer_to_cfa_displacement): Define even if
5658 unwind info is not supported.
5659 (gen_subprogram_die): Use the above unconditionally. Remove
5660 legacy alternate code.
5661 * toplev.c (compile_file): Compile in call to
5662 dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
5663 (lang_dependent_init): Ditto for dwarf2out_frame_init.
5665 2006-02-04 David Edelsohn <edelsohn@gnu.org>
5666 Jakub Jelinek <jakub@redhat.com>
5668 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
5669 IBM extended float format long double as "g" on powerpc*-linux.
5671 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5674 * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
5675 * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
5677 2006-02-03 Jason Merrill <jason@redhat.com>
5680 * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
5683 * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
5684 on the return slot if it's an NRV.
5686 2006-02-03 Zdenek Dvorak <dvorakz@suse.cz>
5688 * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
5689 (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
5690 rewrite_use): Do not handle USE_OUTER.
5691 (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
5692 add_iv_outer_candidates, may_replace_final_value,
5693 determine_use_iv_cost_outer, rewrite_use_outer): Removed.
5694 (find_interesting_uses_op): Functionality of
5695 find_interesting_uses_outer_or_nonlin moved here.
5696 (find_interesting_uses_outside): Use find_interesting_uses_op.
5698 2006-02-03 Alan Modra <amodra@bigpond.net.au>
5701 * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
5703 2006-02-03 Andreas Krebbel <krebbel1@de.ibm.com>
5704 Ulrich Weigand <uweigand@de.ibm.com>
5707 * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
5708 "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
5709 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
5710 * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
5712 (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
5713 (s390_rtx_costs): Use the new fields to calculate rtx costs.
5714 (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
5715 Define secondary reloads for TFmode moves.
5716 (constant_modes): Add TFmode.
5717 (NR_C_MODES): Set to 8.
5718 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
5720 (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
5721 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
5722 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5723 CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
5724 * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
5725 fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
5726 (FPR mode macro): Add TFmode.
5727 (DSF mode macro): New.
5728 (<de>, <dee> mode attributes): Removed.
5729 (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
5730 ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
5731 "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
5732 "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
5733 "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
5734 "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
5735 "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
5736 "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
5737 "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
5738 "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
5739 "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
5740 "*negabs<mode>2", "sqrt<mode>2"):
5741 Changed <de> to <xde>. R constraint replaced by <Rf>.
5742 ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
5744 ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
5745 ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
5746 ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
5748 ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
5749 "extenddftf2", "extendsftf2"): New expanders.
5750 ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
5751 "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
5752 "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
5753 * config/s390/s390.opt (mlong-double-128, mlong-double-64):
5755 * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
5756 * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
5757 __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
5758 __floatditf): Add a GCC_4.1.0 symbol version tag.
5759 * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
5762 2006-02-02 Andrew Pinski <pinskia@physics.uc.edu>
5765 * config/i386/i386.c (ix86_function_ok_for_sibcall):
5766 Use targetm.binds_local_p instead of TREE_PUBLIC.
5768 2006-02-02 Roger Sayle <roger@eyesopen.com>
5770 * tree.h (TYPE_STRING_FLAG): Document that this field may be used
5771 on INTEGER_TYPEs to indicate that it denotes a character type.
5772 * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
5773 signed_char_type_node, unsigned_char_type_node and char_type_node.
5774 * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
5775 INTEGER_TYPE. Use TYPE_STRING_FLAG to decide whether to emit
5776 a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
5778 2006-02-02 Zdenek Dvorak <dvorakz@suse.cz>
5779 Daniel Berlin <dberlin@dberlin.org>
5781 * tree-tailcall.c (arg_needs_copy_p): New function.
5782 (eliminate_tail_call): Use arg_needs_copy_p.
5783 (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
5784 (add_virtual_phis): New function.
5786 2006-02-02 Jakub Jelinek <jakub@redhat.com>
5788 * config/sparc/sparc.c (sparc_output_scratch_registers): Use
5789 #ignore instead of #scratch for %g7 .register directive.
5791 2006-02-02 Andreas Tobler <a.tobler@schweiz.ch>
5793 * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
5796 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
5798 * flow.c (calculate_global_regs_live): Assert that there aren't any
5801 2006-02-02 Paolo Bonzini <bonzini@gnu.org>
5803 * tree-flow-inline.h (bsi_after_labels): Rewrite, return
5805 * lambda-code.c (perfect_nestify): Use bsi_insert_before on
5806 bsi_after_labels iterator.
5807 * tree-if-conv.c (find_phi_replacement_condition,
5808 replace_phi_with_cond_modify_expr): Likewise.
5809 * tree-scalar-evolution.c (scev_const_prop): Likewise.
5810 * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
5812 2006-02-02 Diego Novillo <dnovillo@redhat.com>
5814 * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
5816 2006-02-02 Diego Novillo <dnovillo@redhat.com>
5819 * tree-cfg.c (move_block_to_fn): Clear out the basic block
5820 array after growing it.
5822 2006-02-01 Steve Ellcey <sje@cup.hp.com>
5825 * fold-const.c (fold_checksum_tree): Change type of buf.
5827 2006-02-01 Bernd Schmidt <bernd.schmidt@analog.com>
5829 * reload.c (push_secondary_reload): Initialize t_icode.
5831 2006-02-01 Jakub Jelinek <jakub@redhat.com>
5833 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
5834 -msoft-float -mlong-double-128 only issue a warning, but don't
5835 swich to DFmode long double.
5837 2006-02-01 Hans-Peter Nilsson <hp@axis.com>
5839 * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
5840 has a constant equivalent, iterate over equivalents for arg0,
5841 calling simplify_relational_operation and if there's a result
5842 cheaper than X, apply fold_rtx and return the result.
5844 2006-02-01 Jan Hubicka <jh@suse.cz>
5846 * opts.c (no_unit_at_a_time_default): New global variable.
5847 (decode_options): Use it.
5848 * opts.h (no_unit_at_a_time_default): Declare.
5850 2006-02-01 Paul Brook <paul@codesourcery.com>
5852 * function.c (assign_parm_setup_reg): Use function argument promotion
5854 * expr.c (expand_expr_real_1): Use function argument promotion rules
5857 2006-02-01 Steve Ellcey <sje@cup.hp.com>
5859 * gcc.c (process_command): Change j to 'unsigned int'.
5861 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
5864 * expr.c (expand_expr_real_1) <case ARRAY_REF>:
5865 Use the corrected index for the character
5866 out of the string constant.
5868 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
5870 * mode-switching.c (optimize_mode_switching): Fix size
5871 allocated for bb_info[n_entities].
5873 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
5875 * gcc.c (main): Correct type that is allocated for
5876 explicit_link_files.
5878 2006-01-31 Jakub Jelinek <jakub@redhat.com>
5880 * config/s390/s390.c (init_alignment_context): Set
5881 ALIAS_SET_MEMORY_BARRIER on the MEM.
5882 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
5884 2006-01-31 Uttam Pawar <uttamp@us.ibm.com>
5887 * loop-unroll.c (unroll_loop_runtime_iterations): Free
5889 * tree-ssa-live.c (type_var_init): Allocate bitmap after
5892 2006-01-31 Marcin Dalecki <martin@dalecki.de>
5894 * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
5895 * regrename.c: Ditto.
5896 * tree-ssa-loop-im.c: Ditto.
5897 * tree-dump.c: Ditto.
5898 * tree-complex.c: Ditto.
5899 * genrecog.c: Ditto.
5900 * tree-ssa-threadupdate.c: Ditto.
5902 * java/class.c: Ditto.
5903 * java/jcf-parse.c: Ditto.
5904 * java/resource.c: Ditto.
5905 * java/except.c: Ditto.
5906 * java/jvspec.c: Ditto.
5907 * java/jcf-write.c: Ditto.
5908 * java/jcf-path.c: Ditto.
5909 * java/gjavah.c: Ditto.
5910 * java/zextract.c: Ditto.
5911 * java/jcf-io.c: Ditto.
5912 * java/jcf.h: Ditto.
5913 * java/buffer.c: Ditto.
5914 * java/lang.c: Ditto.
5915 * java/parse-scan.y: Ditto.
5916 * java/lex.c: Ditto.
5917 * java/lex.h: Ditto.
5918 * cfgloopmanip.c: Ditto.
5919 * postreload-gcse.c: Ditto.
5920 * tree-ssa-loop-manip.c: Ditto.
5921 * postreload.c: Ditto.
5922 * tree-ssa-loop-ch.c: Ditto.
5926 * diagnostic.c: Ditto.
5928 * genoutput.c: Ditto.
5930 * cfghooks.c: Ditto.
5931 * cfgloopanal.c: Ditto.
5932 * objc/objc-act.c: Ditto.
5934 * genextract.c: Ditto.
5935 * genautomata.c: Ditto.
5936 * pretty-print.c: Ditto.
5938 * cgraphunit.c: Ditto.
5941 * haifa-sched.c: Ditto.
5942 * dominance.c: Ditto.
5944 * tree-ssa-loop-ivopts.c: Ditto.
5946 * mode-switching.c: Ditto.
5947 * modulo-sched.c: Ditto.
5949 * ipa-pure-const.c: Ditto.
5951 * fix-header.c: Ditto.
5953 * tree-stdarg.c: Ditto.
5954 * ipa-utils.c: Ditto.
5955 * loop-init.c: Ditto.
5956 * ipa-inline.c: Ditto.
5959 * alloc-pool.c: Ditto.
5960 * dwarf2out.c: Ditto.
5962 * genattrtab.c: Ditto.
5963 * tree-ssa-loop-ivcanon.c: Ditto.
5967 * fortran/gfortranspec.c: Ditto.
5969 * local-alloc.c: Ditto.
5970 * langhooks.c: Ditto.
5971 * function.c: Ditto.
5972 * tree-vectorizer.c: Ditto.
5974 * ipa-type-escape.c: Ditto.
5976 * tree-if-conv.c: Ditto.
5979 * tree-data-ref.c: Ditto.
5980 * loop-unroll.c: Ditto.
5981 * treelang/treetree.c: Ditto.
5984 * ggc-common.c: Ditto.
5986 * coverage.c: Ditto.
5988 * tree-cfgcleanup.c: Ditto.
5989 * tree-ssa-pre.c: Ditto.
5990 * cfgcleanup.c: Ditto.
5991 * loop-invariant.c: Ditto.
5993 * ipa-prop.c: Ditto.
5994 * print-tree.c: Ditto.
5995 * conflict.c: Ditto.
5996 * ggc-page.c: Ditto.
5997 * sched-deps.c: Ditto.
5998 * regclass.c: Ditto.
5999 * tree-object-size.c: Ditto.
6001 * bb-reorder.c: Ditto.
6002 * resource.c: Ditto.
6003 * var-tracking.c: Ditto.
6005 * df-problems.c: Ditto.
6006 * reg-stack.c: Ditto.
6009 * sched-rgn.c: Ditto.
6010 * tree-ssa-structalias.c: Ditto.
6011 * tree-ssa-reassoc.c: Ditto.
6012 * config/darwin-c.c: Ditto.
6013 * config/darwin.c: Ditto.
6014 * config/arm/arm.c: Ditto.
6016 * collect2.c: Ditto.
6019 2006-01-31 Nicolas Pitre <nico@cam.org>
6021 * arm.md (smaxsi3): Make aware of smax_m1.
6024 2006-01-31 Nathan Sidwell <nathan@codesourcery.com>
6026 * gcc/config/m68k/lb1sf68.asm: Use moveq to load small constants.
6028 2006-01-31 Richard Guenther <rguenther@suse.de>
6030 * doc/invoke.texi (-msselibm): Document.
6031 * target.h (expand_library_builtin): New target hook.
6032 * builtins.c (expand_builtin): Use expand_library_builtin.
6033 (default_expand_library_builtin): New function.
6034 * gcc.c (LINK_GCC_MATH_SPEC): Define.
6035 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
6036 (link_gcc_math_spec): Declare.
6037 (static_specs): Add link_gcc_math_spec.
6038 * expr.h (default_expand_library_builtin): Declare.
6039 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
6040 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
6041 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
6042 * config/i386/i386.opt (msselibm): New target option.
6043 * config/i386/i386.c (ix86_builtin_function_variants): New array.
6044 (ix86_init_sse_abi_builtins): New function.
6045 (ix86_expand_library_builtin): Likewise.
6046 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
6047 (override_options): Handle error conditions wrt -msselibm.
6048 (ix86_builtins): Add function codes for SSE2 ABI builtins.
6049 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
6050 * doc/extend.texi (__builtin_sse2_*): Document new target specific
6053 2006-01-31 Richard Guenther <rguenther@suse.de>
6054 Paolo Bonzini <bonzini@gnu.org>
6056 * doc/install.texi (--disable-libgcc-math): Document.
6058 2006-01-30 Marcin Dalecki <martin@dalecki.de>
6060 * expr.h (expand_normal): new inline function.
6061 * builtins.c: use it, use EXPAND_NORMAL explicitely.
6063 * dwarf2out.c: use it.
6068 * config/sparc/sparc.c: use it.
6069 * config/i386/i386.c: use it.
6070 * config/rs6000/rs6000.c: use it.
6071 * config/arm/arm.c: use it.
6072 * config/mips/mips.c: use it.
6073 * stmt.c: use it, use EXPAND_NORMAL explicitely.
6075 2006-01-30 Roger Sayle <roger@eyesopen.com>
6077 * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
6078 argv to the appropriate type.
6080 2006-01-30 Zdenek Dvorak <dvorakz@suse.cz>
6082 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
6085 2006-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6088 * config/s390/s390.c (struct machine_function): New flag
6089 decomposed_literal_pool_addresses_ok_p.
6090 (s390_reorg): Set it before final stage of literal pool transforms.
6091 (s390_decompose_address): Only accept displacements of the form
6092 (minus (label_ref ...) (label_ref ...)) if that flag is set.
6094 2006-01-30 Carlos O'Donell <carlos@codesourcery.com>
6096 * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
6097 the comparison routine return.
6099 2006-01-30 Michael Matz <matz@suse.de>
6101 * global.c (find_reg): Only evict for global regs.
6102 Take n_refs into account and dump more info.
6104 2006-01-30 J"orn Rennecke <joern.rennecke@st.com>
6107 * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
6108 (pragma_trap, pragma_nosave_low_regs): Likewise.
6109 (current_function_anonymous_args): Likewise.
6110 (sh_deferred_function_attributes): New variable.
6111 (sh_deferred_function_attributes_tail): Likewise.
6112 (print_operand): For '@', look up trap_exit attribute.
6113 (calc_live_regs): Look up trapa_handler attribute. For trapa
6114 handlers, save/restore fpscr, but don't do any other
6115 interrupt-specific saves.
6116 Don't save r0..r7 if the nosave_low_regs attribute is in effect.
6117 Fix check for partially saved registers to check for SHmedia.
6118 (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
6119 (sh_output_function_epilogue): Don't clear any of the removed
6121 (sh_insert_attributes): Don't check pragma_interrupt.
6122 Insert deferred attributes. Check that interrupt attribute is
6123 present for other attributes that require its presence.
6124 (sh_attribute_table): Add new attributes trapa_handler and
6126 (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6127 Don't check for pragma_interrupt. Don't store argument.
6128 * sh.h (pragma_interrupt, sp_switch): Don't declare.
6129 (sh_deferred_function_attributes): Declare.
6130 (sh_deferred_function_attributes_tail): Likewise.
6131 * sh.md (sp_switch_1): Add operand. Change generator caller.
6132 (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
6133 (*return_i): Don't use when trap_exit attribute is in effect.
6134 (*return_trapa): New insn pattern.
6136 * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
6137 setting c_target_objs and cxx_target_objs.
6138 * t-sh: Add rule for sh-c.o.
6140 2006-01-30 Richard Guenther <rguenther@suse.de>
6143 * gimplify.c (gimplify_target_expr): Handle easy cases
6144 without creating a temporary.
6146 2006-01-30 Nathan Sidwell <nathan@codesourcery.com>
6148 * vec.h (safe_grow): Remove duplicated line.
6150 2006-01-29 Diego Novillo <dnovillo@redhat.com>
6153 * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
6154 (expand_omp): ... here.
6155 (expand_omp_parallel): Only remove barriers for combined
6156 parallel+workshare constructs.
6158 2006-01-29 Eric Botcazou <ebotcazou@adacore.com>
6162 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
6163 * tree.c (build_qualified_type): Chain the new type to the original
6164 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
6165 a POINTER_TYPE or a REFERENCE_TYPE respectively.
6166 (build_pointer_type_for_mode): Only return unqualified types.
6167 (build_reference_type_for_mode): Likewise.
6169 2006-01-29 Gabriel Dos Reis <gdr@integgrable-solutions.net>
6171 * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
6172 * Makefile.in (CXX_COMPAT_WARN): Define.
6173 * configure: Regenerate.
6175 2006-01-29 Dorit Nuzman <dorit@il.ibm.com>
6178 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
6181 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6183 * toplev.c: Fix thinko.
6185 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6186 Marcin Dalecki <martin@dalecki.de>
6188 * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
6189 (push_srcloc): Use XNEW.
6190 (init_asm_output, default_get_pch_validity): Use XNEWVEC.
6192 2006-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
6194 * df-core.c (df_set_blocks): Deleted all variable.
6196 2006-01-28 Ian Lance Taylor <ian@airs.com>
6198 * cgraphunit.c (cgraph_assemble_pending_functions): Call
6199 cgraph_output_pending_asms.
6201 2006-01-28 Zack Weinberg <zackw@panix.com>
6203 * c.opt: Add -W(no-)overlength-strings.
6204 * doc/invoke.texi: Document it.
6205 * c-opts.c (c_common_handle_option): -pedantic implies
6206 -Woverlength-strings, if not explicitly disabled already.
6207 (c_common_post_options): -Woverlength-strings defaults to off, and
6208 is always off for C++.
6209 * c-common.c (fix_string_type): Issue warning about strings longer
6210 than is portable only if warn_overlength_strings. Rearrange code
6211 a little for clarity.
6212 * configure.in: Check for -Wno-overlength-strings as well before
6213 enabling -pedantic in stage 1.
6214 * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
6215 (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
6217 * genconditions.c (write_header, write_one_condition)
6218 (write_conditions, write_writer): Consolidate very long strings
6219 that were broken up to fit in C89 portable limit. Don't use
6220 printf when fputs will do.
6222 2006-01-28 Adam Nemet <anemet@caviumnetworks.com>
6224 * combine.c (simplify_comparison <AND>): Check
6225 TRULY_NOOP_TRUNCATION before start using a subreg.
6227 * config/mips/mips.md (*branch_zero<mode>,
6228 *branch_zero<mode>_inverted, *branch_equality<mode>,
6229 *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
6230 Remove mode check from comparisons.
6232 2006-01-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6234 * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
6236 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
6238 * expmed.c (const_mult_add_overflow_p): Remove.
6239 * expr.h: Remove the prototype for const_mult_add_overflow_p.
6241 * recog.c (validate_replace_rtx_subexp): Remove.
6242 * recog.h: Remove the prototype for
6243 validate_replace_rtx_subexp.
6245 * integrate.h: Remove the prototype for
6246 copy_decl_for_inlining.
6247 * rtl.h: Remove the prototype for mark_constant_function.
6248 * tree-vectorizer.h: Remove the prototype for
6249 vect_strip_conversion.
6251 * modulo-sched.c (create_partial_schedule,
6252 free_partial_schedule, reset_partial_schedule): Make them
6255 * hooks.c (hook_bool_rtx_int_false): Remove.
6256 * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
6258 2006-01-28 David Edelsohn <edelsohn@gnu.org>
6260 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
6261 and -mlong-double-128 are incompatible.
6262 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
6263 * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
6264 (TARGET_LIBGCC2_CFLAGS): Define.
6265 * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
6266 (TARGET_LIBGCC2_CFLAGS): Same.
6267 * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
6269 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
6272 * c-typeck.c (build_binary_op): Perform implicit casts of
6273 operands before shortening them.
6275 * cfgloopmanip.c (split_loop_bb): Remove.
6276 * cfgloop.h: Remove the prototype for split_loop_bb.
6278 * cfgloop.c (flow_loop_outside_edge_p): Remove.
6279 * cfgloop.h: Remove the prototype for
6280 flow_loop_outside_edge_p.
6282 * emit-rtl.c (init_virtual_regs): Make it static.
6283 * function.h: Remove the prototype for init_virtual_regs.
6285 * recog.c (peephole2_optimize): Make it static.
6286 * recog.h: Remove the prototype for peephole2_optimize.
6288 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
6290 * df-scan.c (df_record_entry_block_defs): Check if
6291 INCOMING_RETURN_ADDR_RTX is defined.
6293 2006-01-27 Daniel Berlin <dberlin@dberlin.org>
6294 Kenneth Zadeck <zadeck@naturalbridge.com>
6296 PR rtl-optimization/24762
6297 * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
6298 * targhooks.c (hook_void_bitmap): New hook prototype.
6299 * targhoohs.h (hook_void_bitmap): Ditto.
6300 * bitmap.h (bitmap_head_def): Moved to coretypes.h.
6301 * coretypes.h (bitmap_head_def): Moved from bitmap.h.
6302 * target.h (live_on_entry): New function pointer.
6303 * df-scan.c (df_all_hard_regs): Removed.
6304 (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
6305 (df_scan_free_internal): Added df->entry_block_defs.
6306 (df_scan_alloc): Ditto.
6307 (df_scan_dump): Ditto.
6308 (df_uses_record): Plumbed flag field properly thru calls.
6309 Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
6310 This part fixes PR24762.
6311 (df_bb_refs_record): Added code to make the frame and arg
6312 pointers live in EH blocks.
6313 (df_refs_record): Added call to df_record_entry_block_defs.
6314 (df_record_entry_block_defs): New function.
6315 * df-core.c: Added comments to describe new artifical defs.
6316 * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
6317 (entry_block_defs): New field in struct df.
6318 (df_all_hard_regs): Deleted.
6319 * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
6320 * df-problems.c (df_ru_bb_local_compute_process_def):
6321 Added code to handle artifical defs in the entry to a function.
6322 (df_ru_bb_local_compute): Ditto.
6323 (df_rd_bb_local_compute_process_def): Ditto.
6324 (df_rd_bb_local_compute): Ditto.
6325 (df_lr_bb_local_compute): Ditto.
6326 (df_ur_bb_local_compute): Ditto.
6327 (df_urec_bb_local_compute): Ditto.
6328 (df_chain_create_bb): Ditto.
6329 (df_ur_local_finalize): Removed entry.
6330 (df_urec_init): Ditto.
6331 (df_urec_local_finalize): Ditto.
6332 (df_ri_bb_compute): Added detection of last use of pseudos.
6333 * Makefile.in (df-scan.o): Updated dependencies.
6334 * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
6335 * config/mips/mips.c (mips_set_live_on_entry): Added.
6336 * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
6338 * dce.c (marked_insn_p): Added code to handle artifical defs.
6340 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
6342 * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
6344 (_mm_cvtsi128_si64): Likewise.
6345 (_mm_cvtsd_si64): Likewise.
6346 (_mm_cvttsd_si64): Likewise.
6347 (_mm_cvtsi64_sd): Likewise.
6348 (_mm_cvtsi64_si128): Likewise.
6349 * config/i386/mmintrin.h (_m_from_int64): Likewise.
6350 (_mm_cvtsi64_m64): Likewise.
6351 (_m_to_int64): Likewise.
6352 (_mm_cvtm64_si64): Likewise.
6353 * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
6354 (_mm_cvttss_si64): Likewise.
6355 (_mm_cvtsi64_ss): Likewise.
6356 (_mm_cvtss_f32): Likewise.
6358 2006-01-27 Carlos O'Donell <carlos@codesourcery.com>
6360 * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
6361 for pragma redefine_extname.
6363 2006-01-27 Jakub Jelinek <jakub@redhat.com>
6366 * libgcc-std.ver: Add GCC_4.1.0 symbol version.
6367 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
6368 -mno-minimal-toc to previous content.
6369 (bispecs): Remove goal.
6370 * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
6371 * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
6372 compatibility aliases on powerpc-*-*gnu*.
6373 * config/rs6000/libgcc-ppc-glibc.ver: New file.
6374 * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
6375 libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
6376 (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
6377 (ldblspecs): New goal.
6378 * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
6379 * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
6381 * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
6382 L_sf_to_tf or L_df_to_tf is defined.
6384 2006-01-27 David Edelsohn <edelsohn@gnu.org>
6385 Alan Modra <amodra@bigpond.net.au>
6388 * config/rs6000/linux.h (POWERPC_LINUX): Define.
6389 * config/rs6000/linux64.h (POWERPC_LINUX): Define.
6390 * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
6391 * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
6392 * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
6393 * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
6394 (rs6000_override_options): Initialize rs6000_ieeequad.
6395 Initialize TFmode format to ibm_extended_format if not
6397 (rs6000_handle_option): Accept -mabi= ibmlongdouble and
6399 (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
6400 (rs6000_return_in_memory): Only return IEEEQUAD in memory.
6401 (function_arg_advance): IBM long double passed in two FPRs, not
6403 (function_arg): IBM long double passed in FPRs.
6404 (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
6405 (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
6406 Only multireg GPR aligned.
6407 (rs6000_init_libfuncs): Enable IBM long double functions if not
6409 (rs6000_generate_compare): Use IBM long double compare if not
6411 * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
6412 (TARGET_IEEEQUAD): Define.
6413 (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
6414 not TARGET_IEEEQUAD.
6415 * config/rs6000/rs6000.md: Enable TFmode patterns if
6417 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
6418 * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
6419 and -mlong-double-128 are incompatible.
6420 * doc/invoke.texi (-mabi): Collect options together. Add
6421 ibmlongdouble and ieeelongdouble.
6423 2006-01-27 Richard Sandiford <richard@codesourcery.com>
6425 * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
6427 * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
6428 * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
6429 (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
6430 * rtl.h (rtunion_def): Remove rt_ptr.
6432 (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
6433 (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
6434 * config/i386/winnt.c (i386_pe_mark_dllexport)
6435 (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
6437 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
6439 * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
6441 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
6445 * gthr-dce.h: Do not gthrw-ify pthread_once_init,
6446 pthread_key_delete. From John David Anglin. gthrw-ify
6447 pthread_getunique_np only if it it's not a macro. Delete
6449 (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
6450 __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
6451 __gthread_objc_condition_signal, __gthread_key_delete): Add
6452 "__attribute__ ((__unused__))" to unused arguments.
6453 (__gthread_recursive_mutex_init_function): Add missing return.
6454 * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
6455 gthr-posix95.h: Use macro-based approach for name redirection
6456 on targets missing weakref.
6458 2006-01-26 Zack Weinberg <zackw@panix.com>
6460 * genconditions.c (write_header): In generated code, #ifdef out
6461 all includes and fake declarations, except includes of bconfig.h
6462 and system.h, unless GCC_VERSION >= 3001. Do not include
6463 gensupport.h in any case.
6464 (write_conditions): Generate a definition of struct c_test. Add
6465 a comment to the generated #endif.
6466 (write_one_condition): Escape backslashes in string too.
6467 (write_writer): Generated code must escape backslashes and quote
6468 marks (but not newlines) in the strings it writes.
6469 * Makefile.in (build/gencondmd.o): Update dependencies.
6471 2006-01-26 Steve Ellcey <sje@cup.hp.com>
6474 * Makefile.in (insn-automata.o): Add header file dependencies.
6475 * genautomata.c: Add includes.
6477 2006-01-26 Steve Ellcey <sje@cup.hp.com>
6480 * Makefile.in (insn-automata.o): Add -Wno-error flag.
6482 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
6484 * configure.ac: Expect target tools paths to be passed from the toplevel
6485 and wrap the detection into AS_SET_VAR_IF. Extract side-effects out of
6487 * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
6489 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
6492 * c.opt (Wpointer-sign): Init to -1.
6493 * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
6494 OPT_pedantic, to 0 otherwise.
6495 * doc/invoke.texi: Update.
6497 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
6499 * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
6500 constants provided by 80387 instructions in the destination mode.
6502 2006-01-26 Richard Guenther <rguenther@suse.de>
6503 Andrew Pinski <pinskia@physics.uc.edu>
6506 partial PR tree-opt/17064
6507 * tree-ssa-structalias.c (intra_create_variable_infos):
6508 Create heap variables for incoming parameters if
6509 flag_argument_noalias > 1.
6510 (find_what_p_points_to): Look through default defs of
6513 2006-01-26 Jeff Law <law@redhat.com>
6516 * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
6517 with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
6518 within the VR_RANGE, use the VR_RANGE as the result, not the
6520 (adjust_range_with_scev): Reject ranges from SCEV which are out of
6521 bounds for the type.
6523 2006-01-26 Daniel Berlin <dberlin@dberlin.org>
6525 * tree-ssa-alias.c (maybe_create_global_var): Change
6526 subvar walking to an assertion that we don't have subvar'd variables.
6528 2006-01-26 Andrew Pinski <pinskia@physics.uc.edu>
6531 * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
6532 Use a new variable, inner. PARM_DECLs are always non-weak.
6534 2006-01-26 Shantonu Sen <ssen@opendarwin.org>
6536 * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
6539 2006-01-26 Adam Nemet <anemet@caviumnetworks.com>
6541 * config/mips/mips.md (*clear_upper32): New combiner pattern.
6543 2006-01-26 Richard Earnshaw <richard.earnshaw@arm.com>
6545 * arm.md (smaxsi3, sminsi3): Convert to define_expand.
6546 (smax_insn, smin_insn, smax_0, smin_0): New.
6548 2006-01-26 Hans-Peter Nilsson <hp@axis.com>
6551 * config/cris/cris.c (cris_order_for_addsi3): New function.
6552 * config/cris/cris-protos.h: Prototype it.
6553 * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
6554 (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
6555 (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
6556 (split for "op.S1 [rx=rx+i],ry (swapped)")
6557 (split for "op(s|u).S1 [rx=rx+i],ry")
6558 (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
6559 Apply cris_order_for_addsi3 when generating addsi3 insns.
6561 2006-01-25 Diego Novillo <dnovillo@redhat.com>
6563 * tree.h (TREE_RANGE_CHECK): Fix range predicate.
6564 (TREE_BLOCK): Add call to EXPR_CHECK.
6566 2006-01-25 Diego Novillo <dnovillo@redhat.com>
6569 * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
6570 * tree-pretty-print.c (dump_omp_clause): Extract from ...
6571 (dump_omp_clauses): ... here.
6572 (dump_generic_node): Handle OMP_CLAUSE.
6573 * tree.c (omp_clause_num_ops): New.
6574 (omp_clause_code_name): New.
6575 (tree_code_size): Handle OMP_CLAUSE.
6576 (tree_size): Likewise.
6577 (make_node): Document handling of OMP_CLAUSE.
6578 (tree_node_structure): Handle OMP_CLAUSE.
6579 (omp_clause_check_failed): New.
6580 (omp_clause_range_check_failed): New.
6581 (omp_clause_operand_check_failed): New.
6582 (build_omp_clause): New.
6583 (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
6584 * tree.h (enum omp_clause_code): Declare.
6585 (OMP_CLAUSE_SUBCODE_CHECK): Define.
6586 (OMP_CLAUSE_RANGE_CHECK): Define.
6587 (OMP_CLAUSE_ELT_CHECK): Define.
6588 (omp_clause_check_failed): Declare.
6589 (omp_clause_operand_check_failed): Declare.
6590 (omp_clause_range_check_failed): Declare.
6591 (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
6592 (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
6593 (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
6594 (OMP_CLAUSE_LASTPRIVATE): Likewise.
6595 (OMP_CLAUSE_IF_EXPR): Likewise.
6596 (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
6597 (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
6598 (OMP_CLAUSE_REDUCTION_CODE): Likewise.
6599 (OMP_CLAUSE_REDUCTION_INIT): Likewise.
6600 (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
6601 (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
6602 Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
6603 (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
6604 (OMP_CLAUSE_DEFAULT_KIND): Likewise.
6605 (OMP_CLAUSE_CODE): Define.
6606 (OMP_CLAUSE_SET_CODE): Define.
6607 (OMP_CLAUSE_CODE): Define.
6608 (OMP_CLAUSE_OPERAND): Define.
6609 (struct tree_omp_clause): Declare.
6610 (union tree_node): Add field 'omp_clause'.
6611 * treestruct.def (TS_OMP_CLAUSE): Define.
6612 * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
6613 OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
6614 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
6615 OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
6616 OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
6617 OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
6618 (OMP_CLAUSE): Define.
6619 * print-tree.c (print_node): Handle OMP_CLAUSE.
6620 * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
6621 * c-typeck.c: Likewise.
6622 * gimplify.c: Likewise.
6623 * c-omp.c: Likewise.
6624 * tree-nested.c: Likewise.
6625 * tree-inline.c: Likewise.
6626 * c-parser.c: Likewise.
6627 * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
6630 2006-01-25 Roger Sayle <roger@eyesopen.com>
6632 PR rtl-optimization/25703
6633 * combine.c (try_combine): Handle zero_extract and strict_low_part
6634 of non-lowpart SUBREGs for constant reg_subword_p set optimization.
6636 2006-01-25 Peter Bergner <bergner@vnet.ibm.com>
6638 * global.c: Fix comment typos.
6640 2006-01-25 Andrew Pinski <pinskia@physics.uc.edu>
6643 * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
6644 Use output_addr_const instead of assemble_name.
6646 2006-01-25 Paolo Bonzini <bonzini@gnu.org>
6648 * Makefile.in (sched-vis.o): Update dependencies.
6649 * haifa-sched.c (sched_finish): Clear current_sched_info.
6650 * cfg.c (dump_bb_info): New, split from dump_flow_info.
6651 (dump_flow_info): Call it.
6652 * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
6654 * basic-block.h (dump_bb_info): Declare.
6655 * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
6656 option, and apply options only for dump files whose TDF_RTL,
6657 TDF_TREE, or TDF_IPA bits match.
6658 * rtl.h: Declare new functions exported from sched-vis.c.
6659 * sched-vis.c: Enable also if scheduling is not used.
6660 (print_value): Print the mode of registers if not inside scheduling.
6661 (print_insn): Make it work outside the scheduler. Beautify the output
6663 (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
6665 2006-01-25 Richard Sandiford <richard@codesourcery.com>
6667 * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
6668 * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
6669 a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
6670 depending on the value of CONSTANT_POOL_ADDRESS_P.
6671 * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
6673 * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
6674 rather than SYMBOL_REF_DECL.
6675 (rtx_constant_pool): Remove const_rtx_sym_htab.
6676 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
6677 (init_varasm_status): Don't initialize const_rtx_sym_htab.
6678 (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
6679 Remove handling of const_rtx_sym_htab.
6680 (find_pool_constant): Delete.
6681 (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
6682 rather than find_pool_constant.
6683 (get_pool_constant_for_function): Delete.
6684 (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
6686 * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
6687 (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
6688 (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
6689 (SYMBOL_REF_CONSTANT): New macro.
6690 (get_pool_constant_for_function): Delete.
6691 * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
6692 rather than SYMBOL_REF_DECL.
6693 (i386_pe_mark_dllimport): Likewise.
6694 * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
6695 rather than SYMBOL_REF_DECL.
6696 * config/darwin.c (machopic_indirect_data_reference): Likewise.
6697 (machopic_indirect_call_target): Likewise.
6699 2006-01-25 Eric Botcazou <ebotcazou@adacore.com>
6701 * flow.c (delete_noop_moves): Add missing EOL to dump message.
6703 2006-01-25 Richard Sandiford <richard@codesourcery.com>
6705 * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
6707 2006-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
6709 * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
6711 2006-01-24 David Daney <ddaney@avtrex.com>
6714 * configure.ac (enable_tls): New enable option.
6715 (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
6716 * configure: Regenerate.
6717 * doc/install.texi (--enable-tls): Document new option.
6718 (--disable-tls): Ditto.
6720 2006-01-24 Richard Henderson <rth@redehat.com>
6722 * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
6723 * alias.c (true_dependence): Respect it.
6724 (canon_true_dependence, write_dependence_p): Likewise.
6725 * builtins.c (get_builtin_sync_mem): Set it.
6727 2006-01-25 Zdenek Dvorak <dvorakz@suse.cz>
6729 * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
6732 2006-01-24 DJ Delorie <dj@redhat.com>
6734 * expmed.c (store_bit_field): Don't arbitrarily deny using insv
6735 for storing constants in single-bit bitfields.
6737 2006-01-25 Ben Elliston <bje@au.ibm.com>
6739 * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
6741 2006-01-24 Andrew Pinski <pinskia@physics.uc.edu>
6744 * tree-ssa-pre.c (phi_translate): Return NULL
6745 for AGGREGATE_TYPE's.
6747 2006-01-24 Zack Weinberg <zackw@panix.com>
6749 * genautomata.c (process_state_for_insn_equiv_partition):
6750 Use xcalloc for insn_arcs_array.
6751 * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
6752 (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
6754 2006-01-24 Richard Henderson <rth@redhat.com>
6756 * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
6759 2006-01-23 Paolo Bonzini <bonzini@gnu.org>
6761 PR rtl-optimization/25890
6762 PR rtl-optimization/25905
6763 * combine.c (expand_compound_operation, expand_field_assignment):
6764 Fail if the bitfield's final position is out of bounds.
6766 2006-01-24 Ian Lance Taylor <ian@airs.com>
6769 * cgraphunit.c (cgraph_output_in_order): Don't clear
6770 cgraph_asm_nodes until after asm strings have been output.
6772 2006-01-23 Adam Nemet <anemet@caviumnetworks.com>
6774 * fix-header.c (read_scan_file): Add new parameter imultilib when
6775 calling register_include_chains.
6777 2006-01-23 Diego Novillo <dnovillo@redhat.com>
6779 * omp-low.c: Update documentation.
6781 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
6782 Daniel Berlin <dberlin@dberlin.org>
6786 * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
6787 return from the function.
6789 2006-01-22 Zack Weinberg <zackw@panix.com>
6791 * rtl.def (match_code): Add second argument.
6792 * genpreds.c (write_extract_subexp): New function.
6793 (write_match_code): Add path argument. Use write_extract_subexp.
6794 (write_predicate_expr): Pass path to write_match_code.
6795 (mark_mode_tests): MATCH_CODE applied to a subexpression does
6796 not perform a mode test.
6797 * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
6798 a subexpression does not constrain the top-level code set.
6799 * read-rtl.c (read_rtx_variadic): New function.
6800 (read_rtx_1): Use it; allow AND and IOR to be variadic.
6801 * doc/md.texi: Document new notation.
6802 * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
6803 (cmpsi_operand): ... here, using new notation.
6805 2006-01-22 Zack Weinberg <zackw@panix.com>
6807 * varray.c: Remove GENERATOR_FILE #ifdefs.
6809 2006-01-22 Zack Weinberg <zackw@panix.com>
6811 * genautomata.c (output_reserved_units_table): Emit nothing if
6812 description->query_units_num is zero. Remove extra blank line.
6813 (output_cpu_unit_reservation_p): Short circuit
6814 if description->query_units_num is zero.
6816 2006-01-22 Zack Weinberg <zackw@panix.com>
6818 * genattrtab.c: Don't include genattrtab.h. Define ATTR_NONE
6819 and ATTR_SPECIAL (from genattrtab.h). Don't define num_dfa_decls
6820 nor any of the random handful of variables that used to be necessary
6821 when this program was linked with rtlanal.o. Prune set of forward
6822 function declarations.
6823 (struct attr_desc): Remove static_p field.
6824 (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
6825 (check_attr_test, make_internal_attr, make_numeric_value): Make static.
6826 (attr_string): Do not read the character one past the length of
6828 (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
6829 (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
6830 (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
6831 (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
6832 (make_automaton_attrs): New.
6833 (main): Do not call into genautomata. Call local gen_bypass
6834 and gen_insn_reserv as appropriate. Call make_automaton_attrs.
6835 Remove special case for insn_alts.
6836 * genautomata.c: Include gensupport.h; not genattrtab.h nor
6837 varray.h (leftover from previous change). Prune set of forward
6838 function declarations. Remove state_alts fields from all
6839 structures. Remove state_alts_table from struct automaton.
6840 Make everything except main static. Do not maintain num_dfa_decls.
6841 Do not maintain state_alts fields of various structures.
6842 (process_decls): Don't validate condexp for dm_insn_reserv decls.
6843 (add_arc): Remove state_alts argument. All callers updated.
6844 (output_reserved_units_table): Emit #ifdef here...
6845 (output_tables): ...not here. Don't generate state_alts tables.
6846 (expand_automata): Don't generate attributes.
6847 (write_automata): Don't generate state_alts functions.
6848 (main): New function.
6849 (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
6850 (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
6851 (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
6852 (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
6853 (BYPASS_P_FUNC_NAME, output_state_alts_table)
6854 (output_automata_list_state_alts_code, output_internal_state_alts_func)
6855 (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
6856 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
6858 * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
6859 * genattrtab.h: Delete file.
6860 * Makefile.in (OBJS-common): Add insn-automata.o.
6861 (insn-automata.o): New rule.
6862 (simple_generated_c): Add insn-automata.c.
6863 (build/genattrtab.o, build/genautomata.o): Update dependencies.
6864 (genprogmd): Add automata.
6865 (build/genattrtab): Needs no extra objects nor libraries.
6866 (build/genautomata): Needs build/vec.o and -lm.
6868 2006-01-22 Zack Weinberg <zackw@panix.com>
6870 * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
6871 (output_dfa_max_issue_rate, locked_states_num): Delete.
6872 (struct automaton): Add locked_states field.
6873 (output_dead_lock_vect): Save number of locked states in
6874 automaton->locked_states. If it is zero, don't print anything.
6875 (output_max_insn_queue_index_def): Define max_insn_queue_index const.
6876 (output_internal_dead_lock_func): Only test the dead_lock_vect
6877 for automata that have locked states.
6878 (output_statistics): Always print the number of locked states for
6879 each automaton. Calculate total number of locked states here.
6880 (write_automata): Don't call output_dfa_max_issue_rate.
6881 * genattrtab.c: Define length_unit_log as a const variable.
6882 * genattr.c: Don't emit MAX_DFA_ISSUE_RATE. Declare
6883 max_insn_queue_index const.
6884 * final.c (length_unit_log): Declare const.
6885 * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
6887 2006-01-22 Zack Weinberg <zackw@panix.com>
6889 * genautomata.c: Include vec.h, not varray.h.
6890 Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
6891 VLA_HWINT_ macros. Change vla_hwint_t to a typedef for
6892 VEC(vect_el_t,heap) *. Convert all uses of VLA_* macros to
6893 VEC_* macros operating on appropriately typed vectors, or to
6894 malloced arrays when the size is known in advance. Const-ify
6895 many char* variables and function arguments. No functional changes.
6896 * Makefile.in (build/varray.o): Delete rule.
6897 (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
6898 (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
6900 2006-01-22 Zack Weinberg <zackw@panix.com>
6902 * gensupport.c: Define get_insn_name and record_insn_name here.
6903 (read_md_rtx): Call record_insn_name as appropriate.
6904 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
6905 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
6906 * genpreds.c, genrecog.c: Don't define get_insn_name nor
6908 * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
6909 (BUILD_VARRAY): Delete.
6910 (genprognormal): Rename genprogmd. Fold in all programs from
6911 genprognoprint; also attrtab.
6912 (build/genattrtab): Just mention genautomata.o and varray.o.
6913 Reorganize a bit, add comments to make the categories clearer.
6915 2006-01-22 Zack Weinberg <zackw@panix.com>
6917 * genconditions.c (condition_table, add_condition): Delete.
6918 (write_conditions): Don't emit n_insn_conditions nor
6919 insn_elision_unavailable. Issue the gcc version #ifdef here,
6920 inside the table, with no #else clause ...
6921 (write_header): ...not here.
6922 (write_writer): New function.
6923 (main): Don't initialize condition_table. Use add_c_test.
6925 * gensupport.c (init_md_reader_args_cb): Handle multiple input
6926 files on the command line.
6927 (maybe_eval_c_test): Don't check insn_elision_unavailable.
6928 Return -1 if there is no entry in the table, don't abort.
6929 (add_c_test, traverse_c_tests): New functions.
6930 * gensupport.h (insn_elision_unavailable, insn_conditions)
6931 (n_insn_conditions): Delete declarations.
6932 (add_c_test, traverse_c_tests): Declare.
6933 * read-rtl.c: Include gensupport.h.
6934 (read_conditions): New function.
6935 (read_rtx): If read_rtx_1 returns 0, treat as EOF.
6936 (read_rtx_1): If we get EOF when we were looking for an initial
6937 open paren, return 0. Call read_conditions when appropriate.
6938 * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
6939 dummy-conditions.o. Eliminate references to insn-conditions.o,
6940 or change them to build/gencondmd.o, as appropriate. Remove
6941 insn-constants.h from $(simple_generated_h) and insn-conditions.c
6942 from $(simple_generated_c). For all files remaining in those
6943 two lists, add insn-conditions.md to the generator command line.
6944 Give insn-constants.h/s-constants their own rules. Add rules
6945 for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
6946 (build/read-rtl.o): Depend on gensupport.h.
6947 (genprognormal): Include preds.
6948 (genprogearly): Rename genprognoprint; only difference is now that
6949 they don't link with $(BUILD_PRINT).
6950 * dummy-conditions.c: Delete.
6952 2006-01-22 Zack Weinberg <zackw@panix.com>
6954 * genextract.c: Don't include insn-config.h. Do include vec.h.
6955 Declare vectors of int, char, and locstr.
6956 (locstr): New typedef.
6957 (struct extraction): Make all array fields into bare pointers.
6958 (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
6959 (insn_code_number): Delete.
6960 (accum_extract): New struct.
6961 (VEC_safe_set_locstr, VEC_char_to_string): New functions.
6962 (gen_insn): Take insn_code_number as an argument. Use an
6963 accum_extract structure instead of loading data directly into
6964 a struct extraction, and having to know how big it might get.
6965 (walk_rtx): Operate entirely on an accum_extract structure.
6966 (print_path): Avoid unnecessary use of printf.
6967 (print_header): New function, split out of main. Distinguish
6968 more carefully between an unrecognizable insn and an insn that
6969 has the code number of a define_expand.
6970 (main): Pass insn_code_number to gen_insn. Call print_header
6971 only after parsing. Avoid unnecessary use of printf.
6972 * Makefile.in (build/vec.o): New rule.
6973 (build/genextract): Depend on build/vec.o.
6974 (build/genextract.o): Don't depend on insn-config.h.
6976 2006-01-22 Zack Weinberg <zackw@panix.com>
6978 * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
6979 $(RUN_GEN). Use pattern rules to factor out as much boilerplate as
6980 practical. Eliminate per-generator-program link rules.
6982 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
6985 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
6986 with a call expr to ...
6987 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
6989 2006-01-23 Richard Guenther <rguenther@suse.de>
6991 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
6992 before make_edge with conditional EDGE_TRUE_VALUE.
6994 2006-01-23 Steven Bosscher <stevenb.gcc@gmail.com>
6995 Jan Hubicka <jh@suse.cz>
6996 Richard Guenther <rguenther@suse.de>
6998 PR rtl-optimization/25654
6999 * cfgexpand.c (aggregate_contains_union_type): New function.
7000 (add_alias_set_conflicts): Call it. Make sure to add conflicts
7001 for structure variables that contain a union type.
7003 2006-01-23 Richard Sandiford <richard@codesourcery.com>
7005 * gengtype.c (new_structure): Return the structure.
7006 (create_option): Add an extra "next" argument.
7007 (create_field): New function.
7008 (adjust_field_rtx_def): Use create_option and create_field.
7009 Remove a now-unnecessary call to find_structure.
7010 (adjust_field_tree_def): Likewise.
7011 (note_yacc_type): Remove an unnecessary call to find_structure.
7012 * gengtype.h (new_structure): Return the structure.
7013 (create_option): Add an extra argument.
7014 * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
7015 (option): Adjust calls to create_option.
7017 2006-01-22 David Edelsohn <edelsohn@gnu.org>
7019 * config/rs6000/aix.h (STACK_BOUNDARY): Define.
7021 2006-01-22 Paul Brook <paul@codesourcery.com>
7022 Peter Barada <peter@the-baradas.com>
7024 * config/m68k/m68k.md: Add Coldfire FPU support.
7025 Define FP mode macro and associated attributes.
7026 Use it for float mode patterns.
7027 * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
7028 (LIBCALL_VALUE): Use m68k_libcall_value.
7029 * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
7030 (m68k_function_value): Ditto.
7031 (emit_move_sequence): Ditto.
7032 * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
7033 * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
7034 * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
7035 (MULTILIB_EXCEPTIONS): Ditto.
7036 * config/m68k/m68k.opt: Add mcfv4e.
7037 * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
7038 (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
7039 (m68k_output_function_prologue): Save ColdFire FPU registers.
7040 (m68k_output_function_epilogue): Restore ColdFire FPU registers.
7041 (force_mode, fp_reg_operand, emit_move_sequence): New functions.
7042 (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
7043 ColdFire FPU registers.
7044 (m68k_libcall_value, m68k_function_value): New functions.
7045 * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
7046 (LIBCALL_VALUE): Use m68k_libcall_value.
7047 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
7048 (MASK_COLDFIRE): Add MASK_CFV4E.
7049 (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
7050 (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
7051 (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
7052 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
7053 (GO_IF_LEGITIMATE_ADDRESS): Use it.
7054 (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
7055 * doc/invoke.tex: Document -mcfv4e on m68k.
7057 2006-01-22 Ranjit Mathew <rmathew@gcc.gnu.org>
7059 * doc/contribute.texi: Change CVS to SVN and update the corresponding
7062 2006-01-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
7065 * c-opts.c (c_common_handle_option): Don't include
7066 -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
7067 * doc/invoke.texi (C++ Dialect Options): Document that
7068 -Wnon-virtual-dtor is no longer included in -Wall.
7070 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
7072 * gcov.c (print_version), gcov-dump.c (print_version),
7073 mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
7076 2006-01-21 Kenneth Zadeck <zadeck@naturalbridge.com>
7078 * df-scan.c (problem_SCAN): Added NULL reset function.
7079 (df_scan_reset_blocks): Added code to call reset block function
7080 (df_bb_refs_delete) Fixed comment.
7081 (df_insn_refs_delete): Made tolerant of deleting non existent info
7082 for dataflow problems that need to be reset.
7083 * df-core.c (df_set_blocks): Ditto.
7084 * df.h (struct df_problem): Added reset_fun.
7085 * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
7086 problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
7087 (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
7088 functions to clear out all references to def-use or use-def chains.
7090 2006-01-21 Ben Elliston <bje@au.ibm.com>
7092 * varasm.c (assemble_real): Initialise data array.
7094 2006-01-20 Paul Brook <paul@codesourcery.com>
7096 Merge from csl-arm-branch.
7097 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
7098 * config/arm/arm.md (movdi): Force operands[1] to a register
7099 if we have a non-register source.
7100 (*arm_movdi, *movdf_soft_insn): Require that one of the
7101 operands be a register.
7102 * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
7103 * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
7105 2006-01-20 DJ Delorie <dj@redhat.com>
7107 * varasm.c (initialize_constant_valid_p): Allow pointers
7108 initialized from integer constants of lesser precision.
7109 (output_constant): Allow non-int-sized pointer modes to be
7110 initialized from integer constants.
7112 2006-01-20 Joseph S. Myers <joseph@codesourcery.com>
7115 * cppdefault.h (struct default_include): Add multilib flag.
7116 * cppdefault.c (cpp_include_defaults): Set it.
7117 * c.opt (-imultilib): New option.
7118 * c-opts.c (imultilib): New.
7119 (c_common_handle_option): Handle -imultilib.
7120 (c_common_post_options): Likewise.
7121 * c-incpath.c (add_standard_paths, register_include_chains):
7123 * c-incpath.h (register_include_chains): Add extra parameter.
7124 * gcc.c (do_spec_1): Generate -imultilib option.
7125 (The Specs Language): Update %I description.
7126 (process_command): Update copyright notice.
7127 * doc/cppopts.texi (-imultilib): Document.
7128 * doc/invoke.texi (-imultilib): Include in option summary.
7129 (%I): Update specs documentation.
7131 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
7133 * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
7135 2006-01-20 Richard Sandiford <richard@codesourcery.com>
7137 * stmt.c (case_bit_test_cmp): Stabilize the sort using code
7140 2006-01-20 Richard Guenther <rguenther@suse.de>
7141 Steven Bosscher <stevenb.gcc@gmail.com>
7143 PR rtl-optimization/24626
7144 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
7145 EDGE_TRUE_VALUE if in RTL mode.
7148 2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
7149 * cfgrtl.c (rtl_verify_flow_info_1): Fix.
7151 2006-01-20 Dirk Mueller <dmueller@suse.com>
7154 * c-parser.c (c_parser_if_body): Use build_empty_stmt()
7155 instead of a special NOP marker.
7156 * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
7157 NOP marker handling.
7158 * c-common.h (empty_body_warning): Add forward declaration.
7159 * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
7160 Now uses IS_EMPTY_STMT() instead of special NOP markers.
7162 2006-01-20 Paul Brook <paul@codesourcery.com>
7164 * Makefile.in (lang_checks): Keep going if mkdir fails.
7166 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
7168 * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
7169 be able to clean out basic block when not necessary.
7170 (df_scan_free): Fixed to properly delete information if df is
7171 unused before calling df_finish.
7172 (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
7173 df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
7175 (df_bb_refs_delete): New function.
7176 (df_refs_delete): Moved per block code to df_bb_refs_delete.
7177 * df-core.c (df_set_blocks): Added code to properly clean out
7178 unused blocks if they are not part of the blocks to consider.
7179 Added additional null check.
7180 (df_compact_blocks): Added basic block parameter to free_bb_fun to
7181 be able to clean out basic block when not necessary
7182 * df.h (df_free_bb_function): Ditto.
7183 (df_bb_refs_delete): New function.
7184 * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
7185 df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
7186 basic block parameter to be able to clean out basic block when not
7188 (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
7189 (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
7190 Fixed to properly delete information if df is unused before
7193 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
7195 PR rtl-optimization/25799
7196 * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
7197 Corrected confluence operator to remove bits from op2 before oring
7198 with op1 rather than removing bits from op1.
7199 (df_ru_transfer_function): Corrected test on wrong bitmap which
7200 caused infinite loop. Both of these problems were introduced in
7201 the dataflow rewrite.
7203 2006-01-19 DJ Delorie <dj@redhat.com>
7205 * reload1.c (find_reload_regs): Note the details of reload
7206 failures in the dump file.
7207 (spill_failure): Likewise.
7209 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
7211 * loop-iv.c: Include df.h and hashtab.h.
7212 (enum iv_grd_result): New enum.
7213 (DF_REF_IV, DF_REF_IV_SET): New macros.
7214 (struct biv_entry): New.
7215 (df, bivs): New global variables.
7216 (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
7217 assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
7219 (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
7220 iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
7221 analyzed_for_bivness_p, record_biv): New functions.
7222 (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
7223 get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
7224 iv_analyze, biv_p, iv_analysis_done): Work with df representation of
7226 (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
7228 (iv_number_of_iterations): Use new interface to iv analysis.
7229 * loop-unroll.c: Do not include varray.h.
7230 (analyze_iv_to_split_insn): Use new interface to iv
7232 * loop-unswitch.c (may_unswitch_on): Ditto.
7233 * df.c (df_bitmaps_free): Only work for bbs for that structures are
7235 (df_bb_modify): Realloc tables to the new index.
7236 (df_find_use): New function.
7237 * df.h (df_find_use): Declare.
7238 * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
7240 * cfgloop.h (struct rtx_iv): Remove analysed field.
7241 (iv_get_reaching_def): Removed.
7242 (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
7243 * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
7244 (loop-iv.o): Add df.h and hashtab.h dependency.
7245 * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
7247 2006-01-20 Alan Modra <amodra@bigpond.net.au>
7250 * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
7252 (__floatundisf, __floatundidf): Likewise.
7253 * libgcc2.h (IS_IBM_EXTENDED): Define.
7255 2006-01-19 DJ Delorie <dj@redhat.com>
7257 * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
7259 2006-01-19 Paul Brook <paul@codesourcery.com>
7261 * gcc/config/arm/arm.c (arm_compute_func_type): Treat all functions
7262 as nothrow when unwinding tables are disabled.
7264 2006-01-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7267 * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
7268 of bit-field" when in system header.
7270 2006-01-19 DJ Delorie <dj@redhat.com>
7272 * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
7273 the 16 bit shift limit of the m16c.
7275 2006-01-19 Andrew Pinski <pinskia@physics.uc.edu>
7278 * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
7279 * config/i386/i386.c (output_set_got): Output the label if we have one
7280 for the TARGET_DEEP_BRANCH_PREDICTION case.
7282 2006-01-19 Jan Hubicka <jh@suse.cz>
7283 H.J. Lu <hongjiu.lu@intel.com>
7284 Evandro Menezes <evandro.menezes@amd.com>
7286 * invoke.texi (generic): Document
7288 * config.gcc: Make x86_64-* and i686-* default to generic tunning.
7289 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
7290 TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
7291 (x86_use_incdec, x86_pad_returns): New variables
7292 (TARGET_CPU_DEFAULT_generic): New constant
7293 (TARGET_CPU_DEFAULT_NAMES): Add generic.
7294 (enum processor_type): Add generic32 and generic64.
7295 * i386.md (cpu attribute): Add generic32/generic64
7296 (movhi splitter): Behave sanely when both partial_reg_dependency and
7297 partial_reg_stall are set.
7298 (K8 splitters): Enable for generic as well.
7299 * predicates.md (incdec_operand): Use TARGET_INCDEC
7300 (aligned_operand): Avoid memory mismatch stalls.
7301 * athlon.md: Enable for generic64, new patterns for 128bit moves.
7302 * ppro.md: Enable for generic32
7303 * i386.c (generic64_cost, generic32_cost): New.
7304 (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
7305 (x86_use_leave): Enable for generic64. (x86_use_sahf,
7306 x86_ext_80387_constants): Enable for generic32. (x86_push_memory,
7307 x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
7308 x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
7309 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
7310 x86_partial_reg_dependency, x86_memory_mismatch_stall,
7311 x86_accumulate_outgoing_args, x86_prologue_using_move,
7312 x86_epilogue_using_move, x86_arch_always_fancy_math_387,
7313 x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
7315 (x86_use_incdec, x86_pad_returns): New.
7316 (override_options): Add generic32 and generic64, translate "generic"
7317 to generic32/generic64 and "i686" to "generic32", refuse
7318 "generic32"/"generic64" as arch target.
7319 (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
7320 (ix86_reorg): Honor PAD_RETURNS.
7322 2006-01-19 Diego Novillo <dnovillo@redhat.com>
7324 * tree-pretty-print.c (dump_generic_node): Handle
7325 OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
7326 * cgraph.c (cgraph_expand_queue): Rename from
7327 cgraph_analyze_queue. Update all users.
7328 * cgraphunit.c (cgraph_assemble_pending_functions): Process
7329 cgraph_expand_queue.
7330 (cgraph_expand_all_functions): Likewise.
7331 (cgraph_finalize_pending_functions): Remove. Update callers.
7333 * tree.h (OMP_DIRECTIVE_P): Define.
7334 (OMP_PARALLEL_FN): Define.
7335 (OMP_PARALLEL_DATA_ARG): Define.
7336 (OMP_SECTIONS_SECTIONS): Define.
7337 * tree-pass.h (pass_expand_omp): Declare.
7338 * omp-low.c (struct omp_region): Declare.
7339 (struct omp_context): Remove fields 'parallel_type',
7340 'parallel_start_ix' and 'parallel_start_additional_args'.
7342 (struct omp_for_data): Rename from struct expand_omp_for_data.
7343 (omp_regions): New static variable.
7344 (root_omp_region): New static variable.
7345 (find_omp_clause): Make static.
7346 (is_in_combined_parallel_ctx): Remove.
7347 (is_combined_parallel): New.
7348 (extract_omp_for_data): Move earlier in the file.
7349 (workshare_safe_to_combine_p): New.
7350 (get_ws_args_for): New.
7351 (determine_parallel_type): Move earlier in the file.
7352 (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
7354 (omp_copy_decl): Likewise.
7355 (create_omp_child_function): Likewise.
7356 (lookup_omp_region): New.
7357 (dump_omp_region): New.
7358 (debug_omp_region): New.
7359 (debug_all_omp_regions): New.
7360 (new_omp_region): New.
7361 (scan_omp_parallel): If parallel_nesting_level > 1, the
7362 directive is nested within another parallel directive.
7363 Set OMP_PARALLEL_FN.
7364 (scan_omp_for): Do not try to handle combined parallel+for
7366 Remove FIXME comment.
7367 (scan_omp_nested): Remove.
7368 (scan_omp_1): Do not call scan_omp_nested when
7369 parallel_nesting_level is > 1.
7370 Do not change the DECL_CONTEXT of local variables found.
7371 (lookup_decl_in_outer_ctx): New.
7372 (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
7373 (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
7374 (lower_reduction_clauses): Rename from expand_reduction_clauses.
7375 (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
7376 If CTX is nested, lookup VAR in the outer context when
7377 building copy assignment.
7378 (lower_send_clauses): Rename from expand_send_clauses.
7379 If CTX is nested, lookup VAR in the outer context when
7380 building copy assignments.
7381 (lower_send_shared_vars): Rename from expand_send_shared_vars.
7382 If CTX is nested, lookup VAR in the outer context when
7383 building copy assignments.
7384 (expand_parallel_call): Rename from build_parallel_call.
7385 Handle combined parallel+workshare cases.
7386 Re-implement to emit code into the CFG.
7388 (expand_omp_parallel): Re-implement to emit code into the CFG.
7389 Call move_sese_region_to_fn to outline the sub-graph
7390 containing the parallel region.
7391 (expand_omp_for_1): Remove.
7392 (expand_omp_for_generic): Re-implement to emit code into the
7394 (expand_omp_for_static_nochunk): Likewise.
7395 (expand_omp_for_static_chunk): Likewise.
7396 (expand_omp_for): Likewise.
7397 (expand_omp_sections): Likewise.
7398 (remove_exit_barriers): New.
7399 (expand_omp_synch): New.
7401 (build_omp_regions_1): New.
7402 (build_omp_regions): New.
7403 (execute_expand_omp): New.
7404 (gate_expand_omp): New.
7405 (pass_expand_omp): Define.
7406 (lower_omp_sections): Rename from expand_omp_sections.
7407 Set OMP_SECTIONS_SECTIONS.
7408 (lower_omp_single_simple): Rename from expand_omp_single_simple.
7409 (lower_omp_single_copy): Rename from expand_omp_single_copy.
7410 (lower_omp_single): Rename from expand_omp_simple.
7411 (lower_omp_master): Rename from expand_omp_master.
7412 (lower_omp_ordered): Rename from expand_omp_ordered.
7413 (lower_omp_critical): Rename from expand_omp_critical.
7414 (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
7415 (lower_omp_for): Re-implement.
7416 (lower_omp_parallel): Re-implement.
7417 (lower_regimplify): Rename from expand_regimplify.
7418 (lower_omp_1): Rename from expand_omp_1.
7419 If there are syntax errors in the program, replace every
7420 OpenMP directive with NOP.
7421 Call lower_omp_* instead of expand_omp_*.
7422 (lower_omp): Rename from expand_omp.
7424 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
7425 * tree-gimple.h (enum omp_parallel_type): Remove.
7426 (gimple_boolify): Declare extern.
7427 (find_omp_clause, determine_parallel_type): Remove.
7429 * gimple-low.c (lower_omp_directive): New.
7430 (lower_stmt): Call it.
7431 (record_vars_into): Move from ...
7432 (record_vars): ... here.
7433 Call record_vars_into with current_function_decl.
7435 * gimplify.c (struct gimplify_ctx): Remove fields
7436 combined_pre_p and combined_ctxp. Update users.
7437 (get_formal_tmp_var): Add documentation.
7438 (gimple_boolify): Make extern.
7439 (gimplify_expr_in_ctx): Remove. Update callers.
7440 (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
7441 will always be a BIND_EXPR.
7442 (gimplify_expr): Handle OMP_RETURN_EXPR.
7443 * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
7444 (OMP_PARALLEL): Add 3 operands.
7445 (OMP_SECTIONS): Add 1 operand.
7446 (OMP_RETURN_EXPR): Define.
7448 * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
7449 (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
7450 * tree-iterator.c (alloc_stmt_list): Assert that we are not
7451 creating a circular free list.
7452 (free_stmt_list): Assert that we are not freeing stmt_list_cache.
7454 * tree-flow.h (move_sese_region_to_fn): Declare.
7455 (record_vars_into): Declare.
7456 * tree-cfg.c (make_omp_sections_edges): New.
7457 (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
7458 OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
7459 OMP_SECTIONS and OMP_SECTION.
7460 (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
7461 (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
7462 (verify_stmt): Do not handle OMP_DIRECTIVE_P.
7463 (gather_blocks_in_sese_region): New.
7464 (struct move_stmt_d): Declare.
7466 (move_block_to_fn): New.
7467 (move_sese_region_to_fn): New.
7469 * passes.c (init_optimization_passes): Schedule
7470 pass_expand_omp after pass_init_datastructures.
7472 * tree-ssa-operands.c (get_expr_operands): Handle
7473 OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
7474 OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
7476 2006-01-19 Jeff Law <law@redhat.com>
7478 * tree-vrp.c (extract_range_from_assert): Refine the result range
7479 if the variable referenced by the ASSERT_EXPR has a range and
7480 either the tentative result range or the previous range is a
7483 2006-01-19 Richard Sandiford <richard@codesourcery.com>
7485 * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
7487 2006-01-19 Jan Hubicka <jh@suse.cz>
7489 * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
7491 2006-01-19 Paolo Bonzini <bonzini@gnu.org>
7493 * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
7494 (expand_compound_operation, expand_field_assignment): Fail if the
7495 bit lengths of an extract operation are out of range.
7496 (make_extraction): Compute wanted_inner_mode based on the position
7497 and length of the extraction. Make it extraction_mode for non-constant
7498 positions, and do not modify offset in that case. When generating a
7499 new MEM, use a mode that can hold the extraction while keeping correct
7500 alignment. Remove code that supported MEMs wrapped by USEs.
7501 (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
7503 2006-01-19 Andreas Krebbel <krebbel1@de.ibm.com>
7505 * config/s390/s390.md ("Y", "y"): New mode attribute.
7506 ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
7507 "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
7508 "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
7509 "*addsi3_imm_cc", "*addsi3_carry1_cc",
7510 "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
7511 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
7512 "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
7513 "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
7514 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
7515 "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
7516 "addsi3", "subsi3"): Insn patterns removed.
7517 ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
7518 "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
7519 "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
7520 "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
7521 "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
7522 "*sub<mode>3_cconly2"): New insn patterns.
7523 ("addsi3", "subsi3"): New expanders.
7525 2006-01-19 Dorit Nuzman <dorit@il.ibm.com>
7527 * Makefile.in (tree-vect-patterns.o): Add rule for new file.
7528 * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
7529 existing STMT_VINFO_VECTYPE if available.
7530 (vect_mark_relevant): Add special handling for stmts that are
7531 marked as STMT_VINFO_IN_PATTERN_P.
7532 (vect_analyze_loop): Call vect_pattern_recog.
7533 * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
7534 * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
7536 (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
7537 (vect_recog_func_ptr): New function-pointer type.
7538 * tree-vect-patterns.c: New file.
7539 (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
7540 (vect_recog_dot_prod_pattern, vect_pattern_recog):
7541 (vect_pattern_recog_1): New functions.
7542 (vect_pattern_recog_funcs): New array of function pointers.
7544 * tree-vectorizer.h (ternary_op): New enum value.
7545 * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
7546 declaration. Revised documentation. Removed redundant dump prints.
7547 Removed redundant argument. Added support for reduction patterns.
7548 (vectorizable_reduction): Added support for reduction patterns.
7549 (vect_transform_stmt): Added support for patterns.
7551 * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
7552 * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
7553 * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
7554 (expand_widen_pattern_expr): New function.
7555 (init_optabs): Initialize new optabs udot_prod_optab,
7557 * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
7558 (sdot_prod_optab, udot_prod_optab): Define new optabs.
7559 (expand_widen_pattern_expr): New function declaration.
7560 * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
7562 * tree-inline.c (estimate_num_insns_1): Added cases for new
7563 tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
7564 * tree-pretty-print.c (dump_generic_node): Likewise.
7565 (op_prio): Likewise.
7566 (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
7567 * tree-ssa-operands.c (get_expr_operands): Added case for
7569 * tree-vect-patterns.c (widened_name_p): New function.
7570 (vect_recog_dot_prod_pattern): Added function implementation.
7571 * tree-vect-transform.c (get_initial_def_for_reduction): Added
7572 cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
7573 * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
7574 * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
7576 * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
7577 * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
7578 * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
7579 (init_optabs): Initialize new optabs widen_ssum_optab,
7581 * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
7582 (widen_ssum_optab, widen_usum_optab): Define new optabs.
7583 * tree-vect-generic.c: (expand_vector_operations_1): Check type of
7584 use instead of type of def.
7585 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
7586 function implementation.
7587 * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
7588 widen_ssumv8hi): New.
7590 * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
7593 2006-01-19 Richard Sandiford <richard@codesourcery.com>
7596 * c-decl.c (add_flexible_array_elts_to_size): New function.
7597 (finish_decl): Use it.
7599 2006-01-18 Andrew Pinski <pinskia@physics.uc.edu>
7601 * diagnostic.h: Include options.h.
7602 * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
7603 dependancies for diagnostic.h.
7604 * Makefile.in (DIAGNOSTIC_H): Add options.h.
7606 2006-01-16 Daniel Berlin <dberlin@dberlin.org>
7608 * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
7609 (ssa_ro_call_cache_valid): Ditto.
7610 * tree-ssa-alias.c (sort_tags_by_id): New function.
7611 (init_transitive_clobber_worklist): Ditto.
7612 (add_to_worklist): Ditto.
7613 (mark_aliases_call_clobbered): Ditto.
7614 (compute_tag_properties): Ditto.
7615 (set_initial_properties): Ditto.
7616 (compute_call_clobbered): Ditto.
7617 (compute_may_aliases): Call compute_call_clobbered and grouping.
7618 (compute_flow_sensitive_aliasing): Remove clobbering related code.
7619 (compute_flow_insensitive_aliasing): Grouping now happens in our
7621 (setup_pointers_and_addressables): Remove clobbering related code.
7622 (add_may_alias): Ditto.
7623 (replace_may_alias): Ditto.
7624 (get_nmt_for): Ditto.
7625 (create_global_var):
7626 (is_escape_site): Return an escape_type enumeration.
7627 * tree-flow-inline.h (is_call_clobbered): Global var does not
7628 imply call clobbered.
7629 (mark_call_clobbered): Take a reason for marking this. Remove
7630 marking of globalness, and cache invalidation.
7631 (clear_call_clobbered): Remove cache invalidation code.
7632 * tree-dfa.c (dump_variable): If details is on, dump the reason
7634 * tree-outof-ssa.c (create_temp): Copy escape mask from original
7636 * tree-flow.h (struct ptr_info_def): Add escape mask member.
7637 (struct var_ann_d): Ditto.
7638 (enum escape_type): New.
7639 (mark_call_clobbered): Adjust prototype.
7640 * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
7641 are never call clobbered.
7642 Record reasons for escaping.
7643 * tree-ssa-structalias.h (is_escape_site): Update prototype.
7644 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
7645 (ssa_ro_call_cache_valid): Ditto.
7646 (clobbered_v_may_defs): Ditto.
7647 (clobbered_vuses): Ditto.
7648 (ro_call_vuses): Ditto.
7649 (clobber_stats): New.
7650 (init_ssa_operands): Zero out clobber stats.
7651 (fini_ssa_operands): Print out clobber stats.
7652 (get_call_expr_operands): Pass callee fndecl to
7654 (add_call_clobber_ops): Remove use of cache.
7655 Add use of PURE_CONST information.
7656 (add_call_read_ops): Remove use of cache.
7657 Add use of static not_read information.
7659 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
7661 Introduce TLS descriptors for i386 and x86_64.
7662 * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
7663 (TARGET_ANY_GNU_TLS): New macro.
7664 (enum tls_dialect): Added TLS_DIALECT_GNU2.
7665 (struct machine_function): Add tls_descriptor_call_expanded_p.
7666 (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
7667 (ix86_current_function_calls_tls_descriptor): Likewise.
7668 * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
7669 (override_options): Introduce gnu2 tls dialect.
7670 (ix86_frame_pointer_required): Functions containing TLSCALLs are
7672 (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
7674 (legitimize_tls_address): Adjust logic for GNU2 TLS.
7675 (ix86_init_machine_status): Initialize new field.
7676 (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
7677 (ix86_tls_module_base): New.
7678 * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
7679 * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
7680 (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
7681 (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
7682 (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
7683 (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
7684 (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
7685 (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
7686 * config/i386/predicates.md (tls_modbase_operand): New.
7687 (tp_or_register_operand): New.
7689 2006-01-18 Daniel Berlin <dberlin@dberlin.org>
7691 * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
7692 (look_for_address_of): Ditto.
7693 (ipa_init): Walk the function decls.
7694 (static_execute): Don't set readonly on FUNCTION_DECL's.
7696 2006-01-18 Roger Sayle <roger@eyesopen.com>
7698 * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
7699 for shifts where the source and destination registers are different.
7701 2006-01-18 Paul Brook <paul@codesourcery.com>
7703 Merge from csl-arm-branch.
7704 2005-03-14 Julian Brown <julian@codesourcery.com>
7705 * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
7706 (aeabi_llsl): Likewise.
7707 (ashrdi3): Likewise.
7708 (aeabi_lasr): Likewise.
7709 (lshrdi3): Likewise.
7710 (aeabi_llsr): Likewise.
7711 2005-03-10 Julian Brown <julian@codesourcery.com>
7712 * config.gcc: Disable shared libgcc for SymbianOS.
7713 * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
7715 2006-01-18 DJ Delorie <dj@redhat.com>
7717 * c-pragma.c (handle_pragma_diagnostic): New.
7718 (init_pragma): Register it.
7719 * doc/extend.texi: Document it.
7721 * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
7722 * diagnostic.h (diagnostic_classify_diagnostic): Declare.
7723 (diagnostic_context): Add classify_diagnostic[].
7724 * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
7725 as errors if they're overridden to DK_WARNING.
7726 (diagnostic_initialize): Initialize classify_diagnostic[].
7727 (diagnostic_set_kind_override): New.
7728 (diagnostic_report_diagnostic): Check for kind changes.
7729 * opts.c (common_handle_option): Take lang_mask. Update callers.
7731 * common.opt (Werror=): New.
7732 * doc/invoke.texi: Document -Werror=*
7734 2006-01-18 Jeff Law <law@redhat.com>
7736 * tree-vrp.c (test_for_singularity): Correct test for new
7737 min limit. Use operand_equal_p rather than pointer equality
7738 for testing if new min/max values are equal.
7740 * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
7741 using range information until after propagation and folding.
7743 2006-01-18 Richard Henderson <rth@redhat.com>
7744 Aldy Hernandez <aldyh@redhat.com>
7745 Jakub Jelinek <jakub@redhat.com>
7746 Diego Novillo <dnovillo@redhat.com>
7748 * omp-low.c: New file.
7749 * c-omp.c: New file.
7751 2006-01-18 Richard Henderson <rth@redhat.com>
7752 Jakub Jelinek <jakub@redhat.com>
7753 Diego Novillo <dnovillo@redhat.com>
7755 * doc/invoke.texi: Document -fopenmp.
7756 * tree-dump.h (debug_function): Declare.
7757 * hooks.c (hook_bool_tree_bool_false): New function.
7758 (hook_tree_tree_null): Remove.
7759 (hook_tree_tree_tree_null): New.
7760 * hooks.h: Update to match.
7761 * tree-pretty-print.c (debug_tree_chain): New.
7762 (print_generic_expr): Handle TDF_CHAIN.
7763 (dump_generic_node): Handle BLOCK.
7764 Do not abort with incomplete SWITCH_EXPRs.
7765 Do not dump body of an OpenMP directive if TDF_SLIM is given.
7766 <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
7767 print space after directive name.
7768 <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
7769 Handle OMP_MASTER and OMP_ORDERED.
7770 Handle printing of OMP_BODY just in one place, goto
7771 dump_omp_body in the rest of OMP_* nodes that have
7773 Don't handle clause nodes here. Update omp statements to
7774 use dump_omp_clauses.
7775 Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
7776 OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
7777 OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
7778 GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
7779 GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
7780 GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
7781 Adjust output for GOMP_PARALLEL.
7782 (dump_omp_clauses): New.
7783 (print_declaration): Dump DECL_VALUE_EXPR.
7784 (op_symbol_1): Split out of op_symbol.
7785 (dumping_stmts): Remove. Update all users.
7786 * cgraph.c (cgraph_analyze_queue): New.
7787 (cgraph_add_new_function): New.
7788 * cgraph.h (cgraph_analyze_queue): Declare.
7789 (cgraph_add_new_function): Declare.
7790 (cgraph_lower_function): Remove.
7791 * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
7792 nodes. Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
7793 and TYPE_P nodes in its default clause.
7794 (empty_body_p): New.
7795 (tree_range_check_failed): New.
7797 * tree.h (OMP_CLAUSE_REDUCTION_INIT,
7798 OMP_CLAUSE_REDUCTION_MERGE,
7799 OMP_CLAUSE_REDUCTION_PLACEHOLDER,
7800 OMP_CLAUSE_PRIVATE_DEBUG,
7801 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
7802 OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
7803 OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
7804 OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
7805 OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
7806 OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
7807 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
7808 OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
7809 OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
7810 OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
7811 OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
7812 OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
7813 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
7814 OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
7815 (TREE_RANGE_CHECK): New.
7816 (empty_body_p): Declare.
7817 (enum omp_clause_default_kind): New.
7818 (build_string_literal): Declare.
7819 (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
7820 (build5_stat, build5): Declare.
7821 * tree-pass.h (TDF_CHAIN): Define.
7822 * tree-pass.h (PROP_gimple_lomp): Define.
7823 (pass_lower_omp): Declare.
7824 * diagnostic.h (debug_tree_chain): Declare.
7825 * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
7827 (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
7828 * builtins.c (build_string_literal): Make extern.
7829 * gcc.c (include_spec_function): New.
7830 (static_spec_functions): Add it.
7831 (main): Move load of libgomp.spec ...
7832 (LINK_COMMAND_SPEC): ... here.
7833 (link_gomp_spec): New.
7834 (static_specs): Include it.
7835 (LINK_COMMAND_SPEC): Add link_gomp.
7836 (GOMP_SELF_SPECS): New.
7837 (driver_self_specs): Include it.
7838 (switch_matches): Don't mark inline.
7839 (main): Load libgomp.spec.
7840 * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
7841 OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
7842 and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
7843 * tree-gimple.h (enum omp_parallel): Declare.
7844 (determine_parallel_type): Declare.
7845 (omp_firstprivatize_variable): Declare.
7846 (omp_reduction_init): Declare.
7847 (diagnose_omp_structured_block_errors): Declare.
7848 (struct walk_stmt_info): Add want_return_expr.
7849 (struct walk_stmt_info): Add want_bind_expr, want_locations.
7850 (find_omp_clause): Declare.
7851 (insert_field_into_struct): Declare.
7852 (struct walk_stmt_info): Move from tree-nested.c
7853 (walk_stmts): Declare.
7854 * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
7856 * cgraphunit.c (cgraph_lower_function): Make static.
7857 (cgraph_finalize_pending_functions): New.
7858 (cgraph_finalize_function): Call it.
7859 (cgraph_finalize_compilation_unit): Likewise.
7860 * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
7861 BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
7862 (BT_FN_UINT_UINT): New.
7863 (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
7864 DEF_FUNCTION_TYPE_VAR_4): Document.
7865 (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
7866 BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
7867 BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
7868 BT_FN_VOID_OMPFN_PTR_UINT_UINT,
7869 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
7870 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
7871 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
7872 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
7873 * builtins.def: Update DEF_BUILTIN comment to include COND argument.
7874 Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
7875 into separate files.
7876 (DEF_GOMP_BUILTIN): New.
7877 (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
7878 BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
7879 BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
7880 BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
7881 BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
7882 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
7883 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
7884 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
7885 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
7886 BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
7887 BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
7888 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
7889 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
7890 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
7891 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
7892 BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
7893 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
7894 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
7895 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
7896 BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
7897 BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
7898 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
7899 BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
7900 BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
7901 BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
7902 BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
7903 * sync-builtins.def: New file, moved from builtins.def.
7904 * omp-builtins.def: New file, moved from builtins.def.
7905 * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
7906 * gimple-low.c (lower_function_body): Clear data.
7907 (lower_stmt): Do not handle COMPOUND_EXPR.
7908 Remove call to print_node_brief.
7909 * c-tree.h (c_finish_omp_clauses): New prototype.
7910 (C_DECL_THREADPRIVATE_P): Define.
7911 (lookup_name_no_remap, c_omp_remap_private): Remove
7912 (c_begin_omp_parallel, c_finish_omp_parallel): Update.
7913 (check_for_loop_decls): Update decl.
7914 (lookup_name_no_remap, c_omp_remap_private): Declare.
7915 (build_indirect_ref, build_modify_expr, pushdecl,
7916 pushdecl_top_level): Move to c-common.h.
7917 * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
7918 before the switch, but just in the 2 places that need it.
7919 * c-decl.c (diagnose_mismatched_decls): Do not check for
7920 mismatched thread-local attributes when OLDDECL is marked
7921 threadprivate and NEWDECL has no thread-local attributes.
7922 (merge_decls): Merge C_DECL_THREADPRIVATE_P.
7923 (c_gimple_diagnostics_recursively): Rename from
7924 c_warn_unused_result_recursively. Invoke
7925 diagnose_omp_structured_block_errors.
7926 (check_for_loop_decls): Return a singular decl found.
7927 * langhooks.c (lhd_omp_predetermined_sharing): Return
7928 OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
7929 (lhd_omp_firstprivatize_type_sizes): New.
7930 (lhd_omp_assignment): New.
7931 (lhd_omp_predetermined_sharing): New.
7932 * langhooks.h (struct gimplify_omp_ctx): Forward declare.
7933 (struct lang_hooks_for_types): Add
7934 omp_firstprivatize_type_sizes, omp_privatize_by_reference,
7935 omp_predetermined_sharing, omp_disregard_value_expr,
7936 omp_private_debug_clause, omp_clause_default_ctor,
7937 omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
7938 (c_finish_omp_clauses): New.
7939 (c_finish_bc_stmt): Diagnose break within omp for.
7940 (c_begin_omp_parallel, c_finish_omp_parallel): New.
7941 (build_unary_op): Return error_mark after reporting
7943 (build_modify_expr): Likewise.
7944 * gimplify.c: Include optabs.h and pointer-set.h.
7945 (enum gimplify_omp_var_data): Declare.
7946 (struct gimplify_omp_ctx): Declare.
7947 (struct gimplify_ctx): Add fields prev_context, combined_pre_p
7949 (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
7950 (push_gimplify_context, pop_gimplify_context): Allow nesting.
7951 (splay_tree_compare_decl_uid): New.
7952 (new_omp_context): New.
7953 (delete_omp_context): New.
7954 (gimple_add_tmp_var): Call omp_add_variable.
7955 (gimplify_bind_expr): Likewise.
7956 (gimplify_var_or_parm_decl): If omp_notice_variable returned
7957 true, disregard DECL_VALUE_EXPR on the decl if any.
7958 (gimplify_expr_in_ctx): New.
7959 (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
7960 omp_add_variable, omp_notice_variable, omp_is_private
7961 gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
7962 gimplify_adjust_omp_clauses, gimplify_omp_parallel
7963 gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
7964 gimplify_omp_atomic_fetch_op, goa_stabilize_expr
7965 gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
7966 gimplify_omp_atomic): New.
7967 (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
7968 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
7969 OMP_CRITICAL and OMP_ATOMIC.
7970 (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
7971 * c-pragma.h (enum pragma_kind): Add
7972 PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
7973 PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
7974 PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
7975 PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
7976 PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
7977 PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
7978 PRAGMA_OMP_THREADPRIVATE.
7979 * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
7980 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
7981 OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
7982 OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
7983 OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
7984 OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
7985 OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
7986 OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
7987 OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
7988 * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
7989 * tree-ssa-dce.c (find_control_dependence): Do not assume that
7990 ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
7991 * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
7993 (struct nesting_info): Add field_map,
7994 suppress_expansion, debug_var_chain.
7995 (create_nesting_tree): Initialize them.
7996 (lookup_field_for_decl): Use field_map.
7997 (get_nonlocal_debug_decl, get_local_debug_decl): New.
7998 (convert_local_omp_clauses): New.
7999 (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
8000 (walk_body): Split out of walk_function.
8001 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
8002 (convert_nonlocal_reference): Handle omp statements.
8003 (convert_local_reference): Likewise.
8004 (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
8005 (unnest_nesting_tree): New.
8006 (lower_nested_functions): Call it.
8007 (insert_field_into_struct): Make extern.
8008 (struct walk_stmt_info): Move to tree-gimple.h.
8009 (walk_stmts): Make extern.
8010 * omp-builtins.def: New file.
8011 * tree-iterator.c (expr_only): Clarify comment.
8012 * c-common.h (pushdecl_top_level, pushdecl,
8013 build_modify_expr, build_indirect_ref,
8014 c_finish_omp_master, c_finish_omp_critical,
8015 c_finish_omp_ordered, c_finish_omp_barrier,
8016 c_finish_omp_atomic, c_finish_omp_flush,
8017 c_finish_omp_for, c_split_parallel_clauses,
8018 omp_clause_default_kind, c_omp_sharing_predetermined,
8019 c_omp_remap_decl): Declare.
8020 * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
8021 (OBJS-common): Add omp-low.o.
8022 (c-omp.o, omp-low.o): Add.
8023 (gimplify.o): Add dependency on $(OPTABS_H).
8024 (GTFILES): Add omp-low.c.
8025 (gt-stringpool.h): Add.
8026 * tree-cfg.c (set_bb_for_stmt): Do not update the
8027 block-to-labels map if we are currently expanding to RTL.
8028 (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
8030 Handle IDENTIFIER_NODE.
8031 (tree_verify_flow_info): Do not ICE when emitting error
8032 messages about invalid labels.
8033 (dump_function_to_file): Reset CFUN before emitting the body
8035 (debug_function): New.
8036 * passes.c (init_optimization_passes): Schedule
8038 * langhooks-def.h (lhd_omp_predetermined_sharing,
8039 lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
8041 (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
8042 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
8043 (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
8044 LANG_HOOKS_OMP_PREDETERMINED_SHARING,
8045 LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
8046 LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
8047 LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
8048 LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
8049 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
8050 LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
8051 (LANG_HOOK_DECLS): Use them.
8053 2006-01-18 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
8054 Richard Henderson <rth@redhat.com>
8055 Jakub Jelinek <jakub@redhat.com>
8056 Diego Novillo <dnovillo@redhat.com>
8058 * c-parser.c (pragma_omp_clause): Define.
8059 (c_parser_declaration_or_fndef): Document OpenMP syntax.
8060 (c_parser_compound_statement): Likewise.
8061 (c_parser_statement): Likewise.
8062 (c_parser_pragma): Handle omp pragmas.
8063 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
8064 OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
8065 (c_parser_omp_clause_name, check_no_duplicate_clause,
8066 c_parser_omp_variable_list,
8067 c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
8068 c_parser_omp_clause_copyprivate,
8069 c_parser_omp_clause_default,
8070 c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
8071 c_parser_omp_clause_lastprivate,
8072 c_parser_omp_clause_nowait,
8073 c_parser_omp_clause_num_threads,
8074 c_parser_omp_clause_ordered, c_parser_omp_clause_private,
8075 c_parser_omp_clause_reduction,
8076 c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
8077 c_parser_omp_all_clauses, c_parser_omp_structured_block,
8078 c_parser_omp_atomic, c_parser_omp_barrier,
8079 c_parser_omp_critical, c_parser_omp_flush,
8080 c_parser_omp_for_loop, c_parser_omp_for,
8081 c_parser_omp_master, c_parser_omp_ordered,
8082 c_parser_omp_sections_scope, c_parser_omp_sections,
8083 c_parser_omp_parallel, c_parser_omp_single,
8084 c_parser_omp_construct, c_parser_omp_threadprivate): New.
8085 * c-pragma.c (init_pragma): Do omp pragma registration here.
8086 * c.opt (fopenmp): New flag.
8088 2006-01-18 Eric Christopher <echristo@apple.com>
8090 * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
8091 * config/darwin.h (GOMP_SELF_SPECS): Define.
8093 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
8095 * rtl.h: Remove the prototype for reg_alloc.
8097 2006-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8100 * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
8101 hppa[12]*-*-hpux11*): Override default shared libgcc version for both
8102 sjlj and dwarf2 exception handling.
8103 * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
8104 Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
8105 * pa/pa.c (function_value): Treat complex and vector types as
8107 (function_arg): Likewise. Only pass scalar floats in the floating
8108 point argument registers.
8109 * pa/t-slibgcc-dwarf-ver: New file.
8110 * pa/t-slibgcc-sjlj-ver: New file.
8111 * pa/t-slibgcc-elf-ver: Delete file.
8113 2006-01-19 Alan Modra <amodra@bigpond.net.au>
8115 * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
8116 unlikely_test_section_p test.
8118 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
8120 * mode-switching.c (optimize_mode_switching): Make it static.
8121 * basic-block.h: Remove the prototype for
8122 optimize_mode_switching.
8124 * modulo-sched.c (sms_schedule): Make it static.
8125 * rtl.h: Remove the prototype for sms_schedule.
8127 * postreload-gcse.c (gcse_after_reload_main): Make it static.
8128 * rtl.h: Remove the prototype for gcse_after_reload_main.
8130 * reg-stack.c (reg_to_stack): Make it static.
8131 * rtl.h: Remove the prototype for reg_to_stack.
8133 * regrename.c (regrename_optimize, copyprop_hardreg_forward):
8135 * rtl.h: Remove the prototypes for regrename_optimize and
8136 copyprop_hardreg_forward.
8138 2006-01-18 Eric Botcazou <ebotcazou@adacore.com>
8140 * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
8141 alpha_split_tmode_pair. Add 'mode' and 'fixup_overlap' arguments.
8142 Test against the appropriate null constant for the mode.
8143 If 'fixup_overlap' is true, swap the operands if they overlap.
8144 (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
8145 * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
8146 alpha_split_tmode_pair and adjust for above change.
8147 * config/alpha/alpha.md (movtf_internal): Adjust call to
8148 alpha_split_tfmode_pair and rely on it to swap the operands.
8149 (movti_internal): New insn and post-reload splitter.
8150 (movti): New expander.
8152 2006-01-18 Philippe De Muyter <phdm@macqel.be>
8154 * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
8157 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
8159 * rtlanal.c (global_reg_mentioned_p_1,
8160 global_reg_mentioned_p): Remove.
8161 * rtl.h: Remove the prototype for global_reg_mentioned_p.
8163 * flow.c (initialize_uninitialized_subregs): Make it static.
8164 * rtl.h: Remove the prototype for
8165 initialize_uninitialized_subregs.
8167 * function.c (instantiate_virtual_regs): Make it static.
8168 * function.h: Remove the prototype for
8169 instantiate_virtual_regs.
8171 * regmove.c (regmove_optimize, combine_stack_adjustments):
8173 * rtl.h: Remove the prototypes for regmove_optimize and
8174 combine_stack_adjustments.
8176 2006-01-17 Roger Sayle <roger@eyesopen.com>
8178 * config/i386/i386.c (COSTS_N_BYTES): New macro.
8179 (size_cost): Encode costs in bytes so that a reg-reg addition is
8180 equivalent to COSTS_N_INSNS(1).
8181 (override_options): Use the size_cost.branch_cost as the default
8182 ix86_branch_cost when optimizing for size.
8184 2006-01-18 Ben Elliston <bje@au.ibm.com>
8186 * Makefile.in (D32PBIT_FUNCS): New.
8187 (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
8188 (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
8189 D64PBIT_FUNCS and D128PBIT_FUNCS.
8190 (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
8191 * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
8193 (decnumber_dep): Define.
8194 * doc/libgcc.texi (Decimal float library routines): New node.
8195 * config/dfp-bit.h, config/dfp-bit.c: New files.
8197 2006-01-18 Ben Elliston <bje@au.ibm.com>
8199 * expr.c (emit_move_change_mode): Always adjust addresses, not
8200 just during reload. Copy replacements only during reload.
8201 (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
8202 emit_move_via_integer.
8204 2006-01-17 Shantonu Sen <ssen@opendarwin.org>
8206 * Makefile.in (check-%, check-consistency): Use $${srcdir}
8207 instead of $(srcdir) and ${srcdir}.
8209 2006-01-17 Richard Earnshaw <rearnsha@arm.com>
8213 * arm.h (struct machine_function): Add pic_reg.
8214 * arm.c (arm_pic_register): Make unsigned.
8215 (arm_override_options): Only set arm_pic_register if
8216 TARGET_SINGLE_PIC_BASE.
8217 (use_return_insn): Only test for a pic register if it is fixed.
8218 (arm_compute_save_reg0_reg12_mask): Likewise.
8219 (thumb_compute_save_reg_mask): Likewise.
8220 (legitimate_pic_operand): Factor out some known invariants.
8221 (legitimize_pic_address): If we don't have a fixed pic register,
8222 then set up a pseudo in the function entry sequence. Handle the
8223 pic base being in a pseudo.
8224 (arm_load_pic_register): Handle the pic register being in a pseudo.
8225 (arm_expand_prologue): Only set up the pic register if it is fixed.
8226 (thumb_expand_prologue): Likewise.
8227 * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
8228 (pic_load_addr_based_insn): Likewise.
8229 (builtin_setjmp_receiver): Don't restore the pic base if it isn't
8232 2006-01-18 Ben Elliston <bje@au.ibm.com>
8234 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
8235 decimal float modes for all floating point registers.
8237 * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
8238 match_code "mem" with match_test "macho_lo_sum_memory_operand".
8240 2006-01-17 Jakub Jelinek <jakub@redhat.com>
8243 * c-typeck.c (build_unary_op): Fold offsetof-like expressions
8244 even when the pointer is not NULL.
8246 2006-01-16 Ian Lance Taylor <ian@airs.com>
8248 * common.opt (ftoplevel-reorder): New option.
8249 * cgraph.c (cgraph_asm_nodes): New global variable.
8250 (cgraph_asm_last_node): New static variable.
8251 (cgraph_order): New global variable.
8252 (cgraph_create_node): Set new order field.
8253 (cgraph_varpool_node): Likewise.
8254 (decide_is_variable_needed): Return true if not
8255 flag_toplevel_reorder.
8256 (cgraph_add_asm_node): New function.
8257 * cgraph.h (struct cgraph_node): Add order field.
8258 (struct cgraph_varpool_node): Add order field.
8259 (struct cgraph_asm_node): Define.
8260 (cgraph_asm_nodes, cgraph_order): Declare.
8261 (cgraph_add_asm_node): Declare.
8262 * cgraphunit.c (cgraph_varpool_assemble_decl): New static
8264 (cgraph_varpool_assemble_pending_decls): Call it.
8265 (cgraph_output_pending_asms): New static function.
8266 (cgraph_finalize_compilation_unit): Call it.
8267 (struct cgraph_order_sort): Define.
8268 (cgraph_output_in_order): New static function.
8269 (cgraph_optimize): Call cgraph_output_pending_asms. Add code for
8270 !flag_toplevel_reorder case.
8271 * c-parser.c: Include "cgraph.h".
8272 (c_parser_asm_definition): Call cgraph_add_asm_node rather than
8274 * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
8275 than -fno-unit-at-a-time.
8276 * doc/invoke.texi (Option Summary): Mention
8277 -fno-toplevel-reorder.
8278 (Optimize Options): Document -fno-toplevel-reorder. Mention it in
8279 -funit-at-a-time documentation.
8281 2006-01-17 Hans-Peter Nilsson <hp@axis.com>
8282 Kazu Hirata <kazu@codesourcery.com>
8284 * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
8286 2006-01-17 Kazu Hirata <kazu@codesourcery.com>
8288 * Makefile.in (FUNCTION_H): New. Use it instead of
8289 function.h throughout the file.
8290 * function.h: Include tree.h.
8292 2006-01-17 Ben Elliston <bje@au.ibm.com>
8294 * recog.c: Separate some functions with whitespace.
8296 2006-01-16 Richard Henderson <rth@redhat.com>
8298 Merge from gomp branch:
8299 * Makefile.in (TREE_INLINE_H): New. Use it as needed.
8300 * tree-inline.h (struct copy_body_data): Move from tree-inline.c
8301 and rename from struct inline_data. Rename callee* to dst*;
8302 caller* to src*; add copy_decl hook, transform_call_graph_edges,
8303 transform_new_cfg, transform_return_to_modify, and
8304 transform_lang_insert_block flags; remove cloning_p, versioning_p,
8306 (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
8307 (copy_decl_for_dup): Remove.
8308 * tree-inline.c (struct inline_data): Move to header.
8309 (insert_decl_map): Export.
8310 (remap_decl): Update for member name changes. Use copy_decl hook.
8311 Allow for replacement to be a non-decl. Remove dead code.
8312 (remap_type_1): Check for existing mapping.
8313 (remap_type): Export.
8314 (remap_decls): Update for member name changes.
8315 (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
8316 (copy_body, setup_one_parameter, declare_return_variable): Likewise.
8317 (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
8318 (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
8319 (tree_function_versioning, build_duplicate_type): Likewise.
8320 (copy_body_r): Likewise. Export.
8321 (copy_decl_for_dup): Split into ...
8322 (copy_decl_for_dup_finish, copy_decl_to_var,
8323 copy_decl_no_change, copy_decl_maybe_to_var): ... these.
8324 (replace_ref_tree, inlining_p): Remove.
8326 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
8328 * ifcvt.c (if_convert): Make it static.
8329 * rtl.h: Remove the prototype for if_convert.
8331 * local-alloc.c (local_alloc): Make it static.
8332 * rtl.h: Remove the prototype for local_alloc.
8334 * loop.c (loop_optimize): Make it static.
8335 * cfgloop.h: Remove the prototype for loop_optimize.
8338 2006-01-16 DJ Delorie <dj@redhat.com>
8340 * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
8343 2006-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8345 * pa.md: Disparage copies between general and floating-point registers
8346 in 32-bit move patterns.
8348 2006-01-16 H.J. Lu <hongjiu.lu@intel.com>
8351 * Makefile.in (check-%): Depend on site.exp instead of
8352 $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
8355 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
8357 * global.c (global_alloc): Make it static.
8358 * rtl.h: Remove the prototype for global_alloc.
8360 2006-01-16 Richard Guenther <rguenther@suse.de>
8362 * tree-ssa-alias.c (struct used_part): Add write_only field.
8363 (get_or_create_used_part_for): Initialize it to true.
8364 (create_overlap_variables_for): Don't create structure variables
8365 for structures that only are written to.
8366 (find_used_portions): Handle MODIFY_EXPR to track whether a
8367 structure is only written to.
8369 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
8371 * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
8373 * basic-block.h: Remove the prototype for
8374 partition_hot_cold_basic_blocks.
8376 2006-01-16 Rafael Ãvila de EspÃ�ndola <rafael.espindola@gmail.com>
8378 * cppspec.c (lang_specific_spec_functions): Remove.
8379 * gcc.c (lookup_spec_function): Use static_spec_functions directly.
8380 * gcc.h (lang_specific_spec_functions): Remove.
8381 * gccspec.c (lang_specific_spec_functions): Remove.
8383 2006-01-16 Paolo Bonzini <bonzini@gnu.org>
8385 * combine.c (record_value_for_reg): Invalidate registers
8387 (record_dead_and_set_regs_1): Likewise, by passing them to
8388 record_value_for_reg.
8389 (record_dead_and_set_regs): Invalidate stores made by a
8390 call. We do not combine across a call, but we still
8391 relied on equivalences.
8393 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
8395 * tree-vrp.c (extract_range_from_binary_expr): Cope with
8396 vrp_int_const_binop returning non-constant nodes.
8398 2006-01-16 Paul Brook <paul@codesourcery.com>
8400 * config/m68k/m68k.c (output_move_const_into_data_reg):
8401 Output correct mnemonic for mvz and mvs.
8403 2006-01-16 Gabor Loki <loki@gcc.gnu.org>
8405 * rtl-factoring.c: Add sequence abstraction algorithm.
8406 * cfgcleanup.c (outgoing_edges_match): Extra checks.
8407 (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
8409 (block_has_preserve_label): New function.
8410 * common.opt: Register new pass.
8411 * Makefile.in: Ditto.
8413 * timevar.def: Ditto.
8414 * tree-pass.h: Ditto.
8415 * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
8416 * rtl.h (make_jump_insn_raw): Add forward decl.
8417 * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
8419 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
8420 Roger Sayle <roger@eyesopen.com>
8422 * fold-const.c (fold_minmax): New static function.
8423 (fold_binary) <MIN_EXPR>: Call it.
8424 <MAX_EXPR>: Likewise.
8425 * stor-layout.c (place_field): Use DECL_SIZE consistently
8426 in the computation of the new record size.
8428 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
8430 * cse.c (cse_condition_code_reg): Make it static.
8431 * rtl.h: Remove the prototype for cse_condition_code_reg.
8433 * combine.c (combine_instructions): Make it static.
8434 * rtl.h: Remove the prototype for combine_instructions.
8436 2006-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8439 * tree.c (get_file_function_name_long): Concatenate the first global
8440 object name with a string derived from the input filename of the object
8443 2006-01-16 Ben Elliston <bje@au.ibm.com>
8445 * config/i386/winnt-stubs.c: Update FSF address.
8446 * config/xtensa/ieee754-df.S: Ditto.
8447 * config/xtensa/ieee754-sf.S: Ditto.
8449 2006-01-14 Ian Lance Taylor <ian@airs.com>
8451 * ifcvt.c (noce_init_if_info): New static function, broken out of
8452 noce_process_if_block.
8453 (noce_process_if_block): Call noce_init_if_info.
8454 (check_cond_move_block): New static function.
8455 (cond_move_process_if_block): New static function.
8456 (process_if_block): Call cond_move_process_if_block.
8458 2006-01-15 Kazu Hirata <kazu@codesourcery.com>
8460 * cselib.c (hash_table): Rename to cselib_hash_table.
8461 (cselib_clear_table, discard_useless_values,
8462 remove_useless_values, cselib_lookup_mem, cselib_lookup,
8463 cselib_init, cselib_finish): Adjust uses of hash_table.
8465 2006-01-14 Kazu Hirata <kazu@codesourcery.com>
8467 PR tree-optimization/25485
8468 * tree-vrp.c (extract_range_from_binary_expr): Handle cases
8469 where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
8470 is known to be false and true, respectively.
8472 2006-01-14 Richard Guenther <rguenther@suse.de>
8474 PR tree-optimization/22548
8475 PR tree-optimization/22555
8476 PR tree-optimization/22501
8477 * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
8478 * params.def (salias-max-array-elements): New parameter.
8479 * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
8480 * doc/invoke.texi (salias-max-array-elements): Document.
8481 * tree-flow-inline.h (var_can_have_subvars): We also handle
8483 * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
8485 * tree-ssa-structalias.c (params.h): Include.
8486 (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
8487 (find_func_aliases): Handle multiple constraints from ARRAY_REF.
8488 (get_constraint_for): For ADDR_EXPR operating on something
8489 containing an ARRAY_REF, add all subvars to the solution.
8490 (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
8491 * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
8492 for creating MUST_DEFs.
8493 (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
8495 2006-01-14 Zdenek Dvorak <dvorakz@suse.cz>
8497 * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
8499 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
8500 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
8501 number_of_iterations_le): New functions.
8502 (number_of_iterations_special): Removed.
8503 (number_of_iterations_exit): Do not use number_of_iterations_special.
8504 * tree.c (unsigned_type_for): Always return integer type.
8506 2006-01-14 Steven Bosscher <stevenb.gcc@gmail.com>
8507 Richard Guenther <rguenther@suse.de>
8509 PR rtl-optimization/24257
8510 * gcse.c (find_moveable_store): Only consider a store movable
8511 when the SET_SRC of the insn can be assigned to a register.
8513 2006-01-14 Ian Lance Taylor <ian@airs.com>
8515 * tree.c (tree_not_class_check_failed): New function.
8516 * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
8517 (tree_not_class_check_failed): Declare.
8519 2006-01-13 Ian Lance Taylor <ian@airs.com>
8521 * reload1.c (do_output_reload): Add assertion rejecting a
8524 2006-01-13 Adam Nemet <anemet@caviumnetworks.com>
8526 * combine.c (struct reg_stat): Add new fields truncation_label and
8528 (record_value_for_reg): Reset truncated_to_mode.
8529 (record_truncated_value): New function.
8530 (check_promoted_subreg): Call it. Rename to check_conversions.
8531 (combine_instructions): Rename check_promoted_subreg to
8533 (reg_truncated_to_mode): New function.
8534 (make_extraction): Use it. Check TRULY_NOOP_TRUNCATION.
8535 (gen_lowpart_or_truncate): New function.
8536 (force_to_mode): Use it instead of gen_lowpart.
8538 2006-01-13 Diego Novillo <dnovillo@redhat.com>
8540 * tree-ssa-alias.c (add_type_alias): Fix typo. Test whether
8541 VAR is a tag, not its type tag.
8543 2006-01-13 Alexandre Oliva <aoliva@redhat.com>
8545 * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
8546 alternatives to match style of other entries.
8547 (*vec_extractv2di_1_sse): Likewise. Fix mode attr.
8549 2006-01-13 Daniel Berlin <dberlin@dberlin.org>
8551 PR tree-optimization/25771
8552 * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
8555 2006-01-13 Andrew Pinski <pinskia@physics.uc.edu>
8558 * tree-inline.c (declare_return_variable): If the return variable
8559 was marked as a non gimple complex, set the return slot variable
8560 to be a non gimple comple variable.
8562 2006-01-13 Richard Guenther <rguenther@suse.de>
8564 * builtins.c (expand_builtin_sincos): New function.
8565 (expand_builtin_mathfn_3): Remove dead code, sin and cos
8567 (expand_builtin): Expand sincos using expand_builtin_sincos.
8569 2006-01-12 DJ Delorie <dj@redhat.com>
8571 * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
8572 shift counts, separate SI shifts for m32c vs m16c, pass shift type
8573 so that constant shifts can be split.
8574 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
8575 (m32c_valid_pointer_mode): Make static.
8576 (shift_gen_func_for): New.
8577 (m32c_prepare_shift): Use it. Split large const shifts into
8579 * config/m32c/predicates.md (shiftcount_operand): Allow more
8581 (longshiftcount_operand): New.
8582 * doc/md.texi (Machine Constraints): Document In6.
8584 2006-01-13 Ben Elliston <bje@au.ibm.com>
8586 * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
8587 REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
8590 2006-01-12 Daniel Berlin <dberlin@dberlin.org>
8592 * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
8593 to try to avoid clobbering pieces of structures when we know
8594 something about the whole structure.
8595 * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
8597 2006-01-13 Ben Elliston <bje@au.ibm.com>
8599 * doc/rtl.texi (Insns): Remove statement that libcalls cannot
8600 return in memory, as this is no limitation is no longer present.
8602 2006-01-12 DJ Delorie <dj@redhat.com>
8604 * config/m32c/addsub.md (addhi3): Add two more alternatives, for
8605 mova with fb, and for fb+0 -> An.
8607 * config/m32c/mov.md (peephole2): Fix enabling logic.
8609 * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
8610 DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
8611 DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
8612 FINI_ARRAY_SECTION_ASM_OP): Define.
8614 * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
8616 (m32c_legitimize_reload_address): New logic to reload FB to An.
8617 (m32c_output_reg_push): Add newline.
8618 (m32c_output_reg_pop): Likewise.
8620 2006-01-12 Ulrich Weigand <uweigand@de.ibm.com>
8622 * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
8624 2006-01-11 Andrew Pinski <pinskia@physics.uc.edu>
8626 * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
8628 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
8630 * config/sh/predicates.md (sh_rep_vec): Add parallel to
8633 2006-01-11 Ben Elliston <bje@au.ibm.com>
8635 * rtlanal.c (find_reg_note): Assert insn is not null.
8637 2006-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
8639 * df-scan.c (df_hard_reg_init): Move declaration of i outside
8642 2006-01-11 Jeff Law <law@redhat.com>
8644 * tree-ssa-threadupdate.c (threaded_edges): New VEC to
8646 (mark_threaded_blocks, register_jump_thread): New functions.
8647 (thread_through_all_blocks): Remove unwanted argument. No
8648 longer rely on e->aux to communicate thread target info.
8649 Call mark_threaded_blocks. Release the threaded_blocks
8650 bitmap and threaded_edges vector when complete.
8651 * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
8652 (threaded_blocks): Remove.
8653 (tree_ssa_dominator_optimize): Remove initialization and
8654 finalization of threaded_blocks. Simplify call to
8655 thread_through_all_blocks.
8656 (thread_across_edge): Call register_jump_thread rather than
8657 storing thread information into e->aux.
8658 (free_all_edge_infos): Simplify now that e->aux is no longer
8659 used to communicate with thread_through_all_blocks.
8660 * tree-flow.h (thread_through_all_blocks): Update prototype.
8661 (register_jump_thread): Prototype.
8663 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
8665 * df-core.c (df_compact_blocks, df_bb_replace): Use
8666 SET_BASIC_BLOCK instead of BASIC_BLOCK.
8668 2006-01-11 Richard Guenther <rguenther@suse.de>
8670 PR tree-optimization/25734
8671 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
8672 stop propagation after successful propagation to the LHS.
8674 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
8676 * basic-block.h (control_flow_graph): Change the type of
8677 x_basic_block_info to VEC(basic_block,gc) *.
8678 (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
8680 (SET_BASIC_BLOCK): New.
8681 * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
8682 instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
8683 * cfgbuild.c (find_basic_blocks): Likewise.
8684 * cfglayout.c (fixup_reorder_chain): Likewise.
8685 * cfgrtl.c (create_basic_block_structure,
8686 rtl_create_basic_block): Likewise.
8687 * ifcvt.c (find_if_case_1): Likewise.
8688 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
8691 2006-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
8693 * Makefile.in: Removed rotted odf.c entry.
8695 2006-01-11 Hans-Peter Nilsson <hp@axis.com>
8698 * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
8699 ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
8700 ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
8701 output pattern modifier, not %e.
8702 * config/cris/cris.c (cris_op_str): Update comment about pattern
8704 (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
8705 before falling through into...
8706 <case 'E'>: Redefined from old 'e' case.
8708 2006-01-11 Jan Hubicka <jh@suse.cz>
8711 * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
8713 2006-01-11 Jan Hubicka <jh@suse.cz>
8715 * i386.h (TARGET_DECOMPOSE_LEA): Kill.
8716 * i386.c (x86_decompose_lea): Kill.
8717 (ix86_rtx_costs): Kill.
8719 2006-01-11 Jan Hubicka <jh@suse.cz>
8721 * cgraph.c (cgraph_insert_node_to_hashtable): New function.
8722 * cgraph.h (cgraph_node): Add inline_decl.
8723 (cgraph_insert_node_to_hashtable): Declare.
8724 (save_inline_function_body): Declare.
8725 * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
8727 (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
8728 (cgraph_function_versioning): Update call of tree_function_versioning.
8729 (save_inline_function_body): New function.
8730 * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
8731 saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
8732 * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
8733 (cgraph_default_inline_p): Likewise.
8734 (cgraph_decide_inlining_incrementally): Likewise.
8735 * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
8736 (copy_bb): Kill saving; do updating of clones.
8737 (copy_cfg_body): Kill saving.
8738 (initialize_inlined-parameters): Likewise.
8739 (expand_call_inline): Likewise.
8741 (tree_function_versioning): New parameter "update_clones".
8742 (inlining_p): Kill saving.
8743 * tree-inline.h (tree_function_versioning): Update prototype.
8744 * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
8747 2006-01-11 Ian Lance Taylor <ian@airs.com>
8749 * combine.c (struct undo): Remove is_int. Enumify types of undos.
8750 Allow undoing set of machine mode.
8751 (do_SUBST): Use enums instead of is_int.
8752 (do_SUBST_MODE): New function.
8753 (SUBST_MODE): New macro.
8754 (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
8755 reg and trying to replace reg_regno_rtx with a new register.
8756 (undo_all): Use new enums, handle undoing a PUT_MODE change.
8757 (simplify_set): Use SUBST_MODE.
8758 (distribute_notes): Remove code that tried to update reg notes
8759 for regno_reg_rtx changes.
8761 2006-01-11 Paolo Bonzini <bonzini@gnu.org>
8763 PR tree-optimization/23109
8764 PR tree-optimization/23948
8765 PR tree-optimization/24123
8767 * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
8768 * tree-cfg.c (single_noncomplex_succ): New.
8769 * tree-flow.h (single_noncomplex_succ): Declare it.
8770 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
8771 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
8772 (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
8773 insert_bb, register_division_in, insert_reciprocals,
8774 replace_reciprocal, free_bb): New.
8775 (execute_cse_reciprocals_1): Rewritten.
8776 (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
8777 Do not commit any edge insertion. Always compute dominators and
8778 create the allocation pool.
8779 * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
8780 * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
8781 * targhooks.c (default_min_divistions_for_recip_mul): New.
8782 * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
8783 * passes.c (init_optimization_passes): Run recip after tree loop
8785 * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
8787 2006-01-11 Danny Berlin <dberlin@dberlin.org>
8788 Kenneth Zadeck <zadeck@naturalbridge.com>
8790 * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
8791 DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
8792 DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
8793 DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
8794 DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
8795 DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
8796 DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
8797 DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
8798 DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
8799 DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
8800 DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
8801 DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
8802 DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
8803 DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
8804 DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
8805 DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
8806 DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
8807 DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
8808 DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
8809 DF_SCAN_POST_ALLOC): New macros.
8810 (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
8811 df_free_bb_function, df_local_compute_function, df_init_function,
8812 df_dataflow_function, df_confluence_function_0,
8813 df_confluence_function_n, df_transfer_function,
8814 df_finalizer_function, df_free_function, df_dump_problem_function,
8815 df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
8816 df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
8817 df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
8818 df_urec_bb_info, ) New types.
8819 (df_invalidated_by_call, df_all_hard_regs, df_state) New public
8821 (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
8822 df_analyze_simple_change_some_blocks,
8823 df_analyze_simple_change_one_block, df_compact_blocks,
8824 df_bb_replace, df_bb_regno_last_use_find,
8825 df_bb_regno_first_def_find, df_bb_regno_last_def_find,
8826 df_insn_regno_def_p, df_find_def, df_find_use,
8827 df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
8828 df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
8829 df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
8830 debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
8831 debug_df_chain, df_get_dependent_problem, df_chain_create,
8832 df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
8833 df_grow_bb_info, df_chain_dump, df_print_bb_index,
8834 df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
8835 df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
8836 df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
8837 df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
8838 df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
8839 df_rescan_blocks, df_ref_create, df_get_artificial_defs,
8840 df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
8841 df_ref_remove, df_insn_refs_delete, df_refs_delete,
8842 df_reorganize_refs, df_set_state, df_hard_reg_init,
8843 df_read_modify_subreg_p) New public functions.
8844 * df-core.c: The core dataflow solver and glue routines for rtl
8846 (df_init, df_add_problem, df_set_blocks, df_finish,
8847 df_hybrid_search_forward, df_hybrid_search_backward,
8848 df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
8849 df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
8850 df_bb_regno_last_use_find, df_bb_regno_first_def_find,
8851 df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
8852 df_reg_defined, df_find_use, df_reg_used, df_dump,
8853 df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
8854 df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
8855 debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
8856 debug_df_useno, reset_df_after_reload): New functions.
8857 * df-scan.c: The scanning fuctions, once in df.c, completely
8858 rewritten so that they now fully model the functionality of
8859 register usage at the backend.
8860 (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
8861 df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
8862 df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
8863 df_grow_insn_info, df_rescan_blocks, df_ref_create,
8864 df_get_artificial_defs, df_get_artificial_uses,
8865 df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
8866 df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
8867 df_refs_delete, df_reorganize_refs, df_set_state,
8868 df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
8869 df_def_record_1, df_defs_record, df_uses_record,
8870 df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
8871 df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
8872 df_record_exit_block_uses, df_hard_reg_init): New functions.
8874 * df-problems.c: Seven concrete dataflow problems that use the
8875 scanning in df-scan.c and are solved by the engine in df-core.c.
8876 (df_get_dependent_problem, df_chain_create, df_chain_unlink,
8877 df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
8878 df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
8879 df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
8880 df_ru_free_bb_info, df_ru_alloc,
8881 df_ru_bb_local_compute_process_def,
8882 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
8883 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
8884 df_ru_transfer_function, df_ru_free, df_ru_dump,
8885 df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
8886 df_rd_free_bb_info, df_rd_alloc,
8887 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
8888 df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
8889 df_rd_transfer_function, df_rd_free, df_rd_dump,
8890 df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
8891 df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
8892 df_lr_local_compute, df_lr_init, df_lr_confluence_0,
8893 df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
8894 df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
8895 df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
8896 df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
8897 df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
8898 df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
8899 df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
8900 df_urec_mark_reg_change, df_urec_check_earlyclobber,
8901 df_urec_mark_reg_use_for_earlyclobber,
8902 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
8903 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
8904 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
8905 df_urec_dump, df_urec_add_problem, df_chain_alloc,
8906 df_chain_create_bb_process_use, df_chain_create_bb,
8907 df_chain_finalize, df_chain_free, df_chains_dump,
8908 df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
8909 df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
8910 df_reg_lifetime): New functions.
8911 * df.c: Deleted file.
8912 * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
8913 consistent with new df api.
8914 * modulo-sched.c (sms_schedule, rest_of_handle_sms,
8915 rest_of_handle_sms): Ditto.
8916 * web.c (unionfind_union, union_defs, entry_register, web_main):
8918 * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
8919 invariant_expr_equal_p, find_defs, check_dependencies,
8920 find_invariant_insn, find_invariants_to_move, move_invariant_reg,
8921 free_inv_motion_data, move_loop_invariants): Ditto.
8922 * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
8923 Update dependencies.
8924 (odf.c): Added defective entry that was deleted later in day.
8925 * sched-deps.c (sched_analyze_1): Ditto.
8927 2006-01-11 Zdenek Dvorak <dvorakz@suse.cz>
8929 * tree-ssa-operands.c (get_expr_operands): Record addressable
8930 variables directly. Do not call add_stmt_operands for CONST_DECLs
8932 (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
8933 (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
8935 2006-01-11 Ben Elliston <bje@au.ibm.com>
8937 * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
8938 function returns true in the positive case.
8940 2006-01-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8943 * config/pa/pa.md: Create separate 32 and 64-bit move patterns
8944 for SI, DI, SF and DF modes. Add alternatives to copy between
8945 general and floating point registers to the 32-bit patterns.
8946 * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
8947 * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
8948 (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
8949 generating 64-bit code.
8950 * config/pa/pa.c (output_move_double): Handle copies between general
8951 and floating registers.
8953 2006-01-10 Stuart Hastings <stuart@apple.com>
8955 * config/i386/i386.md (set_got): Update.
8956 (set_got_labelled): New. (UNSPEC_LD_MPIC): New.
8957 (builtin_setjmp_receiver): Mach-O support.
8958 * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
8959 (GOT_SYMBOL_NAME): Define.
8960 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
8961 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8962 * config/i386/i386.c (override_options): Revise for Darwin.
8963 (USE_HIDDEN_LINKONCE): Enable for Mach-O. (ix86_file_end): Mach-O
8964 support. (darwin_x86_file_end): New. (output_set_got): Add label
8965 parameter, revise for Mach-O. (x86_output_mi_thunk): Likewise.
8966 * config/i386/i386-protos.h (output_set_got): Likewise.
8967 * config/darwin.c (machopic_legitimize_pic_address): Update
8970 2006-01-10 Kaz Kojima <kkojima@gcc.gnu.org>
8972 * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
8973 when MODE isn't BLKmode.
8975 2006-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8977 PR rtl-optimization/25367
8978 * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
8980 2006-01-10 Hans-Peter Nilsson <hp@axis.com>
8983 * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
8984 for a negative bound.
8986 2006-01-10 Richard Guenther <rguenther@suse.de>
8988 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8989 Never override with anything constraint.
8991 2006-01-10 Jan Beulich <jbeulich@novell.com>
8993 * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
8994 256 bits when optimize_size.
8996 2006-01-10 Jan Beulich <jbeulich@novell.com>
8998 * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
9000 * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
9001 * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
9004 2006-01-10 Ben Elliston <bje@au.ibm.com>
9006 * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
9008 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
9009 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
9010 (USE_FP_FOR_ARG): Reject decimal float modes.
9011 (function_arg_advance): Likewise.
9012 (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
9013 (rs6000_handle_altivec_attribute): Do not permit decimal floating
9014 point types in AltiVec vectors.
9015 (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
9016 (rs6000_libcall_value): Likewise.
9018 2006-01-09 Bob Wilson <bob.wilson@acm.org>
9020 * config/xtensa/ieee754-df.S: New file.
9021 * config/xtensa/ieee754-sf.S: New file.
9022 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
9023 (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
9024 * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
9026 2006-01-09 Kazu Hirata <kazu@codesourcery.com>
9028 * config/sh/predicates.md (binary_float_operator,
9029 binary_logical_operator, commutative_float_operator,
9030 equality_comparison_operator, greater_comparison_operator,
9031 less_comparison_operator, logical_operator,
9032 noncommutative_float_operator, shift_operator,
9033 symbol_ref_operand, unary_float_operator): Remove redundant
9036 2006-01-09 Jeff Law <law@redhat.com>
9038 * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
9039 code to propagate the RHS of a cast into COND_EXPR_COND. Remove
9040 now unused arguments. Callers updated.
9041 (eliminate_redundant_computations): Remove now unused arguments,
9043 (local_fold): Remove, no longer used.
9044 (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
9046 * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
9047 (simplify_cond): New function.
9048 (forward_propagate_into_cond): Call simplify_cond.
9050 2006-01-09 Alexandre Oliva <aoliva@redhat.com>
9052 * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
9053 (*vec_extractv2di_1_sse): New.
9055 2006-01-09 Ben Elliston <bje@au.ibm.com>
9057 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
9059 2006-01-08 Richard Guenther <rguenther@suse.de>
9061 * tree-ssa-structalias.c (get_constraint_for): Remove
9063 (get_constraint_for_component_ref): Likewise.
9064 (do_deref): Likewise.
9065 (get_constraint_for): Likewise.
9066 (do_structure_copy): Likewise.
9067 (handle_ptr_arith): Likewise.
9068 (find_func_aliases): Likewise. Remove unused need_anyoffset
9071 2006-01-08 J"orn Rennecke <joern.rennecke@st.com>
9072 Kaz Kojima <kkojima@gcc.gnu.org>
9074 * config/sh/sh.h (CONST_OK_FOR_K16): Define.
9075 (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
9076 (EXTRA_CONSTRAINT_C16): Remove.
9077 (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
9078 (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
9079 EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
9080 * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
9081 constants of SHmedia. Handle nested constant expressions of
9083 (andcosts): Fix the costs for SHmedia constants.
9084 (sh_rtx_costs): Take account of outer_code for SHmedia constants.
9085 * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
9086 (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
9087 (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
9088 (movv4hi_i, movv2si_i): Likewise.
9089 (movsi_const): Adjust the second operand of ior so to match with
9091 (movdi_const, movdi_const_32bit): Likewise.
9092 (movdi_const_16bit+1): Don't sign-extend LOW.
9093 (movdi_const_16bit+2): Likewise. Remove the zero_extend and truncate
9095 (*double_shori): Fix the split condition. Use GEN_INT instead
9096 of get_int_mode calls. Mask lower 16-bit of the argument of
9098 (sym2GOTPLT): Remove.
9099 (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
9101 * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
9102 instead of EXTRA_CONSTRAINT_C16.
9104 2006-01-07 Ian Lance Taylor <ian@airs.com>
9105 David Edelsohn <edelsohn@gnu.org>
9107 PR rtl-optimization/25662
9108 * optabs.c (simplify_expand_binop): Use simplify_binary_operation
9109 for constant operands instead of simplify_gen_binary.
9110 * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
9111 after trying simplify_binary_operation
9113 2006-01-06 Daniel Berlin <dberlin@dberlin.org>
9115 * tree.c (iterative_hash_expr): Hash decls based on UID.
9117 2006-01-06 Eric Christopher <echristo@apple.com>
9119 * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
9120 (TARGET_UNWIND_EMIT): Fix spelling.
9121 * target.h (gcc_target): Add except_table_label.
9122 * except.c (output_function_exception_table): Use.
9123 * varasm.c (default_emit_except_table_label): New.
9124 * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
9126 (asm_out): Add here.
9127 * output.h (default_emit_except_table_label): Prototype.
9128 * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
9129 * config/darwin.c (darwin_emit_except_table_label): Define.
9130 * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
9132 2006-01-06 Zdenek Dvorak <dvorakz@suse.cz>
9134 PR tree-optimization/18527
9135 * tree-ssa-loop-niter.c (number_of_iterations_cond,
9136 number_of_iterations_special, number_of_iterations_exit):
9137 Move base and step of an iv to a single structure. Add
9138 no_overflow flag, and use it in # of iterations analysis.
9139 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
9140 folded_casts argument.
9141 (simple_iv): Pass base and step in a structure. Set no_overflow
9143 (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
9144 Evaluate expensiveness of computing # of iterations instead of
9145 the final expression.
9146 * tree-scalar-evolution.h (affine_iv): New structure.
9147 (simple_iv): Declaration changed.
9148 * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
9149 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
9150 find_givs_in_stmt): Changed due to simple_iv change.
9152 2006-01-06 Jeff Law <law@redhat.com>
9155 * tree-cfg.c (bsi_replace): Rename final argument from
9156 PRESERVE_EH_INFO to UPDATE_EH_INFO. Fix typo in last
9157 change (stmt -> orig_stmt).
9158 * tree-eh.c (verify_eh_throw_stmt_node): New function.
9159 (bsi_remove): Add new argument. Remove EH information
9161 (verify_eh_throw_table_statements): New function.
9162 (bsi_remove): Add new argument REMOVE_EH_INFO. All callers
9164 * tree-optimize.c (execute_free_cfg_annotations): Verify
9165 the EH throw statement table after removing annotations.
9166 * except.h (verify_eh_throw_table_statements): Prototype.
9167 * tree-flow.h (bsi_remove): Update prototype.
9168 * tree-vrp.c (remove_range_assertions): Add new argument to
9170 * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
9171 * tree-complex.c (expand_complex_div_wide): Likewise.
9172 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
9173 * tree-tailcall.c (eliminate_tailcall): Likewise.
9174 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
9175 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
9176 * tree-nrv.c (tree_nrv): Likewise.
9177 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
9178 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
9179 (combine_blocks): Likewise.
9180 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
9181 * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
9182 (cleanup_control_flow): Likewise.
9183 (remove_forwarder_block): Likewise.
9184 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
9185 * tree-sra.c (sra_replace): Likewise.
9186 * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
9187 (forward_propagate_single_use_vars): Likewise.
9188 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9189 * tree-inline.c (expand_call_inline): Likewise.
9190 * tree-vect-transform.c (vect_transform_loop): Likewise.
9191 * tree-outof-ssa.c (rewrite_trees): Likewise.
9192 * tree-cfg.c (make_goto_expr_edges): Likewise.
9193 (cleanup_dead_labels): Likewise.
9194 (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
9195 (bsi_move_before, bsi_move_after): Likewise.
9196 (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
9197 (tree_redirect_edge_and_branch, tree_split_block): Likewise.
9199 2006-01-06 Andrew Pinski <pinskia@physics.uc.edu>
9202 * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
9204 * tree-flow-inline.h (var_can_have_subvars): Handle complex types
9205 on non gimple variables. Also add checks at the top for decls and
9207 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
9209 * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
9210 and IMAGPART_EXPR for creating MUST_DEFs.
9211 (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
9212 and NAME_MEMORY_TAG separately from the DECLs.
9214 2006-01-06 Richard Guenther <rguenther@suse.de>
9216 * tree-dfa.c (mark_new_vars_to_rename): Create stmt
9217 annotation, if necessary.
9218 * tree-ssa-pre.c (create_expression_by_pieces): Remove
9219 redundant calls to update_stmt.
9220 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
9223 2006-01-05 Richard Henderson <rth@redhat.com>
9225 * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
9227 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
9229 * c-typeck.c: Update copyright date.
9231 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
9233 * c-typeck.c (build_c_cast): Always warn when casting
9234 from a pointer to an integer of different size, even if
9235 the node was constant.
9237 2006-01-05 Richard Guenther <rguenther@suse.de>
9239 PR tree-optimization/22555
9240 * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
9241 if one structure field is an array.
9242 * tree-ssa-operands.c (get_expr_operands): Continue scanning
9243 operands even if we found a subvar, but ignore VOPs in this
9245 * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
9247 * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
9249 2006-01-05 Richard Earnshaw <rearnsha@arm.com>
9252 * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
9254 2006-01-05 Richard Guenther <rguenther@suse.de>
9255 Diego Novillo <dnovillo@redhat.com>
9257 * tree-pass.h (TODO_remove_unused_locals): Define.
9258 * gimple-low.c (expand_var_p, remove_useless_vars,
9259 pass_remove_useless_vars): Remove. Update all users.
9260 * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
9261 (remove_unused_locals): New function.
9262 * tree-flow.h (remove_unused_locals): Declare.
9263 * passes.c (execute_todo): Call remove_unused_locals if
9264 TODO_remove_unused_locals is set.
9265 * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
9266 * tree-ssa-dce.c (pass_dce): Likewise.
9267 * tree-outof-ssa.c (pass_del_ssa): Likewise.
9269 2006-01-05 Richard Guenther <rguenther@suse.de>
9271 * tree-flow.h (struct fieldoff): Decompose field to
9272 type, size and decl.
9273 * tree-ssa-alias.c (create_sft): Take type as parameter.
9274 (create_overlap_variables_for): Store type, size and decl
9275 in the fieldoff structure.
9276 * tree-ssa-structalias.c (fieldoff_compare): Adjust users
9278 (push_fields_onto_fieldstack): Likewise.
9279 (create_variable_info_for): Likewise. Use offset for the
9280 SFT name if the decl is not available.
9282 2006-01-04 Paul Brook <paul@codesourcery.com>
9284 * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
9286 2006-01-04 Daniel Berlin <dberlin@dberlin.org>
9288 * lambda-code.c (can_put_in_inner_loop): Relax
9290 (can_put_after_inner_loop): New function.
9291 (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
9292 (perfect_nestify): Change to make copies and modify uses.
9294 2006-01-04 Richard Henderson <rth@redhat.com>
9296 Merge from gomp branch:
9297 * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
9298 via integer constant.
9299 (pragma_lex): Remove.
9300 * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
9301 rather than parsing it.
9302 * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
9303 handle_pragma_extern_prefix): Add %< %> quotes.
9304 (registered_pragmas): New.
9305 (c_register_pragma_1): New.
9306 (c_register_pragma): Use it.
9307 (c_register_pragma_with_expansion): Likewise.
9308 (c_invoke_pragma_handler): New.
9309 (init_pragma): Use cpp_register_deferred_pragma directly for
9311 * c-pragma.h (enum pragma_kind): New.
9312 (pragma_handler): New.
9313 (c_invoke_pragma_handler): Declare.
9314 * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
9316 * c-common.h (c_common_pch_pragma): Update decl.
9317 * Makefile.in (c-parser.o): Update dependencies.
9318 (GTFILES): Add c-pragma.h.
9319 * c-parser.c (struct c_token): Add pragma_kind.
9320 (struct c_parser): Add in_pragma.
9321 (c_lex_one_token): Always initialize keyword and pragma_kind.
9322 Extract data for CPP_PRAGMA.
9323 (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
9324 (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
9325 Don't allow CPP_PRAGMA_EOL if in_pragma.
9326 (c_parser_consume_pragma): New.
9327 (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
9328 (c_parser_skip_to_end_of_parameter): Likewise.
9329 (c_parser_skip_to_end_of_block_or_statement): Likewise.
9330 (c_parser_skip_to_pragma_eol): New.
9331 (c_parser_external_declaration): Handle CPP_PRAGMA.
9332 (c_parser_compound_statement_nostart): Likewise.
9333 (c_parser_statement_after_labels): Likewise.
9334 (c_parser_pragma): New.
9335 (pragma_lex): Likewise.
9336 (c_parser_pragma_pch_preprocess): New.
9337 (c_parser_new): Merge into ...
9338 (c_parse_file): ... here. Call c_parser_pragma_pch_preprocess.
9340 2006-01-04 Jeff Law <law@redhat.com>
9343 * tree-cfg.c (bsi_replace): Remove the original statement
9344 from the EH throw statement table.
9346 2006-01-04 Jakub Jelinek <jakub@redhat.com>
9348 * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
9349 make the prototype extern "C" and add throw ().
9352 * config/i386/i386.md (testqi_ext_3): Ensure len is positive
9353 and pos non-negative and pos + len <= 32.
9354 (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
9355 drop pos + len < HOST_BITS_PER_WIDE_INT test.
9356 (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
9359 * c-common.c (handle_vector_size_attribute): Reject zero vector size
9360 as well as sizes not multiple of component size.
9363 * function.c (instantiate_expr): New function.
9364 (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
9365 walk its DECL_VALUE_EXPR with instantiate_expr.
9367 * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
9368 DW_OP_deref{,_size} if address isn't going to be added.
9370 2006-01-04 Ben Elliston <bje@au.ibm.com>
9372 * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
9373 * config/fp-bit.c: Likewise.
9375 2006-01-03 Daniel Berlin <dberlin@dberlin.org>
9377 * dominance.c: Add comment about why we use DFS numbering
9380 2006-01-03 Jakub Jelinek <jakub@redhat.com>
9381 Richard Henderson <rth@redhat.com>
9383 Merge from gomp-branch:
9384 * varasm.c (assemble_variable): Handle thread-local COMMON data.
9385 * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
9387 2006-01-03 Paolo Bonzini <bonzini@gnu.org>
9389 PR rtl-optimization/25578
9390 * combine.c (combine_simplify_rtx, force_to_mode): Don't
9391 pass a parameter to simplify_shift_const if changing ASHIFTRT
9394 2006-01-03 Adrian Straetling <straetling@de.ibm.com>
9396 * builtins.c (get_builtin_sync_mem): New function.
9397 (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
9398 expand_builtin_lock_test_and_set, expand_builtin_lock_release):
9399 Call get_builtin_sync_mem to generate mem rtx.
9401 2006-01-03 Richard Guenther <rguenther@suse.de>
9404 * stmt.c (add_case_node): Make sure to clear overflow flags
9407 2006-01-03 Jakub Jelinek <jakub@redhat.com>
9409 Merge from gomp-branch.
9410 * config/sparc/sync.md: New file.
9411 * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
9412 UNSPECV_LDSTUB): New constants.
9413 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
9414 * config/sparc/predicates.md (memory_reg_operand): New predicate.
9415 * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
9418 2006-01-03 Roger Sayle <roger@eyesopen.com>
9420 * combine.c (reg_subword_p): New predicate to test whether the
9421 destination of a set refers to a subword/piece of a register.
9422 (try_combine): Generalize the code to merge the setting of a
9423 pseudo to a constant followed by a set of a subword of that
9424 register to a constant.
9426 2006-01-03 Kazu Hirata <kazu@codesourcery.com>
9428 * basic-block.h (control_flow_graph): Change the type of
9429 x_label_to_block_map to VEC(basic_block,gc) *.
9430 * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
9431 set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
9433 * tree-ssa-propagate.c (cfg_blocks): Change the type to
9434 VEC(basic_block,heap) *.
9435 (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
9436 ssa_prop_fini): Adjust the uses of cfg_blocks.
9438 2006-01-03 Steven Bosscher <stevenb.gcc@gmail.com>
9440 * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
9442 * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
9443 hashing trees instead of a pointer hash.
9444 (mem_attrs_htab_eq): Do a deep compare instead of a pointer
9445 compare for MEM_EXPR.
9447 PR rtl-optimization/25130
9448 * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
9449 when comparing MEMs for GCSE
9451 2006-01-03 Ben Elliston <bje@au.ibm.com>
9453 * targhooks.h (default_decimal_float_supported_p): Declare.
9454 * targhooks.c (default_decimal_float_supported_p): Define.
9455 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
9456 `default_decimal_float_supported_p'.
9457 * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
9459 2006-01-02 Adam Nemet <anemet@caviumnetworks.com>
9461 * combine.c (apply_distributive_law <SUBREG>): Check
9462 TRULY_NOOP_TRUNCATION.
9464 2006-01-02 Geoffrey Keating <geoffk@apple.com>
9466 * dwarf2out.c (have_switched_text_section): Delete.
9467 (have_multiple_function_sections): New.
9468 (have_location_lists): Make 'bool'.
9469 (add_AT_loc_list): Use 'true' not '1'.
9470 (dwarf2out_switch_text_section): Set have_multiple_function_sections.
9471 (output_loc_list): Use have_multiple_function_sections.
9472 (output_ranges): Likewise.
9473 (dwarf2out_begin_function): Set have_multiple_function_sections if
9475 (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
9476 Check function_section rather than DECL_SECTION_NAME.
9477 (dwarf2out_finish): Use have_multiple_function_sections.
9478 Don't clear have_location_lists.
9480 2006-01-02 Eric Botcazou <ebotcazou@adacore.com>
9481 Jan Hubicka <jh@suse.cz>
9483 * cfglayout.c (fixup_reorder_chain): Remove kludge for the
9484 case of conditional jump jumping to the next instruction.
9485 * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
9486 cases of conditional jump jumping to the next instruction.
9488 2006-01-02 Jan Hubicka <jh@suse.cz>
9490 * i386.c (*_cost): Add COSTS_N_INSNS.
9491 (ix86_rtx_costs): Do not use COSTS_N_INSNS.
9493 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
9496 * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
9498 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9500 * config/arm/arm.c (all_fpus): Fix comment typo.
9501 * config/darwin.c: Likewise.
9502 * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
9503 * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
9504 * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
9506 2006-01-01 David Edelsohn <edelsohn@gnu.org>
9508 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
9509 (rs6000_split_compare_and_swapqhi): New.
9510 * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
9511 (sync_compare_and_swapqhi_internal): New.
9512 * config/rs6000/rs6000-protos.h: Declare.