Commit Graph

28754 Commits

Author SHA1 Message Date
Alex Samuel 69afa80d10 In include,
* dyn-string.h: Move here from gcc/dyn-string.h.  Add new functions.

	* demangle.h (DMGL_GNU_NEW_ABI): New macro.
	(DMGL_STYLE_MASK): Or in DMGL_GNU_NEW_ABI.
	(current_demangling_style): Add gnu_new_abi_demangling.
	(GNU_NEW_ABI_DEMANGLING_STYLE_STRING): New macro.
	(GNU_NEW_ABI_DEMANGLING): Likewise.
	(cplus_demangle_new_abi): New declaration.

In libiberty,

	* Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
	(REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
	(cp-demangle.o): New dependency.
	(dyn-string.o): Likewise.

	* dyn-string.c: Move here from gcc/dyn-string.c.  Add new functions.

	* cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
	demangler.
	(cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
	demangling mode.
	(gnu_new_abi_symbol_characters): New function.
	(main): Use gnu_new_abi_symbol_characters.  * cp-demangle.c: New
	file.
	* cp-demangle.c: New file.

From-SVN: r34397
2000-06-05 02:28:41 +00:00
Mark Mitchell 0dc09a613b ir.texi: Correct typo.
* ir.texi: Correct typo.
	* mangle.c (write_expression): Handle non-type template arguments
	with reference type.
	* method.c (build_overload_value): Likewise.
	* pt.c (convert_nontype_argument): Explicitly represent conversion
	to a reference with an ADDR_EXPR.
	(unify): Always unify arguments in left-to-right order.

From-SVN: r34396
2000-06-05 01:42:22 +00:00
Mark Mitchell f557989836 libioP.h: Handle new ABI mangling.
* libioP.h: Handle new ABI mangling.
	* stdstrbufs.cc: Likewise.

From-SVN: r34395
2000-06-04 21:16:04 +00:00
Alex Samuel 1f6e1acc0f Make-lang.in (CXX_SRCS): Add mangle.c.
* Make-lang.in (CXX_SRCS): Add mangle.c.
	* Makefile.in (CXX_OBJS): Add mangle.o.
	(mangle.o): New rule.

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>

From-SVN: r34394
2000-06-04 21:12:27 +00:00
Kaveh R. Ghazi 031926e2a3 Makefile.in (intl.*): Honor non-zero exit codes in the intl subdir.
* Makefile.in (intl.*): Honor non-zero exit codes in the intl
	subdir.

From-SVN: r34393
2000-06-04 19:52:22 +00:00
Mark Mitchell 84d6d72f82 * newcvsroot: Handle filenames that contain spaces.
From-SVN: r34391
2000-06-04 17:33:50 +00:00
Jeff Law 35718b49f4 Daily bump.
From-SVN: r34390
2000-06-04 01:45:07 -06:00
Geoff Keating b16a49a14c alias.c (record_component_aliases): Don't inspect DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
* alias.c (record_component_aliases): Don't inspect
        DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.

From-SVN: r34389
2000-06-04 05:51:12 +00:00
Michael Meissner 089f6dc348 fix typo
From-SVN: r34388
2000-06-04 05:24:29 +00:00
Zack Weinberg dd5330e8e8 test_summary: In generated script, use cat <<'EOF' not cat <<\EOF.
* test_summary: In generated script, use cat <<'EOF' not cat <<\EOF.
	Elide --with-gcc-version-trigger and --norecursion from
	configure flags.  Remove code to report status of haifa scheduler.

From-SVN: r34387
2000-06-04 02:06:54 +00:00
Michael Meissner 90280148a6 add IFCVT_MODIFY macros for the MD file to tweak the conditional execution support.
From-SVN: r34386
2000-06-04 02:03:03 +00:00
Jason Merrill 7a50d89174 expand
From-SVN: r34385
2000-06-03 22:02:19 -04:00
Mark Mitchell f9a7ae04e9 cp-tree.h (TMPL_ARGS_LEVEL): Clarify comment.
* cp-tree.h (TMPL_ARGS_LEVEL): Clarify comment.
	(INNERMOST_TEMPLATE_ARGS): New macro.
	(innermost_args): Remove.
	(get_innermost_template_args): New function.
	* decl2.c (arg_assoc_class): Use INNERMOST_TEMPLATE_ARGS.
	* error.c (dump_function_decl): Be caution when using
	most_general_template.
	* method.c (build_template_parm_names):  Use
	INNERMOST_TEMPLATE_ARGS.
	* pt.c (add_to_template_args): Tidy comment
	(get_innermost_template_args): New function.
	(check_explicit_specialization): Clear DECL_INITIAL for a new
	specialization.
	(process_partial_specialization): Use INNERMOST_TEMPLATE_ARGS.
	Tidy.
	(push_template_decl): Always register specializations of the most
	general template.
	(convert_template_argument): Use INNERMOST_TEMPLATE_ARGS.
	(coerce_template_parms): Likewise.
	(lookup_template_class): Likewise.
	(innermost_args): Remove.
	(tsubst_decl): Use INNERMOST_TEMPLATE_ARGS.
	(tsubst_decl): Handle tricky specializations.  Use
	get_innermost_template_args.
	(instantiate_template): Simplify handling of partial
	instantiations.
	(get_class_bindings): Use INNERMOST_TEMPLATE_ARGS.
	(most_general_template): Reimplement, in a more straightforward
	manner.
	(regenerate_decl_from_template): Tweak formatting.  Use
	TMPL_ARGS_DEPTH for clarity.
	(set_mangled_name_for_template_decl): Use INNERMOST_ARGS.

	* dump.c (dequeue_and_dump): Dump information about thunks.

From-SVN: r34384
2000-06-03 21:42:49 +00:00
David Billinghurst 22ad59662f * g77.f-torture/compile/20000601-1.f: New test.
From-SVN: r34383
2000-06-03 15:34:24 -06:00
Jeffrey A Law 888457d7b9 * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
From-SVN: r34382
2000-06-03 15:32:06 -06:00
Matt Kraai bc83ee5999 * toplev.c (main): Fix misspellings of possibility and language.
From-SVN: r34381
2000-06-03 15:28:37 -06:00
Richard Henderson 570eb5c8b9 alias.c (record_alias_subset): Initialize has_zero_child in the superset.
* alias.c (record_alias_subset): Initialize has_zero_child in the
        superset.

From-SVN: r34380
2000-06-03 08:03:21 -07:00
Richard Henderson 72934de72b * gcc.c-torture/execute/20000603-1.c: New.
From-SVN: r34379
2000-06-03 08:01:49 -07:00
Richard Earnshaw d6c266b250 * arm.md (untyped_call): Use GEN_CALL macro.
From-SVN: r34378
2000-06-03 10:44:59 +00:00
Jeff Law 367d27ef19 Daily bump.
From-SVN: r34377
2000-06-03 01:45:08 -06:00
Pekka Nikander f0267a678d Makefile.in: Use $(MAKE) not "make"
2000-06-01  Pekka Nikander  <pnr@teldanex.tcm.hut.fi>

       * Makefile.in: Use $(MAKE) not "make"

From-SVN: r34376
2000-06-03 03:01:59 +00:00
Jason Merrill 6a83e470e7 exception.cc (__cp_pop_exception): If we aren't popping or rethrowing, push down past any uncaught exceptions.
* exception.cc (__cp_pop_exception): If we aren't popping or
        rethrowing, push down past any uncaught exceptions.
        (__uncatch_exception): Rethrow the currently handled exception.
        Move it to the top of the exception stack.

From-SVN: r34375
2000-06-02 22:20:09 -04:00
Jason Merrill de695d2c6d new
From-SVN: r34374
2000-06-02 22:07:51 -04:00
Richard Kenner 2bf105ab5b alias.c (struct alias_set_entry): New field has_zero_child.
* alias.c (struct alias_set_entry): New field has_zero_child.
	(mem_in_disjoint_alias_sets_p): Return 0 if set in either ase.
	(get_alias_set): If language-dependent routine set TYPE_ALIAS_SET,
	do nothing.
	Call record_component_aliases for aggregate types.
	(record_alias_subset): Set has_zero_child.
	(record_component_aliases, case ARRAY_TYPE): Do nothing if
	TYPE_NONALIASES_COMPONENT.
	(record_component_aliases, case RECORD_TYPE): Test
	DECL_NONADDRESSABLE_P.
	* c-decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
	of TREE_ADDRESSABLE.
	* calls.c (initialize_argument_information): Only test
	TYPE_TRANSPARENT_UNION for UNION_TYPE.
	* function.c (assign_parms): Likewise.
	* integrate.c (function_cannot_inline_p): Likewise.
	* stor-layout.c (finish_record_layout): Don't call
	record_component_aliases.
	* tree.h (struct tree_int_cst): Use struct tree_common.
	(struct tree_real_cst, struct tree_string): Likewise.
	(struct tree_complex, struct tree_identifier): Likewise.
	(struct tree_list, struct tree_vec, struct tree_exp): Likewise.
	(struct tree_block, struct tree_type, struct tree_decl): Likewise.
	(TYPE_TRANSPARENT_UNION): Use UNION_TYPE_CHECK.
	(TYPE_NONALIASES_COMPONENT): New macro.
	(TYPE_AMBIENT_BOUNDEDNESS): Use FUNCTION_TYPE_CHECK.
	(DECL_NONADDRESSABLE_P): New macro.
	(struct tree_decl): Reorder bits for clarity of how many left;
	add non_adressable.
	* cp/cp-tree.h: Use struct tree_common instead of a char array.
	* cp/decl.c (grokdeclarator): Set DECL_NONADDRESSABLE_P instead
	of TREE_ADDRESSABLE.

From-SVN: r34373
2000-06-02 21:57:46 -04:00
Zack Weinberg 0e13506e49 noreturn-1.c (foo7, foo8): Revert previous change.
* gcc.dg/noreturn-1.c (foo7, foo8): Revert previous change.
	* gcc.dg/noreturn-2.c (noreturn): Likewise.

From-SVN: r34372
2000-06-03 01:53:57 +00:00
Benjamin Kosnik cc4316b532 locale_facets.h: Tweak.
2000-06-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/locale_facets.h: Tweak.
	* src/locale.cc (codecvt<wchar_t>): Tweak.

	* bits/locale_facets.h (_Format_cache): _S_ecks -> _S_x.
	* bits/locale_facets.tcc (num_get<char>::_M_extract): Fix for hex.

	* bits/basic_string.h: Move data member up.
	* src/string-inst.cc: Fix instantiations.
	* bits/string.tcc: Fix types.

From-SVN: r34371
2000-06-03 01:52:32 +00:00
Jason Merrill 3378216a50 Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
* Makefile.in (libgcc.a): Also depend on $(LIB2ADD).
        * mklibgcc.in (force): New target.
        Make LIB2ADD stuff depend on it.

From-SVN: r34370
2000-06-02 21:39:51 -04:00
Alexandre Petit-Bianco 8f975c18ed class.c (get_dispatch_table): Build the vtable dummy entry list element with a null purpose.
Fri Jun  2 16:48:55 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

        * class.c (get_dispatch_table): Build the vtable dummy entry list
        element with a null purpose. Fixed leading comment.
        (build_dtable_decl): Build an accurate dtable type when appropriate
        and use it.

From-SVN: r34369
2000-06-02 17:46:44 -07:00
Richard Henderson 2e761e4919 alias.c (lang_get_alias_set): Remove.
gcc/
	* alias.c (lang_get_alias_set): Remove.
	(get_alias_set): Call it directly, not indirectly.
	* c-common.c (lang_get_alias_set): Rename from c_get_alias_set.
	* c-common.h (c_get_alias_set): Don't declare.
	* c-decl.c (init_decl_processing): Don't set lang_get_alias_set.
	* expr.h (lang_get_alias_set): Declare as function, not pointer.

gcc/ch/
	* lang.c (lang_get_alias_set): New.

gcc/cp/
	* decl.c (init_decl_processing): Don't set lang_get_alias_set.

gcc/f/
	* com.c (lang_get_alias_set): New.

gcc/java/
	* lang.c (lang_get_alias_set): New.

From-SVN: r34368
2000-06-02 17:33:00 -07:00
Jason Merrill 572240906d tweak
From-SVN: r34367
2000-06-02 20:15:05 -04:00
Jason Merrill b9d969b7d4 new
From-SVN: r34366
2000-06-02 20:02:48 -04:00
Benjamin Kosnik c9b39473f3 locale_facets.h (_Format_cache): _S_ecks -> _S_x.
2000-06-02  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* bits/locale_facets.h (_Format_cache): _S_ecks -> _S_x.
	* bits/locale_facets.tcc (num_get<char>::_M_extract): Fix for hex.

From-SVN: r34365
2000-06-02 19:41:42 +00:00
Jason Merrill 2f8edb39a1 * decl.c (store_return_init): Call put_var_into_stack.
From-SVN: r34364
2000-06-02 15:38:35 -04:00
Anthony Williams 3ce7458060 replace.cc (test01): Qualify find with std::.
2000-06-02  Anthony Williams  <anthony@anthonyw.cjb.net>

	* testsuite/21_strings/replace.cc (test01): Qualify find with std::.

From-SVN: r34363
2000-06-02 18:31:44 +00:00
Jason Merrill 0c031c5cb9 oops
From-SVN: r34362
2000-06-02 14:19:02 -04:00
Jason Merrill 87626353df new
From-SVN: r34361
2000-06-02 13:49:26 -04:00
Bruce Korb 56ce79f733 only shut down the server process if the master process is exiting
From-SVN: r34360
2000-06-02 17:25:47 +00:00
Bruce Korb ff84bb1888 fix test result for ultrix_atof_param
From-SVN: r34359
2000-06-02 16:04:10 +00:00
Bruce Korb e814224c96 fix test result for osf_namespace_a
From-SVN: r34358
2000-06-02 15:59:32 +00:00
Loren J. Rittle ef6df6115f regenerate fixincl.x
From-SVN: r34357
2000-06-02 14:30:24 +00:00
Jakub Jelinek 8f215dcec4 c-common.c (c_get_alias_set): Check whether signed_type did not return its argument before calling...
* c-common.c (c_get_alias_set): Check whether signed_type did not
	return its argument before calling get_alias_set on the result.

From-SVN: r34356
2000-06-02 14:50:08 +02:00
Loren J. Rittle bec7ddd796 inclhack.def (osf_namespace_a): Relax expression to match that used before the conversion to c_fix style.
* fixinc/inclhack.def (osf_namespace_a): Relax expression to
	match that used before the conversion to c_fix style.

From-SVN: r34355
2000-06-02 07:45:57 -04:00
Andrew MacLeod 4636c0a2f4 expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.
2000-06-02  Andrew MacLeod  <amacleod@cygnus.com>

	* expr.c (emit_group_load): Fix typo, GET_MODE not GET_CODE.

From-SVN: r34354
2000-06-02 10:15:43 +00:00
Jeff Law 8d867e7d80 Daily bump.
From-SVN: r34353
2000-06-02 01:45:07 -06:00
Benjamin Kosnik 3840fa2a8f std_cwctype.h: Clean.
2000-06-01  Benjamin Kosnik  <bkoz@gnu.org>

	* bits/std_cwctype.h: Clean.
	* bits/std_cwchar.h: Clean, remove cruft.

	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Re-work, add bits
	for beginning iconv support.
	Remove _GLIBCPP_HAS_WCHAR_MIN_MAX, roll into _GLIBCPP_USE_WCHAR_T
	macro.
	* acconfig.h: Remove _GLIBCPP_HAS_WCHAR_MIN_MAX.
	* bits/limits_generic.h: Remove.
	* src/gen-num-limits.cc: Same.

	* src/locale.cc: Tweaks.

	* bits/char_traits.h: Tweaks.

From-SVN: r34352
2000-06-02 07:24:15 +00:00
Mark Mitchell cc057ef343 cp-tree.h (lang_decl_flags): Add anticipated_p.
* cp-tree.h (lang_decl_flags): Add anticipated_p.
	(DECL_ANTICIPATED): Use it.

From-SVN: r34351
2000-06-02 05:45:34 +00:00
J"orn Rennecke aff2c0666a sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
* sh.h (CPP_SPEC): Add -D__NOMACSAVE__ for -mnomacsave.
	(CONDITIONAL_REGISTER_USAGE): Mac registers are call used
	for TARGET_NOMACSAVE.
	(NOMACSAVE_BIT): Define.
	(TARGET_NOMACSAVE): Define.
	(TARGET_SWITCHES): Add "nomacsave".

From-SVN: r34350
2000-06-02 00:36:32 +01:00
Jason Merrill 18fa855f72 restore comment
From-SVN: r34349
2000-06-01 19:16:50 -04:00
Toshiyasu Morita 400d1b199f * sh.md (untyped_call): Remove excess parameters
From-SVN: r34348
2000-06-02 00:14:27 +01:00
Bryce McKinlay 6518c7b51f re GNATS gcj/127 (gcj dumps core on method invocation on a primitive type)
2000-05-23  Bryce McKinlay  <bryce@albatross.co.nz>

       * parse.y (patch_method_invocation): Don't try to lookup methods
       in primitive types.

(This fixes the PR gcj/127:
 http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00011.html)

From-SVN: r34347
2000-06-01 13:43:37 -07:00