Jan Hubicka [Thu, 5 Apr 2001 16:28:44 +0000 (18:28 +0200)]
i386.c (function_arg): Return constm1_rtx for last argument.
* i386.c (function_arg): Return constm1_rtx for last argument.
(ix86_expand_prologue): Update gen_call calls.
* i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
* i386.md (call_pop): Likewise.
(call): Second operand is VOIDmode.
(call_0): Likewise; Support 64bits.
(call_exp): New expander.
(call_1): Get to the sync.
(call_1_exp): New pattern.
(call_value): Support 64bit.
(call_value_exp): New pattern.
(untyped_call): Update gen_call call.
(call_value_pop): Disable for 64bit.
(call_value_0_rex64): New pattern.
(call_value_1_rex64): Likewise.
From-SVN: r41120
Bo Thorsen [Thu, 5 Apr 2001 16:12:25 +0000 (18:12 +0200)]
Update.
From-SVN: r41119
Bo Thorsen [Thu, 5 Apr 2001 16:12:10 +0000 (18:12 +0200)]
i386.md: Don't allow "builtin_setjmp_receiver" for TARGET_64BIT.
2001-04-05 Bo Thorsen <bo@suse.de>
* i386.md: Don't allow "builtin_setjmp_receiver" for TARGET_64BIT.
From-SVN: r41118
J"orn Rennecke [Thu, 5 Apr 2001 15:57:35 +0000 (15:57 +0000)]
search.c (get_dynamic_cast_base_type): When building a new constant, set its type to ssizetype.
* search.c (get_dynamic_cast_base_type): When building a new
constant, set its type to ssizetype.
From-SVN: r41117
Tom Tromey [Thu, 5 Apr 2001 15:12:41 +0000 (15:12 +0000)]
* libtool-version: Updated current.
From-SVN: r41116
J"orn Rennecke [Thu, 5 Apr 2001 12:51:42 +0000 (12:51 +0000)]
i386.md (*andsi_1+3): If used after reload, make sure the operand satisfies ANY_QI_REG_P.
* i386.md (*andsi_1+3): If used after reload, make sure the operand
satisfies ANY_QI_REG_P.
From-SVN: r41114
Bernd Schmidt [Thu, 5 Apr 2001 12:06:36 +0000 (12:06 +0000)]
PARALLELs can contain ASM_OPERANDS.
From-SVN: r41112
Bernd Schmidt [Thu, 5 Apr 2001 11:55:22 +0000 (11:55 +0000)]
Revert more of previous change
From-SVN: r41111
GCC Administrator [Thu, 5 Apr 2001 07:16:13 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r41108
Zack Weinberg [Thu, 5 Apr 2001 04:34:24 +0000 (04:34 +0000)]
config.gcc: Remove default for xm_file.
* config.gcc: Remove default for xm_file. Clean up local
machine type handling. Remove settings of xm_file to
something that doesn't exist. In the big switch, set xm_file,
don't append to it (the value before the big switch is always
null). Don't force build_xm_file or host_xm_file to have a value.
* configure.in: Remove default for xm_file. Do not special
case $cpu/xm-$cpu.h not existing.
* configure: Regenerate.
From-SVN: r41106
Diego Novillo [Thu, 5 Apr 2001 02:27:47 +0000 (02:27 +0000)]
simplify-rtx.c (simplify_binary_operation): Check for overflow when folding integer division and modulo operations.
2001-04-04 Diego Novillo <dnovillo@redhat.com>
* simplify-rtx.c (simplify_binary_operation): Check for overflow
when folding integer division and modulo operations.
2001-04-04 Diego Novillo <dnovillo@redhat.com>
* gcc.c-torture/compile/
20010404-1.c: New test.
From-SVN: r41105
Andrew MacLeod [Thu, 5 Apr 2001 01:43:17 +0000 (01:43 +0000)]
dwarf2out.c (output_cfi): Add 'for_eh' parameter, use PTR_SIZE instead of DWARF2_ADDR_SIZE for EH addresses.
2001-04-04 Andrew MacLeod <amacleod@redhat.com>
* dwarf2out.c (output_cfi): Add 'for_eh' parameter, use PTR_SIZE
instead of DWARF2_ADDR_SIZE for EH addresses.
(output_call_frame_info): Use PTR_SIZE instead of DWARF2_ADDR_SIZE for
EH addresses.
From-SVN: r41104
Hans Boehm [Thu, 5 Apr 2001 00:14:18 +0000 (00:14 +0000)]
finalize.c: - Accomodate finalization requests for static objects.
2001-04-04 Hans Boehm <hans_boehm@hp.com>
* finalize.c:
- Accomodate finalization requests for static objects.
(Will be required by hash synchronization. May be needed
in some configurations now.)
* gc_priv.h:
- Define MIN_WORDS. All allocation requests are rounded
up to at least this size. Removes a subtle assumption that
Java objects have a 2 word header.
* gcconfig.h:
- Adjust Linux/IA64 configuration for non-ancient kernels.
(Necessary fix for IA64.)
* linux_threads.c:
- Fix syntax error in currently unused code. Will be needed
for Linux/PA-RISC.
* malloc.c:
- Handle MIN_WORDS.
* misc.c:
- Handle MIN_WORDS.
- Change stack cleaning code to typically clear about one tenth
the memory it used to in the threads configuration. Occasionally
still clear more. (This is really a fix for a long-standing
and fairly significant performance bug with threads.)
* os_dep.c:
- Fix the code for finding the beginning of the data segment under
Linux. I believe this is necessary for some IA64 Linux
distributions. It will also helo other platforms, though those
may additionally require a gcconfig.h adjustment. (This basically
works around the absence of a data_start or __data_start
definition in glibc.)
* test.c:
- Handle rounding due to MIN_WORDS.
From-SVN: r41102
Andreas Jaeger [Wed, 4 Apr 2001 23:38:53 +0000 (01:38 +0200)]
Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
2001-04-04 Andreas Jaeger <aj@suse.de>
* gcj/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* gcj/Makefile.in: Rebuilt.
* Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* Makefile.in: Rebuilt.
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* testsuite/Makefile.in: Rebuild.
* include/Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo.
* include/Makefile.in: Rebuild.
From-SVN: r41100
Phil Edwards [Wed, 4 Apr 2001 22:20:52 +0000 (22:20 +0000)]
user.cfg.in: Extract all non-private members; reduce confusing documentation output.
2001-04-04 Phil Edwards <pme@sources.redhat.com>
* docs/doxygen/user.cfg.in: Extract all non-private members;
reduce confusing documentation output.
From-SVN: r41097
Richard Henderson [Wed, 4 Apr 2001 21:24:20 +0000 (14:24 -0700)]
ia64.h (IA64_UNWIND_INFO): Disable.
* config/ia64/ia64.h (IA64_UNWIND_INFO): Disable.
* config/ia64/t-glibc (LIB2ADDEH): Disable.
* config/ia64/t-ia64 (LIB2ADDEH): Disable.
From-SVN: r41096
Richard Henderson [Wed, 4 Apr 2001 21:18:09 +0000 (14:18 -0700)]
configure.in (gcc_cv_as_leb128): Escape ".".
* configure.in (gcc_cv_as_leb128): Escape ".".
* configure: Rebuilt.
From-SVN: r41095
Per Bothner [Wed, 4 Apr 2001 20:56:01 +0000 (13:56 -0700)]
java-tree.h (CONSTANT_VALUE_P): New macro.
* java-tree.h (CONSTANT_VALUE_P): New macro.
* jcf-write.c (generate_classfile): Use CONSTANT_VALUE_P.
* parse.y (maybe_build_class_init_for_field): New static function.
(resolve_expression_name, resolve_field_access): Use
maybe_build_class_init_for_field instead of build_class_init
This does not do the init if the field is compile-time-constant.
(resolve_field_access): Simplify.
* parse.y (fold_constant_for_init): Merge test into switch.
From-SVN: r41094
Jakub Jelinek [Wed, 4 Apr 2001 20:19:23 +0000 (22:19 +0200)]
gcse.c (delete_null_pointer_checks_1): Add delete_list argument, push insns to delete to it instead of deleting them.
* gcse.c (delete_null_pointer_checks_1): Add delete_list argument,
push insns to delete to it instead of deleting them.
(delete_null_pointer_checks): Delete insns from delete_list after
all delete_null_pointer_checks_1 passes are done.
From-SVN: r41092
Geoffrey Keating [Wed, 4 Apr 2001 18:04:52 +0000 (18:04 +0000)]
* include/backward/fstream.h: Add missing semicolons.
From-SVN: r41090
Alexandre Petit-Bianco [Wed, 4 Apr 2001 17:56:25 +0000 (10:56 -0700)]
re PR java/1074 (jv-scan fails on ArrayClass.java)
2001-03-30 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse-scan.y (array_type:): Rewritten.
(type_declaration:): `empty_statement' replaces `SC_TK.'
(class_member_declaration:): `empty statement' added.
(method_body:): Simplified.
(static_initializer:): Likewise.
(primary_no_new_array:): Use `type_literals.'
(type_literals:): New rule.
(dims:): Set and update `bracket_count.'
Fixes PR java/1074. Fixes PR java/2412.
(http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00835.html,
http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00384.html,
http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00258.html)
From-SVN: r41089
Richard Henderson [Wed, 4 Apr 2001 16:48:58 +0000 (09:48 -0700)]
configure.in (gcc_cv_as_leb128): Tweek minor number extraction.
* configure.in (gcc_cv_as_leb128): Tweek minor number extraction.
* configure: Rebuilt.
From-SVN: r41087
Zack Weinberg [Wed, 4 Apr 2001 16:15:24 +0000 (16:15 +0000)]
expr.h: Remove #ifdef FUNCTION_CONVERSION_BUG logic.
* expr.h: Remove #ifdef FUNCTION_CONVERSION_BUG logic.
* config/romp/xm-romp.h: Delete.
* po/POTFILES.in: Remove config/romp/xm-romp.h.
From-SVN: r41086
Bernd Schmidt [Wed, 4 Apr 2001 15:56:36 +0000 (15:56 +0000)]
Partially revert previous change
From-SVN: r41085
Herman A.J. ten Brugge [Wed, 4 Apr 2001 15:42:04 +0000 (17:42 +0200)]
When splitting insns, properly update label usage counts
From-SVN: r41084
Jakub Jelinek [Wed, 4 Apr 2001 15:14:24 +0000 (17:14 +0200)]
recog.c (validate_replace_rtx_1): Instead of aborting just make sure the change won't be validated.
* recog.c (validate_replace_rtx_1): Instead of aborting just make
sure the change won't be validated.
* gcc.c-torture/compile/
20010326-1.c: New test.
From-SVN: r41083
Jakub Jelinek [Wed, 4 Apr 2001 15:08:54 +0000 (17:08 +0200)]
optimize.c (expand_call_inline): Only add newly inlined statements into inlined_stmts.
* optimize.c (expand_call_inline): Only add newly inlined statements
into inlined_stmts.
From-SVN: r41081
GCC Administrator [Wed, 4 Apr 2001 07:16:42 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r41079
John Wehle [Wed, 4 Apr 2001 05:03:29 +0000 (05:03 +0000)]
rtl.h (set_noop_p): Declare.
* rtl.h (set_noop_p): Declare.
* flow.c (set_noop_p): Move from here ...
* rtlanal.c (set_noop_p): ... to here and enhance.
* cse.c (delete_trivially_dead_insns): Use it.
* gcse.c (hash_scan_set): Likewise.
* jump.c (delete_noop_moves): Likewise.
* recog.c (split_all_insns): Likewise.
From-SVN: r41077
Mark Mitchell [Wed, 4 Apr 2001 04:45:23 +0000 (04:45 +0000)]
cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
* cp-tree.h (OPERATOR_ASSIGN_FORMAT): Remove.
(OPERATOR_FORMAT): Likewise.
(OPERATOR_TYPENAME_FORMAT): Likewise.
* operators.def: Remove old name-mangling information.
* decl.c (grok_op_properties): Adjust accordingly.
* lex.c (init_operators): Likewise.
* rtti.c (get_tinfo_decl): Issue error messages about types that
have variable size.
From-SVN: r41076
Alan Modra [Wed, 4 Apr 2001 03:13:54 +0000 (03:13 +0000)]
DWARF2 frame notes for hppa.
* dwarf2out.c (dwarf2out_frame_debug_expr): Support adjusting
stack pointer via a LO_SUM. Ditto for setting a temp register
used to save to the stack. Set cfa_temp when setting fp, and
allow matches to cfa_temp in addition to cfa_store when saving
regs. Handle POST_INC and LO_SUM register stores. Document the
changes and errors in rule 12 doco.
* pa.c (set_reg_plus_d, store_reg, load_reg): Return last insn.
(actual_fsize, local_fsize, save_fregs): Move for store_reg to see.
(load_reg): Move closer to epilogue code.
(DO_FRAME_NOTES): Define to control the following..
(FRP): Define to set RTX_FRAME_RELATED_P on insns.
(hppa_expand_prologue): Use FRP and REG_FRAME_RELATED_EXPR
notes as necessary.
(hppa_expand_epilogue): Likewise.
From-SVN: r41074
Richard Henderson [Wed, 4 Apr 2001 02:06:24 +0000 (19:06 -0700)]
configure.in (gcc_cv_as_leb128): Reject gas before 2.11.
* configure.in (gcc_cv_as_leb128): Reject gas before 2.11.
* configure: Rebuild.
From-SVN: r41073
Benjamin Kosnik [Wed, 4 Apr 2001 01:02:26 +0000 (01:02 +0000)]
fstream.tcc: Add bool parameter to filebuf ctor.
2001-04-03 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/fstream.tcc: Add bool parameter to filebuf ctor.
* include/bits/ios_base.h(ios_base::Init): Remove _M_cout, _M_cin,
_M_cerr, _M_wcout, _M_wcin, _M_wcerr.
(ios_base::Init::_S_ios_create): New.
(ios_base::Init::_S_ios_destroy): New.
* include/bits/std_fstream.h: Change ctor args.
* src/ios.cc (ios_base::Init::Init): Use _S_ios_create.
(ios_base::Init::~Init): Use _S_ios_destroy.
(ios_base::sync_with_stdio): Use new members.
* testsuite/27_io/filebuf_members.cc: Fix calling conventions for
filebuf ctor.
From-SVN: r41072
Zack Weinberg [Wed, 4 Apr 2001 00:57:39 +0000 (00:57 +0000)]
POTFILES.in: Remove all the files deleted by the xm-host.h purge...
* POTFILES.in: Remove all the files deleted by the xm-host.h
purge, also frame.c, frame-dwarf2.c, and gansidecl.h.
From-SVN: r41071
Richard Henderson [Wed, 4 Apr 2001 00:48:51 +0000 (17:48 -0700)]
rtl.h (LCT_THROW): New.
* rtl.h (LCT_THROW): New.
* calls.c (emit_library_call_value_1): Handle it.
* except.c (connect_post_landing_pads): Use it.
From-SVN: r41070
Zack Weinberg [Wed, 4 Apr 2001 00:46:27 +0000 (00:46 +0000)]
ansidecl.h: All logic from gcc/gansidecl.h moved here.
include:
* ansidecl.h: All logic from gcc/gansidecl.h moved here.
gcc:
* gansidecl.h: Delete file.
* configure.in: Change all refs to gansidecl.h to use
ansidecl.h. Adjust *_file_list so they know where ansidecl.h
lives.
* configure: Regenerate.
* Makefile.in (intl.o): Don't depend on gansidecl.h.
* defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
* ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
Don't include gansidecl.h.
* intl.c, main.c, version.c, fixinc/fixlib.h,
fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
gansidecl.h.
gcc/java:
* Make-lang.in (buffer.o, check-init.o, class.o): Don't depend
on gansidecl.h.
* buffer.c, jvgenmain.c: Don't include gansidecl.h.
libiberty:
* make-temp-file.c (try): Inline.
From-SVN: r41069
Mark Mitchell [Tue, 3 Apr 2001 23:37:53 +0000 (23:37 +0000)]
decl2.c (import_export_decl): Don't call import_export_class when processing an inline member function.
* decl2.c (import_export_decl): Don't call import_export_class
when processing an inline member function.
* semantics.c (expand_body): Call import_export_decl before
emitting inline functions.
From-SVN: r41066
Peter Schmid [Tue, 3 Apr 2001 21:02:43 +0000 (21:02 +0000)]
fstream.h: Expose streampos to global namespace.
2001-04-03 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/backward/fstream.h: Expose streampos to global
namespace.
From-SVN: r41064
Peter Schmid [Tue, 3 Apr 2001 20:40:26 +0000 (20:40 +0000)]
stl_iterator_base_types.h: Fix typo
2001-04-03 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/stl_iterator_base_types.h: Fix typo
From-SVN: r41063
Jan Hubicka [Tue, 3 Apr 2001 17:44:45 +0000 (19:44 +0200)]
i386.c (ix86_force_to_memory, [...]): Update for 64bit.
* i386.c (ix86_force_to_memory, ix86_free_from_memory):
Update for 64bit.
From-SVN: r41062
Zack Weinberg [Tue, 3 Apr 2001 17:38:23 +0000 (17:38 +0000)]
xm-beos.h, [...]: Delete.
* config/i386/xm-beos.h, config/i386/xm-isc.h,
config/i386/xm-next.h, config/i386/xm-sco.h,
config/i386/xm-sco5.h, config/m68k/xm-plexus.h,
config/m88k/xm-m88k.h: Delete.
* config/i386/xm-djgpp.h: Don't define __MSDOS__.
* config/romp/xm-romp.h: Don't define bcopy.
* config/rs6000/xm-beos.h: Don't define bcopy, HAVE_VPRINTF,
HAVE_PUTENV, HAVE_RENAME, or USE_C_ALLOCA.
* config.gcc: Remove references to deleted files.
From-SVN: r41061
Alexandre Petit-Bianco [Tue, 3 Apr 2001 17:32:02 +0000 (10:32 -0700)]
boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.'
2001-03-28 Hans Boehm <boehm@acm.org>
* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.'
(get_boehm_type_descriptor): Set type on returned value to be a
pointer length integer.
(http://gcc.gnu.org/ml/java/2001-03/msg00444.html)
From-SVN: r41059
Jakub Jelinek [Tue, 3 Apr 2001 15:06:12 +0000 (17:06 +0200)]
Use byte offsets in SUBREGs instead of words.
2001-04-03 Jakub Jelinek <jakub@redhat.com>
David S. Miller <davem@pierdol.cobaltmicro.com>
Andrew MacLeod <amacleod@redhat.com>
Use byte offsets in SUBREGs instead of words.
* alias.c (nonlocal_mentioned_p): Use subreg_regno function.
* caller-save.c (mark_set_regs): Change callers of subreg_hard_regno
to pass new argument.
(add_stored_regs): Use subreg_regno_offset function.
* calls.c (expand_call): For non-paradoxical SUBREG take endianess
into account.
(precompute_arguments): Use gen_lowpart_SUBREG.
* combine.c (try_combine): Replace explicit XEXP with SUBREG_REG.
(combine_simplify_rtx): Rework to use SUBREG_BYTE.
(simplify_set): Rework to use SUBREG_BYTE.
(expand_field_assignment): Use SUBREG_BYTE.
(make_extraction): Use SUBREG_BYTE.
(if_then_else_cond): Use SUBREG_BYTE.
(apply_distributive_law): Use SUBREG_BYTE and fixup subreg comments.
(gen_lowpart_for_combine): Compute full byte offset.
* cse.c (mention_regs): Use SUBREG_BYTE.
(remove_invalid_subreg_refs): Rework to use SUBREG_BYTE.
(canon_hash): Use SUBREG_BYTE.
(fold_rtx): Pass SUBREG_BYTE div UNITS_PER_WORD to operand_subword.
(gen_lowpart_if_possible): Formatting.
* dbxout.c (dbxout_symbol_location): Compute SUBREG hard regnos
correctly.
* dwarf2out.c (is_pseudo_reg): Fixup explicit XEXP into SUBREG_REG
(mem_loc_descriptor): Fixup explicit XEXP into SUBREG_REG
(loc_descriptor): Fixup explicit XEXP into SUBREG_REG
* dwarfout.c (is_pseudo_reg): Fixup explicit XEXP into SUBREG_REG
(output_mem_loc_descriptor): Fixup explicit XEXP into SUBREG_REG
(output_loc_descriptor): Fixup explicit XEXP into SUBREG_REG
* emit-rtl.c (gen_rtx_SUBREG): New function, used to verify
certain invariants about SUBREGs the compiler creates.
(gen_lowpart_SUBREG): New function.
(subreg_hard_regno): New function to get the final register number.
(gen_lowpart_common): Use SUBREG_BYTE.
(gen_imagpart): Spacing nits.
(subreg_realpart_p): Use SUBREG_BYTE.
(gen_highpart): Use SUBREG_BYTE.
(subreg_lowpart_p): Always compute endian corrected goal offset,
even at the byte level, then compare against that.
(constant_subword): New function, pulled out all constant cases
from operand_subword and changed second argument name to offset.
(operand_subword): Detect non REG/SUBREG/CONCAT/MEM cases early
and call constant_subword to do the work. Return const0_rtx if
looking for a word outside of OP.
(operand_subword_force): Change second arg name to offset.
* expmed.c (store_bit_field): Use SUBREG_BYTE.
(store_split_bit_field): Use SUBREG_BYTE.
(extract_bit_field): Use SUBREG_BYTE.
(extract_split_bit_field): Use SUBREG_BYTE.
(expand_shift): Use SUBREG_BYTE.
* expr.c (store_expr, expand_expr): Use gen_lowpart_SUBREG.
* final.c (alter_subreg) Use subreg_hard_regno and SUBREG_BYTE.
* flow.c (set_noop_p): Use SUBREG_BYTE.
(mark_set_1): Remove ALTER_HARD_SUBREG. Use subreg_regno_offset instead.
* function.c (fixup_var_refs_1): Fixup explicit XEXP into a SUBREG_REG.
(fixup_memory_subreg): Use SUBREG_BYTE and remove byte endian
correction code.
(optimize_bit_field): Use SUBREG_BYTE.
(purge_addressof_1): Use SUBREG_BYTE.
(purge_single_hard_subreg_set): Use subreg_regno_offset function.
(assign_params): Mark arguments SUBREG_PROMOTED_VAR_P if they are
actually promoted by the caller and PROMOTE_FOR_CALLS_ONLY is true.
* gengenrtl.c (special_rtx): Add SUBREG.
* global.c (mark_reg_store): Use SUBREG_BYTE.
(set_preference): Rework to use subreg_regno_offset and SUBREG_BYTE.
* ifcvt (noce_emit_move_insn): Use SUBREG_BYTE.
* integrate.c (copy_rtx_and_substitute): Use SUBREG_BYTE and make sure
final byte offset is congruent to subreg's mode size.
(subst_constants): Use SUBREG_BYTE.
(mark_stores): Use subreg_regno_offset function.
* jump.c (rtx_renumbered_equal_p, true_regnum): Use subreg_regno_offset
function and SUBREG_BYTE.
* local-alloc.c (combine_regs): Use subreg_regno_offset function.
(reg_is_born): Use subreg_hard_regno.
* recog.c (valid_replace_rtx_1): Use SUBREG_BYTE and remove byte
endian correction code. Don't combine subregs unless resulting
offset aligns with type. Fix subreg constant extraction for DImode.
Simplify SUBREG of VOIDmode CONST_DOUBLE.
(general_operand): Remove dead mode_altering_drug code.
(indirect_operand): Use SUBREG_BYTE.
(constrain_operands): Use subreg_regno_offset function.
* reg-stack.c (get_true_reg): Use subreg_regno_offset function.
* regmove.c (regmove_optimize): Use SUBREG_BYTE.
(optimize_reg_copy_3): Use gen_lowpart_SUBREG.
* regs.h (REG_SIZE): Allow target to override.
(REGMODE_NATURAL_SIZE): New macro which target can override.
* reload.c (reload_inner_reg_of_subreg): subreg_regno should be used
on the entire subreg rtx.
(push_reload): Use SUBREG_BYTE in comments and code.
(find_dummy_reload): Use subreg_regno_offset. Only adjust offsets
for hard registers inside subregs.
(operands_match_p): Use subreg_regno_offset.
(find_reloads): Use SUBREG_BYTE and only advance offset for subregs
containing hard regs.
(find_reload_toplev): Use SUBREG_BYTE. Remove byte endian
corrections when fixing up MEM subregs.
(find_reloads_address_1): Use SUBREG_BYTE, subreg_regno, and
subreg_regno_offset where appropriate.
(find_reloads_subreg_address): Use SUBREG_BYTE. Remove
byte endian corrections when fixing up MEM subregs.
(subst_reloads): When combining two subregs, make sure final
offset is congruent to subreg's mode size.
(find_replacement): Use SUBREG_BYTE and subreg_regno_offset.
(refers_to_regno_for_reload_p): Use subreg_regno.
(reg_overlap_mentioned_for_reload_p): Use subreg_regno_offset.
* reload1.c (eliminate_regs) Use SUBREG_BYTE. Remove byte endian
correction code for memory subreg fixups.
(forget_old_reload_1): Use subreg_regno_offset.
(choose_reload_regs): Use subreg_regno.
(emit_input_reload_insns): Use SUBREG_BYTE.
(reload_combine_note_store): Use subreg_regno_offset.
(move2add_note_store): Use subreg_regno_offset.
* resource.c (update_live_status, mark_referenced_resources): Use
subreg_regno function.
(mark_set_resources): Use subreg_regno function.
* rtl.h (SUBREG_WORD): Rename to SUBREG_BYTE.
(subreg_regno_offset, subreg_regno): Define prototypes.
(subreg_hard_regno, constant_subword, gen_rtx_SUBREG): Newi functions.
(gen_lowpart_SUBREG): Add prototype.
* rtl.texi (subreg): Update to reflect new byte offset representation.
Add mentioning of the effect that BYTES_BIG_ENDIAN has on subregs now.
* rtlanal.c (refers_to_regno_p): Use subreg_regno.
(reg_overlap_mentioned_p): Use subreg_regno.
(replace_regs); Make sure final offset of combined subreg is
congruent to size of subreg's mode.
(subreg_regno_offset): New function.
(subreg_regno): New function.
* sched-vis.c (print_value): Change SUBREG_WORD to SUBREG_BYTE.
* sdbout.c (sdbout_symbol): Compute offset using alter_subreg.
* stmt.c (expand_anon_union_decl): Use gen_lowpart_SUBREG.
* tm.texi (ALTER_HARD_SUBREG): Remove, it is now dead.
(SUBREG_REGNO_OFFSET): Describe SUBREG_REGNO_OFFSET overrides.
* config/a29k/a29k.c (gpc_reg_operand): Use subreg_regno.
(a29k_get_reloaded_address): Use SUBREG_BYTE.
(print_operand): Use SUBREG_BYTE.
* config/alpha/alpha.c (print_operand_address): Use SUBREG_BYTE.
* config/arm/arm.c (arm_reload_in_hi): Use SUBREG_BYTE.
(arm_reload_out_hi): Use SUBREG_BYTE.
* config/d30v/d30v.c (d30v_split_double): Use subreg_regno_offset
instead of SUBREG_WORD.
(d30v_print_operand_memory_reference): Use subreg_regno_offset.
* config/dsp16xx/dsp16xx.md (extendqihi2, zero_extendqihi2): Fix
SUBREG creation to use byte offset.
* config/h8300/h8300.md (Unnamed HImode zero extraction and 16bit
inverted load insns): Fix explicit rtl subregs to use byte
offsets.
* config/i370/i370.md (cmpstrsi, movstrsi, mulsi3, divsi3,
udivsi3, umodsi3): Generate SUBREGs with byte offsets.
* config/i860/i860.c (single_insn_src_p): Use SUBREG_BYTE.
* config/i860/i860.md (mulsi3_big): Fixup explicit SUBREGs in rtl
to use byte offsets.
(unnamed fmlow.dd insn): Fixup SUBREGS to use byte offsets.
* config/i960/i960.md (extendhisi2): Generate SUBREGs with byte
offsets, also make sure it is congruent to SUBREG's mode size.
(extendqisi2, extendqihi2, zero_extendhisi2, zero_extendqisi2,
unnamed ldob insn): Generate SUBREGs with byte offset.
(zero_extendqihi2): SUBREG's are byte offsets.
* config/m68hc11/m68hc11.c (m68hc11_gen_lowpart): Use SUBREG_BYTE.
(m68hc11_gen_highpart): Use SUBREG_BYTE.
* config/m68k/m68k.md (zero_extendhisi2, zero_extendqihi2,
zero-extendqisi2): Generate SUBREGs with byte offset.
(umulsidi3, mulsidi3, subreghi1ashrdi_const32,
subregsi1ashrdi_const32, subreg1lshrdi_const32): Fixup explicit
subregs in rtl to use byte offsets.
* config/m88k/m88k.md (extendsidi2): fixup subregs to use byte offset.
* config/mips/mips.c (mips_move_1word): Use subreg_regno_offset.
(mips_move_2words): Use subreg_regno_offset.
(mips_secondary_reload_class): Use subreg_regno_offset.
* config/mips/mips.md (DImode plus, minus, move, and logical op
splits): Fixup explicit subregs in rtl to use byte offsets.
* config/mn10200/mn10200.c (print_operand): Use subreg_regno function.
* config/mn10300/mn10300.c (print_operand): Use subreg_regno function.
* config/ns32k/ns32k.md (udivmoddisi4): Fix explicit subregs in
rtl to use byte offsets.
* config/pa/pa.c (emit_move_sequence): Use SUBREG_BYTE.
* config/pa/pa.md (floatunssisf2, floatunssidf2, mulsi3): fix explicit
subregs to use byte offsets.
* config/pdp11/pdp11.md (zero_extendhisi2, modhi3, modhi3+1):
Fixup explicit subregs in rtl to use byte offsets.
* config/romp/romp.c (memory_offset_in_range_p): Use SUBREG_BYTE
and remove byte endian correction code.
* config/sh/sh.c (output_movedouble): Use subreg_regno.
(gen_ashift_hi): Use SUBREG_BYTE.
(regs_used): Use subreg_regno_offset.
(machine_dependent_reorg): Use subreg_regno_offset.
* config/sh/sh.h (INDEX_REGISTER_RTX_P): Use SUBREG_BYTE.
* config/sh/sh.md (DImode and DFmode move splits): Use subreg_regno.
(movdf_i4): Subregs are byte offsets now.
* config/sparc/sparc.c (ultra_find_type): Use SUBREG_BYTE.
* config/sparc/sparc.h (ALTER_HARD_SUBREG): Removed.
(REGMODE_NATURAL_SIZE): Override.
(REG_SIZE): For SUBREG check float mode on SUBREG_REG's mode.
* config/sparc/sparc.md (TFmode move splits): Generate SUBREGs
with byte offsets.
(zero_extendhisi2, zero_extendqidi2_insn, extendhisi2,
extendqihi2, sign_extendqihi2_insn, sign_extendqisi2_insn,
extendqidi2): Generate SUBREGs with byte offsets, also make sure
it is congruent to SUBREG's mode size.
(smulsi3_highpart_v8plus): Fix explicit subregs in rtl to use byte
offsets.
(cmp_siqi_trunc, cmp_siqi_trunc_set, cmp_diqi_trunc,
cmp_diqi_trunc_set, lshrdi3_v8plus+1, lshrdi3_v8plus+2,
lshrdi3_v8plus+3, lshrdi3_v8plus+4): Use proper
SUBREG_BYTE offset for non-paradoxical subregs in patterns.
* config/v850/v850.c (print_operand, output_move_double): Use
subreg_regno function.
Co-Authored-By: Andrew MacLeod <amacleod@redhat.com>
Co-Authored-By: David S. Miller <davem@pierdol.cobaltmicro.com>
From-SVN: r41058
Alexandre Oliva [Tue, 3 Apr 2001 08:56:59 +0000 (08:56 +0000)]
configure.in (target_subdir): Use target_alias, not target.
* configure.in (target_subdir): Use target_alias, not target.
* configure: Rebuilt.
From-SVN: r41051
Andreas Schwab [Tue, 3 Apr 2001 08:49:38 +0000 (08:49 +0000)]
* include/backward/fstream.h: Define filebuf and wfilebuf.
From-SVN: r41048
Alexandre Oliva [Tue, 3 Apr 2001 08:45:38 +0000 (08:45 +0000)]
crtn.asm (init, fini): Restore r15 from r14, not the other way round.
* config/sh/crtn.asm (init, fini): Restore r15 from r14, not the
other way round.
* config/sh/crti.asm: Fix typos in comments.
From-SVN: r41047
Alexandre Oliva [Tue, 3 Apr 2001 08:38:45 +0000 (08:38 +0000)]
instantiate1.C: Adjust to accommodate peculiarities of the SH.
* g++.old-deja/g++.ext/instantiate1.C: Adjust to accommodate
peculiarities of the SH.
* g++.old-deja/g++.ext/instantiate2.C: Likewise.
From-SVN: r41045
Jakub Jelinek [Tue, 3 Apr 2001 08:29:03 +0000 (10:29 +0200)]
Move ChangeLog entry where it belongs.
From-SVN: r41043
Alan Modra [Tue, 3 Apr 2001 07:43:27 +0000 (07:43 +0000)]
TARGET_NO_SPACE_REGS no longer affects call sequences.
* pa.h: Revise comments for TARGET_NO_SPACE_REGS and
TARGET_FAST_INDIRECT_CALLS.
* pa.c (override_options): TARGET_NO_SPACE_REGS is now OK with
-fPIC. Don't warn.
(return_addr_rtx): Short circuit export stub matching when
TARGET_NO_SPACE_REGS.
(output_millicode_call): For out of range calls, make -fPIC
take precedence, then TARGET_PORTABLE_RUNTIME, then ble. Don't
return before delay slot checks when TARGET_PORTABLE_RUNTIME.
* pa.md: Modify length attr calculation of all millicode insns to
match above.
From-SVN: r41042
GCC Administrator [Tue, 3 Apr 2001 07:16:39 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r41041
Geoffrey Keating [Tue, 3 Apr 2001 07:02:31 +0000 (07:02 +0000)]
configure.in (gcc_cv_as_leb128): Correct name of cache variable.
* configure.in (gcc_cv_as_leb128): Correct name of cache variable.
Require at least 2.11 in the version test. Specifically check
for and reject GAS version 2.10.90.
* configure: regenerate.
From-SVN: r41039
Alan Modra [Tue, 3 Apr 2001 06:57:31 +0000 (06:57 +0000)]
Rewrite hppa profiling support.
* config/pa/pa.c (override_options): Remove PIC profiling warning.
(hp_profile_labelno): Delete.
(hp_profile_label_rtx): Delete.
(hp_profile_label_name): Delete.
(pa_add_gc_roots): Remove reference to hp_profile_label_rtx.
(output_function_prologue): Remove profiling code and all tests on
profile_flag. Move store of PIC_OFFSET_TABLE_REGNUM now that
merge_sp_adjust_with_store can work for PIC and profiling.
(hppa_expand_epilogue): Remove profile_flag test.
(hppa_can_use_return_insn_p): Likewise.
(hppa_init_pic_save): Emit before tail_recursion_reentry, and
cater for PROFILE_HOOK.
(hppa_profile_hook): New function.
* config/pa/pa.h (FUNCTION_PROFILER): Now does nothing.
(PROFILE_HOOK): Define.
(hppa_profile_hook): Declare.
(PROFILE_BEFORE_PROLOGUE): Delete.
(ASM_OUTPUT_REG_PUSH): Delete.
(ASM_OUTPUT_REG_POP): Delete.
* config/pa/pa.md (call_profiler): Turn it into a call insn, and
don't `use' r24. Accept function name operand, and use this and a
locally generated label to calculate pc-rel offset to func start.
From-SVN: r41038
Toon Moene [Tue, 3 Apr 2001 05:37:13 +0000 (07:37 +0200)]
com.c (duplicate_decls): Fix thinko in lazy DECL_RTL patch of 2001-03-04.
* com.c (duplicate_decls): Fix thinko in lazy DECL_RTL patch
of 2001-03-04.
From-SVN: r41037
Kaveh R. Ghazi [Tue, 3 Apr 2001 02:05:54 +0000 (02:05 +0000)]
Makefile.in ($(HOST_PREFIX_1)errors.o, [...]): Depend on $(SYSTEM_H).
* $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o,
ggc-common.o, ggc-simple.o, ggc-page.o, ggc-none.o: Depend on
$(SYSTEM_H).
From-SVN: r41035
Alan Modra [Tue, 3 Apr 2001 01:12:09 +0000 (01:12 +0000)]
dwarf2out.c (dwarf2out_frame_debug_expr): Move errant HIGH and LO_SUM cases to where they belong.
* dwarf2out.c (dwarf2out_frame_debug_expr): Move errant HIGH and
LO_SUM cases to where they belong.
From-SVN: r41033
Zack Weinberg [Tue, 3 Apr 2001 01:01:41 +0000 (01:01 +0000)]
expr.c (pop_type_0): Save the result of the first lang_printable_name call in a scratch buffer...
* expr.c (pop_type_0): Save the result of the first
lang_printable_name call in a scratch buffer, so it
won't be clobbered by the second call.
From-SVN: r41032
Phil Edwards [Tue, 3 Apr 2001 00:26:58 +0000 (00:26 +0000)]
New concept checking implementation.
2001-04-02 Phil Edwards <pme@sources.redhat.com>
New concept checking implementation.
* docs/html/19_diagnostics/howto.html: Document.
* docs/html/17_intro/concept_check.diff: New file, for reference.
* include/bits/boost_concept_check.h: New file from Boost.
* include/bits/c++config: Update comments.
* include/bits/concept_check.h: New file.
* include/bits/concept_checks.h: Removed.
* include/bits/container_concepts.h: Removed.
* include/bits/sequence_concepts.h: Removed.
* include/bits/stl_iterator_base.h: Removed; split into...
* include/bits/stl_iterator_base_funcs.h: ...this new file...
* include/bits/stl_iterator_base_types.h: ...and this new file.
* include/bits/sbuf_iter.h: Update to use new implementation.
* include/bits/std_iterator.h: Likewise.
* include/bits/std_memory.h: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_algobase.h: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_heap.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_numeric.h: Likewise.
* include/bits/stl_queue.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/stl_stack.h: Likewise.
* include/bits/stl_uninitialized.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/ext/hash_map: Likewise.
* include/ext/hash_set: Likewise.
* include/ext/slist: Likewise.
* include/ext/stl_hashtable.h: Likewise.
* src/Makefile.am (base_headers): Update list of headers.
* Makefile.in: Regenerated.
* src/Makefile.in: Regenerated.
* libio/Makefile.in: Regenerated.
* libmath/Makefile.in: Regenerated.
* libsupc++/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* docs/html/install.html: Update contact information.
* docs/html/17_intro/howto.html: Ditto.
* docs/html/18_support/howto.html: Ditto.
* docs/html/20_util/howto.html: Ditto.
* docs/html/21_strings/howto.html: Ditto.
* docs/html/22_locale/howto.html: Ditto.
* docs/html/23_containers/howto.html: Ditto.
* docs/html/24_iterators/howto.html: Ditto.
* docs/html/25_algorithms/howto.html: Ditto.
* docs/html/26_numerics/howto.html: Ditto.
* docs/html/27_io/howto.html: Ditto.
* docs/html/faq/index.html: Ditto, plus info on new checking code.
* docs/html/ext/howto.html: Ditto, plus info on new checking code.
* docs/html/faq/index.txt: Regenerated.
From-SVN: r41031
Zack Weinberg [Mon, 2 Apr 2001 23:40:01 +0000 (23:40 +0000)]
libstdc++.exp (dg-test): Annotate result messages with $which_library as well as $tool_flags and...
* testsuite/lib/libstdc++.exp (dg-test): Annotate result
messages with $which_library as well as $tool_flags and
${dg-extra-tool-flags}. Factor out annotation text into
a single variable.
From-SVN: r41029
Zack Weinberg [Mon, 2 Apr 2001 23:36:26 +0000 (23:36 +0000)]
libjava.exp: Correct typo...
* testsuite/lib/libjava.exp: Correct typo: 'output from source
compiled test', not 'execution from source compiled test'.
Use UNTESTED, not XFAIL, for tests which are not run because
they depend on a previous test which failed.
From-SVN: r41026
Richard Henderson [Mon, 2 Apr 2001 23:26:50 +0000 (16:26 -0700)]
configure.in (GCC_UNWIND_INCLUDE): Assume we're built within the same tree as gcc.
* configure.in (GCC_UNWIND_INCLUDE): Assume we're built within
the same tree as gcc.
* configure: Rebuilt.
* exception.cc (_Jv_Throw): Clarify commentary.
From-SVN: r41025
Richard Henderson [Mon, 2 Apr 2001 23:23:34 +0000 (16:23 -0700)]
except.h (lang_eh_type_covers): Mark extern.
* except.h (lang_eh_type_covers): Mark extern.
(lang_eh_runtime_type): Likewise.
From-SVN: r41024
Rainer Orth [Mon, 2 Apr 2001 23:05:14 +0000 (23:05 +0000)]
fp-cmp-1.c: Renamed nan to dnan.
2001-04-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* gcc.c-torture/execute/ieee/fp-cmp-1.c: Renamed nan to dnan.
* gcc.c-torture/execute/ieee/fp-cmp-3.c: Likewise.
* gcc.c-torture/execute/ieee/fp-cmp-2.c: Renamed nan to fnan.
From-SVN: r41022
Marcus G. Daniels [Mon, 2 Apr 2001 22:52:40 +0000 (22:52 +0000)]
jni.cc (wrap_value<jclass>): New specialization.
2001-04-02 Marcus G. Daniels <mgd@swarm.org>
* jni.cc (wrap_value<jclass>): New specialization.
From-SVN: r41021
Stephen M. Webb [Mon, 2 Apr 2001 22:51:25 +0000 (22:51 +0000)]
std_cstring.h: Fix for const-correctness.
2001-04-02 Stephen M. Webb <stephen@bregmasoft.com>
* include/c_std/bits/std_cstring.h: Fix for const-correctness.
* include/c_std/bits/std_cwchar.h: Same.
* testsuite/21_strings/c_strings.cc: Add.
From-SVN: r41019
Stephen M. Webb [Mon, 2 Apr 2001 22:01:52 +0000 (22:01 +0000)]
std_cstring.h: Fix for const-correctness.
2001-04-02 Stephen M. Webb <stephen@bregmasoft.com>
* include/c_std/bits/std_cstring.h: Fix for const-correctness.
* include/c_std/bits/std_cwchar.h: Same.
* testsuite/21_strings/c_strings.cc: Add.
From-SVN: r41018
Jakub Jelinek [Mon, 2 Apr 2001 21:23:28 +0000 (23:23 +0200)]
lex.c (ffelex_hash_): Avoid eating one whole line after #line.
* lex.c (ffelex_hash_): Avoid eating one whole line after
#line.
* g77.f-torture/compile/
20010321-1.f: New test.
From-SVN: r41015
Tom Tromey [Mon, 2 Apr 2001 21:16:38 +0000 (21:16 +0000)]
PrintStream.java (out): Removed field.
* java/io/PrintStream.java (out): Removed field. Fixes PR
java/2449.
(write): Call flush, not out.flush, per spec.
(close): Flush output stream, per spec. Handle
InterruptedIOException.
(checkError): Likewise.
(flush, print, write): Handle InterruptedIOException per spec.
(PrintStream): Don't create BufferedOutputStream.
(work_bytes): New field.
(writeChars): Use work_bytes. Don't assume `out' is a
BufferedOutputStream.
From-SVN: r41014
Torsten Rueger [Mon, 2 Apr 2001 19:55:56 +0000 (19:55 +0000)]
re PR libgcj/2429 (java.text.MessageFormat should usefully set text on exceptions)
2001-04-02 Torsten Rueger <torsten.rueger@firsthop.com>
* java/text/MessageFormat.java (setLocale): Added missing `else'.
For PR libgcj/2429.
From-SVN: r41012
Tom Tromey [Mon, 2 Apr 2001 19:52:39 +0000 (19:52 +0000)]
jni.cc (add_char): Correctly encode non-ascii characters.
* jni.cc (add_char): Correctly encode non-ascii characters.
(add_char): Define even when INTERPRETER not defined.
(mangled_name): Likewise.
(_Jv_GetJNIEnvNewFrame): Likewise.
(_Jv_LookupJNIMethod): Likewise.
From-SVN: r41010
Kevin B Hendricks [Mon, 2 Apr 2001 19:51:40 +0000 (19:51 +0000)]
* configure.host: Enable interpreter for PPC.
From-SVN: r41009
Benjamin Kosnik [Mon, 2 Apr 2001 19:00:13 +0000 (19:00 +0000)]
configopts.html: Add --enable-sjlj-exceptions docs.
2001-04-01 Benjamin Kosnik <bkoz@codesourcery.com>
* docs/html/configopts.html: Add --enable-sjlj-exceptions docs.
From-SVN: r41007
Zack Weinberg [Mon, 2 Apr 2001 16:29:32 +0000 (16:29 +0000)]
genattr.c, [...]: Wrap generated header in multiple-include guard.
* genattr.c, gencheck.c, gencodes.c, genconfig.c, genflags.c,
gengenrtl.c: Wrap generated header in multiple-include guard.
Improve error checking.
From-SVN: r41006
Kaveh R. Ghazi [Mon, 2 Apr 2001 15:20:53 +0000 (15:20 +0000)]
configure.in: Don't check for putenv.
* configure.in: Don't check for putenv.
* configure: Regenerate.
* gcc.c (putenv): Don't define.
* vax/xm-vms.h: Handle putenv.
From-SVN: r41005
Jakub Jelinek [Mon, 2 Apr 2001 08:17:15 +0000 (10:17 +0200)]
ifcvt.c (noce_emit_move_insn): New.
* ifcvt.c (noce_emit_move_insn): New.
(noce_try_store_flag, noce_try_store_flag_constants,
noce_try_store_flag_inc, noce_try_store_flag_mask,
noce_try_cmove, noce_try_cmove_arith, noce_try_minmax,
noce_try_abs): Use it.
(noce_process_if_block): Likewise.
For STRICT_LOW_PART, take mode from its SUBREG.
* gcc.c-torture/compile/
20010329-1.c: New test.
From-SVN: r41001
Jakub Jelinek [Mon, 2 Apr 2001 08:08:22 +0000 (10:08 +0200)]
fold-const.c (fold): Before optimizing unsigned comparison with 0x7fffffffU...
* fold-const.c (fold): Before optimizing unsigned comparison with
0x7fffffffU, make sure arg0 is integral type.
* gcc.c-torture/execute/
20010329-1.c: New test.
From-SVN: r41000
Joseph Myers [Mon, 2 Apr 2001 07:39:39 +0000 (08:39 +0100)]
* c-tree.texi: Document representation of wide strings.
From-SVN: r40998
GCC Administrator [Mon, 2 Apr 2001 07:16:38 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r40997
Richard Henderson [Mon, 2 Apr 2001 06:36:33 +0000 (23:36 -0700)]
* except.h (expand_builtin_dwarf_fp_regnum): Declare.
From-SVN: r40995
Bryce McKinlay [Mon, 2 Apr 2001 05:23:10 +0000 (05:23 +0000)]
natSystem.cc (init_properties): Revert yesterday's changes to "file.separator"...
* java/lang/natSystem.cc (init_properties): Revert yesterday's changes
to "file.separator", "path.separator", and "java.io.tmpdir" property
initialization.
* java/io/File.java: Likewise.
* java/io/natFile.cc (init_native): Likewise.
* java/io/natFileWin32.cc (init_native): Likewise.
From-SVN: r40994
Alexandre Oliva [Mon, 2 Apr 2001 01:26:14 +0000 (01:26 +0000)]
Makefile.in (CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, [...]): New macros.
* Makefile.in (CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, RECURSE_FLAGS):
New macros.
(bootstrap, cross): Use RECURSE_FLAGS.
* configure.in: Subst CXX_FOR_TARGET_FOR_RECURSIVE_MAKE.
From-SVN: r40991
Per Bothner [Sun, 1 Apr 2001 21:54:10 +0000 (14:54 -0700)]
natString.cc (intern): If string's data does not point to this String, make a fresh String that does.
* java/lang/natString.cc (intern): If string's data does not point to
this String, make a fresh String that does.
* java/lang/natString.cc (unintern): Replace by static function.
* java/lang/String.java (unintern): Remove method.
From-SVN: r40990
Per Bothner [Sun, 1 Apr 2001 21:28:45 +0000 (14:28 -0700)]
DeflaterOutputStream.java (deflate): Loop while def.needsInput.
* DeflaterOutputStream.java (deflate): Loop while def.needsInput.
(finish): def.deflate needs to be called in a loop.
(inbuf, inbufLength): New private fields.
(write(int)): Use inbuf.
(write(byte[],int,int): Check if pending output in inbuf.
* ZipOutputStream.java: Don't use Deflater if stored.
Use a Checksum object directly, not via a CheckedOutputStream.
(uncompressed_size): New field,
(closeEntry): Only write data_directory if needed.
(write): If STORED, write directly.
Always update crc, and uncompressed_size.
(write_entry): Fix lots of protocol erors.
From-SVN: r40988
Zack Weinberg [Sun, 1 Apr 2001 19:19:57 +0000 (19:19 +0000)]
tests_flags.in: Use test a = b, not test a == b which is not portable.
* tests_flags.in: Use test a = b, not test a == b which is not
portable.
From-SVN: r40986
Bryce McKinlay [Sun, 1 Apr 2001 11:16:40 +0000 (11:16 +0000)]
1.3-Compliant Implementation of java.io.File.
* java/lang/natSystem.cc (init_properties): Get "file.separator",
"path.separator", and "java.io.tmpdir" from the File class, instead
of setting them explicitly.
* java/io/File.java: Do not canonicalize paths for security manager
checks. Call init_native() from static initializer. Do not pass path
argument to native methods. New native method declarations. Some
security manager checks moved to checkWrite().
(equals): Check file system case sensitivity and act appropriatly.
(hashCode): Likewise.
(isHidden): New method implemented.
(performList): Changed prototype. Now takes a class argument specifying
the class of the returned array: Strings or File objects. Also added
FileFilter argument.
(listFiles): New variants with "File" return type implemented.
(createTempFile): Use createNewFile(). Use maxPathLen.
(setReadOnly): New method implemented.
(listRoots): Likewise.
(compareTo): Likewise.
(setLastModified): Likewise.
(checkWrite): New method.
(setPath): Removed.
* java/io/natFile.cc: Various functions no longer take canonical path
argument.
(stat): Handle ISHIDDEN query.
(isAbsolute): Remove WIN32 cruft.
(performList): New arguments. Handle returning either File[] or
String[] arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New method implemented.
(performListRoots): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(init_native): New initialization function.
* java/io/natFileWin32.cc: Various functions no longer take canonical
path argument.
(stat): Add FIXME about ISHIDDEN query.
(performList): New arguments. Handle returning either File[] or String[]
arrays. Check with FileFilter or FilenameFilter arguments as
appropriate. Use an ArrayList, not a Vector, for the temporary list.
(performSetReadOnly): New. Stubbed.
(performListRoots): Likewise.
(performSetLastModified): Likewise.
(performCreate): Likewise.
(init_native) New initialization function.
* configure.in: Check for utime() and chmod().
* configure: Rebuilt.
* include/config.h.in: Rebuilt.
Resolves PR libgcj/1759.
From-SVN: r40985
Jan Hubicka [Sun, 1 Apr 2001 09:50:06 +0000 (09:50 +0000)]
i386.md: remove obsoleted comments.
* i386.md: remove obsoleted comments.
(adddi_?): Rename to adddi_?_rex64; disable for 32bit.
(x86_movsicc_0_m1_rex64): Rename to x86_movdicc_0_m1_rex64;
fix output template.
From-SVN: r40982
GCC Administrator [Sun, 1 Apr 2001 08:16:08 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r40980
Benjamin Kosnik [Sat, 31 Mar 2001 20:15:43 +0000 (20:15 +0000)]
[multiple changes]
2001-03-31 Benjamin Kosnik <bkoz@redhat.com>
* configure.target: Remove duplicate aix entry.
2001-03-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stl_bvector.h: Move to...
* include/bits/stl_vector.h: ...here.
* include/ext/bvector: Move to...
* include/backward/bvector.h: ...here.
* include/bits/std_vector.h: Change stl_bvector include.
* include/bits/std_queue.h: Remove bvector include.
* include/ext/tree: Insert using rb_tree, move to...
* include/backward/tree.h: ...here.
* include/backward/hash_map.h: Include ext/hash_map.
* include/backward/hash_set.h: Include ext/hash_set.
* include/backward/queue.h: New file.
* include/backward/stack.h: Edit.
* include/backward/algo.h: Same.
* include/backward/algobase.h: Same.
* include/backward/alloc.h: Same.
* include/backward/function.h: Same.
* include/backward/iomanip.h: Same.
* include/backward/istream.h: Same.
* include/backward/iterator.h: Same.
* include/backward/list.h: Same.
* include/backward/map.h: Same.
* include/backward/multimap.h: Same.
* include/backward/multiset.h: Same.
* include/backward/ostream.h: Same.
* include/backward/pair.h: Same
* include/backward/rope.h: Same.
* include/backward/set.h: Same.
* include/backward/stream.h: Same.
* include/backward/strstream.h: Same.
* include/backward/tempbuf.h: Same.
* src/Makefile.am (ext_headers): Edit.
* src/Makefile.in: Regenerate.
* testsuite/ext/headers.cc (main): Fix.
* mkcheck.in: Fix.
From-SVN: r40979
Kaveh R. Ghazi [Sat, 31 Mar 2001 18:59:56 +0000 (18:59 +0000)]
* libiberty.h (alloca): Handle setting C_ALLOCA.
From-SVN: r40978
Marek Michalkiewicz [Sat, 31 Mar 2001 16:24:16 +0000 (18:24 +0200)]
* config/avr/libgcc.S (__mulhi3): Optimize previous change.
From-SVN: r40976
GCC Administrator [Sat, 31 Mar 2001 08:16:18 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r40974
Phil Edwards [Fri, 30 Mar 2001 21:59:12 +0000 (21:59 +0000)]
tests_flags.in (LIBS): Pass correct path for installed testing.
2001-03-30 Phil Edwards <pme@sources.redhat.com>
* tests_flags.in (LIBS): Pass correct path for installed testing.
From-SVN: r40973
Benjamin Kosnik [Fri, 30 Mar 2001 17:41:33 +0000 (17:41 +0000)]
mkcheck.in (LIBTOOL): Don't construct -B argument here...
2001-03-28 Benjamin Kosnik <bkoz@redhat.com>
* mkcheck.in (LIBTOOL): Don't construct -B argument here...
* tests_flags.in (CXX): Construct here.
(static_fail): Don't remove compile.out. Format with spaces.
(INCLUDES): Deal with xcompiling.
* configure.in (xcompiling): Substitute.
* testsuite/Makefile.am: Snake libjava configury.
* testsuite/Makefile.in: Regenerate.
* testsuite/23_containers/map_operators.cc: Tweaks.
* testsuite/23_containers/set_operators.cc: Tweaks.
From-SVN: r40972
Bernd Schmidt [Fri, 30 Mar 2001 17:18:14 +0000 (17:18 +0000)]
Prevent hoisting code from generating uninitialized accesses.
From-SVN: r40971
Jan Hubicka [Fri, 30 Mar 2001 15:43:44 +0000 (17:43 +0200)]
i386.c (ix86_split_long_move): Use change address to compensate stack pointer change in push instruction.
* i386.c (ix86_split_long_move): Use change address to compensate
stack pointer change in push instruction.
From-SVN: r40968
GCC Administrator [Fri, 30 Mar 2001 08:16:14 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r40961
Benjamin Kosnik [Fri, 30 Mar 2001 08:14:15 +0000 (08:14 +0000)]
[multiple changes]
2001-03-28 Benjamin Kosnik <bkoz@redhat.com>
* mkcheck.in (LIBTOOL): Don't construct -B argument here...
* tests_flags.in (CXX): Construct here.
(static_fail): Don't remove compile.out. Format with spaces.
(INCLUDES): Deal with xcompiling.
* configure.in (xcompiling): Substitute.
* testsuite/Makefile.am: Snake libjava configury.
* testsuite/Makefile.in: Regenerate.
* testsuite/23_containers/map_operators.cc: Tweaks.
* testsuite/23_containers/set_operators.cc: Tweaks.
2001-03-28 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
Enable dejagnu testing framework.
* configure.in: Generate testsuite/Makefile.
* configure: Regenerate.
* Makefile.am (check-install): Change rule from this...
(check-script-install): ...to this.
(check): Change rule from this...
(check-script):...to this.
* Makefile.in: Regenerate.
From-SVN: r40960
Jan Hubicka [Thu, 29 Mar 2001 22:32:53 +0000 (00:32 +0200)]
i386.md (sse_movdfcc_eq): Fix constraint (sse_mov?fcc splitter): Use operands_match_p instead of...
* i386.md (sse_movdfcc_eq): Fix constraint (sse_mov?fcc splitter): Use operands_match_p
instead of rtx_equal_p; fix the output template.
From-SVN: r40959
Jan Hubicka [Thu, 29 Mar 2001 22:25:16 +0000 (00:25 +0200)]
i386.c (ix86_expand_setcc): Support 64bit.
* i386.c (ix86_expand_setcc): Support 64bit.
(ix86_expand_int_movcc): Likewise.
* i386.md (movdicc_rex64, x86_movsicc_0_m1_rex64, movdicc_c_rex64):
New patterns.
* i386.md (allocate_stack_worker): Turn to expander.
(allocate_stack_worker_1, allocate_stack_worker_rex64): New insns.
* i386.c (print_reg): Do not print x86_64 style regs on IA-32
From-SVN: r40958
Richard Henderson [Thu, 29 Mar 2001 21:11:23 +0000 (13:11 -0800)]
* libgcc2.c [L__main]: Include unwind-dw2-fde.h instead of frame.h.
From-SVN: r40957
Matthew Hiller [Thu, 29 Mar 2001 02:32:46 +0000 (02:32 +0000)]
mn10300.md (cmpsi): Fix first alternative's output template.
2001-03-28 Matthew Hiller <hiller@redhat.com>
* config/mn10300/mn10300.md (cmpsi): Fix first alternative's
output template.
* MAINTAINERS: Added self.
From-SVN: r40956