1 2006-12-19 Jan Hubicka <jh@suse.cz>
3 * cgraph.h (FOR_EACH_STATIC_VARIABLE, FOR_EACH_STATIC_INITIALIZER): New
5 (varpool_first_static_initializer, varpol_next_static_initializer): New
7 * ipa-reference.c (analyze_variable): Simplify.
8 (static_execute): Use FOR_EACH_STATIC_INITIALIZER.
9 * ipa-type-escape.c (type_escape_execute): Use FOR_EACH_STATIC_VARIABLE.
11 2006-12-19 Andrew Pinski <pinskia@gmail.com>
14 * tree-vrp.c (nonnull_arg_p): Treat the static decl as always
17 2006-12-20 Ben Elliston <bje@au.ibm.com>
19 * doc/invoke.texi (Optimize Options): Typo fix.
21 2006-12-19 Eric Christopher <echristo@apple.com>
23 * config/darwin.c (machopic_select_section): Rewrite.
24 (darwin_text_section): New.
25 (darwin_rodata_section): Ditto.
26 (darwin_mergeable_string_section): Ditto.
27 (darwin_mergeable_constant_section): Ditto.
28 * config/darwin-sections.def: Add SECTION_STRINGS for cstring_section.
30 2006-12-19 Steve Ellcey <sje@cup.hp.com>
32 * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL): Add undef.
34 2006-12-19 Paolo Bonzini <bonzini@gnu.org>
37 * gcc/Makefile.in (STAGE1_CHECKING): Rename to...
38 (STAGE1_CHECKING_CFLAGS): ... this.
40 2006-12-18 Andrew Pinski <pinskia@gmail.com>
43 * config/rs6000/rs6000.c (altivec_init_builtins): Change to set
44 READONLY on __builtin_altivec_mask_for_load instead of adding
47 2006-12-18 Roger Sayle <roger@eyesopen.com>
48 Eric Christopher <echristo@apple.com>
51 * real.c (real_maxval): Correctly handle IBM extended double format.
53 2006-12-19 Jan Hubicka <jh@suse.cz>
55 * expmed.c (expand_mult_const): Force operand to constant.
56 * rs6000.c (rs6000_emit_set_const, rs6000_emit_set_long_const): Add
57 copy_rtx to arguments.
59 2006-12-19 Ben Elliston <bje@au.ibm.com>
61 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
63 2006-12-19 Ben Elliston <bje@au.ibm.com>
65 * cse.c (cse_insn): Fix formatting.
67 2006-12-18 Geoffrey Keating <geoffk@apple.com>
69 * doc/invoke.texi (Debugging Options): Document -g0.
70 * config/darwin.h (LINK_COMMAND_SPEC): Replace -gnone with -g0.
71 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
73 2006-12-18 Ian Lance Taylor <iant@google.com>
75 * c.opt (Wmissing-declarations): Add C++ and ObjC++.
76 * doc/invoke.texi (Warning Options): -Wmissing-declarations now
79 2006-12-18 Andrew MacLeod <amacleod@redhat.com>
81 * tree-ssa-operands.h (struct vdef_optype_d): Rename to voptype_d.
82 (struct vuse_optype_d): Delete.
83 (SSA_OPERAND_MEMORY_SIZE): Delete.
84 (struct ssa_operand_memory_d): Change mem array to size one.
85 (NUM_VOP_FREE_BUCKETS): Define.
86 (free_vuses, free_vdefs): Replace with vop_free_buckets array.
87 (vdef_ops, vuse_ops, struct ssa_operand_iterator_d): Use voptype_d type.
88 * tree-pretty-print.c (dump_vops): Use voptype_d type.
89 * tree-ssa-operands.c (vop_free_bucket_size): New. Number of operands
90 which fit into a chunk of memory from a specific bucket.
91 (vop_free_bucket_index): New. Find correct size memory bucket.
92 (init_vop_buckets): New. Initialize VOP free memory buckets.
93 (add_vop_to_freelist): New. Add a VOP to the correct free list.
94 (ssa_operand_mem_size): New. Current size of an operand memory chunk.
95 (init_ssa_operands): Initialize operand memory and free lists.
96 (fini_ssa_operands): Remove references to free_vuses and free_vdefs.
97 (ssa_operand_alloc): Use graduated size memory allocation.
98 (APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
99 INITIALIZE_USE): Remove.
100 (alloc_vop): New. Allocate a virtual operand.
101 (alloc_vdef, alloc_vuse): Delete.
102 (add_def_op, add_use_op): Directly setup pointers.
103 (add_vop): New. Add a virtual operand.
104 (add_vuse_op, add_vdef_op): Call add_vop.
105 (realloc_vop): New. Reallocate a virtual operand.
106 (realloc_vdef, realloc_vuse): Call realloc_vop.
107 (finalize_ssa_def_ops): Delete. Move content to finalize_ssa_defs.
108 (finalize_ssa_defs): Optimize for common case, remove code based on
109 sorted pointers which was a waste of time.
110 (finalize_ssa_use_ops): Delete. Move content to finalize_ssa_uses.
111 (finalize_ssa_uses): Update last pointer.
112 (finalize_ssa_vdef_ops): Delete. Move content to finalize_ssa_vdefs.
113 (finalize_ssa_vdefs, finalize_ssa_vuse_ops): Use voptype_d and
114 directly manipulate pointers.
115 (copy_virtual_operands): Use voptype_d, and no need to update pointers.
117 2006-12-18 Nathan Sidwell <nathan@codesourcery.com>
119 * config/rs6000/rs6000.md (*movdf_hardfloat32): Use %X format to
120 determine if memory operand is an indexed address or not.
122 2006-12-17 Steven Bosscher <steven@gcc.gnu.org>
124 * cselib.c (struct cselib_val_struct): Make val_rtx its
125 own field, remove the union that contained it.
126 * cselib.c: Update accordingly where necessary.
128 2006-12-17 Steven Bosscher <steven@gcc.gnu.org>
130 * cse.c (have_eh_succ_edges): New function.
131 (cse_insn): Don't remove dead EH edges here
132 (cse_extended_basic_block): Do it here.
133 (rest_of_handle_cse, rest_of_handle_cse2): Don't assert
134 that we have removed all dead edges.
136 2006-12-17 Matthias Klose <doko@debian.org>
139 * gcc/config/mips/linux.h (SUBTARGET_CPP_SPEC): Extend.
141 2006-12-17 Steven Bosscher <steven@gcc.gnu.org>
143 * cse.c (cse_find_path): Don't wrap a gcc_assert in ENABLE_CHECKING.
144 (cse_extended_basic_block): When truncating a path while processing
145 it, make sure to clear the visited bit on the basic blocks in the
146 truncated part of the path.
147 (cse_main): Use reverse completion order, not DFS order, to walk
149 (gate_handle_cse): Revert erroneous commit of a counter.
151 2006-12-17 Steven Bosscher <steven@gcc.gnu.org>
153 * cse.c (this_insn_cc0, this_insn_cc0_mode): New global
154 variables, moved out from cse_insn.
155 (prev_insn): Remove this global variable).
156 (new_basic_block): Don't set it.
157 (cse_insn): Idem. Also, move code to delete unused CC0-setter
158 insns and code to set prev_insn_cc0 and prev_insn_cc0_mode
160 (cse_extended_basic_block): ...to here. Do not clear
161 prev_insn_cc0 until after recording equivalences from jumps.
163 2006-12-16 Jan Hubicka <jh@suse.cz>
165 * cgraphunit.c (ipa_passes): Clear current_function_decl.
167 2006-12-16 Andreas Tobler <a.tobler@schweiz.org>
169 * passes.c (verify_curr_properties): Define only for ENABLE_CHECKING.
171 2006-12-16 Jan Hubicka <jh@suse.cz>
173 * omp-low.c (expand_omp_parallel): Set function properties.
174 * function.h (struct function): Add curr_properties and last_verified.
175 * passes.c (register_dump_files): Do not set TODO_set_props for the
177 (init_optimization_passes): Set it here; reorder initialization so the
178 dump files appear in more logical order.
179 (last_verified, curr_properties): Kill.
180 (do_per_function): New function.
181 (execute_function_todo): Break out from ...
182 (execute_todo): ... here; handle per-function flags.
183 (clear_last_verified, verify_curr_properties,
184 update_properties_after_pass): New functions.
185 (execute_one_pass): Handle per-function properties.
186 (execute_ipa_pass_list): Use do_per_function; sanity check that cfun
187 and current_function_decls are cleared out.
188 * ipa-cp.c (constant_val_insert): Clear cfun/current_function_decl
191 2006-12-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
194 * c.opt (Wempty-body): New.
195 * doc/invoke.texi (Wempty-body): Document it.
196 (Wextra): Enabled by -Wextra.
197 * c-opts.c (c_common_post_options): Enabled by -Wextra.
198 * c-common.c (empty_body_warning): Replace Wextra with Wempty-body.
199 * c-parser.c (c_parser_c99_block_statement): Likewise.
201 2006-12-15 Jakub Jelinek <jakub@redhat.com>
204 * config/rs6000/rs6000.md (div<mode>3): Use correct mode in
207 2006-12-15 Andrew Pinski <pinski@gmail.com>
210 * tree-inline.c (setup_one_parameter): Gimplify the statement if
211 the variable is not a gimple register variable.
213 2006-12-15 Uros Bizjak <ubizjak@gmail.com>
215 * invoke.texi (mstringop-strategy): Add missing "byte_loop" value.
217 2006-12-14 Jan Hubicka <jh@suse.cz>
219 * tree-flow.h (struct stmt_ann_d): Move bitfield references_memory
222 2006-12-14 Richard Guenther <rguenther@suse.de>
224 PR tree-optimization/30197
225 * builtins.c (fold_builtin_cexp): New function to fold cexp
226 to cexpi and exp parts.
227 * tree-ssa-pre.c (try_combine_conversion): Also handle
228 REALPART_EXPR and IMAGPART_EXPR.
230 2006-12-14 Richard Guenther <rguenther@suse.de>
233 * fold-const.c (fold_binary): Fold __complex__ ( x, 0 )
234 + __complex__ ( 0, y ) to __complex__ ( x, y ).
235 Fold __complex__ (x, y) * +-I to __complex__ (-+y, +-x).
237 2006-12-14 Richard Guenther <rguenther@suse.de>
239 PR tree-optimization/30198
240 * fold-const.c (fold_unary): Fold REALPART_EXPR of cexpi to cos.
241 Fold IMAGPART_EXPR of cexpi to sin.
243 2006-12-14 Dorit Nuzman <dorit@il.ibm.com>
244 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
246 * spu.c (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Defined.
247 (spu_init_builtins): Mark the SPU_MASK_FOR_LOAD builtin decl as read
249 (spu_expand_builtin_1): Handle the SPU_MASK_FOR_LOAD builtin.
250 (spu_builtin_mask_for_load): New.
251 * spu-builtins.def (SPU_MASK_FOR_LOAD): Define new builtin.
252 * spu.md (UNSPEC_SPU_REALIGN_LOAD, UNSPEC_SPU_MASK_FOR_LOAD):New.
253 (vec_realign_load_<mode>, spu_lvsr): New.
255 2006-12-13 Ian Lance Taylor <iant@google.com>
259 * c-typeck.c (parser_build_binary_op): Move parentheses warnings
260 to warn_about_parentheses in c-common.c.
261 * c-common.c (warn_about_parentheses): New function.
262 * c-common.h (warn_about_parentheses): Declare.
263 * doc/invoke.texi (Warning Options): Update -Wparentheses
266 2006-12-13 Zdenek Dvorak <dvorakz@suse.cz>
268 * tree-ssa-loop-ivopts.c: Include tree-affine.h.
270 (constant_multiple_of): Fix order of operators for division.
271 (aff_combination_const, aff_combination_elt, aff_combination_scale,
272 aff_combination_add_elt, aff_combination_add, aff_combination_convert,
273 tree_to_aff_combination, add_elt_to_tree, unshare_aff_combination,
274 aff_combination_to_tree): Moved to tree-affine.c and made to work with
275 double_int coefficients.
276 (get_computation_aff, get_computation_at): Work with double_int
278 (get_computation_cost_at): Do not use divide.
279 (rewrite_use_nonlinear_expr, rewrite_use_address, rewrite_use_compare):
280 Assert that expressing the computation did not fail.
281 * tree-ssa-address.c: Include tree-affine.h.
282 (add_to_parts, most_expensive_mult_to_index, addr_to_parts,
283 create_mem_ref): Work with double_int coefficients.
284 * tree-affine.c: New file.
285 * tree-affine.h: New file.
286 * tree-flow.h (struct affine_tree_combination): Removed.
287 * Makefile.in (tree-affine.o): Add.
288 (tree-ssa-address.o, tree-ssa-loop-ivopts.o): Add tree-affine.h
291 2006-12-13 Peter Bergner <bergner@vnet.ibm.com>
295 * reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and
296 the offset == 0 "then" clauses.
297 * config/rs6000/predicates.md (gpc_reg_operand): Check for
300 2006-12-13 Uros Bizjak <ubizjak@gmail.com>
302 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Define to 53.
303 (FIXED_REGISTERS, CALL_USED_REGISTERS): Remove dir register.
304 (REG_ALLOC_ORDER): Remove one element due to removal of dir register.
305 (FRAME_POINTER_REGNUM): Update register number to 20.
306 (REG_CLASS_CONTENTS): Update contents due to removed dir register.
307 (HI_REGISTER_NAMES): Remove "dirflag".
309 * config/i386/i386.c (regclass_map): Remove dirflag entry.
310 (dbx_register_map, dbx64_register_map, svr4_dbx_register_map):
312 (ix86_md_asm_clobbers): Remove "dirflag" default asm clobber.
314 * config/i386/i386.md (R10_REG, R11_REG): Renumber.
315 (sse_prologue_save, *sse_prologue_save_insn): Renumber
316 hardcoded SSE register numbers.
318 * config/i386/mmx.md (mmx_emms, mmx_femms): Renumber
319 hardcoded MMX register numbers.
322 2006-12-13 Mark Shinwell <shinwell@codesourcery.com>
324 * config/arm/arm.c (arm_output_fldmx): Output FLDMD instead of
325 FLDMX. Rename function to...
326 (vfp_output_fldmd): ...this.
327 (vfp_output_fstmx): Output FSTMD instead of FSTMX. Rename
329 (vfp_output_fstmd): ...this.
330 (vfp_emit_fstmx): Don't leave space in the frame layout for the
331 FSTMX format word. Rename function to...
332 (vfp_emit_fstmd): ...this.
333 (arm_get_vfp_saved_size): Don't add in space for the FSTMX format
335 (arm_output_epilogue): Adjust comment to reflect use of FSTMD.
336 (arm_unwind_emit_sequence): Don't compensate for the FSTMX format
337 word. Also emit "vsave" assembler directives in such cases rather
339 * config/arm/libunwind.S (gnu_Unwind_Restore_VFP,
340 gnu_Unwind_Save_VFP): Adjust comments.
341 (gnu_Unwind_Restore_VFP_D, gnu_Unwind_Save_VFP_D): New functions
342 for saving and restoring using FSTMD and FLDMD rather than
344 (gnu_Unwind_Restore_VFP_D_16_to_31, gnu_Unwind_Restore_VFP_D_16_to_31):
345 New functions for saving and restoring the VFPv3 registers 16 .. 31.
346 * config/arm/pr-support.c (gnu_unwind_execute): Add conditional
347 compilation case to correctly handle unwind opcode 0xc8 when using
349 * config/arm/unwind-arm.c (struct vfpv3_regs): New.
350 (DEMAND_SAVE_VFP_D, DEMAND_SAVE_VFP_V3): New flags.
351 (__gnu_Unwind_Save_VFP_D, __gnu_Unwind_Restore_VFP_D,
352 __gnu_Unwind_Save_VFP_D_16_to_31, __gnu_Unwind_Restore_VFP_D_16_to_31):
354 (restore_non_core_regs): Restore registers using FLDMD rather than
355 FLDMX if required. Also handle restoration of VFPv3 registers.
356 (_Unwind_VRS_Pop): Handle saving and restoring of registers using
357 FSTMD and FLDMD if required; also handle VFPv3 registers 16 .. 31,
358 including cases where the caller specifies a range of registers
359 that overlaps the d15/d16 boundary.
361 2006-12-13 Diego Novillo <dnovillo@redhat.com>
364 * tree-ssa-operands.h (SSA_OPERAND_MEMORY_SIZE): Add space to
365 accomodate 511 operands.
367 2006-12-13 Richard Guenther <rguenther@suse.de>
369 * builtins.c (expand_builtin_cexpi): Fix typo.
371 2006-12-13 Jan Hubicka <jh@suse.cz>
373 * Makefile.in: Add dependencies.
374 * tree-pretty-print.c: Include value-prof.h
375 (dump_generic_bb_buff): Dump histograms
376 * value-prof.c: Include pointer-set.h
377 (gimple_alloc_histogram_value, histogram_hash, histogram_eq,
378 set_histogram_value, gimple_histogram_value,
379 gimple_add_histogram_value, gimple_remove_histogram_value,
380 gimple_histogram_value_of_type, dump_histogram_value,
381 dump_histograms_for_stmt, gimple_remove_stmt_histograms,
382 gimple_duplicate_stmt_histograms, visit_hist,
383 verify_histograms): New functions.
384 (tree_value_profile_transformations): Update for new histogram API.
385 (tree_divmod_fixed_value): Update for new histogram API.
386 (tree_divmod_fixed_value_transform): Update for new histogram API.
387 (tree_mod_pow2): Update for new histogram API.
388 (tree_mod_pow2_value_transform): Update for new histogram API.
389 (tree_mod_subtract): Update for new histogram API.
390 (tree_mod_subtract_transform): Update for new histogram API.
391 (tree_stringops_transform): Update for new histogram API.
392 (tree_divmod_values_to_profile): Update for new histogram API.
393 (tree_stringops_values_to_profile): Update for new histogram API.
394 (tree_find_values_to_profile): Update for new histogram API.
395 * value-prof.h (gimple_histogram_value): Declare.
396 (gimple_histogram_value_of_type): Declare.
397 (gimple_add_histogram_value): Declare.
398 (gimple_remove_histogram_value): Declare.
399 (dump_histograms_for_stmt): Declare.
400 (gimple_remove_histogram_value): Declare.
401 (gimple_remove_stmt_histograms): Declare.
402 (gimple_duplicate_stmt_histograms): Declare.
403 (verify_histograms): Declare.
405 (struct funrction): Add value_histograms hash.
406 (VALUE_HISTOGRAMS): New macro.
407 * profile.c (compute_value_histograms): update for new API.
408 * tree-inline.c: Include value-prof.h
409 (copy_bb): Update histograms.
410 * tree-flow.h (struct stmt_ann_d): Do not contain pointer to histograms;
411 reorder to get smaller memory layout.
412 * tree-cfg.c: Include value-prof.h
413 (bsi_remove): Update histograms.
414 (bsi_replace): Update histograms.
415 (verify_stmts): Call histogram verifier.
416 (tree_duplicate_bb): Update histograms.
417 (move_block_to_fn): Update histograms.
419 2006-12-13 Richard Guenther <rguenther@suse.de>
421 * ipa-inline.c (cgraph_flatten_node): Replace leafify with
423 (cgraph_decide_inlining): Likewise.
425 2006-12-13 Richard Guenther <rguenther@suse.de>
427 PR tree-optimization/17687
428 * builtins.def (BUILT_IN_CEXPI, BUILT_IN_CEXPIF, BUILT_IN_CEXPIL):
429 New builtins for imaginary argument cexp.
430 * builtin-types.def (BT_FN_COMPLEX_FLOAT_FLOAT,
431 BT_FN_COMPLEX_DOUBLE_DOUBLE, BT_FN_COMPLEX_LONGDOUBLE_LONGDOUBLE):
432 New required builtin types.
433 * builtins.c (expand_builtin_cexpi): Declare.
434 (mathfn_built_in): Handle BUILT_IN_CEXPI.
435 (expand_builtin_cexpi): New static helper.
436 (expand_builtin): Call it.
437 (do_mpfr_sincos): Adjust for CEXPI evaluation.
438 (fold_builtin_sincos): New function to fold sincos to cepxi.
440 2006-12-13 Richard Guenther <rguenther@suse.de>
442 * ipa-reference.c (scan_for_static_refs): Also scan
443 tcc_comparison class trees.
445 2006-12-12 David Daney <ddaney@avtrex.com>
447 * config/mips/mips.h (ASM_OUTPUT_EXTERNAL): Undefine it before
450 2006-12-12 Andrew Pinski <pinskia@gmail.com>
452 * tree-vect-transform.c (vect_permute_load_chain):
453 Set DECL_GIMPLE_REG_P to true for the vect_perm_*
456 2006-12-13 Sa Liu <saliu@de.ibm.com>
457 Ben Elliston <bje@au.ibm.com>
459 * config/spu/spu.h (C_COMMON_OVERRIDE_OPTIONS): Define.
460 (REGISTER_TARGET_PRAGMAS): Don't zero warn_main flag.
461 * config/spu/spu-protos.h (spu_c_common_override_options):
463 * config/spu/spu-c.c (spu_c_common_override_options): New.
464 * config/spu/spu.c (spu_override_options): Whitespace fix.
466 2006-12-12 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
468 * config/spu/spu.c (cpat_info): Fix an incorrectly identified case.
470 2006-12-12 Geoffrey Keating <geoffk@apple.com>
472 * mips-tdump.c: Replace CROSS_COMPILE with
473 CROSS_DIRECTORY_STRUCTURE.
474 * mips-tfile.c: Likewise.
476 * configure.ac: Likewise.
477 * cppdefault.c: Likewise.
478 * Makefile.in: Likewise.
479 * config/alpha/osf.h: Likewise.
480 * config/i386/cygwin.h: Likewise.
481 * config/i386/beos-elf.h: Likewise.
482 * config/i386/nto.h: Likewise.
483 * config/fr30/fr30.h: Likewise.
484 * config/svr4.h: Likewise.
485 * config/rs6000/aix.h: Likewise.
486 * config/rs6000/sysv4.h: Likewise.
487 * config/pa/pa64-hpux.h: Likewise.
488 * config/pa/pa-hpux10.h: Likewise.
489 * config/pa/pa-hpux11.h: Likewise.
490 * collect2.c: Likewise.
491 * configure: Regenerate.
493 * doc/tm.texi (Alignment Output): Document that ASM_OUTPUT_SKIP
494 actually takes an unsigned HOST_WIDE_INT for its second parameter.
496 2006-12-13 Ulrich Weigand <uweigand@de.ibm.com>
498 * config/spu/spu.c (TARGET_ENCODE_SECTION_INFO): Define.
499 (spu_encode_section_info): New.
500 * config/spu/spu.h (ALIGNED_SYMBOL_REF_P): Adjust.
501 (SYMBOL_FLAG_ALIGN1): New.
503 2006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
506 * tree-ssa-dom.c (eliminate_degenerate_phis): Use a temporary
507 bitmap for EXECUTE_IF_SET_IN_BITMAP.
509 2006-12-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
512 * tree.h (DECL_COMPLEX_GIMPLE_REG_P): Rename to ...
513 (DECL_GIMPLE_REG_P): This.
514 * fold-const.c (fold_indirect_ref_1): Fold *(foo *)&vectorfoo into
516 * omp-low.c (omp_copy_decl_2): Use the renamed DECL_GIMPLE_REG_P.
517 * tree-gimple.c (is_gimple_reg): Use the renamed DECL_GIMPLE_REG_P
518 and check for VECTOR_TYPE.
519 * expr.c (get_inner_reference): Set the mode for BIT_FIELD_REF with
521 * tree-flow-inline.h (var_can_have_subvars): Use the renamed
523 * gimplify.c (internal_get_tmp_var): Use the renamed DECL_GIMPLE_REG_P
524 and check for VECTOR_TYPE.
525 (gimplify_bind_expr): Likewise.
526 (gimplify_function_tree): Likewise.
527 * expmed.c: Include target.h.
528 (extract_bit_field): For vector mode, try find a better mode first.
529 If that fails use gen_lowpart (for vectors only).
530 * tree-dfa.c (make_rename_temp): Use the renamed DECL_GIMPLE_REG_P
531 and check for VECTOR_TYPE.
532 * tree-ssa-pre.c (create_expressions_by_pieces): Likewise.
533 (insert_into_preds_of_block): Likewise.
534 (insert_fake_stores): Create gimple register store_tmps for
536 * tree-sra.c (sra_elt): New field, is_vector_lhs.
537 (sra_walk_expr <case BIT_FIELD_REF>): For vector types that
538 are the left hand side, set the element's is_vector_lhs to true.
539 (instantiate_element): For vector types which were on the left
540 hand size, set DECL_GIMPLE_REG_P to false.
541 * tree-nested.c (create_tmp_var_for): Use the renamed
543 * tree-inline.c (declare_return_variable): Use the renamed
544 DECL_GIMPLE_REG_P and check for VECTOR_TYPE.
545 (copy_decl_to_var): Use the renamed DECL_GIMPLE_REG_P.
546 (copy_result_decl_to_var): Likewise.
547 * tree-vect-transform.c (vect_get_new_vect_var): For vector types,
548 create a gimple register variable.
549 (vect_permute_store_chain): Set DECL_GIMPLE_REG_P to true for the
550 vect_inter_* temp variables.
551 * Makefile.in (expmed.o): Update dependencies.
553 2006-12-12 Peter Bergner <bergner@vnet.ibm.com>
555 * reload1.c (eliminate_regs_in_insn): Merge the plus_src "else" and
556 the offset == 0 "then" clauses.
557 * config/rs6000/predicates.md (gpc_reg_operand): Check for
560 2006-12-12 Marcin Dalecki <martin@dalecki.de>
562 * doc/passes.texi: remove docs about "redundant PHI removal".
563 * tree-pass.h: remove orphaned declaration of pass_redundant_phi,
564 remove redundant pass_partition_blocks declaration.
566 2006-12-12 Andrew Macleod <amacleod@redhat.com>
568 PR tree-optimization/30159
569 * tree-ssa-coalesce.c (coalesce_ssa_name): Process single ssa_name
570 functions in case a default_def coalesce is required.
572 2006-12-12 Jakub Jelinek <jakub@redhat.com>
575 * gthr-posix.h (_REENTRANT): Only define if __osf__ is defined.
577 * config/ia64/linux.h (CPP_SPEC): Define.
578 * config/s390/linux.h (CPP_SPEC): Define.
580 2006-12-12 Jim Wilson <wilson@specifix.com>
581 Jakub Jelinek <jakub@redhat.com>
583 PR rtl-optimization/27761
584 * combine.c (try_combine): Don't create a useless garbage SET
585 if PATTERN (i2) is a PARALLEL. If added_sets_1, save
586 PATTERN (i1) resp. SET from i1src to i1dest in i1pat
587 and use it to prevent accidental modification of i1src.
589 2006-12-12 Ira Rosen <irar@il.ibm.com>
591 * tree-vect-analyze.c (vect_analyze_data_ref_access): Add another check
592 for stores with gaps.
593 * tree-vect-transform.c (vect_permute_store_chain): Create
594 interleave_high or interleave_low according to the endianess.
596 2006-12-12 Richard Guenther <rguenther@suse.de>
599 * fold-const.c (fold_read_from_constant_string): Only fold read
600 from constant string if the result type is integer.
602 2006-12-12 Olivier Hainque <hainque@adacore.com>
604 * config/rs6000/t-vxworks: Remove assignment to LIB2FUNCS_EXTRA.
606 2006-12-12 Olivier Hainque <hainque@adacore.com>
608 * config/vxlib.c: Extract tls related routines into ...
609 * config/vxlib-tls.c: New file.
610 * config/t-vxworks: Add vxlib-tls.c to LIB2FUNCS_EXTRA.
612 2006-12-12 Sa Liu <saliu@de.ibm.com>
613 Ben Elliston <bje@au.ibm.com>
615 * config/spu/spu.opt (mfixed-range): New option.
616 * config/spu/spu.h (spu_fixed_range_string): Declare.
617 * config/spu/spu.c (spu_override_options): Handle -mfixed-range.
618 (fix_range): New function.
619 * doc/invoke.texi (SPU Options): Document -mfixed-range.
620 * testsuite/gcc.target/spu/fixed-range.c: New.
621 * testsuite/gcc.target/spu/fixed-range-bad.c: Ditto.
623 2006-12-11 H.J. Lu <hongjiu.lu@intel.com>
627 * cgraphunit.c (cgraph_optimize): Remove call to
628 process_pending_assemble_externals.
630 * config/elfos.h (ASM_OUTPUT_EXTERNAL): New.
632 * config/ia64/hpux.h (TARGET_ASM_FILE_END): Removed.
634 * config/ia64/ia64.c (ia64_asm_output_external): Rewritten.
635 (ia64_hpux_add_extern_decl): Removed.
636 (ia64_hpux_file_end): Likewise.
637 (extern_func_list): Likewise.
638 (extern_func_head): Likewise.
640 * output.h (assemble_external): Update comments.
641 (default_elf_asm_output_external): New.
642 (maybe_assemble_visibility): New.
644 * toplev.c (compile_file): Update comment.
646 * varasm.c (assemble_external): Always put it on
647 pending_assemble_externals.
648 (maybe_assemble_visibility): Make it extern and return int.
649 (default_elf_asm_output_external): New.
651 2006-12-11 Daniel Berlin <dberlin@dberlin.org>
653 * tree-ssa-structalias.c (handle_ptr_arith): Return false when we
654 can't handle the pointer arithmetic.
656 2006-12-11 Diego Novillo <dnovillo@redhat.com>
658 * doc/tree-ssa.texi: Update documentation for virtual operands
659 and the use of push_stmt_changes/pop_stmt_changes.
660 * doc/invoke.texi: Remove documentation for params
661 global-var-threshold.
662 Update documentation on max-aliased-vops.
664 * tree-into-ssa.c: Cleanup comments, variables and
665 spacing in various functions.
666 (regs_to_rename): Declare.
667 (mem_syms_to_rename): Declare.
668 (dump_update_ssa): Declare.
669 (debug_update_ssa): Declare.
670 (dump_names_replaced_by): Declare.
671 (debug_names_replaced_by): Declare.
672 (dump_def_blocks): Declare.
673 (debug_def_blocks): Declare.
674 (dump_defs_stack): Declare.
675 (debug_defs_stack): Declare.
676 (dump_currdefs): Declare.
677 (debug_currdefs): Declare.
678 (mark_def_sites): Do not handle virtual operands.
679 (compute_idf): Rename from find_idf. Update users.
680 (register_new_def): Make local. Convert second argument
682 Use BLOCK_DEFS_STACK directly.
683 If pushing a non-register, also push the underlying
685 (rewrite_stmt): Do not handle virtual operands.
686 (dump_tree_ssa): Call dump_def_blocks, dump_defs_stack,
687 dump_currdefs and dump_tree_ssa_stats.
688 (dump_tree_ssa_stats): Also dump REPL_TBL.
689 (replace_use): Remove. Update all users to call SET_USE
691 (rewrite_blocks): Move code to free memory to
693 (mark_def_site_blocks): Move initialization code to
695 (init_ssa_renamer): New.
696 (fini_ssa_renamer): New.
697 (rewrite_into_ssa): Call them.
698 (prepare_block_for_update): Process SSA_OP_ALL_USES first
699 and SSA_OP_ALL_DEFS later. Do not process virtual
701 (dump_update_ssa): Call dump_decl_set.
702 (init_update_ssa): Initialize regs_to_rename and
704 Call init_ssa_renamer.
705 (delete_update_ssa): Call fini_ssa_renamer.
706 Free blocks_with_phis_to_rewrite.
707 (mark_sym_for_renaming): If the variable has
708 sub-variables, also mark them.
709 If the variable belongs to a partition, also mark it.
710 (mark_set_for_renaming): Call mark_sym_for_renaming on
711 every symbol in the set.
712 (switch_virtuals_to_full_rewrite): Call
713 mark_set_for_renaming.
714 (update_ssa): Separate syms_to_rename into regs_to_rename
715 and mem_syms_to_rename.
717 * tree-dump.c (dump_options): Add TDF_MEMSYMS.
718 * tree-pretty-print.c (debug_generic_expr): Add TDF_MEMSYMS.
719 (debug_generic_stmt): Likewise.
720 (debug_tree_chain): Likewise.
722 (dump_generic_node): Check for TDF_MEMSYMS.
723 Handle MEMORY_PARTITION_TAG.
724 If the statement references memory and TDF_MEMSYMS is
725 given, call dump_symbols.
726 Indicate default names with (D).
727 (dump_vops): Update for new virtual operator format.
729 * tree.c (init_ttree): Add MEMORY_PARTITION_TAG to
730 tree_contains_struct.
731 (tree_code_size): Handle MEMORY_PARTITION_TAG.
732 (tree_node_structure): Likewise.
733 (needs_to_live_in_memory): Handle SSA names.
734 * tree.h (MTAG_P): Likewise.
735 (struct tree_memory_partition_tag): Declare.
736 (MPT_SYMBOLS): Define.
737 (union tree_node): Add field 'mpt'.
738 * treestruct.def (TS_MEMORY_PARTITION_TAG): Define.
739 * tree.def (MEMORY_PARTITION_TAG): Define.
741 * tree-pass.h (TDF_MEMSYMS): Define.
743 * params.h (GLOBAL_VAR_THRESHOLD): Remove.
745 * tree-ssa-alias.c: Include pointer-set.h
746 (struct alias_map_d): Remove fields total_alias_vops,
747 grouped_p and may_aliases. Update all users.
748 (struct mp_info_def): Declare.
749 (mp_info_t): New type.
750 (get_smt_for): Rename from get_tmt_for. Update all
752 (add_may_alias): Add argument ALREADY_ADDED. If given,
753 use it to avoid adding duplicate entries to alias sets.
754 (replace_may_alias): Remove. Update all users.
755 (total_alias_vops_cmp): Remove. Update all users.
756 (group_aliases_into): Remove. Update all users.
757 (tree_pointer_compare): Remove. Update all users.
758 (compact_name_tags): Remove. Update all users.
759 (group_aliases): Remove. Update all users.
760 (mark_non_addressable): Move from tree-flow-inline.h.
761 Remove the symbol from the partition holding it, if
764 (debug_mp_info): New.
766 (create_partition_for): New.
767 (rewrite_alias_set_for): New.
768 (compute_memory_partitions): New.
769 (compute_may_aliases): Call it.
770 (init_alias_info): If computing aliases for the first
771 time, mark every memory symbol for renaming.
772 (have_common_aliases_p): New.
773 (compute_flow_insensitive_aliasing): Call it.
774 (setup_pointers_and_addressables): Do not cache
776 For register promoted symbols, mark their former
777 partition for renaming.
778 (maybe_create_global_var): Only create .GLOBAL_VAR if
779 there are no call-clobbered variables and a mix of pure
780 and non-pure functions were found.
781 (may_alias_p): Tidy comments.
782 (create_tag_raw): Remove unused variable new_type.
783 (dump_alias_info): call dump_memory_partitions.
784 (dump_points_to_info_for): Call dump_decl_set.
785 (may_be_aliased): Tidy comments and formatting.
787 * timevar.def (TV_MEMORY_PARTITIONING): Define.
788 * tree-vectorizer.c (vect_memsyms_to_rename): Rename from
789 vect_vnames_to_rename. Set DECL_UIDs instead of SSA name
791 (slpeel_update_phi_nodes_for_guard1): Ignore memory PHIs.
792 * tree-vect-transform.c (vect_transform_loop): Call
793 mark_set_for_renaming with vect_memsyms_to_rename.
794 * tree-flow-inline.h (zero_imm_uses_p): New.
795 (memory_partition): New.
796 (set_memory_partition): New.
797 (factoring_name_p): New.
798 (symbol_mem_tag): New. Update every function that used
799 to access the annotation directly.
800 (set_symbol_mem_tag): Likewise.
802 * tree-ssa-copy.c (may_propagate_copy): Allow copies
803 between a partition and a symbol as long as the symbol
804 belongs to the partition.
805 (merge_alias_info): Ignore merge requests when memory
806 partitions are involved.
808 * tree-ssa.c (verify_ssa_name): Check that default
809 definitions have empty defining statements.
810 (verify_use): Remove argument IS_VIRTUAL.
811 Don't call verify_ssa_name.
812 (verify_phi_args): Call verify_ssa_name.
813 (verify_flow_insensitive_alias_info): Handle MPTs.
814 (verify_flow_sensitive_alias_info): Likewise.
815 (verify_name_tags): Likewise.
816 (verify_call_clobbering): Likewise.
817 (verify_ssa): Check for VOPs only after aliasing
818 information is available.
819 Check virtuals and real operands separately.
820 Call verify_ssa_name on every operand.
821 (stmt_references_memory_p): Move to tree-ssa-operands.c.
822 (walk_use_def_chains_1): Guard against NULL PHI
825 * tree-ssa-operands.c (stmt_references_memory_p): Move from
828 (dump_memory_partitions): New.
829 (debug_memory_partitions): New.
831 * tree-flow.h (struct var_ann_d): Add field mpt.
832 (struct stmt_ann_d): Add bitfield references_memory.
833 * Makefile.in (tree-ssa-structalias.o): Include
835 (tree-ssa-alias.o): Likewise.
836 * tree-ssa-structalias.c: (update_alias_info): Use
837 STORED_SYMS to determine which variables are being
838 written to by the store operation.
839 * tree-ssa-structalias.h (struct alias_info)
840 <total_alias_vops>: Remove. Update all users.
841 <written_vars>: Change to a pointer set. Update all
843 <dereferenced_ptrs_store>: Likewise.
844 <dereferenced_ptrs_load>: Likewise.
845 (NUM_REFERENCES): Remove. Update all users.
846 (NUM_REFERENCES_CLEAR): Remove. Update all users.
847 (NUM_REFERENCES_INC): Remove. Update all users.
848 (NUM_REFERENCES_SET): Remove. Update all users.
850 * params.def (PARAM_GLOBAL_VAR_THRESHOLD): Remove.
852 (PARAM_MAX_ALIASED_VOPS): Set to 10.
853 * tree-ssanames.c (make_ssa_name): Initialize
854 SSA_NAME_IS_DEFAULT_DEF to 0.
856 2006-12-11 Aldy Hernandez <aldyh@redhat.com>
858 * tree-ssa-dse.c (aggregate_vardecl_d): New.
859 (dse_global_data): Add aggregate_vardecl field.
860 (dse_possible_dead_store_p): New.
861 Add prev_defvar variable.
862 Allow immediate uses and previous immediate uses to differ
863 if they are setting different parts of the whole.
864 (get_aggregate_vardecl): New.
865 (dse_record_partial_aggregate_store): New.
866 (dse_whole_aggregate_clobbered_p): New.
867 (dse_partial_kill_p): New.
868 (dse_optimize_stmt): Abstract code checking a possible dead store
869 into new function dse_possible_dead_store_p().
870 Call dse_maybe_record_aggregate_store().
871 When checking whether a STMT and its USE_STMT refer to the
872 same memory address, check also for partial kills that clobber
874 Move some variable definitions to the block where they are used.
875 (aggregate_vardecl_hash): New.
876 (aggregate_vardecl_eq): New.
877 (aggregate_vardecl_free): New.
878 (aggregate_whole_store_p): New.
879 (tree_ssa_dse): Initialize and free aggregate_vardecl.
880 Mark which aggregate stores we care about.
882 2006-12-11 Andrew Macleod <amacleod@redhat.com>
884 * tree-ssa-operands.h (struct vuse_element_d): Declare.
885 (vuse_element_t): Declare.
886 (struct vuse_vec_d): Declare.
887 (vuse_vec_p): Declare.
888 (VUSE_VECT_NUM_ELEM): Define.
889 (VUSE_VECT_ELEMENT_NC): Define.
890 (VUSE_ELEMENT_PTR_NC): Define.
891 (VUSE_ELEMENT_VAR_NC): Define.
892 (VUSE_VECT_ELEMENT): Define.
893 (VUSE_ELEMENT_PTR): Define.
894 (VUSE_ELEMENT_VAR): Define.
895 (struct maydef_optype_d) <use_var>: Remove.
898 (struct vuse_optype_d) <kill_var>: Remove.
901 (struct mustdef_optype_d) <kill_var>: Remove.
904 (VUSE_OP_PTR): Add argument. Use VUSE_ELEMENT_PTR.
905 (VUSE_OP): Add argument. Use VUSE_ELEMENT_PTR.
908 (MAYDEF_OP_PTR): Add argument. Use VUSE_OP_PTR.
909 (MAYDEF_OP): Add argument. Use VUSE_OP.
910 (MAYDEF_NUM): Define.
911 (MAYDEF_VECT): Define.
912 (MUSTDEF_KILL_PTR): Use VUSE_OP_PTR.
913 (MUSTDEF_KILL): Use VUSE_OP.
914 (MUSTDEF_NUM): Define.
915 (MUSTDEF_VECT): Define.
916 (realloc_maydef): Declare.
917 (realloc_vuse): Declare.
918 (struct ssa_operand_iterator_d) <vuse_index>: Add.
920 (LOADED_SYMS): Define.
921 (STORED_SYMS): Define.
922 (FOR_EACH_SSA_MUSTDEF_OPERAND): Call op_iter_next_mustdef.
923 * tree-into-ssa.c: Adapt for multi-operand V_MAY_DEF and VUSE
925 * tree-pretty-print.c: Likewise.
926 * tree-ssa-dse.c: Likewise.
927 * tree-flow-inline.h: Likewise.
928 (op_iter_next_mustdef): New.
929 * tree-ssa-operands.c: Likewise.
930 (ALLOC_OPTYPE): Remove.
936 (alloc_mustdef): New.
937 (realloc_maydef): New.
940 2006-12-11 Aldy Hernandez <aldyh@redhat.com>
942 * tree-ssa-operands.c: Remove build_v_must_defs.
943 (init_ssa_operands): Delete build_v_must_defs.
944 (finalize_ssa_v_must_def_ops): Remove.
945 (finalize_ssa_v_must_defs): Remove.
946 (finalize_ssa_stmt_operands): Do not call
947 finalize_ssa_v_must_defs.
948 (start_ssa_stmt_operands): Do not check build_v_must_defs.
949 (append_v_must_def): Delete.
950 (copy_virtual_operands): Do not copy V_MUST_DEFs.
951 (get_modify_expr_operands): Remove reference to V_MUST_DEF from
952 comment. Remove opf_kill_def.
953 (build_ssa_operands): Remove references to v_must_defs.
954 (copy_virtual_operands): Same.
955 (copy_virtual_operands): Same.
956 (fini_ssa_operands): Same.
957 (free_ssa_operands): Same.
958 (add_mustdef_op): Remove.
959 Remove mustdef_optype_p.
960 (alloc_mustdef): Remove.
961 Remove references to V_MUST_DEFs in comment at top of file.
962 (get_expr_operands): Remove opf_kill_def.
963 (opf_kill_def): Remove.
964 (add_virtual_operand): Remove opf_kill_def.
965 (get_indirect_ref_operands): Same.
966 (get_tmr_operands): Same.
968 * tree-vectorizer.c (rename_variables_in_bb): Remove
971 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Remove
973 (check_loop_closed_ssa_stmt): Same.
975 * tree-ssa.c (verify_def): Remove V_MUST_DEF from comment.
977 (verify_ssa): Remove V_MUST_DEFs traces.
978 (verify_ssa): Remove SSA_OP_ALL_KILLS.
980 * tree-into-ssa.c (mark_def_sites): Change SSA_OP_VMUSTDEF to
982 (rewrite_update_stmt): Remove SSA_OP_VIRTUAL_KILLS.
983 (rewrite_stmt): Remove SSA_OP_ALL_KILLS.
985 * tree-ssa-operands.h (struct stmt_operands_d): Remove V_MUST_DEF
987 (MUSTDEF_OPS): Remove.
988 (SSA_OP_VMUSTDEF): Remove.
989 (FOR_EACH_SSA_MUSTDEF_OPERAND): Remove.
990 (struct mustdef_optype_d): Remove.
991 Remove mustdef_optype_p.
992 (struct stmt_operands_d): Remove mustdef_ops.
993 (ssa_operand_iterator_d): Remove mustdefs and mustkills.
994 (SSA_OP_VIRTUAL_DEFS): Remove SSA_OP_VMUSTDEF.
995 (MUSTDEF_RESULT_PTR): Remove.
996 (MUSTDEF_RESULT): Remove.
997 (MUSTDEF_KILL_PTR): Remove.
998 (MUSTDEF_KILL): Remove.
999 (MUSTDEF_NUM): Remove.
1000 (MUSTDEF_VECT): Remove.
1001 (SSA_OP_VIRTUAL_KILLS): Remove.
1002 (SSA_OP_ALL_VIRTUALS): Remove SSA_OP_VIRTUAL_KILLS.
1003 (SSA_OP_VMUSTKILL): Remove.
1004 (SSA_OP_ALL_KILLS): Remove.
1005 (SSA_OP_ALL_OPERANDS): Remove SSA_OP_ALL_KILLS.
1007 * tree-flow-inline.h (op_iter_init_def): Remove
1008 SSA_OP_VIRTUAL_KILLS.
1009 (delink_stmt_imm_use): Remove SSA_OP_ALL_KILLS.
1011 * tree-ssa-pre.c (compute_rvuse_and_antic_safe): Remove
1012 SSA_OP_VIRTUAL_KILLS.
1014 * tree-ssa-loop-im.c (determine_max_movement): Remove
1015 SSA_OP_VIRTUAL_KILLS.
1016 (gather_mem_refs_stmt): Same.
1017 (gather_mem_refs_stmt): Same.
1019 * tree-ssa-dce.c (mark_really_necessary_kill_operand_phis): Delete.
1020 (perform_tree_ssa_dce): Remove call to
1021 mark_really_necessary_kill_operand_phis.
1023 * tree-flow-inline.h (op_iter_init): Remove setting of mustdefs
1025 (op_iter_next_use): Do not check mustkills.
1026 (op_iter_next_def): Do not check mustdefs.
1027 (op_iter_next_tree): Do not check mustkills or mustdefs.
1028 (clear_and_done_ssa_iter): Do not set mustdefs or mustkills.
1029 (op_iter_next_maymustdef): Do not check mustkills.
1030 (op_iter_init_must_and_may_def): Remove SSA_OP_VMUSTKILL.
1031 (op_iter_init_mustdef): Remove.
1033 * tree-ssa-live.c (create_ssa_var_map): Change SSA_OP_VMUSTDEF to
1036 * tree-ssa-dse.c (dse_optimize_stmt): Remove SSA_OP_VMUSTDEF.
1038 * tree-ssa-ccp.c: Remove V_MUST_DEF traces from comments.
1039 (visit_assignment): Same.
1041 * tree-ssa-copy.c (copy_prop_visit_assignment): Same.
1043 * tree-sra.c (mark_all_v_defs_1): Remove V_MUST_DEF from comment.
1045 * tree-outof-ssa.c (check_replaceable): Remove SSA_OP_VMUSTDEF.
1047 * tree-pretty-print.c (dump_vops): Remove printing of V_MUST_DEF.
1048 Remove kill_p variable.
1050 * tree-dfa.c (struct dfa_stats_d): Remove num_v_must_defs.
1051 (dump_dfa_stats): Remove code related to V_MUST_DEFs.
1052 (collect_dfa_stats_r): Do not set num_v_must_defs.
1053 (mark_new_vars_to_rename): Remove v_must_defs_{before,after}
1056 * tree-into-ssa.c (mark_def_sites): Change SSA_OP_VMUSTKILL to
1059 * tree-ssa-pre.c (compute_rvuse_and_antic_safe): Remove
1060 SSA_OP_VMUSTDEF and SSA_OP_VMUSTKILL.
1062 * tree-ssa-propagate.c (stmt_makes_single_store): Remove
1065 2006-12-11 Zdenek Dvorak <dvorakz@suse.cz>
1067 PR rtl-optimization/30113
1068 * loop-iv.c (implies_p): Require the mode of the operands to be
1071 2006-12-11 Diego Novillo <dnovillo@redhat.com>
1073 * tree-ssa-operands.h (create_ssa_artificial_load_stmt):
1074 Rename from create_ssa_artficial_load_stmt. Update all users.
1075 * tree-into-ssa.c (register_new_def): Make static.
1076 * tree.c (is_global_var): Handle SSA_NAMEs.
1077 * tree.h (SSA_NAME_IS_DEFAULT_DEF): Define. Update all users
1078 that used to call gimple_default_def.
1079 * tree-ssa-operands.c (push_stmt_changes): New.
1080 (pop_stmt_changes): New. Update every pass that modifies
1081 statements to bracket modifications with
1082 push_stmt_changes/pop_stmt_changes.
1083 (discard_stmt_changes): New.
1084 * tree-ssa-dom.c (stmts_to_rescan): Change to stack of
1085 'tree *' instead of 'tree'. Update all users.
1086 * tree-flow-inline.h (zero_imm_uses_p): New.
1087 (symbol_mem_tag): New. Update every function that used
1088 to access the annotation directly.
1089 (set_symbol_mem_tag): Likewise.
1090 * tree-dfa.c (dump_variable): Always show the escape mask.
1091 (mark_symbols_for_renaming): Rename from
1092 mark_new_vars_to_rename. Update all users.
1093 Only mark to rename naked symbols in real and virtual
1096 2006-12-11 Andreas Schwab <schwab@suse.de>
1098 * varasm.c (elf_record_gcc_switches): Cast second argument of
1099 ASM_OUTPUT_SKIP to unsigned HOST_WIDE_INT.
1101 2006-12-11 Diego Novillo <dnovillo@redhat.com>
1103 * tree-scalar-evolution.c (scev_const_prop):
1104 * tree-phinodes.c (remove_phi_node): Add argument
1105 RELEASE_LHS_P. If given, release the SSA name on the LHS of
1108 * tree-ssa-dce.c: Remove forward declarations for static
1109 functions. Re-arrange functions bodies as needed.
1110 (find_obviously_necessary_stmts): Never mark PHI nodes as
1111 obviously necessary.
1113 2006-12-11 Carlos O'Donell <carlos@codesourcery.com>
1115 * config/arm/elf.h (MAX_OFILE_ALIGNMENT): Remove definition.
1117 2006-12-11 Jan Hubicka <jh@suse.cz>
1119 * value-prof.c (tree_stringops_transform): New.
1120 (tree_value_profile_transformations): Require count to be non-zero;
1121 call stringop transform; reset stmt BSI after BB changed.
1122 (tree_divmod_fixed_value, tree_mod_pow2): Don't emit unnecesary label.
1123 (interesting_stringop_to_profile_p, tree_stringop_fixed_value): New.
1124 (tree_stringops_values_to_profile): New.
1125 (tree_values_to_profile): Call tree_stringops_values_to_profile.
1126 * tree.h (build_string_literal): Tidy prototype.
1127 (validate_arglist, builtin_memset_read_str, get_pointer_alignment):
1129 * builtins.c (validate_arglist, builtin_memset_read_str,
1130 get_pointer_alignment): Export.
1132 2006-12-11 Uros Bizjak <ubizjak@gmail.com>
1136 2006-11-15 Uros Bizjak <ubizjak@gmail.com>
1138 * config/i386/i386.opt: New target option -mx87regparm.
1140 * config/i386/i386.h (struct ix86_args): Add x87_nregs, x87_regno,
1141 float_in_x87: Add new variables. mmx_words, sse_words: Remove.
1142 (X87_REGPARM_MAX): Define.
1144 * config/i386/i386.c (override_options): Error out for
1145 -mx87regparm but no 80387 support.
1146 (ix86_attribute_table): Add x87regparm.
1147 (ix86_handle_cconv_attribute): Update comments for x87regparm.
1148 (ix86_comp_type_attributes): Check for mismatched x87regparm types.
1149 (ix86_function_x87regparm): New function.
1150 (ix86_function_arg_regno_p): Add X87_REGPARM_MAX 80387 floating
1152 (init_cumulative_args): Initialize x87_nregs and float_in_x87
1154 (function_arg_advance): Process x87_nregs and x87_regno when
1155 floating point argument is to be passed in 80387 register.
1156 (function_arg): Pass XFmode arguments in 80387 registers for local
1157 functions. Pass SFmode and DFmode arguments to local functions
1158 in 80387 registers when flag_unsafe_math_optimizations is set.
1160 * reg-stack.c (convert_regs_entry): Disable NaN load for
1161 stack registers that are used for argument passing.
1163 * doc/extend.texi: Document x87regparm function attribute.
1164 * doc/invoke.texi: Document -mx87regparm.
1166 2006-12-11 Jan Hubicka <jh@suse.cz>
1168 Move all varpool routines out of cgraph/cgraphunit to varpool.c
1169 * cgraph.c: Update comments.
1170 (cgraph_varpool_hash,
1171 cgraph_varpool_nodes, cgraph_varpool_last_needed_node
1172 cgraph_varpool_node_name, cgraph_varpool_node,
1173 cgraph_varpol_mode_for_asm, cgraph_varpool_mark_needed_node,
1174 cgraph_variable_initializer_availability): Move to
1175 varpool.c and drop cgraph_ prefixes.
1176 (cgraph_varpool_enqueue_needed_node, cgraph_varpool_reset_queue,
1177 cgraph_varpool_first_unanalyzed_node, cgraph_varpool_finalize_decl):
1178 move to varpool.c; drop cgraph_ prefix; make static.
1179 (dump_cgraph_varpool_node): Move to varpool.c under name
1181 (dump_varpool, hash_varpool_node, eq_varpool_node,
1182 decide_is_variable_needed): Move to varpool.c
1183 (decl_assembler_name_equal): Move to tree.c.
1184 (availability_names): Rename to ...
1185 (cgraph_availability_names): ... this one.
1186 (dump_cgraph_node): Update.
1187 * cgraph.h: Reorder declarations now in varpool.c
1188 (cgraph_vailablity_names): Declare.
1189 (struct cgraph_varpool_node): Rename to ...
1190 (struct varpool_node): ... this one.
1191 (cgraph_varpool_first_unanalyzed_node, cgraph_varpool_nodes_queue,
1192 cgraph_varpool_first_unanalyzed_node, cgraph_varpool_node,
1193 cgraph_varpool_node_for_asm, cgraph_varpool_mark_needed_node,
1194 cgraph_varpool_finalize_decl, cgraph_varpool_enqueue_needed_node,
1195 cgraph_varpool_reset_queue, cgraph_varpool_assemble_pending_decls,
1196 cgraph_variable_initializer_availability): Rename to ...
1197 (varpool_first_unanalyzed_node, varpool_nodes_queue,
1198 varpool_first_unanalyzed_node, varpool_node,
1199 varpool_node_for_asm, varpool_mark_needed_node,
1200 varpool_finalize_decl, varpool_enqueue_needed_node,
1201 varpool_assemble_pending_decls, variable_initializer_availability):
1203 * tree.c (decl_assembler_name_equal): Move here from cgraph.c.
1204 * tree.h (decl_assembler_name_equal): Declare.
1205 * omp-low.c (lower_omp_critical): Update.
1206 * ipa-reference (analyze_variable, static_execute): Likewise.
1207 * toplev.c (wrapup_global_declaration_2, compile_file): Update.
1208 * cgraphunit.c: Update comments.
1209 (cgraph_varpool_assembled_nodes_queue): Move to varpool.c under name
1210 varpool_assembled_nodes_queue.
1211 (cgraph_varpool_analyze_pending_decls): Move to varpool.c under name
1212 varpool_analyze_pending_decls.
1213 (cgraph_varpool_remove_unreferenced_decls): Move to varpool.c under name
1214 varpool_remove_unreferenced_decls.
1215 (record_reference): Update.
1216 (cgraph_create_edges): Update.
1217 (record_referneces_in_initializer): New function.
1218 (cgraph_varpool_assemble_decl): Move to varpool.c under name
1219 varpool_assemble_decl; make global.
1220 (cgraph_varpool_assemble_pending_decls): Move to varpool.c under name
1221 varpool_assemble_pending_decls.
1222 (process_function_and_variable_attributes, cgraph_finalize_compilation_unit,
1223 struct cgraph_order_sort, cgraph_output_in_order,
1224 cgraph_function_and_variable_invisibility, cgraph_optimize,
1225 cgraph_increase_alignment): Update.
1226 * dwarf2out.c (decls_for_scope): Likewise.
1227 * ipa-type-escape.c (analyze_variable, type_escape_execute): Likewise.
1228 * except.c (output_ttype): Likewise.
1229 * varasm.c (mark_decl_referenced): Likewise.
1230 (find_decl_and_mark_referenced, assemble_alias): update.
1231 * Makefile.in: Add varpool.c, gt-varpool.c and remove gt-cgraphunit.c
1232 * passes.c (rest_of_decl_compilation): Update.
1234 2006-12-11 Ira Rosen <irar@il.ibm.com>
1236 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Use
1237 GIMPLE_STMT_OPERAND.
1238 * tree-vect-transform.c (vect_permute_store_chain): Likewise.
1239 (vect_setup_realignment): Likewise.
1241 2006-12-11 Sa Liu <saliu@de.ibm.com>
1242 Ben Elliston <bje@au.ibm.com>
1244 * config/spu/spu-elf.h (STARTFILE_SPEC): Update.
1245 (ENDFILE_SPEC): Likewise.
1246 * config/spu/spu.opt (mstdmain): New option.
1247 * config/spu/crti.asm: Remove.
1248 * config/spu/crtn.asm: Likewise.
1249 * config/spu/crt0.c: Likewise.
1250 * config/spu/crtend.c: Likewise.
1251 * config/spu/t-spu-elf (EXTRA_MULTILIB_PARTS): Remove crt0 files
1253 ($(T)crti.o, $(T)crtn.o, $(T)crt1.o, $(T)crtend1.o): Remove.
1254 * doc/invoke.texi (SPU Options): Document -mstdmain.
1256 2006-12-10 Zdenek Dvorak <dvorakz@suse.cz>
1258 * doc/loop.texi: Document number_of_latch_executions and
1259 number_of_cond_exit_executions.
1260 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
1261 chrec_is_positive, number_of_iterations_for_all_loops,
1262 scev_const_prop): Use number_of_latch_executions.
1263 (set_nb_iterations_in_loop): Do not increase the value of the
1264 number of iterations.
1265 (number_of_iterations_in_loop): Renamed to ...
1266 (number_of_latch_executions): ... this.
1267 (number_of_exit_cond_executions): New function.
1268 * tree-scalar-evolution.h (number_of_iterations_in_loop): Declaration
1270 (number_of_latch_executions, number_of_exit_cond_executions): Declare.
1271 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Use
1272 number_of_latch_executions.
1273 * tree-data-ref.c (get_number_of_iters_for_loop): Use
1274 number_of_exit_cond_executions.
1275 * tree-vect-analyze.c (vect_get_loop_niters): Ditto.
1276 * cfgloop.h (struct loop): Improve description of the nb_iterations
1279 2006-12-10 Daniel Berlin <dberlin@dberlin.org>
1281 * tree-ssa-alias.c (compact_name_tags): Use sort_tags_by_id.
1282 (tree_pointer_compare): Remove.
1284 2006-12-10 Zdenek Dvorak <dvorakz@suse.cz>
1286 * tree-vrp.c (adjust_range_with_scev): Use get_chrec_loop.
1287 * loop-unswitch.c (unswitch_loops): Use FOR_EACH_LOOP.
1288 * tree-loop-linear.c (linear_transform_loops): Ditto.
1289 * tree-ssa-loop-im.c (determine_lsm): Ditto.
1290 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations,
1291 free_numbers_of_iterations_estimates): Ditto.
1292 * tree_ssa_unswitch_loops (tree_ssa_unswitch_loops): Ditto.
1293 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1294 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Ditto.
1295 * modulo-sched.c (sms_schedule): Ditto.
1296 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables,
1297 tree_unroll_loops_completely): Ditto.
1298 * predict.c (predict_loops): Ditto.
1299 * tree-if-conv.c (main_tree_if_conversion): Ditto.
1300 * loop-unroll.c (unroll_and_peel_loops, peel_loops_completely,
1301 decide_unrolling_and_peeling): Ditto.
1302 * cfgloopmanip.c (unloop): Use delete_loop.
1303 (place_new_loop): Access larray vector instead of parray.
1304 (create_preheaders, force_single_succ_latches,
1305 fix_loop_structure): Use FOR_EACH_LOOP and delete_loop..
1306 * loop-doloop.c (doloop_optimize_loops): Ditto.
1307 * loop-invariant.c (move_loop_invariants): Ditto.
1308 * tree-cfg.c (replace_uses_by): Ditto.
1309 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Ditto.
1310 * tree-chrec.h (CHREC_VAR, CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE):
1312 * tree.h (CHREC_VAR, CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE):
1314 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
1315 compute_overall_effect_of_inner_loop, chrec_is_positive): Use
1316 get_loop and get_chrec_loop.
1317 (number_of_iterations_for_all_loops): Use number_of_loops.
1318 (scev_initialize, scev_reset, scev_const_prop): Use FOR_EACH_LOOP.
1319 * tree-scalar-evolution.h (get_chrec_loop): New inline function.
1320 * cfgloopanal.c (mark_irreducible_loops): Use number_of_loops,
1322 * tree-chrec.c (evolution_function_is_invariant_rec_p,
1323 chrec_convert_1): Use get_loop and get_chrec_loop.
1324 * loop-init.c (loop_optimizer_init): Use number_of_loops.
1325 (loop_optimizer_init): Use FOR_EACH_LOOP.
1326 * tree-vectorizer.c (vect_loops_num): Removed.
1327 (vectorize_loops): Store number of loops locally. Use
1328 FOR_EACH_LOOP and get_loop.
1329 * tree-vectorizer.h (vect_loops_num): Removed.
1330 * tree-data-ref.c (get_number_of_iters_for_loop): Use get_loop.
1331 (find_data_references_in_loop): Do not set parallel_p.
1332 * tree-data-ref.h: Do not declare VEC(loop_p).
1333 * cfgloop.c (flow_loops_dump, mark_single_exit_loops,
1334 verify_loop_structure): Use FOR_EACH_LOOP.
1335 (flow_loops_free): Use FOR_EACH_LOOP, free larray vector.
1336 (initialize_loops_parallel_p): Removed.
1337 (flow_loops_find): Push the loops into a vector.
1338 (delete_loop): New function.
1339 (cancel_loop): Use delete_loop.
1340 * cfgloop.h: Declare VEC(loop_p).
1341 (struct loop): Remove parallel_p field.
1342 (struct loops): Replace num and parray field by larray vector.
1343 Remove shared_headers field.
1344 (delete_loop): Declare.
1345 (get_loop, get_loops, number_of_loops, fel_next, fel_init,
1346 FOR_EACH_LOOP): New.
1347 * doc/loop.tex: Document new accessor functions.
1349 2006-12-10 Andrew MacLeod <amacleod@redhat.com>
1351 * common.opt (-ftree-lrs): Remove live range splitting option.
1352 * makefile.in: Add tree-ssa-coalesce.o and reduce header dependancies.
1353 * opts.c (decode_options): Remove flag_tree_live_range_split.
1354 * tree-flow.h (struct var_ann_d): Rename fields from root_ to base_.
1355 * tree-flow-inline.h (single_imm_use_p): New. Check for single use.
1356 * tree-outof-ssa.c: Remove header files which aren't needed.
1357 (SSANORM_*): Remove flags.
1358 (print_exprs_edge, coalesce_abnormal_edges, coalesce_phi_operands,
1359 coalesce_result_decls_and_copies, coalesce_asm_operands): Remove.
1360 (coalesce_ssa_name): Move to tree-ssa-coalesce.c.
1361 (assign_vars): Use Basevar instead of root_var structure.
1362 (replace_def_variable): Dont do anything if def is replaceable.
1363 (remove_ssa_form): Integrate functional changes.
1364 (rewrite_out_of_ssa): Remove live-range_split option.
1365 * tree-ssa-coalesce.c: New File for ssa-name coalescing.
1366 (coalesce_cost): Calculate the cost of a coalesce.
1367 (coalesce_cost_bb): Calculate the coalesce cost within a BB.
1368 (coalesce_cost_edge): Calculate the coalesce cost on an edge.
1369 (pop_cost_one_pair): Remove the best coalesce with cost 1 from the list.
1370 (pop_best_coalesce): Remove the best coalesce from the list.
1371 (coalesce_pair_map_hash): Calculate coalesce pair hash.
1372 (coalesce_pair_map_eq): Compare 2 coalesce pairs for hash function.
1373 (create_coalesce_list): Create a coalesce list object.
1374 (delete_coalesce_list): Free a coalesce list object.
1375 (find_coalesce_pair): Find matching pair in the coalesce list.
1376 (add_cost_one_coalesce): Add a coalesce to the "cost one" list.
1377 (add_coalesce): Add a coalesce to the coalesce list.
1378 (compare_pairs): Comparision function to determine pair sorted order.
1379 (num_coalesce_pairs): Number of coalesced pairs.
1380 (first_coalesce_pair, end_coalesce_pair_p, next_coalesce_pair):
1381 Coalesce pair iterator functions.
1382 (sort_coalesce_list): Sort coalesce pairs in order of expense.
1383 (dump_coalesce_list): Show coalesce list.
1384 (ssa_conflicts_new): Create an SSA conflict graph.
1385 (ssa_conflicts_delete): Delete an SSA conflict graph.
1386 (ssa_conflicts_test_p): Test for conflicts.
1387 (ssa_conflicts_add_one): Add a single conflict.
1388 (ssa_conflicts_add): Add a conflict pair.
1389 (ssa_conflicts_merge): Merge conflicts.
1390 (struct live_track_d): Struct for tracking live partitions.
1391 (new_live_track): Create new live_track object.
1392 (delete_live_track): Delete a live_track object.
1393 (live_track_remove_partition): Remove a partition from the live list.
1394 (live_track_add_partition): Add a partition from the live list.
1395 (live_track_clear_var): Take VAR from the live list.
1396 (live_track_live_p): Is var live?
1397 (live_track_process_use): Make var come alive.
1398 (live_track_process_def): Make var go dead, add conflicts.
1399 (live_track_init): Initialize to a live on exit set.
1400 (live_track_clear_base_vars): Clear live partitions.
1401 (build_ssa_conflict_graph): Build a conflict graph.
1402 (print_exprs): Common debug output routine.
1403 (abnormal_corrupt): Output info about a failed coalesce across an
1405 (fail_abnormal_edge_coalesce): Output info about a failed MUST_COALESCE.
1406 (create_outofssa_var_map): Create a var map and coalesce list.
1407 (attempt_coalesce): Coalesce a pair.
1408 (coalesce_partitions): Coalesce all pairs in a coalesce list.
1409 (coalesce_ssa_name): Entry point. Determine what ssa_names to coalesce.
1410 * tree-ssa-live.c: Remove header files which aren't needed.
1411 (var_map_base_init): New. Initialize a basevar list.
1412 (var_map_base_fini): New. Finish a basevar list.
1413 (init_var_map): Initialize new fields.
1414 (delete_var_map): Free new fields.
1415 (var_union): Use renamed fields.
1416 (compact_var_map): Remove.
1417 (partition_to_view_init): Use renamed fields, change order of an if.
1418 (partition_view_fini): Use renamed fields.
1419 (partition_view_normal): Create basevar list if requested.
1420 (partition_view_bitmap): Create a view based on a bitmap of partitions.
1421 (change_partition_var): Use renamed fields.
1422 (create_ssa_var_map): Remove.
1423 (tpa_init, tpa_remove_partition, tpa_delete, tpa_compact,
1424 root_var_init): Remove.
1425 (partition_pair_map_hash, partition_pair_map_eq, create_coalesce_list,
1426 delete_coalesce_list, find_partition_pair, coalesce_cost, add_coalesce,
1427 compare_pairs, num_coalesce_pairs, first_partition_pair,
1428 end_partition_pair_p, next_partition_pair, sort_coalesce_list,
1429 pop_best_coalesce, add_conflicts_if_valid, set_if_valid,
1430 build_tree_conflict_graph, coalesce_tpa_members, dump_coalesce_list,
1431 tpa_dump): Moved to tree-ssa-coalesce.c and/or renamed there.
1432 (dump_var_map): Use renamed fields.
1433 * tree-ssa-live.h (struct _var_map): Modify fields.
1434 (partition_to_var, version_to_var, var_to_partition): Use renamed
1436 (basevar_index): New. Index of the base variable of a partition.
1437 (num_basevars): New. Number of unique base variables in partition map.
1438 (register_ssa_partition): Use renamed fields.
1439 (struct tree_partition_associator_d): Remove.
1440 (tpa_num_trees, tpa_tree, tpa_first_partition, tpa_next_partition,
1441 tpa_find_tree, tpa_decompact, root_var_init, root_var_num,
1442 root_var, root_var_first_partition, root_var_next_partition,
1443 root_var_dump, root_var_delete, root_var_remove_partition,
1444 root_var_find, root_var_compact, root_var_decompact): Remove.
1445 (struct partition_pair, struct coalesce_list_d): Moved to
1447 * tree-ssa-ter.c: Remove header files which aren't needed.
1449 2006-12-10 Steven Bosscher <steven@gcc.gnu.org>
1451 * cse.c: (struct cse_basic_block_data): Remove LAST field.
1452 (struct branch_path): Remove BRANCH and TAKEN fields. Add new
1454 (cse_visited_basic_blocks): New static bitmap.
1455 (cse_end_of_basic_block, cse_basic_block): Remove.
1456 (cse_find_path, cse_dump_path, cse_prescan_path,
1457 cse_extended_basic_block): New static functions.
1458 (cse_insn): Don't CSE over setjmp calls. Use the CFG to find
1459 basic block boundaries. Don't record jump equivalences here.
1460 Update the CFG after doing in-place replacement of the SET_SRC.
1461 (cse_main): Rewrite. Look for extended basic block headers
1462 and call cse_extended_basic_block on them until all paths that
1463 start at this header are exhausted.
1464 (rest_of_handle_cse): Verify that the CFG is incrementally updated
1465 and correct after cse_main.
1466 Don't call delete_trivially_dead_insns, let cfgcleanup do that.
1467 (rest_of_handle_cse2): Verify the CFG here, too, after cse_main.
1468 (pass_cse): Add TODO_verify_flow.
1469 (pass_cse2): Likewise.
1471 2006-12-10 Rask Ingemann Lambertsen <rask@sygehus.dk>
1473 * reload1.c (choose_reload_regs): Don't set byte offset when
1474 resolving subregs of hard regs.
1476 2006-12-09 Zack Weinberg <zackw@panix.com>
1478 * c-opts.c (c_common_parse_file): Unconditionally give a warning,
1479 suitable for the language, if set_yydebug is true.
1480 * c-pragma.h: Define enum pragma_omp_clause here. Don't define
1481 YYDEBUG or declare yydebug.
1482 * c-parser.c (yydebug, enum pragma_omp_clause): Delete.
1484 2006-12-09 Jan Hubicka <jh@suse.cz>
1486 * cgraph.c: Update copyright.
1487 * cgraph.h: Likewise
1488 (cgraph_update_pending_function): Remove prototype.
1489 * cgraphunit.c: Update copyright; update overall comment.
1490 (cgraph_assemble_pending_functions): Make local.
1492 2006-12-09 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1494 * haifa-sched.c (schedule_block): Remove excessive sanity check.
1496 2006-12-08 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1498 * config/spu/spu-protos.h (spu_split_immediate): Renamed from
1500 (cpat_const_p, gen_cpat_const): Add.
1501 * config/spu/spu.c (immediate_class): New enum.
1502 (cpat_info, classify_immediate): New.
1503 (print_operand): Use S, D, T instead of F, G, H. Use
1504 classify_immediate. Handle cpat cases.
1505 (spu_split_immediate): Renamed from spu_split_address. Split all
1506 immediates that can be split.
1507 (immediate_load_p): Use classify_immediate.
1508 (spu_legitimate_constant_p): Accept everything except some cases of
1510 (spu_expand_move): Use spu_split_immedate.
1511 (fsmbi_const_p): Use classify_immediate.
1512 (cpat_const_p): New.
1513 (gen_cpat_const: New.
1514 * config/spu/constraints.md (j,k,l): New constraints for cpat
1516 * config/spu/spu.md (unnamed splitter): Change address splitter to
1517 handle all immediates.
1518 (_mov<mode>, _movdi, _movti): Handle i, j, k constraints for cpat
1520 (cpat, _cpat, splitter): Generate a TImode constant for cpat patterns
1523 2006-12-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1526 * pa.md (high:DI and lo_sum:DI): Handle 64-bit CONST_INTs in 32-bit
1527 patterns. Correct length of high:DI instruction sequence.
1529 2006-12-08 Mike Stump <mrs@apple.com>
1531 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Build
1532 libgcc with -mmacosx-version-min=10.4.
1533 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Default to
1534 G4 for 10.5+ unless doing kernel builds.
1536 2006-12-08 Uros Bizjak <ubizjak@gmail.com>
1539 * reg-stack.c (convert_regs_entry): Mark current argument passing
1542 * config/i386/i386.h (X87_REGPARM_MAX): Set to 0 to disable passing
1543 of float arguments in x87 registers.
1545 2006-12-08 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
1547 * pa.h (LEGITIMATE_CONSTANT_P): Simplify.
1549 2006-12-08 Mark Shinwell <shinwell@codesourcery.com>
1551 * recog.c (mode_dependent_address_p): Identify pre-increment,
1552 pre-decrement, post-increment and post-decrement addressing as always
1553 being mode-dependent.
1554 * config/m32c/m32c.c (m32c_mode_dependent_address): Delete.
1555 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1556 * config/m32c/m32c-protos.h (m32c_mode_dependent_address): Delete.
1557 * config/m32r/m32r.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete PRE_DEC,
1558 PRE_INC and POST_INC checks.
1559 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1560 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1561 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1562 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1563 * config/c4x/c4x.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete PRE_DEC,
1564 PRE_INC, POST_DEC and POST_INC cases.
1565 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
1566 Delete POST_INC and PRE_DEC cases.
1567 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to
1569 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1570 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to
1572 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1573 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1574 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Delete
1575 PRE_INC and PRE_DEC cases.
1576 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1577 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1578 * config/arm/arm.h (ARM_GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1579 (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1580 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1581 * config/vax/vax.c (vax_mode_dependent_address_p): Delete
1582 auto-increment cases.
1583 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete
1584 auto-increment cases.
1585 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
1587 2006-12-08 Andrew MacLeod <amacleod@redhat.com>
1589 * Makefile.in: Add new file tree-ssa-ter.c.
1590 * tree-outof-ssa.c (struct temp_expr_table_d, new_temp_expr_table,
1591 free_temp_expr_table, add_value_to_version_list,
1592 add_value_to_partition_list, remove_value_from_partition_list,
1593 add_dependence, check_replaceable, finish_expr, mark_replaceable,
1594 kill_expr, kill_virtual_exprs, find_replaceable_in_bb,
1595 find_replaceable_exprs, dump_replaceable_exprs): Move to tree-ssa-ter.c.
1596 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs): Add
1598 * tree-ssa-ter.c: New file using code moved from tree-outof-ssa.c.
1599 (struct value_expr_d): Remove.
1600 (struct temp_expr_table_d): Rename fields, add explicit vector of
1601 replaceable expressions instead of sharing. Change value_expr_p's to
1602 bitmap. Delete free_list.
1603 (new_temp_expr_table): Rename fields, count number of ssa_names in
1605 (free_temp_expr_table): Rename field, free new fields.
1606 (new_value_expr, free_value_expr, find_value_in_list, add_value_to_list,
1607 add_info_to_list, remove_value_from_list): Delete.
1608 (version_to_be_replaced_p): New. Is an ssa-name replaceable?
1609 (make_dependent_on_partition): New. Set bit in version list, allocating
1610 a bitmap if need be.
1611 (add_to_partition_kill_list): New. Set bit in the partition list,
1612 allocating a bitmap if need be.
1613 (remove_from_partition_kill_list): New. Remove a bit from the
1614 partition list, free the bitmap if it is empty.
1615 (add_dependence): Use renamed field, cleanup. Don't add a dependence
1616 on partitions with only one member.
1617 (is_replaceable_p): New. Split out replaceability check from
1619 (process_replaceable): New. Code split from check_replaceable.
1620 (check_replaceable): Removed.
1621 (finished_with_expr): Renamed from finish_expr.
1622 (kill_expr): Use renamed fields and less parameters.
1623 (kill_virtual_exprs): Less parameters.
1624 (mark_replaceable): Use renamed fields.
1625 (find_replaceable_in_bb): Use renamed fields, cleanup.
1626 (find_replaceable_exprs): Use renamed routines, cleanup.
1627 (dump_replaceable_exprs): Don't go past end of ssa_names list.
1628 (debug_ter): New. Debug routine to dump state.
1630 2006-12-08 Bernd Schmidt <bernd.schmidt@analog.com>
1632 * config/bfin/bfin.c (effective_address_32bit_p): Return true for
1633 anything involving the GOT.
1634 (bfin_adjust_cost): Don't take the REGNO of a MEM.
1635 (trapping_loads_p): Look inside the pattern of an insn to find the
1637 * config/bfin/bfin.md (attr "type"): Add movcc.
1638 (insn_reservation "alu"): Likewise.
1639 (movsicc_insn1, movsicc_insn2): Change type to movcc.
1641 2006-12-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
1643 * config/spu/spu-c.c (spu_build_overload_builtin): Delete.
1644 (spu_resolve_overloaded_builtin): Check for non scalar instead
1645 of vector type and check the function call argument type also for
1647 Call build_function_call instead of spu_build_overload_builtin.
1649 2006-12-07 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1651 * config/spu/spu.c (array_to_constant): Correct the order of arguments
1652 to the calls of hwint_to_const_double.
1654 2006-12-07 Nick Clifton <nickc@redhat.com>
1656 * config/elfos.h (TARGET_ASM_RECORD_GCC_SWITCHES): Set to
1657 elf_record_gcc_switches.
1659 2006-12-07 Andrew Macleod <amacleod@redhat.com>
1661 * expr.c (string_constant): Account for non-zero lower bound arrays.
1663 2006-12-07 Richard Guenther <rguenther@suse.de>
1665 * builtins.c (expand_builtin_pow): Adjust predicates for
1666 pow to cbrt expansion to unsafe math and !HONOR_NANS for
1669 2006-12-07 Jan Hubicka <jh@suse.cz>
1671 * i386.c (nocona_cost, pentium4_cost): Update preffered memcpy/memset
1674 2006-12-07 Jan Hubicka <jh@suse.cz>
1676 * tree-vrp.c (compare_values): Short circuit INTEGER_CST;
1677 use fold_constant_to_binary; tolerate wrong type constants.
1678 (value_intersect_p): Do just two tests.
1680 2006-12-07 Bernd Schmidt <bernd.schmidt@analog.com>
1682 * config/bfin/bfin.c (print_operand): New modifier 'N' for constants.
1683 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
1684 lshifthi3): Use it, and fix the order of alternatives.
1686 2006-12-07 Nick Clifton <nickc@redhat.com>
1688 * common.opt (record-gcc-switches): New command line switch.
1689 * target.h (print_switch_type): New enum.
1690 (print_switch_fn_type): New typedef for a function pointer.
1691 (struct gcc_target): Add record_gcc_switches and
1692 record_gcc_switches_section fields.
1693 * target-def.h (TARGET_ASM_RECORD_GCC_SWITCHES): Provide a
1695 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Provide a default
1697 * toplev.c (print_single_switch): Simplify by providing a
1698 pointer to function that will format and output the switch
1700 (print_switch_values): Likewise.
1701 (print_to_asm_out_file): New function.
1702 (print_to_stderr): New function.
1703 (init_asm_output): If flag_record_gcc_switches is set then if
1704 the target supports recording the switches then emit them into
1705 the assembler output file, otherwise tell the user that the
1706 switch is not supported.
1707 * varasm.c (eld_record_gcc_switches): New function. Example
1708 handler for the record_gcc_switches target hook.
1709 * doc/tm.texi (TARGET_ASM_RECORD_GCC_SWITCHES): Document the new
1711 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Likewise.
1712 * doc/invoke.texi (-frecord-gcc-switches): Document.
1714 2006-12-07 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1717 * sched-rgn.c (add_block1): Use correct initializer.
1719 2006-12-07 Richard Guenther <rguenther@suse.de>
1721 * tree-vect-transform.c (vectorizable_call): Fix leftover of
1722 TREE_OPERAND to GIMPLE_STMT_OPERAND conversion.
1724 2006-12-06 Aldy Hernandez <aldyh@redhat.com>
1727 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Build MODIFY_EXPR
1728 not GIMPLE_MODIFY_STMT.
1730 2006-12-06 Jan Hubicka <jh@suse.cz>
1732 * tree-vrp.c (operand_less_p): New.
1733 (compare_values, value_inside_range): Rewrite in terms of
1736 2006-12-06 Uros Bizjak <ubizjak@gmail.com>
1738 * config/i386/i386.md (DIRFLAG_REG): Remove constant.
1740 (length_immediate): Do not depend on cld type attribute.
1741 (length_address): Ditto.
1744 (cld): Remove insn pattern.
1745 (strmov_singleop): Do not use DIRFLAG_REG.
1746 (*strmovdi_rex_1): Ditto.
1747 (*strmovsi_1): Ditto.
1748 (*strmovsi_rex_1): Ditto.
1749 (*strmovhi_1): Ditto.
1750 (*strmovhi_rex_1): Ditto.
1751 (*strmovqi_1): Ditto.
1752 (*strmovqi_rex_1): Ditto.
1754 (*rep_movdi_rex64): Ditto.
1755 (*rep_movsi): Ditto.
1756 (*rep_movsi_rex64): Ditto.
1757 (*rep_movqi): Ditto.
1758 (*rep_movqi_rex64): Ditto.
1759 (strset_singleop): Ditto.
1760 (*strsetdi_rex_1): Ditto.
1761 (*strsetsi_1): Ditto.
1762 (*strsetsi_rex_1): Ditto.
1763 (*strsethi_1): Ditto.
1764 (*strsethi_rex_1): Ditto.
1765 (*strsetqi_1): Ditto.
1766 (*strsetqi_rex_1): Ditto.
1768 (*rep_stosdi_rex64): Ditto.
1769 (*rep_stossi): Ditto.
1770 (*rep_stossi_rex64): Ditto.
1771 (*rep_stosqi): Ditto.
1772 (*rep_stosqi_rex64): Ditto.
1773 (cmpstrnsi): Do not generate cld insn.
1774 (cmpstrnqi_nz_1): Do not use DIRFLAG_REG.
1775 (*cmpstrnqi_nz_1): Ditto.
1776 (*cmpstrnqi_nz_rex_1): Ditto.
1777 (cmpstrnqi_1): Ditto.
1778 (*cmpstrnqi_1): Ditto.
1779 (*cmpstrnqi_rex_1): Ditto.
1780 (strlenqi_1): Ditto.
1781 (*strlenqi_1): Ditto.
1782 (*strlenqi_rex_1): Ditto.
1784 * config/i386/geode.md (shift): Do not depend on cld type attribute.
1785 * config/i386/pentium.md (pent_cld): Remove insn reservation.
1786 * config/i386/athlon.md (athlon_decode): Do not depend on cld
1788 * config/i386/ppro.md (ppro_cld): Remove insn reservation.
1789 * config/i386/k6.md (k6_alux_only): Do not depend on cld type
1791 (k6_alux_only_load): Ditto.
1792 (k6_alux_only_store): Ditto.
1794 * config/i386/i386.c (ix86_expand_movmem): Remove cld_done boolean.
1795 Do not emit cld instruction.
1796 (ix86_expand_setmem): Ditto.
1797 (ix86_expand_strlen): Do not emit cld instruction.
1799 2006-12-06 Bernd Schmidt <bernd.schmidt@analog.com>
1801 * config/bfin/bfin.c (bfin_rtx_costs): Add a number of new cases, tweak
1804 2006-12-06 Diego Novillo <dnovillo@redhat.com>
1806 * gdbinit.in: Set complaints to 0.
1808 2006-12-06 Jan Hubicka <jh@suse.cz>
1810 * statistics.h (ALONE_PASS_MEM_STAT, ALONE_MEM_STAT_INFO,
1811 ALONE_MEM_STAT_DECL): New macros.
1812 * bitmap.h: Include statistics.h
1813 (struct bitmap_head_def): Add variant with pointer to bitmap descriptor.
1814 (bitmap_initialize_stat): Rename from bitmap_initialize; add statistics.
1815 (bitmap_obstack_alloc_stat, bitmap_gc_alloc_stat): Declare.
1816 * bitmap.c: Include hashtab.h
1817 (bitmap_descriptor): New.
1818 (bitmap_hash): New static variable
1819 (hash_descriptor, eq_descriptor, bitmap_descriptor, register_overhead):
1820 New static functions.
1821 (bitmap_register): New.
1822 (bitmap_element_free, bitmap_element_allocate, bitmap_elt_clear_from,
1823 bitmap_obstack_release): Do accounting.
1824 (bitmap_obstack_alloc_stat): Rename from bitmap_obstack_alloc ; do
1826 (bitmap_gc_alloc_stat): Likewise.
1827 (bitmap_obstack_free, bitmap_find_bit): Do statictics.
1828 (print_statistics, dump_bitmap_statistics): New functions.
1829 * toplev.c (finalize): Dump bitmap statistics.
1831 2006-12-06 Bernd Schmidt <bernd.schmidt@analog.com>
1833 * reload1.c (delete_output_reload): Count occurrences in
1834 CALL_INSN_FUNCTION_USAGE.
1835 * rtlanal.c (count_occurrences): Handle EXPR_LIST nodes without
1836 crashing at the end of the list.
1838 2006-12-05 Daniel Berlin <dberlin@dberlin.org>
1840 * tree-ssa-structalias.c (set_used_smts): Re-fix pr29156.
1841 Optimize to avoid marking more SMT's as used when they aren't.
1843 2006-12-05 Eric Christopher <echristo@apple.com>
1845 * config/i386/i386.c (x86_output_aligned_bss): Move out
1846 of COMMON_ASM_OP ifdef.
1848 2006-12-05 Eric Christopher <echristo@apple.com>
1850 * config/darwin.h (DARWIN_EXTRA_SPECS): New.
1851 (STARTFILE_SPEC): Use.
1852 (DARWIN_DYLIB1_SPEC): New.
1853 (DARWIN_CRT1_SPEC): New.
1854 * config/i386/darwin64.h (SUBTARGET_EXTRA_SPECS): Use
1856 * config/i386/darwin.h: Ditto.
1857 * config/rs6000/darwin.h: Ditto.
1859 2006-12-05 Daniel Berlin <dberlin@dberlin.org>
1861 * tree-vrp.c (pass_vrp): Remove PROP_smt_usage.
1862 * tree-complex.c (pass_lower_complex): Ditto.
1863 * tree-ssa-ccp.c (pass_ccp): Ditto.
1864 (pass_store_ccp): Ditto.
1865 * tree-ssa-dom.c (pass_dominator): Ditto.
1866 (pass_phi_only_cprop): Ditto.
1867 * tree-sra.c (pass_sra): Ditto.
1868 * tree-ssa-forwprop.c (pass_forwprop): Ditto.
1869 * tree-flow.h (updating_used_alone): Remove.
1870 (updating_used_alone): Ditto.
1871 * tree-ssa-alias.c (updating_used_alone): Remove variable.
1872 (lhs_may_store_to): Remove function.
1873 (recalculate_used_alone): Ditto.
1874 (compute_may_aliases): Remove used_alone calculation.
1875 * tree.h (struct tree_memory_tag): Remove is_used_alone and
1876 old_used_alone. Remove SMT_USED_ALONE and SMT_OLD_USED_ALONE.
1877 * tree-pass.h (PROP_smt_usage): Remove.
1878 * passes.c (execute_todo): Remove used alone recalculation.
1879 (execute_one_pass): Ditto.
1880 * tree-ssa-operands.c (add_virtual_operand): Remove used_alone
1883 2006-12-05 Brooks Moses <brooks.moses@codesourcery.com>
1885 * doc/include/texinfo.tex: Update to version 2006-11-08.17.
1887 2006-12-05 Zdenek Dvorak <dvorakz@suse.cz>
1889 PR tree-optimization/14784
1890 * tree-ssa-operands.c (access_can_touch_variable): Unrevert the fix.
1892 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
1894 Merge from gimple-tuples-branch.
1896 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1898 * config/s390/s390.c (s390_va_start): Replace MODIFY_EXPR with
1900 (s390_gimplify_va_arg): Same.
1901 * config/sparc/sparc.c (sparc_gimplify_va_arg): Same.
1902 * config/sh/sh.c (sh_va_start): Same.
1903 (sh_gimplify_va_arg_expr): Same.
1904 * config/xtensa/xtensa.c (xtensa_va_start): Same.
1905 (xtensa_gimplify_va_arg_expr): Same.
1906 * config/ia64/ia64.c (ia64_gimplify_va_arg): Same.
1907 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Same.
1908 * config/mips/mips.c (mips_va_start): Same.
1909 (mips_gimplify_va_arg_expr): Same.
1911 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1913 * Merge from mainline at revision 119445.
1915 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1917 * config/spu/spu.c (spu_va_start): Change MODIFY_EXPR to
1919 (spu_gimplify_va_arg_expr): Same.
1921 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1923 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1924 Change uses of MODIFY_EXPR to GIMPLE_MODIFY_STMT.
1925 (xstormy16_expand_builtin_va_arg): Same.
1927 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1929 * config/frv/frv.c (frv_expand_builtin_va_start): Change MODIFY_EXPR
1930 to GIMPLE_MODIFY_STMT.
1932 2006-12-04 Aldy Hernandez <aldyh@redhat.com>
1934 * config/alpha/alpha.c (va_list_skip_additions): Change all
1935 occurrences of MODIFY_EXPR to GIMPLE_MODIFY_STMT.
1936 (alpha_va_start): Same.
1937 (alpha_gimplify_va_arg_1): Same.
1938 (alpha_gimplify_va_arg): Same.
1940 2006-12-01 Aldy Hernandez <aldyh@redhat.com>
1942 * gimplify.c (gimplify_modify_expr): Remove FIXME comment.
1944 2006-12-01 Aldy Hernandez <aldyh@redhat.com>
1946 * tree-ssa-loop-im.c: Rename all PROTECTED_TREE_OPERAND to
1947 GENERIC_TREE_OPERAND, and all PROTECTED_TREE_TYPE to
1949 * tree-complex.c: Same.
1950 * tree-pretty-print.c: Same.
1954 * fold-const.c: Same.
1955 * tree-ssa-dom.c: Same.
1956 * tree-ssa-propagate.c: Same.
1957 * tree-ssa-alias.c: Same.
1958 * gimple-low.c: Same.
1959 * dwarf2out.c: Same.
1960 * c-pretty-print.c: Same.
1962 * tree-inline.c: Same.
1963 * tree-outof-ssa.c: Same.
1964 * tree-ssa-structalias.c: Same.
1965 * tree-ssa-reassoc.c: Same.
1968 2006-11-16 Aldy Hernandez <aldyh@redhat.com>
1970 * tree.c (build2_stat): Fix comment.
1972 2006-11-13 Aldy Hernandez <aldyh@redhat.com>
1974 * tree-ssa-propagate.c (get_rhs): Use GIMPLE_MODIFY_STMT and
1975 TREE_OPERAND when appropriate.
1977 2006-11-04 Aldy Hernandez <aldyh@redhat.com>
1979 * java/java-tree.h (lang_tree_node): Handle gimple tuples.
1980 (EXPR_WFL_EMIT_LINE_NOTE): Look inside base.
1981 (EXPR_WFL_LINECOL): Use EXPR_LOCUS macro instead of exp.locus.
1982 * java/java-gimplify.c (java_gimplify_expr): Comment on why we do
1983 not handle GIMPLE_MODIFY_STMT in the switch statement.
1984 (java_gimplify_modify_expr): Call build2 with GIMPLE_MODIFY_STMT.
1985 (java_gimplify_new_array_init): Same.
1987 2006-11-03 Aldy Hernandez <aldyh@redhat.com>
1989 * gimplify.c (gimplify_omp_for): Allow gimple statements.
1990 * tree-outof-ssa.c (check_replaceable): Use PROTECTED_TREE_OPERAND.
1991 * fold-const.c (fold_binary): Allow gimple statements.
1993 * fortran/trans-array.c (gfc_conv_descriptor_data_set_internal):
1994 Rename from gfc_conv_descriptor_data_set.
1995 Call gfc_add_modify instead of gfc_add_modify_expr.
1996 * fortran/trans-array.h (gfc_conv_descriptor_data_set_internal):
1997 Rename from gfc_conv_descriptor_data_set.
1998 (gfc_conv_descriptor_data_set): New macro.
1999 (gfc_conv_descriptor_data_set_tuples): New macros.
2000 * fortran/trans-openmp.c (gfc_omp_clause_default_ctor): Call
2001 gfc_conv_descriptor_data_set_tuples.
2002 * fortran/trans.c (gfc_add_modify): Rename from gfc_add_modify_expr.
2003 Generate GIMPLE_MODIFY_STMT when appropriate.
2004 * fortran/trans.h (gfc_add_modify): Rename from gfc_add_modify_expr.
2005 (gfc_add_modify_expr): New macro.
2006 (gfc_add_modify_stmt): New macro.
2007 * fortran/f95-lang.c (lang_tree_node): Handle gimple statements.
2009 2006-11-01 Aldy Hernandez <aldyh@redhat.com>
2011 * Merge from mainline at revision 118200.
2013 2006-10-09 Aldy Hernandez <aldyh@redhat.com>
2015 * tree-inline.c (copy_bb): Check for GIMPLE_MODIFY_STMT, and adjust
2018 2006-10-09 Aldy Hernandez <aldyh@redhat.com>
2020 * tree.h (TREE_CHAIN, TREE_TYPE): Add versions for non GCC or not
2022 Also, add __extension__ to GCC versions.
2023 * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
2024 * tree-inline.c (copy_tree_r): Initialize chain to assuage the warning
2027 2006-10-05 Aldy Hernandez <aldyh@redhat.com>
2029 * tree-complex.c (expand_complex_libcall): Adjust for
2031 (expand_complex_comparison): Same.
2032 * tree-pretty-print.c (dump_generic_node): Is_expr should include
2033 GIMPLE_STMT_P statements.
2034 * value-prof.c (tree_divmod_fixed_value_transform): Adjust for
2036 (tree_mod_pow2_value_transform): Same.
2037 (tree_mod_subtract_transform): Same.
2038 * tree.c (build2_stat): Check for gimplified function in cfun.
2039 * tree.h (DECL_GIMPLIFIED): Delete.
2040 (struct tree_function_decl): Remove gimplified_flag.
2041 * omp-low.c (lower_omp_for): Adjust for GIMPLE_MODIFY_STMT.
2042 * cp/cp-gimplify.c (cp_gimplify_expr): Adjust for GIMPLE_MODIFY_STMT.
2043 (cxx_omp_clause_apply_fn): Adjust for GIMPLE_MODIFY_STMT.
2044 (cxx_omp_clause_copy_ctor): Same.
2045 (cxx_omp_clause_assign_op): Same.
2046 * c-pretty-print.c (pp_c_conditional_expression): Same.
2047 (pp_c_expression): Same.
2048 * langhooks.c (lhd_omp_predetermined_sharing): Same.
2049 * function.h (struct function): Add gimplified field.
2050 * tree-if-conv.c (add_to_dst_predicate_list): Adjust for
2052 (find_phi_replacement_condition): Same.
2053 * gimplify.c (gimplify_modify_expr_to_memcpy): Same.
2054 (gimplify_modify_expr_to_memset): Same.
2055 (gimplify_init_ctor_eval_range): Same.
2056 (gimplify_modify_expr_complex_part): Same.
2057 (tree_to_gimple_tuple): Same.
2058 (gimplify_modify_expr): Same.
2059 (gimple_push_cleanup): Same.
2060 (gimplify_omp_for): Same.
2061 (gimplify_omp_atomic_pipeline): Same.
2062 (gimplify_omp_atomic_mutex): Same.
2063 (gimplify_expr): Same.
2064 (gimplify_one_sizepos): Same.
2065 (gimplify_function_tree): Same.
2066 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Same.
2067 (vect_recog_widen_sum_pattern): Same.
2068 * tree-vect-transform.c (get_initial_def_for_reduction): Same.
2069 (vect_create_epilog_for_reduction): Same.
2070 (vectorizable_reduction): Same.
2072 2006-09-28 Aldy Hernandez <aldyh@redhat.com>
2074 * tree-ssa-math-opts.c (replace_reciprocal): Use GIMPLE_STMT_OPERAND.
2075 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p): Same.
2076 (ifc_temp_var): Same.
2077 * tree-vect-analyze.c (vect_determine_vectorization_factor): Check
2078 for gimple statements.
2079 (vect_analyze_operations): Same.
2080 (exist_non_indexing_operands_for_use_p): Use GIMPLE_STMT_OPERAND.
2081 * gimplify.c (gimplify_return_expr): Handle gimple statements.
2082 * lambda-code.c (can_put_in_inner_loop): Same.
2083 (can_put_after_inner_loop): Same.
2084 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Same.
2085 (vect_create_data_ref_ptr): Same.
2086 (vect_init_vector): Same.
2087 (vect_get_vec_def_for_operand): Same.
2088 (vect_create_epilog_for_reduction): Same.
2089 (vectorizable_reduction): Same.
2090 (vectorizable_assignment): Same.
2091 (vectorizable_operation): Same.
2092 (vectorizable_load): Same.
2093 (vectorizable_condition): Same.
2094 * config/rs6000/rs6000.c (rs6000_va_start): Do not create MODIFY_EXPRs.
2095 (rs6000_gimplify_va_arg): Same.
2097 2006-09-25 Aldy Hernandez <aldyh@redhat.com>
2099 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use
2100 GIMPLE_STMT_OPERAND.
2101 (simplify_abs_using_ranges): Same.
2102 * tree-complex.c (expand_complex_operations_1): Use
2103 PROTECTED_TREE_OPERAND.
2104 * tree-ssa-loop-niter.c (simplify_replace_tree): Check for gimple
2106 (get_val_for): Use GIMPLE_STMT_OPERAND.
2107 * tree-tailcall.c (adjust_accumulator_values): Same.
2108 (adjust_return_value): Same.
2109 * tree.c (walk_tree): Use IS_GIMPLE_STMT_CODE_CLASS on default
2110 case. Remove special case for tcc_gimple_stmt.
2111 * tree.h (CAN_HAVE_LOCATION_P): New.
2112 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Check for
2114 * tree-stdarg.c (va_list_counter_bump): Use GIMPLE_STMT_OPERAND.
2115 * tree-ssa-dom.c (propagate_rhs_into_lhs): Same.
2116 * tree-nrv.c (execute_return_slot_opt): Same.
2117 * tree-ssa-alias.c (count_uses_and_derefs): Check for GIMPLE_STMT_P.
2118 * tree-vn.c (set_value_handle): Same.
2119 (get_value_handle): Same.
2120 * c-decl.c (add_stmt): Use CAN_HAVE_LOCATION_P.
2121 * tree-vectorizer.c (find_loop_location): Same.
2122 * c-typeck.c (c_process_expr_stmt): Same.
2123 (c_finish_stmt_expr): Same.
2124 * gimplify.c (should_carry_locus_p): Same.
2125 (tree_to_gimple_tuple): Delete definition and use of unecessary
2126 variable save_tree_block.
2127 * tree-ssa-pre.c (phi_translate): Check for GIMPLE_STMT_P.
2128 (create_expression_by_pieces): Use GIMPLE_STMT_OPERAND.
2129 (realify_fake_stores): Same.
2130 * tree-ssa-forwprop.c (forward_propagate_addr_into_variable_arr):
2132 * tree-inline.c (copy_body_r): Check for EXPR_P and GIMPLE_STMT_P.
2133 (copy_tree_r): Check for IS_GIMPLE_STMT_CODE_CLASS.
2134 * tree-cfg.c (move_stmt_r): Use EXPR_P. Check for GIMPLE_STMT_P.
2135 * c-parser.c (c_parser_typeof_specifier): Use CAN_HAVE_LOCATION_P.
2136 (c_parser_statement_after_labels): Same.
2137 (c_parser_paren_condition): Same.
2138 (c_parser_for_statement): Same.
2139 (c_parser_omp_for_loop): Same.
2140 * tree-ssa-reassoc.c (linearize_expr): Use GIMPLE_STMT_OPERAND.
2141 (linearize_expr_tree): Same.
2142 * dwarf2out.c (reference_to_unused): Check for GIMPLE_STMT_P.
2143 * function.c (instantiate_expr): Same.
2145 2006-09-22 Aldy Hernandez <aldyh@redhat.com>
2147 * tree.c (expr_location): Use GIMPLE_STMT_LOCUS.
2148 (set_expr_location): Same.
2150 (set_expr_locus): Same.
2151 (expr_filename): Same.
2152 (expr_lineno): Same.
2153 (tree_block): Use GIMPLE_STMT_BLOCK.
2154 (protected_tree_operand): Use GIMPLE_STMT_OPERAND.
2155 * tree.h (struct gimple_stmt): Remove prev and next.
2156 (GIMPLE_STMT_OPERAND_CHECK): New.
2157 (TREE_TO_GIMPLE_STMT): Delete.
2158 (GIMPLE_STMT_TO_TREE): Delete.
2159 (GIMPLE_STMT_OPERAND): Use union, not cast.
2160 (GIMPLE_STMT_LOCUS): New.
2161 (GIMPLE_STMT_BLOCK): New.
2162 * gimplify.c (tree_to_gimple_tuple): Use union. Do not cast
2164 * tree-cfg.c (verify_gimple_tuples_1): Call gcc_unreachable.
2166 2006-09-21 Aldy Hernandez <aldyh@redhat.com>
2168 * tree-into-ssa.c (REGISTER_DEFS_IN_STMT): Change common.base
2170 * tree-tailcall.c (adjust_return_value): Same.
2171 * tree.c (tree_code_size): Remove GIMPLE_STATEMENT_LIST case.
2172 (copy_node_stat): Change common.base to base.
2173 (tree_node_structure): Return TS_GIMPLE_STATEMENT for tcc_gimple_stmt.
2174 Remove GIMPLE_STATEMENT_LIST case.
2175 * tree.h (struct gimple_stmt): Make operands of type tree.
2176 (TREE_CODE, TREE_SET_CODE, TREE_ADDRESSABLE, CALL_EXPR_TAILCALL,
2177 CASE_LOW_SEEN, TREE_STATIC, CLEANUP_EH_ONLY, CASE_HIGH_SEEN,
2178 TREE_NO_WARNING, TREE_CONSTANT_OVERFLOW, TREE_SYMBOL_REFERENCED,
2179 TYPE_REF_CAN_ALIAS_ALL, TREE_OVERFLOW, TREE_PUBLIC,
2180 TYPE_CACHED_VALUES_P, TREE_SIDE_EFFECTS, FORCED_LABEL,
2181 TREE_THIS_VOLATILE, TREE_THIS_NOTRAP, TREE_READONLY,
2182 TREE_CONSTANT, TYPE_SIZES_GIMPLIFIED, DECL_UNSIGNED,
2183 BIT_FIELD_REF_UNSIGNED, TYPE_UNSIGNED, TREE_ASM_WRITTEN, TREE_USED,
2184 TREE_NOTHROW, CALL_EXPR_RETURN_SLOT_OPT, DECL_BY_REFERENCE,
2185 CALL_FROM_THUNK_P, TYPE_ALIGN_OK, TREE_PRIVATE, TREE_PROTECTED,
2186 TREE_DEPRECATED, IDENTIFIER_TRANSPARENT_ALIAS, TREE_INVARIANT,
2187 TREE_LANG_FLAG_*, SSA_NAME_OCCURS_IN_ABNORMAL_PHI,
2188 SSA_NAME_IN_FREE_LIST, TYPE_VOLATILE, TYPE_READONLY, BINFO_VIRTUAL_P):
2189 Change common.base to base.
2190 (GIMPLE_STATEMENT_LIST*): Remove.
2191 (union tree_node): Add base. Remove gimple_statement_list.
2192 Remove pointer from gstmt.
2193 * tree-ssa-propagate.c (set_rhs): Change common.base to base.
2194 * treestruct.def: Add TS_BASE. Remove TS_GIMPLE_STATEMENT_LIST.
2195 * tree-vn.c (vn_compute): Change common.base to base.
2196 * tree-eh.c (verify_eh_throw_stmt_node): Same.
2197 * tree-flow-inline.h (var_ann): Same.
2198 (function_ann): Same.
2200 (mark_non_addressable): Same.
2201 * gimplify.c (tree_to_gimple_tuple): Same.
2202 * tree.def (DEFTREECODE): Remove GIMPLE_STATEMENT_LIST.
2203 * tree-dfa.c (create_var_ann): Change common.base to base.
2204 (create_function_ann): Same.
2205 (create_stmt_ann): Same.
2206 (create_tree_ann): Same.
2207 (collect_dfa_stats_r): Same.
2208 * tree-ssa-pre.c (NECESSARY): Change common.base to base.
2209 * tree-ssa-dce.c (NECESSARY): Same.
2210 * tree-ssa.c (delete_tree_ssa): Same.
2211 * tree-optimize.c (execute_free_cfg_annotations): Same.
2212 * tree-flow.h: Same.
2214 2006-09-19 Aldy Hernandez <aldyh@redhat.com>
2216 * tree.c (tree_code_size): Handle GIMPLE_STATEMENT_LIST.
2217 (tree_node_structure): Handle GIMPLE_STATEMENT_LIST and
2219 * tree.h (struct gimple_stmt): Add prev and next fields.
2220 (GIMPLE_STMT_TO_TREE): Cast, do not call GIMPLE_STMT_CHECK.
2221 (GIMPLE_STATEMENT_LIST_HEAD): New.
2222 (GIMPLE_STATEMENT_LIST_TAIL): New.
2223 (struct gimple_statement_list): New.
2224 (union tree_node): Add gimple_stmt_list and gstmt.
2225 * treestruct.def: Add TS_GIMPLE_STATEMENT_LIST, TS_GIMPLE_STATEMENT.
2226 * tree.def: Add GIMPLE_STATEMENT_LIST.
2228 2006-09-06 Aldy Hernandez <aldyh@redhat.com>
2230 * tree-dump.c (dequeue_and_dump): Handle GIMPLE_MODIFY_STMT.
2231 * tree-vrp.c (build_assert_expr_for): Change uses of
2232 MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
2233 (find_assert_locations): Same.
2234 (remove_range_assertions): Same.
2235 (stmt_interesting_for_vrp): Same.
2236 (vrp_visit_assignment): Same.
2237 (vrp_visit_stmt): Same.
2238 (simplify_cond_using_ranges): Same.
2239 * tree-into-ssa.c (REGISTER_DEFS_IN_THIS_STMT): Adjust for new
2241 * tree-ssa-loop-im.c (movement_possibility): Change uses of
2242 MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
2244 (determine_invariantness_stmt): Same.
2245 (schedule_sm): Same.
2246 (gather_mem_refs_stmt): Same.
2247 * tree-complex.c (init_dont_simulate_again): Same.
2248 (complex_visit_stmt): Same.
2249 (set_component_ssa_name): Same.
2250 (expand_complex_move): Same.
2251 (expand_complex_div_wide): Same.
2252 (expand_complex_comparison): Same.
2253 (expand_complex_operations_1): Same.
2254 * tree-ssa-loop-niter.c (expand_simple_operations): Same.
2255 (chain_of_csts_start): Same.
2256 (infer_loop_bounds_from_undefined): Same.
2257 * tree-pretty-print.c (dump_generic_node): Same.
2259 (op_symbol_1): Same.
2260 * tree-ssa-loop-manip.c (create_iv): Same.
2261 * value-prof.c (tree_divmod_fixed_value): Same.
2262 (tree_divmod_fixed_value_transform): Same.
2263 (tree_mod_pow2): Same.
2264 (tree_mod_pow2_value_transform): Same.
2265 (tree_mod_subtract): Same.
2266 (tree_mod_subtract_transform): Same.
2267 (tree_divmod_values_to_profile): Same.
2268 * tree-tailcall.c (process_assignment): Same.
2269 (find_tail_calls): Same.
2270 (adjust_accumulator_values): Same.
2271 (adjust_return_value): Same.
2272 (eliminate_tail_call): Same.
2273 * tree.c (tree_code_size): Handle tcc_gimple_stmt.
2274 (make_node_stat): Same.
2275 (copy_node_stat): Handle gimple tuples.
2276 (expr_align): Handle GIMPLE_MODIFY_STMT. Abort on MODIFY_EXPR.
2277 (tree_node_structure): Handle tcc_gimple_stmt.
2278 (build2_stat): Abort on MODIFY_EXPR after gimplification. Handle
2280 (build2_gimple_stat): New.
2281 (expr_location): New.
2282 (set_expr_location): New.
2283 (expr_has_location): New.
2285 (set_expr_locus): New.
2286 (expr_filename): New.
2288 (walk_tree): Handle tcc_gimple_stmt.
2290 (protected_tree_operand): New.
2291 (protected_tree_type): New.
2292 (tree_code_kind): Add gimple statements.
2293 * tree.h (tree_code_class): Add tcc_gimple_stmt.
2294 (IS_GIMPLE_STMT_CODE_CLASS): New.
2295 (struct tree_base): New.
2296 (struct tree_common): Shrink.
2297 (struct gimple_stmt): New.
2298 (struct gimple_expr): New.
2299 (TREE_SET_CODE, TREE_ADDRESSABLE, CALL_EXPR_TAILCALL,
2300 CASE_LOW_SEEN, TREE_STATIC, CLEANUP_EH_ONLY, CASE_HIGH_SEEN,
2301 TREE_NO_WARNING, TREE_CONSTANT_OVERFLOW, TREE_SYMBOL_REFERENCED,
2302 TYPE_REF_CAN_ALIAS_ALL, TREE_OVERFLOW, TREE_PUBLIC,
2303 TYPE_CACHED_VALUES_P, SAVE_EXPR_RESOLVED_P, TREE_SIDE_EFFECTS,
2304 FORCED_LABEL, TREE_THIS_VOLATILE, TREE_THIS_NOTRAP, TREE_READONLY,
2305 TREE_CONSTANT, TYPE_SIZES_GIMPLIFIED, DECL_UNSIGNED,
2306 BIT_FIELD_REF_UNSIGNED, TYPE_UNSIGNED, TREE_ASM_WRITTEN,
2307 TREE_USED, TREE_NOTHROW, CALL_EXPR_RETURN_SLOT_OPT,
2308 DECL_BY_REFERENCE, CALL_FROM_THUNK_P, TYPE_ALIGN_OK,
2309 TREE_PRIVATE, TREE_PROTECTED, TREE_DEPRECATED,
2310 IDENTIFIER_TRANSPARENT_ALIAS, TREE_INVARIANT,
2311 TREE_LANG_FLAG_[0-6], SSA_NAME_CHECK, SSA_NAME_IN_FREE_LIST,
2312 TYPE_VOLATILE, TYPE_READONLY, TREE_VISITED, BINFO_VIRTUAL_P):
2313 Adjust for new `common' layout.
2314 (struct tree_function_decl): Add gimplified_flag.
2315 (DECL_GIMPLIFIED): NEW.
2316 (EXPR_LOCATION, SET_EXPR_LOCUS, EXPR_FILENAME, EXPR_LOCUS,
2317 SET_EXPR_LOCUS, SET_EXPR_LOCATION, EXPR_LINENO,
2318 EXPR_HAS_LOCATION): Call corresponding function.
2319 (GIMPLE_STMT_CHECK): New.
2320 (TREE_OPERAND_CHECK, TREE_TYPE, TREE_CHAIN): Abort on gimple tuples.
2321 (TREE_BLOCK): Call tree_block.
2322 (GIMPLE_STMT_P): New.
2323 (GIMPLE_TUPLE_P): New.
2324 (TREE_TO_GIMPLE_STMT): New.
2325 (GIMPLE_STMT_TO_TREE): New.
2326 (GIMPLE_STMT_OPERAND): New.
2327 (GIMPLE_TUPLE_HAS_LOCUS_P): New.
2328 (PROTECTED_TREE_OPERAND): New.
2329 (PROTECTED_TREE_TYPE): New.
2330 (build2_gimple_stat): Protoize.
2331 (build2_gimple): New.
2332 (expr_location): Protoize.
2333 (set_expr_location): Protoize.
2334 (expr_has_location): Protoize.
2335 (expr_locus): Protoize.
2336 (set_expr_locus): Protoize.
2337 (expr_filename): Protoize.
2338 (expr_lineno): Protoize.
2339 (tree_block): Protoize.
2340 (protected_tree_operand): Protoize.
2341 (protected_tree_type): Protoize.
2342 (enum tree_node_kind): Add gimple_stmt_kind.
2343 * c-decl.c (union lang_tree_node): Tuples do not have a
2345 * ipa-cp.c (constant_val_insert): Change uses of MODIFY_EXPR to
2346 GIMPLE_MODIFY_STMT and adjust accordingly.
2347 * tree-scalar-evolution.c (follow_ssa_edge): Same.
2348 (interpret_condition_phi): Same.
2349 (pointer_used_p): Same.
2350 (analyze_scalar_evolution_1): Same.
2351 (scev_const_prop): Same.
2352 (interpret_rhs_modify_stmt): Rename from
2353 interpret_rhs_modify_expr.
2354 * builtins.c (std_expand_builtin_va_start): Change uses of
2355 MODIFY_EXPR to GIMPLE_MODIFY_STMT and adjust accordingly.
2356 (std_gimplify_va_arg_expr): Same.
2357 (expand_builtin_va_copy): Same.
2358 (integer_valued_real_p): Same.
2359 * fold-const.c (maybe_lvalue_p): Same.
2361 (tree_expr_nonnegative_p): Same.
2362 (tree_expr_nonzero_p): Same.
2363 * omp-low.c (extract_omp_for_data): Same.
2364 (lower_rec_input_clauses): Same.
2365 (lower_reduction_clauses): Same.
2366 (lower_copyprivate_clauses): Same.
2367 (lower_send_clauses): Same.
2368 (lower_send_shared_vars): Same.
2369 (expand_parallel_call): Same.
2370 (expand_omp_parallel): Same.
2371 (expand_omp_for_generic): Same.
2372 (expand_omp_for_static_nochunk): Same.
2373 (expand_omp_for_static_chunk): Same.
2374 (expand_omp_sections): Same.
2375 (lower_omp_single_copy): Same.
2376 (lower_omp_parallel): Same.
2377 * tree-ssa-dse.c (memory_address_same): Same.
2378 (dse_optimize_stmt): Same.
2379 * ipa-reference.c (scan_for_static_refs): Same.
2380 * tree-gimple.c (is_gimple_reg_rhs): Same.
2381 (get_call_expr_in): Same.
2382 (recalculate_side_effects): Same.
2383 * cgraphunit.c (cgraph_create_edges): Same.
2384 * tree-ssa-copyrename.c (rename_ssa_copies): Same.
2385 * tree-ssa-ccp.c (get_default_value): Same.
2386 (likely_value): Same.
2387 (visit_assignment): Same.
2388 (ccp_visit_stmt): Same.
2389 (get_maxval_strlen): Same.
2390 (ccp_fold_builtin): Same.
2391 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Same.
2392 (find_givs_in_stmt): Same.
2393 (find_interesting_uses_op): Same.
2394 (find_interesting_uses_stmt): Same.
2395 (rewrite_use_nonlinear_expr): Same.
2396 * ipa-pure-const.c (scan_function): Same.
2397 * tree-stdarg.c (va_list_counter_bump): Same.
2398 (check_all_va_list_escapes): Same.
2399 (execute_optimize_stdarg): Same.
2400 * tree-ssa-math-opts.c (compute_merit): Same.
2401 (insert_reciprocals): Same.
2402 (execute_cse_reciprocals): Same.
2403 * tree-ssa-dom.c (initialize_hash_element): Same.
2404 (simple_iv_increment_p): Same.
2405 (record_equivalences_from_stmt): Same.
2406 (optimize_stmt): Same.
2407 (remove_stmt_or_phi): Same.
2408 (get_rhs_or_phi_arg): Same.
2409 (get_lhs_or_phi_result): Same.
2410 (propagate_rhs_into_lhs): Same.
2411 * tree-nrv.c (tree_nrv): Same.
2412 (execute_return_slot_opt): Same.
2413 * tree-ssa-propagate.c (get_rhs): Same.
2415 (stmt_makes_single_load): Same.
2416 (stmt_makes_single_store): Same.
2417 (replace_vuses_in): Same.
2418 (fold_predicate_in): Same.
2419 (substitute_and_fold): Same.
2420 * tree-ssa-alias.c (compute_call_clobbered): Same.
2421 (recalculate_used_alone): Same.
2422 (count_uses_and_derefs): Same.
2423 (is_escape_site): Same.
2424 (find_used_portions): Same.
2425 * gimple-low.c (lower_stmt): Same.
2426 (block_may_fallthru): Same.
2427 (lower_return_expr): Same.
2428 * tree-ssa-sink.c (is_hidden_global_store): Same.
2429 (statement_sink_location): Same.
2430 * dwarf2out.c (loc_descriptor_from_tree_1): Same.
2431 * expr.c (safe_from_p): Same.
2432 (expand_expr_real): Same.
2433 (expand_expr_real_1): Same.
2434 * tree-ssa-loop-ivcanon.c (empty_loop_p): Same.
2435 * predict.c (expr_expected_value): Same.
2436 (strip_builtin_expect): Same.
2437 (apply_return_prediction): Same.
2438 (tree_bb_level_predictions): Same.
2439 (tree_estimate_probability): Same.
2440 * tree-vn.c (vn_compute): Same.
2441 * tree-eh.c (add_stmt_to_eh_region_fn): Same.
2442 (remove_stmt_from_eh_region_fn): Same.
2443 (do_return_redirection): Same.
2444 (honor_protect_cleanup_actions): Same.
2445 (lower_try_finally_switch): Same.
2446 (lower_eh_constructs_1): Same.
2447 (tree_could_throw_p): Same.
2448 (verify_eh_throw_stmt_node): Same.
2449 * function.c (gimplify_parameters): Same.
2450 * tree-vectorizer.c (vect_is_simple_use): Same.
2451 (vect_is_simple_reduction): Same.
2452 * ipa-type-escape.c (scan_for_refs): Same.
2453 * tree-if-conv.c (tree_if_conversion): Same.
2454 (tree_if_convert_stmt): Same.
2455 (if_convertible_gimplify_modify_stmt_p): Rename from
2456 if_convertible_modify_expr_p.
2457 (if_convertible_stmt_p): Adjust for GIMPLE_MODIFY_STMT.
2458 (ifc_temp_var): Same.
2459 (replace_phi_with_cond_modify_stmt): Rename from
2460 replace_phi_with_cond_modify_expr.
2461 (process_phi_nodes): Call replace_phi_with_cond_modify_stmt.
2462 * tree.def (DEFTREECODE): Add GIMPLE_MODIFY_STMT.
2463 * tree-data-ref.c (find_data_references_in_loop): Adjust for
2465 * tree-flow-inline.h (var_ann): Same.
2466 (function_ann): Same.
2468 (mark_non_addressable): Same.
2469 * tree-vect-analyze.c (vect_determine_vectorization_factor): Same.
2470 * gimplify.c (tree_to_gimple_tuple): New.
2471 (build_stack_save_restore): Adjust for GIMPLE_MODIFY_STMT.
2472 (gimplify_return_expr): Same.
2473 (gimplify_decl_expr): Same.
2474 (gimplify_self_mod_expr): Same.
2475 (gimplify_cond_expr): Same.
2476 (gimplify_init_constructor): Same.
2477 (gimplify_modify_expr): Same.
2478 (gimplify_expr): Same.
2479 (gimplify_function_tree): Same.
2480 (force_gimple_operand): Same.
2481 * tree-ssa-phiopt.c (conditional_replacement): Same.
2482 (minmax_replacement): Same.
2483 (abs_replacement): Same.
2484 * tree-dfa.c (create_var_ann): Same.
2485 (create_function_ann): Same.
2486 (create_stmt_ann): Same.
2487 (create_tree_ann): Same.
2488 (collect_dfa_stats_r): Same.
2489 * tree-ssa-pre.c (find_or_generate_expression): Same.
2490 (create_expression_by_pieces): Same.
2491 (try_look_through_load): Same.
2492 (insert_fake_stores): Same.
2493 (realify_fake_stores): Same.
2494 (compute_avail): Same.
2497 (poolify_modify_stmt): Rename from poolify_modify_stmt.
2498 Adjust for GIMPLE_MODIFY_STMT.
2499 (NECESSARY): Adjust for new `common' layout.
2500 * tree-ssa-live.c (build_tree_conflict_graph): Adjust for
2502 * tree-sra.c (sra_walk_modify_stmt): Rename from
2503 sra_walk_modify_expr.
2504 (sra_walk_function): Adjust for GIMPLE_MODIFY_STMT.
2505 (generate_copy_inout): Same.
2506 (generate_element_copy): Same.
2507 (generate_element_zero): Same.
2508 (scalarize_copy): Same.
2509 * tree-mudflap.c (mf_decl_cache_locals): Same.
2510 (mf_build_check_statement_for): Same.
2511 (mf_xform_derefs): Same.
2512 * ipa-prop.c (ipa_method_modify_stmt): Same.
2513 * print-tree.c (print_node): Handle gimple tuples.
2514 Add case for tcc_gimple_stmt.
2515 * tree-ssa-copy.c (stmt_may_generate_copy): Adjust for
2517 (copy_prop_visit_assignment): Same.
2518 (copy_prop_visit_stmt): Same.
2519 (init_copy_prop): Same.
2520 * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): Same.
2521 (forward_propagate_into_cond_1): Same.
2522 (find_equivalent_equality_comparison): Same.
2523 (tidy_after_forward_propagate_addr): Same.
2524 (forward_propagate_addr_expr_1): Same.
2525 (simplify_not_neg_expr): Same.
2526 (simplify_switch_expr): Same.
2527 * tree-ssa-dce.c (find_pdom): Same.
2528 (mark_stmt_if_obviously_necessary): Same.
2529 (NECESSARY): Adjust for new `common' layout.
2530 * tree-flow.h: Same.
2531 * tree-vect-patterns.c (widened_name_p): Adjust for
2533 (vect_recog_dot_prod_pattern): Same.
2534 (vect_recog_widen_sum_pattern): Same.
2535 (vect_pattern_recog_1): Same.
2536 * tree-nested.c (init_tmp_var): Same.
2537 (save_tmp_var): Same.
2539 (convert_call_expr): Same.
2540 (finalize_nesting_tree_1): Same.
2541 * tree-ssa.c (verify_ssa): Same.
2542 (delete_tree_ssa): Same.
2543 * lambda-code.c (lbv_to_gcc_expression): Same.
2544 (lle_to_gcc_expression): Same.
2545 (lambda_loopnest_to_gcc_loopnest): Same.
2546 (can_put_in_inner_loop): Same.
2547 (can_convert_to_perfect_nest): Same.
2548 (perfect_nestify): Same.
2549 * tree-ssa-loop-prefetch.c (gather_memory_references): Same.
2550 * tree-inline.c (copy_body_r): Same.
2551 (setup_one_parameter): Same.
2552 (initialize_inlined_parameters): Same.
2553 (estimate_num_insns_1): Same.
2554 (expand_call_inline): Same.
2555 (gimple_expand_calls_inline): Same.
2556 (copy_tree_r): Same.
2557 * tree-optimize.c (execute_free_cfg_annotations): Same.
2558 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Same.
2559 (vect_align_data_ref): Same.
2560 (vect_create_data_ref_ptr): Same.
2561 (vect_init_vector): Same.
2562 (vect_create_epilog_for_reduction): Same.
2563 (vectorizable_reduction): Same.
2564 (vectorizable_assignment): Same.
2565 (vectorizable_operation): Same.
2566 (vectorizable_store): Same.
2567 (vectorizable_load): Same.
2568 (vectorizable_live_operation): Same.
2569 (vectorizable_condition): Same.
2570 (vect_generate_tmps_on_preheader): Same.
2571 (vect_create_cond_for_align_checks): Same.
2572 * tree-object-size.c (collect_object_sizes_for): Same.
2573 (check_for_plus_in_loops_1): Same.
2574 (check_for_plus_in_loops): Same.
2575 * tree-outof-ssa.c (insert_copy_on_edge): Same.
2576 (replace_use_variable): Same.
2577 (check_replaceable): Same.
2578 (rewrite_trees): Same.
2579 (identical_copies_p): Same.
2580 (insert_backedge_copies): Same.
2581 * tree-profile.c (tree_gen_edge_profiler): Same.
2582 * tree-vect-generic.c (expand_vector_operations_1): Same.
2583 * tree-ssa-structalias.c (update_alias_info): Same.
2584 (find_func_aliases): Same.
2585 * tree-cfg.c (factor_computed_gotos): Same.
2587 (make_goto_expr_edges): Same.
2588 (tree_merge_blocks): Same.
2589 (remove_useless_stmts_cond): Same.
2590 (remove_useless_stmts_1): Same.
2591 (tree_find_edge_insert_loc): Same.
2592 (verify_expr): Same.
2593 (gimplify_val): Same.
2594 (verify_gimple_tuples_1): New.
2595 (verify_gimple_tuples): New.
2596 (verify_stmts): Call verify_gimple_tuples.
2597 * tree-ssa-reassoc.c (get_rank): Adjust for GIMPLE_MODIFY_STMT.
2598 (get_unary_op): Same.
2599 (linearize_expr): Same.
2600 (get_single_immediate_use): Same.
2601 (negate_value): Same.
2602 (should_break_up_subtract): Same.
2603 (break_up_subtract): Same.
2604 (repropagate_negates): Same.
2605 (break_up_subtract_bb): Same.
2606 (reassociate_bb): Same.
2607 * config/i386/i386.c (ix86_va_start): Same.
2608 (ix86_gimplify_va_arg): Same.
2609 * stmt.c (expand_expr_stmt): Same.
2610 (warn_if_unused_value): Same.
2611 (expand_return): Same.
2612 * tree-ssanames.c (make_ssa_name): Same.
2613 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Same.
2614 * tree-ssa-operands.c (finalize_ssa_defs): Same.
2615 (add_virtual_operand): Same.
2616 (get_expr_operands): Same.
2617 (parse_ssa_operands): Same.
2618 (get_modify_stmt_operands): Rename from get_modify_expr_operands.
2620 2006-12-05 H.J. Lu <hongjiu.lu@intel.com>
2622 * config.host: Remove extra blank line.
2624 2006-12-05 Bernd Schmidt <bernd.schmidt@analog.com>
2626 * config.host (i[34567]86-*-*, x86-64-*-*): Use driver-i386.o only if
2627 target is also an x86 variant.
2629 2006-12-05 Richard Guenther <rguenther@suse.de>
2631 * config/i386/i386.c (ix86_builtin_vectorized_function): Declare.
2632 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define.
2633 (ix86_builtin_vectorized_function): New function to vectorize
2636 2006-12-05 Bernd Schmidt <bernd.schmidt@analog.com>
2638 * config/bfin/bfin.c (output_file_start): Fix comment which referred to
2639 ia64_override_options.
2641 2006-12-04 Jan Hubicka <jh@suse.cz>
2643 * cfgexpand.c (expand_one_var): Guard expand_one_stack_var by
2646 2006-12-04 Bernd Schmidt <bernd.schmidt@analog.com>
2648 * rtlanal.c (note_uses): Deal with SEQUENCEs.
2649 * config/bfin/bfin.c: Include "timevar.h".
2650 (bfin_flag_schedule_insns2, splitting_for_sched,
2651 bfin_flag_var_tracking): New variables.
2652 (print_operand): Handle '%!'.
2653 (override_options): Disable normal sched2 pass, instead set
2654 bfin_flag_schedule_insns2 for reorg to handle it.
2655 (output_file_start): Likewise for var-tracking.
2656 (bfin_optimize_loop): Take some care not to stumble over SEQUENCEs.
2657 (gen_one_bundle, bfin_gen_bundles, type_for_anomaly, trapping_loads_p):
2659 (bfin_reorg): Do second scheduling pass here, and call
2660 bfin_gen_bundles. Use type_for_anomaly and trapping_loads_p instead
2661 of examining insns directly. If bfin_flag_var_tracking, call
2662 var-tracking pass when done with everything else.
2663 * config/bfin/bfin.h (PRINT_OPERAND_PUNCT_VALID_P): '!' is valid.
2664 * config/bfin/bfin.md (UNSPEC_32BIT): New constant.
2665 (movsi_insn32): New pattern, with two new splits to create it
2666 before the final scheduling pass.
2667 (neghi2): Not a dsp32 insn, rather alu0.
2668 (movbi, pushsi_insn, popsi_insn, movsi_insn, movv2hi_insn, movhi_insn,
2669 movqi_insn, movsf_insn, movsi_insv, extendhisi2, zero_extendhisi2,
2670 extendqihi2, extendqisi2, zero_extendqihi2, zero_extendqisi2,
2671 mulhisi3, umulhisi3, ssadsi3, sssubsi3, smaxsi3, sminsi3, abssi2,
2672 ssnegsi2, signbitssi2, smaxhi3, sminhi3, abshi2, ssneghi2, signbitshi2,
2673 movhi_low2high, movhi_high2high, movhi_low2low, movhi_high2low,
2674 movhiv2hi_low, movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
2675 ssaddhi3, sssubhi3, addv2hi3, ssaddv2hi3, subv2hi3, sssubv2hi3,
2676 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3, sublohiv2hi3,
2677 subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3, addlohiv2hi3,
2678 addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3, sminv2hi3, smaxv2hi3,
2679 flag_mulhi, flag_mulhisi, flag_mulhisi_parts, flag_machi,
2680 flag_machi_acconly, flag_macinithi, flag_macinit1hi, mulv2hi3,
2681 flag_mulv2hi, flag_mulv2hi_parts, flag_macv2hi_parts,
2682 flag_macv2hi_parts_acconly, flag_macinitv2hi_parts,
2683 flag_macinit1v2hi_parts, mulhisi_ll, mulhisi_lh, mulhisi_hl,
2684 mulhisi_hh, ssnegv2hi2, absv2hi2, ssashiftv2hi3, ssashifthi3,
2685 lshiftv2hi3, lshifthi3): Use '%!' to terminate all dsp32/load/store
2686 variants instead of ';'.
2687 (ror_one, rol_one): Likewise. Make them dsp32 insns.
2688 (ashlsi3_insn, ashrsi3, lshrsi3): Add dsp32 variants.
2689 (align8, align16, align24): Now named patterns; also using '%!'.
2692 2006-12-05 Kazu Hirata <kazu@codesourcery.com>
2694 * config/i386/darwin.h, config/spu/spu.c, tree-ssa-live.c,
2695 tree-vect-generic.c, tree-vect-transform.c: Fix comment typos.
2697 2006-12-04 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2699 * config/spu/spu-protos.c (spu_split_address): Add.
2700 * config/spu/spu.c (spu_split_address): Add.
2701 (print_operand): Handle HIGH.
2702 (spu_legitimate_address): Don't test for aligned CONST.
2703 (spu_expand_mov): Don't split addresses here.
2704 * config/spu/constraints.md (A): Don't test legitimate_const.
2705 * config/spu/spu.md: Add split of movsi patterns for PIC mode.
2706 (ceq_di): Use correct predicates.
2708 2006-12-04 Eric Christopher <echristo@apple.com>
2710 * config/darwin.h: Update copyright notice.
2711 * config/i386/darwin.h: Ditto.
2713 2006-12-04 Jan Hubicka <jh@suse.cz>
2715 * builtins.c (fold_builtin_memory_op): Check that expr_size match.
2716 * explow.c (expr_size, int_expr_size): Assert that size is non_NULL.
2718 2006-12-04 Daniel Berlin <dberlin@dberlin.org>
2720 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Call
2722 * tree-ssa-structalias.c (set_used_smts): Export.
2723 (find_what_p_points_to): Don't call set_used_smts here.
2724 * tree-ssa-structalias.h (set_used_smts): Add prototype.
2726 2006-12-04 Daniel Berlin <dberlin@dberlin.org>
2728 * tree-ssa-alias.c (compute_may_aliases):
2729 Compute flow sensitive before flow insensitive.
2730 (compute_flow_sensitive_aliasing): Don't try to add
2731 a symbol memory tag to itself.
2733 * alias.h (alias_set_subset_of): New prototype.
2735 * alias.c (alias_set_subset_of): New function.
2737 * tree-ssa-structalias.c: Update comments.
2738 (struct variable_info): Add finished_solution.
2739 (new_varinfo): Set finished solution to NULL.
2740 (var_escaped_vars): Remove.
2741 (escaped_vars_tree): Remove.
2742 (escaped_vars_id): Remove.
2743 (nonlocal_vars_id): Remove.
2744 (constraint_expr_type): Add INCLUDES.
2745 (graph_size): Removed.
2746 (dump_constraint): Support INCLUDES.
2747 (build_constraint_graph): Ditto.
2748 (collapse_nodes): Add merge_solutions argument.
2749 Don't merge attributes.
2750 (process_unification_queue): Just use collapse_nodes.
2751 (perform_var_substitution): Update call to collapse_nodes.
2752 (get_constraint_exp_from_ssa_var): Use INCLUDES.
2753 (process_constraint): Fix non-field sensitive handling
2755 (get_constraint_for): Use INCLUDES.
2756 (make_constraint_from_anything): Renamed from
2757 make_constraint_from_escaped.
2758 (make_constraint_to_escaped): Removed.
2759 (find_global_initializers): Removed.
2760 (create_variable_info_for): Do not make constraints to escaped
2762 (dump_solution_for_var): Don't print out the equivalent points-to
2763 sets, just use the name of the variable it shares it with.
2764 (intra_create_variable_infos): Use INCLUDES.
2765 Change nonlocal variable sets to anything sets.
2766 (init_base_vars): Remove escaped_vars and nonlocal_var
2768 (find_escape_constraints): Removed.
2769 (delete_points_to_sets): Remove dead code.
2770 (used_smt_calculated): New variable.
2771 (set_used_smts): New function.
2772 (merge_smts_into): New function.
2773 (find_what_p_points_to): Modify to use SMTs.
2774 (create_nonlocal_var): Remove.
2776 * tree-ssa-operands.c (access_can_touch_variable): Remove
2777 reference to nonlocal_all.
2779 * tree-ssa.c (verify_name_tags): Remove.
2781 2006-12-04 Carlos O'Donell <carlos@codesourcery.com>
2783 * config/arm/unwind-arm.c: Adjust __cxa_type_match declaration.
2784 (__gnu_unwind_pr_common): Pass is_reference to __cxa_type_match.
2786 2006-12-04 Andrew MacLeod <amacleod@redhat.com>
2788 * tree-outof-ssa.c (coalesce_ssa_name): Use calculate_live_ranges.
2789 * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info): Update.
2790 (add_livein_if_notdef): Delete.
2791 (loe_visit_block): New. Propogate live on entry info for a block into
2792 each predecessor. If it changes, make sure it is visited again.
2793 (live_worklist): Visit every block and update the live on entry info
2794 for preds. Iterate over any that changed.
2795 (set_var_live_on_entry): Populate the live on entry blocks with bits
2796 based on the immediate uses of a var.
2797 (calculate_live_on_entry): Remove.
2798 (calculate_live_on_exit): Calculate live on exit based on the newly
2799 oriented live on entry bits.
2800 (calculate_live_ranges): Build live on entry and exit vectors.
2801 (dump_live_info): Use new orientation of live on entry bitmaps.
2802 (verify_live_on_entry): New. Split out verification code from old
2803 calculate_live_on_entry routine.
2804 * tree-ssa-live.h (struct tree_live_info_d): Add Working stack.
2805 (live_entry_blocks): Rename to live_on_entry and return bitmap for a
2806 basic_block instead of for a partition.
2807 (live_merge_and_clear): Add asserts.
2808 (make_live_on_entry): Set partition bit in basic block vector.
2810 2006-12-04 Jakub Jelinek <jakub@redhat.com>
2813 * omp-low.c (expand_omp_for_static_nochunk,
2814 expand_omp_for_static_chunk): Do all arithmetics in signed rather than
2818 * omp-low.c (determine_parallel_type): Don't try to optimize combined
2819 parallels if region->exit or region->inner->exit is NULL.
2820 (expand_omp_parallel): Handle NULL region->exit even if cfg is already
2822 (expand_omp_for_generic): Handle NULL region->cond and region->exit.
2823 (expand_omp_for): Use expand_omp_for_generic if either region->cond
2824 or region->exit is NULL.
2825 (expand_omp_sections): Handle NULL region->cond or region->exit.
2828 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2830 * config/sparc/sp64-elf.h (JUMP_TABLES_IN_TEXT_SECTION): Delete.
2831 * config/sparc/sysv4.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2833 2006-12-04 Eric Botcazou <ebotcazou@adacore.com>
2835 * tree.c (walk_type_fields): Do not handle TYPE_MIN_VALUE and
2836 TYPE_MAX_VALUE for scalar types here but...
2837 (walk_tree): ...there instead. Return NULL_TREE if the TYPE_DECL
2838 is attached an error mark, and the return value of the callback
2839 if it is not NULL_TREE.
2841 2006-12-04 Ben Elliston <bje@au.ibm.com>
2843 * config/spu/spu.md (_mulv4si3): Remove unused local variables.
2845 2006-12-03 Eric Christopher <echristo@apple.com>
2848 * config/t-slibgcc-darwin: Pass -install_name.
2849 * config/darwin.h (LINK_COMMAND_SPEC): Remove use of
2850 libtool. Only pass through options that the linker recognizes.
2851 (LINK_SPEC): Update comment. Translate options.
2852 (STARTFILE_SPEC): Add dylib1.o for shared libraries.
2853 * config/darwin9.h (LINK_COMMAND_SPEC): Ditto above.
2855 2006-12-03 Dorit Nuzman <dorit@il.ibm.com>
2857 * config/spu/spu.md (smaxv4sf3, sminv4sf3): New.
2859 2006-12-03 Uros Bizjak <ubizjak@gmail.com>
2862 * config/i386/sse.md ("*sse3_movddup"): Use operands[0] and
2863 operands[1] in insn constraint. Correct type attribute to sselog1.
2865 2006-12-02 H.J. Lu <hongjiu.lu@intel.com>
2868 * config/i386/driver-i386.c: Include "coretypes.h" and "tm.h".
2870 (host_detect_local_cpu): Check -mtune= vs. -march=. Rewrite
2871 processor detection.
2873 * config/i386/i386.h (CC1_CPU_SPEC): Add -mtune=native for
2874 -march=native if there is no -mtune=*.
2876 * config/i386/x-i386 (driver-i386.o): Also depend on $(TM_H)
2879 2006-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2881 * doc/install.texi: Update recommended MPFR version. Remove
2882 obsolete reference to cumulative patch.
2884 2006-12-02 Lee Millward <lee.millward@codesourcery.com>
2887 * c-decl.c (store_parm_decls_oldstyle): Robustify.
2889 2006-11-30 Jan Hubicka <jh@suse.cz>
2890 Uros Bizjak <ubizjak@gmail.com>
2892 * config/i386/i386.c (pentium4_cost, nocona_cost): Update
2893 32bit memcpy/memset decriptors.
2894 (decide_alg): With -minline-all-stringops and sizes that are best
2895 to be copied via libcall still work hard enough to pick non-libcall
2898 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
2900 * doc/extend.texi, doc/invoke.texi, doc/md.texi: Fix typos.
2902 * builtins.c, cfgloop.h, cgraph.h, config/arm/arm.c,
2903 config/i386/i386.c, config/i386/i386.h, config/mips/mips.h,
2904 config/rs6000/cell.md, config/rs6000/rs6000.c, config/sh/sh.c,
2905 config/sh/sh4-300.md, config/spu/spu-builtins.def,
2906 config/spu/spu-c.c, config/spu/spu-modes.def,
2907 config/spu/spu.c, config/spu/spu.md,
2908 config/spu/spu_internals.h, config/spu/vmx2spu.h,
2909 fold-const.c, fwprop.c, predict.c, tree-data-ref.h,
2910 tree-flow.h, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2911 tree-ssa-pre.c, tree-vect-analyze.c, tree-vect-transform.c,
2912 tree-vectorizer.c, tree-vrp.c: Fix comment typos. Follow
2913 spelling conventions.
2915 * config/i386/i386.c: Fix a comment typo.
2917 2006-12-01 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2919 * config/spu/spu.c (spu_immediate): Remove trailing comma.
2920 (reloc_diagnostic): Call warning when -mwarn-reloc is specified.
2921 * config/spu/spu.md: (zero_extendhisi2): Expand instead of split for
2922 better optimization.
2923 (floatv4siv4sf2): New.
2924 (fix_truncv4sfv4si2): New.
2925 (floatunsv4siv4sf2): New.
2926 (fixuns_truncv4sfv4si2): New.
2934 (cmp<mode>): Don't accept constant arguments for DI, TI and SF.
2935 * config/spu/spu_internals.h: Handle overloaded intrinsics in C++ with
2936 spu_resolve_overloaded_builtin instead of static inline functions.
2938 2006-12-01 Eric Botcazou <ebotcazou@adacore.com>
2940 * fold-const.c (fold_binary) <LT_EXPR>: Use the precision of the
2941 type instead of the size of its mode to compute the highest and
2942 lowest possible values. Still check the size of the mode before
2943 flipping the signedness of the comparison.
2945 2006-12-01 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2947 * config/spu/predicates.md (spu_mov_operand): Add.
2948 * config/spu/spu.c (spu_expand_extv): Remove unused code.
2949 (print_operand_address, print_operand): Handle addresses containing AND.
2950 (spu_split_load, spu_split_store): Use updated movti pattern.
2951 * config/spu/spu.md: (_mov<mode>, _movdi, _movti): Handle loads and
2952 stores in mov patterns for correct operation of reload.
2953 (lq, lq_<mode>, stq, stq_<mode>): Remove.
2955 2006-12-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2958 * c-common.c (check_main_parameter_types): Check for error_mark_node.
2960 2006-12-01 Andrew MacLeod <amacleod@redhat.com>
2962 * common.opt (ftree-combine-temps): Remove.
2963 * tree-outof-ssa.c (SSANORM_COMBINE_TEMPS): Remove.
2964 (coalesce_ssa_name): Don't check for combine-temps.
2965 (coalesce_vars): Remove.
2966 (check_replaceable): Use num_imm_uses.
2967 (remove_ssa_form, insert_backedge_copies, rewrite_out_of_ssa): Don't
2968 check for combine-temps.
2969 (rewrite_out_of_ssa): Never create a ref_count in the var_map.
2970 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Change parms
2971 to register_ssa_partition calls.
2972 * tree-ssa-live.c (register_ssa_partition): Remove prototype.
2973 (init_var_map, delete_var_map): remove refernces to ref_count.
2974 (create_ssa_var_map): Never calculate a ref count.
2975 (type_var_init): Remove.
2976 * tree-ssa-live.h (typedef struct _var_map): Remove ref_count.
2977 (SSA_VAR_MAP_REF_COUNT): Delete.
2978 (create_ssa_var_map): Change Prototype to have no parameters.
2979 (version_ref_count): Delete.
2980 (register_ssa_partition): Remove 'is_use' paramater and don't set the
2982 (type_var_num, type_var, type_var_first_partition,
2983 type_var_next_partition, type_var_dump, type_var_delete,
2984 type_var_remove_partition, type_var_find, type_var_compact,
2985 type_var_decompact): Remove.
2987 2006-12-01 Bernd Schmidt <bernd.schmidt@analog.com>
2989 * config/bfin/bfin.md (pushsi_insn, popsi_insn): Set correct addrtype
2992 2006-12-01 Richard Guenther <rguenther@suse.de>
2995 * dwarf2out.c (struct pubname_struct): Make name const.
2996 (add_pubtype): Do not xstrdup identifiers.
2998 2006-12-01 Bernd Schmidt <bernd.schmidt@analog.com>
3000 * config/bfin/bfin.c (bfin_valid_add): Fix the logic that ensures
3001 multiword accesses are in range.
3003 2006-12-01 Zdenek Dvorak <dvorakz@suse.cz>
3005 PR tree-optimization/29921
3006 * tree-ssa-ccp.c (canonicalize_float_value): New function.
3007 (set_lattice_value): Use canonicalize_float_value.
3009 2006-11-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3011 * config/spu/spu.c (spu_builtin_range): Move from spu-c.c
3012 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Delete.
3013 (spu_cpu_cpp_builtins): Remove.
3014 (spu_override_options): Don't set warn_main.
3015 (spu_force_reg): Move from spu-c.c.
3016 (spu_check_builtin_parm): Likewise.
3017 (expand_builtin_args): Likewise.
3018 (spu_expand_builtin_1): Likewise.
3019 (spu_expand_builtin): Likewise.
3020 * config/spu/spu.h (REGISTER_TARGET_PRAGMAS): Define, set
3021 warn_main and targetm.resolve_overloaded_builtin.
3022 * config/spu/spu-c.c (spu_builtin_range): Remove.
3023 (spu_check_builtin_parm): Remove.
3024 (expand_builtin_args): Remove.
3025 (spu_expand_builtin_1): Remove.
3026 (spu_expand_builtin): Remove.
3027 (spu_cpu_cpp_builtins): Moved from spu.c
3028 (spu_force_reg): Remove.
3030 2006-12-01 Joseph Myers <joseph@codesourcery.com>
3031 David Edelsohn <edelsohn@gnu.org>
3034 * doc/tm.texi (HARD_REGNO_NREGS_HAS_PADDING,
3035 HARD_REGNO_NREGS_WITH_PADDING): Document new target macros.
3036 * defaults.h (HARD_REGNO_NREGS_HAS_PADDING,
3037 HARD_REGNO_NREGS_WITH_PADDING): Define.
3038 * config/i386/i386.h (HARD_REGNO_NREGS_HAS_PADDING,
3039 HARD_REGNO_NREGS_WITH_PADDING): Define.
3040 * rtlanal.c (subreg_regno_offset, subreg_offset_representable_p):
3041 Use new macros to detect modes with holes; do not look at integer
3043 (subreg_offset_representable_p): Check for and disallow cases
3044 where the modes use different numbers of bits from registers.
3045 * config/rs6000/rs6000.c (rs6000_emit_move): Handle TFmode
3046 constant for soft-float.
3047 (rs6000_hard_regno_nregs): Use UNITS_PER_FP_WORD for e500 GPRs
3049 (rs6000_split_multireg_move): Use DFmode reg_mode for TFmode moves
3050 in E500 double case.
3051 * config/rs6000/rs6000.md (movtf): Allow soft-float.
3052 (movtf_softfloat): New.
3054 2006-11-30 Richard Sandiford <richard@codesourcery.com>
3056 * simplify-rtx.c (simplify_rtx): Use simplify_subreg rather than
3057 simplify_gen_subreg.
3059 2006-11-30 Andrew Macleod <amacleod@redhat.com>
3061 * tree-ssa-live.c (create_coalesce_list): Create a hash table.
3062 (COALESCE_HASH_FN): New. Define hash function.
3063 (partition_pair_map_hash): New. Hash value for a partition pair.
3064 (partition_pair_map_eq): New. Equality for hash pairs.
3065 (create_coalesce_list): Create hash table.
3066 (delete_coalesce_list): Free hash table.
3067 (find_partition_pair): Find/create pairs in hash table.
3068 (compare_pairs): Sort pairs in ascending order now.
3069 (num_coalesce_pairs): New. Number of pairs in hash table.
3070 (struct partition_pair_iterator): Iterator struct for pair table.
3071 (first_partition_pair): Iterator function for first pair.
3072 (end_partition_pair_p): Iterator function for end of iteration.
3073 (next_partition_pair): Iterator function for next pair.
3074 (FOR_EACH_PARTITION_PAIR): Macro for iterating over pairs.
3075 (sort_coalesce_list): Sort pairs from hash table into an array.
3076 (pop_best_coalesce): Take pairs from the array.
3077 (dump_coalesce_list): Update to use hash table or sorted array.
3078 * tree-ssa-live.h (struct partition_pair_d): Remove next field.
3079 (struct coalesce_list_d): Add hash table related fields.
3081 2006-11-30 Jan Hubicka <jh@suse.cz>
3084 * builtins.c (fold_builtin_memory_op): Fix typo in the check for
3085 memmove/bcopy->memcpy conversion.
3087 2006-11-30 Carlos O'Donell <carlos@codesourcery.com>
3089 * doc/tm.texi (MAX_OFILE_ALIGNMENT): Document default.
3090 * config/elfos.h [!MAX_OFILE_ALIGNMENT] (MAX_OFILE_ALIGNMENT):
3091 Default is the largest alignment supported for 32-bit ELF and
3092 representable on a 32-bit host.
3094 2006-11-30 Janis Johnson <janis187@us.ibm.com>
3096 * config/dfp-bit.c (DFP_TO_INT): Use wider precision.
3098 2006-11-30 Jan Hubicka <jh@suse.cz>
3100 * tree-ssa-operands.h (struct ssa_operands): New.
3101 * tree-flow-inline.h (gimple_ssa_operands): New function.
3102 * tree-flow.h: (struct gimple_df): Add ssa_operands.
3103 * Makefile.in: Remove gt-tree-ssa-operands.h
3104 * tree-ssa-operands.c: Do not include gt-tree-ssa-operands.h
3105 (free_defs, free_uses, free_vuses, free_maydefs, free_mustdefs,
3106 operand_memory, operand_memory_index, ops_active): Remove statics.
3107 (ALLOC_OPTYPE): Update.
3108 (operand_build_sort_virtual): Update.
3109 (ssa_operands_active): Update.
3110 (init_ssa_operands): Update.
3111 (fini_ssa_operands): Update.
3112 (ssa_operand_alloc): Update.
3113 (INITIALIZE_USE): Update.
3114 (finalize_ssa_use_ops): Update.
3115 (finalize_ssa_v_may_def_ops): Update.
3116 (finalize_ssa_vuse_ops): Update.
3117 (finalize_ssa_v_must_def_ops): Update.
3119 2006-11-30 Richard Guenther <rguenther@suse.de>
3121 * tree-vectorizer.h (vectorizable_function): Export.
3122 * tree-vect-transform.c (vectorizable_function): Likewise.
3123 * tree-vect-patterns.c (vect_recog_pow_pattern): Set
3124 type_in to scalar type in recognition of squaring.
3125 Make sure the target can vectorize sqrt in recognition
3126 of sqrt, set type_in to vector type in this case.
3128 2006-11-30 Uros Bizjak <ubizjak@gmail.com>
3130 * config/i386/i386.md (R10_REG): New constant.
3131 * config/i386/i386.c (pro_epilogue_adjust_stack): Use R11_REG.
3132 (ix86_emit_restore_regs_using_mov): Ditto.
3133 (ix86_expand_call): Ditto.
3134 (x86_output_mi_thunk): Ditto. Also use R10_REG.
3136 2006-11-30 Steven Bosscher <steven@gcc.gnu.org>
3138 * cselib.c (cselib_init): Use special MEM rtx form for callmem.
3139 * alias.c (canon_true_dependence): Update comment.
3141 2006-11-30 Steven Bosscher <steven@gcc.gnu.org>
3143 * cgraphunit.c (cgraph_finalize_compilation_unit): Add a newline
3144 at the end of a diagnostics message.
3146 * alloc-pool.c (pool_free): Postpone clearing the pool entry
3147 until after asserting that it was allocated in the right pool.
3149 * cfgrtl.c (print_rtl_with_bb): Print predecessor and
3150 successor edge information as well. Make output of live regs
3151 on exit consistent with live regs on entry.
3153 2006-11-30 Uros Bizjak <ubizjak@gmail.com>
3156 * config/i386/i386.md (*truncxfsf2_mixed, *truncxfdf2_mixed): Enable
3157 insn patterns for TARGET_80387.
3158 (*truncxfsf2_i387, *truncxfdf2_i387): Remove.
3159 (*truncxfsf2_i387_1): Rename to *truncxfsf2_i387.
3160 (*truncxfdf2_i387_1): Rename to *truncxfdf2_i387.
3161 (fmod<mode>3, remainder<mode>3): Enable expaders for SSE math.
3162 Generate truncxf<mode>2 insn patterns for strict SSE math.
3164 2006-11-30 Uros Bizjak <ubizjak@gmail.com>
3166 * config/i386/i386.md (movsf_1): Enable pattern for standard
3167 80387 constants before reload when optimizing for size.
3168 (*movdf_nointeger, *movdf_integer): Ditto.
3169 (*movxf_nointeger, *movxf_integer): Disable patterns for standard
3170 80387 constants before reload when not optimizing for size.
3172 (*fop_xf_4_i387, *fop_xf_5_i387, *fop_xf_6_i387): Avoid float
3173 extension of XFmode input operands.
3175 2006-11-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
3177 * config/spu/crt0.c (__dso_handle): Define.
3179 2006-11-30 Kaz Kojima <kkojima@gcc.gnu.org>
3181 * emit-rtl.c (verify_rtl_sharing): Handle SEQUENCE specially
3182 when clearing the used flags.
3184 2006-11-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
3186 * config/spu/spu.md (extend_compare): Fix whitespace formatting.
3188 2006-11-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
3191 * config/spu/spu.md (extend_compare<mode>): New pattern.
3192 (extend_compare): Change to expand and use the above pattern.
3194 2006-11-29 Janis Johnson <janis187@us.ibm.com>
3196 * config/dfp-bit.c (DFP_TO_INT): Fix rounding mode.
3198 * config/dfp-bit.h (CONTEXT_ROUND): Delete.
3199 (DFP_INIT_ROUNDMODE): Define.
3200 * config/dfp-bit.c: Replace CONTEXT_ROUND with DFP_INIT_ROUNDMODE.
3201 * mklibgcc.in: Fix dependencies for dfp-bit.c.
3203 2006-11-29 Tehila Meyzels <tehila@il.ibm.com>
3205 * haifa-sched.c: Remove define LINE_NOTE(INSN). Remove line_note_head.
3206 Update documentation.
3207 (associate_line_notes_with_blocks): Kill.
3208 (extend_bb): Remove basic block argument, put void instead.
3209 Remove line number handling for each bb.
3210 (save_line_notes): Kill.
3211 (restore_line_notes): Kill.
3212 (sched_init): Remove line_note_head initialization.
3213 Change extend_bb call.
3214 (sched_finish): Remove free of line_note_head.
3215 (add_block): Change extend_bb call.
3216 * sched-ebb.c (schedule_ebb): Remove save_line_notes,
3217 rm_line_notes and restore_line_notes calls.
3218 (schedule_ebbs): Remove rm_redundant_line_notes.
3219 * sched-int.h (struct haifa_insn_data): Remove line_note.
3220 (save_line_notes): Remove declaration.
3221 (restore_line_notes): Remove declaration.
3222 * modulo-sched.c (loop_canon_p): Update debug info printing
3223 by using insn locators instead of line note.
3224 (sms_schedule): Update debug info printing, by using insn
3225 locators instead of line note.
3226 * sched-rgn.c (debug_dependencies): Remove handling of case
3227 n>0 (line number), since it's a dead code.
3228 (schedule_region): Remove save_line_notes and
3229 restore_line_notes calls.
3231 2006-11-29 Joseph Myers <joseph@codesourcery.com>
3233 * config/rs6000/predicates.md (gpc_reg_operand): Check
3234 invalid_e500_subreg.
3235 * config/rs6000/rs6000.c (invalid_e500_subreg): Don't allow any
3236 SImode subregs of SPE vectors.
3237 * config/rs6000/rs6000.md (insv): Fail for invalid E500 subregs.
3238 * jump.c (true_regnum): Require subregs to satisfy
3239 subreg_offset_representable_p.
3241 2006-11-29 Daniel Berlin <dberlin@dberlin.org>
3242 Steven Bosscher <stevenb.gcc@gmail.com>
3244 * Makefile.in (tree-ssanames.o): Remove gt-tree-ssanames.h,
3245 since it no longer exists.
3247 2006-11-29 Duncan Sands <baldrick@free.fr>
3249 PR tree-optimization/23744
3250 * tree-vrp.c (vrp_meet): do not require ranges to intersect.
3252 2006-11-29 Duncan Sands <baldrick@free.fr>
3254 PR tree-optimization/23744
3255 * testsuite/gcc.dg/tree-ssa/pr23744.c: new test.
3257 2006-11-29 Duncan Sands <baldrick@free.fr>
3259 PR tree-optimization/23744
3260 * testsuite/gcc.dg/tree-ssa/update-threading.c: xfail.
3262 2006-11-29 Jie Zhang <jie.zhang@analog.com>
3264 * doc/tm.texi (NO_PROFILE_COUNTERS): Document more accurately.
3266 2006-11-29 J"orn Rennecke <joern.rennecke@st.com>
3268 * sh.opt (minline-ic_invalidate): New option.
3269 (musermode): Adjust comment.
3270 * sh.c (sh_initialize_trampoline): Emit library call unless
3271 is set; if it is set, don't emit library call if we can use icbi
3273 * sh.md (ic_invalidate_line, ic_invalidate_line_sh4a): Also use
3274 icbi for TARGET_SH4_300.
3275 * t-sh (LIB1ASMFUNCS_CACHE): Set.
3276 * doc/invoke.texi: Document -minline-ic_invalidate; Update
3277 -musermode documentation.
3279 2006-11-29 Jim Tison <jtison@us.ibm.com>
3281 * gthr-tpf.h (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION,
3282 __gthread_recursive_mutex_init): Define.
3284 2006-11-29 Joseph Myers <joseph@codesourcery.com>
3286 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): If
3287 STRICT_ALIGNMENT and the type is more aligned than the saved
3288 registers, copy via a temporary.
3290 2006-11-28 Andrew Pinski <pinskia@gmail.com>
3293 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Handle MAX_EXPR
3296 2006-11-28 Bob Wilson <bob.wilson@acm.org>
3298 * config/xtensa/lib1funcs.asm (__umulsidi3): Restore a12-a15 on exit.
3300 2006-11-28 Jan Hubicka <jh@suse.cz>
3302 Privatize SSA variables into gimple_df.
3303 * tree-flow-inline.h
3304 (gimple_in_ssa_p, gimple_aliases_computed_p, gimple_addressable_vars,
3305 gimple_call_clobbered_vars, gimple_referenced_vars, gimple_global_var,
3306 gimple_nonlocal_all): New accessors.
3307 (first_referenced_var): Update.
3308 (mark_stmt_modified): Update.
3309 (is_call_clobbered): Update.
3310 (mark_call_clobbered): Update.
3311 (clear_call_clobbered): Update.
3312 (mark_non_addressable): Update.
3313 * tree-vrp.c (get_value_range): Update.
3314 * tree-into-ssa.c (in_ssa_p): Kill.
3315 (get_default_def_for): Update.
3316 (rewrite_into_ssa): Update.
3317 * tree-complex.c (init_parameter_lattice_values): Update.
3318 (update_complex_assignment): Update.
3319 (update_parameter_components): Update.
3320 (expand_complex_libcall): Update.
3321 (expand_complex_operations_1): Update.
3322 * tree-tailcall.c (arg_needs_copy_p): Update.
3323 (add_virtual_phis): Update.
3324 (tree_optimize_tail_calls_1): Update.
3325 * tree-ssa-dse.c (memory_ssa_name_same): Update.
3326 * tree-ssa-copyrename.c
3327 (copy_rename_partition_coalesce): Update.
3328 * tree-ssa-math-opts.c (execute_cse_reciprocals): Update.
3329 * tree-ssa-propagate.c (set_rhs): Update.
3330 * tree-ssa-alias.c (aliases_computed_p, call_clobbered_vars,
3331 addressable_vars, global_var):Kill.
3332 (set_initial_properties): Update.
3333 (init_alias_info): Update.
3334 (finalize_ref_all_pointers): Update.
3335 (setup_pointers_and_addressables): Update.
3336 (maybe_create_global_var): Update.
3337 (create_global_var): Update.
3338 (dump_points_to_info): Update.
3339 * function.h (struct gimple_df): Forward declare.
3340 (struct function): Add GIMPLE_DF field.
3341 * gimplify.c (force_gimple_operand): Update.
3342 * tree-dfa.c (referenced_vars, default_defs): KIll.
3343 (make_rename_temp): Update.
3344 (dump_variable): Update.
3345 (referenced_var_lookup): Update.
3346 (referenced_var_check_and_insert): Update.
3347 (default_def): Rename to ...
3348 (gimple_default_def): ... this one; accept cfun argument.
3349 (set_default_def): Update.
3350 * tree-cfgcleanup.c (modified_noreturn_calls): Kill.
3351 (cleanup_control_flow): Update.
3352 * tree-ssa-pre.c (compute_avail): Update
3353 * tree-ssa-live.c (calculate_live_on_entry): Update.
3354 * tree-ssa.c (verify_use): Update.
3355 (verify_call_clobbering): Update.
3356 (verify_call_clobbering): Update.
3357 (init_tree_ssa): Update.
3358 (delete_tree_ssa): Update.
3359 * tree-outof-ssa.c (coalesce_ssa_name): Update.
3360 (rewrite_out_of_ssa): Update.
3361 * tree-flow.h (gimple_df): New structure collecting dataflow variables.
3362 (FREE_SSANAMES, SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS): New
3364 (in_ssa_p, modified_noreturn_calls, referenced_vars, default_defs,
3365 ssa_names, global_var, nonlocal_all, call_clobbered_vars,
3366 addressable_vars, aliases_computed_p): Kill.
3367 (default_def): Rename to...
3368 (gimple_default_def): ... this one.
3369 (defaule_def_fn): Kill.
3370 (num_referenced_vars, ssa_names, num_ssa_names): Update.
3371 * tree-ssa-structalias.c (nonlocal_all): Kill.
3372 (get_constraint_exp_from_ssa_var): Update.
3373 (create_nonlocal_var): Update.
3374 (get_constraint_for): Update.
3375 (update_alias_info): Update.
3376 (find_global_initializers): Update.
3377 (intra_create_variable_infos): Update.
3378 (intra_create_variable_infos):
3379 (find_what_p_points_to): Update.
3380 (init_alias_heapvars): Update.
3381 * tree-cfg.c (remove_bb): Update.
3382 (gimplify_val): Update.
3383 * tree-ssa-reassoc.c (get_rank): Update.
3384 (init_reassoc): Update.
3385 * tree-ssanames.c: Do not include gt-tree-ssanames.h
3386 (ssa_names, free_ssanames): Kill.
3387 (init_ssanames): Update.
3388 (make_ssa_name): Update.
3389 (release_ssa_name): Update.
3390 (release_defs): Update.
3391 (replace_ssa_name_symbol): Update.
3392 * tree-ssa-operands.c (access_can_touch_variable): Update.
3393 (add_virtual_operand): Update.
3394 (add_call_clobber_ops): Update.
3395 (add_call_read_ops): Update.
3396 (get_call_expr_operands): Update.
3397 (get_asm_expr_operands): Update.
3399 2006-11-28 Jan Hubicka <jh@suse.cz>
3401 * builtins.c: Include tree-flow.h.
3402 (fold_builtin_memory_op): Be more aggressive on converting memcpy to
3403 assignment; convert memmove to memcpy for sizes greater than 1 where
3404 alignment of operands prohibit the partial overlap.
3406 2006-11-28 Jan Hubicka <jh@suse.cz>
3408 * invoke.texi (large-stack-frame, large-stack-frame-growth): New params.
3409 * cgraph.c (dump_cgraph_node): Dump stack usage.
3410 * cgraph.h (cgraph_local_info): Add estimated_self_stack_size.
3411 (cgraph_global_info): Add estimated_stack_size and stack_frame_offset.
3412 * cgraphunit.c (cgraph_analyze_function): Analyze stack sizes.
3413 * ipa-inline.c (cgraph_clone_inlined_nodes): Propagate stack usage.
3414 (cgraph_check_inline_limits): Limit stack growth.
3415 * cfgexpand.c: Include tree-inline.h.
3416 (account_stack_vars): New function.
3417 (expand_one_var): New param to just account the stack; return estimated
3419 (expand_used_vars_for_block): Update call of expand_one_var.
3420 (account_used_vars_for_block): New function.
3421 (estimated_stack_frame_size): Likewise.
3422 (init_vars_expansion, fini_vars_expansion): Break out from..
3423 (expand_used_vars): ... here.
3424 * tree-inline.h (estimated_stack_frame_size): Declare.
3425 * params.def (PARAM_LARGE_STACK_FRAME, PARAM_STACK_FRAME_GROWTH): New.
3427 2006-11-28 Richard Guenther <rguenther@suse.de>
3429 * ggc-page.c (ggc_print_statistics): Use %ul and a cast to
3430 unsigned long for printing OBJECT_SIZE.
3432 2006-11-27 Steven Bosscher <steven@gcc.gnu.org>
3434 * alias.c (init_alias_analysis): Remove simplification loop
3435 after propagating pointers.
3437 2006-11-27 Uros Bizjak <ubizjak@gmail.com>
3439 * config/i386/i386.c (x86_ext_80387_constants): Add m_K8, m_CORE2
3442 2006-11-27 Bob Wilson <bob.wilson@acm.org>
3444 * config/xtensa/xtensa.h (XCHAL_HAVE_MUL32_HIGH): Provide default.
3446 2006-11-27 Roger Sayle <roger@eyesopen.com>
3447 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3449 * c-common.c (constant_fits_type_p): Delete.
3450 (unsigned_conversion_warning): Delete.
3451 (conversion_warning): Integrate Wconversion warning from
3452 unsigned_conversion_warning.
3453 (convert_and_check): Integrate Woverflow warning from
3454 unsigned_conversion_warning. Reorganize and simplify to avoid
3455 dependence upon the middle-end setting TREE_OVERFLOW on integral
3456 conversions, by using int_fits_type_p directly.
3458 2006-11-27 Tobias Burnus <burnus@net-b.de>
3460 * doc/invoke.texi: Fixed typo.
3462 2006-11-27 Michael Matz <matz@suse.de>
3463 Andreas Krebbel <krebbel1@de.ibm.com>
3466 * config/s390/predicates.md (larl_operand): Check addend of larl
3467 operand to be in range of -/+2GB.
3468 * config/s390/s390.c (legitimize_pic_address): Likewise.
3469 Changed type of variable even to HOST_WIDE_INT.
3471 2006-11-27 Jan Hubicka <jh@suse.cz>
3473 * expr.c (emit_block_move_via_libcall): Export.
3474 (clear_storage_via_libcall): Rename to ...
3475 (set_storage_via_libcall): ... this one; handle arbitrary value to set.
3476 (clear_storage): Update to set_storage_via_libcall.
3477 * expr.h (emit_block_move_via_libcall): Declare
3478 * config/i386/i386.h (stringop_alg): New enum.
3479 (MAX_STRINGOP_ALGS): New constant.
3480 (stringop_algs): New struct.
3481 (processor_costs): Add memcpy/memset descriptors.
3482 (TARGET_REP_MOVEL_OPTIMAL): Remove.
3483 * config/i386/i386.md (movsi_insv_1_rex64): New pattern.
3484 (strmovsi, strmovdi, strsetsi, strsetdi): Update; accept all operands
3486 * config/i386/i386.opt (minline-stringops-dynamically,
3487 mstringop-strategy): New
3489 * config/i386/i386-prostos.h (ix86_expand_movmem): Update prototype.
3490 (ix86_expand-clrmem): Rename to ...
3491 (ix86_expand_setmem): ... this one; update prototype.
3492 * config/i386/i386.c (DUMMY_STRINGOP_ALGS): New constant.
3493 (size_cost, i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
3494 geode_cost, k6_cost, athlon_cost, k8_cost, pentium4_cost,
3495 nocona_cost, core2_cost, generic_cost, generic64_cost,
3496 generic32_cost): Add memcpy/memset descriptors.
3497 (x86_rep_movl_optimal): Remove.
3498 (stringop_alg): New static variable.
3499 (ix86_expand_aligntest): Handle predictions.
3500 (override_options): Add strgop_alg handling.
3501 (predict_jump): New function.
3502 (scale_counter): New function.
3503 (expand_set_or_movmem_via_loop): New function.
3504 (expand_movmem_via_rep_mov): New function.
3505 (expand_setmem_via_rep_stots): New function.
3506 (emit_strmov): New function.
3507 (expand_movmem_epilogue): New function.
3508 (expand_setmem_epilogue_via_loop): New function.
3509 (expand_setmem_epilogue): New function.
3510 (expand_movmem_prologue): New function.
3511 (expand_setmem_prologue): New function.
3512 (decide_alg): New function.
3513 (decide_alignment): New function.
3514 (ix86_exand_movmem): Rewrite.
3515 (promote_duplicated_reg): New function.
3516 (ix86_expand_clrmem): Rename to ...
3517 (ix86_expand_setmem): ... this one. Rewrite.
3519 * invoke.texi (minline-stringops-dynamically): New command line option.
3520 (mstringop-strategy): Likewise.
3522 2006-11-27 Jan Hubicka <jh@suse.cz>
3524 * cfgexpand.c (construct_exit_block): Don't disturb end of last BB.
3525 * rtl.texi (NOTE_INSN_FUNCTION_END): Remove.
3526 * final.c (final_scan_insn): Don't scan NOTE_INSN_FUNCTION_END.
3527 * insn-notes.def (FUNCTION_END): Remove.
3528 * jump.c (delete_related_insns): Don't worry about FUNCTION_END.
3529 (redicect_jump_2): Don't accept -1 parameter to remove FUNCTION_END
3531 * ifcvt.c (dead_or_predictable): Update call of redirect_jump_2.
3532 * function.c (expand_function_end): Don't emit NOTE_INSN_FUNCTION_END
3533 * cfglayout.c (duplicate_insn_chain): Don't worry about
3536 2006-11-27 Richard Guenther <rguenther@suse.de>
3537 Zdenek Dvorak <dvorakz@suse.cz>
3539 * target.h (struct gcc_target): Add builtin_vectorized_function
3541 * target-def.h (TARGET_VECTORIZE): Likewise.
3542 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3543 Document new target hook.
3544 * targhooks.h (default_builtin_vectorized_function): Declare.
3545 * targhooks.c (default_builtin_vectorized_function): Define.
3546 * tree-vectorizer.h (stmt_vec_info_type): Add call_vec_info_type.
3547 (vectorizable_call): Declare.
3548 * tree-vect-analyze.c (vect_analyze_operations): Call
3550 * tree-vect-transform.c (vectorizable_function): New static function.
3551 (build_vectorized_function_call): Likewise.
3552 (vectorizable_call): New function.
3553 (vect_transform_stmt): Handle vectorizable calls.
3555 2006-11-27 Richard Guenther <rguenther@suse.de>
3558 * builtins.c (expand_builtin_pow): Optimize non integer valued
3559 constant exponents using sqrt or cbrt if possible. Always fall back
3560 to expanding via optabs.
3562 2006-11-27 Ira Rosen <irar@il.ibm.com>
3564 PR tree-optimization/22372
3565 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Convert
3566 the type of the base address.
3567 (vect_create_data_ref_ptr): Add an argument, type of the data-ref. Use
3568 it in the data-ref pointer creation.
3569 (vect_init_vector): Add an argument, type of the init vector. Use it in
3571 (vect_get_vec_def_for_operand): Fix calls to vect_init_vector.
3572 (get_initial_def_for_reduction): Likewise.
3573 (vect_create_epilog_for_reduction): Change type of MODIFY_EXPR to
3575 (vectorizable_assignment, vect_permute_store_chain): Likewise.
3576 (vectorizable_store): Fix call to vect_create_data_ref_ptr. Use the
3577 correct type in stmt creation.
3578 (vect_setup_realignment): Use the correct type in stmt creation.
3579 (vect_permute_load_chain): Change type of MODIFY_EXPR to
3581 (vectorizable_load): Fix calls to vect_create_data_ref_ptr. Change type
3582 of MODIFY_EXPR to void_type_node.
3583 (vectorizable_condition): Change type of MODIFY_EXPR to
3585 (vect_update_ivs_after_vectorizer): Use the correct type in stmt
3588 2006-11-27 Uros Bizjak <ubizjak@gmail.com>
3591 2006-05-08 Uros Bizjak <uros@kss-loka.si>
3592 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
3593 standard 80387 constants, raise the cost to prevent
3594 compress_float_constant() to generate load from memory.
3596 * config/i386/i386.md: Add new splitter pattern to split
3597 float_extended load of constant from constant pool into
3600 2006-11-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3602 * doc/install.texi: Move GMP/MPFR configure options from Fortran
3603 section to general section. Remove documentation for
3604 --with-mpfr-dir and --with-gmp-dir, add documentation for
3605 --with-mpfr-include, --with-mpfr-lib, --with-gmp-include and
3608 * builtins.c (fold_builtin_fmin_fmax): Handle NaN arguments.
3610 2006-11-26 Razya Ladklesky <razya@il.ibm.com>
3612 * testsuite/gcc.dg/ipa/ipa-6.c: New.
3614 2006-11-26 Razya Ladklesky <razya@il.ibm.com>
3616 PR tree-optimization/29122
3617 * tree-inline.c (tree_function_versioning): Update DECL_ASSEMBLER_NAME
3618 for the new version. Assign NULL to DECL_RTL of the new version.
3620 2006-11-25 Uros Bizjak <ubizjak@gmail.com>
3622 * reg-stack.c (get_true_reg): Fix UNSPEC_TRUNC_NOOP handling.
3624 2006-11-25 Steven Bosscher <steven@gcc.gnu.org>
3626 * cse.c (cse_altered): Remove.
3627 (record_jump_equiv): Make true/false argument a bool instead
3629 (cse_insn): Don't set cse_altered. Use delete_insn_and_edges
3630 where appropriate. Emit a new jump before the existing one
3631 instead of after so that delete_insn_and_edges removes the
3632 dead edges properly. Check any_condjump_p before calling
3634 (cse_basic_block): Check any_condjump_p before calling
3636 (cse_main): Don't set/check cse_altered. Remove USE_C_ALLOCA.
3638 2006-11-25 Brooks Moses <brooks.moses@codesourcery.com>
3640 * c.opt: Remove -ffixed-form, -ffixed-line-length-none, and
3641 -ffixed-line-length-* options.
3643 2006-11-25 Uros Bizjak <ubizjak@gmail.com>
3645 * config/i386/i386.md (fpremxf4): Rename to fpremxf4_i387.
3646 (fprem1xf4): Rename to fprem1xf4_i387.
3648 (fmodsf3, fmoddf3): Macroize patterns using X87MODEF12 mode macro.
3649 Rename patterns to fmod<mode>3. Use general_operand operand
3650 constraint for operands 1 and 2. Use SSE_FLOAT_MODE_P to disable
3651 patterns for SSE math.
3652 (remaindersf3, remainderdf3): Ditto.
3654 2006-11-25 Joseph Myers <joseph@codesourcery.com>
3656 * function.c (instantiate_virtual_regs_in_insn): Call force_reg
3657 inside start_sequence / end_sequence pair.
3659 2006-11-25 Steven Bosscher <steven@gcc.gnu.org>
3661 * jump.c (mark_all_labels): Work in cfglayout mode.
3662 * cfgcleanup.c (cleanup_cfg): Do not call delete_dead_jumptables
3663 when in cfglayout mode, because there are no dead jumptables
3665 * cfgrtl.c (commit_one_edge_insertion): Don't set bb->aux when
3667 (commit_edge_insertions): Do not allow insertion of instructions
3668 with control flow insns when in cfglayout mode.
3670 2006-11-25 Zdenek Dvorak <dvorakz@suse.cz>
3672 * tree-vrp.c (execute_vrp): Do not pass loops structure through
3674 * loop-unswitch.c (unswitch_loops, unswitch_single_loop,
3675 unswitch_loop): Ditto.
3676 * tree-loop-linear.c (linear_transform_loops): Ditto.
3677 * tree-ssa-loop-im.c (determine_lsm, tree_ssa_lim_initialize,
3678 tree_ssa_lim): Ditto.
3679 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations,
3680 free_numbers_of_iterations_estimates): Ditto.
3681 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops,
3682 tree_unswitch_single_loop, tree_unswitch_loop): Ditto.
3683 * cfgloopmanip.c (fix_bb_placement, fix_bb_placements,
3684 remove_path, add_loop, loopify, unloop, fix_loop_placements,
3685 place_new_loop, duplicate_loop, duplicate_subloops,
3686 update_single_exit_for_duplicated_loops, copy_loops_to,
3687 duplicate_loop_to_header_edge, create_preheaders,
3688 force_single_succ_latches, loop_version, fix_loop_structure):
3690 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge,
3691 tree_unroll_loop): Ditto.
3692 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
3693 * tree-scalar-evolution.c (select_loops_exit_conditions,
3694 scev_initialize, scev_analysis): Ditto.
3695 * tree-scalar-evolution.h (scev_initialize): Ditto.
3696 * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Ditto.
3697 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
3698 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Ditto.
3699 * modulo-sched.c (sms_schedule): Ditto.
3700 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
3701 * loop-init.c (loop_optimizer_init, rtl_move_loop_invariants,
3702 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): Ditto.
3703 * ifcvt.c (if_convert): Ditto.
3704 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely,
3705 canonicalize_loop_induction_variables,
3706 canonicalize_induction_variables,
3707 tree_unroll_loops_completely, remove_empty_loops): Ditto.
3708 * tree-ssa-loop.c (tree_ssa_loop_init, tree_ssa_loop_im,
3709 tree_ssa_loop_unswitch, tree_vectorize, tree_linear_transform,
3710 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
3711 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts,
3712 tree_ssa_loop_done): Ditto.
3713 * predict.c (predict_loops, tree_estimate_probability, estimate_loops,
3714 estimate_bb_frequencies): Ditto.
3715 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
3716 slpeel_tree_peel_loop_to_edge, vectorize_loops): Ditto.
3717 * loop-unroll.c (unroll_and_peel_loops, peel_loops_completely,
3718 decide_unrolling_and_peeling, peel_loop_completely,
3719 unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
3720 peel_loop_simple, unroll_loop_stupid): Ditto.
3721 * loop-doloop.c (doloop_optimize_loops): Ditto.
3722 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Ditto.
3723 * loop-invariant.c (move_loop_invariants): Ditto.
3724 * tree-ssa-dce.c (tree_ssa_dce_loop): Ditto.
3725 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays,
3726 tree_ssa_prefetch_arrays): Ditto.
3727 * lambda-code.c (gcc_loopnest_to_lambda_loopnest, perfect_nestify):
3729 * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
3730 vect_do_peeling_for_alignment, vect_transform_loop): Ditto.
3731 * cfgloop.c (flow_loops_cfg_dump, flow_loops_dump,
3732 mark_single_exit_loops, cancel_loop, cancel_loop_tree,
3733 verify_loop_structure): Ditto.
3734 * tree-flow.h (vectorize_loops, tree_ssa_lim, tree_ssa_unswitch_loops,
3735 canonicalize_induction_variables, tree_unroll_loops_completely,
3736 tree_ssa_prefetch_arrays, remove_empty_loops, tree_ssa_iv_optimize,
3737 estimate_numbers_of_iterations, free_numbers_of_iterations_estimates,
3738 tree_duplicate_loop_to_header_edge, tree_ssa_loop_version,
3739 tree_unroll_loop, linear_transform_loops): Declaration changed.
3740 * basic-block.h: Remove declaration of struct loops.
3741 * cfghooks.h (struct cfg_hooks): Change type of
3742 cfg_hook_duplicate_loop_to_header_edge.
3743 (cfg_hook_duplicate_loop_to_header_edge): Declaration changed.
3744 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge,
3745 vect_transform_loop): Declaration changed.
3746 * lambda.h (gcc_loopnest_to_lambda_loopnest): Declaration changed.
3747 * cfgloop.h (flow_loops_dump, fix_loop_structure,
3748 mark_irreducible_loops, mark_single_exit_loops, mark_loop_exit_edges,
3749 cancel_loop_tree, create_preheaders, force_single_succ_latches,
3750 verify_loop_structure, duplicate_loop, duplicate_loop_to_header_edge,
3751 loopify, loop_version, remove_path, unswitch_loops,
3752 unroll_and_peel_loops, doloop_optimize_loops, move_loop_invariants):
3753 Declaration changed.
3755 2006-11-24 Uros Bizjak <ubizjak@gmail.com>
3757 * config/i386/i386.md (UNSPEC_TRUNC_NOOP): New unspec definition.
3758 (X87MODEF): New mode macro.
3759 (ssemodefsuffix): New mode attribute.
3760 (truncxf<mode>2_i387_noop_unspec): New insn pattern.
3761 (sqrt_extend<mode>xf2_i387): New insn pattern.
3762 (sqrt<mode>2): For non-SSE sqrt, emit sqrt_extend<mode>xf2_i387
3763 insn and truncate result back to original mode using
3764 UNSPEC_TRUNC_NOOP truncation.
3765 (*sqrt<mode>2_sse): Implement using SSEMODEF mode macro and
3766 ssemodefsuffix mode attribute.
3767 (*sqrtsf2_mixed, *sqrtsf2_i387, *sqrtdf2_mixed, *sqrtdf2_i387)
3768 (*sqrtextendsfdf2_i387, *sqrtextendsfxf2_i387)
3769 (*sqrtextenddfxf2_i387): Remove insn patterns.
3771 (fmodsf3, fmoddf3, remaindersf3, remainderdf3): Use noop
3772 truncation patterns.
3774 * reg-stack.c (get_true_reg): Handle UNSPEC_TRUNC_NOOP.
3776 2006-11-24 Jakub Jelinek <jakub@redhat.com>
3779 * c-tree.h (c_maybe_initialize_eh): New prototype.
3780 * c-decl.c (finish_decl): Move EH initialization...
3781 (c_maybe_initialize_eh): ... here. New function.
3782 * c-parser.c (c_parser_omp_construct): Call c_maybe_initialize_eh
3783 if not #pragma omp atomic.
3786 * c-common.c (handle_vector_size_attribute): Disallow VECTOR_TYPE
3787 or UNION_TYPE inner types.
3789 2006-11-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3792 * ipa-pure-const.c (check_tree): If the original tree
3793 is volatile return early and say the function is not pure
3794 nor const. Remove the volatile check for writes.
3795 (analyze_function): Print out the result of the local
3798 2006-11-24 Joseph Myers <joseph@codesourcery.com>
3800 * config/rs6000/eabispe.h (TARGET_DEFAULT): Include
3802 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Likewise.
3803 * config/rs6000/rs6000.c (rs6000_override_options): Use
3804 MASK_STRICT_ALIGN for 8540 and 8548. Add MASK_STRICT_ALIGN to
3807 2006-11-24 Andreas Krebbel <krebbel1@de.ibm.com>
3809 * config/s390.c (s390_emit_compare_and_swap): New function.
3810 (s390_expand_cs_hqi, s390_expand_atomic): Call
3811 s390_emit_compare_and_swap.
3813 2006-11-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3815 * pa.c (return_addr_rtx): Change 0xe0400002 to -532676606.
3817 2006-11-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3821 * c-common.c (conversion_warning): New.
3822 (convert_and_check): Call conversion_warning unless there is an
3824 * doc/invoke.texi (-Wconversion): Update description.
3826 2006-11-23 Daniel Berlin <dberlin@dberlin.org>
3828 * tree-ssa-alias.c (tree_pointer_compare): New function.
3829 (compact_name_tags): New function.
3830 (group_aliases): Call compact_name_tags.
3832 2006-11-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3834 * real.h (real_isinteger): Declare.
3835 * real.c (real_isinteger): Define.
3836 * builtins.c (integer_valued_real_p): Use it.
3838 2006-11-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3841 * c.opt (Wtraditional-conversion): New.
3842 (Wconversion): Update description.
3843 * c-typeck.c (convert_arguments): Warnings for prototypes causing
3844 type conversions different from what would happen in the absence
3845 of prototype are now handled by Wtraditional-conversion.
3846 * doc/invoke.texi (Wtraditional-conversion): New.
3847 (Wconversion): Update description.
3848 * doc/trouble.texi (Wconversion): Replace Wconversion by
3849 Wtraditional-conversion.
3851 2006-11-23 Andrew Pinski <pinskia@gmail.com>
3853 * predict.c (tree_estimate_probability): Check to make
3854 sure current_loops is non null before calling flow_loops_dump.
3856 2006-11-23 Bernd Schmidt <bernd.schmidt@analog.com>
3858 * var-tracking.c (emit_note_insn_var_location): Revert previous patch.
3860 2006-11-23 David Ung <davidu@mips.com>
3862 * config/mips/mips.h (ISA_HAS_FP4): Add MIPS32R2 + 64bit fpu
3864 (ISA_HAS_MXHC1): True if ISA supports mfhc1 and mthc1 opcodes.
3865 (ASM_SPEC): Pass along -mfp32 and -mfp64.
3866 * config/mips/mips.c (mips_split_64bit_move): Use gen_mthc1 to set
3867 high part of FP register when in 64-bit FP register mode. Similarly
3868 use gen_mfhc1 to load high part of FP register.
3869 (override_options): Allow -mgp32 and -mfp64 combination if
3870 ISA_HAS_MXHC1 (currently for O32 only).
3871 (mips_cannot_change_mode_class): If floating-point registers are
3872 bigger than word size. disallow conversion of float register from a
3873 large integer mode to a float mode smaller than the float register
3875 (mips_class_max_nregs): Handle float registers case seperately.
3876 * config/mips/mips.md (define_constants): Add UNSPEC_MFHC1,
3878 (movdi_32bit): Use !TARGET_FLOAT64 in condition pattern.
3879 (movdf_hardfloat_32bit): Similarly.
3880 (movdi_gp32_fp64): New DImode pattern for MIPS32R2 which optionally
3881 support a full 64-bit fpu.
3882 (mthc1): New pattern to generate MTHC1 instruction.
3883 (mfhc1): New pattern to generate MFHC1 instruction.
3884 * doc/invoke.texi (MIPS Options): Document the -mgp32 -mfp64
3885 option for the MIPS32R2 and mention its use under O32 ABI.
3887 2006-11-23 Bernd Schmidt <bernd.schmidt@analog.com>
3889 * var-tracking.c (emit_note_insn_var_location): Take care not to
3890 cause verify_flow_info failures.
3892 2006-11-22 Daniel Berlin <dberlin@dberlin.org>
3894 * tree-ssa-structalias.c: Remove edge weights in favor of just
3895 processing them as complex constraints.
3896 (struct constraint_graph): Remove weighted succs and preds. Rename
3897 nonweighted succs and preds.
3898 (constraint_edge): Removed.
3899 (constraint_edge_t): Ditto.
3900 (constraint_edge_pool): Ditto.
3901 (new_constraint_edge): Ditto.
3902 (constraint_edge_equal): Ditto.
3903 (constraint_edge_less): Ditto.
3904 (constraint_edge_vec_find): Ditto.
3905 (erase_self_graph_edge): Ditto.
3906 (add_graph_edge): Removed.
3907 (get_graph_weights): Ditto.
3908 (allocate_graph_weights): Ditto.
3909 (valid_weighted_graph_edge): Ditto
3910 (bitmap_other_than_zero_bit_set): Ditto.
3911 (int_add_graph_edge): Renamed to add_graph_edge.
3912 (clear_edges_for_node): Remove support for weighted edges.
3913 (merge_graph_nodes): Ditto.
3914 (valid_graph_edge): Ditto.
3915 (build_constraint_graph): Ditto.
3917 (collapse_nodes): Ditto.
3918 (process_unification_queue): Ditto.
3919 (topo_visit): Ditto.
3920 (do_ds_constraint): Ditto.
3921 (perform_var_subsitution): Ditto.
3922 (solve_graph): Ditto.
3923 (init_alias_vars): Ditto.
3924 (delete_points_to_sets): Ditto.
3925 (do_complex_constraint): Support offsetted copies here.
3927 2006-11-23 Ulrich Weigand <uweigand@de.ibm.com>
3929 * config/spu/spu_intrinsics.h (SPU_RdEventStatMask): Rename to
3931 * config/spu/spu_mfcio.h (spu_read_event_mask): Update.
3933 * config/spu/spu_mfcio.h (struct mfc_list_element): Change width
3936 2006-11-23 Ben Elliston <bje@au.ibm.com>
3938 * config/spu/spu-elf.h (LIB_SPEC): Do not link with -lc_p.
3940 2006-11-23 Zdenek Dvorak <dvorakz@suse.cz>
3942 PR tree-optimization/29921
3943 * fold-const.c (operand_equal_p): Without HONOR_SIGNED_ZEROS, consider
3944 signed and unsigned zero equal.
3946 2006-11-22 Peter Bergner <bergner@vnet.ibm.com>
3948 * config/rs6000/rs6000.c (get_store_dest): New.
3949 (adjacent_mem_locations): Use get_store_dest() to get
3950 the rtl of the store destination.
3952 2006-11-22 Joseph Myers <joseph@codesourcery.com>
3954 * config/rs6000/spe.md (SPE64): New mode macro.
3955 (mov_sidf_e500_subreg0): Change to mov_si<mode>_e500_subreg0. Add
3957 (mov_si<mode>_e500_subreg0_2): New.
3958 (mov_sidf_e500_subreg4): Change to mov_si<mode>_e500_subreg4. Add
3960 (mov_si<mode>_e500_subreg4_2): New.
3961 * config/rs6000/predicates.md (input_operand): Do not allow
3962 invalid E500 subregs.
3963 (rs6000_nonimmediate_operand): Check for invalid E500 subregs also
3965 * config/rs6000/rs6000.c (invalid_e500_subreg): Check for subregs
3966 involving DFmode if TARGET_E500_DOUBLE. Check for subregs
3967 involving vector modes if TARGET_SPE.
3969 2006-11-22 Kaz Kojima <kkojima@gcc.gnu.org>
3972 2006-11-12 Kaz Kojima <kkojima@gcc.gnu.org>
3973 * reorg.c (emit_delay_sequence): Copy the delay slot insn.
3975 2006-11-22 Bernd Schmidt <bernd.schmidt@analog.com>
3977 * config/bfin/predicates.md (d_register_operand, mem_p_address_operand,
3978 mem_i_address_operand): New predicates.
3979 * config/bfin/bfin.c (bfin_issue_rate): New function.
3980 (TARGET_SCHED_ISSUE_RATE): New macro.
3981 * config/bfin/bfin.md (addrtype): New attribute.
3982 (slot0, slot1, slot2, store, pregs): New cpu_units.
3983 (core): Now a define_reservation.
3984 (alu): Remove some insn types from this reservation.
3985 (dsp32, load32, loadp, loadi, store32, storep, storei, multi): New
3987 (dummy reservation): Don't trigger for mcld insns.
3988 (absence_sets): Two new absence sets to enforce slot ordering.
3989 (popsi_insn): Set addrtype.
3991 2006-11-22 Ira Rosen <irar@il.ibm.com>
3993 * doc/c-tree.texi: Document new tree codes.
3994 * doc/md.texi: Document new optabs.
3995 * tree-pretty-print.c (dump_generic_node): Handle print of new tree
3997 * optabs.c (optab_for_tree_code, init_optabs): Handle new optabs.
3998 * optabs.h (optab_index): Add new.
3999 (vec_extract_even_optab, vec_extract_odd_optab,
4000 vec_interleave_high_optab, vec_interleave_low_optab): New optabs.
4001 * genopinit.c (vec_extract_even_optab, vec_extract_odd_optab,
4002 vec_interleave_high_optab, vec_interleave_low_optab): Initialize
4004 * expr.c (expand_expr_real_1): Add implementation for new tree codes.
4005 * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
4006 * tree-vectorizer.h (stmt_vec_info): Add new fields for interleaving
4007 along with macros for their access.
4008 * tree-data-ref.h (first_location_in_loop, data_reference): Update
4010 * tree-vect-analyze.c (toplev.h): Include.
4011 (vect_determine_vectorization_factor): Fix indentation.
4012 (vect_insert_into_interleaving_chain,
4013 vect_update_interleaving_chain, vect_equal_offsets): New functions.
4014 (vect_analyze_data_ref_dependence): Add argument for interleaving
4015 check. Check for interleaving if it's true.
4016 (vect_check_dependences): New function.
4017 (vect_analyze_data_ref_dependences): Call vect_check_dependences for
4018 every ddr. Call vect_analyze_data_ref_dependence with new argument.
4019 (vect_update_misalignment_for_peel): Update for interleaving.
4020 (vect_verify_datarefs_alignment): Check only first data-ref for
4022 (vect_enhance_data_refs_alignment): Update for interleaving. Check
4023 only first data-ref for interleaving.
4024 (vect_analyze_data_ref_access): Check interleaving, update
4026 (vect_analyze_data_refs): Call compute_data_dependences_for_loop
4027 with different parameters.
4028 * tree.def (VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR,
4029 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR): New tree codes.
4030 * tree-inline.c (estimate_num_insns_1): Add cases for new codes.
4031 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
4032 Update step in case of interleaving.
4033 (vect_strided_store_supported, vect_permute_store_chain): New
4035 (vectorizable_store): Handle strided stores.
4036 (vect_strided_load_supported, vect_permute_load_chain,
4037 vect_transform_strided_load): New functions.
4038 (vectorizable_load): Handle strided loads.
4039 (vect_transform_stmt): Add argument. Handle strided stores. Check
4040 that vectorized stmt exists for patterns.
4041 (vect_gen_niters_for_prolog_loop): Update calculation for
4043 (vect_transform_loop): Remove stmt_vec_info for strided stores after
4044 whole chain vectorization.
4045 * config/rs6000/altivec.md (UNSPEC_EXTEVEN, UNSPEC_EXTODD,
4046 UNSPEC_INTERHI, UNSPEC_INTERLO): New constants.
4047 (vpkuhum_nomode, vpkuwum_nomode, vec_extract_even<mode>,
4048 vec_extract_odd<mode>, altivec_vmrghsf, altivec_vmrglsf,
4049 vec_interleave_high<mode>, vec_interleave_low<mode>): Implement.
4051 2006-11-22 Steven Bosscher <steven@gcc.gnu.org>
4053 * cse.c (enum taken): Remove PATH_AROUND.
4054 (addr_affects_sp_p, invalidate_skipped_set,
4055 invalidate_skipped_block): Remove.
4056 (cse_end_of_basic_block): Remove skip_blocks and related code.
4057 (cse_main): Don't test for flag_cse_skip_blocks.
4058 Update cse_end_of_basic_block call.
4059 (cse_basic_block): Likewise. Remove PATH_AROUND case. Remove
4060 code to lengthen the path if a jump was simplified.
4062 2006-11-22 Zdenek Dvorak <dvorakz@suse.cz>
4064 PR rtl-optimization/29924
4065 * loop-unroll.c (split_edge_and_insert): Handle the case insns is NULL.
4066 (unroll_loop_runtime_iterations): Assert that the argument passed to
4067 split_edge_and_insert is not NULL.
4068 * loop-doloop.c (add_test): Ditto.
4070 2006-11-22 Zdenek Dvorak <dvorakz@suse.cz>
4072 * tree-loop-linear.c (linear_transform_loops): Use single_exit accessor
4074 * tree-ssa-loop-niter.c (loop_only_exit_p): Ditto.
4075 * cfgloopmanip.c (update_single_exits_after_duplication,
4076 update_single_exit_for_duplicated_loop, loop_version): Ditto.
4077 * tree-scalar-evolution.c (get_loop_exit_condition,
4078 get_exit_conditions_rec, loop_closed_phi_def,
4079 number_of_iterations_in_loop, scev_const_prop): Ditto.
4080 * tree-ssa-loop-ivopts.c (single_dom_exit): Ditto.
4081 * modulo-sched.c (generate_prolog_epilog, loop_canon_p, sms_schedule):
4083 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
4085 * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
4086 slpeel_update_phi_nodes_for_guard1, slpeel_update_phi_nodes_for_guard2,
4087 slpeel_make_loop_iterate_ntimes,
4088 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_can_duplicate_loop_p,
4089 slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
4091 * tree-if-conv.c (if_convertible_loop_p): Ditto.
4092 * tree-vect-analyze.c (vect_analyze_operations, vect_stmt_relevant_p,
4093 vect_analyze_loop_form): Ditto.
4094 * lambda-code.c (lambda_loopnest_to_gcc_loopnest, exit_phi_for_loop_p,
4095 can_convert_to_perfect_nest, perfect_nestify): Ditto.
4096 * tree-vect-transform.c (vect_create_epilog_for_reduction,
4097 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
4098 vect_transform_loop): Ditto.
4099 * cfgloop.c (mark_single_exit_loops, verify_loop_structure): Ditto.
4100 (single_exit, set_single_exit): New functions.
4101 * cfgloop.h (struct loop): Rename single_exit field to single_exit_.
4102 (single_exit, set_single_exit): Declare.
4103 * doc/loop.texi: Undocument single_exit field. Document single_exit
4106 2006-11-22 Zdenek Dvorak <dvorakz@suse.cz>
4108 PR tree-optimization/29902
4109 * tree-ssa-loop-manip.c (can_unroll_loop_p): Return false if
4110 any involved ssa name appears in abnormal phi node.
4112 2006-11-21 Bob Wilson <bob.wilson@acm.org>
4114 * config/xtensa/xtensa.c (xtensa_char_to_class): Delete.
4115 (xtensa_const_ok_for_letter_p): Delete.
4116 (xtensa_extra_constraint): Delete.
4117 (override_options): Delete xtensa_char_to_class initialization.
4118 * config/xtensa/xtensa.h (REG_CLASS_FROM_LETTER): Delete.
4119 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4120 (EXTRA_CONSTRAINT): Delete.
4121 * config/xtensa/xtensa.md: Include constraints.md.
4122 (call_internal): Combine alternatives.
4123 (call_value_internal): Likewise, and remove invalid constraints.
4124 * config/xtensa/constraints.md: New file.
4125 * config/xtensa/xtensa-protos.h (xtensa_const_ok_for_letter_p): Delete.
4126 (xtensa_extra_constraint): Delete.
4127 * doc/md.texi (Machine Constraints): Refer to constraints.md for
4130 2006-11-21 Janis Johnson <janis187@us.ibm.com>
4132 * config/dfp-bits.c (DFP_TO_INT): Remove code to saturate result
4133 of conversion that doesn't fit.
4135 * config/dfp-bit.h (CONTEXT_TRAPS, CONTEXT_ERRORS, DFP_RAISE): Delete.
4136 * config/dfp-bit.c (dfp_unary_op, dfp_binary_op, dfp_compare_op,
4137 DFP_TO_DFP, INT_TO_DFP, BFP_TO_DFP): Remove calls to DFP_RAISE.
4139 * config/dfp-bit.c (dfp_binary_func): Fix typedef.
4141 2006-11-21 Douglas Gregor <doug.gregor@gmail.com>
4143 * c-common.h (enum rid): Add RID_STATIC_ASSERT.
4145 2006-11-21 Richard Guenther <rguenther@suse.de>
4147 * tree-vectorizer.h (NUM_PATTERNS): Increase.
4148 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4149 vect_recog_pow_pattern.
4150 (vect_recog_pow_pattern): New function.
4152 2006-11-21 Bernd Schmidt <bernd.schmidt@analog.com>
4154 * config/bfin/bfin.opt (mstack-check-l1): New.
4155 * doc/invoke.texi (Blackfin Options): Document it.
4156 * config/bfin/bfin.c (bfin_expand_prologue): Generate code to use
4157 stack bounds in L1 memory if the new option is enabled.
4158 (override_options): Don't allow combinations of -fstack-limit and
4160 (add_to_reg): Renamed from add_to_sp. All callers changed. Lose some
4163 * config/bfin/bfin.c (hard_regno_mode_ok): Only allow first 31
4165 (bfin_register_move_cost): Bump costs if trying to move plain
4166 integer values through accumulators.
4168 2006-11-21 Ben Elliston <bje@au.ibm.com>
4170 * config/spu/spu.c (spu_expand_vector_init): Initialise x.
4172 2006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
4173 Russell Olsen <Russell_Olsen@playstation.sony.com>
4174 Dmitri Makarov <Dmitri_Makarov@playstation.sony.com>
4175 Yukishige Shibata <shibata@rd.scei.sony.co.jp>
4176 Nobuhisa Fujinami <fnami@rd.scei.sony.co.jp>
4177 Takeaki Fukuoka <fukuoka@rd.scei.sony.co.jp>
4178 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
4180 * config.gcc: Add target for SPU.
4181 * config/spu/constraints.md: New file.
4182 * config/spu/crt0.c: New file.
4183 * config/spu/crtend.c: New file.
4184 * config/spu/crti.asm: New file.
4185 * config/spu/crtn.asm: New file.
4186 * config/spu/float_unsdidf.c: New file.
4187 * config/spu/float_unssidf.c: New file.
4188 * config/spu/predicates.md: New file.
4189 * config/spu/spu-builtins.def: New file.
4190 * config/spu/spu-builtins.h: New file.
4191 * config/spu/spu-builtins.md: New file.
4192 * config/spu/spu-c.c: New file.
4193 * config/spu/spu-elf.h: New file.
4194 * config/spu/spu-modes.def: New file.
4195 * config/spu/spu-protos.h: New file.
4196 * config/spu/spu.c: New file.
4197 * config/spu/spu.h: New file.
4198 * config/spu/spu.md: New file.
4199 * config/spu/spu.opt: New file.
4200 * config/spu/spu_internals.h: New file.
4201 * config/spu/spu_intrinsics.h: New file.
4202 * config/spu/spu_mfcio.h: New file.
4203 * config/spu/t-spu-elf: New file.
4204 * config/spu/vec_types.h: New file.
4205 * config/spu/vmx2spu.h: New file.
4206 * doc/contrib.texi: Document SPU contributor.
4207 * doc/extend.texi: Document SPU extensions.
4208 * doc/invoke.texi: Document SPU options.
4209 * doc/md.texi: Document SPU constraints.
4211 2006-11-21 Zdenek Dvorak <dvorakz@suse.cz>
4213 * cfgloopmanip.c (add_loop, duplicate_loop): Do not set level
4215 * cfgloop.c (flow_loop_level_compute, flow_loops_level_compute):
4217 (flow_loop_dump): Do not dump loop level.
4218 (flow_loops_find): Do not call flow_loops_level_compute.
4219 * cfgloop.h (struct loop): Remove level field.
4221 2006-11-21 Zdenek Dvorak <dvorakz@suse.cz>
4223 * tree-ssa-loop-im.c (schedule_sm, determine_lsm_ref,
4224 hoist_memory_references, loop_suitable_for_sm, determine_lsm_loop):
4225 Use vector of edges instead of array.
4226 * tree-ssa-loop-niter.c (find_loop_niter, find_loop_niter_by_eval,
4227 estimate_numbers_of_iterations_loop): Ditto.
4228 * predict.c (predict_loops): Ditto.
4229 * loop-unroll.c (analyze_insns_in_loop): Ditto.
4230 * tree-ssa-threadupdate.c: Remove declaration of heap allocation for
4232 * basic-block.h: Declare heap allocation for edge vectors.
4233 * tree-outof-ssa.c: Ditto.
4234 * cfgloop.c (get_loop_exit_edges): Return vector of edges.
4235 * cfgloop.h (get_loop_exit_edges): Declaration changed.
4237 2006-11-20 Zack Weinberg <zackw@panix.com>
4239 * gengtype.c (process_gc_options): Remove unnecessary forward decl.
4240 Add another out parameter, "skip".
4241 (set_gc_used_type): Adjust calls to process_gc_options. If a field
4242 is tagged "skip", do not mark its type used.
4244 2006-11-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
4247 * tree-sra.c (single_scalar_field_in_record_p): New function.
4248 (decide_block_copy): Use it.
4250 2006-11-20 David Daney <ddaney@avtrex.com>
4252 * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
4253 PC to point to following instruction.
4255 2006-11-20 Anatoly Sokolov <aesok@post.ru>
4259 * config/avr/avr.h (OBJECT_FORMAT_ELF): Define.
4261 * config/avr/avr.h (DWARF2_DEBUGGING_INFO): Define.
4263 2006-11-20 J"orn Rennecke <joern.rennecke@st.com>
4265 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
4266 Add sh/superh.h to tm_file.
4268 2006-11-20 Carlos O'Donell <carlos@codesourcery.com>
4269 Mark Mitchell <mark@codesourcery.com>
4271 * cppdefault.c: Define cpp_PREFIX, cpp_PREFIX_len, and
4273 (cpp_relocated): New function.
4274 * cppdefault.h: Declare cpp_PREFIX, cpp_PREFIX_len, gcc_exec_prefix
4276 * Makefile.in (PREPROCESSOR_DEFINES): Add -DPREFIX option.
4277 * c-incpath.c (add_standard_paths): Call cpp_relocated. If relocated,
4278 replace configured prefix with gcc_exec_prefix.
4280 2006-11-20 Bernd Schmidt <bernd.schmidt@analog.com>
4282 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Call
4283 bfin_legitimate_constant_p.
4284 * config/bfin/bfin.md (movsi expander): Check return value of
4286 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Declare.
4287 (expand_move): Adjust prototype.
4288 * config/bfin/bfin.c (expand_move): Now returns bool. Handle
4289 invalid constants specially.
4290 (bfin_cannot_force_const_mem, bfin_legitimate_constant_p): New
4292 (TARGET_CANNOT_FORCE_CONST_MEM): New macro.
4294 * config/bfin/bfin.md (call_symbol, call_value_symbol, sibcall_symbol,
4295 sibcall_value_symbol): Allow these patterns if
4296 TARGET_LEAF_ID_SHARED_LIBRARY.
4297 * config/bfin/bfin.c (bfin_expand_call): Allow them here as well.
4298 (override_options): Turn on id shared library flags if -msep-data,
4299 but disallow the combination of these options on the command line.
4300 * config/bfin/bfin.h (TARGET_LEAF_ID_SHARED_LIBRARY, MASK_SEP_DATA
4301 MASK_LEAF_ID_SHARED_LIBRARY, TARGET_SEP_DATA): New macros.
4302 (DRIVER_SELF_SPECS): -mleaf-id-shared-library implies
4303 -mid-shared-library.
4304 (TARGET_SWITCHES): Add -mleaf-id-shared-library and -msep-data.
4305 * doc/invoke.texi (Blackfin Options): Document new switches.
4307 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Handle some
4308 edge cases with local functions and TARGET_ID_SHARED_LIBRARY.
4310 * tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially
4311 inflate costs for addresses with an out-of-bounds address.
4313 2006-11-19 Andrew Pinski <pinskia@gmail.com>
4316 * fwprop.c (loops): Remove.
4317 (forward_propagate_into): Use current_loops instead of
4319 (fwprop_init): Call loop_optimizer_init instead of
4321 (fwprop_done): Call loop_optimizer_finalize instead of
4323 (fwprop): Use current_loops instead of loops.
4325 2006-11-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4328 * c-opts.c (c_common_handle_option): Enable -Wwrite-strings if -Wall.
4330 2006-11-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4333 * pa.c (emit_move_sequence): Don't split constants with PLUS for modes
4334 larger than BITS_PER_WORD.
4336 2006-11-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4340 * stor-layout.c (set_sizetype): Limit precision of *bitsizetypes types
4341 to MAX_FIXED_MODE_SIZE.
4343 2006-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4345 * builtins.c (integer_valued_real_p): Handle fmin/fmax.
4346 (fold_builtin_fmin_fmax): New.
4347 (fold_builtin_1): Use it.
4349 * fold-const.c (fold_strip_sign_ops): Handle copysign.
4351 2006-11-18 Richard Guenther <rguenther@suse.de>
4353 * config/i386/i386.c (ix86_builtins): New array for ix86
4354 builtin function decls.
4355 (def_builtin): New function.
4356 (def_builtin_const): Likewise.
4357 (ix86_init_mmx_sse_builtins): Mark sqrt and cvt builtins const.
4359 2006-11-18 Vladimir Makarov <vmakarov@redhat.com>
4361 * doc/invoke.texi (core2): Add item.
4363 * config/i386/i386.h (TARGET_CORE2, TARGET_CPU_DEFAULT_core2): New
4365 (TARGET_CPU_CPP_BUILTINS): Add code for core2.
4366 (TARGET_CPU_DEFAULT_generic): Change value.
4367 (TARGET_CPU_DEFAULT_NAMES): Add core2.
4368 (processor_type): Add new constant PROCESSOR_CORE2.
4370 * config/i386/i386.md (cpu): Add core2.
4372 * config/i386/i386.c (core2_cost): New initialized variable.
4373 (m_CORE2): New macro.
4374 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
4375 x86_deep_branch, x86_partial_reg_stall, x86_use_simode_fiop,
4376 x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
4377 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
4378 x86_partial_reg_dependency, x86_memory_mismatch_stall,
4379 x86_accumulate_outgoing_args, x86_prologue_using_move,
4380 x86_epilogue_using_move, x86_arch_always_fancy_math_387,
4381 x86_sse_partial_reg_dependency, x86_rep_movl_optimal,
4382 x86_use_incdec, x86_four_jump_limit, x86_schedule,
4383 x86_pad_returns): Add m_CORE2.
4384 (override_options): Add entries for Core2.
4385 (ix86_issue_rate): Add case for Core2.
4387 2006-11-18 Aldy Hernandez <aldyh@redhat.com>
4389 * doc/invoke.texi: Fix mno-isel typo.
4391 2006-11-18 Joseph Myers <joseph@codesourcery.com>
4393 * config/rs6000/spe.md (movv4hi_internal): Add alternative for
4394 easy vector constant loads.
4396 2006-11-18 Joseph Myers <joseph@codesourcery.com>
4398 * config/rs6000/rs6000.h (TARGET_NO_LWSYNC): Define.
4399 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4400 __NO_LWSYNC__ if TARGET_NO_LWSYNC.
4401 * config/rs6000/sync.md (lwsync): Emit plain sync if
4404 2006-11-17 DJ Delorie <dj@redhat.com>
4406 * reload1.c (reloads_unique_chain): New.
4407 (reloads_conflict): Call it.
4409 2006-11-17 Bob Wilson <bob.wilson@acm.org>
4411 * config/xtensa/predicates.md (addsubx_operand): New.
4412 * config/xtensa/xtensa.c (xtensa_emit_branch): New.
4413 (xtensa_emit_bit_branch): New.
4414 (xtensa_emit_movcc): New.
4415 * config/xtensa/xtensa.md (any_minmax): New code macro.
4416 (minmax): New code attribute.
4417 (any_cond, any_scc, any_scc_sf): New code macros.
4418 (*addx2, *addx4, *addx8): Delete.
4420 (*subx2, *subx4, *subx8): Delete.
4422 (sminsi3, uminsi3, smaxsi3, umaxsi3): Use any_minmax macro.
4423 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Use any_cond.
4424 (*btrue, *bfalse, *ubtrue, *ubfalse): Use xtensa_emit_branch.
4425 (*bittrue, *bitfalse): Use xtensa_emit_bit_branch.
4426 (seq, sne, sgt, sge, slt, sle): Use any_scc macro.
4427 (movsicc_internal0, movsicc_internal1): Use xtensa_emit_movcc.
4428 (movsfcc_internal0, movsfcc_internal1): Likewise.
4429 (seq_sf, slt_sf, sle_sf): Use any_scc_sf macro.
4430 * config/xtensa/xtensa-protos.h: (xtensa_emit_branch): New.
4431 (xtensa_emit_bit_branch): New.
4432 (xtensa_emit_movcc): New.
4433 (function_arg_boundary): Add missing prototype.
4435 2006-11-17 Bob Wilson <bob.wilson@acm.org>
4437 * config/xtensa/xtensa.md (tstsi): Delete
4439 2006-11-17 Bob Wilson <bob.wilson@acm.org>
4441 * config/xtensa/xtensa.md (entry): Do not emit .frame directive.
4443 2006-11-17 Bob Wilson <bob.wilson@acm.org>
4445 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4447 2006-11-17 Bob Wilson <bob.wilson@acm.org>
4449 * config/xtensa/lib1funcs.asm (__umulsidi3): Restore a0 on exit.
4451 2006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4453 * tree-vrp.c (execute_vrp): Do not update current_loops.
4454 * loop-unswitch.c (unswitch_loop): Do not use loop_split_edge_with.
4455 * doc/loop.texi: Remove documentation for cancelled functions.
4456 * tree-ssa-loop-im.c (loop_commit_inserts): Removed.
4457 (move_computations, determine_lsm): Use bsi_commit_edge_inserts
4459 * cfgloopmanip.c (remove_bbs): Do not update loops explicitly.
4460 (remove_path): Ensure that in delete_basic_blocks, the loops
4461 are still allocated.
4462 (add_loop): Work on valid loop structures.
4463 (loopify): Modify call of add_loop.
4464 (mfb_update_loops): Removed.
4465 (create_preheader): Do not update loops explicitly.
4466 (force_single_succ_latches, loop_version): Do not use
4467 loop_split_edge_with.
4468 (loop_split_edge_with): Removed.
4469 * tree-ssa-loop-manip.c (create_iv, determine_exit_conditions):
4470 Do not use bsi_insert_on_edge_immediate_loop.
4471 (split_loop_exit_edge, tree_unroll_loop): Do not use
4472 loop_split_edge_with.
4473 (bsi_insert_on_edge_immediate_loop): Removed.
4474 * tree-ssa-loop-ch.c (copy_loop_headers): Use current_loops. Do not
4475 use loop_split_edge_with.
4476 * cfghooks.c: Include cfgloop.h.
4477 (verify_flow_info): Verify that loop_father is filled iff current_loops
4479 (redirect_edge_and_branch_force, split_block, delete_basic_block,
4480 split_edge, merge_blocks, make_forwarder_block, duplicate_block):
4482 * cfgloopanal.c (mark_irreducible_loops): Work if the function contains
4484 * modulo-sched.c (generate_prolog_epilog, canon_loop): Do not use
4485 loop_split_edge_with.
4486 (sms_schedule): Use current_loops.
4487 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Use current_loops.
4488 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Set
4490 (rtl_loop_init, rtl_loop_done): Do not set current_loops.
4491 * tree-ssa-sink.c (execute_sink_code): Use current_loops.
4492 * ifcvt.c (if_convert): Ditto.
4493 * predict.c (predict_loops): Do not clear current_loops.
4494 (tree_estimate_probability): Use current_loops.
4495 (propagate_freq): Receive head of the region to propagate instead of
4497 (estimate_loops_at_level): Do not use shared to_visit bitmap.
4498 (estimate_loops): New function. Handle case current_loops == NULL.
4499 (estimate_bb_frequencies): Do not allocate tovisit. Use
4501 * tree-ssa-loop.c (current_loops): Removed.
4502 (tree_loop_optimizer_init): Do not return loops.
4503 (tree_ssa_loop_init, tree_ssa_loop_done): Do not set current_loops.
4504 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard1,
4505 slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge):
4506 Do not update loops explicitly.
4507 * function.h (struct function): Add x_current_loops field.
4508 (current_loops): New macro.
4509 * tree-if-conv.c (combine_blocks): Do not update loops explicitly.
4510 * loop-unroll.c (split_edge_and_insert): New function.
4511 (unroll_loop_runtime_iterations, analyze_insns_in_loop): Do not
4512 use loop_split_edge_with.
4513 * loop-doloop.c (add_test, doloop_modify): Ditto.
4514 * tree-ssa-pre.c (init_pre, fini_pre): Do not set current_loops.
4515 * cfglayout.c (copy_bbs): Do not update loops explicitly.
4516 * lambda-code.c (perfect_nestify): Do not use loop_split_edge_with.
4517 * tree-vect-transform.c (vect_transform_loop): Do not update loops
4519 * cfgloop.c (flow_loops_cfg_dump): Do not dump dfs_order and rc_order.
4520 (flow_loops_free): Do not free dfs_order and rc_order.
4521 (flow_loops_find): Do not set dfs_order and rc_order in loops
4522 structure. Do not call loops and flow info verification.
4523 (add_bb_to_loop, remove_bb_from_loops): Check whether the block
4524 already belongs to some loop.
4525 * cfgloop.h (struct loops): Remove struct cfg.
4526 (current_loops, loop_split_edge_with): Declaration removed.
4527 (loop_optimizer_init, loop_optimizer_finalize): Declaration changed.
4528 * tree-flow.h (loop_commit_inserts, bsi_insert_on_edge_immediate_loop):
4529 Declaration removed.
4530 * Makefile.in (cfghooks.o): Add CFGLOOP_H dependency.
4531 * basic-block.h (split_edge_and_insert): Declare.
4532 * tree-cfg.c (remove_bb): Do not update loops explicitly.
4534 2006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4536 PR tree-optimization/29801
4537 * tree-ssa-ccp.c (get_symbol_constant_value): New function.
4538 (get_default_value): Use get_symbol_constant_value.
4539 (set_lattice_value): ICE when the value of the constant is
4541 (visit_assignment): Ignore VDEFs of read-only variables.
4543 2006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4545 * tree-vect-transform.c (vect_create_epilog_for_reduction): Fix
4547 (vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
4548 vect_gen_niters_for_prolog_loop): Fold the emited expressions.
4550 2006-11-17 Zdenek Dvorak <dvorakz@suse.cz>
4552 * tree-ssa-alias.c (new_type_alias): Do not use offset of expr to
4553 select subvars of var.
4555 2006-11-17 Jakub Jelinek <jakub@redhat.com>
4558 * tree-ssa-forwprop.c (simplify_switch_expr): Don't
4559 optimize if DEF doesn't have integral type.
4561 2006-11-16 Mike Stump <mrs@apple.com>
4563 * config/darwin.h (LINK_COMMAND_SPEC): Don't do dwarf stuff on
4564 pre-darwin9 system, unless the user asks for it directly.
4565 (PREFERRED_DEBUGGING_TYPE): Likewise.
4566 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Likewise.
4567 * config.gcc: Add suppport for darwin9.h.
4568 * config/darwin9.h: Add.
4569 * doc/install.texi (Specific): Clarify darwin documentation.
4571 2006-11-16 Richard Earnshaw <rearnsha@arm.com>
4573 * arm.h (CONSTANT_ALIGNMENT): Don't over-align strings when
4574 optimizing for size.
4576 2006-11-16 Mike Stump <mrs@apple.com>
4578 * Makefile.in (targhooks.o): Add $(OPTABS_H).
4580 2006-11-16 Dirk Mueller <dmueller@suse.de>
4582 * tree-vrp.c (get_value_range): Use XCNEW instead
4584 (insert_range_assertions): Use XCNEWVEC instead
4585 of XNEWVEC and memset.
4586 (vrp_initialize): Same.
4587 (vrp_finalize): Same.
4588 * tree-ssa-ccp.c (ccp_initialize): Same.
4589 * predict.c (tree_bb_level_predictions): Same.
4590 * calls.c (expand_call): Same.
4591 * tree-ssa-copy.c (init_copy_prop): Same.
4592 (fini_copy_prop): Same.
4593 * tree-ssa-alias.c (get_ptr_info): Use GGC_CNEW instead
4594 of GGC_NEW and memset.
4596 2006-11-16 Eric Botcazou <ebotcazou@adacore.com>
4599 * gimplify.c (gimplify_expr): Only force a load for references to
4600 non-BLKmode volatile values.
4601 * doc/implement-c.texi (Qualifiers implementation): Document the
4602 interpretation of what a volatile access is.
4603 * doc/extend.texi (C++ Extensions): Rework same documentation.
4605 2006-11-16 Joseph Myers <joseph@codesourcery.com>
4607 * config/rs6000/spe.md (frob_di_df_2): Handle non-offsettable
4610 2006-11-16 Richard Earnshaw <rearnsha@arm.com>
4612 * arm.md (abssi2): Allow Thumb as well. Use an SImode scratch for
4614 (arm_neg_abssi2): Renamed from neg_abssi2.
4615 (thumb_abssi2, thumb_neg_abssi2): New patterns with splitters.
4617 2006-11-16 Uros Bizjak <ubizjak@gmail.com>
4619 * config/i386/i386.c (ix86_function_sseregparm): Fix comment:
4620 number of arguments passed to local functions in SSE registers is 3.
4622 * doc/invoke.texi (Function Attributes) [sseregparm]: Correct
4623 number of arguments passed in SSE registers to 3.
4625 2006-11-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
4628 * cfgrtl.c (rtl_delete_block): Move the code for getting last insn of
4630 (get_last_bb_insn): ... new global function.
4631 (basic_block.h): Declare it.
4632 * haifa-sched.c (create_recovery_block): Use it.
4634 2006-11-15 H.J. Lu <hongjiu.lu@intel.com>
4637 * real.c (mpfr_from_real): Call mpfr_set_str before gcc_assert.
4639 2006-11-15 Paul Brook <paul@codesourcery.com>
4641 * config/arm/unwind-arm.c (_Unwind_GetDataRelBase,
4642 _Unwind_GetTextRelBase): Move from here ...
4643 * config/arm/pr-support.c (_Unwind_GetDataRelBase,
4644 _Unwind_GetTextRelBase): ... To here.
4646 2006-11-15 Bernd Schmidt <bernd.schmidt@analog.com>
4648 * tree-ssa-loop-ivopts.c (get_address_cost): Make sure memory
4649 addresses we generate for testing are aligned.
4651 2006-11-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4654 * fold-const.c (fold_indirect_ref_1): Fold *&CONST_DECL down
4655 to what is the const decl is a place holder for.
4657 2006-11-15 Uros Bizjak <ubizjak@gmail.com>
4659 * config/i386/i386.opt: New target option -mx87regparm.
4661 * config/i386/i386.h (struct ix86_args): Add x87_nregs, x87_regno
4662 and float_in_x87 variables. mmx_words, sse_words: Remove.
4663 (X87_REGPARM_MAX): Define.
4665 * config/i386/i386.c (override_options): Error out for
4666 -mx87regparm but no 80387 support.
4667 (ix86_attribute_table): Add x87regparm.
4668 (ix86_handle_cconv_attribute): Update comments for x87regparm.
4669 (ix86_comp_type_attributes): Check for mismatched x87regparm types.
4670 (ix86_function_x87regparm): New function.
4671 (ix86_function_arg_regno_p): Add X87_REGPARM_MAX 80387 floating
4673 (init_cumulative_args): Initialize x87_nregs and float_in_x87
4675 (function_arg_advance): Process x87_nregs and x87_regno when
4676 floating point argument is to be passed in 80387 register.
4677 (function_arg): Pass XFmode arguments in 80387 registers for local
4678 functions. Pass SFmode and DFmode arguments to local functions
4679 in 80387 registers when flag_unsafe_math_optimizations is set.
4681 * reg-stack.c (convert_regs_entry): Disable NaN load for
4682 stack registers that are used for argument passing.
4684 * doc/extend.texi: Document x87regparm function attribute.
4685 * doc/invoke.texi: Document -mx87regparm.
4687 2006-11-15 Bernd Schmidt <bernd.schmidt@analog.com>
4689 * tree-flow.h (multiplier_allowed_in_address_p): Adjust prototype.
4690 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): New
4691 arg MODE; all callers changed. Use it to determine validity per
4692 machine mode instead of using Pmode for all memory references.
4693 (get_address_cost): Likewise add and use new arg MEM_MODE.
4695 2006-11-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
4696 J"orn Rennecke <joern.rennecke@st.com>
4698 * combine.c (likely_spilled_retval_1): Fix masking operation.
4699 (likely_spilled_retval_p): Use proper pattern for call to
4700 likely_spilled_retval_1.
4702 2006-11-15 Bernd Schmidt <bernd.schmidt@analog.com>
4704 * tree-ssa-loop-ivopts.c (determine_iv_costs): Fix formatting.
4706 * config/bfin/bfin.c (legitimize_pic_address): Lose dead code
4707 that tests for CONSTANT_POOL_ADDRESS_P.
4709 2006-11-15 Jakub Jelinek <jakub@redhat.com>
4711 PR tree-optimization/29581
4712 * lambda-code.c (replace_uses_equiv_to_x_with_y): Add YINIT,
4713 REPLACEMENTS, FIRSTBSI arguments. If initial condition or
4714 type is different between Y and USE, create a temporary
4715 variable, initialize it at the beginning of the body bb
4716 and use it as replacement instead of Y.
4718 2006-11-15 Paolo Bonzini <bonzini@gnu.org>
4721 * gimplify.c (fold_indirect_ref_rhs): Use
4722 STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS.
4724 2006-11-14 Richard Earnshaw <rearnsha@arm.com>
4726 * expmed.c (emit_store_flag_1): New function.
4727 (emit_store_flag): Call it. If we can't find a suitable scc insn,
4729 * expr.c (do_store_flag): If we can't find a scc insn, try cstore.
4730 Use do_compare_rtx_and_jump.
4731 * arm.h (BRANCH_COST): Increase to 2 on Thumb.
4732 * arm.md (cstoresi4): New define_expand.
4733 (cstoresi_eq0_thumb, cstoresi_ne0_thumb): Likewise.
4734 (cstoresi_eq0_thumb_insn, cstore_ne0_thumb_insn): New patterns.
4735 (cstoresi_nltu_thumb, thumb_addsi3_addgeu): New patterns.
4737 2006-11-14 Caroline Tice <ctice@apple.com>
4739 * dwarf2out.c (debug_pubtypes_section): New static global variable.
4740 (pubname_entry): Add DEF_VEC_O and DEF_VEC_ALLOC_O statements for
4742 (pubname_table): Redefine as a vector.
4743 (pubtype_table): New static global variable, defined as a vector.
4744 (pubname_table_allocated): Remove static global variable.
4745 (pubname_table_in_use): Remove static global variable.
4746 (PUBNAME_TABLE_INCREMENT): Remove constant.
4747 (size_of_pubnames): Add parameter to deal with either pubnames or
4748 pubtypes, and change code to deal with table being a vector.
4749 (add_pubname): Change to deal with table being a vector.
4750 (add_pubtype): New function.
4751 (output_pubnames): Add parameter to deal with either pubnames or
4752 pubtypes, and change code to deal with table being a vector.
4753 (gen_array_type_die): Add call to add_pubtype.
4754 (gen_enumeration_type_die): Add call to add_pubtype.
4755 (gen_struct_or_union_type_die): Add call to add_pubtype.
4756 (gen_subroutine_type_die): Add call to add_pubtype.
4757 (gen_typedef_die): Add call to add_pubtype.
4758 (dwarf2out_init): Add code to initialize pubname_table and
4759 pubtype_table vectors; also initialize debug_pubtypes_section.
4760 (prune_unused_types): Change to deal with pubnames being a vector.
4761 (dwarf2out_finish): Change to deal with pubnames being a vector; add
4762 pubnames table to call to output_pubnames; Add code to output pubtypes
4763 table if DEBUG_PUBTYPES_SECTION is defined.
4764 * config/darwin.c (darwin_file_start): Add DEBUG_PUBTYPES_SECTION to
4766 * config/darwin.h (DEBUG_PUBTYPES_SECTION): Define new global variable.
4768 2006-11-14 Joseph Myers <joseph@codesourcery.com>
4770 * config/arm/arm.h (FUNCTION_ARG_ADVANCE): Only adjust
4771 iwmmxt_nregs if TARGET_IWMMXT_ABI.
4772 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
4773 movv2si_internal): Support moves between core registers.
4775 2006-11-14 Eric Christopher <echristo@apple.com>
4777 * configure: Regenerate with autoconf 2.59.
4779 2006-11-14 Daniel Berlin <dberlin@dberlin.org>
4781 Fix PR tree-optimization/27755
4783 * tree-ssa-pre.c: Update comments.
4784 (bb_bitmap_sets): Add pa_in and deferred member.
4785 (BB_DEFERRED): New macro.
4786 (maximal_set): New variable.
4787 (pre_stats): Add pa_insert member.
4788 (bitmap_set_and): Short circuit orig == dest.
4789 (bitmap_set_subtract_values): New function.
4790 (bitmap_set_contains_expr): Ditto.
4791 (translate_vuses_through_block): Add phiblock argument.
4792 (dependent_clean): New function.
4793 (compute_antic_aux): Update for maximal_set changes.
4794 (compute_partial_antic_aux): New function.
4795 (compute_antic): Handle partial anticipation.
4796 (do_partial_partial_insertion): New function.
4797 (insert_aux): Handle partial anticipation.
4798 (add_to_sets): Add to maximal set.
4799 (compute_avail): Ditto.
4800 (init_pre): Initialize maximal_set.
4801 (execute_pre): Do partial anticipation if -O3+.
4803 2006-11-14 Paolo Bonzini <bonzini@gnu.org>
4805 PR rtl-optimization/29798
4807 * fwprop.c (use_killed_between): Check that DEF_INSN dominates
4808 TARGET_INSN before any other check.
4809 (fwprop_init): Always calculate dominators.
4810 (fwprop_done): Always free them.
4812 2006-11-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4814 * fold-const.c (fold_strip_sign_ops): Handle COMPOUND_EXPR and
4817 2006-11-13 DJ Delorie <dj@redhat.com>
4819 * config/m32c/m32c.c (m32c_prepare_shift): Use a separate
4820 temporary for intermediates.
4822 2006-11-13 Kaz Kojima <kkojima@gcc.gnu.org>
4824 * config/sh/sh.c (expand_cbranchdi4): Initialize skip_label.
4825 (sh_optimize_target_register_callee_saved): #if 0 the code
4826 using NOTE_INSN_LOOP_{BEG,END}.
4828 2006-11-13 Roger Sayle <roger@eyesopen.com>
4830 * fold-const.c (optimize_bit_field_compare): Recursively call
4831 fold when simplifying non-constant comparisons between bit-fields.
4833 2006-11-13 Jakub Jelinek <jakub@redhat.com>
4835 * configure.ac: Add changequote around __LONG_DOUBLE_MATH_OPTIONAL
4837 * configure: Rebuilt.
4839 2006-11-13 Andrew Pinski <andrew_pinski@playstation.sony.com>
4841 * config/rs6000/cell.md: New file.
4842 * config/rs6000/rs6000.c (rs6000_cell_dont_microcode): New
4844 (ppccell_cost): New cost matrix.
4845 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4846 (rs6000_override_options): Set rs6000_always_hint to false
4847 for cell. Also align functions/lables/loops to 8byte
4848 for the Cell. Use PROCESSOR_CELL.
4849 (rs6000_emit_epilogue): Rename using_mfcr_multiple to
4850 using_mtcr_multiple.
4851 (rs6000_variable_issue): If the insn is a nonpipelined instruction
4852 on the Cell, return 0.
4853 (rs6000_adjust_cost): Add Cell cost adjustments.
4854 (is_microcoded_insn): Return true for Cell microcoded
4856 (is_nonpipeline_insn): New function.
4857 (rs6000_issue_rate): Add PROCESSOR_CELL.
4858 (rs6000_use_sched_lookahead): If Cell, then we should look ahead 8
4860 (rs6000_use_sched_lookahead_guard): New function.
4861 (rs6000_sched_reorder): Reorder the ready list, if the second
4862 to last ready insn is a nonepipeline insn on the Cell.
4863 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_CELL.
4864 (ASM_CPU_SPEC): Add Cell.
4865 * config/rs6000/rs6000.md (cpu): Add Cell.
4866 (cell_micro): New Attr.
4869 2006-11-13 Jakub Jelinek <jakub@redhat.com>
4871 * configure.ac (ld_vers): Parse GNU ld version 2.17.50.0.3-6 20060715
4873 * configure: Rebuilt.
4875 2006-11-13 Richard Guenther <rguenther@suse.de>
4877 * config/i386/i386.c (ix86_expand_lround): Handle expand_simple_binop
4879 (ix86_expand_lfloorceil): Likewise.
4880 (ix86_expand_rint): Likewise.
4881 (ix86_expand_floorceildf_32): Likewise.
4882 (ix86_expand_floorceil): Likewise.
4883 (ix86_expand_rounddf_32): Likewise.
4884 (ix86_expand_truncdf_32): Likewise.
4885 (ix86_expand_round): Likewise.
4887 2006-11-13 Carlos O'Donell <carlos@codesourcery.com>
4888 Mark Mitchell <mark@codesourcery.com>
4890 * gcc.c: Organize search path variables into $prefix relative,
4891 and well-known native. Add comments.
4892 (add_sysrooted_prefix): Add comment.
4893 (process_command): If !gcc_exec_prefix add $prefix based paths.
4894 If *cross_compile == '0', add native well-known paths.
4895 Assert tooldir_base_prefix is always relative.
4896 (main): If print_search_dirs, and if gcc_exec_prefix is set,
4897 use this value for 'install:' path.
4898 * Makefile.in: Add GCC_EXEC_PREFIX to generated site.exp.
4900 2006-11-13 H.J. Lu <hongjiu.lu@intel.com>
4902 * config/i386/i386.c: Fix a typo in comment.
4904 2006-11-13 Michael Matz <matz@suse.de>
4906 * genemit.c (gen_expand): Allocate enough memory.
4908 2006-11-13 Joseph Myers <joseph@codesourcery.com>
4910 * config/arm/bpapi.h (TARGET_BPABI_CPP_BUILTINS): Define
4911 __GXX_TYPEINFO_EQUALITY_INLINE but not
4912 __GXX_MERGED_TYPEINFO_NAMES.
4913 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Define
4914 __GXX_MERGED_TYPEINFO_NAMES.
4915 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
4916 __GXX_TYPEINFO_EQUALITY_INLINE.
4918 2006-11-13 H.J. Lu <hongjiu.lu@intel.com>
4919 Zdenek Dvorak <dvorakz@suse.cz>
4921 PR tree-optimization/29680
4922 * tree-ssa-operands.c (access_can_touch_variable): Revert fix for
4925 2006-11-12 Jason Merrill <jason@redhat.com>
4926 Andrew Pinski <pinskia@physics.uc.edu>
4929 * gimplify.c (gimplify_init_constructor): Don't reduce TREE_CONSTANT
4931 * tree-cfg.c (verify_expr): Don't look into TREE_CONSTANT
4933 * expmed.c (make_tree): Handle CONST, SYMBOL_REF.
4934 * tree.c (build_vector): Handle non-_CST elements.
4936 2006-11-12 Kaz Kojima <kkojima@gcc.gnu.org>
4938 * genemit.c (gen_insn): Call gen_exp with a non-null used
4939 when handling multiple insns.
4940 (gen_expand): Likewise.
4941 * reorg.c (emit_delay_sequence): Copy the delay slot insn.
4942 * config/sh/sh.md (ashrsi2_31+1): Copy operands[0].
4943 (movsi_const_16bit+1): Copy operands[1].
4944 (call_pcrel): Copy the call_site pattern.
4945 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
4947 2006-11-12 Roger Sayle <roger@eyesopen.com>
4949 * fold-const.c (negate_expr_p) <PLUS_EXPR, MINUS_EXPR>: Correct/refine
4950 condition for transformations. Use !HONOR_SIGN_DEPENDENT_ROUNDING
4951 && !HONOR_SIGNED_ZEROS instead of flag_unsafe_math_optimizations.
4952 (fold_negate_expr) <PLUS_EXPR, MINUS_EXPR>: Likewise.
4954 2006-11-12 Daniel Berlin <dberlin@dberlin.org>
4956 Fix PR tree-optimization/29587
4957 * tree-ssa-structalias.c (process_constraint): Don't
4958 mark address taken due only to escaped vars constraint.
4960 2006-11-12 Michael Matz <matz@suse.de>
4961 Roger Sayle <roger@eyesopen.com>
4963 PR rtl-optimization/29797
4964 * ifcvt.c (noce_try_bitop): Correct calculation of bitnum on
4965 BITS_BIG_ENDIAN targets.
4967 2006-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4969 * builtins.c (fold_builtin_cosh): New.
4970 (fold_builtin_1): Use it.
4971 * fold-const.c (negate_mathfn_p): Add llround, lround, round,
4972 trunc to the list of "odd" functions. Also add llrint, lrint,
4973 rint and nearbyint when flag_rounding_math is false.
4975 2006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4977 * tree-flow.h (name_mappings_registered_p): Declare.
4978 * tree-into-ssa.c (name_mappings_registered_p): New function.
4979 * tree-cfg.c (tree_can_merge_blocks_p): Check
4980 name_mappings_registered_p instead of need_ssa_update_p.
4982 2006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4984 * tree-ssa-loop.c (tree_vectorize): Return the result of
4986 * tree-vectorizer.c (vectorize_loops): Return TODO_cleanup_cfg
4987 if anything changed.
4988 * tree-vectorizer.h (vectorize_loops): Declaration removed.
4989 * tree-flow.h (vectorize_loops): Declaration changed.
4991 2006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
4993 * tree-ssa-loop-prefetch.c (schedule_prefetches): Cleanup and improve
4995 (issue_prefetch_ref): Move assignment to write_p out of loop.
4996 (determine_unroll_factor): Do not take PARAM_MAX_UNROLL_TIMES and
4997 SIMULTANEOUS_PREFETCHES into account.
4998 (loop_prefetch_arrays): Do not pass ahead to determine_unroll_factor.
4999 * lambda-code.c (lcm): Renamed to ...
5000 (least_common_multiple): ... and exported.
5001 * tree-flow.h (least_common_multiple): Declare.
5003 2006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
5005 * Makefile.in (tree-data-ref.o): Add langhooks.h dependency.
5006 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Follow
5007 ud-chains. Handle AND_EXPR.
5008 (record_estimate): Record whether the estimate is realistic
5009 and whether it is derived from a loop exit.
5010 (record_nonwrapping_iv, idx_infer_loop_bounds, infer_loop_bounds_from_ref,
5011 infer_loop_bounds_from_array, infer_loop_bounds_from_signedness): New
5013 (compute_estimated_nb_iterations): Take only realistic bounds into
5014 account. Set estimate_state. Use double_ints.
5015 (infer_loop_bounds_from_undefined): Call infer_loop_bounds_from_array
5016 and infer_loop_bounds_from_signedness. Do not consider basic blocks
5017 that do not have to be always executed.
5018 (estimate_numbers_of_iterations_loop): Set estimate_state, and use it
5019 to determine whether to call infer_loop_bounds_from_undefined
5020 and compute_estimated_nb_iterations.
5021 (n_of_executions_at_most): Use double_ints.
5022 (free_numbers_of_iterations_estimates_loop): Set estimate_state.
5023 (substitute_in_loop_info): Do not replace in estimated_nb_iterations.
5024 * double-int.c (double_int_to_tree): Improve comment.
5025 (double_int_fits_to_tree_p): New function.
5026 * double-int.h (double_int_fits_to_tree_p): Declare.
5027 * tree-data-ref.c: Include langhooks.h.
5028 (estimate_niter_from_size_of_data, estimate_iters_using_array): Removed.
5029 (analyze_array_indexes): Do not call estimate_niter_from_size_of_data.
5030 (analyze_array): Do not pass estimate_only argument to
5031 analyze_array_indexes.
5032 (get_number_of_iters_for_loop): Build tree from the stored double_int
5034 (get_references_in_stmt, find_data_references_in_stmt): New functions.
5035 (find_data_references_in_loop): Use find_data_references_in_stmt.
5036 * tree-data-ref.h (struct data_ref_loc_d): New.
5037 (get_references_in_stmt): Declare.
5038 (estimate_iters_using_array): Declaration removed.
5039 * cfgloop.h (struct nb_iter_bound): Change type of bound to
5040 double_int. Improve comments. Add is_exit and realistic
5042 (struct loop): Changed type of estimated_nb_iterations to double_int.
5043 Added estimate_state field.
5044 (record_estimate): Declaration removed.
5046 2006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
5048 * params.c (set_param_value): Initialize the "set" field.
5049 * params.h (struct param_info): Add "set" field.
5050 (PARAM_SET_P): New macro.
5051 (PREFETCH_LATENCY, SIMULTANEOUS_PREFETCHES, L1_CACHE_SIZE,
5052 L1_CACHE_LINE_SIZE): New macros.
5053 * toplev.c (DEFPARAM): Initialize the "set" field.
5054 * tree-ssa-loop-prefetch.c (PREFETCH_LATENCY,
5055 SIMULTANEOUS_PREFETCHES): Removed.
5056 (PREFETCH_BLOCK): Use L1_CACHE_LINE_SIZE.
5057 (tree_ssa_prefetch_arrays): Dump the values of the parameters.
5058 * config/sparc/sparc.c: Include params.h.
5059 (sparc_override_options): Set SIMULTANEOUS_PREFETCHES and
5060 L1_CACHE_LINE_SIZE parameters.
5061 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5063 * config/i386/i386.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5065 * config/i386/i386.c: Include params.h.
5066 (k8_cost): Change default value for SIMULTANEOUS_PREFETCHES.
5067 (override_options): Set SIMULTANEOUS_PREFETCHES and
5068 L1_CACHE_LINE_SIZE parameters.
5069 * config/sh/sh.h (SIMULTANEOUS_PREFETCHES): Removed.
5070 (OPTIMIZATION_OPTIONS): Set SIMULTANEOUS_PREFETCHES and
5071 L1_CACHE_LINE_SIZE parameters.
5072 * config/ia64/ia64.c (ia64_optimization_options): Set
5073 SIMULTANEOUS_PREFETCHES and L1_CACHE_LINE_SIZE parameters.
5074 * config/ia64/ia64.h (SIMULTANEOUS_PREFETCHES, PREFETCH_BLOCK):
5076 * params.def (PARAM_PREFETCH_LATENCY, PARAM_SIMULTANEOUS_PREFETCHES,
5077 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE): New params.
5078 * doc/invoke.texi: Document new params.
5080 2006-11-12 Roger Sayle <roger@eyesopen.com>
5082 PR tree-optimization/13827
5083 * fold-const.c (fold_binary) <EQ_EXPR, NE_EXPR>: Fold (X&C) op (Y&C)
5086 2006-11-12 Zdenek Dvorak <dvorakz@suse.cz>
5088 * cfgloopmanip.c (update_single_exit_for_duplicated_loop,
5089 update_single_exit_for_duplicated_loops): New functions.
5090 (duplicate_loop_to_header_edge): Use
5091 update_single_exit_for_duplicated_loops.
5092 * tree-ssa-loop-manip.c (tree_unroll_loop): Call verification
5093 functions only with ENABLE_CHECKING.
5095 2006-11-12 Andreas Schwab <schwab@suse.de>
5097 * except.c (sjlj_emit_function_enter): Remove unused variable.
5099 2006-11-11 Roger Sayle <roger@eyesopen.com>
5101 * fold-const.c (int_binop_types_match_p): New function.
5102 (size_binop): Relax constraint that both arguments must both have
5103 exactly the same sizetype type. Instead use int_binop_types_match_p.
5104 (size_diffop): Likewise.
5106 (make_range): Use build_int_cst instead of fold_convert.
5107 (fold_cond_expr_with_comparison): Use build_int_cst to construct
5108 integer constants of the correct type.
5109 (fold_div_compare): Likewise.
5110 (fold_single_bit_test): Likewise.
5111 (fold_binary): Likewise.
5112 * stor-layout.c (layout_type) <VECTOR_TYPE>: Ensure that TYPE_SIZE
5113 has type bitsizetype and TYPE_SIZE_UNIT has type sizetype.
5115 2006-11-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
5118 * alias.c (fixed_scalar_and_varying_struct_p): Don't return a
5119 non null value if the struct memory access is in the 0th
5122 2006-11-12 Jie Zhang <jie.zhang@analog.com>
5125 2006-11-11 Jie Zhang <jie.zhang@analog.com>
5126 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __bfin__
5129 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Use builtin_define_std
5130 instead of builtin_define for bfin and BFIN.
5132 2006-11-11 Jie Zhang <jie.zhang@analog.com>
5134 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __bfin__
5137 2006-11-11 Jan Hubicka <jh@suse.cz>
5139 * extend.texi (__builtin_expect): We no longer require second argument
5141 * gengtype.c (adjust_field_rtx_def): Drop NOTE_INSN_EXPECTED_VALUE.
5142 * builtins.c (expand_builtin_expect): Simplify.
5143 (expand_builtin_expect_jump): Kill.
5144 * final.c (final_scan_insn): Do not skip the removed notes.
5145 * insn-notes.def (LOOP_BEG, LOOP_END, REPEATED_LINE_NUMBER,
5146 EXPECTED_VALUE): Remove.
5147 * dojump.c (do_jump): Do not care about __builtin_expect.
5148 * predict.c (expected_value_to_br_prob): Kill.
5149 * function.c (expand_function_end): Do not expand
5150 NOTE_INSN_REPEATED_LINE_NUMBER.
5151 * print-rtl.c (print_rtx): Do not pretty print the removed notes.
5152 * expect.c (sjlj_emit_function_enter): Emit directly branch probability.
5153 * cfgexpand.c (add_reg_br_prob_note): Export.
5154 * cfgcleanup.c (rest_of_handle_jump2): Do not call
5155 expected_value_to_br_prob.
5156 * cfglayout.c (duplicate_insn_chain): Do not deal with removed notes.
5157 * rtl.h (add_reg_br_prob_note): Declare.
5159 2006-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5161 * tree-pretty-print.c (dump_generic_node): Print sign of Inf.
5163 2006-11-11 Jan Hubicka <jh@suse.cz>
5165 * predict.c (predict_loops): Kill RTL variant.
5167 2006-11-11 Jan Hubicka <jh@suse.cz>
5169 * tree-pass.h (pass_purge_lineno_notes): Remove declaration.
5170 * modulo-sched.c (find_line_note): Remove.
5171 (loop_canon_p): Do not worry about line number notes.
5172 (sms_schedule): Likewise.
5173 * cse.c (cse_main): Likewise.
5174 * regmove.c (fixup_match_1): Likewise
5175 * function.c (emit_return_info_block): Likewise.
5176 (expand_function_end): Likewise.
5177 (thread_prologue_an_epilogue_insns): Likewise.
5178 * cfgrtl.c (try_redirect_by_replacing_jump, rtl_tidy_fallthru_edge):
5180 * emit-rtl.c (find_line_note, emit_insn_after_with_line_notes,
5181 emit_note_copy_after): Kill.
5182 (emit_note_copy): Do not worry about line numbers.
5183 * jump.c (purge_line_number_notes): Kill.
5184 (pass_purge_lineno_notes): Kill.
5185 * cfgcleanup.c (rest_of_handle_jump2): Kill purge_line_number_notes
5187 * rtl.h (emit_note_copy_after, emit_insn_after_with_line_notes): Kill.
5188 * passes.c (init_optimization_passes): Don't purge_lineno_notes.
5189 * sched-ebb.c (schedule_ebbs): Don't do rm_redundant_line_notes.
5190 * tree-pass.h (pass_purge_lineno_notes): Kill.
5191 * sched-ebb.c (schedule_ebb): Don't rm_line_notes,
5192 rm_redundant_line_notes.
5193 * sched-rgb.c (schedule_region): Don't rm_line_notes,
5194 rm_redundant_line_notes.
5195 * sched-int.h (rm_line_notes, rm_redundant_line_notes): Kill.
5196 * haifa-sched.c: Update comment about handling notes.
5197 (unlink_line_notes): Kill.
5198 (rm_line_notes): Kill.
5199 (save_line_notes): Simplify.
5200 (rm_redundant_line_notes): Kill.
5202 2006-11-11 Richard Guenther <rguenther@suse.de>
5204 * tree.def (FIX_CEIL_EXPR, FIX_FLOOR_EXPR, FIX_ROUND_EXPR):
5205 Remove unused tree codes.
5206 * tree-vrp.c (extract_range_from_unary_expr): Remove handling
5207 of FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
5208 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5209 * tree.c (stabilize_reference): Likewise.
5210 * fold-const.c (fold_convert_const_int_from_real, operand_equal_p,
5211 fold_unary): Likewise.
5212 * tree-gimple.c (is_gimple_cast): Likewise.
5213 * dwarf2out.c (loc_descriptor_from_tree_1): Likewise.
5214 * expr.c (expand_expr_real_1): Likewise.
5215 * tree-eh.c (tree_could_trap_p): Likewise.
5216 * gimplify.c (gimplify_expr): Likewise.
5217 * tree-inline.c (estimate_num_insns_1): Likewise.
5218 * tree-cfg.c (verify_expr): Likewise.
5220 2006-11-11 Zdenek Dvorak <dvorakz@suse.cz>
5222 * tree-ssa-loop.c (pass_loop_prefetch): Change name to aprefetch.
5223 * tree-ssa-loop-prefetch.c (dump_mem_ref): Fix target file.
5224 (tree_ssa_prefetch_arrays): Do not dump for removed loops.
5226 2006-11-11 Richard Sandiford <richard@codesourcery.com>
5229 * stmt.c (expand_asm_operands): Use EXPAND_INITIALIZER if the
5230 constraints accept neither registers or memories.
5232 2006-11-11 Jie Zhang <jie.zhang@analog.com>
5234 * config/bfin/bfin.h (FUNCTION_PROFILER): Don't use LABELNO.
5235 (NO_PROFILE_COUNTERS): Define as 1.
5237 2006-11-10 Roger Sayle <roger@eyesopen.com>
5239 * fold-const.c (operand_equal_p) <INTEGER_CST, REAL_CST, VECTOR_CST>:
5240 Don't check for TREE_CONSTANT_OVERFLOW when comparing constants.
5242 2006-11-10 Peter Bergner <bergner@vnet.ibm.com>
5244 * rtl.h (MEM_COPY_ATTRIBUTES): Copy MEM_POINTER.
5246 2006-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5248 * builtins.c (fold_builtin_cos): Use fold_strip_sign_ops().
5249 (fold_builtin_hypot): Likewise.
5250 * fold-const.c (fold_strip_sign_ops): Handle "odd" builtins.
5252 * fold-const.c (negate_mathfn_p): Add BUILT_IN_ERF.
5254 2006-11-10 Roger Sayle <roger@eyesopen.com>
5256 * tree.c (build_int_cst_wide): Add an assertion (gcc_unreachable)
5257 when attempting to build INTEGER_CSTs of non-integral types.
5258 * expmed.c (make_tree): Use the correct type, i.e. the inner
5259 type, when constructing the individual elements of a CONST_VECTOR.
5261 2006-11-10 Jan Hubicka <jh@suse.cz>
5263 * cse.c (cse_process_notes): Copy the propagated value.
5264 * local-alloc.c (update_equiv_regs): Copy the memory RTX to be used
5266 * gcse.c (try_replace_reg): Copy the replacement.
5267 * i386.c (emit_i387_cw_initialization): Copy stored_mode.
5268 (assign_386_stack_local): Always return copied memory expression
5269 * function.c (instantiate_virtual_regs_in_insn): Copy the operand
5272 2006-11-10 Jan Hubicka <jh@suse.cz>
5274 * final.c (final): Walk from first instruction.
5275 * cfglayout.c (insn_locators_initialize): Remove line number notes.
5277 2006-11-10 Uros Bizjak <ubizjak@gmail.com>
5280 * config/i386/sse.md (smulv8hi3_highpart): Change from define_insn
5282 (umulv8hi3_highpart): Ditto.
5283 (vec_widen_smult_hi_v8hi): New expander.
5284 (vec_widen_smult_lo_v8hi): Ditto.
5286 2006-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5289 * builtins.c (do_mpfr_arg3): New.
5290 (fold_builtin_1): Handle builtins fma, fmin and fmax.
5292 2006-11-09 Eric Christopher <echristo@apple.com>
5297 * configure.ac: Match powerpc*-*-darwin* for powerpc darwin checks.
5298 * config.gcc (powerpc64-*-darwin*): New target.
5299 * config.host: Ditto.
5300 * config/rs6000/darwin64.h: New file.
5301 * config/rs6000/x-darwin64: Ditto.
5302 * config/rs6000/host-ppc64-darwin.c: Ditto.
5304 2006-11-09 Steve Ellcey <sje@cup.hp.com>
5306 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Use HP-UX millicode
5307 routines for integer division.
5309 2006-11-09 Daniel Jacobowitz <dan@codesourcery.com>
5311 * config/arm/t-linux (LIBGCC2_DEBUG_CFLAGS): Delete.
5313 2006-11-09 Serge Belyshev <belyshev@depni.sinp.msu.ru>
5316 * fold-const.c (fold_binary) <EQ_EXPR>: Fix typo in variable name.
5318 2006-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
5320 * simplify-rtx.c (avoid_constant_pool_reference): Avoid calling
5321 simplify_subreg with BLKmode outer mode.
5323 2006-11-08 Brooks Moses <brooks.moses@codesourcery.com>
5325 * doc/invoke.texi: Minor formatting fixes in option lists.
5327 2006-11-08 Zdenek Dvorak <dvorakz@suse.cz>
5329 PR tree-optimization/29738
5330 * tree-ssa-ccp.c: Remove UNKNOWN_VAL from comments.
5331 (ccp_lattice_t): Remove UNKNOWN_VAL.
5332 (dump_lattice_value, ccp_lattice_meet, ccp_visit_phi_node):
5333 Do not handle UNKNOWN_VAL.
5334 (get_default_value): Set initial value of virtual operands to
5336 (get_value): Always use get_default_value on uninitialized
5338 (set_value_varying, surely_varying_stmt_p): New functions.
5339 (set_lattice_value): Do not pass argument to get_value.
5340 Do not handle UNKNOWN_VAL.
5341 (likely_value): Follow the semantics described in the comment.
5342 (ccp_initialize): Use surely_varying_stmt_p. Do not mark
5343 phi nodes DONT_SIMULATE_AGAIN.
5344 (ccp_fold): Do not pass argument to get_value.
5345 (fold_const_aggregate_ref, visit_assignment): Ditto. Do not
5348 2006-11-08 Andrew Pinski <Andrew_Pinski@playstation.sony.com>
5350 * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
5351 HOST_WIDE_INT_PRINT_DOUBLE_HEX instead of format buffer.
5353 2006-11-08 Roger Sayle <roger@eyesopen.com>
5355 * tree-ssa-propagate.c (set_rhs): Restructure validity tests as a
5356 test for inclusion rather than as a test for exclusion.
5357 * tree-ssa-ccp.c (fold_stmt_r) <COND_EXPR>: Use set_rhs to modify
5358 the condition after calling fold_binary.
5359 * fold-const.c (fold_inf_compare): Remove in_gimple_form check.
5360 (fold_binary) <LT_EXPR, GT_EXPR, LE_EXPR, GE_EXPR>: Likewise.
5361 * builtins.c (fold_builtin_isascii): Likewise.
5362 (fold_builtin_isdigit): Likewise.
5364 2006-11-08 Carlos O'Donell <carlos@codesourcery.com>
5366 * configure.ac: Do not set PREFIX_INCLUDE_DIR if $prefix is NONE.
5367 * configure: Regenerate.
5369 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5371 * tree-vect-analyze.c (vect_mark_relevant, vect_stmt_relevant_p): Take
5372 enum argument instead of bool.
5373 (vect_analyze_operations): Call vectorizable_type_promotion.
5374 * tree-vectorizer.h (type_promotion_vec_info_type): New enum
5375 stmt_vec_info_type value.
5376 (supportable_widening_operation, vectorizable_type_promotion): New
5377 function declarations.
5378 * tree-vect-transform.c (vect_gen_widened_results_half): New function.
5379 (vectorizable_type_promotion): New function.
5380 (vect_transform_stmt): Call vectorizable_type_promotion.
5381 * tree-vect-analyze.c (supportable_widening_operation): New function.
5382 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
5384 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
5387 * tree.def (VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR):
5388 (VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR): New tree-codes.
5389 * tree-inline.c (estimate_num_insns_1): Add cases for above new
5391 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5392 * expr.c (expand_expr_real_1): Likewise.
5393 * optabs.c (optab_for_tree_code): Likewise.
5394 (init_optabs): Initialize new optabs.
5395 * genopinit.c (vec_widen_umult_hi_optab, vec_widen_smult_hi_optab,
5396 vec_widen_smult_hi_optab, vec_widen_smult_lo_optab,
5397 vec_unpacks_hi_optab, vec_unpacks_lo_optab, vec_unpacku_hi_optab,
5398 vec_unpacku_lo_optab): Initialize new optabs.
5399 * optabs.h (OTI_vec_widen_umult_hi, OTI_vec_widen_umult_lo):
5400 (OTI_vec_widen_smult_h, OTI_vec_widen_smult_lo, OTI_vec_unpacks_hi,
5401 OTI_vec_unpacks_lo, OTI_vec_unpacku_hi, OTI_vec_unpacku_lo): New
5403 (vec_widen_umult_hi_optab, vec_widen_umult_lo_optab):
5404 (vec_widen_smult_hi_optab, vec_widen_smult_lo_optab):
5405 (vec_unpacks_hi_optab, vec_unpacku_hi_optab, vec_unpacks_lo_optab):
5406 (vec_unpacku_lo_optab): New optabs.
5407 * doc/md.texi (vec_unpacks_hi, vec_unpacks_lo, vec_unpacku_hi):
5408 (vec_unpacku_lo, vec_widen_umult_hi, vec_widen_umult_lo):
5409 (vec_widen_smult_hi, vec_widen_smult_lo): New.
5410 * doc/c-tree.texi (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR):
5411 (VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR, VEC_UNPACK_HI_EXPR):
5412 (VEC_UNPACK_LO_EXPR, VEC_PACK_MOD_EXPR, VEC_PACK_SAT_EXPR): New.
5414 * config/rs6000/altivec.md (UNSPEC_VMULWHUB, UNSPEC_VMULWLUB):
5415 (UNSPEC_VMULWHSB, UNSPEC_VMULWLSB, UNSPEC_VMULWHUH, UNSPEC_VMULWLUH):
5416 (UNSPEC_VMULWHSH, UNSPEC_VMULWLSH): New.
5417 (UNSPEC_VPERMSI, UNSPEC_VPERMHI): New.
5418 (vec_vperm_v8hiv4si, vec_vperm_v16qiv8hi): New patterns used to
5419 implement the unsigned unpacking patterns.
5420 (vec_unpacks_hi_v16qi, vec_unpacks_hi_v8hi, vec_unpacks_lo_v16qi):
5421 (vec_unpacks_lo_v8hi): New signed unpacking patterns.
5422 (vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi):
5423 (vec_unpacku_lo_v8hi): New unsigned unpacking patterns.
5424 (vec_widen_umult_hi_v16qi, vec_widen_umult_lo_v16qi):
5425 (vec_widen_smult_hi_v16qi, vec_widen_smult_lo_v16qi):
5426 (vec_widen_umult_hi_v8hi, vec_widen_umult_lo_v8hi):
5427 (vec_widen_smult_hi_v8hi, vec_widen_smult_lo_v8hi): New widening
5428 multiplication patterns.
5430 * target.h (builtin_mul_widen_even, builtin_mul_widen_odd): New.
5431 * target-def.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN):
5432 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5433 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): New.
5434 (rs6000_builtin_mul_widen_odd): New.
5435 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Defined.
5436 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Defined.
5437 * tree-vectorizer.h (enum vect_relevant): New enum type.
5438 (_stmt_vec_info): Field relevant chaned from bool to enum
5440 (STMT_VINFO_RELEVANT_P): Updated.
5441 (STMT_VINFO_RELEVANT): New.
5442 * tree-vectorizer.c (new_stmt_vec_info): Use STMT_VINFO_RELEVANT
5443 instead of STMT_VINFO_RELEVANT_P.
5444 * tree-vect-analyze.c (vect_mark_relevant, vect_stmt_relevant_p):
5445 Replace calls to STMT_VINFO_RELEVANT_P with STMT_VINFO_RELEVANT,
5446 and boolean variable with enum vect_relevant.
5447 (vect_mark_stmts_to_be_vectorized): Likewise + update documentation.
5448 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
5449 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5451 2006-11-08 Richard Henderson <rth@redhat.com>
5453 * config/i386/sse.md (vec_widen_umult_hi_v8hi,
5454 vec_widen_umult_lo_v8hi): New.
5455 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si,
5456 vec_widen_umult_hi_v4si, vec_widen_umult_lo_v4si): New.
5458 * config/i386/i386.c (ix86_expand_sse_unpack): New.
5459 * config/i386/i386-protos.h (ix86_expand_sse_unpack): New.
5460 * config/i386/sse.md (vec_unpacku_hi_v16qi, vec_unpacks_hi_v16qi,
5461 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi, vec_unpacku_hi_v8hi,
5462 vec_unpacks_hi_v8hi, vec_unpacku_lo_v8hi, vec_unpacks_lo_v8hi,
5463 vec_unpacku_hi_v4si, vec_unpacks_hi_v4si, vec_unpacku_lo_v4si,
5464 vec_unpacks_lo_v4si): New.
5466 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5468 * tree-vect-transform.c (vectorizable_type_demotion): New function.
5469 (vect_transform_stmt): Add case for type_demotion_vec_info_type.
5470 (vect_analyze_operations): Call vectorizable_type_demotion.
5471 * tree-vectorizer.h (type_demotion_vec_info_type): New enum
5472 stmt_vec_info_type value.
5473 (vectorizable_type_demotion): New function declaration.
5474 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
5477 * tree.def (VEC_PACK_MOD_EXPR, VEC_PACK_SAT_EXPR): New tree-codes.
5478 * expr.c (expand_expr_real_1): Add case for VEC_PACK_MOD_EXPR and
5480 * tree-iniline.c (estimate_num_insns_1): Likewise.
5481 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5482 * optabs.c (optab_for_tree_code): Likewise.
5484 * optabs.c (expand_binop): In case of vec_pack_*_optabs the mode
5485 compared against the predicate of the result is not 'mode' (the input
5486 to the function) but a mode with half the size of 'mode'.
5487 (init_optab): Initialize new optabs.
5488 * optabs.h (OTI_vec_pack_mod, OTI_vec_pack_ssat, OTI_vec_pack_usat):
5490 (vec_pack_mod_optab, vec_pack_ssat_optab, vec_pack_usat_optab): New
5492 * genopinit.c (vec_pack_mod_optab, vec_pack_ssat_optab):
5493 (vec_pack_usat_optab): Initialize new optabs.
5494 * doc/md.texi (vec_pack_mod, vec_pack_ssat, vec_pack_usat): New.
5495 * config/rs6000/altivec.md (vec_pack_mod_v8hi, vec_pack_mod_v4si): New.
5497 2006-11-08 Richard Henderson <rth@redehat.com>
5499 * config/i386/sse.md (vec_pack_mod_v8hi, vec_pack_mod_v4si):
5500 (vec_pack_mod_v2di, vec_interleave_highv16qi, vec_interleave_lowv16qi):
5501 (vec_interleave_highv8hi, vec_interleave_lowv8hi):
5502 (vec_interleave_highv4si, vec_interleave_lowv4si):
5503 (vec_interleave_highv2di, vec_interleave_lowv2di): New.
5505 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5507 * tree-vect-transform.c (vectorizable_reduction): Support multiple
5509 (vect_transform_stmt): Removed redundant code.
5511 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5513 * tree-vect-transform.c (vectorizable_operation): Support multiple
5516 2006-11-08 Dorit Nuzman <dorit@il.ibm.com>
5518 * tree-vect-transform.c (vect_align_data_ref): Removed.
5519 (vect_create_data_ref_ptr): Added additional argument - ptr_incr.
5520 Updated function documentation. Return the increment stmt in ptr_incr.
5521 (bump_vector_ptr): New function.
5522 (vect_get_vec_def_for_stmt_copy): New function.
5523 (vect_finish_stmt_generation): Create a stmt_info to newly created
5525 (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
5527 (vectorizable_reduction, vectorizable_assignment): Not supported yet if
5528 VF is greater than the number of elements that can fit in one vector
5530 (vectorizable_operation, vectorizable_condition): Likewise.
5531 (vectorizable_store, vectorizable_load): Support the case that the VF
5532 is greater than the number of elements that can fit in one vector word.
5533 (vect_transform_loop): Don't fail in case of multiple data-types.
5534 * tree-vect-analyze.c (vect_determine_vectorization_factor): Don't fail
5535 in case of multiple data-types; the smallest type determines the VF.
5536 (vect_analyze_data_ref_dependence): Don't record datarefs as same_align
5537 if they are of different sizes.
5538 (vect_update_misalignment_for_peel): Compare misalignments in terms of
5539 number of elements rather than number of bytes.
5540 (vect_enhance_data_refs_alignment): Fix/Add dump printouts.
5541 (vect_can_advance_ivs_p): Fix a dump printout
5543 2006-11-07 Eric Christopher <echristo@apple.com>
5545 * libgcc2.c (__bswapdi2): Rename from bswapDI2.
5546 (__bswapsi2): Ditto.
5547 * libgcc2.h: Remove transformation of bswap routines.
5548 * config/i386/i386.md (bswapsi2): New.
5551 2006-11-07 Jakub Jelinek <jakub@redhat.com>
5553 * c-common.c (c_common_attributes): Add gnu_inline attribyte.
5554 (handle_gnu_inline_attribute): New function.
5555 * c-decl.c (diagnose_mismatched_decls): Handle gnu_inline attribute.
5556 (merge_decls, start_decl, start_function): Likewise.
5557 * doc/extend.texi: Document gnu_inline attribute.
5559 2006-11-07 Steve Ellcey <sje@cup.hp.com>
5562 * config/ia64/t-hpux (LIB1ASMFUNCS): Filter out _fixtfdi,
5563 _fixunstfdi, and _floatditf
5565 2006-11-06 Anatoly Sokolov <aesok@post.ru>
5567 * config/avr/avr-protos.h (mask_one_bit_p, const_int_pow2_p): Remove
5569 * config/avr/avr.c (mask_one_bit_p, const_int_pow2_p): Remove.
5570 (output_movhi, ashlhi3_out, ashlsi3_out, ashrhi3_out, ashrsi3_out,
5571 lshrhi3_out, lshrsi3_out): Remove unnecessary code for handling value
5572 which start in an odd register.
5574 2006-11-07 Richard Sandiford <richard@codesourcery.com>
5576 * config/mips/mips.h (ISA_HAS_PREFETCHX): Fix typo.
5578 2006-11-07 Josh Conner <jconner@apple.com>
5580 * doc/invoke.texi (fstrict-aliasing): Move implementation
5582 * doc/tree-ssa.texi (Alias analysis): ...here.
5584 2006-11-07 Richard Guenther <rguenther@suse.de>
5586 PR tree-optimization/29610
5587 * tree-cfgcleanup.c (cleanup_control_flow): Honor return value
5588 of tree_purge_dead_eh_edges as it may free dominators.
5590 * g++.dg/other/pr29610.C: New testcase.
5592 2006-11-07 David Ung <davidu@mips.com>
5594 * config/mips/mips.c (mips_rtx_cost_optimize_size): New table of
5595 costs when optimizing for size.
5596 (override_options): Use mips_rtx_cost_optimize_size table for cost
5599 2006-11-07 Jie Zhang <jie.zhang@analog.com>
5601 * gcc.c (process_command): Treat -b as normal switch if its argument
5604 2006-11-07 David Ung <davidu@mips.com>
5606 * config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the
5609 2006-11-06 Eric Christopher <echristo@apple.com>
5611 * config.gcc: Add x86_64-darwin host support.
5612 * config.host: Ditto.
5613 * config/i386/darwin64.h: New file.
5614 * config/i386/t-darwin64: Ditto.
5616 2006-11-06 Janis Johnson <janis187@us.ibm.com>
5618 * gcc/doc/sourcebuild.texi (Test Directives): Add output-exists
5619 and output-exists-not.
5621 2006-11-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
5624 * tree-vrp.c (vrp_int_const_binop): Use the correct tree when
5625 checking for overflow.
5627 2006-11-06 Jan van Dijk <jan@etpmod.phys.tue.nl>
5629 * configure.ac: Fixed typo in case statement: :: changed to ;;
5631 2006-11-06 Bob Wilson <bob.wilson@acm.org>
5633 * longlong.h (__xtensa__): Add definitions for umul_ppmm, __umulsidi3,
5634 count_leading_zeros, and count_trailing_zeros.
5635 * config/xtensa/xtensa.c (TARGET_INIT_BUILTINS): Define.
5636 (TARGET_FOLD_BUILTIN): Define.
5637 (TARGET_EXPAND_BUILTIN): Define.
5638 (xtensa_init_builtins): New.
5639 (xtensa_fold_builtin): New.
5640 (xtensa_expand_builtin): New.
5641 (xtensa_rtx_costs): Add CTZ and CLZ. Adjust costs for MULT.
5642 * config/xtensa/xtensa.h (TARGET_MUL32_HIGH): Define.
5643 (CLZ_DEFINED_VALUE_AT_ZERO): Define.
5644 (CTZ_DEFINED_VALUE_AT_ZERO): Define.
5645 * config/xtensa/xtensa.md (UNSPEC_NSAU): Remove.
5646 (any_extend): New code macro.
5647 (u, su): New code attributes.
5648 (<u>mulsidi3, <u>mulsi3_highpart, clzsi2, ctzsi2): New.
5649 (nsau): Remove; replaced by clzsi2.
5650 (ffssi2): Use clzsi2.
5651 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add _umulsidi3,
5652 _clzsi2, _ctzsi2, and _ffssi2. Rename _nsau to _clz.
5653 * config/xtensa/lib1funcs.asm (__mulsi3): Support Mul32 option.
5654 (__umulsidi3, __clzsi2, __ctzsi2, __ffssi2): New.
5655 (__nsau_data): Guard with ifdef L_clz instead of L_nsau.
5657 2006-11-06 Vladimir Prus <vladimir@codesourcery.com>
5659 * config/arm/t-strongarm-pe: (TARGET_LIBGCC2_CFLAGS): Do no
5661 * config/arm/t-strongarm-elf: Likewise.
5662 * config/arm/t-pe: Likewise.
5663 * config/arm/t-arm-elf: Likewise.
5664 * config/arm/t-xscale-elf: Likewise.
5665 * config/arm/t-arm-coff: Likewise.
5666 * config/arm/t-xscale-coff: Likewise.
5667 * config/arm/t-wince-pe: Likewise.
5669 2006-11-05 Kaz Kojima <kkojima@gcc.gnu.org>
5671 * config/sh/lib1funcs-4-300.asm: Guard entire file with
5674 2006-11-05 Jakub Jelinek <jakub@redhat.com>
5677 * fold-const.c (fold_ternary): Fix A < 0 ? <sign bit of A> : 0
5680 2006-11-04 Uros Bizjak <ubizjak@gmail.com>
5683 * config/i386/i386.c (standard_80387_constant_p): Treat -0.0 and -1.0
5684 as a valid 80387 constant.
5685 (standard_80387_constant_opcode): Return "#" for -0.0 and -1.0.
5686 * config/i386/i386.md (unnamed splitter): Split the load of
5687 constant -0.0 or -1.0 into the load of 0.0 or 1.0, followed
5690 2006-11-04 Richard Earnshaw <rearnsha@arm.com>
5692 * arm.c (thumb_legitimate_addres_p): Allow any constant offset
5693 from the soft-frame, argument and virtual registers.
5695 2006-11-04 Uros Bizjak <ubizjak@gmail.com>
5697 * config/i386/i386.md (*movxf_nointeger, *movxf_integer): Enable
5698 patterns for standard 80387 constants.
5700 2006-11-03 Paolo Bonzini <bonzini@gnu.org>
5701 Steven Bosscher <steven@gcc.gnu.org>
5703 * fwprop.c: New file.
5704 * Makefile.in: Add fwprop.o.
5705 * tree-pass.h (pass_rtl_fwprop, pass_rtl_fwprop_with_addr): New.
5706 * passes.c (init_optimization_passes): Schedule forward propagation.
5707 * rtlanal.c (loc_mentioned_in_p): Support NULL value of the second
5709 * timevar.def (TV_FWPROP): New.
5710 * common.opt (-fforward-propagate): New.
5711 * opts.c (decode_options): Enable forward propagation at -O2.
5712 * gcse.c (one_cprop_pass): Do not run local cprop unless touching jumps.
5713 * cse.c (fold_rtx_subreg, fold_rtx_mem, fold_rtx_mem_1, find_best_addr,
5714 canon_for_address, table_size): Remove.
5715 (new_basic_block, insert, remove_from_table): Remove references to
5717 (fold_rtx): Process SUBREGs and MEMs with equiv_constant, make
5718 simplification loop more straightforward by not calling fold_rtx
5720 (equiv_constant): Move here a small part of fold_rtx_subreg,
5721 do not call fold_rtx. Call avoid_constant_pool_reference
5723 * recog.h (canonicalize_change_group): New.
5725 * doc/invoke.texi (Optimization Options): Document fwprop.
5726 * doc/passes.texi (RTL passes): Document fwprop.
5728 2006-11-03 Geoffrey Keating <geoffk@apple.com>
5730 * c-decl.c (WANT_C99_INLINE_SEMANTICS): New, set to 1.
5731 (merge_decls): Implement WANT_C99_INLINE_SEMANTICS.
5732 (grokdeclarator): Likewise.
5734 2006-11-03 Steven Bosscher <steven@gcc.gnu.org>
5736 * tree-dump.c (dump_enable_all): Rename local variable
5737 ir_type to avoid name conflicts.
5738 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Check for IR_GIMPLE
5739 instead of using ir_type().
5740 * profile.c (tree_register_profile_hooks): Likewise.
5741 * value-prof.c (tree_register_value_prof_hooks): Likewise.
5742 * basic-block.h (struct edge_def): Likewise.
5743 * config/arm/arm.c (legitimize_pic_address): Likewise.
5744 * coretypes.h (ir_type): New enum of all intermediate languages
5746 * cfghooks.c (ir_type): Rename to...
5747 (current_ir_type): ...this. Distinguish between cfgrtl and
5748 cfglayout mode when the current IR is RTL. Return enum ir_type.
5749 * cfghooks.h (ir_type): Replace with current_ir_type prototype.
5751 2006-11-03 Paul Brook <paul@codesourcery.com>
5753 * config/arm/arm.c (arm_file_start): New function.
5754 (TARGET_ASM_FILE_START): Define.
5755 (arm_default_cpu): New variable.
5756 (arm_override_options): Set arm_default_cpu.
5758 2006-11-03 David Ung <davidu@mips.com>
5760 * config/mips/mips.h (processor_type): Removed PROCESSOR_24K, add
5761 PROCESSOR_24KC and PROCESSOR_24KF.
5762 * config/mips/mips.c (mips_cpu_info_table): Add processor names
5763 and aliases for 4kec/4kem/4kep/24kec/24kef/24kex/34kc/34kf/34kx.
5764 (mips_rtx_cost_data): Add costs for the 24kc.
5765 * config/mips/mips.md ("cpu"): Remove 24k, add 24kc and 24kf.
5766 * config/mips/24k.md: Remove references to 24k and replace with
5767 uses of 24kc/24kf in the appropriate reservations.
5768 * doc/invoke.texi (MIPS Options): Updated.
5770 2006-11-03 J"orn Rennecke <joern.rennecke@st.com>
5772 * config/sh/crt1.asm: Fix #ifdef indent.
5774 2006-11-03 J"orn Rennecke <joern.rennecke@st.com>
5775 Merged from STMicroelectronics sources:
5776 2006-10-06 Andrew Stubbs <andrew.stubbs@st.com>
5777 * config/sh/crt1.asm (vbr_600): Add missing #if.
5778 2006-08-03 J"orn Rennecke <joern.rennecke@st.com>
5779 * sh.opt (mfused-madd): New option.
5780 * sh.md (mac_media, macsf3): Make conditional on TARGET_FMAC.
5781 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
5782 * config/sh/crt1.asm (vbr_start): Move to new section .test.vbr.
5783 Remove pointless handler at VBR+0.
5784 (vbr_200, vbr_300, vbr_500): Remove pointless handler.
5785 (vbr_600): Save and restore mach and macl, fpul and fpscr and fr0 to
5786 fr7. Make sure the timer handler is called with the correct FPU
5787 precision setting, according to the ABI.
5788 2006-06-14 J"orn Rennecke <joern.rennecke@st.com>
5789 * config/sh/sh.opt (m2a-single, m2a-single-only): Fix Condition.
5790 * config/sh/sh.h (SUPPORT_SH2A_NOFPU): Fix condition.
5791 (SUPPORT_SH2A_SINGLE_ONLY, SUPPORT_SH2A_SINGLE_ONLY): Likewise.
5792 2006-06-09 J"orn Rennecke <joern.rennecke@st.com>
5793 * sh.md (cmpgeusi_t): Change into define_insn_and_split. Accept
5794 zero as second operand.
5795 2006-04-28 J"orn Rennecke <joern.rennecke@st.com>
5796 * config/sh/divtab-sh4-300.c, config/sh/lib1funcs-4-300.asm:
5797 Fixed some bugs related to negative values, in particular -0
5798 and overflow at -0x80000000.
5799 * config/sh/divcost-analysis: Added sh4-300 figures.
5800 2006-04-27 J"orn Rennecke <joern.rennecke@st.com>
5801 * config/sh/t-sh (MULTILIB_MATCHES): Add -m4-300* / -m4-340 options.
5802 2006-04-26 J"orn Rennecke <joern.rennecke@st.com>
5803 * config/sh/t-sh (OPT_EXTRA_PARTS): Add libgcc-4-300.a.
5804 ($(T)div_table-4-300.o, $(T)libgcc-4-300.a): New rules.
5805 * config/sh/divtab-sh4-300.c, config/sh/lib1funcs-4-300.asm:
5807 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-4-300 for -m4-300* /
5809 2006-04-24 J"orn Rennecke <joern.rennecke@st.com>
5810 SH4-300 scheduling description & fixes to SH4-[12]00 description:
5811 * sh.md: New instruction types: fstore, movi8, fpscr_toggle, gp_mac,
5812 mac_mem, mem_mac, dfp_mul, fp_cmp.
5813 (insn_class, dfp_comp, any_fp_comp): Update.
5814 (push_fpul, movsf_ie, fpu_switch, toggle_sz, toggle_pr): Update type.
5815 (cmpgtsf_t, "cmpeqsf_t, cmpgtsf_t_i4, cmpeqsf_t_i4): Likewise.
5816 (muldf3_i): Likewise.
5817 (movsi_i): Split rI08 alternative into two separate alternatives.
5819 (movsi_ie, movsi_i_lowpart): Likewise.
5820 (movqi_i): Split ri alternative into two separate alternatives.
5822 * sh1.md (sh1_load_store, sh1_fp): Update.
5823 * sh4.md (sh4_store, sh4_mac_gp, fp_arith, fp_double_arith): Update.
5824 (mac_mem, sh4_fpscr_toggle): New insn_reservations.
5825 * sh4a.md (sh4a_mov, sh4a_load, sh4a_store, sh4a_fp_arith): Update.
5826 (sh4a_fp_double_arith): Likewise.
5827 * sh4-300.md: New file.
5828 * sh.c (sh_handle_option): Handle m4-300* options.
5829 (sh_adjust_cost): Fix latency of auto-increments.
5830 Handle SH4-300 differently than other SH4s. Check for new insn types.
5831 * sh.h (OVERRIDE_OPTIONS): Initilize sh_branch_cost if it has not
5832 been set by an option.
5833 * sh.opt (m4-300, m4-100-nofpu, m4-200-nofpu): New options.
5834 (m4-300-nofpu, -m4-340, m4-300-single, m4-300-single-only): Likewise.
5835 (mbranch-cost=): Likewise.
5836 * superh.h (STARTFILE_SPEC): Take -m4-340 into account.
5838 * sh.md (mulsf3): Remove special expansion code.
5839 (mulsf3_ie): Now a define_insn_and_split.
5840 (macsf3): Allow for TARGET_SH4.
5842 * sh.md (cbranchsi4, cbranchdi4, cbranchdi4_i): New patterns.
5843 * sh.c (prepare_cbranch_operands, expand_cbranchsi4): New functions.
5844 (expand_cbranchdi4): Likewise.
5845 (sh_rtx_costs): Give lower cost for certain CONST_INT values and for
5846 CONST_DOUBLE if the outer code is COMPARE.
5847 * sh.h (OPTIMIZATION_OPTIONS): If not optimizing for size, set
5848 TARGET_CBRANCHDI4 and TARGET_EXPAND_CBRANCHDI4.
5849 (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, clear TARGET_CBRANCHDI4.
5850 (LEGITIMATE_CONSTANT_P): Also allow DImode and VOIDmode CONST_DOUBLEs.
5851 Remove redundant fp_{zero,one}_operand checks.
5852 * sh.opt (mcbranchdi, mexpand-cbranchdi, mcmpeqdi): New options.
5853 * sh-protos.h (prepare_cbranch_operands, expand_cbranchsi4): Declare.
5854 (expand_cbranchdi4): Likewise.
5855 2006-04-20 J"orn Rennecke <joern.rennecke@st.com>
5856 * sh.h (LOCAL_ALIGNMENT): Use DATA_ALIGNMENT.
5858 2006-11-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
5860 * doc/md.texi (RS6000 constraints): Document H, Z, a, t, and W
5863 2006-11-02 Brooks Moses <brooks.moses@codesourcery.com>
5865 * doc/invoke.texi: Fix mfp-trap-mode typo.
5867 2006-11-02 Carlos O'Donell <carlos@codesourcery.com>
5869 * config/arm/linux-elf.h (NEED_INDICATE_EXEC_STACK): Define as 1.
5870 * arm.c (arm_file_end): If NEED_INDICATE_EXEC_STACK call
5871 file_end_indicate_exec_stack.
5872 * arm.h [!NEED_INDICATE_EXEC_STACK] (NEED_INIDCATE_EXEC_STACK):
5874 * lib1funcs.asm [__ELF__ && __linux__]: Emit .note.GNU-stack section
5875 for a non-executable stack.
5876 * crti.asm: Likewise.
5877 * crtn.asm: Likewise.
5878 * libunwind.S: Likewise.
5880 2006-11-02 Ben Elliston <bje@au.ibm.com>
5882 * tree-ssa.c (warn_uninit): Use expand_location variables for
5883 locus and declaration locus.
5885 2006-11-02 Kaz Kojima <kkojima@gcc.gnu.org>
5888 * config/sh/sh.md (cmp{eq,gt,gtu}{si,di}_media): Remove.
5889 (cmpsi{eq,gt,gtu}{si,di}_media): Rename to
5890 cmp{eq,gt,gtu}{si,di}_media.
5891 (*cmpne0si_media): Remove.
5892 (*movsicc_umin): Adjust gen_cmp*_media call.
5893 (unordered): Change the mode of unordered and operands[1] to
5895 (seq): Adjust gen_cmp*_media calls. Make the mode of
5896 a temporary result of compare SImode if needed. If the mode
5897 of operands[0] is DImode, extend the temporary result to DImode.
5898 (slt, sle, sgt, sge, sgtu, sltu, sleu, sgue, sne): Likewise.
5899 (sunorderd): Change the mode of match_operand and unorderd to
5901 (cmpeq{sf,df}_media): Remove.
5902 (cmpsieq{sf,df}_media): Rename to cmpeq{sf,df}_media.
5903 (cmp{gt,ge,un}{sf,df}_media): Change the mode of match_operand
5904 and compare operation to SImode.
5906 2006-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5908 * doc/install.texi (sparc-sun-solaris2*): Update GMP/MPFR build
5910 (sparc64-sun-solaris2*): Likewise.
5912 2006-11-02 Paul Brook <paul@codesourcery.com>
5914 * config/arm/arm.c (arm_elf_asm_constructor): Remove ATTRIBUTE_UNUSED
5915 from priority argument. Use different section for non-default
5917 * config/arm/elf.h: Remove definition of SUPPORTS_INIT_PRIORITY.
5919 2006-11-02 Eric Botcazou <ebotcazou@adacore.com>
5922 * except.c (switch_to_exception_section): Do not cache the section
5923 if named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
5924 and flag_function_sections is set.
5926 2006-11-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5929 * builtins.c (do_mpfr_sincos): New.
5930 (fold_builtin_1): Use it to fold builtin sincos.
5932 2006-11-01 Roger Sayle <roger@eyesopen.com>
5934 * config/darwin.h (CPP_SPEC): Handle -pthread, transforming
5935 it into -D_REENTRANT.
5937 2006-11-01 Roger Sayle <roger@eyesopen.com>
5939 * configure.ac (HAVE_AS_IX86_DIFF_SECT_DELTA): New test to determine
5940 whether the assembler supports taking the difference of symbols in
5941 different sections. On x86/Solaris, GAS does but Solaris as doesn't.
5942 * configure: Regenerate.
5943 * config.in: Regenerate.
5944 * config/i386/sol2-10.h (JUMP_TABLES_IN_TEXT_SECTION): Define if
5945 the assembler doesn't support taking the difference of symbols in
5946 different sections, i.e. we're using the native solaris assembler.
5948 2006-11-01 Pete Steinmetz <steinmtz@us.ibm.com>
5949 Peter Bergner <bergner@vnet.ibm.com>
5951 * doc/invoke.texi: Add cpu_type power6x
5952 (RS/6000 and PowerPC Options): Add -mmfpgpr.
5953 * config.gcc: Add cpu_type power6x.
5954 * configure.ac: Add test for mf{t,f}gpr instructions.
5955 (HAVE_AS_MFPGPR): New.
5956 * config.in: Regenerate.
5957 * configure: Regenerate.
5958 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6x.
5959 * config/rs6000/rs6000.md (define_attr "type"): Add insert_dword,
5960 shift,trap,var_shift_rotate,cntlz,exts, var_delayed_compare, mffgpr
5961 and mftgpr attributes.
5962 (define_attr "cpu"): Add power6.
5963 Change instruction sequences to use new attributes.
5964 (floatsidf2,fix_truncdfsi2): use TARGET_MFPGPR.
5965 (fix_truncdfsi2_mfpgpr): New.
5966 (floatsidf_ppc64_mfpgpr): New.
5967 (floatsidf_ppc64): Added !TARGET_MFPGPR condition.
5968 (movdf_hardfloat64_mfpgpr,movdi_mfpgpr): New.
5969 (movdf_hardfloat64): Added !TARGET_MFPGPR condition.
5970 (movdi_internal64): Added !TARGET_MFPGPR and related conditions.
5971 (fix_truncdfsi2): Use gpc_reg_operand constraint.
5972 * config/rs6000/{6xx.md,power4.md,8540.md,603.md,mpc.md,
5973 7xx.md,rios2.md,7450.md,440.md,rios1.md,rs64.md,power5.md,40x.md}:
5974 Add descriptions for insert_dword, shift,trap,var_shift_rotate,
5975 cntlz,exts and var_delayed_compare.
5976 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5977 _ARCH_PWR6X, if features enabled.
5978 * config/rs6000/rs6000.opt (mmfpgpr): New.
5979 * config/rs6000/rs6000.c (rs6000_align_branch_targets): New variable.
5980 (cached_can_issue_more): New variable.
5981 (processor_costs): Add power6_cost.
5982 (rs6000_sched_init): New function.
5983 (is_dispatch_slot_restricted): Deleted.
5984 (set_to_load_agen): New function.
5985 (is_load_insn,is_store_insn): New functions.
5986 (adjacent_mem_locations): New function.
5987 (insn_must_be_first_in_group): New function.
5988 (insn_must_be_last_in_group): New function.
5989 (rs6000_sched_reorder): New function.
5990 (rs6000_sched_reorder2): New function.
5991 (TARGET_SCHED_INIT,TARGET_SCHED_REORDER,
5992 TARGET_SCHED_REORDER2): Define.
5993 (processor_target_table): Use PROCESSOR_POWER6 for power6.
5994 Add power6x. Add MASK_MFPGPR for power6x.
5995 (POWERPC_MASKS): Add MASK_MFPGPR.
5996 (rs6000_override_options): Set rs6000_always_hint to false
5997 for power6. Set rs6000_align_branch_targets. Replace
5998 rs6000_sched_groups check with rs6000_align_branch_targets.
5999 Use PROCESSOR_POWER6.
6000 (last_scheduled_insn): New variable.
6001 (load_store_pendulum): New variable.
6002 (rs6000_variable_issue): Set last_scheduled_insn and
6003 cached_can_issue_more.
6004 (rs6000_adjust_cost): Add power6 cost adjustments.
6005 (rs6000_adjust_priority): Replace is_dispatch_slot_restricted
6006 with insn_must_be_first_in_group. Add power6 priority adjustments.
6007 (rs6000_issue_rate): Add CPU_POWER6.
6008 (insn_terminates_group_p): Use insn_must_be_{first,last}_in_group.
6009 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER6.
6010 (TARGET_MFPGPR): New.
6011 (SECONDARY_MEMORY_NEEDED): Use TARGET_MFPGPR.
6012 (ASM_CPU_SPEC): Add power6x.
6013 (SECONDARY_MEMORY_NEEDED): Added mode!=DFmode and mode!=DImode
6015 * config/rs6000/power6.md: New file.
6017 2006-11-01 Adam Nemet <anemet@caviumnetworks.com>
6019 * tree-pretty-print.c (dump_generic_node) <INTEGER_CST>: Use
6020 HOST_WIDE_INT_PRINT to print high and low parts. Use
6021 HOST_BITS_PER_WIDE_INT for the width of HOST_WIDE_INT. When
6022 printing a hexadecimal number prefix it with 0x.
6024 2006-11-01 Chris Johns <chris@contemporary.net.au>
6027 * Makefile.in (install-driver): Use exeext when installing
6028 $target-gcc-$version.
6030 2006-11-01 Douglas Gregor <doug.gregor@gmail.com>
6032 * c-common.c (flag_cpp0x): New.
6033 * c-common.h (flag_cpp0x): New.
6034 * c-cppbuiltin.c (c_cpp_builtins): If C++0x extensions are
6035 supported, define __GXX_EXPERIMENTAL_CPP0X__.
6036 * c-opts.c (set_std_cxx0x): New.
6037 (c_common_handle_option): Handle -std=c++0x, -std=gnu++0x.
6038 * c.opt (std=c++0x): Document.
6039 (std=gnu++0x): Ditto.
6040 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CPP0X__.
6041 * doc/invoke.texi: Document -std=c++0x, -std=gnu++0x.
6043 2006-11-01 Richard Guenther <rguenther@suse.de>
6045 * config/i386/i386.c (ix86_expand_rint): Fix issues with
6047 (ix86_expand_floorceildf_32): Likewise.
6048 (ix86_expand_floorceil): Likewise.
6049 (ix86_expand_trunc): Likewise.
6051 2006-10-31 Andrew Pinski <pinskia@gmail.com>
6053 * doc/invoke.texi (-fkeep-inline-functions): Change "GNU C"
6056 2006-11-01 Danny Smith <dannysmith@users.sourceforge.net>
6058 * target.h (targetm.cxx.use_atexit_for_cxa_atexit): New target
6060 * target-def.h: (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Define
6062 * config/i386/mingw32.h (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT):
6064 * doc/tm.texi (TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT): Document.
6065 * configure.ac (use_cxa_atexit): As a special case, don't test
6066 for libc definition of __cxa_atexit on mingw32
6067 * configure: Regenerate.
6068 * config.gcc (i[34567]86-pc-mingw32): Default to
6069 enable__cxa_atexit=yes.
6071 2006-11-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6073 * builtins.def (gamma, lgamma): Use ATTR_MATHFN_FPROUNDING_STORE.
6075 2006-10-31 Geoffrey Keating <geoffk@apple.com>
6078 * c-decl.c (start_struct): Don't create self-containing
6080 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
6082 * config/rs6000/rs6000-protos.h
6083 (darwin_rs6000_special_round_type_align): New.
6084 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Rewrite.
6085 (ROUND_TYPE_ALIGN): Use darwin_rs6000_special_round_type_align.
6087 2006-10-31 Geoffrey Keating <geoffk@apple.com>
6089 * toplev.c (compile_file): Call final_write_globals
6090 even if there have been errors.
6092 2006-10-31 Eric Christopher <echristo@apple.com>
6093 Falk Hueffner <falk@debian.org>
6095 * doc/extend.texi (__builtin_bswap32): Document.
6096 (__builtin_bswap64): Ditto.
6097 * doc/libgcc.texi (bswapsi2): Document.
6099 * doc/rtl.texi (bswap): Document.
6100 * optabs.c (expand_unop): Don't widen a bswap.
6101 (init_optabs): Init bswap. Set libfuncs explicitly
6102 for bswapsi2 and bswapdi2.
6103 * optabs.h (OTI_bswap): New.
6104 (bswap_optab): Ditto.
6105 * genopinit.c (optabs): Handle bswap_optab.
6106 * tree.h (tree_index): Add TI_UINT32_TYPE and
6108 (uint32_type_node): New.
6109 (uint64_type_node): Ditto.
6110 * tree.c (build_common_tree_nodes_2): Initialize
6111 uint32_type_node and uint64_type_node.
6112 * builtins.c (expand_builtin_bswap): New.
6113 (expand_builtin): Call.
6114 (fold_builtin_bswap): New.
6115 (fold_builtin_1): Call.
6116 * fold-const.c (tree_expr_nonnegative_p): Return true
6118 * builtin-types.def (BT_UINT32): New.
6120 (BT_FN_UINT32_UINT32): Ditto.
6121 (BT_FN_UINT64_UINT64): Ditto.
6122 * builtins.def (BUILT_IN_BSWAP32): New.
6123 (BUILT_IN_BSWAP64): Ditto.
6124 * rtl.def (BSWAP): New.
6125 * genattrtab.c (check_attr_value): New.
6126 * libgcc2.c (__bswapSI2): New.
6127 (__bswapDI2): Ditto.
6128 * libgcc2.h (__bswapSI2): Declare.
6129 (__bswapDI2): Ditto.
6130 * mklibgcc.in (lib2funcs): Add _bswapsi2 and _bswapdi2.
6131 * simplify-rtx.c (simplify_const_unary_operation): Return
6133 * libgcc-std.ver (__bwapsi2): Add.
6134 (__bswapdi2): Ditto.
6135 * reload1.c (eliminate_regs_1): Add bswap.
6136 (elimination_effects): Ditto.
6137 * config/i386/i386.h (x86_bswap): New.
6138 (TARGET_BSWAP): Use.
6139 * config/i386/i386.c (x86_bswap): Set.
6141 2006-10-31 Geoffrey Keating <geoffk@apple.com>
6143 * coverage.c (coverage_checksum_string): Update comment.
6144 * dwarf2out.c (switch_to_eh_frame_section): Update for removal
6145 of get_file_function_name.
6146 * cgraphunit.c (cgraph_build_static_cdtor): Update for rename
6147 of get_file_function_name_long.
6148 * tree.c (get_file_function_name): Rename from
6149 get_file_function_name_long; improve comment; handle 'I' and 'D'
6150 specially when the target has ctor/dtor support; remove special
6152 (get_file_function_name): Remove.
6153 * tree.h (get_file_function_name): Rename from
6154 get_file_function_name_long.
6155 (get_file_function_name): Remove prototype.
6157 2006-10-31 Geoffrey Keating <geoffk@apple.com>
6159 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Remove.
6160 * config/darwin.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
6162 * config/darwin.h (LINK_COMMAND_SPEC): Don't do weird things with -@.
6163 Call dsymutil when compiling and linking one or more source files
6166 2006-10-31 Geoffrey Keating <geoffk@apple.com>
6169 * config/darwin.h (NO_IMPLICIT_EXTERN_C): Define.
6171 2006-10-31 Geoffrey Keating <geoffk@apple.com>
6173 * c-decl.c (grokdeclarator): Don't set DECL_EXTERNAL on
6174 inline static functions in c99 mode.
6177 * doc/extend.texi (Inline): Update.
6178 * c-tree.h (struct language_function): Remove field 'extern_inline'.
6179 * c-decl.c (current_extern_inline): Delete.
6180 (pop_scope): Adjust test for an undefined nested function.
6181 Add warning about undeclared inline function.
6182 (diagnose_mismatched_decls): Update comments. Disallow overriding
6183 of inline functions in a translation unit in C99. Allow inline
6184 declarations in C99 at any time.
6185 (merge_decls): Boolize variables. Handle C99 'extern inline'
6187 (grokdeclarator): Set DECL_EXTERNAL here for functions. Handle
6188 C99 inline semantics.
6189 (start_function): Don't clear current_extern_inline. Don't set
6191 (c_push_function_context): Don't push current_extern_inline.
6192 (c_pop_function_context): Don't restore current_extern_inline.
6195 * c-typeck.c (build_external_ref): Warn about static variables
6196 used in extern inline functions.
6197 * c-decl.c (start_decl): Warn about static variables declared
6198 in extern inline functions.
6200 2006-10-31 Roger Sayle <roger@eyesopen.com>
6203 * tree.h (tree_expr_nonnegative_p): Return "bool" instead of "int".
6204 * fold-const.c (tree_expr_nonnegative_p): Likewise. Consider
6205 pow(x,y) and powi(x,y) to be nonnegative if either x is nonnegative
6206 or y is an even integer.
6208 2006-10-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6211 * gthr-posix.h (__gthread_active_p): New implementation on Solaris.
6212 * gthr-posix95.h (__gthread_active_p): Likewise.
6214 2006-10-31 Richard Guenther <rguenther@suse.de>
6216 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
6217 acossf2, acosxf2, log1psf2, log1pdf2, log1pxf2, ilogbsi2,
6218 expsf2, expdf2, expxf2, exp10sf2, exp10df2, exp10xf2,
6219 exp2sf2, exp2df2, exp2xf2, expm1df2, expm1sf2, expm1xf2,
6220 ldexpdf3, ldexpsf3, ldexpxf3, rintxf2, rintdf2, rintsf2,
6221 lround<mode>di2, lround<mode>si2, floorxf2, floordf2, floorsf2,
6222 lfloor<mode>di2, lfloor<mode>si2, ceilxf2, ceildf2, ceilsf2,
6223 btruncxf2, btruncdf2, btruncsf2): Conditionalize expansion on
6226 2006-10-31 Steven Bosscher <steven@gcc.gnu.org>
6228 * opts.c (decode_options): Disable CSE skip blocks.
6230 2006-10-30 Dirk Mueller <dmueller@suse.de>
6232 * c-common.h (strict_aliasing_warning): Fix whitespace.
6233 * c-decl (start_function): Move code for main decl warning ..
6234 * c-common.c (check_main_parameter_types): .. here.
6235 * c-common.h (check_main_parameter_types): Declare.
6237 2006-10-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6240 * builtins.c (fold_builtin_1): Evaluate tgamma using MPFR.
6242 2006-10-30 Pete Steinmetz <steinmtz@us.ibm.com>
6244 * recog.c (store_data_bypass_p): Add support to allow IN_INSN to
6245 be a PARALLEL containing sets. Return false when out_pat is not
6248 2006-10-30 Richard Sandiford <richard@codesourcery.com>
6250 * config/mips/mips.md (mul<mode>3): Split into...
6251 (mulsi3, muldi3): ...these separate patterns.
6253 2006-10-30 Richard Sandiford <richard@codesourcery.com>
6255 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use a single spec,
6256 but with each set of options separated by spaces.
6258 2006-10-30 J"orn Rennecke <joern.rennecke@st.com>
6260 * unwind-dw2.c (uw_init_context_1): Fix test that checks if
6261 dwarf_reg_size_table has been initialized.
6263 2006-10-30 Roger Sayle <roger@eyesopen.com>
6265 * builtins.c (expand_builtin_mathfn_3): Correct coding style.
6266 * ddg.c (print_ddg_edge): Likewise.
6267 * dwarf2out.c (prune_unused_types_walk): Likewise.
6268 * ifcvt.c (noce_try_cmove_arith): Likewise.
6269 * langhooks.c (add_builtin_function): Likewise.
6270 * reg-stack.c (subst_stack_regs_pat): Likewise.
6271 * tree.c (expanded_location): Likewise.
6272 * tree-dump.c (dequeue_and_dump): Likewise.
6274 2006-10-30 David Daney <ddaney@avtrex.com>
6276 * config/mips/linux.h (NO_SHARED_SPECS): Correct syntax error.
6278 2006-10-30 Jakub Jelinek <jakub@redhat.com>
6280 PR tree-optimization/29637
6281 * tree.c (make_vector_type): Don't recurse if TYPE_MAIN_VARIANT
6282 of the innertype is the innertype itself.
6284 2006-10-30 Danny Smith <dannysmith@users.sourceforge.net>
6286 * dwarf2out.c (file_name_acquire): Correct typo.
6288 2006-10-29 Daniel Berlin <dberlin@dberlin.org>
6290 * tree.h (tree_value_handle): Remove struct value_set declaration.
6291 Change value_set to bitmap_set.
6292 * tree-pretty-print.c (dump_generic_node): Use has_stmt_ann.
6293 * tree-vn.c (get_value_handle): Made inline and moved to
6295 * tree-flow-inline.h: (has_stmt_ann): New function.
6296 * tree-ssa-pre.c (expressions): New variable.
6297 (next_expression_id): Ditto.
6298 (alloc_expression_id): New function.
6299 (struct value_set): Remove.
6300 (get_expression_id): New function.
6301 (get_or_alloc_expression_id): Ditto.
6302 (expression_for_id): Ditto.
6303 (clear_expression_ids): Ditto.
6304 (FOR_EACH_EXPR_ID_IN_SET): New macro.
6305 (bb_value_sets): Renamed to bb_bitmap_sets.
6306 All value sets replaced with bitmap_sets.
6308 (BB_VISITED): New macro.
6309 (postorder): New variable.
6310 (add_to_value): Removed.
6311 (value_exists_in_set_bitmap): Ditto.
6312 (value_insert_into_set_bitmap): Ditto.
6315 (set_remove): Ditto.
6316 (set_contains_value): Ditto.
6317 (insert_into_set): Ditto.
6319 (find_leader): Ditto.
6320 (bitmap_set_subtract_from_value_set): Ditto.
6321 (value_insert_into_set): Ditto.
6322 (print_value_set): Ditto.
6323 (debug_value_set): Ditto.
6324 (constant_expr_p): New function.
6325 (bitmap_remove_from_set): Ditto.
6326 (bitmap_insert_into_set): Ditto.
6327 (bitmap_set_free): Ditto.
6328 (vh_compare): Ditto.
6329 (sorted_array_from_bitmap_set): Ditto.
6330 (bitmap_set_subtract): Ditto.
6331 (bitmap_set_equal): Ditto.
6332 (debug_bitmap_set): Ditto.
6333 (find_leader_in_sets): Ditto.
6334 (bitmap_set_replace_value): Modify for bitmapped sets.
6335 (phi_translate): Ditto.
6336 (phi_translate_set): Ditto.
6337 (bitmap_find_leader): Ditto.
6338 (valid_in_sets): Ditto.
6339 (union_contains_value): Ditto.
6341 (compute_antic_aux): Ditto. Mark changed blocks.
6342 (compute_antic): Ditto. Iterate in postorder and only over
6344 (compute_rvuse_and_antic_safe): Reuse postorder.
6345 (create_component_ref_by_pieces): Modify for bitmapped sets.
6346 (find_or_generate_expression): Ditto.
6347 (create_expression_by_pieces): Ditto.
6348 (insert_into_preds_of_block): Ditto.
6349 (changed_blocks): New variable.
6350 (do_regular_insertion): Broken out from insert_aux.
6351 (insert_aux): Modified for bitmapped sets.
6352 (find_existing_value_expr): New function.
6353 (create_value_expr_from): Use it.
6354 (insert_extra_phis): Removed.
6355 (print_bitmap_set): Renamed from bitmap_print_value_set.
6356 (compute_avail): Handle RETURN_EXPR.
6357 (init_pre): Modify for bitmapped sets.
6358 * tree-flow.h (has_stmt_ann): New function.
6360 2006-10-29 Roger Sayle <roger@eyesopen.com>
6362 * builtins.c (fold_builtin_floor): Check for the availability of
6363 the C99 trunc function before transforming floor into trunc.
6365 2006-10-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6367 * builtins.c (fold_builtin_hypot): Rearrange recursive
6368 transformation before others, and also do ABS_EXPR. When
6369 necessary, check flag_unsafe_math_optimizations. When necessary,
6372 2006-10-29 Roger Sayle <roger@eyesopen.com>
6374 * fold-const.c (fold_comparison): Fold ~X op ~Y as Y op X.
6375 Fold ~X op C as X op' ~C, where op' is the swapped comparison.
6376 (fold_binary): ~X eq/ne C is now handled in fold_comparison.
6377 Fold -X eq/ne -Y as X eq/ne Y.
6379 2006-10-29 Richard Sandiford <richard@codesourcery.com>
6381 * config/mips/mips.md (mul<mode>3): Check ISA_HAS_MUL3 rather than
6382 GENERATE_MULT3_<MODE>. Restrict the test to SImode. Use ISA_HAS_MUL3
6383 rather than GENERATE_MULT3_SI in the various define_peephole2s.
6384 (mulsi3_mult3): Depend on ISA_HAS_MUL3 rather than GENERATE_MULT3_SI.
6385 Use an inclusive test for "mult" rather than "mul".
6386 (rotr<mode>3): Depend on ISA_HAS_ROR.
6387 * config/mips/mips.h (GENERATE_MULT3_SI): Delete in favor of
6389 (GENERATE_MULT3_DI): Delete.
6390 (ISA_HAS_64BIT_REGS): Use consistent formatting.
6391 (ISA_HAS_MUL3): New macro.
6392 (ISA_HAS_CONDMOVE, ISA_HAS_8CC): Use consistent formatting.
6393 (ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB): Likewise.
6394 (ISA_HAS_CLZ_CLO): Likewise.
6395 (ISA_HAS_DCLZ_DCLO): Delete.
6396 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC): Require !TARGET_MIPS16.
6397 (ISA_HAS_MACC): Require !TARGET_MIPS16 for all ISAs, not just
6398 the VR4120 and VR4130.
6399 (ISA_HAS_MACCHI): Use consistent formatting.
6400 (ISA_HAS_ROTR_SI, ISA_HAS_ROTR_DI): Delete in favor of...
6401 (ISA_HAS_ROR): ...this new macro.
6402 (ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX): Use consistent formatting.
6403 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS): Likewise.
6404 (ISA_HAS_LOAD_DELAY): Use ISA_MIPS1.
6406 2006-10-29 Roger Sayle <roger@eyesopen.com>
6408 PR tree-optimization/15458
6409 * fold-const.c (fold_binary): Optimize ~X ^ C as X ^ ~C, where C
6412 2006-10-29 Richard Guenther <rguenther@suse.de>
6414 * config/i386/i386-protos.h (ix86_expand_trunc): Declare.
6415 (ix86_expand_truncdf_32): Likewise.
6416 * config/i386/i386.c (ix86_expand_trunc): New function expanding
6417 trunc inline for SSE math and -fno-trapping-math and if not
6418 optimizing for size.
6419 (ix86_expand_truncdf_32): Same for DFmode on 32bit archs.
6420 * config/i386/i386.md (btruncsf2, btruncdf2): Adjust expanders
6421 for expanding btrunc inline for SSE math.
6423 2006-10-29 Joseph Myers <joseph@codesourcery.com>
6425 * config.gcc (i[34567]86-*-linux*): Handle --enable-targets=all.
6426 Handle tuning for bi-arch i[34567]86-*-linux* like that for
6427 i[34567]86-*-solaris2.1[0-9]*.
6428 * config/i386/linux64.h (TARGET_VERSION, MULTILIB_DEFAULTS):
6429 Define conditionally depending on TARGET_64BIT_DEFAULT.
6430 (SPEC_32, SPEC_64): Define.
6431 (LINK_SPEC): Use them.
6432 * doc/install.texi (--enable-targets=all): Document for x86-linux.
6434 2006-10-29 Richard Guenther <rguenther@suse.de>
6436 * config/i386/i386-protos.h (ix86_expand_round): Declare.
6437 (ix86_expand_rounddf_32): Likewise.
6438 * config/i386/i386.c (ix86_expand_round): New function expanding
6439 round inline for SSE math and -fno-trapping-math and if not
6440 optimizing for size.
6441 (ix86_expand_rounddf_32): Same for DFmode on 32bit archs.
6442 * config/i386/i386.md (rounddf2, roundsf2): New pattern expanding
6443 round via ix86_expand_round.
6445 2006-10-29 Richard Guenther <rguenther@suse.de>
6447 * config/i386/i386-protos.h (ix86_expand_floorceil): Declare.
6448 (ix86_expand_floorceildf_32): Likewise.
6449 * config/i386/i386.c (ix86_expand_sse_compare_mask): New
6450 static helper function.
6451 (ix86_expand_floorceil): Expander for floor and ceil to SSE
6453 (ix86_expand_floorceildf_32): Same for DFmode on 32bit archs.
6454 * config/i386/i386.md (floordf2): Adjust to enable floor
6455 expansion via ix86_expand_floorceil if TARGET_SSE_MATH and
6456 -fno-trapping-math is enabled and if not optimizing for size.
6457 (floorsf2, ceildf2, ceilsf2): Likewise.
6458 * config/i386/sse.md (sse_maskcmpsf3): New insn.
6459 (sse2_maskcmpdf3): Likewise.
6461 2006-10-29 Richard Guenther <rguenther@suse.de>
6463 * builtins.c (expand_builtin_mathfn): Expand nearbyint as
6464 rint in case -fno-trapping-math is enabled.
6465 * config/i386/i386-protos.h (ix86_expand_rint): Declare.
6466 * config/i386/i386.c (ix86_gen_TWO52): New static helper function.
6467 (ix86_expand_sse_fabs): Likewise.
6468 (ix86_expand_rint): New function expanding rint to x87 or SSE math.
6469 * config/i386/i386.md (rintdf2): Enable for SSE math if
6470 -fno-trapping-math is enabled, use ix86_expand_rint for expansion.
6471 (rintsf2): Likewise.
6473 2006-10-29 Richard Guenther <rguenther@suse.de>
6475 * genopinit.c (optabs): Change lfloor_optab and lceil_optab
6476 to conversion optabs.
6477 * optabs.c (init_optabs): Initialize lfloor_optab and lceil_optab
6478 as conversion optab.
6479 * optabs.h (enum optab_index): Remove OTI_lfloor and OTI_lceil.
6480 (enum convert_optab_index): Add COI_lfloor and COI_lceil.
6481 (lfloor_optab, lceil_optab): Adjust defines.
6482 * builtins.c (expand_builtin_int_roundingfn): Adjust for
6483 lfloor and lceil optabs now being conversion optabs.
6484 * config/i386/i386-protos.h (ix86_expand_lfloorceil): Declare.
6485 * config/i386/i386.c (ix86_expand_sse_compare_and_jump):
6486 New static helper function.
6487 (ix86_expand_lfloorceil): New function to expand lfloor and
6489 * config/i386/i386.md (lfloor<mode>2): Split into ...
6490 (lfloorxf<mode>2): ... x87 variant
6491 (lfloor<mode>di2, lfloor<mode>si2): ... and SSE variants
6492 using ix86_expand_lfloorceil.
6493 (lceil<mode>2, lceilxf<mode>2, lceil<mode>di2, lceil<mode>si2):
6495 * doc/md.texi (lfloorMN, lceilMN): Document.
6497 2006-10-29 Richard Sandiford <richard@codesourcery.com>
6499 * configure.ac (HAVE_AS_NO_SHARED): New AC_DEFINE. Test for the
6500 -mno-shared assembler option on mips targets.
6501 * configure, config.in: Regenerate.
6502 * config/mips/linux.h (NO_SHARED_SPECS): New macro.
6503 (DRIVER_SELF_SPECS): Define to NO_SHARED_SPECS if non-empty.
6504 * config/mips/linux64.h (DRIVER_SELF_SPECS): Include NO_SHARED_SPECS.
6506 2006-10-29 Richard Sandiford <richard@codesourcery.com>
6508 * config/mips/mips.c (mips_classify_symbol): Test DECL_WEAK as well
6509 as TREE_PUBLIC when deciding whether to return SYMBOL_GOT_GLOBAL.
6511 2006-10-29 Kazu Hirata <kazu@codesourcery.com>
6513 * config/darwin.c, config/darwin.opt, config/ia64/itanium1.md,
6514 config/ia64/itanium2.md, real.c, tree-ssa-structalias.c: Fix
6517 2006-10-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6520 * builtins.c (do_mpfr_arg2, fold_builtin_hypot): New.
6521 (fold_builtin_pow): Evaluate constant arguments at compile-time
6523 (fold_builtin_1): Handle BUILT_IN_ATAN2 and BUILT_IN_HYPOT.
6524 (do_mpfr_ckconv): New helper function.
6525 (do_mpfr_arg1): Use do_mpfr_ckconv.
6526 (do_mpfr_arg2): New.
6528 2006-10-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
6531 * doc/invoke.texi (-fdump-rtl-sched2) Fix file extension number.
6532 (-fdump-rtl-sched): Rename to ..
6533 (-fdump-rtl-sched1): here. Also fix file extension number.
6535 2006-10-28 Richard Guenther <rguenther@suse.de>
6537 * fold-const.c (maybe_canonicalize_comparison): Fix code
6540 2006-10-28 Uros Bizjak <uros@kss-loka.si>
6542 * config/i386/i386.h (GENERAL_REGNO_P): Use STACK_POINTER_REGNUM.
6543 (NON_QI_REG_P): Use IN_RANGE.
6544 (REX_INT_REGNO_P): Use IN_RANGE.
6545 (FP_REGNO_P): Use IN_RANGE.
6546 (SSE_REGNO_P): Use IN_RANGE.
6547 (REX_SSE_REGNO_P): Use IN_RANGE.
6548 (MMX_REGNO_P): Use IN_RANGE.
6549 (STACK_REGNO_P): New macro.
6550 (STACK_REG_P): Use STACK_REGNO_P.
6551 (NON_STACK_REG_P): Use STACK_REGNO_P.
6552 (REGNO_OK_FOR_INDEX_P): Use REX_INT_REGNO_P.
6553 (REGNO_OK_FOR_BASE_P): Use GENERAL_REGNO_P.
6554 (REG_OK_FOR_INDEX_NONSTRICT_P): Use REX_INT_REGNO_P.
6555 (REG_OK_FOR_BASE_NONSTRICT_P): Use GENERAL_REGNO_P.
6556 (HARD_REGNO_RENAME_OK): Use !IN_RANGE.
6558 2006-10-28 Eric Botcazou <ebotcazou@adacore.com>
6560 * except.h (output_function_exception_table): Add 'const char*' param.
6561 * except.c (switch_to_exception_section): Add 'const char*' param.
6562 If named sections are supported and HAVE_LD_EH_GC_SECTIONS is defined
6563 and flag_function_sections is set, use a function-specific section.
6564 (output_function_exception_table): Add 'const char*' param.
6565 Adjust call to switch_to_exception_section.
6566 * final.c (rest_of_handle_final): Adjust calls to
6567 output_function_exception_table.
6568 * configure.ac (HAVE_LD_EH_GC_SECTIONS): New check.
6569 * config.in: Regenerate.
6570 * configure: Likewise.
6572 2006-10-28 Richard Guenther <rguenther@suse.de>
6575 * fold-const.c (maybe_canonicalize_comparison_1): Helper
6576 for maybe_canonicalize_comparison.
6577 (maybe_canonicalize_comparison): New function for canonicalizing
6579 (fold_comparison): Call it to canonicalize comparisons with
6582 2006-10-28 Richard Guenther <rguenther@suse.de>
6585 * builtins.c (expand_builtin_int_roundingfn_2): Expand
6586 BUILT_IN_LROUND and BUILT_IN_LLROUND from here.
6587 (expand_builtin): Adjust likewise.
6588 * genopinit.c (optabs[]): Add lround optab.
6589 * optabs.c (init_optabs): Initialize lround_optab.
6590 * optabs.h (enum convert_optab_index): Add COI_lround.
6591 (lround_optab): Define.
6592 * config/i386/i386-protos.h (ix86_expand_lround): Declare.
6593 * config/i386/i386.c (ix86_sse_copysign_to_positive): New
6595 (ix86_expand_lround): New function.
6596 * config/i386/i386.md (lround<mode>di2, lround<mode>si2):
6598 * doc/md.texi (lroundMN2): Document.
6600 2006-10-28 Uros Bizjak <uros@kss-loka.si>
6603 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Change "size"
6604 argument to HOST_WIDE_INT. Update function prototype.
6605 (round_frame_size): Change return type to HOST_WIDE_INT. Change
6606 "size" argument to HOST_WIDE_INT. Update function prototype.
6608 2006-10-28 Uros Bizjak <uros@kss-loka.si>
6610 * config/i386/i386.c (output_387_ffreep): Create output from a
6611 template string for !HAVE_AS_IX86_FFREEP.
6613 2006-10-27 Eric Christopher <echristo@apple.com>
6615 * config/darwin.c: Fix formatting and grammar.
6617 2006-10-27 Jan Hubicka <jh@suse.cz>
6619 * builtins.c (fold_builtin): Don't generate NOP_EXPR that is going
6620 to be thrown away soon when IGNORE is set.
6621 * tree-ssa-ccp.c (convert_to_gimple_builtin): Add IGNORE argument
6622 indicating when return value shall not be computed.
6623 * gimplify.c (internal_get_tmp_var): Avoid random tree sharing.
6625 2006-10-27 Vladimir Makarov <vmakarov@redhat.com>
6627 * config/i386/i386.h (TARGET_GEODE):
6628 (TARGET_CPU_CPP_BUILTINS): Add code for geode.
6629 (TARGET_CPU_DEFAULT_geode): New macro.
6630 (TARGET_CPU_DEFAULT_k6, TARGET_CPU_DEFAULT_k6_2,
6631 TARGET_CPU_DEFAULT_k6_3, TARGET_CPU_DEFAULT_athlon,
6632 TARGET_CPU_DEFAULT_athlon_sse, TARGET_CPU_DEFAULT_k8,
6633 TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_prescott,
6634 TARGET_CPU_DEFAULT_nocona, TARGET_CPU_DEFAULT_generic): Increase
6636 (TARGET_CPU_DEFAULT_NAMES): Add geode.
6637 (processor_type): Add PROCESSOR_GEODE.
6639 * config/i386/i386.md: Include geode.md.
6642 * config/i386/i386.c (geode_cost): New initialized global
6644 (m_GEODE, m_K6_GEODE): New macros.
6645 (x86_use_leave, x86_push_memory, x86_deep_branch, x86_use_sahf,
6646 x86_use_himode_fiop, x86_promote_QImode, x86_add_esp_4,
6647 x86_add_esp_8, x86_rep_movl_optimal, x86_ext_80387_constants,
6648 x86_schedule): Use m_K6_GEODE instead of m_K6.
6649 (x86_movx, x86_cmove): Set up m_GEODE.
6650 (x86_integer_DFmode_moves): Clear m_GEODE.
6651 (processor_target_table): Add entry for geode.
6652 (processor_alias_table): Ditto.
6654 * config/i386/geode.md: New file.
6656 * doc/invoke.texi: Add entry about geode processor.
6658 2006-10-27 Mike Stump <mrs@apple.com>
6660 * config/darwin-c.c (darwin_cpp_builtins): Move __STATIC__ and
6661 __DYNAMIC__ from here back to ...
6662 * config/darwin.h (CPP_SPEC): ... here.
6664 2006-10-26 Nathan Froyd <froydnj@codesourcery.com>
6665 Nathan Sidwell <nathan@codesourcery.com>
6667 * ggc-common.c (ggc_min_heapsize_heuristic): Be more conservative
6668 when choosing the minimum heapsize.
6670 2006-10-26 Nathan Froyd <froydnj@codesourcery.com>
6672 * gcc/unwind-dw2.h: Move cfa-related variables into
6673 struct frame_state_reg_info to ensure that the CFA is properly
6674 handled when executing DW_CFA_{remember,restore}_state.
6675 * gcc/unwind-dw2.c, gcc/config/alpha/linux-unwind.h,
6676 gcc/config/alpha/vms-unwind.h, gcc/config/s390/tpf-unwind.h
6677 gcc/config/s390/linux-unwind.h, gcc/config/sparc/linux-unwind.h
6678 gcc/config/i386/linux-unwind.h, gcc/config/sh/linux-unwind.h
6679 gcc/config/rs6000/linux-unwind.h,
6680 gcc/config/rs6000/darwin-fallback.c, gcc/config/pa/linux-unwind.h,
6681 gcc/config/pa/hpux-unwind.h, gcc/config/mips/linux-unwind.h:
6682 Modify to use new cfa_* fields.
6684 2006-10-26 Andreas Krebbel <krebbel1@de.ibm.com>
6686 * config/s390/s390.c (s390_init_frame_layout): Check positive
6689 2006-10-26 Ben Elliston <bje@au.ibm.com>
6691 * gimplify.c (get_name): Remove extraneous break.
6692 (gimplify_omp_for): Initialise ret with GS_OK.
6694 2006-10-25 Steve Ellcey <sje@cup.hp.com>
6696 * config/ia64/hpux.h: Define _INCLUDE__STDC_A1_SOURCE in C++.
6697 Add unix98.o to link line.
6699 2006-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6702 * builtins.c (fold_builtin_cbrt, fold_builtin_logarithm):
6703 Calculate compile-time constants using MPFR.
6704 (fold_builtin_1): Likewise handle BUILT_IN_ERF, BUILT_IN_ERFC,
6705 BUILT_IN_EXPM1 and BUILT_IN_LOG1P.
6707 2006-10-25 Bob Wilson <bob.wilson@acm.org>
6709 * config/xtensa/lib2funcs.S: Use C-style comments.
6711 2006-10-24 Nathan Froyd <froydnj@codesourcery.com>
6713 * dwarf2out.c (gen_compile_unit_die): Use IS_ABSOLUTE_PATH.
6714 (file_table_relative_p): Likewise.
6715 (dwarf2out_finish): Likewise.
6716 (file_name_acquire): Use DIR_SEPARATOR and DIR_SEPARATOR_2.
6718 2006-10-25 Daniel Berlin <dberlin@dberlin.org>
6720 * tree-ssa-structalias.c (intra_create_variable_infos):
6721 Don't recreate nonlocal_all if it already exists.
6723 2006-10-25 Richard Guenther <rguenther@suse.de>
6726 * optabs.h (enum optab_index): Remove OTI_lrint.
6727 (enum convert_optab_index): Add COI_lrint.
6728 (lrint_optab): Adjust.
6729 (expand_sfix_optab): Declare.
6730 * optabs.c (expand_sfix_optab): New function.
6731 (init_optabs): Init lrint_optab as conversion optab.
6732 * genopinit.c (lrint_optab): Change to a conversion optab.
6733 * builtins.c (expand_builtin_int_roundingfn_2): Adjust to
6734 expansion via conversion optab.
6735 * config/i386/i386.md (*fistdi2_1): Remove
6736 flag_unsafe_math_optimizations guard.
6737 (fistdi2, fistdi2_with_temp, *fist<mode>2_1, fist<mode>2,
6738 fist<mode>2_with_temp): Likewise.
6739 (lrint<mode>2): Split into...
6740 (lrintxf<mode>2): ... x87 part
6741 (lrint<mode>di2, lrint<mode>si2): ... and SSE parts.
6742 * config/i386/sse.md (sse_cvtss2si_2, sse_cvtss2_siq_2,
6743 sse2_cvtsd2si_2, sse2_cvtsd2siq_2): New insns for
6744 UNSPEC_FIX_NOTRUNC matching non-vector float modes.
6745 * doc/md.texi (lrintMN2): Document.
6747 2006-10-25 Uros Bizjak <uros@kss-loka.si>
6750 * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>"):
6751 Use inc and dec instructions for TARGET_USE_INCDEC.
6752 ("*sync_compare_and_swap<mode>"): Fix -masm=intel template.
6753 ("sync_double_compare_and_swap<mode>"): Likewise.
6754 ("*sync_double_compare_and_swapdi_pic"): Likewise.
6755 ("*sync_compare_and_swap_cc<mode>"): Likewise.
6756 ("sync_double_compare_and_swap_cc<mode>"): Likewise.
6757 ("*sync_double_compare_and_swap_ccdi_pic"): Likewise.
6758 ("sync_old_add<mode>"): Likewise.
6759 ("sync_lock_test_and_set<mode>"): Likewise.
6760 ("sync_lock_test_and_set<mode>"): Likewise.
6761 ("sync_add<mode>"): Likewise.
6762 ("sync_sub<mode>"): Likewise.
6763 ("sync_ior<mode>"): Likewise.
6764 ("sync_and<mode>"): Likewise.
6765 ("sync_xor<mode>"): Likewise.
6767 2006-10-25 Uros Bizjak <uros@kss-loka.si>
6769 * optabs.h (enum optab_index): Rename OTI_drem to OTI_remainder.
6770 (remainder_optab): Define corresponding macro.
6771 (drem_optab): Remove.
6772 * optabs.c (init_optabs): Initialize remainder_optab. Remove
6773 drem_optab initialization.
6774 * genopinit.c (optabs): Implement remainder_optab using
6775 remainder?f3 patterns. Remove drem_optab.
6776 * builtins.c (expand_builtin_mathfn_2): Handle
6777 BUILT_IN_REMAINDER{,F,L} using remainder_optab.
6778 (expand_builtin): Expand BUILT_IN_REMAINDER{,F,L} using
6779 expand_builtin_mathfn_2.
6781 (expand_builtin) [BUILT_IN_FMOD, BUILT_IN_DREM]: Do not
6782 depend on flag_unsafe_math_optimizations.
6784 * config/i386/i386.md ("remaindersf3", "remainderdf3")
6785 ("remainderxf3"): Renamed from "drem{s,d,x}f3" expanders.
6786 Do not depend on flag_unsafe_math_optimizations. Use
6787 truncxf?f expander instead of truncxf?f_i387_noop.
6789 ("fpremxf4", "fprem1xf4"): Do not depend on
6790 flag_unsafe_math_optimizations.
6791 ("fmodsf3", "fmoddf3", "fmodxf3"): Do not depend on
6792 flag_unsafe_math_optimizations. Use truncxf?f expander
6793 instead of truncxf?f_i387_noop.
6795 * doc/md.texi (fmod, remainder): Document standard named pattern.
6797 2006-10-24 Richard Sandiford <richard@codesourcery.com>
6798 David Daney <ddaney@avtrex.com>
6801 * rtlanal.c (nonzero_address_p): Remove check for values wrapping.
6803 2006-10-25 Ben Elliston <bje@au.ibm.com>
6805 * doc/extend.texi (Variable Attributes): Typo fix.
6807 2006-10-24 Uros Bizjak <uros@kss-loka.si>
6809 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Define to 54.
6810 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add fpcr register.
6811 (REG_ALLOC_ORDER): Add one element to allocate fpcr register.
6812 (FRAME_POINTER_REGNUM): Update register number to 21.
6813 (REG_CLASS_CONTENTS): Update contents for added fpcr register.
6814 (HI_REGISTER_NAMES): Add "fpcr" for fpcr register.
6816 * config/i386/i386.c (regclass_map): Add fpcr entry.
6817 (dbx_register_map, dbx64_register_map, svr4_dbx_register_map):
6819 (print_reg): Assert REGNO (x) != FPCR_REG.
6821 * config/i386/i386.md (FPCR_REG, R11_REG): New constants.
6822 (DIRFLAG_REG): Renumber.
6823 (x86_fnstcw_1, x86_fldcw_1): Use FPCR_REG instead of FPSR_REG.
6824 (*sibcall_1_rex64_v, *sibcall_value_1_rex64_v): Use R11_REG.
6825 (sse_prologue_save, *sse_prologue_save_insn): Renumber
6826 hardcoded SSE register numbers.
6828 * config/i386/mmx.md (mmx_emms, mmx_femms): Renumber
6829 hardcoded MMX register numbers.
6831 2006-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6834 * builtins.c (fold_builtin_sin, fold_builtin_atan): Remove.
6835 (do_mpfr_arg1): Add `min', `max' and `inclusive' arguments.
6837 (BUILT_IN_SIN, BUILT_IN_ATAN): Handle in main switch.
6838 (BUILT_IN_ASIN, BUILT_IN_ACOS, BUILT_IN_ATAN, BUILT_IN_ASINH,
6839 BUILT_IN_ACOSH, BUILT_IN_ATANH, BUILT_IN_SINH, BUILT_IN_COSH,
6840 BUILT_IN_TANH): Calculate compile-time arguments using MPFR.
6842 2006-10-24 Richard Guenther <rguenther@suse.de>
6845 * builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
6846 and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
6847 for deciding optimizations in consistency with fold-const.c
6848 (fold_builtin_unordered_cmp): Likewise.
6850 2006-10-24 Richard Guenther <rguenther@suse.de>
6852 * builtins.c (fold_builtin_floor): Fold floor (x) where
6853 x is nonnegative to trunc (x).
6854 (fold_builtin_int_roundingfn): Fold lfloor (x) where x is
6855 nonnegative to FIX_TRUNC_EXPR.
6857 2006-10-24 Richard Guenther <rguenther@suse.de>
6859 PR tree-optimization/29567
6860 * tree-vrp.c (register_edge_assert_for_1): Fix wrong logic
6861 for TRUTH_NOT_EXPR. Clarify comments.
6863 2006-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6866 * builtins.c (fold_builtin_exponent): Evaluate constant arguments
6867 at compile-time using MPFR. Change parameter VALUE to FUNC,
6869 (do_mpfr_arg1): Rename `exact' to `inexact'. Carefully check
6870 for overflow and underflow at all times and avoid folding in
6873 2006-10-24 Ben Elliston <bje@au.ibm.com>
6875 * reload1.c: Formatting fixes.
6877 2006-10-23 Zdenek Dvorak <dvorakz@suse.cz>
6879 PR tree-optimization/14784
6880 * tree-flow.h (struct var_ann_d): Add is_heapvar bit.
6881 * tree-ssa-structalias.c (get_constraint_for,
6882 intra_create_variable_infos): Set is_heapvar.
6883 * tree-ssa-operands.c (access_can_touch_variable): Do not handle
6884 non-heapvar pointer variables specially.
6886 2006-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6889 * builtins.c (fold_builtin_sin, fold_builtin_cos,
6890 fold_builtin_tan): Fold all constant arguments. Take a "type"
6891 argument as necessary.
6892 (do_mpfr_arg1): New.
6893 * real.c, real.h (real_from_mpfr, mpfr_from_real): New.
6895 2006-10-23 Bob Wilson <bob.wilson@acm.org>
6897 * config/xtensa/lib1funcs.asm: Use C-style comments.
6899 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
6901 * tree.c (local_define_builtin): Replace calls to
6902 lang_hooks.builtin_function with add_builtin_function.
6903 * c-objc-common.h (LANG_HOOKS_BUILTIN_FUNCTION): Define as
6905 * c-tree.h (builtin_function): Rename to c_builtin_function. Change
6907 * c-decl.c (builtin_function): Rename to c_builtin_function. Move
6908 common code to add_builtin_function.
6909 * langhooks.c (add_builtin_function): New function.
6910 (lhd_builtin_function): New function.
6911 * langhooks.h (struct lang_hooks): Change the signature of
6913 (add_builtin_function): New function.
6914 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Replace
6915 calls to lang_hooks.builtin_function with add_builtin_function.
6916 * c-common.c (decl_builtin_1): Replace calls to
6917 lang_hooks.builtin_function with add_builtin_function.
6918 * config/alpha/alpha.c (alpha_init_builtins): Replace calls to
6919 lang_hooks.builtin_function with add_builtin_function.
6920 * config/frv/frv.c (def_builtin): Replace calls to
6921 lang_hooks.builtin_function with add_builtin_function.
6922 * config/s390/s390.c (s390_init_builtins): Replace calls to
6923 lang_hooks.builtin_function with add_builtin_function.
6924 * config/sparc/sparc.c (def_builtin): Replace calls to
6925 lang_hooks.builtin_function with add_builtin_function.
6926 * config/i386/i386.c (def_builtin): Replace calls to
6927 lang_hooks.builtin_function with add_builtin_function.
6928 * config/sh/sh.c (sh_media_init_builtins): Replace calls to
6929 lang_hooks.builtin_function with add_builtin_function.
6930 * config/c4x/c4x.c (c4x_init_builtins): Replace calls to
6931 lang_hooks.builtin_function with add_builtin_function.
6932 * config/stormy16/stormy16.c (xstormy16_init_builtins):
6933 Replace calls to lang_hooks.builtin_function with
6934 add_builtin_function.
6935 * config/iq2000/iq2000.c (def_builtin):
6936 Replace calls to lang_hooks.builtin_function with
6937 add_builtin_function.
6938 * config/ia64/ia64.c (def_builtin): Replace calls to
6939 lang_hooks.builtin_function with add_builtin_function.
6940 * config/rs6000/rs6000.c (def_builtin): Replace calls to
6941 lang_hooks.builtin_function with add_builtin_function.
6942 (altivec_init_builtins): Replace calls to
6943 lang_hooks.builtin_function with add_builtin_function.
6944 * config/arm/arm.c (def_mbuiltin): Replace calls to
6945 lang_hooks.builtin_function with add_builtin_function.
6946 (arm_init_tls_builtins): Replace calls to
6947 lang_hooks.builtin_function with add_builtin_function.
6948 * config/mips/mips.c (mips_init_builtins): Replace calls to
6949 lang_hooks.builtin_function with add_builtin_function.
6950 * config/bfin/bfin.c (def_builtin): Replace calls to
6951 lang_hooks.builtin_function with add_builtin_function.
6952 * langhooks-def.h (lhd_builtin_function): New function.
6953 (LANG_HOOKS_BUILTIN_FUNCTION): Define as lhd_builtin_function.
6955 2006-10-23 Jakub Jelinek <jakub@redhat.com>
6957 * builtins.c (expand_builtin, maybe_emit_chk_warning): Handle
6958 BUILT_IN_STRNCAT_CHK.
6960 2006-10-23 Jan Hubicka <jh@suse.cz>
6962 * builtins.c (expand_builtin_memmove): Remove ORIG_EXP argument;
6963 don't do conversion from memmove to memcpy here.
6964 (expand_builtin_bcopy, expand_builtin): Update call of
6965 expand_builtin_memmove.
6966 (fold_builtin_memory_op): Do folding of memmove to memcpy here.
6968 2006-10-23 Paul Brook <paul@codesourcery.com>
6970 * stor-layout.c (start_record_layout): maximum_field_alignment
6971 overrides STRUCTURE_SIZE_BOUNDARY.
6973 2006-10-23 Ulrich Weigand <uweigand@de.ibm.com>
6975 * config/s390/predicates.md ("bras_sym_operand"): Do not accept
6976 nonlocal function symbols if flag_pic.
6978 2006-10-23 Richard Guenther <rguenther@suse.de>
6982 * builtins.c (fold_binary): Remove checks for flag_wrapv
6983 and flag_trapv where negate_expr_p covers these cases.
6985 2006-10-23 Richard Guenther <rguenther@suse.de>
6988 * fold-const.c (fold_plusminus_mult_expr): Check exact power
6989 of two on the absolute value.
6990 (fold_binary): Fold x * -C to -x * C if x is easily negatable
6991 and negating -C does not overflow.
6993 2006-10-23 Richard Guenther <rguenther@suse.de>
6996 * convert.c (convert_to_real): Fold (float)-x to -(float)x
6997 only if not flag_rounding_math.
6999 2006-10-22 Richard Sandiford <richard@codesourcery.com>
7000 Kaz Kojima <kkojima@gcc.gnu.org>
7003 * config/sh/sh.c (expand_block_move): Use a BLKmode rather than
7004 SImode memory reference for the source of a movua.
7005 * config/sh/sh.md (UNSPEC_MOVUA): New macro.
7006 (movua): Use an unspec instead of sign_extract. Expect the source
7007 to have mode BLKmode.
7008 (extv, insv): Use a BLKmode rather than SImode memory reference
7009 for the source of a movua.
7011 2006-10-22 Jeff Law <law@redhat.com>
7012 Richard Guenther <rguenther@suse.de>
7014 PR tree-optimization/15911
7015 * tree-vrp.c (extract_code_and_val_from_cond): New function.
7016 (register_edge_assert_for_1): Likewise.
7017 (register_edge_assert_for): Handle &&/&/||/| in conditionals.
7018 (find_conditional_asserts): Adjust for new function signature.
7019 (find_assert_locations): Likewise.
7021 2006-10-22 H.J. Lu <hongjiu.lu@intel.com>
7023 * config/i386/tmmintrin.h: Remove the duplicated content.
7025 2006-10-22 H.J. Lu <hongjiu.lu@intel.com>
7027 * config.gcc (i[34567]86-*-*): Add tmmintrin.h to extra_headers.
7028 (x86_64-*-*): Likewise.
7030 * config/i386/i386.c (pta_flags): Add PTA_SSSE3.
7031 (override_options): Check SSSE3.
7032 (ix86_builtins): Add IX86_BUILTIN_PHADDW, IX86_BUILTIN_PHADDD,
7033 IX86_BUILTIN_PHADDSW, IX86_BUILTIN_PHSUBW, IX86_BUILTIN_PHSUBD,
7034 IX86_BUILTIN_PHSUBSW, IX86_BUILTIN_PMADDUBSW,
7035 IX86_BUILTIN_PMULHRSW, IX86_BUILTIN_PSHUFB,
7036 IX86_BUILTIN_PSIGNB, IX86_BUILTIN_PSIGNW, IX86_BUILTIN_PSIGND,
7037 IX86_BUILTIN_PALIGNR, IX86_BUILTIN_PABSB, IX86_BUILTIN_PABSW,
7038 IX86_BUILTIN_PABSD, IX86_BUILTIN_PHADDW128,
7039 IX86_BUILTIN_PHADDD128, IX86_BUILTIN_PHADDSW128,
7040 IX86_BUILTIN_PHSUBW128, IX86_BUILTIN_PHSUBD128,
7041 IX86_BUILTIN_PHSUBSW128, IX86_BUILTIN_PMADDUBSW128,
7042 IX86_BUILTIN_PMULHRSW128, IX86_BUILTIN_PSHUFB128,
7043 IX86_BUILTIN_PSIGNB128, IX86_BUILTIN_PSIGNW128,
7044 IX86_BUILTIN_PSIGND128, IX86_BUILTIN_PALIGNR128,
7045 IX86_BUILTIN_PABSB128, IX86_BUILTIN_PABSW128 and
7046 IX86_BUILTIN_PABSD128.
7047 (bdesc_2arg): Add SSSE3.
7048 (bdesc_1arg): Likewise.
7049 (ix86_init_mmx_sse_builtins): Support SSSE3.
7050 (ix86_expand_builtin): Likewise.
7051 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7053 * config/i386/i386.md (UNSPEC_PSHUFB): New.
7054 (UNSPEC_PSIGN): Likewise.
7055 (UNSPEC_PALIGNR): Likewise.
7056 Include mmx.md before sse.md.
7058 * config/i386/i386.opt: Add -mssse3.
7060 * config/i386/sse.md (ssse3_phaddwv8hi3): New pattern for SSSE3.
7061 (ssse3_phaddwv4hi3): Likewise.
7062 (ssse3_phadddv4si3): Likewise.
7063 (ssse3_phadddv2si3): Likewise.
7064 (ssse3_phaddswv8hi3): Likewise.
7065 (ssse3_phaddswv4hi3): Likewise.
7066 (ssse3_phsubwv8hi3): Likewise.
7067 (ssse3_phsubwv4hi3): Likewise.
7068 (ssse3_phsubdv4si3): Likewise.
7069 (ssse3_phsubdv2si3): Likewise.
7070 (ssse3_phsubswv8hi3): Likewise.
7071 (ssse3_phsubswv4hi3): Likewise.
7072 (ssse3_pmaddubswv8hi3): Likewise.
7073 (ssse3_pmaddubswv4hi3): Likewise.
7074 (ssse3_pmulhrswv8hi3): Likewise.
7075 (ssse3_pmulhrswv4hi3): Likewise.
7076 (ssse3_pshufbv16qi3): Likewise.
7077 (ssse3_pshufbv8qi3): Likewise.
7078 (ssse3_psign<mode>3): Likewise.
7079 (ssse3_psign<mode>3): Likewise.
7080 (ssse3_palignrti): Likewise.
7081 (ssse3_palignrdi): Likewise.
7082 (abs<mode>2): Likewise.
7083 (abs<mode>2): Likewise.
7085 * config/i386/tmmintrin.h: New file.
7087 * doc/extend.texi: Document SSSE3 built-in functions.
7089 * doc/invoke.texi: Document -mssse3/-mno-ssse3 switches.
7091 2006-10-22 Ira Rosen <irar@il.ibm.com>
7093 * tree-vect-transform.c (vectorizable_load): Use the type of the
7094 return value of the mask_for_load builtin to create realign_load
7097 2006-10-22 Richard Sandiford <richard@codesourcery.com>
7099 * config/mips/mips.c (mips_split_const): Don't accept bare PLUS
7102 2006-10-21 H.J. Lu <hongjiu.lu@intel.com>
7104 * config/i386/i386.md (UNSPEC_LDQQU): Renamed to ...
7105 (UNSPEC_LDDQU): This.
7106 * config/i386/sse.md (sse3_lddqu): Updated.
7108 2006-10-21 Richard Guenther <rguenther@suse.de>
7110 * builtins.c (expand_builtin_int_roundingfn_2): New function.
7111 (expand_builtin): Use it to expand lrint instead of
7112 expand_builtin_mathfn.
7114 2006-10-21 Uros Bizjak <uros@kss-loka.si>
7117 * builtins.c (fold_builtin): Fold pow(x,1.0/3.0) as cbrt(x) if
7118 flag_unsafe_math_optimizations is set.
7120 2006-10-21 Uros Bizjak <uros@kss-loka.si>
7123 * config/i386/i386.md (fix_trunc?f?i_sse): Add peephole2
7124 patterns to use memory input operand in x87->mem->XMM
7125 reload sequences. Skip transformation for TARGET_K8.
7127 2006-10-21 Uros Bizjak <uros@kss-loka.si>
7129 * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Do not
7130 force operand1 to register if both operands are memory operands.
7131 (*extendsfdf2_mixed, *extendsfdf2_sse, *extendsfdf2_i387)
7132 (*extendsfxf2_i387, *extenddfxf2_i387): Do not disable pattern
7133 if both operands are memory operands.
7134 (truncdfsf2): Do not force operand1 to register if both operands
7135 are memory operands.
7137 2006-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7139 * Makefile.in (LIBS): Add $(GMPLIBS).
7140 * doc/install.texi: Update GMP and MPFR requirements.
7141 * doc/sourcebuild.texi (need_gmp): Delete.
7143 2006-10-21 Richard Guenther <rguenther@suse.de>
7145 PR tree-optimization/3511
7146 * tree-ssa-pre.c (phi_translate): Fold CALL_EXPRs that
7147 got new invariant arguments during PHI translation.
7149 2006-10-21 Richard Guenther <rguenther@suse.de>
7152 * fold-const.c (fold_comparison): Fold signed comparisons
7153 of the form X +- C1 CMP Y +- C2.
7155 2006-10-21 Richard Guenther <rguenther@suse.de>
7158 * config/i386/i386.c (override_options): Do not set MASK_IEEE_FP
7159 if flag_unsafe_math_optimizations is specified. We have
7160 flag_finite_math_only for that.
7161 * config/i386/i386.md (sqrtxf2): Do not require TARGET_IEEE_FP
7162 or flag_unsafe_math_optimizations.
7164 2006-10-21 Richard Guenther <rguenther@suse.de>
7166 * builtins.c (fold_builtin_classify): Fix typo.
7168 2006-10-21 Richard Guenther <rguenther@suse.de>
7171 * simplify-rtx.c (simplify_const_relational_operation):
7172 Do not constant-fold ORDERED and UNORDERED for
7173 flag_unsafe_math_optimizations but only we do not need to
7174 honor NaNs for the given mode.
7176 2006-10-21 Richard Guenther <rguenther@suse.de>
7179 * config/i386/i386.c (classify_argument): Remove redundant
7180 walking of the BINFOs.
7181 (contains_128bit_aligned_vector_p): Likewise.
7183 2006-10-20 Mark Mitchell <mark@codesourcery.com>
7185 * BASE-VER: Set to 4.3.0.
7187 2006-10-20 Daniel Berlin <dberlin@dberlin.org>
7189 * tree.h (DECL_PTA_ARTIFICIAL): Remove.
7190 (tree_decl_with_vis): Remove artificial_pta_var flag.
7191 * tree-flow.h (referenced_var_check_and_insert): Expose.
7192 (nonlocal_all): New prototype.
7193 * tree-ssa-structalias.c (nonlocal_for_type): Remove.
7194 (nonlocal_all): Make global.
7195 (nonlocal_lookup): Remove.
7196 (nonlocal_insert): Ditto.
7197 (create_nonlocal_var): Do not call nonlocal_insert.
7198 (get_nonlocal_id_for_type): Remove.
7199 (find_global_initializers): Mark new vars we find for renaming.
7200 (intra_create_variable_infos): Only create one nonlocal.
7201 (expand_nonlocal_solutions): Remove.
7202 (compute_points_to_sets): Don't call it.
7203 (ipa_pta_execute): Ditto.
7204 (init_alias_heapvars): Don't create nonlocal_for_type.
7205 (delete_alias_heapvars): Don't remove it.
7206 * tree-ssa-operands.c (access_can_touch_variable): Don't prune
7209 2006-10-19 Brooks Moses <bmoses@stanford.edu>
7211 * doc/install.texi (Downloading GCC): Clarify mention of
7212 Fortran in the "full distribution" description.
7214 2006-10-19 Daniel Berlin <dberlin@dberlin.org>
7216 Fix PR tree-optimization/28778
7217 Fix PR tree-optimization/29156
7218 Fix PR tree-optimization/29415
7219 * tree.h (DECL_PTA_ARTIFICIAL): New macro.
7220 (tree_decl_with_vis): Add artificial_pta_var flag.
7221 * tree-ssa-alias.c (is_escape_site): Remove alias info argument,
7222 pushed into callers.
7223 * tree-ssa-structalias.c (nonlocal_for_type): New variable.
7224 (nonlocal_all): Ditto.
7225 (struct variable_info): Add directly_dereferenced member.
7226 (var_escaped_vars): New variable.
7227 (escaped_vars_tree): Ditto.
7228 (escaped_vars_id): Ditto.
7229 (nonlocal_vars_id): Ditto.
7230 (new_var_info): Set directly_dereferenced.
7231 (graph_size): New variable
7232 (build_constraint_graph): Use graph_size.
7233 (solve_graph): Don't process constraints that cannot change the
7234 solution, don't try to propagate an empty solution to our
7236 (process_constraint): Set directly_dereferenced.
7237 (could_have_pointers): New function.
7238 (get_constraint_for_component_ref): Don't process STRING_CST.
7239 (nonlocal_lookup): New function.
7240 (nonlocal_insert): Ditto.
7241 (create_nonlocal_var): Ditto.
7242 (get_nonlocal_id_for_type): Ditto.
7243 (get_constraint_for): Allow results vector to be empty in the case
7244 of string constants.
7245 Handle results of calls properly.
7246 (update_alias_info): Update alias info stats on number and type of
7248 (find_func_aliases): Use could_have_pointers.
7249 (make_constraint_from_escaped): Renamed from
7250 make_constraint_to_anything, and changed to make constraints from
7252 (make_constraint_to_escaped): New function.
7253 (find_global_initializers): Ditto.
7254 (create_variable_info_for): Make constraint from escaped to any
7255 global variable, and from any global variable to the set of
7257 (intra_create_variable_infos): Deal with escaped instead of
7258 pointing to anything.
7259 (set_uids_in_ptset): Do type pruning on directly dereferenced
7261 (find_what_p_points_to): Adjust call to set_uids_with_ptset.
7262 (init_base_vars): Fix comment, and initialize escaped_vars.
7263 (need_to_solve): Removed.
7264 (find_escape_constraints): New function.
7265 (expand_nonlocal_solutions): Ditto.
7266 (compute_points_to_sets): Call find_escape_constraints and
7267 expand_nonlocal_solutions.
7268 (delete_points_to_sets): Don't fall off the end of the graph.
7269 (init_alias_heapvars): Initialize nonlocal_for_type and
7271 (delete_alias_heapvars): Free nonlocal_for_type and null out
7274 2006-10-19 Eric Botcazou <ebotcazou@adacore.com>
7276 * fold-const.c (add_double): Rename to add_double_with_sign.
7277 Add 'unsigned_p' parameter and take it into account for the overflow.
7278 (mul_double): Rename to mul_double_with_sign.
7279 Add 'unsigned_p' parameter and take it into account for the overflow.
7280 (fold_div_compare): Call add_double_with_sign instead of add_double
7281 and mul_double_with_sign instead of mul_double, passing them the
7282 unsignedness of the type.
7283 * tree.h (add_double): Macroize.
7284 (add_double_with_sign): New prototype.
7285 (mul_double): Macroize.
7286 (mul_double_with_sign): New prototype.
7288 2006-10-19 Chen Liqin <liqin@sunnorth.com.cn>
7290 * config/score/crti.asm: New file.
7291 * config/score/crtn.asm: New file.
7292 * config/score/elf.h: New file.
7293 * config/score/mac.md: New file.
7294 * config/score/misc.md: New file.
7295 * config/score/mul-div.S: New file.
7296 * config/score/predicates.md: New file.
7297 * config/score/score7.md: New file.
7298 * config/score/score.c: New file.
7299 * config/score/score-conv.h: New file.
7300 * config/score/score.h: New file.
7301 * config/score/score.md: New file.
7302 * config/score/score-mdaux.c: New file.
7303 * config/score/score-mdaux.h: New file.
7304 * config/score/score-modes.def: New file.
7305 * config/score/score.opt: New file.
7306 * config/score/score-protos.h: New file.
7307 * config/score/score-version.h: New file.
7308 * config/score/t-score-elf: New file.
7309 * config.gcc: Add score*-*-* configurations(Update before).
7310 * doc/invoke.texi (Score Options): New section.
7311 * doc/md.texi (Score family): New section to document constraints.
7313 2006-10-19 Nick Clifton <nickc@redhat.com>
7315 * config/arm/arm.c: Fix spelling typo.
7317 2006-10-18 Tom Tromey <tromey@redhat.com>
7319 * doc/install.texi (Prerequisites): Mention automake 1.9.6.
7321 2006-10-18 Jan Hubicka <jh@suse.cz>
7324 * cfgexpand.c (expand_used_vars_for_block): Vars marked used by user
7327 2006-10-18 Marcin Dalecki <martin@dalecki.de>
7329 * omp-low.c (expand_parallel_call): Use BSI_SAME_STMT instead of
7330 TSI_SAME_STMT, since that's the desired entity.
7332 2006-10-17 Wolfgang Gellerich <gellerich@de.ibm.com>
7334 * config/s390/contraints.md: New file.
7335 * config/s390/s390-protos.h (s390_mem_constraint,
7336 s390_O_constraint_str, s390_N_constraint_str,
7337 s390_float_const_zero_p): Function prototypes added.
7338 * config/s390/s390.c (s390_extra_constraint_str,
7339 s390_const_double_ok_for_constraint_p,
7340 s390_const_ok_for_constraint_p): Functions removed.
7341 (s390_mem_constraint, s390_O_constraint_str, s390_N_constraint_str,
7342 s390_float_const_zero_p): New functions.
7343 * config/s390/s390.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_CONSTRAINT_P,
7344 CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR,
7345 EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT, CONSTRAINT_LEN):
7346 Macro definitions removed.
7347 (s390_const_ok_for_constraint_p, s390_const_double_ok_for_constraint_p,
7348 s390_extra_constraint_str): Functions removed.
7350 2006-10-17 Andrew Pinsiki <pinskia@gmail.com>
7351 Richard Sandiford <richard@codesourcery.com>
7354 * config/mips/linux.h (SUBTARGET_CC1_SPEC): Override.
7355 * config/mips/mips.h (CC1_SPEC): Override any earlier definition.
7357 2006-10-16 Geoffrey Keating <geoffk@apple.com>
7359 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
7360 (DWARF2_FRAME_REG_OUT): Likewise.
7361 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Move from sysv4.h.
7362 (DWARF2_FRAME_REG_OUT): Likewise.
7364 2006-10-17 Paul Brook <paul@codesourcery.com>
7366 * config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
7368 2006-10-16 Brooks Moses <bmoses@stanford.edu>
7370 * doc/contrib.texi, doc/install.texi, doc/standards.texi:
7371 Standardize on "GNU Fortran" as the official name of the Fortran
7374 2006-10-16 Mike Stump <mrs@apple.com>
7376 * doc/invoke.texi (Darwin Options): Document -mkernel.
7377 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add
7379 (C_COMMON_OVERRIDE_OPTIONS): Add -mkernel support. Add
7380 SUBTARGET_C_COMMON_OVERRIDE_OPTIONS callout.
7381 (CC1_SPEC): Don't turn on -fPIC when -mkernel is given.
7382 (OS_MISSING_ALTIVEC): Add.
7383 * config/i386/i386.c (override_options): Add
7384 SUBSUBTARGET_OVERRIDE_OPTIONS callout.
7385 * config/i386/darwin.h (CC1_SPEC): Don't turn on -fPIC when
7386 -mkernel, -static or -mdynamic-no-pic is given.
7387 (C_COMMON_OVERRIDE_OPTIONS): Add.
7388 * config/darwin.opt (fapple-kext): Add.
7390 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add
7391 -fapple-kext, -findirect-virtual-calls, -fterminated-vtables and
7393 (SUBSUBTARGET_OVERRIDE_OPTIONS): Add.
7394 (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Add.
7395 (CPP_SPEC): Move defines for __DYNAMIC__ and __STATIC__ from here...
7396 (SUBTARGET_ATTRIBUTE_TABLE): Add apple_kext_compatibility.
7397 (TARGET_CXX_CDTOR_RETURNS_THIS): Add.
7398 (flag_mkernel): Add.
7399 (flag_apple_kext): Add.
7400 (TARGET_KEXTABI): Add.
7401 * config/darwin.c (darwin_handle_kext_attribute): Add.
7402 (DARWIN_VTABLE_P): Add.
7403 (darwin_binds_local_p): Add partial support for rebinding vtables
7405 (darwin_kextabi_p): Add.
7406 (darwin_override_options): Add.
7407 * config/darwin-protos.h (darwin_handle_kext_attribute): Add.
7408 (darwin_kextabi_p): Add.
7409 (darwin_override_options): Add.
7410 * config/darwin-c.c (darwin_cpp_builtins): ... move defines for
7411 __DYNAMIC__ and __STATIC__ here.
7413 2006-10-16 Brooks Moses <bmoses@stanford.edu>
7415 * doc/sourcebuild.texi, doc/makefile.texi, doc/install.texi:
7416 Added mention of "make pdf" target, and Texinfo requirements for
7419 2006-10-16 DJ Delorie <dj@redhat.com>
7421 * config/s390/s390.c (s390_decompose_address): Allow symbol+offset
7422 into the GOT in case we need a subreg of the address.
7424 2006-10-16 Richard Guenther <rguenther@suse.de>
7427 * doc/extend.texi (X86 Built-in Functions): Fix typos in
7428 SSE builtin documentation. Document SSE2 builtins.
7430 2006-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7432 * pa64-hpux.h (LINK_SPEC): Force __cxa_finalize to be an undefined
7433 symbol in the output file for non-shared links when -nostdlib or
7434 -nodefaultlibs isn't specified.
7436 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*): Default to
7437 posix thread support.
7439 2006-10-15 Jan Hubicka <jh@suse.cz>
7442 * cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
7443 declared always_inline even when not inlining.
7445 2006-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
7446 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7447 Andrew Pinski <pinskia@gmail.com>
7450 * builtins.c (get_pointer_alignment): Return 0 if TER is not run.
7452 2006-10-15 Jan Hubicka <jh@suse.cz>
7453 Richard Guenther <rguenther@suse.de>
7456 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
7457 process_function_and_variable_attributes on all variables, including
7458 those discovered during cgraph construction phase.
7460 2006-10-15 Bernhard Fischer <aldot@gcc.gnu.org>
7462 * final.c: Update Copyright year. Commentary typo fix. Fix whitespace
7464 2006-10-14 Uros Bizjak <uros@kss-loka.si>
7466 * config/i386/athlon.md (athlon_fist): Add fisttp.
7468 2006-10-13 David Edelsohn <edelsohn@gnu.org>
7469 Ian Lance Taylor <ian@airs.com>
7472 * expr.c (expand_expr_real_1) <NON_LVALUE_EXPR, NOP_EXPR,
7473 CONVERT_EXPR>: Change EXPAND_SUM modifier to EXPAND_NORMAL when
7476 2006-10-14 Kazu Hirata <kazu@codesourcery.com>
7478 * config/score/score.c, config/score/score.h: Fix comment
7481 2006-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7484 * Makefile.in (ALL_GTFILES_H): Use $(sort ...) instead of
7487 2006-10-13 Eric Christopher <echristo@apple.com>
7489 * config/darwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7491 2006-10-13 Carlos O'Donell <carlos@codesourcery.com>
7494 2006-10-13 Carlos O'Donell <carlos@codesourcery.com>
7495 * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
7496 alignment supported by 32-bit ELF.
7498 2006-10-13 Eric Christopher <echristo@apple.com>
7500 * config/darwin.c (darwin_emit_unwind_label): Strip
7501 name encoding. Use DECL_ASSEMBLER_NAME_SET_P.
7503 2006-10-13 Richard Guenther <rguenther@suse.de>
7505 PR tree-optimization/29446
7506 * tree-vrp.c (fix_equivalence_set): Remove.
7507 (extract_range_from_assert): Do not call fix_equivalence_set.
7508 (debug_value_range): Print a newline.
7509 (compare_name_with_value): For equivalence sets with
7510 inconsistent value ranges conservatively bail out.
7511 (compare_names): Likewise.
7513 2006-10-13 David Edelsohn <edelsohn@gnu.org>
7515 * doc/install.texi (*-ibm-aix*): Add comment about 32-bit GMP
7516 and MPFR for gfortran.
7518 2006-10-13 Carlos O'Donell <carlos@codesourcery.com>
7520 * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
7521 alignment supported by 32-bit ELF.
7523 2006-10-13 Paolo Bonzini <bonzini@gnu.org>
7527 * c-typeck.c (digest_init): Always allow initializing vectors
7528 that have static storage duration with compound literals.
7529 * tree.c (build_type_attribute_qual_variant): New, based on
7530 build_type_attribute_variant.
7531 (build_type_attribute_variant): Rewrite using the former.
7532 (make_vector_type): Use build_type_attribute_qual_variant to build
7533 type variants. Use type_hash_canon on the others.
7535 2006-10-13 Daniel Berlin <dberlin@dberlin.org>
7536 Ramana Radhakrishnan <ramana.radhakrishnan@celunite.com>
7538 * tree-flow-inline.h (zero_ssa_operands): Fix comment.
7540 2006-10-12 Jan Hubicka <jh@suse.cz>
7543 * c-decl.c (c_make_fname_decl): Do not segfault in case where
7544 current_function_decl is set but current_function_scope is not.
7546 2006-10-12 Jie Zhang <jie.zhang@analog.com>
7548 * config/bfin/bfin.md (eh_return): Call emit_jump_insn instead of
7549 emit_insn to emit eh_return_internal instruction.
7550 (eh_return_internal): Explicitly set pc.
7552 2006-10-11 Richard Guenther <rguenther@suse.de>
7554 PR tree-optimization/28230
7555 * tree-vrp.c (vrp_int_const_binop): Move flag_wrapv handling
7556 to the correct place.
7558 2006-10-11 Richard Guenther <rguenther@suse.de>
7561 * gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue
7564 2006-10-10 Brooks Moses <bmoses@stanford.edu>
7566 * configure.ac: Added pdf to "Make-hooks"
7567 * Makefile.in: Added TEXI2PDF definition, and various pdf-file
7568 targets and *.pdf file patterns in cleanup targets.
7569 * configure: Regenerated.
7571 2006-10-10 Anatoly Sokolov <aesok@post.ru>
7573 * config/avr/predicates.md: New file.
7574 * config/avr/avr.md: Include it.
7575 (REG_SP): New constant.
7576 (peepholes): Use predicates.
7577 (sbrx_branch, sbrx_and_branchhi, sbrx_and_branchsi, branch, rvbranch,
7578 difficult_branch, difficult_rvbranch, cbi, sbi, sbix_branch,
7579 sbix_branch_bit7, sbix_branch_tmp, sbix_branch_tmp_bit7): Ditto.
7581 2006-10-10 Adam Nemet <anemet@caviumnetworks.com>
7583 * config/mips/mips.c (mips_save_restore_reg): Use gen_frame_mem to
7586 2006-10-10 Jakub Jelinek <jakub@redhat.com>
7589 * builtins.c (var_decl_component_p): New function.
7590 (fold_builtin_memset, fold_builtin_memory_op): Restrict
7591 single entry optimization to variables and components thereof.
7593 2006-10-10 Richard Guenther <rguenther@suse.de>
7595 PR rtl-optimization/29323
7596 * except.c (set_nothrow_function_flags): For functions
7597 that do not bind local bail out early.
7599 2006-10-10 Ben Elliston <bje@au.ibm.com>
7601 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -m to the
7604 2006-10-09 Richard Henderson <rth@redhat.com>
7606 Revert emutls patch.
7608 2006-10-09 Richard Guenther <rguenther@suse.de>
7611 * cgraphunit.c (verify_cgraph_node): Bail out on earlier
7614 2006-10-09 Steve Ellcey <sje@cup.hp.com>
7617 * unwind-c.c (PERSONALITY_FUNCTION): Ifdef use of _Unwind_GetIPInfo.
7618 * configure.ac (HAVE_GETIPINFO): Check for _Unwind_GetIPInfo.
7619 * configure: Regenerate.
7620 * config.in: Regenerate.
7622 2006-10-09 Aldy Hernandez <aldyh@redhat.com>
7624 * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
7626 2006-10-08 Richard Sandiford <richard@codesourcery.com>
7628 * config/mips/mips.c (mips_legitimize_tls_address): Implement
7629 all TLS models in the same way as local exec if !TARGET_ABICALLS.
7630 Remove stray newline.
7632 2006-10-08 Richard Sandiford <richard@codesourcery.com>
7634 * config/mips/mips.c (mips_classify_symbol): Do not return
7635 SYMBOL_SMALL_DATA if SYMBOL_REF_WEAK.
7636 (mips_in_small_data_p): Tweak comments.
7638 2006-10-08 Richard Sandiford <richard@codesourcery.com>
7640 * config/mips/elf.h (HANDLE_PRAGMA_PUSH_POP): Define.
7642 2006-10-07 Kazu Hirata <kazu@codesourcery.com>
7644 * gimplify.c, sched-int.h: Fix comment typos.
7646 * sched-int.h: Fix comment typos.
7648 2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7650 * sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P):
7652 * sched-ebb.c (begin_schedule_ready): Use them.
7653 * haifa-sched.c (schedule_insn, move_insn, try_ready,
7654 add_to_speculative_block, create_check_block_twin, speculate_insn,
7655 fix_jump_move, move_block_after_check): Ditto.
7656 * sched-rgn.c (new_ready): Ditto.
7658 2006-10-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7660 PR rtl-optimization/29128
7661 * sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro.
7662 * sched-ebb.c (advance_target_bb): Use it to fix condition to
7663 allow interblock movement of speculation checks.
7665 2006-10-06 Zdenek Dvorak <dvorakz@suse.cz>
7668 * tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers
7669 casted to integer type.
7670 (get_address_cost): Decrease cost of [symbol + index] addressing modes
7671 if they are significantly more expensive than [reg + index] ones.
7673 2006-10-06 Jakub Jelinek <jakub@redhat.com>
7675 PR tree-optimization/29330
7676 * tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
7677 (initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
7678 on newly allocated ddrs.
7679 (find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
7680 to VEC (loop_p, heap) pointer.
7681 (compute_data_dependences_for_loop): Adjust caller.
7682 (free_dependence_relations): Free DDR_LOOP_NEST.
7684 * tree-loop-linear.c (linear_transform_loops): Don't forget to
7685 free DEPENDENCE_RELATIONS and DATAREFS.
7688 * builtins.c (expand_builtin_sync_operation,
7689 expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
7690 Use convert_to_mode to handle promoted arguments.
7692 2006-10-06 J"orn Rennecke <joern.rennecke@st.com>
7694 * print-tree.c (print_node_brief, print_node): Print sign of Inf.
7696 2006-10-06 J"orn Rennecke <joern.rennecke@st.com>
7698 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define.
7700 2006-10-05 Uros Bizjak <uros@kss-loka.si>
7702 * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",
7703 "sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"):
7704 Use <modeconstraint> instead of "r" as operand 1 constraint.
7706 2006-10-06 Olivier Hainque <hainque@adacore.com>
7708 * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
7709 Don't recurse on the pointed-to type.
7710 * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
7711 DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
7712 types with components of variable size.
7714 2006-10-06 Danny Smith <dannysmith@users.sourceforge.net>
7716 * config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
7718 2006-10-06 Jakub Jelinek <jakub@redhat.com>
7720 PR tree-optimization/29290
7721 * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
7725 * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
7726 * config/i386/predicates.md (local_symbolic_operand): Likewise.
7729 * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
7730 the number of vector elements fill the rest with zeros.
7732 2006-10-05 Richard Sandiford <richard@codesourcery.com>
7734 * config/mips/mips.c (mips_pass_by_reference): Do not return false
7735 for EABI if type is NULL. Use a size check based on GET_MODE_SIZE
7738 2006-10-05 Bernd Schmidt <bernd.schmidt@analog.com>
7740 * config/bfin/bfin.md (subsi3): Lose expander, change previously
7741 unnamed pattern into subsi3. Use correct constraints/predicates.
7742 * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
7743 * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
7745 2006-10-05 Ira Rosen <irar@il.ibm.com>
7747 * doc/loop.texi: Add data references analysis description.
7749 2006-10-04 Brooks Moses <bmoses@stanford.edu>
7751 * doc/gcov.texi: Add formatting to "Invoking gcov" section head.
7753 2006-10-04 Richard Henderson <rth@redhat.com>
7754 Jakub Jelinek <jakub@redhat.com>
7756 * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
7757 * builtin-types.def (BT_WORD): Make unsigned.
7758 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
7759 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
7760 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
7761 * c-decl.c (grokdeclarator): Don't error if !have_tls.
7762 * c-parser.c (c_parser_omp_threadprivate): Likewise.
7763 * cgraph.c (decide_is_variable_needed): Look at force_output.
7764 Recurse for emulated tls.
7765 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
7766 checks redundant with decide_is_variable_needed.
7767 (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
7768 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
7770 * expr.c (emutls_var_address): New.
7771 (expand_expr_real_1): Expand emulated tls.
7772 (expand_expr_addr_expr_1): Likewise.
7773 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
7774 * output.h (emutls_finish): Declare.
7775 * toplev.c (compile_file): Call it.
7776 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
7777 address before wrapping in CONST.
7778 * varasm.c (emutls_htab, emutls_object_type): New.
7779 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
7780 (get_emutls_object_name, get_emutls_object_type): New.
7781 (get_emutls_init_templ_addr, emutls_decl): New.
7782 (emutls_common_1, emutls_finish): New.
7783 (assemble_variable): When emulating tls, swap decls; generate
7784 constructor for the emutls objects.
7785 (do_assemble_alias): When emulating tls, swap decl and target name.
7786 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
7788 * emutls.c: New file.
7789 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
7790 tls_object for real tls.
7792 2006-10-04 Zack Weinberg <zackw@panix.com>
7794 Fix bug in constraint-check generator, reported by Rask Ingemann
7796 * genpreds.c (add_constraint): Don't remove anything from the
7798 (write_tm_constrs_h): Detect whether "op" argument is used, and
7799 mark it ARG_UNUSED if it isn't.
7800 (write_insn_const_int_ok_for_constraint): Skip the part of the
7801 expression that would test whether "op" (which is not available
7802 here) is a CONST_INT.
7804 2006-10-04 Ryan Mansfield <rmansfield@qnx.com>
7807 * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
7809 2006-10-03 Geoffrey Keating <geoffk@apple.com>
7811 * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
7812 current Leopard versions.
7813 * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
7815 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
7817 * doc/install.texi: Fix typos.
7819 2006-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7821 * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
7822 * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
7823 * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
7825 2006-10-02 Jack Howarth <howarth@bromo.med.uc.edu>
7827 * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
7828 arg to be struct mach_header_64* instead.
7830 2006-10-02 Jakub Jelinek <jakub@redhat.com>
7833 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
7834 side effects after the outer expression's post side effects.
7836 2006-10-01 Sandra Loosemore <sandra@codesourcery.com>
7838 * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix
7839 comments to reflect actual behavior and relationship between
7840 DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
7842 * doc/c-tree.texi (Working with declarations): Fix documentation
7843 of FIELD_DECL likewise.
7845 2006-10-01 Ryan Mansfield <rmansfield@qnx.com>
7848 * doc/extend.texi: Add used variable attribute description.
7850 2006-09-30 Joseph S. Myers <joseph@codesourcery.com>
7853 * c.opt (Woverride-init): New.
7854 * c-opts.c (c_common_post_options): Default warn_override_init to
7856 * c-typeck.c (add_pending_init, output_init_element): Warn for
7857 overriding initializers without side effects.
7858 * doc/invoke.texi (-Woverride-init): Document.
7861 2006-09-30 Eric Botcazou <ebotcazou@libertysurf.fr>
7863 PR rtl-optimization/28096
7864 * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
7865 assignment has already been used as a destination earlier in the block.
7867 2006-09-29 Eric Botcazou <ebotcazou@adacore.com>
7869 * builtins.c (expand_builtin_setjmp): Delete.
7870 (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
7871 <BUILT_IN_SETJMP_SETUP>: New case.
7872 <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
7873 <BUILT_IN_SETJMP_RECEIVER>: Likewise.
7874 * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
7875 (BUILT_IN_SETJMP_DISPATCHER): Likewise.
7876 (BUILT_IN_SETJMP_RECEIVER): Likewise.
7877 * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
7878 (lower_function_body): Initialize it to false. If it is set to true
7879 at the end of the processing, emit the setjmp dispatcher.
7880 (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
7881 is __builtin_setjmp and set calls_builtin_setjmp to true as well.
7882 <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
7883 on the rhs of the assignment.
7884 (lower_builtin_setjmp): New function.
7885 * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
7886 BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
7887 * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
7888 to detect calls that can go to non-local labels. Use specific
7889 helper to create the abnormal edges associated with them.
7890 <MODIFY_EXPR>: Likewise.
7891 (make_abnormal_goto_edges): New function extracted from...
7892 (make_goto_expr_edges): ...here. Call it for computed gotos.
7893 (simple_goto_p): Minor tweak.
7894 (tree_can_make_abnormal_goto): New predicate.
7895 (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
7896 (tree_purge_dead_abnormal_call_edges): New function.
7897 * tree-flow.h (tree_can_make_abnormal_goto): Declare.
7898 (tree_purge_dead_abnormal_call_edges): Likewise.
7899 (make_abnormal_goto_edges): Likewise.
7900 * tree-inline.c (expand_call_inline): Simplify statement frobbing.
7901 Purge all dead abnormal edges if the call was in the last statement.
7902 * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
7903 (execute_fixup_cfg): If there are non-local labels in the function,
7904 scan the basic blocks and split them at calls that can go to non-local
7905 labels or add missing abnormal call edges. Write down the CFG in the
7907 (pass_fixup_cfg): Remove TODO_dump_func flag.
7908 * unwind-sjlj.c: Poison setjmp.
7909 * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
7910 * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
7911 (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
7912 (DONT_USE_BUILTIN_SETJMP): Document it.
7914 2006-09-28 Geoffrey Keating <geoffk@apple.com>
7917 * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
7918 to 1 when __ppc64__ is defined.
7919 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
7921 * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
7923 2006-09-28 Steve Ellcey <sje@cup.hp.com>
7925 * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
7926 * config/ia64/unwind-hpux.c: Delete.
7928 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
7930 * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
7931 on the element before gimplifying it, instead of punting if it is of
7934 2006-09-28 Zdenek Dvorak <dvorakz@suse.cz>
7936 * doc/loop.texi: New file.
7937 * doc/gccint.texi: Reference loop.texi.
7938 * Makefile.in (loop.texi): Add.
7940 2006-09-27 Geoffrey Keating <geoffk@apple.com>
7942 * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
7944 * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7945 * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7947 2006-09-28 Kaz Kojima <kkojima@gcc.gnu.org>
7949 * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
7951 2006-09-27 Steven G. Kargl <kargl@gcc.gnu.org>
7953 * doc/install.texi: Document required versions of GMP and MPFR.
7955 2006-09-27 Paul Brook <paul@codesourcery.com>
7958 * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
7960 2006-09-27 Richard Sandiford <richard@codesourcery.com>
7962 * reload1.c (alter_reg): Require the alignment of the stack slot to
7963 be at least reg_max_ref_width bytes.
7964 (scan_paradoxical_subregs): Record the largest width in
7967 2006-09-26 Jakub Jelinek <jakub@redhat.com>
7971 * tree-nested.c (struct nesting_info): Added static_chain_added.
7972 (convert_call_expr): Set static_chain_added when adding static
7973 chain. Handle OMP_PARALLEL and OMP_SECTION.
7975 2006-09-25 Matthias Klose <doko@debian.org>
7977 * doc/invoke.texi: Add missing full stop.
7979 2006-09-25 Richard Henderson <rth@redhat.com>
7981 * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
7982 before cgraph_function_flags_ready.
7984 2006-09-24 Zdenek Dvorak <dvorakz@suse.cz>
7985 Adam Nemet <anemet@caviumnetworks.com>
7987 * tree-ssa-loop-ivopts.c (aff_combination_convert,
7988 determine_common_wider_type): New functions.
7989 (get_computation_aff): Use them to simplify arithmetic between
7990 UBASE and CBASE if they are shortened from the same type.
7992 2006-09-24 Kazu Hirata <kazu@codesourcery.com>
7995 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
7996 -2147483647 - 1 instead of 0x80000000.
7998 2006-09-23 Revital1 Eres <ERES@il.ibm.com>
8000 * flags.h (HONOR_NANS): Fix typo in comment.
8002 2006-09-23 Uros Bizjak <uros@kss-loka.si>
8004 * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
8006 2006-09-23 Jakub Jelinek <jakub@redhat.com>
8010 * tree.c (merge_attributes, attribute_list_contained): If both
8011 TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
8013 * c-typeck.c (comptypes_internal): Don't consider aggregates
8014 in different TUs as compatible if there one set of attributes is
8015 not a subset of the other type's attributes.
8016 (composite_type): Try harder not to create a new aggregate type.
8018 2006-09-22 Geoffrey Keating <geoffk@apple.com>
8020 * config/i386/driver-i386.c: Always define host_detect_local_cpu.
8021 * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
8022 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT.
8023 (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
8024 than replicating condition above.
8025 * config.host (i[34567]86-*-*): Always use driver-i386.o.
8027 * config/darwin.h (LINK_SYSROOT_SPEC): New.
8028 (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
8029 the linker by default.
8031 2006-09-22 Mike Stump <mrs@apple.com>
8033 * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
8036 2006-09-22 Richard Guenther <rguenther@suse.de>
8039 * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
8040 sort of stack variables stable.
8042 2006-09-22 Peter Bergner <bergner@vnet.ibm.com>
8045 * explow.c (force_reg): Set REG_POINTER flag according to
8048 2006-09-22 Zdenek Dvorak <dvorakz@suse.cz>
8050 PR tree-optimization/28888
8051 * tree-if-conv.c (combine_blocks): Rewritten.
8052 * tree-cfg.c (tree_verify_flow_info): Check that edges with
8053 EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
8055 2006-09-22 Jakub Jelinek <jakub@redhat.com>
8057 * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
8060 2006-09-21 Richard Sandiford <richard@codesourcery.com>
8062 * varasm.c (copy_constant): Fix reversed gcc_assert check.
8064 2006-09-21 Janis Johnson <janis187@us.ibm.com>
8066 * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
8068 2006-09-21 Roger Sayle <roger@eyesopen.com>
8071 * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
8072 dw_fde_current_label, to be the start of the function, i.e. the same
8073 value as dw_fde_begin.
8075 2006-09-20 Richard Sandiford <richard@codesourcery.com>
8077 * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
8078 * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
8079 (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
8080 (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
8081 (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
8082 (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
8083 (abs<mode>2, neg<mode>2): Likewise.
8084 * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
8085 (*mips_abs_ps): New define_insn.
8087 2006-09-20 Josh Conner <jconner@apple.com>
8090 * calls.c (expand_call): Allow reuse of structure return stack
8093 2006-09-20 Paul Brook <paul@codesourcery.com>
8095 * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
8098 2006-09-20 Janis Johnson <janis187@us.ibm.com>
8100 * doc/extend.texi (Decimal Float): Update for latest draft TR,
8101 clean up terminology.
8103 2006-09-20 Steve Ellcey <sje@cup.hp.com>
8106 * ifcvt.c (dead_or_predicable): Don't predicate then blocks
8107 with tablejumps in them.
8109 2006-09-20 Jakub Jelinek <jakub@redhat.com>
8112 * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
8113 wrap it into TARGET_EXPR.
8115 2006-09-20 Eric Christopher <echristo@apple.com>
8117 * config/i386/i386.c (x86_fisttp): Remove.
8118 * config/i386/i386.h (x86_fisttp): Ditto.
8119 (TARGET_FISTTP): Ditto.
8121 2006-09-19 Eric Christopher <echristo@apple.com>
8123 * doc/tm.texi (OBJC_JBLEN): Describe.
8124 * config/i386/darwin.h (OBJC_JBLEN): Define.
8125 * config/rs6000/darwin.h: Ditto.
8127 2006-09-19 Steven Bosscher <steven@gcc.gnu.org>
8129 PR rtl-optimization/21299
8130 * reload1.c (reload): Purge invalid ASMs in the final pass.
8132 2006-09-19 Steve Ellcey <sje@cup.hp.com>
8135 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
8136 pointers as legitimate constants.
8138 2006-09-19 Paul Brook <paul@codesourcery.com>
8141 * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
8143 2006-09-17 Zdenek Dvorak <dvorakz@suse.cz>
8145 PR tree-optimization/28887
8146 * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
8147 component parts from the reference.
8148 (gather_memory_references_ref): Record the reference without the
8149 nonaddressable component parts.
8151 2006-09-17 Steven Bosscher <steven@gcc.gnu.org>
8154 * c-opts.c (c_common_handle_option): Ignore the -std options
8155 if the input language is assembly.
8157 2006-09-17 Ira Rosen <irar@il.ibm.com>
8160 * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
8162 (ptr_ptr_may_alias_p): Likewise.
8163 (record_record_differ_p): New function.
8164 (base_object_differ_p): Call record_record_differ_p.
8166 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
8169 * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
8170 away for the expr argument.
8172 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
8175 * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
8176 before using it for dumping after vectorizing loops.
8178 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
8179 Jack Howarth <howarth@bromo.med.uc.edu>
8182 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
8183 skip on error_mark_node.
8184 (rs6000_darwin64_record_arg_recurse): Likewise.
8186 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
8188 * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
8189 * doc/rtl.texi: Remove related documentation.
8191 2006-09-16 Bernd Schmidt <bernd.schmidt@analog.com>
8193 * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
8196 2006-09-15 Jim Wilson <wilson@specifix.com>
8198 * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
8199 Handle symbol offsets same as they are handled in ia64_expand_move
8202 2006-09-16 Andreas Tobler <a.tobler@schweiz.org>
8204 * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
8205 Add forgotten parameter to the fprintf call.
8207 2006-09-15 Steve Ellcey <sje@cup.hp.com>
8209 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
8211 2006-09-15 Uros Bizjak <uros@kss-loka.si>
8213 * doc/contrib.texi: Add my entry.
8215 2006-09-15 Nick Clifton <nickc@redhat.com>
8217 * doc/md.texi (Processor pipeline description): Fix typo in
8218 example of how to use the absence_set directive and reword the
8219 description to make it slightly easier to read.
8221 2006-09-15 Bernd Schmidt <bernd.schmidt@analog.com>
8223 * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
8224 * loop-doloop.c (doloop_optimize): Use it to limit costs of
8225 expanding the number of iterations.
8226 * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
8228 * cfgrtl.c (emit_insn_at_entry): New function.
8229 * rtl.h (emit_insn_at_entry): Declare it.
8230 * integrate.c (emit_initial_value_sets): Use it.
8232 * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
8234 * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
8236 (struct loop_work and related VEC declarations): Delete.
8237 (bfin_dump_loops): Print out new member bad.
8238 (bfin_bb_in_loop): Use plain bitmap test. Don't recurse.
8239 (bfin_scan_loop): Don't recurse.
8240 (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
8241 loops. No longer need to update outer loops if the current one is
8242 found bad. Move some validitiy checks to bfin_discover_loop.
8243 (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
8244 but changed not to check for nesting. Also changed to use the new bad
8246 (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
8247 time. Use bitmap based test to discover loop nesting.
8249 2006-09-15 Kazu Hirata <kazu@codesourcery.com>
8251 * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
8254 2006-09-14 Richard Guenther <rguenther@suse.de>
8255 Kazu Hirata <kazu@codesourcery.com>
8257 PR middle-end/28884.
8258 * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
8259 (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
8260 Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
8261 with TARGET_FUNCTION_VALUE.
8263 2006-09-14 Anatoly Sokolov <aesok@post.ru>
8266 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
8268 2006-09-13 Aldy Hernandez <aldyh@redhat.com>
8270 * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
8273 2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
8276 * dwarf2out.c (loc_descriptor_from_tree_1): Handle
8279 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
8281 * basic_block.h (bb_has_eh_pred): Fix comment.
8283 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
8285 * flow.c (calculate_global_regs_live): Invalidate eh registers
8286 on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
8287 (propagate_block): Handle eh registers as if they were set at basic
8289 * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
8291 * global.c (global_conflicts): Make eh registers to conflict with
8292 pseudos live at basic block begin.
8293 * basic_block.h (bb_has_eh_pred): New function.
8295 2006-09-13 Richard Sandiford <richard@codesourcery.com>
8297 PR rtl-optimization/28982
8298 * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
8299 index of a PRE_MODIFY or POST_MODIFY address.
8300 * reload1.c (inc_for_reload): Use find_replacement on the original
8301 base and index registers.
8303 2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
8305 * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
8306 for -Os. Update __m128 alignment requirement.
8308 2006-09-13 Jan Hubicka <jh@suse.cz>
8310 * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
8312 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
8314 PR rtl-optimization/28243
8315 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
8316 the insn to which the note was originally attached.
8318 2006-09-12 Andrew Pinski <pinskia@physics.uc.edu>
8319 Roger Sayle <roger@eyesopen.com>
8321 * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
8322 outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
8323 on platforms that don't use dwarf for debug info.
8325 2006-09-12 Jason Merrill <jason@redhat.com>
8328 * builtins.c (expand_builtin_setjmp_receiver): Clobber
8329 hard_frame_pointer_rtx after using it to update the frame pointer.
8331 2006-09-12 Roger Sayle <roger@eyesopen.com>
8333 * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
8334 (TARGET_ASM_CLOSE_PAREN): Likewise.
8335 * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
8336 (TARGET_ASM_CLOSE_PAREN): Likewise.
8338 2006-09-12 Roger Sayle <roger@eyesopen.com>
8341 * config/alpha/alpha.c (alpha_start_function): Don't emit stack
8342 frame information for frames larger than 512 Kbytes on Tru64 when
8343 using the native assembler.
8345 2006-09-12 Roger Sayle <roger@eyesopen.com>
8349 * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
8350 and symbols. Instead use the implementation from cse.c's hash_rtx.
8352 2006-09-12 Jan Hubicka <jh@suse.cz>
8354 PR rtl-optimization/28071
8355 * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
8356 (vect_transform_loop): Likewise.
8357 * tree-vectorizer.c (new_loop_vec_info): Likewise.
8358 (new_loop_vec_info): Likewise.
8359 (destroy_loop_vec_info): Likewise.
8360 * tree-dfa.c (create_var_ann): Use GCC_CNEW.
8361 (create_stmt_ann): Likewise.
8362 (create_tree_ann): Rename to ...
8363 (create_tree_common_ann): ... this one; allocate only the common part
8365 * tree-vn.c (set_value_handle): Use get_tree_common_ann.
8366 (get_value_handle): Likewise.
8367 * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
8368 get_tree_common_ann.
8369 * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
8370 (vinfo_for_stmt): Use stmt annotations.
8371 * tree-flow.h (tree_ann_common_t): New type.
8372 (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
8373 (tree_ann, get_tree_ann, create_tree_ann): New.
8374 * tree-flow-inline.h (get_function_ann): Do more type checking.
8375 (stmt_ann): Likewise.
8376 (tree_ann): Rename to ...
8377 (tree_common_ann): ... this one; return ony common_ann
8378 (get_tree_ann): Rename to ...
8379 (tree_common_ann): This one; return only common_ann.
8380 * tree-vect-patterns.c (vect_pattern_recog_1): Update call
8383 2006-09-11 Geoffrey Keating <geoffk@apple.com>
8385 * config.gcc (i[34567]86-*-darwin*): Set with_arch and
8386 with_cpu by default.
8388 * dwarf2out.c (dwarf_file_data): New.
8389 (enum dw_val_class): Add dw_val_class_file.
8390 (struct dw_val_struct): Add val_file.
8391 (file_table): Change to a hash table.
8392 (file_table_emitted): Delete.
8393 (file_table_last_lookup_index): Delete.
8394 (emitcount): Delete.
8395 (last_emitted_file): New.
8396 (lookup_filename): Change prototype to return a struct dwarf_file_data.
8397 (init_file_table): Delete.
8398 (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
8399 (AT_addr): Add comment.
8403 (print_die): Handle dw_val_class_file.
8404 (print_dwarf_line_table): Update for new file table structure.
8405 (attr_checksum): Do checksum a filename.
8406 (same_dw_val_p, same_attr_p): Do compare a filename.
8407 (size_of_die): Handle dw_val_class_file.
8408 (value_format): Likewise.
8409 (output_die): Likewise. Also, call maybe_emit_file here.
8410 (struct file_info): Constify filenames. Make file_idx a pointer
8411 to a struct dwarf_file_data.
8412 (struct dir_info): Constify directory names. Remove 'used' field.
8413 (struct file_name_acquire_data): New.
8414 (file_name_acquire): New.
8415 (output_file_names): Modify to handle new file data structures.
8416 (add_src_coords_attributes): Use add_AT_file.
8417 (add_call_src_coords_attributes): Likewise.
8418 (dwarf2out_imported_module_or_decl): Likewise.
8419 (gen_subprogram_die): Modify for new file data structures.
8420 (gen_variable_die): Likewise.
8421 (file_table_eq): New.
8422 (file_table_hash): New.
8423 (file_table_last_lookup): New.
8424 (lookup_filename): Rewrite to handle new file data structures.
8425 (maybe_emit_file): Rewrite to handle new file data structures.
8426 (dwarf2out_source_line): Always call lookup_filename and
8428 (dwarf2out_init): Create file_table here.
8429 (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
8430 (file_table_relative_p): New.
8431 (dwarf2out_finish): Change detection of relative filenames
8432 to work with new file data structures. Move output_line_info call
8433 after debug_info output.
8435 2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
8440 * config/i386/i386.c (override_options): Always default to 16
8441 byte stack boundary.
8443 2006-09-11 Alexandre Oliva <aoliva@redhat.com>
8446 * var-tracking.c (dump_dataflow_set): Start dumping at
8448 (clobber_variable_part): Kill only the variable part in
8449 registers holding it, leaving other variables alone.
8451 2006-09-11 Josh Triplett <josh@freedesktop.org>
8453 * doc/extend.texi (Other Builtins): Actually use the macro
8454 argument in the documentation example for
8455 __builtin_types_compatible_p.
8457 2006-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
8459 PR rtl-optimization/28726
8460 * sched-deps.c (sched_analyze_reg): New function extracted from...
8461 (sched_analyze_1): ...here. Call it to analyze references to
8462 registers. Treat again writes to a stack register as writing to the
8464 (sched_analyze_2): ...and here. Call it to analyze references to
8465 registers. Treat again reads of a stack register as reading the
8468 2006-09-11 Guenter Roeck <guenter@roeck-us.net>
8469 David Edelsohn <edelsohn@gnu.org>
8472 * config/rs6000/spe.md (frob_df_di): Remove %H.
8473 (frob_di_df): Remove %H. Change evmergelo to mr.
8474 (frob_di_df_2): Remove %H. Change evldd to two loads.
8476 2006-09-11 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
8478 * doc/cpp.texi: Fix names of charset options.
8480 2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
8483 * config/i386/i386.c (override_options): Use 128-bit
8484 stack boundary always for 64bits.
8486 2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
8488 PR rtl-optimization/28636
8489 * combine.c (force_to_mode): Test for side-effects before
8490 substituting by zero.
8491 (simplify_shift_const): Likewise for zero or other constants.
8493 2006-09-10 Steven Bosscher <steven@gcc.gnu.org>
8496 * builtins.c (expand_builtin_setjmp): Force next_lab to be
8499 2006-09-10 Richard Sandiford <richard@codesourcery.com>
8502 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
8503 * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
8504 returned by mode_for_size, rather than the mode of src itself,
8505 to choose between 32-bit and 64-bit patterns.
8506 (mips_mem_fits_mode_p): New function.
8507 * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
8508 that the size of the source matches the size of the destination.
8509 (mov_<store>l, mov_<store>r): Likewise.
8511 2006-09-10 Eric Christopher <echristo@apple.com>
8513 * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
8516 2006-09-09 Eric Christopher <echristo@apple.com>
8519 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
8522 2006-09-09 Roger Sayle <roger@eyesopen.com>
8523 Nicolas Setton <setton@adacore.com>
8525 * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
8527 2006-09-10 Andreas Schwab <schwab@suse.de>
8529 * config/m68k/m68k.md (bungt_rev): New pattern.
8531 2006-09-09 Paolo Bonzini <bonzini@gnu.org>
8532 Dale Johannesen <dalej@apple.com>
8535 * regclass.c (struct reg_pref): Update documentation.
8536 (regclass): Set prefclass to NO_REGS if memory is the best option.
8537 (record_reg_classes): Cope with a prefclass set to NO_REGS.
8539 2006-09-08 Eric Christopher <echristo@apple.com>
8541 * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
8542 * config/t-slibgcc-darwin: Support x86_64 multilib.
8543 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
8544 Return 1 for x86_64-darwin.
8545 * config/i386/t-darwin: Add m64 multilib.
8546 (LIB2_SIDITI_CONV_FUNCS): Use.
8547 (LIB2FUNCS_EXTRA): Ditto.
8548 * config/i386/darwin.h: Support x86_64.
8549 * config/i386/i386.c (override_options): Turn on flag_pic
8550 for x86_64-darwin. Disable flag_omit_pointer.
8551 (get_pc_thunk_name): Assert !TARGET_64BIT.
8552 (legitimate_address_p): Disable machopic addressing for
8554 (legitimize_pic_address): Ditto.
8555 (ix86_expand_move): Ditto.
8556 (ix86_expand_call): Ditto.
8557 (machopic_output_stub): Ditto.
8558 * config/darwin.c (machopic_select_section): Support literal16.
8559 (machopic_select_rtx_section): Ditto.
8560 * config/darwin-sections.def: Ditto.
8561 * config/darwin-64.c: New.
8563 2006-09-08 Joseph S. Myers <joseph@codesourcery.com>
8566 * c-tree.h (struct c_arg_info): Add pending_sizes.
8567 * c-parser.c (c_parser_parms_declarator,
8568 c_parser_parms_list_declarator): Initialize pending_sizes.
8569 * c-decl.c (get_parm_info): Initialize pending_sizes.
8570 (get_parm_info): Set pending_sizes.
8571 (grokdeclarator): Call put_pending_sizes for parameters for
8572 function definition only.
8574 2006-09-07 Jason Merrill <jason@redhat.com>
8577 * varasm.c (output_constant): Only strip actual no-op conversions.
8580 * config/i386/i386.c (override_options): Use 128-bit
8581 stack boundary if -msse.
8583 2006-09-07 Eric Christopher <echristo@apple.com>
8585 * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
8587 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
8590 2006-09-07 Geoffrey Keating <geoffk@apple.com>
8592 * dwarf2out.c: Remove strange characters from comment above
8593 dwarf2out_frame_debug_expr.
8595 2006-09-07 Eric Christopher <echristo@apple.com>
8597 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
8598 * config/darwin.h: ... to here.
8600 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
8602 * config/i386/i386.c (x86_partial_flag_reg_stall): New.
8604 * config/i386/i386.h (x86_partial_flag_reg_stall): New.
8605 (TARGET_PARTIAL_FLAG_REG_STALL): New.
8607 * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
8608 TARGET_PARTIAL_FLAG_REG_STALL.
8609 (*ashldi3_cconly_rex64): Likewise.
8610 (*ashlsi3_cmp): Likewise.
8611 (*ashlsi3_cconly): Likewise.
8612 (*ashlsi3_cmp_zext): Likewise.
8613 (*ashlhi3_cmp): Likewise.
8614 (*ashlhi3_cconly): Likewise.
8615 (*ashlqi3_cmp): Likewise.
8616 (*ashlqi3_cconly): Likewise.
8617 (*ashrdi3_cmp_rex64): Likewise.
8618 (*ashrdi3_cconly_rex64): Likewise.
8619 (*ashrsi3_cmp): Likewise.
8620 (*ashrsi3_cconly): Likewise.
8621 (*ashrsi3_cmp_zext): Likewise.
8622 (*ashrhi3_cmp): Likewise.
8623 (*ashrhi3_cconly): Likewise.
8624 (*ashrqi3_cmp): Likewise.
8625 (*ashrqi3_cconly): Likewise.
8626 (*lshrdi3_cmp_rex64): Likewise.
8627 (*lshrdi3_cconly_rex64): Likewise.
8628 (*lshrsi3_cmp): Likewise.
8629 (*lshrsi3_cconly): Likewise.
8630 (*lshrsi3_cmp_zext): Likewise.
8631 (*lshrhi3_cmp): Likewise.
8632 (*lshrhi3_cconly): Likewise.
8633 (*lshrqi2_cmp): Likewise.
8634 (*lshrqi2_cconly): Likewise.
8636 2006-09-07 Uros Bizjak <uros@kss-loka.si>
8639 * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
8640 "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
8641 "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
8642 "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
8643 "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
8644 "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
8645 "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
8646 "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
8647 "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
8648 implement only CC setting effects of shift instructions.
8650 2006-09-07 Martin Michlmayr <tbm@cyrius.com>
8652 * doc/contrib.texi: Add myself.
8654 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
8657 * stor-layout.c (relayout_decl): Don't zero the alignment if it
8658 was set by the user.
8660 2006-09-07 Paolo Bonzini <bonzini@gnu.org>
8663 * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
8664 (divsi_inv_m1): Use them.
8665 (UNSPEC_DIV_INV_TABLE): New constant.
8667 2006-09-06 James E Wilson <wilson@specifix.com>
8670 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
8671 then call count_or_remove_death_notes.
8673 2006-09-06 Jason Merrill <jason@redhat.com>
8676 * tree-inline.c (copy_result_decl_to_var): New fn.
8677 (declare_return_variable): Use it. Call declare_inline_vars here.
8678 (expand_call_inline): Not here.
8680 2006-09-06 Diego Novillo <dnovillo@redhat.com>
8682 * doc/contrib.texi: Update my entry.
8684 2006-09-06 Nick Clifton <nickc@redhat.com>
8686 * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
8688 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
8691 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
8692 (canonicalize_induction_variables): Likewise.
8693 (tree_unroll_loops_completely): Likewise.
8694 (tree_ssa_prefetch_arrays): Likewise.
8695 (remove_empty_loops): Likewise.
8696 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
8697 TODO_cleanup_cfg instead of directly calling
8698 cleanup_tree_cfg_loop.
8699 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
8701 (tree_unroll_loops_completely): Likewise.
8702 (remove_empty_loops): Likewise.
8703 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
8704 * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
8705 of tree_ssa_unswitch_loops.
8706 (tree_ssa_loop_ivcanon): Use the return value of
8707 canonicalize_induction_variables.
8708 (tree_ssa_empty_loop): Use the return value of
8710 (tree_complete_unroll): Use the return value of
8711 tree_unroll_loops_completely.
8712 (tree_ssa_loop_prefetch): Use the return value of
8713 tree_ssa_prefetch_arrays.
8714 * passes.c (execute_todo): Before Cleanup CFG, set
8715 updating_used_alone and after cleanup CFG, call
8716 recalculate_used_alone.
8718 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
8721 * tree-vect-transform.c (vectorizable_condition): Move the check
8722 for the type after the check for simple condition.
8724 2006-09-05 J"orn Rennecke <joern.rennecke@st.com>
8725 Kaz Kojima <kkojima@gcc.gnu.org>
8728 * mode-switching.c (optimize_mode_switching): Make the destination
8729 block of an abnormal edge have no anticipatable mode. Don't
8730 insert mode switching code at the end of the source block of
8733 2006-09-05 Paolo Bonzini <bonzini@gnu.org>
8735 PR rtl-optimization/26847
8736 * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
8737 (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
8738 (simplify_plus_minus): Count n_constants while filling ops. Replace
8739 qsort with insertion sort. Before going through the array to simplify
8740 pairs, sort it. Delay early exit until after the first sort, exiting
8741 only if no swaps occurred. Simplify pairs in reversed order, without
8742 special-casing the first iteration. Pack ops after simplifying pairs.
8744 2006-09-05 Anatoly Sokolov <aesok@post.ru>
8746 * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
8747 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8748 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8749 (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
8751 2006-09-05 Richard Guenther <rguenther@suse.de>
8753 PR tree-optimization/28900
8754 * tree-if-conv.c (find_phi_replacement_condition): Gimplify
8755 compound conditional before creating COND_EXPR condition.
8757 2006-09-05 Richard Guenther <rguenther@suse.de>
8759 PR tree-optimization/28905
8760 * tree-vrp.c (fix_equivalence_set): Manually implement
8761 !value_ranges_intersect_p to also handle symbolic ranges.
8763 2006-09-05 Richard Guenther <rguenther@suse.de>
8766 * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
8769 2006-09-04 Eric Botcazou <ebotcazou@libertysurf.fr>
8771 PR rtl-optimization/27616
8772 * cse.c (table_size): New static variable.
8773 (new_basic_block): Initialize it to 0.
8774 (remove_from_table): Decrement it.
8775 (insert): Increment it.
8776 (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
8777 (fold_rtx_mem): Enforce a cap on the recursion depth. Call
8778 fold_rtx_mem_1 if under the cap.
8779 (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
8780 the lookup of the equivalent expression and test for equality of the
8781 first operand of the equivalent expression before in turn looking up
8782 an equivalent constant for the second operand.
8784 2006-09-02 Geoffrey Keating <geoffk@apple.com>
8787 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
8788 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
8789 pointer, instead of assuming it is possible to derive the
8790 correct args size from a call insn.
8792 2006-09-02 Jakub Jelinek <jakub@redhat.com>
8795 * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
8796 (fold_builtin_mempcpy): Rename to...
8797 (fold_builtin_memory_op): ... this. Optimize one element copy
8799 (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
8801 (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
8802 (expand_builtin_memcpy, expand_builtin_mempcpy,
8803 expand_builtin_memmove): Likewise. Use fold_builtin_memory_op.
8804 (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
8805 BUILT_IN_BCOPY. Use fold_builtin_memory_op for
8806 BUILT_IN_MEM{CPY,PCPY,MOVE}.
8808 2006-09-01 DJ Delorie <dj@redhat.com>
8810 * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
8811 (stzx_16): Likewise.
8812 ("stzx_24_<mode>"): Likewise.
8813 ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
8814 ("cmp<mode>_op"): New.
8815 (cmp<mode>): Change to expander; just save operands.
8817 (b<code>): Change to expander, emit compare here.
8818 (s<code>_op): Change to use split and expander.
8819 (s<code>_24_op): Likewise.
8820 (s<code>_<mode>): New.
8821 (s<code>_<mode>_24): New.
8822 (movqicc_<code>_<mode): New.
8823 (movhicc_<code>_<mode>): New.
8826 * config/m32c/m32c.c (compare_op0, compare_op1): New.
8827 (m32c_pend_compare): New.
8828 (m32c_unpend_compare): New.
8829 (m32c_expand_scc): New.
8830 (m32c_expand_movcc): Emit the compare also.
8831 * config/m32c/predicates.md (mra_nopp_operand): New.
8833 2006-09-01 J"orn Rennecke <joern.rennecke@st.com>
8834 Richard Guenther <rguenther@suse.de>
8835 Adam Nemet <anemet@caviumnetworks.com>
8838 * builtins.c (get_pointer_alignment): Handle more forms
8839 of base addresses that can be used to derive more precise
8840 information about alignment.
8842 2006-09-01 Jason Merrill <jason@redhat.com>
8845 * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
8848 * gimplify.c (voidify_wrapper_expr): Handle null type.
8850 2006-09-01 Josh Conner <jconner@apple.com>
8853 * tree-nrv.c (dest_safe_for_nrv_p): New function.
8854 (execute_return_slot_opt): Use it.
8856 2006-08-31 Josh Conner <jconner@apple.com>
8859 * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
8860 returning aggregates.
8862 2006-08-31 Zdenek Dvorak <dvorakz@suse.cz>
8864 PR tree-optimization/28839
8865 * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
8866 blocks in that phi arguments appear.
8868 2006-08-31 Roger Sayle <roger@eyesopen.com>
8871 * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
8872 NULL, otherwise use an advance_loc4 to adjust relative to the
8874 (output_cfi) <DW_CFA_set_loc>: Update the current label.
8875 (dwarf2out_switch_text_section): Reset the current label to avoid
8876 using advance_loc4 over section boundaries.
8878 2006-08-31 Andreas Krebbel <krebbel1@de.ibm.com>
8881 * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
8882 r12 + SYMBOLIC_CONST.
8884 2006-08-30 Richard Guenther <rguenther@suse.de>
8886 * Makefile.in (see.o): Add $(EXPR_H) dependency.
8888 2006-08-30 Zdenek Dvorak <dvorakz@suse.cz>
8890 PR rtl-optimization/27735
8891 * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
8892 Add new argument to keep track of whether an irreducible region
8893 was affected. All callers changed.
8894 (fix_irreducible_loops): Removed.
8895 (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
8896 flags were invalidated.
8898 2006-08-29 H.J. Lu <hongjiu.lu@intel.com>
8900 * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
8901 instead of SF operands.
8902 (*fop_df_comm_sse): Likewise.
8903 (*fop_df_comm_i387): Likewise.
8904 (*fop_df_1_mixed): Likewise.
8905 (*fop_df_1_sse): Likewise.
8907 2006-08-29 Andrew Pinski <pinskia@physics.uc.edu>
8908 J"orn Rennecke <joern.rennecke@st.com>
8910 PR tree-optimization/17506
8911 * tree-ssa.c (warn_uninit): If warning about a location outside of
8912 the current function, note where the variable was declared.
8914 2006-08-28 Zdenek Dvorak <dvorakz@suse.cz>
8916 PR tree-optimization/28411
8917 * double-int.c (double_int_div): Use double_int_divmod.
8918 (double_int_divmod, double_int_sdivmod, double_int_udivmod,
8919 double_int_mod, double_int_smod, double_int_umod): New functions.
8920 * double-int.h (double_int_divmod, double_int_sdivmod,
8921 double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
8923 * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
8925 (get_computation_aff, get_computation_cost_at): Handle double_int
8926 return type of constant_multiple_of.
8928 2006-08-28 Kazu Hirata <kazu@codesourcery.com>
8931 * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
8932 an implicit conversion.
8934 2006-08-28 Prafulla Thakare <prafullat@kpitcummins.com>
8936 * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
8938 2006-08-27 Roger Sayle <roger@eyesopen.com>
8940 * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
8943 2006-08-27 Kazu Hirata <kazu@codesourcery.com>
8945 * config/i386/crtfastmath.c: Fix a comment typo.
8947 2006-08-26 Roger Sayle <roger@eyesopen.com>
8949 * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
8950 temporary visit flags on CASE_LABEL_EXPRs.
8951 * c-common.c (match_case_to_enum): Add function comment. Avoid
8952 O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
8953 (c_do_switch_warnings): Reorganize to record CASE_LOW_SEEN and
8954 CASE_HIGH_SEEN for enumerated types. If the switch expression is
8955 a constant, only warn if that constant value isn't handled.
8957 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
8960 * input.h (restore_input_file_stack): Declare.
8961 (INPUT_FILE_STACK_BITS): Define.
8962 * toplev.c (fs_p, input_file_stack_history,
8963 input_file_stack_restored, restore_input_file_stack): New.
8964 (push_srcloc, pop_srcloc): Check for input_file_stack_tick
8965 overflowing INPUT_FILE_STACK_BITS bits. Save new state of stack.
8966 (pop_srcloc): Don't free old state of stack.
8968 2006-08-26 David Edelsohn <edelsohn@gnu.org>
8971 * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
8972 (PowerPC Type Attributes): New.
8974 2006-08-26 Bob Wilson <bob.wilson@acm.org>
8976 * config/xtensa/xtensa.c (function_arg_boundary): New.
8977 (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
8979 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
8980 function_arg_boundary function that limits alignment to STACK_BOUNDARY.
8982 2006-08-26 Jakub Jelinek <jakub@redhat.com>
8985 * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
8988 2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
8990 * flow.c (verify_wide_reg): Use internal_error for consistency failure.
8991 (verify_local_live_at_start): Likewise.
8993 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
8996 * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
8997 omp_add_variable): Treat sizes as variable whenever not
9000 2006-08-26 Richard Guenther <rguenther@suse.de>
9003 * fold-const.c (fold_binary): Fold temporary to correct
9004 type before constructing new comparison.
9006 2006-08-25 Fariborz Jahanian <fjahanian@apple.com>
9009 * c-gimplify.c (gimplify_compound_literal_expr): Don't add
9010 variable again if DECL_SEEN_IN_BIND_EXPR_P.
9012 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
9015 * c-decl.c (start_function): Don't try to process prototype
9016 information from old declaration that isn't a function.
9018 2006-08-25 Jan Hubicka <jh@suse.cz>
9021 * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
9023 2006-08-25 Alan Modra <amodra@bigpond.net.au>
9026 * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
9029 2006-08-25 J"orn Rennecke <joern.rennecke@st.com>
9031 PR tree-optimization/16876
9032 * c-typeck.c (c_convert_parm_for_inlining): Don't take early
9033 exit if PARM doesn't match VALUE.
9035 2006-08-25 Bob Wilson <bob.wilson@acm.org>
9037 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
9038 literal_prefix directive.
9039 (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
9040 * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
9041 * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
9043 2006-08-25 David Edelsohn <edelsohn@gnu.org>
9046 * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
9047 predicate to general_operand. Add 0->y and I->r alternatives.
9049 2006-08-25 Kazu Hirata <kazu@codesourcery.com>
9051 * doc/tm.texi: Fix a typo.
9052 * predict.c: Fix comment typos.
9054 2006-08-25 Nick Clifton <nickc@redhat.com>
9056 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9057 assertions of "cpu" and "machine".
9059 2006-08-24 Andrew Pinski <pinskia@physics.uc.edu>
9062 * tree-ssa-operands.c (access_can_touch_variable): Don't say
9063 the access through a base which has an alias set of 0 cannot
9066 2006-08-24 Bill Wendling <wendling@apple.com>
9068 * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
9070 2006-08-24 Jan Hubicka <jh@suse.cz>
9072 * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
9074 2006-08-24 Jan Hubicka <jh@suse.cz>
9077 * cgraph.c: Fix comments.
9078 (cgraph_varpool_mark_needed_node): Mark only variables not already
9080 * cgraphunit.c: Update comments; include gt-cgraphunit.h
9081 (cgraph_varpool_assembled_nodes_queue): New static variable.
9082 (cgraph_varpool_assemble_decl): Record output decls for debug out code.
9083 (cgraph_varpool_output_debug_info): New function.
9084 (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
9085 * Makefile.in: Add gt-cgraphunit.h
9087 2006-08-24 Jan Hubicka <jh@suse.cz>
9089 * predict.c (probability_reliable_p): New predicate.
9090 (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
9091 (predict_loops): Do not predict loop exit with less than 2%
9093 * basic-block.h (edge_probability_reliable_p,
9094 br_prob_note_reliable_p): Declare.
9095 * ia64.h (ia64_print_operand): Do not disable on-chip branch
9096 prediction when static predictor is not reliable.
9097 * rs6000.c (output_cbranch): Likewise.
9099 2006-08-23 Stuart Hastings <stuart@apple.com>
9102 * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
9103 ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
9105 2006-08-21 Geoffrey Keating <geoffk@apple.com>
9108 * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
9109 complex values, nor for generic vector values.
9111 2006-08-22 Richard Guenther <rguenther@suse.de>
9114 * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
9115 parameter. Convert arguments to arithmetic expression to the
9117 (analyze_scalar_evolution_1): Adjust caller.
9119 2006-08-22 Jan Hubicka <jh@suse.cz>
9121 Patch by Paolo Bonzini
9122 * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
9125 2006-08-22 Daniel Berlin <dberlin@dberlin.org>
9127 PR tree-optimization/28003
9128 * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
9129 before grouping aliases.
9131 2006-08-22 Roger Sayle <roger@eyesopen.com>
9133 * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
9134 if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
9136 2006-08-21 Jason Merrill <jason@redhat.com>
9139 * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
9140 wrapper. Loop to handle nested wrappers.
9141 (gimplify_bind_expr): Remove temp parameter.
9142 (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
9143 and STATEMENT_LIST on the rhs.
9144 (gimplify_statement_list): Voidify the STATEMENT_LIST.
9145 (gimplify_expr): Pass pre_p to gimplify_statement_list.
9146 (gimplify_target_expr): Remove special BIND_EXPR handling.
9148 2006-08-21 J"orn Rennecke <joern.rennecke@st.com>
9150 * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
9153 2006-08-21 Olivier Hainque <hainque@adacore.com>
9155 * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
9156 Arrange for the temporary captures of components overlapping the lhs
9157 to happen before the lhs is possibly cleared.
9159 2006-08-21 Mark Shinwell <shinwell@codesourcery.com>
9161 * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
9162 necessary places to pass the correct "number of registers" values
9165 2006-08-20 Jan Hubicka <jh@suse.cz>
9167 * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
9168 (create_name_tags): Instead of quadratic checking use hashtable.
9169 * bitmap.h: Include hashtab.h.
9170 (bitmap_hash): Declare.
9171 * bitmap.c (bitmap_hash): New function.
9173 2006-08-20 Jan Hubicka <jh@suse.cz>
9175 PR rtl-optimization/28071
9176 * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
9178 * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
9179 * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
9180 (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
9181 cgraph_decide_inlining_incrementally): Update use of
9182 cgraph_check_inline_limits.
9183 * cgraph.c (edge_hash, edge_eq): New function.
9184 (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
9185 cgraph_edge_remove_caller, cgraph_node_remove_callees,
9186 cgraph_remove_node): Maintain call site hash.
9187 * cgraph.h (struct cgraph_node): Add call_site_hash.
9188 (cgraph_set_call_stmt): New function.
9190 2006-08-20 Jan Hubicka <jh@suse.cz>
9192 PR rtl-optimization/28071
9193 * reload1.c (reg_has_output_reload): Turn into regset.
9194 (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
9195 choose_reload_regs, emit_reload_insns): Update to new
9196 reg_has_output_reload.
9198 2006-08-20 Jan Hubicka <jh@suse.cz>
9201 * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
9202 function body sizes.
9203 * cgraphunit.c (cgraph_analyze_function): Don't do so.
9205 2006-08-20 Danny Smith <dannysmith@users.sourceforge.net>
9208 * tree.c (handle_dll_attribute): Return early if not a
9209 var or function decl.
9211 2006-08-18 Joseph Myers <joseph@codesourcery.com>
9214 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
9215 alignment of SPE vector types.
9217 2006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
9219 * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
9221 2006-08-17 Jakub Jelinek <jakub@redhat.com>
9224 * cgraph.h (struct cgraph_node): Remove externally_visible
9226 * cgraphunit.c (process_function_and_variable_attributes): Set
9227 local.externally_visible rather than externally_visible.
9230 * c-common.c (handle_externally_visible_attribute): First look
9231 at TREE_CODE and only if it is function or var decl, check for
9232 non-public objects. Don't warn for DECL_EXTERNAL.
9233 * cgraphunit.c (process_function_and_variable_attributes): Warn
9234 if externally_visible attribute is used on non-public object.
9236 2006-08-17 Jan Hubicka <jh@suse.cz>
9238 PR tree-optimization/27865
9239 * reload1.c (forget_marked_reloads): New function.
9240 (forget_old_reloads_1): When data are passed, just mark the registers
9242 (reload_as_needed): Use the new mechanizm.
9244 2006-08-17 Alexandre Oliva <aoliva@redhat.com>
9247 * reload.h (reg_equiv_alt_mem_list): New declaration.
9248 * reload1.c (reg_equiv_alt_mem_list): New definition.
9249 (reload): Initialize it and release it.
9250 (delete_output_reload): Use it.
9251 * reload.c (push_reg_equiv_alt_mem): New function.
9252 (find_reloads_toplev): Call it.
9253 (find_reloads_address, find_reloads_address_1): Likewise.
9254 (find_reloads_subreg_address): Likewise.
9256 2006-08-17 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
9258 PR rtl-optimization/28489
9259 * sched-ebb.c (begin_schedule_ready): Create basic block
9261 (advance_target_bb): Skip empty blocks.
9262 * haifa-sched.c (bb_note): Make global.
9263 * sched-int.h (bb_note): Add prototype.
9265 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
9267 PR tree-optimization/27865
9268 * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
9270 * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
9271 fold_used_pointer, pointer_used_p): New functions.
9272 (analyze_scalar_evolution_1): Use fold_used_pointer.
9273 * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
9274 * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
9277 2006-08-17 Paolo Bonzini <bonzini@gnu.org>
9280 * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
9281 or the INTEGER_CST. Fail on a CALL_EXPR.
9282 (fold_offsetof): Pass new argument to fold_offsetof_1.
9283 * c-parser.c (c_parser_postfix_expression): Don't include a NULL
9284 operand into an INDIRECT_REF.
9285 * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
9287 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
9289 PR gcov/profile/26570
9290 * value-prof.c (static_values): Removed.
9291 (tree_find_values_to_profile): Do not set static_values.
9292 (find_values_to_profile): Do not free static_values.
9293 * profile.c (instrument_values): Do not free the values.
9294 (branch_prob): Free the values.
9296 2006-08-16 Naveen.H.S <naveenh@kpitcummins.com>
9298 * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
9300 2006-08-16 Joseph S. Myers <joseph@codesourcery.com>
9303 * c-typeck.c (build_component_ref): Combine qualifiers of
9304 structure or union and field.
9306 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
9308 PR rtl-optimization/28071
9309 * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
9310 * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
9311 * tree-into-ssa.c (struct dom_dfsnum): New.
9312 (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
9314 (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
9315 compute_global_livein.
9316 (prepare_block_for_update, prepare_use_sites_for): Mark the uses
9317 in phi nodes in the correct blocks.
9319 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
9321 PR tree-optimization/28364
9322 * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
9324 (fold_affine_expr): New function.
9325 (may_eliminate_iv): Use fold_affine_expr.
9327 2006-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9330 * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
9333 2006-08-16 Mike Stump <mrs@apple.com>
9335 * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
9336 * doc/cppopts.texi (-MD): Likewise.
9338 2006-08-15 Danny Smith <dannysmith@users.sourceforge.net>
9341 * c-common.c (handle_weak_attribute): Ignore and warn if
9342 not a FUNCTION_ or VAR_DECL.
9344 2006-07-15 Mike Stump <mrs@apple.com>
9347 * c-parser.c (c_parser_typeof_specifier): Don't use
9348 c_finish_expr_stmt, open code desired semantics instead.
9350 2006-08-15 Nick Clifton <nickc@redhat.com>
9352 * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
9353 fragment to tmake_file only if threads are enabled.
9354 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
9355 * config/i386/t-gthr-win32: New file. ... here.
9357 2006-08-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9360 * c-parser.c (c_parser_compound_statement_nostart): Reset
9361 parser->error after each statement.
9363 2006-08-15 Jakub Jelinek <jakub@redhat.com>
9366 * omp-low.c (lower_omp_parallel): Convert t to
9367 receiver_decl's type.
9368 (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
9369 source before comparison.
9372 * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
9373 to itype in assignment to oldival2.
9375 2006-07-14 Andrew Pinski <pinksia@physics.uc.edu>
9379 * c-typeck.c (build_compound_expr): If the second expression
9380 is an error mark, then just return an error mark instead of
9381 creating a COMPOUND_EXPR.
9383 2006-07-14 Mike Stump <mrs@apple.com>
9385 * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
9387 2006-08-14 Kazu Hirata <kazu@codesourcery.com>
9389 * c-decl.c, var-tracking.c: Fix comment typos.
9391 2006-08-14 Richard Sandiford <richard@codesourcery.com>
9393 PR rtl-optimization/28634
9394 * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
9395 for floating-point modes unless flag_unsafe_math_optimizations.
9397 2006-08-13 Alexandre Oliva <aoliva@redhat.com>
9398 Andrew Pinski <pinskia@physics.uc.edu>
9401 * tree.c (build_array_type): Unify array types with
9402 unspecified index_type.
9403 * c-decl.c (grokdeclarator): Make sure we do not modify a
9404 unified incomplete array type.
9405 * c-typeck.c (store_init_value): Create distinct type before
9406 filling in the index type in an initializer from a compound
9409 * c-decl.c (grokdeclarator): Remove code where we copy the
9412 2006-08-13 Andrew Pinski <pinskia@physics.uc.edu>
9414 * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
9415 into account for TODO_dump_cgraph.
9416 (TODO_update_ssa_no_phi): Likewise.
9417 (TODO_update_ssa_full_phi): Likewise.
9418 (TODO_update_ssa_only_virtuals): Likewise.
9419 (TODO_remove_unused_locals): Likewise.
9420 (TODO_set_props): Likewise.
9421 (TODO_update_stmt_usage): Likewise.
9423 2006-08-13 Dirk Mueller <dmueller@suse.de>
9425 * c-common.c (strict_aliasing_warning): Fix formatting.
9427 2006-08-13 Matthias Klose <doko@debian.org>
9429 * doc/invoke.texi: Fix spelling errors.
9431 2006-08-11 Eric Botcazou <ebotcazou@libertysurf.fr>
9433 PR rtl-optimization/23454
9434 * reorg.c (relax_delay_slots): Update comment.
9436 2006-08-11 Richard Guenther <rguenther@suse.de>
9439 * simplify-rtx.c (simplify_const_relational_operation):
9440 Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
9443 2006-08-10 Eric Botcazou <ebotcazou@adacore.com>
9445 * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
9446 TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
9448 2006-08-10 Paul Brook <paul@codesourcery.com>
9450 * final.c (final_scan_insn): Clear current_insn_predicate before
9451 outputting inline asm.
9453 2006-08-10 Dorit Nuzman <dorit@il.ibm.com>
9455 PR tree-optimization/26197
9456 * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
9457 get_ref_base_and_extent and overlap_subvar to add only relevant
9458 subvars as may-aliases.
9459 (add_may_alias_for_new_tag): New function, factored out of
9461 * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
9462 with additional argument.
9463 * tree-flow.h (new_type_alias): Takes additional argument.
9465 2006-08-09 Nathan Sidwell <nathan@codesourcery.com>
9467 * gcov.c (no_data_file): New flag.
9468 (read_count_file): Set it if data file not present. Assume counts
9470 (output_lines): Don't name the data file, if there wasn't one.
9472 2006-08-09 Eric Botcazou <ebotcazou@adacore.com>
9474 * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
9475 (rs6000_generate_compare): Tweak comments.
9476 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
9478 2006-08-09 Alexandre Oliva <aoliva@redhat.com>
9480 * var-tracking.c (enum micro_operation_type): Add MO_COPY.
9481 (var_debug_decl): New function.
9482 (var_reg_set): Follow debug decl link. Add location even if
9483 reg is already known to hold some other variable.
9484 (var_mem_set): Follow debug decl link.
9485 (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
9486 decl link. Delete other known locations of the variable part
9488 (var_reg_delete, var_mem_delete): Delete other known locations
9489 of the variable part if requested.
9490 (same_variable_part_p): New function.
9491 (add_stores): Select MO_COPY when appropriate.
9492 (vt_initialize): Handle it.
9493 (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete
9494 known locations for MO_SET and MO_CLOBBER.
9495 (find_variable_location_part): New function.
9496 (set_variable_part, delete_variable_part): Use it.
9497 (clobber_variable_part): New function.
9498 * dwarf2out.c (dwarf2out_var_location): Do not follow debug
9501 2006-08-07 Victor Kaplansky <victork@il.ibm.com>
9503 PR tree-optimization/26969
9504 * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
9505 with an empty list of PHIs.
9507 2006-08-06 Paolo Bonzini <bonzini@gnu.org>
9511 * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
9514 2006-08-06 Andreas Schwab <schwab@suse.de>
9516 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
9517 string. Whitespace and comment fixup.
9519 2006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9522 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
9526 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
9529 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
9531 2006-08-04 Jan Hubicka <jh@suse.cz>
9535 * reload.c (push_reload): Patch out the mismatching instruction;
9537 (find_reload): Bail out if the instruction was patched out.
9539 2006-08-04 Jan Hubicka <jh@suse.cz>
9541 PR tree-optimization/24888
9542 * tree-inline.c (expand_call_inline): Do not re-record variables.
9543 (declare_inline_vars): Add variable to unexpanded_var_list.
9545 2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9546 Roger Sayle <roger@eyesopen.com>
9548 PR rtl-optimization/26244
9549 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
9550 inner_const are negative or greater than or equal to the bitsize of
9551 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
9552 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
9553 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
9554 CONST0_RTX (mode) when the new shift count is greater than or equal to
9555 to the bitsize of the object being shifted and XEXP (y, 0) has no side
9558 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
9560 * tree-cfg.c: Fix a comment typo.
9562 2006-08-03 Mark Mitchell <mark@codesourcery.com>
9565 * varasm.c (output_constant): Give the front end another chance to
9566 expand constants, after stripping NOPs.
9568 2006-08-03 Jan Hubicka <jh@suse.cz>
9570 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
9573 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
9575 PR tree-optimization/27770
9576 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
9577 declaration removed (moved to tree-flow.h).
9578 (vect_can_force_dr_alignment_p): Likewise.
9579 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
9580 (moved from tree-vectorizer.h).
9581 (vect_can_force_dr_alignment_p): Likewise.
9582 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
9583 from outside the vectorizer - in particular from cgraph stage.
9584 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
9585 the alignment of global arrays when -fsection-anchors is enabled.
9586 * cgraphunit.c (cgraph_increase_alignment): New function.
9587 (cgraph_optimize): Call cgraph_increase_alignment.
9589 2006-08-03 David Edelsohn <edelsohn@gnu.org>
9592 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9593 not reload a SPE symbol_ref into a lo_sum address.
9595 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
9598 * dwarf2out.c (prune_unused_types_prune): Move call to
9599 prune_unused_types_update_strings to cover the parent DIE also.
9601 2006-08-02 Jan Hubicka <jh@suse.cz>
9603 PR gcov/profile/28480
9604 * tree-cfg.c (change_bb_for_stmt): New function.
9605 (tree_merge_blocks, tree_split_blocks): Use it.
9607 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9613 * toplev.c (compile_file): Return early on errorcount or sorrycount.
9614 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
9615 (cgraph_optimize): Likewise.
9617 2006-08-01 Stuart Hastings <stuart@apple.com>
9619 * rtl.h (UINTVAL) New.
9620 * config/rs6000/rs6000.c (SMALL_INT) Use it.
9621 * testsuite/gcc.dg/20060801-1.c: New.
9623 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
9626 * c-typeck.c (build_external_type): Mark used enum types.
9627 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
9629 (gen_subprogram_die): Whitespace fix.
9631 2006-08-01 Jan Hubicka <jh@suse.cz>
9633 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
9634 bitmap when not needed.
9635 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
9638 2006-08-01 Dirk Mueller <dmueller@suse.de>
9640 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
9642 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9644 * Makefile.in: Revert part of previous patch:
9645 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
9648 2006-07-30 Eric Christopher <echristo@apple.com>
9651 * doc/extend.texi (i386 Variable Attributes): Add anchor.
9652 (PowerPC Variable Attributes): New section.
9654 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
9656 PR target/28126 (partial fix)
9657 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
9659 2006-07-28 Jan Hubicka <jh@suse.cz>
9661 PR rtl-optimization/28071
9662 * cfgrtl.c (rtl_delete_block): Free regsets.
9663 * flow.c (allocate_bb_life_data): Re-use regsets if available.
9665 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9667 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
9668 and variables used in dependencies.
9670 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
9672 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
9673 %fs for -mcmodel=kernel.
9674 (stack_tls_protect_test_di): Likewise.
9676 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
9678 * Makefile.in: Use mkinstalldirs.
9680 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
9683 * opts-common.c (prune_options): Skip joined switches.
9685 2006-07-27 Jan Hubicka <jh@suse.cz>
9687 PR rtl-optimization/28071
9688 * cselib.c (cselib_process_insn): Don't remove useless values too
9689 often for very large hashtables.
9691 2006-07-27 Jan Hubicka <jh@suse.cz>
9693 PR rtl-optimization/28071
9694 * global.c (greg_obstack): New obstack.
9695 (allocate_bb_info): Use it.
9696 (free_bb_info): Likewise.
9697 (modify_reg_pav): Likewise.
9699 2006-07-27 Roger Sayle <roger@eyesopen.com>
9701 * builtins.c (fold_fixed_mathfn): When long and long long are the
9702 same size, canonicalize llceil*, llfloor*, llround* and llrint*
9703 functions to their lceil*, lfloor*, lround* and lrint* forms.
9705 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9708 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
9710 (rev_branch_insn): Likewise.
9712 2006-07-27 Jan Hubicka <jh@suse.cz>
9714 PR rtl-optimization/28071
9715 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
9716 (reg_set_in_bb, max_reg_computed): New static variables.
9717 (regmove_optimize): Free the new array.
9718 (fixup_match_1): Update call of reg_is_remote_constant_p.
9720 2006-07-26 Jan Hubicka <jh@suse.cz>
9722 PR tree-optimization/27882
9723 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
9725 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
9727 (cgraph_analyze_compilation_unit): Likewise.
9728 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
9729 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
9730 (cgraph_early_inlinine): Make order garbage collected.
9731 * Makefile.in (gt-ipa-inline): New garbagecollected file.
9733 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
9735 * dbxout.c (output_types_sort): Add a comment.
9736 (output_used_types): Free the VEC.
9738 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
9740 * function.c (reorder_fix_fragments): Delete.
9741 (reorder_blocks): Don't call it.
9742 (reorder_blocks_1): Put all subblocks under the origin block.
9744 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
9746 PR rtl-optimization/27907
9747 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
9750 2006-07-25 Roger Sayle <roger@eyesopen.com>
9753 * convert.c (convert_to_integer): When transforming (T)foo(x) into
9754 bar(x) check that bar's result type can represent all the values of T.
9756 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
9758 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
9760 2006-07-25 Nick Clifton <nickc@redhat.com>
9762 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
9763 size_lookup[] array.
9764 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
9765 (ggc_pch_count_object): Likewise.
9766 (ggc_pch_alloc_object): Likewise.
9767 (ggc_pch_write_object): Likewise.
9768 (init_ggc): Do not attempt to initialize entries in the
9769 size_lookup[] array for objects whose size is greater than than
9770 the length of the array.
9772 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
9774 * dbxout.c (output_used_types_helper): Push queued types
9776 (output_types_sort): New.
9777 (output_used_types): Collect used types on a VEC and sort them
9780 2006-07-24 Richard Guenther <rguenther@suse.de>
9783 * cgraph.c (cgraph_remove_node): Do not check if dumps
9785 * cgraphunit.c (cgraph_optimize): Likewise.
9787 2006-07-24 Jan Hubicka <jh@suse.cz>
9789 PR rtl-optimization/28071
9790 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
9791 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
9792 splitting before first stmt.
9794 2006-07-24 Jan Hubicka <jh@suse.cz>
9796 PR rtl-optimization/28071
9797 * ipa-inline.c (update_caller_keys): Remove edges that
9798 are no longer inline candidates.
9800 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
9803 * dbxout.c (output_used_types_helper, output_used_types): New.
9804 (dbxout_symbol): Call output_used_types.
9806 2006-07-23 Jan Hubicka <jh@suse.cz>
9810 * cgraph.c (cgraph_varpool_nodes): Export.
9811 (decide_is_variable_needed): Ignored "used" attribute in
9812 unit-at-a-time mode.
9813 * cgraph.h (cgraph_varpool_nodes): Declare.
9814 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
9815 unit-at-a-time mode.
9817 2006-07-23 Roger Sayle <roger@eyesopen.com>
9820 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
9821 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
9822 the __gthrw form of thr_keycreate.
9823 (__gthread_key_delete): Silence the unused argument warning.
9825 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
9828 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
9829 Cache the last found '\0' marker to avoid quadratic behavior.
9831 2006-07-23 Jan Hubicka <jh@suse.cz>
9833 * i386.md (subsi_3_zext): Fix output template.
9835 2006-07-21 Mike Stump <mrs@apple.com>
9837 * doc/invoke.texi (C++ Dialect Options): Note that
9838 -fvisibility-inlines-hidden doesn't affect explicitly
9839 instantiationed inline methods.
9841 2006-07-20 Roger Sayle <roger@eyesopen.com>
9843 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
9844 if the target assembler is GNU binutils' gas.
9845 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
9846 whether to pass GNU gas or native as command line options.
9848 2006-07-20 Jason Merrill <jason@redhat.com>
9850 * tree.c (remove_attribute): New fn.
9851 * tree.h: Declare it.
9853 2006-07-20 Paul Brook <paul@codesourcery.com>
9856 * cse.c (cse_insn): Add destination addresses to hash table. Check if
9857 they are invalidated by this instruction.
9859 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
9862 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
9864 2006-07-20 Eric Christopher <echristo@apple.com>
9867 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
9869 2006-07-19 Eric Christopher <echristo@apple.com>
9871 * config/t-slibgcc-darwin (stmp-lipo): Remove.
9872 Rewrite dependencies for libgcc_s.1.dylib.
9874 2006-07-19 Jakub Jelinek <jakub@redhat.com>
9876 * except.c (duplicate_eh_regions_1): Clear next_peer.
9878 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
9880 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
9881 -mlongcall does not guarantee all calls will be long.
9882 * doc/extend.texi (long_call/short_call): Document that longcall
9883 does not guarantee a long call will be used.
9884 (longcall/shortcall): Likewise.
9886 2006-07-18 Roger Sayle <roger@eyesopen.com>
9889 * expmed.c (expand_shift): Additionally check that the shift_cost
9890 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
9891 before implementing a LSHIFT_EXPR as a sequence of additions.
9892 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
9893 middle-end that DImode shifts need to be synthesized by expand.
9895 2006-07-18 Diego Novillo <dnovillo@redhat.com>
9898 * tree-ssa-operands.c (access_can_touch_variable): Update
9900 Return true if ALIAS is .GLOBAL_VAR.
9902 2006-07-18 David Daney <ddaney@avtrex.com>
9904 * gcc.c (display_help): Fix typo in help text.
9906 2006-07-18 Olivier Hainque <hainque@adacore.com>
9908 * tree.h (categorize_ctor_elements): Adjust prototype and add
9909 descriptive comment, both in accordance with the interface change
9911 * varasm.c (constructor_static_from_elts_p): New function.
9912 Whether a constructor node is a valid static constant initializer
9913 if all its elements are.
9914 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
9915 * output.h: Declare it.
9916 * expr.c (categorize_ctor_elements_1): Return whether the constructor
9917 is a valid constant initializer instead of computing the number of
9918 non-constant elements. Use constructor_static_from_elts_p for this
9919 purpose. Replace the head comment with an indication that this is a
9920 helper for categorize_ctor_elements.
9921 (categorize_ctor_elements): Same interface change as for the _1
9922 helper. Former head comment from this helper moved here, adjusted to
9923 account for the interface changes.
9924 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
9925 (all_zeros_p): Likewise.
9926 * gimplify.c (gimplify_init_constructor): Decide whether we can make
9927 static versions of the constructor from the categorize_ctor_elements
9928 return value instead of the formerly computed number of non-constant
9931 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
9933 * configure: Regenerate.
9934 * Makefile.in (build_libsubdir): New configure substitution
9935 (build_libobjdir): New variable.
9936 (BUILD_LIBIBERTY): Use it.
9938 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9941 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
9943 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
9946 * c-common.c (handle_weakref_attribute): Ignore attribute in
9947 the same conditions the alias attribute is ignored.
9949 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
9951 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
9952 (dbxout_begin_prologue): Increment scope_labelno.
9954 2006-07-17 Richard Henderson <rth@redhat.com>
9957 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
9960 2006-07-17 Roger Sayle <roger@eyesopen.com>
9961 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9963 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
9964 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
9965 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
9966 functions such as sbrk, write, etc.. Add function prototypes.
9967 Convert function declarations from K&R to ISO C. Cast pointers
9968 to "long" and "unsigned long" instead of "int" and "unsigned int".
9969 Convert tokens following #endif into comments.
9971 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
9973 * invoke.texi: Remove mention of f77; Reformat table for
9974 inline parameter options correctly; mention that -malign-double
9975 is default on x86-64 targets.
9977 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
9979 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
9980 (convert_affine_scev, chrec_convert_aggressive): Use
9981 avoid_arithmetics_in_type_p. Do not check for the subtypes
9984 2006-07-17 Richard Sandiford <richard@codesourcery.com>
9987 * optabs.c (expand_doubleword_shift): Wrap the call to
9988 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
9990 2006-07-17 Richard Sandiford <richard@codesourcery.com>
9993 * optabs.c (expand_binop): Pass next_methods rather than methods
9994 to expand_doubleword_shift.
9996 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
9999 * tree.h (dump_addr): Declare.
10000 * print-tree.c (dump_addr): New function.
10001 (print_node_brief, print_node): Use it.
10002 * print-rtl.c (print_rtx): Likewise.
10003 * common.opt (-fdump-noaddr): New option.
10004 * doc/invoke.texi (-fdump-noaddr): Document.
10005 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
10006 (ve_info_hash): Likewise.
10008 2006-07-13 Andrew Haley <aph@redhat.com>
10010 PR tree-optimization/19505
10011 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
10012 edge leaving this block, make sure that the destination of this
10013 block has only one predecessor.
10015 2006-07-17 Richard Guenther <rguenther@suse.de>
10017 PR tree-optimization/28238
10018 * tree-inline.c (copy_bb): Check if we produced valid
10019 gimple copying and substituting a stmt. If not, gimplify
10022 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
10024 * optabs.c (maybe_encapsulate_block): New function extracted from...
10025 (emit_libcall_block): ...here. Invoke it on the block of insns to
10026 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
10027 (emit_no_conflict_block): Likewise.
10029 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
10031 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
10033 2006-07-15 Roger Sayle <roger@eyesopen.com>
10035 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
10036 a new NOP_EXPR case of the switch statement.
10038 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
10040 PR middle-end/28160
10041 * stor-layout.c (place_field): Take the bit field with
10042 an excessive size into account in the ms-bitfiled case.
10044 PR middle-end/28161
10045 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
10046 the previous bit field.
10048 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
10051 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
10053 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
10055 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
10056 signal frames correctly even when the signal was installed with
10059 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
10061 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
10062 (dbxout_function_end): Use local label LFBB. Remove hook
10064 (dbxout_source_line): Use local label LFBB.
10065 (dbxout_block): Likewise.
10066 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
10067 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
10068 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
10069 and DBX_OUTPUT_NFUN.
10071 2006-07-13 Janis Johnson <janis187@us.ibm.com>
10073 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
10075 2006-07-13 Jan Hubicka <jh@suse.cz>
10077 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
10079 * output.h (align_variable): Declare.
10080 * varasm.c (align_variable): Export.
10081 * value-prof.c (tree_value_profile_transformations): Recompute iterator
10082 when basic block changed.
10084 2006-07-13 Nick Clifton <nickc@redhat.com>
10086 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
10087 walking the LOG_LINKS chain.
10089 2006-07-12 Geoffrey Keating <geoffk@apple.com>
10091 * doc/invoke.texi (C++ Dialect Options): Explain difference
10092 between -fvisibility-inlines-hidden and setting hidden
10093 visibility explicitly.
10095 2006-07-12 Eric Christopher <echristo@apple.com>
10097 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
10098 (stmp-lipo): Depend on libgcc.a.
10100 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
10102 * tree.c: Fix a comment typo.
10104 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
10106 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
10108 (umulhisi3_r): Likewise.
10110 2006-07-12 Paolo Carlini <pcarlini@suse.de>
10113 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
10114 x < 19, vs wchar_t support.
10116 2006-07-12 Nick Clifton <nickc@redhat.com>
10118 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
10119 instead of -isa=sh4.
10121 2006-07-12 Mike Stump <mrs@apple.com>
10123 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
10125 2006-07-10 Eric Christopher <echristo@apple.com>
10127 * config/t-slibgcc-darwin: Rewrite.
10129 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10132 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
10135 2006-07-08 Matthias Klose <doko@debian.org>
10137 * doc/sourcebuild.texi: Fix typo.
10139 2006-07-07 Mike Stump <mrs@apple.com>
10141 * toplev.c (process_options): Don't give -ffunction-sections may
10142 affect debugging warning for Mach-O.
10144 2006-07-07 James E Wilson <wilson@specifix.com>
10146 * config/mips/mips.md (cpu): Add sb1a.
10147 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
10148 addition to sb1. Adjust comments to clarify SB-1A differences from
10150 (ir_sb1a_load): New. Modify bypasses to use it.
10151 (ir_sb1a_simple_alu): Likewise.
10152 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
10153 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
10154 (mips_issue_rate): Add PROCESSOR_SB1A.
10155 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
10156 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
10157 (TARGET_SB1): Add PROCESSOR_SB1A check.
10158 (TUNE_SB1): Likewise.
10160 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
10161 * config/mips/mips.c (mips_store_data_bypass_p): New.
10162 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
10163 store_data_bypass_p.
10165 2006-07-08 Paul Brook <paul@codesourcery.com>
10168 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
10170 2006-07-07 Richard Guenther <rguenther@suse.de>
10172 PR middle-end/28268
10173 * tree.h (build_one_cst): Declare.
10174 * tree.c (build_one_cst): New function.
10175 * tree-ssa-math-opts.c (get_constant_one): Remove.
10176 (insert_reciprocals): Use build_one_cst.
10177 * fold-const.c (fold_plusminus_mult): Likewise.
10179 2006-07-07 Roger Sayle <roger@eyesopen.com>
10181 * pointer-set.c (pointer_set_destroy): Correct whitespace.
10182 * cfgloopanal.c (dump_graph): Likewise.
10183 * dojump.c (discard_pending_stack_adjust): Likewise.
10184 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
10186 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
10187 * function.c (finalize_block_changes): Likewise.
10188 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
10189 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
10190 * rtl.c (dump_rtx_statistics): Likewise.
10191 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
10193 * varray.c (dump_varray_statistics): Likewise.
10194 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
10195 decode_decimal64, encode_decimal128, decode_decimal128,
10196 decimal_real_to_decimal): Likewise.
10198 2006-07-07 Richard Guenther <rguenther@suse.de>
10200 PR tree-optimization/28187
10201 * tree-vrp.c (vrp_operand_equal_p): New function.
10202 (vrp_bitmap_equal_p): Likewise.
10203 (update_value_range): Use them to compare old and new
10204 max and min values.
10206 2006-07-06 Roger Sayle <roger@eyesopen.com>
10208 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
10209 a default case to switch statement to silence compiler warnings.
10211 2006-07-06 Roger Sayle <roger@eyesopen.com>
10214 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
10215 the configured assembler supports the x87's ffreep mnemonic.
10216 * configure: Regenerate.
10217 * config.in: Regenerate.
10219 * config/i386/i386.c (output_387_ffreep): New function.
10220 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
10221 (output_387_reg_move): Likewise.
10223 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
10225 Port to hosts whose 'sort' and 'tail' implementations
10226 treat operands with leading '+' as file names, as POSIX
10227 has required since 2001. However, make sure the code still
10228 works on pre-POSIX hosts.
10229 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
10230 which says you should use "tail -c +N" rather than "tail +Nc".
10231 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
10233 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
10235 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
10238 2006-07-06 David Edelsohn <edelsohn@gnu.org>
10241 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
10242 PRE_{INC,DEC} of TFmode.
10244 2006-07-06 David Edelsohn <edelsohn@gnu.org>
10245 Alan Modra <amodra@bigpond.net.au>
10248 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
10251 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10254 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
10255 Remove duplicate gtu.
10257 2006-07-05 Jason Merrill <jason@redhat.com>
10261 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
10262 * c-common.c (handle_packed_attribute): So don't copy it here.
10263 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
10265 2006-07-05 Mike Stump <mrs@apple.com>
10267 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
10269 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
10272 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
10274 2006-07-05 Richard Guenther <rguenther@suse.de>
10277 * config/i386/i386.md (*negdf2_1): Restrict pattern to
10278 TARGET_SSE2 targets if using SSE math.
10279 (*absdf2_1): Likewise.
10281 2006-07-05 Richard Guenther <rguenther@suse.de>
10283 PR tree-optimization/28162
10284 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
10285 make sure to convert the operands to the correct type.
10287 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
10289 PR tree-optimization/28218
10291 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
10292 to calculate and free the dominator information.
10294 2006-07-04 Peter O'Gorman <peter@pogma.com>
10296 * mklibgcc.in: chmod 644 before ranlib during install.
10298 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
10299 J"orn Rennecke <joern.rennecke@st.com>
10301 * configure.ac (.eh_frame data check): Use diff -b.
10303 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10306 * Makefile.in (BUILD_RTL): Add build/vec.o.
10307 (build/gencondmd.o): Filter out -fkeep-inline-functions.
10308 (build/genextract): Delete.
10309 (build/genautomata): Likewise.
10311 2006-07-04 Alan Modra <amodra@bigpond.net.au>
10314 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
10315 128-bit IBM long doubles for ABI_V4.
10317 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
10319 * tree.c (range_in_array_bounds_p): New predicate.
10320 * tree.h (range_in_array_bounds_p): Declare it.
10321 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
10322 return a less conservative answer.
10323 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
10324 and flag 'is_group'.
10325 (IS_ELEMENT_FOR_GROUP): New macro.
10326 (FOR_EACH_ACTUAL_CHILD): Likewise.
10327 (next_child_for_group): New helper function.
10328 (can_completely_scalarize_p): Take into account groups.
10329 (sra_hash_tree): Handle RANGE_EXPR.
10330 (sra_elt_eq): Likewise.
10331 (lookup_element): Be prepared for handling groups.
10332 (is_valid_const_index): Delete.
10333 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
10334 instead of is_valid_const_index.
10335 <ARRAY_RANGE_REF>: New case.
10336 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
10337 is_valid_const_index.
10338 <ARRAY_RANGE_REF>: Do not unconditionally punt.
10339 (scan_dump): Dump info for groups too.
10340 (decide_instantiation_1): Likewise.
10341 (decide_block_copy): Assert that the element is not a group.
10342 Propagate decision to groups.
10343 (generate_one_element_ref): Handle RANGE_EXPR.
10344 (mark_no_warning): Iterate over actual childs.
10345 (generate_copy_inout): Likewise.
10346 (generate_element_copy): Likewise.
10347 (generate_element_zero): Likewise.
10348 (generate_element_init_1): Likewise.
10349 (dump_sra_elt_name): Handle RANGE_EXPR.
10351 2006-07-03 Roger Sayle <roger@eyesopen.com>
10353 PR tree-optimization/26251
10354 * tree-ssa-threadupdate.c (redirection_block_p): New function.
10355 (thread_block): When optimizing for size refuse to thread jumps
10356 that would require duplication of blocks other than redirection
10359 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
10361 * configure.ac: Fix thinko in previous check-in.
10362 * configure: Regenerate.
10364 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
10367 * configure.ac (for lang...): Simplify nesting of conditionals.
10368 Test subdir_requires for non-enabled languages. Move processing
10369 of lang_opt_files and lang_tree_fiels below that test.
10370 * configure: Regenerate.
10371 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
10373 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
10375 * doc/gcov.texi (Invoking Gcov): Add a missing word.
10377 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
10379 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
10382 2006-06-29 Jason Merrill <jason@redhat.com>
10389 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
10390 * c-common.c (c_determine_visibility): Handle it here.
10391 * c-decl.c (finish_decl): Call c_determine_visibility for
10393 * flags.h (enum symbol_visibility): Sort from most to least visibility.
10394 * tree.h: Likewise.
10395 * varasm.c (default_assemble_visibility): Likewise.
10396 * c-common.c (handle_visibility_attribute): Complain about trying
10397 to give visibility to an already defined class, or trying to change
10398 declared visibility. Always attach the attribute.
10403 * attribs.c (decl_attributes): Ignore type-in-place attributes
10404 once the type has been defined.
10406 2006-06-29 Roger Sayle <roger@eyesopen.com>
10408 PR middle-end/27428
10409 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
10410 to indicate the cpplib has issued an error message for us.
10412 2006-06-29 Asher Langton <langton2@llnl.gov>
10415 * config/i386/i386.c (ix86_output_function_epilogue): Don't
10416 insert a label at the end of an function under Mach-O.
10418 2006-06-29 Eric Christopher <echristo@apple.com>
10419 Evan Cheng <evan.cheng@apple.com>
10421 * predicates.md (vector_all_ones_operand): New.
10422 (nonimmediate_or_sse_const_operand): Ditto.
10423 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
10424 * config/i386/i386.c (standard_sse_constant_opcode): Define.
10425 (standard_sse_mode_p): Ditto.
10426 (standard_sse_constant_p): Add case for -1 vector.
10427 (ix86_expand_vector_move): Try to use.
10428 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
10429 Call standard_sse_constant_opcode.
10430 (*movv4sf_internal): Ditto.
10431 (*movv2df_internal): Ditto.
10433 2006-06-29 Roger Sayle <roger@eyesopen.com>
10435 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
10436 of XEXP to extract the operands of a MATCH_CODE rtx.
10438 2006-06-28 Andrew Pinski <pinskia@gmail.com>
10440 * tree.c (tree_size): Do not waste tail padding in
10441 struct tree_string and make the size be the same as
10442 build_string will generate.
10444 2006-06-28 Jason Merrill <jason@redhat.com>
10447 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
10448 may_aliases already in the tag's annotations to the bitmap.
10450 2006-06-28 Roger Sayle <roger@eyesopen.com>
10452 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
10454 2006-06-28 Roger Sayle <roger@eyesopen.com>
10456 * genpreds.c (generate_switch_p): New function.
10457 (add_mode_tests): Push the new mode test down inside an AND expr
10458 if this allows the switch-suitable MATCH_CODE to be near the root.
10459 (write_match_code_switch): New function to write a MATCH_CODE as
10460 a switch statement.
10461 (write_predicate_stmts): New function to write a predicate RTX
10462 expression as a sequence of statements.
10463 (write_one_predicate_function): Use write_predicate_stmts.
10464 (write_tm_constrs_h): Likewise.
10466 2006-06-26 Fred Fish <fnf@specifix.com>
10468 * config/mips/t-sb1: New file.
10469 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
10472 2006-06-26 DJ Delorie <dj@redhat.com>
10474 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
10476 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
10477 Jayant Sonar <jayants@kpitcummins.com>
10478 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
10480 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
10481 (subsi3, subsi3_1, subsi3_2): New.
10482 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
10483 * config/m32c/mov.md (SI mov peephole): New.
10484 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
10485 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
10487 2006-06-26 Olivier Hainque <hainque@adacore.com>
10489 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
10490 a CALL_EXPR target function declaration.
10492 2006-06-26 Richard Guenther <rguenther@suse.de>
10494 * tree.c (build_string): Do not waste tail padding in
10495 struct tree_string.
10497 2006-06-26 Richard Guenther <rguenther@suse.de>
10499 * ggc-page.c (init_ggc): Add missing element to size_lookup
10503 2006-06-23 Richard Guenther <rguenther@suse.de>
10505 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
10506 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
10507 alignment requests instead. Add verification code.
10508 Add struct tree_function_decl and struct tree_binfo size to
10509 extra_order_size_table. Add missing element to size_lookup
10512 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
10514 PR middle-end/28151
10515 * fold-const.c (const_binop): Be prepared for self returning zero.
10516 Simplify code handling complex values.
10518 2006-06-24 Olivier Hainque <hainque@adacore.com>
10520 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
10521 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
10524 2006-06-24 Olivier Hainque <hainque@adacore.com>
10526 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
10527 ARRAY_REF, so have the callback called for the low bound expression.
10529 2006-06-23 Janis Johnson <janis187@us.ibm.com>
10531 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
10532 * c-typeck.c (c_common_type): Disallow operations on decimal float
10533 types and other float types.
10534 * convert.c (convert_to_real): Don't ignore conversions involving
10535 decimal float types.
10537 2006-06-23 Olivier Hainque <hainque@adacore.com>
10539 * tree.c (max_int_size_in_bytes): New function, inspired from
10540 code in function.c:assign_temp.
10541 * tree.h (max_int_size_in_bytes): Declare.
10542 * function.c (assign_temp): Use it.
10543 * gimplify.c (create_tmp_var): Relax the assertions on the type
10544 properties, not mandating constant size any more.
10545 (force_constant_size): New static function.
10546 (gimple_add_tmp_var): Use it, forcing variable size to a
10547 constant upper bound if it is not constant on entry.
10549 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
10552 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
10553 for initialization and setting of one_only flag to ...
10554 (i386_pe_encode_section_info): ...here.
10555 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
10556 Recheck that the symbol has not been defined.
10558 2006-06-23 Richard Guenther <rguenther@suse.de>
10560 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
10561 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
10562 alignment requests instead. Add verification code.
10563 Add struct tree_function_decl and struct tree_binfo size to
10564 extra_order_size_table. Add missing element to size_lookup
10567 2006-06-22 Roger Sayle <roger@eyesopen.com>
10568 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10570 PR middle-end/28131
10571 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
10572 call to lang_hooks.types.type_for_mode returned NULL_TREE.
10574 2006-06-23 Ben Elliston <bje@au.ibm.com>
10576 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
10577 negate dn -- manipulate it directly.
10579 2006-06-22 Roger Sayle <roger@eyesopen.com>
10580 Steven Bosscher <stevenb.gcc@gmail.com>
10583 * reload1.c (gen_reload): Call mark_jump_label on the new insns
10584 generated by gen_move_insn to add REG_LABEL notes if necessary.
10586 2006-06-22 Bob Wilson <bob.wilson@acm.org>
10588 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
10589 (leaf_entry): Remove use of MIN_ESA.
10591 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
10593 PR rtl-optimization/28121
10594 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
10597 2006-06-21 DJ Delorie <dj@redhat.com>
10599 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
10601 (mulhisi3_r): Likewise.
10603 2006-06-21 Richard Sandiford <richard@codesourcery.com>
10605 PR middle-end/28034
10606 * coverage.c (coverage_counter_alloc): Leave the index type
10608 (coverage_counter_alloc): Use null arguments for operands 2 and 3
10611 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
10613 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
10614 section from the "Options for Code Generation Conventions".
10616 2006-06-21 Richard Henderson <rth@redhat.com>
10620 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
10622 (global_symbolic_operand): Allow weak symbols, even if local_p.
10624 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
10626 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
10627 (find_interesting_uses_address): Punt if above function returns true.
10629 2006-06-21 Richard Guenther <rguenther@suse.de>
10631 * configure: Regenerated.
10633 2006-06-21 Joseph Myers <joseph@codesourcery.com>
10635 * config/mips/mips.c (function_arg): Where one part of a
10636 complex argument is in registers and the other part in the stack,
10637 return a REG not a PARALLEL.
10639 2006-06-21 Mark Mitchell <mark@codesourcery.com>
10641 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
10642 when cross-compiling. Do not substitute libstdcxx_incdir.
10643 * configure: Regenerated.
10645 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10647 * varasm.c (mergeable_string_section): Check for embedded NULs and
10648 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
10649 rather than TREE_STRING_LENGTH bytes.
10651 2006-06-21 Richard Guenther <rguenther@suse.de>
10653 * ggc-page.c (extra_order_size_table): Add var_ann_d,
10654 tree_ssa_name, bitmap_element and phi_node with 4 arguments
10657 2006-06-21 Richrad Guenther <rguenther@suse.de>
10659 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
10660 Limit iteration over the dominators.
10662 2006-06-20 Roger Sayle <roger@eyesopen.com>
10664 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
10665 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
10667 2006-06-20 Richard Guenther <rguenther@suse.de>
10668 Michael Matz <matz@suse.de>
10670 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
10672 * alloc-pool.c (free_alloc_pool_if_empty): New function.
10673 * et-forest.h (et_free_pools): Prototype new function.
10674 * et-forest.c (et_free_tree_force): Free parent occurrence.
10675 (et_free_pools): New function.
10676 * dominance.c (free_dominance_info): Free et-forest alloc
10679 2006-06-20 Roger Sayle <roger@eyesopen.com>
10681 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
10682 integer modes, attempt to directly construct an integer constant.
10684 * fold-const.c (native_encode_vector): Determine the size of each
10685 element from the vector type instead of the first vector element.
10687 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
10688 if all of its elements/components are constant.
10689 (build_constructor_from_list): Likewise.
10691 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
10693 PR tree-optimization/27331
10694 * tree-data-ref.c (free_data_ref): New function.
10695 (create_data_ref): Fail if the data reference has unknown access
10697 (free_data_refs): Use free_data_ref.
10699 2006-06-19 Andrew Pinski <pinskia@gmail.com>
10701 PR middle-end/28075
10702 * tree-inline.c (setup_one_parameter): Strip useless
10703 type conversion before adding it to the IR.
10704 (declare_return_variable): Likewise.
10706 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
10709 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
10711 2006-06-19 Mike Stump <mrs@apple.com>
10713 * tree.c (variably_modified_type_p): VM arguments don't make the
10716 2006-06-19 Richard Guenther <rguenther@suse.de>
10718 * tree-ssa-pre.c (try_combine_conversion): Strip useless
10719 type conversions after folding.
10721 2006-06-19 Richard Guenther <rguenther@suse.de>
10723 * ggc-page.c (extra_order_size_tab): Add entries with
10724 size of struct function and basic_block.
10725 (size_lookup): Extend to cover sizes up to 511.
10726 (ggc_alloc_stat): Adjust user.
10727 (ggc_pch_count_object): Likewise.
10728 (ggc_pch_alloc_object): Likewise.
10729 (ggc_pch_write_object): Likewise.
10731 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
10733 * tree-ssa-loop-niter.c (implies_ge_p): New function.
10734 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
10737 2006-06-19 Denis Chertykov <denisc@overta.ru>
10739 * config/avr/libgcc.S : Correct my wrong previous commit.
10741 2006-06-19 Roger Sayle <roger@eyesopen.com>
10744 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
10745 have stripped a SUBREG from the shift count, so we may need to
10746 convert_to_mode back to the type's mode before calling make_tree.
10747 Use new_amount instead of amount to avoid expanding a tree twice.
10749 2006-06-19 Richard Guenther <rguenther@suse.de>
10751 PR middle-end/28045
10752 * fold-const.c (operand_equal_p): Check if the argument types
10753 have the same precision before stripping NOPs.
10755 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
10757 Fix PR tree-optimization/27341
10758 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
10760 * tree-complex.c (pass_lower_complex): Update SMT usage.
10762 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
10764 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
10765 Add a new alternative to the constraint strings. Add move of
10766 operand 1 to 3 to the splitter definition.
10767 ("doloop_si_long"): Second contraint alternative removed.
10769 2006-06-08 Anatoly Sokolov <aesok@post.ru>
10771 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
10772 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
10774 (AVR_HAVE_MOVW) Define.
10775 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
10776 (ASM_SPEC): Add avr25.
10777 (LINK_SPEC): Add avr25.
10778 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
10779 (base_arch_s): Add new member 'have_movw_lpmx'.
10780 (avr_arch_types): Init 'have_movw_lpmx'.
10781 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
10782 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
10783 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
10784 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
10785 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
10787 (avr_file_start): Do not output '.arh' derective.
10788 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
10789 (__do_copy_data): Use __AVR_HAVE_LPMX__.
10790 * config/avr/avr.md (mcu_enhanced): Delete.
10791 (mcu_have_movw): Define.
10792 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
10793 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
10794 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
10795 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
10796 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
10797 attiny861 and at86rf401 devices.
10799 2006-06-18 Jie Zhang <jie.zhang@analog.com>
10801 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
10804 2006-06-17 Karl Berry <karl@gnu.org>
10806 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
10807 doc/gccint.texi, doc/install.texi (@dircategory): Use
10808 "Software development" instead of "Programming", following
10809 the Free Software Directory.
10811 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
10813 * config/i386/i386.c (legitimate_tls_address)
10814 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
10815 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
10816 (*tls_dynamic_gnu2_combine_64): Likewise.
10818 2006-06-16 Richard Guenther <rguenther@suse.de>
10820 PR middle-end/27116
10821 * fold-const.c (negate_expr_p): Do not introduce undefined
10822 overflow in negating INTEGER_CSTs.
10823 (fold_negate_expr): Rename from negate_expr. Revert last
10824 change for folding BIT_NOT_EXPR. Change semantics to
10825 return NULL_TREE for non-simplified negations. Do not
10826 strip type conversions and unify type handling.
10827 (negate_expr): New function, wrap around fold_negate_expr
10828 but ensure building a tree always. Strip type conversions
10829 here, fold to result type.
10830 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
10832 2006-06-16 Roger Sayle <roger@eyesopen.com>
10834 PR middle-end/27802
10835 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
10836 that (would) return their results in stack registers.
10838 2006-06-16 Michael Matz <matz@suse.de>
10839 Richard Guenther <rguenther@suse.de>
10841 * fold-const.c (fold_truthop): Only return new tree node if
10842 we canonicalized something.
10844 2006-06-16 Richard Guenther <rguenther@suse.de>
10846 * function.h (enum function_frequency): Move declaration
10847 out of struct function.
10848 (struct function): Move bool fields and the enum to the bitfield
10849 section. Reorder elements to avoid padding. Remove unused
10850 fields left over from the RTL inliner removal.
10851 * function.c (free_after_compilation): Do not zero removed fields.
10852 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
10853 (ipa-type-escape.o): Likewise.
10855 2006-06-16 Richard Guenther <rguenther@suse.de>
10857 * cgraph.h (struct cgraph_local_info): Turn bool elements
10859 (struct cgraph_node): Likewise.
10860 (struct cgraph_varpool_node): Likewise.
10862 2006-06-15 Richard Guenther <rguenther@suse.de>
10864 * fold-const.c (fold_truth_not_expr): Rename from
10865 invert_truthvalue. Give it fold_* semantics to avoid
10866 generating garbage.
10867 (invert_truthvalue): New function. Wrapper around
10868 fold_truth_not_expr.
10869 (optimize_minmax_comparison): Avoid creating garbage.
10870 (fold_unary): Use fold_truth_not_expr for folding
10872 (fold_ternary): Replace uses of invert_truthvalue with
10873 fold_truth_not_expr where applicable.
10874 * tree.h (fold_truth_not_expr): Prototype.
10876 2006-06-16 Richard Guenther <rguenther@suse.de>
10878 PR tree-optimization/27781
10879 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
10880 * ipa-pure-const.c (target.h): Include.
10881 (analyze_function): Do not analyze functions that do not
10884 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
10886 PR middle-end/27793
10887 * tree-dfa.c (referenced_vars_dup_list): Remove.
10888 (find_referenced_vars): Remove assert.
10889 (referenced_var_check_and_insert): Replace dup list with assert.
10890 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
10891 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
10893 2006-06-15 Richard Guenther <rguenther@suse.de>
10895 * tree-ssa-structalias.c (alias_get_name): Avoid creating
10896 extra unused identifiers if not dumping.
10897 (create_variable_info_for): Likewise.
10899 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
10901 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
10902 (derive_constant_upper_bound): Derive more precise upper bound in
10903 common cases. Return type changed to double_int.
10904 (record_estimate): Reflect the changed return type of
10905 derive_constant_upper_bound.
10906 * double-int.c (double_int_zext, double_int_sext): Fix.
10908 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
10910 * configure.ac (CFLAGS): Get them from the toplevel or from the
10911 configure invocation.
10912 * configure: Regenerate.
10913 * Makefile.in (CFLAGS): Substitute value provided by configure.
10915 2006-06-14 Mark Mitchell <mark@codesourcery.com>
10918 * c-common.h (c_finish_omp_atomic): Adjust declaration.
10919 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
10920 rather than calling add_stmt on it.
10921 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
10923 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
10925 PR middle-end/27959
10926 * reload1.c (reload): Remove registers returned by update_eliminables
10927 from used_spill_regs.
10929 2006-06-13 DJ Delorie <dj@redhat.com>
10931 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
10933 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
10935 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
10936 html__strip_dir, html__mkdir_p. Enhance install-html target.
10937 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
10938 * configure: Regenerate.
10940 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
10942 * fold-const.c (fold_cond_expr_with_comparison): Check for
10943 Objective-C++ as language in deciding COND_EXPR transformation.
10945 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
10948 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
10949 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
10950 * config/sh/lib1funcs.h (SL, SL1): Define.
10951 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
10952 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
10953 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
10954 (OBJS_Os_4_200): New variable.
10955 ($(T)libgcc-Os-4-200.a): Use it.
10956 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
10957 when dividing 1 and/or by 0.
10959 2006-06-13 Roger Sayle <roger@eyesopen.com>
10961 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
10962 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
10963 * configure: Regenerate.
10965 2006-06-13 Jie Zhang <jie.zhang@analog.com>
10967 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
10968 for real instruction.
10970 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10972 PR middle-end/26807
10973 * haifa-sched.c (check_cfg): Handle special case.
10975 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
10978 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
10979 Add debug_info parameter. Chain the vars to the BLOCK instead
10980 of the BIND_EXPR if debug info are requested for them.
10981 (pop_gimplify_context): Adjust for above change.
10982 (gimple_add_tmp_var): Likewise.
10983 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
10984 Add bool parameter.
10985 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
10986 (convert_local_reference): Likewise.
10987 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
10988 (finalize_nesting_tree_1): Request that debug info be emitted
10989 for debug_var_chain.
10991 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10993 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
10994 for PR target/27863.
10996 2006-06-13 Richard Guenther <rguenther@suse.de>
10998 PR middle-end/27536
10999 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
11001 2006-06-13 Richard Guenther <rguenther@suse.de>
11003 PR tree-optimization/27830
11004 * tree-inline.c (copy_body_r): For copying the operand
11005 of an ADDR_EXPR make sure to fold &* afterwards.
11007 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
11009 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
11010 lvalues in the fb_none case with side-effects.
11012 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
11014 * tree-flow.h: Remove the prototype for
11015 compute_phi_arg_on_exit.
11016 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
11017 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
11020 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
11022 * builtins.c (expand_builtin_return_addr): Only use
11023 frame_pointer_rtx when count == 0 and we are expanding
11024 __builtin_return_address.
11026 2006-06-12 Fred Fish <fnf@specifix.com>
11028 * config/mips/mips.c (mips_file_start): Create special section
11029 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
11031 2006-06-11 Eric Christopher <echristo@apple.com>
11033 PR middle-end/27948
11034 * stor-layout.c (place_field): Remove check for
11035 remaining_in_alignment when aligning at the end of a run.
11037 2006-06-11 Eric Christopher <echristo@apple.com>
11040 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
11043 2006-06-11 Roger Sayle <roger@eyesopen.com>
11046 Revert incorrect fix for PR target/27158
11047 2006-05-08 Roger Sayle <roger@eyesopen.com>
11048 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
11049 of a reg_equiv_constant if the result is a legitimate constant.
11051 2006-06-11 Roger Sayle <roger@eyesopen.com>
11054 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
11055 extract a CONST_VECTOR element and interpret it as an integer.
11056 (vspltis_constant): Use const_vector_elt_as_int instead of the
11057 macro CONST_VECTOR_ELT in order to handle FP vector modes.
11058 * config/rs6000/predicates.md (easy_vector_const): Consider
11059 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
11061 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
11063 PR middle-end/27942
11064 * stor-layout.c (update_alignment_for_field): Don't add extra
11065 alignment for packed non-bitfield fields in ms_bitfield_layout_p
11068 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
11070 * config/mips/t-rtems: Add EL/EB multilib variants.
11072 2006-06-09 Mike Stump <mrs@apple.com>
11074 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
11076 2006-06-09 David Daney <ddaney@avtrex.com>
11078 * doc/install.texi: Add binutils version recommendation for mips-*-*.
11080 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
11082 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
11084 2006-06-09 Richard Guenther <rguenther@suse.de>
11086 PR tree-optimization/26998
11087 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
11088 of signed types, only TYPE_MIN_VALUE is special, but for both,
11089 minimum and maximum value. Likewise VR_ANTI_RANGE is special
11090 in this case, as is -fwrapv.
11092 2006-06-08 Mike Stump <mrs@apple.com>
11095 * config/darwin.c (darwin_asm_output_anchor): Disable
11096 -fsection-anchors on darwin for now.
11097 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
11098 * rs6000/rs6000.c (optimization_options): Likewise.
11100 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11103 * config/i386/i386.c (classify_argument): Skip fields with invalid
11106 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
11108 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
11109 (cse_insn): Likewise for the stack_pointer_rtx.
11111 2006-06-08 Roger Sayle <roger@eyesopen.com>
11113 * tree-ssa-dom.c (record_conditions): Only record "unordered"
11114 conditions from floating point comparisons.
11116 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
11118 PR middle-end/27733
11119 * expmed.c (struct alg_hash_entry): Fix type of field T
11120 to match synth_mult argument.
11121 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
11123 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
11126 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
11129 2006-06-08 Richard Guenther <rguenther@suse.de>
11131 PR middle-end/27116
11132 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
11133 only, if overflow is defined and not trapping.
11134 (negate_expr): Likewise.
11136 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
11138 PR tree-optimization/27872
11139 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
11140 flag on the new exit edge of the unrolled loop.
11142 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
11144 PR rtl-optimization/26449
11145 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
11147 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
11149 PR middle-end/27793
11150 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
11151 referenced_variables with matching DECL_UID's.
11152 (find_referenced_vars): Make sure duplicate list is empty to start.
11153 (referenced_var_p): Remove.
11154 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
11155 Check if var is in the list, and add if needed. Update the duplicate
11156 list if a different var is in the list with the same DECL_UID.
11157 (add_referenced_var): Call routine to check and insert.
11158 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
11159 * tree-flow.h (referenced_vars_dup_list): External declaration.
11161 2006-06-07 Fred Fish <fnf@specifix.com>
11163 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
11166 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
11169 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
11170 the imaginary and real parts of a clobbered register.
11171 Emit insn to set the imaginary part.
11173 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
11175 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
11176 in lieu of unwind-dw2-fde.c.
11178 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11180 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
11182 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
11185 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
11186 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
11187 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
11188 V4SImode temporaries and operations instead.
11190 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
11192 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
11195 2006-06-06 Mike Stump <mrs@apple.com>
11197 * Makefile.in: Rename to htmldir to build_htmldir to avoid
11198 installing during build.
11200 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
11202 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
11204 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
11205 * config/ia64/ia64.c (params.h): New header.
11206 (ia64_optimization_options): New function to adjust parameters.
11207 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
11208 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
11209 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
11211 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
11213 * stor-layout.c (debug_rli): Fix a typo in a debug message.
11215 2006-06-05 Steve Ellcey <sje@cup.hp.com>
11218 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
11220 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
11221 Victor Kaplansky <victork@il.ibm.com>
11223 PR tree-optimization/26360
11224 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
11227 2006-06-04 Roger Sayle <roger@eyesopen.com>
11228 Andrew Pinski <pinskia@physics.uc.edu>
11230 PR middle-end/27382
11231 * c-common.c (c_common_truthvalue_conversion): Explicitly check
11232 for LABEL_DECL before calling DECL_WEAK.
11235 * c-typeck.c (build_binary_op): Likewise, explicitly check for
11236 LABEL_DECL and PARM_DECL.
11238 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
11242 * c-decl.c (grokdeclarator): Disallow variably modified types at
11243 file scope. Avoid marking shared array type of constant size as
11246 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11249 * c-common.c (fold_offsetof_1): Handle static members.
11251 2006-06-04 Eric Christopher <echristo@apple.com>
11253 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
11254 (debug_rli): Output value for remaining_in_alignment.
11255 (update_alignment_for_field): Unconditionalize
11256 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
11257 extra alignment code.
11258 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
11259 ms_bitfield_layout_p code. Rewrite handling of structure fields.
11260 * tree.h (record_layout_info_s): Remove prev_packed.
11261 * doc/extend.texi (ms_struct): Add documentation of format.
11263 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
11265 * tree.h: Declare folding_initializer.
11266 * builtins.c (fold_builtin_constant_p): Give definite answer
11267 if folding inside an initializer.
11268 * fold-const.c: Define folding_initializer.
11269 (START_FOLD_INIT): Save and then set folding_initializer.
11270 (END_FOLD_INIT): Restore folding_initializer.
11272 2006-06-04 Richard Guenther <rguenther@suse.de>
11274 PR tree-optimization/27039
11275 * fold-const.c (fold_comparison): Handle pointer comparison
11276 again for all comparison codes. Compare offsets in signed
11278 (fold_binary): Move code from here.
11280 2006-06-03 Roger Sayle <roger@eyesopen.com>
11283 * config/i386/i386.c (construct_container): Split static issued_error
11284 flag into issued_sse_arg_error, issued_sse_ret_error and
11285 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
11286 requires the use of x87 registers and the user explicitly
11287 specified the -mno-80387 command line option.
11289 2006-06-02 Geoffrey Keating <geoffk@apple.com>
11291 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
11292 HAVE_DECL_SIGALTSTACK.
11294 (segv_handler): Use MC_FLD.
11295 * configure.ac: Check for a sigaltstack declaration.
11296 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
11297 * configure: Regenerate.
11298 * config.in: Regenerate.
11300 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
11303 * Makefile.in (stmp-fixinc): Fix typo.
11305 2006-06-02 Roger Sayle <roger@eyesopen.com>
11307 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
11308 are type correct. Clean-up.
11309 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
11310 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
11312 2006-06-01 DJ Delorie <dj@redhat.com>
11314 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
11315 shift, as we've disabled the "switch" insn that needs it.
11317 2006-06-01 Per Bothner <bothner@bothner.com>
11319 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
11320 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
11321 * c-ppoutput.c (cb_define): Don't increment line 0.
11323 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
11325 * doc/invoke.texi: Add cpu_type power6.
11326 * config.gcc: Add cpu_type power6.
11327 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
11328 to power5+ with Altivec.
11329 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
11330 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
11332 2006-05-30 Anatoly Sokolov <aesok@post.ru>
11334 * config/avr/avr.h (SET_ASM_OP): Define.
11336 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
11338 * config/bfin/bfin.c: Fix comment typos.
11340 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
11343 * doc/install.texi: Document --enable-bootstrap and
11344 --disable-bootstrap.
11346 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
11348 * doc/install.texi: Document that InfoZIP can replace jar.
11350 2006-05-31 Roger Sayle <roger@eyesopen.com>
11352 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
11353 isn't available, directly generate the simpler x87 patterns without
11354 the (use (const_int 0)).
11355 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
11356 implementation isn't available.
11357 (*negdf2_1): Likewise.
11358 (*negxf2_1): XF mode negation is always done using the x87.
11359 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
11361 2006-05-31 Roger Sayle <roger@eyesopen.com>
11363 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
11364 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
11366 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
11368 2006-05-31 Jie Zhang <jie.zhang@analog.com>
11370 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
11371 * config/bfin/bfin.c (basic-block.h): Include.
11372 (struct machine_function): New.
11373 (bfin_init_machine_status): New.
11374 (override_options): Initialize init_machine_status.
11375 (bfin_hardware_loop): New.
11376 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
11377 (DEF_VEC_P (loop_info)): New.
11378 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
11379 (struct loop_info): New.
11380 (loop_info): New typedef.
11381 (struct loop_work): New.
11382 (loop_work): New typedef.
11383 (DEF_VEC_O (loop_work)): New.
11384 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
11385 (bfin_dump_loops): New.
11386 (bfin_bb_in_loop): New.
11387 (bfin_scan_loop): New.
11388 (bfin_optimize_loop): New.
11389 (bfin_reorg_loops): New.
11390 (bfin_reorg): Use bfin_reorg_loops.
11391 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
11393 (I_REGNO_P): Simplify.
11394 (DP_REGNO_P, DPREG_P): New macros.
11395 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
11396 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
11397 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
11398 Add LT_REGS, LC_REGS, LB_REGS.
11399 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
11401 (REGNO_REG_CLASS): Deal with loop registers.
11402 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
11404 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
11405 New constants for loop registers.
11406 (UNSPEC_LSETUP_END): New.
11407 (seq_insns): New define_attr. Set it for appropriate insns.
11408 (movsi_insn): Add alternatives for move from/to
11409 loop count registers.
11410 (doloop_end): New define_expand.
11411 (loop_end): New define_insn.
11412 (define_split for bad doloop_end): New.
11413 (lsetup_with_autoinit): New define_insn.
11414 (lsetup_without_autoinit): New define_insn.
11415 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
11416 * config/bfin/predicates.md (lc_register_operand): New.
11417 (lt_register_operand): New.
11418 (lb_register_operand): New.
11419 (nondp_register_operand): New.
11420 (nondp_reg_or_memory_operand): New.
11421 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
11423 2006-05-31 Jie Zhang <jie.zhang@analog.com>
11425 * config/bfin/bfin.c (bfin_delegitimize_address): New.
11426 (TARGET_DELEGITIMIZE_ADDRESS): Define.
11428 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
11430 * Makefile.in (CATALOGS): Add po/ prefix.
11431 * configure: Regenerated.
11433 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
11436 * arm.c (arm_print_operand case 'S'): Validate that the operand is
11437 a shift operand before calling shift_op. Avoid redundant call of
11440 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
11441 DJ Delorie <dj@redhat.com>
11443 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
11444 we're inserting is a singlt-bit constant.
11446 2006-05-30 Roger Sayle <roger@eyesopen.com>
11448 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
11449 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
11451 2006-05-30 Roger Sayle <roger@eyesopen.com>
11453 PR tree-optimization/23452
11454 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
11455 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
11456 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
11457 complex values and with -ffast-math for FP complex values.
11459 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
11461 * c-common.h: Remove the prototype for yyparse.
11462 * rtl.h: Remove the prototype for init_loop.
11464 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
11466 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
11469 2006-05-30 Roger Sayle <roger@eyesopen.com>
11471 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
11473 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
11474 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
11476 2006-05-30 Dirk Mueller <dmueller@suse.de>
11479 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
11480 for CONSTANT_CLASS_P expresisons.
11482 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11485 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
11487 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
11489 PR tree-optimization/27779
11490 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
11491 initial_condition instead of CHREC_LEFT.
11493 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
11495 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
11496 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
11497 Make prototypes ISO C90.
11499 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
11500 Leehod Baruch <leehod.baruch@weizmann.ac.il>
11502 * see.c (see_analyze_one_def): Correct check.
11503 (see_get_extension_data): Check if extension is parallel.
11504 (see_get_extension_reg): Likewise.
11506 2006-05-30 Uros Bizjak <uros@kss-loka.si>
11509 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
11510 into register for (code == GTU).
11512 2006-05-29 Roger Sayle <roger@eyesopen.com>
11514 PR tree-optimization/24964
11515 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
11516 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
11517 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
11518 abs(x)*abs(x) as x*x for scalar floating point modes.
11520 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
11522 PR middle-end/27745
11523 * lambda-code.c (perfect_nestify): Don't copy statements
11524 in the inner loop: move them to the inner loop header.
11526 2006-05-29 Diego Novillo <dnovillo@redhat.com>
11529 * c-tree.texi: Document OpenMP directives and clauses.
11531 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
11533 * varasm.c (globalize_decl): Fix indentation.
11535 2006-05-29 Diego Novillo <dnovillo@redhat.com>
11538 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
11539 pass_fre, pass_store_ccp, pass_copy_prop,
11540 pass_store_copy_prop, pass_merge_phi, pass_nrv,
11541 pass_return_slot, pass_object_size, pass_lim,
11542 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
11543 pass_loop_prefetch and pass_stdarg.
11545 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
11547 * config/bfin/bfin.opt (mfdpic): New option.
11548 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
11549 (EXTRA_MULTILIB_PARTS): Likewise.
11550 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
11551 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
11553 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
11554 (CRT_CALL_STATIC_FUNCTION): New.
11555 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
11557 (CRT_CALL_STATIC_FUNCTION): New.
11558 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
11560 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
11561 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
11562 (initialize_trampoline): Changed to handle FD-PIC code generation.
11563 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
11564 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
11565 (override_options): Disallow -mid-shared-library -mfdpic combination.
11566 Can't do unaligned ops if FD-PIC.
11567 Turn off flag_pic if trying to generate non-id-shared-library
11568 non-fdpic code, since it's not supported.
11569 (bfin_assemble_integer): New function.
11570 (TARGET_ASM_INTEGER): Define.
11571 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
11573 * config/bfin/crtn.s: Restore them.
11574 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
11576 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
11577 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
11578 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
11579 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
11580 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
11582 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
11583 FDPIC_REGS and FDPIC_FPTR_REGS.
11584 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
11585 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
11586 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
11587 (load_funcdescsi): New pattern.
11588 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
11589 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
11590 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
11592 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
11594 * gcse.c, rtlanal.c: Remove obsolete comments associated with
11597 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
11599 * tree-flow.h: Remove the prototype for add_type_alias.
11600 * tree-ssa-alias.c (add_type_alias): Remove.
11602 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
11604 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
11605 config/fr30/fr30.md, config/i386/i386-interix.h,
11606 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
11607 config/sh/superh64.h, config/v850/v850.c, df-core.c,
11608 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
11609 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
11610 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
11611 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
11612 Follow spelling conventions.
11613 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
11614 Follow spelling conventions.
11616 2006-05-27 Richard Guenther <rguenther@suse.de>
11618 PR middle-end/27773
11619 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
11620 to produce a constant of value 1 of generic type.
11622 2006-05-27 Dirk Mueller <dmueller@suse.de>
11624 * cgraphunit.c (decide_is_function_needed): Fix wrong
11627 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
11629 PR rtl-optimization/27661
11630 * reload.c (find_reloads): When reloading a VOIDmode constant
11631 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
11632 use Pmode as mode of the reload register.
11634 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
11636 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
11637 is enabled at -O and above.
11639 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
11642 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
11645 2006-05-25 Mark Mitchell <mark@codesourcery.com>
11648 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
11649 for anonymous variables explicitly declared by front ends.
11651 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
11653 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
11654 (struct alias_info): Add new field ref_all_symbol_mem_tag.
11655 * tree-ssa-alias.c (compute_may_aliases): If the program contains
11656 ref-all pointers, run a finalization pass for them.
11657 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
11658 (finalize_ref_all_pointers): New function.
11659 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
11660 regular pointer type to a ref-all pointer type.
11661 (get_tmt_for): Return the special memory tag for ref-all pointers.
11663 2006-05-25 Richard Guenther <rguenther@suse.de>
11665 PR middle-end/27743
11666 * fold-const.c (fold_binary): Do not look at the stripped
11667 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
11669 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
11671 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
11672 for LT and GT if the computed range is effectively empty.
11674 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11677 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
11678 mips_quad_format formats instead of ieee_single_format,
11679 ieee_double_format and ieee_quad_format formats, respectively.
11681 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
11683 PR tree-optimization/27639
11684 PR tree-optimization/26719
11685 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
11686 call to scev_probably_wraps_p.
11687 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
11688 used_in_pointer_arithmetic_p, convert_step): Removed.
11689 (nowrap_type_p): New function.
11690 (scev_probably_wraps_p): Rewritten.
11691 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
11692 chrec_convert if chrec_convert_aggressive might have been used.
11693 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
11694 scev_direction): New functions.
11695 (chrec_convert): Changed to a wrapper over chrec_convert_1.
11696 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
11697 instead of convert_step.
11698 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
11699 (convert_step): Declaration removed.
11700 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
11702 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
11704 * df-core.c: Added to header comments.
11705 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
11706 df_ur_bb_info, df_urec_bb_info): Added comments.
11707 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
11708 urec, ri problems): Fixed header comments.
11709 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
11710 code from df_rd_transfer_function.
11712 2006-05-23 Richard Sandiford <richard@codesourcery.com>
11714 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
11715 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
11716 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
11718 2006-05-23 Joseph Myers <joseph@codesourcery.com>
11720 * expr.c (undefined_operand_subword_p): New.
11721 (emit_move_multi_word): Do not generate move from undefined bits
11722 of a paradoxical subreg.
11724 2006-05-23 Richard Sandiford <richard@codesourcery.com>
11726 PR rtl-optimization/27736
11727 * combine.c (replaced_rhs_value): New variable.
11728 (combine_instructions): Set it.
11729 (distribute_notes): When distributing a note in replaced_rhs_insn,
11730 check whether the value was used in replaced_rhs_value.
11732 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
11735 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
11736 add_referenced_var instead of add_referenced_tmp_var.
11737 * tree-complex.c (create_one_component_var): Use add_referenced_var.
11738 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
11739 add_referenced_var.
11740 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
11741 tree_optimize_tail_calls_1): Use add_referenced_var.
11742 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
11743 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
11744 Use add_referenced_var.
11745 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
11746 * gimplify.c (force_gimple_operand): Use add_referenced_var.
11747 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
11748 Use add_referenced_var.
11749 * tree-dfa.c (struct walk_state): Remove.
11750 (find_referenced_vars): Remove walk state and vars_found hash table.
11751 (make_rename_temp): Use add_referenced_var.
11752 (find_vars_r): Pass less parameters to add_referenced_var.
11753 (referenced_var_p): New. Is var in referenced_var hash table.
11754 (referenced_var_insert): Assert var isn't already in hash table.
11755 (add_referenced_var): Don't need walk_state parameter. Add var if it
11756 isn't already in the hash table.
11757 (add_referenced_tmp_var): Remove.
11758 (find_new_referenced_vars_1): Use add_referenced_var.
11759 * tree-ssa-pre.c (create_expression_by_pieces,
11760 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
11761 Use add_referenced_var.
11762 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
11763 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
11764 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
11765 add_referenced_var.
11766 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
11767 vect_create_data_ref_ptr, vect_create_destination_var,
11768 vect_init_vector, vect_build_loop_niters,
11769 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
11770 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
11771 Use add_referenced_var.
11772 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
11773 * tree-flow.h (add_referenced_tmp_var): Remove prototype
11774 (add_referenced_var): Add prototype.
11775 * tree-ssa-structalias.c (get_constraint_for,
11776 intra_create_variable_infos): Use add_referenced_var.
11778 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
11780 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
11781 big-endian paradoxical subregs.
11782 * var-tracking.c (struct micro_operation_def): Document that,
11783 for modify micro operations, insn is the subsequent instruction.
11784 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
11785 (var_reg_set, var_mem_set): ... new functions.
11786 (add_stores): Record subsequent insn.
11787 (compute_bb_dataflow): Use new functions for MO_USE.
11788 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
11789 notes after the insn, and modify notes before the insn known
11790 to be the subsequent one.
11791 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
11793 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
11796 * config/i386/i386.c (ix86_expand_builtin): Use
11797 gen_sse3_monitor64 for TARGET_64BIT.
11799 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
11801 PR rtl-optimization/26375
11802 PR rtl-optimization/26855
11803 * df-problems (df_ru_bb_local_compute_process_def): Removed update
11805 (df_ru_bb_local_compute): Reversed statements and removed bogus
11806 comment explaining why they should be in wrong order.
11807 (df_ru_dump, df_rd_dump): Enhanced debug info.
11808 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
11810 * ddg.c (add_deps_for_def): Converted use of reaching defs to
11811 reaching uses and fixed space problem.
11813 2006-05-23 Jan Hubicka <jh@suse.cz>
11815 * cgraphunit.c (decide_is_function_needed): Also nested functions
11816 and functions declared inline can be optimized out at -O0.
11818 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
11820 * doc/install.texi (Configuration): Remove reference to CrossGCC
11821 FAQ which was gone.
11824 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
11827 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
11828 ix86_compare_emitted is non-NULL.
11830 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11833 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
11836 2006-05-22 Richard Sandiford <richard@codesourcery.com>
11838 PR rtl-optimization/25514
11839 * combine.c (replaced_rhs_insn): New variable.
11840 (combine_instructions): Set replaced_rhs_insn when trying to replace
11841 a SET_SRC with a REG_EQUAL note.
11842 (distribute_notes): Use replaced_rhs_insn when determining the live
11843 range of a REG_DEAD register.
11845 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
11846 Anatoly Sokolov <aesok@post.ru>
11848 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
11849 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
11850 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
11851 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
11852 atmega3290, atmega649, atmega6490, atmega406, atmega640,
11853 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
11854 at90usb647, at90usb1286 and at90usb1287 devices.
11855 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11856 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11858 2006-05-22 Richard Sandiford <richard@codesourcery.com>
11860 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
11862 2006-05-22 Richard Guenther <rguenther@suse.de>
11865 2006-01-31 Richard Guenther <rguenther@suse.de>
11866 Paolo Bonzini <bonzini@gnu.org>
11868 * doc/install.texi (--disable-libgcc-math): Document.
11870 2006-05-22 Richard Guenther <rguenther@suse.de>
11873 2006-01-31 Richard Guenther <rguenther@suse.de>
11875 * doc/invoke.texi (-msselibm): Document.
11876 * target.h (expand_library_builtin): New target hook.
11877 * builtins.c (expand_builtin): Use expand_library_builtin.
11878 (default_expand_library_builtin): New function.
11879 * gcc.c (LINK_GCC_MATH_SPEC): Define.
11880 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
11881 (link_gcc_math_spec): Declare.
11882 (static_specs): Add link_gcc_math_spec.
11883 * expr.h (default_expand_library_builtin): Declare.
11884 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11885 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
11886 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
11887 * config/i386/i386.opt (msselibm): New target option.
11888 * config/i386/i386.c (ix86_builtin_function_variants): New array.
11889 (ix86_init_sse_abi_builtins): New function.
11890 (ix86_expand_library_builtin): Likewise.
11891 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
11892 (override_options): Handle error conditions wrt -msselibm.
11893 (ix86_builtins): Add function codes for SSE2 ABI builtins.
11894 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
11895 * doc/extend.texi (__builtin_sse2_*): Document new target specific
11898 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11901 * c-common.c (self_promoting_args_p): Skip erroneous args.
11904 * c-decl.c (finish_struct): Skip erroneous fields.
11906 2006-05-22 Nick Clifton <nickc@redhat.com>
11908 * config/cris/cris.opt (march): Remove VarExists attribute.
11909 (max-stackframe=): Likewise.
11911 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
11913 * doc/rtl.texi: Fix a typo.
11914 * see.c: Fix comment typos.
11916 * tree-ssa-structalias.h (alias_info): Remove num_references.
11918 2006-05-21 Mike Stump <mrs@apple.com>
11920 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
11922 (darwin_pragma_options): Use BAD instead.
11923 (darwin_pragma_unused): Likewise.
11924 (darwin_pragma_ms_struct): Likewise.
11926 2006-05-21 David Edelsohn <edelsohn@gnu.org>
11928 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
11930 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
11932 PR rtl-optimization/27671
11933 * simplify-rtx.c (simplify_relational_operation_1): Fix
11934 simplifications of (eq/ne (xor x y) y) and
11935 (eq/ne (xor x y) x).
11937 PR tree-optimization/26622.
11938 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
11941 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
11943 * tree-cfg.c: Prune whitespace.
11944 (debug_tree_cfg): Point to correct header containing the
11947 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
11949 PR middle-end/25776
11950 * cgraphunit.c (verify_cgraph_node): Typo in error message.
11952 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
11954 PR middle-end/25776
11955 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
11956 or sorry count is non zero.
11958 2006-05-20 Andreas Schwab <schwab@suse.de>
11960 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
11962 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
11963 Kenneth Zadeck <zadeck@naturalbridge.com>
11965 PR rtl-optimization/26855
11967 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
11969 (df_scan_alloc): Added code to properly handle multiword hard
11970 registers and add all_blocks parameter.
11971 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
11972 code to properly handle multiword hard registers.
11973 (df_rescan_blocks): Added code to remove deleted blocks from
11975 (df_ref_create_structure, df_ref_record): Added code to properly
11977 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
11978 and set DF_REF_PARTIAL.
11979 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
11980 (df_uses_record): Added DF_REF_PARTIAL for subreg.
11981 (df_scan_add_problem): Added flags parameter.
11982 (df_ref_create_structure): Changed switching structure.
11983 (df_bb_refs_record): Fixed case where duplicate artificial refs
11984 were created. Changed location of flags.
11985 (df_record_entry_block_defs): Added code to make stack pointer
11986 live in entry block. Refined cases where frame pointer is needed.
11987 Changed location of flags.
11988 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
11989 (df_set_state): Removed function.
11990 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
11991 df_insn_create_insn_record, df_insn_refs_delete,
11992 df_ref_create_structure): Formatting changes.
11993 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
11994 df_delete_basic_block): New function.
11995 (df_init): Changed location of flags.
11996 (df_add_problem): Added flags parameter and the way flags are
11998 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
11999 debug_df_chain): Improved debugging output.
12000 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
12001 (df_refs_chain_dump): Removed df parameter.
12002 (df_iterative_dataflow): Added consistency check.
12003 (df_prune_to_subcfg): Made public.
12004 (df_analyze_problem): Added blocks_to_init parameter and made
12006 (df_ref_record, df_bb_refs_record, df_mark_reg,
12007 df_record_exit_block_uses): Whitespace changes.
12008 (df_dump): Whitespace changes.
12009 * df.h: Some reordering to remove forward references.
12010 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
12011 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
12012 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
12013 (dataflow.flags): New field.
12014 (df.flag): Deleted field.
12015 (df_alloc_function): Added additional bitmap parameter.
12016 (df_dependent_problem_function): New type.
12017 (df_problem.changeable_flags): New field.
12018 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
12019 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
12020 (df_mw_hardreg): New struct.
12021 (DF_INSN_UID_MWS): New macro.
12022 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
12024 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
12025 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
12026 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
12027 (df_set_state): Removed function.
12028 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
12029 * df-problems.c (df_chain_dump): Removed df parameter.
12030 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
12031 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
12033 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
12034 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
12035 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
12036 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
12037 DF_REF_MUST_CLOBBER cases.
12038 (df_ru_bb_local_compute_process_def,
12039 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
12040 df_lr_bb_local_compute, df_ur_bb_local_compute,
12041 df_chain_create_bb): Made subreg aware.
12042 (df_ru_bb_local_compute, df_rd_bb_local_compute,
12043 df_lr_bb_local_compute, df_lr_bb_local_compute,
12044 df_chain_create_bb): Cleanup to use proper macros.
12045 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
12046 code to fixup bitvectors.
12047 (df_ri_alloc): Cleared lifetime.
12048 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
12049 df_create_unused_note): New function.
12050 (df_ri_bb_compute, df_ri_compute): Added code to create/update
12051 REG_DEAD and REG_UNUSED notes as well as register information.
12052 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
12053 df_chains_dump): Fixed crash if problem was never run.
12054 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
12055 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
12056 df_ri_add_problem): Processes flags in uniform manner.
12057 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
12058 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
12059 df_rd_dump, df_urec_free_bb_info): Formatting changes.
12060 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
12061 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
12062 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
12063 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
12064 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
12065 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
12066 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
12067 * see.c (see_initialize_data): Ditto.
12068 * final.c (rest_of_clean_state) Added regstack_completed.
12069 * rtl.h (regstack_completed): Ditto.
12070 * reg-stack.c (regstack_completed): Ditto.
12072 2006-05-19 Mike Stump <mrs@apple.com>
12074 * c-tree.h (default_conversion): Remove.
12075 * c-common.h (default_conversion): Add.
12077 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
12079 * tree-vrp.c (valid_value_p): New function.
12080 (adjust_range_with_scev): Fail if the value of bound is not
12083 2006-05-19 Richard Sandiford <richard@codesourcery.com>
12085 * config/mips/linux-unwind.h: Include <asm/unistd.h>
12086 (mips_fallback_frame_state): Use syscall numbers to determine
12087 the appropriate li instruction for the current ABI. Only use
12088 __NR_sigreturn for o32.
12090 2006-05-19 Nicolas Setton <setton@adacore.com>
12092 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
12093 * langhooks.c (lhd_dwarf_name): New function.
12094 * langhooks-def.h (lhd_dwarf_name): Declare.
12095 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
12096 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
12098 2006-05-19 Richard Sandiford <richard@codesourcery.com>
12100 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
12102 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
12103 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
12104 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
12105 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
12106 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
12107 determine the size of Wtype, etc.
12108 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
12109 (swfloatfuncs): New variable.
12110 (dwfloatfuncs): Likewise.
12111 (lib2funcs): Remove floating-point conversion functions from
12112 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
12113 the set of conversion routines needed. Allow entries to specify
12114 an object name, filename and word size. Update users accordingly.
12115 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
12116 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
12120 2006-02-08 Roger Sayle <roger@eyesopen.com>
12123 * config/fixtfdi.c: New libgcc source file.
12124 * config/fixunstfdi.c: New source file.
12125 * config/floatditf.c: New source file.
12126 * config/floatunditf.c: New souce file.
12127 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
12128 files above instead of config/mips/_tilib.c.
12129 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
12131 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12133 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
12134 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
12136 2006-05-18 Mike Stump <mrs@apple.com>
12138 Fix up vla, vm and [*] sematics.
12144 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
12145 (c_vla_unspec_p): Add.
12146 (c_vla_type_p): Add.
12147 * c-decl.c (struct c_scope): Add had_vla_unspec.
12148 (build_array_declarator): Add support for [*].
12149 (grokdeclarator): Likewise.
12150 (grokparms): Likewise.
12151 (get_parm_info): Likewise.
12152 * c-objc-common.c (c_vla_unspec_p): Likewise.
12153 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
12154 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
12155 typeof when argument is a variably modified type not inside sizeof or alignof.
12156 (c_parser_direct_declarator_inner): Propagate errors.
12157 (c_parser_sizeof_expression): Add support for [*].
12158 (c_parser_parms_declarator): Initialize had_vla_unspec.
12159 (c_parser_parms_list_declarator): Likewise.
12160 * c-typeck.c (c_vla_type_p): Add.
12161 (composite_type): Add support for vla compositing.
12162 (comptypes_internal): Add support for vla compatibility.
12163 (c_expr_sizeof_expr): Evaluate vla arguments.
12164 * tree.c (variably_modified_type_p): Update comment for [*].
12166 2006-05-18 Michael Matz <matz@suse.de>
12169 * config.host: Make assignments to host_xmake_file cumulative.
12170 * config.host (*-darwin*): Test $host, not $target.
12172 2006-05-12 Stuart Hastings <stuart@apple.com>
12174 * config/i386/i386.opt (-mstackrealign): New flag.
12175 * config/i386/i386.c (force_align_arg_pointer): New attribute.
12176 (ix86_handle_cconv_attribute): Emit error when
12177 force_align_arg_pointer attribute collides with too many regparms.
12178 (ix86_function_regparm): Limit regparms when used with
12179 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
12180 Support stack-realigning prologue in non-main functions. Emit
12181 warning for nested functions under -mstackrealign, emit error for
12182 nested functions with force_align_arg_pointer attribute.
12183 * doc/extend.texi (force_align_arg_pointer): Document it.
12184 * doc/invoke.texi (-mstackrealign): Document it.
12186 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
12188 PR rtl-optimization/27477
12189 * combine.c (try_combine): Don't split a parallel consisting
12190 of two sets into two individual sets if both sets reference
12193 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
12195 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
12196 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
12198 * doc/options.texi (VarExists): Updated.
12200 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12202 * unwind-dw2.c: Add declarations for uw_update_context and
12203 uw_frame_state_for.
12204 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
12205 detected, advance frame state and context once to skip over stub.
12207 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
12209 PR middle-end/20256
12210 PR middle-end/26435
12211 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
12212 Call rewrite_into_loop_closed_ssa only when something changed.
12213 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
12214 * lambda-code.c (can_convert_to_perfect_nest): Declared.
12215 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
12216 Test for perfect_nest_p here. Fix formating.
12217 (replace_uses_equiv_to_x_with_y): Fix formating.
12218 (stmt_uses_op): Removed.
12219 (can_convert_to_perfect_nest): Removed loopivs parameter.
12220 Complete the test by checking the scalar dependences.
12221 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
12224 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
12227 From Dan Kegel <dank@kegel.com>:
12228 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
12230 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
12232 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
12233 if the element type is variably modified without recursing.
12235 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
12237 PR middle-end/27332
12238 * tree-loop-linear.c (try_interchange_loops): Test for
12239 no data dependences.
12241 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
12243 PR tree-optimization/27548
12244 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
12245 range of ssa names that appear on abnormal edges.
12246 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
12247 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
12249 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
12251 PR middle-end/27620
12252 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
12254 2006-05-17 Jakub Jelinek <jakub@redhat.com>
12256 PR middle-end/27415
12257 * tree.h (OMP_PARALLEL_COMBINED): Define.
12258 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
12259 (new_omp_context): Add is_combined_parallel argument.
12260 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
12261 new_omp_context caller.
12262 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
12263 Adjust gimplify_scan_omp_clauses callers.
12264 (omp_is_private): Issue errors if iteration variable is firstprivate
12265 or reduction in the current context.
12266 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
12267 on combined parallel workshare constructs.
12269 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
12271 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
12272 (gcc-options.o): New rule.
12274 * optc-gen.awk: Protect variables for gcc-options.o with
12275 #ifdef GCC_DRIVER/#endif.
12277 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
12279 Fix PR tree-optimization/27373
12280 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
12281 (forward_propagate_addr_expr): Update call.
12283 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
12285 * doc/options.texi: Move the Negative option.
12287 2006-05-16 Richard Guenther <rguenther@suse.de>
12289 PR tree-optimization/22303
12290 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
12292 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
12293 ccp_fold did not simplify the statement.
12295 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
12298 * Makefile.in (GCC_OBJS): New.
12299 (OBJS-common): Add opts-common.o.
12300 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
12301 (cpp$(exeext)): Likewise.
12302 (gcc.o): Also depend on opts.h.
12303 (opts-common.o): New.
12305 * common.opt (gcoff): Add Negative(gdwarf-2).
12306 (gdwarf-2): Add Negative(gstabs).
12307 (gstabs): Add Negative(gstabs+).
12308 (gstabs+): Add Negative(gvms).
12309 (gvms): Add Negative(gxcoff).
12310 (gxcoff): Add Negative(gxcoff+).
12311 (gxcoff+): Add Negative(gcoff).
12312 * config/i386/i386.opt (m32): Add Negative(m64).
12313 (m64): Add Negative(m32).
12315 * doc/options.texi: Document the Negative option.
12317 * gcc.c: Include "opts.h".
12318 (main): Call prune_options after expandargv.
12320 * optc-gen.awk: Generate common declarations for all flag
12321 variables in options.c. Output the neg_index field.
12323 * opts.c (find_opt): Moved to ...
12324 * opts-common.c: Here. New file.
12326 * opts.h (cl_option): Add a neg_index field.
12328 (prune_options): Likewise.
12330 2006-05-16 Jakub Jelinek <jakub@redhat.com>
12332 PR middle-end/27573
12333 * omp-low.c (expand_omp_parallel): Don't assert
12334 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
12335 instead search for it.
12338 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
12341 2006-05-16 Andreas Schwab <schwab@suse.de>
12343 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
12346 2006-05-15 Roger Sayle <roger@eyesopen.com>
12349 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
12350 integer constants other than zero are only legitimate on TARGET_64BIT.
12351 <CONST_VECTOR> Only zero vectors are legitimate.
12352 (ix86_cannot_force_const_mem): Integral and vector constants can
12353 always be put in the constant pool.
12355 2006-05-16 DJ Delorie <dj@redhat.com>
12357 * crtstuff.c (__dso_handle): Set section from
12358 TARGET_LBIGCC_SDATA_SECTION if defined.
12359 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
12360 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
12362 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
12365 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
12368 2006-05-16 Ben Elliston <bje@au.ibm.com>
12370 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
12372 2006-05-15 Per Bothner <per@bothner.com>
12374 * tree.c: (last_annotated_node): Use source_locus typedef.
12375 This permits bootstrapping with --enable-mapped-location.
12377 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
12379 PR tree-optimization/26830
12380 * tree-into-ssa.c (struct ssa_name_info): Add age field.
12381 (info_for_ssa_name, current_info_for_ssa_name_age,
12382 blocks_to_update): New variables.
12383 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
12384 (clear_ssa_name_info, initialize_flags_in_bb,
12385 mark_block_for_update): New functions.
12386 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
12387 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
12388 prepare_def_site_for): Use mark_block_for_update.
12389 (mark_def_interesting): Assert that the processed block is marked in
12390 blocks_to_update. Do not take blocks argument.
12391 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
12393 (rewrite_update_init_block, rewrite_update_stmt): Only process
12394 blocks with statements to rewrite.
12395 (delete_update_ssa): Do not clear SSA_NAME_AUX.
12396 (update_ssa): Initialize and free blocks_to_update. Do not
12397 clear flags on statements. Do not use blocks bitmap.
12398 * tree.h (SSA_NAME_AUX): Removed.
12399 (struct tree_ssa_name): Removed aux field.
12400 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
12402 2006-05-15 Richard Guenther <rguenther@suse.de>
12404 PR tree-optimization/27603
12405 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
12406 Do computations in original type.
12408 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
12410 * see.c: Code style changes such as redundant paranthesis,
12411 redundant intialization of local variables etc.
12412 (see_main): Declared now as static.
12413 * doc/invoke.texi: Update that -fsee is not enabled by
12416 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12418 * omp-low.c (check_omp_nesting_restrictions): New function.
12419 (scan_omp_1): Call it.
12421 PR middle-end/27416
12422 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
12423 construct, return *VAR.
12425 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
12427 PR rtl-optimization/27406
12428 * bt-load.c (migrate_btr_def): Skip the block having abnormal
12431 2006-05-14 Roger Sayle <roger@eyesopen.com>
12433 PR rtl-optimization/27538
12434 * combine.c (expand_compound_operation): Call gen_lowpart
12435 before calling simplify_shift_const.
12437 2006-05-14 Roger Sayle <roger@eyesopen.com>
12439 PR rtl-optimization/22563
12440 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
12441 a fixed width bitfield, always force the intermediates into psuedos.
12443 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
12446 * mkconfig.sh: Use operator = instead of == for test.
12448 2006-05-13 Nick Clifton <nickc@redhat.com>
12450 * dwarf2out.c (dbx_reg_number): Check return value from
12451 LEAF_REG_REMAP and only use it if it is valid.
12452 (multiple_reg_loc_descriptor): Likewise.
12454 2006-05-13 Richard Guenther <rguenther@suse.de>
12456 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
12459 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
12461 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
12462 information attached to non-INSNs such as NOTEs.
12463 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
12465 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
12467 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
12469 * config/s390/s390.md: Adjust comment describing On constraint.
12471 2006-05-11 Jan Hubicka <jh@suse.cz>
12473 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
12474 to be output at -O0.
12476 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12478 PR middle-end/27384
12479 * fold-const.c (size_binop): Move sanity check for arguments to
12480 the beginning of the function.
12482 PR middle-end/27488
12483 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
12486 2006-05-11 Richard Guenther <rguenther@suse.de>
12488 PR middle-end/27529
12489 * fold-const.c (fold_unary): Handle intermediate conversion
12490 to a pointer type like intermediate conversion to an integer
12491 type in folding of (T1)(T2)var to var.
12492 Match the code to the comment in the final conversion for
12493 (T1)(T2)var to (T1)var regarding to type precision. Rather
12494 than disallow T1 being of pointer type, assert that both T1
12495 and var are of pointer type or not. Make sure not to fall
12496 over the frontends lazyness wrt array to pointer decay though.
12498 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
12500 * arm.c (arm_struct_value_rtx): Delete.
12501 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
12502 (arm_init_cumulative_args): Always initialize nregs to zero.
12504 2006-05-10 Richard Guenther <rguenther@suse.de>
12506 PR tree-optimization/27532
12507 * tree-object-size.c (plus_expr_object_size): Fix typo.
12509 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
12512 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
12513 ashrdi_const, ashrdi3): Use a scratch register.
12515 2006-05-10 Richard Guenther <rguenther@suse.de>
12517 PR tree-optimization/27302
12518 * fold-const.c (operand_equal_p): For two comparisons,
12519 try comparison of one comparison code swapped if that yields
12522 2006-05-10 Ben Elliston <bje@au.ibm.com>
12524 * tree-pretty-print.c (pretty_print_string): No need to handle
12525 '\0' as a special character.
12527 * tree.h: Include "hashtab.h".
12528 (iterative_hash_expr): Use hashval_t in its prototype.
12529 * Makefile.in (TREE_H): Add $(HASHTAB_H).
12531 2006-05-09 Steve Ellcey <sje@cup.hp.com>
12534 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
12535 (hppa*64*-*-hpux11*): Ditto.
12536 (hppa[12]*-*-hpux11*): Ditto.
12538 2006-05-09 David Edelsohn <edelsohn@gnu.org>
12541 * config/rs6000/aix41.h (TARGET_64BIT): Define.
12543 2006-05-09 Michael Matz <matz@suse.de>
12545 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
12546 host_extra_gcc_objs and host_xmake_file.
12547 (<*-*-linux*>): Don't overwrite host_xmake_file.
12548 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
12549 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
12550 (host_detect_local_cpu): Declare.
12551 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
12552 * config/i386/i386.c (override_options): Handle -mtune=native
12554 * config/i386/x-i386: New file.
12555 * config/i386/driver-i386.c: New file.
12556 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
12559 2006-05-09 Dirk Mueller <dmueller@suse.de>
12560 Richard Guenther <rguenther@suse.de>
12562 PR middle-end/27498
12563 * fold-const.c (fold_read_from_constant_string): Relax check
12564 for matching types to matching modes.
12566 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
12568 PR rtl-optimization/27335
12569 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
12572 2006-05-08 Chao-ying Fu <fu@mips.com>
12573 Richard Sandiford <richard@codesourcery.com>
12575 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
12576 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
12577 * config/mips/mips.md (UNSPEC_SCC): New constant.
12578 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
12579 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
12580 (mips_emit_compare): Use it.
12581 (mips_expand_vcondv2sf): New function.
12583 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
12585 Fix PR tree-optimization/27093
12586 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
12587 renaming when they become not-used_alone.
12589 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12591 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
12592 relocation and relocation stubs.
12594 2006-05-08 Eric Christopher <echristo@apple.com>
12596 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
12599 2006-05-08 Jan Hubicka <jh@suse.cz>
12601 PR middle-end/24561
12602 * cgraphunit.c (decide_is_function_needed): When not optimizing even
12603 unused static functions are needed.
12605 2006-05-08 Roger Sayle <roger@eyesopen.com>
12608 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
12609 of a reg_equiv_constant if the result is a legitimate constant.
12611 2006-05-08 Uros Bizjak <uros@kss-loka.si>
12614 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
12615 standard 80387 constants, raise the cost to prevent
12616 compress_float_constant() to generate load from memory.
12618 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
12620 * config/arm/constraints.md (c): Fix a typo.
12622 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
12625 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
12628 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
12630 (_mm_mwait): Likewise.
12632 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
12634 (sse3_monitor): Make it 32bit only.
12635 (sse3_monitor64): New. 64bit monitor.
12637 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
12640 * config/i386/i386.c (classify_argument): Skip fields with invalid
12643 2006-05-07 Richard Guenther <rguenther@suse.de>
12645 PR tree-optimization/27409
12646 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12647 Do not try to find zero-sized subvars.
12649 2006-05-07 Richard Guenther <rguenther@suse.de>
12651 PR tree-optimization/27136
12652 * tree-ssa-loop-niter.c (get_val_for): Correct function
12653 comment, assert requirements.
12654 (loop_niter_by_eval): Stop processing if the iterated
12655 value did not simplify.
12657 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
12659 * opts.c (flag_see): remove its setting at -O3.
12661 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
12663 * genpeep.c (main): Make insn-peep.c depend on flags.h.
12664 * arm/constraints.md: New file.
12665 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
12666 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
12667 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
12668 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
12669 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
12670 (EXTRA_MEMORY_CONSTRAINT): Likewise.
12671 * arm.md: Include constraints.md.
12672 (thumb_movsi_insn): Use satisfies_constraint_J.
12673 (movhi, movqi): Use satisfies_constraint_I.
12675 2006-04-29 Anatoly Sokolov <aesok@post.ru>
12677 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
12678 for atmeg a645 device.
12680 2006-05-06 Richard Guenther <rguenther@suse.de>
12682 PR tree-optimization/27151
12683 * tree-vect-transform.c (vectorizable_condition): Punt on
12684 values that have a different type than the condition.
12686 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
12689 * c-parser.c (c_parser_cast_expression): Only insert casts into
12690 hash table if pointer.
12691 * function.c (used_types_insert_helper): Rename from
12693 (used_types_insert): Call used_types_insert_helper.
12694 * function.h (used_types_insert): Accept only one argument.
12696 2006-05-05 David Edelsohn <edesohn@gnu.org>
12698 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
12699 scratch with output modifier.
12701 2006-05-04 David Edelsohn <edelsohn@gnu.org>
12704 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
12705 with output modifier.
12707 2006-05-04 Richard Sandiford <richard@codesourcery.com>
12710 * config/mips/mips.c (mips_symbolic_address_p): Return true
12711 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
12712 SYMBOL_GOTTPREL, and SYMBOL_TLS.
12714 2006-05-04 Richard Guenther <rguenther@suse.de>
12716 PR tree-optimization/14287
12717 PR tree-optimization/14844
12718 PR tree-optimization/19792
12719 PR tree-optimization/21608
12720 PR tree-optimization/27090
12721 * tree-ssa-pre.c (try_combine_conversion): New function.
12722 (compute_avail): After constructing the value-handle
12723 expression, use try_combine_conversion to combine NOP_EXPRs
12724 with previous value-handle expressions and use the result if it
12727 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
12729 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
12731 2006-05-04 Jan Hubicka <jh@suse.cz>
12733 PR middle-end/25962
12734 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
12736 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
12738 * config/bfin/predicates.md (const01_rtx): Tell generator programs
12739 that this only matches CONST_INTs. All users changed to VOIDmode
12742 * config/bfin/bfin.c: Include "optabs.h".
12743 (bfin_rtx_costs): Some costs for vector operations, to allow combine
12745 (enum bfin_builtins): Add a number of fractional and vector builtins.
12746 (bfin_init_builtins): Likewise.
12747 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
12748 (safe_vector_operand, bfin_expand_binop_builtin,
12749 bfin_expand_unop_builtin): New functions.
12750 (bfin_expand_builtin): Handle the new builtins.
12751 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12754 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
12757 * Makefile.in (OBJS-common): Add see.o.
12758 (see.o): Add dependencies.
12759 * common.opt (fsee): New flag for the see optimization was added.
12760 * opts.c (flag_see): Initialized.
12761 * passes.c (init_optimization_passes, pass_see): New pass.
12762 * rtl.h (see_main): Declaration as extern.
12763 * timevar.def (TV_SEE): New.
12764 * tree-pass.h (pass_see): Declaration as extern.
12765 * invoke.texi (-fsee): Document.
12766 * recog.c (validate_simplify_insn): New function.
12767 * recog.h (validate_simplify_insn): Declaration as extern.
12768 * df-problems.c (df_chain_dump): Check for NULL.
12770 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
12771 Daniel Berlin <dberlin@dberlin.org>
12773 * cfgrtl.c (insert_insn_bb_end_new): New function.
12774 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
12776 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
12778 * df.h (struct web_entry): Moved from web.c.
12779 (union_defs): Declaration as extern.
12780 (unionfind_root): Likewise.
12781 (unionfind_union): Likewise.
12782 * web.c (struct web_entry): Moved to df.h.
12783 (unionfind_root): Remove static declaration.
12784 (unionfind_union): Likewise.
12785 (union_defs): Likewise and generalize to use callback function.
12786 (web_main): Update arguments for union_defs function call.
12788 2006-05-04 Richard Guenther <rguenther@suse.de>
12790 PR tree-optimization/26447
12791 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
12792 produce SSA_NAME copies before the store stmt to avoid
12793 breaking exception handling.
12795 2006-05-04 Jakub Jelinek <jakub@redhat.com>
12797 PR middle-end/27388
12798 * gimplify.c (omp_is_private): If var is shared in some outer context,
12799 return false instead of true. Stop searching on parallel context
12802 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
12805 * coverage.c: Use get_gcov_unsigned_t() instead of
12806 unsigned_type_node all over.
12808 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
12810 PR tree-optimization/27381
12811 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
12812 maintain the same immediate_use links.
12813 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
12814 node rather than segfaulting.
12816 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12819 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
12820 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
12821 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
12823 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
12825 Fix PR tree-optimization/26626
12826 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
12828 * tree-ssa-operands.c (access_can_touch_variable): Allow
12829 typecasting through union pointers.
12831 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12834 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
12835 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
12836 to find if var will be a global variable even in the nested context.
12837 (omp_copy_decl): Only check for global variable at the end, it might
12838 be overridden in outer contexts.
12839 (scan_sharing_clauses): For global variables don't create a field.
12840 (lower_rec_input_clauses): Do nothing for global shared variables.
12841 Emit a barrier at the end of ILIST if there were any decls in both
12842 firstprivate and lastprivate clauses.
12843 (lower_send_clauses): Do nothing for global variables except for
12846 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
12848 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
12849 of the correct signedness is returned.
12851 2006-05-02 Jeff Law <law@redhat.com>
12853 PR tree-optimization/27364
12854 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
12855 multiply expressions.
12857 2006-05-02 Tom Tromey <tromey@redhat.com>
12859 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
12861 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
12864 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
12865 -mthumb -fPIC are used.
12867 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
12868 Joshua Kinard <kumba@gentoo.org>
12871 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
12872 with 64-bit pointers.
12874 2006-05-02 Paul Brook <paul@codesourcery.com>
12876 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
12878 (create_fix_barrier): Check that a suitable barrier location is
12880 (arm_reorg): Include ftmp->address in allowable range of addresses.
12882 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
12885 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
12888 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12890 PR middle-end/27337
12891 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
12892 around RESULT_DECL for result passed by reference.
12893 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
12894 * omp-low.c (use_pointer_for_field): Don't look at
12895 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
12896 (scan_omp_1): Call remap_decl on RESULT_DECLs.
12897 (lower_rec_input_clauses): Don't allocate VLA memory for the second
12898 time or var for passing by reference for
12899 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
12900 TREE_ADDRESSABLE variables when passing by reference.
12902 * omp-low.c (dump_omp_region): Fix output formatting.
12904 PR middle-end/27328
12905 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
12906 (expand_omp_parallel): Likewise.
12907 * tree-cfg.c (move_sese_region_to_fn): Likewise.
12909 PR middle-end/27325
12910 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
12911 on statement list containing also constructors and destructors.
12912 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
12914 PR middle-end/27310
12915 * except.c (duplicate_eh_regions): Fix clearing of
12916 cfun->eh->region_array entries.
12918 2006-05-01 DJ Delorie <dj@redhat.com>
12920 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
12922 (gcc_cv_objdump): Likewise.
12923 * configure: Regenerated.
12925 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
12928 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
12929 templates for case 3 and 4.
12931 2006-05-01 DJ Delorie <dj@redhat.com>
12933 * vec.c: Include bconfig.h when appropriate.
12934 * Makefile.in (build/vec.o): Adjust dependencies.
12935 * mkconfig.sh: Make sure config.h isn't used for build machine
12938 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12940 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
12942 (mark_phi_for_rewrite): New function.
12943 (insert_phi_nodes_for, mark_use_interesting): Call
12944 mark_phi_for_rewrite.
12945 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
12946 (update_ssa): Initialize and free phis_to_rewrite.
12948 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12950 PR rtl-optimization/27291
12951 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
12952 folded to a constant.
12954 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12956 PR tree-optimization/27283
12957 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
12958 not whole # of iteration descriptions.
12959 (niter_for_exit): Return just # of iterations. Fail if # of iterations
12960 uses abnormal ssa name.
12961 (niter_for_single_dom_exit): Ditto.
12962 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
12963 return just the number of iterations.
12965 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
12967 PR tree-optimization/27144
12968 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
12969 (record_estimate): Only record constant upper bound.
12970 (infer_loop_bounds_from_undefined): Call
12971 compute_estimated_nb_iterations just once.
12972 (proved_non_wrapping_p): Renamed to ...
12973 (n_of_executions_at_most): ... this. Expect bound to be a constant.
12974 (convert_step_widening, scev_probably_wraps_p): Call
12975 n_of_executions_at_most instead of proved_non_wrapping_p.
12976 (substitute_in_loop_info): Do not replace values in bounds.
12977 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
12980 2006-05-01 Richard Henderson <rth@redhat.com>
12983 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
12984 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
12987 2006-05-01 Roger Sayle <roger@eyesopen.com>
12989 * c-typeck.c (parser_build_binary_op): Don't call the function
12990 unsigned_conversion_warning to spot operand/result type overflow.
12991 (build_binary_op): Instead, call convert_and_check instead of
12992 convert to report the problem when the operands are promoted.
12993 * c-common.c (unsigned_conversion_warning): Make static.
12994 * c-common.h (unsigned_conversion_warning): Delete prototype.
12996 2006-05-01 Richard Guenther <rguenther@suse.de>
12998 PR tree-optimization/26726
12999 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
13001 (find_interesting_uses_address): ... we work around here
13002 by folding INDIRECT_REFs in the substituted base.
13004 2006-05-01 Diego Novillo <dnovillo@redhat.com>
13006 * omp-low.c (dump_omp_region): Add newlines.
13008 2006-04-30 Roger Sayle <roger@eyesopen.com>
13010 * common.opt (Woverflow): New command line option.
13011 * c-common.c (constant_expression_warning): Check warn_overflow.
13012 (overflow_waring): Pass OPT_Woverflow to warning.
13013 (unsigned_conversion_warning): Likewise.
13014 (convert_and_check): Likewise.
13015 * doc/invoke.texi: Document new command line option.
13017 2006-04-30 David Edelsohn <edelsohn@gnu.org>
13019 * config/rs6000/rs6000.c (rs6000_override_options): Enable
13020 TARGET_NO_FP_IN_TOC for section anchors.
13021 (optimization_options): Enable section anchors for all
13022 non-"Objective" languages.
13024 2006-04-28 Eric Christopher <echristo@apple.com>
13026 * config/darwin-c.c (darwin_ms_struct): Move this
13027 (darwin_set_default_type_attributes): and this...
13028 * config/darwin.c: ... here.
13029 * config/darwin.h (darwin_ms_struct): Declare.
13031 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
13033 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
13035 2006-04-28 Roger Sayle <roger@eyesopen.com>
13038 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
13039 (push_array_bounds): Delete prototype. Change BOUNDS argument to
13040 an unsigned HOST_WIDE_INT.
13041 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
13043 (really_start_incremental_init): No need to call convert because
13044 bitsize_zero_node is already of type bitsizetype.
13045 (push_init_level): Extract the value of constructor_index as an
13046 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
13047 (process_init_element): Likewise.
13049 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
13051 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
13052 value before passing to make_relative_prefix.
13054 2006-04-28 Alan Modra <amodra@bigpond.net.au>
13056 PR middle-end/27260
13057 * builtins.c (expand_builtin_memset): Expand val in original mode.
13059 2006-04-27 Eric Christopher <echristo@apple.com>
13061 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
13062 with #ifndef/#endif.
13063 * config/darwin-c.c (darwin_ms_struct): New.
13064 (darwin_pragma_ms_struct): Ditto.
13065 (darwin_set_default_type_attributes): Ditto.
13066 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
13067 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
13068 Register ms_struct pragma.
13069 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
13070 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
13071 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
13072 darwin_set_default_type_attributes if TARGET_MACHO.
13074 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
13076 PR tree-optimization/26854
13077 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
13078 * doc/tree-ssa.texi: Update immuse iterator documentation.
13079 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
13080 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
13081 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
13082 first_safe_imm_use, next_safe_imm_use): Remove.
13083 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
13084 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
13085 (move_use_after_head): New. Helper function to sort immuses in a stmt.
13086 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
13087 (first_imm_use_stmt): New. Get first stmt in an immuse list.
13088 (next_imm_use_stmt): New. Get next stmt in an immuse list.
13089 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
13090 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
13091 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
13092 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
13093 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
13094 (perfect_nestify): Use new iterator.
13095 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
13097 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
13098 (next_imm_name): New field in struct immediate_use_iterator_d.
13099 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
13100 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
13101 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
13102 * tree-cfg.c (replace_uses_by): Use new iterator.
13103 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
13104 * tree-ssa-operands.c (correct_use_link): Remove.
13105 (finalize_ssa_use_ops): No longer call correct_use_link.
13107 2006-04-27 Stuart Hastings <stuart@apple.com>
13109 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
13110 * config/t-darwin (crt3.o): Use it.
13111 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
13112 'pmode', use Pmode instead of SImode for SYMBOL_REF.
13113 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
13114 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
13115 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
13118 2006-04-27 Roger Sayle <roger@eyesopen.com>
13120 * expmed.c (store_fixed_bit_field): If we're not optimizing for
13121 size, force the intermediate into a new pseudo rather instead of
13122 performing both a bitwise AND and a bitwise IOR in memory.
13124 2006-04-27 Richard Guenther <rguenther@suse.de>
13126 PR rtl-optimization/26685
13127 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
13128 this one "max-flow-memory-locations".
13130 2006-04-27 Richard Guenther <rguenther@suse.de>
13132 PR tree-optimization/25148
13133 * tree-vrp.c (compare_values): Remove code dealing with
13134 comparisons against type min/max value. Honour overflow
13135 and negative constants in code dealing with comparisons
13136 of plus and minus expressions.
13137 (value_inside_range): Use fold_binary with LE_EXPR and
13138 GE_EXPR rather than compare_values.
13140 2006-04-27 Dirk Mueller <dmueller@suse.de>
13142 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
13145 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
13147 * basic-block.h (safe_insert_insn_on_edge): Removed.
13148 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
13150 2006-04-26 David Edelsohn <edelsohn@gnu.org>
13151 Paolo Bonzini <bonzini@gnu.org>
13153 PR middle-end/27282
13154 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
13155 (simplify_and_const_int): Same.
13157 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
13159 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
13161 2006-04-26 Jakub Jelinek <jakub@redhat.com>
13164 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
13165 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
13166 cgraph_global_info_ready.
13168 PR middle-end/26913
13169 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
13172 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
13173 either decl or init is error_mark_node.
13175 PR middle-end/25989
13176 * tree-flow.h (struct omp_region): Add sched_kind.
13177 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
13178 instead of extracting omp for data.
13179 (expand_omp_for): Save extracted sched_kind.
13181 2006-04-25 Roger Sayle <roger@eyesopen.com>
13183 * expmed.c (store_bit_field): Also check whether the bitsize is
13184 valid for the machine's "insv" instruction before moving the
13185 target into a pseudo for use with the insv.
13186 * config/i386/predicates.md (const8_operand): New predicate.
13187 * config/i386/i386.md (extv, extzv, insv): Use the new
13188 const8_operand predicate where appropriate.
13190 2006-04-25 DJ Delorie <dj@redhat.com>
13192 * doc/install.texi (Specific): Clarify that this is not a list of
13193 supported hosts or targets.
13195 2006-04-25 Richard Sandiford <richard@codesourcery.com>
13197 PR rtl-optimization/26725
13198 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
13199 block's BB_DIRTY flag.
13201 2006-04-25 Geoffrey Keating <geoffk@apple.com>
13203 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
13206 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
13207 to print an integer.
13209 2006-04-25 David Edelsohn <edelsohn@gnu.org>
13211 * varasm.c (align_variable): New function.
13212 (get_block_for_decl): Apply align_variable to DECL before
13213 calculating section information.
13214 (assemble_variable): Split out alignment computation.
13216 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
13218 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
13221 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
13223 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
13224 MODE_PARTIAL_INT mode.
13225 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
13226 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
13228 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
13229 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
13231 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
13233 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
13235 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
13236 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
13237 MACFLAG_IH): Likewise.
13238 (movstricthi_1): Renamed from "*movstricthi".
13239 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
13240 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
13241 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
13242 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
13243 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
13244 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
13245 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
13246 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
13247 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
13248 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
13249 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
13250 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
13251 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
13252 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
13253 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
13255 * doc/rtl.texi (ss_ashift): Improve wording.
13257 2006-04-24 Geoffrey Keating <geoffk@apple.com>
13259 * dwarf2out.c (verify_marks_clear): New.
13260 (prune_unused_types): Call verify_marks_clear initially, not
13263 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
13265 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
13266 * doc/rtl.texi: Document them.
13267 * simplify-rtx.c (simplify_unary_operation,
13268 simplify_binary_operation_1): Don't abort when we see them.
13270 2006-04-24 Mark Mitchell <mark@codesourcery.com>
13273 2006-04-23 Mark Mitchell <mark@codesourcery.com>
13274 * configure.ac: Completely disregard languages that are not
13276 * configure: Regenerated.
13278 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
13279 Richard Guenther <rguenther@suse.de>
13281 PR tree-optimization/27236
13282 * tree-inline.c (copy_body_r): Make sure to copy
13283 TREE_THIS_VOLATILE flag.
13285 2006-04-24 Richard Guenther <rguenther@suse.de>
13287 PR middle-end/26869
13288 * tree-complex.c (update_parameter_components): Don't handle
13289 unused parameters which have no default def.
13291 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
13292 Richard Guenther <rguenther@suse.de>
13294 PR tree-optimization/27218
13295 * tree-inline.c (expand_call_inline): Strip useless type
13296 conversions for the return slot address.
13298 2006-04-24 Richard Guenther <rguenther@suse.de>
13300 * cfgloop.h (struct loops): Remove unused field array. Reorder
13302 (LOOP_PREFETCH): Remove.
13304 2006-04-24 Richard Guenther <rguenther@suse.de>
13306 PR tree-optimization/22525
13307 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
13308 variable, adjust types of generated expressions.
13310 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
13312 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
13313 (tree-vect-patterns.o): Likewise.
13314 (jump.o): Likewise.
13315 (cselib.o): Likewise.
13316 (loop-doloop.o): Likewise.
13317 (regclass.o): Likewise.
13318 (reload1.o): Likewise.
13319 (explow.o): Replace target.h with $(TARGET_H).
13320 (ipa-prop.o): Likewise.
13321 (ipa-cp.o): Likewise.
13322 (ipa-inline.o): Likewise.
13323 (reorg.o): Likewise.
13324 (reg-stack.o): Likewise.
13326 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
13328 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
13330 2006-04-23 Mark Mitchell <mark@codesourcery.com>
13332 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
13334 * configure.ac: Completely disregard languages that are not
13336 * configure: Regenerated.
13339 * c-common.h (c_build_bitfield_integer_type): Declare.
13340 * c-decl.c (c_build_bitfield_integer_type): Move to ...
13341 * c-common.c (c_build_bitfield_integer_type): ... here.
13343 2006-04-23 Roger Sayle <roger@eyesopen.com>
13346 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
13347 a SImode SUBREG of a floating point register after no_new_pseudos.
13349 2006-04-23 Roger Sayle <roger@eyesopen.com>
13351 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
13352 identify potentially eliminable registers to additionally catch
13353 VIRTUAL_INCOMING_ARGS_REGNUM.
13354 (addsi3): Update the conditions on when to use addsi_small_int.
13356 2006-04-23 Roger Sayle <roger@eyesopen.com>
13359 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
13360 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
13361 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
13363 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
13365 * fold-const.c (range_predecessor): Use operand_equal_p
13366 as the predicate for equality.
13367 (range_successor): Likewise.
13369 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
13372 * config/soft-fp/op-common.h: Fix a typo.
13374 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
13376 PR libmudflap/26864
13377 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
13378 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
13380 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
13382 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
13384 * doc/tm.texi: Fix a typo.
13386 2006-04-21 Geoffrey Keating <geoffk@apple.com>
13388 * dwarf2out.c (struct die_struct): Document that die_sib makes
13389 a circular linked list.
13390 (FOR_EACH_CHILD): New.
13391 (reverse_die_lists): Delete.
13392 (reverse_all_dies): Delete.
13393 (add_dwarf_attr): Correct documentation.
13394 (remove_child_with_prev): New.
13395 (remove_child_TAG): Update for change to die_struct, use
13396 remove_child_with_prev.
13397 (add_child_die): Update for change to die_struct.
13398 (splice_child_die): Use remove_child_with_prev and add_child_die.
13399 (print_die): Use FOR_EACH_CHILD.
13400 (die_checksum): Likewise.
13401 (assign_symbol_names): Likewise.
13402 (output_location_lists): Likewise.
13403 (build_abbrev_table): Likewise.
13404 (calc_die_sizes): Likewise.
13405 (mark_dies): Likewise.
13406 (unmark_dies): Likewise.
13407 (unmark_all_dies): Likewise.
13408 (output_die): Likewise.
13409 (prune_unused_types_mark): Likewise.
13410 (prune_unused_types_walk): Likewise.
13411 (same_die_p): Update for change to die_struct.
13412 (break_out_includes): Likewise.
13413 (prune_unused_types_prune): Likewise.
13414 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
13415 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
13416 it's already clear.
13417 (dwarf2out_finish): Don't call reverse_all_dies.
13419 2006-04-21 Eric Christopher <echristo@apple.com>
13421 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
13422 in comments and function names.
13424 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13427 * c-typeck.c (digest_init): Robustify.
13429 * c-typeck.c (pop_init_level): Simplify.
13431 2006-04-21 Steve Ellcey <sje@cup.hp.com>
13433 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
13435 2006-04-21 Paul Brook <paul@codesourcery.com>
13437 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
13438 hardware floating point.
13440 2006-04-21 David Edelsohn <edelsohn@gnu.org>
13442 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
13445 2006-04-21 Nick Clifton <nickc@redhat.com>
13447 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
13450 2006-04-21 Alan Modra <amodra@bigpond.net.au>
13453 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
13454 C++ lang type in traceback table for Objective-C++.
13456 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
13458 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
13460 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
13462 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13465 * tree-mudflap.c (mudflap_finish_file): Skip function when there
13466 were errors. Remove check for erroneous objects.
13468 2006-04-20 Jeff Law <law@redhat.com>
13470 PR tree-optimization/26854
13471 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
13472 checking for zero or one use.
13473 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
13474 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
13475 * tree-ssa-reassoc.c (negate_value): Similarly.
13476 (reassociate_bb): Similarly.
13478 2006-04-20 Jakub Jelinek <jakub@redhat.com>
13481 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
13482 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
13483 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
13485 2006-04-20 Alan Modra <amodra@bigpond.net.au>
13487 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
13488 fp regs if the last fp arg doesn't fit in regs.
13490 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
13493 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
13494 that the last insn has the REG_INC note.
13496 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
13497 Nathan Sidwell <nathan@codesourcery.com>
13500 * stor-layout.c (update_alignment_for_field): Do not align
13502 (place_union_field): Place union field at the start of the union.
13503 (place_field): Move ERROR_MARK check later, and use the current
13504 allocation position to maintain monotonicity.
13506 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
13508 * dominance.c: Include timevar.h.
13509 (calculate_dominance_info): Use TV_DOMINANCE.
13510 * timevar.def (TV_DOMINANCE): New timevar.
13511 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
13513 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
13515 PR rtl-optimization/14261
13516 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
13517 move would be an INSV insn.
13518 (noce_process_if_block): Don't optimize if the destination is a
13519 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
13521 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
13523 * config/s390/s390.md: Add comments with the instructions emitted
13524 by an insn pattern if macros are used.
13526 2006-04-19 Alan Modra <amodra@bigpond.net.au>
13528 PR rtl-optimization/26026
13529 * fold-const.c (fold_binary): Optimize div and mod where the divisor
13530 is a known power of two shifted left a variable amount.
13532 2006-04-18 Geoffrey Keating <geoffk@apple.com>
13534 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
13535 to hash table twice when the debug_str section has SECTION_MERGE.
13537 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
13539 * config/soft-fp: New directory. From glibc.
13540 * config/soft-fp/t-softfp: New.
13541 * config/soft-fp/README: New.
13542 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
13543 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
13544 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
13545 (LIBGCC_DEPS): Add $(SFP_MACHINE).
13546 * config.gcc: Use rs6000/t-fprules-fpbit or
13547 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
13549 * config/rs6000/sfp-machine.h: New. Based on glibc.
13550 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
13552 * config/rs6000/t-fprules: Remove fp-bit rules.
13553 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
13554 * config/rs6000/t-linux64: Likewise. Remove duplicates from
13555 LIB2FUNCS_EXTRA. Remove fp-bit rules.
13556 (softfp_wrap_start, softfp_wrap_end): New.
13558 2006-04-18 DJ Delorie <dj@redhat.com>
13560 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
13562 2006-04-18 Devang Patel <dpatel@apple.com>
13564 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
13566 2006-04-18 Nick Clifton <nickc@redhat.com>
13568 * config/sh/t-symbian: Add rule to build sh-c.o
13569 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
13570 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
13571 (sh_symbian_encode_section_info): Likewise.
13573 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
13575 * builtins.c (expand_builtin_strcmp): Cover label definition of
13576 do_libcall with HAVE_cmpstrnsi.
13578 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
13580 * function.c (temp_slots_at_level, max_slot_level): Use VEC
13582 * function.h (temp_slot_p): New.
13583 (function): Change the type of x_used_temp_slots to
13584 VEC(temp_slot_p,gc) *.
13586 2006-04-18 Nick Clifton <nickc@redhat.com>
13588 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
13589 flag_strength_reduce.
13591 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
13593 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
13597 Partial revert of revision 112637
13598 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
13599 Dale Johannesen <dalej@apple.com>
13602 * regclass.c (struct reg_pref): Update documentation.
13603 (regclass): Set prefclass to NO_REGS if memory is the best option.
13604 (record_reg_classes): Cope with a prefclass set to NO_REGS.
13606 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
13608 PR tree-optimization/26821
13609 * tree-ssa-math-opts.c (get_constant_one): New.
13610 (insert_reciprocals): Use it.
13612 2006-04-17 Geoffrey Keating <geoffk@apple.com>
13614 * dwarf2out.c (free_AT): Delete.
13615 (remove_AT): Update string ref counts.
13616 (remove_child_TAG): Don't call free_die.
13617 (free_die): Delete.
13618 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
13619 or DW_TAG_GNU_EINCL.
13620 (prune_unused_types_walk_attribs): Reset string refcounts.
13621 (prune_unused_types_update_strings): New.
13622 (prune_unused_types_prune): Don't make unnecessary stores. Don't
13623 call free_die. Do call prune_unused_types_update_strings.
13624 (prune_unused_types): Empty debug_str_hash.
13626 2006-04-17 Roger Sayle <roger@eyesopen.com>
13628 * expr.c (expand_assignment): Optimize away no-op moves where the
13629 source and destination are equal and have no side-effects.
13631 2006-04-17 Richard Guenther <rguenther@suse.de>
13634 * reload.c (push_reload): Guard calls to get_secondary_mem
13635 for memory subregs.
13637 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
13639 * alias.c (reg_base_value, old_reg_base_value): Change the
13640 type to VEC(rtx,gc) *.
13641 (REG_BASE_VALUE, find_base_value, record_set,
13642 init_alias_analysis): Use VEC instead of VARRAY.
13644 * alias.c (alias_sets): Change the type to
13645 VEC(alias_set_entry,gc) *.
13646 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
13647 VEC instead of VARRAY.
13648 (last_alias_set): Remove.
13650 * cgraph.h (cgraph_edge_p): New.
13651 Update the prototype of cgraph_function_versioning.
13652 * cgraphunit.c (cgraph_copy_node_for_versioning,
13653 cgraph_function_versioning): Use VEC instead of VARRAY.
13654 * ipa-cp.c (ipcp_insert_stage): Likewise.
13656 2006-04-16 Roger Sayle <roger@eyesopen.com>
13659 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
13660 "A op B" or "A op C", we may need to convert A to the type of B and C.
13662 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
13664 * target.h (struct gcc_target): Add mode_rep_extended.
13665 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
13666 (init_num_sign_bit_copies_in_rep): Initialize it using
13668 (truncate_to_mode): Use it.
13669 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
13670 * targhooks.h (default_mode_rep_extended): Declare it.
13671 * targhooks.c (default_mode_rep_extended): Define it.
13672 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
13673 default_mode_rep_extended.
13674 (TARGET_INITIALIZER): Include it.
13675 * doc/tm.texi (Misc): Document it.
13676 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
13677 (mips_truncated_to_mode): New function.
13679 2006-04-16 Roger Sayle <roger@eyesopen.com>
13681 PR middle-end/25474
13682 * expr.c (compress_float_constant): Copy the narrow constant into
13683 a new pseudo before extending it to its final width.
13685 2006-04-16 Roger Sayle <roger@eyesopen.com>
13686 Andrew Pinski <pinskia@gcc.gnu.org>
13687 Dale Johannesen <dalej@apple.com>
13690 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
13691 special case code to implement V8HImode and V16QImode with SSE2.
13693 2006-04-15 Roger Sayle <roger@eyesopen.com>
13695 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
13696 trees are constructed with a suitable tree type.
13698 2006-04-15 Roger Sayle <roger@eyesopen.com>
13700 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
13701 (integer_onep): Likewise.
13702 (integer_all_onesp): Likewise.
13703 (integer_pow2p): Likewise.
13704 (integer_nonzerop): Likewise.
13705 (real_zerop): Likewise.
13706 (real_onep): Likewise.
13707 (real_twop): Likewise.
13708 (real_minus_onep): Likewise.
13709 (int_size_in_bytes): Likewise.
13710 (host_integerp): Likewise.
13712 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
13714 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
13715 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
13716 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
13718 * tree-ssa-structalias.h (alias_info): Remove num_references.
13720 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13722 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
13723 (output_bvb patterns): Likewise.
13724 * pa.c (output_bb): Use 'bb' insn for long branch case.
13725 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
13726 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
13727 1. Correct length operand for alternatives 1 and 2.
13728 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
13729 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
13731 2006-04-14 Roger Sayle <roger@eyesopen.com>
13733 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
13734 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
13735 were accidentally reverted by r112959.
13737 2006-04-15 Jakub Jelinek <jakub@redhat.com>
13739 PR middle-end/26823
13740 * except.h (eh_region_outermost): New prototype.
13741 * except.c (eh_region_outermost): New function.
13742 * tree-cfg.c (find_outermost_region_in_block): Use it.
13744 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
13746 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
13748 * reload1.c (reg_equiv_memory_loc_varray): Rename to
13749 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
13750 (init_reload, reload): Use VEC instead of VARRAY.
13751 * reload.h: Update the prototype for
13752 reg_equiv_memory_loc_varray.
13754 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
13755 Eric Botcazou <ebotcazou@libertysurf.fr>
13757 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
13758 register save area.
13760 2005-04-13 Uros Bizjak <uros@kss-loka.si>
13762 PR middle-end/27134
13763 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
13764 to expand fallback builtin function call.
13766 2006-04-14 Alan Modra <amodra@bigpond.net.au>
13768 PR middle-end/27095
13769 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
13770 and emit libcall here in case the builtin fails.
13771 (expand_builtin_strcmp): Always emit the libcall here on failure.
13773 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
13775 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
13776 * flow.c (reg_n_info): Change the type to
13777 VEC(reg_info_p,heap) *.
13778 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
13780 * regs.h (reg_info_p): New.
13781 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
13782 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
13783 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
13786 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
13788 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
13790 * params.h (MAX_SCHED_READY_INSNS): New macro.
13791 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
13792 past MAX_SCHED_READY_INSNS during the first scheduling pass.
13793 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
13794 the ready list for 1 cycle during the first scheduling pass.
13795 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
13797 2006-04-13 Richard Henderson <rth@redhat.com>
13800 * gimple-low.c (lower_omp_directive): Remove dead code.
13801 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
13802 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
13803 * omp-low.c (struct omp_region): Move to tree-flow.h.
13804 (root_omp_region): Export.
13805 (omp_regions, lookup_omp_region): Remove.
13806 (determine_parallel_type): Update for struct omp_region changes.
13807 (dump_omp_region): Dump regions with block numbers.
13808 (new_omp_region): Take type and block instead of stmt; malloc
13810 (free_omp_region_1, free_omp_regions): New.
13811 (expand_parallel_call): Take entry_stmt as argument; update for
13812 changes to omp_region.
13813 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
13814 (remove_exit_barriers): New.
13815 (expand_omp_parallel): Update for struct omp_region changes.
13816 (expand_omp_synch): Likewise.
13817 (expand_omp): Likewise.
13818 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
13819 (expand_omp_for_static_chunk): Likewise.
13820 (expand_omp_for): Likewise.
13821 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
13822 (expand_omp_sections): Similarly, with GOMP_sections_end.
13823 (expand_omp_single): New.
13824 (build_omp_regions_1): Update for OMP_CONTINUE.
13825 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
13826 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
13827 OMP_SECTIONS_SECTIONS.
13828 (lower_omp_single_simple): Don't emit barrier here.
13829 (lower_omp_single_copy): Likewise.
13830 (lower_omp_single): Fix bindings, and lower to straightline now.
13831 (lower_omp_master, lower_omp_ordered): Likewise.
13832 (lower_omp_critical): Likewise.
13833 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
13834 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
13835 omp edges, free it afterward.
13836 (make_omp_sections_edges): Remove.
13837 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
13838 (move_stmt_r): Handle OMP_CONTINUE.
13839 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
13840 statement pointers to basic blocks. Add type member.
13841 (root_omp_region, new_omp_region, free_omp_regions): Declare.
13842 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
13843 * tree-inline.c (estimate_num_insns_1): Likewise.
13844 * tree-pretty-print.c (dump_generic_node): Likewise.
13845 * tree-ssa-operands.c (get_expr_operands): Likewise.
13846 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
13847 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
13848 (OMP_CONTINUE): New.
13849 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
13850 (OMP_SECTIONS_SECTIONS): Remove.
13851 (OMP_SECTION_LAST): New.
13852 (OMP_RETURN_NOWAIT): New.
13854 2006-04-13 Roger Sayle <roger@eyesopen.com>
13856 * fold-const.c (native_encode_vector, native_interpret_real):
13857 Correct obvious mistakes in the previous check-in.
13859 2006-04-13 Roger Sayle <roger@eyesopen.com>
13861 * fold-const.c (native_encode_expr): New function to encode
13862 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
13863 or VECTOR_CST into a specified buffer.
13864 (native_encode_int): New function.
13865 (native_encode_real): New function.
13866 (native_encode_complex): New function.
13867 (native_encode_vector): New function.
13868 (native_interpret_expr): Inverse of native_encode_expr to convert
13869 a target representation into an INTEGER_CST, REAL_CST etc...
13870 (native_interpret_int): New function.
13871 (native_interpret_real): New function.
13872 (native_interpret_complex): New function.
13873 (native_interpret_vector): New function.
13874 (fold_view_convert_expr): New function to constant fold/evaluate
13875 a VIEW_CONVERT_EXPR of a suitable constant expression.
13876 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
13877 Change call of build1 to fold_build1 when constructing a
13880 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
13881 Ulrich Weigand <uweigand@de.ibm.com>
13884 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
13887 2006-04-13 Alan Modra <amodra@bigpond.net.au>
13890 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13891 optimize to lo_sum for DFmode if !TARGET_FPRS.
13893 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
13895 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
13896 delete_alias_info, compute_flow_sensitive_aliasing,
13897 group_aliases): Use VEC instead of VARRAY.
13898 * tree-ssa-structalias.c (update_alias_info): Likewise.
13899 * tree-ssa-structalias.h (alias_info): Change the type of
13900 processed_ptrs to VEC(tree,heap) *.
13902 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
13905 * config/sh/lib1funcs.h: New file, broken out of:
13906 * config/sh/lib1funcs.asm.
13907 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
13909 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
13910 * config/sh/lib1funcs-Os-4-200.asm: New file.
13911 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
13912 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
13913 (EXTRA_MULTILIB_PARTS): Include it.
13914 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
13915 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
13916 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
13917 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
13920 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
13922 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
13923 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
13924 tpa_compact, root_var_init, type_var_init): Use VEC instead of
13926 * tree-ssa-live.h: Include vecprim.h.
13927 (tree_partition_associator_d): Change the type of
13928 first_partition to VEC(int,heap) *.
13929 (tpa_first_partition): Use VEC instead of VARRAY.
13931 * Makefile.in (GTFILES): Move functions.h after tree.h.
13932 * function.c (reset_block_changes, record_block_change,
13933 check_block_change, free_block_changes): Use VEC instead of
13935 * function.h (function): Change the type of
13936 ib_boundaries_block to VEC(tree,gc) *.
13937 * tree-inline.c (copy_cfg_body): Initialize
13938 ib_boundaries_block to NULL instead of (varray_type) 0.
13940 2006-04-12 Roger Sayle <roger@eyesopen.com>
13942 * expr.c (emit_group_store): Correct operand order in call to
13943 subreg_lowpart_offset. Always create paradoxical SUBREGs with
13944 a SUBREG_BYTE of zero.
13946 2006-04-12 Richard Guenther <rguenther@suse.de>
13948 * profile.c (compute_branch_probabilities): Remove code
13949 encapsulated in !ir_type (), which are remanents of the
13950 removed RTL profiling code.
13951 * rtl-profile.c: Remove.
13953 2006-04-12 Alan Modra <amodra@bigpond.net.au>
13955 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
13956 magic NULL_RTX comment.
13957 (function_arg): Store entire fp arg to mem if any part should go
13959 (rs6000_arg_partial_bytes): Adjust for above change.
13961 2006-04-11 Roger Sayle <roger@eyesopen.com>
13963 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
13964 if it hasn't been initialized by dwarf2out_init.
13966 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
13968 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
13969 symbolic constants in branch patterns.
13971 2006-04-11 Roger Sayle <roger@eyesopen.com>
13973 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
13975 2006-04-11 Richard Sandiford <richard@codesourcery.com>
13977 PR rtl-optimization/27073
13978 * gcse.c (try_replace_reg): Revert last change. Continue to search
13979 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
13982 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
13984 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
13985 aggregate types other than record and union types.
13986 (function_arg): Likewise.
13987 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
13989 (function_value): In 64-bit mode, return objects that require it
13992 2006-04-11 Roger Sayle <roger@eyesopen.com>
13994 * dwarf2out.c (premark_used_types): Remove problematic prototype.
13996 2006-04-11 Jakub Jelinek <jakub@redhat.com>
13998 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
14000 2006-04-03 Jeff Law <law@redhat.com>
14003 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
14004 alias information too.
14006 2006-04-10 Mike Frysinger <vapier@gentoo.org>
14008 * Makefile.in (gcc-cross): Add $(exeext) to target name.
14010 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
14013 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
14014 (premark_used_types_helper): New.
14015 (premark_used_types): New.
14016 (gen_subprogram_die): Call premark_used_types.
14017 (prune_unused_types_walk): Do not prune perennial dies.
14018 * function.c (used_types_insert): New.
14019 * function.h (struct function): Add used_types_hash field.
14020 (used_types_insert): Add prototype.
14021 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
14022 * c-parser.c (c_parser_cast_expression): Save casted types in used
14025 2006-04-11 Mark Mitchell <mark@codesourcery.com>
14028 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
14029 rs6000_explicit_options.float_gprs.
14031 2006-04-10 Roger Sayle <roger@eyesopen.com>
14033 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
14034 from ix86_expand_vector_init_low_nonzero. Take an additional
14035 one_var argument indicating which element is non-zero. Support
14036 one_var != 0 for V4SFmode and V4SImode by permuting the result.
14037 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
14038 with one_var instead of ix86_expand_vector_init_low_nonzero.
14040 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
14042 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
14043 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
14044 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
14045 build/genextract.o): Depend on vecprim.h.
14046 * cfglayout.c, df-problems.c, function.c, genextract.c,
14047 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
14048 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
14052 2006-04-10 Geoffrey Keating <geoffk@apple.com>
14054 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
14055 Declare VECs of this type.
14056 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
14057 (remove_children): Delete.
14058 (add_dwarf_attr): Use VEC routines.
14059 (add_AT_flag): Update for changes to add_dwarf_attr.
14060 (add_AT_int): Likewise.
14061 (add_AT_unsigned): Likewise.
14062 (add_AT_long_long): Likewise.
14063 (add_AT_vec): Likewise.
14064 (add_AT_string): Likewise.
14065 (add_AT_die_ref): Likewise.
14066 (add_AT_fde_ref): Likewise.
14067 (add_AT_loc): Likewise.
14068 (add_AT_loc_list): Likewise.
14069 (add_AT_addr): Likewise.
14070 (add_AT_lbl_id): Likewise.
14071 (add_AT_lineptr): Likewise.
14072 (add_AT_macptr): Likewise.
14073 (add_AT_offset): Likewise.
14074 (add_AT_range_list): Likewise.
14075 (get_AT): Use VEC_iterate.
14076 (remove_AT): Use VEC_ordered_remove.
14077 (free_die): Fold remove_children into here; have it use VEC_iterate.
14078 (print_die): Use VEC_iterate on attrs.
14079 (reverse_die_lists): Don't reverse attr lists.
14080 (die_checksum): Use VEC_iterate on attrs.
14081 (same_die_p): Likewise.
14082 (output_location_lists): Likewise.
14083 (build_abbrev_table): Likewise.
14084 (size_of_die): Likewise.
14085 (unmark_all_dies): Likewise.
14086 (output_abbrev_section): Likewise.
14087 (output_die): Likewise.
14088 (prune_unused_types_walk_attribs): Likewise.
14090 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
14092 * doc/install.texi (*-*-solaris2*): Point to the configure page.
14094 2006-04-10 Jakub Jelinek <jakub@redhat.com>
14097 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
14099 2006-04-09 Roger Sayle <roger@eyesopen.com>
14101 * expr.c (store_constructor): Don't bother clearing target if
14102 we're about to assign a vector to it using vec_init_optab.
14104 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
14106 * tree-ssa-alias.c (lhs_may_store_to): New function.
14107 (recalculate_used_alone): Handle LHS of calls.
14109 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14113 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
14114 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
14115 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
14116 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
14117 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
14118 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
14119 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
14120 stubs. Add ".align 8" directives before all ".dword" directives.
14121 (GTHREAD_USE_WEAK): Revise comment.
14122 (TARGET_ATTRIBUTE_WEAK): Define.
14123 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
14124 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
14125 * stublib.c: New file.
14130 * pa.md (cbranch patterns): Revise arguments used in calls to
14131 output_cbranch, output_bb and output_bvd. Add long branch length
14133 (fbranch patterns): Handle long branches.
14134 (jump): Revise length check. Revise arguments for output_lbranch call.
14135 Add long branch length attributes.
14136 (decrement_and_branch_until_zero): Add long branch length attributes.
14137 (output_movb, output_parallel_addb and output_parallel_movb patterns):
14138 Likewise. Revise arguments for output_parallel_addb and
14139 output_parallel_movb calls.
14140 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
14141 output_parallel_movb and output_parallel_addb): Update prototypes.
14142 * pa.c (output_cbranch): Revise arguments. Correct handling of
14143 nullification in long branches.
14144 (output_lbranch): Add new argument to control extraction of delay
14146 (output_bb): Handle long branches.
14147 (output_bvb, output_dbra, output_movb, output_parallel_movb,
14148 output_parallel_addb): Likewise.
14150 2006-04-09 Richard Sandiford <richard@codesourcery.com>
14152 PR rtl-optimization/27073
14153 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
14156 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
14158 * tree.h (tree_memory_tag): Add old_used_alone.
14159 (SMT_OLD_USED_ALONE): New macro.
14160 * tree-ssa-alias.c (recalculate_used_alone): Stop
14161 marking things for renaming unnecessarily.
14163 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
14165 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
14166 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
14167 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
14168 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
14169 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
14170 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
14171 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
14172 spelling convensions.
14173 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
14174 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
14175 typos. Follow spelling conventions.
14177 2006-04-07 DJ Delorie <dj@redhat.com>
14179 * config/m32c/m32c.c (m32c_function_arg): Structures are always
14180 passed on the stack.
14181 (m32c_init_cumulative_args): When a function returns a structure,
14182 always pass the pointer to that return area on the stack.
14183 (m32c_function_arg_advance): Don't increment the parameter number
14184 if we're processing the returned structure pointer.
14185 (pushm_info): Reverse order of registers.
14187 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
14189 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
14190 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
14191 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
14192 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
14193 build_int_cst_type.
14194 * tree-chrec.c (chrec_fold_multiply_poly_poly,
14195 chrec_fold_multiply): Same.
14196 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
14197 force_expr_to_var_cost): Same.
14198 * tree-mudflap.c (mf_xform_derefs_1): Same.
14199 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
14201 2006-04-07 David Edelsohn <edelsohn@gnu.org>
14203 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
14204 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
14207 2006-04-07 Jan Hubicka <jh@suse.cz>
14209 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
14211 2006-04-07 Richard Guenther <rguenther@suse.de>
14213 PR tree-optimization/26135
14214 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
14215 loads for store copy-prop.
14216 (copy_prop_visit_stmt): Likewise.
14218 2006-04-05 Robert Millan <robertmh@gnu.org>
14220 * config/i386/linux.h: Add a comment to mark macros that are
14221 being overriden in config/k*bsd-gnu.h.
14222 * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
14224 * config/knetbsd-gnu.h: Ditto.
14226 2006-04-06 Jan Hubicka <jh@suse.cz>
14230 * coverage.c (coverage_checksum_string): Reorganize loop to not read
14233 2006-04-06 Mike Stump <mrs@apple.com>
14235 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
14236 for HAVE_nonlocal_goto to be consistent.
14237 (expand_builtin_nonlocal_goto): Likewise.
14238 (expand_builtin_strcmp): Use #ifdef instead of #if
14239 for HAVE_cmpstrnsi to be consistent.
14241 2006-04-05 DJ Delorie <dj@redhat.com>
14243 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
14246 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
14248 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
14249 got-relative addressing for anything but SImode.
14251 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
14252 even if the calling function doesn't modify them.
14254 2006-04-05 Richard Guenther <rguenther@suse.de>
14256 PR tree-optimization/26919
14257 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
14258 to cgraph_estimate_size_after_inlining.
14260 2006-04-05 Alan Modra <amodra@bigpond.net.au>
14262 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
14264 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
14266 PR tree-optimization/26996
14267 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
14268 VECTOR_TYPE variables.
14270 2006-04-05 Richard Guenther <rguenther@suse.de>
14272 PR tree-optimization/26763
14273 * fold-const.c (fold_comparison): Move folding of
14274 PTR + CST CMP PTR + CST ...
14275 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
14277 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
14279 * doc/install.texi (Prerequisites): Refine some wording on
14280 bootstrapping and ksh.
14281 Move the version numbers of DejaGnu here from the testing section
14282 and fix casing of names.
14283 Fix markup and clarify wording for autogen requirements.
14284 Refer to GCJ instead of just java.
14285 Refer to SVN instead of CVS.
14286 Describe diffutils as useful instead of necessary.
14287 (Downloading the source): Refer to SVN instead of CVS.
14288 Adjust a link to our web site accordingly.
14289 (Configuration): Fix casing of Bison.
14290 (Building): Refer to SVN instead of CVS.
14291 Fix a sentence on the use of Bison and remove duplicate (and
14292 incorrect) version number of Bison requirement.
14293 Remove one redundant list of packages needed for building.
14294 (Specific): Avoid reference to CVS.
14296 2006-04-04 Eric Christopher <echristo@apple.com>
14298 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
14299 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
14300 (rs6000_handle_struct_attribute): New.
14301 (rs6000_ms_bitfield_layout_p): Ditto.
14303 2006-04-04 Geoffrey Keating <geoffk@apple.com>
14305 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
14306 NULL for dso parameter to atexit_common.
14308 2006-04-04 Eric Christopher <echristo@apple.com>
14310 * config/i386/i386.c (machopic_output_stub): Output \t
14311 between instructions and operands.
14313 2006-04-04 David Edelsohn <edelsohn@gnu.org>
14315 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
14316 satisfies_constraint_[IL] to explicit tests on value.
14318 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
14320 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
14321 set_nb_iterations_in_loop): Use build_int_cst instead of
14322 build_int_cst_type.
14323 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
14324 build_int_cst instead of convert.
14326 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
14328 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
14329 new value 2 for incoming.
14330 * function.c (expand_function_start): Call struct_value_rtx
14331 with incoming as 2.
14332 * config/sparc/sparc.md: Comment updated_return.
14333 * config/sparc/sparc.opt: Add -mstd-struct-return option.
14334 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
14335 struct return if sparc_std_struct_return and incoming is 2.
14336 (print_operand): Do not adjust return if
14337 sparc_std_struct_return.
14339 2006-04-04 Roger Sayle <roger@eyesopen.com>
14341 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
14342 convert in the middle-end.
14343 * expr.c (store_expr, store_constructor, get_inner_reference,
14344 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
14346 * tree.c (build_range_type): Likewise.
14348 2006-04-04 Tom Tromey <tromey@redhat.com>
14350 * doc/install.texi (Prerequisites): Mention jar.
14352 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
14354 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
14357 2006-04-04 Matthias Klose <doko@debian.org>
14359 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
14363 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
14366 2006-04-03 Geoffrey Keating <geoffk@apple.com>
14368 * doc/extend.texi (Function Attributes): Rewrite visibility
14369 attribute documentation.
14370 * doc/invoke.texi (C++ Dialect Options): Rewrite
14371 -fvisibility-inlines-hidden documentation to describe something
14372 entirely different, although in practise compatible.
14373 (Code Gen Options): Warn about system headers in -fvisibility=
14376 * doc/extend.texi (Other Builtins): Document that
14377 __builtin_nan is a compile-time constant only when its argument
14380 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
14382 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
14383 trying to remove TRUNCATE check if all bits outside the new mode
14384 are identical to the sign bit.
14386 2006-04-03 Jeff Law <law@redhat.com>
14388 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
14389 and operand scanning in some common cases.
14391 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
14392 Dale Johannesen <dalej@apple.com>
14395 * regclass.c (struct reg_pref): Update documentation.
14396 (regclass): Set prefclass to NO_REGS if memory is the best option.
14397 (record_reg_classes): Cope with a prefclass set to NO_REGS.
14398 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
14399 into account. For non-registers, equate an empty preferred
14400 reload class to a `!' in the constraint; move the if clause to
14401 do so after those that reject the insn.
14402 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
14404 (find_dummy_reload): Likewise.
14405 * doc/tm.texi (Register Classes): Document what it means
14406 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
14407 * config/i386/i386.c (ix86_preferred_reload_class): Force
14408 using SSE registers (and return NO_REGS for floating-point
14409 constants) if math is done with SSE.
14410 (ix86_preferred_output_reload_class): New.
14411 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
14412 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
14413 * config/i386/i386.md: Remove # register preferences.
14415 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
14418 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
14419 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
14420 the type of nb_iter.
14421 (instantiate_parameters_1): Convert the operands before calling
14422 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
14423 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
14425 2006-04-02 Roger Sayle <roger@eyesopen.com>
14427 * builtins.c (dummy_object): Use build_int_cst instead of convert.
14428 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
14429 instead of convert.
14430 * dojump.c (do_jump): Likewise.
14431 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
14432 * gimplify.c (gimple_boolify, gimplify_init_constructor,
14433 gimplify_boolean_expr): Likewise.
14434 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14435 * varasm.c (array_size_for_constructor): Likewise.
14436 * tree-object-size.c (compute_object_offset): Likewise.
14438 2006-04-02 Roger Sayle <roger@eyesopen.com>
14440 PR middle-end/26977
14441 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
14442 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
14444 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
14446 PR tree-optimization/26939
14447 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
14449 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
14451 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
14452 at_stmt. Convert the type of operands before calling
14453 build_polynomial_chrec.
14454 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
14455 add_to_evolution_1.
14456 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
14457 (instantiate_parameters_1): Convert the type of operands before calling
14458 build_polynomial_chrec.
14459 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
14460 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
14461 reset_evolution_in_loop): Insert asserts to check the types of the
14463 (chrec_type): Moved...
14464 (eq_evolutions_p): Use operand_equal_p.
14465 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
14466 the types of the operands.
14467 (chrec_type): ...here.
14468 * tree-data-ref.c (create_data_ref): Convert the operands before
14469 calling chrec_replace_initial_condition.
14470 (same_access_functions, analyze_subscript_affine_affine,
14471 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
14472 (compute_subscript_distance, analyze_ziv_subscript,
14473 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
14474 analyze_miv_subscript): Convert the operands before calling
14475 chrec_fold_minus or chrec_fold_plus.
14477 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
14479 * tree-data-ref.c (compute_all_dependences): Use a pointer to
14480 the dependence_relations vector.
14481 (compute_data_dependences_for_loop): Adjust call to
14482 compute_all_dependences.
14484 2006-04-01 Roger Sayle <roger@eyesopen.com>
14485 Richard Henderson <rth@redhat.com>
14487 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
14488 gimple_boolify on the condition before calling gimplify_expr.
14490 2006-03-31 Bob Wilson <bob.wilson@acm.org>
14492 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
14493 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
14494 the frame size. Update to use the new macros.
14495 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
14496 * config/xtensa/ieee754-df.S: Likewise.
14498 2006-03-31 Richard Henderson <rth@redhat.com>
14500 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
14501 (make_edges): ... here. Control fallthru creation with a local
14502 variable. Do not play with fake edges.
14503 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
14504 (make_goto_expr_edges): Don't play with fake edges. Make for_call
14507 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
14509 * dwarf2.h (DW64_CIE_ID): Define.
14510 * dwarf2out.c (DWARF_CIE_ID): Define.
14511 (output_call_frame_info): Output 0xffffffff before standard 8-byte
14512 length header. Use DWARF_CIE_ID.
14513 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
14514 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
14516 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
14518 * config/sh/linux-atomic.asm: New file.
14519 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
14521 2006-03-31 DJ Delorie <dj@redhat.com>
14523 * config/m32c/cond.md: Set condition flags properly throughout.
14524 * config/m32c/minmax.md: Likewise.
14525 * config/m32c/prologue.md: Likewise.
14526 * config/m32c/bitops.md: Likewise.
14527 * config/m32c/muldiv.md: Likewise.
14528 * config/m32c/mov.md: Likewise.
14529 * config/m32c/addsub.md: Likewise.
14530 * config/m32c/m32c.md: Likewise.
14531 * config/m32c/jump.md: Likewise.
14532 * config/m32c/shift.md: Likewise.
14534 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
14535 conditionally output the pattern for this.
14536 * config/m32c/m32c.c (flags_needed_for_conditional): New.
14537 (m32c_compare_redundant): New.
14538 (m32c_output_compare): New.
14539 * config/m32c/m32c-protos.h (m32c_output_compare): New.
14541 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
14542 dest, not src. Allow other 4-byte modes.
14544 2006-03-30 Denis Chertykov <denisc@overta.ru>
14546 * doc/md.texi: Refer to avr/constraints.md instead of
14549 2006-03-30 Roger Sayle <roger@eyesopen.com>
14551 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
14552 signed vs. unsigned comparison failures on some hosts.
14554 2006-03-31 Alan Modra <amodra@bigpond.net.au>
14557 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
14558 change to FLOAT_REGS.
14560 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
14561 (rs6000_override_options): Use it.
14562 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
14563 only for -mabi=spe/no-spe and -mabi=altivec.
14565 2006-03-30 Geoffrey Keating <geoffk@apple.com>
14567 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
14570 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
14572 * Makefile.in: Rename docdir to gcc_docdir.
14574 2006-03-30 Roger Sayle <roger@eyesopen.com>
14577 * expr.c (emit_group_store): Optimize group stores into a pseudo
14578 register by using a paradoxical subreg to initialize the destination
14579 if the first or last member of the group specifies a "low part".
14581 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14584 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
14585 * target.h (struct gcc_target.speculate_insn): Change type of the
14586 second parameter to 'int'.
14587 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
14588 the second operand of the DEPS_LIST.
14589 (copy_DEPS_LIST_list): Update reference to the second operand of the
14591 * rtl.h (alloc_DEPS_LIST): Update signature.
14592 * sched-int.h (ds_t): Change typedef to 'int'.
14593 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
14595 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14597 * haifa-sched.c (try_ready): Change condition to restore
14598 non-speculative pattern of the instruction.
14599 (process_insn_depend_be_in_spec): Code to keep probability of the
14600 speculative dependence non-decreasing.
14602 2006-03-30 Jie Zhang <jie.zhang@analog.com>
14604 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
14605 (single_move_for_movmem): ... this. Also change all uses.
14606 (bfin_expand_strmov): Renamed to...
14607 (bfin_expand_movmem): ... this. Also change all uses.
14608 * config/bfin/bfin.md (movstrsi): Renamed to...
14609 (movstrsi): ...this.
14611 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
14613 PR tree-optimization/26830
14615 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
14616 (copy_prop_visit_stmt): Remove write-only variable ann.
14617 (init_copy_prop): Check variable loop depth here. Do not simulate
14618 memory-tag and virtual operand PHIs except for store copy prop.
14620 2006-03-30 Richard Guenther <rguenther@suse.de>
14622 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
14623 variants with double arguments.
14625 2006-03-29 David Edelsohn <edelsohn@gnu.org>
14627 * genpreds.c (write_tm_constrs_h): Delete variable p.
14628 * genconditions.c (write_header): Add tm-constrs.h to included
14630 * genpeep.c (main): Add toplev.h to included headers.
14631 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
14632 (build/genpeep.o): Add toplev.h dependency.
14633 * config/rs6000/constraints.md: Add "W" constraint.
14635 2006-03-29 Roger Sayle <roger@eyesopen.com>
14637 * stor-layout.c (mode_for_size_tree): Remove restiction on type
14638 sizes by correctly testing whether the size fits a host integer.
14639 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
14640 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
14641 SImode range for the default sizetype and bitsizetype.
14643 2006-03-29 Roger Sayle <roger@eyesopen.com>
14645 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
14646 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
14647 quickly if the argument is already of the correct type.
14648 Call fold_build1 instead of build1. Tidy up blank lines.
14650 2006-03-29 David Edelsohn <edelsohn@gnu.org>
14652 * genemit.c (main): Add tm-constrs.h to included headers.
14653 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
14654 * genpeep.c (main): Add tm-constrs.h to included headers.
14655 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
14656 (write_tm_constrs_h): this and write complete file.
14657 (write_tm_preds_h): Do not emit satisfies_constraint fns.
14658 (write_insn_preds_c): Add tm-constrs.h to included headers.
14659 (gen_constrs): New variable.
14660 (parse_option): Parse "-c".
14661 (main): Invoke write_tm_constrs_h.
14662 * genrecog.c (write_header): Add tm-constrs.h to included headers.
14663 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
14664 (object_out_file): Add tm-constrs.h dependency.
14665 (insn-emit.o): Same.
14666 (insn-output.o): Same.
14667 (insn-peep.o): Same.
14668 (insn-preds.o): Same.
14669 (insn-recog.o): Same.
14670 (tm-constsr.h): New target.
14671 (s-constrs-h): New target.
14673 * config/rs6000/constraints.md: New file.
14674 * config/rs6000/rs6000.c: Include tm-constrs.h.
14675 (num_insn_constant_wide): Convert to satisfies_constraint.
14676 (rs6000_rtx_costs): Convert to satisfies_constraint.
14677 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
14678 (CONST_OK_FOR_LETTER_P): Delete.
14679 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14680 (EXTRA_CONSTRAINT): Delete.
14681 (EXTRA_MEMORY_CONSTRAINT): Delete.
14682 (EXTRA_ADDRESS_CONSTRAINT): Delete.
14683 * config/rs6000/predicates.md: Convert to satisfies_constraint.
14684 * config/rs6000/rs6000.md: Include constraints.md. Convert to
14685 satisfies_constraint.
14687 * config/i386/i386.c: Include tm-constrs.h.
14689 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
14691 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
14692 * tree-data-ref.c (find_data_references_in_loop,
14693 compute_data_dependences_for_loop): Use pointers to VEC.
14694 (analyze_all_data_dependences): Adjust calls.
14695 * tree-data-ref.h (find_data_references_in_loop,
14696 compute_data_dependences_for_loop): Adjust declarations.
14697 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
14698 compute_data_dependences_for_loop.
14700 2006-03-29 Paul Brook <paul@codesourcery.com>
14702 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
14703 (movdf_vfp): Ditto.
14705 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
14707 PR tree-optimization/26859
14708 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
14710 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
14711 for the step after fold_convert.
14713 2006-03-29 Paul Brook <paul@codesourcery.com>
14715 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
14716 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
14718 2006-03-29 Paul Brook <paul@codesourcery.com>
14720 PR middle-end/23623
14721 * targhooks.c (default_narrow_bitfield): New fuction.
14722 * targhooks.h (default_narrow_bitfield): add prototype.
14723 * target.h (gcc_target): Add narrow_volatile_bitfield.
14724 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
14725 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
14726 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
14727 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
14729 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
14731 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
14733 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
14734 (NR_C_MODES): Add TDmode, DDmode and SDmode.
14735 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
14736 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
14737 (s390_function_arg_float): Allow SDmode and DDmode values to be
14738 passed in floating point registers.
14739 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
14740 check with SCALAR_FLOAT_MODE_P.
14741 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
14743 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
14745 PR tree-optimization/25985
14746 * tree-ssa-loop-niter.c (number_of_iterations_le,
14747 number_of_iterations_ne): Make comments more precise.
14748 (number_of_iterations_cond): Add only_exit argument. Use the
14749 fact that signed variables do not overflow only when only_exit
14751 (loop_only_exit_p): New.
14752 (number_of_iterations_exit): Pass result of loop_only_exit_p to
14753 number_of_iterations_cond.
14755 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
14757 PR tree-optimization/26643
14758 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
14761 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
14763 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
14764 (divsi3_i4_int): Likewise.
14766 2006-03-28 Roger Sayle <roger@eyesopen.com>
14768 * expr.c (emit_group_store): Only create a new pseudo reg if the
14769 quantity it needs to hold isn't already a suitable pseudo.
14771 2006-03-28 Jeff Law <law@redhat.com>
14773 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
14774 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
14776 2006-03-28 Roger Sayle <roger@eyesopen.com>
14778 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
14779 the equivalent ~X & Y, and the symmetry related transformations.
14780 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
14781 ~X & Y, and symmetry related transforms.
14783 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14785 Revert my 2006-03-27 patches.
14787 2006-03-28 Roger Sayle <roger@eyesopen.com>
14789 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
14790 ~(T1)X, when T1 and T2 are integer types of the same precision
14791 and (T2)X isn't an extension.
14793 2006-03-28 Jeff Law <law@redhat.com>
14795 PR tree-optimization/26796
14796 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
14797 need EH edge cleanups rather than purging them immediately.
14798 (eliminate_degenerate_phis): Handle queued EH cleanups.
14800 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
14802 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
14805 2006-03-27 Roger Sayle <roger@eyesopen.com>
14807 PR middle-end/22524
14808 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
14809 cast BIT_NOT_EXPR operand to the correct type.
14811 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
14813 * tree-loop-linear.c: Don't include varray.h.
14814 (gather_interchange_stats, try_interchange_loops,
14815 linear_transform_loops): Use VEC instead of VARRAY.
14816 * lambda-mat.c: Don't include varray.h.
14817 * tree-chrec.c: Same.
14818 * lambda-trans.c: Same.
14819 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
14820 VEC instead of VARRAY.
14821 * tree-vectorizer.h: Idem.
14822 * tree-data-ref.c (dump_data_references,
14823 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
14824 initialize_data_dependence_relation, finalize_ddr_dependent,
14825 compute_all_dependences, find_data_references_in_loop,
14826 compute_data_dependences_for_loop, analyze_all_data_dependences,
14827 free_dependence_relation, free_dependence_relations,
14828 free_data_refs): Idem.
14829 * tree-data-ref.h (data_reference_p, subscript_p): New.
14830 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
14831 VEC instead of VARRAY.
14832 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
14833 (find_data_references_in_loop, compute_data_dependences_for_loop,
14834 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
14835 dump_data_dependence_relations, free_dependence_relations,
14836 free_data_refs): Adjust declaration.
14837 (lambda_transform_legal_p): Move declaration here...
14838 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
14839 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
14840 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
14841 vect_analyze_data_refs): Use VEC instead of VARRAY.
14842 * lambda.h (lambda_transform_legal_p): ...from here.
14843 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
14844 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
14845 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
14846 tree-chrec.o): Don't depend on VARRAY_H.
14848 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14850 * rtl.def (Copyright): Update date.
14851 (DEPS_LIST): Change type of the second operand to 'int'.
14852 * target.h (Copyright): Update date.
14853 (struct gcc_target.speculate_insn): Change type of the second parameter
14855 * lists.c (Copyright): Update date.
14856 (alloc_DEPS_LIST): Change signature. Update reference to the second
14857 operand of the DEPS_LIST.
14858 (copy_DEPS_LIST_list): Update reference to the second operand of the
14860 * rtl.h (Copyright): Update date.
14861 (alloc_DEPS_LIST): Update signature.
14862 * sched-int.h (Copyright): Update date.
14863 (ds_t): Change typedef to 'int'.
14864 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
14866 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14868 * haifa-sched.c (Copyright): Update date.
14869 (try_ready): Change condition to restore non-speculative pattern
14870 of the instruction.
14871 (process_insn_depend_be_in_spec): Code to keep probability of the
14872 speculative dependence non-decreasing.
14874 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
14876 * regrename.c (replace_oldest_value_addr): Initialize a variable to
14877 shut up the compiler.
14879 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
14881 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
14882 to use lib prefix for target.
14883 ($(T)libic_invalidate_array_4-200.a): Likewise.
14884 ($(T)libic_invalidate_array_4a.a): Likewise.
14886 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
14887 J"orn Rennecke <joern.rennecke@st.com>
14889 * superh.opt: New file.
14890 * sh.c (boardtype, osruntime): Remove.
14891 * superh.h (SUBTARGET_OPTIONS): Remove.
14892 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
14894 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
14895 arguments with ^ and/or [].
14897 * config.gcc (sh-*-*): Add quoting to account for quirk of
14899 Replace == with = in enable_incomplete_targets test.
14901 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
14902 with MASK_LITTLE_ENDIAN.
14904 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
14905 * config/sh/sh.opt: Added to some comments.
14906 * config/sh/superh.h: Removed some chaff.
14908 * config/sh/sh.opt: Add m4-[1234]00* options.
14909 * config/sh/sh.c (sh_handle_option): Likewise.
14910 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
14911 (ic_invalidate_array_4-100.o): New rule.
14912 ($(T)libic_invalidate_array_4-100.a): Likewise.
14913 (ic_invalidate_array_4-200.o): Likewise.
14914 ($(T)libic_invalidate_array_4-200.a): Likewise.
14915 (ic_invalidate_array_4a.o): Likewise.
14916 ($(T)libic_invalidate_array_4a.a): Likewise.
14917 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
14918 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
14920 * config/sh/crt1.asm: Merged in profiling code.
14921 * config/sh/superh.h (STARTFILE_SPEC): Override.
14922 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
14923 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
14924 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
14926 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
14927 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
14928 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
14930 * sh.opt (mpretend-cmove): New option.
14931 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
14932 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
14933 (movsicc): Add TARGET_PRETEND_CMOVE code.
14935 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
14937 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
14938 s390_class_max_nregs): New function prototypes.
14939 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
14940 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
14941 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
14942 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
14944 2006-03-26 Geoffrey Keating <geoffk@apple.com>
14946 * dwarf2out.c (add_location_or_const_value_attribute): Call
14947 tree_add_const_value_attribute if nothing else works.
14948 (reference_to_unused): New.
14949 (rtl_for_decl_init): Use reference_to_unused to decide whether
14950 to output an initializer.
14952 2006-03-27 Alan Modra <amodra@bigpond.net.au>
14955 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
14956 peephole removing spe frob_di_df_2.
14958 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
14960 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
14961 (subscript_dependence_tester_1): Declared.
14962 (print_dir_vectors, print_dist_vectors): New.
14963 (debug_data_dependence_relation): New.
14964 (dump_data_dependence_relation): Print more details.
14965 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
14966 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
14967 (save_dist_v, save_dir_v, add_outer_distances,
14968 build_classic_dist_vector_1): New.
14969 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
14970 Don't test for lambda_vector_lexico_pos.
14971 (same_access_functions, add_multivariate_self_dist,
14972 add_other_self_distances, dir_from_dist): New.
14973 (build_classic_dir_vector): Replace implementation almost identical to
14974 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
14976 (subscript_dependence_tester_1): New.
14977 (subscript_dependence_tester): Handle the lexicographically negative
14978 distance vectors by recomputing the dependence relation.
14979 (compute_affine_dependence): Remove parameter loop_nest_depth.
14980 (compute_self_dependence): Don't call compute_subscript_distance.
14981 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
14982 Add a parameter for the loop_nest.
14983 (find_loop_nest_1, find_loop_nest): New.
14984 (compute_data_dependences_for_loop): Compute the loop nest, and give
14985 up if the nest is not well formed.
14986 * tree-data-ref.h (loop_p): New.
14987 (struct data_dependence_relation): Replace size_vect field with
14988 loop_nest, a vec of loops.
14989 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
14990 (DDR_LOOP_NEST): New.
14991 (print_dir_vectors, print_dist_vectors,
14992 debug_data_dependence_relation): Declared.
14993 (index_in_loop_nest): New.
14994 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
14995 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
14998 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
15000 * simplify-rtx.c (simplify_relational_operation): Call
15001 simplify_relational_operation_1 even if mode is VOIDmode.
15003 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
15005 PR tree-optimization/26804
15006 * tree.h (DECL_CALL_CLOBBERED): New macro.
15007 (tree_decl_common): Add call_clobbered_flag.
15008 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
15009 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
15010 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
15011 (mark_non_addressable): Ditto.
15012 * tree-ssa.c (verify_call_clobbered): New function.
15013 (verify_alias_info): Use it.
15014 * tree-pass.h (pass_reset_cc_flags): New prototype.
15015 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
15016 (reset_cc_flags): New function.
15017 * passes.c (init_optimization_passes): Call reset_cc_flags after
15018 initializing referenced_vars.
15020 2006-03-25 Uros Bizjak <uros@kss-loka.si>
15021 Roger Sayle <roger@eyesopen.com>
15023 PR middle-end/26717
15024 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
15025 to 1.0 for non-real operands. Implement A / A optimization for
15028 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
15030 * config/i386/i386.c (size_cost): Correct the comment for
15031 cost of storing fp registers.
15032 (i386_cost): Likewise.
15033 (i486_cost): Likewise.
15034 (pentium_cost): Likewise.
15035 (pentiumpro_cost): Likewise.
15036 (k6_cost): Likewise.
15037 (athlon_cost): Likewise.
15038 (k8_cost): Likewise.
15039 (pentium4_cost): Likewise.
15040 (nocona_cost): Likewise.
15041 (generic64_cost): Likewise.
15042 (generic32_cost): Likewise.
15044 2006-03-24 Denis Chertykov <denisc@overta.ru>
15046 * config/avr/avr-protos.h (extra_constraint): Delete.
15047 (extra_constraint_Q): New declaration.
15048 * config/avr/constraints.md: New file.
15049 * config/avr/avr.md: Include it.
15050 (REG_X, REG_Y, REG_Z, REG_W): New constants.
15051 (TMP_REGNO, ZERO_REGNO): Likewise.
15052 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
15053 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
15054 (extra_constraint): Delete.
15055 (extra_constraint_Q): Test for memory constraint 'Q'.
15056 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
15057 (REG_CLASS_FROM_LETTER): Delete.
15058 (CONST_OK_FOR_LETTER_P): Delete.
15059 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15060 (EXTRA_CONSTRAINT): Delete.
15061 (TMP_REGNO): Delete.
15062 (ZERO_REGNO): Delete.
15064 2006-03-24 Jeff Law <law@redhat.com>
15066 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
15067 directly. Call mark_new_vars_to_rename slightly earlier.
15069 2006-03-24 Geoffrey Keating <geoffk@apple.com>
15071 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
15072 (is_cxx): Likewise.
15073 (gen_compile_unit_die): Use new language types for Objective-C and
15075 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
15076 DW_LANG_C_plus_plus.
15079 * config/t-darwin (crt3.o): Work around bug 26840.
15080 * config/darwin-crt3.c: Rewrite.
15081 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
15083 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
15085 * doc/invoke.texi: Document -femit-class-debug-always
15086 * common.opt: Add -femit-class-debug-always.
15088 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
15090 * config/s390/s390.c (s390_decompose_address): Allow SImode for
15091 index and base register.
15092 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
15093 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
15094 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
15095 REGNO_OK_FOR_INDEX_P.
15096 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
15098 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
15099 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
15100 REG_OK_FOR_BASE_P): Definitions removed.
15102 2006-03-24 Jakub Jelinek <jakub@redhat.com>
15104 PR middle-end/26611
15105 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
15106 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
15107 set yet or weren't marked as local yet.
15109 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
15111 * regrename.c (scan_rtx_address): Initialize a variable to shut up
15114 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
15116 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
15117 (rs6000_legitimate_small_data_p): Delete.
15118 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
15119 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
15120 and make static. Add forward declaration. Update uses.
15121 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
15122 of offsettable_memref_p.
15123 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
15124 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
15126 2006-03-24 Jeff Law <law@redhat.com>
15128 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
15129 around bug in immediate-use iterator.
15131 2006-03-24 Alan Modra <amodra@bigpond.net.au>
15134 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
15135 or __LITTLE_ENDIAN__.
15137 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
15139 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
15140 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
15141 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
15142 * config/sh/sh.opt (mdiv=): Amend description.
15143 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
15144 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
15145 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
15146 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
15147 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
15148 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
15149 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
15150 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
15151 TARGET_DIVIDE_CALL_FP.
15153 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15155 * haifa-sched.c (choose_ready): Fix type of the local variable.
15156 Move local variables. Add comment.
15157 (check_reg_live): Change signature. Make callable from debugger.
15158 * sched-int.h (check_reg_live): Update signature.
15159 * sched-ebb.c (check_reg_live): Update parameters.
15160 * sched-rgn.c (check_reg_live): Ditto.
15161 (region_head_or_leaf_p): Check pointer before dereferencing.
15162 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
15163 before reload on optimization levels below 1.
15165 2006-03-23 Richard Henderson <rth@redhat.com>
15167 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
15171 * config/alpha/predicates.md (local_symbolic_operand): Reject
15174 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
15177 * tree-ssa-pre.c (create_value_expr_from): Don't reject
15178 expressions which have overflowed constants.
15180 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
15182 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
15184 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
15186 * cfgloopmanip.c (create_loop_notes): Removed.
15187 * final.c (final_scan_insn): Do not handle loop notes.
15188 * jump.c (squeeze_notes): Ditto.
15189 * cfglayout.c (skip_insns_after_block,
15190 duplicate_insn_chain): Ditto.
15191 * cfgcleanup.c (rest_of_handle_jump2): Do not call
15193 * cfgloop.h (create_loop_notes): Declaration removed.
15195 2006-03-23 Richard Sandiford <richard@codesourcery.com>
15197 * varasm.c (output_constant_pool): Restore fnname and fndecl
15199 (assemble_start_function): Adjust call accordingly.
15200 (assemble_end_function): Likewise.
15202 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
15205 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
15208 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
15210 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
15213 * system.h (ICE_EXIT_CODE): New macro.
15214 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
15215 (diagnostic_action_after_output): Likewise.
15216 * gcc.c (fatal_ice): New function.
15217 (execute): Use it instead of fatal.
15218 (fancy_abort): Likewise.
15219 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
15221 2006-03-22 Jeff Law <law@redhat.com>
15223 * loop-unroll.c (analyze_iv_to_split_insn): Handle
15224 iv_analyze_result returning false.
15226 2006-03-22 Jie Zhang <jie.zhang@analog.com>
15228 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
15230 2006-03-22 Richard Henderson <rth@redhat.com>
15232 PR middle-end/26084
15233 * except.c (duplicate_eh_regions_0): New.
15234 (duplicate_eh_region_1): Duplicate the children of the node as
15235 well as the node itself. Link them up properly.
15236 (duplicate_eh_region_2): Merge into ...
15237 (duplicate_eh_regions): ... here. Take copy_region argument, and
15238 copy only a sub-tree if asked. Simplify copying and fixup.
15239 (eh_region_outer_p): New.
15240 * except.h (duplicate_eh_regions): Update decl.
15241 (eh_region_outer_p): Declare.
15242 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
15243 (lower_omp_master): Likewise.
15244 (lower_omp_ordered): Likewise.
15245 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
15246 (move_stmt_r): Use it to remap labels. Handle recursion vs
15247 remap_decls_p properly.
15248 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
15249 (find_outermost_region_in_block): New.
15250 (new_label_mapper): New.
15251 (move_sese_region_to_fn): Copy eh information to the new function
15253 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
15255 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
15258 2006-03-22 Richard Sandiford <richard@codesourcery.com>
15260 * doc/md.texi (-mshared): Mention that -mshared code can be linked
15261 into shared libraries.
15263 2006-03-22 Richard Sandiford <richard@codesourcery.com>
15265 * doc/md.texi: Refer to i386/constraints.md instead of
15266 i386/predicates.md.
15267 * config/i386/constraints.md: New file, extracted from...
15268 * config/i386/predicates.md: ...here.
15269 * config/i386/i386.md: Include constraints.md.
15271 2006-03-21 Jason Merrill <jason@redhat.com>
15273 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
15275 PR middle-end/20297
15276 * expr.c (init_block_move_fn): Force default visibility.
15277 (init_block_clear_fn): Likewise.
15278 * builtins.c (expand_builtin_fork_or_exec): Likewise.
15279 * targhooks.c (default_external_stack_protect_fail): Likewise.
15281 2006-03-21 Richard Sandiford <richard@codesourcery.com>
15283 * config/mips/predicates.md (const_call_insn_operand): Allow direct
15284 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
15285 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
15286 Use TARGET_OLDABI instead of !TARGET_NEWABI.
15287 (loadgp): Use mips_current_loadgp_style.
15288 (loadgp_noshared): New pattern.
15289 (sibcall_internal): Use MIPS_CALL.
15290 (sibcall_value_internal): Likewise.
15291 (sibcall_value_multiple_internal): Likewise.
15292 (call_internal): Likewise.
15293 (call_value_internal): Likewise.
15294 (call_value_multiple_internal): Likewise.
15295 (call_split): Use MIPS_CALL and add an 'S' constraint.
15296 (call_value_split): Likewise.
15297 (call_value_multiple_split): Likewise.
15298 * config/mips/mips.opt (-mabicalls): Tweak docstring.
15299 (-mshared): New option.
15300 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
15301 (mips_current_loadgp_style): Declare.
15302 * config/mips/mips.c (mips_classify_symbol): Avoid using
15303 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
15304 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
15305 TARGET_ABSOLUTE_ABICALLS.
15306 (override_options): Adjust comments. Improve the warning that is
15307 issued when -mabicalls and -G are used together.
15308 (mips_file_start): Remove comment.
15309 (mips_current_loadgp_style): New function.
15310 (mips_gnu_local_gp): New variable.
15311 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
15313 (mips_output_function_prologue): Use mips_current_laodgp_style.
15314 (mips_expand_prologue): Call mips_emit_loadgp before emitting
15315 the cprestore instruction.
15316 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
15317 live for TARGET_ABSOLUTE_ABICALLS.
15318 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
15319 (ASM_SPEC): Pass down -mshared and -mno-shared.
15320 (MIPS_CALL): New macro.
15321 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
15323 * doc/invoke.texi (-mabicalls): Update documentation.
15324 (-mshared): Document.
15326 2006-03-21 Steve Ellcey <sje@cup.hp.com>
15328 * config/ia64/unwind-hpux.c: New file.
15329 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
15331 2006-03-21 Steve Ellcey <sje@cup.hp.com>
15334 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
15336 2006-03-21 Jeff Law <law@redhat.com>
15338 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
15339 type conversions of a VR_VARYING source to a wider type.
15341 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
15343 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
15344 tm_file on Solaris 10 and later.
15345 (sparc64-*-solaris2*): Likewise.
15346 (sparc-*-solaris2*): Likewise.
15347 * config/sol26.h: Rename to config/sol2-6.h.
15348 * config/sol2-10.h: New file.
15350 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
15353 * tree-ssa-pre.c (create_component_ref_by_pieces):
15356 2006-03-21 Jakub Jelinek <jakub@redhat.com>
15359 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
15360 return it immediately.
15362 2006-03-21 Michael Matz <matz@suse.de>
15364 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
15366 (remove_arc, add_arc): Update num_out_arcs member.
15367 (set_out_arc_insns_equiv_num): Returns nothing instead of number
15369 (cache_presence): New function.
15370 (compare_states_for_equiv): New function.
15371 (state_is_differed): Don't take number of outargs, adjust callers.
15372 Use new invariant for speeding up.
15373 (init_equiv_class): Create initial classes based on sorted
15375 (partition_equiv_class): Don't track out_arcs_num.
15376 (evaluate_equiv_classes): Call cache_presence on all states and
15379 2006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
15381 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
15382 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
15383 (bfin_valid_reg_p): Test for pseudos explicitly and use only
15384 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
15386 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
15387 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
15388 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
15389 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15390 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
15392 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
15393 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
15394 (REGNO_REG_CLASS): ARGP is in PREGS.
15395 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
15397 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
15398 to deal with those addresses.
15399 * addresses.h: New file.
15400 * caller-save.c: Include "addresses.h".
15401 (init_caller_save): Use new base_reg_class function.
15402 * rtl-factoring.c: Include "addresses.h".
15403 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
15404 * recog.c: Include "addresses.h".
15405 (preprocess_constraints): Use new base_reg_class function.
15406 * regrename.c: Include "addresses.h".
15407 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
15408 functions. Keep track of a new var INDEX_CODE to compute valid
15410 (replace_oldest_value_addr): Likewise.
15411 (replace_oldest_value_mem): Use base_reg_class.
15412 * reload.c: Include "addresses.h".
15413 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
15414 (find_reloads): Use new base_reg_class function.
15415 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
15416 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
15417 all callers and prototype changed.
15418 * reload1.c: Include "addresses.h".
15419 (maybe_fix_stack_asms): Use base_reg_class.
15420 * regclass.c: Include "addresses.h".
15421 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
15422 (init_reg_autoinc): Use new base_reg_class function.
15423 (record_reg_classes): Likewise.
15424 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
15425 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
15426 Use new args to compute necessary class.
15428 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
15429 regrename.o, rtl-factoring.o): Update dependencies.
15430 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
15431 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
15432 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
15433 REG_OK_FOR_INDEX_P): Delete documentation.
15435 2006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
15437 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
15438 from V7 to V9 for Solaris 7 and above.
15440 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
15442 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
15443 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
15444 argument pointers may not alias any other storage.
15445 * common.opt: Define option -fargument-noalias-anything.
15446 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
15447 alias semantics is specified by flag_argument_noalias > 2.
15449 2006-03-20 Jeff Law <law@redhat.com>
15451 * tree-pass.h (pass_phi_only_copy_prop): Delete.
15452 (pass_phi_only_cprop): Declare.
15453 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
15454 with phi_only_cprop
15455 * tree-ssa-dom.c (degenerate_phi_result): New function.
15456 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
15457 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
15458 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
15459 (eliminate_degenerate_phis): Likewise.
15460 (pass_phi_only_cprop): New pass descriptor.
15461 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
15462 support code. Callers updated.
15463 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
15464 (store_copy_prop): Likewise.
15465 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
15467 2006-03-20 Jason Merrill <jason@redhat.com>
15470 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
15471 (push_visibility, pop_visibility): Likewise.
15472 * c-pragma.h: Declare them.
15474 2006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
15476 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
15478 * config/sh/sh.c (find_regmode_weight): Change the type of the first
15479 parameter and use get_ebb_head_tail.
15480 (sh_md_init_global): Adjust uses of find_regmode_weight.
15482 2006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
15484 * function.h (struct function) <x_tail_recursion_reentry>:
15485 Rename to x_stack_check_probe_note.
15486 (tail_recursion_reentry): Rename to stack_check_probe_note.
15487 * function.c: Replace tail_recursion_reentry with
15488 stack_check_probe_note everywhere.
15489 (expand_function_start): Only emit a note for
15490 stack_check_probe_note with -fstack-protect.
15491 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
15493 * emit-rtl.c (remove_unnecessary_notes): Remove.
15494 (pass_remove_unnecessary_notes): Remove.
15495 * rtl.h (remove_unnecessary_notes): Remove prototype.
15496 * final.c (final_start_function): Don't call remove_unnecessary_notes.
15497 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
15498 * passes.c (pass_remove_unnecessary_notes): Don't run it.
15500 2006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
15503 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
15504 (valid_in_set): Handle ARRAY_REF.
15505 Change "if min_variant or VH" to asserts.
15506 (create_component_ref_by_pieces): Handle ARRAY_REF.
15507 (create_expression_by_pieces): Likewise.
15508 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
15510 2006-03-20 David Edelsohn <edelsohn@gnu.org>
15512 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
15513 is operand of switch, not str[0].
15515 2006-03-20 Alan Modra <amodra@bigpond.net.au>
15517 * config/rs6000/rs6000.c (rs6000_handle_option): Use
15518 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
15520 2006-03-19 David Edelsohn <edelsohn@gnu.org>
15522 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
15523 end of insn_extra_address_constraint declaration.
15525 2006-03-19 David Edelsohn <edelsohn@gnu.org>
15527 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
15528 (no-sum-in-toc): Same.
15529 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
15531 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
15532 NO_FP_IN_TOC for -fPIC instead of mask.
15534 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
15535 (BOOT_LDFLAGS): Delete.
15537 * config/rs6000/t-aix52: Same.
15539 * config/rs6000/rs6000.md (store_multiple_power): Delete.
15540 (stmsi[345678]_power): New.
15542 2006-03-17 Steve Ellcey <sje@cup.hp.com>
15544 * config/ia64/ia64.opt: Add empty line to end of file.
15546 2006-03-17 Richard Guenther <rguenther@suse.de>
15548 PR middle-end/26721
15549 * builtins.c (get_pointer_alignment): For component style references
15550 adjust alignment to the component type alignment. Make sure
15551 to adjust alignment for component access of constants.
15553 2006-03-17 David Edelsohn <edelsohn@gnu.org>
15555 * config/rs6000/rs6000.md (strlensi): Emit barrier after
15556 unconditional jump.
15558 2006-03-17 Paul Brook <paul@codesourcery.com>
15560 * doc/install.texi: Docuemnt --with-mode.
15561 * config.gcc: Add --with-mode for arm*-*-*.
15562 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
15564 2006-03-17 J"orn Rennecke <joern.rennecke@st.com>
15566 * sh.c (max_labelno_before_reorg): New variable.
15567 (sh_reorg): Initialize it.
15568 (find_barrier): Check max_labelno_before_reorg before using
15569 label_to_alignment. Take length of explicit alignment insns
15570 into account. When seeing a UNSPECV_CONST_END, return it.
15572 * sh.c (fixup_mova): Set mode of affected label to QImode.
15573 (untangle_mova): New function.
15574 (find_barrier): Use it. Check mode of label before decrementing
15576 (sh_reorg): Likewise.
15577 Set mode of all insns back to VOIDmode.
15579 * sh.c (MOVA_LABELREF): New macro.
15580 (mova_p, fixup_mova, sh_reorg): Use it.
15581 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
15582 ADDR_DIFF_VEC matches mova.
15584 2006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
15586 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
15587 with ATTRIBUTE_UNUSED.
15589 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
15591 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
15592 pointer, instead of assuming it is possible to derive the
15593 correct args size from a call insn.
15595 2006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15597 * rtl.h (CONST_INT_P): Define.
15598 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
15599 instead of GET_CODE(x) == CONST_INT.
15600 (vax_rtx_costs): Likewise.
15601 (vax_output_int_move): Likewise.
15602 (vax_output_int_add): Likewise.
15603 (legitimate_constant_address_p): Likewise.
15604 (index_term_p): Likewise.
15605 * config/vax/vax.h (PRINT_OPERAND): Likewise.
15606 * config/vax/vax.md (and<mode>3): Likewise.
15607 (ashrsi3): Likewise.
15609 (movstricthi): Likewise.
15610 (movstrictqi): Likewise.
15611 (rotrsi3): Likewise.
15612 (five unnamed insns): Likewise.
15614 2006-03-16 Geoffrey Keating <geoffk@apple.com>
15616 * doc/tm.texi (SDB and DWARF): Add extra parameter to
15617 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
15618 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
15619 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
15620 Pass to ASM_OUTPUT_DWARF_OFFSET.
15621 * dwarf2out.c (debug_frame_section): New.
15622 (output_call_frame_info): Use debug_frame_section. Pass it to
15623 dw2_asm_output_offset.
15624 (output_die): Pass appropriate section to dw2_asm_output_offset.
15625 (output_compilation_unit_header): Likewise.
15626 (output_pubnames): Likewise.
15627 (output_aranges): Likewise.
15628 (enum dw_val_class): Break dw_val_class_lbl_offset into
15629 dw_val_class_lineptr and dw_val_class_macptr.
15630 (add_AT_lbl_offset): Delete.
15631 (add_AT_lineptr): New.
15632 (add_AT_macptr): New.
15633 (AT_lbl): Expect a lineptr or macptr.
15634 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
15635 (attr_checksum): Likewise.
15636 (same_dw_val_p): Likewise.
15637 (size_of_die): Likewise.
15638 (value_format): Likewise.
15639 (output_die): Likewise.
15640 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
15642 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
15643 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
15644 * config/darwin-protos.h (darwin_file_start): New.
15645 (darwin_asm_output_dwarf_offset): New.
15646 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
15647 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
15649 * config/darwin.c (darwin_emit_unwind_label): Don't output label
15650 if not EH section; simplify.
15651 (darwin_file_start): New.
15652 (darwin_asm_output_dwarf_offset): New.
15653 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
15655 (DEBUG_INFO_SECTION): Likewise.
15656 (DEBUG_ABBREV_SECTION): Likewise.
15657 (DEBUG_ARANGES_SECTION): Likewise.
15658 (DEBUG_MACINFO_SECTION): Likewise.
15659 (DEBUG_LINE_SECTION): Likewise.
15660 (DEBUG_LOC_SECTION): Likewise.
15661 (DEBUG_PUBNAMES_SECTION): Likewise.
15662 (DEBUG_STR_SECTION): Likewise.
15663 (DEBUG_RANGES_SECTION): Likewise.
15664 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
15665 (ASM_OUTPUT_DWARF_OFFSET): New.
15667 2006-03-16 Joseph S. Myers <joseph@codesourcery.com>
15669 * config.gcc (tm_defines): Always add to previous value rather
15672 2006-03-16 Richard Sandiford <richard@codesourcery.com>
15674 * config/mips/predicates.md (splittable_const_int_operand): New,
15675 split from move_operand.
15676 (splittable_symbolic_operand): New.
15677 (move_operand): Add commentary. Use splittable_const_int_operand.
15678 Inline mips_atomic_symbolic_constant_p.
15679 * config/mips/mips.md: Add combine splitters for handling moves
15680 of splittable_const_int_operands and splittable_symbolic_operands.
15681 * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
15682 (mips_split_symbol): Declare.
15683 (mips_move_integer): Declare.
15684 * config/mips/mips.c (mips_split_p): Make global.
15685 (TARGET_MIN_ANCHOR_OFFSET): Override default.
15686 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
15687 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
15688 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
15689 (mips_offset_within_object_p): Handle block symbols.
15690 (mips_atomic_symbolic_constant_p): Delete.
15691 (mips_cannot_force_const_mem): Return false for constants that
15692 mips_legitimize_move can handle.
15693 (mips_use_blocks_for_constant_p): New function.
15694 (mips_split_symbol): Make global.
15695 (mips_move_integer): Likewise. Add a temporary register argument.
15696 (mips_legitimize_const_move): Use splittable_const_int_operand and
15697 splittable_symbolic_operand.
15698 (mips_use_anchors_for_symbol_p): New function.
15699 * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
15700 (mips_split_p): Declare.
15702 2006-03-16 Richard Sandiford <richard@codesourcery.com>
15704 * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
15705 (mips*-*-linux*): Likewise.
15707 2006-03-16 Roger Sayle <roger@eyesopen.com>
15708 Daniel Speyer <dspeyer@wam.umd.edu>
15710 PR middle-end/18259
15711 * tree-dump.c (dump_real): New function.
15712 (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
15713 * Makefile.in (REAL_H): New macro for dependencies on real.h.
15714 (tree-dump.o): Add $(REAL_H) to the dependencies.
15716 2006-03-16 Roger Sayle <roger@eyesopen.com>
15718 PR middle-end/21781
15719 * real.c (real_from_string): If the mantissa is zero, don't bother
15720 parsing the exponent as the result should always be zero.
15722 2006-03-16 Andreas Krebbel <krebbel1@de.ibm.com>
15724 * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
15726 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15728 * config/ia64/ia64.c (stops_p): Added explicit initialization.
15729 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
15730 ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
15731 ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
15732 ia64_sched_finish_global): New static functions to implement
15733 hooks from gcc_target.sched.
15734 (spec_check_no, max_uid, pending_data_specs): New static variables.
15735 (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
15736 ia64_spec_check_src_p): New static functions.
15737 (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
15738 (TARGET_SCHED_ADJUST_COST): Removed.
15739 (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
15740 TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
15741 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
15742 TARGET_SCHED_GEN_CHECK,
15743 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15744 TARGET_SCHED_SET_SCHED_FLAGS): New macros.
15745 (update_set_flags, group_barrier_needed, set_src_needs_barrier):
15746 Fixed to handle speculation checks.
15747 (rtx_needs_barrier): Fixed to handle speculative loads and
15749 (ia64_variable_issue): Added code to count speculative loads and their
15751 (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
15753 (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
15755 (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
15757 (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
15758 (ia64_reorg): Reset stops_p to NULL after it is freed.
15759 * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
15760 UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
15761 (itanium_class): chk_s renamed to chk_s_i. New constants: chk_s_f,
15763 (data_speculative, control_speculative, check_load): New attributes.
15764 (mov<mode>_advanced, mov<mode>_speculative,
15765 mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
15766 zero_extend<mode>di2_speculative,
15767 zero_extend<mode>di2_speculative_advanced): New patterns for
15768 data and control speculative loads.
15769 (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
15771 (advanced_load_check_clr_<mode>, speculation_check_<mode>):
15772 New pattern for data and control speculation checks.
15773 (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
15774 ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
15775 reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
15776 Auxiliary definitions for the patterns.
15777 * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
15778 1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
15780 (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
15782 (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
15783 * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
15784 2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
15785 New resource constraints.
15786 (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
15788 (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
15789 * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
15790 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
15791 msched-in-control-spec, msched-ldc, msched-control-ldc,
15792 msched-spec-verbose, msched-prefer-non-data-spec-insns,
15793 msched-prefer-non-control-spec-insns,
15794 msched-count-spec-in-critical-path): New flags to tune speculative
15796 * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
15797 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
15798 msched-in-control-spec, msched-ldc, msched-control-ldc,
15799 msched-spec-verbose, msched-prefer-non-data-spec-insns,
15800 msched-prefer-non-control-spec-insns,
15801 msched-count-spec-in-critical-path): Document new flags.
15803 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15805 * target.h (struct spec_info_def): New opaque declaration.
15806 (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
15807 speculate_insn, needs_block_p, gen_check,
15808 first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
15809 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
15810 TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
15811 TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
15812 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15813 TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
15815 (TARGET_SCHED): Use new macros.
15816 * rtl.h (copy_DEPS_LIST_list): New prototype.
15817 * sched-int.h (struct sched_info): Change signature of new_ready field,
15818 adjust all initializations. New fields: add_remove_insn,
15819 begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
15820 region_head_or_leaf_p.
15821 (struct spec_info_def): New structure declaration.
15822 (spec_info_t): New typedef.
15823 (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
15824 recovery_block, orig_pat.
15825 (glat_start, glat_end): New variables declaraions.
15826 (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
15828 (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
15829 DETACH_LIFE_INFO, USE_GLAT.
15830 (enum SPEC_SCHED_FLAGS): New enumeration.
15831 (NOTE_NOTE_BB_P): New macro.
15832 (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
15833 attach_life_info, debug_spec_status, check_reg_live): New functions.
15834 (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
15835 all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
15837 (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
15838 * ddg.c (get_block_head_tail): Adjust all uses.
15839 * modulo-sched.c (get_block_head_tail): Adjust all uses.
15840 (sms_sched_info): Initialize new fields.
15841 (contributes_to_priority): Removed.
15842 * haifa-sched.c (params.h): New include.
15843 (get_block_head_tail): Adjust all uses.
15844 (ISSUE_POINTS): New macro.
15845 (glat_start, glat_end): New global variables.
15846 (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
15847 nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
15848 old_last_basic_block, before_recovery, current_sched_info_var,
15849 rgn_n_insns, luid): New static variables.
15850 (insn_cost1): New function. Move logic from insn_cost to here.
15851 (find_insn_reg_weight1): New function. Move logic from
15852 find_insn_reg_weight to here.
15853 (reemit_notes, move_insn, max_issue): Change signature.
15854 (move_insn1): Removed.
15855 (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
15856 extend_bb): New static functions to support extension of scheduler's
15858 (generate_recovery_code, process_insn_depend_be_in_spec,
15859 begin_speculative_block, add_to_speculative_block,
15860 init_before_recovery, create_recovery_block, create_check_block_twin,
15861 fix_recovery_deps): New static functions to support
15862 generation of recovery code.
15863 (fix_jump_move, find_fallthru_edge, dump_new_block_header,
15864 restore_bb_notes, move_block_after_check, move_succs): New static
15865 functions to support ebb scheduling.
15866 (init_glat, init_glat1, attach_life_info1, free_glat): New static
15867 functions to support handling of register live information.
15868 (associate_line_notes_with_blocks, change_pattern, speculate_insn,
15869 sched_remove_insn, clear_priorities, calc_priorities, bb_note,
15870 add_jump_dependencies): New static functions.
15871 (check_cfg, has_edge_p, check_sched_flags): New static functions for
15872 consistancy checking.
15873 (debug_spec_status): New function to call from debugger.
15874 (priority): Added code to handle speculation checks.
15875 (rank_for_schedule): Added code to distinguish speculative instructions.
15876 (schedule_insn): Added code to handle speculation checks.
15877 (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
15878 Fixed to handle ebbs.
15879 (move_insn): Added code to handle ebb scheduling.
15880 (max_issue): Added code to use ISSUE_POINTS of instructions.
15881 (choose_ready): Added code to choose between speculative and
15882 non-speculative instructions.
15883 (schedule_block): Added code to handle ebb scheduling and scheduling of
15884 speculative instructions.
15885 (sched_init): Initialize new variables.
15886 (sched_finish): Free new variables. Print statistics.
15887 (try_ready): Added code to handle speculative instructions.
15888 * lists.c (copy_DEPS_LIST_list): New function.
15889 * sched-deps.c (extend_dependency_caches): New function. Move logic
15890 from create_dependency_caches to here.
15891 (get_dep_weak, ds_merge): Make global.
15892 * genattr.c (main): Code to output prototype for
15893 dfa_clear_single_insn_cache.
15894 * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
15895 (output_dfa_clean_insn_cache_func): Code to output
15896 dfa_clear_single_insn_cache function.
15897 * sched-ebb.c (target_n_insns): Remove. Adjust all users to use
15899 (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
15901 (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
15902 New static variables.
15903 (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
15904 fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
15906 (ebb_sched_info): Initialize new fields.
15907 (get_block_head_tail): Adjust all uses.
15908 (compute_jump_reg_dependencies): Fixed to use glat_start.
15909 (schedule_ebb): Code to remove unreachable last block.
15910 (schedule_ebbs): Added code to update register live information.
15911 * sched-rgn.c (region_sched_info): Initialize new fields.
15912 (get_block_head_tail): Adjust all uses.
15913 (last_was_jump): Removed. Adjust users.
15914 (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
15915 add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
15916 Implement new hooks.
15917 (check_dead_notes1): New static function.
15918 (struct region): New fields: dont_calc_deps, has_real_ebb.
15919 (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
15920 (BB_TO_BLOCK): Fixed to handle EBBs.
15921 (EBB_FIRST_BB, EBB_LAST_BB): New macros.
15922 (ebb_head): New static variable.
15923 (debug_regions, contributes_to_priority): Fixed to handle EBBs.
15924 (find_single_block_regions, find_rgns, find_more_rgns): Initialize
15926 (compute_dom_prob_ps): New assertion.
15927 (check_live_1, update_live_1): Fixed to work with glat_start instead of
15928 global_live_at_start.
15929 (init_ready_list): New assertions.
15930 (can_schedule_ready_p): Split update code to begin_schedule_ready.
15931 (new_ready): Add support for BEGIN_CONTROL speculation.
15932 (schedule_insns): Fixed code that updates register live information
15934 (schedule_region): Fixed to handle EBBs.
15935 (init_regions): Use extend_regions and check_dead_notes1.
15936 * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
15937 PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
15938 * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
15939 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
15940 TARGET_SCHED_GEN_CHECK,
15941 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
15942 TARGET_SCHED_SET_SCHED_FLAGS): Document.
15943 * doc/invoke.texi (max-sched-insn-conflict-delay,
15944 sched-spec-prob-cutoff): Document.
15946 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15948 * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
15949 inter_tick, queue_index.
15950 (struct sched_info): Change signature of init_ready_list field.
15951 Adjust all initializations.
15952 (RESOLVED_DEPS): New access macro.
15953 (ready_add): Remove prototype.
15954 (try_ready): Add prototype.
15955 * sched-rgn.c (init_ready_list): Use try_ready.
15956 (schedule_region): Initialize
15957 current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
15958 * sched-ebb.c (new_ready): Remove. Adjust ebb_sched_info.
15959 (init_ready_list): Use try_ready.
15960 (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
15961 * lists.c (remove_list_elem): Remove `static'.
15962 (remove_free_INSN_LIST_elem): New function.
15963 * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
15964 * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
15965 (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
15967 (readyp): New variable.
15968 (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
15969 change_queue_index, resolve_dep): New static functions.
15970 (try_ready): New function. Adjust callers in sched-rgn.c and
15971 sched-ebb.c to use it instead of ready_add.
15972 (clock_var): Move at the begining of file.
15973 (rank_for_schedule): Fix typo.
15974 (queue_insn): Add assertion. Handle QUEUE_INDEX.
15975 (ready_lastpos): Enforce assertion.
15976 (ready_add): Make it static. Handle QUEUE_INDEX. Add new argument,
15977 update all callers.
15978 (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
15979 (schedule_insn): Rewrite to use try_ready and resolve_dep.
15980 (queue_to_ready): Use free_INSN_LIST_list.
15981 (early_queue_to_ready): Fix typo.
15982 (schedule_block): Init readyp. Move init_ready_list call after the
15983 initialization of clock_var. Fix error in rejecting insn by
15984 targetm.sched.dfa_new_cycle. Add call to fix_inter_tick. Remove code
15985 that previously corrected INSN_TICKs. Add code for handling
15987 (set_priorities): Fix typo.
15988 (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
15989 Clarify comment and code that keeps current_sched_info->next_tail
15992 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
15994 * sched-rgn.c (extend_rgns): New static function.
15995 (find_rgns): Use it.
15996 (gather_region_statistics, print_region_statistics): New static
15998 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
15999 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
16001 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
16002 Andrey Belevantsev <abel@ispras.ru>
16004 * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
16005 * lists.c (unused_deps_list): New variable.
16006 (free_list): Add assertions to verify the proper distinguishing
16007 between INSN_LISTs and DEPS_LISTs.
16008 (find_list_elem, remove_list_elem, remove_list_node): New static
16010 (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
16011 remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
16012 remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
16013 (alloc_INSN_LIST): Assert that the list we're working on is indeed
16015 (free_INSN_LIST_node): Likewise.
16016 * modulo-sched.c (current_sched_info): Initialize flags field.
16017 * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
16018 * rtl.def (DEPS_LIST): Define.
16019 * rtl.h: Declare new functions from lists.c.
16020 * sched-deps.c (spec_dependency_cache): New static variable.
16021 (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
16022 (add_dependence): Change return type to void. Move the logic to ...
16023 (add_or_update_back_dep_1): ... here. Handle speculative dependencies.
16024 (delete_all_dependences): Add comment about forward_dependency_cache.
16025 Handle spec_dependency_cache. Handle DEPS_LISTs.
16026 (fixup_sched_groups): Clarify the change of priority of output
16027 and anti dependencies.
16028 (sched_analyze_2): Adjust add_dependence calls to create data
16029 speculative dependence.
16030 (add_forward_dependence): Renamed to add_forw_dep, change prototype.
16031 Adjust all callers. Handle DEPS_LISTS.
16032 (compute_forward_dependences): Use add_forw_dep. Sort LOG_LINKs in
16033 presence of speculation.
16034 (init_dependency_caches, free_dependency_caches):
16035 Handle spec_dependency_cache.
16036 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
16037 estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
16038 New static functions.
16039 (add_or_update_back_dep, add_or_update_back_forw_dep,
16040 add_back_forw_dep, delete_back_forw_dep): New functions.
16041 * sched-int.h (ds_t, dw_t): New typedefs.
16042 (struct sched_info): Add new field flags.
16043 (struct haifa_insn_data): Add new bitfield has_internal_dep.
16044 Prototype new sched-deps.c functions.
16045 (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
16046 (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
16047 MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
16048 BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
16049 SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
16050 SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
16052 (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
16054 * sched-rgn.c (current_sched_info): Initialize flags field.
16055 (schedule_insns): Initialize current_sched_info before the sched_init
16057 * sched-ebb.c (current_sched_info): Initialize flags field.
16058 (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
16059 Call add_or_update_back_dep instead of add_dependence.
16060 Create control speculative dependencies.
16061 (schedule_insns): Initialize current_sched_info before the sched_init
16064 2006-03-16 Kaz Kojima <kkojima@gcc.gnu.org>
16066 * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
16068 (sh_fallback_frame_state): Likewise.
16070 2006-03-15 Geoffrey Keating <geoffk@apple.com>
16072 * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
16073 Do switch on default_use_cxa_atexit.
16074 (powerpc*-*-darwin*): Build crt2.o on powerpc.
16075 * config/darwin-crt3.o: New.
16076 * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
16077 to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use.
16078 (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
16080 * config/rs6000/t-darwin: Move crt2.o building to here.
16081 * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
16082 Mac OS version for using __cxa_get_exception_ptr. Don't test versions
16085 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16087 * config/vax/vax.c (nonindexed_address_p): Change logical negation
16088 from '! xxx' to '!xxx' for coding-style conformance.
16089 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
16090 (EXTRA_CONSTRAINT): Likewise.
16091 * config/vax/vax.md (four unnamed insns): Likewise.
16093 2006-03-15 Paul Brook <paul@codesourcery.com>
16095 * config/arm/arm.c (minipool_pad): New.
16096 (add_minipool_forward_ref): Include pool alignment padding in address
16098 (push_minipool_fix): Set minipool_pad.
16099 (minipool_pad): Ditto.
16101 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16103 * config/vax/vax.c (split_quadword_operands): Use MEM_P()
16104 instead of GET_CODE() == MEM and REG_P() instead of
16106 (print_operand_address): Likewise.
16107 (vax_address_cost): Likewise.
16108 (vax_rtx_costs): Likewise.
16109 (vax_notice_update_cc): Likewise.
16110 (vax_output_int_add): Likewise.
16111 (INDEX_REGISTER_P): Likewise.
16112 (BASE_REGISTER_P): Likewise.
16113 (nonindexed_address_p): Likewise.
16114 (vax_mode_dependent_address_p): Likewise.
16115 * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
16116 (PRINT_OPERAND): Likewise.
16117 * config/vax/vax.md (ashlsi3): Likewise.
16118 (ashlsi3): Likewise.
16119 (some more unnamed insns): Likewise.
16121 2006-03-15 Kazu Hirata <kazu@codesourcery.com>
16123 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
16124 iterator-style macro.
16125 (mark_control_dependent_edges_necessary): Update the use of
16126 EXECUTE_IF_CONTROL_DEPENDENT.
16128 2006-03-15 J"orn Rennecke <joern.rennecke@st.com>
16130 * config/sh/predicates.md (cache_address_operand): Special.
16131 (ua_address_operand): Likewise.
16133 2006-03-15 Zdenek Dvorak <dvorakz@suse.cz>
16135 * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
16137 * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
16139 2006-03-15 Andreas Schwab <schwab@suse.de>
16141 * gensupport.c (identify_predicable_attribute): Don't free p_false
16142 when it is still in use.
16144 2006-03-15 Eric Botcazou <ebotcazou@libertysurf.fr>
16146 * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
16147 the default setting here.
16149 2006-03-14 Steven Bosscher <stevenb.gcc@gmail.com>
16151 * tree-pass.h (pass_cfg): Remove.
16152 * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
16153 * passes.c (pass_cfg): Don't run it.
16155 2006-03-14 Kazu Hirata <kazu@codesourcery.com>
16157 * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
16158 * reg-stack.c (stack_regs_mentioned_data): Change the type to
16160 (stack_regs_mentioned): Update the uses of
16161 stack_regs_mentioned_data. Don't access the array beyond its
16163 (reg_to_stack): Update the uses of stack_regs_mentioned_data.
16164 Don't include gt-reg-stack.h.
16166 * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
16167 * system.h (UNALIGNED_WORD_ASM_OP): Poison.
16169 * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
16171 PR middle-end/26684
16172 * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
16175 2006-03-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16177 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
16179 2006-03-14 Richard Guenther <rguenther@suse.de>
16181 PR tree-optimization/26672
16182 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
16185 2006-03-14 Richard Guenther <rguenther@suse.de>
16187 PR tree-optimization/26667
16188 * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
16189 node for the callees. Always allow inlining if it will shrink
16192 2006-03-14 Richard Guenther <rguenther@suse.de>
16194 PR middle-end/26659
16195 * builtins.c (get_pointer_alignment): Prefer alignment
16196 information from decls over that from types.
16198 2006-03-14 Andrew Pinski <pinskia@physics.uc.edu>
16201 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
16203 2006-03-14 Joseph S. Myers <joseph@codesourcery.com>
16205 * config/rs6000/rs6000.opt (mdlmzb): New option.
16206 (msched-prolog, msched-epilog): Use Var not Mask.
16207 * doc/invoke.texi (-mdlmzb): Document.
16208 * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
16210 (rs6000_override_options): Enable -mdlmzb for 405 and 440.
16211 * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
16213 2006-03-13 Uttam Pawar <uttamp@us.ibm.com>
16215 PR rtl-optimization/25739
16216 * bt-load.c (augment_live_range): Free tos pointer.
16218 * gensupport.c (identify_predicable_attribute): Free
16220 * gcov.c (create_file_names): Free name pointer.
16222 2006-03-13 Roger Sayle <roger@eyesopen.com>
16224 PR middle-end/26557
16225 * stmt.c (emit_case_nodes): Handle the case where the index is a
16226 CONST_INT, where the comparison mode is specified by the index type.
16228 2006-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16230 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
16233 2006-03-13 Richard Sandiford <richard@codesourcery.com>
16235 * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
16236 (*branch_fp_inverted): Likewise.
16238 2006-03-13 Jakub Jelinek <jakub@redhat.com>
16240 PR middle-end/25989
16241 * omp-low.c (expand_omp_for_generic): Mark istart0
16242 and iend0 as addressable.
16244 2006-03-13 Jie Zhang <jie.zhang@analog.com>
16246 * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
16248 2006-03-13 Jeff Law <law@redhat.com>
16250 * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
16251 virtual operands are interesting.
16252 (vrp_visit_stmt): Corresponding changes.
16254 2006-03-13 Bernd Schmidt <bernd.schmidt@analog.com>
16256 * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
16258 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
16259 TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
16260 * config/bfin/crti.S: Use it instead of __PIC__.
16261 * config/bfin/crtn.S: Likewise.
16263 * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
16264 call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
16266 Lose 'G' modifier for call operand.
16267 * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
16268 recognize 'G' modifier.
16270 2006-03-13 Eric Botcazou <ebotcazou@adacore.com>
16272 PR middle-end/18859
16273 * gimplify.c (gimplify_switch_expr): Discard empty ranges.
16274 * stmt.c (expand_case): Likewise.
16276 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
16278 PR rtl-optimization/26254
16279 * loop-invariant.c (seq_insns_valid_p): New function.
16280 (move_invariant_reg): Only emit new code if it is valid.
16282 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
16284 * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
16286 (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
16287 (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
16288 (commit_one_edge_insertion): Do not look for loop notes.
16290 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
16292 * jump.c (follow_jumps): Do not check for loop notes. Move check for
16293 flag_test_coverage out of loop.
16295 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
16297 * final.c (shorten_branches): Remove outdated comment, and turn
16298 the if branch that guards it to continue.
16300 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
16302 * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
16303 * cfgloop.h (struct loop): Remove unused fields.
16305 2006-03-13 Kazu Hirata <kazu@codesourcery.com>
16307 * doc/invoke.texi (-fdump-rtl-loop): Remove.
16308 (-dL, -fdump-rtl-loop2): Update the dump file names
16310 * doc/invoke.texi: Update dump file names.
16312 2006-03-12 Steven Bosscher <stevenb.gcc@gmail.com>
16314 * predict.c (estimate_probability): Remove.
16315 * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
16316 * basic-block.h (estimate_probability): Remove prototype.
16317 * passes.c (finish_optimization_passes): Dump branch prediction or
16318 profiling heuristics to the .profile tree dump.
16319 (init_optimization_passes): Unqueue pass_branch_prob.
16321 * doc/invoke.texi (-fdump-rtl-bp): Remove.
16323 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
16325 * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
16326 * rtl.h (LABEL_NEXTREF): Remove field accessor.
16328 2006-03-11 Eric Botcazou <ebotcazou@adacore.com>
16330 * function.h (frame_offset_overflow): Declare.
16331 * function.c (frame_offset_overflow): New function.
16332 (assign_stack_local_1): Call it to detect that the offset overflows.
16333 * cfgexpand.c (alloc_stack_frame_space): Likewise.
16335 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
16337 * config/sh/sh.c: Include alloc-pool.h.
16338 (label_ref_list_pool): New alloc pool.
16339 (label_ref_list_t): New type for lists of labels.
16340 (struct pool_node): Make wend a label_ref_list_t.
16341 (add_constant): Use the new type, eradicate LABEL_NEXTREF
16343 (dump_table): Likewise.
16344 (sh_reorg): Set up the alloc pool before using add_constant and
16345 dump_table, and destroy it when finishing.
16347 2006-03-11 Richard Sandiford <richard@codesourcery.com>
16349 * config/mips/mips.c: Remove redundant comment.
16351 2006-03-10 Jason Merrill <jason@redhat.com>
16354 * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
16355 the target was declared 'register'.
16357 2006-03-10 Adam Nemet <anemet@caviumnetworks.com>
16359 * genpreds.c (write_insn_constraint_len): Change definition of
16360 insn_constraint_len to return size_t to match the declaration.
16362 2006-03-10 DJ Delorie <dj@redhat.com>
16364 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
16366 (m32c_expand_insv): Fix test for an AND mask.
16368 2006-03-10 Richard Guenther <rguenther@suse.de>
16370 PR middle-end/26565
16371 * builtins.c (get_pointer_alignment): Handle component
16372 references for field alignment.
16374 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
16376 * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
16377 when building with libgloss.
16378 (sh*elf): Implement --without-fp option.
16379 (sh64-superh-linux*): Don't multilib.
16381 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
16383 * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
16385 2006-03-09 Andrew Pinski <pinskia@physics.uc.edu>
16387 * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
16388 Set it when one of the replacement functions returned true.
16389 Return TODO_cleanup_cfg if cfgchanged is true.
16390 (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
16392 2006-03-09 Adam Nemet <anemet@caviumnetworks.com>
16394 * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
16395 instead of gen_lowpart.
16397 2006-03-09 Richard Sandiford <richard@codesourcery.com>
16399 * config/mips/mips-protos.h (mips_output_conditional_branch): Change
16401 (mips_output_order_conditional_branch): Declare.
16402 * config/mips/mips.h (MIPS_BRANCH): New macro.
16403 * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
16404 for the comparison. Use gen_condjump.
16405 (mips_output_conditional_branch): Rework interface to take the
16406 asm templates for a direct branch and the inverse of a direct branch.
16407 (mips_output_order_conditional_branch): New function.
16408 (mips_builtin_branch_and_move): New function.
16409 (mips_expand_builtin_compare): Use it. Use VOIDmode for the
16410 branch condition. Use gen_single_cc as the condition for
16411 __builtin_mips_upper_* or __builtin_mips_lower_*.
16412 (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
16413 Use VOIDmode for the branch condition.
16414 * config/mips/predicates.md (order_operator): New predicate.
16415 * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
16416 (branch_fp): Rename to...
16417 (*branch_fp): ...this. Remove mode from comparison operator.
16418 Use new mips_output_conditional_branch interface.
16419 (branch_fp_inverted): Rename to...
16420 (*branch_fp_inverted): ...this and update as for *branch_fp.
16421 (*branch_zero<mode>): Rename to...
16422 (*branch_order<mode>): ...this. Remove mode from comparison operator.
16423 Use mips_output_order_conditional_branch. Only accept ordered
16425 (*branch_zero<mode>_inverted): Rename to...
16426 (*branch_order<mode>_inverted): ...this and update as for
16427 *branch_order<mode>.
16428 (*branch_equality<mode>): Accept zero as the second operand to
16429 the equality operator. Use the new mips_output_conditional_branch
16431 (*branch_equality<mode>_inverted): Likewise.
16432 (condjump): New expander.
16433 * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
16435 * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
16436 (bc1any2t, bc1any2f): Likewise.
16437 (single_cc): New expander.
16438 (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
16440 2006-03-09 Richard Sandiford <richard@codesourcery.com>
16442 * doc/md.texi: Update documentation of MIPS constraints.
16443 * config/mips/constraints.md: New file.
16444 * config/mips/mips.md: Include it.
16445 * config/mips/mips.c (mips_char_to_class): Delete.
16446 (override_options): Don't initialize mips_char_to_class.
16447 * config/mips/mips.h (mips_char_to_class): Delete.
16448 (REG_CLASS_FROM_LETTER): Delete.
16449 (CONST_OK_FOR_LETTER_P): Delete.
16450 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16451 (EXTRA_CONSTRAINT_Y): Delete.
16452 (EXTRA_CONSTRAINT_STR): Delete.
16453 (CONSTRAINT_LEN): Delete.
16454 (EXTRA_MEMORY_CONSTRAINT): Delete.
16456 2006-03-09 Diego Novillo <dnovillo@redhat.com>
16458 * tree-cfg.c (move_block_to_fn): Remove the statements from the
16459 original fn's eh regions.
16461 2006-03-09 Eric Botcazou <ebotcazou@adacore.com>
16463 * fold-const.c (build_range_check): Make sure to use a valid type to
16464 apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
16467 (range_predecessor): New static function.
16468 (range_successor): Likewise.
16469 (merge_ranges): Use them to compute predecessors and successors of
16472 2006-03-09 Roger Sayle <roger@eyesopen.com>
16474 PR middle-end/26561
16475 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
16476 X op C3, consider whether C3 overflows towards +Inf or -Inf.
16478 2006-03-08 DJ Delorie <dj@redhat.com>
16480 * config/m32c/addsub.md (addqi3): Disparage a0/a1.
16481 (addpsi3): Expand to include memory operands. Remove
16482 reload-specific splits.
16483 * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
16484 (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
16485 (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
16486 (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
16487 (shift1_qi, shift1_hi, insv): New.
16488 * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
16489 (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
16490 cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
16492 * config/m32c/m32c-protos.h: Update as needed.
16493 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
16494 default the Rcr, Rcl, Raw, and Ral constraints. Add Ra0 and Ra1.
16495 Fail for unrecognized R* constraints.
16496 (m32c_cannot_change_mode_class): Be more picky about pseudos.
16497 (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
16498 (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
16500 (m32c_init_libfuncs): New.
16501 (m32c_legitimate_address_p): Add debug wrapper.
16502 (m32c_rtx_costs): New.
16503 (m32c_address_cost): New.
16504 (conversions): Add 'B' prefix.
16505 (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
16506 operands, or word regnames for QI operands. 'B' prints bit
16508 (m32c_expand_setmemhi): New.
16509 (m32c_expand_movmemhi): New.
16510 (m32c_expand_movstr): New.
16511 (m32c_expand_cmpstr): New.
16512 (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
16513 (m32c_expand_neg_mulpsi3): Handle non-ints.
16514 (m32c_cmp_flg_0): New.
16515 (m32c_expand_movcc): New.
16516 (m32c_expand_insv): New.
16517 (m32c_scc_pattern): New.
16518 * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS. Take
16519 a0/a1 out of SIregs.
16520 (STORE_FLAG_VALUE): New.
16521 * config/m32c/m32c.md: Add unspecs for string moves. Define various mode and
16524 * config/m32c/mov.md: Make constraints more liberal.
16525 (zero_extendqihi2): Optimize r0/r1 case.
16526 * config/m32c/muldiv.md (mulpsi3): Check for intvals.
16527 * config/m32c/predicates.md (m32c_any_operand): New.
16528 (m32c_nonimmediate_operand): New.
16529 (m32c_hl_operand): New.
16530 (m32c_r3_operand): New.
16533 (memsym_operand): New.
16534 (memimmed_operand): New.
16535 (a_qi_operand): New.
16536 (m32c_eqne_operator): New.
16537 (m32c_1bit8_operand): New.
16538 (m32c_1bit16_operand): New.
16539 (m32c_1mask8_operand): New.
16540 (m32c_1mask16_operand): New.
16541 * config/m32c/blkmov.md: New file.
16542 * config/m32c/t-m32c (MD_FILES): Add blkmov.
16544 2006-03-08 Andreas Tobler <a.tobler@schweiz.ch>
16546 * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
16547 unsigned to fix signed/unsigned comparison issue in
16548 DWARF2_FRAME_REG_OUT.
16549 (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
16550 unsigned comparison issue in DWARF2_FRAME_REG_OUT.
16552 * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
16553 of ptr into the ENABLE_CHECKING section.
16555 2006-03-08 Jeff Law <law@redhat.com>
16557 * tree-vrp.c (infer_value_range): Only count pointer uses
16558 and dereferences if -fdelete-null-pointer-checks is enabled.
16560 * tree-vrp.c (find_assert_locations): Infer value ranges for
16561 single use pointers, but do not create ASSERT_EXPRs for them.
16562 When a non-null range is inferred for a pointer, backwards
16563 propagate that range to other equivalent pointers through the
16566 2006-03-08 Paolo Bonzini <bonzini@gnu.org>
16569 * Makefile.in (dvi, html, install-info): Invoke the corresponding
16570 language hook targets.
16571 * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
16572 objcp/Make-lang.in: Create stub rules for dvi, html, install-info
16573 if language hook targets were missing.
16575 2006-03-07 Zdenek Dvorak <dvorakz@suse.cz>
16577 * tree-ssa-opfinalize.h: Removed.
16578 * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
16580 * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
16581 (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
16582 INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
16583 add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
16584 finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
16585 finalize_ssa_v_must_def_ops): New.
16587 2006-03-07 Kenneth Zadeck <zadeck@naturalbridge.com>
16589 * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
16590 block as parameter.
16592 2006-03-07 Geoffrey Keating <geoffk@apple.com>
16594 * varasm.c (assemble_end_function): Say that 'fnname' is unused.
16596 * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
16597 addresses with offsets; reorganize.
16599 * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
16600 (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
16601 (expand_builtin_init_dwarf_reg_sizes): Likewise.
16603 2006-03-08 David Billinghurst <David.Billinghurst@riotinto.com>
16606 * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
16608 2006-03-08 Ben Elliston <bje@au.ibm.com>
16610 * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
16612 2006-03-07 Aldy Hernandez <aldyh@redhat.com>
16615 * doc/passes.texi (Tree-SSA passes): Document omp lowering and
16618 2006-03-07 Richard Guenther <rguenther@suse.de>
16620 PR tree-optimization/26587
16621 * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
16623 2006-03-07 Richard Sandiford <richard@codesourcery.com>
16625 * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
16627 2006-03-07 Richard Sandiford <richard@codesourcery.com>
16629 * hooks.c (hook_bool_mode_rtx_true): New function.
16630 * hooks.h (hook_bool_mode_rtx_true): Declare.
16631 * toplev.c (compile_file): Call output_shared_constant_pool.
16632 * varasm.c (shared_constant_pool): New variable.
16633 (assemble_start_function, assemble_end_function): Remove arguments
16634 from call to output_constant_pool.
16635 (create_constant_pool): New function, split out from...
16636 (init_varasm_status): ...here.
16637 (force_const_mem): Choose between the shared and per-function constant
16638 pools. Set current_function_uses_const_pool when reusing old entries
16639 as well as when creating new ones.
16640 (mark_constant): Ignore data argument.
16641 (mark_constants): Remove pool argument.
16642 (mark_constant_pool): Likewise. Use current_function_uses_const_pool
16643 to decide whether the function uses a constant pool.
16644 (output_constant_pool_contents): New function, split out from...
16645 (output_constant_pool): ...here.
16646 (output_shared_constant_pool): New function.
16647 (init_varasm_once): Initialize shared_constant_pool.
16648 * output.h (output_constant_pool): Delete.
16649 (output_shared_constant_pool): Declare.
16650 * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
16651 * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
16653 2006-03-06 Nick Clifton <nickc@redhat.com>
16655 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
16656 flag_strength_reduce.
16658 2006-03-06 Ben Elliston <bje@au.ibm.com>
16660 * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
16661 x86_64-*-linux* configurations.
16663 * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
16664 (LIBGCC2_WORDS_BIG_ENDIAN): Define.
16666 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
16668 * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
16670 * basic-block.h: Remove the extern for
16671 rediscover_loops_after_threading.
16673 * cfgloop.c (cancel_loop): Make it static.
16674 * cfgloop.h: Remove the prototype for cancel_loop.
16676 * flow.c (recompute_reg_usage): Make it static.
16677 * rtl.h: Remove the prototype for recompute_reg_usage.
16679 * function.c (use_return_register): Make it static.
16680 * function.h: Remove the prototype.
16682 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
16684 * recog.c (volatile_mem_p, validate_change_maybe_volatile):
16686 * recog.h: Remove the prototype for
16687 validate_change_maybe_volatile.
16689 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
16691 * rtlanal.c (replace_reg): Remove.
16692 * rtl.h: Remove the prototype for replace_reg.
16694 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
16696 * regclass.c (reg_scan_update): Remove.
16697 (reg_scan_mark_refs): Remove the last argument.
16698 * rtl.h: Remove the prototype for reg_scan_update.
16700 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
16702 * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
16703 combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
16704 config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
16705 config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
16706 df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
16707 loop-invariant.c, omp-low.c, opts.c, passes.c,
16708 rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
16709 tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
16710 tree-ssa-structalias.c, tree-ssa-threadedge.c,
16711 tree-ssa-threadupdate.c, tree-vect-patterns.c,
16712 tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
16713 unwind-dw2.c: Fix comment typos. Follow spelling conventions.
16715 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
16717 * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
16718 * dwarf2out.h: Remove the prototype for
16719 dwarf2out_add_library_unit_info.
16721 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
16723 * tree.c (add_var_to_bind_expr): Remove.
16724 * tree.h: Remove the prototype for add_var_to_bind_expr.
16726 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
16728 * regclass.c (n_non_fixed_regs): Remove.
16729 (init_reg_sets_1, globalize_reg): Remove all uses of
16731 * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
16733 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
16735 * rtlanal.c (insns_safe_to_move_p): Remove.
16736 * rtl.h: Remove the prototype for insns_safe_to_move_p.
16738 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
16740 * expmed.c (expand_mult_add): Remove.
16741 * expr.h: Remove the prototype for expand_mult_add.
16743 2006-03-04 Jakub Jelinek <jakub@redhat.com>
16745 * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
16746 and REG_SAVED_VAL_EXP constants.
16747 * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
16748 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
16749 Handle regs stored by value.
16750 (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
16751 (execute_cfa_program): Handle DW_CFA_val_offset,
16752 DW_CFA_val_offset_sf and DW_CFA_val_expression.
16753 (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
16754 value specially. Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
16755 (uw_install_context_1): Handle target regs stored by value.
16757 2006-03-03 Daniel Berlin <dberlin@dberlin.org>
16759 * tree-sra.c (tree_sra): Return todoflags;
16760 (generate_one_element): Set TODO_update_smt_usage if needed.
16761 (pass_sra): Remove TODO_update_smt_usage.
16762 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
16764 (tree_ssa_forward_propagate_single_use_vars): Return
16765 TODO_update_smt_usage if we need to update SMT usage.
16766 (pass_forwprop): Remove TODO_update_smt_usage.
16768 2006-03-03 Diego Novillo <dnovillo@redhat.com>
16770 * tree-ssa-operands.c: Tidy whitespace. Fix spelling.
16771 (correct_use_link): Remove reference to get_stmt_operands.
16772 (update_stmt_operands): Likewise.
16773 (get_modify_expr_operands): New function factored out of
16774 parse_ssa_operands and get_expr_operands.
16775 Try to create V_MUST_DEFs for LHS by default.
16776 (get_expr_operands) <case MODIFY_EXPR>: Call
16777 get_modify_expr_operands.
16778 <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
16779 <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
16780 (parse_ssa_operands) <case MODIFY_EXPR>: Call
16781 get_modify_expr_operands.
16783 2006-03-03 Kazu Hirata <kazu@codesourcery.com>
16785 * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
16786 * tree-flow.h: Remove the prototype for
16787 referenced_var_lookup_if_exists.
16789 2006-03-03 Steve Ellcey <sje@cup.hp.com>
16791 PR rtl-optimization/26345
16793 * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
16795 2006-03-03 Roger Sayle <roger@eyesopen.com>
16797 PR tree-optimization/26524
16798 * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
16799 fold_convert to create a constant of the appropriate type.
16801 2006-03-03 Richard Sandiford <richard@codesourcery.com>
16803 * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16804 SYMBOL_REF_IN_BLOCK_P.
16805 * doc/rtl.texi: Likewise. Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
16806 of SYMBOL_FLAG_IN_BLOCK.
16807 * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
16808 instead of SYMBOL_REF_IN_BLOCK_P.
16809 * explow.c (use_anchored_address): Likewise.
16810 * rtl.c (rtx_size): Likewise.
16811 * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
16812 instead of SYMBOL_FLAG_IN_BLOCK.
16813 (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16814 SYMBOL_REF_IN_BLOCK_P.
16815 (assemble_variable): Likewise.
16816 (output_constant_def_contents): Likewise.
16817 (output_constant_pool): Likewise.
16818 (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
16819 instead of SYMBOL_FLAG_IN_BLOCK.
16820 * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16821 SYMBOL_REF_IN_BLOCK_P.
16822 (SYMBOL_REF_BLOCK): Likewise.
16823 (SYMBOL_REF_OFFSET): Likewise.
16824 (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
16825 SYMBOL_REF_IN_BLOCK_P.
16826 (SYMBOL_FLAG_IN_BLOCK): Replace with...
16827 (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
16828 (SYMBOL_REF_IN_BLOCK_P): Replace with...
16829 (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
16831 2006-03-03 Jakub Jelinek <jakub@redhat.com>
16833 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
16835 2006-03-02 Roger Sayle <roger@eyesopen.com>
16837 * simplify-rtx.c (simplify_unary_operation): When simplifying
16838 (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
16839 that we perform the right shift in the appropriate mode, and
16840 then extend or truncate the result to requested mode.
16842 2006-03-03 Zdenek Dvorak <dvorakz@suse.cz>
16844 * gengtype.c (main): Handle double_int type.
16845 * tree.h (struct tree_int_cst): Make type of int_cst double_int.
16846 * double-int.c: New file.
16847 * double-int.h: New file.
16848 * system.h: Include doubleint.h.
16849 * Makefile.in (SYSTEM_H): Include double-int.h.
16850 (double-int.o): Add.
16852 2006-03-03 Joseph S. Myers <joseph@codesourcery.com>
16855 * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
16858 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
16860 * tree-vrp.c (remove_range_assertions): Do not update statements
16863 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
16865 * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
16867 * gcse.c (rest_of_handle_gcse): Ditto.
16868 * except.c (gate_handle_eh): Ditto.
16869 * cfgcleanup.c (rest_of_handle_jump2): Ditto.
16870 * basic-block.h (CLEANUP_PRE_LOOP): Remove.
16872 2006-03-02 Eric Christopher <echristo@apple.com>
16874 * config/i386/i386.c (machopic_output_stub): Add indirection to
16877 2006-03-02 Zdenek Dvorak <dvorakz@suse.cz>
16881 2006-03-02 David S. Miller <davem@sunset.davemloft.net>
16883 Sun Niagara specific optimizations.
16884 * config.gcc: Recognize niagara as target.
16885 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
16886 (TARGET_CPU_niagara): Define.
16887 (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
16888 (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
16889 (CPP_CPU_SPEC): Handle -mcpu=niagara.
16890 (ASM_CPU_SPEC): Likewise.
16891 (PROCESSOR_NIAGARA): New enum entry.
16892 (REGISTER_MOVE_COST): Handle Niagara.
16893 (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
16894 * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
16895 (sparc_override_options): Recognize "niagara", set appropriate
16896 default MASK_* values for it, and align functions to 32-bytes
16897 by default just like ULTRASPARC/ULTRASPARC3.
16898 (sparc_initialize_trampoline): Handle niagara like ultrasparc.
16899 (sparc64_initialize_trampoline): Likewise.
16900 (sparc_use_sched_lookahead): Use zero for niagara.
16901 (sparc_issue_rate): Use one for niagara.
16902 * config/sparc/niagara.md: New file.
16903 * config/sparc/sparc.md: Include it.
16904 * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
16905 ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
16906 when default cpu is niagara.
16907 (CPP_CPU_SPEC): Handle -mcpu=niagara.
16908 (ASM_CPU_SPEC): Likewise.
16909 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
16910 when default cpu is niagara.
16911 (ASM_CPU_SPEC): Handle -mcpu=niagara.
16912 * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
16913 just like v9/ultrasparc/ultrasparc3.
16914 * doc/invoke.texi: Add documentation for "niagara" and improve
16915 existing documentation for ultrasparc variants.
16917 2006-03-02 Diego Novillo <dnovillo@redhat.com>
16919 * tree-ssa-operands.c (update_stmt_operands): Update documentation.
16921 2006-03-02 Richard Sandiford <richard@codesourcery.com>
16923 * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
16924 (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
16925 and say that only one is needed.
16926 * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
16927 * target.h (have_switchable_bss_sections): New hook.
16928 * explow.c (use_anchored_address): Check that the symbol is in a block.
16929 * varasm.c (tls_comm_section, comm_section, lcomm_section)
16930 (bss_noswitch_section): New variables.
16931 (get_unnamed_section): Add SECTION_UNNAMED to the flags.
16932 (get_noswitch_section): New function.
16933 (get_block_for_section): Allow SECT to be null.
16934 (unlikely_text_section_p): Use SECTION_STYLE.
16935 (bss_initializer_p): New function.
16936 (get_variable_section): Move earlier in file. Take a new argument,
16937 prefer_noswitch_p. Move bss checks from assemble_variable to here.
16938 Return one of the new *_sections in such cases.
16939 (get_block_for_decl): New function, extracting some logic from
16940 use_blocks_for_decl_p.
16941 (change_symbol_section): Remove in favor of...
16942 (change_symbol_block): ...this new function.
16943 (use_blocks_for_decl_p): Remove checks now performed by
16944 get_block_for_decl.
16945 (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
16946 (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
16947 (emit_local, emit_bss, emit_common): ...these new functions.
16948 Return true if the alignment was honored.
16949 (emit_tls_common): New function.
16950 (asm_emit_uninitialised): Delete.
16951 (assemble_variable_noswitch): New function, split out from...
16952 (assemble_variable): ...here. Don't make decisions about common
16953 variables here. Globalize all public decls that go into non-common
16954 sections. Check whether SYMBOL_REF_BLOCK is null.
16955 (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
16956 (output_constant_pool): Likewise.
16957 (init_varasm_once): Initialize the new section variables.
16958 (have_global_bss_p): New function.
16959 (categorize_decl_for_section): Use bss_initializer_p.
16960 (switch_to_section): Use SECTION_STYLE. Abort for SECTION_NOSWITCH.
16961 (place_block_symbol): Assert that the symbol must be in a block.
16962 * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
16963 (TARGET_INITIALIZER): Include it.
16964 * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
16965 * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
16966 (SECTION_MACH_DEP): Bump by two.
16967 (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
16968 (unnamed_section): Mention SECTION_UNNAMED in comment.
16969 (named_section): Likewise SECTION_NAMED.
16970 (noswitch_section_callback): New type.
16971 (noswitch_section): New structure.
16972 (section): Add a noswitch_section alternative.
16973 (SECTION_STYLE): New macro.
16974 (tls_comm_section, comm_section, lcomm_section): Declare.
16975 (bss_noswitch_section, have_global_bss_p): Declare.
16976 * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
16977 * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
16979 * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
16980 * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
16983 2006-03-02 Daniel Berlin <dberlin@dberlin.org>
16985 * tree-vrp.c (execute_vrp): Return value.
16986 * regrename.c (rest_of_handle_regrename): Ditto.
16987 * tree-into-ssa.c (rewrite_into_ssa): Ditto.
16988 * tree-complex.c (tree_lower_complex): Ditto.
16989 (tree_lower_complex_O0): Ditto.
16990 * tracer.c (rest_of_handle_tracer): Ditto.
16991 * postreload-gcse.c (rest_of_handle_gcse2): Ditto.
16992 * postreload.c (rest_of_handle_postreload): Ditto.
16993 * tree-tailcall.c (execute_tail_recursion): Ditto.
16994 (execute_tail_calls): Ditto.
16995 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16996 * tree.h (init_function_for_compilation): Ditto.
16997 * ipa-cp.c (ipcp_driver): Ditto.
16998 * tree-scalar-evolution.c (scev_const_prop): Ditto.
16999 * tree-scalar-evolution.h (scev_const_prop): Ditto.
17000 * final.c (compute_alignments): Ditto.
17001 (rest_of_handle_final): Ditto.
17002 (rest_of_handle_shorten_branches): Ditto.
17003 (rest_of_clean_state): Ditto.
17004 * omp-low.c (execute_expand_omp): Ditto.
17005 (execute_lower_omp): Ditto.
17006 * tree-ssa-dse.c (tree_ssa_dse): Ditto.
17007 * ipa-reference.c (static_execute): Ditto.
17008 * tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
17009 * reorg.c (rest_of_handle_delay_slots): Ditto.
17010 (rest_of_handle_machine_reorg): Ditto.
17011 * cgraphunit.c (rebuild_cgraph_edges): Ditto.
17012 * flow.c (recompute_reg_usage): Ditto.
17013 (rest_of_handle_remove_death_notes): Ditto.
17014 (rest_of_handle_life): Ditto.
17015 (rest_of_handle_flow2): Ditto.
17016 * tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
17017 * tree-ssa-ccp.c (do_ssa_ccp): Ditto.
17018 (do_ssa_store_ccp): Ditto.
17019 (execute_fold_all_builtins): Ditto.
17020 * mode-switching.c (rest_of_handle_mode_switching): Ditto.
17021 * modulo-sched.c (rest_of_handle_sms): Ditto.
17022 * ipa-pure-const.c (static_execute): Ditto.
17023 * cse.c (rest_of_handle_cse): Ditto.
17024 (rest_of_handle_cse2): Ditto.
17025 * web.c (rest_of_handle_web): Ditto.
17026 * tree-stdarg.c (execute_optimize_stdarg): Ditto.
17027 * tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
17028 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
17029 * tree-nrv.c (tree_nrv): Ditto.
17030 (execute_return_slot_opt): Ditto.
17031 * tree-ssa-alias.c (compute_may_aliases): Ditto.
17032 (create_structure_vars): Ditto.
17033 * loop-init.c (rtl_loop_init): Ditto.
17034 (rtl_loop_done): Ditto.
17035 (rtl_move_loop_invariants): Ditto.
17036 (rtl_unswitch): Ditto.
17037 (rtl_unroll_and_peel_loops): Ditto.
17038 (rtl_doloop): Ditto.
17039 * gimple-low.c (lower_function_body): Ditto.
17040 (mark_used_blocks): Ditto.
17041 * tree-ssa-sink.c (execute_sink_code): Ditto.
17042 * ipa-inline.c (cgraph_decide_inlining): Ditto.
17043 (cgraph_early_inlining): Ditto.
17044 * global.c (rest_of_handle_global_alloc): Ditto.
17045 * jump.c (cleanup_barriers): Ditto.
17046 (purge_line_number_notes): Ditto.
17047 * ifcvt.c (rest_of_handle_if_conversion): Ditto.
17048 (rest_of_handle_if_after_reload): Ditto.
17049 * tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
17050 (tree_ssa_loop_im): Ditto.
17051 (tree_ssa_loop_unswitch): Ditto.
17052 (tree_vectorize): Ditto.
17053 (tree_linear_transform): Ditto.
17054 (tree_ssa_loop_ivcanon): Ditto.
17055 (tree_ssa_empty_loop): Ditto.
17056 (tree_ssa_loop_bounds): Ditto.
17057 (tree_complete_unroll): Ditto.
17058 (tree_ssa_loop_prefetch): Ditto.
17059 (tree_ssa_loop_ivopts): Ditto.
17060 (tree_ssa_loop_done): Ditto.
17061 * predict.c (tree_estimate_probability): Ditto.
17062 * recog.c (split_all_insns_noflow): Ditto.
17063 (rest_of_handle_peephole2): Ditto.
17064 (rest_of_handle_split_all_insns): Ditto.
17065 * tree-eh.c (lower_eh_constructs): Ditto.
17066 * regmove.c (rest_of_handle_regmove): Ditto.
17067 (rest_of_handle_stack_adjustments): Ditto.
17068 * local-alloc.c (rest_of_handle_local_alloc): Ditto.
17069 * function.c (instantiate_virtual_regs): Ditto.
17070 (init_function_for_compilation): Ditto.
17071 (rest_of_handle_check_leaf_regs): Ditto.
17072 * gcse.c (rest_of_handle_jump_bypass): Ditto.
17073 (rest_of_handle_gcse): Ditto.
17074 * ipa-type-escape.c (type_escape_execute): Ditto.
17075 * alias.c (rest_of_handle_cfg): Ditto.
17076 * tree-if-conv.c (main_tree_if_conversion): Ditto.
17077 * profile.c (rest_of_handle_branch_prob): Ditto.
17078 * tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
17079 * rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
17080 * bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
17081 * tree-dfa.c (find_referenced_vars): Ditto.
17082 * except.c (set_nothrow_function_flags): Ditto.
17083 (convert_to_eh_region_ranges): Ditto.
17084 (rest_of_handle_eh): Ditto.
17085 * emit-rtl.c (unshare_all_rtl): Ditto.
17086 (remove_unnecessary_notes): Ditto.
17087 * except.h (set_nothrow_function_flags): Ditto.
17088 (convert_to_eh_region_ranges): Ditto.
17089 * cfgexpand.c (tree_expand_cfg): Ditto.
17090 * tree-cfgcleanup.c (merge_phi_nodes): Ditto.
17091 * tree-ssa-pre.c (do_pre): Ditto.
17092 (execute_fre): Ditto.
17093 * cfgcleanup.c (rest_of_handle_jump): Ditto.
17094 (rest_of_handle_jump2): Ditto.
17095 * tree-sra.c (tree_sra): Ditto.
17096 * tree-mudflap.c (execute_mudflap_function_ops): Ditto.
17097 (execute_mudflap_function_decls): Ditto.
17098 * tree-ssa-copy.c (do_copy_prop): Ditto.
17099 (do_store_copy_prop): Ditto.
17100 * ipa-prop.h (ipcp_driver): Ditto.
17101 * cfglayout.c (insn_locators_initialize): Ditto.
17102 * tree-ssa-forwprop.c
17103 (tree_ssa_forward_propagate_single_use_vars): Ditto.
17104 * cfglayout.h (insn_locators_initialize): Ditto.
17105 * tree-ssa-dce.c (tree_ssa_dce): Ditto.
17106 * tree-ssa.c (execute_early_warn_uninitialized): Ditto.
17107 (execute_late_warn_uninitialized): Ditto.
17108 * rtl.h (cleanup_barriers): Ditto.
17109 (split_all_insns_noflow): Ditto.
17110 (purge_line_number_notes): Ditto.
17111 (unshare_all_rtl): Ditto.
17112 (remove_unnecessary_notes): Ditto.
17113 (recompute_reg_usage): Ditto.
17114 (variable_tracking_main): Ditto.
17115 * integrate.c (emit_initial_value_sets): Ditto.
17116 * integrate.h (emit_initial_value_sets): Ditto.
17117 * tree-optimize.c (execute_free_datastructures): Ditto
17118 (execute_free_cfg_annotations): Ditto.
17119 (execute_fixup_cfg): Ditto.
17120 (execute_cleanup_cfg_pre_ipa): Ditto.
17121 (execute_cleanup_cfg_post_optimizing): Ditto.
17122 (execute_init_datastructures): Ditto.
17123 * tree-object-size.c (compute_object_sizes): Ditto.
17124 * combine.c (rest_of_handle_combine): Ditto.
17125 * tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
17126 * bb-reorder.c (duplicate_computed_gotos): Ditto.
17127 (rest_of_handle_reorder_blocks): Ditto.
17128 (rest_of_handle_partition_blocks): Ditto.
17129 * var-tracking.c (variable_tracking_main): Ditto.
17130 * tree-profile.c (tree_profiling): Ditto.
17131 * tree-vect-generic.c (expand_vector_operations): Ditto.
17132 * reg-stack.c (rest_of_handle_stack_regs): Ditto.
17133 * sched-rgn.c (rest_of_handle_sched): Ditto.
17134 (rest_of_handle_sched2): Ditto.
17135 * basic-block.h (free_bb_insn): Ditto.
17136 * tree-ssa-structalias.c (ipa_pta_execute): Ditto.
17137 * tree-cfg.c (execute_build_cfg): Ditto.
17138 (remove_useless_stmts): Ditto.
17139 (split_critical_edges): Ditto.
17140 (execute_warn_function_return): Ditto.
17141 (execute_warn_function_noreturn): Ditto.
17142 * tree-ssa-reassoc.c (execute_reassoc): Ditto.
17143 * cfgrtl.c (free_bb_for_insn): Ditto.
17144 * passes.c (execute_one_pass): Run additional
17145 todos returned by execute function.
17146 * tree-pass.h (struct tree_opt_pass): Make execute
17149 2006-03-02 Richard Guenther <rguenther@suse.de>
17151 * tree-ssa-alias.c (find_used_portions): Consider taking
17152 the address as making the variable not write-only.
17154 2006-03-02 Nick Clifton <nickc@redhat.com>
17156 * config.gcc (default_use_cxa_atexit): Extend the description of
17157 this configure variable. Set its default value to "yes" for
17158 Linux, NetBSD and ELF targets on the assumption that they will
17159 use C libraries with the __cxa_atexit function.
17161 2006-03-02 Ben Elliston <bje@au.ibm.com>
17163 * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
17164 parameter as unused to suppress a build warning.
17166 2006-03-02 Ben Elliston <bje@au.ibm.com>
17168 * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
17171 2006-03-01 Roger Sayle <roger@eyesopen.com>
17174 * gthr-posix.h (__gthrw2): Define to take three parameters, the
17175 declared name, the weak reference name, and the typeof name.
17176 (__gthrw): Avoid expanding the declared name suffix.
17177 (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
17179 2006-03-01 Jakub Jelinek <jakub@redhat.com>
17181 * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
17183 (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
17184 DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
17185 DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
17186 DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
17187 DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
17188 (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
17189 (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
17190 DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
17191 (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
17192 DW_DS_leading_separate, DW_DS_trailing_separate): New.
17193 (DW_END_default, DW_END_big, DW_END_little): New.
17194 (DW_END_lo_user, DW_END_hi_user): Define.
17195 (DW_LNE_lo_user, DW_LNE_hi_user): Define.
17196 (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
17197 (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
17200 2006-03-01 Diego Novillo <dnovillo@redhat.com>
17202 * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
17204 * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
17206 (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
17208 * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
17210 * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
17211 to 'symbol_mem_tag'.
17213 * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
17216 2006-03-01 Roger Sayle <roger@eyesopen.com>
17218 * builtins.c (fold_builtin_copysign): Delete unreachable code.
17220 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
17223 * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
17224 MACHO_DYNAMIC_NO_PIC_P.
17225 (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
17227 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
17230 * config/darwin-protos.h (darwin_asm_output_anchor):
17232 * config/darwin-sections.def (cstring_section):
17233 Add SECTION_MERGE to the flags.
17234 (literal4_section): Likewise.
17235 (literal8_section): Likewise.
17236 (objc_selector_refs_section): Likewise.
17237 (objc_cls_refs_section): Likewise.
17238 * config/darwin.c (darwin_asm_output_anchor): New
17240 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
17242 2006-03-01 Daniel Berlin <dberlin@dberlin.org>
17244 Fix PR tree-optimization/26443
17245 * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
17246 to todo and PROP_tmt_usage to properties_destroyed.
17247 * tree-ssa-ccp.c (pass_ccp): Ditto.
17248 (pass_store_ccp): Ditto.
17249 * tree-ssa-dom.c (pass_dominator): Ditto.
17251 2006-03-01 Diego Novillo <dnovillo@redhat.com>
17253 * tree-ssa-operands.c: Cleanup whitespace.
17254 (get_asm_expr_operands): Move before first invocation.
17255 (get_indirect_ref_operands): Likewise.
17256 (get_tmr_operands): Likewise.
17257 (get_call_expr_operands): Likewise.
17258 (append_def): Likewise.
17259 (append_use): Likewise.
17260 (append_v_may_def): Likewise.
17261 (append_v_must_def): Likewise.
17262 (add_call_clobber_ops): Likewise.
17263 (add_call_read_ops): Likewise.
17264 (add_stmt_operand): Likewise.
17265 (add_virtual_operand): Likewise.
17266 (build_ssa_operands): Likewise.
17268 2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
17270 PR middle-end/26022
17272 PR middle-end/24437
17273 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
17274 with a call expr to ...
17275 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
17277 2006-03-01 Diego Novillo <dnovillo@redhat.com>
17279 * tree-vrp.c (extract_range_from_assert): Remove special
17280 handling for types with super-types.
17282 2006-03-01 Ben Elliston <bje@au.ibm.com>
17284 * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
17285 and powerpc64-*-linux* configurations.
17286 * config/t-dfprules: New file.
17288 * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
17289 Compile dfp-bit.c from the source directory using -DWIDTH and
17290 $DFP_CFLAGS to control the compilation of that file, rather than
17291 generating width-specific versions in the build directory.
17292 * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
17293 (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
17295 2006-02-28 Zack Weinberg <zackw@panix.com>
17297 * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
17300 2006-02-28 Eric Christopher <echristo@apple.com>
17302 * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
17303 Set up IN_LIBGCC definition of TARGET_64BIT.
17304 * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
17306 2006-02-28 Roger Sayle <roger@eyesopen.com>
17308 PR middle-end/14752
17309 * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
17310 BIT_XOR_EXPR, BIT_AND_EXPR>: Delete. Let fold optimize these
17311 cases via the construction of "expr != 0".
17313 2006-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
17315 * alias.c (alias_invariant, alias_invariant_size): Remove.
17316 (record_base_value): Remove.
17317 (memrefs_conflict_p): Don't look at alias_invariant.
17318 (end_alias_analysis): Don't free it.
17319 * alias.h (record_base_value): Remove prototype.
17321 2006-02-28 Paolo Bonzini <bonzini@gnu.org>
17322 Adam Nemet <anemet@caviumnetworks.com>
17324 * rtl.h (truncated_to_mode): Declare it.
17325 (struct rtl_hooks): Add reg_truncated_to_mode hook.
17326 * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
17327 (RTL_HOOKS_INITIALIZER): Include it.
17328 * rtlhooks.c (reg_truncated_to_mode_general): New function.
17329 * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
17330 reg_truncated_to_mode.
17331 * rtlanal.c (truncated_to_mode): Define it.
17332 * simplify-rtx.c (simplify_unary_operation_1): Use it.
17334 2006-02-28 Jeff Law <law@redhat.com>
17336 * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
17337 conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
17338 the range allowed by TYPE_PRECISION.
17340 * tree.h (strct phi_arg_d): Remove unused NONZERO field.
17342 2006-02-28 Dorit Nuzman <dorit@il.ibm.com>
17344 PR tree-optimization/26419
17345 * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
17348 2006-02-27 Zack Weinberg <zackw@panix.com>
17350 * doc/md.texi: Fix typo in previous change.
17352 2006-02-27 Kenneth Zadeck <zadeck@naturalbridge.com>
17356 2006-02-27 Zack Weinberg <zackw@panix.com>
17358 * rtl.def (define_constraint, define_register_constraint)
17359 (define_memory_constraint, define_address_constraint): New MD forms.
17360 * gensupport.c (process_rtx): Put define_constraint etc on the
17362 * genpreds.c (process_define_predicate): Adjust comment. Validate
17363 the name, and call validate_exp to validate the expression.
17364 (mark_mode_tests, write_extract_subexp): Can assume correct input.
17365 (write_predicate_expr): Likewise. NAME argument no longer necessary;
17366 all callers changed.
17367 (validate_exp, needs_variable, struct constraint_data)
17368 (constraints_by_letter_table, first_constraint, last_constraint_ptr)
17369 (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
17370 (const_dbl_constraints, constraint_max_namelen)
17371 (have_register_constraints, have_memory_constraints)
17372 (have_address_constraints, have_address_constraints)
17373 (have_extra_constraints, have_const_int_constraints)
17374 (have_const_dbl_constraints, mangle, add_constraint)
17375 (process_define_constraint, process_define_register_constraint)
17376 (write_enum_constraint_num, write_lookup_constraint)
17377 (write_insn_constraint_len, write_regclass_for_constraint)
17378 (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
17379 (write_insn_extra_memory_constraint)
17380 (write_insn_extra_address_constraint)
17381 (write_satisfies_constraint_fns): New.
17382 (write_tm_preds_h): If we have new-style constraint definitions,
17383 prototype the functions generated from them, and define the
17384 old constraint interface (still used by generic code) in terms of
17386 (write_insn_preds_c): If we have new-style constraint definitions,
17387 generate all relevant functions from those definitions.
17388 (main): Handle define_constraint etc.
17389 * genoutput.c (struct constraint_data, indep_constraints)
17390 (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
17391 (mdep_constraint_len): New data structures and functions, defined
17392 #ifdef USE_MD_CONSTRAINTS.
17393 (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
17394 (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
17395 use new logic to validate operand constraints against constraint
17397 (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
17399 * defaults.h: If none of the old-style constraint macros are
17400 defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
17401 old-style macros; and poison REG_CLASS_FROM_LETTER,
17402 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
17404 * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
17405 * doc/md.texi: Document new constraint-definition mechanism and the
17406 C interface it provides. Remove references to old mechanism
17407 elsewhere in the document.
17408 (Machine Constraints): Use pathnames relative to gcc directory,
17409 i.e. config/ARCH/FILE. Change i386 section to refer to
17410 config/i386/predicates.md; update that section to match docstrings.
17411 * doc/tm.texi: Move all documentation of the old constraint-
17412 definition macros to their own section, clearly mark as obsolete.
17414 * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
17415 (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
17417 * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17418 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
17419 * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
17420 constraint strings.
17421 (splits and peepholes): Use satisfies_constraint_*.
17422 * config/i386/i386.c (memory_address_length)
17423 (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
17425 2006-02-27 Daniel Berlin <dberlin@dberlin.org>
17427 * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
17428 scalar operation to be put back into the loop.
17430 2006-02-27 Jakub Jelinek <jakub@redhat.com>
17433 * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
17434 (extract_cie_info): Handle S flag in augmentation string.
17435 (execute_cfa_program): If context->signal_frame, execute also
17436 fs->pc == context->ra instructions.
17437 (uw_frame_state_for): If context->signal_frame, don't subtract one
17438 from context->ra to find FDE.
17439 (uw_update_context_1): Set context->signal_frame to
17441 (_Unwind_GetIPInfo): New function.
17442 * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
17443 * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
17445 * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
17446 * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
17447 * unwind-compat.c (_Unwind_GetIPInfo): New function.
17448 * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
17449 * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
17450 * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
17451 * config/i386/linux-unwind.h (x86_fallback_frame_state,
17452 x86_64_fallback_frame_state): Set fs->signal_frame.
17453 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
17454 (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
17455 (frob_update_context): Likewise. Workaround missing S flag in
17456 Linux 2.6.12 - 2.6.16 kernel vDSOs.
17457 * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
17458 Remove the psw_addr + 1 hack.
17460 2006-02-27 Daniel Berlin <dberlin@dberlin.org>
17462 * tree-ssa-structalias.c (get_constraint_for): Move code to deal
17463 with aggregates here.
17464 (find_func_aliases): Remove code for &<aggregate> from here.
17466 2006-02-26 Roger Sayle <roger@eyesopen.com>
17468 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
17469 (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
17470 Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
17471 as (X & C) ne/eq 0.
17473 2006-02-26 Roger Sayle <roger@eyesopen.com>
17475 PR middle-end/19983
17476 * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
17478 2006-02-26 Zdenek Dvorak <dvorakz@suse.cz>
17480 * opts.c (decode_options): Do not handle flag_strength_reduce.
17481 (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
17482 and OPT_fstrength_reduce.
17483 * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
17484 flag_prefetch_loop_arrays for being nonzero.
17485 * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
17487 (fprefetch-loop-arrays-rtl): Removed.
17488 (flag_prefetch_loop_arrays): Do not specify the value.
17490 * doc/passes.texi: Update documentation of loop optimizer
17492 * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
17493 -frerun-loop-opt): Remove.
17495 2006-02-26 Richard Guenther <rguenther@suse.de>
17497 PR tree-optimization/26421
17498 * tree-ssa-alias.c (find_used_portions): Don't treat parameters
17499 in function calls that are ADDR_EXPRs as using the whole structure.
17501 2006-02-26 Steven Bosscher <stevenb.gcc@gmail.com>
17503 * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
17504 * tree-pass.h (pass_loop_optimize): Remove.
17505 * passes.c (pass_loop_optimize): Never run it.
17506 * toplev.c (backend_init): Don't call init_loop.
17507 * opts.c (flag_loop_optimize_set): Remove.
17508 (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
17509 (common_handle_option) <OPT_floop_optimize>: Remove. Don't disable
17510 the old RTL loop optimizer when profiling enabled.
17511 * predict.c (tree_estimate_probability): Always strip builtin_expect.
17512 * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
17513 pre-headers for the sake of the old RTL loop optimizer.
17514 * Makefile.in: Remove all references to loop.o.
17516 * doc/invoke.texi: Remove all references to -floop-optimize
17517 and -frerun-loop-opt.
17519 2006-02-26 Zack Weinberg <zackw@panix.com>
17521 * doc/md.texi (Machine Constraints): Refer to all files with paths
17522 relative to gcc directory (i.e. config/CPU/file). Add missing
17523 @table @code ... @end table to M32C subsection.
17525 2006-02-26 Roger Sayle <roger@eyesopen.com>
17527 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
17529 <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
17531 2006-02-26 Roger Sayle <roger@eyesopen.com>
17532 James A. Morrison <phython@gcc.gnu.org>
17534 PR middle-end/21137
17535 * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
17536 when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
17537 new constant C2<<C1, or as (X<0) or (X,false) depending upon the
17538 signedness of the shift operation.
17540 2006-02-26 Dorit Nuzman <dorit@il.ibm.com>
17542 PR tree-optimization/26359
17543 * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
17545 2006-02-25 Roger Sayle <roger@eyesopen.com>
17547 * simplify-rtx.c (simplify_relational_operation_1): Simplify
17548 (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y. Simplify (X^Y) == Y
17549 as X == 0, and some symmetry related transformations.
17550 Simplify (X^C1) == C2 as X == (C1^C2). Split long comment line.
17552 2006-02-25 Roger Sayle <roger@eyesopen.com>
17554 PR middle-end/23673
17555 * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
17556 and (X^Y) != 0 as X != Y. Fold (X^Y) == Y as X == 0, and some
17557 symmetry related transformations. Fold (X^C1) == C2 as
17560 2006-02-25 Juergen Weigert <jw@suse.de>
17561 Richard Guenther <rguenther@suse.de>
17563 * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
17565 2006-02-24 Adam Nemet <anemet@caviumnetworks.com>
17567 * combine.c (gen_lowpart_or_truncate): Call
17568 simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
17570 2006-02-24 Diego Novillo <dnovillo@redhat.com>
17572 * doc/invoke.texi: Move -fopenmp description to "Options for
17574 Remove reference to -lgomp.
17576 2006-02-24 David Edelsohn <edelsohn@gnu.org>
17578 * doc/install.texi: Require GNU tar version 1.14.
17580 2006-02-24 Geoffrey Keating <geoffk@apple.com>
17582 * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
17583 * doc/invoke.texi (C++ Dialect Options): Document
17584 -fno-use-cxa-get-exception-ptr.
17585 * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
17586 * configure: Regenerate.
17587 * c.opt (fuse-cxa-get-exception-ptr): New.
17588 * c-opts.c (c_common_handle_option): Handle
17589 OPT_fuse_cxa_get_exception_ptr.
17590 * c-common.c (flag_use_cxa_atexit): Update documentation.
17591 (flag_use_cxa_get_exception_ptr): New.
17592 * c-common.h (flag_use_cxa_get_exception_ptr): New.
17593 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
17595 (C_COMMON_OVERRIDE_OPTIONS): New.
17597 2006-02-24 Roger Sayle <roger@eyesopen.com>
17599 PR middle-end/24952
17600 * combine.c (try_combine): Explicitly check whether GET_CODE is
17601 a SET or a CLOBBER, instead on checking that it isn't a USE.
17603 2006-02-24 Roger Sayle <roger@eyesopen.com>
17605 * fold-const.c (fold_comparison): New subroutine of fold_binary
17606 containing transformations common to both the equality and
17607 ordering relational operators, factored out of fold_binary.
17608 (fold_binary): Separate out the equality operators (EQ_EXPR
17609 and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
17610 LE_EXPR and GE_EXPR), calling fold_comparison to perform the
17611 transformations common to both.
17612 (fold_div_compare): Fix latent bugs in the previously unreachable
17613 LT_EXPR and GE_EXPR cases.
17615 2006-02-24 David Edelsohn <edelsohn@gnu.org>
17617 * config/rs6000/rs6000.c (rs6000_init_builtins): Change
17618 decl libname for clog to __clog on AIX.
17620 * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
17622 2006-02-24 Alan Modra <amodra@bigpond.net.au>
17625 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
17626 output traceback table for thunks. Localise rs6000_stack_info call.
17628 2006-02-23 Roger Sayle <roger@eyesopen.com>
17629 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17631 * gthr-posix.h (__gthrw): Fix typo in comment.
17633 2006-02-23 Geoffrey Keating <geoffk@apple.com>
17635 * doc/cpp.texi (Character sets): Document that we do support
17636 input files to be in any character set.
17638 2006-02-23 Jeff Law <law@redhat.com>
17640 * tree.h (PHI_ARG_NONZERO): Remove.
17641 * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
17642 (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
17643 node to the new node.
17645 PR tree-optimization/26425
17646 * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
17647 min/max, then assume its varying.
17649 2006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
17651 PR rtl-optimization/26316
17652 * rtlanal.c (enum may_trap_p_flags): New.
17653 (may_trap_p_1): Take flags instead of unaligned_mems argument. Ignore
17654 MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
17655 (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
17656 (may_trap_after_code_motion_p): New function.
17657 * loop-invariant.c (find_identical_invariants): Fix dump formating.
17658 (find_invariant_insn): Use may_trap_after_code_motion_p.
17659 * rtl.h (may_trap_after_code_motion_p): Declare.
17661 2006-02-23 Zdenek Dvorak <dvorakz@suse.cz>
17663 * emit-rtl.c (immed_double_const): Cleanup.
17665 2006-02-23 Daniel Berlin <dberlin@dberlin.org>
17667 Fix PR tree-optimization/26376
17668 * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
17671 2006-02-23 Jakub Jelinek <jakub@redhat.com>
17673 PR middle-end/26412
17674 * gimplify.c (omp_add_variable): Guard variable size decl test with
17675 DECL_SIZE (decl) check.
17677 2006-02-23 Richard Guenther <rguenther@suse.de>
17679 PR middle-end/26439
17680 * tree-ssa-structalias.c (find_func_aliases): Handle complex types
17681 like aggregate types.
17683 2006-02-23 Jakub Jelinek <jakub@redhat.com>
17685 * configure.ac: Add --with{,out}-long-double-128 configure option.
17686 (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
17687 * configure: Rebuilt.
17688 * config.in: Rebuilt.
17689 * doc/install.texi (Options specification): Document
17690 --with-long-double-128.
17692 * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
17693 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
17694 * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
17695 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
17697 2006-02-23 Aldy Hernandez <aldyh@redhat.com>
17699 * config/s390/s390.c (override_options): Handle
17700 TARGET_DEFAULT_LONG_DOUBLE_128.
17702 * config/alpha/alpha.c (override_options): Handle
17703 TARGET_DEFAULT_LONG_DOUBLE_128.
17705 * config/sparc/sparc.c (sparc_override_options): Handle
17706 TARGET_DEFAULT_LONG_DOUBLE_128.
17708 2006-02-22 Daniel Jacobowitz <dan@codesourcery.com>
17710 * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
17711 (real-install-headers-tar, real-install-headers-cpio)
17712 (real-install-headers-cp): New targets.
17714 2006-02-22 Richard Sandiford <richard@codesourcery.com>
17716 * tree.h (variable_section): Delete.
17717 * varasm.c (variable_section): Delete.
17719 2006-02-22 Paolo Bonzini <bonzini@gnu.org>
17721 * install.texi: Add notes on install.texi2html.
17722 (Building in parallel): Do not use footnotes.
17724 2006-02-21 Aldy Hernandez <aldyh@redhat.com>
17727 * doc/install.texi (Configuration): Document --disable-libgomp.
17729 2006-02-21 Geoffrey Keating <geoffk@apple.com>
17731 * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
17733 2006-02-21 Alexandre Oliva <aoliva@redhat.com>
17735 * config/i386/sse.md (vec_extractv2df_1_sse): New.
17736 (vec_extractv2df_0_sse): New.
17738 2006-02-21 Alexandre Oliva <aoliva@redhat.com>
17740 * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
17741 * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
17742 * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
17743 * dwarf2out.c (build_cfa_loc): New offset parameter. Add it
17744 to the result of the expression.
17745 (def_cfa_1): Adjust.
17746 (frame_pointer_cfa_offset): Rename to...
17747 (frame_pointer_fb_offset): ... this. Adjust all uses.
17748 (convert_cfa_to_loc_list): Rename to...
17749 (convert_cfa_to_fb_loc_list): ... this. New offset parameter.
17750 Pass it on to build_cfa_loc.
17751 (compute_frame_pointer_to_cfa_displacement): Rename to...
17752 (compute_frame_pointer_to_fb_displacement): ... this. New
17753 offset parameter. Use it in computation.
17754 (gen_subprogram_die): Compute cfa_fb_offset with the new
17755 macro, and use it to compute the fb loc list and the
17758 2006-02-21 Bernd Schmidt <bernd.schmidt@analog.com>
17760 * config/bfin/predicates.md (cc_operand): Delete predicate. All uses
17761 replaced with register_operand.
17762 * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
17763 non-DREG is expensive.
17764 * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
17765 * config/bfin/bfin.md (movbi): Fix constraints and template for moves
17768 2006-02-21 Joseph S. Myers <joseph@codesourcery.com>
17770 * doc/install.texi2html: Use set -e.
17772 2006-02-21 Richard Sandiford <richard@codesourcery.com>
17774 * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
17775 (ASM_OUTPUT_SHARED_LOCAL): Delete.
17776 * doc/invoke.texi (-fshared-data): Delete.
17777 * common.opt (fshared-data): Delete.
17778 * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
17779 (assemble_static_space): Remove #if 0 code.
17780 * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
17781 (ASM_OUTPUT_SHARED_LOCAL): Poison.
17782 * config/cris/cris.h: Remove FIXME.
17784 2006-02-21 Paolo Bonzini <bonzini@gnu.org>
17786 * doc/sourcebuild.texi (Front End Directory): No more double-colon
17789 2006-02-21 Jakub Jelinek <jakub@redhat.com>
17791 PR middle-end/26379
17792 * combine.c (simplify_shift_const_1): Disable nested shifts
17793 optimization for vector shifts.
17795 2006-02-20 Roger Sayle <roger@eyesopen.com>
17797 PR tree-optimization/26361
17798 * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
17799 of unsigned integer types.
17801 2006-02-20 Sebastian Pop <pop@cri.ensmp.fr>
17803 * tree-chrec.c (eq_evolutions_p): New.
17804 * tree-chrec.h (eq_evolutions_p): Declared.
17805 * tree-data-ref.c: Fix formatting.
17806 (datadep_stats, dependence_stats): New.
17808 (print_direction_vector): New.
17809 (dump_data_dependence_relation): Use print_direction_vector.
17810 (object_analysis, create_data_ref): Handle COMPONENT_REF.
17811 (compute_subscript_distance): Static.
17812 (initialize_data_dependence_relation): Static. Get the number
17813 of loops surrounding the references from the callers, and initialize
17814 DDR_SIZE_VECT to nb_loops. Use both base_addr_differ_p and
17815 base_object_differ_p analyzers.
17816 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
17817 compute_overlap_steps_for_affine_1_2,
17818 analyze_subscript_affine_affine): Count the classified dependences.
17819 Print a message when a test failed.
17820 (can_use_analyze_subscript_affine_affine): New.
17821 (analyze_siv_subscript): Compute the data dependences on symbolic
17822 scevs that verify can_use_analyze_subscript_affine_affine.
17823 (chrec_steps_divide_constant_p): Returns true, false, or unknown.
17824 (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
17825 Handle symbolic scevs.
17826 (analyze_overlapping_iterations): Let symbolic affine scevs to be
17828 (subscript_dependence_tester): Moved...
17829 (build_classic_dist_vector, build_classic_dir_vector): Don't use
17830 lambda_vector_clear on newly allocated vectors. Get nb_loops from
17831 DDR_SIZE_VECT instead of getting it in parameter.
17832 (subscript_dependence_tester): ... here. Take as a parameter
17833 loop_nest_depth. Call build_classic_dist_vector and
17834 build_classic_dir_vector.
17835 (compute_affine_dependence): Update subscript_dependence_tester
17836 parameters. Update datadep_stats counters. Call
17837 compute_subscript_distance.
17838 (compute_self_dependence): Save the dist and dir vectors. Call
17839 compute_subscript_distance.
17840 (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
17841 (compute_all_dependences): Reorder parameters as they were before
17842 conversion to VEC. Pass nb_loops and loop_nest_depth. Don't call
17843 compute_subscript_distance. Update the use of
17844 compute_affine_dependence and initialize_data_dependence_relation.
17845 (find_data_references_in_loop): Handle COMPONENT_REF.
17846 (compute_data_dependences_for_loop): Initialize dependence_stats.
17847 Don't call build_classic_dist_vector and build_classic_dir_vector.
17848 Update the parameters of initialize_data_dependence_relation and
17849 compute_all_dependences. Print the statistics from datadep_stats.
17850 (analyze_all_data_dependences): Static. Not used until the pass for
17851 checking the data dependences is contributed.
17852 * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
17853 DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
17854 (initialize_data_dependence_relation, compute_affine_dependence,
17855 analyze_all_data_dependences, compute_subscript_distance): Removed.
17856 (print_direction_vector): New.
17857 * lambda.h (gcd): ... here.
17858 (lambda_vector_gcd): Moved here from gcd_vector.
17859 * lambda-code.c (gcd, gcd_vector): Removed.
17860 (lambda_compute_target_space): Use lambda_vector_gcd. Fix formatting.
17861 * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
17863 2006-02-20 Diego Novillo <dnovillo@redhat.com>
17865 * ipa-type-escape.c: Tidy some comments and white space.
17866 * tree-ssa-operands.c: Likewise.
17868 2006-02-20 Andrew Pinski <pinskia@physics.uc.edu>
17871 * tree-pretty-print.c (debug_tree_chain): Walk the chains.
17872 (dump_decl_name): Do not walk the decl tree chains.
17873 * tree-pass.h (TDF_CHAIN): Remove.
17875 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
17877 * Makefile.in (C): Remove
17879 (.PHONY): Remove C and PROTO
17881 2006-02-20 Roger Sayle <roger@eyesopen.com>
17883 PR middle-end/26236
17884 * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
17885 deprecated CHAR_TYPE tree code.
17887 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
17889 * configure.ac (target_list): Add install-info, dvi, html.
17890 * configure: Regenerate.
17892 * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
17893 java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
17894 treelang/Make-lang.in: Do not use double-colon rules.
17896 2006-02-20 Daniel Berlin <dberlin@dberlin.org>
17898 * tree.h (struct tree_memory_tag): Add is_used_alone member.
17899 (TMT_USED_ALONE): New macro.
17900 * tree-pass.h (PROP_tmt_usage): New property.
17901 (TODO_update_tmt_usage): New todo.
17902 * tree-ssa-alias.c (updating_used_alone): New variable.
17903 (recalculate_used_alone): New function.
17904 (compute_may_aliases): Set updating_used_alone, call
17905 recalculate_used_alone.
17906 * tree-sra.c (pass_sra): Note that this pass destroys
17907 PROP_tmt_usage, and add TODO_update_tmt_usage.
17908 * tree-ssa-forwprop.c (pass_forwprop): Ditto.
17909 * tree-flow.h (updating_used_alone): Prototype.
17910 (recalculate_used_alone): Ditto.
17911 * passes.c (execute_todo): Add code to set updating_used_alone,
17912 and call recalculate.
17913 * tree-ssa-operands.c (add_virtual_operand): Only append bare def
17914 for clobber if used alone, and add assert to verify used_alone
17917 2006-02-20 Angel Nunez Mencias <anunez@de.ibm.com>
17919 * config/s390/s390.c (legitimize_pic_address): Assertions checking
17920 for non tls symbols added.
17921 (legitimize_address): Do nothing for PLUS expressions if one of the
17922 addends is a tls symbol reference.
17924 2006-02-20 Paolo Bonzini <bonzini@gnu.org>
17928 * Makefile.in (LDFLAGS): Define from autoconf substitution.
17930 * Makefile.in (BOOTSTRAPPING): New.
17931 (quickstrap): New definition if BOOTSTRAPPING=yes.
17933 * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
17934 * configure.ac: Substitute all_selected_languages with the languages
17935 that were configured. For all the other variables except
17936 lang_specs_files, include all the languages in the tree.
17937 * configure: Regenerate.
17939 * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
17940 if there is one. Run the commands to run fixincludes in the same
17943 * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
17944 * doc/install.texi: Document exact conventions for searching target tools.
17945 Document --with-build-time-tools. Document toplevel bootstrap. Document
17946 something more about building an Ada cross-compiler. Don't list GNU Make
17947 requirements which affect all platforms.
17949 2006-02-19 Roger Sayle <roger@eyesopen.com>
17951 PR middle-end/19543
17952 * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
17953 only equivalent if the have both the same mode and precision.
17955 2006-02-20 Ben Elliston <bje@au.ibm.com>
17957 * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
17959 2006-02-19 Roger Sayle <roger@eyesopen.com>
17960 Steven Bosscher <stevenb.gcc@gmail.com>
17962 * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
17963 constant pool references to identify stack mode constants.
17964 * rtlanal.c (constant_pool_constant_p): New predicate to check
17965 whether operand is a floating point constant in the pool.
17966 * rtl.h (constant_pool_constant_p): Prototype here.
17967 * loop.c (scan_loop): Avoid hoisting constants from the constant
17968 pool on STACK_REGS targets.
17969 (load_mems): Likewise.
17970 * loop-invariant.c (get_inv_cost): Make hoisting constant pool
17971 loads into x87 registers expensive in terms of register pressure.
17973 2006-02-19 Roger Sayle <roger@eyesopen.com>
17975 * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
17976 __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
17978 2006-02-19 David Edelsohn <edelsohn@gnu.org>
17980 * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
17981 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
17983 2006-02-19 Daniel Berlin <dberlin@dberlin.org>
17985 * doc/invoke.texi: Document -fipa-pta.
17986 * common.opt: Add ipa-pta option.
17987 * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
17988 (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
17989 (do_ds_constraint): Ditto.
17990 (get_constraint_for): Only add to referenced_vars if
17991 referenced_vars exists.
17992 (insert_into_field_list): Rewrite to do this unsorted.
17993 (insert_into_field_list_sorted): Rename old insert_into_field_list
17995 (create_function_info_for): Use insert_into_field_list_sorted.
17996 (create_variable_info_for): Rewrite so it uses unsorted version,
17997 since the field list is sorted.
17998 (intra_create_variable_infos): Only add to referenced_vars if
17999 referenced_vars exists.
18000 (ipa_pta_execute): Init heapvars, and delete when done.
18001 * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
18003 2006-02-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18005 * doc/install.texi: Add missing `@samp'.
18007 2006-02-18 Andrew Pinski <pinskia@physics.uc.edu>
18009 * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
18012 2006-02-18 Mark Wielaard <mark@klomp.org>
18014 * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
18015 who added new 4.1 features, bug fixes and integration support.
18017 2006-02-18 David Edelsohn <edelsohn@gnu.org>
18020 * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
18021 MEM for ABI_V4 pic.
18023 2006-02-18 Richard Sandiford <richard@codesourcery.com>
18025 * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
18026 * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
18027 (copy_insn_1): Likewise. Don't copy each field individually.
18029 * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
18031 * reload1.c (eliminate_regs): Use shallow_copy_rtx.
18032 * rtl.c (rtx_size): Rename variable to...
18033 (rtx_code_size): ...this.
18034 (rtx_size): New function.
18035 (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
18036 (copy_rtx): Use shallow_copy_rtx. Don't copy each field individually.
18038 (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
18039 * rtl.h (rtx_code_size): New variable.
18040 (rtx_size): Change from a variable to a function.
18041 (RTX_SIZE): Rename to...
18042 (RTX_CODE_SIZE): ...this.
18045 PR tree-optimization/17106
18046 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
18047 (Anchored Addresses): New section.
18048 * doc/invoke.texi (-fsection-anchors): Document.
18049 * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
18050 (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
18051 (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
18052 * hooks.c (hook_bool_mode_rtx_false): New function.
18053 * hooks.h (hook_bool_mode_rtx_false): Declare.
18054 * gengtype.c (create_optional_field): New function.
18055 (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
18056 SYMBOL_REF_IN_BLOCK_P is true.
18057 * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
18058 (min_anchor_offset, max_anchor_offset): Likewise.
18059 (use_anchors_for_symbol_p): New hook.
18060 * toplev.c (compile_file): Call output_object_blocks.
18061 (target_supports_section_anchors_p): New function.
18062 (process_options): Check that -fsection-anchors is only used on
18063 targets that support it and when -funit-at-a-time is in effect.
18064 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
18065 if the decl doesn't have one.
18066 * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
18067 * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
18068 of force_const_mem through use_anchored_address.
18069 (expand_expr_constant): New function.
18070 (expand_expr_addr_expr_1): Call it. Use the same modifier when
18071 calling expand_expr for INDIRECT_REF.
18072 (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
18073 for all modifiers except EXPAND_INITIALIZER. Use expand_expr_constant.
18074 * expr.h (use_anchored_address): Declare.
18075 * loop-unroll.c: Don't declare rtx vectors here.
18076 * explow.c: Include output.h.
18077 (validize_mem): Call use_anchored_address.
18078 (use_anchored_address): New function.
18079 * common.opt (-fsection-anchors): New switch.
18080 * varasm.c (object_block_htab, anchor_labelno): New variables.
18081 (hash_section, object_block_entry_eq, object_block_entry_hash)
18082 (use_object_blocks_p, get_block_for_section, create_block_symbol)
18083 (use_blocks_for_decl_p, change_symbol_section): New functions.
18084 (get_variable_section): New function, split out from assemble_variable.
18085 (make_decl_rtl): Create a block symbol if use_object_blocks_p and
18086 use_blocks_for_decl_p say so. Use change_symbol_section if the
18087 symbol has already been created.
18088 (assemble_variable_contents): New function, split out from...
18089 (assemble_variable): ...here. Don't output any code for
18090 block symbols; just pass them to place_block_symbol.
18091 Use get_variable_section and assemble_variable_contents.
18092 (get_constant_alignment, get_constant_section, get_constant_size): New
18093 functions, split from output_constant_def_contents.
18094 (build_constant_desc): Create a block symbol if use_object_blocks_p
18095 says so. Or into SYMBOL_REF_FLAGS.
18096 (assemble_constant_contents): New function, split from...
18097 (output_constant_def_contents): ...here. Don't output any code
18098 for block symbols; just pass them to place_section_symbol.
18099 Use get_constant_section and get_constant_alignment.
18100 (force_const_mem): Create a block symbol if use_object_blocks_p and
18101 use_blocks_for_constant_p say so. Or into SYMBOL_REF_FLAGS.
18102 (output_constant_pool_1): Add an explicit alignment argument.
18103 Don't switch sections here.
18104 (output_constant_pool): Adjust call to output_constant_pool_1.
18105 Switch sections here instead. Don't output anything for block symbols;
18106 just pass them to place_block_symbol.
18107 (init_varasm_once): Initialize object_block_htab.
18108 (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
18109 (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
18110 (place_block_symbol, get_section_anchor, output_object_block)
18111 (output_object_block_htab, output_object_blocks): New functions.
18112 * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
18113 (TARGET_ASM_OUT): Include it.
18114 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
18115 (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
18116 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
18117 (TARGET_INITIALIZER): Include them.
18118 * rtl.c (rtl_check_failed_block_symbol): New function.
18119 * rtl.h: Include vec.h. Declare heap and gc rtx vectors.
18120 (block_symbol, object_block): New structures.
18121 (rtx_def): Add a block_symbol field to the union.
18122 (BLOCK_SYMBOL_CHECK): New macro.
18123 (rtl_check_failed_block_symbol): Declare.
18124 (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
18125 (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
18126 (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
18127 (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
18128 * output.h (output_section_symbols): Declare.
18129 (object_block): Name structure.
18130 (place_section_symbol, get_section_anchor, default_asm_output_anchor)
18131 (default_use_anchors_for_symbol_p): Declare.
18132 * Makefile.in (RTL_BASE_H): Add vec.h.
18133 (explow.o): Depend on output.h.
18134 * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
18135 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
18136 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
18137 (rs6000_use_blocks_for_constant_p): New function.
18139 2006-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18141 * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
18143 2006-02-18 Andrew Pinski <pinskia@physics.uc.edu>
18146 * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
18149 2006-02-18 Diego Novillo <dnovillo@redhat.com>
18151 * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
18155 2006-02-18 Jakub Jelinek <jakub@redhat.com>
18157 PR middle-end/26334
18158 * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
18159 instead of DECL_REGISTER.
18161 2006-02-18 Olivier Hainque <hainque@adacore.com>
18164 * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
18166 2006-02-18 Joseph S. Myers <joseph@codesourcery.com>
18169 * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
18170 * opth-gen.awk: Handle Var and InverseMask together.
18171 * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
18172 * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
18173 (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
18174 (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
18176 (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18177 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
18178 * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
18179 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18180 LINUX_DYNAMIC_LINKER): Define.
18181 (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
18182 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
18184 * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18185 (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
18186 * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18187 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18188 (TARGET_C99_FUNCTIONS): Don't define.
18189 * config/i386/linux.h (DYNAMIC_LINKER): Rename to
18190 GLIBC_DYNAMIC_LINKER.
18191 (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
18192 * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
18193 GLIBC_DYNAMIC_LINKER64): Define.
18194 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
18195 LINUX_DYNAMIC_LINKER64.
18196 * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18197 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18198 * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
18199 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18200 * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18201 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18202 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
18203 GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
18204 UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
18205 (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
18206 and LINUX_DYNAMIC_LINKER32.
18207 * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18208 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18209 * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
18210 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18211 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
18213 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
18214 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
18215 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18216 CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18217 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
18218 (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
18219 (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
18220 * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
18221 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18222 LINUX_DYNAMIC_LINKER): Define.
18223 (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
18224 * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
18225 GLIBC_DYNAMIC_LINKER64): Define.
18226 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
18227 LINUX_DYNAMIC_LINKER64.
18228 * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18229 (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18230 * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
18231 UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
18232 LINUX_DYNAMIC_LINKER): Define.
18233 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18234 (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
18235 * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
18236 GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
18237 UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
18238 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
18239 (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
18240 (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
18241 (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
18242 * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18243 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18244 * doc/invoke.texi (-muclibc): Remove caveat about supported
18247 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
18249 * doc/cpp.texi (__TIMESTAMP__): Document.
18251 2006-02-17 Roger Sayle <roger@eyesopen.com>
18253 PR middle-end/25600
18254 * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
18255 C is one less than the width of X (and related transformations).
18256 * simplify-rtx.c (simplify_unary_operation_1): Transform
18257 (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
18258 depending on STORE_FLAG_VALUE, were C is one less then the
18261 2006-02-17 Daniel Berlin <dberlin@dberlin.org>
18263 Fix PR tree-optimization/26341
18264 * tree-ssa-operands.c (add_virtual_operand): Remove assert
18265 about NAME_MEMORY_TAG's.
18267 2006-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18270 * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
18271 with hardware float support, and software float support. Add fcpy
18272 alternative to hardware patterns. Add alternatives to copy between
18273 general and floating-point registers to the 32-bit pattern.
18274 * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
18275 secondary reload to load a QI or HI mode constant into a floating
18277 * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
18278 * pa64-regs.h (VALID_FP_MODE_P): Likewise.
18280 2006-02-17 Andrew Pinski <pinskia@physics.uc.edu>
18283 * config/rs6000/darwin.md (load_macho_picbase_si): Add
18285 (load_macho_picbase_di): Likewise.
18287 2006-02-16 Jeff Law <law@redhat.com>
18289 * tree-vrp.c (set_value_range_to_nonnegative): New function.
18290 (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
18291 (ssa_name_nonzero_p): Likewise.
18292 (get_value_range): Return NULL if VRP is not running.
18293 (extract_range_from_expr): Fallback to tree_expr_XXX_p if
18294 VRP routines do not discover a range.
18295 (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
18296 * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
18297 * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
18298 (tree_expr_nonnegative_p): Similarly.
18299 * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
18300 (restore_nonzero_vars_to_original_value): Remove.
18301 (unsafe_associative_fp_binop): Remove.
18302 (tree_ssa_dominator_optimize): Remove initialization and
18303 finalization of nonzero_vars and nonzero_vars_stack.
18304 (dom_opt_initialize_block): No longer push marker on
18305 nonzero_vars_stack.
18306 (dom_opt_finalize_block): No longer call
18307 restore_nonzero_vars_to_original_value.
18308 (record_equivalences_from_phis): No longer look for
18309 nonzero PHI arguments.
18310 (cprop_into_successor_phis): No longer propagate nonzero
18311 property into PHI arguments. Lose unused argument. Caller
18313 (record_equivalences_from_stmt): No longer record nonzero
18314 values for SSA_NAMEs.
18315 (lookup_avail_expr): No longer use nonzero_vars.
18317 * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
18318 for sizetype when sizetype is unsigned.
18320 2006-02-16 Denis Nagorny <denis_nagorny@linux.intel.com>
18322 PR rtl-optimization/25603
18323 * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
18324 (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
18325 * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
18326 with new meaning of SETS.
18328 2006-02-16 Joseph S. Myers <joseph@codesourcery.com>
18333 * config/linux.opt: New file.
18334 * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18335 LINUX_DYNAMIC_LINKER): Define.
18336 (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
18337 * config.gcc (*-*-linux*): Define extra_options.
18338 (*-*-*uclibc*): Define UCLIBC_DEFAULT.
18339 (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
18340 * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
18341 GLIBC_DYNAMIC_LINKER.
18342 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
18343 (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18344 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
18345 (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
18346 * doc/invoke.texi (GNU/Linux Options): New section.
18348 2006-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
18350 * config/sparc/sparc.md (setjmp): Rewrite.
18351 (setjmp_32): Delete.
18352 (setjmp_64): Likewise.
18354 2006-02-16 Daniel Berlin <dberlin@dberlin.org>
18356 * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
18359 2006-02-16 Zdenek Dvorak <dvorakz@suse.cz>
18361 * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
18364 2006-02-16 Zdenek Dvorak <dvorakz@suse.cz>
18366 PR rtl-optimization/26296
18367 * Makefile.in (loop-invariant.c): Add except.h dependency.
18368 * loop-invariant.c: Include except.h.
18369 (find_invariant_insn): Ignore insns satisfying can_throw_internal.
18371 2005-02-16 Paul Brook <paul@codesourcery.com>
18373 * reload1.c (emit_reload_insns): Invalidate dead input registers used
18376 2006-02-16 Bernd Schmidt <bernd.schmidt@analog.com>
18378 PR rtl-optimization/25636
18379 * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
18380 when deciding whether an insn is an initializing insn.
18382 2006-02-15 Daniel Berlin <dberlin@dberlin.org>
18384 * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
18385 (tree_code_size): Ditto.
18386 * tree.h (struct tree_memory_tag): Remove parent_var.
18387 (struct tree_struct_field_tag): New.
18390 (union tree_node): Add sft member.
18391 * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
18393 (create_sft): Add size and offset argument, set SFT_OFFSET and
18395 (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
18396 * treestruct.def: Add TS_STRUCT_FIELD_TAG.
18397 * tree-flow-inline.h (get_subvar_at): Update for
18398 SFT_OFFSET/SFT_SIZE.
18399 (var_can_have_subvars): Ditto.
18400 (overlap_subvar): Ditto.
18401 * print-tree.c (print_node): Print out interesting things for
18403 * tree-flow.h (struct subvar): Remove offset and size members.
18404 * tree-ssa-operands.c (get_expr_operands): Update for
18405 get_indirect_ref_operands changes.
18406 (get_indirect_ref_operands): Call add_virtual_operand instead of
18407 add_stmt_operand. Only recurse on base var if requested.
18408 (access_can_touch_variable): New function.
18409 (add_stmt_operand): Split virtual operand handling into ...
18410 (add_virtual_operand): Here. Add offset, size, and for_clobber
18411 arguments. Prune alias sets.
18412 (add_call_clobber_ops): Call add_virtual_operand.
18414 2006-02-15 Jakub Jelinek <jakub@redhat.com>
18416 PR middle-end/26300
18417 * combine.c (make_extraction): Bail out if ORIG_POS is negative.
18419 * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
18420 than TREE_CODE as index into omp_clause_num_ops array.
18422 2006-02-15 Uttam Pawar <uttamp@us.ibm.com>
18424 PR rtl-optimization/26184
18425 * modulo-sched.c (generate_reg_moves): Free bitmap vector
18427 * modulo-sched.c (sms_schedule): Free g_arr pointer.
18428 * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
18429 must_precede, must_follow and tobe_scheduled.
18432 * opts.c (common_handle_option): Free new_option pointer.
18433 * df-core.c (df_analyze): Free postorder pointer.
18435 2006-02-15 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
18437 * Makefile.in: Fix the examples about the use of stamps
18439 2006-02-15 Michael Matz <matz@suse.de>
18441 PR middle-end/22275
18443 * stor-layout.c (layout_decl): Zero-width bitfields aren't
18444 influenced by maximum_field_alignment or DECL_PACKED.
18445 (update_alignment_for_field): Ditto.
18446 (place_field): Ditto.
18447 * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
18450 2006-02-15 Paolo Bonzini <bonzini@gnu.org>
18452 * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
18453 (debug_flow_info): Pass it.
18454 * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
18455 * bb-reorder.c (reorder_basic_blocks): Likewise.
18456 * cfgcleanup.c (rest_of_handle_jump2): Likewise.
18457 * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
18458 * flow.c (life_analysis, recompute_reg_usage): Likewise.
18459 * gcse.c (gcse_main, bypass_jumps): Likewise.
18460 * ifcvt.c (rest_of_handle_if_conversion): Likewise.
18461 * local-alloc.c (rest_of_handle_local_alloc): Likewise.
18462 * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
18463 * profile.c (compute_branch_probabilities, branch_prob): Likewise.
18464 * rtl.h (dump_flow_info): Adjust prototype.
18465 * tracer.c (rest_of_handle_tracer, tracer): Likewise.
18466 * var-tracking.c (variable_tracking_main): Likewise.
18467 * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
18468 * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
18471 2006-02-15 Marcin Dalecki <martin@dalecki.de>
18473 * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
18476 2006-02-14 Zdenek Dvorak <dvorakz@suse.cz>
18478 PR tree-optimization/26209
18479 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
18480 * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
18482 * tree-cfg.c (replace_uses_by): Do not alter cfg.
18484 2006-02-14 Roger Sayle <roger@eyesopen.com>
18486 PR middle-end/23670
18487 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
18488 (X,Y) and the corresponding symmetry related transformations.
18489 (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
18490 (X,Y) and its symmetry related transformations.
18492 2006-02-14 Roger Sayle <roger@eyesopen.com>
18494 * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
18497 2006-02-14 Adam Nemet <anemet@caviumnetworks.com>
18499 * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
18501 2006-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18504 * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
18505 support COMDAT group.
18506 * configure: Regenerate.
18508 2006-02-14 Roger Sayle <roger@eyesopen.com>
18510 PR middle-end/26279
18511 PR middle-end/26280
18512 PR middle-end/26283
18513 * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
18515 2006-02-14 Daniel Berlin <dberlin@dberlin.org>
18517 Fix PR tree-optimization/26260
18519 * doc/invoke.texi (max-fields-for-field-sensitive): Document
18521 * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
18522 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
18523 * tree-ssa-structalias.c (create_variable_info_for): Use
18524 MAX_FIELDS_FOR_FIELD_SENSITIVE.
18526 2006-02-14 Zdenek Dvorak <dvorakz@suse.cz>
18528 * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
18530 * tree-ssa-loop-niter.c (number_of_iterations_ne,
18531 number_of_iterations_lt, number_of_iterations_cond): Remember the shape
18532 of the ending condition.
18533 * tree-ssa-loop-manip.c: Include params.h.
18534 (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
18535 tree_unroll_loop): New functions.
18536 * tree-pass.h (pass_loop_prefetch): Declare.
18537 * loop.c (rest_of_handle_loop_optimize): Test for
18538 -fprefetch-loop-arrays-rtl.
18539 * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
18540 * timevar.def (TV_TREE_PREFETCH): New timevar.
18541 * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
18542 pass_loop_prefetch): New.
18543 * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
18544 (cleanup_tree_cfg_loop): Call scev_reset.
18545 * common.opt (fprefetch-loop-arrays-rtl): Add.
18546 * tree-ssa-loop-prefetch.c: New file.
18547 * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
18548 (new_temp_expr_table): Initialize expr_vars.
18549 (free_temp_expr_table): Cleanup expr_vars.
18550 (check_replaceable, find_replaceable_in_bb): Prevent accumulating
18551 expressions from being merged into one.
18552 * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
18553 (struct tree_niter_desc): Add control, bound and cmp fields.
18554 (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
18556 * Makefile.in (tree-ssa-loop-prefetch.o): Add.
18557 (tree-cfgcleanup.o): Add SCEV_H dependency.
18558 (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
18559 * passes.c (init_optimization_passes): Add pass_loop_prefetch.
18561 2006-02-14 Richard Guenther <rguenther@suse.de>
18563 PR tree-optimization/26258
18564 * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
18565 in PHI argument processing.
18567 2006-02-13 Adam Nemet <anemet@caviumnetworks.com>
18569 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
18570 new expression in the requested machine mode.
18572 2006-02-13 Roger Sayle <roger@eyesopen.com>
18574 * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
18575 directly, instead let do_compare_rtx_and_jump handle this for us.
18576 * expr.c (expand_expr_real_1): Likewise.
18577 * dojump.c (do_jump_by_parts_greater_rtx): Make static. Move
18578 before do_jump_by_parts_greater.
18579 (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
18580 * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
18582 2006-02-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18584 * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
18586 2006-02-13 Zdenek Dvorak <dvorakz@suse.cz>
18588 PR rtl-optimization/26235
18589 * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
18590 (invariant_expr_equal_p): Handle 'i' and 'n' formats. Fail on unknown
18593 2006-02-13 Jeff Law <law@redhat.com>
18595 * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
18598 2006-02-13 Jakub Jelinek <jakub@redhat.com>
18600 PR middle-end/26092
18601 * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
18602 twice if decl is a builtin. When trying again, call get_callee_fndecl
18603 first to verify it is still a builtin.
18605 2006-02-13 Geoffrey Keating <geoffk@apple.com>
18607 * dwarf2out.c (base_type_die): Don't add AT_name here.
18608 (subrange_type_die): Don't add AT_name here.
18609 (modified_type_die): Rearrange code flow. Do add AT_name here.
18611 2006-02-13 Zdenek Dvorak <dvorakz@suse.cz>
18613 PR rtl-optimization/26247
18614 PR rtl-optimization/26248
18615 * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
18617 2006-02-13 Richard Sandiford <richard@codesourcery.com>
18619 * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
18620 * config/fixtfdi.c: Likewise.
18621 * config/fixunstfdi.c: Likewise.
18622 * config/floatditf.c: Likewise.
18624 2006-02-13 Roger Sayle <roger@eyesopen.com>
18626 PR middle-end/24427
18627 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
18628 into (X,C2) if C1 is a subset of the bits of C2. Transform
18629 (X&C1)|C2 into X|C2 if C1|C2 == ~0. Canonicalize (X&C1)|C2 as
18631 <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
18633 2006-02-13 Josh Conner <jconner@apple.com>
18636 * varasm.c (function_section): Check for section name before
18637 calling select_section on targets that define
18638 USE_SELECT_SECTION_FOR_FUNCTIONS. On other targets, use
18639 unlikely_text_section instead of hot_function_section if
18640 first_function_block_is_cold.
18642 2006-02-13 J"orn Rennecke <joern.rennecke@st.com>
18644 PR middle-end/25335
18645 * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
18647 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
18649 PR rtl-optimization/26222
18650 * function.c (assign_stack_temp_for_type): Do not reuse stack slots
18651 after tree->rtl expansion.
18652 * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
18653 before passing it to emit_move_insn.
18655 2006-02-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
18657 * doc/invoke.texi (-Write-strings): Document that it is enabled by
18659 * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
18660 Clarify documentation.
18661 * c-common.h (warn_write_strings): Remove.
18662 * c-common.c (warn_write_strings): Likewise.
18663 * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
18666 2006-02-12 Roger Sayle <roger@eyesopen.com>
18668 PR middle-end/25724
18669 * dojump.c (do_jump): Call do_compare_rtx_and_jump.
18670 (do_jump_parts_zero_rtx): New function renamed from
18671 do_jump_parts_equality_rtx. Made static. Add a mode argument.
18672 (do_jump_parts_equality_rtx): New function split out from
18673 do_jump_parts_equality. Old implementation renamed as above.
18674 Call do_jump_parts_zero_rtx if either operand is zero.
18675 (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
18676 do all of the heavy lifting.
18677 (do_compare_rtx_and_jump): Handle multi-word comparisons by
18678 calling either do_jump_by_parts_greater_rtx or
18679 do_jump_by_parts_equality_rtx.
18680 * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
18681 * expmed.c (do_cmp_and_jump): Now multi-word optimization has
18682 moved to do_compare_rtx_and_jump, call it directly.
18683 * stmt.c (do_jump_if_equal): Remove static prototype. Add a
18684 mode argument. Call do_compare_rtx_and_jump.
18685 (emit_case_nodes): Update calls to do_jump_if_equal.
18687 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
18689 PR rtl-optimization/26225
18690 * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
18692 2006-02-12 Zdenek Dvorak <dvorakz@suse.cz>
18694 PR rtl-optimization/26232
18695 * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
18697 2006-02-11 Jason Merrill <jason@redhat.com>
18700 * tree-inline.c (declare_return_variable): Just don't use the
18701 modify target if it's a gimple complex reg and the return slot
18704 2006-02-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18706 * doc/contrib.texi: Update my entry.
18708 2006-02-10 Geoffrey Keating <geoffk@apple.com>
18710 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
18712 2006-02-10 Diego Novillo <dnovillo@redhat.com>
18714 * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
18717 2006-02-10 Zdenek Dvorak <dvorakz@suse.cz>
18719 * doc/invoke.texi (-floop-optimize2): Removed.
18720 * toplev.c (process_options): Remove handling of flag_loop_optimize2.
18721 * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
18722 Test flag_branch_on_count_reg only if HAVE_doloop_end.
18723 * common.opt (floop-optimize2): Removed.
18724 (fmove-loop-invariants): Enabled by default.
18726 2006-02-10 Sebastian Pop <pop@cri.ensmp.fr>
18728 * tree-if-conv.c (combine_blocks): Free the result of
18729 get_loop_exit_edges.
18731 2006-02-10 Jeff Law <law@redhat.com>
18733 * fold-const.c (tree_expr_nonzero_p): Fix thinko.
18735 PR tree-optimization/26213
18736 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
18737 loop trying to follow SSA_NAME_VALUE chains.
18739 2006-02-10 Richard Guenther <rguenther@suse.de>
18741 * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
18742 deal with structures that end in implicitly variable sized arrays.
18744 2006-02-09 Zdenek Dvorak <dvorakz@suse.cz>
18746 PR rtl-optimization/24762
18747 * df-scan.c (df_bb_refs_record): Record correct registers defined on
18750 2006-02-09 Zdenek Dvorak <dvorakz@suse.cz>
18752 * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
18753 (struct ivopts_data): Add regs_used field.
18754 (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
18755 (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
18756 instead of loop_data->regs_used;
18757 (free_loop_data): Do not free aux fields for loops.
18758 (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
18759 and tree_ssa_iv_optimize_finalize.
18761 2006-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
18763 * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
18765 2006-02-09 J"orn Rennecke <joern.rennecke@st.com>
18768 * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
18769 computing the effective result type.
18771 2006-02-09 J"orn Rennecke <joern.rennecke@st.com>
18773 PR inline-asm/16194
18774 * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
18775 (tree_overlaps_hard_reg_set): Declare.
18776 * stmt.c (decl_overlaps_hard_reg_set_p): Now static. Change return
18777 type and signature to match function type expected by walk_tree.
18778 (tree_overlaps_hard_reg_set): New function.
18779 (decl_conflicts_with_clobbers_p): Rename to:
18780 (tree_conflicts_with_clobbers_p). Take HARD_REG_SET * argument.
18781 Use tree_overlaps_hard_reg_set. Changed caller.
18782 * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
18783 decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
18784 * cris.c (cris_md_asm_clobbers): Likewise.
18786 2006-02-09 Bernd Schmidt <bernd.schmidt@analog.com>
18788 * reload1.c (emit_input_reload_insns): Delete code that tries to
18789 inherit using find_equiv_reg.
18791 2006-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
18793 * c-common.h (flag_const_strings): Don't declare.
18794 * c-common.c (flag_const_strings): Remove.
18795 * c.opt (fconst_strings): Remove.
18796 * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
18797 <OPT_Wwrite_strings>: Don't set flag_const_strings.
18798 (c_common_init_options): Don't set flag_const_strings.
18799 * doc/invoke.texi (-fno-const-strings): Remove documentation.
18801 2006-02-09 Richard Earnshaw <richard.earnshaw@arm.com>
18803 * arm.md (tlobits_cbranch): New pattern.
18804 * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
18805 testing a single bit.
18807 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
18810 * tree-ssa-pre.c (create_component_ref_by_pieces):
18811 Handle RETURN_DECL like VAR_DECL.
18813 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
18815 PR middle-end/26134
18816 * fold-const.c (fold_indirect_ref_1): Fold
18817 "*(foo *)&complexfoo" to "__real__ complexfoo"
18818 and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
18820 2006-02-09 Andrew Pinski <pinskia@physics.uc.edu>
18822 * tree-flow-inline.h (var_can_have_subvars):
18823 Volatile variables should not have subvariables.
18825 2006-02-09 Diego Novillo <dnovillo@redhat.com>
18828 * tree-vrp.c (vrp_int_const_binop): Detect overflow when
18829 multiplying unsigned values.
18832 2006-02-09 Eric Botcazou <ebotcazou@libertysurf.fr>
18834 * config/sparc/sparc.c (tls_call_delay): Fix oversight.
18836 2006-02-08 Jason Merrill <jason@redhat.com>
18839 * tree.def: Elaborate on difference from MODIFY_EXPR.
18840 * doc/c-tree.texi (INIT_EXPR): Likewise.
18841 * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
18842 (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
18843 (gimplify_target_expr): Likewise.
18844 (gimplify_cond_expr): Remove target handling.
18845 (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
18846 (gimplify_expr): Clobber it here.
18847 (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
18848 Do return slot optimization if we have an INIT_EXPR.
18851 * tree-inline.c (declare_return_variable): Also clear
18852 DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
18855 * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
18857 PR middle-end/22439
18858 * gimplify.c (gimplify_one_sizepos): Fix typo.
18860 2006-02-08 Jeff Law <law@redhat.com>
18862 PR tree-optimization/21417
18863 * tree-ssa-threadedge.c (thread_across_edge): Reject threading
18864 across a backedge if the control statement at the end of the
18865 block is data dependent on other statements in the same block.
18866 (record_temporary_equivalences_from_stmts): Remove over-conservative
18867 test for threading across backedges.
18869 * tree-ssa-dce.c (remove_dead_statement): When removing a dead
18870 control statement, handle all three special cases in the same
18871 manner as they all have the same desired solution. No longer
18872 special case edge flag updating when the post dominator is
18875 2006-02-08 Roger Sayle <roger@eyesopen.com>
18877 * tree.def (CHAR_TYPE): Remove.
18878 * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
18879 * dwarf2out.c (base_type_die, is_base_type): Likewise.
18880 (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
18881 (gen_string_type_die): Delete unreachable function.
18883 * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
18884 * tree.c (build_int_cst_wide, type_contains_placeholder_1,
18885 type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
18886 * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
18887 * builtins.c (type_to_class): Likewise.
18888 * fold-const.c (fold_convert, build_range_check,
18889 merge_ranges): Likewise.
18890 * expr.c (count_type_elements): Likewise.
18891 * c-pretty-print.c (pp_c_type_specifier): Likewise.
18892 * stor-layout.c (layout_type): Likewise.
18893 * ipa-type-escape.c (type_to_consider): Likewise.
18894 * gimplify.c (omp_firstprivatize_type_sizes,
18895 gimplify_type_sizes): Likewise.
18896 * explow.c (promote_mode): Likewise.
18897 * tree-sra.c (is_sra_scalar_type): Likewise.
18898 * varasm.c (output_constant): Likewise.
18899 * tree-inline.c (remap_type_1): Likewise.
18900 * convert.c (convert_to_pointer, convert_to_real,
18901 convert_to_integer, convert_to_complex): Likewise.
18903 2006-02-08 Daniel Berlin <dberlin@dberlin.org>
18905 * df-scan.c (df_def_record_1): A set destination may
18906 be a parallel regardless of mode.
18908 2006-02-08 Roger Sayle <roger@eyesopen.com>
18911 * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
18912 * config/mips/_tilib.c: Remove.
18913 * config/fixtfdi.c: New libgcc source file.
18914 * config/fixunstfdi.c: New source file.
18915 * config/floatditf.c: New source file.
18916 * config/floatunditf.c: New souce file.
18917 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
18918 files above instead of config/mips/_tilib.c.
18919 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
18921 2006-02-08 Jeff Law <law@redhat.com>
18923 PR tree-optimization/26169
18924 * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
18927 2006-02-08 Zdenek Dvorak <dvorakz@suse.cz>
18929 * df.h (DF_REG_SIZE): Return the length of the initialized
18932 2006-02-08 Nathan Sidwell <nathan@codesourcery.com>
18934 * config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
18935 __muldf3): Return a correctly signed zero.
18937 2006-02-08 Paolo Bonzini <bonzini@gnu.org>
18939 * passes.c (register_one_dump_file): Accept the current properties
18940 instead of pass number. Adjust call to dump_register. Remove
18942 (register_dump_files): Now a wrapper around...
18943 (register_dump_files_1): ... this one. Do not modify the pass
18945 (next_pass_1): Cosmetic fix.
18946 (execute_todo): Keep second parameter only. Use curr_properties
18947 instead of fetching it from the pass structure. Check and set
18949 (execute_one_pass): Handle TODO_set_props. Use curr_properties
18950 instead of fetching it from the pass structure. Fix calls to
18951 execute_todo. Update curr_properties and initialize .vcg RTL dump
18952 after running the pass. Reset last_verified.
18953 * tree-dump.c (dump_files): Renumber consecutively. Put .cgraph dump
18955 (FIRST_AUTO_NUMBERED_DUMP): New.
18956 (dump_register): Remove "num" parameter, assign it within the
18958 (get_dump_file_name): Modify template for dumps.
18959 * tree-dump.h (dump_register): Adjust prototype.
18960 * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
18961 (PROP_trees): Add PROP_gimple_lomp.
18962 (TODO_set_props): New.
18963 * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
18964 * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
18965 * cfgexpand.c (pass_expand): Destroy PROP_trees.
18967 2006-02-08 Jakub Jelinek <jakub@redhat.com>
18969 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
18970 (sparc64-*-linux*): Likewise.
18971 * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
18972 * config/sparc/t-linux: New file.
18973 * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
18974 __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
18975 (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
18976 -m32 -mlong-double-128.
18978 * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
18979 * config/alpha/t-linux: New file.
18980 * config/alpha/libgcc-alpha-ldbl.ver: New file.
18982 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
18983 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
18984 (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
18985 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
18986 __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
18987 (CPP_ARCH32_SPEC): Remove.
18989 2006-02-07 Uttam Pawar <uttamp@us.ibm.com>
18991 PR tree-optimization/26145
18992 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
18995 2006-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18998 * pa.c (attr_length_indirect_call): Don't return length 8 for distances
18999 >= 240000 when generating code for SOM runtime.
19000 (output_indirect_call): Don't use "b,l" instruction for indirect calls
19001 to $$dyncall when generating code for SOM runtime..
19003 2006-02-07 Dirk Mueller <dmueller@suse.com>
19006 * doc/invoke.texi (-Wsequence-point): Update documentation
19007 that -Wsequence-point is implemented for C++ as well.
19009 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19011 * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
19012 * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
19013 (LIB_SPEC): Likewise.
19014 * doc/invoke.texi (SPARC options): Document -pthread.
19016 2006-02-07 Geoffrey Keating <geoffk@apple.com>
19018 * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
19021 2006-02-07 Roger Sayle <roger@eyesopen.com>
19023 * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
19024 Correct comment describing BOOLEAN_TYPE.
19026 2006-02-07 Dirk Mueller <dmueller@suse.com>
19028 * c.opt: C++ frontend supports -Wdiv-by-zero.
19029 * c-opts.c (c_common_handle_option): Remove dead case.
19031 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19033 * configure.ac (TLS assembler check): Do not enable TLS by
19034 default on SPARC/Solaris before version 10.
19035 * configure: Regenerate.
19037 2006-02-07 David Edelsohn <edelsohn@gnu.org>
19039 * doc/invoke.texi (xl-compat): Document conversion and support
19042 2006-02-07 Jeff Law <law@redhat.com>
19044 * tree-vrp.c (find_conditional_asserts): Update comments.
19045 (simplify_stmt_for_jump_threading): New.
19046 (identify_jump_threads, finalize_jump_threads): New.
19047 (vrp_finalize): Call identify_jump_threads.
19048 (execute_vrp): Call finalize_jump_threads.
19049 * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
19050 (vrp_element, vrp_data, vrp_element_p): Remove.
19051 (vrp_hash_elt, vrp_variables_stack): Remove.
19052 (vrp_hash, vrp_eq, record_range): Remove.
19053 (simplify_cond_and_lookup_avail_expr): Remove.
19054 (extract_range_from_cond): Remove.
19055 (thread_across_edge): Relocated into tree-ssa-threadedge.c.
19056 (simplify_stmt_for_jump_threading): New.
19057 (dom_thread_across_edge): New wrapper.
19058 (tree_ssa_dominator_optimize): No longer initialize or
19059 finalize any of the VRP datastructures. Remove iteration
19060 step and simplify as a result of removal of iteration step.
19061 (pass_dominator): Perform a cfg cleanup after DOM.
19062 (dom_opt_finalize_block): Use the new common routines
19063 for threading jumps. Simplify stack management slightly.
19064 No longer need to unwind VRP state.
19065 (record_equivalences_from_incoming_edge): No longer record
19067 (eliminate_redundant_computations): No longer call
19068 simplify_cond_and_lookup_avail_expr.
19069 * tree-flow.h (potentially_threadable_block): Prototype.
19070 (thread_across_edge): Likewise.
19071 * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
19072 (tree-ssa-threadedge.o): Add dependencies.
19073 * tree-ssa-threadedge.c: New file.
19074 * passes.c (init_optimization_passes): Merge PHIs before
19075 calling VRP. Run VRP again late in the SSA optimization pipeline.
19077 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
19079 * df-core.c (df_set_blocks): Do not dereference function pointers.
19080 (df_finish1): Likewise.
19081 (df_hybrid_search_forward): Likewise.
19082 (df_hybrid_search_backward): Likewise.
19083 (df_iterative_dataflow): Likewise.
19084 (df_analyze_problem): Likewise.
19085 (df_compact_blocks): Likewise.
19086 (df_dump): Likewise.
19087 * df-scan.c (df_rescan_blocks): Likewise.
19088 (df_record_entry_block_defs): Likewise.
19090 * genconditions.c (write_conditions): Guard the definition of
19091 'insn_conditions' with the check on GCC version.
19092 (write_writer): Guard the traversal 'insn_conditions' with
19093 the check on GCC version.
19095 2006-02-07 Richard Guenther <rguenther@suse.de>
19099 2006-01-30 Richard Guenther <rguenther@suse.de>
19101 * gimplify.c (gimplify_target_expr): Handle easy cases
19102 without creating a temporary.
19104 2006-02-07 Pete Steinmetz <steinmtz@us.ibm.com>
19106 * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
19107 use of float in probability computations. Use edge probabilities
19108 in place of statically computed probabilities.
19109 (min_spec_prob): New static variable.
19110 (schedule_insns): Initialize it.
19111 (GET_SRC_PROB): Removed.
19112 * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
19114 2006-02-07 Alexandre Oliva <aoliva@redhat.com>
19117 * config/ia64/unwind-ia64.c: Revert last change.
19118 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
19119 (INCOMING_FRAME_SP_OFFSET): Define.
19121 2006-02-06 Roger Sayle <roger@eyesopen.com>
19123 * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
19125 2006-02-07 Ben Elliston <bje@au.ibm.com>
19127 * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
19128 (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
19129 (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
19130 (ix86_return_in_memory): Handle TDmode.
19131 (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
19132 (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
19134 2006-02-06 Richard Sandiford <richard@codesourcery.com>
19136 * reorg.c (dbr_schedule): Use dump_file instead of file.
19138 2006-02-06 Steve Ellcey <sje@cup.hp.com>
19141 * config/ia64/predicates.md (extr_len_operand): New predicate.
19142 * config/ia64/ia64.md (extv): Tighten constraints.
19144 (*tbit_and_2): Ditto.
19145 (*tbit_and_3): Ditto.
19146 (*tbit_or_2): Ditto.
19147 (*tbit_or_3): Ditto.
19148 (*bit_zero): Ditto.
19151 2006-02-06 Andrew Pinski <pinskia@physics.uc.edu>
19154 * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
19156 2006-02-06 Zdenek Dvorak <dvorakz@suse.cz>
19158 * tree-vrp.c (execute_vrp): Do not pass dump argument to.
19159 loop_optimizer_init and loop_optimizer_finalize
19160 * tree-ssa-sink.c (execute_sink_code): Ditto.
19161 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
19162 * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
19163 tree_ssa_loop_done): Ditto.
19164 * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
19165 * sched-ebb.c: Include output.h.
19166 (schedule_ebbs): Do not use dump argument.
19167 * value-prof.h (struct profile_hooks): Remove profile_dump_file.
19168 * loop.c (loop_dump_stream): Removed.
19169 (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
19171 (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
19172 emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
19173 final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
19174 loop_iterations, strength_reduce, record_biv, record_giv,
19175 final_giv_value, check_final_value, check_ext_dependent_givs,
19176 combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
19177 try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
19178 dump_file instead of loop_dump_stream.
19179 * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
19180 argument dump_file.
19181 * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
19183 * flow.c (life_analysis, rest_of_handle_life): Ditto.
19184 * haifa-sched.c: Include output.h
19185 (schedule_insns, sched_init): Do not use dump argument.
19186 * mode-switching.c (optimize_mode_switching): Ditto.
19187 * modulo-sched.c (stats_file): Removed.
19188 (print_node_sched_params): Do not call argument dump_file.
19189 (sms_schedule_by_order, loop_canon_p, sms_schedule,
19190 rest_of_handle_sms): Do not use dump argument. Use dump_file instead
19192 * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
19194 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
19195 rtl_loop_init, rtl_loop_done): Ditto.
19196 * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
19197 * predict.c (combine_predictions_for_bb, tree_estimate_probability):
19199 * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
19200 * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
19201 * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
19202 rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
19203 * emit-rtl.c (renumber_insns): Ditto.
19204 * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
19205 expand_gimple_basic_block, tree_expand_cfg): Ditto.
19206 * regclass.c (regclass): Ditto.
19207 * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
19208 remove_ssa_form, rewrite_out_of_ssa): Ditto.
19209 * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
19210 convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
19212 * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
19213 * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
19215 * gcse.c (gcse_file, debug_stderr): Removed.
19216 (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
19217 rest_of_handle_gcse): Do not use dump argument.
19218 (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
19219 one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
19220 pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
19221 compute_code_hoist_vbeinout, compute_code_hoist_data,
19222 one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
19223 compute_store_table, build_store_vectors, insert_insn_start_bb,
19224 insert_store, remove_reachable_equiv_notes, replace_store_insn,
19225 store_motion): Use dump_file instead of gcse_file.
19226 * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
19227 * profile.c (profile_dump_file): Removed.
19228 (branch_prob): Use dump_file instead of profile_dump_file.
19229 * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
19231 * tree-ssa-copy.c (dump_copy_of): Ditto.
19232 * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
19233 dump file to life_analysis.
19234 * bt-load.c (branch_target_load_optimize): Ditto.
19235 * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
19237 * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
19238 regclass, dbr_schedule): Declaration changed.
19239 * sched-int.h (sched_init): Declaration changed.
19240 * tree-profile.c (tree_profile_dump_file): Removed.
19241 (tree_profile_hooks): Removed profile_dump_file hook.
19242 * rtl-profile (rtl_profile_dump_file): Removed.
19243 (rtl_profile_hooks): emoved profile_dump_file hook.
19244 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
19246 * c-gimplify.c (c_genericize): Do not call local variable dump_file.
19247 * tree-cfg.c (build_tree_cfg): Ditto.
19248 * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
19249 * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
19250 Declaration changed.
19251 * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
19252 life_analysis and schedule_insns.
19253 * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
19255 * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
19257 * config/mips/mips.c (mips_reorg): Ditto.
19258 * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
19261 2006-02-06 Aldy Hernandez <aldyh@redhat.com>
19263 * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
19264 (s390_mangle_fundamental_type): New.
19265 * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19268 * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
19269 (alpha_mangle_fundamental_type): New.
19270 * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19273 * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19275 * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
19277 * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
19278 (sparc_mangle_fundamental_type): New.
19280 2006-02-06 Jakub Jelinek <jakub@redhat.com>
19282 * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
19283 (s390x-*-linux*): Likewise.
19284 * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
19285 * config/s390/t-linux: New file.
19287 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
19289 * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
19290 sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
19292 2006-02-06 Daniel Berlin <dberlin@dberlin.org>
19294 * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
19295 (ANTIC_SAFE_LOADS): New macro.
19296 (find_or_generate_expression): Add prototype.
19297 (set_contains_value): Allow null set for sake of not always having
19298 to allocate ANTIC_SAFE_LOADS.
19299 (phi_translate): Move placement of AGGREGATE_TYPE_P check.
19300 Allow COMPONENT_REF too.
19301 (valid_in_set): Allow COMPONENT_REF.
19302 Check ANTIC_SAFE_LOADS too.
19303 (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
19304 (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
19306 (can_PRE_operation): Add COMPONENT_REF.
19307 (create_component_ref_by_pieces): New function.
19308 (create_expression_by_pieces): Use create_component_ref_by_pieces.
19309 (insert_aux): Move AGGREGATE_TYPE_P check here.
19310 (compute_avail): Set bb local stmt uids.
19311 (pass_pre): Use TODO_update_ssa_only_virtuals.
19313 2006-02-06 Ben Elliston <bje@au.ibm.com>
19315 * configure.ac: Unconditionally disable decimal float by default.
19316 * configure: Regenerate.
19318 2006-02-06 Ben Elliston <bje@au.ibm.com>
19320 * read-rtl.c (read_name): Terminate reading on EOF.
19322 2006-02-06 Ben Elliston <bje@au.ibm.com>
19324 * dfp.c (decimal_real_arithmetic): Change second argument type
19325 from int to enum tree_code. Do not always return true, but now
19326 return result of any call to decimal_do helper functions.
19327 * dfp.h (decimal_real_arithmetic): Update prototype.
19329 2006-02-05 Eric Botcazou <ebotcazou@libertysurf.fr>
19331 * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
19333 2006-02-05 Andrew Pinski <pinskia@physics.uc.edu>
19336 * tree-cfg.c (cleanup_dead_labels): Also don't remove
19339 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
19341 * tree-vrp.c (cfg_loops): Removed.
19342 (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
19343 Use current_loops instead of cfg_loops. Pass flags to
19344 loop_optimizer_init.
19345 * cfgloopmanip.c (fix_loop_structure): Update only available
19347 * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
19348 loop_optimizer_init.
19349 * modulo-sched.c (build_loops_structure): Removed.
19350 (sms_schedule): Use loop_optimizer_init.
19351 * loop-init.c (loop_optimizer_init): Use flags to determine
19352 which properties of loops to prepare.
19353 (rtl_loop_init): Pass flags to loop_optimizer_init.
19354 * tree-ssa-sink.c (execute_sink_code): Ditto.
19355 * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
19356 * tree-ssa-pre.c (init_pre): Ditto.
19357 * cfgloop.h (LOOPS_NORMAL): New.
19358 (loop_optimizer_init): Declaration changed.
19360 2006-02-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19362 * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
19363 * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
19365 * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
19367 * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
19369 * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
19370 * pa/t-pa64: Delete quadlib.c rule.
19371 * pa/x-ada: Revert last change.
19372 * pa/t-pa: Revert last change. Delete quadlib.c rule.
19374 2006-02-04 Zdenek Dvorak <dvorakz@suse.cz>
19376 PR rtl-optimization/26087
19377 * rtlanal.c (canonicalize_condition): Do not cross basic block
19380 2006-02-04 Alexandre Oliva <aoliva@redhat.com>
19383 * config/ia64/ia64.c: Include debug.h.
19384 (MAX_ARTIFICIAL_LABEL_BYTES): New.
19385 (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
19386 (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
19387 (process_epilogue, process_set, process_for_unwind_directive):
19388 Output unwind info only if requested. Add CFA info if requested.
19389 Add new arguments as needed. Adjust callers.
19390 * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
19392 (DWARF2_FRAME_INFO): Define to zero.
19393 * config/ia64/unwind-ia64.c: Remove code that compensated for
19394 the CFA offset error fixed above.
19395 * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
19396 * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
19397 (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
19398 -funwind-tables and -fexceptions to enable frame info.
19399 (dwarf2out_frame_init): Define initial CFA even if
19400 DWARF2_UNWIND_INFO is disabled. Call initial_return_save if
19401 DWARF2_UNWIND_INFO is nonzero, not just defined.
19402 (dwarf2out_frame_finish): Output non-EH call frame info only
19403 if DWARF2_FRAME_INFO is nonzero.
19404 (convert_cfa_to_loc_list,
19405 compute_frame_pointer_to_cfa_displacement): Define even if
19406 unwind info is not supported.
19407 (gen_subprogram_die): Use the above unconditionally. Remove
19408 legacy alternate code.
19409 * toplev.c (compile_file): Compile in call to
19410 dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
19411 (lang_dependent_init): Ditto for dwarf2out_frame_init.
19413 2006-02-04 David Edelsohn <edelsohn@gnu.org>
19414 Jakub Jelinek <jakub@redhat.com>
19416 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
19417 IBM extended float format long double as "g" on powerpc*-linux.
19419 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19422 * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
19423 * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
19425 2006-02-03 Jason Merrill <jason@redhat.com>
19428 * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
19430 PR middle-end/25977
19431 * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
19432 on the return slot if it's an NRV.
19434 2006-02-03 Zdenek Dvorak <dvorakz@suse.cz>
19436 * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
19437 (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
19438 rewrite_use): Do not handle USE_OUTER.
19439 (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
19440 add_iv_outer_candidates, may_replace_final_value,
19441 determine_use_iv_cost_outer, rewrite_use_outer): Removed.
19442 (find_interesting_uses_op): Functionality of
19443 find_interesting_uses_outer_or_nonlin moved here.
19444 (find_interesting_uses_outside): Use find_interesting_uses_op.
19446 2006-02-03 Alan Modra <amodra@bigpond.net.au>
19449 * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
19451 2006-02-03 Andreas Krebbel <krebbel1@de.ibm.com>
19452 Ulrich Weigand <uweigand@de.ibm.com>
19455 * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
19456 "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
19457 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
19458 * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
19460 (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
19461 (s390_rtx_costs): Use the new fields to calculate rtx costs.
19462 (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
19463 Define secondary reloads for TFmode moves.
19464 (constant_modes): Add TFmode.
19465 (NR_C_MODES): Set to 8.
19466 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
19468 (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
19469 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
19470 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
19471 CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
19472 * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
19473 fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
19474 (FPR mode macro): Add TFmode.
19475 (DSF mode macro): New.
19476 (<de>, <dee> mode attributes): Removed.
19477 (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
19478 ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
19479 "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
19480 "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
19481 "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
19482 "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
19483 "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
19484 "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
19485 "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
19486 "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
19487 "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
19488 "*negabs<mode>2", "sqrt<mode>2"):
19489 Changed <de> to <xde>. R constraint replaced by <Rf>.
19490 ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
19492 ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
19493 ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
19494 ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
19496 ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
19497 "extenddftf2", "extendsftf2"): New expanders.
19498 ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
19499 "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
19500 "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
19501 * config/s390/s390.opt (mlong-double-128, mlong-double-64):
19503 * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
19504 * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
19505 __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
19506 __floatditf): Add a GCC_4.1.0 symbol version tag.
19507 * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
19510 2006-02-02 Andrew Pinski <pinskia@physics.uc.edu>
19513 * config/i386/i386.c (ix86_function_ok_for_sibcall):
19514 Use targetm.binds_local_p instead of TREE_PUBLIC.
19516 2006-02-02 Roger Sayle <roger@eyesopen.com>
19518 * tree.h (TYPE_STRING_FLAG): Document that this field may be used
19519 on INTEGER_TYPEs to indicate that it denotes a character type.
19520 * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
19521 signed_char_type_node, unsigned_char_type_node and char_type_node.
19522 * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
19523 INTEGER_TYPE. Use TYPE_STRING_FLAG to decide whether to emit
19524 a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
19526 2006-02-02 Zdenek Dvorak <dvorakz@suse.cz>
19527 Daniel Berlin <dberlin@dberlin.org>
19529 * tree-tailcall.c (arg_needs_copy_p): New function.
19530 (eliminate_tail_call): Use arg_needs_copy_p.
19531 (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
19532 (add_virtual_phis): New function.
19534 2006-02-02 Jakub Jelinek <jakub@redhat.com>
19536 * config/sparc/sparc.c (sparc_output_scratch_registers): Use
19537 #ignore instead of #scratch for %g7 .register directive.
19539 2006-02-02 Andreas Tobler <a.tobler@schweiz.ch>
19541 * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
19544 2006-02-02 Bernd Schmidt <bernd.schmidt@analog.com>
19546 * flow.c (calculate_global_regs_live): Assert that there aren't any
19549 2006-02-02 Paolo Bonzini <bonzini@gnu.org>
19551 * tree-flow-inline.h (bsi_after_labels): Rewrite, return
19552 what its name says.
19553 * lambda-code.c (perfect_nestify): Use bsi_insert_before on
19554 bsi_after_labels iterator.
19555 * tree-if-conv.c (find_phi_replacement_condition,
19556 replace_phi_with_cond_modify_expr): Likewise.
19557 * tree-scalar-evolution.c (scev_const_prop): Likewise.
19558 * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
19560 2006-02-02 Diego Novillo <dnovillo@redhat.com>
19562 * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
19564 2006-02-02 Diego Novillo <dnovillo@redhat.com>
19567 * tree-cfg.c (move_block_to_fn): Clear out the basic block
19568 array after growing it.
19570 2006-02-01 Steve Ellcey <sje@cup.hp.com>
19572 PR middle-end/24901
19573 * fold-const.c (fold_checksum_tree): Change type of buf.
19575 2006-02-01 Bernd Schmidt <bernd.schmidt@analog.com>
19577 * reload.c (push_secondary_reload): Initialize t_icode.
19579 2006-02-01 Jakub Jelinek <jakub@redhat.com>
19581 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
19582 -msoft-float -mlong-double-128 only issue a warning, but don't
19583 swich to DFmode long double.
19585 2006-02-01 Hans-Peter Nilsson <hp@axis.com>
19587 * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
19588 has a constant equivalent, iterate over equivalents for arg0,
19589 calling simplify_relational_operation and if there's a result
19590 cheaper than X, apply fold_rtx and return the result.
19592 2006-02-01 Jan Hubicka <jh@suse.cz>
19594 * opts.c (no_unit_at_a_time_default): New global variable.
19595 (decode_options): Use it.
19596 * opts.h (no_unit_at_a_time_default): Declare.
19598 2006-02-01 Paul Brook <paul@codesourcery.com>
19600 * function.c (assign_parm_setup_reg): Use function argument promotion
19602 * expr.c (expand_expr_real_1): Use function argument promotion rules
19605 2006-02-01 Steve Ellcey <sje@cup.hp.com>
19607 * gcc.c (process_command): Change j to 'unsigned int'.
19609 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
19611 PR middle-end/26001
19612 * expr.c (expand_expr_real_1) <case ARRAY_REF>:
19613 Use the corrected index for the character
19614 out of the string constant.
19616 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
19618 * mode-switching.c (optimize_mode_switching): Fix size
19619 allocated for bb_info[n_entities].
19621 2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
19623 * gcc.c (main): Correct type that is allocated for
19624 explicit_link_files.
19626 2006-01-31 Jakub Jelinek <jakub@redhat.com>
19628 * config/s390/s390.c (init_alignment_context): Set
19629 ALIAS_SET_MEMORY_BARRIER on the MEM.
19630 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
19632 2006-01-31 Uttam Pawar <uttamp@us.ibm.com>
19634 PR middle-end/25933
19635 * loop-unroll.c (unroll_loop_runtime_iterations): Free
19637 * tree-ssa-live.c (type_var_init): Allocate bitmap after
19640 2006-01-31 Marcin Dalecki <martin@dalecki.de>
19642 * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
19643 * regrename.c: Ditto.
19644 * tree-ssa-loop-im.c: Ditto.
19645 * tree-dump.c: Ditto.
19646 * tree-complex.c: Ditto.
19647 * genrecog.c: Ditto.
19648 * tree-ssa-threadupdate.c: Ditto.
19650 * java/class.c: Ditto.
19651 * java/jcf-parse.c: Ditto.
19652 * java/resource.c: Ditto.
19653 * java/except.c: Ditto.
19654 * java/jvspec.c: Ditto.
19655 * java/jcf-write.c: Ditto.
19656 * java/jcf-path.c: Ditto.
19657 * java/gjavah.c: Ditto.
19658 * java/zextract.c: Ditto.
19659 * java/jcf-io.c: Ditto.
19660 * java/jcf.h: Ditto.
19661 * java/buffer.c: Ditto.
19662 * java/lang.c: Ditto.
19663 * java/parse-scan.y: Ditto.
19664 * java/lex.c: Ditto.
19665 * java/lex.h: Ditto.
19666 * cfgloopmanip.c: Ditto.
19667 * postreload-gcse.c: Ditto.
19668 * tree-ssa-loop-manip.c: Ditto.
19669 * postreload.c: Ditto.
19670 * tree-ssa-loop-ch.c: Ditto.
19673 * cppspec.c: Ditto.
19674 * diagnostic.c: Ditto.
19676 * genoutput.c: Ditto.
19678 * cfghooks.c: Ditto.
19679 * cfgloopanal.c: Ditto.
19680 * objc/objc-act.c: Ditto.
19682 * genextract.c: Ditto.
19683 * genautomata.c: Ditto.
19684 * pretty-print.c: Ditto.
19685 * genemit.c: Ditto.
19686 * cgraphunit.c: Ditto.
19688 * df-scan.c: Ditto.
19689 * haifa-sched.c: Ditto.
19690 * dominance.c: Ditto.
19692 * tree-ssa-loop-ivopts.c: Ditto.
19693 * df-core.c: Ditto.
19694 * mode-switching.c: Ditto.
19695 * modulo-sched.c: Ditto.
19697 * ipa-pure-const.c: Ditto.
19699 * fix-header.c: Ditto.
19701 * tree-stdarg.c: Ditto.
19702 * ipa-utils.c: Ditto.
19703 * loop-init.c: Ditto.
19704 * ipa-inline.c: Ditto.
19705 * cfganal.c: Ditto.
19707 * alloc-pool.c: Ditto.
19708 * dwarf2out.c: Ditto.
19710 * genattrtab.c: Ditto.
19711 * tree-ssa-loop-ivcanon.c: Ditto.
19712 * predict.c: Ditto.
19713 * timevar.c: Ditto.
19715 * fortran/gfortranspec.c: Ditto.
19716 * regmove.c: Ditto.
19717 * local-alloc.c: Ditto.
19718 * langhooks.c: Ditto.
19719 * function.c: Ditto.
19720 * tree-vectorizer.c: Ditto.
19722 * ipa-type-escape.c: Ditto.
19724 * tree-if-conv.c: Ditto.
19725 * profile.c: Ditto.
19727 * tree-data-ref.c: Ditto.
19728 * loop-unroll.c: Ditto.
19729 * treelang/treetree.c: Ditto.
19731 * bt-load.c: Ditto.
19732 * ggc-common.c: Ditto.
19734 * coverage.c: Ditto.
19736 * tree-cfgcleanup.c: Ditto.
19737 * tree-ssa-pre.c: Ditto.
19738 * cfgcleanup.c: Ditto.
19739 * loop-invariant.c: Ditto.
19740 * loop-iv.c: Ditto.
19741 * ipa-prop.c: Ditto.
19742 * print-tree.c: Ditto.
19743 * conflict.c: Ditto.
19744 * ggc-page.c: Ditto.
19745 * sched-deps.c: Ditto.
19746 * regclass.c: Ditto.
19747 * tree-object-size.c: Ditto.
19748 * combine.c: Ditto.
19749 * bb-reorder.c: Ditto.
19750 * resource.c: Ditto.
19751 * var-tracking.c: Ditto.
19752 * cfgloop.c: Ditto.
19753 * df-problems.c: Ditto.
19754 * reg-stack.c: Ditto.
19756 * gccspec.c: Ditto.
19757 * sched-rgn.c: Ditto.
19758 * tree-ssa-structalias.c: Ditto.
19759 * tree-ssa-reassoc.c: Ditto.
19760 * config/darwin-c.c: Ditto.
19761 * config/darwin.c: Ditto.
19762 * config/arm/arm.c: Ditto.
19764 * collect2.c: Ditto.
19765 * reload1.c: Ditto.
19767 2006-01-31 Nicolas Pitre <nico@cam.org>
19769 * arm.md (smaxsi3): Make aware of smax_m1.
19772 2006-01-31 Nathan Sidwell <nathan@codesourcery.com>
19774 * config/m68k/lb1sf68.asm: Use moveq to load small constants.
19776 2006-01-31 Richard Guenther <rguenther@suse.de>
19778 * doc/invoke.texi (-msselibm): Document.
19779 * target.h (expand_library_builtin): New target hook.
19780 * builtins.c (expand_builtin): Use expand_library_builtin.
19781 (default_expand_library_builtin): New function.
19782 * gcc.c (LINK_GCC_MATH_SPEC): Define.
19783 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
19784 (link_gcc_math_spec): Declare.
19785 (static_specs): Add link_gcc_math_spec.
19786 * expr.h (default_expand_library_builtin): Declare.
19787 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
19788 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
19789 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
19790 * config/i386/i386.opt (msselibm): New target option.
19791 * config/i386/i386.c (ix86_builtin_function_variants): New array.
19792 (ix86_init_sse_abi_builtins): New function.
19793 (ix86_expand_library_builtin): Likewise.
19794 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
19795 (override_options): Handle error conditions wrt -msselibm.
19796 (ix86_builtins): Add function codes for SSE2 ABI builtins.
19797 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
19798 * doc/extend.texi (__builtin_sse2_*): Document new target specific
19801 2006-01-31 Richard Guenther <rguenther@suse.de>
19802 Paolo Bonzini <bonzini@gnu.org>
19804 * doc/install.texi (--disable-libgcc-math): Document.
19806 2006-01-30 Marcin Dalecki <martin@dalecki.de>
19808 * expr.h (expand_normal): new inline function.
19809 * builtins.c: use it, use EXPAND_NORMAL explicitely.
19810 * dojump.c: use it.
19811 * dwarf2out.c: use it.
19814 * expmed.c: use it.
19815 * except.c: use it.
19816 * config/sparc/sparc.c: use it.
19817 * config/i386/i386.c: use it.
19818 * config/rs6000/rs6000.c: use it.
19819 * config/arm/arm.c: use it.
19820 * config/mips/mips.c: use it.
19821 * stmt.c: use it, use EXPAND_NORMAL explicitely.
19823 2006-01-30 Roger Sayle <roger@eyesopen.com>
19825 * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
19826 argv to the appropriate type.
19828 2006-01-30 Zdenek Dvorak <dvorakz@suse.cz>
19830 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
19833 2006-01-30 Ulrich Weigand <uweigand@de.ibm.com>
19836 * config/s390/s390.c (struct machine_function): New flag
19837 decomposed_literal_pool_addresses_ok_p.
19838 (s390_reorg): Set it before final stage of literal pool transforms.
19839 (s390_decompose_address): Only accept displacements of the form
19840 (minus (label_ref ...) (label_ref ...)) if that flag is set.
19842 2006-01-30 Carlos O'Donell <carlos@codesourcery.com>
19844 * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
19845 the comparison routine return.
19847 2006-01-30 Michael Matz <matz@suse.de>
19849 * global.c (find_reg): Only evict for global regs.
19850 Take n_refs into account and dump more info.
19852 2006-01-30 J"orn Rennecke <joern.rennecke@st.com>
19855 * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
19856 (pragma_trap, pragma_nosave_low_regs): Likewise.
19857 (current_function_anonymous_args): Likewise.
19858 (sh_deferred_function_attributes): New variable.
19859 (sh_deferred_function_attributes_tail): Likewise.
19860 (print_operand): For '@', look up trap_exit attribute.
19861 (calc_live_regs): Look up trapa_handler attribute. For trapa
19862 handlers, save/restore fpscr, but don't do any other
19863 interrupt-specific saves.
19864 Don't save r0..r7 if the nosave_low_regs attribute is in effect.
19865 Fix check for partially saved registers to check for SHmedia.
19866 (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
19867 (sh_output_function_epilogue): Don't clear any of the removed
19869 (sh_insert_attributes): Don't check pragma_interrupt.
19870 Insert deferred attributes. Check that interrupt attribute is
19871 present for other attributes that require its presence.
19872 (sh_attribute_table): Add new attributes trapa_handler and
19874 (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
19875 Don't check for pragma_interrupt. Don't store argument.
19876 * sh.h (pragma_interrupt, sp_switch): Don't declare.
19877 (sh_deferred_function_attributes): Declare.
19878 (sh_deferred_function_attributes_tail): Likewise.
19879 * sh.md (sp_switch_1): Add operand. Change generator caller.
19880 (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
19881 (*return_i): Don't use when trap_exit attribute is in effect.
19882 (*return_trapa): New insn pattern.
19883 * sh-c.c: New file.
19884 * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
19885 setting c_target_objs and cxx_target_objs.
19886 * t-sh: Add rule for sh-c.o.
19888 2006-01-30 Richard Guenther <rguenther@suse.de>
19891 * gimplify.c (gimplify_target_expr): Handle easy cases
19892 without creating a temporary.
19894 2006-01-30 Nathan Sidwell <nathan@codesourcery.com>
19896 * vec.h (safe_grow): Remove duplicated line.
19898 2006-01-29 Diego Novillo <dnovillo@redhat.com>
19901 * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
19902 (expand_omp): ... here.
19903 (expand_omp_parallel): Only remove barriers for combined
19904 parallel+workshare constructs.
19906 2006-01-29 Eric Botcazou <ebotcazou@adacore.com>
19910 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
19911 * tree.c (build_qualified_type): Chain the new type to the original
19912 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
19913 a POINTER_TYPE or a REFERENCE_TYPE respectively.
19914 (build_pointer_type_for_mode): Only return unqualified types.
19915 (build_reference_type_for_mode): Likewise.
19917 2006-01-29 Gabriel Dos Reis <gdr@integgrable-solutions.net>
19919 * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
19920 * Makefile.in (CXX_COMPAT_WARN): Define.
19921 * configure: Regenerate.
19923 2006-01-29 Dorit Nuzman <dorit@il.ibm.com>
19926 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
19929 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
19931 * toplev.c: Fix thinko.
19933 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
19934 Marcin Dalecki <martin@dalecki.de>
19936 * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
19937 (push_srcloc): Use XNEW.
19938 (init_asm_output, default_get_pch_validity): Use XNEWVEC.
19940 2006-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
19942 * df-core.c (df_set_blocks): Deleted all variable.
19944 2006-01-28 Ian Lance Taylor <ian@airs.com>
19946 * cgraphunit.c (cgraph_assemble_pending_functions): Call
19947 cgraph_output_pending_asms.
19949 2006-01-28 Zack Weinberg <zackw@panix.com>
19951 * c.opt: Add -W(no-)overlength-strings.
19952 * doc/invoke.texi: Document it.
19953 * c-opts.c (c_common_handle_option): -pedantic implies
19954 -Woverlength-strings, if not explicitly disabled already.
19955 (c_common_post_options): -Woverlength-strings defaults to off, and
19956 is always off for C++.
19957 * c-common.c (fix_string_type): Issue warning about strings longer
19958 than is portable only if warn_overlength_strings. Rearrange code
19959 a little for clarity.
19960 * configure.in: Check for -Wno-overlength-strings as well before
19961 enabling -pedantic in stage 1.
19962 * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
19963 (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
19965 * genconditions.c (write_header, write_one_condition)
19966 (write_conditions, write_writer): Consolidate very long strings
19967 that were broken up to fit in C89 portable limit. Don't use
19968 printf when fputs will do.
19970 2006-01-28 Adam Nemet <anemet@caviumnetworks.com>
19972 * combine.c (simplify_comparison <AND>): Check
19973 TRULY_NOOP_TRUNCATION before start using a subreg.
19975 * config/mips/mips.md (*branch_zero<mode>,
19976 *branch_zero<mode>_inverted, *branch_equality<mode>,
19977 *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
19978 Remove mode check from comparisons.
19980 2006-01-28 Kenneth Zadeck <zadeck@naturalbridge.com>
19982 * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
19984 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
19986 * expmed.c (const_mult_add_overflow_p): Remove.
19987 * expr.h: Remove the prototype for const_mult_add_overflow_p.
19989 * recog.c (validate_replace_rtx_subexp): Remove.
19990 * recog.h: Remove the prototype for
19991 validate_replace_rtx_subexp.
19993 * integrate.h: Remove the prototype for
19994 copy_decl_for_inlining.
19995 * rtl.h: Remove the prototype for mark_constant_function.
19996 * tree-vectorizer.h: Remove the prototype for
19997 vect_strip_conversion.
19999 * modulo-sched.c (create_partial_schedule,
20000 free_partial_schedule, reset_partial_schedule): Make them
20003 * hooks.c (hook_bool_rtx_int_false): Remove.
20004 * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
20006 2006-01-28 David Edelsohn <edelsohn@gnu.org>
20008 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
20009 and -mlong-double-128 are incompatible.
20010 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
20011 * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
20012 (TARGET_LIBGCC2_CFLAGS): Define.
20013 * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
20014 (TARGET_LIBGCC2_CFLAGS): Same.
20015 * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
20017 2006-01-28 Kazu Hirata <kazu@codesourcery.com>
20020 * c-typeck.c (build_binary_op): Perform implicit casts of
20021 operands before shortening them.
20023 * cfgloopmanip.c (split_loop_bb): Remove.
20024 * cfgloop.h: Remove the prototype for split_loop_bb.
20026 * cfgloop.c (flow_loop_outside_edge_p): Remove.
20027 * cfgloop.h: Remove the prototype for
20028 flow_loop_outside_edge_p.
20030 * emit-rtl.c (init_virtual_regs): Make it static.
20031 * function.h: Remove the prototype for init_virtual_regs.
20033 * recog.c (peephole2_optimize): Make it static.
20034 * recog.h: Remove the prototype for peephole2_optimize.
20036 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
20038 * df-scan.c (df_record_entry_block_defs): Check if
20039 INCOMING_RETURN_ADDR_RTX is defined.
20041 2006-01-27 Daniel Berlin <dberlin@dberlin.org>
20042 Kenneth Zadeck <zadeck@naturalbridge.com>
20044 PR rtl-optimization/24762
20045 * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
20046 * targhooks.c (hook_void_bitmap): New hook prototype.
20047 * targhoohs.h (hook_void_bitmap): Ditto.
20048 * bitmap.h (bitmap_head_def): Moved to coretypes.h.
20049 * coretypes.h (bitmap_head_def): Moved from bitmap.h.
20050 * target.h (live_on_entry): New function pointer.
20051 * df-scan.c (df_all_hard_regs): Removed.
20052 (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
20053 (df_scan_free_internal): Added df->entry_block_defs.
20054 (df_scan_alloc): Ditto.
20055 (df_scan_dump): Ditto.
20056 (df_uses_record): Plumbed flag field properly thru calls.
20057 Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
20058 This part fixes PR24762.
20059 (df_bb_refs_record): Added code to make the frame and arg
20060 pointers live in EH blocks.
20061 (df_refs_record): Added call to df_record_entry_block_defs.
20062 (df_record_entry_block_defs): New function.
20063 * df-core.c: Added comments to describe new artifical defs.
20064 * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
20065 (entry_block_defs): New field in struct df.
20066 (df_all_hard_regs): Deleted.
20067 * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
20068 * df-problems.c (df_ru_bb_local_compute_process_def):
20069 Added code to handle artifical defs in the entry to a function.
20070 (df_ru_bb_local_compute): Ditto.
20071 (df_rd_bb_local_compute_process_def): Ditto.
20072 (df_rd_bb_local_compute): Ditto.
20073 (df_lr_bb_local_compute): Ditto.
20074 (df_ur_bb_local_compute): Ditto.
20075 (df_urec_bb_local_compute): Ditto.
20076 (df_chain_create_bb): Ditto.
20077 (df_ur_local_finalize): Removed entry.
20078 (df_urec_init): Ditto.
20079 (df_urec_local_finalize): Ditto.
20080 (df_ri_bb_compute): Added detection of last use of pseudos.
20081 * Makefile.in (df-scan.o): Updated dependencies.
20082 * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
20083 * config/mips/mips.c (mips_set_live_on_entry): Added.
20084 * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
20086 * dce.c (marked_insn_p): Added code to handle artifical defs.
20088 2006-01-27 H.J. Lu <hongjiu.lu@intel.com>
20090 * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
20092 (_mm_cvtsi128_si64): Likewise.
20093 (_mm_cvtsd_si64): Likewise.
20094 (_mm_cvttsd_si64): Likewise.
20095 (_mm_cvtsi64_sd): Likewise.
20096 (_mm_cvtsi64_si128): Likewise.
20097 * config/i386/mmintrin.h (_m_from_int64): Likewise.
20098 (_mm_cvtsi64_m64): Likewise.
20099 (_m_to_int64): Likewise.
20100 (_mm_cvtm64_si64): Likewise.
20101 * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
20102 (_mm_cvttss_si64): Likewise.
20103 (_mm_cvtsi64_ss): Likewise.
20104 (_mm_cvtss_f32): Likewise.
20106 2006-01-27 Carlos O'Donell <carlos@codesourcery.com>
20108 * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
20109 for pragma redefine_extname.
20111 2006-01-27 Jakub Jelinek <jakub@redhat.com>
20114 * libgcc-std.ver: Add GCC_4.1.0 symbol version.
20115 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
20116 -mno-minimal-toc to previous content.
20117 (bispecs): Remove goal.
20118 * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
20119 * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
20120 compatibility aliases on powerpc-*-*gnu*.
20121 * config/rs6000/libgcc-ppc-glibc.ver: New file.
20122 * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
20123 libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
20124 (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
20125 (ldblspecs): New goal.
20126 * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
20127 * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
20129 * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
20130 L_sf_to_tf or L_df_to_tf is defined.
20132 2006-01-27 David Edelsohn <edelsohn@gnu.org>
20133 Alan Modra <amodra@bigpond.net.au>
20136 * config/rs6000/linux.h (POWERPC_LINUX): Define.
20137 * config/rs6000/linux64.h (POWERPC_LINUX): Define.
20138 * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
20139 * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
20140 * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
20141 * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
20142 (rs6000_override_options): Initialize rs6000_ieeequad.
20143 Initialize TFmode format to ibm_extended_format if not
20145 (rs6000_handle_option): Accept -mabi= ibmlongdouble and
20147 (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
20148 (rs6000_return_in_memory): Only return IEEEQUAD in memory.
20149 (function_arg_advance): IBM long double passed in two FPRs, not
20151 (function_arg): IBM long double passed in FPRs.
20152 (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
20153 (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
20154 Only multireg GPR aligned.
20155 (rs6000_init_libfuncs): Enable IBM long double functions if not
20157 (rs6000_generate_compare): Use IBM long double compare if not
20159 * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
20160 (TARGET_IEEEQUAD): Define.
20161 (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
20162 not TARGET_IEEEQUAD.
20163 * config/rs6000/rs6000.md: Enable TFmode patterns if
20165 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
20166 * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
20167 and -mlong-double-128 are incompatible.
20168 * doc/invoke.texi (-mabi): Collect options together. Add
20169 ibmlongdouble and ieeelongdouble.
20171 2006-01-27 Richard Sandiford <richard@codesourcery.com>
20173 * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
20175 * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
20176 * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
20177 (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
20178 * rtl.h (rtunion_def): Remove rt_ptr.
20180 (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
20181 (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
20182 * config/i386/winnt.c (i386_pe_mark_dllexport)
20183 (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
20185 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
20187 * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
20189 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
20193 * gthr-dce.h: Do not gthrw-ify pthread_once_init,
20194 pthread_key_delete. From John David Anglin. gthrw-ify
20195 pthread_getunique_np only if it it's not a macro. Delete
20197 (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
20198 __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
20199 __gthread_objc_condition_signal, __gthread_key_delete): Add
20200 "__attribute__ ((__unused__))" to unused arguments.
20201 (__gthread_recursive_mutex_init_function): Add missing return.
20202 * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
20203 gthr-posix95.h: Use macro-based approach for name redirection
20204 on targets missing weakref.
20206 2006-01-26 Zack Weinberg <zackw@panix.com>
20208 * genconditions.c (write_header): In generated code, #ifdef out
20209 all includes and fake declarations, except includes of bconfig.h
20210 and system.h, unless GCC_VERSION >= 3001. Do not include
20211 gensupport.h in any case.
20212 (write_conditions): Generate a definition of struct c_test. Add
20213 a comment to the generated #endif.
20214 (write_one_condition): Escape backslashes in string too.
20215 (write_writer): Generated code must escape backslashes and quote
20216 marks (but not newlines) in the strings it writes.
20217 * Makefile.in (build/gencondmd.o): Update dependencies.
20219 2006-01-26 Steve Ellcey <sje@cup.hp.com>
20222 * Makefile.in (insn-automata.o): Add header file dependencies.
20223 * genautomata.c: Add includes.
20225 2006-01-26 Steve Ellcey <sje@cup.hp.com>
20228 * Makefile.in (insn-automata.o): Add -Wno-error flag.
20230 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
20232 * configure.ac: Expect target tools paths to be passed from the toplevel
20233 and wrap the detection into AS_SET_VAR_IF. Extract side-effects out of
20235 * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
20237 2006-01-26 Alexandre Oliva <aoliva@redhat.com>
20240 * c.opt (Wpointer-sign): Init to -1.
20241 * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
20242 OPT_pedantic, to 0 otherwise.
20243 * doc/invoke.texi: Update.
20245 2006-01-26 Paolo Bonzini <bonzini@gnu.org>
20247 * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
20248 constants provided by 80387 instructions in the destination mode.
20250 2006-01-26 Richard Guenther <rguenther@suse.de>
20251 Andrew Pinski <pinskia@physics.uc.edu>
20254 partial PR tree-opt/17064
20255 * tree-ssa-structalias.c (intra_create_variable_infos):
20256 Create heap variables for incoming parameters if
20257 flag_argument_noalias > 1.
20258 (find_what_p_points_to): Look through default defs of
20261 2006-01-26 Jeff Law <law@redhat.com>
20264 * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
20265 with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
20266 within the VR_RANGE, use the VR_RANGE as the result, not the
20268 (adjust_range_with_scev): Reject ranges from SCEV which are out of
20269 bounds for the type.
20271 2006-01-26 Daniel Berlin <dberlin@dberlin.org>
20273 * tree-ssa-alias.c (maybe_create_global_var): Change
20274 subvar walking to an assertion that we don't have subvar'd variables.
20276 2006-01-26 Andrew Pinski <pinskia@physics.uc.edu>
20279 * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
20280 Use a new variable, inner. PARM_DECLs are always non-weak.
20282 2006-01-26 Shantonu Sen <ssen@opendarwin.org>
20284 * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
20285 --disable-checking.
20287 2006-01-26 Adam Nemet <anemet@caviumnetworks.com>
20289 * config/mips/mips.md (*clear_upper32): New combiner pattern.
20291 2006-01-26 Richard Earnshaw <richard.earnshaw@arm.com>
20293 * arm.md (smaxsi3, sminsi3): Convert to define_expand.
20294 (smax_insn, smin_insn, smax_0, smin_0): New.
20296 2006-01-26 Hans-Peter Nilsson <hp@axis.com>
20299 * config/cris/cris.c (cris_order_for_addsi3): New function.
20300 * config/cris/cris-protos.h: Prototype it.
20301 * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
20302 (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
20303 (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
20304 (split for "op.S1 [rx=rx+i],ry (swapped)")
20305 (split for "op(s|u).S1 [rx=rx+i],ry")
20306 (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
20307 Apply cris_order_for_addsi3 when generating addsi3 insns.
20309 2006-01-25 Diego Novillo <dnovillo@redhat.com>
20311 * tree.h (TREE_RANGE_CHECK): Fix range predicate.
20312 (TREE_BLOCK): Add call to EXPR_CHECK.
20314 2006-01-25 Diego Novillo <dnovillo@redhat.com>
20317 * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
20318 * tree-pretty-print.c (dump_omp_clause): Extract from ...
20319 (dump_omp_clauses): ... here.
20320 (dump_generic_node): Handle OMP_CLAUSE.
20321 * tree.c (omp_clause_num_ops): New.
20322 (omp_clause_code_name): New.
20323 (tree_code_size): Handle OMP_CLAUSE.
20324 (tree_size): Likewise.
20325 (make_node): Document handling of OMP_CLAUSE.
20326 (tree_node_structure): Handle OMP_CLAUSE.
20327 (omp_clause_check_failed): New.
20328 (omp_clause_range_check_failed): New.
20329 (omp_clause_operand_check_failed): New.
20330 (build_omp_clause): New.
20331 (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
20332 * tree.h (enum omp_clause_code): Declare.
20333 (OMP_CLAUSE_SUBCODE_CHECK): Define.
20334 (OMP_CLAUSE_RANGE_CHECK): Define.
20335 (OMP_CLAUSE_ELT_CHECK): Define.
20336 (omp_clause_check_failed): Declare.
20337 (omp_clause_operand_check_failed): Declare.
20338 (omp_clause_range_check_failed): Declare.
20339 (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
20340 (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
20341 (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
20342 (OMP_CLAUSE_LASTPRIVATE): Likewise.
20343 (OMP_CLAUSE_IF_EXPR): Likewise.
20344 (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
20345 (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
20346 (OMP_CLAUSE_REDUCTION_CODE): Likewise.
20347 (OMP_CLAUSE_REDUCTION_INIT): Likewise.
20348 (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
20349 (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
20350 Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
20351 (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
20352 (OMP_CLAUSE_DEFAULT_KIND): Likewise.
20353 (OMP_CLAUSE_CODE): Define.
20354 (OMP_CLAUSE_SET_CODE): Define.
20355 (OMP_CLAUSE_CODE): Define.
20356 (OMP_CLAUSE_OPERAND): Define.
20357 (struct tree_omp_clause): Declare.
20358 (union tree_node): Add field 'omp_clause'.
20359 * treestruct.def (TS_OMP_CLAUSE): Define.
20360 * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
20361 OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
20362 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
20363 OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
20364 OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
20365 OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
20366 (OMP_CLAUSE): Define.
20367 * print-tree.c (print_node): Handle OMP_CLAUSE.
20368 * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
20369 * c-typeck.c: Likewise.
20370 * gimplify.c: Likewise.
20371 * c-omp.c: Likewise.
20372 * tree-nested.c: Likewise.
20373 * tree-inline.c: Likewise.
20374 * c-parser.c: Likewise.
20375 * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
20378 2006-01-25 Roger Sayle <roger@eyesopen.com>
20380 PR rtl-optimization/25703
20381 * combine.c (try_combine): Handle zero_extract and strict_low_part
20382 of non-lowpart SUBREGs for constant reg_subword_p set optimization.
20384 2006-01-25 Peter Bergner <bergner@vnet.ibm.com>
20386 * global.c: Fix comment typos.
20388 2006-01-25 Andrew Pinski <pinskia@physics.uc.edu>
20391 * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
20392 Use output_addr_const instead of assemble_name.
20394 2006-01-25 Paolo Bonzini <bonzini@gnu.org>
20396 * Makefile.in (sched-vis.o): Update dependencies.
20397 * haifa-sched.c (sched_finish): Clear current_sched_info.
20398 * cfg.c (dump_bb_info): New, split from dump_flow_info.
20399 (dump_flow_info): Call it.
20400 * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
20402 * basic-block.h (dump_bb_info): Declare.
20403 * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
20404 option, and apply options only for dump files whose TDF_RTL,
20405 TDF_TREE, or TDF_IPA bits match.
20406 * rtl.h: Declare new functions exported from sched-vis.c.
20407 * sched-vis.c: Enable also if scheduling is not used.
20408 (print_value): Print the mode of registers if not inside scheduling.
20409 (print_insn): Make it work outside the scheduler. Beautify the output
20411 (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
20413 2006-01-25 Richard Sandiford <richard@codesourcery.com>
20415 * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
20416 * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
20417 a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
20418 depending on the value of CONSTANT_POOL_ADDRESS_P.
20419 * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
20421 * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
20422 rather than SYMBOL_REF_DECL.
20423 (rtx_constant_pool): Remove const_rtx_sym_htab.
20424 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
20425 (init_varasm_status): Don't initialize const_rtx_sym_htab.
20426 (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
20427 Remove handling of const_rtx_sym_htab.
20428 (find_pool_constant): Delete.
20429 (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
20430 rather than find_pool_constant.
20431 (get_pool_constant_for_function): Delete.
20432 (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
20433 find_pool_constant.
20434 * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
20435 (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
20436 (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
20437 (SYMBOL_REF_CONSTANT): New macro.
20438 (get_pool_constant_for_function): Delete.
20439 * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
20440 rather than SYMBOL_REF_DECL.
20441 (i386_pe_mark_dllimport): Likewise.
20442 * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
20443 rather than SYMBOL_REF_DECL.
20444 * config/darwin.c (machopic_indirect_data_reference): Likewise.
20445 (machopic_indirect_call_target): Likewise.
20447 2006-01-25 Eric Botcazou <ebotcazou@adacore.com>
20449 * flow.c (delete_noop_moves): Add missing EOL to dump message.
20451 2006-01-25 Richard Sandiford <richard@codesourcery.com>
20453 * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
20455 2006-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
20457 * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
20459 2006-01-24 David Daney <ddaney@avtrex.com>
20462 * configure.ac (enable_tls): New enable option.
20463 (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
20464 * configure: Regenerate.
20465 * doc/install.texi (--enable-tls): Document new option.
20466 (--disable-tls): Ditto.
20468 2006-01-24 Richard Henderson <rth@redehat.com>
20470 * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
20471 * alias.c (true_dependence): Respect it.
20472 (canon_true_dependence, write_dependence_p): Likewise.
20473 * builtins.c (get_builtin_sync_mem): Set it.
20475 2006-01-25 Zdenek Dvorak <dvorakz@suse.cz>
20477 * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
20480 2006-01-24 DJ Delorie <dj@redhat.com>
20482 * expmed.c (store_bit_field): Don't arbitrarily deny using insv
20483 for storing constants in single-bit bitfields.
20485 2006-01-25 Ben Elliston <bje@au.ibm.com>
20487 * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
20489 2006-01-24 Andrew Pinski <pinskia@physics.uc.edu>
20492 * tree-ssa-pre.c (phi_translate): Return NULL
20493 for AGGREGATE_TYPE's.
20495 2006-01-24 Zack Weinberg <zackw@panix.com>
20497 * genautomata.c (process_state_for_insn_equiv_partition):
20498 Use xcalloc for insn_arcs_array.
20499 * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
20500 (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
20502 2006-01-24 Richard Henderson <rth@redhat.com>
20504 * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
20505 update all callers.
20507 2006-01-23 Paolo Bonzini <bonzini@gnu.org>
20509 PR rtl-optimization/25890
20510 PR rtl-optimization/25905
20511 * combine.c (expand_compound_operation, expand_field_assignment):
20512 Fail if the bitfield's final position is out of bounds.
20514 2006-01-24 Ian Lance Taylor <ian@airs.com>
20516 PR middle-end/25930
20517 * cgraphunit.c (cgraph_output_in_order): Don't clear
20518 cgraph_asm_nodes until after asm strings have been output.
20520 2006-01-23 Adam Nemet <anemet@caviumnetworks.com>
20522 * fix-header.c (read_scan_file): Add new parameter imultilib when
20523 calling register_include_chains.
20525 2006-01-23 Diego Novillo <dnovillo@redhat.com>
20527 * omp-low.c: Update documentation.
20529 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
20530 Daniel Berlin <dberlin@dberlin.org>
20534 * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
20535 return from the function.
20537 2006-01-22 Zack Weinberg <zackw@panix.com>
20539 * rtl.def (match_code): Add second argument.
20540 * genpreds.c (write_extract_subexp): New function.
20541 (write_match_code): Add path argument. Use write_extract_subexp.
20542 (write_predicate_expr): Pass path to write_match_code.
20543 (mark_mode_tests): MATCH_CODE applied to a subexpression does
20544 not perform a mode test.
20545 * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
20546 a subexpression does not constrain the top-level code set.
20547 * read-rtl.c (read_rtx_variadic): New function.
20548 (read_rtx_1): Use it; allow AND and IOR to be variadic.
20549 * doc/md.texi: Document new notation.
20550 * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
20551 (cmpsi_operand): ... here, using new notation.
20553 2006-01-22 Zack Weinberg <zackw@panix.com>
20555 * varray.c: Remove GENERATOR_FILE #ifdefs.
20557 2006-01-22 Zack Weinberg <zackw@panix.com>
20559 * genautomata.c (output_reserved_units_table): Emit nothing if
20560 description->query_units_num is zero. Remove extra blank line.
20561 (output_cpu_unit_reservation_p): Short circuit
20562 if description->query_units_num is zero.
20564 2006-01-22 Zack Weinberg <zackw@panix.com>
20566 * genattrtab.c: Don't include genattrtab.h. Define ATTR_NONE
20567 and ATTR_SPECIAL (from genattrtab.h). Don't define num_dfa_decls
20568 nor any of the random handful of variables that used to be necessary
20569 when this program was linked with rtlanal.o. Prune set of forward
20570 function declarations.
20571 (struct attr_desc): Remove static_p field.
20572 (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
20573 (check_attr_test, make_internal_attr, make_numeric_value): Make static.
20574 (attr_string): Do not read the character one past the length of
20576 (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
20577 (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
20578 (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
20579 (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
20580 (make_automaton_attrs): New.
20581 (main): Do not call into genautomata. Call local gen_bypass
20582 and gen_insn_reserv as appropriate. Call make_automaton_attrs.
20583 Remove special case for insn_alts.
20584 * genautomata.c: Include gensupport.h; not genattrtab.h nor
20585 varray.h (leftover from previous change). Prune set of forward
20586 function declarations. Remove state_alts fields from all
20587 structures. Remove state_alts_table from struct automaton.
20588 Make everything except main static. Do not maintain num_dfa_decls.
20589 Do not maintain state_alts fields of various structures.
20590 (process_decls): Don't validate condexp for dm_insn_reserv decls.
20591 (add_arc): Remove state_alts argument. All callers updated.
20592 (output_reserved_units_table): Emit #ifdef here...
20593 (output_tables): ...not here. Don't generate state_alts tables.
20594 (expand_automata): Don't generate attributes.
20595 (write_automata): Don't generate state_alts functions.
20596 (main): New function.
20597 (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
20598 (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
20599 (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
20600 (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
20601 (BYPASS_P_FUNC_NAME, output_state_alts_table)
20602 (output_automata_list_state_alts_code, output_internal_state_alts_func)
20603 (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
20604 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
20606 * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
20607 * genattrtab.h: Delete file.
20608 * Makefile.in (OBJS-common): Add insn-automata.o.
20609 (insn-automata.o): New rule.
20610 (simple_generated_c): Add insn-automata.c.
20611 (build/genattrtab.o, build/genautomata.o): Update dependencies.
20612 (genprogmd): Add automata.
20613 (build/genattrtab): Needs no extra objects nor libraries.
20614 (build/genautomata): Needs build/vec.o and -lm.
20616 2006-01-22 Zack Weinberg <zackw@panix.com>
20618 * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
20619 (output_dfa_max_issue_rate, locked_states_num): Delete.
20620 (struct automaton): Add locked_states field.
20621 (output_dead_lock_vect): Save number of locked states in
20622 automaton->locked_states. If it is zero, don't print anything.
20623 (output_max_insn_queue_index_def): Define max_insn_queue_index const.
20624 (output_internal_dead_lock_func): Only test the dead_lock_vect
20625 for automata that have locked states.
20626 (output_statistics): Always print the number of locked states for
20627 each automaton. Calculate total number of locked states here.
20628 (write_automata): Don't call output_dfa_max_issue_rate.
20629 * genattrtab.c: Define length_unit_log as a const variable.
20630 * genattr.c: Don't emit MAX_DFA_ISSUE_RATE. Declare
20631 max_insn_queue_index const.
20632 * final.c (length_unit_log): Declare const.
20633 * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
20635 2006-01-22 Zack Weinberg <zackw@panix.com>
20637 * genautomata.c: Include vec.h, not varray.h.
20638 Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
20639 VLA_HWINT_ macros. Change vla_hwint_t to a typedef for
20640 VEC(vect_el_t,heap) *. Convert all uses of VLA_* macros to
20641 VEC_* macros operating on appropriately typed vectors, or to
20642 malloced arrays when the size is known in advance. Const-ify
20643 many char* variables and function arguments. No functional changes.
20644 * Makefile.in (build/varray.o): Delete rule.
20645 (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
20646 (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
20648 2006-01-22 Zack Weinberg <zackw@panix.com>
20650 * gensupport.c: Define get_insn_name and record_insn_name here.
20651 (read_md_rtx): Call record_insn_name as appropriate.
20652 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
20653 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
20654 * genpreds.c, genrecog.c: Don't define get_insn_name nor
20656 * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
20657 (BUILD_VARRAY): Delete.
20658 (genprognormal): Rename genprogmd. Fold in all programs from
20659 genprognoprint; also attrtab.
20660 (build/genattrtab): Just mention genautomata.o and varray.o.
20661 Reorganize a bit, add comments to make the categories clearer.
20663 2006-01-22 Zack Weinberg <zackw@panix.com>
20665 * genconditions.c (condition_table, add_condition): Delete.
20666 (write_conditions): Don't emit n_insn_conditions nor
20667 insn_elision_unavailable. Issue the gcc version #ifdef here,
20668 inside the table, with no #else clause ...
20669 (write_header): ...not here.
20670 (write_writer): New function.
20671 (main): Don't initialize condition_table. Use add_c_test.
20673 * gensupport.c (init_md_reader_args_cb): Handle multiple input
20674 files on the command line.
20675 (maybe_eval_c_test): Don't check insn_elision_unavailable.
20676 Return -1 if there is no entry in the table, don't abort.
20677 (add_c_test, traverse_c_tests): New functions.
20678 * gensupport.h (insn_elision_unavailable, insn_conditions)
20679 (n_insn_conditions): Delete declarations.
20680 (add_c_test, traverse_c_tests): Declare.
20681 * read-rtl.c: Include gensupport.h.
20682 (read_conditions): New function.
20683 (read_rtx): If read_rtx_1 returns 0, treat as EOF.
20684 (read_rtx_1): If we get EOF when we were looking for an initial
20685 open paren, return 0. Call read_conditions when appropriate.
20686 * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
20687 dummy-conditions.o. Eliminate references to insn-conditions.o,
20688 or change them to build/gencondmd.o, as appropriate. Remove
20689 insn-constants.h from $(simple_generated_h) and insn-conditions.c
20690 from $(simple_generated_c). For all files remaining in those
20691 two lists, add insn-conditions.md to the generator command line.
20692 Give insn-constants.h/s-constants their own rules. Add rules
20693 for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
20694 (build/read-rtl.o): Depend on gensupport.h.
20695 (genprognormal): Include preds.
20696 (genprogearly): Rename genprognoprint; only difference is now that
20697 they don't link with $(BUILD_PRINT).
20698 * dummy-conditions.c: Delete.
20700 2006-01-22 Zack Weinberg <zackw@panix.com>
20702 * genextract.c: Don't include insn-config.h. Do include vec.h.
20703 Declare vectors of int, char, and locstr.
20704 (locstr): New typedef.
20705 (struct extraction): Make all array fields into bare pointers.
20706 (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
20707 (insn_code_number): Delete.
20708 (accum_extract): New struct.
20709 (VEC_safe_set_locstr, VEC_char_to_string): New functions.
20710 (gen_insn): Take insn_code_number as an argument. Use an
20711 accum_extract structure instead of loading data directly into
20712 a struct extraction, and having to know how big it might get.
20713 (walk_rtx): Operate entirely on an accum_extract structure.
20714 (print_path): Avoid unnecessary use of printf.
20715 (print_header): New function, split out of main. Distinguish
20716 more carefully between an unrecognizable insn and an insn that
20717 has the code number of a define_expand.
20718 (main): Pass insn_code_number to gen_insn. Call print_header
20719 only after parsing. Avoid unnecessary use of printf.
20720 * Makefile.in (build/vec.o): New rule.
20721 (build/genextract): Depend on build/vec.o.
20722 (build/genextract.o): Don't depend on insn-config.h.
20724 2006-01-22 Zack Weinberg <zackw@panix.com>
20726 * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
20727 $(RUN_GEN). Use pattern rules to factor out as much boilerplate as
20728 practical. Eliminate per-generator-program link rules.
20730 2006-01-23 Andrew Pinski <pinskia@physics.uc.edu>
20732 PR middle-end/24437
20733 * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
20734 with a call expr to ...
20735 * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
20737 2006-01-23 Richard Guenther <rguenther@suse.de>
20739 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
20740 before make_edge with conditional EDGE_TRUE_VALUE.
20742 2006-01-23 Steven Bosscher <stevenb.gcc@gmail.com>
20743 Jan Hubicka <jh@suse.cz>
20744 Richard Guenther <rguenther@suse.de>
20746 PR rtl-optimization/25654
20747 * cfgexpand.c (aggregate_contains_union_type): New function.
20748 (add_alias_set_conflicts): Call it. Make sure to add conflicts
20749 for structure variables that contain a union type.
20751 2006-01-23 Richard Sandiford <richard@codesourcery.com>
20753 * gengtype.c (new_structure): Return the structure.
20754 (create_option): Add an extra "next" argument.
20755 (create_field): New function.
20756 (adjust_field_rtx_def): Use create_option and create_field.
20757 Remove a now-unnecessary call to find_structure.
20758 (adjust_field_tree_def): Likewise.
20759 (note_yacc_type): Remove an unnecessary call to find_structure.
20760 * gengtype.h (new_structure): Return the structure.
20761 (create_option): Add an extra argument.
20762 * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
20763 (option): Adjust calls to create_option.
20765 2006-01-22 David Edelsohn <edelsohn@gnu.org>
20767 * config/rs6000/aix.h (STACK_BOUNDARY): Define.
20769 2006-01-22 Paul Brook <paul@codesourcery.com>
20770 Peter Barada <peter@the-baradas.com>
20772 * config/m68k/m68k.md: Add Coldfire FPU support.
20773 Define FP mode macro and associated attributes.
20774 Use it for float mode patterns.
20775 * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
20776 (LIBCALL_VALUE): Use m68k_libcall_value.
20777 * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
20778 (m68k_function_value): Ditto.
20779 (emit_move_sequence): Ditto.
20780 * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
20781 * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
20782 * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
20783 (MULTILIB_EXCEPTIONS): Ditto.
20784 * config/m68k/m68k.opt: Add mcfv4e.
20785 * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
20786 (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
20787 (m68k_output_function_prologue): Save ColdFire FPU registers.
20788 (m68k_output_function_epilogue): Restore ColdFire FPU registers.
20789 (force_mode, fp_reg_operand, emit_move_sequence): New functions.
20790 (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
20791 ColdFire FPU registers.
20792 (m68k_libcall_value, m68k_function_value): New functions.
20793 * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
20794 (LIBCALL_VALUE): Use m68k_libcall_value.
20795 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
20796 (MASK_COLDFIRE): Add MASK_CFV4E.
20797 (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
20798 (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
20799 (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
20800 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
20801 (GO_IF_LEGITIMATE_ADDRESS): Use it.
20802 (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
20803 * doc/invoke.tex: Document -mcfv4e on m68k.
20805 2006-01-22 Ranjit Mathew <rmathew@gcc.gnu.org>
20807 * doc/contribute.texi: Change CVS to SVN and update the corresponding
20810 2006-01-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
20813 * c-opts.c (c_common_handle_option): Don't include
20814 -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
20815 * doc/invoke.texi (C++ Dialect Options): Document that
20816 -Wnon-virtual-dtor is no longer included in -Wall.
20818 2006-01-21 Joseph S. Myers <joseph@codesourcery.com>
20820 * gcov.c (print_version), gcov-dump.c (print_version),
20821 mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
20824 2006-01-21 Kenneth Zadeck <zadeck@naturalbridge.com>
20826 * df-scan.c (problem_SCAN): Added NULL reset function.
20827 (df_scan_reset_blocks): Added code to call reset block function
20828 (df_bb_refs_delete) Fixed comment.
20829 (df_insn_refs_delete): Made tolerant of deleting non existent info
20830 for dataflow problems that need to be reset.
20831 * df-core.c (df_set_blocks): Ditto.
20832 * df.h (struct df_problem): Added reset_fun.
20833 * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
20834 problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
20835 (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
20836 functions to clear out all references to def-use or use-def chains.
20838 2006-01-21 Ben Elliston <bje@au.ibm.com>
20840 * varasm.c (assemble_real): Initialise data array.
20842 2006-01-20 Paul Brook <paul@codesourcery.com>
20844 Merge from csl-arm-branch.
20845 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
20846 * config/arm/arm.md (movdi): Force operands[1] to a register
20847 if we have a non-register source.
20848 (*arm_movdi, *movdf_soft_insn): Require that one of the
20849 operands be a register.
20850 * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
20851 * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
20853 2006-01-20 DJ Delorie <dj@redhat.com>
20855 * varasm.c (initializer_constant_valid_p): Allow pointers
20856 initialized from integer constants of lesser precision.
20857 (output_constant): Allow non-int-sized pointer modes to be
20858 initialized from integer constants.
20860 2006-01-20 Joseph S. Myers <joseph@codesourcery.com>
20863 * cppdefault.h (struct default_include): Add multilib flag.
20864 * cppdefault.c (cpp_include_defaults): Set it.
20865 * c.opt (-imultilib): New option.
20866 * c-opts.c (imultilib): New.
20867 (c_common_handle_option): Handle -imultilib.
20868 (c_common_post_options): Likewise.
20869 * c-incpath.c (add_standard_paths, register_include_chains):
20871 * c-incpath.h (register_include_chains): Add extra parameter.
20872 * gcc.c (do_spec_1): Generate -imultilib option.
20873 (The Specs Language): Update %I description.
20874 (process_command): Update copyright notice.
20875 * doc/cppopts.texi (-imultilib): Document.
20876 * doc/invoke.texi (-imultilib): Include in option summary.
20877 (%I): Update specs documentation.
20879 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
20881 * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
20883 2006-01-20 Richard Sandiford <richard@codesourcery.com>
20885 * stmt.c (case_bit_test_cmp): Stabilize the sort using code
20888 2006-01-20 Richard Guenther <rguenther@suse.de>
20889 Steven Bosscher <stevenb.gcc@gmail.com>
20891 PR rtl-optimization/24626
20892 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
20893 EDGE_TRUE_VALUE if in RTL mode.
20896 2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
20897 * cfgrtl.c (rtl_verify_flow_info_1): Fix.
20899 2006-01-20 Dirk Mueller <dmueller@suse.com>
20902 * c-parser.c (c_parser_if_body): Use build_empty_stmt()
20903 instead of a special NOP marker.
20904 * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
20905 NOP marker handling.
20906 * c-common.h (empty_body_warning): Add forward declaration.
20907 * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
20908 Now uses IS_EMPTY_STMT() instead of special NOP markers.
20910 2006-01-20 Paul Brook <paul@codesourcery.com>
20912 * Makefile.in (lang_checks): Keep going if mkdir fails.
20914 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
20916 * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
20917 be able to clean out basic block when not necessary.
20918 (df_scan_free): Fixed to properly delete information if df is
20919 unused before calling df_finish.
20920 (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
20921 df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
20923 (df_bb_refs_delete): New function.
20924 (df_refs_delete): Moved per block code to df_bb_refs_delete.
20925 * df-core.c (df_set_blocks): Added code to properly clean out
20926 unused blocks if they are not part of the blocks to consider.
20927 Added additional null check.
20928 (df_compact_blocks): Added basic block parameter to free_bb_fun to
20929 be able to clean out basic block when not necessary
20930 * df.h (df_free_bb_function): Ditto.
20931 (df_bb_refs_delete): New function.
20932 * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
20933 df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
20934 basic block parameter to be able to clean out basic block when not
20936 (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
20937 (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
20938 Fixed to properly delete information if df is unused before
20941 2006-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
20943 PR rtl-optimization/25799
20944 * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
20945 Corrected confluence operator to remove bits from op2 before oring
20946 with op1 rather than removing bits from op1.
20947 (df_ru_transfer_function): Corrected test on wrong bitmap which
20948 caused infinite loop. Both of these problems were introduced in
20949 the dataflow rewrite.
20951 2006-01-19 DJ Delorie <dj@redhat.com>
20953 * reload1.c (find_reload_regs): Note the details of reload
20954 failures in the dump file.
20955 (spill_failure): Likewise.
20957 2006-01-20 Zdenek Dvorak <dvorakz@suse.cz>
20959 * loop-iv.c: Include df.h and hashtab.h.
20960 (enum iv_grd_result): New enum.
20961 (DF_REF_IV, DF_REF_IV_SET): New macros.
20962 (struct biv_entry): New.
20963 (df, bivs): New global variables.
20964 (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
20965 assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
20967 (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
20968 iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
20969 analyzed_for_bivness_p, record_biv): New functions.
20970 (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
20971 get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
20972 iv_analyze, biv_p, iv_analysis_done): Work with df representation of
20974 (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
20976 (iv_number_of_iterations): Use new interface to iv analysis.
20977 * loop-unroll.c: Do not include varray.h.
20978 (analyze_iv_to_split_insn): Use new interface to iv
20980 * loop-unswitch.c (may_unswitch_on): Ditto.
20981 * df.c (df_bitmaps_free): Only work for bbs for that structures are
20983 (df_bb_modify): Realloc tables to the new index.
20984 (df_find_use): New function.
20985 * df.h (df_find_use): Declare.
20986 * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
20988 * cfgloop.h (struct rtx_iv): Remove analysed field.
20989 (iv_get_reaching_def): Removed.
20990 (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
20991 * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
20992 (loop-iv.o): Add df.h and hashtab.h dependency.
20993 * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
20995 2006-01-20 Alan Modra <amodra@bigpond.net.au>
20998 * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
21000 (__floatundisf, __floatundidf): Likewise.
21001 * libgcc2.h (IS_IBM_EXTENDED): Define.
21003 2006-01-19 DJ Delorie <dj@redhat.com>
21005 * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
21007 2006-01-19 Paul Brook <paul@codesourcery.com>
21009 * config/arm/arm.c (arm_compute_func_type): Treat all functions
21010 as nothrow when unwinding tables are disabled.
21012 2006-01-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21015 * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
21016 of bit-field" when in system header.
21018 2006-01-19 DJ Delorie <dj@redhat.com>
21020 * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
21021 the 16 bit shift limit of the m16c.
21023 2006-01-19 Andrew Pinski <pinskia@physics.uc.edu>
21026 * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
21027 * config/i386/i386.c (output_set_got): Output the label if we have one
21028 for the TARGET_DEEP_BRANCH_PREDICTION case.
21030 2006-01-19 Jan Hubicka <jh@suse.cz>
21031 H.J. Lu <hongjiu.lu@intel.com>
21032 Evandro Menezes <evandro.menezes@amd.com>
21034 * invoke.texi (generic): Document
21036 * config.gcc: Make x86_64-* and i686-* default to generic tunning.
21037 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
21038 TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
21039 (x86_use_incdec, x86_pad_returns): New variables
21040 (TARGET_CPU_DEFAULT_generic): New constant
21041 (TARGET_CPU_DEFAULT_NAMES): Add generic.
21042 (enum processor_type): Add generic32 and generic64.
21043 * i386.md (cpu attribute): Add generic32/generic64
21044 (movhi splitter): Behave sanely when both partial_reg_dependency and
21045 partial_reg_stall are set.
21046 (K8 splitters): Enable for generic as well.
21047 * predicates.md (incdec_operand): Use TARGET_INCDEC
21048 (aligned_operand): Avoid memory mismatch stalls.
21049 * athlon.md: Enable for generic64, new patterns for 128bit moves.
21050 * ppro.md: Enable for generic32
21051 * i386.c (generic64_cost, generic32_cost): New.
21052 (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
21053 (x86_use_leave): Enable for generic64. (x86_use_sahf,
21054 x86_ext_80387_constants): Enable for generic32. (x86_push_memory,
21055 x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
21056 x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
21057 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
21058 x86_partial_reg_dependency, x86_memory_mismatch_stall,
21059 x86_accumulate_outgoing_args, x86_prologue_using_move,
21060 x86_epilogue_using_move, x86_arch_always_fancy_math_387,
21061 x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
21062 Enable for generic.
21063 (x86_use_incdec, x86_pad_returns): New.
21064 (override_options): Add generic32 and generic64, translate "generic"
21065 to generic32/generic64 and "i686" to "generic32", refuse
21066 "generic32"/"generic64" as arch target.
21067 (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
21068 (ix86_reorg): Honor PAD_RETURNS.
21070 2006-01-19 Diego Novillo <dnovillo@redhat.com>
21072 * tree-pretty-print.c (dump_generic_node): Handle
21073 OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
21074 * cgraph.c (cgraph_expand_queue): Rename from
21075 cgraph_analyze_queue. Update all users.
21076 * cgraphunit.c (cgraph_assemble_pending_functions): Process
21077 cgraph_expand_queue.
21078 (cgraph_expand_all_functions): Likewise.
21079 (cgraph_finalize_pending_functions): Remove. Update callers.
21081 * tree.h (OMP_DIRECTIVE_P): Define.
21082 (OMP_PARALLEL_FN): Define.
21083 (OMP_PARALLEL_DATA_ARG): Define.
21084 (OMP_SECTIONS_SECTIONS): Define.
21085 * tree-pass.h (pass_expand_omp): Declare.
21086 * omp-low.c (struct omp_region): Declare.
21087 (struct omp_context): Remove fields 'parallel_type',
21088 'parallel_start_ix' and 'parallel_start_additional_args'.
21090 (struct omp_for_data): Rename from struct expand_omp_for_data.
21091 (omp_regions): New static variable.
21092 (root_omp_region): New static variable.
21093 (find_omp_clause): Make static.
21094 (is_in_combined_parallel_ctx): Remove.
21095 (is_combined_parallel): New.
21096 (extract_omp_for_data): Move earlier in the file.
21097 (workshare_safe_to_combine_p): New.
21098 (get_ws_args_for): New.
21099 (determine_parallel_type): Move earlier in the file.
21100 (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
21102 (omp_copy_decl): Likewise.
21103 (create_omp_child_function): Likewise.
21104 (lookup_omp_region): New.
21105 (dump_omp_region): New.
21106 (debug_omp_region): New.
21107 (debug_all_omp_regions): New.
21108 (new_omp_region): New.
21109 (scan_omp_parallel): If parallel_nesting_level > 1, the
21110 directive is nested within another parallel directive.
21111 Set OMP_PARALLEL_FN.
21112 (scan_omp_for): Do not try to handle combined parallel+for
21114 Remove FIXME comment.
21115 (scan_omp_nested): Remove.
21116 (scan_omp_1): Do not call scan_omp_nested when
21117 parallel_nesting_level is > 1.
21118 Do not change the DECL_CONTEXT of local variables found.
21119 (lookup_decl_in_outer_ctx): New.
21120 (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
21121 (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
21122 (lower_reduction_clauses): Rename from expand_reduction_clauses.
21123 (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
21124 If CTX is nested, lookup VAR in the outer context when
21125 building copy assignment.
21126 (lower_send_clauses): Rename from expand_send_clauses.
21127 If CTX is nested, lookup VAR in the outer context when
21128 building copy assignments.
21129 (lower_send_shared_vars): Rename from expand_send_shared_vars.
21130 If CTX is nested, lookup VAR in the outer context when
21131 building copy assignments.
21132 (expand_parallel_call): Rename from build_parallel_call.
21133 Handle combined parallel+workshare cases.
21134 Re-implement to emit code into the CFG.
21136 (expand_omp_parallel): Re-implement to emit code into the CFG.
21137 Call move_sese_region_to_fn to outline the sub-graph
21138 containing the parallel region.
21139 (expand_omp_for_1): Remove.
21140 (expand_omp_for_generic): Re-implement to emit code into the
21142 (expand_omp_for_static_nochunk): Likewise.
21143 (expand_omp_for_static_chunk): Likewise.
21144 (expand_omp_for): Likewise.
21145 (expand_omp_sections): Likewise.
21146 (remove_exit_barriers): New.
21147 (expand_omp_synch): New.
21149 (build_omp_regions_1): New.
21150 (build_omp_regions): New.
21151 (execute_expand_omp): New.
21152 (gate_expand_omp): New.
21153 (pass_expand_omp): Define.
21154 (lower_omp_sections): Rename from expand_omp_sections.
21155 Set OMP_SECTIONS_SECTIONS.
21156 (lower_omp_single_simple): Rename from expand_omp_single_simple.
21157 (lower_omp_single_copy): Rename from expand_omp_single_copy.
21158 (lower_omp_single): Rename from expand_omp_simple.
21159 (lower_omp_master): Rename from expand_omp_master.
21160 (lower_omp_ordered): Rename from expand_omp_ordered.
21161 (lower_omp_critical): Rename from expand_omp_critical.
21162 (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
21163 (lower_omp_for): Re-implement.
21164 (lower_omp_parallel): Re-implement.
21165 (lower_regimplify): Rename from expand_regimplify.
21166 (lower_omp_1): Rename from expand_omp_1.
21167 If there are syntax errors in the program, replace every
21168 OpenMP directive with NOP.
21169 Call lower_omp_* instead of expand_omp_*.
21170 (lower_omp): Rename from expand_omp.
21172 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
21173 * tree-gimple.h (enum omp_parallel_type): Remove.
21174 (gimple_boolify): Declare extern.
21175 (find_omp_clause, determine_parallel_type): Remove.
21177 * gimple-low.c (lower_omp_directive): New.
21178 (lower_stmt): Call it.
21179 (record_vars_into): Move from ...
21180 (record_vars): ... here.
21181 Call record_vars_into with current_function_decl.
21183 * gimplify.c (struct gimplify_ctx): Remove fields
21184 combined_pre_p and combined_ctxp. Update users.
21185 (get_formal_tmp_var): Add documentation.
21186 (gimple_boolify): Make extern.
21187 (gimplify_expr_in_ctx): Remove. Update callers.
21188 (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
21189 will always be a BIND_EXPR.
21190 (gimplify_expr): Handle OMP_RETURN_EXPR.
21191 * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
21192 (OMP_PARALLEL): Add 3 operands.
21193 (OMP_SECTIONS): Add 1 operand.
21194 (OMP_RETURN_EXPR): Define.
21196 * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
21197 (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
21198 * tree-iterator.c (alloc_stmt_list): Assert that we are not
21199 creating a circular free list.
21200 (free_stmt_list): Assert that we are not freeing stmt_list_cache.
21202 * tree-flow.h (move_sese_region_to_fn): Declare.
21203 (record_vars_into): Declare.
21204 * tree-cfg.c (make_omp_sections_edges): New.
21205 (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
21206 OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
21207 OMP_SECTIONS and OMP_SECTION.
21208 (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
21209 (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
21210 (verify_stmt): Do not handle OMP_DIRECTIVE_P.
21211 (gather_blocks_in_sese_region): New.
21212 (struct move_stmt_d): Declare.
21213 (move_stmt_r): New.
21214 (move_block_to_fn): New.
21215 (move_sese_region_to_fn): New.
21217 * passes.c (init_optimization_passes): Schedule
21218 pass_expand_omp after pass_init_datastructures.
21220 * tree-ssa-operands.c (get_expr_operands): Handle
21221 OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
21222 OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
21224 2006-01-19 Jeff Law <law@redhat.com>
21226 * tree-vrp.c (extract_range_from_assert): Refine the result range
21227 if the variable referenced by the ASSERT_EXPR has a range and
21228 either the tentative result range or the previous range is a
21231 2006-01-19 Richard Sandiford <richard@codesourcery.com>
21233 * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
21235 2006-01-19 Jan Hubicka <jh@suse.cz>
21237 * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
21239 2006-01-19 Paolo Bonzini <bonzini@gnu.org>
21241 * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
21242 (expand_compound_operation, expand_field_assignment): Fail if the
21243 bit lengths of an extract operation are out of range.
21244 (make_extraction): Compute wanted_inner_mode based on the position
21245 and length of the extraction. Make it extraction_mode for non-constant
21246 positions, and do not modify offset in that case. When generating a
21247 new MEM, use a mode that can hold the extraction while keeping correct
21248 alignment. Remove code that supported MEMs wrapped by USEs.
21249 (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
21251 2006-01-19 Andreas Krebbel <krebbel1@de.ibm.com>
21253 * config/s390/s390.md ("Y", "y"): New mode attribute.
21254 ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
21255 "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
21256 "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
21257 "*addsi3_imm_cc", "*addsi3_carry1_cc",
21258 "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
21259 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
21260 "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
21261 "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
21262 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
21263 "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
21264 "addsi3", "subsi3"): Insn patterns removed.
21265 ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
21266 "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
21267 "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
21268 "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
21269 "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
21270 "*sub<mode>3_cconly2"): New insn patterns.
21271 ("addsi3", "subsi3"): New expanders.
21273 2006-01-19 Dorit Nuzman <dorit@il.ibm.com>
21275 * Makefile.in (tree-vect-patterns.o): Add rule for new file.
21276 * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
21277 existing STMT_VINFO_VECTYPE if available.
21278 (vect_mark_relevant): Add special handling for stmts that are
21279 marked as STMT_VINFO_IN_PATTERN_P.
21280 (vect_analyze_loop): Call vect_pattern_recog.
21281 * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
21282 * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
21284 (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
21285 (vect_recog_func_ptr): New function-pointer type.
21286 * tree-vect-patterns.c: New file.
21287 (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
21288 (vect_recog_dot_prod_pattern, vect_pattern_recog):
21289 (vect_pattern_recog_1): New functions.
21290 (vect_pattern_recog_funcs): New array of function pointers.
21292 * tree-vectorizer.h (ternary_op): New enum value.
21293 * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
21294 declaration. Revised documentation. Removed redundant dump prints.
21295 Removed redundant argument. Added support for reduction patterns.
21296 (vectorizable_reduction): Added support for reduction patterns.
21297 (vect_transform_stmt): Added support for patterns.
21299 * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
21300 * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
21301 * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
21302 (expand_widen_pattern_expr): New function.
21303 (init_optabs): Initialize new optabs udot_prod_optab,
21305 * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
21306 (sdot_prod_optab, udot_prod_optab): Define new optabs.
21307 (expand_widen_pattern_expr): New function declaration.
21308 * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
21310 * tree-inline.c (estimate_num_insns_1): Added cases for new
21311 tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
21312 * tree-pretty-print.c (dump_generic_node): Likewise.
21313 (op_prio): Likewise.
21314 (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
21315 * tree-ssa-operands.c (get_expr_operands): Added case for
21317 * tree-vect-patterns.c (widened_name_p): New function.
21318 (vect_recog_dot_prod_pattern): Added function implementation.
21319 * tree-vect-transform.c (get_initial_def_for_reduction): Added
21320 cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
21321 * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
21322 * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
21324 * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
21325 * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
21326 * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
21327 (init_optabs): Initialize new optabs widen_ssum_optab,
21329 * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
21330 (widen_ssum_optab, widen_usum_optab): Define new optabs.
21331 * tree-vect-generic.c: (expand_vector_operations_1): Check type of
21332 use instead of type of def.
21333 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
21334 function implementation.
21335 * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
21336 widen_ssumv8hi): New.
21338 * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
21341 2006-01-19 Richard Sandiford <richard@codesourcery.com>
21344 * c-decl.c (add_flexible_array_elts_to_size): New function.
21345 (finish_decl): Use it.
21347 2006-01-18 Andrew Pinski <pinskia@physics.uc.edu>
21349 * diagnostic.h: Include options.h.
21350 * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
21351 dependancies for diagnostic.h.
21352 * Makefile.in (DIAGNOSTIC_H): Add options.h.
21354 2006-01-16 Daniel Berlin <dberlin@dberlin.org>
21356 * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
21357 (ssa_ro_call_cache_valid): Ditto.
21358 * tree-ssa-alias.c (sort_tags_by_id): New function.
21359 (init_transitive_clobber_worklist): Ditto.
21360 (add_to_worklist): Ditto.
21361 (mark_aliases_call_clobbered): Ditto.
21362 (compute_tag_properties): Ditto.
21363 (set_initial_properties): Ditto.
21364 (compute_call_clobbered): Ditto.
21365 (compute_may_aliases): Call compute_call_clobbered and grouping.
21366 (compute_flow_sensitive_aliasing): Remove clobbering related code.
21367 (compute_flow_insensitive_aliasing): Grouping now happens in our
21369 (setup_pointers_and_addressables): Remove clobbering related code.
21370 (add_may_alias): Ditto.
21371 (replace_may_alias): Ditto.
21372 (get_nmt_for): Ditto.
21373 (create_global_var):
21374 (is_escape_site): Return an escape_type enumeration.
21375 * tree-flow-inline.h (is_call_clobbered): Global var does not
21376 imply call clobbered.
21377 (mark_call_clobbered): Take a reason for marking this. Remove
21378 marking of globalness, and cache invalidation.
21379 (clear_call_clobbered): Remove cache invalidation code.
21380 * tree-dfa.c (dump_variable): If details is on, dump the reason
21382 * tree-outof-ssa.c (create_temp): Copy escape mask from original
21384 * tree-flow.h (struct ptr_info_def): Add escape mask member.
21385 (struct var_ann_d): Ditto.
21386 (enum escape_type): New.
21387 (mark_call_clobbered): Adjust prototype.
21388 * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
21389 are never call clobbered.
21390 Record reasons for escaping.
21391 * tree-ssa-structalias.h (is_escape_site): Update prototype.
21392 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
21393 (ssa_ro_call_cache_valid): Ditto.
21394 (clobbered_v_may_defs): Ditto.
21395 (clobbered_vuses): Ditto.
21396 (ro_call_vuses): Ditto.
21397 (clobber_stats): New.
21398 (init_ssa_operands): Zero out clobber stats.
21399 (fini_ssa_operands): Print out clobber stats.
21400 (get_call_expr_operands): Pass callee fndecl to
21401 add_call_read_ops).
21402 (add_call_clobber_ops): Remove use of cache.
21403 Add use of PURE_CONST information.
21404 (add_call_read_ops): Remove use of cache.
21405 Add use of static not_read information.
21407 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
21409 Introduce TLS descriptors for i386 and x86_64.
21410 * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
21411 (TARGET_ANY_GNU_TLS): New macro.
21412 (enum tls_dialect): Added TLS_DIALECT_GNU2.
21413 (struct machine_function): Add tls_descriptor_call_expanded_p.
21414 (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
21415 (ix86_current_function_calls_tls_descriptor): Likewise.
21416 * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
21417 (override_options): Introduce gnu2 tls dialect.
21418 (ix86_frame_pointer_required): Functions containing TLSCALLs are
21420 (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
21422 (legitimize_tls_address): Adjust logic for GNU2 TLS.
21423 (ix86_init_machine_status): Initialize new field.
21424 (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
21425 (ix86_tls_module_base): New.
21426 * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
21427 * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
21428 (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
21429 (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
21430 (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
21431 (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
21432 (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
21433 (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
21434 * config/i386/predicates.md (tls_modbase_operand): New.
21435 (tp_or_register_operand): New.
21437 2006-01-18 Daniel Berlin <dberlin@dberlin.org>
21439 * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
21440 (look_for_address_of): Ditto.
21441 (ipa_init): Walk the function decls.
21442 (static_execute): Don't set readonly on FUNCTION_DECL's.
21444 2006-01-18 Roger Sayle <roger@eyesopen.com>
21446 * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
21447 for shifts where the source and destination registers are different.
21449 2006-01-18 Paul Brook <paul@codesourcery.com>
21451 Merge from csl-arm-branch.
21452 2005-03-14 Julian Brown <julian@codesourcery.com>
21453 * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
21454 (aeabi_llsl): Likewise.
21455 (ashrdi3): Likewise.
21456 (aeabi_lasr): Likewise.
21457 (lshrdi3): Likewise.
21458 (aeabi_llsr): Likewise.
21459 2005-03-10 Julian Brown <julian@codesourcery.com>
21460 * config.gcc: Disable shared libgcc for SymbianOS.
21461 * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
21463 2006-01-18 DJ Delorie <dj@redhat.com>
21465 * c-pragma.c (handle_pragma_diagnostic): New.
21466 (init_pragma): Register it.
21467 * doc/extend.texi: Document it.
21469 * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
21470 * diagnostic.h (diagnostic_classify_diagnostic): Declare.
21471 (diagnostic_context): Add classify_diagnostic[].
21472 * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
21473 as errors if they're overridden to DK_WARNING.
21474 (diagnostic_initialize): Initialize classify_diagnostic[].
21475 (diagnostic_set_kind_override): New.
21476 (diagnostic_report_diagnostic): Check for kind changes.
21477 * opts.c (common_handle_option): Take lang_mask. Update callers.
21478 Handle OPT_Werror_.
21479 * common.opt (Werror=): New.
21480 * doc/invoke.texi: Document -Werror=*
21482 2006-01-18 Jeff Law <law@redhat.com>
21484 * tree-vrp.c (test_for_singularity): Correct test for new
21485 min limit. Use operand_equal_p rather than pointer equality
21486 for testing if new min/max values are equal.
21488 * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
21489 using range information until after propagation and folding.
21491 2006-01-18 Richard Henderson <rth@redhat.com>
21492 Aldy Hernandez <aldyh@redhat.com>
21493 Jakub Jelinek <jakub@redhat.com>
21494 Diego Novillo <dnovillo@redhat.com>
21496 * omp-low.c: New file.
21497 * c-omp.c: New file.
21499 2006-01-18 Richard Henderson <rth@redhat.com>
21500 Jakub Jelinek <jakub@redhat.com>
21501 Diego Novillo <dnovillo@redhat.com>
21503 * doc/invoke.texi: Document -fopenmp.
21504 * tree-dump.h (debug_function): Declare.
21505 * hooks.c (hook_bool_tree_bool_false): New function.
21506 (hook_tree_tree_null): Remove.
21507 (hook_tree_tree_tree_null): New.
21508 * hooks.h: Update to match.
21509 * tree-pretty-print.c (debug_tree_chain): New.
21510 (print_generic_expr): Handle TDF_CHAIN.
21511 (dump_generic_node): Handle BLOCK.
21512 Do not abort with incomplete SWITCH_EXPRs.
21513 Do not dump body of an OpenMP directive if TDF_SLIM is given.
21514 <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
21515 print space after directive name.
21516 <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
21517 Handle OMP_MASTER and OMP_ORDERED.
21518 Handle printing of OMP_BODY just in one place, goto
21519 dump_omp_body in the rest of OMP_* nodes that have
21521 Don't handle clause nodes here. Update omp statements to
21522 use dump_omp_clauses.
21523 Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
21524 OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
21525 OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
21526 GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
21527 GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
21528 GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
21529 Adjust output for GOMP_PARALLEL.
21530 (dump_omp_clauses): New.
21531 (print_declaration): Dump DECL_VALUE_EXPR.
21532 (op_symbol_1): Split out of op_symbol.
21533 (dumping_stmts): Remove. Update all users.
21534 * cgraph.c (cgraph_analyze_queue): New.
21535 (cgraph_add_new_function): New.
21536 * cgraph.h (cgraph_analyze_queue): Declare.
21537 (cgraph_add_new_function): Declare.
21538 (cgraph_lower_function): Remove.
21539 * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
21540 nodes. Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
21541 and TYPE_P nodes in its default clause.
21542 (empty_body_p): New.
21543 (tree_range_check_failed): New.
21544 (build5_stat): New.
21545 * tree.h (OMP_CLAUSE_REDUCTION_INIT,
21546 OMP_CLAUSE_REDUCTION_MERGE,
21547 OMP_CLAUSE_REDUCTION_PLACEHOLDER,
21548 OMP_CLAUSE_PRIVATE_DEBUG,
21549 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
21550 OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
21551 OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
21552 OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
21553 OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
21554 OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
21555 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
21556 OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
21557 OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
21558 OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
21559 OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
21560 OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
21561 OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
21562 OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
21563 (TREE_RANGE_CHECK): New.
21564 (empty_body_p): Declare.
21565 (enum omp_clause_default_kind): New.
21566 (build_string_literal): Declare.
21567 (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
21568 (build5_stat, build5): Declare.
21569 * tree-pass.h (TDF_CHAIN): Define.
21570 * tree-pass.h (PROP_gimple_lomp): Define.
21571 (pass_lower_omp): Declare.
21572 * diagnostic.h (debug_tree_chain): Declare.
21573 * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
21575 (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
21576 * builtins.c (build_string_literal): Make extern.
21577 * gcc.c (include_spec_function): New.
21578 (static_spec_functions): Add it.
21579 (main): Move load of libgomp.spec ...
21580 (LINK_COMMAND_SPEC): ... here.
21581 (link_gomp_spec): New.
21582 (static_specs): Include it.
21583 (LINK_COMMAND_SPEC): Add link_gomp.
21584 (GOMP_SELF_SPECS): New.
21585 (driver_self_specs): Include it.
21586 (switch_matches): Don't mark inline.
21587 (main): Load libgomp.spec.
21588 * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
21589 OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
21590 and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
21591 * tree-gimple.h (enum omp_parallel): Declare.
21592 (determine_parallel_type): Declare.
21593 (omp_firstprivatize_variable): Declare.
21594 (omp_reduction_init): Declare.
21595 (diagnose_omp_structured_block_errors): Declare.
21596 (struct walk_stmt_info): Add want_return_expr.
21597 (struct walk_stmt_info): Add want_bind_expr, want_locations.
21598 (find_omp_clause): Declare.
21599 (insert_field_into_struct): Declare.
21600 (struct walk_stmt_info): Move from tree-nested.c
21601 (walk_stmts): Declare.
21602 * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
21604 * cgraphunit.c (cgraph_lower_function): Make static.
21605 (cgraph_finalize_pending_functions): New.
21606 (cgraph_finalize_function): Call it.
21607 (cgraph_finalize_compilation_unit): Likewise.
21608 * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
21609 BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
21610 (BT_FN_UINT_UINT): New.
21611 (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
21612 DEF_FUNCTION_TYPE_VAR_4): Document.
21613 (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
21614 BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
21615 BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
21616 BT_FN_VOID_OMPFN_PTR_UINT_UINT,
21617 BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
21618 BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
21619 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
21620 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
21621 * builtins.def: Update DEF_BUILTIN comment to include COND argument.
21622 Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
21623 into separate files.
21624 (DEF_GOMP_BUILTIN): New.
21625 (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
21626 BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
21627 BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
21628 BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
21629 BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
21630 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
21631 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
21632 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
21633 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
21634 BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
21635 BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
21636 BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
21637 BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
21638 BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
21639 BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
21640 BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
21641 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
21642 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
21643 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
21644 BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
21645 BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
21646 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
21647 BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
21648 BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
21649 BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
21650 BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
21651 * sync-builtins.def: New file, moved from builtins.def.
21652 * omp-builtins.def: New file, moved from builtins.def.
21653 * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
21654 * gimple-low.c (lower_function_body): Clear data.
21655 (lower_stmt): Do not handle COMPOUND_EXPR.
21656 Remove call to print_node_brief.
21657 * c-tree.h (c_finish_omp_clauses): New prototype.
21658 (C_DECL_THREADPRIVATE_P): Define.
21659 (lookup_name_no_remap, c_omp_remap_private): Remove
21660 (c_begin_omp_parallel, c_finish_omp_parallel): Update.
21661 (check_for_loop_decls): Update decl.
21662 (lookup_name_no_remap, c_omp_remap_private): Declare.
21663 (build_indirect_ref, build_modify_expr, pushdecl,
21664 pushdecl_top_level): Move to c-common.h.
21665 * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
21666 before the switch, but just in the 2 places that need it.
21667 * c-decl.c (diagnose_mismatched_decls): Do not check for
21668 mismatched thread-local attributes when OLDDECL is marked
21669 threadprivate and NEWDECL has no thread-local attributes.
21670 (merge_decls): Merge C_DECL_THREADPRIVATE_P.
21671 (c_gimple_diagnostics_recursively): Rename from
21672 c_warn_unused_result_recursively. Invoke
21673 diagnose_omp_structured_block_errors.
21674 (check_for_loop_decls): Return a singular decl found.
21675 * langhooks.c (lhd_omp_predetermined_sharing): Return
21676 OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
21677 (lhd_omp_firstprivatize_type_sizes): New.
21678 (lhd_omp_assignment): New.
21679 (lhd_omp_predetermined_sharing): New.
21680 * langhooks.h (struct gimplify_omp_ctx): Forward declare.
21681 (struct lang_hooks_for_types): Add
21682 omp_firstprivatize_type_sizes, omp_privatize_by_reference,
21683 omp_predetermined_sharing, omp_disregard_value_expr,
21684 omp_private_debug_clause, omp_clause_default_ctor,
21685 omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
21686 (c_finish_omp_clauses): New.
21687 (c_finish_bc_stmt): Diagnose break within omp for.
21688 (c_begin_omp_parallel, c_finish_omp_parallel): New.
21689 (build_unary_op): Return error_mark after reporting
21691 (build_modify_expr): Likewise.
21692 * gimplify.c: Include optabs.h and pointer-set.h.
21693 (enum gimplify_omp_var_data): Declare.
21694 (struct gimplify_omp_ctx): Declare.
21695 (struct gimplify_ctx): Add fields prev_context, combined_pre_p
21697 (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
21698 (push_gimplify_context, pop_gimplify_context): Allow nesting.
21699 (splay_tree_compare_decl_uid): New.
21700 (new_omp_context): New.
21701 (delete_omp_context): New.
21702 (gimple_add_tmp_var): Call omp_add_variable.
21703 (gimplify_bind_expr): Likewise.
21704 (gimplify_var_or_parm_decl): If omp_notice_variable returned
21705 true, disregard DECL_VALUE_EXPR on the decl if any.
21706 (gimplify_expr_in_ctx): New.
21707 (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
21708 omp_add_variable, omp_notice_variable, omp_is_private
21709 gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
21710 gimplify_adjust_omp_clauses, gimplify_omp_parallel
21711 gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
21712 gimplify_omp_atomic_fetch_op, goa_stabilize_expr
21713 gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
21714 gimplify_omp_atomic): New.
21715 (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
21716 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
21717 OMP_CRITICAL and OMP_ATOMIC.
21718 (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
21719 * c-pragma.h (enum pragma_kind): Add
21720 PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
21721 PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
21722 PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
21723 PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
21724 PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
21725 PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
21726 PRAGMA_OMP_THREADPRIVATE.
21727 * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
21728 OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
21729 OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
21730 OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
21731 OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
21732 OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
21733 OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
21734 OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
21735 OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
21736 * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
21737 * tree-ssa-dce.c (find_control_dependence): Do not assume that
21738 ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
21739 * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
21741 (struct nesting_info): Add field_map,
21742 suppress_expansion, debug_var_chain.
21743 (create_nesting_tree): Initialize them.
21744 (lookup_field_for_decl): Use field_map.
21745 (get_nonlocal_debug_decl, get_local_debug_decl): New.
21746 (convert_local_omp_clauses): New.
21747 (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
21748 (walk_body): Split out of walk_function.
21749 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
21750 (convert_nonlocal_reference): Handle omp statements.
21751 (convert_local_reference): Likewise.
21752 (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
21753 (unnest_nesting_tree): New.
21754 (lower_nested_functions): Call it.
21755 (insert_field_into_struct): Make extern.
21756 (struct walk_stmt_info): Move to tree-gimple.h.
21757 (walk_stmts): Make extern.
21758 * omp-builtins.def: New file.
21759 * tree-iterator.c (expr_only): Clarify comment.
21760 * c-common.h (pushdecl_top_level, pushdecl,
21761 build_modify_expr, build_indirect_ref,
21762 c_finish_omp_master, c_finish_omp_critical,
21763 c_finish_omp_ordered, c_finish_omp_barrier,
21764 c_finish_omp_atomic, c_finish_omp_flush,
21765 c_finish_omp_for, c_split_parallel_clauses,
21766 omp_clause_default_kind, c_omp_sharing_predetermined,
21767 c_omp_remap_decl): Declare.
21768 * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
21769 (OBJS-common): Add omp-low.o.
21770 (c-omp.o, omp-low.o): Add.
21771 (gimplify.o): Add dependency on $(OPTABS_H).
21772 (GTFILES): Add omp-low.c.
21773 (gt-stringpool.h): Add.
21774 * tree-cfg.c (set_bb_for_stmt): Do not update the
21775 block-to-labels map if we are currently expanding to RTL.
21776 (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
21778 Handle IDENTIFIER_NODE.
21779 (tree_verify_flow_info): Do not ICE when emitting error
21780 messages about invalid labels.
21781 (dump_function_to_file): Reset CFUN before emitting the body
21783 (debug_function): New.
21784 * passes.c (init_optimization_passes): Schedule
21786 * langhooks-def.h (lhd_omp_predetermined_sharing,
21787 lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
21789 (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
21790 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
21791 (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
21792 LANG_HOOKS_OMP_PREDETERMINED_SHARING,
21793 LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
21794 LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
21795 LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
21796 LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
21797 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
21798 LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
21799 (LANG_HOOK_DECLS): Use them.
21801 2006-01-18 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
21802 Richard Henderson <rth@redhat.com>
21803 Jakub Jelinek <jakub@redhat.com>
21804 Diego Novillo <dnovillo@redhat.com>
21806 * c-parser.c (pragma_omp_clause): Define.
21807 (c_parser_declaration_or_fndef): Document OpenMP syntax.
21808 (c_parser_compound_statement): Likewise.
21809 (c_parser_statement): Likewise.
21810 (c_parser_pragma): Handle omp pragmas.
21811 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
21812 OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
21813 (c_parser_omp_clause_name, check_no_duplicate_clause,
21814 c_parser_omp_variable_list,
21815 c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
21816 c_parser_omp_clause_copyprivate,
21817 c_parser_omp_clause_default,
21818 c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
21819 c_parser_omp_clause_lastprivate,
21820 c_parser_omp_clause_nowait,
21821 c_parser_omp_clause_num_threads,
21822 c_parser_omp_clause_ordered, c_parser_omp_clause_private,
21823 c_parser_omp_clause_reduction,
21824 c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
21825 c_parser_omp_all_clauses, c_parser_omp_structured_block,
21826 c_parser_omp_atomic, c_parser_omp_barrier,
21827 c_parser_omp_critical, c_parser_omp_flush,
21828 c_parser_omp_for_loop, c_parser_omp_for,
21829 c_parser_omp_master, c_parser_omp_ordered,
21830 c_parser_omp_sections_scope, c_parser_omp_sections,
21831 c_parser_omp_parallel, c_parser_omp_single,
21832 c_parser_omp_construct, c_parser_omp_threadprivate): New.
21833 * c-pragma.c (init_pragma): Do omp pragma registration here.
21834 * c.opt (fopenmp): New flag.
21836 2006-01-18 Eric Christopher <echristo@apple.com>
21838 * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
21839 * config/darwin.h (GOMP_SELF_SPECS): Define.
21841 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
21843 * rtl.h: Remove the prototype for reg_alloc.
21845 2006-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21848 * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
21849 hppa[12]*-*-hpux11*): Override default shared libgcc version for both
21850 sjlj and dwarf2 exception handling.
21851 * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
21852 Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
21853 * pa/pa.c (function_value): Treat complex and vector types as
21855 (function_arg): Likewise. Only pass scalar floats in the floating
21856 point argument registers.
21857 * pa/t-slibgcc-dwarf-ver: New file.
21858 * pa/t-slibgcc-sjlj-ver: New file.
21859 * pa/t-slibgcc-elf-ver: Delete file.
21861 2006-01-19 Alan Modra <amodra@bigpond.net.au>
21863 * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
21864 unlikely_test_section_p test.
21866 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
21868 * mode-switching.c (optimize_mode_switching): Make it static.
21869 * basic-block.h: Remove the prototype for
21870 optimize_mode_switching.
21872 * modulo-sched.c (sms_schedule): Make it static.
21873 * rtl.h: Remove the prototype for sms_schedule.
21875 * postreload-gcse.c (gcse_after_reload_main): Make it static.
21876 * rtl.h: Remove the prototype for gcse_after_reload_main.
21878 * reg-stack.c (reg_to_stack): Make it static.
21879 * rtl.h: Remove the prototype for reg_to_stack.
21881 * regrename.c (regrename_optimize, copyprop_hardreg_forward):
21883 * rtl.h: Remove the prototypes for regrename_optimize and
21884 copyprop_hardreg_forward.
21886 2006-01-18 Eric Botcazou <ebotcazou@adacore.com>
21888 * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
21889 alpha_split_tmode_pair. Add 'mode' and 'fixup_overlap' arguments.
21890 Test against the appropriate null constant for the mode.
21891 If 'fixup_overlap' is true, swap the operands if they overlap.
21892 (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
21893 * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
21894 alpha_split_tmode_pair and adjust for above change.
21895 * config/alpha/alpha.md (movtf_internal): Adjust call to
21896 alpha_split_tfmode_pair and rely on it to swap the operands.
21897 (movti_internal): New insn and post-reload splitter.
21898 (movti): New expander.
21900 2006-01-18 Philippe De Muyter <phdm@macqel.be>
21902 * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
21905 2006-01-18 Kazu Hirata <kazu@codesourcery.com>
21907 * rtlanal.c (global_reg_mentioned_p_1,
21908 global_reg_mentioned_p): Remove.
21909 * rtl.h: Remove the prototype for global_reg_mentioned_p.
21911 * flow.c (initialize_uninitialized_subregs): Make it static.
21912 * rtl.h: Remove the prototype for
21913 initialize_uninitialized_subregs.
21915 * function.c (instantiate_virtual_regs): Make it static.
21916 * function.h: Remove the prototype for
21917 instantiate_virtual_regs.
21919 * regmove.c (regmove_optimize, combine_stack_adjustments):
21921 * rtl.h: Remove the prototypes for regmove_optimize and
21922 combine_stack_adjustments.
21924 2006-01-17 Roger Sayle <roger@eyesopen.com>
21926 * config/i386/i386.c (COSTS_N_BYTES): New macro.
21927 (size_cost): Encode costs in bytes so that a reg-reg addition is
21928 equivalent to COSTS_N_INSNS(1).
21929 (override_options): Use the size_cost.branch_cost as the default
21930 ix86_branch_cost when optimizing for size.
21932 2006-01-18 Ben Elliston <bje@au.ibm.com>
21934 * Makefile.in (D32PBIT_FUNCS): New.
21935 (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
21936 (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
21937 D64PBIT_FUNCS and D128PBIT_FUNCS.
21938 (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
21939 * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
21941 (decnumber_dep): Define.
21942 * doc/libgcc.texi (Decimal float library routines): New node.
21943 * config/dfp-bit.h, config/dfp-bit.c: New files.
21945 2006-01-18 Ben Elliston <bje@au.ibm.com>
21947 * expr.c (emit_move_change_mode): Always adjust addresses, not
21948 just during reload. Copy replacements only during reload.
21949 (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
21950 emit_move_via_integer.
21952 2006-01-17 Shantonu Sen <ssen@opendarwin.org>
21954 * Makefile.in (check-%, check-consistency): Use $${srcdir}
21955 instead of $(srcdir) and ${srcdir}.
21957 2006-01-17 Richard Earnshaw <rearnsha@arm.com>
21960 PR middle-end/11135
21961 * arm.h (struct machine_function): Add pic_reg.
21962 * arm.c (arm_pic_register): Make unsigned.
21963 (arm_override_options): Only set arm_pic_register if
21964 TARGET_SINGLE_PIC_BASE.
21965 (use_return_insn): Only test for a pic register if it is fixed.
21966 (arm_compute_save_reg0_reg12_mask): Likewise.
21967 (thumb_compute_save_reg_mask): Likewise.
21968 (legitimate_pic_operand): Factor out some known invariants.
21969 (legitimize_pic_address): If we don't have a fixed pic register,
21970 then set up a pseudo in the function entry sequence. Handle the
21971 pic base being in a pseudo.
21972 (arm_load_pic_register): Handle the pic register being in a pseudo.
21973 (arm_expand_prologue): Only set up the pic register if it is fixed.
21974 (thumb_expand_prologue): Likewise.
21975 * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
21976 (pic_load_addr_based_insn): Likewise.
21977 (builtin_setjmp_receiver): Don't restore the pic base if it isn't
21980 2006-01-18 Ben Elliston <bje@au.ibm.com>
21982 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
21983 decimal float modes for all floating point registers.
21985 * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
21986 match_code "mem" with match_test "macho_lo_sum_memory_operand".
21988 2006-01-17 Jakub Jelinek <jakub@redhat.com>
21991 * c-typeck.c (build_unary_op): Fold offsetof-like expressions
21992 even when the pointer is not NULL.
21994 2006-01-16 Ian Lance Taylor <ian@airs.com>
21996 * common.opt (ftoplevel-reorder): New option.
21997 * cgraph.c (cgraph_asm_nodes): New global variable.
21998 (cgraph_asm_last_node): New static variable.
21999 (cgraph_order): New global variable.
22000 (cgraph_create_node): Set new order field.
22001 (cgraph_varpool_node): Likewise.
22002 (decide_is_variable_needed): Return true if not
22003 flag_toplevel_reorder.
22004 (cgraph_add_asm_node): New function.
22005 * cgraph.h (struct cgraph_node): Add order field.
22006 (struct cgraph_varpool_node): Add order field.
22007 (struct cgraph_asm_node): Define.
22008 (cgraph_asm_nodes, cgraph_order): Declare.
22009 (cgraph_add_asm_node): Declare.
22010 * cgraphunit.c (cgraph_varpool_assemble_decl): New static
22012 (cgraph_varpool_assemble_pending_decls): Call it.
22013 (cgraph_output_pending_asms): New static function.
22014 (cgraph_finalize_compilation_unit): Call it.
22015 (struct cgraph_order_sort): Define.
22016 (cgraph_output_in_order): New static function.
22017 (cgraph_optimize): Call cgraph_output_pending_asms. Add code for
22018 !flag_toplevel_reorder case.
22019 * c-parser.c: Include "cgraph.h".
22020 (c_parser_asm_definition): Call cgraph_add_asm_node rather than
22022 * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
22023 than -fno-unit-at-a-time.
22024 * doc/invoke.texi (Option Summary): Mention
22025 -fno-toplevel-reorder.
22026 (Optimize Options): Document -fno-toplevel-reorder. Mention it in
22027 -funit-at-a-time documentation.
22029 2006-01-17 Hans-Peter Nilsson <hp@axis.com>
22030 Kazu Hirata <kazu@codesourcery.com>
22032 * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
22034 2006-01-17 Kazu Hirata <kazu@codesourcery.com>
22036 * Makefile.in (FUNCTION_H): New. Use it instead of
22037 function.h throughout the file.
22038 * function.h: Include tree.h.
22040 2006-01-17 Ben Elliston <bje@au.ibm.com>
22042 * recog.c: Separate some functions with whitespace.
22044 2006-01-16 Richard Henderson <rth@redhat.com>
22046 Merge from gomp branch:
22047 * Makefile.in (TREE_INLINE_H): New. Use it as needed.
22048 * tree-inline.h (struct copy_body_data): Move from tree-inline.c
22049 and rename from struct inline_data. Rename callee* to dst*;
22050 caller* to src*; add copy_decl hook, transform_call_graph_edges,
22051 transform_new_cfg, transform_return_to_modify, and
22052 transform_lang_insert_block flags; remove cloning_p, versioning_p,
22054 (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
22055 (copy_decl_for_dup): Remove.
22056 * tree-inline.c (struct inline_data): Move to header.
22057 (insert_decl_map): Export.
22058 (remap_decl): Update for member name changes. Use copy_decl hook.
22059 Allow for replacement to be a non-decl. Remove dead code.
22060 (remap_type_1): Check for existing mapping.
22061 (remap_type): Export.
22062 (remap_decls): Update for member name changes.
22063 (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
22064 (copy_body, setup_one_parameter, declare_return_variable): Likewise.
22065 (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
22066 (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
22067 (tree_function_versioning, build_duplicate_type): Likewise.
22068 (copy_body_r): Likewise. Export.
22069 (copy_decl_for_dup): Split into ...
22070 (copy_decl_for_dup_finish, copy_decl_to_var,
22071 copy_decl_no_change, copy_decl_maybe_to_var): ... these.
22072 (replace_ref_tree, inlining_p): Remove.
22074 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
22076 * ifcvt.c (if_convert): Make it static.
22077 * rtl.h: Remove the prototype for if_convert.
22079 * local-alloc.c (local_alloc): Make it static.
22080 * rtl.h: Remove the prototype for local_alloc.
22082 * loop.c (loop_optimize): Make it static.
22083 * cfgloop.h: Remove the prototype for loop_optimize.
22086 2006-01-16 DJ Delorie <dj@redhat.com>
22088 * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
22091 2006-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22093 * pa.md: Disparage copies between general and floating-point registers
22094 in 32-bit move patterns.
22096 2006-01-16 H.J. Lu <hongjiu.lu@intel.com>
22099 * Makefile.in (check-%): Depend on site.exp instead of
22100 $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
22103 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
22105 * global.c (global_alloc): Make it static.
22106 * rtl.h: Remove the prototype for global_alloc.
22108 2006-01-16 Richard Guenther <rguenther@suse.de>
22110 * tree-ssa-alias.c (struct used_part): Add write_only field.
22111 (get_or_create_used_part_for): Initialize it to true.
22112 (create_overlap_variables_for): Don't create structure variables
22113 for structures that only are written to.
22114 (find_used_portions): Handle MODIFY_EXPR to track whether a
22115 structure is only written to.
22117 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
22119 * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
22121 * basic-block.h: Remove the prototype for
22122 partition_hot_cold_basic_blocks.
22124 2006-01-16 Rafael Ãvila de EspÃ�ndola <rafael.espindola@gmail.com>
22126 * cppspec.c (lang_specific_spec_functions): Remove.
22127 * gcc.c (lookup_spec_function): Use static_spec_functions directly.
22128 * gcc.h (lang_specific_spec_functions): Remove.
22129 * gccspec.c (lang_specific_spec_functions): Remove.
22131 2006-01-16 Paolo Bonzini <bonzini@gnu.org>
22133 * combine.c (record_value_for_reg): Invalidate registers
22135 (record_dead_and_set_regs_1): Likewise, by passing them to
22136 record_value_for_reg.
22137 (record_dead_and_set_regs): Invalidate stores made by a
22138 call. We do not combine across a call, but we still
22139 relied on equivalences.
22141 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
22143 * tree-vrp.c (extract_range_from_binary_expr): Cope with
22144 vrp_int_const_binop returning non-constant nodes.
22146 2006-01-16 Paul Brook <paul@codesourcery.com>
22148 * config/m68k/m68k.c (output_move_const_into_data_reg):
22149 Output correct mnemonic for mvz and mvs.
22151 2006-01-16 Gabor Loki <loki@gcc.gnu.org>
22153 * rtl-factoring.c: Add sequence abstraction algorithm.
22154 * cfgcleanup.c (outgoing_edges_match): Extra checks.
22155 (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
22157 (block_has_preserve_label): New function.
22158 * common.opt: Register new pass.
22159 * Makefile.in: Ditto.
22161 * timevar.def: Ditto.
22162 * tree-pass.h: Ditto.
22163 * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
22164 * rtl.h (make_jump_insn_raw): Add forward decl.
22165 * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
22167 2006-01-16 Eric Botcazou <ebotcazou@adacore.com>
22168 Roger Sayle <roger@eyesopen.com>
22170 * fold-const.c (fold_minmax): New static function.
22171 (fold_binary) <MIN_EXPR>: Call it.
22172 <MAX_EXPR>: Likewise.
22173 * stor-layout.c (place_field): Use DECL_SIZE consistently
22174 in the computation of the new record size.
22176 2006-01-16 Kazu Hirata <kazu@codesourcery.com>
22178 * cse.c (cse_condition_code_reg): Make it static.
22179 * rtl.h: Remove the prototype for cse_condition_code_reg.
22181 * combine.c (combine_instructions): Make it static.
22182 * rtl.h: Remove the prototype for combine_instructions.
22184 2006-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22187 * tree.c (get_file_function_name_long): Concatenate the first global
22188 object name with a string derived from the input filename of the object
22191 2006-01-16 Ben Elliston <bje@au.ibm.com>
22193 * config/i386/winnt-stubs.c: Update FSF address.
22194 * config/xtensa/ieee754-df.S: Ditto.
22195 * config/xtensa/ieee754-sf.S: Ditto.
22197 2006-01-14 Ian Lance Taylor <ian@airs.com>
22199 * ifcvt.c (noce_init_if_info): New static function, broken out of
22200 noce_process_if_block.
22201 (noce_process_if_block): Call noce_init_if_info.
22202 (check_cond_move_block): New static function.
22203 (cond_move_process_if_block): New static function.
22204 (process_if_block): Call cond_move_process_if_block.
22206 2006-01-15 Kazu Hirata <kazu@codesourcery.com>
22208 * cselib.c (hash_table): Rename to cselib_hash_table.
22209 (cselib_clear_table, discard_useless_values,
22210 remove_useless_values, cselib_lookup_mem, cselib_lookup,
22211 cselib_init, cselib_finish): Adjust uses of hash_table.
22213 2006-01-14 Kazu Hirata <kazu@codesourcery.com>
22215 PR tree-optimization/25485
22216 * tree-vrp.c (extract_range_from_binary_expr): Handle cases
22217 where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
22218 is known to be false and true, respectively.
22220 2006-01-14 Richard Guenther <rguenther@suse.de>
22222 PR tree-optimization/22548
22223 PR tree-optimization/22555
22224 PR tree-optimization/22501
22225 * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
22226 * params.def (salias-max-array-elements): New parameter.
22227 * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
22228 * doc/invoke.texi (salias-max-array-elements): Document.
22229 * tree-flow-inline.h (var_can_have_subvars): We also handle
22231 * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
22233 * tree-ssa-structalias.c (params.h): Include.
22234 (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
22235 (find_func_aliases): Handle multiple constraints from ARRAY_REF.
22236 (get_constraint_for): For ADDR_EXPR operating on something
22237 containing an ARRAY_REF, add all subvars to the solution.
22238 (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
22239 * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
22240 for creating MUST_DEFs.
22241 (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
22243 2006-01-14 Zdenek Dvorak <dvorakz@suse.cz>
22245 * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
22247 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
22248 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
22249 number_of_iterations_le): New functions.
22250 (number_of_iterations_special): Removed.
22251 (number_of_iterations_exit): Do not use number_of_iterations_special.
22252 * tree.c (unsigned_type_for): Always return integer type.
22254 2006-01-14 Steven Bosscher <stevenb.gcc@gmail.com>
22255 Richard Guenther <rguenther@suse.de>
22257 PR rtl-optimization/24257
22258 * gcse.c (find_moveable_store): Only consider a store movable
22259 when the SET_SRC of the insn can be assigned to a register.
22261 2006-01-14 Ian Lance Taylor <ian@airs.com>
22263 * tree.c (tree_not_class_check_failed): New function.
22264 * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
22265 (tree_not_class_check_failed): Declare.
22267 2006-01-13 Ian Lance Taylor <ian@airs.com>
22269 * reload1.c (do_output_reload): Add assertion rejecting a
22272 2006-01-13 Adam Nemet <anemet@caviumnetworks.com>
22274 * combine.c (struct reg_stat): Add new fields truncation_label and
22276 (record_value_for_reg): Reset truncated_to_mode.
22277 (record_truncated_value): New function.
22278 (check_promoted_subreg): Call it. Rename to check_conversions.
22279 (combine_instructions): Rename check_promoted_subreg to
22281 (reg_truncated_to_mode): New function.
22282 (make_extraction): Use it. Check TRULY_NOOP_TRUNCATION.
22283 (gen_lowpart_or_truncate): New function.
22284 (force_to_mode): Use it instead of gen_lowpart.
22286 2006-01-13 Diego Novillo <dnovillo@redhat.com>
22288 * tree-ssa-alias.c (add_type_alias): Fix typo. Test whether
22289 VAR is a tag, not its type tag.
22291 2006-01-13 Alexandre Oliva <aoliva@redhat.com>
22293 * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
22294 alternatives to match style of other entries.
22295 (*vec_extractv2di_1_sse): Likewise. Fix mode attr.
22297 2006-01-13 Daniel Berlin <dberlin@dberlin.org>
22299 PR tree-optimization/25771
22300 * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
22303 2006-01-13 Andrew Pinski <pinskia@physics.uc.edu>
22306 * tree-inline.c (declare_return_variable): If the return variable
22307 was marked as a non gimple complex, set the return slot variable
22308 to be a non gimple comple variable.
22310 2006-01-13 Richard Guenther <rguenther@suse.de>
22312 * builtins.c (expand_builtin_sincos): New function.
22313 (expand_builtin_mathfn_3): Remove dead code, sin and cos
22315 (expand_builtin): Expand sincos using expand_builtin_sincos.
22317 2006-01-12 DJ Delorie <dj@redhat.com>
22319 * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
22320 shift counts, separate SI shifts for m32c vs m16c, pass shift type
22321 so that constant shifts can be split.
22322 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
22323 (m32c_valid_pointer_mode): Make static.
22324 (shift_gen_func_for): New.
22325 (m32c_prepare_shift): Use it. Split large const shifts into
22327 * config/m32c/predicates.md (shiftcount_operand): Allow more
22329 (longshiftcount_operand): New.
22330 * doc/md.texi (Machine Constraints): Document In6.
22332 2006-01-13 Ben Elliston <bje@au.ibm.com>
22334 * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
22335 REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
22338 2006-01-12 Daniel Berlin <dberlin@dberlin.org>
22340 * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
22341 to try to avoid clobbering pieces of structures when we know
22342 something about the whole structure.
22343 * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
22345 2006-01-13 Ben Elliston <bje@au.ibm.com>
22347 * doc/rtl.texi (Insns): Remove statement that libcalls cannot
22348 return in memory, as this is no limitation is no longer present.
22350 2006-01-12 DJ Delorie <dj@redhat.com>
22352 * config/m32c/addsub.md (addhi3): Add two more alternatives, for
22353 mova with fb, and for fb+0 -> An.
22355 * config/m32c/mov.md (peephole2): Fix enabling logic.
22357 * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
22358 DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
22359 DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
22360 FINI_ARRAY_SECTION_ASM_OP): Define.
22362 * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
22364 (m32c_legitimize_reload_address): New logic to reload FB to An.
22365 (m32c_output_reg_push): Add newline.
22366 (m32c_output_reg_pop): Likewise.
22368 2006-01-12 Ulrich Weigand <uweigand@de.ibm.com>
22370 * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
22372 2006-01-11 Andrew Pinski <pinskia@physics.uc.edu>
22374 * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
22376 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
22378 * config/sh/predicates.md (sh_rep_vec): Add parallel to
22381 2006-01-11 Ben Elliston <bje@au.ibm.com>
22383 * rtlanal.c (find_reg_note): Assert insn is not null.
22385 2006-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
22387 * df-scan.c (df_hard_reg_init): Move declaration of i outside
22390 2006-01-11 Jeff Law <law@redhat.com>
22392 * tree-ssa-threadupdate.c (threaded_edges): New VEC to
22394 (mark_threaded_blocks, register_jump_thread): New functions.
22395 (thread_through_all_blocks): Remove unwanted argument. No
22396 longer rely on e->aux to communicate thread target info.
22397 Call mark_threaded_blocks. Release the threaded_blocks
22398 bitmap and threaded_edges vector when complete.
22399 * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
22400 (threaded_blocks): Remove.
22401 (tree_ssa_dominator_optimize): Remove initialization and
22402 finalization of threaded_blocks. Simplify call to
22403 thread_through_all_blocks.
22404 (thread_across_edge): Call register_jump_thread rather than
22405 storing thread information into e->aux.
22406 (free_all_edge_infos): Simplify now that e->aux is no longer
22407 used to communicate with thread_through_all_blocks.
22408 * tree-flow.h (thread_through_all_blocks): Update prototype.
22409 (register_jump_thread): Prototype.
22411 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
22413 * df-core.c (df_compact_blocks, df_bb_replace): Use
22414 SET_BASIC_BLOCK instead of BASIC_BLOCK.
22416 2006-01-11 Richard Guenther <rguenther@suse.de>
22418 PR tree-optimization/25734
22419 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
22420 stop propagation after successful propagation to the LHS.
22422 2006-01-11 Kazu Hirata <kazu@codesourcery.com>
22424 * basic-block.h (control_flow_graph): Change the type of
22425 x_basic_block_info to VEC(basic_block,gc) *.
22426 (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
22428 (SET_BASIC_BLOCK): New.
22429 * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
22430 instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
22431 * cfgbuild.c (find_basic_blocks): Likewise.
22432 * cfglayout.c (fixup_reorder_chain): Likewise.
22433 * cfgrtl.c (create_basic_block_structure,
22434 rtl_create_basic_block): Likewise.
22435 * ifcvt.c (find_if_case_1): Likewise.
22436 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
22439 2006-01-11 Kenneth Zadeck <zadeck@naturalbridge.com>
22441 * Makefile.in: Removed rotted odf.c entry.
22443 2006-01-11 Hans-Peter Nilsson <hp@axis.com>
22446 * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
22447 ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
22448 ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
22449 output pattern modifier, not %e.
22450 * config/cris/cris.c (cris_op_str): Update comment about pattern
22452 (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
22453 before falling through into...
22454 <case 'E'>: Redefined from old 'e' case.
22456 2006-01-11 Jan Hubicka <jh@suse.cz>
22459 * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
22461 2006-01-11 Jan Hubicka <jh@suse.cz>
22463 * i386.h (TARGET_DECOMPOSE_LEA): Kill.
22464 * i386.c (x86_decompose_lea): Kill.
22465 (ix86_rtx_costs): Kill.
22467 2006-01-11 Jan Hubicka <jh@suse.cz>
22469 * cgraph.c (cgraph_insert_node_to_hashtable): New function.
22470 * cgraph.h (cgraph_node): Add inline_decl.
22471 (cgraph_insert_node_to_hashtable): Declare.
22472 (save_inline_function_body): Declare.
22473 * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
22475 (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
22476 (cgraph_function_versioning): Update call of tree_function_versioning.
22477 (save_inline_function_body): New function.
22478 * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
22479 saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
22480 * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
22481 (cgraph_default_inline_p): Likewise.
22482 (cgraph_decide_inlining_incrementally): Likewise.
22483 * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
22484 (copy_bb): Kill saving; do updating of clones.
22485 (copy_cfg_body): Kill saving.
22486 (initialize_inlined-parameters): Likewise.
22487 (expand_call_inline): Likewise.
22489 (tree_function_versioning): New parameter "update_clones".
22490 (inlining_p): Kill saving.
22491 * tree-inline.h (tree_function_versioning): Update prototype.
22492 * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
22495 2006-01-11 Ian Lance Taylor <ian@airs.com>
22497 * combine.c (struct undo): Remove is_int. Enumify types of undos.
22498 Allow undoing set of machine mode.
22499 (do_SUBST): Use enums instead of is_int.
22500 (do_SUBST_MODE): New function.
22501 (SUBST_MODE): New macro.
22502 (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
22503 reg and trying to replace reg_regno_rtx with a new register.
22504 (undo_all): Use new enums, handle undoing a PUT_MODE change.
22505 (simplify_set): Use SUBST_MODE.
22506 (distribute_notes): Remove code that tried to update reg notes
22507 for regno_reg_rtx changes.
22509 2006-01-11 Paolo Bonzini <bonzini@gnu.org>
22511 PR tree-optimization/23109
22512 PR tree-optimization/23948
22513 PR tree-optimization/24123
22515 * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
22516 * tree-cfg.c (single_noncomplex_succ): New.
22517 * tree-flow.h (single_noncomplex_succ): Declare it.
22518 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
22519 * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
22520 (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
22521 insert_bb, register_division_in, insert_reciprocals,
22522 replace_reciprocal, free_bb): New.
22523 (execute_cse_reciprocals_1): Rewritten.
22524 (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
22525 Do not commit any edge insertion. Always compute dominators and
22526 create the allocation pool.
22527 * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
22528 * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
22529 * targhooks.c (default_min_divistions_for_recip_mul): New.
22530 * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
22531 * passes.c (init_optimization_passes): Run recip after tree loop
22533 * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
22535 2006-01-11 Danny Berlin <dberlin@dberlin.org>
22536 Kenneth Zadeck <zadeck@naturalbridge.com>
22538 * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
22539 DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
22540 DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
22541 DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
22542 DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
22543 DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
22544 DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
22545 DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
22546 DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
22547 DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
22548 DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
22549 DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
22550 DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
22551 DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
22552 DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
22553 DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
22554 DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
22555 DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
22556 DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
22557 DF_SCAN_POST_ALLOC): New macros.
22558 (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
22559 df_free_bb_function, df_local_compute_function, df_init_function,
22560 df_dataflow_function, df_confluence_function_0,
22561 df_confluence_function_n, df_transfer_function,
22562 df_finalizer_function, df_free_function, df_dump_problem_function,
22563 df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
22564 df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
22565 df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
22566 df_urec_bb_info, ) New types.
22567 (df_invalidated_by_call, df_all_hard_regs, df_state) New public
22569 (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
22570 df_analyze_simple_change_some_blocks,
22571 df_analyze_simple_change_one_block, df_compact_blocks,
22572 df_bb_replace, df_bb_regno_last_use_find,
22573 df_bb_regno_first_def_find, df_bb_regno_last_def_find,
22574 df_insn_regno_def_p, df_find_def, df_find_use,
22575 df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
22576 df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
22577 df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
22578 debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
22579 debug_df_chain, df_get_dependent_problem, df_chain_create,
22580 df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
22581 df_grow_bb_info, df_chain_dump, df_print_bb_index,
22582 df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
22583 df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
22584 df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
22585 df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
22586 df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
22587 df_rescan_blocks, df_ref_create, df_get_artificial_defs,
22588 df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
22589 df_ref_remove, df_insn_refs_delete, df_refs_delete,
22590 df_reorganize_refs, df_set_state, df_hard_reg_init,
22591 df_read_modify_subreg_p) New public functions.
22592 * df-core.c: The core dataflow solver and glue routines for rtl
22594 (df_init, df_add_problem, df_set_blocks, df_finish,
22595 df_hybrid_search_forward, df_hybrid_search_backward,
22596 df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
22597 df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
22598 df_bb_regno_last_use_find, df_bb_regno_first_def_find,
22599 df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
22600 df_reg_defined, df_find_use, df_reg_used, df_dump,
22601 df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
22602 df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
22603 debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
22604 debug_df_useno, reset_df_after_reload): New functions.
22605 * df-scan.c: The scanning fuctions, once in df.c, completely
22606 rewritten so that they now fully model the functionality of
22607 register usage at the backend.
22608 (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
22609 df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
22610 df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
22611 df_grow_insn_info, df_rescan_blocks, df_ref_create,
22612 df_get_artificial_defs, df_get_artificial_uses,
22613 df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
22614 df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
22615 df_refs_delete, df_reorganize_refs, df_set_state,
22616 df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
22617 df_def_record_1, df_defs_record, df_uses_record,
22618 df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
22619 df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
22620 df_record_exit_block_uses, df_hard_reg_init): New functions.
22622 * df-problems.c: Seven concrete dataflow problems that use the
22623 scanning in df-scan.c and are solved by the engine in df-core.c.
22624 (df_get_dependent_problem, df_chain_create, df_chain_unlink,
22625 df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
22626 df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
22627 df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
22628 df_ru_free_bb_info, df_ru_alloc,
22629 df_ru_bb_local_compute_process_def,
22630 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
22631 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
22632 df_ru_transfer_function, df_ru_free, df_ru_dump,
22633 df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
22634 df_rd_free_bb_info, df_rd_alloc,
22635 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
22636 df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
22637 df_rd_transfer_function, df_rd_free, df_rd_dump,
22638 df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
22639 df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
22640 df_lr_local_compute, df_lr_init, df_lr_confluence_0,
22641 df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
22642 df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
22643 df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
22644 df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
22645 df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
22646 df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
22647 df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
22648 df_urec_mark_reg_change, df_urec_check_earlyclobber,
22649 df_urec_mark_reg_use_for_earlyclobber,
22650 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
22651 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
22652 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
22653 df_urec_dump, df_urec_add_problem, df_chain_alloc,
22654 df_chain_create_bb_process_use, df_chain_create_bb,
22655 df_chain_finalize, df_chain_free, df_chains_dump,
22656 df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
22657 df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
22658 df_reg_lifetime): New functions.
22659 * df.c: Deleted file.
22660 * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
22661 consistent with new df api.
22662 * modulo-sched.c (sms_schedule, rest_of_handle_sms,
22663 rest_of_handle_sms): Ditto.
22664 * web.c (unionfind_union, union_defs, entry_register, web_main):
22666 * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
22667 invariant_expr_equal_p, find_defs, check_dependencies,
22668 find_invariant_insn, find_invariants_to_move, move_invariant_reg,
22669 free_inv_motion_data, move_loop_invariants): Ditto.
22670 * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
22671 Update dependencies.
22672 (odf.c): Added defective entry that was deleted later in day.
22673 * sched-deps.c (sched_analyze_1): Ditto.
22675 2006-01-11 Zdenek Dvorak <dvorakz@suse.cz>
22677 * tree-ssa-operands.c (get_expr_operands): Record addressable
22678 variables directly. Do not call add_stmt_operands for CONST_DECLs
22680 (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
22681 (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
22683 2006-01-11 Ben Elliston <bje@au.ibm.com>
22685 * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
22686 function returns true in the positive case.
22688 2006-01-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22691 * config/pa/pa.md: Create separate 32 and 64-bit move patterns
22692 for SI, DI, SF and DF modes. Add alternatives to copy between
22693 general and floating point registers to the 32-bit patterns.
22694 * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
22695 * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
22696 (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
22697 generating 64-bit code.
22698 * config/pa/pa.c (output_move_double): Handle copies between general
22699 and floating registers.
22701 2006-01-10 Stuart Hastings <stuart@apple.com>
22703 * config/i386/i386.md (set_got): Update.
22704 (set_got_labelled): New. (UNSPEC_LD_MPIC): New.
22705 (builtin_setjmp_receiver): Mach-O support.
22706 * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
22707 (GOT_SYMBOL_NAME): Define.
22708 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
22709 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
22710 * config/i386/i386.c (override_options): Revise for Darwin.
22711 (USE_HIDDEN_LINKONCE): Enable for Mach-O. (ix86_file_end): Mach-O
22712 support. (darwin_x86_file_end): New. (output_set_got): Add label
22713 parameter, revise for Mach-O. (x86_output_mi_thunk): Likewise.
22714 * config/i386/i386-protos.h (output_set_got): Likewise.
22715 * config/darwin.c (machopic_legitimize_pic_address): Update
22718 2006-01-10 Kaz Kojima <kkojima@gcc.gnu.org>
22720 * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
22721 when MODE isn't BLKmode.
22723 2006-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
22725 PR rtl-optimization/25367
22726 * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
22728 2006-01-10 Hans-Peter Nilsson <hp@axis.com>
22731 * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
22732 for a negative bound.
22734 2006-01-10 Richard Guenther <rguenther@suse.de>
22736 * tree-ssa-structalias.c (get_constraint_for_component_ref):
22737 Never override with anything constraint.
22739 2006-01-10 Jan Beulich <jbeulich@novell.com>
22741 * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
22742 256 bits when optimize_size.
22744 2006-01-10 Jan Beulich <jbeulich@novell.com>
22746 * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
22748 * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
22749 * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
22752 2006-01-10 Ben Elliston <bje@au.ibm.com>
22754 * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
22756 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
22757 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
22758 (USE_FP_FOR_ARG): Reject decimal float modes.
22759 (function_arg_advance): Likewise.
22760 (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
22761 (rs6000_handle_altivec_attribute): Do not permit decimal floating
22762 point types in AltiVec vectors.
22763 (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
22764 (rs6000_libcall_value): Likewise.
22766 2006-01-09 Bob Wilson <bob.wilson@acm.org>
22768 * config/xtensa/ieee754-df.S: New file.
22769 * config/xtensa/ieee754-sf.S: New file.
22770 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
22771 (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
22772 * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
22774 2006-01-09 Kazu Hirata <kazu@codesourcery.com>
22776 * config/sh/predicates.md (binary_float_operator,
22777 binary_logical_operator, commutative_float_operator,
22778 equality_comparison_operator, greater_comparison_operator,
22779 less_comparison_operator, logical_operator,
22780 noncommutative_float_operator, shift_operator,
22781 symbol_ref_operand, unary_float_operator): Remove redundant
22784 2006-01-09 Jeff Law <law@redhat.com>
22786 * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
22787 code to propagate the RHS of a cast into COND_EXPR_COND. Remove
22788 now unused arguments. Callers updated.
22789 (eliminate_redundant_computations): Remove now unused arguments,
22791 (local_fold): Remove, no longer used.
22792 (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
22794 * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
22795 (simplify_cond): New function.
22796 (forward_propagate_into_cond): Call simplify_cond.
22798 2006-01-09 Alexandre Oliva <aoliva@redhat.com>
22800 * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
22801 (*vec_extractv2di_1_sse): New.
22803 2006-01-09 Ben Elliston <bje@au.ibm.com>
22805 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
22807 2006-01-08 Richard Guenther <rguenther@suse.de>
22809 * tree-ssa-structalias.c (get_constraint_for): Remove
22810 anyoffset argument.
22811 (get_constraint_for_component_ref): Likewise.
22812 (do_deref): Likewise.
22813 (get_constraint_for): Likewise.
22814 (do_structure_copy): Likewise.
22815 (handle_ptr_arith): Likewise.
22816 (find_func_aliases): Likewise. Remove unused need_anyoffset
22819 2006-01-08 J"orn Rennecke <joern.rennecke@st.com>
22820 Kaz Kojima <kkojima@gcc.gnu.org>
22822 * config/sh/sh.h (CONST_OK_FOR_K16): Define.
22823 (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
22824 (EXTRA_CONSTRAINT_C16): Remove.
22825 (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
22826 (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
22827 EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
22828 * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
22829 constants of SHmedia. Handle nested constant expressions of
22831 (andcosts): Fix the costs for SHmedia constants.
22832 (sh_rtx_costs): Take account of outer_code for SHmedia constants.
22833 * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
22834 (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
22835 (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
22836 (movv4hi_i, movv2si_i): Likewise.
22837 (movsi_const): Adjust the second operand of ior so to match with
22838 the Csu constraint.
22839 (movdi_const, movdi_const_32bit): Likewise.
22840 (movdi_const_16bit+1): Don't sign-extend LOW.
22841 (movdi_const_16bit+2): Likewise. Remove the zero_extend and truncate
22843 (*double_shori): Fix the split condition. Use GEN_INT instead
22844 of get_int_mode calls. Mask lower 16-bit of the argument of
22846 (sym2GOTPLT): Remove.
22847 (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
22849 * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
22850 instead of EXTRA_CONSTRAINT_C16.
22852 2006-01-07 Ian Lance Taylor <ian@airs.com>
22853 David Edelsohn <edelsohn@gnu.org>
22855 PR rtl-optimization/25662
22856 * optabs.c (simplify_expand_binop): Use simplify_binary_operation
22857 for constant operands instead of simplify_gen_binary.
22858 * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
22859 after trying simplify_binary_operation
22861 2006-01-06 Daniel Berlin <dberlin@dberlin.org>
22863 * tree.c (iterative_hash_expr): Hash decls based on UID.
22865 2006-01-06 Eric Christopher <echristo@apple.com>
22867 * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
22868 (TARGET_UNWIND_EMIT): Fix spelling.
22869 * target.h (gcc_target): Add except_table_label.
22870 * except.c (output_function_exception_table): Use.
22871 * varasm.c (default_emit_except_table_label): New.
22872 * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
22874 (asm_out): Add here.
22875 * output.h (default_emit_except_table_label): Prototype.
22876 * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
22877 * config/darwin.c (darwin_emit_except_table_label): Define.
22878 * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
22880 2006-01-06 Zdenek Dvorak <dvorakz@suse.cz>
22882 PR tree-optimization/18527
22883 * tree-ssa-loop-niter.c (number_of_iterations_cond,
22884 number_of_iterations_special, number_of_iterations_exit):
22885 Move base and step of an iv to a single structure. Add
22886 no_overflow flag, and use it in # of iterations analysis.
22887 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
22888 folded_casts argument.
22889 (simple_iv): Pass base and step in a structure. Set no_overflow
22891 (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
22892 Evaluate expensiveness of computing # of iterations instead of
22893 the final expression.
22894 * tree-scalar-evolution.h (affine_iv): New structure.
22895 (simple_iv): Declaration changed.
22896 * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
22897 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
22898 find_givs_in_stmt): Changed due to simple_iv change.
22900 2006-01-06 Jeff Law <law@redhat.com>
22903 * tree-cfg.c (bsi_replace): Rename final argument from
22904 PRESERVE_EH_INFO to UPDATE_EH_INFO. Fix typo in last
22905 change (stmt -> orig_stmt).
22906 * tree-eh.c (verify_eh_throw_stmt_node): New function.
22907 (bsi_remove): Add new argument. Remove EH information
22909 (verify_eh_throw_table_statements): New function.
22910 (bsi_remove): Add new argument REMOVE_EH_INFO. All callers
22912 * tree-optimize.c (execute_free_cfg_annotations): Verify
22913 the EH throw statement table after removing annotations.
22914 * except.h (verify_eh_throw_table_statements): Prototype.
22915 * tree-flow.h (bsi_remove): Update prototype.
22916 * tree-vrp.c (remove_range_assertions): Add new argument to
22918 * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
22919 * tree-complex.c (expand_complex_div_wide): Likewise.
22920 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
22921 * tree-tailcall.c (eliminate_tailcall): Likewise.
22922 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
22923 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
22924 * tree-nrv.c (tree_nrv): Likewise.
22925 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
22926 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
22927 (combine_blocks): Likewise.
22928 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
22929 * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
22930 (cleanup_control_flow): Likewise.
22931 (remove_forwarder_block): Likewise.
22932 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
22933 * tree-sra.c (sra_replace): Likewise.
22934 * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
22935 (forward_propagate_single_use_vars): Likewise.
22936 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
22937 * tree-inline.c (expand_call_inline): Likewise.
22938 * tree-vect-transform.c (vect_transform_loop): Likewise.
22939 * tree-outof-ssa.c (rewrite_trees): Likewise.
22940 * tree-cfg.c (make_goto_expr_edges): Likewise.
22941 (cleanup_dead_labels): Likewise.
22942 (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
22943 (bsi_move_before, bsi_move_after): Likewise.
22944 (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
22945 (tree_redirect_edge_and_branch, tree_split_block): Likewise.
22947 2006-01-06 Andrew Pinski <pinskia@physics.uc.edu>
22950 * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
22952 * tree-flow-inline.h (var_can_have_subvars): Handle complex types
22953 on non gimple variables. Also add checks at the top for decls and
22955 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
22957 * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
22958 and IMAGPART_EXPR for creating MUST_DEFs.
22959 (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
22960 and NAME_MEMORY_TAG separately from the DECLs.
22962 2006-01-06 Richard Guenther <rguenther@suse.de>
22964 * tree-dfa.c (mark_new_vars_to_rename): Create stmt
22965 annotation, if necessary.
22966 * tree-ssa-pre.c (create_expression_by_pieces): Remove
22967 redundant calls to update_stmt.
22968 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
22971 2006-01-05 Richard Henderson <rth@redhat.com>
22973 * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
22975 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
22977 * c-typeck.c: Update copyright date.
22979 2006-01-05 Carlos O'Donell <carlos@codesourcery.com>
22981 * c-typeck.c (build_c_cast): Always warn when casting
22982 from a pointer to an integer of different size, even if
22983 the node was constant.
22985 2006-01-05 Richard Guenther <rguenther@suse.de>
22987 PR tree-optimization/22555
22988 * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
22989 if one structure field is an array.
22990 * tree-ssa-operands.c (get_expr_operands): Continue scanning
22991 operands even if we found a subvar, but ignore VOPs in this
22993 * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
22995 * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
22997 2006-01-05 Richard Earnshaw <rearnsha@arm.com>
22999 PR middle-end/24998
23000 * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
23002 2006-01-05 Richard Guenther <rguenther@suse.de>
23003 Diego Novillo <dnovillo@redhat.com>
23005 * tree-pass.h (TODO_remove_unused_locals): Define.
23006 * gimple-low.c (expand_var_p, remove_useless_vars,
23007 pass_remove_useless_vars): Remove. Update all users.
23008 * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
23009 (remove_unused_locals): New function.
23010 * tree-flow.h (remove_unused_locals): Declare.
23011 * passes.c (execute_todo): Call remove_unused_locals if
23012 TODO_remove_unused_locals is set.
23013 * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
23014 * tree-ssa-dce.c (pass_dce): Likewise.
23015 * tree-outof-ssa.c (pass_del_ssa): Likewise.
23017 2006-01-05 Richard Guenther <rguenther@suse.de>
23019 * tree-flow.h (struct fieldoff): Decompose field to
23020 type, size and decl.
23021 * tree-ssa-alias.c (create_sft): Take type as parameter.
23022 (create_overlap_variables_for): Store type, size and decl
23023 in the fieldoff structure.
23024 * tree-ssa-structalias.c (fieldoff_compare): Adjust users
23025 of struct fieldoff.
23026 (push_fields_onto_fieldstack): Likewise.
23027 (create_variable_info_for): Likewise. Use offset for the
23028 SFT name if the decl is not available.
23030 2006-01-04 Paul Brook <paul@codesourcery.com>
23032 * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
23034 2006-01-04 Daniel Berlin <dberlin@dberlin.org>
23036 * lambda-code.c (can_put_in_inner_loop): Relax
23038 (can_put_after_inner_loop): New function.
23039 (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
23040 (perfect_nestify): Change to make copies and modify uses.
23042 2006-01-04 Richard Henderson <rth@redhat.com>
23044 Merge from gomp branch:
23045 * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
23046 via integer constant.
23047 (pragma_lex): Remove.
23048 * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
23049 rather than parsing it.
23050 * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
23051 handle_pragma_extern_prefix): Add %< %> quotes.
23052 (registered_pragmas): New.
23053 (c_register_pragma_1): New.
23054 (c_register_pragma): Use it.
23055 (c_register_pragma_with_expansion): Likewise.
23056 (c_invoke_pragma_handler): New.
23057 (init_pragma): Use cpp_register_deferred_pragma directly for
23059 * c-pragma.h (enum pragma_kind): New.
23060 (pragma_handler): New.
23061 (c_invoke_pragma_handler): Declare.
23062 * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
23064 * c-common.h (c_common_pch_pragma): Update decl.
23065 * Makefile.in (c-parser.o): Update dependencies.
23066 (GTFILES): Add c-pragma.h.
23067 * c-parser.c (struct c_token): Add pragma_kind.
23068 (struct c_parser): Add in_pragma.
23069 (c_lex_one_token): Always initialize keyword and pragma_kind.
23070 Extract data for CPP_PRAGMA.
23071 (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
23072 (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
23073 Don't allow CPP_PRAGMA_EOL if in_pragma.
23074 (c_parser_consume_pragma): New.
23075 (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
23076 (c_parser_skip_to_end_of_parameter): Likewise.
23077 (c_parser_skip_to_end_of_block_or_statement): Likewise.
23078 (c_parser_skip_to_pragma_eol): New.
23079 (c_parser_external_declaration): Handle CPP_PRAGMA.
23080 (c_parser_compound_statement_nostart): Likewise.
23081 (c_parser_statement_after_labels): Likewise.
23082 (c_parser_pragma): New.
23083 (pragma_lex): Likewise.
23084 (c_parser_pragma_pch_preprocess): New.
23085 (c_parser_new): Merge into ...
23086 (c_parse_file): ... here. Call c_parser_pragma_pch_preprocess.
23088 2006-01-04 Jeff Law <law@redhat.com>
23091 * tree-cfg.c (bsi_replace): Remove the original statement
23092 from the EH throw statement table.
23094 2006-01-04 Jakub Jelinek <jakub@redhat.com>
23096 * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
23097 make the prototype extern "C" and add throw ().
23100 * config/i386/i386.md (testqi_ext_3): Ensure len is positive
23101 and pos non-negative and pos + len <= 32.
23102 (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
23103 drop pos + len < HOST_BITS_PER_WIDE_INT test.
23104 (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
23107 * c-common.c (handle_vector_size_attribute): Reject zero vector size
23108 as well as sizes not multiple of component size.
23111 * function.c (instantiate_expr): New function.
23112 (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
23113 walk its DECL_VALUE_EXPR with instantiate_expr.
23115 * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
23116 DW_OP_deref{,_size} if address isn't going to be added.
23118 2006-01-04 Ben Elliston <bje@au.ibm.com>
23120 * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
23121 * config/fp-bit.c: Likewise.
23123 2006-01-03 Daniel Berlin <dberlin@dberlin.org>
23125 * dominance.c: Add comment about why we use DFS numbering
23128 2006-01-03 Jakub Jelinek <jakub@redhat.com>
23129 Richard Henderson <rth@redhat.com>
23131 Merge from gomp-branch:
23132 * varasm.c (assemble_variable): Handle thread-local COMMON data.
23133 * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
23135 2006-01-03 Paolo Bonzini <bonzini@gnu.org>
23137 PR rtl-optimization/25578
23138 * combine.c (combine_simplify_rtx, force_to_mode): Don't
23139 pass a parameter to simplify_shift_const if changing ASHIFTRT
23142 2006-01-03 Adrian Straetling <straetling@de.ibm.com>
23144 * builtins.c (get_builtin_sync_mem): New function.
23145 (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
23146 expand_builtin_lock_test_and_set, expand_builtin_lock_release):
23147 Call get_builtin_sync_mem to generate mem rtx.
23149 2006-01-03 Richard Guenther <rguenther@suse.de>
23152 * stmt.c (add_case_node): Make sure to clear overflow flags
23155 2006-01-03 Jakub Jelinek <jakub@redhat.com>
23157 Merge from gomp-branch.
23158 * config/sparc/sync.md: New file.
23159 * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
23160 UNSPECV_LDSTUB): New constants.
23161 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
23162 * config/sparc/predicates.md (memory_reg_operand): New predicate.
23163 * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
23166 2006-01-03 Roger Sayle <roger@eyesopen.com>
23168 * combine.c (reg_subword_p): New predicate to test whether the
23169 destination of a set refers to a subword/piece of a register.
23170 (try_combine): Generalize the code to merge the setting of a
23171 pseudo to a constant followed by a set of a subword of that
23172 register to a constant.
23174 2006-01-03 Kazu Hirata <kazu@codesourcery.com>
23176 * basic-block.h (control_flow_graph): Change the type of
23177 x_label_to_block_map to VEC(basic_block,gc) *.
23178 * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
23179 set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
23181 * tree-ssa-propagate.c (cfg_blocks): Change the type to
23182 VEC(basic_block,heap) *.
23183 (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
23184 ssa_prop_fini): Adjust the uses of cfg_blocks.
23186 2006-01-03 Steven Bosscher <stevenb.gcc@gmail.com>
23188 * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
23190 * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
23191 hashing trees instead of a pointer hash.
23192 (mem_attrs_htab_eq): Do a deep compare instead of a pointer
23193 compare for MEM_EXPR.
23195 PR rtl-optimization/25130
23196 * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
23197 when comparing MEMs for GCSE
23199 2006-01-03 Ben Elliston <bje@au.ibm.com>
23201 * targhooks.h (default_decimal_float_supported_p): Declare.
23202 * targhooks.c (default_decimal_float_supported_p): Define.
23203 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
23204 `default_decimal_float_supported_p'.
23205 * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
23207 2006-01-02 Adam Nemet <anemet@caviumnetworks.com>
23209 * combine.c (apply_distributive_law <SUBREG>): Check
23210 TRULY_NOOP_TRUNCATION.
23212 2006-01-02 Geoffrey Keating <geoffk@apple.com>
23214 * dwarf2out.c (have_switched_text_section): Delete.
23215 (have_multiple_function_sections): New.
23216 (have_location_lists): Make 'bool'.
23217 (add_AT_loc_list): Use 'true' not '1'.
23218 (dwarf2out_switch_text_section): Set have_multiple_function_sections.
23219 (output_loc_list): Use have_multiple_function_sections.
23220 (output_ranges): Likewise.
23221 (dwarf2out_begin_function): Set have_multiple_function_sections if
23223 (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
23224 Check function_section rather than DECL_SECTION_NAME.
23225 (dwarf2out_finish): Use have_multiple_function_sections.
23226 Don't clear have_location_lists.
23228 2006-01-02 Eric Botcazou <ebotcazou@adacore.com>
23229 Jan Hubicka <jh@suse.cz>
23231 * cfglayout.c (fixup_reorder_chain): Remove kludge for the
23232 case of conditional jump jumping to the next instruction.
23233 * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
23234 cases of conditional jump jumping to the next instruction.
23236 2006-01-02 Jan Hubicka <jh@suse.cz>
23238 * i386.c (*_cost): Add COSTS_N_INSNS.
23239 (ix86_rtx_costs): Do not use COSTS_N_INSNS.
23241 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
23244 * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
23246 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
23248 * config/arm/arm.c (all_fpus): Fix comment typo.
23249 * config/darwin.c: Likewise.
23250 * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
23251 * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
23252 * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
23254 2006-01-01 David Edelsohn <edelsohn@gnu.org>
23256 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
23257 (rs6000_split_compare_and_swapqhi): New.
23258 * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
23259 (sync_compare_and_swapqhi_internal): New.
23260 * config/rs6000/rs6000-protos.h: Declare.