platform/upstream/gcc.git
22 years agogc_priv.h (WARN macro): Add "GC warning:" prefix.
Hans Boehm [Tue, 9 Apr 2002 00:39:16 +0000 (00:39 +0000)]
gc_priv.h (WARN macro): Add "GC warning:" prefix.

* include/private/gc_priv.h (WARN macro): Add "GC warning:" prefix.
(GC_large_alloc_warn_interval, GC_large_alloc_warn_suppressed):
declare.
* allchblk.c (GC_allchblk_nth): Change text and support reduced
frequency for blacklist warning message.
* misc.c (GC_large_alloc_warn_interval,
GC_large_alloc_warn_suppressed): define.
(GC_init_inner): Check GC_NO_BLACKLIST_WARNING and
GC_LARGE_ALLOC_WARN_INTERVAL environment variables.
* doc/README.environment (GC_NO_BLACKLIST_WARNING): Deprecate.
(GC_LARGE_ALLOC_WARN_INTERVAL): Add documentation.

* dyn_load.c (_DYNAMIC): Move declaration to file scope.

From-SVN: r52053

22 years agojava_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE correctly.
Hans Boehm [Mon, 8 Apr 2002 23:59:13 +0000 (23:59 +0000)]
java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE correctly.

* src/java_raw_api.c (ffi_java_raw_size): Handle FFI_TYPE_DOUBLE
correctly.
* src/ia64/unix.S: Add unwind information. Fix comments.
Save sp in a way that's compatible with unwind info.
(ffi_call_unix): Correctly restore sp in all cases.
* src/ia64/ffi.c: Add, fix comments.

From-SVN: r52048

22 years agoFix commit goof: s/istarget/ishost/ for host
Hans-Peter Nilsson [Mon, 8 Apr 2002 23:16:17 +0000 (23:16 +0000)]
Fix commit goof: s/istarget/ishost/ for host

From-SVN: r52047

22 years ago980628-4.x, [...]: New, xfail cross-endian tests.
Hans-Peter Nilsson [Mon, 8 Apr 2002 22:49:02 +0000 (22:49 +0000)]
980628-4.x, [...]: New, xfail cross-endian tests.

* g77.f-torture/execute/980628-4.x,
g77.f-torture/execute/980628-5.x,
g77.f-torture/execute/980628-6.x, g77.f-torture/execute/alpha2.x,
g77.f-torture/execute/auto0.x, g77.f-torture/execute/auto1.x,
g77.f-torture/compile/alpha1.x: New, xfail cross-endian tests.

From-SVN: r52046

22 years agoMake-lang.in (f/target.o): Depend on diagnostic.h.
Hans-Peter Nilsson [Mon, 8 Apr 2002 22:20:39 +0000 (22:20 +0000)]
Make-lang.in (f/target.o): Depend on diagnostic.h.

* Make-lang.in (f/target.o): Depend on diagnostic.h.
* target.c: Include diagnostic.h.
  (ffetarget_memcpy_): Call sorry if host and target endians are
not matching.

From-SVN: r52043

22 years ago* src/sparc/v8.S: Make .eh_frame dependent on target word size.
Jakub Jelinek [Mon, 8 Apr 2002 20:24:17 +0000 (22:24 +0200)]
* src/sparc/v8.S: Make .eh_frame dependent on target word size.

From-SVN: r52041

22 years agore PR libgcj/6068 (libgcj build picks up libgcj.spec from install tree)
Tom Tromey [Mon, 8 Apr 2002 18:57:57 +0000 (18:57 +0000)]
re PR libgcj/6068 (libgcj build picks up libgcj.spec from install tree)

* configure.in: Add FLAGS_FOR_TARGET to GCJ_FOR_TARGET.
Fixes PR libgcj/6068.

From-SVN: r52038

22 years agoFor PR libgcj/5303:
Tom Tromey [Mon, 8 Apr 2002 18:32:23 +0000 (18:32 +0000)]
For PR libgcj/5303:

* .cvsignore: Added rmic.1 and rmiregistry.1.
* gcj.texi (Top): Link to new nodes.
(Invoking rmic): New node.
(Invoking rmiregistry): Likewise.
* Make-lang.in (java.generated-manpages): Added rmic.1 and
rmiregistry.1.
(java.maintainer-clean): Likewise.
($(srcdir)/java/rmic.1): New target.
($(srcdir)/java/rmiregistry.1): Likewise.
(java.install-man): Handle rmic.1 and rmiregistry.1.

From-SVN: r52035

22 years agore PR target/6082 (memory model wrong for FreeBSD/sparc64)
David S. Miller [Mon, 8 Apr 2002 17:20:48 +0000 (10:20 -0700)]
re PR target/6082 (memory model wrong for FreeBSD/sparc64)

2002-04-08  David S. Miller  <davem@redhat.com>

PR target/6082
* config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW

Make init_priority work on Sparc when using GNU ld.
* config/sparc/linux.h, config/sparc/linux64.h,
config/sparc/netbsd-elf.h, config/sparc/freebsd.h
(CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
* config/sparc/sol2-gld.h: New file to do the same.
* config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
sparc/sol2-gld.h to tm_file.

PR optimization/4328
* config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
* doc/md.texi: Document it.
* config/sparc/sparc.md (movdi_insn_sp64_novis,
movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
movdf_insn_v9only_vis, movdf_insn_sp64_novis,
movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
* config/sparc/sparc.c (mem_min_alignment): Fix comment.

From-SVN: r52031

22 years agoRevert last patch from Richard Henderson.
Andreas Jaeger [Mon, 8 Apr 2002 17:09:50 +0000 (19:09 +0200)]
Revert last patch from Richard Henderson.

From-SVN: r52029

22 years agore PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes infinite...
Alberto Biancardi [Mon, 8 Apr 2002 14:43:35 +0000 (16:43 +0200)]
re PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes infinite recursion)

2002-04-08  Alberto Biancardi  <alberto.biancardi@unipv.it>

Fix for PR libgcj/6187:
* java/awt/geom/Point2D.java (distance): Call distanceSq, not
distance.

From-SVN: r52027

22 years agoparse.y (namespace_qualifier, [...]): Add ending ';', in accordance with POSIX.
Paolo Carlini [Mon, 8 Apr 2002 12:29:38 +0000 (14:29 +0200)]
parse.y (namespace_qualifier, [...]): Add ending ';', in accordance with POSIX.

2002-04-08  Paolo Carlini  <pcarlini@unitus.it>

* parse.y (namespace_qualifier, maybe_identifier,
begin_explicit_instantiation, end_explicit_instantiation,
apparent_template_type, .finish_template_type,
do_id, maybe_init, defarg_again, component_decl_1):
Add ending ';', in accordance with POSIX.

From-SVN: r52026

22 years agocontrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the latter...
Gerald Pfeifer [Mon, 8 Apr 2002 12:07:37 +0000 (14:07 +0200)]
contrib.texi (Contributors): Add John David Anglin and Loren J. Rittle (the latter also to Testers).

* doc/contrib.texi (Contributors): Add John David Anglin and Loren
J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
* doc/contrib.texi (Contributors): Add David O'Brien.

From-SVN: r52024

22 years agogcj.texi (Invocation): Update JvAttachCurrentThread documentation.
Bryce McKinlay [Mon, 8 Apr 2002 12:03:02 +0000 (12:03 +0000)]
gcj.texi (Invocation): Update JvAttachCurrentThread documentation.

* gcj.texi (Invocation): Update JvAttachCurrentThread documentation.
Add note about handling uncaught exceptions. Add an exception handler
to example.

From-SVN: r52022

22 years agoOops, commit right file.
Alan Modra [Mon, 8 Apr 2002 08:54:50 +0000 (18:24 +0930)]
Oops, commit right file.

From-SVN: r52021

22 years agoconfigure.in (auto-build.h): Use target_alias and build_alias when running configure.
Alan Modra [Mon, 8 Apr 2002 08:53:48 +0000 (08:53 +0000)]
configure.in (auto-build.h): Use target_alias and build_alias when running configure.

* configure.in (auto-build.h): Use target_alias and build_alias
when running configure.
(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
* configure: Regenerate.

From-SVN: r52020

22 years agoDaily bump.
GCC Administrator [Mon, 8 Apr 2002 07:17:01 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r52019

22 years agoparse.y (resolve_qualified_expression_name): Clear "from_super" flag after using...
Bryce McKinlay [Mon, 8 Apr 2002 06:41:36 +0000 (06:41 +0000)]
parse.y (resolve_qualified_expression_name): Clear "from_super" flag after using it to patch CALL_EXPR.

* parse.y (resolve_qualified_expression_name): Clear "from_super" flag
after using it to patch CALL_EXPR.

From-SVN: r52015

22 years ago* gcj.texi (Invocation): Document CNI invocation API.
Bryce McKinlay [Mon, 8 Apr 2002 06:37:26 +0000 (06:37 +0000)]
* gcj.texi (Invocation): Document CNI invocation API.

From-SVN: r52012

22 years agoconfig.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
David S. Miller [Mon, 8 Apr 2002 00:30:07 +0000 (17:30 -0700)]
config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.

2002-04-07  David S. Miller  <davem@redhat.com>

* config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.

From-SVN: r52011

22 years agoAbstractMap.java (putAll): Use entrySet size.
Mark Wielaard [Mon, 8 Apr 2002 00:23:28 +0000 (00:23 +0000)]
AbstractMap.java (putAll): Use entrySet size.

* java/util/AbstractMap.java (putAll): Use entrySet size.
(toString): Explicitly use getKey() and getValue().

From-SVN: r52008

22 years agoxfails: Add CASE_INSENSITIVE_ORDER...
Mark Wielaard [Sun, 7 Apr 2002 22:33:09 +0000 (22:33 +0000)]
xfails: Add CASE_INSENSITIVE_ORDER...

    * libjava.mauve/xfails: Add CASE_INSENSITIVE_ORDER, result was
    unspecified and test should be updated to match latest spec.
    Add AcuniaPropertiesTest, known bug #6219. Add test_getClassLoader,
    what we do seems to be not really right or wrong.

From-SVN: r52006

22 years agore PR c++/5933 (HP-UX: broken MI of virtual classes)
John David Anglin [Sun, 7 Apr 2002 21:29:01 +0000 (21:29 +0000)]
re PR c++/5933 (HP-UX: broken MI of virtual classes)

PR 5933
* pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
generating 32-bit pic code.

From-SVN: r52004

22 years agore PR rtl-optimization/6086 (Reload misoptimizes DImode PREINC on PPC)
Franz Sirl [Sun, 7 Apr 2002 18:23:19 +0000 (18:23 +0000)]
re PR rtl-optimization/6086 (Reload misoptimizes DImode PREINC on PPC)

2002-04-07  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR optimization/6086
* g++.dg/opt/preinc1.C: New test.

From-SVN: r52001

22 years agoHashtable.java (contains): Remove NullPointer check.
Mark Wielaard [Sun, 7 Apr 2002 12:18:58 +0000 (12:18 +0000)]
Hashtable.java (contains): Remove NullPointer check.

        * java/util/Hashtable.java (contains): Remove NullPointer check.
        (containsValue): Add NullPointer check.
        (remove): Always throw NullPointerException when key is null.

From-SVN: r51994

22 years agotypo
Bryce McKinlay [Sun, 7 Apr 2002 11:30:35 +0000 (12:30 +0100)]
typo

From-SVN: r51991

22 years agonatSystem.cc (init_properties): Call new function _Jv_platform_initProperties.
Adam King [Sun, 7 Apr 2002 11:27:00 +0000 (11:27 +0000)]
natSystem.cc (init_properties): Call new function _Jv_platform_initProperties.

2002-04-07  Adam King <aking@dreammechanics.com>

* java/lang/natSystem.cc (init_properties): Call new function
_Jv_platform_initProperties.
* win32 (_Jv_platform_initProperties): New function that adds Win32
support for the System properties os.name, os.arch, os.version,
user.name, user.home, and user.dir.
* include/posix.h, include/win32.h, posix.cc: New function
_Jv_platform_initProperties.

From-SVN: r51989

22 years agomauve.exp: Use libgcj.jar not libgcj.zip.
Mark Wielaard [Sun, 7 Apr 2002 09:21:27 +0000 (09:21 +0000)]
mauve.exp: Use libgcj.jar not libgcj.zip.

* libjava.mauve/mauve.exp: Use libgcj.jar not libgcj.zip.
* libjava.mauve/xfails: add Character.classify12 (number 1),
Character.getType (number 11), Character.getType (number 20) and
Character.getType (number 22). We implement 1.4 Character.

From-SVN: r51987

22 years agoDaily bump.
GCC Administrator [Sun, 7 Apr 2002 08:16:51 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r51986

22 years ago* java/lang/Character,java (isDefined): getType() != UNASSIGNED.
Mark Wielaard [Sun, 7 Apr 2002 07:45:06 +0000 (07:45 +0000)]
* java/lang/Character,java (isDefined): getType() != UNASSIGNED.

From-SVN: r51982

22 years agoArrayList.java (addAll(int,Collection)): System.arraycopy all of the remaining elements.
Mark Wielaard [Sun, 7 Apr 2002 07:40:49 +0000 (07:40 +0000)]
ArrayList.java (addAll(int,Collection)): System.arraycopy all of the remaining elements.

        * java/util/ArrayList.java (addAll(int,Collection)): System.arraycopy
        all of the remaining elements.
        * java/util/Vector.java (addAll(int,Collection)): Likewise.
        (removeRange): If toIndex == fromIndex do
        nothing, if toIndex < fromIndex throw IndexOutIfBoundsException.
        (removeAll): Always throw NullPointerException when collection is
        null.
        (retrainAll): Likewise.

From-SVN: r51979

22 years agore PR c++/5571 (crash in initialization of a static variable)
Mark Mitchell [Sun, 7 Apr 2002 06:09:27 +0000 (06:09 +0000)]
re PR c++/5571 (crash in initialization of a static variable)

PR c++/5571
* stor-layout.c (layout_decl): Reset the RTL for the decl.

* class.c (layout_class_type): Remember incomplete static
variables.
(finish_struct_1): Call complete_vars, not
hack_incomplete_structures.
* cp-tree.h (hack_incomplete_structures): Rename to ...
(complete_vars): ... this.
(struct saved_scope): Remove incomplete.
(namespace_scope_incomplete): Remove.
* decl.c (struct binding_level): Remove incomplete.
(incomplete_vars): New variable.
(mark_binding_level): Don't mark incomplete.
(print_binding_level): Don't print it.
(mark_saved_scope): Don't mark incomplete.
(pushdecl): Use maybe_register_incopmlete_var.
(cxx_init_decl_processing): Register incomplete_vars for GC.
(start_decl_1): Clarify error message.
(hack_incomplete_vars): Remove.
(maybe_register_incomplete_var): New function.
(complete_vars): Likewise.

* g++.dg/opt/static2.C: New test.

From-SVN: r51978

22 years agoconfigure.in (alpha*-*-netbsd*): Add target.
Jason Thorpe [Sun, 7 Apr 2002 04:19:31 +0000 (04:19 +0000)]
configure.in (alpha*-*-netbsd*): Add target.

* configure.in (alpha*-*-netbsd*): Add target.
* configure: Regenerate.

From-SVN: r51976

22 years agocppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp.
Jason Thorpe [Sun, 7 Apr 2002 03:12:23 +0000 (03:12 +0000)]
cppinit.c (cpp_create_reader): Initialize discard_comments_in_macro_exp.

* cppinit.c (cpp_create_reader): Initialize
discard_comments_in_macro_exp.
(COMMAND_LINE_OPTIONS): Add "-CC" option.
(cpp_handle_option): Handle "-CC" option.
* cpplex.c (save_comment): If saving a C++ comment in
a directive, convert it to a C comment.
(_cpp_lex_direct): Pass second comment start character to
save_comment to indicate comment type.
* cpplib.c (_cpp_handle_directive): If processing
a "#define" directive and discard_comments_in_macro_exp
is false,  re-enable saving of comments.
(lex_macro_node): If discard_comments_in_macro_exp is false,
discard any comments before the macro identifier.
* cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
member.
* cppmacro.c (cpp_get_token): If expanding a macro while
processing a directive, discard any comments we might encounter.
(parse_params): If discard_comments_in_macro_exp is false,
ignore comments in the macro parameter list.
* gcc.c (cpp_unique_options): Add "-CC" option.
(option_map): Map "--comments-in-macros" to "-CC".
* doc/cppopts.texi: Document "-CC" option.
* f/lang-specs.h: Add "-CC" option.
* testsuite/gcc.dg/cpp/maccom1.c: New test.
* testsuite/gcc.dg/cpp/maccom2.c: New test.
* testsuite/gcc.dg/cpp/maccom3.c: New test.
* testsuite/gcc.dg/cpp/maccom4.c: New test.
* testsuite/gcc.dg/cpp/maccom5.c: New test.
* testsuite/gcc.dg/cpp/maccom6.c: New test.

From-SVN: r51975

22 years agore PR c++/4934 (Seg fault on legal code)
Jason Merrill [Sat, 6 Apr 2002 22:22:00 +0000 (17:22 -0500)]
re PR c++/4934 (Seg fault on legal code)

        PR c++/4934
        * error.c (dump_expr) [CONVERT_EXPR]: Make sure TREE_TYPE (t) is
        set before checking it.

From-SVN: r51972

22 years ago* reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
John David Anglin [Sat, 6 Apr 2002 22:10:54 +0000 (22:10 +0000)]
* reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.

From-SVN: r51971

22 years agore PR rtl-optimization/5120 (tail recursion incorrect using -O2)
Mark Mitchell [Sat, 6 Apr 2002 19:42:22 +0000 (19:42 +0000)]
re PR rtl-optimization/5120 (tail recursion incorrect using -O2)

PR opt/5120
* sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
RTX_UNCHANGING_P for the functions arguments when a tail call
is made.

From-SVN: r51969

22 years agotoplev.c (flag_no_inline, [...]): Default to 2.
Jason Merrill [Sat, 6 Apr 2002 16:57:23 +0000 (11:57 -0500)]
toplev.c (flag_no_inline, [...]): Default to 2.

        * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
        (parse_options_and_default_flags): Set them appropriately.
        * c-common.c (c_common_post_options): Don't set flag_really_no_inline.

From-SVN: r51959

22 years agore PR c++/525 (Problem with Multiple Inheritance and -pedantic)
Jason Merrill [Sat, 6 Apr 2002 16:15:20 +0000 (11:15 -0500)]
re PR c++/525 (Problem with Multiple Inheritance and -pedantic)

        PR c++/525
        * init.c (build_member_call): Use build_scoped_ref.
        (resolve_offset_ref): Likewise.
        * call.c (build_scoped_method_call): Likewise.
        * tree.c (maybe_dummy_object): Kludge around current_class_type being
        wrong.
        * typeck2.c (build_scoped_ref): Return the binfo via binfo_p parm.
        * cp-tree.h: Adjust.

        * init.c (push_base_cleanups): Just use build_scoped_method_call.

From-SVN: r51956

22 years agore PR c++/6179 (EH regression test failure for STLport-4.5.3)
Jason Merrill [Sat, 6 Apr 2002 15:59:14 +0000 (10:59 -0500)]
re PR c++/6179 (EH regression test failure for STLport-4.5.3)

        PR c++/6179
        * method.c (implicitly_declare_fn): Pass unqualified type to
        synthesize_exception_spec.

From-SVN: r51954

22 years agoArrayList.jva (removeRange): If toIndex == fromIndex do nothing...
Mark Wielaard [Sat, 6 Apr 2002 08:26:08 +0000 (08:26 +0000)]
ArrayList.jva (removeRange): If toIndex == fromIndex do nothing...

        * java/util/ArrayList.jva (removeRange): If toIndex == fromIndex do
        nothing, if toIndex < fromIndex throw IndexOutIfBoundsException.

From-SVN: r51947

22 years agot-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
Hans-Peter Nilsson [Sat, 6 Apr 2002 08:20:35 +0000 (08:20 +0000)]
t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.

* config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
here.

* config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
semicolon.

* config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
types come in by-reference.  Fix typo in comment.

From-SVN: r51946

22 years agoDaily bump.
GCC Administrator [Sat, 6 Apr 2002 08:17:39 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r51945

22 years agofreebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
David S. Miller [Sat, 6 Apr 2002 04:55:28 +0000 (20:55 -0800)]
freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.

2002-04-05  David S. Miller  <davem@redhat.com>

* config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
* config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
{sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.

From-SVN: r51940

22 years agoexception.cc (abort): added static modifier
Adam Megacz [Sat, 6 Apr 2002 04:20:02 +0000 (04:20 +0000)]
exception.cc (abort): added static modifier

2002-04-05  Adam Megacz <adam@xwt.org>

        * exception.cc (abort): added static modifier

From-SVN: r51938

22 years agoexception.cc (abort): added static modifier
Adam Megacz [Sat, 6 Apr 2002 04:19:10 +0000 (04:19 +0000)]
exception.cc (abort): added static modifier

2002-04-05  Adam Megacz <adam@xwt.org>

    * exception.cc (abort): added static modifier

From-SVN: r51937

22 years ago* doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
Richard Henderson [Sat, 6 Apr 2002 01:14:42 +0000 (17:14 -0800)]
* doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).

From-SVN: r51936

22 years agostl_algo.h (unique_copy, [...]): Doxygenate.
Jonathan Wakely [Fri, 5 Apr 2002 17:58:41 +0000 (17:58 +0000)]
stl_algo.h (unique_copy, [...]): Doxygenate.

2002-04-05  Jonathan Wakely <jw@kayari.org>

* include/bits/stl_algo.h (unique_copy, __gcd, rotate, rotate_copy,
random_shuffle, partition, stable_partition, sort, stable_sort,
partial_sort, partial_sort_copy, nth_element):  Doxygenate.

From-SVN: r51927

22 years ago2002-04-05 David S. Miller <davem@redhat.com>
David S. Miller [Fri, 5 Apr 2002 13:46:50 +0000 (05:46 -0800)]
2002-04-05  David S. Miller  <davem@redhat.com>

* config/os/gnu-linux/bits/os_defines.h
(__glibcpp_long_double_bits): Set to 64 on 32-bit Sparc.

From-SVN: r51921

22 years ago* mklibgcc.in: Use $tmpmapfile, not tmp-$@.
Jakub Jelinek [Fri, 5 Apr 2002 11:43:40 +0000 (13:43 +0200)]
* mklibgcc.in: Use $tmpmapfile, not tmp-$@.

From-SVN: r51918

22 years agomips.h (ISA_HAS_BRANCHLIKELY, [...]): Disable if TARGET_MIPS16.
Alexandre Oliva [Fri, 5 Apr 2002 09:26:38 +0000 (09:26 +0000)]
mips.h (ISA_HAS_BRANCHLIKELY, [...]): Disable if TARGET_MIPS16.

* config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.

From-SVN: r51917

22 years agoFix last change: c-common.h instead of c-convert.h.
Andreas Schwab [Fri, 5 Apr 2002 09:06:04 +0000 (09:06 +0000)]
Fix last change: c-common.h instead of c-convert.h.

From-SVN: r51916

22 years agoc-convert.c: Include c-convert.h.
Andreas Schwab [Fri, 5 Apr 2002 08:52:58 +0000 (08:52 +0000)]
c-convert.c: Include c-convert.h.

* c-convert.c: Include c-convert.h.
* Makefile.in (c-convert.o): Updated.

From-SVN: r51915

22 years agomklibgcc.in: Use separate libgcc.map for each multilib.
Jakub Jelinek [Fri, 5 Apr 2002 08:23:36 +0000 (10:23 +0200)]
mklibgcc.in: Use separate libgcc.map for each multilib.

* mklibgcc.in: Use separate libgcc.map for each multilib.
* Makefile.in (distclean): Don't remove libgcc.map here.

From-SVN: r51914

22 years agoMakefile.in (s-mlib): Handle --disable-multilib by separate genmultilib invocation.
Jakub Jelinek [Fri, 5 Apr 2002 08:20:02 +0000 (10:20 +0200)]
Makefile.in (s-mlib): Handle --disable-multilib by separate genmultilib invocation.

* Makefile.in (s-mlib): Handle --disable-multilib by separate
genmultilib invocation.

From-SVN: r51912

22 years agoDaily bump.
GCC Administrator [Fri, 5 Apr 2002 08:17:03 +0000 (08:17 +0000)]
Daily bump.

From-SVN: r51910

22 years agomips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs to avoid clash with Irix header...
Richard Sandiford [Fri, 5 Apr 2002 08:00:32 +0000 (08:00 +0000)]
mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs to avoid clash with Irix header file sys/ucontext.h.

* config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
to num_gprs for symmetry.
* config/mips/mips.c: Adjust accordingly.

From-SVN: r51906

22 years ago* ChangeLog: Forgotten commit.
Neil Booth [Fri, 5 Apr 2002 06:17:16 +0000 (06:17 +0000)]
* ChangeLog: Forgotten commit.

From-SVN: r51903

22 years agot-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o Add rules to make null object file.
Alan Modra [Fri, 5 Apr 2002 04:42:17 +0000 (04:42 +0000)]
t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o Add rules to make null object file.

* config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
Add rules to make null object file.

From-SVN: r51901

22 years agowin32.h (_Jv_platform_close_on_exec): added inline modifier.
Adam Megacz [Fri, 5 Apr 2002 04:22:28 +0000 (04:22 +0000)]
win32.h (_Jv_platform_close_on_exec): added inline modifier.

2002-04-04  Adam Megacz <adam@xwt.org>

    * include/win32.h (_Jv_platform_close_on_exec): added inline
    modifier.

From-SVN: r51899

22 years agoFix cut-n-paste typo.
Loren J. Rittle [Fri, 5 Apr 2002 04:18:25 +0000 (04:18 +0000)]
Fix cut-n-paste typo.

From-SVN: r51897

22 years agoconfigure.host: Add case statement to support generic port properties.
Loren J. Rittle [Fri, 5 Apr 2002 04:17:11 +0000 (04:17 +0000)]
configure.host: Add case statement to support generic port properties.

* configure.host: Add case statement to support generic port
properties.  Add *-*-freebsd* section.

From-SVN: r51896

22 years agomauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode test.
Mark Wielaard [Fri, 5 Apr 2002 00:47:34 +0000 (00:47 +0000)]
mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode test.

        * mauve-libgcj: Add JLS1.0 and JLS1.1 tags, ignore Character.unicode
        test.
        * testsuite/libjava.mauve/xfails: Remove working tests DoubleTest,
        FloatTest and ObjectStreamClass. Add FAIL for Introspector.jdk11 tests
        that depend on awt code and BufferedByteOutputStream.interrupt.

From-SVN: r51893

22 years agocppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal parameter...
Jim Blandy [Fri, 5 Apr 2002 00:12:40 +0000 (00:12 +0000)]
cppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal parameter names.

* cppmacro.c (cpp_macro_definition): Do not emit spaces after
macro formal parameter names.

From-SVN: r51890

22 years ago20020404-1.c: New test.
David S. Miller [Thu, 4 Apr 2002 23:54:01 +0000 (15:54 -0800)]
20020404-1.c: New test.

2002-04-04  David S. Miller  <davem@redhat.com>

* gcc.c-torture/execute/20020404-1.c: New test.

From-SVN: r51889

22 years agocalls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
David S. Miller [Thu, 4 Apr 2002 23:30:18 +0000 (15:30 -0800)]
calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.

2002-04-04  David S. Miller  <davem@redhat.com>

* calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.

From-SVN: r51886

22 years agore PR inline-asm/5099 (m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));)
Richard Henderson [Thu, 4 Apr 2002 23:13:36 +0000 (15:13 -0800)]
re PR inline-asm/5099 (m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));)

        PR middle-end/5099
        * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
        Support copies into and out of memory.  Don't accept allows_reg
        and allows_mem as gospel.

From-SVN: r51884

22 years agore PR rtl-optimization/6165 ([i686] stack frame freed too early)
Richard Henderson [Thu, 4 Apr 2002 22:48:16 +0000 (14:48 -0800)]
re PR rtl-optimization/6165 ([i686] stack frame freed too early)

        PR opt/6165
        * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
        (write_dependence_p): Likewise.

From-SVN: r51882

22 years agoc-common.c (truthvalue_conversion): Rename, update.
Neil Booth [Thu, 4 Apr 2002 22:19:58 +0000 (22:19 +0000)]
c-common.c (truthvalue_conversion): Rename, update.

* c-common.c (truthvalue_conversion): Rename, update.
* c-common.h (c_common_truthvalue_conversion): New.
* c-convert.c (convert): Update.
* c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
* c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
* c-typeck.c (build_binary_op, build_unary_op,
build_conditional_expr): Update.
* fold-const.c (constant_boolean_node, fold): Use langhook.
* langhooks-def.h (LANGHOOK_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): New hook.
* stmt.c (expand_decl_cleanup): Use langhook.
* tree.h (truthvalue_conversion): Remove.
ada:
* gigi.h (truthvalue_conversion): Rename.
* misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
* trans.c (tree_transform): Update.
* utils2.c (truthvalue_conversion): Rename, update.
(build_binary_op, build_unary_op): Update.
cp:
* cp-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
* cvt.c: Update comment.
* init.c (expand_cleanup_for_base): Update.
* semantics.c (finish_parenthesized_expr): Update.
* typeck.c (cp_truthvalue_conversion): Update.
f:
* com.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
(truthvalue_conversion): Rename.  Update.  Make static.
(ffecom_truth_value): Update.
java:
* expr.c (truthvalue_conversion): Rename.  Update.
(expand_compare): Update.
* java-tree.h (java_truthvalue_conversion): New.
* lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
objc:
* objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.

From-SVN: r51880

22 years agopredict.c (estimate_bb_frequencies): Do frequency calculation with a volatile temporary.
Richard Henderson [Thu, 4 Apr 2002 21:38:40 +0000 (13:38 -0800)]
predict.c (estimate_bb_frequencies): Do frequency calculation with a volatile temporary.

        * predict.c (estimate_bb_frequencies): Do frequency calculation
        with a volatile temporary.

From-SVN: r51879

22 years agovia gawrilow@math.tu-berlin.de
Benjamin Kosnik [Thu, 4 Apr 2002 21:33:33 +0000 (21:33 +0000)]
via gawrilow@math.tu-berlin.de

2002-04-04  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/3457
via gawrilow@math.tu-berlin.de
* acinclude.m4 (version_specific_libs): Fix combo usage with
--with-gxx-include-dir.
* aclocal.m4: Regenerate.
* configure: Same.

From-SVN: r51875

22 years ago* config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
Ulrich Weigand [Thu, 4 Apr 2002 21:33:25 +0000 (21:33 +0000)]
* config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.

From-SVN: r51874

22 years agov8.S: Add unwind info.
Jeff Sturm [Thu, 4 Apr 2002 21:19:13 +0000 (21:19 +0000)]
v8.S: Add unwind info.

* src/sparc/v8.S: Add unwind info.
* src/sparc/v9.S: Likewise.

From-SVN: r51873

22 years agore PR c++/6119 (sparc-sun-solaris2.7 gcc-3.1 extra g++ testsuite failure w/-fpic...
Jakub Jelinek [Thu, 4 Apr 2002 21:04:09 +0000 (23:04 +0200)]
re PR c++/6119 (sparc-sun-solaris2.7 gcc-3.1 extra g++ testsuite failure w/-fpic|-fPIC)

PR c++/6119
* final.c (final_start_function): Don't bump profile_label_no here...
(final_end_function): ...but here.

From-SVN: r51872

22 years agosparc.md (pic): New attribute.
Jakub Jelinek [Thu, 4 Apr 2002 20:57:53 +0000 (22:57 +0200)]
sparc.md (pic): New attribute.

* config/sparc/sparc.md (pic): New attribute.
(do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
into stack slots.
(split after do_builtin_setjmp_setup): New.

From-SVN: r51870

22 years agogcconfig.h: Add support for an unmapped memory hole between the end of the initialize...
Loren J. Rittle [Thu, 4 Apr 2002 20:49:38 +0000 (20:49 +0000)]
gcconfig.h: Add support for an unmapped memory hole between the end of the initialized data...

* include/private/gcconfig.h: Add support for an unmapped
memory hole between the end of the initialized data segment
and the start of the BSS on FreeBSD/i386.

From-SVN: r51867

22 years agomake.adb: Implement -margs, remove restriction about file name placement.
Laurent Guerby [Thu, 4 Apr 2002 20:19:36 +0000 (20:19 +0000)]
make.adb: Implement -margs, remove restriction about file name placement.

2002-04-04  Laurent Guerby  <guerby@acm.org>

* make.adb: Implement -margs, remove restriction about file name placement.
* makeusg.adb: Documentation update.
* Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
* Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.

From-SVN: r51866

22 years agore PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified)
Jakub Jelinek [Thu, 4 Apr 2002 12:47:41 +0000 (14:47 +0200)]
re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified)

PR c/6123
* gcc.dg/20020312-2.c: Do not declare global register variable
if __PIC__ or __pic__ is defined.

From-SVN: r51859

22 years agore PR fortran/6106 (sparc-sun-solaris2.7 gcc-3.1 extra g77 testsuite failures w/...
Jakub Jelinek [Thu, 4 Apr 2002 12:27:27 +0000 (14:27 +0200)]
re PR fortran/6106 (sparc-sun-solaris2.7 gcc-3.1 extra g77 testsuite failures w/-m64)

PR fortran/6106
* config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
change.

From-SVN: r51857

22 years agoArrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count...
Bryce McKinlay [Thu, 4 Apr 2002 11:58:38 +0000 (11:58 +0000)]
Arrays.java (qsort): Fix off-by-one errors and use of incorrect "hi" value when count > 40.

* java/util/Arrays.java (qsort): Fix off-by-one errors and use of
incorrect "hi" value when count > 40.

From-SVN: r51854

22 years agosparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized aggregates.
Jakub Jelinek [Thu, 4 Apr 2002 11:37:32 +0000 (13:37 +0200)]
sparc.c (sparc_va_arg): Adjust va_list by UNITS_PER_WORD for zero sized aggregates.

* config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
UNITS_PER_WORD for zero sized aggregates.

From-SVN: r51853

22 years agoarm-asm.c: Run this test on ARM chips, not SPARC.
Richard Earnshaw [Thu, 4 Apr 2002 09:35:01 +0000 (09:35 +0000)]
arm-asm.c: Run this test on ARM chips, not SPARC.

* gcc.dg/arm-asm.c: Run this test on ARM chips, not SPARC.  Use
__asm__ so that it works correctly even if -ansi -pedantic-errors.

From-SVN: r51851

22 years agoModifier.java (toString(int,StringBuffer)): Fix ordering.
Mark Wielaard [Thu, 4 Apr 2002 08:32:28 +0000 (08:32 +0000)]
Modifier.java (toString(int,StringBuffer)): Fix ordering.

        * java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
        ordering.

From-SVN: r51848

22 years agoDaily bump.
GCC Administrator [Thu, 4 Apr 2002 08:18:08 +0000 (08:18 +0000)]
Daily bump.

From-SVN: r51847

22 years agoutils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
Neil Booth [Thu, 4 Apr 2002 07:48:44 +0000 (09:48 +0200)]
utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.

2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>

* utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
(builtin_function): Similarly.

From-SVN: r51843

22 years agogcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new one-character spec for this,...
David S. Miller [Thu, 4 Apr 2002 07:21:00 +0000 (23:21 -0800)]
gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new one-character spec for this, just use %(link_gcc_c_sequence).

2002-04-03  David S. Miller  <davem@redhat.com>

* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
one-character spec for this, just use %(link_gcc_c_sequence).

From-SVN: r51842

22 years agocrtfastmath.c (FPRS_NS): Delete bogus little-endian handling.
David S. Miller [Thu, 4 Apr 2002 07:13:38 +0000 (23:13 -0800)]
crtfastmath.c (FPRS_NS): Delete bogus little-endian handling.

2002-04-03  David S. Miller  <davem@redhat.com>

* config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
handling.

From-SVN: r51840

22 years agoAs per DR 184, libstdc++/3139
Benjamin Kosnik [Thu, 4 Apr 2002 05:32:59 +0000 (05:32 +0000)]
As per DR 184, libstdc++/3139

2002-04-03  Benjamin Kosnik  <bkoz@redhat.com>

        As per DR 184, libstdc++/3139
        * include/std/std_limits.h (__glibcpp_bool_digits): Change to 1.
        (numeric_limits<bool>::is_iec559): False.
        (numeric_limits<bool>::is_modulo): False.

* testsuite/27_io/ios_init.cc: Add instantiations.

From-SVN: r51838

22 years agopa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
John David Anglin [Thu, 4 Apr 2002 02:48:18 +0000 (02:48 +0000)]
pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.

* pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
(DWARF_FRAME_RETURN_COLUMN): Move.
(ASM_PREFERRED_EH_DATA_FORMAT): Define.
(ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
* pa.c (except.h, predict.h): Include.
(FRP): Delete.
(store_reg_modify, set_reg_plus_d): Revise prototypes.
(output_ascii): Add cast.
(store_reg_modify): Revise to add frame notes.
(set_reg_plus_d): Likewise.
(compute_frame_size): Include space for eh data registers in frame if
the current function calls eh_return.
(hppa_expand_prologue):  Ensure register %r2 is saved if the current
function calls eh_return.  Save eh data registers if the current
function calls eh_return.  Fix code to add frame notes.  Emit
blockage to prevent insns with frame notes being scheduled in the
delay slot of calls.
(hppa_expand_epilogue): Restore eh data registers and do final stack
adjustment if the current function calls eh_return.  Don't add frame
notes.
(output_call): Revise for change in length of call insn.  Don't do
return pointer adjustment for an unconditional jump in the delay slot
of a call when using frame notes.
* pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
(EH_RETURN_HANDLER_RTX): Use saved value on stack.
(ARG_POINTER_CFA_OFFSET): Define.
* pa.md (return_external_pic): New pattern.
(prologue): Correct formatting.  Use return_external_pic if current
function calls eh_return.
(call_internal_symref, call_value_internal_symref,
sibcall_internal_symref, sibcall_value_internal_symref): Change default
lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
respectively.
(exception_receiver): Use hppa_pic_save_rtx () to restore pic register.

* configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
list of targets to check using "nop" insn.
* configure: Rebuilt.

From-SVN: r51836

22 years ago* config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
Alan Modra [Thu, 4 Apr 2002 02:38:46 +0000 (02:38 +0000)]
* config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.

From-SVN: r51835

22 years agogcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence...
David S. Miller [Thu, 4 Apr 2002 01:15:40 +0000 (17:15 -0800)]
gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c library sequence passed to the linker.

2002-04-03  David S. Miller  <davem@redhat.com>

* gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
library sequence passed to the linker.
(LINK_COMMAND_SPEC): Use it.
* doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
* config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.

From-SVN: r51834

22 years agore PR c++/5118 (c4x-g++ Fails on Templates)
Jason Merrill [Thu, 4 Apr 2002 00:39:22 +0000 (19:39 -0500)]
re PR c++/5118 (c4x-g++ Fails on Templates)

        PR c++/5118
        * class.c (get_vfield_name): Use the constructor_name.

From-SVN: r51830

22 years agolinkage.exp: Update last change to handle sparc*-, not just sparc-.
Kaveh R. Ghazi [Thu, 4 Apr 2002 00:18:02 +0000 (00:18 +0000)]
linkage.exp: Update last change to handle sparc*-, not just sparc-.

* gcc.misc-tests/linkage.exp: Update last change to handle
sparc*-, not just sparc-.

From-SVN: r51828

22 years agore PR c++/5636 (gcc-3.0.3, memory leakage: function that take a string as parameter...
Jason Merrill [Thu, 4 Apr 2002 00:11:00 +0000 (19:11 -0500)]
re PR c++/5636 (gcc-3.0.3, memory leakage: function that take a string as parameter will not call local variable destructors if exception is thrown.)

        PR c++/5636
        * tree.h (CLEANUP_EH_ONLY): New macro.
        * stmt.c (expand_decl_cleanup_eh): New fn.
        (expand_cleanups): Check CLEANUP_EH_ONLY.
        * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
        Use expand_decl_cleanup_eh.
        (expand_stmt): Adjust.
        * c-common.h: Adjust prototype.
        * cp/semantics.c (nullify_returns_r): Just set CLEANUP_EH_ONLY on
        cleanup for nrv.

        * except.c (struct eh_status): Remove protect_list.
        (begin_protect_partials, end_protect_partials): Remove.
        (add_partial_entry): Remove.
        * except.h: Remove prototypes.

        * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
        expand_decl_cleanup_eh.

cp/:
        * semantics.c (finish_eh_cleanup): New fn.
        * cp-tree.h: Add prototype.
        * init.c (perform_member_init, expand_cleanup_for_base): Use
        finish_eh_cleanup.
        * cp-tree.def (SUBOBJECT, CTOR_STMT): Remove.
        * cp-tree.h: Remove references.
        * decl.c (begin_constructor_body, end_constructor_body): Likewise.
        * dump.c (cp_dump_tree): Likewise.
        * pt.c (tsubst_expr): Likewise.
        * semantics.c (genrtl_ctor_stmt, genrtl_subobject): Remove.
        (cp_expand_stmt): Remove handling of CTOR_STMT and SUBOBJECT.
        * tree.c (cp_statement_code_p): Likewise.

        * init.c (build_new_1): Set CLEANUP_EH_ONLY on deleting cleanup.

From-SVN: r51827

22 years agocris.c (cris_target_asm_function_prologue): Cast uses of PIC_OFFSET_TABLE_REGNUM...
Hans-Peter Nilsson [Wed, 3 Apr 2002 23:55:22 +0000 (23:55 +0000)]
cris.c (cris_target_asm_function_prologue): Cast uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.

* config/cris/cris.c (cris_target_asm_function_prologue): Cast
uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
(cris_target_asm_function_epilogue): Ditto.
(cris_initial_frame_pointer_offset): Ditto.
(cris_simple_epilogue): Ditto.
(cris_expand_builtin_va_arg): Variable-size types come in
by-reference.

From-SVN: r51825

22 years agocrtfastmath.c (FPRS_NS): Get it right for little-endian.
David S. Miller [Wed, 3 Apr 2002 23:48:39 +0000 (15:48 -0800)]
crtfastmath.c (FPRS_NS): Get it right for little-endian.

2002-04-03  David S. Miller  <davem@redhat.com>

* config/sparc/crtfastmath.c (FPRS_NS): Get it right for
little-endian.
(set_fast_math): Correct 'fsr' type.

From-SVN: r51824

22 years agore PR c++/5104 (template using std::set_terminate fails due to throw() qualifier...
Jason Merrill [Wed, 3 Apr 2002 23:43:35 +0000 (18:43 -0500)]
re PR c++/5104 (template using std::set_terminate fails due to throw() qualifier in <exception>)

        PR c++/5104
        * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception
        specifiers.
        [METHOD_TYPE]: Use same code as FUNCTION_TYPE.

From-SVN: r51821

22 years agoOops, wrong pr number.
Richard Henderson [Wed, 3 Apr 2002 22:41:22 +0000 (14:41 -0800)]
Oops, wrong pr number.

From-SVN: r51820

22 years agofix comment
Jason Merrill [Wed, 3 Apr 2002 22:40:50 +0000 (17:40 -0500)]
fix comment

From-SVN: r51819

22 years agore PR rtl-optimization/4330 (Optimizer generates illegal assembly code)
Richard Henderson [Wed, 3 Apr 2002 22:39:51 +0000 (14:39 -0800)]
re PR rtl-optimization/4330 (Optimizer generates illegal assembly code)

        PR opt/4330
        * langhooks.h (lang_hooks.decls.warn_unused_global): New.
        * toplev.c (check_global_declarations): Use it.
        * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
        (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
        (LANG_HOOKS_DECLS): Add it.
        * langhooks.c (lhd_warn_unused_global_decl): New.
        * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
        * c-objc-common.c (c_warn_unused_global_decl): New.
        * c-tree.h (c_warn_unused_global_decl): Declare.
        * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.

        * cp-lang.c (cxx_warn_unused_global_decl): New.
        (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.

* g++.dg/warn/Wunused-2.C: New.
* gcc.dg/unused-4.c: New.

From-SVN: r51818