Commit Graph

42408 Commits

Author SHA1 Message Date
GCC Administrator
eea18a4a73 Daily bump.
From-SVN: r52516
2002-04-19 07:19:16 +00:00
Neil Booth
ab393bf171 builtins.c: Include langhooks.h.
* builtins.c: Include langhooks.h.
	(lang_type_promotes_to): Remove.
	(expand_builtin_va_arg): Use new hook.
	* c-common.c (c_common_nodes_and_builtins): Don't set hook.
	(simple_type_promotes_to): Move to c-typeck.c.
	* c-common.h (simple_type_promotes_to): Remove.
	* c-decl.c (duplicate_decls, grokdeclarator): Update.
	* c-format.c: Include langhooks.h.
	(check_format_types): Update.
	* c-tree.h (c_type_promotes_to): New.
	* c-typeck.c (c_type_promotes_to): Move from c-common.c.
	(type_lists_compatible_p): Update.
	* langhooks-def.h (lhd_type_promotes_to): New.
	(LANG_HOOKS_TYPE_PROMOTES_TO): New.
	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
	* langhooks.c (lhd_type_promotes_to): New.
	* langhooks.h (struct lang_hooks_for_types): New hook.
	* tree.h (lang_type_promotes_to): Remove.
cp:
	* call.c (convert_type_from_ellipsis): Rename, update.
	* cp-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
	* cp-tree.h (convert_type_from_ellipsis): Rename.
	* decl.c (cxx_init_decl_processing): Don't set hook.
objc:
	* objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.

From-SVN: r52512
2002-04-19 06:22:18 +00:00
Richard Henderson
58533fa280 * function.c: Revert patch for c/6358.
From-SVN: r52511
2002-04-18 21:41:34 -07:00
Richard Henderson
0cd3301ba7 ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN blocks.
* ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
        blocks.  Handle multiple references to the TRAP block.  Handle
        non-adjacent THEN and OTHER blocks.

        * gcc.dg/20000906-1.c: Enable for all targets.
        * gcc.c-torture/compile/iftrap-2.c: New.

From-SVN: r52509
2002-04-18 21:01:15 -07:00
Richard Henderson
2840e66a78 ia64.c (ia64_function_arg_pass_by_reference): Don't crash with no type for by-mode libcalls.
* config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
        crash with no type for by-mode libcalls.

From-SVN: r52508
2002-04-18 20:59:51 -07:00
Richard Henderson
5cf63e3f08 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
From-SVN: r52507
2002-04-18 20:59:28 -07:00
Bob Wilson
57174693e0 lib2funcs.S (__xtensa_libgcc_window_spill, [...]): Use a syscall instructions to flush the register windows.
* config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
        __xtensa_nonlocal_goto): Use a syscall instructions to flush
        the register windows.

From-SVN: r52503
2002-04-19 00:31:17 +00:00
Zack Weinberg
46468cd96f real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as appropriate.
* real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
	appropriate.  Document need for extended precision even when
	MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
	based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
	REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
	instead of relying on later syntax error when REAL_WIDTH > 5.
	* real.c: Define NE based only on whether or not we have a
	full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
	Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
	define GET_REAL and PUT_REAL as simple memcpy operations; no
	need to byteswap or round.
	Use #error instead of #ifdef-ing out the entire file, for
	prompt error detection.

	* rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.

From-SVN: r52502
2002-04-19 00:14:49 +00:00
Benjamin Kosnik
36ce7daa04 localefwd.h (locale:🆔:_M_id): Do this correctly, as type safety is important, especially on solaris.
2002-04-18  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/localefwd.h (locale:🆔:_M_id): Do this correctly,
	as type safety is important, especially on solaris.
	* include/bits/istream.tcc (istream::read): Clean.
	(istream::readsome): Same.
	* locale.cc: Wrap lines.

	* testsuite/21_strings/inserters_extractors.cc: Tweaks.
	* testsuite/27_io/instantiations.cc (test): Add bool variable...
	* testsuite/21_strings/capacity.cc: Clean.

From-SVN: r52501
2002-04-18 23:47:50 +00:00
David S. Miller
2f82dbf865 sparc.h (BRANCH_COST): Define.
2002-04-18  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.h (BRANCH_COST): Define.

	* fold-const.c (BRANCH_COST): Don't provide default here, expr.h
	does it.

From-SVN: r52500
2002-04-18 16:37:15 -07:00
Hans-Peter Nilsson
566576e718 flow.c (update_life_info): Ignore return value of cleanup_cfg.
* flow.c (update_life_info): Ignore return value of cleanup_cfg.
	Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
	propagate_block calls after relaxation loop using new variable
	stabilized_prop_flags.

From-SVN: r52498
2002-04-18 22:11:39 +00:00
Tom Tromey
0c7c67f076 re PR libgcj/6158 (libgcj won't bootstrap on sparc-sun-solaris2.8 if already installed)
* configure.in: Disallow configuring libgcj when it is already
	installed and we're using Solaris 2.8 linker.  Do enable libgcj on
	Solaris 2.8 by default.  For PR libgcj/6158.

From-SVN: r52497
2002-04-18 21:35:49 +00:00
Richard Henderson
51dcde6f95 ia64.c (ia64_function_arg_pass_by_reference): New.
* config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
        (ia64_va_arg): Expect variable sized types by reference.
        * config/ia64/ia64-protos.h: Update.
        * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
        ia64_function_arg_pass_by_reference.

From-SVN: r52494
2002-04-18 13:28:39 -07:00
Jakub Jelinek
a48632153d PR optimization/5887, PR optimization/6010
PR optimization/5887, PR optimization/6010
	* gcc.dg/20020418-1.c: New test.
	* gcc.dg/20020418-2.c: New test.

From-SVN: r52492
2002-04-18 22:10:48 +02:00
Richard Henderson
96b453dc81 ifcvt.c: Include except.h.
* ifcvt.c: Include except.h.
        (block_has_only_trap): Break out from find_cond_trap.
        (find_cond_trap): Use it.  Always delete the trap block.
        (merge_if_block): Allow then block null.  Be less simplistic about
        what insns can end a block.
        * Makefile.in (ifcvt.o): Depend on except.h.

        * gcc.c-torture/compile/iftrap-1.c: New.
        * gcc.dg/iftrap-1.c: Adjust for ia64.
        * gcc.dg/iftrap-2.c: New.

From-SVN: r52489
2002-04-18 13:02:18 -07:00
Richard Henderson
2640601850 * config/ia64/ia64.md (trap, conditional_trap): New.
From-SVN: r52487
2002-04-18 12:45:36 -07:00
Jakub Jelinek
a3acf46d44 re PR c/6358 (GCC 3.1 ICE on statement expressions)
PR c/6358
	* function.c (assign_parms): Assign hard current_function_return_rtx
	register here...
	(expand_function_end): ...not here.

	* gcc.c-torture/compile/20020418-1.c: New test.

From-SVN: r52485
2002-04-18 21:10:11 +02:00
Gerald Pfeifer
8ecab453cb install.texi (Downloading the source): Do not mention Chill any longer, but mention Ada.
* doc/install.texi (Downloading the source): Do not mention Chill
	any longer, but mention Ada.
	(Configuration): Do not mention Chill any longer.

From-SVN: r52482
2002-04-18 18:04:03 +00:00
Neil Booth
7a2289181e c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
* c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
	* c-tree.h (c_incomplete_type_error): New.
	* c-typeck.c (require_complete_type, build_component_ref): Update.
	(incomplete_type_error): Rename.
	* langhooks-def.h (lhd_incomplete_type_error): New.
	(LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
	* langhooks.c (lhd_incomplete_type_error): New.
	* langhooks.h (struct lang_hooks_for_types): New hook.
	* tree.c (size_in_bytes): Use new hook.
	* tree.h (incomplete_type_error): Remove.
ada:	* gigi.h (incomplete_type_error): Remove.
	* utils.c (incomplete_type_error): Remove.
cp:
	* call.c (build_new_method_call): Update.
	* cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
	* cp-tree.h (cxx_incomplete_type_error): New.
	* decl.c (grokdeclarator, grokparms): Update.
	* decl2.c (check_classfn): Update.
	* pt.c (tsubst): Update.
	* typeck.c (complete_type_or_else, expr_sizeof,
	decay_conversion): Update.
	* typeck2.c (incomplete_type_error): Rename.
	(add_exception_specifier): Update.
f:
	* com.c (incomplete_type_error): Remove.
java:
	* typeck.c (incomplete_type_error): Remove.
objc:
	* objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.

From-SVN: r52480
2002-04-18 17:54:11 +00:00
Zack Weinberg
f18664c152 arc.md: Remove #if HOST_FLOAT_FORMAT != TARGET_FLOAT_FORMAT blocks.
* config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
	TARGET_FLOAT_FORMAT blocks.

From-SVN: r52479
2002-04-18 17:38:23 +00:00
Hans-Peter Nilsson
528d8489c3 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
From-SVN: r52477
2002-04-18 16:55:31 +00:00
Jan Hubicka
91da27c552 i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution in last patch.
* i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
	in last patch.

From-SVN: r52475
2002-04-18 15:25:54 +00:00
Jakub Jelinek
a32db60568 fold-const.c (fold): Use (*lang_hooks.types.unsigned_type) instead of unsigned_type.
* fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
	instead of unsigned_type.

From-SVN: r52474
2002-04-18 17:17:47 +02:00
Jan Hubicka
5a28d8ccd8 i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
* i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
	* i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
	later.

From-SVN: r52471
2002-04-18 14:05:03 +00:00
Jason Merrill
8152c32042 re PR c++/5658 (Regression on redefinition of a type in a derived class.)
PR c++/5658
        * search.c (setup_class_bindings): A class template qualifies as a
        type binding.

From-SVN: r52469
2002-04-18 09:57:35 -04:00
Bernd Schmidt
2e676d7878 Prevent aborts taking a vector mode subreg of a constant integer
From-SVN: r52467
2002-04-18 11:29:19 +00:00
Bernd Schmidt
3d980b9f8a Plug memory leak in handle_vector_size_attribute
From-SVN: r52466
2002-04-18 11:23:25 +00:00
Roger Sayle
58c2956cc7 fold-const.c (fold): Convert (T)(x&c) into ((T)x&(T)c) for integer constant c (if...
* fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
	for integer constant c (if x has unsigned type or sign bit is not
	set in c).  This folds the zero/sign extension into the bit-wise and
	operation.

	* gcc.c-torture/compile/20020415-1.c: New.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r52465
2002-04-18 12:39:41 +02:00
Jakub Jelinek
692efa8ed5 re PR middle-end/6205 (-O -fpmath=sse breaks visibility of register accumulated sum)
PR middle-end/6205
	* config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
	otherwise xorps.

From-SVN: r52464
2002-04-18 12:22:14 +02:00
Geoffrey Keating
29a948c850 * gcc_update (touch_files): Don't have empty for loop.
From-SVN: r52462
2002-04-18 10:09:10 +00:00
David S. Miller
887fc41aef 20020418-1.c: New test.
2002-04-18  David S. Miller  <davem@redhat.com>

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

From-SVN: r52461
2002-04-18 01:05:23 -07:00
GCC Administrator
977ea2f238 Daily bump.
From-SVN: r52459
2002-04-18 07:18:01 +00:00
Phil Edwards
bf551f96b1 doxygroups.cc: New group on binary searching.
2002-04-17  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/doxygroups.cc:  New group on binary searching.
	* include/bits/stl_algo.h:  Document binary searches and merges.
	* include/bits/stl_deque.h:  The 'map' member is not the 'map' class.

From-SVN: r52453
2002-04-18 02:55:50 +00:00
Phil Edwards
d4c6e01f81 mainpage.html: Doxygen logo is now a PNG file.
2002-04-17  Phil Edwards  <pme@gcc.gnu.org>

	* docs/doxygen/mainpage.html:  Doxygen logo is now a PNG file.
	* docs/doxygen/run_doxygen:  Bump required version.
	* docs/doxygen/user.cfg.in:  Revert accidental change.
	* docs/html/faq/index.html:  Reindent a block of links.
	(4.4):  New note on using dlsym.
	* docs/html/faq/index.txt:  Regenerated.

From-SVN: r52451
2002-04-18 01:42:50 +00:00
Phil Edwards
822ca943a3 testsuite_flags.in (cxxflags): Also pass @EXTRA_CXX_FLAGS@.
2002-04-17  Phil Edwards  <pme@gcc.gnu.org>

	* testsuite_flags.in (cxxflags):  Also pass @EXTRA_CXX_FLAGS@.

From-SVN: r52450
2002-04-18 01:37:42 +00:00
Bryce McKinlay
b798d8b64d class.c (make_class_data): Set DECL_ALIGN on static class data, for hash synchronization.
* class.c (make_class_data): Set DECL_ALIGN on static class data,
	for hash synchronization.
	* expr.c (java_expand_expr): Set DECL_ALIGN on static array objects.
	* decl.c (java_init_decl_processing): Don't set TYPE_ALIGN for
	class_type_node.

From-SVN: r52448
2002-04-18 00:13:11 +01:00
Adam King
b7403f10f2 File.java (normalizePath): Add Win32 support for auto conversion of a '/' path separator to Win32's '\'...
* java/io/File.java (normalizePath): Add Win32 support for auto
	conversion of a '/' path separator to Win32's '\' separator.

From-SVN: r52447
2002-04-18 00:02:33 +01:00
Nathanael Nerode
63501e9115 configure.in: Move default CC setting out of config/mh-* fragments directly into here.
* configure.in:  Move default CC setting out of config/mh-* fragments
directly into here.

From-SVN: r52443
2002-04-17 16:45:24 -04:00
Nathanael Nerode
701afd4dd0 configure.in: don't even try to configure or make a subdirectory if...
* configure.in: don't even try to configure or make a subdirectory
if there's no configure script for it.

From-SVN: r52442
2002-04-17 16:23:44 -04:00
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