Steve Ellcey
e206a74f52
ia64.md (*ptr_extend_plus_1, [...]): New.
...
* config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
* config/ia64/ia64.c (basereg_operand): New.
* config/ia64/ia64-protos.h (basereg_operand): Declare.
* config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
From-SVN: r51564
2002-03-29 10:39:56 -08:00
Tom Tromey
6676c77f01
natPlainDatagramSocketImpl.cc (close): New function.
...
* java/net/natPlainDatagramSocketImpl.cc (close): New function.
* java/net/natPlainSocketImpl.cc (close): Indentation fix.
From-SVN: r51563
2002-03-29 17:07:59 +00:00
Hans-Peter Nilsson
7d9b63781d
mmix.c (mmix_target_asm_function_prologue): Correct unwind information when frame_pointer_needed.
...
* config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
unwind information when frame_pointer_needed.
(mmix_assemble_integer): Tweak wording in comment.
From-SVN: r51562
2002-03-29 17:07:59 +00:00
Andreas Schwab
1d5af8719f
Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts directory.
...
* Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
directory.
From-SVN: r51559
2002-03-29 16:10:04 +00:00
Neil Booth
f1e639b1ac
Makefile.in (except.o): Update.
...
* Makefile.in (except.o): Update.
* except.c: Include langhooks.h.
(init_eh): Use langhook.
* langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (lang_hooks_for_types): New.
(struct lang_hooks): Add it.
* tree.c (make_lang_type_fn, make_lang_type): Remove.
* tree.h (make_lang_type_fn, make_lang_type): Remove.
config:
* alpha/alpha.c: Include langhooks.h.
(alpha_build_va_list): Use langhook.
* d30v/d30v.c: Include langhooks.h.
(d30v_build_va_list): Use langhook.
* i386/i386.c: Include langhooks.h.
(ix86_build_va_list): Use langhook.
* rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
* s390/s390.c: Include langhooks.h.
(s390_build_va_list): Use langhook.
* stormy16/stormy16.c: Include langhooks.h.
(stormy16_build_va_list): Use langhook.
cp:
* cp-lang.c (LANG_HOOKS_MAKE_TYPE): Redefine.
* cp-tree.h (cp_make_lang_type): Rename.
* lex.c (cp_make_lang_type): Rename.
(make_aggr_type): Update.
* tree.c (init_tree): Don't set make_lang_type_fn.
From-SVN: r51558
2002-03-29 08:43:22 +00:00
Jakub Jelinek
f17f93326d
re PR c++/5964 (g++ generates code that results in "word displacement will not fit in 16 bits" on sparcv9)
...
PR c++/5964
* config/sparc/sparc.md (empty_delay_slot, branch_type): New
attributes.
(length): Compute variable length for branches/calls/jumps here.
(branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
define branch_type attribute.
(divsi3_sp32): Maximum length is 6 not 7.
(call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
call_address_untyped_struct_value_sp32,
call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
* config/sparc/sparc.c (empty_delay_slot): New function.
* config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
* config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
* g++.dg/opt/longbranch1.C: New test.
From-SVN: r51557
2002-03-29 09:25:10 +01:00
GCC Administrator
13992acae2
Daily bump.
...
From-SVN: r51555
2002-03-29 08:17:01 +00:00
Jakub Jelinek
0a0440c94f
combine.c (set_nonzero_bits_and_sign_copies): Don't call nonzero_bits if not needed.
...
* combine.c (set_nonzero_bits_and_sign_copies): Don't call
nonzero_bits if not needed.
(nonzero_bits) [XOR]: Likewise.
(nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
reg_last_set_mode and mode are both MODE_INT, but not equal.
(record_value_for_reg): Compute reg_last_set_nonzero_bits
in nonzero_bits_mode for MODE_INT modes.
From-SVN: r51551
2002-03-29 09:01:20 +01:00
Jakub Jelinek
c7f4981a51
re PR c++/6073 ([Solaris] Internal compiler error in simplify_gen_subreg, at simplify-rtx.c:2711)
...
PR c++/6073
* class.c (finish_struct_1): Update static field's DECL_MODE even
if its type is a variant of t.
* g++.dg/opt/static1.C: New test.
From-SVN: r51549
2002-03-29 08:47:06 +01:00
Richard Henderson
c9045f47b6
osf.h (ASM_SPEC): Don't pass any special options to GAS.
...
* config/alpha/osf.h (ASM_SPEC): Don't pass any special options
to GAS. Correct drift between alternatives.
From-SVN: r51547
2002-03-28 23:20:22 -08:00
Loren J. Rittle
cb105687e5
* testsuite/18_support/numeric_limits.cc (test_extrema): Fix typo.
...
From-SVN: r51544
2002-03-29 06:34:04 +00:00
Richard Henderson
f8ed195839
re PR target/6087 (3.1 i86 FP stack pop bug)
...
PR target/6087
* reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
From-SVN: r51543
2002-03-28 22:19:36 -08:00
Loren J. Rittle
54e203858d
freebsd.h (LINK_SPEC): Don't pass default emulation to the linker.
...
* config/i386/freebsd.h (LINK_SPEC): Don't pass default
emulation to the linker.
* config/alpha/freebsd.h (LINK_SPEC): Likewise.
* config/sparc/freebsd.h (LINK_SPEC): Likewise.
From-SVN: r51540
2002-03-29 05:21:29 +00:00
Tom Tromey
073681c570
re PR java/5986 (SIGSEGV in __gcj_personality_v0)
...
* except.c (expand_end_java_handler): If the handler type is NULL,
use java.lang.Throwable. Fixes PR java/5986.
From-SVN: r51539
2002-03-29 00:42:54 +00:00
David Billinghurst
c75e51ed68
re PR other/2620 (Filenames differ only in case)
...
2002-03-29 David Billinghurst <David.Billinghurst@riotinto.com>
PR other/2620
* src/mips/n32.s: Delete
* src/mips/o32.s: Delete
From-SVN: r51537
2002-03-29 00:39:57 +00:00
Alexandre Petit-Bianco
242747e538
re PR java/4715 (Tree check failure in check_inner_circular_reference)
...
2002-03-28 Alexandre Petit-Bianco <apbianco@redhat.com>
Fix for PR java/4715:
* jcf-parse.c (parse_source_file_3): New function.
(read_class): Call it.
(java_parse_file): Likewise.
(http://gcc.gnu.org/ml/gcc-patches/2002-03/msg01917.html )
From-SVN: r51534
2002-03-28 15:40:21 -08:00
Jeff Law
8bc528064f
re PR rtl-optimization/3311 (GCC-SH: gcc loses result of AND operation due to force_to_mode bug)
...
* combine.c (simplify_and_const_int): Make sure to apply mask
when force_to_mode returns a constant integer. PR3311.
From-SVN: r51532
2002-03-28 16:33:52 -07:00
John David Anglin
279dccc5db
* pa-linux.h (LOCAL_LABEL_PREFIX): Define.
...
From-SVN: r51530
2002-03-28 23:13:01 +00:00
Hans-Peter Nilsson
d15e67bc46
weak-1.c: Fix typo in scan-assembler pattern.
...
* gcc.dg/weak-1.c: Fix typo in scan-assembler pattern.
* g++.old-deja/g++.law/bit-fields2.C: Skip on mmix-knuth-mmixware.
From-SVN: r51529
2002-03-28 20:36:16 +00:00
Paolo Carlini
0c0bac932e
2002-03-28 Paolo Carlini <pcarlini@unitus.it>
...
* testsuite/24_iterators/istream_iterator.cc
(test02): New tests.
From-SVN: r51527
2002-03-28 20:25:25 +00:00
Gerald Pfeifer
62aaa62c67
invoke.texi (Warning Options): Refer to C++ Dialect Options and Objective-C Dialect Options.
...
* doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
and Objective-C Dialect Options.
From-SVN: r51526
2002-03-28 19:49:38 +00:00
Paolo Carlini
e1cfa83038
Fix wrong date in last Changelog
...
From-SVN: r51523
2002-03-28 19:23:48 +00:00
Ulrich Weigand
10cbfb51ac
2002-03-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
...
Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/codecvt_members_unicode_wchar_t.cc
(test01): Protect the test with _GLIBCPP_USE_WCHAR_T;
fix i_lit_base e_lit_base arrays, making them independent
from the endianness of the platform; tweak UCS4 to UCS-4BE.
Co-Authored-By: Paolo Carlini <pcarlini@unitus.it>
From-SVN: r51521
2002-03-28 19:19:23 +00:00
Richard Henderson
b8de5050cb
alpha.c (alpha_emit_conditional_branch): TFmode NE comparison should be done vs !=0 not >0 return code.
...
* config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
comparison should be done vs !=0 not >0 return code. Tidy cases.
From-SVN: r51519
2002-03-28 10:52:43 -08:00
Richard Henderson
619708cce2
c-decl.c (finish_function): New arg can_defer_p.
...
* c-decl.c (finish_function): New arg can_defer_p. Pass it
on to c_expand_body.
* c-tree.h (finish_function): Update decl.
* c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
From-SVN: r51518
2002-03-28 10:51:49 -08:00
Jan Hubicka
b1d874d7b1
* ifcvt.c (if_convert): Clear aux_for_blocks early enought.
...
From-SVN: r51516
2002-03-28 18:16:18 +00:00
Andrew Haley
4d00945e45
Throw_2.java: New.
...
2002-03-28 Andrew Haley <aph@redhat.com>
* libjava.lang/Throw_2.java: New.
* libjava.lang/Throw_2.out: New.
From-SVN: r51515
2002-03-28 16:24:21 +00:00
Matthew Gingell
8cbb664efd
* checks.ads:
...
(Remove_Checks): New procedure
* checks.adb:
(Remove_Checks): New procedure
* exp_util.adb:
Use new Duplicate_Subexpr functions
(Duplicate_Subexpr_No_Checks): New procedure
(Duplicate_Subexpr_No_Checks_Orig): New procedure
(Duplicate_Subexpr): Restore original form (checks duplicated)
(Duplicate_Subexpr): Call Remove_Checks
* exp_util.ads:
(Duplicate_Subexpr_No_Checks): New procedure
(Duplicate_Subexpr_No_Checks_Orig): New procedure
Add 2002 to copyright notice
* sem_util.adb: Use new Duplicate_Subexpr functions
* sem_eval.adb:
(Eval_Indexed_Component): This is the place to call
Constant_Array_Ref and to replace the value. We simply merge
the code of this function in here, since it is now no longer
used elsewhere. This fixes the problem of the back end not
realizing we were clever enough to see that this was
constant.
(Expr_Val): Remove call to Constant_Array_Ref
(Expr_Rep_Val): Remove call to Constant_Array_Ref
Minor reformatting
(Constant_Array_Ref): Deal with string literals (patch
suggested by Zack Weinberg on the gcc list)
* exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
Duplicate_Subexpr_Move_Checks.
* exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
Duplicate_Subexpr_Move_Checks.
* sem_eval.adb: (Constant_Array_Ref): Verify that constant
value of array exists before retrieving it (it may a private
protected component in a function).
From-SVN: r51513
2002-03-28 15:33:09 +00:00
Geert Bosch
792c4e7440
prj-pp.adb: New file.
...
* prj-pp.adb : New file.
* prj-pp.ads : New file.
From-SVN: r51512
2002-03-28 16:21:33 +01:00
Andreas Jaeger
915e8bada3
* Makefile.in (stamp-sdefault): Fix path for Makefile.
...
From-SVN: r51510
2002-03-28 14:00:02 +01:00
Jan Hubicka
f5eb5fd0d6
rtlanal.c: Include flags.h
...
* rtlanal.c: Include flags.h
(may_trap_p): Do not mark FP operations if trapping
if !flag_trapping_math
* Makefile.in (rtlanal.o): Add dependency on flag.h
* ifcvt.c (noce_operand_ok): Avoid the lameness.
From-SVN: r51508
2002-03-28 12:25:21 +00:00
GCC Administrator
ac43cbb507
Daily bump.
...
From-SVN: r51507
2002-03-28 08:17:10 +00:00
Neil Booth
0840811cb2
* misc.c (gnat_expand_expr): Move prototype.
...
From-SVN: r51503
2002-03-28 07:47:28 +00:00
Zack Weinberg
81b4c798e8
mips.md: Use dconst1, not 1.0, as first argument of REAL_VALUE_LDEXP.
...
* mips.md: Use dconst1, not 1.0, as first argument of
REAL_VALUE_LDEXP. Don't use union real_extract.
From-SVN: r51502
2002-03-28 07:43:59 +00:00
Bryce McKinlay
c187b20ed1
parse.y (resolve_package): Initialize "decl".
...
2002-03-28 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* parse.y (resolve_package): Initialize "decl".
(lookup_package_type): Remove unused function.
From-SVN: r51500
2002-03-28 07:41:40 +00:00
Bryce McKinlay
2f418289ef
re PR java/5993 (crashes on Hello World)
...
Fix for PR java/5993:
* parse.y (resolve_package): Return the decl if resolution was
successful. Don't special case "java.lang" and "java.lang.reflect"
packages. Set type_name to the merged identifier.
(resolved_qualified_expression_name): Print error using "name" if
resolve_package returns NULL_TREE.
From-SVN: r51497
2002-03-28 04:28:22 +00:00
DJ Delorie
96adcacb9f
hex.c: Add documentation.
...
* hex.c: Add documentation.
(_hex_value): Provide non-ASCII empty table.
(hex_init): Initialize the non-ASCII table.
* functions.texi: Regenerate.
From-SVN: r51496
2002-03-27 23:04:20 -05:00
Benjamin Kosnik
a3ebd14d24
ostream.tcc (ostream::operator<<(_CharT)): Always allocate at least a byte.
...
2002-03-27 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/ostream.tcc (ostream::operator<<(_CharT)): Always
allocate at least a byte.
* testsuite/18_support/numeric_limits.cc (test_extrema): Make
debugger-friendly.
* testsuite/27_io/streambuf.cc (test07): Fix.
(test06): Enable.
From-SVN: r51494
2002-03-28 03:15:08 +00:00
Jeff Sturm
47d0866c79
* java/net/PlainDatagramSocketImpl.java
...
(close): Use native implementation.
(finalize): New method.
* java/net/PlainSocketImpl.java (finalize): New method.
* java/net/natPlainDatagramSocketImpl.cc
(java/io/FileDescriptor.h): Don't include.
(close): Implement method here.
(create): Don't assign fd.
* java/net/natPlainSocketImpl.cc
(java/io/FileDescriptor.h): Don't include.
(create): Don't assign fd.
(accept): Likewise.
(close): Synchronize.
From-SVN: r51492
2002-03-28 02:08:36 +00:00
Richard Henderson
1b58660a9d
instantiate1.C: Use scan-assembler, not link errors.
...
* g++.dg/ext/instantiate1.C: Use scan-assembler, not link errors.
* g++.dg/ext/instantiate2.C, g++.dg/ext/instantiate3.C: Likewise;
move from g++.old-deja/g++.ext/.
From-SVN: r51491
2002-03-27 17:52:55 -08:00
Alan Modra
55a2ea2a34
configure.in (gcc_cv_as): Use $target_alias in directory searchs rather than $target.
...
* configure.in (gcc_cv_as): Use $target_alias in directory searchs
rather than $target. Heed program_prefix and
program_transform_name. Search for gas in cross-compiler case too.
"test -x" rather than "test -f".
(gcc_cv_ld): Likewise.
(gcc_cv_nm): Heed program_prefix and program_transform_name.
(gcc_cv_objdump): Likewise.
* configure: Regenerate.
From-SVN: r51489
2002-03-28 10:49:56 +10:30
Neil Booth
7ffb4fd2da
Makefile.in (attribs.o): Update.
...
* Makefile.in (attribs.o): Update.
* attribs.c: Include langhooks.h.
(decl_attributes): Use langhook.
* c-decl.c (insert_default_attributes): Rename.
* c-tree.h (c_insert_default_attributes): New.
* langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New hook.
* tree.h (insert_default_attributes): Remove.
ada:
* misc.c (insert_default_attributes): Remove.
cp:
* cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
* cp-tree.h (cxx_insert_default_attributes): New.
* decl.c (insert_default_attributes): Rename.
objc:
* objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
From-SVN: r51488
2002-03-27 23:16:17 +00:00
Tom Tromey
39bea3744d
expr.c (expand_invoke): Don't generate null pointer check if we're calling <init>.
...
* expr.c (expand_invoke): Don't generate null pointer check if
we're calling <init>.
From-SVN: r51487
2002-03-27 23:12:05 +00:00
Andreas Schwab
e4dbaed54e
i386.c (classify_argument): Also check for QUAL_UNION_TYPE.
...
* config/i386/i386.c (classify_argument): Also check for
QUAL_UNION_TYPE.
From-SVN: r51484
2002-03-27 22:53:08 +00:00
Rainer Orth
18b467f142
configure.in (alpha*-dec-osf*): Enable libgcj.
...
* configure.in (alpha*-dec-osf*): Enable libgcj.
gcc:
* doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
any more.
From-SVN: r51483
2002-03-27 22:52:00 +00:00
Jan Hubicka
d337d653ca
i960.md (ret): Set PC.
...
* i960.md (ret): Set PC.
(nonlocal_goto): Fix expander.
* builtins.c (epxand_builin_longjmp): Check that we've emitted
some jump or call.
From-SVN: r51478
2002-03-27 22:23:12 +00:00
Jan Hubicka
218aa620c4
optabs.c (emit_no_conflict_block, [...]): Avoid nesting of libcall regions.
...
* optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
of libcall regions.
From-SVN: r51477
2002-03-27 22:16:20 +00:00
Zdenek Dvorak
e27a4eaf4f
cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of assigning to BLOCK_FOR_INSN directly.
...
* cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
assigning to BLOCK_FOR_INSN directly.
From-SVN: r51475
2002-03-27 21:56:50 +00:00
Phil Edwards
04b7c941e9
Intro.3: Date tweak.
...
2002-03-27 Phil Edwards <pme@gcc.gnu.org>
* docs/doxygen/Intro.3: Date tweak.
* docs/doxygen/TODO: Update.
* docs/doxygen/doxygroups.cc: Point to tables.html.
* docs/doxygen/mainpage.html: Date tweak.
* docs/doxygen/run_doxygen: Version tweak. Copy tables.html over.
* docs/doxygen/tables.html: Fill in the blanks.
* docs/doxygen/user.cfg.in (ALIASES): Remove maint and endmaint.
* include/bits/stl_algo.h: Likewise; use expanded form.
* include/bits/stl_alloc.h: Likewise.
* include/bits/stl_construct.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_iterator_base_types.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_relops.h: Likewise.
* include/bits/stl_tempbuf.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/std/std_memory.h: Likewise.
* include/bits/stl_deque.h: Point into tables.html and add @ingroup.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_vector.h: Likewise.
From-SVN: r51471
2002-03-27 21:41:36 +00:00
Jan Hubicka
8a12f34cfc
* i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
...
From-SVN: r51470
2002-03-27 21:37:54 +00:00