Commit Graph

86 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
a6458d1ddd configure.in: Call AC_HEADER_SYS_WAIT.
* configure.in: Call AC_HEADER_SYS_WAIT.
        * pexecute.c: Include sys/wait.h when !IN_GCC.

From-SVN: r23711
1998-11-19 10:05:03 +00:00
Kaveh Ghazi
9f3b55830c Regenerate config.in (accidentally omitted from last patch.)
From-SVN: r23700
1998-11-18 19:49:11 +00:00
Kaveh R. Ghazi
a9acf74156 configure.in: Check for calloc.
* configure.in: Check for calloc.
        * calloc.c: New file.
        * xmalloc.c (xcalloc): New function.

From-SVN: r23642
1998-11-13 16:36:04 +00:00
Andrew MacLeod
a49fb37af2 cplus-dem.c (demangle_prefix): Use the last __ in the mangled name when looking for the signature.
* cplus-dem.c (demangle_prefix): Use the last __
in the mangled name when looking for the signature. This allows
template names to begin with __.

From-SVN: r23627
1998-11-13 05:55:40 +00:00
Mark Mitchell
ec2288ffe0 cplus-dem.c (type_kind_t): Add tk_reference.
* cplus-dem.c (type_kind_t): Add tk_reference.
	(demangle_template_value_parm): Handle it.
	(do_type): Use it for references, instead of tk_pointer.

From-SVN: r23572
1998-11-08 13:20:53 +00:00
Mark Mitchell
0e714131c8 cplus-dem.c (demangle_template_value_parm): Use cplus_demangle, not internal_cplus_demangle.
* cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
	not internal_cplus_demangle.

From-SVN: r23570
1998-11-08 13:13:03 +00:00
Kaveh R. Ghazi
2931b6d47f choose-temp.c: Don't include gansidecl.h.
* choose-temp.c: Don't include gansidecl.h.
        * mkstemp.c: Likewise.
        * pexecute.c: Likewise.

From-SVN: r23560
1998-11-07 13:03:59 +00:00
Kaveh R. Ghazi
c5f7c4459e pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining whether to include config.h.
* pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
        whether to include config.h.  Possibly include unistd.h in the
        !IN_GCC case.  Define VFORK_STRING as a printable function call
        for error messages (either "vfork" or "fork".)  If HAVE_VFORK_H is
        defined, include vfork.h.  If VMS is defined, define vfork()
        appropriately.  Remove vfork check on USG, we're using autoconf.
        (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
        locally what string to use.

From-SVN: r23499
1998-11-02 07:24:47 +00:00
Mark Mitchell
ad3ef78e25 splay-tree.c: Tweak include directives to make sure declarations of xmalloc and free are...
* splay-tree.c: Tweak include directives to make sure declarations of
	xmalloc and free are available.

From-SVN: r23358
1998-10-26 23:24:48 +00:00
Mark Mitchell
224301c1b9 cplus-dem.c (gnu_special): Fix handling of virtual tables in anonymous namespaces.
* cplus-dem.c (gnu_special): Fix handling of virtual tables in
	anonymous namespaces.

From-SVN: r23324
1998-10-25 23:10:09 +00:00
Mark Mitchell
d9db46fd48 cplus-dem.c (work_stuff): Replace const_type and volatile_type with type_quals.
* cplus-dem.c (work_stuff): Replace const_type and volatile_type
	with type_quals.
	(TYPE_UNQUALIFIED): New macro.
	(TYPE_QUAL_CONST): Likewise.
	(TYPE_QUAL_VOLATILE): Likewise.
	(TYPE_QUAL_RESTRICT): Likewise.
	(code_for_qualifier): New function.
	(qualifier_string): Likewise.
	(demangle_qualifier): Likewise.
	(internal_cplus_demangle): Use them.
	(demangle_signature): Likewise.
	(demangle_template_value_parm): Likewise.
	(do_type): Likewise.
	(demangle_fund_type)): Likewise.

From-SVN: r23260
1998-10-23 16:36:15 +00:00
Mark Mitchell
91063b5138 cplus-dem.c (work_stuff): Replace const_type and volatile_type with type_quals.
* cplus-dem.c (work_stuff): Replace const_type and volatile_type
	with type_quals.
	(TYPE_UNQUALIFIED): New macro.
	(TYPE_QUAL_CONST): Likewise.
	(TYPE_QUAL_VOLATILE): Likewise.
	(TYPE_QUAL_RESTRICT): Likewise.
	(code_for_qualifier): New function.
	(qualifier_string): Likewise.
	(demangle_qualifier): Likewise.
	(internal_cplus_demangle): Use them.
	(demangle_signature): Likewise.
	(demangle_template_value_parm): Likewise.
	(do_type): Likewise.
	(demangle_fund_type)): Likewise.
	* Makefile.in (hash.h): Run gperf when necessary.
	* cp-tree.h (CP_TYPE_READONLY): Remove.
	(CP_TYPE_VOLATILE): Likewise.
	(CP_TYPE_QUALS): New macro.
	(CP_TYPE_CONST_P): Likewise.
	(CP_TYPE_VOLATILE_P): Likewise.
	(CP_TYPE_RESTRICT_P): Likewise.
	(CP_TYPE_CONST_NON_VOLATILE_P): Likewise.
	(cp_build_type_variant): Rename to ...
	(cp_build_qualified_type): New function.
	(c_apply_type_quals_to_decl): Declare.
	(SIGNATURE_POINTER_NAME_FORMAT): Modify to allow `restrict'.
	(SIGNATURE_REFERENCE_NAME_FORMAT): Likewise.
	(cp_type_qual_from_rid): New function.
	(compparms): Remove unused parameter.  All callers changed.
	(cp_type_quals): New function.
	(at_least_as_qualified_p): Likewise.
	(more_qualified_p): Likewise.
	* call.c (standard_conversion): Replace calls to
	cp_build_type_variant with cp_build_qualified_type.  Use
	CP_TYPE_QUALS to get qualifiers and at_least_as_qualified_p to
	compare them.  Use CP_TYPE_* macros to check qualifiers.
	(reference_binding): Likewise.
	(implicit_conversion): Likewise.
	(add_builtin_candidates): Likewise.
	(build_over_call): Likewise.
	* class.c (overrides): Compare all qualifiers, not just `const',
	on method declarations.
	* cvt.c (convert_to_reference): More CP_TYPE_QUALS conversion, etc.
	(convert_pointer_to_real): Likewise.
	(type_promotes_to): Likewise.
	* decl.c (check_for_uninitialized_const_var): New function.
	(init_decl_processing): More CP_TYPE_QUALS conversion, etc.
	(cp_finish_decl): Use check_for_uninitialized_const_var.
	(grokdeclarator): More CP_TYPE_QUALS conversion, etc.  Update to
	handle `restrict'.
	(grok_ctor_properties): Likewise.
	(grok_op_properties): Likewise.
	(start_function): Likewise.
	(rever_static_member_fn): Likewise.
	* decl2.c (grok_method_quals): Likewise.
	(grokfield): Likewise.
	* error.c (dump_readonly_or_volatile): Rename to ...
	(dump_qualifiers): New function.  Handle `restrict'.
	(dump_type_real): Use it.
	(dump_aggr_type): Likewise.
	(dump_type_prefix): Likewise.
	(dump_type_suffix): Likewise.
	(dump_function_decl): Likewise.
	(cv_as_string): Likewise.
	* gxx.gperf: Add __restrict and __restrict__.
	* gxxint.texi: Document `u' as used for `__restrict', and a few
	other previously undocumented codes.
	* hash.h: Regenerated.
	* init.c (expand_aggr_init): More CP_TYPE_QUALS conversion, etc.
	(build_member_call): Likewise.
	(build_new_1): Likewise.
	* lex.c (init_parse): Add entry for RID_RESTRICT.
	(cons_up_default_function): More CP_TYPE_QUALS conversion, etc.
	(cp_type_qual_from_rid): Define.
	* lex.h (enum rid): Add RID_RESTRICT.
	* method.c (process_modifiers): Deal with `restrict'.
	* parse.y (primary): More CP_TYPE_QUALS conversion, etc.
	* parse.c: Regenerated.
	* pt.c (convert_nontype_argument): More CP_TYPE_QUALS conversion, etc.
	(tsubst_aggr_type): Likewise.
	(tsubst): Likewise.
	(check_cv_quals_for_unify): Likewise.
	(unify): Likewise.
	* rtti.c (init_rtti_processing): Likewise.
	(build_headof): Likewise.
	(get_tinfo_var): Likewise.
	(buidl_dynamic_cast_1): Likewise.  Fix `volatile' handling.
	(expand_class_desc): Likewise.
	(expand_attr_desc): Likewise.
	(synthesize_tinfo_fn): Likewise.
	* search.c (covariant_return_p): Likewise.  Fix `volatile' handling.
	(get_matching_virtual): Likewise.
	(expand_upcast_fixups): Likewise.
	* sig.c (build_signature_pointer_or_reference_name): Take
	type_quals, not constp and volatilep.
	(build_signature_pointer_or_reference_type): Likewise.
	(match_method_types): More CP_TYPE_QUALS conversion, etc.
	(build_signature_pointer_constructor): Likewise.
	(build_signature_method_call): Likewise.
	* tree.c (build_cplus_array_type): Likewise.
	(cp_build_type_variant): Rename to ...
	(cp_build_qualified_type): New function.  Deal with `__restrict'.
	(canonical_type_variant): More CP_TYPE_QUALS conversion, etc.
	(build_exception_variant): Likewise.
	(mapcar): Likewise.
	* typeck.c (qualif_type): Likewise.
	(common_type): Likewise.
	(comptypes): Likewise.
	(comp_cv_target_types): Likewise.
	(at_least_as_qualified_p): Define.
	(more_qualified_p): Likewise.
	(comp_cv_qualification): More CP_TYPE_QUALS conversion, etc.
	(compparms): Likewise.
	(inline_conversion): Likewise.
	(string_conv_p): Likewise.
	(build_component_ref): Likewise.
	(build_indirect_ref): Likewise.
	(build_array_ref): Likewise.
	(build_unary_op): Likewise.
	(build_conditional_expr): Likewise.
	(build_static_cast): Likewise.
	(build_c_cast): Likewise.
	(build_modify_expr): Likewise.
	(convert_For_assignment): Likewise.
	(comp_ptr_ttypes_real): Likewise.
	(cp_type_quals): New function.

From-SVN: r23258
1998-10-23 14:53:28 +00:00
Kaveh R. Ghazi
b056ad1c68 splay-tree.c (splay_tree_foreach_helper): Make definition static to match prototype.
* splay-tree.c (splay_tree_foreach_helper): Make definition static
        to match prototype.

From-SVN: r23230
1998-10-22 17:00:43 +00:00
Mark Mitchell
ed87f9c827 splay-tree.c: New file.
* splay-tree.c: New file.
	* Makefile.in (CFILES): Add it.
	(REQUIRED_OFILES): Likewise.
	(splay-tree.o): Add dependencies.

From-SVN: r23210
1998-10-21 09:19:13 +00:00
Andreas Schwab
e0c13971df cplus-dem.c (demangle_qualified): Fix off-by-one when checking range of 'K' index.
Tue Oct 20 12:29:02 1998  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
        * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
        range of 'K' index.

From-SVN: r23202
1998-10-20 12:30:45 +00:00
Kaveh R. Ghazi
91e0f659c9 Warning fixes:
* choose-temp.c: Prototype mkstemps() when IN_GCC.
        * cplus-dem.c (consume_count): Cast argument of ctype macro to
        `unsigned char'.
        (cplus_demangle_opname): Cast the result of `strlen' to (int) when
        comparing against one.
        (cplus_mangle_opname): Likewise.
        (demangle_integral_value): Cast argument of ctype macro to
        `unsigned char'.
        (demangle_template_value_parm): Likewise.
        (demangle_template): Initialize variable `bindex'.  Cast the
        result of `strlen' to (int) when comparing against one.  Remove
        unused variable `start_of_value_parm'.
        (demangle_class_name): Cast the result of `strlen' to (int) when
        comparing against one.
        (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
        (gnu_special): Likewise.  Cast the result of `strlen' to (int)
        when comparing against one.
        (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
        (get_count): Likewise.
        (do_type): Likewise.  Cast the result of `strlen' to (int) when
        comparing against one.
        (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
        (demangle_function_name): Cast the result of `strlen' to (int)
        when comparing against one.
        * mkstemp.c (mkstemps): Cast variable `len' to (int) when
        comparing against one.

From-SVN: r23113
1998-10-15 15:55:04 +00:00
Jeffrey A Law
ae76f1bedd mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
* mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
        * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
        * config.in, configure: Rebuilt.

From-SVN: r23067
1998-10-13 17:08:18 -06:00
Jeffrey A Law
73aeb2ff9b getopt.c: Check HAVE_STRINGS_H before including strings.h.
* getopt.c: Check HAVE_STRINGS_H before including strings.h.
        * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
        * config.in, configure: Rebuilt.

From-SVN: r23065
1998-10-13 16:59:40 -06:00
Michael Tiemann
f77d841359 Fix parallel make problem.
* Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.

From-SVN: r23029
1998-10-12 10:45:24 -07:00
Jeff Law
ca6b370dc8 Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
* Merge egcs & devo libiberty.

From-SVN: r22941
1998-10-08 16:48:52 -06:00
Martin v. Löwis
ab4856b150 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
From-SVN: r22335
1998-09-08 14:33:57 -04:00
Kaveh R. Ghazi
96e88994f8 mkstemp.c: Include config.h even when not IN_GCC.
* mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
       inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
       IN_GCC.
       * vasprintf.c: Include stdarg.h/varargs.h first.
       * vprintf.c: Likewise.

From-SVN: r22314
1998-09-07 20:37:13 +00:00
Jeffrey A Law
f45da49cd6 pexecute.c: Updates from gcc.
* pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
        is the canonical copy.  Define ISSPACE if !IN_GCC.
        * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
        * getopt1.c, obstack.c: Similarly.
        * Makefile.in: Build mkstemp.o

From-SVN: r22259
1998-09-05 06:24:41 -06:00
Jeffrey A Law
7520c31b2d pexecute.c: Updates from gcc.
* pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
        is the canonical copy.  Define ISSPACE if !IN_GCC.
        * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
        * getopt1.c: Similarly.
        * Makefile.in: Build mkstemp.o

From-SVN: r22257
1998-09-05 06:10:25 -06:00
Jeffrey A Law
16ba4214ee pexecute.c: Updates from gcc.
* pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
        is the canonical copy.  Define ISSPACE if !IN_GCC.
        * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c: Similarly.
        * Makefile.in: Build mkstemp.o

From-SVN: r22252
1998-09-05 05:09:09 -06:00
Jeff Law
29382d668f pexecute.c: Updates from gcc.
* pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
        is the canonical copy.  Define ISSPACE if !IN_GCC.
        * alloca.c, vfprintf.c: Similarly.

From-SVN: r22249
1998-09-05 04:42:19 -06:00
Jeffrey A Law
3f3726a3fe pexecute.c: Updates from gcc.
* pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
        is the canonical copy.  Define ISSPACE if !IN_GCC.

From-SVN: r22243
1998-09-04 20:26:35 -06:00
Mumit Khan
9b559a2720 cplus-dem.c (work_stuff): Add dllimported.
x
	* cplus-dem.c (work_stuff): Add dllimported.
	(demangled_prefix): Mark symbols imported from PE DLL.
	(internal_cplus_demangled): Handle.

From-SVN: r21852
1998-08-19 07:05:52 -06:00
Mumit Khan
28235a5ca8 cplus-dem.c (work_stuff): Add dllimported.
�
	* cplus-dem.c (work_stuff): Add dllimported.
	(demangled_prefix): Mark symbols imported from PE DLL.
	(internal_cplus_demangled): Handle.

From-SVN: r21851
1998-08-19 07:05:50 -06:00
Jason Merrill
09007174da tweak
From-SVN: r21799
1998-08-17 14:46:03 -04:00
Jason Merrill
5210f3d05f cplus-dem.c (do_type): Fix simple array handling.
* cplus-dem.c (do_type): Fix simple array handling.  If we fail,
	stay failed.

From-SVN: r21798
1998-08-17 14:39:16 -04:00
Kaveh R. Ghazi
a782562574 cplus-dem.c: Include config.h if it exists.
* cplus-dem.c: Include config.h if it exists.  Also, only
        prototype malloc/realloc if we can't get stdlib.h.

From-SVN: r21787
1998-08-17 05:42:54 -06:00
Mark Mitchell
4d17a06f32 cplus-dem.c (type_kind_t): New type.
* cplus-dem.c (type_kind_t): New type.
	(demangle_template_value_parm): Add type_kind_t parameter.  Rely
	on this paramter, rather than demangling the type again.
	(demangle_integral_value): Pass tk_integral.
	(demangle_template_: Pass the value returned from do_type.
	(do_type): Return a type_kind_t.  Pass tk_integral to
	demangle_template_value_parm for array bounds.
	(demangle_fund_type): Likewise.

From-SVN: r21434
1998-07-28 11:45:32 +00:00
Kaveh R. Ghazi
d94f5c58a8 This fixes a problem when using KNR compilers.
* cplus-dem.c (demangle_nested_args): Make function definition
        static to match the prototype.

From-SVN: r21281
1998-07-19 05:28:57 +00:00
Jason Merrill
4d59ab3fda tweak formatting
From-SVN: r21145
1998-07-14 12:16:52 -04:00
Mark Mitchell
8a2a7ea294 Update entry for last change to include more details.
From-SVN: r21102
1998-07-13 10:55:11 +00:00
Mark Mitchell
9923cc566f cplus-dem.c: Incorporate changes from GCC version not present in the libiberty version.
* cplus-dem.c: Incorporate changes from GCC version not present in
	the libiberty version.

From-SVN: r21101
1998-07-13 10:54:01 +00:00
Mumit Khan
6391b50a28 * configure.in (checkfuncs): Add missing "'".
From-SVN: r20144
1998-05-30 17:19:36 -06:00
Andreas Schwab
10c62dce04 * Makefile.in (distclean): Don't remove alloca-conf.h
From-SVN: r19987
1998-05-23 16:32:53 -06:00
Hans-Peter Nilsson
911c3b7d7c cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
�
        * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.

From-SVN: r19945
1998-05-21 18:39:52 -06:00
Hans-Peter Nilsson
75f6bf44da cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
�
        * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.

From-SVN: r19944
1998-05-21 18:39:51 -06:00
Mike Stump
7b195f77b7 Makefile.in: Add a dependency on stamp-picdir for the objects...
* Makefile.in: Add a dependency on stamp-picdir for the
        objects, so that we can do a parallel build.

From-SVN: r19942
1998-05-21 18:20:51 -06:00
Mark Mitchell
1cc7529801 * cplus-dem.c (do_type): Handle volatile qualification.
From-SVN: r19932
1998-05-21 15:22:54 +00:00
Manfred Hollstein
39d6585022 configure.in: Check for unistd.h as well.
�
	* configure.in: Check for unistd.h as well.
	* configure: Rebuild.
	* config.in: Rebuild.
	* getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
	is defined in unistd.h. Reformat conditional block for easier reading.
	* config.table (shared): Default to no if ${enable_shared}
	is unset or empty; this logic is used by the toplevel
	configure scripts, too.

From-SVN: r19925
1998-05-21 07:52:43 +00:00
Manfred Hollstein
b9256371fa configure.in: Check for unistd.h as well.
0
	* configure.in: Check for unistd.h as well.
	* configure: Rebuild.
	* config.in: Rebuild.
	* getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
	is defined in unistd.h. Reformat conditional block for easier reading.
	* config.table (shared): Default to no if ${enable_shared}
	is unset or empty; this logic is used by the toplevel
	configure scripts, too.

From-SVN: r19924
1998-05-21 07:52:41 +00:00
Manfred Hollstein
3fe97d74ad configure.in: Check for unistd.h as well.
�
	* configure.in: Check for unistd.h as well.
	* configure: Rebuild.
	* config.in: Rebuild.
	* getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
	is defined in unistd.h. Reformat conditional block for easier reading.
	* config.table (shared): Default to no if ${enable_shared}
	is unset or empty; this logic is used by the toplevel
	configure scripts, too.

From-SVN: r19923
1998-05-21 07:52:38 +00:00
Jeffrey A Law
c295379590 config.table: Add line to set enable_shared in the Makefile as needed.
* config.table: Add line to set enable_shared in the Makefile
        as needed.

From-SVN: r19805
1998-05-16 07:02:37 -06:00
Jeff Law
0bc0cd11e7 Initial revision
From-SVN: r19799
1998-05-16 00:20:36 -06:00
Jeff Law
3affd5f0f4 Update from Cygnus libiberty.
libiberty uses autoconf now.

From-SVN: r19791
1998-05-15 17:42:58 -06:00
Jeff Law
fe806bddb8 This commit was generated by cvs2svn to compensate for changes in r19789,
which included commits to RCS files with non-trunk default branches.

From-SVN: r19790
1998-05-15 17:21:05 -06:00