jonz [Wed, 16 Feb 2005 03:12:26 +0000 (16 03:12 +0000)]
Bump version to gcc_os_35-3507.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@95091 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Tue, 15 Feb 2005 08:19:07 +0000 (15 08:19 +0000)]
Bump version to gcc_os_35-3506. We're skipping a CVS -3505 because it was done as a hack off-line.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@95060 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Tue, 15 Feb 2005 08:17:22 +0000 (15 08:17 +0000)]
Belatedly put Stan's change to default to -malign-natural for 64-bit into the 3.5 compiler.
This went in as a hack for gcc_os_35-3505 when CVS was down. Now it's going into -3506.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@95059 138bc75d-0d04-0410-961f-82ee72b054a4
dalej [Mon, 14 Feb 2005 23:24:49 +0000 (14 23:24 +0000)]
2005-02-14 Dale Johannesen <dalej@apple.com>
Radar
4003603
PR 18109
(Same as
3838108/
3876378 in 4.0.)
* config/i386/i386.md (movqi_1): Don't use 4-byte load when unsafe.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@95049 138bc75d-0d04-0410-961f-82ee72b054a4
dalej [Wed, 26 Jan 2005 18:57:14 +0000 (26 18:57 +0000)]
2005-01-25 Dale Johannesen <dalej@apple.com>
Radar
3970057
* config/rs6000/rs6000.c (rs6000_return_in_memory):
Implement Darwin 64-bit convention correctly.
(rs6000_darwin64_record_arg_flush_pending):
Compute correct reg for int field following doubles.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@94273 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Sat, 22 Jan 2005 02:02:10 +0000 (22 02:02 +0000)]
Bump version to gcc_os_35-3505.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@94055 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Fri, 21 Jan 2005 23:16:45 +0000 (21 23:16 +0000)]
2005-01-21 Stuart Hastings <stuart@apple.com>
Radar
3959753
* gcc/gcc.c (process_command): Malloc overflowing static char array.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@94046 138bc75d-0d04-0410-961f-82ee72b054a4
dalej [Fri, 21 Jan 2005 19:23:58 +0000 (21 19:23 +0000)]
2005-01-20 Dale Johannesen <dalej@apple.com>
Radar
3966230
* config/rs6000/darwin.md (movsf_low_di): Make work.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@94030 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Thu, 20 Jan 2005 03:25:11 +0000 (20 03:25 +0000)]
Bump version to gcc_os_35-3504.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93941 138bc75d-0d04-0410-961f-82ee72b054a4
dalej [Thu, 20 Jan 2005 01:55:19 +0000 (20 01:55 +0000)]
2005-01-19 Dale Johannesen <dalej@apple.com>
Radar
3961638
* config/rs6000/darwin.md (movdf_low_di): Make work.
2005-01-13 Dale Johannesen <dalej@apple.com>
Radars
3942172 3897795 3944716 3941494
* config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
intoffset, use_stack, named.
* config/rs6000/rs6000.c (rs6000_darwin64_function_arg): Remove.
rs6000_darwin64_record_arg_advance_flush_pending_int_fields: New.
rs6000_darwin64_record_arg_advance_recurs: New.
rs6000_darwin64_record_arg_flush_pending_int_fields: New.
rs6000_darwin64_record_arg_recurs: New.
rs6000_darwin64_record_arg: New.
rs6000_return_in_memory: Remove AGGREGATE_TYPE_P check.
function_arg_boundary: Handle 128-bit aligned structs.
function_arg_advance: Rewrite darwin-64 struct handling.
function_arg: Call rs6000_darwin64_record_arg.
function_arg_partial_nregs: Handle darwin-64 structs.
rs6000_darwin64_function_value: Remove.
rs6000_function_value: Call rs6000_darwin64_record_arg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93937 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Fri, 14 Jan 2005 20:55:58 +0000 (14 20:55 +0000)]
2005-01-14 Stuart Hastings <stuart@apple.com>
Radar
3943021
* gcc.apple/fenv-minmax-1.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93662 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Fri, 14 Jan 2005 01:18:35 +0000 (14 01:18 +0000)]
2005-01-13 Stuart Hastings <stuart@apple.com>
Radar
3236762
* gcc/config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Revert Mach-O arch back to i386,
regardless of -force_cpusubtype_ALL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93622 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Tue, 11 Jan 2005 02:57:20 +0000 (11 02:57 +0000)]
Bump version to gcc_os_35-3503.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93173 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Tue, 11 Jan 2005 00:18:45 +0000 (11 00:18 +0000)]
2005-01-10 Stuart Hastings <stuart@apple.com>
Radar
3236762
* gcc/config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Revert Mach-O arch back to i386.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93164 138bc75d-0d04-0410-961f-82ee72b054a4
dalej [Mon, 10 Jan 2005 03:59:52 +0000 (10 03:59 +0000)]
Test for
3941146.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93133 138bc75d-0d04-0410-961f-82ee72b054a4
dalej [Mon, 10 Jan 2005 03:57:26 +0000 (10 03:57 +0000)]
2005-01-09 Dale Johannesen <dalej@apple.com>
Radar
3941146
Following patches from mainline:
2004-10-27 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/17133
* tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
def kill operand.
* tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
(get_v_must_def_result_ptr): Modify for new structure of
v_must_defs array.
(get_v_must_def_kill_ptr): New.
(op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
(op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
(op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
(op_iter_init): Initialize new mustu members.
(op_iter_next_mustdef): New function.
(op_iter_init_mustdef): Ditto.
* tree-flow.h (rewrite_def_def_chains): New function.
* tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
(ssa_mark_def_sites): Ditto.
(rewrite_stmt): Ditto.
(ssa_rewrite_stmt): Ditto.
(rewrite_blocks): Factor out from rewrite_into_ssa.
(mark_def_block_sites): Ditto.
(rewrite_def_def_chains): New function, just rewrites def-def
chains without phi node insertion.
* tree-pass.h (TODO_fix_def_def_chains): New todo flag.
* tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
* tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
they include the rhs now.
* tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
V_MUST_DEF_RESULT.
* tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
Update callers.
(mark_really_necessary_kill_operand_phis): New function.
(perform_tree_ssa_dce): Call it.
(pass_dce): Add TODO_fix_def_def_chains.
(pass_cd_dce): Ditto.
* tree-ssa-loop-im.c (determine_max_movement): Look at kills as
well.
(rewrite_mem_refs): Ditto.
* tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
as well.
* tree-ssa-operands.c (allocate_v_may_def_optype):
v_may_def_operand_type_t became v_def_use_operand_type_t.
(allocate_v_must_def_optype) Ditto.
(finalize_ssa_v_must_defs): Update for new operand type, as well
as setting the use portion as well.
(copy_virtual_operands): Copy the kill operand as well.
(create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
V_MUST_DEF_RESULT.
* tree-ssa-operands.h (v_may_def_operand_type): Renamed to
v_def_use_operand_type.
(v_must_def_optype_d): Use v_def_use_operand_type.
(V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
(V_MUST_DEF_KILL_*): New macros.
(struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
members.
Rename existing must_i and num_v_must members to mustd_i and
num_v_mustd.
(SSA_OP_VMUSTDEFKILL): New flag.
(SSA_OP_VIRTUAL_KILLS): New flag.
(SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
(SSA_OP_ALL_KILLS): New flag.
(FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
* tree-ssa.c (verify_ssa): Verify virtual kills as well.
* tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
became V_MUST_DEF_RESULT.
(rename_variables_in_bb): Rename kill pointer as well.
* tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
immediate uses.
2004-10-28 Daniel Berlin <dberlin@dberlin.org>
* tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
(rewrite_blocks): Modify argument, and use it to decide which
function to call.
(rewrite_def_def_chains): Call rewrite_blocks with true here.
(rewrite_into_ssa): and call it with false here.
2004-11-16 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/18519
* tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
* tree-pass.h: Add TODO_cleanup_cfg.
* tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
(ccp_finalize): Remove call to cleanup_cfg.
* tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
(pass_cd_dce): Ditto.
(perform_tree_ssa_dce): Remove call to cleanup_cfg,
dump_function_to_file.
* tree-ssa-loop-ch.c (copy_loop_headers): Remove call
to cleanup_cfg.
(pass_ch): Add TODO_cleanup_cfg.
* tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
cleanup_cfg.
(pass_loop_done): Add TODO_cleanup_cfg.
* tree-ssa-phiopt.c (pass_phiopt): Ditto.
(tree_ssa_phiopt): Remove call to cleanup_cfg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93132 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Fri, 7 Jan 2005 12:56:10 +0000 (7 12:56 +0000)]
Bump version to gcc_os_35-3502.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93050 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Fri, 7 Jan 2005 11:54:06 +0000 (7 11:54 +0000)]
Revert the change made for:
3933673: STD: gcc and gcc_os_35 won't build with ucontext changes
in gcc 3.5.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93047 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Fri, 7 Jan 2005 11:22:30 +0000 (7 11:22 +0000)]
Bump version to gcc_os_35-3500.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93045 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Fri, 7 Jan 2005 00:19:00 +0000 (7 00:19 +0000)]
2005-01-06 Andrew Pinski <pinskia@physics.uc.edu>
Stuart Hastings <stuart@apple.com>
Radar
3830232
* gcc/testsuite/gcc.apple/notailcall-1.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93020 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Thu, 6 Jan 2005 22:54:43 +0000 (6 22:54 +0000)]
* unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
Mach-O getters if ppc64.
* config/darwin.c (darwin_asm_output_dwarf_delta): Obey
size argument.
* config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
signed four-byte field for global code case.
* config/rs6000/rs6000.c (rs6000_emit_prologue): Don't skip
saving r31 if we must do a full stack frame.
(rs6000_emit_epilogue): Similarly for restoring r31.
Radars
3909542,
3920869
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@93010 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Tue, 4 Jan 2005 21:42:21 +0000 (4 21:42 +0000)]
2005-01-03 Stuart Hastings <stuart@apple.com>
Radar
3830232, Bugzilla 17526
* tree-gimple.c (is_gimple_mem_rhs): Force a temp for every
register-candidate to prevent bad tailcalls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92907 138bc75d-0d04-0410-961f-82ee72b054a4
geoffk [Tue, 4 Jan 2005 02:31:57 +0000 (4 02:31 +0000)]
Radar
3933673
* config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
'struct ucontext'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92885 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Wed, 22 Dec 2004 00:23:07 +0000 (22 00:23 +0000)]
2004-12-21 Stuart Hastings <stuart@apple.com>
Radar
3905251
* gcc/cse.c (fold_rtx): disable CSE of vector constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92481 138bc75d-0d04-0410-961f-82ee72b054a4
fjahanian [Sat, 18 Dec 2004 18:27:47 +0000 (18 18:27 +0000)]
Test case for radar
3914905.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92355 138bc75d-0d04-0410-961f-82ee72b054a4
fjahanian [Sat, 18 Dec 2004 18:23:27 +0000 (18 18:23 +0000)]
Radar
3914905
c-typeck.c (digest_init): Handle case of vector literal initializer initializing a
const variable.
convert.c (build_compound_literal_vector): New routine to generate a
COMPOUND_LITERAL_EXPR expression for a vector constant.
(convert_to_vector); call build_compound_literal_vector.
Reviewed by Ziem.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92354 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Sat, 18 Dec 2004 01:40:34 +0000 (18 01:40 +0000)]
Bump version to gcc_os_35-3500.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92346 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Fri, 17 Dec 2004 04:54:04 +0000 (17 04:54 +0000)]
Bump version to gcc_os_35-1799.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92306 138bc75d-0d04-0410-961f-82ee72b054a4
dalej [Thu, 16 Dec 2004 20:08:29 +0000 (16 20:08 +0000)]
2004-12-15 Dale Johannesen <dalej@apple.com>
Radar
3922635 3807105 3893215
* tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Make MINUS work.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92284 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Thu, 16 Dec 2004 00:08:33 +0000 (16 00:08 +0000)]
Bump version to gcc_os_35-1798.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92230 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Tue, 14 Dec 2004 17:53:39 +0000 (14 17:53 +0000)]
2004-12-14 Stuart Hastings <stuart@apple.com>
Radar
3910248
* gcc/config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): ignore
-mlongcall when -m64 in use.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@92149 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Fri, 10 Dec 2004 01:18:20 +0000 (10 01:18 +0000)]
2004-12-09 Stuart Hastings <stuart@apple.com>
Radar
3910248
* gcc/config/rs6000/rs6000.c (output_call): correctly skip non-line-number notes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91985 138bc75d-0d04-0410-961f-82ee72b054a4
stuart [Fri, 10 Dec 2004 01:09:21 +0000 (10 01:09 +0000)]
2004-12-09 Stuart Hastings <stuart@apple.com>
Radar
3855246
* gcc/config/rs6000/rs6000.c (init_cumulative_args): Remove APPLE LOCAL.
(macho_branch_islands): branch island formatting fixes.
* gcc/config/rs6000/rs6000.h (target_flags): Remove APPLE LOCAL.
(TARGET_OPTIONS): Add -mlong-branch as a synonym for -mlongcall.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91984 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Thu, 9 Dec 2004 20:44:57 +0000 (9 20:44 +0000)]
* config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
formerly in darwin-tramp.asm.
* config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
* config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
* config/rs6000/t-darwin: Add dependencies.
Radars
3907645,
3629934
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91968 138bc75d-0d04-0410-961f-82ee72b054a4
(no author) [Thu, 9 Dec 2004 18:25:15 +0000 (9 18:25 +0000)]
This commit was manufactured by cvs2svn to create branch
'apple-gcc_os_35-branch'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91961 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Thu, 2 Dec 2004 01:33:53 +0000 (2 01:33 +0000)]
Bump version to gcc_os_35-1797.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91603 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Thu, 2 Dec 2004 00:10:22 +0000 (2 00:10 +0000)]
* config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
Darwin default to one-byte bools.
Radar
3897534
Reviewed by Dale Johannesen
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91593 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Wed, 1 Dec 2004 23:42:46 +0000 (1 23:42 +0000)]
* config/darwin.c (machopic_select_rtx_section): Don't put relocatable
expressions in the .literal8 section.
Radar
3901539
Reviewed by Dale Johannesen
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91588 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Sun, 28 Nov 2004 14:38:14 +0000 (28 14:38 +0000)]
Bump version to gcc_os_35-1796.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91422 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Sun, 28 Nov 2004 08:21:06 +0000 (28 08:21 +0000)]
Bump version to gcc_os_35-1795.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91412 138bc75d-0d04-0410-961f-82ee72b054a4
geoffk [Sat, 27 Nov 2004 03:27:03 +0000 (27 03:27 +0000)]
Radar
3894717
* build_gcc: Don't install any header from more-hdrs
that Libc has already provided.
* fixincludes/inclhack.def (darwin_stdint_guards_intn): Remove
_DECLARED from end of guard macro names.
(darwin_stdint_guards_intptr): Likewise.
(darwin_stdint_guards_uintptr): Likewise.
* more-hdrs/stdint.h: Likewise.
* fixincludes/fixincl.x: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91366 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Mon, 22 Nov 2004 20:47:31 +0000 (22 20:47 +0000)]
Try patching the right function this time
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91030 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Mon, 22 Nov 2004 07:52:18 +0000 (22 07:52 +0000)]
* config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
UNION_TYPE case.
(function_arg): Move darwin test up, sniff mode first for
efficiency, test for union type.
Radar
3885851
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@91005 138bc75d-0d04-0410-961f-82ee72b054a4
jonz [Mon, 15 Nov 2004 03:00:14 +0000 (15 03:00 +0000)]
Bump version to gcc_os_35-1794.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@90647 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Sun, 14 Nov 2004 20:36:18 +0000 (14 20:36 +0000)]
Basic ABI changes for passing structs by value in 64-bit Darwin.
* config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
(rs6000_override_options): Set it for 64-bit Darwin.
(rs6000_parse_abi_options): Add testing options to change it.
(rs6000_return_in_memory): Test whether the type is one
that can be passed in registers.
(darwin64_function_arg_advance): New.
(function_arg_advance): Call it, plus add recursion depth
argument and test when counting off arguments.
(rs6000_darwin64_function_arg): New.
(function_arg): Call it.
(setup_incoming_varargs): Add argument to function_arg_advance.
(rs6000_darwin64_function_value): New.
(rs6000_function_value): Call it.
* config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
* config/rs6000/rs6000-protos.h: Update decl of
function_arg_advance.
Radar
3830902
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@90630 138bc75d-0d04-0410-961f-82ee72b054a4
shebs [Sun, 14 Nov 2004 00:54:16 +0000 (14 00:54 +0000)]
* fixincludes/fixinc.in: Revive 64-bit bandaid.
Radar
3872664
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@90608 138bc75d-0d04-0410-961f-82ee72b054a4
(no author) [Sun, 14 Nov 2004 00:54:16 +0000 (14 00:54 +0000)]
This commit was manufactured by cvs2svn to create branch
'apple-gcc_os_35-branch'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/apple-gcc_os_35-branch@90607 138bc75d-0d04-0410-961f-82ee72b054a4
fche [Sat, 20 Mar 2004 12:33:41 +0000 (20 12:33 +0000)]
2004-03-20 Frank Ch. Eigler <fche@redhat.com>
* 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
dnovillo [Sat, 20 Mar 2004 03:59:45 +0000 (20 03:59 +0000)]
PR optimization/14643
* 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
kazu [Sat, 20 Mar 2004 02:42:09 +0000 (20 02:42 +0000)]
* fold-const.c (fold_relational_const): Remove dead code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79725 138bc75d-0d04-0410-961f-82ee72b054a4
gccadmin [Sat, 20 Mar 2004 00:16:17 +0000 (20 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79720 138bc75d-0d04-0410-961f-82ee72b054a4
law [Fri, 19 Mar 2004 22:46:30 +0000 (19 22:46 +0000)]
* tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Fix typo.
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
dalej [Fri, 19 Mar 2004 18:26:09 +0000 (19 18:26 +0000)]
2003-03-19 Dale Johannesen <dalej@apple.com>
* 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
law [Fri, 19 Mar 2004 17:51:45 +0000 (19 17:51 +0000)]
* tree-dfa.c (find_hidden_use_vars): Also look inside the
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
dnovillo [Fri, 19 Mar 2004 02:07:25 +0000 (19 02:07 +0000)]
* Makefile.in (TREE_FLOW_H): Reformat.
(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
gccadmin [Fri, 19 Mar 2004 00:16:16 +0000 (19 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79654 138bc75d-0d04-0410-961f-82ee72b054a4
law [Thu, 18 Mar 2004 22:52:39 +0000 (18 22:52 +0000)]
2004-03-18 Mark Mitchell <mark@codesourcery.com>
* 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
(no author) [Thu, 18 Mar 2004 22:52:39 +0000 (18 22:52 +0000)]
This commit was manufactured by cvs2svn to create branch
'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
law [Thu, 18 Mar 2004 22:43:56 +0000 (18 22:43 +0000)]
* Makefile.in (tree-tailcall.o): Depend on langhooks.h.
* 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
dpatel [Thu, 18 Mar 2004 21:49:12 +0000 (18 21:49 +0000)]
* tree-ssa-live.c (new_tree_live_info): Set num_blocks to
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
rth [Thu, 18 Mar 2004 00:44:33 +0000 (18 00:44 +0000)]
* cp-lang.c (cxx_types_compatible_p): Use
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
gccadmin [Thu, 18 Mar 2004 00:16:17 +0000 (18 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79613 138bc75d-0d04-0410-961f-82ee72b054a4
law [Wed, 17 Mar 2004 21:20:38 +0000 (17 21:20 +0000)]
* tree-tailcall.c (find_tail_calls): Tighten test for tail recursion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79606 138bc75d-0d04-0410-961f-82ee72b054a4
law [Wed, 17 Mar 2004 21:14:32 +0000 (17 21:14 +0000)]
* gcc.c-torture/compile/
20040317-1.c: New test.
* 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
rth [Wed, 17 Mar 2004 20:39:29 +0000 (17 20:39 +0000)]
Move c++ change to the proper file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79601 138bc75d-0d04-0410-961f-82ee72b054a4
dnovillo [Wed, 17 Mar 2004 19:44:35 +0000 (17 19:44 +0000)]
PR optimization/14511
* 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
hubicka [Wed, 17 Mar 2004 11:52:44 +0000 (17 11:52 +0000)]
* tree-ssa.c (rewrite_into_ssa, compute_global_livein): Fix.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79586 138bc75d-0d04-0410-961f-82ee72b054a4
bonzini [Wed, 17 Mar 2004 07:58:23 +0000 (17 07:58 +0000)]
2004-03-17 Paolo Bonzini <bonzini@gnu.org>
* 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
gccadmin [Wed, 17 Mar 2004 00:16:17 +0000 (17 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79562 138bc75d-0d04-0410-961f-82ee72b054a4
dnovillo [Tue, 16 Mar 2004 22:31:58 +0000 (16 22:31 +0000)]
* tree-dump.c (struct dump_option_value_info): Add TDF_UID.
* 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
dalej [Tue, 16 Mar 2004 22:16:41 +0000 (16 22:16 +0000)]
2004-03-16 Dale Johannesen <dalej@apple.com>
* 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
dalej [Tue, 16 Mar 2004 19:05:56 +0000 (16 19:05 +0000)]
2004-03-16 Dale Johannesen <dale@apple.com>
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
dberlin [Tue, 16 Mar 2004 15:59:29 +0000 (16 15:59 +0000)]
2004-03-16 Daniel Berlin <dberlin@dberlin.org>
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
gccadmin [Tue, 16 Mar 2004 00:16:15 +0000 (16 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79519 138bc75d-0d04-0410-961f-82ee72b054a4
gccadmin [Mon, 15 Mar 2004 00:16:16 +0000 (15 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79489 138bc75d-0d04-0410-961f-82ee72b054a4
gccadmin [Sun, 14 Mar 2004 00:16:21 +0000 (14 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79466 138bc75d-0d04-0410-961f-82ee72b054a4
dnovillo [Sat, 13 Mar 2004 15:21:58 +0000 (13 15:21 +0000)]
PR optimization/14553
* 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
dnovillo [Sat, 13 Mar 2004 15:00:55 +0000 (13 15:00 +0000)]
PR optimization/14553
* 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
gccadmin [Sat, 13 Mar 2004 00:16:17 +0000 (13 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79418 138bc75d-0d04-0410-961f-82ee72b054a4
dnovillo [Fri, 12 Mar 2004 17:49:52 +0000 (12 17:49 +0000)]
* tree-alias-common.c (create_alias_vars): Add #if
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
dnovillo [Fri, 12 Mar 2004 04:19:06 +0000 (12 04:19 +0000)]
2004-03-11 Diego Novillo <dnovillo@redhat.com>
* 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
rth [Fri, 12 Mar 2004 02:01:20 +0000 (12 02:01 +0000)]
PR 14204
* 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
gccadmin [Fri, 12 Mar 2004 00:16:18 +0000 (12 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79358 138bc75d-0d04-0410-961f-82ee72b054a4
kazu [Thu, 11 Mar 2004 19:21:19 +0000 (11 19:21 +0000)]
* gcc.dg/tree-ssa/
20040305-1.c: Change a constant to fit in a
16-bit int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79340 138bc75d-0d04-0410-961f-82ee72b054a4
rth [Thu, 11 Mar 2004 05:07:18 +0000 (11 05:07 +0000)]
* tree-simple.c (get_base_var, get_base_decl): Remove.
* 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
rth [Thu, 11 Mar 2004 01:12:00 +0000 (11 01:12 +0000)]
* tree-nested.c (convert_nonlocal_reference): Clear TREE_INVARIANT
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
gccadmin [Thu, 11 Mar 2004 00:16:54 +0000 (11 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79283 138bc75d-0d04-0410-961f-82ee72b054a4
jason [Wed, 10 Mar 2004 21:32:50 +0000 (10 21:32 +0000)]
PR c++/14452
* 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
pinskia [Wed, 10 Mar 2004 18:37:50 +0000 (10 18:37 +0000)]
2004-03-10 Andrew Pinski <apinski@apple.com>
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
pinskia [Wed, 10 Mar 2004 18:04:23 +0000 (10 18:04 +0000)]
2004-03-09 Andrew Pinski <apinski@apple.com>
* 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
gccadmin [Wed, 10 Mar 2004 00:16:16 +0000 (10 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79214 138bc75d-0d04-0410-961f-82ee72b054a4
pinskia [Tue, 9 Mar 2004 22:23:29 +0000 (9 22:23 +0000)]
2004-03-09 Andrew Pinski <apinski@apple.com>
* 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
law [Tue, 9 Mar 2004 18:27:56 +0000 (9 18:27 +0000)]
* tree-flow-inline.h (may_propagate_copy): Do not allow propagation of
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
ljrittle [Tue, 9 Mar 2004 01:21:36 +0000 (9 01:21 +0000)]
* mf-hooks2.c: Support FreeBSD.
(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
gccadmin [Tue, 9 Mar 2004 00:16:17 +0000 (9 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79138 138bc75d-0d04-0410-961f-82ee72b054a4
dnovillo [Mon, 8 Mar 2004 18:06:21 +0000 (8 18:06 +0000)]
Mainline merge as of 2004-03-07.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79121 138bc75d-0d04-0410-961f-82ee72b054a4
(no author) [Mon, 8 Mar 2004 18:06:21 +0000 (8 18:06 +0000)]
This commit was manufactured by cvs2svn to create branch
'tree-ssa-
20020619-branch'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79120 138bc75d-0d04-0410-961f-82ee72b054a4
law [Mon, 8 Mar 2004 02:07:31 +0000 (8 02:07 +0000)]
* tree-ssa-dom.c: (get_eq_expr_value): Fix typo when comparing a
boolean against a constant.
* tree-ssa-forwprop.c (record_single_argument_cond_exprs): Do not
record the same SSA_NAME more than once. Only record the SSA_NAME
tested, not the COND_EXPR.
(substitute_single_use_vars): Substitute booleans which are
set from a TRUTH_NOT_EXPR even if they have more than one use site.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79090 138bc75d-0d04-0410-961f-82ee72b054a4
gccadmin [Mon, 8 Mar 2004 00:16:14 +0000 (8 00:16 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79082 138bc75d-0d04-0410-961f-82ee72b054a4
dberlin [Mon, 8 Mar 2004 00:09:27 +0000 (8 00:09 +0000)]
2004-03-07 Daniel Berlin <dberlin@dberlin.org>
* engine/Makefile.am (AM_CFLAGS): Add -I$(top_srcddir)/../include, so we
can get ansidecl.h and friends.
* engine/array.c (array_extend): Fix unsigned/signed comparison.
* engine/banshee.h (struct gen_e): Just make void * when empty, instead
of empty struct.
* engine/compiler.h: Don't ever define HAVE_VARIADIC_MACROS, -pedantic
whines about them even when we know we can use them.
* engine/dot.c: constify our char *'s everywhere.
(declare_node): Cast &result to char * before casting to hash_data *.
* engine/dot.h: constify our char *'s everywhere.
* engine/flow-var.c: Ditto.
* engine/flow-var.h: Ditto.
* engine/flowrow-sort.c: Include ansidecl.h.
(get_contour): Mark unused parameter.
(update_upper_bound): Make comment /* instead of //.
(field_eq): Staticify.
* engine/hash.c (string_hash): Staticify.
(string_eq): Ditto.
(entry_cmp): Ditto.
* engine/hash.h: Move comments around.
(hash_table_apply): Add prototype.
* engine/hashset.c (INIT_TABLE_SIZE): Remove extra semicolon.
(EMPTY_KEY): Ditto.
* engine/jcollection.c (jcoll_create_chain): // -> /* comment.
(jcoll_accum): Staticify.
* engine/list.c (sort_linked_list): Staticify.
(compare): Use comparator_fn as last argument, not void *.
* engine/list.h: Declare the functions even for opaque lists.
(list_clear macro): don't return value.
* engine/setif-sort.c: Replaced with new version from banshee cvs.
* engine/setif-var.c: constify our char *'s.
* engine/setif-var.h: Ditto.
* engine/setst-var.c: Ditto.
* engine/setst-var.h: Ditto.
* engine/stamp.c (stamp_string): Use long, not int.
Cast through char *.
* engine/stamp.h (stamp): Long, not int.
* engine/term-sort.c (term_print_stats): Mark argument unused.
include ansidecl.h.
* engine/term-var.c: constify the char *'s.
* engine/term-var.h: Ditto.
* engine/ufind.h (union find update macro): Don't return uf_update's value
(which is void anyway).
* engine/util.c (ptr_hash): Return long, not int.
* engine/util.h (ptr_hash): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/tree-ssa-20020619-branch@79078 138bc75d-0d04-0410-961f-82ee72b054a4