Commit Graph

35616 Commits

Author SHA1 Message Date
Mark Mitchell
0f38b81142 c-decl.c (grokdeclarator): Make the TREE_TYPE for declarations accurately reflect its cv-qualification.
* c-decl.c (grokdeclarator): Make the TREE_TYPE for declarations
	accurately reflect its cv-qualification.
	* c-typeck.c (type_lists_compatible_p): Ignore the top-levl
	cv-qualifiers on function types.

From-SVN: r43056
2001-06-08 22:33:46 +00:00
Richard Frith-Macdonald
e6be21fe87 init.c (__objc_send_message_in_list): When setting a new entry in __objc_load_methods use the method IMP as key...
2001-06-06  Richard Frith-Macdonald  <rrfm@gnu.org>

        * init.c (__objc_send_message_in_list): When setting a new entry
        in __objc_load_methods use the method IMP as key, but check to see
        if the method is in the hashtable by looking at the IMP also.
        Also ... call the method after adding it to the hashtable rather
        than before ... thus preventing an obscure possibility of infinite
        recursion if a +load method itself loads a subclass.

From-SVN: r43052
2001-06-08 22:19:47 +00:00
Stan Shebs
43fd108f69 load-2.m: New test.
* objc/execute/load-2.m: New test.  From Nicola Pero
        <n.pero@mi.flashnet.it>.

From-SVN: r43051
2001-06-08 22:16:58 +00:00
Tom Tromey
fdf448f76b re PR libgcj/2874 (libjava testsuite disk space usage)
Fix for PR libgcj/2874:
	* libjava.mauve/mauve.exp (gcj_run_mauve_tests): New proc.
	(test_mauve): Return 0 on failure.
	* lib/libjava.exp (test_libjava_from_source): Remove generated
	files if test is successful.
	(test_libjava_from_javac): Likewise.
	(gcj_cleanup): New proc.

From-SVN: r43050
2001-06-08 22:12:28 +00:00
Mark Mitchell
e68e310815 basic-block.h: Improve comments.
* basic-block.h: Improve comments.
	* except.c (expand_eh_region_end_allowed): Remove redundant call
	to do_pending_stack_adjust.
	* flow.c (life_analysis): Fix typo in comment.
	(calculate_global_regs_live): Add documentation.
	(mark_set_1): Likewise.
	(debug_regset): Likewise.
	* doc/rtl.texi (cond_exec): Document it.

From-SVN: r43049
2001-06-08 21:54:11 +00:00
Jan Hubicka
1acc845ecb i386.h (CONST_COSTS): set cost of constants representable in immediate fields to 0.
* i386.h (CONST_COSTS): set cost of constants representable in
	immediate fields to 0.

From-SVN: r43045
2001-06-08 19:53:59 +00:00
Jan Hubicka
932f084749 function.c (diddle_return_value): Kill code to determine return value before expand_function_end.
* function.c (diddle_return_value): Kill code to determine
	return value before expand_function_end.
	(expand_function_end): Delay call to clobber_return_register
	after fucntion return value is computed.

	Re-install temporary reverted patch:
	* toplev.c (rest_of_compilation): Call split_all_insns
	before reg-stack and shorten-branches. Do shorten-branches
	after reg-stack.
	* final.c (shorten_branches): Remove insn splitting code.

From-SVN: r43044
2001-06-08 19:52:06 +00:00
Joseph Myers
cd3bb27790 gcc.texi, [...]: Add index of command line options.
* doc/gcc.texi, doc/invoke.texi: Add index of command line
	options.  Use @opindex to index them rather than other indexing
	commands.  Use @var{...} instead of <...>.  Avoid spaces in names
	inside @var.  Don't use @kindex to index escape sequences in
	source code.

From-SVN: r43041
2001-06-08 20:42:28 +01:00
Tom Tromey
4c399c87ef re PR libgcj/3059 (System doesn't set java.home property)
Fix for PR libgcj/3059:
	* java/lang/natSystem.cc (init_properties): Define `java.home'.
	* Makefile.in: Rebuilt.
	* Makefile.am (AM_CXXFLAGS): Define PREFIX.

From-SVN: r43040
2001-06-08 19:09:04 +00:00
Jason Merrill
acb5223fb5 conflict
From-SVN: r43038
2001-06-08 14:14:27 -04:00
Jason Merrill
91088ddb81 stmt.c (current_nesting_level): New fn.
* stmt.c (current_nesting_level): New fn.
        * tree.h: Declare it.
        * c-semantics.c (genrtl_compound_stmt): Use it.

        * dbxout.c (dbxout_symbol): Use DECL_RTL_SET_P.

From-SVN: r43037
2001-06-08 14:12:54 -04:00
Jason Merrill
c16bd4e207 duplicate
From-SVN: r43036
2001-06-08 14:03:52 -04:00
Jason Merrill
a245756ae2 duplicate
[[Split portion of a mixed commit.]]

From-SVN: r43035.2
2001-06-08 14:03:52 -04:00
Tom Tromey
7f7ba9bf90 For PR bootstrap/3075:
* configure, aclocal.m4, Makefile.am: Rebuilt.
	* configure.in: Pass `--with-auxdir' to subdir configure.  Don't
	call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM.  Look for unwind.h
	relative to libgcj_basedir.
	* acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and
	AC_CANONICAL_SYSTEM here.
	* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
	libgcj_basedir.
	($(extra_headers)): New target.

From-SVN: r43034
2001-06-08 18:02:03 +00:00
Tom Tromey
a5440f9ebf For PR bootstrap/3075:
* configure, aclocal.m4, Makefile.in: Rebuilt.
	* configure.in: Don't call AC_CONFIG_AUX_DIR or
	AC_CANONICAL_SYSTEM.
	* acinclude.m4 (BOEHM_CONFIGURE): Call AC_CONFIG_AUX_DIR and
	AC_CANONICAL_SYSTEM here.
	* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not
	boehm_gc_basedir.

From-SVN: r43033
2001-06-08 17:59:57 +00:00
Jakub Jelinek
7bd458aabb jump.c (mark_modified_reg): Allow jump threading if condition codes are represented by a hard register.
* jump.c (mark_modified_reg): Allow jump threading if condition
	codes are represented by a hard register.

From-SVN: r43030
2001-06-08 19:43:09 +02:00
Jakub Jelinek
7137fd76b5 ia64.c (ia64_function_arg): Use [SDT]Fmode as gr_mode for complex floats passed to unprototyped functions.
* config/ia64/ia64.c (ia64_function_arg): Use [SDT]Fmode as gr_mode
	for complex floats passed to unprototyped functions.

	* gcc.c-torture/execute/20010605-2.c: New test.

From-SVN: r43029
2001-06-08 19:42:25 +02:00
Mark Mitchell
b912bca0f0 except.c (expand_eh_region_end_allowed): Call do_pending_stack_adjust as necessary.
* except.c (expand_eh_region_end_allowed): Call
	do_pending_stack_adjust as necessary.

From-SVN: r43020
2001-06-08 16:19:45 +00:00
Nathan Sidwell
4b454fccf5 vbase2.C: New test.
* g++.old-deja/g++.abi/vbase2.C: New test.
	* g++.old-deja/g++.abi/vbase3.C: New test.

From-SVN: r43016
2001-06-08 14:30:47 +00:00
Nathan Sidwell
06d5e6330f decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko in previous change.
* decl.c (duplicate_decls): Fix DECL_TEMPLATE_RESULT thinko
	in previous change.

From-SVN: r43014
2001-06-08 13:49:09 +00:00
Nathan Sidwell
9ac1bd2e0a re PR c++/2929 (gcc crash when compiling a sample)
cp:
	PR c++/2929
	* friend.c (do_friend): Use push_decl_namespace for classes at
	namespace scope.
testsuite:
	* g++.old-deja/g++.pt/friend49.C: New test.

From-SVN: r43013
2001-06-08 12:49:02 +00:00
Jan Hubicka
9c65bbf460 function.c (clobber_return_register): Clobber the pseudo return register too.
* function.c (clobber_return_register): Clobber the pseudo return
	register too.

From-SVN: r43011
2001-06-08 12:26:51 +00:00
Jan Hubicka
cf7ec0ab00 sibcall.c (skip_unreturned_value): New function.
* sibcall.c (skip_unreturned_value): New function.
	(call_ends_block_p): Use it.

From-SVN: r43010
2001-06-08 12:24:30 +00:00
Jan Hubicka
d58d4c12b0 recog.c (split_insn): Break out from ...
* recog.c (split_insn): Break out from ...
	(split_all_insns): ... here; do not use basic block information
	when it is broken.

From-SVN: r43009
2001-06-08 12:19:12 +00:00
Jan Hubicka
2fe7bb353a simplify-rtx.c (simplify_subreg): Fix verification of combined subreg.
* simplify-rtx.c (simplify_subreg):  Fix verification of
	combined subreg.

From-SVN: r43008
2001-06-08 12:02:24 +00:00
Rainer Orth
64b172fed5 mips.h (CPP_SPEC): Simplify .s/.S handling.
* config/mips/mips.h (CPP_SPEC): Simplify .s/.S handling.
	Don't define _LANGUAGE_C and variants for .cpp/.cp/.c++ files.
	Move definition of _LANGUAGE_C_PLUS_PLUS ...
	(CPLUSPLUS_CPP_SPEC): ... here.
	Fixes PRs c++/3047, target/441.

From-SVN: r43007
2001-06-08 11:52:56 +00:00
Nathan Sidwell
85a9a0a28b re PR c++/3061 (kde2/artsd miscompilation (part 2))
PR c++/3061
        * class.c (build_secondary_vtable): Use assert, rather than an error
        message.
        (dfs_fixup_binfo_vtbls): BINFO_VTABLE might be NULL.
        (dfs_accumulate_vtbl_inits): A lost primary virtual base may
        be between ORIG_BINFO and RTTI_BINFO, but neither of them.
        Don't set BINFO_VTABLE for a primary virtual base.

Co-Authored-By: Jason Merrill <jason@redhat.com>

From-SVN: r43006
2001-06-08 07:10:29 -04:00
GCC Administrator
6a1447333f Daily bump.
From-SVN: r43002
2001-06-08 07:16:12 +00:00
Gerald Pfeifer
f8c17551d4 * doc/install.texi2html (MAKEINFO): Keep value if set already.
From-SVN: r43001
2001-06-08 07:08:06 +00:00
Gerald Pfeifer
df7ad0448a update_web_docs: Only update the install documentation for the CVS HEAD.
* update_web_docs: Only update the install documentation for the
	CVS HEAD.

From-SVN: r43000
2001-06-08 06:27:47 +00:00
Loren J. Rittle
7628e178ef eh_alloc.cc: Ensure that required macros are defined before including gthr.h.
* libsupc++/eh_alloc.cc: Ensure that required macros are
	defined before including gthr.h.  Ensure that we get the
	version of gthr.h for which we know how to provide a
	configuration.
	* libsupc++/eh_globals.cc: Likewise.  And, bring the threading
	code path into line with the current EH model.  Use std, where
	appropriate.

Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca>

From-SVN: r42999
2001-06-08 03:55:43 +00:00
Loren J. Rittle
5e21803304 threads-no.h: Remove file.
* config/threads-no.h: Remove file.
	* config/threads-posix.h: Remove file.

	* acconfig.h (_GLIBCPP_USE_THREADS): Remove.
	(_GLIBCPP_SUPPORTS_WEAK): Add (required by namespace-clean gthr*.h).
	(_GLIBCPP_HAVE_GTHR_DEFAULT): Likewise.
	* config.h.in: Regenerate.

	* acinclude.m4 (GLIBCPP_ENABLE_THREADS): Completely rework to
	setup and use gthr*.h files.  In particular, make gthr.h files
	namespace-clean in the staging area (they don't have to be for
	libgcc.a).
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

	* src/Makefile.am (build_headers): Remove bits/c++threads.h
	and add bits/gthr.h bits/gthr-single.h bits/gthr-default.h.
	* src/Makefile.in: Regenerate.

	* include/bits/c++config: Cleanup threading configuration macros.
	In particular, define __STL_GTHREADS macro which controls...
	* include/bits/stl_threads.h: ...a brand new gthr.h-based
        configuration here.

	* config/c_io_stdio.h: Include staged gthr.h instead of local
	thread configuration file.  Always use __gthread_mutex_t
	instead of __mutext_type (or int).
	* include/bits/std_fstream.h: Likewise.

	* docs/html/17_intro/howto.html: Remove placeholder comment in
	case this configuration patch didn't make it.  Add advice that
	section only applies if configured with --enable-threads.
	* docs/html/23_containers/howto.html: Reword to make clear
	that _PTHREADS is no longer required for any port to be
	correctly using STL with threads.  Add advice that section
	only applies if configured with --enable-threads.

Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca>

From-SVN: r42998
2001-06-08 03:53:35 +00:00
Alexandre Oliva
e9a8af1067 Makefile.in (AS_FOR_TARGET, [...]): If gcc/xgcc is built, use -print-prog-name to find out the program name to use.
* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): If
gcc/xgcc is built, use -print-prog-name to find out the program
name to use.

From-SVN: r42996
2001-06-08 03:21:07 +00:00
Joseph Myers
b9e18cb673 * doc/gcc.texi: Add trailing slash to URL.
From-SVN: r42995
2001-06-08 03:43:47 +01:00
Stan Shebs
df56a27fb8 darwin.h (ENCODE_SECTION_INFO): Define.
* config/darwin.h (ENCODE_SECTION_INFO): Define.
        (REDO_SECTION_INFO_P): Ditto.
        (STRIP_NAME_ENCODING): Ditto.
        (ASM_DECLARE_OBJECT_NAME): Use ENCODE_SECTION_INFO.
        (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Ditto.
        (ASM_OUTPUT_LABELREF): Use STRIP_NAME_ENCODING.
        (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Ditto.
        * config/darwin.c: No longer include c-tree.h.
        (machopic_classify_ident): Rewrite to use symbol encoding.
        (lookup_name_darwin): Remove.
        (machopic_non_lazy_ptr_name): Handle encoded symbols.
        (machopic_stub_name): Use STRIP_NAME_ENCODING.
        (machopic_validate_stub_or_non_lazy_ptr): Ditto.
        (machopic_finish): Ditto, remove test of decl.
        (update_non_lazy_ptrs): New function.
        (darwin_encode_section_info): New function.
        * config/darwin-protos.h: Declare it.
        * config/rs6000/rs6000.c (machopic_output_stub): Use
        STRIP_NAME_ENCODING.

From-SVN: r42994
2001-06-08 02:28:04 +00:00
Mark Mitchell
daa8df6512 tree.h (DECL_SOURCE_FILE): Improve documentation.
* tree.h (DECL_SOURCE_FILE): Improve documentation.
	(DECL_SOURCE_LINE): Likewise.

	* decl.c (duplicate_decls): Update source position information
	when a template function is defined.

From-SVN: r42993
2001-06-08 02:05:04 +00:00
Loren J. Rittle
01414194b9 elf.h (MAKE_DECL_ONE_ONLY): Copy definition from config/elfos.h.
* config/alpha/elf.h (MAKE_DECL_ONE_ONLY): Copy definition
	from config/elfos.h.

From-SVN: r42991
2001-06-08 00:47:58 +00:00
Phil Edwards
37344b9b0d lang-specs.h: Move -D_GNU_SOURCE to config/linux.h.
2001-06-07  Phil Edwards  <pme@sources.redhat.com>

	* cp/lang-specs.h:  Move -D_GNU_SOURCE to config/linux.h.
	* config/linux.h (CPLUSPLUS_CPP_SPEC):  Move -D_GNU_SOURCE to here.
	* config/pa/pa-linux.h:  Allow CPLUSPLUS_CPP_SPEC to remain.

From-SVN: r42989
2001-06-07 23:54:24 +00:00
Joseph Myers
ad262bb2d5 * doc/contrib.texi: Add copyright notice.
From-SVN: r42987
2001-06-08 00:38:07 +01:00
Joseph Myers
5c84b18ed2 * doc/md.texi: Use four digit years in copyright notice.
From-SVN: r42985
2001-06-08 00:36:01 +01:00
Joseph Myers
4ed47beaff config.gcc: For $target_alias of athlon-*, set target_cpu_default2=5.
* config.gcc: For $target_alias of athlon-*, set
	target_cpu_default2=5.

From-SVN: r42984
2001-06-08 00:21:29 +01:00
DJ Delorie
5fa3863196 Fix entry - forgot to mention *.1 moved to doc
From-SVN: r42981
2001-06-07 17:43:18 -04:00
Richard Kenner
28bf9c8843 global.c (build_insn_chain): Allow ADDR_VEC or ADDR_DIF_VEC after end of last block if...
* global.c (build_insn_chain): Allow ADDR_VEC or ADDR_DIF_VEC after
	end of last block if last real insn is a JUMP_INSN.

From-SVN: r42977
2001-06-07 16:17:28 -04:00
Joseph Myers
47c2a318dd gennews: Update for GCC 3.0.
contrib:
	* gennews: Update for GCC 3.0.

gcc:
	* NEWS: Regenerate.

From-SVN: r42975
2001-06-07 19:17:38 +01:00
Rainer Orth
fee013ef9c gthr-posix.h (__gthread_objc_thread_detach): Simply cast pthread_t to objc_thread_t.
* gthr-posix.h (__gthread_objc_thread_detach): Simply cast
	pthread_t to objc_thread_t.
	(__gthread_objc_thread_id): Likewise.

From-SVN: r42974
2001-06-07 17:22:20 +00:00
Rainer Orth
5076b0ead9 osf5.h (CPP_XFLOAT_SPEC): Override default definition.
* alpha/osf5.h (CPP_XFLOAT_SPEC): Override default definition.
	(ASM_OLDAS_SPEC): Likewise.

	* alpha/osf.h (CPP_XFLOAT_SPEC): Define.
	(CPP_SUBTARGET_SPEC): Use it.
	(ASM_OLDAS_SPEC): Define.
	(ASM_SPEC): Use it.
	(SUBTARGET_EXTRA_SPECS): Define, declare the new specs above.

From-SVN: r42971
2001-06-07 17:04:51 +00:00
Rainer Orth
09e983244e alpha.c (alpha_va_arg): Handle TFmode, TCmode args, passed by reference.
* config/alpha/alpha.c (alpha_va_arg): Handle TFmode, TCmode args,
	passed by reference.

From-SVN: r42969
2001-06-07 16:56:31 +00:00
Joseph Myers
561c1ae113 tm.texi (TARGET_SWITCHES, [...]): Adjust markup.
* doc/tm.texi (TARGET_SWITCHES, TARGET_OPTIONS): Adjust markup.
	Document use of N_(...), and show it in examples.  Note that
	documentation should be added to invoke.texi.  Avoid an overfull
	hbox.

From-SVN: r42965
2001-06-07 17:41:27 +01:00
Nathan Sidwell
fcebb2ddda re PR c++/2914 (gcc 3.0 crashes on xalan DoubleSupport.cpp)
cp:
	PR c++/2914
	* decl.c (pushtag): Don't push into a complete type's scope.
testsuite:
	* g++.old-deja/g++.ext/anon3.C: New test.

From-SVN: r42962
2001-06-07 16:15:45 +00:00
Jan Hubicka
d7e5d7feae toplev.c (rest_of_compilation): Revert previous patch.
* toplev.c (rest_of_compilation): Revert previous patch.
	* final.c (shorten_branches): Likewise.

From-SVN: r42961
2001-06-07 15:10:58 +00:00