platform/upstream/gcc.git
23 years agoexpr.c (epxand_expr): Convert divisions into multiplications by reciprocals if -ffast...
Jan Hubicka [Tue, 17 Jul 2001 21:44:57 +0000 (23:44 +0200)]
expr.c (epxand_expr): Convert divisions into multiplications by reciprocals if -ffast-math.

* expr.c (epxand_expr): Convert divisions into multiplications by
reciprocals if -ffast-math.

From-SVN: r44090

23 years agodbxout.c (dbxout_really_begin_function): Rename to dbxout_begin_function.
Neil Booth [Tue, 17 Jul 2001 19:47:58 +0000 (19:47 +0000)]
dbxout.c (dbxout_really_begin_function): Rename to dbxout_begin_function.

* dbxout.c (dbxout_really_begin_function): Rename to
dbxout_begin_function.
(dbx_debug_hooks, xcoff_debug_hooks): Update.
(dbxout_begin_function): Remove.
(dbxout_function): Update.
(dbxout_source_line): Update prototype.
* dbxout.h (dbxout_begin_function): Remove.
* debug.c (do_nothing_debug_hooks): Update.
(debug_nothing_tree): Update.
(debug_nothing_charstar_rtx): Remove.
* debug.h (union tree_node): Declare.
(struct rtx_def): Remove.
(gcc_debug_hooks): New hooks begin_prologue, end_prologue,
begin_function.  Change source_line prototype.
(debug_nothing_tree): New.
(debug_nothing_charstar_rtx): Delete.
(dwarf2out_begin_prologue): Moved from ...
* tree.h: ... here.
* dwarf2out.c (dwarf2_debug_hooks): Update.
(dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
debug info, call dwarf2out_source_line.
(dwarf2out_souce_line): Update prototype.
* dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
Change prototype, make static.
(dwarfout_source_line): Update prototype.
(dwarf_debug_hooks): Update.
* dwarfout.h (dwarfout_begin_function): Remove.
* final.c (final_start_function, final_scan_insn): Use appropriate
debug hooks, update to use notice_source_line.
(output_source_line): Rename notice_source_line.  Don't call the
source_line debug hook.
* sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
make static, update prototype.
(sdbout_mark_begin_function): Rename sdbout_begin_function, update
prototype.
(sdbout_end_prologue): New.
(sdbout_source_line): Update prototype.
(sdbout_debug_hooks): Update.
(sdbout_symbol): Remove unused var.
* sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
Delete.
* varasm.c: Include debug.h.
(assemble_start_function): Use begin_function debug_hook.
* xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
update with prototype.
(xcoffout_source_line): Update prototype.
* xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
update prototype.
(xcoffout_source_line): Update prototype.

From-SVN: r44087

23 years agoc-typeck.c (build_binary_op): Do not shorten unsigned right shift after sign extension.
Richard Henderson [Tue, 17 Jul 2001 19:01:54 +0000 (12:01 -0700)]
c-typeck.c (build_binary_op): Do not shorten unsigned right shift after sign extension.

        * c-typeck.c (build_binary_op): Do not shorten unsigned
        right shift after sign extension.

From-SVN: r44080

23 years agoREADME: Add notes on naming test cases.
Benjamin Kosnik [Tue, 17 Jul 2001 18:47:34 +0000 (18:47 +0000)]
README: Add notes on naming test cases.

2001-07-17  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/README: Add notes on naming test cases.
* testsuite/22_locale/members.cc: Mark as xfail.
* testsuite/22_locale/numpunct_char_members.cc: Same.

From-SVN: r44076

23 years agoREADME: Add notes on naming test cases.
Benjamin Kosnik [Tue, 17 Jul 2001 18:43:28 +0000 (18:43 +0000)]
README: Add notes on naming test cases.

2001-07-17  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/README: Add notes on naming test cases.
* testsuite/22_locale/members.cc: Mark as xfail.
* testsuite/22_locale/numpunct_char_members.cc: Same.

From-SVN: r44074

23 years agocombine.c (combine_simplify_rtx): Attempt to simplify a*(b/c) as (a*b)/c for floats...
Jan Hubicka [Tue, 17 Jul 2001 15:11:56 +0000 (17:11 +0200)]
combine.c (combine_simplify_rtx): Attempt to simplify a*(b/c) as (a*b)/c for floats in unsafe_math mode.

* combine.c (combine_simplify_rtx): Attempt to simplify
a*(b/c) as (a*b)/c for floats in unsafe_math mode.

* simplify-rtx.c (avoid_constatn_pool_reference): New static function.
(simplify_binary_operation, simplify_unary_operation,
 simplify_relational_operation): Use it.

* combine.c (combine_simplify_rtx): Don't do associative law
on divisions; allow associative law on floats.

From-SVN: r44073

23 years agoc-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and ASM_OUTPUT_WEAK_ALIA...
H.J. Lu [Tue, 17 Jul 2001 12:55:19 +0000 (12:55 +0000)]
c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and ASM_OUTPUT_WEAK_ALIAS are defined.

* c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
ASM_OUTPUT_WEAK_ALIAS are defined.
* defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
* config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
Moved ...
* config/mips/iris5.h: ... here.
(HANDLE_SYSV_PRAGMA): Defined as 1.
* varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
* doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
symbol.

Co-Authored-By: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
From-SVN: r44072

23 years agoc-parse.in (all_prefix_attributes): New variable.
Joseph Myers [Tue, 17 Jul 2001 11:58:54 +0000 (12:58 +0100)]
c-parse.in (all_prefix_attributes): New variable.

* c-parse.in (all_prefix_attributes): New variable.
(PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
(maybe_resetattrs): New production.
(c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
notype_initdcl, nested_function, notype_nested_function,
component_decl, components, components_notype,
component_declarator, component_notype_declarator,
absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
ivars, mydecl, myparm): Update.  Avoid prefix attributes just
after a comma being applied to more than one declarator.
* doc/extend.texi (Attribute Syntax): Update.  Remove
documentation of bugs that are no longer present.

testsuite:
* gcc.c-torture/compile/20010714-1.c, gcc.dg/format/attr-4.c: New
tests.

From-SVN: r44070

23 years agocom.c (lang_print_error_function): Argument context is unused.
Toon Moene [Tue, 17 Jul 2001 10:42:57 +0000 (12:42 +0200)]
com.c (lang_print_error_function): Argument context is unused.

2001-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>

* com.c (lang_print_error_function): Argument context
is unused.

From-SVN: r44069

23 years agomips.h: Change TUNE_MIPS* options to use mips_tune.
Eric Christopher [Tue, 17 Jul 2001 10:29:18 +0000 (10:29 +0000)]
mips.h: Change TUNE_MIPS* options to use mips_tune.

2001-07-16  Eric Christopher  <echristo@redhat.com>

* config/mips/mips.h: Change TUNE_MIPS* options to use
mips_tune.
(EXTRA_SPECS): Add cc1_cpu_spec.
* config/mips/mips.md (muldf3): Fix typo.

From-SVN: r44068

23 years agoDaily bump.
GCC Administrator [Tue, 17 Jul 2001 07:16:17 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44066

23 years agom68k.c: Include expr.h and reload.h.
Richard Henderson [Tue, 17 Jul 2001 06:54:45 +0000 (23:54 -0700)]
m68k.c: Include expr.h and reload.h.

        * config/m68k/m68k.c: Include expr.h and reload.h.
        (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
        [general int]: Use HOST_WIDE_INT_PRINT_DEC.

From-SVN: r44065

23 years agocse.c (set_live_p): Take INSN argument for cc0; update callers.
Daniel Berlin [Tue, 17 Jul 2001 06:44:57 +0000 (06:44 +0000)]
cse.c (set_live_p): Take INSN argument for cc0; update callers.

        * cse.c (set_live_p): Take INSN argument for cc0; update callers.
        (insn_live_p): Fix fall off end of function.
        (dead_libcall_p): Remove COUNTS argument; update callers.
        (delete_trivially_dead_insns): Remove unused variables.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r44064

23 years agoFix typo in my last entry.
Andreas Jaeger [Tue, 17 Jul 2001 05:09:29 +0000 (07:09 +0200)]
Fix typo in my last entry.

From-SVN: r44063

23 years agounix.h (ASM_OUTPUT_MI_THUNK): Fix output format for x86-64 pic support.
Andreas Jaeger [Tue, 17 Jul 2001 04:55:25 +0000 (06:55 +0200)]
unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for x86-64 pic support.

        * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
        x86-64 pic support.

        * lcm.c (optimize_mode_switching): Avoid warning for unused
        variable if !NORMAL_MODE

        * flow.c (try_crossjump_to_edge): Remove unused variable.

From-SVN: r44062

23 years agoregenerate
Bruce Korb [Tue, 17 Jul 2001 04:00:12 +0000 (04:00 +0000)]
regenerate

From-SVN: r44061

23 years agoupdate the sample output
Bruce Korb [Tue, 17 Jul 2001 03:59:18 +0000 (03:59 +0000)]
update the sample output

From-SVN: r44060

23 years ago* g++.old-deja/g++.robertl/eb130.C: Include the correct header file.
Peter Schmid [Tue, 17 Jul 2001 03:26:34 +0000 (03:26 +0000)]
* g++.old-deja/g++.robertl/eb130.C: Include the correct header file.

From-SVN: r44059

23 years agoHPUX-es vsnprintf and Ultrix-es atexit declaration
Bruce Korb [Tue, 17 Jul 2001 03:02:52 +0000 (03:02 +0000)]
HPUX-es vsnprintf and Ultrix-es atexit declaration

From-SVN: r44058

23 years agoLinkedList.java (clone): Clear the copy list with clear(), not by setting its size...
Bryce McKinlay [Tue, 17 Jul 2001 01:56:38 +0000 (01:56 +0000)]
LinkedList.java (clone): Clear the copy list with clear(), not by setting its size field.

* java/util/LinkedList.java (clone): Clear the copy list with clear(),
not by setting its size field.

From-SVN: r44057

23 years agobasic-block.h (CLEANUP_PRE_SIBCALL): New constant.
Jan Hubicka [Mon, 16 Jul 2001 20:54:44 +0000 (22:54 +0200)]
basic-block.h (CLEANUP_PRE_SIBCALL): New constant.

* basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
* except.c (finish_eh_generation): Update call of cleanup_cfg;
do rebuild_jump_labels instead of jump_optimize
* sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
* toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
* flow.c (try_optimize_cfg): Remove unneeded code_labels.

* flow.c: Include timevar.h
(find_basic_block): Push/pop timevar;
(cleanup_cfg): Likewise.
* timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
* Makefile: Add dependencies on timevar.h

* integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
(copy_insn_list): Avoid killing of BASIC_BLOCK notes.

* rtl.h (delete_trivially_dead_insns): Add new parameter.
* toplev.c (rest_of_compilation): Update calls.
* cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
(delete_trivially_dead_insns): ... here; accept new argument
preserve_basic_blocks; preserve basic blocks if set.

* reg-stack.c (stack_regs_mentioned): Return 0 if
stack_regs_mentioned_data is not initialized.
(reg_to_stack): Make stack_regs_mentioned survive after the
reg-stack is completted; do not call cleanup_cfg.
* toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
make cleanup_cfg after bb-reorder to output to debug file.

From-SVN: r44056

23 years agogcse.c: Update comment at top.
Daniel Berlin [Mon, 16 Jul 2001 20:02:08 +0000 (20:02 +0000)]
gcse.c: Update comment at top.

        * gcse.c: Update comment at top.
        Update comment on mem handling.
        mem_last_set, mem_first_set, mem_set_in_block: gone.
        Declaration of reg_set_info: gone.
        (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
        pointless with load_killed_in_block_p (they are *more*
        conservative then it, not less, and less accurate).
        (oprs_not_set_p): Ditto.
        (alloc_gcse_mem): Don't allocate mem_set_in_block
        (free_gcse_mem): Don't free it, either.
        (record_last_mem_set_info): Update comment in front, remove
        mem_*set_* stuff. Note the reason we don't handle stores directly
        here.
        (compute_hash_table): Update comments to reflect reality. Remove
        mem_*set_* references.
        (reset_opr_set_tables): Remove mem_*set_* references.
        (mark_call): Ditto.
        (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
        (mark_clobber): Ditto (on both parts, we double set here too).
        (expr_killed_p): Remove mem_set_in_block test.
        (compute_transp): Remove mem_set_in_block test.

From-SVN: r44055

23 years agoregclass.c (init_reg_sets): Use only 32 bits per initializer from int_reg_class_contents.
Richard Henderson [Mon, 16 Jul 2001 17:57:11 +0000 (10:57 -0700)]
regclass.c (init_reg_sets): Use only 32 bits per initializer from int_reg_class_contents.

        * regclass.c (init_reg_sets): Use only 32 bits per initializer
        from int_reg_class_contents.

From-SVN: r44054

23 years agohard-reg-set.h (regs_invalidated_by_call): Declare.
Richard Henderson [Mon, 16 Jul 2001 17:54:34 +0000 (10:54 -0700)]
hard-reg-set.h (regs_invalidated_by_call): Declare.

        * hard-reg-set.h (regs_invalidated_by_call): Declare.
        * regclass.c (regs_invalidated_by_call): Move from cse.c.
        (init_reg_sets_1): Move initialization from cse_main.
        * cse.c (regs_invalidated_by_call): Move to regclass.c.
        (cse_main): Move its initialization also.
        * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
        * flow.c (propagate_one_insn): Likewise.
        * gcse.c (compute_hash_table): Likewise.
        (compute_kill_rd, compute_store_table): Likewise.
        * sched-deps.c (sched_analyze_1): Likewise.

From-SVN: r44053

23 years agoacinclude.m4 (GLIBCPP_ENABLE_CHEADERS): Use glibcpp_srcdir when setting C_INCLUDE_DIR.
Stephen M. Webb [Mon, 16 Jul 2001 17:43:54 +0000 (17:43 +0000)]
acinclude.m4 (GLIBCPP_ENABLE_CHEADERS): Use glibcpp_srcdir when setting C_INCLUDE_DIR.

2001-07-16  Stephen M. Webb  <stephen@bregmasoft.com>

* acinclude.m4 (GLIBCPP_ENABLE_CHEADERS):  Use glibcpp_srcdir when
setting C_INCLUDE_DIR.
* configure.in:  Revert yesterday's LN_S change.
* aclocal.m4:  Regenerate.
* configure:  Regenerate.

From-SVN: r44052

23 years ago20001229-1.c: Include <sys/proc.h> for UAC_SIGBUS, UAC_NOPRINT definitions.
Rainer Orth [Mon, 16 Jul 2001 17:20:58 +0000 (17:20 +0000)]
20001229-1.c: Include <sys/proc.h> for UAC_SIGBUS, UAC_NOPRINT definitions.

* gcc.c-torture/execute/20001229-1.c: Include <sys/proc.h> for
UAC_SIGBUS, UAC_NOPRINT definitions.

From-SVN: r44051

23 years agogcse.c (pre_insert_copy_insn): Use gen_move_insn instead of gen_rtx_SET.
J"orn Rennecke [Mon, 16 Jul 2001 17:18:48 +0000 (17:18 +0000)]
gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of gen_rtx_SET.

* gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
gen_rtx_SET.

From-SVN: r44048

23 years agosysv.S: Avoid gas-only .balign directive.
Rainer Orth [Mon, 16 Jul 2001 17:12:14 +0000 (17:12 +0000)]
sysv.S: Avoid gas-only .balign directive.

* src/x86/sysv.S: Avoid gas-only .balign directive.
Use C style comments.

From-SVN: r44046

23 years agore PR bootstrap/3563 (Error building libffi)
Rainer Orth [Mon, 16 Jul 2001 16:53:43 +0000 (16:53 +0000)]
re PR bootstrap/3563 (Error building libffi)

* src/alpha/ffi.c (ffi_prep_closure): Avoid gas-only mnemonic.
Fixes PR bootstrap/3563.

From-SVN: r44045

23 years agodominance.c (calc_dfs_tree_nonrec): Reverse order of tests in if statement so we...
Steve Ellcey [Mon, 16 Jul 2001 16:48:31 +0000 (16:48 +0000)]
dominance.c (calc_dfs_tree_nonrec): Reverse order of tests in if statement so we don't access undefined memory.

        * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
        in if statement so we don't access undefined memory.

From-SVN: r44043

23 years agossa-ccp.c: (optimize_unexecutable_edges): Add note about removal of edge...
Daniel Berlin [Mon, 16 Jul 2001 16:23:40 +0000 (16:23 +0000)]
ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal of edge...

        * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
        of edge, and removal of phi alternative to dump file.
        (ssa_ccp_substitute_constants): Add note about register now being
        constant, and which uses were replaced in what insns to dump file.

From-SVN: r44042

23 years agoAdded two new objc tests
Nicola Pero [Mon, 16 Jul 2001 11:38:13 +0000 (11:38 +0000)]
Added two new objc tests

From-SVN: r44041

23 years agoNew tests
Nicola Pero [Mon, 16 Jul 2001 11:37:23 +0000 (11:37 +0000)]
New tests

From-SVN: r44040

23 years agoFixed object_is_class and object_is_metaclass
Nicola Pero [Mon, 16 Jul 2001 11:36:24 +0000 (13:36 +0200)]
Fixed object_is_class and object_is_metaclass

From-SVN: r44039

23 years agoconfig.sub: Fix mips64vr5000el typo in CPU-COMPANY.
Aldy Hernandez [Mon, 16 Jul 2001 10:02:53 +0000 (10:02 +0000)]
config.sub: Fix mips64vr5000el typo in CPU-COMPANY.

2001-07-16  Aldy Hernandez  <aldyh@redhat.com>

        * config.sub: Fix mips64vr5000el typo in CPU-COMPANY.

From-SVN: r44034

23 years agogcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output variables of type HOST_...
Andreas Jaeger [Mon, 16 Jul 2001 09:16:04 +0000 (11:16 +0200)]
gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output variables of type HOST_WIDEST_INT.

* gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
variables of type HOST_WIDEST_INT.

* libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
(__bb_exit_func): Correct type of count_max to avoid overflow.
(num_digits): Handle long long argument.

* combine.c (gen_lowpart_for_combine): Remove unused variable.

From-SVN: r44033

23 years agoDaily bump.
GCC Administrator [Mon, 16 Jul 2001 07:16:10 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44031

23 years agooutput.h (sdb_begin_function_line): Restore as an extern variable.
Neil Booth [Mon, 16 Jul 2001 06:01:40 +0000 (06:01 +0000)]
output.h (sdb_begin_function_line): Restore as an extern variable.

* output.h (sdb_begin_function_line): Restore as an extern
variable.
* sdbout.c (sdb_begin_function_line): Make extern.

From-SVN: r44030

23 years agomachmode.def (Pmode): Redefine if GENERATOR_FILE.
Richard Henderson [Mon, 16 Jul 2001 00:28:20 +0000 (17:28 -0700)]
machmode.def (Pmode): Redefine if GENERATOR_FILE.

        * machmode.def (Pmode): Redefine if GENERATOR_FILE.
        * genrecog.c (maybe_both_true_mode): New.
        (maybe_both_true_2): Use it.
        (write_switch): Don't put Pmode in a switch.
        * rtl.c (mode arrays): Don't explicitly size them.

From-SVN: r44029

23 years agoconfigure.in: Temporarily force LN_S to copy instead of symlink.
Phil Edwards [Sun, 15 Jul 2001 22:17:43 +0000 (22:17 +0000)]
configure.in: Temporarily force LN_S to copy instead of symlink.

2001-07-15  Phil Edwards  <pme@sources.redhat.com>

* configure.in:  Temporarily force LN_S to copy instead of symlink.
* configure:  Regenerate.

From-SVN: r44028

23 years agotoplev.c (rest_of_compilation): Fix register_life_up_to_date handling...
Jan Hubicka [Sun, 15 Jul 2001 16:59:06 +0000 (18:59 +0200)]
toplev.c (rest_of_compilation): Fix register_life_up_to_date handling...

* toplev.c (rest_of_compilation): Fix register_life_up_to_date
handling; move unconditional splitting before mode switching.

* i386.md (type): Add fistp type.
(i387, length_attr, scheduling definitions): Handle this type.
(fix_trunc?f?i2): Revamp to use mode switching.
(fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
* i386.h (fp_cw_mode): New enum
(OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.

From-SVN: r44027

23 years agoMakefile.in (integrate.o): Add debug.h.
Richard Kenner [Sun, 15 Jul 2001 16:50:41 +0000 (16:50 +0000)]
Makefile.in (integrate.o): Add debug.h.

* Makefile.in (integrate.o): Add debug.h.
* integrate.c (debug.h): Add.
(output_inline_function): Save, reset, and restore debug_hooks.

From-SVN: r44026

23 years agoalpha.c (alpha_emit_xfloating_compare): Use CCmode instead of COMPARE for the EQUIV...
Richard Henderson [Sun, 15 Jul 2001 15:56:46 +0000 (08:56 -0700)]
alpha.c (alpha_emit_xfloating_compare): Use CCmode instead of COMPARE for the EQUIV expression.

        * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
        instead of COMPARE for the EQUIV expression.

From-SVN: r44024

23 years agoflow.c (redirect_edge_and_branch_force): Initialize global_live_at_start and global_l...
Richard Henderson [Sun, 15 Jul 2001 15:47:05 +0000 (08:47 -0700)]
flow.c (redirect_edge_and_branch_force): Initialize global_live_at_start and global_live_at_end.

        * flow.c (redirect_edge_and_branch_force): Initialize
        global_live_at_start and global_live_at_end.
        (allocate_bb_life_data): Export.
        * basic-block.h (allocate_bb_life_data): Declare it.
        * toplev.c (rest_of_compilation): Call it.

From-SVN: r44023

23 years agoalpha.c (alpha_tablejump_addr_vec): New.
Richard Henderson [Sun, 15 Jul 2001 15:38:52 +0000 (08:38 -0700)]
alpha.c (alpha_tablejump_addr_vec): New.

        * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
        (alpha_tablejump_best_label): New.
        * config/alpha/alpha-protos.h: Declare them.
        * config/alpha/alpha.md: Use braced strings for code blocks.
        (tablejump_osf): Break out add with r29.
        (tablejump_osf_internal): Remove.
        (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
        use alpha_tablejump_addr_vec and alpha_tablejump_best_label.

From-SVN: r44022

23 years agof90-intrinsic-numeric.f: Fix pasto.
Toon Moene [Sun, 15 Jul 2001 15:30:04 +0000 (15:30 +0000)]
f90-intrinsic-numeric.f: Fix pasto.

2001-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>

* g77.f-torture/execute/f90-intrinsic-numeric.f: Fix pasto.
* g77.f-torture/execute/f90-intrinsic-mathematical.f: Fix pasto.

From-SVN: r44021

23 years agof90-intrinsic-numeric.f: New test.
David Billinghurst [Sun, 15 Jul 2001 12:50:14 +0000 (12:50 +0000)]
f90-intrinsic-numeric.f: New test.

2001-01-15  David Billinghurst <David.Billinghurst@riotinto.com>

* g77.f-torture/execute/f90-intrinsic-numeric.f: New test.
* g77.f-torture/execute/f90-intrinsic-mathematical.f: New test.

From-SVN: r44020

23 years agoloop.c (scan_loop): Add USEs inside PARALLELs into dependencies of the movable.
Jan Hubicka [Sun, 15 Jul 2001 12:00:34 +0000 (14:00 +0200)]
loop.c (scan_loop): Add USEs inside PARALLELs into dependencies of the movable.

* loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
of the movable.

* toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.

* i386-protos.h (ix86_split_fp_branch): Update prototype.
(ix86_fp_jump_nontrivial_p): New.
* i386.md (fp_jcc_?): Update call of split_fp_branch;
use ix86_fp_jump_nontrivial_p.
* i386.c (ix86_fp_jump_nontrivial_p): New.
(ix86_split_fp_branch): Accept code instead of rtx.
(ix86_expand_compare): Expand comparison early in case
doing so is resonably cheap.

From-SVN: r44019

23 years agoAssert 'endian' not 'machine' in endian specs
Nick Clifton [Sun, 15 Jul 2001 10:22:51 +0000 (10:22 +0000)]
Assert 'endian' not 'machine' in endian specs

From-SVN: r44018

23 years agodbxout.c (dbxout_source_line): Make static, update prototype.
Neil Booth [Sun, 15 Jul 2001 08:34:46 +0000 (08:34 +0000)]
dbxout.c (dbxout_source_line): Make static, update prototype.

* dbxout.c (dbxout_source_line): Make static, update prototype.
(dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
(dbxout_init, dbxout_finish, dbxout_source_line,
dbxout_begin_block, dbxout_end_block): Update for new prototypes.
* dbxout.h (dbxout_source_line): Delete.
* debug.c (debug_nothing_file, debug_nothing_file_int,
debug_nothing_file_charstar_rtx): New.
(do_nothing_debug_hooks): Update.
(debug_nothing_void, debug_nothing_charstar_rtx,
dwarf2out_end_epilogue): New.
(debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
* debug.h (struct rtx_def): Declare.
(gcc_debug_hooks): New hooks source_line, end_epilogue
and end_function.
(debug_nothing_void, debug_nothing_charstar_rtx,
dwarf2out_end_epilogue): New.
(debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
* dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
(dwarf2_debug_hooks): Update.
(dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
* dwarf2out.h (dwarf2out_source_line): Remove.
* dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
Make static, update prototype.
(dwarfout_init, dwarfout_finish, dwarfout_source_line,
dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
(dwarf_debug_hooks): Update.
* dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
dwarfout_end_function): Remove.
* final.c (profile_function): Use debug hooks for ending functions
and epilogues.
(output_source_line, final_end_function): Update prototype,
use debug hooks.
(final_start_function, final_scan_insn): Update.
* output.h (sdb_begin_function_line): Remove.
(final_end_function): Update prototype.
* sdbout.c (sdb_begin_function_line): Make static.
(PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
(sdbout_source_line): New.
(sdbout_end_epilogue, sdbout_end_function): Make static, update
prototypes.
(sdb_debug_hooks): Update.
(sdbout_init, sdbout_source_line,
sdbout_begin_block, sdbout_end_block): Update for new prototypes.
* sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
* toplev.c (compile_file, rest_of_compilation): Update.
* tree.h (dwarf2out_end_epilogue): Move to debug.h.
* xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
Update for prototype changes.
* xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.

From-SVN: r44017

23 years agoalpha.h (TARGET_ABI_OSF): New.
Richard Henderson [Sun, 15 Jul 2001 07:17:29 +0000 (00:17 -0700)]
alpha.h (TARGET_ABI_OSF): New.

        * config/alpha/alpha.h (TARGET_ABI_OSF): New.
        (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
        * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
        * config/alpha/alpha.c: Likewise.
        * config/alpha/alpha.md: Likewise.
        * config/alpha/alpha32.h: Likewise.
        * config/alpha/vms.h: Likewise.
        (OPEN_VMS): Remove.

From-SVN: r44016

23 years agoDaily bump.
GCC Administrator [Sun, 15 Jul 2001 07:16:50 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44015

23 years agoalpha.md: Use define_constants for unspec values.
Richard Henderson [Sun, 15 Jul 2001 06:25:01 +0000 (23:25 -0700)]
alpha.md: Use define_constants for unspec values.

        * config/alpha/alpha.md: Use define_constants for unspec values.
        Substitute throughout.

From-SVN: r44012

23 years ago* tree.def (EXPON_EXPR) remove. Never supported anyway.
Tim Josling [Sun, 15 Jul 2001 02:16:35 +0000 (02:16 +0000)]
* tree.def (EXPON_EXPR) remove. Never supported anyway.

* f/com.c (ffecom_overlap_): Remove references to EXPON_EXPR.
(ffecom_tree_canonize_ref_): Likewise.

* java/check-init.c (check_init): Remove references to EXPON_EXPR.

From-SVN: r44011

23 years ago* pa.md: Remove unused constraints from define_split's.
John David Anglin [Sun, 15 Jul 2001 00:54:21 +0000 (00:54 +0000)]
* pa.md: Remove unused constraints from define_split's.

From-SVN: r44010

23 years ago* ifcvt.c (find_cond_trap): Test for exit block.
Richard Henderson [Sun, 15 Jul 2001 00:00:56 +0000 (17:00 -0700)]
* ifcvt.c (find_cond_trap): Test for exit block.

From-SVN: r44009

23 years agoRe-install recently reverted patch.
Jan Hubicka [Sat, 14 Jul 2001 22:52:50 +0000 (00:52 +0200)]
Re-install recently reverted patch.

* emit-rtl.c (try_split): Update mark_jump_label call.
* flow.c (find_sub_basic_blocks): Likewise.
* jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
jump_back_p): Kill.
(mark_all_labels): Kill second parameter.
(jump_optimize, jump_optimize_1): Kill cross_jump parameter.
(rebuild_jump_labels, jump_optimize_minimal): Update call
of jump_optimize_1.
(jump_optimize_1): Kill crossjumping code.
(mark_jump_label): Kill cross_jump parameter.
* rtl.h (mark_jump_label, jump_optimize): Update prototypes.
(JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
* reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
 splitting.
* toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
DFI_bpro.
(dump_file_info): Likewise.
(rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
reorganize passes to do reg-stack first, bb-reorder second.
* invoke.texi (-d letters doc): Remove the jump2 pass.

From-SVN: r44008

23 years agoifcvt.c (find_cond_trap): New.
Richard Henderson [Sat, 14 Jul 2001 18:39:16 +0000 (11:39 -0700)]
ifcvt.c (find_cond_trap): New.

        * ifcvt.c (find_cond_trap): New.
        (find_if_header): Call it.
        (merge_if_block): Relax existing jump sanity check.
        * jump.c (jump_optimize_1): Remove conditional trap handling.

* gcc.dg/iftrap-1.c: New.

From-SVN: r44006

23 years agoDaily bump.
GCC Administrator [Sat, 14 Jul 2001 07:16:10 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r44004

23 years agopa.c (emit_hpdiv_const): Return reg is r2 for 64-bit millicode.
Alan Modra [Sat, 14 Jul 2001 02:39:39 +0000 (02:39 +0000)]
pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit millicode.

* config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
millicode.
(insn_refs_are_delayed): Correct comment.
* config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
* config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
instead of r31.  Make associated insn !TARGET_64BIT, and
provide an additional 64-bit insn that clobbers r2.
(divsi3): Likewise.
(udivsi3): Likewise.
(modsi3): Likewise.
(umodsi3): Likewise.

From-SVN: r44003

23 years agobb-reorder.c (skip_insn_after_block): Get past the line number notes.
Jan Hubicka [Sat, 14 Jul 2001 01:06:42 +0000 (03:06 +0200)]
bb-reorder.c (skip_insn_after_block): Get past the line number notes.

* bb-reorder.c (skip_insn_after_block): Get past the line number notes.

* flow.c (redirect_edge_and_branch_force, split_edge,
try_crossjump_to_edge): Use set_block_for_new_insns.
* bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.

From-SVN: r44002

23 years agoelfos.h (UNIQUE_SECTION): Enable .bss section with the correct patch.
H.J. Lu [Fri, 13 Jul 2001 23:33:37 +0000 (23:33 +0000)]
elfos.h (UNIQUE_SECTION): Enable .bss section with the correct patch.

2001-07-13  H.J. Lu  (hjl@gnu.org)

* config/elfos.h (UNIQUE_SECTION): Enable .bss section with
the correct patch.

From-SVN: r44001

23 years agojvspec.c (jvgenmain_spec): Remove -ffilelist-file from cc1 invocation.
Tom Tromey [Fri, 13 Jul 2001 23:17:41 +0000 (23:17 +0000)]
jvspec.c (jvgenmain_spec): Remove -ffilelist-file from cc1 invocation.

* jvspec.c (jvgenmain_spec): Remove -ffilelist-file from cc1
invocation.

From-SVN: r44000

23 years agoRevert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
Geoffrey Keating [Fri, 13 Jul 2001 21:55:10 +0000 (21:55 +0000)]
Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.

From-SVN: r43998

23 years agostd_sstream.h (basic_stringbuf::basic_stringbuf(string): Initialize _M_string with...
Phil Edwards [Fri, 13 Jul 2001 20:50:03 +0000 (20:50 +0000)]
std_sstream.h (basic_stringbuf::basic_stringbuf(string): Initialize _M_string with pointer-and-size constructor, not just pointer.

2001-07-13  Phil Edwards  <pme@sources.redhat.com>

* include/bits/std_sstream.h (basic_stringbuf::basic_stringbuf(string):
Initialize _M_string with pointer-and-size constructor, not just
pointer.  Fix some comments.
* testsuite/21_strings/ctor_copy_dtor.cc (test03):  New test.
* testsuite/27_io/stringbuf.cc (test02):  Remove unused variable.
(test03):  Add embedded-NUL tests.

* mkcheck.in:  When printing totals, match the order of the tests.
* include/bits/stringfwd.h:  Use same declaration keywords.
* include/bits/std_iosfwd.h:  Cosmetic spacing.

From-SVN: r43996

23 years agoc-common.c (decl_attributes): Take a pointer to the node to which attributes are...
Joseph Myers [Fri, 13 Jul 2001 20:40:43 +0000 (21:40 +0100)]
c-common.c (decl_attributes): Take a pointer to the node to which attributes are to be attached...

* c-common.c (decl_attributes): Take a pointer to the node to
which attributes are to be attached, and a flags argument.
* c-common.h (enum attribute_flags): New.
(decl_attributes): Update prototype.
* c-decl.c (start_decl, push_parm_decl, finish_struct,
finish_enum, start_function): Update calls to decl_attributes.
* c-parse.in (component_declarator, component_notype_declarator,
label): Update calls to decl_attributes.

cp:
* decl2.c (cplus_decl_attributes): Take a pointer to the node to
which attributes are to be attached, and a flags argument.  Update
call to decl_attributes.
(grokfield): Update call to decl_attributes.
* class.c (finish_struct): Update call to cplus_decl_attributes.
* cp-tree.h (cplus_decl_attributes): Update prototype.
* decl.c (start_decl, grokdeclarator, start_function): Update
calls to decl_attributes and cplus_decl_attributes.
* friend.c (do_friend): Update call to cplus_decl_attributes.
* parse.y (parse_bitfield): Update call to cplus_decl_attributes.

From-SVN: r43995

23 years agoanon_ctor_itf_arg.java: Moved to `libjava.lang.'
Alexandre Petit-Bianco [Fri, 13 Jul 2001 19:45:05 +0000 (12:45 -0700)]
anon_ctor_itf_arg.java: Moved to `libjava.lang.'

2001-07-12  Alexandre Petit-Bianco  <apbianco@redhat.com>

* libjava.compile/anon_ctor_itf_arg.java: Moved to `libjava.lang.'
* libjava.compile/anon_ctor_itf_arg.out: Likewise
* libjava.lang/invoke_from_inner.java: New file.
* libjava.lang/invoke_from_inner.out: Likewise.

(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00061.html )

From-SVN: r43994

23 years agore PR java/3635 ("empty declaration" warning too broad)
Alexandre Petit-Bianco [Fri, 13 Jul 2001 19:43:54 +0000 (12:43 -0700)]
re PR java/3635 ("empty declaration" warning too broad)

2001-07-12  Alexandre Petit-Bianco  <apbianco@redhat.com>

* parse.y (patch_method_invocation): Don't override primary if one
is already provided, but let this$<n> be built. Fixed comment.

2001-07-12  Alexandre Petit-Bianco  <apbianco@redhat.com>

* parse.y (empty_statement:): Report empty statement error only
when found at class declaration level.
Fixes PR java/3635

(http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00885.html )

From-SVN: r43993

23 years agoavr.md (strlenhi): PARALLEL keyword removed.
Denis Chertykov [Fri, 13 Jul 2001 19:13:55 +0000 (19:13 +0000)]
avr.md (strlenhi): PARALLEL keyword removed.

* config/avr/avr.md (strlenhi): PARALLEL keyword removed.
* config/avr/avr.c (legitimate_address_p): Return value changed
from letter to register classes. For better debugging.

From-SVN: r43992

23 years agojump.c (reversed_comparison_code_parts): Fix comment typos.
Kazu Hirata [Fri, 13 Jul 2001 18:32:30 +0000 (18:32 +0000)]
jump.c (reversed_comparison_code_parts): Fix comment typos.

2001-07-13  Kazu Hirata  <kazu@hxi.com>

* jump.c (reversed_comparison_code_parts): Fix comment typos.

From-SVN: r43990

23 years agoelfos.h (UNIQUE_SECTION): Enable .bss section.
H.J. Lu [Fri, 13 Jul 2001 18:28:10 +0000 (18:28 +0000)]
elfos.h (UNIQUE_SECTION): Enable .bss section.

2001-07-13  H.J. Lu  (hjl@gnu.org)

* config/elfos.h (UNIQUE_SECTION): Enable .bss section.

From-SVN: r43989

23 years agoconfig.gcc (*-*-openbsd*): Add fragment to compile libgcc correctly for shared config...
Marc Espie [Fri, 13 Jul 2001 18:12:22 +0000 (18:12 +0000)]
config.gcc (*-*-openbsd*): Add fragment to compile libgcc correctly for shared configurations.

2001-07-13  Marc Espie  <espie@cvs.openbsd.org>

* config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
correctly for shared configurations.
* config/t-libgcc-pic:  New.
* config/{i386,m68k,sparc}/t-openbsd:  New.
* config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
Support -shared.  Support debugging libraries with -g.
* config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
frame information does not emit pointer diffs.
* config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
emit pointer diffs.

From-SVN: r43988

23 years agoRevert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
Geoffrey Keating [Fri, 13 Jul 2001 17:24:48 +0000 (17:24 +0000)]
Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.

From-SVN: r43986

23 years agoMakefile.am: New file encapsulating header generation rules.
Stephen M. Webb [Fri, 13 Jul 2001 16:47:56 +0000 (16:47 +0000)]
Makefile.am: New file encapsulating header generation rules.

2001-07-13  Stephen M. Webb  <stephen@bregmasoft.com>
            Loren J. Rittle  <ljrittle@acm.org>
            Phil Edwards  <pme@sources.redhat.com>

* include/Makefile.am:  New file encapsulating header generation rules.
* Makefile.am (SUBDIRS):  Prepend 'include' directory.
* acinclude.m4:  Moved/removed rules for building various headers.
* configure.in (AC_OUTPUT):  Add include/Makefile.
* mkc++config:  Removed.

* testsuite_flags.in:  Changed build-includes to match new scheme.
* mknumeric_limits:  Likewise.
* libio/Makefile.am:  Changed INCLUDES to maatch new header scheme.
* libmath/Makefile.am:  Likewise.
* libsupc++/Makefile.am:  Likewise.
* src/Makefile.am:  Likewise; removed rules to build headers.
* libmath/mathconf.h:  Changed #include'd header names to match.
* libmath/stubs.c:  Likewise.
* src/gen-num-limits.cc:  Likewise.

* configure:  Regenerated.
* config.h.in:  Regenerated.
* aclocal.m4:  Regenerated.
* Makefile.in:  Regenerated.
* include/Makefile.in:  Regenerated.
* libio/Makefile.in:  Regenerated.
* libmath/Makefile.in:  Regenerated.
* libsupc++/Makefile.in:  Regenerated.
* src/Makefile.in:  Regenerated.
* testsuite/Makefile.in:  Regenerated.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>
From-SVN: r43985

23 years ago* combine.c (try_combine): Ensure const_int pow2 is positive.
David Edelsohn [Fri, 13 Jul 2001 15:05:51 +0000 (15:05 +0000)]
* combine.c (try_combine): Ensure const_int pow2 is positive.

From-SVN: r43983

23 years agoAdded myself in the list of people who can write to CVS after approval
Nicola Pero [Fri, 13 Jul 2001 13:33:23 +0000 (13:33 +0000)]
Added myself in the list of people who can write to CVS after approval

From-SVN: r43982

23 years agoconfig.gcc: Add configuration for s/390.
Hartmut Penner [Fri, 13 Jul 2001 13:11:59 +0000 (13:11 +0000)]
config.gcc: Add configuration for s/390.

* config.gcc: Add configuration for s/390.
* Changelog: Add s/390.

From-SVN: r43981

23 years agos390.c: New.
Hartmut Penner [Fri, 13 Jul 2001 13:10:42 +0000 (13:10 +0000)]
s390.c: New.

        * config/s390/s390.c: New. Subroutines for code generation.
        * config/s390/s390.h: New. Definitions for s/390.
        * config/s390/s390-protos.h: New. Prototypes.
        * config/s390/linux.h: New. Definitions for linux for s/390.
        * config/s390/linux64.h: New. Definitions for linux for zSeries.
        * config/s390/t-linux: New. Makefile fragment.
        * config/s390/s390.md: New. Machine description for s/390 and zSeries.
        * config/s390/fixdfdi.h: New. Fix L_fix*di.
---------------------------------------------------------------------

From-SVN: r43980

23 years agoemit-rtl.c (try_split): Update mark_jump_label call.
Jan Hubicka [Fri, 13 Jul 2001 12:55:15 +0000 (14:55 +0200)]
emit-rtl.c (try_split): Update mark_jump_label call.

* emit-rtl.c (try_split): Update mark_jump_label call.
* flow.c (find_sub_basic_blocks): Likewise.
* jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
jump_back_p): Kill.
(mark_all_labels): Kill second parameter.
(jump_optimize, jump_optimize_1): Kill cross_jump parameter.
(rebuild_jump_labels, jump_optimize_minimal): Update call
of jump_optimize_1.
(jump_optimize_1): Kill crossjumping code.
(mark_jump_label): Kill cross_jump parameter.
* rtl.h (mark_jump_label, jump_optimize): Update prototypes.
(JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
* reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
 splitting.
* toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
DFI_bpro.
(rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
reorganize passes to do reg-stack first, bb-reorder second.
* invoke.texi (-d letters doc): Remove the jump2 pass.

From-SVN: r43979

23 years agoDaily bump.
GCC Administrator [Fri, 13 Jul 2001 07:16:46 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r43977

23 years agore PR libgcj/3426 (java.io.InputStreamReader, infinite loop)
Tom Tromey [Fri, 13 Jul 2001 05:41:28 +0000 (05:41 +0000)]
re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)

Fix for PR libgcj/3426:
* gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
errno.h.
(read): Throw exception if character conversion fails.
* java/io/BufferedInputStream.java (refill): Now package-private.
* java/io/InputStreamReader.java (ready): Simplified.
(refill): New method.
(read): Use it.

Co-Authored-By: David Brownell <david-b@pacbell.net>
From-SVN: r43975

23 years agoanon_ctor_itf_arg.java: New file.
Alexandre Petit-Bianco [Thu, 12 Jul 2001 21:39:56 +0000 (14:39 -0700)]
anon_ctor_itf_arg.java: New file.

2001-07-12  Alexandre Petit-Bianco  <apbianco@redhat.com>

* libjava.compile/anon_ctor_itf_arg.java: New file.
* libjava.compile/anon_ctor_itf_arg.out: New file.

(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00059.html)

From-SVN: r43974

23 years agore PR java/3285 (gcj fails to resolve constructor calls in inner classes)
Alexandre Petit-Bianco [Thu, 12 Jul 2001 21:36:43 +0000 (14:36 -0700)]
re PR java/3285 (gcj fails to resolve constructor calls in inner classes)

2001-07-11  Alexandre Petit-Bianco  <apbianco@redhat.com>

* parse.y (verify_constructor_super): Compare anonymous class ctor
args with `valid_method_invocation_conversion_p.'
Fixes PR java/3285

(http://gcc.gnu.org/ml/gcc-patches/2001-07/msg00823.html)

From-SVN: r43973

23 years ago* toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
Steve Ellcey [Thu, 12 Jul 2001 20:58:30 +0000 (20:58 +0000)]
* toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.

From-SVN: r43972

23 years agoconfigure.in (noconfigdirs): Don't compile libiberty, libstdcxx and libgcj on m68hc11...
Stephane Carrez [Thu, 12 Jul 2001 17:49:04 +0000 (19:49 +0200)]
configure.in (noconfigdirs): Don't compile libiberty, libstdcxx and libgcj on m68hc11/m68hc12.

* configure.in (noconfigdirs): Don't compile libiberty, libstdcxx
and libgcj on m68hc11/m68hc12.

From-SVN: r43970

23 years agoexpr.c (expand_load_internal): New function.
Tom Tromey [Thu, 12 Jul 2001 17:06:40 +0000 (17:06 +0000)]
expr.c (expand_load_internal): New function.

* expr.c (expand_load_internal): New function.
(LOAD_INTERNAL): Use it.

From-SVN: r43969

23 years ago* libjava.lang/N19990310_4.xfail: Removed.
Tom Tromey [Thu, 12 Jul 2001 17:06:33 +0000 (17:06 +0000)]
* libjava.lang/N19990310_4.xfail: Removed.

From-SVN: r43968

23 years agoflow.c (try_optimize_cfg): Delete whole chain of trivially dead basic blocks.
Jan Hubicka [Thu, 12 Jul 2001 16:01:33 +0000 (18:01 +0200)]
flow.c (try_optimize_cfg): Delete whole chain of trivially dead basic blocks.

* flow.c (try_optimize_cfg): Delete whole chain of trivially dead
basic blocks.
(verify_flow_info): Make diagnostics prettier.

From-SVN: r43967

23 years agoReport from Henner Zeller:
Tom Tromey [Thu, 12 Jul 2001 15:37:43 +0000 (15:37 +0000)]
Report from Henner Zeller:

* java/io/FileOutputStream.java (FileOutputStream): Throw
FileNotFoundException, not IOException.

From-SVN: r43966

23 years agoflow.c (find_basic_blocks_1): Do not emit NOP after call.
Jan Hubicka [Thu, 12 Jul 2001 14:52:51 +0000 (16:52 +0200)]
flow.c (find_basic_blocks_1): Do not emit NOP after call.

* flow.c (find_basic_blocks_1): Do not emit NOP after call.

* flow.c (outgoing_edges_match): Return early if condition reversal
failed.

From-SVN: r43965

23 years agomips.c (print_operand): Extend '%D' to memory operands.
Richard Sandiford [Thu, 12 Jul 2001 08:53:02 +0000 (08:53 +0000)]
mips.c (print_operand): Extend '%D' to memory operands.

* config/mips/mips.c (print_operand): Extend '%D' to memory operands.
(mips_move_2words): When splitting a move into two instructions,
prefix the second address operand with '%D'.

From-SVN: r43964

23 years agodecl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER for `register' variable...
Mark Mitchell [Thu, 12 Jul 2001 07:50:58 +0000 (07:50 +0000)]
decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER for `register' variables with an asm-specification.

* decl.c (make_rtl_for_nonlocal_decl): Set DECL_C_HARD_REGISTER
for `register' variables with an asm-specification.

From-SVN: r43963

23 years agoDaily bump.
GCC Administrator [Thu, 12 Jul 2001 07:16:24 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r43960

23 years agoMakefile.in (final.o): Depend on debug.h.
Neil Booth [Thu, 12 Jul 2001 05:56:27 +0000 (05:56 +0000)]
Makefile.in (final.o): Depend on debug.h.

* Makefile.in (final.o): Depend on debug.h.
* dbxout.c (dbxout_begin_block, dbxout_end_block): New.
(dbx_debug_hooks): Add new hooks.
(xcoff_debug_hooks): New.
* debug.c (debug_nothing_file_int_int): New.
(do_nothing_debug_hooks): Update.
* debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
(debug_nothing_file_int_int): New.
* dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
static, update prototype.
(dwarf2_debug_hooks): Update.
* dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
* dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
static, update prototype.
(dwarf_debug_hooks): Update.
* dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
* final.c: Include debug.h.
(final_scan_insn): Use debug hooks when beginning and ending blocks.
* sdbout.c (sdbout_begin_block, sdbout_end_block): Make
static, update prototype.
(sdb_debug_hooks): Update.
* sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
* toplev.c: Distinguish between xcoff and dbx.

* f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
Call all debug hooks, not just dwarf ones.

From-SVN: r43959

23 years agoia64-aix port from Tim Wall
Timothy Wall [Thu, 12 Jul 2001 02:55:24 +0000 (02:55 +0000)]
ia64-aix port from Tim Wall

ia64-aix port from Tim Wall
        * config.gcc: Add configuration for AIX5/IA64.
        * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
        * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
support prefix/suffix code.
        * config/ia64/t-aix: New.  Makefile fragment.
        * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.

From-SVN: r43958

23 years agorecog.c (validate_change): Fix a comment typo.
Kazu Hirata [Thu, 12 Jul 2001 01:36:16 +0000 (01:36 +0000)]
recog.c (validate_change): Fix a comment typo.

2001-07-11  Kazu Hirata  <kazu@hxi.com>

* recog.c (validate_change): Fix a comment typo.

From-SVN: r43956

23 years agoporting-howto.xml: Initial checkin of master copy.
Felix Natter [Thu, 12 Jul 2001 00:02:34 +0000 (00:02 +0000)]
porting-howto.xml: Initial checkin of master copy.

2001-07-11   Felix Natter  <fnatter@gmx.net>

* docs/html/17_intro/porting-howto.xml:  Initial checkin of
master copy.
* docs/html/17_intro/porting-howto.html:  check in v0.9.3

From-SVN: r43953

23 years agoMakefile.in (c-lex.o): Wrap long lines.
Neil Booth [Wed, 11 Jul 2001 20:51:46 +0000 (20:51 +0000)]
Makefile.in (c-lex.o): Wrap long lines.

* Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
* c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
hooks directly.
* dbxout.c (dbx_debug_hooks): Add new hooks.
(dbxout_start_new_source_file): Rename dbxout_start_source_file,
make static.
(dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
make static.
* dbxout.h (dbxout_start_new_source_file,
dbxout_resume_previous_source_file): Delete.
* debug.c (do_nothing_debug_hooks): Add new hooks.
(debug_nothing_init_finish): Rename debug_nothing_file_charstar.
(debug_nothing_int_charstar, debug_nothing_int): New.
* debug.h (gcc_debug_hooks): New hooks define, undef,
start_source_file and end_source_file.
(debug_nothing_init_finish): Rename debug_nothing_file_charstar.
(debug_nothing_int_charstar, debug_nothing_int): New.
* dwarf2out.c (dwarf2_debug_hooks): Add new hooks.
(dwarf2out_start_source_file, dwarf2out_end_source_file,
dwarf2out_define, dwarf2out_undef): Make static.
* dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
dwarf2out_define, dwarf2out_undef): Remove.
* dwarfout.c (dwarf_debug_hooks): Add new hooks.
(dwarfout_start_source_file, dwarfout_end_source_file,
dwarfout_define, dwarfout_undef): Make static.
(dwarfout_start_source_file_check,
dwarfout_end_source_file_check): New.
(dwarfout_define, dwarfout_finish): Update.
* dwarfout.h (dwarfout_start_new_source_file,
dwarfout_resume_previous_source_file, dwarfout_define,
dwarfout_undef): Remove.
* sdbout.c (sdb_debug_hooks): Add new hooks.
(sdbout_start_new_source_file): Rename sdbout_start_source_file,
make static.
(sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
make static, take an arg.
* sdbout.h (sdbout_start_new_source_file,
sdbout_resume_previous_source_file): Delete.
* toplev.c (debug_start_source_file, debug_end_source_file,
debug_define, debug_undef): Delete.
* toplev.h (debug_start_source_file, debug_end_source_file,
debug_define, debug_undef): Delete.

* java/jcf-parse.c: Include debug.h.
(parse_class_file): Update to use debug hooks directly.
* java/Make-lang.in (jcf-parse.o): Depend on debug.h.

From-SVN: r43952

23 years agoalias.c (set_mem_alias_set): New function.
Richard Kenner [Wed, 11 Jul 2001 20:35:55 +0000 (20:35 +0000)]
alias.c (set_mem_alias_set): New function.

* alias.c (set_mem_alias_set): New function.
* rtl.h (set_mem_alias_set): Declare it.
* builtins.c (expand_builtin_return_addr): Call it instead of
using MEM_ALIAS_SET accessor.
(expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
(get_memory_rtx, expand_builtin_va_arg): Likewise.
(expand_builtin_va_copy):Likewise.
* caller-save.c (setup_save_areas): Likewise.
* calls.c (compute_argument_addresses): Likewise.
* explow.c (set_mem_attributes): Likewise.
* expr.c (emit_single_push_insn, emit_push_insn): Likewise.
(expand_assignment, store_constructor_field, store_field): Likewise.
(expand_expr_unaligned): Likewise.
* function.c (assign_stack_temp_for_type): Likewise.
(put_reg_into_stack, gen_mem_addressof): Likewise.
* ifcvt.c (noce_try_cmove_arith): Likewise.
* reload1.c (reload, alter_reg): Likewise.
* config/alpha/alpha.c (get_aligned_mem): Likewise.
(alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
(alpha_expand_unaligned_store): Likewise
(alpha_expand_unaligned_load_words): Likewise.
(alpha_expand_unaligned_store_words): Likewise.
(alpha_expand_block_clear, alpha_expand_prologue): Likewise.
(alpha_expand_epilogue): Likewise.
* config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
* config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
* config/i386/i386.c (legitimize_pic_address): Likewise.
* config/i960/i960.c (setup_incoming_varargs): Likewise.
* config/ia64/ia64.c (spill_restore_mem): Likewise.
* config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
* config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
* config/mips/mips.c (mips_va_arg): Likewise.
* config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
(setup_incoming_varargs, rs6000_va_arg): Likewise.
(rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
(rs6000_emit_epilogue): Likewise.
* config/sh/sh.c (sh_builtin_saveregs): Likewise.
* config/sparc/sparc.c (sparc_va_arg): Likewise.
* config/v850/v850.c (v850_va_arg): Likewise.

From-SVN: r43951

23 years agoflow.c (merge_blocks_move_successor_nojumps): Do not crash when fallthru edge is...
Jan Hubicka [Wed, 11 Jul 2001 19:42:35 +0000 (21:42 +0200)]
flow.c (merge_blocks_move_successor_nojumps): Do not crash when fallthru edge is present.

* flow.c (merge_blocks_move_successor_nojumps): Do not crash
when fallthru edge is present.
(mege_blocks): Handle case where creation of jump insn
is required.

* basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
CLEANUP_POST_REGSTACK): New constants.
* except.c (finish_eh_generation): Update call of cleanup_cfg,
* jump.c (rtx_renumbered_equal_p): Handle 't' fields.
* output.h (cleanup_cfg): Update prototype.
* reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
* sibcall.c (optimize_sibling_and_tail_recursive_call): Update
cleanup_cfg call; kill missleading comment.
* toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
* flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
parameter; control optimizations performed using it.
(flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
try_crossjump_bb): New functions.

From-SVN: r43950