Commit Graph

33343 Commits

Author SHA1 Message Date
Alexandre Petit-Bianco
493d561d62 class.c (layout_class): Don't lay the superclass out if it's already being laid out.
2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* class.c (layout_class): Don't lay the superclass out if it's
	already being laid out.
	* jcf-parse.c (handle_innerclass_attribute): New function.
	(HANDLE_INNERCLASSES_ATTRIBUTE): Invoke
	handle_innerclasses_attribute.
	(jcf_parse): Don't load an innerclasses if it's already being
	laid out.
	* jcf-write.c (append_innerclass_attribute_entry): Static
	`anonymous_name' and its initialization deleted. `ocii' and `ini'
	to be zero for anonymous classes.

2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* class.c (set_constant_value): Set DECL_FIELD_FINAL_IUD if
	necessary.
	* jcf-parse.c (set_source_filename): Use
	MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC if necessary.

2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* expr.c (build_jni_stub): Set DECL_CONTEXT on `meth_var' so it
	gets a unique asm name.

2001-01-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-parse.c (HANDLE_END_METHODS): Nullify current_method.
	(HANDLE_START_FIELD): Invoke MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC
	if necessary.
	(HANDLE_SYNTHETIC_ATTRIBUTE): New macro.
	* jcf-reader.c (get_attribute): Handle `Synthetic' attribute.
	* parse.y (lookup_package_type_and_set_next): Deleted.
	(resolve_package): Removed unnecessary code.
	(find_applicable_accessible_methods_list): `finit$' can't be
 	inherited.
	* verify.c (pop_argument_types): Added missing prototype.

(http://gcc.gnu.org/ml/gcc-patches/2001-01/msg01812.html)

From-SVN: r39230
2001-01-24 00:08:36 -08:00
Kriang Lerdsuwanakij
0851111417 pt.c (check_explicit_specialization): Clone constructors and destructors.
* pt.c (check_explicit_specialization): Clone constructors and
	destructors.

	* g++.old-deja/g++.pt/spec33.C: Change from "Build don't link" to
	"Build don't run".

From-SVN: r39229
2001-01-24 07:06:07 +00:00
John David Anglin
b0cc7919bf bb-reorder.c (make_reorder_chain_1): Handle case where jump edge goes to the same block as the fallthru edge.
* bb-reorder.c (make_reorder_chain_1): Handle case where
        jump edge goes to the same block as the fallthru edge.

From-SVN: r39228
2001-01-23 22:57:46 -07:00
Jim Wilson
0024a8041f Eliminate IA-64 compiler warnings.
* dwarf2out.c (dwarf2out_line): Make last_file_num be unsigned.
	* frame.h (__ia64_personality_v1): Add prototype.
	* libgcc2.c (ia64_throw_helper): Change personality declaration to
	prototype form.  Add void * cast to first argument to personality
	call.
	...

From-SVN: r39227
2001-01-23 20:30:47 -08:00
Chris Demetriou
17fd8a87a4 exception_support.cc (__terminate_func): Remove declaration.
2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * libsupc++/exception_support.cc (__terminate_func): Remove
        declaration.
        (__terminate_func_ptr): New typedef.
        (__terminate, __terminate_set_func): New extern function
        prototypes.
        (std::terminate): Use __terminate function.
        (std::set_terminate): Use __terminate_set_func function.

From-SVN: r39226
2001-01-23 19:04:36 -08:00
Chris Demetriou
93982b798a exception.cc (__terminate_func): Remove declaration.
2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * exception.cc (__terminate_func): Remove declaration.
        (__terminate_func_ptr): New typedef.
        (__terminate, __terminate_set_func): New extern function
        prototypes.
        (std::terminate): Use __terminate function.
        (std::set_terminate): Use __terminate_set_func function.

From-SVN: r39225
2001-01-23 19:04:04 -08:00
Chris Demetriou
8a1894ac7b libgcc-std.ver (GCC_3.0): Add __terminate_func_set to list of EH symbols.
2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * libgcc-std.ver (GCC_3.0): Add __terminate_func_set to list
        of EH symbols.
        * libgcc2.c (__terminate_func): Make variable static.
        (__terminate_set_func): New function to set __terminate_func.
        * libgcc2.h (__terminate_func_ptr): New typedef.
        (__terminate_set_func): New function.

From-SVN: r39224
2001-01-23 19:03:12 -08:00
Alexandre Oliva
0006091ec2 ltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'.
* ltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'.
* libtool.m4 (_AC_LIBTOOL_GCJ): Pass $CPPFLAGS on.

From-SVN: r39223
2001-01-24 02:24:50 +00:00
Richard Henderson
240f9c2b13 flow.c (init_propagate_block_info): Don't consider unchanging memories for dead frame store elimination.
* flow.c (init_propagate_block_info): Don't consider unchanging
        memories for dead frame store elimination.

From-SVN: r39222
2001-01-23 18:23:54 -08:00
Richard Henderson
fc9f395ad2 varasm.c (UNIQUE_SECTION): Move default implementation ...
* varasm.c (UNIQUE_SECTION): Move default implementation ...
        * defaults.h: ... here.

From-SVN: r39221
2001-01-23 18:23:23 -08:00
Franz Sirl
390dfcbe90 Fix date.
From-SVN: r39220
2001-01-24 00:48:03 +00:00
Franz Sirl
a84593a614 20010123-1.c: New test.
2001-01-22  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

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

From-SVN: r39219
2001-01-24 00:45:42 +00:00
Franz Sirl
63b6e0696f Update copyright dates.
From-SVN: r39218
2001-01-24 00:07:32 +00:00
Michael Hayes
860b349991 * c4x.h (TARGET_LOAD_DIRECT_MEMS): Define.
From-SVN: r39217
2001-01-23 23:22:30 +00:00
Michael Sokolov
f40ae7c1b1 ctime_.c: #include <sys/types.h> for time_t.
* libU77/ctime_.c: #include <sys/types.h> for time_t.
	* libU77/datetime_.c: Likewise.
	* libU77/fdate_.c: Likewise.
	* libU77/gmtime_.c: Likewise.
	* libU77/idate_.c: Likewise.
	* libU77/itime_.c: Likewise.
	* libU77/ltime_.c: Likewise.
	* libU77/sys_clock_.c: Likewise.
	* libU77/vxtidate_.c: Likewise.
	* libU77/vxttime_.c: Likewise.

From-SVN: r39216
2001-01-23 23:20:30 +00:00
Neil Booth
955dc84a48 * c-lex.c (lex_charconst): Fix typo: s/p/str.
From-SVN: r39215
2001-01-23 23:18:43 +00:00
Michael Sokolov
0d5d970bca com.c: Don't explicitly include any time headers...
* com.c: Don't explicitly include any time headers, the right ones are
	already included by proj.h.

From-SVN: r39214
2001-01-23 23:04:35 +00:00
Richard Henderson
eff01bb615 varasm.c (UNIQUE_SECTION): Move default implementation ...
* varasm.c (UNIQUE_SECTION): Move default implementation ...
        * defaults.h: ... here.

From-SVN: r39213
2001-01-23 14:29:30 -08:00
Bryce McKinlay
7c01b2b5a8 configure.in: Enable libgcj on several additional platforms.
* configure.in: Enable libgcj on several additional platforms.

In gcc/java:
	* config-lang.in: Disable java by default.

From-SVN: r39212
2001-01-23 22:17:31 +00:00
Franz Sirl
608ab80216 rs6000.h (rs6000_return_addr): Move prototype from here...
2001-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * rs6000.h (rs6000_return_addr): Move prototype from here...
        * rs6000-protos.h (rs6000_return_addr): ...to here.
        (rs6000_init_expanders): Delete prototype.

From-SVN: r39211
2001-01-23 22:03:48 +00:00
Nick Clifton
371e300b1d Replace , with \, inside @gccoptlist macros.
Document %B and %j and %. and %v3 and %M and %{S*&T} spec switches.

From-SVN: r39210
2001-01-23 21:35:15 +00:00
Benjamin Kosnik
3637cfac02 configure.target: Just use os_include_dir always.
2001-01-23  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.target: Just use os_include_dir always.
	* configure.in: Remove calls to GLIBCPP_CHECK_CTYPE_SUPPORT.
	Link atomicity files and ctype files here.
	* configure: Regenerate.
	* acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): Remove.
	(GLIBCPP_ENABLE_ATOMICITY): Remove.
	* aclocal.m4: Regenerate.

From-SVN: r39209
2001-01-23 20:58:23 +00:00
Tom Tromey
80261b56ed gcj.texi (Copying): New node.
* gcj.texi (Copying): New node.
	Added copyright information.

From-SVN: r39208
2001-01-23 20:09:17 +00:00
Herman A.J. ten Brugge
4a1f52a8d3 * c4x.c (c4x_r11_set_p): Calculate rtx code correctly.
From-SVN: r39207
2001-01-23 19:31:08 +00:00
Chris Demetriou
c933c209dd cpperror.c: Merge handlers of PEDWARN and WARNING.
* cpperror.c: Merge handlers of PEDWARN and WARNING.
        Have -Werror make pedantic warnings errors, like the
        rest of GCC.

Co-Authored-By: Neil Booth <neil@daikokuya.demon.co.uk>

From-SVN: r39206
2001-01-23 19:20:14 +00:00
Chris Demetriou
c8f33f223b configure.in: Place definition of MULTISUBDIR in libsupc++/Makefile as is done for src/Makefile.
2001-01-23  Chris Demetriou  <cgd@broadcom.com>

        * configure.in: Place definition of MULTISUBDIR in
        libsupc++/Makefile as is done for src/Makefile.
        * configure: Regenerate.

From-SVN: r39205
2001-01-23 11:18:29 -08:00
Phil Edwards
3fb74b82af c-tree.texi (IDENTIFIER_LENGTH): Fix typo.
2001-01-23  Phil Edwards  <pme@sources.redhat.com>

	* c-tree.texi (IDENTIFIER_LENGTH):  Fix typo.

From-SVN: r39204
2001-01-23 18:36:53 +00:00
Jakub Jelinek
96e60f0c1a integrate.h (struct inline_remap): Add compare_src, compare_mode.
* integrate.h (struct inline_remap): Add compare_src, compare_mode.
	* integrate.c (expand_inline_function): Initialize them.
	(subst_constants): If changing COMPARE so that both its arguments
	will be VOIDmode and the comparison mode will be lost, note
	compare_mode.  Use the recorded compare_mode to optimize
	IF_THEN_ELSE.

From-SVN: r39203
2001-01-23 19:36:06 +01:00
Michael Sokolov
909b968ecb * libU77/sys_clock_.c: #include <sys/param.h> for the clock tick rate.
From-SVN: r39202
2001-01-23 18:35:56 +00:00
Jason Merrill
3f4907a608 dwarf2out.c (new_die): Use xcalloc.
* dwarf2out.c (new_die): Use xcalloc.
        (output_die): Abort rather than emit a local reference to offset 0.

From-SVN: r39201
2001-01-23 12:22:08 -05:00
Phil Edwards
9b8fd32cca acinclude.m4: Cosmetic changes only.
2001-01-23  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4:  Cosmetic changes only.
	* aclocal.m4:  Regenerated.
	* configure:  Regenerated.
	* configure.target:  Update documented list of changed variables.
	* docs/html/install.html:  Fix typo.
	* docs/html/20_util/howto.html:  More notes on auto_ptr.
	* docs/html/27_io/howto.html:  More notes on streabufs.
	* docs/html/faq/index.html:  Add rel_ops problem and mention the
	  DEC as(1) .subsection difficulty.
	* docs/html/faq/index.txt:  Regenerated.

From-SVN: r39200
2001-01-23 17:02:28 +00:00
Andrew Haley
44f715c8ed libgcc2.c (get_reg_addr): Don't abort if we haven't got a copy of a saved register; return NULL instead.
2001-01-17  Andrew Haley  <aph@redhat.com>

        * libgcc2.c (get_reg_addr): Don't abort if we haven't got a copy
        of a saved register; return NULL instead.
        (copy_reg): Take a pointer to a source register rather than a
        frame_state.
        (next_stack_level): Remember the address in the stack frame of all
        saved registers.
        Use the saved register pointer array as the source of the CFA.
        (throw_helper): Rewrite.  Unwind once rather than twice and keep
        track of saved registers as we go.

From-SVN: r39199
2001-01-23 13:58:55 +00:00
Nathan Sidwell
92ecdfb74c decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC indicates anything special about template depth.
cp:
	* decl.c (grokdeclarator): Don't presume DECL_LANG_SPECIFIC
	indicates anything special about template depth. Make sure we
	only count the user visible template classes.
testsuite:
	* g++.old-deja/g++.pt/spec37.C: New test.

From-SVN: r39198
2001-01-23 10:44:18 +00:00
Nathan Sidwell
4cff6abe40 call.c (build_conv): Typo in comment.
cp:
	* call.c (build_conv): Typo in comment.
	(add_builtin_candidate): Add more explanation.
	Remove extra test for ENUMERAL_TYPE in {PRE,POST}INCREMENT_EXPR.
	Allow ENUMERAL_TYPEs for relops and eqops. Add both candidates
	when we have enumeral types.
	(add_builtin_candidates): Add more explanation. Add ENUMERAL_TYPE
	candidates for relops and eqops.
	(joust): Simplify control flow. Allow a non-template user
	function to hide a builtin.
testsuite:
	* g++.old-deja/g++.pt/overload14.C: New test.

From-SVN: r39197
2001-01-23 10:36:26 +00:00
Mark Mitchell
20b11783a3 ainclude.m4 (GLIBCPP_CHEC_MATH_DECLS_AND_LINKAGE_1): New macro.
* ainclude.m4 (GLIBCPP_CHEC_MATH_DECLS_AND_LINKAGE_1): New macro.
	(GLIBCPP_CHECK_MATH_SUPPORT): Use it.
	(GLIBCPP_CHECK_TYPE_SUPPORT): Don't autoconf ctype information if
	its already provided in config.target.
	* aclocal.m4: Regenerated.
	* configure: Likewise.
	* configure.target: Set ctype_include_dir for lots of systems.
	* libsupc++/Makefile.am: Explicitly include --tag disable-shared.
	* libsupc++/Makefile.in: Regenerated.

From-SVN: r39196
2001-01-23 08:57:34 +00:00
Jeff Law
27902296e0 Daily bump.
From-SVN: r39195
2001-01-23 01:45:09 -07:00
Herman A.J. ten Brugge
eb253d90de c4x-protos.h (c4x_legitimize_reload_address): Remove.
* c4x-protos.h (c4x_legitimize_reload_address): Remove.
	* c4x.c (c4x_legitimize_reload_address): Remove.
	* c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Rewrite to generate correct
	reload address for ldp(k) insn.

From-SVN: r39194
2001-01-23 05:28:15 +00:00
Jeffrey A Law
2caa0ddfc9 pa.md (return_internal): Add a USE of the PIC register to ensure it is restored after each call.
* pa.md (return_internal): Add a USE of the PIC register to ensure
        it is restored after each call.
        (return expander): Corresponding changes.

From-SVN: r39193
2001-01-22 20:52:54 -07:00
Gabriel Dos Reis
152353171a libstdc++.exp: Improve.
* testsuite/lib/libstdc++.exp: Improve.  Add support for @xxx#
        keyword capability.

        * testsuite/README: Add comment.

From-SVN: r39192
2001-01-23 02:48:27 +00:00
Laurynas Biveinis
56c1d2ee9b [sorry, missed this the first time around] 2001-01-12 Laurynas Biveinis <lauras@softhome.net>
[sorry, missed this the first time around]
2001-01-12  Laurynas Biveinis  <lauras@softhome.net>
* acinclude.m4 (GLIBCPP_CHECK_CTYPE_SUPPORT): check for DJGPP <ctype.h>
(LIB_AC_PROG_CXX): replace [/\\] with [\\/] to work around older
bash bug.
* aclocal.m4: regenerated.
* configure.target: set os_include_dir to config/os/djgpp under DJGPP.
* configure: regenerated.
* config/os/djgpp, config/os/djgpp/bits: new directories.
* config/os/djgpp/bits/ctype_base.h,
config/os/djgpp/bits/ctype_inline.h,
config/os/djgpp/bits/ctype_noninline.h,
config/os/djgpp/bits/os_defines.h: new files.

From-SVN: r39191
2001-01-22 20:51:53 -05:00
Franz Sirl
6aace5d426 20010122-1.c: New test, exercise __builtin_return_address.
2001-01-22  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * gcc.c-torture/execute/20010122-1.c: New test, exercise
        __builtin_return_address.

From-SVN: r39189
2001-01-22 22:52:18 +00:00
Franz Sirl
71f123ca19 rs6000.h (INIT_EXPANDERS): Delete.
2001-01-22  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * rs6000.h (INIT_EXPANDERS): Delete.
        (RETURN_ADDR_RTX): Call rs6000_return_addr().
        * rs6000.c (rs6000_override_options): Call *_machine_status from
        here...
        (rs6000_init_expanders): ...instead of here. Delete.
        (rs6000_mark_machine_status): New function.
        (rs6000_init_machine_status): Use xcalloc.
        (rs6000_return_addr): Generate RTX for the return address.
        (rs6000_ra_ever_killed): New, check if LR was ever destroyed.
        (rs6000_stack_info): Use it.

From-SVN: r39188
2001-01-22 22:47:25 +00:00
Thomas Pfaff
5dab7f92ce gthr-win32.h: Include errno.h to get a declaration for EINVAL and _mingw.h if...
* gthr-win32.h: Include errno.h to get a declaration for
EINVAL and _mingw.h if the target is mingw32.

From-SVN: r39187
2001-01-22 16:29:53 -05:00
Andres Felipe Vargas
586964a732 * cpp.texi: Fix typos.
From-SVN: r39186
2001-01-22 20:41:04 +00:00
Richard Kenner
f5f5363f77 explow.c (probe_stack_range): Ensure value passed to stack_check_libfunc is ptr_mode, not Pmode.
* explow.c (probe_stack_range): Ensure value passed to
	stack_check_libfunc is ptr_mode, not Pmode.

From-SVN: r39185
2001-01-22 13:59:36 -05:00
Tom Tromey
a09b9232cd Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (bin_PROGRAMS): Remove grepjar.
	(EXTRA_PROGRAMS): New macro.

From-SVN: r39184
2001-01-22 17:32:28 +00:00
J"orn Rennecke
44e4159d60 recog.c (validate_replace_rtx_1): In ZERO_EXTEND / SIGN_EXTEND case...
* recog.c (validate_replace_rtx_1): In ZERO_EXTEND / SIGN_EXTEND
	case, don't use operand_subword to calculate a SUBREG that is
	wider than a word.

	* rtl.texi: Comparisons yield 0 or STORE_FLAG_VALUE.

From-SVN: r39183
2001-01-22 16:58:08 +00:00
Nathan Sidwell
62e4a75853 cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
cp:
	* cp-tree.h (unification_kind_t): Add DEDUCE_ORDER.
	(more_specialized): Add deduction parameter.
	* call.c (joust): Adjust more_specialized call.
	* pt.c (UNIFY_ALLOW_OUTER_MORE_CV_QUAL,
	UNIFY_ALLOW_OUTER_LESS_CV_QUAL): New unify flags.
	(get_bindings_order): Remove.
	(get_bindings_real): Add DEDUCE parameter.
	(maybe_adjust_types_for_deduction): Return extra unify flags. Do
	REFERENCE_TYPE jig for DEDUCE_ORDER.
	(type_unification_real): Deal with DEDUCE_ORDER. Use result of
	maybe_adjust_types_for_deduction.
	(more_specialized): Add DEDUCE parameter. Call get_bindings_real
	directly.
	(try_one_overload): Use result of maybe_adjust_types_for_deduction.
	(check_cv_quals_for_unify): Use new unify qualifier flags.
	(unify): Clear new unify qualifier flags.
	(get_bindings_real): Add DEDUCE parameter.
	(get_bindings): Adjust call to get_bindings_real.
	(get_bindings_overload): Likewise.
	(most_specialized_instantiation): Adjust call to
	more_specialized.
testsuite:
	* g++.old-deja/g++.martin/sts_partial.C: Remove XFAIL.
	* g++.old-deja/g++.pt/spec35.C: New test.
	* g++.old-deja/g++.pt/spec36.C: New test.

From-SVN: r39182
2001-01-22 13:51:43 +00:00
Herman A.J. ten Brugge
0bbcfbafc8 c4x.c (c4x_valid_rptb_p, [...]): New functions.
* c4x.c (c4x_valid_rptb_p, c4x_label_ref_used_p): New functions.
	(c4x_rptb_insert): Call c4x_valid_rptb_p to check if repeat block is
	valid.  If not replace it by equivalent insns.

From-SVN: r39181
2001-01-22 10:40:31 +00:00
Herman A.J. ten Brugge
5078f5eb76 c4x.c (c4x_check_legit_addr): Only check CONST.
* c4x.c (c4x_check_legit_addr): Only check CONST.  Not if CONST
	contains SYMBOL_REF, LABEL_REF and CONST_INT.
	(c4x_U_constraint, symbolic_address_operand): Likewise.
	(c4x_immed_float_constant): Do not check if CONST_DOUBLE is in
	memory.
	(c4x_r11_set_p, c4x_check_laj_p): New functions.
	* c4x-protos.h (c4x_check_laj_p): Add prototype.
	* c4x.md (in_annul_slot_3): Do not allow auto-increment in last
	anulling slot because of silicon bug.
	(laj, lajv): Call c4x_check_laj_p to check for silicon bug.

From-SVN: r39180
2001-01-22 10:29:14 +00:00