Commit Graph

42269 Commits

Author SHA1 Message Date
Benjamin Kosnik
cff5778913 linker-map.gnu (__malloc_alloc_template): Add.
2002-04-17  Benjamin Kosnik  <bkoz@redhat.com>

	* config/linker-map.gnu (__malloc_alloc_template): Add.
	(__default_alloc_template): Same.
	* include/bits/stl_alloc.h (__malloc_alloc_template): Add extern
	template.
	(__default_alloc_template): Same.

From-SVN: r52441
2002-04-17 20:08:18 +00:00
Hans Boehm
9416403264 gcconfig.h: Use LINUX_STACKBOTTOM for SPARC Linux.
* include/private/gcconfig.h: Use LINUX_STACKBOTTOM for
	SPARC Linux.

From-SVN: r52440
2002-04-17 19:54:59 +00:00
Benjamin Kosnik
cf76d875db filebuf_virtuals.cc: Add _S_pback_size instantiation.
2002-04-17  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/27_io/filebuf_virtuals.cc: Add _S_pback_size instantiation.

From-SVN: r52436
2002-04-17 17:35:00 +00:00
NIIBE Yutaka
1372d4ce83 elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>

	* config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.

From-SVN: r52435
2002-04-17 18:21:49 +01:00
Jakub Jelinek
32121b96b6 re PR c++/6316 (trap when compiling file)
PR c++/6316
	* decl2.c (finish_file): Clear DECL_EXTERNAL in a separate loop
	before expanding.

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

From-SVN: r52434
2002-04-17 19:17:55 +02:00
Mark Wielaard
03408d2b80 negzero.java: New.
* libjava.lang/negzero.java: New.
	* libjava.lang/negzero.out: New.

From-SVN: r52429
2002-04-17 16:39:47 +00:00
Mark Wielaard
1cde1d0533 jcf-write.c (generate_bytecode_insns): Only write const_0 if not negative zero.
* jcf-write.c (generate_bytecode_insns): Only write const_0 if not
	negative zero.

From-SVN: r52427
2002-04-17 16:36:47 +00:00
Nick Clifton
169ce44d8d gcc.c (read_specs): Detect and fail if an attempt is made to rename a spec string to an already...
2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>

    * gcc.c (read_specs): Detect and fail if an attempt is made to
    rename a spec string to an already existing string.

From-SVN: r52426
2002-04-17 16:26:28 +00:00
Ulrich Weigand
b30d21159d s390.c (legitimize_pic_address): Do not generate illegal address constant without CONST.
* config/s390/s390.c (legitimize_pic_address): Do not generate
illegal address constant without CONST.

From-SVN: r52425
2002-04-17 16:02:16 +00:00
Kaveh R. Ghazi
d6964c30b4 linux64.h (CC1_SPEC): Error for -m32 and -m64.
* sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
	* sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.

From-SVN: r52421
2002-04-17 14:22:17 +00:00
Ulrich Weigand
7c82a1ed2b re PR rtl-optimization/6305 (c++ gets ICE in reload_cse_simplify_operands)
PR optimization/6305
* config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
to make sure previous reloads are taken into account.  Generate
better code if one operand is an in-range immediate constant.

From-SVN: r52417
2002-04-17 12:25:31 +00:00
Andrew Haley
58db9d1a88 install.texi (Building): libgcj requires GNU make.
2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>

	* doc/install.texi (Building): libgcj requires GNU make.

From-SVN: r52414
2002-04-17 09:38:09 +00:00
Jakub Jelinek
2a7325756a re PR bootstrap/6315 (sparc64 gcc -mhard-quad-float cannot compile libstdc++-v3)
PR bootstrap/6315
	* config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
	even if hard quad and register is not floating.
	(movtf reg<-mem split): Disallow splitting if hard quad and
	register is floating.
	(movtf mem<-reg split): Likewise.
	* config/sparc/sparc.c (fp_register_operand): New predicate.
	* config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.

	* gcc.dg/20020416-1.c: New test.

From-SVN: r52412
2002-04-17 10:24:03 +02:00
Bryce McKinlay
3020a7f5a4 re PR java/6294 (private inner interface is flagged illegal)
Fix for PR java/6294:
	* parse.h (INNER_INTERFACE_MODIFIERS): Allow ACC_PRIVATE for inner
	interfaces.

From-SVN: r52411
2002-04-17 09:23:00 +01:00
GCC Administrator
8f8d72013d Daily bump.
From-SVN: r52409
2002-04-17 07:17:56 +00:00
Benjamin Kosnik
42ca0438ce concept-inst.cc (vector<locale::facet*>): Remove instantiations.
2002-04-16  Benjamin Kosnik  <bkoz@redhat.com>

	* src/concept-inst.cc (vector<locale::facet*>): Remove instantiations.
	* src/stl-inst.cc (vector::_M_insert_aux): Remove instantiation.
	(__malloc_alloc_template): Conditionalize.

	* include/bits/istream.tcc: Remove sputbackc calls.

	* testsuite/19_diagnostics/stdexceptions.cc: Fix comment.

From-SVN: r52405
2002-04-17 06:20:20 +00:00
Zack Weinberg
c0fe1b1d56 Makefile.in (PROTO_OBJS): Add cppdefault.o.
2002-04-17  Zack Weinberg  <zack@codesourcery.com>
	* Makefile.in (PROTO_OBJS): Add cppdefault.o.
	(protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
	(unprotoize.o): Ditto.  Build from protoize.c.  Define
	UNPROTOIZE on command line.
	* protoize.c: Include cppdefault.h.  Delete include_defaults.
	(in_system_include_dir): Use cpp_include_defaults (defined in
	cppdefault.o).
	* unprotoize.c: Delete file.

Approved by:  rth
              Message-ID: <20020415171022.A20025@redhat.com>

From-SVN: r52404
2002-04-17 03:23:45 +00:00
Zack Weinberg
75a65e4651 Makefile.in (PROTO_OBJS): Add cppdefault.o.
2002-04-17  Zack Weinberg  <zack@codesourcery.com>
	* Makefile.in (PROTO_OBJS): Add cppdefault.o.
	(protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
	(unprotoize.o): Ditto.  Build from protoize.c.  Define
	UNPROTOIZE on command line.
	* protoize.c: Include cppdefault.h.  Delete include_defaults.
	(in_system_include_dir): Use cpp_include_defaults (defined in
	cppdefault.o).
	* unprotoize.c: Delete file.

Approved by:  rth
              Message-ID: <20020415171022.A20025@redhat.com>

From-SVN: r52402
2002-04-17 03:15:21 +00:00
Aldy Hernandez
650f0e9713 altivec.h (vec_ld): Add array variants.
2002-04-17  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/altivec.h (vec_ld): Add array variants.
        (vec_lde): Same.
        (vec_ldl): Same.

From-SVN: r52400
2002-04-17 02:31:30 +00:00
Alan Matsuoka
71a0ab0c8c altivec.h: Define __ALTIVEC__.
2002-04-17  Alan Matsuoka  <alanm@redhat.com>
            Aldy Hernandez <aldyh@redhat.com>

        * config/rs6000/altivec.h: Define __ALTIVEC__.
        (bool): New.
        (__pixel): New.
        (pixel): New.
        (vec_cfux): New.
        (vec_vmaddfp): New.
        (vec_vsldoi): New.
        Add parentheses to all macro arguments.

Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>

From-SVN: r52398
2002-04-17 02:03:43 +00:00
Richard Henderson
ff2c46ac29 re PR c++/6320 (3.1 regression wrt 3.0: ICE in remove_eh_handler, at except.c:2696)
PR c++/6320
        * except.c (remove_eh_handler): Insert inner regions at beginning
        of sibling chain.  Refactor expressions.

	* g++.dg/eh/dead1.C: New.

From-SVN: r52397
2002-04-16 18:52:38 -07:00
Mark Mitchell
b2123dc0d8 c-common.h (STMT_EXPR_NO_SCOPE): New macro.
* c-common.h (STMT_EXPR_NO_SCOPE): New macro.
	* c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
	* tree.h (expand_start_stmt_expr): Update prototype.
	* stmt.c (expand_start_stmt_expr): Add has_scope parameter.
	* tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
	on the STMT_EXPR created for the inline function.

	* trans.c (tree_transform): Add has_scope argument to
	expand_start_stmt_expr.

	* com.c (ffecom_expr_power_integer): Add has_scope argument to
	call to expand_start_stmt_expr.

	* init.c (begin_init_stmts): Remove commented out code.
	(finish_init_stmts): Set STMT_EXPR_NO_SCOPE.
	* semantics.c (begin_gobal_stmt_expr): Adjust call to
	expand_start_stmt_expr.

From-SVN: r52395
2002-04-17 01:47:36 +00:00
Richard Henderson
f0871dfe8f sol2-bi.h (AS_SPARC64_FLAG): New.
* config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
        * config/sparc/sol2-gas-bi.h: New file.
        * config.gcc (sparc*-solaris): Add it as needed.
        * configure.in (AS_SPARC64_FLAG): Remove check.
        * config.in, configure: Regenerate.

From-SVN: r52393
2002-04-16 18:37:42 -07:00
Richard Henderson
6519603408 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
From-SVN: r52391
2002-04-16 18:34:22 -07:00
Richard Henderson
409d3c6029 mips.c (override_options): Don't override N32 for a 64-bit ISA.
* config/mips/mips.c (override_options): Don't override N32 for
        a 64-bit ISA.

From-SVN: r52389
2002-04-16 17:43:04 -07:00
Richard Henderson
f1ba94ddd2 mips.md (can_delay): Split out of existing define_delays.
* config/mips/mips.md (can_delay): Split out of existing define_delays.
        (HILO_delay): Set can_delay false.

From-SVN: r52387
2002-04-16 17:34:44 -07:00
Richard Henderson
3bb6f0700a Remove, again.
From-SVN: r52386
2002-04-16 17:32:33 -07:00
Richard Henderson
b8d70bee36 * gcc_update: Remove libchill.
From-SVN: r52385
2002-04-16 17:30:17 -07:00
David S. Miller
4780f10144 xregex2.h (__restrict_arr): Define to __restrict on GCC 3.1 and later.
2002-04-16  David S. Miller  <davem@redhat.com>

	* xregex2.h (__restrict_arr): Define to __restrict on GCC
	3.1 and later.  Do not redefine.

From-SVN: r52383
2002-04-16 17:12:54 -07:00
Mark Mitchell
c6370adf34 Remove libchill
From-SVN: r52379
2002-04-16 22:01:55 +00:00
Dale Johannesen
178c3eff52 rs6000.c (rs6000_output_function_prologue): Compute instruction addresses.
2002-04-16  Dale Johannesen <dalej@apple.com>

        * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
        instruction addresses.
        (rs6000_output_function_epilogue): Likewise.

From-SVN: r52378
2002-04-16 17:56:09 -04:00
Paolo Carlini
7d6f636993 c-parse.in (poplevel, [...]): Add ending ';', in accordance with POSIX.
2002-04-16  Paolo Carlini  <pcarlini@unitus.it>

	* c-parse.in (poplevel, compstmt_start,
	compstmt_primary_start): Add ending ';', in accordance
	with POSIX.

From-SVN: r52376
2002-04-16 18:35:13 +00:00
Richard Henderson
8947df0cbb config.gcc (sparcv9-solaris): Configure for 64-bit default.
* config.gcc (sparcv9-solaris): Configure for 64-bit default.
        Adjust tm_file order to get TARGET_DEFAULT set properly.
        (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
        * doc/install.texi (sparc-solaris): Update.

From-SVN: r52373
2002-04-16 11:05:20 -07:00
Tom Tromey
ab8471334e re PR libgcj/6081 (libjava make install fails: Arg list too long)
Fix for PR libgcj/6081:
	* Makefile.in: Rebuilt.
	* Makefile.am (install-data-local): Use GNU make trick to avoid
	shell limit.

From-SVN: r52370
2002-04-16 15:52:26 +00:00
Adam King
6344da6f57 natFileWin32.cc (performList): Return the correct array type.
2002-04-16  Adam King <aking@dreammechanics.com>
	    Tom Tromey  <tromey@redhat.com>

	* java/io/natFileWin32.cc (performList): Return the correct array
	type.  Don't duplicate the creation of a File since it's already
	done earlier in the method and the existing code would cause a
	ArrayStoreException.  Don't use fixed-size array.
	(_access, _stat, attr, getCanonicalPath, performMkdir,
	performRenameTo): Don't use fixed-size array.
	(getCanonicalPath): Use throw, not _Jv_Throw.

Co-Authored-By: Tom Tromey <tromey@redhat.com>

From-SVN: r52369
2002-04-16 15:37:39 +00:00
Dale Johannesen
3148ad6d93 rs6000.c (rs6000_emit_cmove): Fail if modes of comparison operands do not match each other or if...
2002-04-16  Dale Johannesen <dalej@apple.com>

        * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
        comparison operands do not match each other or if modes of
        conditions do not match result.

From-SVN: r52367
2002-04-16 11:25:30 -04:00
Hartmut Penner
014cb9b62a s390.md (mulsidi3): Set both subregs of the multiword register.
target/6305
        * config/s390/s390.md (mulsidi3): Set both subregs of the
        multiword register.

From-SVN: r52366
2002-04-16 12:43:26 +00:00
GCC Administrator
739e7e408f Daily bump.
From-SVN: r52364
2002-04-16 07:18:05 +00:00
Aldy Hernandez
562a69be3f altivec.h (vec_addc): Type check.
2002-04-16  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/altivec.h (vec_addc): Type check.

From-SVN: r52360
2002-04-16 06:40:40 +00:00
Jakub Jelinek
4c8c0deca5 re PR target/6303 (output_operand: invalid expression as operand)
PR target/6303
	* dwarf2out.c (rtl_for_decl_location): Call ASM_SIMPLIFY_DWARF_ADDR
	before returning.
	* config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT only
	when inside of MEM by eliminating the indirection too.
	* config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Define.
	* config/s390/s390.c (s390_simplify_dwarf_addr): New.
	* config/s390/s390-protos.h (s390_simplify_dwarf_addr): Add
	prototype.

	* gcc.dg/20020415-1.c: New test.

From-SVN: r52358
2002-04-16 08:18:47 +02:00
Jakub Jelinek
a9772b60f3 re PR middle-end/6279 (gcc-3.1 miscompiles qmake on IA-64)
PR middle-end/6279
	* expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.

	* expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.

From-SVN: r52356
2002-04-16 08:09:39 +02:00
Mark Mitchell
0f2680051d decl.c (register_dtor_fn): Pass the address of dso_handle, not dso_handle itself, to __cxa_atexit.
* decl.c (register_dtor_fn): Pass the address of dso_handle, not
	dso_handle itself, to __cxa_atexit.

From-SVN: r52354
2002-04-16 03:17:57 +00:00
Richard Henderson
861829ed08 abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set call_really_used_regs too.
* config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
        call_really_used_regs too.

From-SVN: r52352
2002-04-15 20:01:17 -07:00
Gabriel Dos Reis
f1e888aea0 [multiple changes]
2002-04-16  Paolo Carlini <pcarlini@unitus.it>
        * testsuite/24_iterators/rel_ops.cc: New test.

2002-04-16  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

        * include/bits/type_traits.h (__normal_iterator): Declare in
        __gnu_cxx.  Adjust use at global namespace.
        * include/bits/stl_iterator.h (__normal_iterator): Move
        definition
        into __gnu_cxx::. Add more operator overloads.  Tidy existing
        ones.
        * include/bits/basic_string.h (basic_string): Adjust use of
        __normal_iterator.
        * include/bits/stl_vector.h (_Alloc>): Likewise.
        * src/concept-inst.cc (__gnu_cxx): __normal_iterator<> is now
        here.
        * src/string-inst.cc (operator==): Instantiate in __gnu_cxx.

From-SVN: r52348
2002-04-16 02:29:22 +00:00
DJ Delorie
902c431d48 configure.in: Allow building in $srcdir.
* configure.in: Allow building in $srcdir.
* configure: Regenerated.

From-SVN: r52347
2002-04-15 22:03:03 -04:00
Richard Henderson
bcf2fe9c93 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
From-SVN: r52346
2002-04-15 18:16:35 -07:00
Benjamin Kosnik
d3a193e36c re PR libstdc++/4164 (33 Memory Leak when using iostream)
2002-04-15  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/4164
	Valgrind fixes.
	* config/io/basic_file_stdio.cc (__basic_file::~__basic_file):
	Call close.
	(__basic_file::close): Call fflush. Correct return if fclose ok.
	(__basic_file::is_open): Make const.
	Change __c_file_type to __c_file.
	* config/io/basic_file_stdio.h: Change __c_file_type to __c_file.
	(__basic_file::is_open): Make const.
	* config/io/c_io_stdio.h: Change __c_file_type to __c_file.
	* include/std/std_fstream.h (filebuf::_M_allocate_file): Remove.
	(filebuf::_M_unbuf): Add.
	(filebuf::_M_file): Change to non-pointer.
	(filebuf::_M_allocate_pback_buffer): Remove.
	* include/bits/fstream.tcc (filebuf::_M_allocate_file): Remove.
	(filebuf::_M_allocate_internal_buffer): Use _M_unbuf.
	Change initialization list for _M_file change.
	(filebuf::_M_allocate_pback_buffer): Remove.
	Change _M_file usage to reflect non-pointer data member.

	* config/locale/generic/c_locale.cc
	(locale::facet::_S_create_c_locale): Add parameter.
	* config/locale/generic/collate_members.cc: Change
	_M_compare_helper to _M_compare.
	Change _M_transform_helper to _M_transform.
	* config/locale/generic/monetary_members.cc: Changeup data types.
	Add dtors.
	* config/locale/generic/numeric_members.cc: Add dtors.
	* config/locale/generic/time_members.cc: Add dtors.
	* config/locale/gnu/c_locale.cc: Add parameter.
	* config/locale/gnu/collate_members.cc:Change
	_M_compare_helper to _M_compare.
	Change _M_transform_helper to _M_transform.
	* config/locale/gnu/ctype_members.cc: Better error checking.
	* config/os/gnu-linux/bits/ctype_noninline.h: Better error checking.
	* config/locale/gnu/messages_members.cc: Tweak comment.
	* config/locale/gnu/monetary_members.cc: Change data types.
	Add dtors.
	* config/locale/gnu/numeric_members.cc: Add dtors, better error
	checking.
	* config/locale/gnu/time_members.cc: Same.
	* config/locale/ieee_1003.1-2001/c_locale.cc
	(locale::facet::_S_create_c_locale): Add parameter.
	* config/locale/ieee_1003.1-2001/c_locale.h: Correct typedef.
	* config/locale/ieee_1003.1-2001/codecvt_specializations.h: Remove
	bogus ctor.

	* include/bits/locale_facets.h (moneypunct): Use string literals.
	Don't define dtor.
	(numpunct): Same.
	(__timepunct): Same.
	(locale::_Impl::_M_facets): Change from vector to array.
	(locale::_Impl::_M_names): Change from array of strings to array
	of string literals.
	(locale::facet::_S_create_c_locale): Add parameter.
	(locale::locale::_S_num_facets): Move to...
	(locale::_Impl::_M_facets_size): Here.
	* include/bits/locale_facets.tcc: Fixups for _M_facets, _M_name
	changes.
	* include/bits/localefwd.h: (locale:🆔:_M_id): Add member function.
	(locale::_Impl::_Impl(facet**, size_t, bool)): Add.
	(locale::_Impl::_Impl(string, size_t)): Change to
	(locale::_Impl::_Impl(const char*, size_t)): This.

	* include/bits/streambuf.tcc (streambuf::_S_pback_size): Define.
	* include/std/std_streambuf.h (streambuf::_M_pback_size): Change to
	(streambuf::_S_pback_size): This.

	* src/globals.cc: Add pre-allocations for "C" facets.
	* src/locale-inst.cc: Remove vector instantiations.
	* src/locale.cc: Remove vector include. Fixups for _M_names,
	_M_facets changes.
	* src/localename.cc: Same.

	* include/bits/stl_vector.h: Fix odd formatting.

	* include/bits/basic_string.tcc: Tweak comment.

	* libsupc++/new: Make sure parameters are uglified.
	* libsupc++/typeinfo: Same.

	* testsuite/22_locale/num_get_members_char.cc: Fixup.
	* testsuite/22_locale/num_get_members_wchar_t.cc: Same.
	* testsuite/27_io/filebuf_members.cc: Same.

From-SVN: r52345
2002-04-16 00:45:36 +00:00
David S. Miller
629111c732 rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs as being CLOBBERed.
2002-04-15  David S. Miller  <davem@redhat.com>

	* rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
	as being CLOBBERed.

From-SVN: r52343
2002-04-15 16:12:58 -07:00
Jakub Jelinek
98ef3137bf re PR c/6290 (ICE compiling altivec code with 3.1)
PR c/6290
	* config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
	CONST_VECTOR is { 0, ... 0 }.

	* gcc.dg/altivec-5.c: New test.

From-SVN: r52340
2002-04-16 00:39:10 +02:00
Keith Seitz
a6bea8cee1 acinclude.m4 (CYG_AC_PATH_TCLCONFIG): Search the win/ directory, too.
* acinclude.m4 (CYG_AC_PATH_TCLCONFIG): Search the win/ directory,
too.
(CYG_AC_PATH_TKCONFIG): Likewise.

From-SVN: r52338
2002-04-15 17:59:09 -04:00