Age | Commit message (Collapse) | Author |
|
'apple-gcc-1773'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/apple-gcc-1773@85932 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* mf-hooks[123].c, mf-runtime.c, mf-heuristics.c:
Added libgcc license header.
* mf-hooks3.c (__mf_0fn_pthread_create): Correct arg constness.
(pthread_create): Simplify stack allocation syntax.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79740 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-ssa-alias.c (group_aliases_into): Don't add a variable
to its own may-alias set.
(create_alias_map_for): New.
(setup_pointers_and_addressables): Call it.
Fix allocation of AI->ADDRESSABLE_VARS and AI->POINTERS.
If there are no addressable variables and more than one
dereferenced pointers, add type tags to the ADDRESSABLE_VARS
array.
(get_tmt_for): Add comment about using alias set equality when
checking for existing tags.
testsuite/ChangeLog.tree-ssa:
* gcc.dg/tree-ssa/20040319-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79728 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79725 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79720 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
Eliminate unnecessary test of VAL.
* gcc.c-torture/execute/20040319-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79706 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-ssa-dse.c (dse_optimize_stmt): Redirect uses feeding into
a deleted store correctly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79694 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PENDING_SIZES list for hidden uses.
* tree-optimize.c (tree_rest_of_compilation): Expand used variables
before setting up parameters.
* tree-ssa-copyrename.c (rename_ssa_copies): Do nothing for copies
where the LHS has a hidden use.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79692 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
(OBJS-common): Add tree-into-ssa.o and tree-outof-ssa.o.
(tree-ssa.o): Remove dependency on domwalk.h and tree-ssa-live.h
(tree-into-ssa.o): New.
(tree-outof-ssa.o): New.
(GTFILES): Remove tree-ssa.c.
(gt-tree-ssa.h): Remove.
* tree-into-ssa.c: New file.
Move all the functions used to rename into SSA from tree-ssa.c.
Update/add comments.
Remove unused variables and structures.
Don't use GGC for memory allocation.
* tree-outof-ssa.c: New file.
Move all the functions used to rename out of SSA from
tree-ssa.c.
Update/add comments.
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Add
bibliographic reference.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79666 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79654 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* c-decl.c (grokdeclarator): Do not complain about redeclaring
visible "static" identifiers "extern" in a local scope.
* dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
post-increments/decrements.
2004-03-18 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/local1.c: New test.
* gcc.dg/debug/dwarf2/c99-typedef1.c: New test.
Bring over from mainline.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79649 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
'tree-ssa-20020619-branch'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79648 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-tailcall.c: Include langhooks.h.
(find_tail_calls): Use types_compatible_p langhook instead of
equality test of TYPE_MAIN_VARIANT.
* tree-nested.c (get_chain_decl): Mark the chain decl with
TREE_NO_WARNING.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79644 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
last_basic_block instead of n_basic_blocks.
(calculate_live_on_entry): Use last_basic_block instead of
n_basic_blocks.
(calculate_live_on_exit): Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79641 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
same_type_ignoring_top_level_qualifiers_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79615 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79613 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79606 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* gcc.c-torture/compile/20040317-2.c: New test.
* gcc.c-torture/compile/20040317-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79605 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79601 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
ignore read-only variables.
(may_alias_p): Fix pointer-to-var calculation when 'var' is an
array.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79599 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79586 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* builtins.c (expand_builtin_constant_p,
purge_builtin_constant_p): Remove.
(expand_builtin): Expand __builtin_constant_p to zero.
* function.c (struct function): Remove calls_constant_p.
(current_function_calls_constant_p): Remove.
* passes.c (rest_of_handle_gcse): Do not run
purge_builtin_constant_p.
* rtl.def (CONSTANT_P_RTX): Die die die.
* cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
* expr.c (emit_move_insn): Likewise.
* gcse.c (want_to_gcse_p, gcse_constant_p): Likewise.
* genrecog.c (validate_pattern): Likewise.
* recog.c (immediate_operand): Likewise.
* rtl.h (CONSTANT_P): Likewise.
* simplify-rtx.c (simplify_rtx): Likewise.
* config/alpha/alpha.c (input_operand): Likewise.
* config/arm/arm.c (THUMB_LEGITIMATE_CONSTANT_P): Likewise.
* config/c4x/c4x.c (const_operand): Likewise.
* config/cris/cris.c (cris_gotless_symbol,
cris_got_symbol): Likewise.
* config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
* config/ia64/ia64.c (gr_reg_or_5bit_operand,
gr_reg_or_6bit_operand, gr_reg_or_8bit_operand,
gr_reg_or_8bit_adjusted_operand,
gr_reg_or_8bit_and_adjusted_operand,
gr_reg_or_14bit_operand, gr_reg_or_22bit_operand,
shift_count_operand, shift_32bit_count_operand): Likewise.
* config/m32r/m32r.c (move_src_operand): Likewise.
* config/mips/mips.c (mips_const_insns): Likewise.
* config/mmix/mmix.c (mmix_constant_address_p): Likewise.
* config/pa/pa.c (move_src_operand): Likewise.
* config/rs6000/rs6000.c (input_operand): Likewise.
* config/sparc/sparc.c (input_operand): Likewise.
* config/v850/v850.c (movsi_source_operand): Likewise.
* config/xtensa/xtensa.c (move_operand,
xtensa_emit_move_sequence): Likewise.
* config/ia64/ia64.h (PREDICATE_CODES): Do not mention CONSTANT_P_RTX.
* config/pa/pa.h (PREDICATE_CODES): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79576 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79562 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree.h (TDF_UID): Define.
* doc/invoke.texi: Document -ftree-dump-...-uid.
* tree-pretty-print.c (debug_generic_expr): Add TDF_UID.
(debug_generic_stmt): Likewise.
(dump_decl_name): New function.
(dump_generic_node): Call it.
(print_declaration): Add new argument 'flags'. Update all users.
(print_struct_decl): Likewise.
* tree-alias-ander.c, tree-cfg.c, tree-dfa.c, tree-mudflap.c,
tree-nrv.c, tree-sra.c, tree-ssa-alias.c, tree-ssa-ccp.c,
tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-dse.c,
tree-ssa-forwprop.c, tree-ssa-operands.c, tree-ssa-pre.c,
tree-ssa.c, tree-tail-call.c: Call print_generic_* with
'dump_flags'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79554 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* Makefile.in (tree-ssa-phiopt.o): add langhooks.h dependency.
(tree-nrv.o): Ditto.
(tree-ssa-copy.o): Ditto.
(tree-ssa-dom.o): Ditto.
(tree-ssa-ccp.o): Ditto.
* c-common.c: Add #include hashtab.h.
(c_type_hash): New.
(c_common_get_alias_set): Handle multiple type nodes referring
to "the same" type, currently for C90 only.
* c-decl.c (current_file_decl): Move to toplev.c.
* c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define to
c_types_compatible_p.
(c_types_compatible_p): New.
* c-tree.h (c_types_compatible_p): New declaration.
* c-typeck.c (tagged_types_tu_compatible_p): Allow for
compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
* gimplify.c (canonicalize_addr_expr): Use types_compatible_p langhook.
(cpt_same_type): Ditto.
* langhooks-def.h (lhd_types_compatible_p): New declaration.
LANG_HOOKS_TYPES_COMPATIBLE_P: New.
* langhooks.c (lhd_types_compatible_p): New.
* langhooks.h (struct lang_hooks): Add types_compatible_p.
* stmt.c (tail_recursion_args): Use types_compatible_p langhook.
* toplev.c (current_file_decl): New, moved from c-decl.c.
* tree-nrv.c: Include langhooks.h.
(tree_nrv): Use types_compatible_p langhook.
* tree-ssa-ccp.c: Include langhooks.h.
(maybe_fold_offset_to_array_ref): Use types_compatible_p langhook.
(maybe_fold_offset_to_component_ref): Ditto (2 places).
(fold_stmt_r): Make sure rhs of COMPONENT_REF is in lhs type.
* tree-ssa-copy.c: Include langhooks.h.
(cprop_into_stmt): Use types_compatible_p langhook.
* tree-ssa-dom.c: Include langhooks.h.
(avail_expr_p): Use types_compatible_p langhook.
* tree-ssa-phiopt.c: Include langhooks.h.
(conditional_replacement): Use types_compatible_p langhook.
* tree-ssa.c (tree_ssa_useless_type_conversion_1): Use
types_compatible_p langhook.
* tree.h (current_file_decl): New declaration.
* cp/cp-lang.c (cxx_types_compatible_p): New.
LANG_HOOKS_TYPES_COMPATIBLE_P: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79551 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR optimization/14498
* gimplify.c (copy_if_shared_r): Mark VA_ARGS_EXPRs as volatile.
(mark_decls_volatile_r): Moved higher in file (unchanged).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79541 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR optimization/14562
* tree-ssa-pre.c (generate_expr_as_of_bb): Don't use names_match_p.
(generate_vops_as_of_bb): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79533 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79519 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79489 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79466 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* gcc.dg/tree-ssa/20040313-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79449 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-ssa.c (replace_immediate_uses): Call propagate_value to
update operands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79447 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79418 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
HAVE_BANSHEE around test for PTA_ANDERSEN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79399 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-dfa.c (struct walk_state): Remove fields 'is_store' and
'is_indirect_ref'. Update all users.
* tree-flow.h (struct var_ann_d): Remove fields 'is_stored',
'is_dereferenced_store' and 'is_dereferenced_load'. Update
all users.
* tree-simple.c (get_base_address): Handle BIT_FIELD_REF.
* tree-ssa-alias.c (struct alias_info): Add fields
'written_vars', 'dereferenced_ptrs_store' and
'dereferenced_ptrs_load'.
(init_alias_info): Initialize them.
(delete_alias_info): Free them.
(find_ptr_dereference): New.
(ptr_is_dereferenced_by): Call it.
Add new argument 'is_store'. Set to true if the
expression is an indirect store operation.
(compute_points_to_and_addr_escape): If the statement
makes a store, load or write operation, update the
corresponding bitmap.
(compute_flow_insensitive_aliasing): Test the
'written_vars' bitmap to determine if alias sets should
be computed.
(setup_pointers_and_addressables): Always assume that
volatile pointers and hidden pointers have been used in a
memory store operation.
* tree-ssa-operands.c (add_stmt_operand): Do add an
operand for may-aliased variables before computing
aliases.
2004-03-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* tree-optimize.c (init_tree_optimization_passes): Move
pass_tail_recursion and pass_ch after pass_may_alias.
* tree-ssa-loop.c (mark_defs_for_rewrite): Mark type tags
for rewriting.
* tree-ssa.c (mark_def_sites): Process the operand of a
VDEF before the result.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79367 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-ssa.c (warn_uninit): Don't warn for hard register variables.
* gcc.dg/uninit-H.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79365 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79358 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
16-bit int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79340 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree-simple.h: Likewise.
* tree-dfa.c (discover_nonconstant_array_refs_r): Use get_base_address.
* tree-ssa-alias.c (ptr_is_dereferenced_by): Likewise.
(add_pointed_to_var, is_escape_site): Likewise.
* tree-ssa-ccp.c (get_default_value): Expect only SSA_NAME and DECLs.
* tree-ssa-operands.c (add_stmt_operand): Likewise.
(note_addressable): Use get_base_address.
* tree-ssa-dce.c (need_to_preserve_store): Expect only SSA_NAME.
* tree-ssa.c (set_is_used): Inline get_base_decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79301 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
on modified ADDR_EXPRs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79291 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79283 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* tree.c (stabilize_init): Return whether or not it worked.
* init.c (build_new_1): If not, use a sentry.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79275 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
PR c/14475
* gcc.dg/pr14475.c: New test.
2004-03-10 Andrew Pinski <apinski@apple.com
PR c/14475
* c-decl.c (check_bitfield_type_and_width): Check for null
lang_type_specific when check the precision of an enum.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79272 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* Makefile.in (tree-ssa-forwprop.o): Fix the dependences.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79267 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79214 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
* c-typeck.c (tagged_types_tu_compatible_p):
Fix typo.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79202 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
a constant for a virtual operand.
* gcc.c-torture/compile/20040309-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79195 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
(WRAP_gets): Avoid gets().
* testsuite/libmudflap.c/pass-stratcliff.c: Do not
test unimplemented mem/str calls on FreeBSD.
* testsuite/libmudflap.c/pass21-frag.c: Do not include
<alloca.h> on FreeBSD.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79146 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79138 138bc75d-0d04-0410-961f-82ee72b054a4
|
|
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79121 138bc75d-0d04-0410-961f-82ee72b054a4
|