Commit Graph

53 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
3affd5f0f4 Update from Cygnus libiberty.
libiberty uses autoconf now.

From-SVN: r19791
1998-05-15 17:42:58 -06:00
Peter Schauer
63586755e5 cplus-dem.c (cplus_demangle_opname): Initialize work.
* cplus-dem.c (cplus_demangle_opname):  Initialize work.
Bring over from devo.

From-SVN: r19787
1998-05-15 17:02:07 -06:00
Kaveh R. Ghazi
d6f4ec5199 Warning fixes:
* Makefile.in (c-lang.o): Depend on c-tree.h, c-lex.h and toplev.h.
	(c-lex.o): Depend on output.h.
	(c-common.o): Likewise.
	(stmt.o): Likewise.
	(calls.o): Likewise.
	(integrate.o): Depend on toplev.h.
	(regclass.o): Depend on output.h.
	(final.o): Depend on reload.h.
	* c-common.c: Include output.h.
	(check_format_info): Remove unused variable `integral_format'.
	* c-decl.c (print_lang_decl): Mark parameters `file', `node' and
	`indent' with ATTRIBUTE_UNUSED.
	(print_lang_type): Likewise.
	(maybe_build_cleanup): Likewise for parameter `decl'.
	(copy_lang_decl): Likewise for parameter `node'.
	* c-lang.c: Include c-tree.h, c-lex.h and toplev.h.
	(lang_print_xnode): Mark parameters `file', `node' and `indent'
 	with ATTRIBUTE_UNUSED.
	(lookup_interface): Likewise for parameter `arg'.
	(is_class_name): Likewise.
	(maybe_objc_check_decl): Likewise for parameter `decl'.
	(maybe_objc_comptypes): Likewise for parameters `lhs', `rhs' and
	`reflexive'.
	(maybe_objc_method_name): Likewise for parameter `decl'.
	(build_objc_string): Likewise for parameters `len' and `str'.
	* c-lex.c: Include output.h.
	* c-lex.h (position_after_white_space): Correct typo in prototype.
	* c-tree.h (finish_file, c_expand_start_cond, c_expand_start_else,
 	c_expand_end_cond, init_iterators): Add prototypes.
	* caller-save.c (set_reg_live): Mark parameters `reg' and `setter'
	with ATTRIBUTE_UNUSED.
	* calls.c: Include output.h.
	* cccp.c (pipe_closed): Mark parameter `signo' with
 	ATTRIBUTE_UNUSED.
	* combine.c: Move inclusion of expr.h to after insn-config.h.
	* iris6.h (ASM_IDENTIFY_GCC, ASM_IDENTIFY_LANGUAGE): Don't define
	as empty, rather define as ((void)0).
	* sparc.c (sparc_check_64): Add braces around ambiguous `else'.
	Add parentheses around assignment used as truth value.
	* cplus-dem.c (squangle_mop_up): Change return type to void.
	(internal_cplus_demangle): Remove unused parameter `options'.
	All callers changed.
	(cplus_demangle_opname): Remove function wide variable `int i' and
 	replace with `size_t i' at each location where it is used.
	(cplus_demangle_opname): change type of `i' from int to size_t.
	* cppexp.c (right_shift): Mark parameter `pfile' with
	ATTRIBUTE_UNUSED.
	* cpphash.c (cpp_lookup): Likewise.
	(cpp_hash_cleanup): Likewise.
	* cpplib.c (parse_name): Add a prototype and make it static.
	(null_underflow): Mark parameter `pfile' with ATTRIBUTE_UNUSED.
	(null_cleanup): Likewise for parameters `pbuf' and `pfile'.
	(macro_cleanup): Likewise for parameter `pfile'.
	(file_cleanup): Likewise.
	* cpplib.h (cpp_reader_init, cpp_options_init, cpp_start_read,
 	cpp_read_check_assertion, skip_rest_of_line): Add prototypes.
	* crtstuff.c (force_to_data, __CTOR_LIST__, force_to_data,
	__DTOR_END__, __FRAME_END__): Mark with ATTRIBUTE_UNUSED.
	* cse.c (cse_check_loop_start): Mark parameter `set' with
 	ATTRIBUTE_UNUSED.
	* dbxout.c (flag_minimal_debug, have_used_extensions,
	source_label_number): Move inside macro wrapper check against
	defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO).
	* dwarf2out.c (gen_entry_point_die): Hide prototype and definition.
	* except.h (doing_eh): Provide prototype.
	* expr.c: Move inclusion of expr.h to after insn-config.h.
	* final.c: Include reload.h.
	(shorten_branches): Cast the first argument of bzero to char *.
	* fix-header.c (cpp_print_containing_files): Mark parameter
 	`pfile' with ATTRIBUTE_UNUSED.
	(cpp_fatal): Likewise.
	* flow.c (find_basic_blocks_1): Cast the first argument of bzero
	to char *.
	* genattrtab.c (make_length_attrs): Change the type of variable
	`i' from int to size_t.
	(zero_fn): Mark parameter `exp' with ATTRIBUTE_UNUSED.
	(one_fn): Likewise.
	* genextract.c (main): When generating insn-extract.c, mark
	variable `junk' with ATTRIBUTE_UNUSED.
	* gengenrtl.c (gencode): When generating genrtl.c, cast the first
	argument of bzero to char*.
	* integrate.c: Include toplev.h.
	* libgcc2.c: Wrap `struct exception_table' and
	`find_exception_handler' in macro DWARF2_UNWIND_INFO.
	* objc/Make-lang.in (objc-act.o): Depend on toplev.h.
	* objc/objc-act.c: Include toplev.h.
	(lang_print_xnode): Mark parameters `file', `node' and `indent'
	with ATTRIBUTE_UNUSED.
	(finish_protocol): Likewise for parameter `protocol'.
	* output.h (declare_weak): Add prototype.
	(decode_reg_name): Don't wrap with TREE_CODE macro.
	(assemble_alias): Add prototype.
	* regclass.c: Include output.h.
	* reload.h (reloads_conflict): Add prototype.
	* rtl.h (print_rtl_single, mark_elimiation, reg_class_subset_p,
	output_func_start_profiler): Add prototypes.
	* rtlanal.c (reg_set_p_1): Mark parameters `x' and `pat' with
 	ATTRIBUTE_UNUSED.
	* scan-decls.c: Include scan.h.
	* scan.h (recognized_function, recognized_extern): Add prototypes.
	* stmt.c: Include output.h.
	* toplev.c (error_for_asm, warning_for_asm): Remove prototypes.
	(output_lang_identify): Hide prototype and definition.
	(float_signal): Mark parameter `signo' with ATTRIBUTE_UNUSED.
	(pipe_closed): Likewise.
	* toplev.h (count_error, strip_off_ending, error_for_asm,
 	warning_for_asm): Add prototypes.

From-SVN: r19712
1998-05-13 12:40:39 +00:00
Andrew MacLeod
0762341703 cplus-dem.c (demangle_qualified): Add a missing else which caused qualified...
cplus-dem.c (demangle_qualified): Add a missing else which caused
qualified names with temp,lates to be demangled improperly.

From-SVN: r19433
1998-04-27 12:59:51 +00:00
Andreas Schwab
7bf407413f cplus-dem.c (gnu_special): Fix off-by-one bug when checking the length in the name of a virtual table.
* cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
	length in the name of a virtual table.

From-SVN: r19417
1998-04-26 11:41:36 -04:00
Andrew MacLeod
5e5199e86c cplus-dem.c: Add code to enable demangling of names produced with the -fsquangle option.
* cplus-dem.c:  Add code to enable demangling of names produced
                with the -fsquangle option.

From-SVN: r19371
1998-04-22 08:04:13 +00:00
Jeffrey A Law
9ee02b5c40 * cplus-dem.c: Sync with gcc.
From-SVN: r19077
1998-04-09 18:45:43 -06:00
Kaveh R. Ghazi
4cb1caaf7b Patched in the gcc directory:
* Makefile.in (choose-temp.o): Depend on system.h.
Patched in both the libiberty and gcc directories:
        * choose-temp.c: Include system.h when IN_GCC.

From-SVN: r18952
1998-04-02 11:07:45 +00:00
Mark Mitchell
f9c8545454 cplus-dem.c (optable): Add sizeof.
* cplus-dem.c (optable): Add sizeof.
	(demangle_template_value_parm): New function containing code
	previously found in demangle_template.
	(demangle_integral_value): New function which handles complicated
	integral expressions.
	(demangle_template): Use them.

From-SVN: r18930
1998-04-01 13:48:48 +00:00
Manfred Hollstein
0a9e7530d9 config.table: Make locating frag files failsafe even for the special case if...
* config.table: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.
	* configure.in: Make locating frag files failsafe even for the
	special case if configuring and building in srcdir.

From-SVN: r18410
1998-03-05 00:28:10 +00:00
Ian Lance Taylor
b9fb3c420b choose-temp.c: Fix handling of sys/file.h to work in libiberty.
Mon Feb 23 14:33:15 1998  Ian Lance Taylor  <ian@cygnus.com>
        * choose-temp.c: Fix handling of sys/file.h to work in libiberty.

From-SVN: r18240
1998-02-25 16:09:55 -07:00
Jeff Law
1ce26fc44c Tweak various entries to make them match devo.
From-SVN: r18175
1998-02-22 09:58:47 -07:00
Jeff Law
76a8b46efe vmsbuild.com [...]: Synchronized with Makefile.in: Add fnmatch.o and objalloc.o; remove vasprintf.o.
P
        * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
        Add fnmatch.o and objalloc.o; remove vasprintf.o.
        [config.h]: Define NEED_strsignal.
        * functions.def: Correct argument types for strerror and
        strsignal.  Reported by Alex Gutman <agutman@emc.com>.

From-SVN: r18172
1998-02-22 09:55:23 -07:00
Jeff Law
5890bc92d4 cplus-dem.c (gnu_special): Don't get confused by .<digits> strings that are not actually lengths.
* cplus-dem.c (gnu_special): Don't get confused by .<digits>
	strings that are not actually lengths.
	* config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
	since it gets built automatically
	* vasprintf.c (int_vasprintf): Increase buffer size for float/double
	values.

From-SVN: r18171
1998-02-22 09:53:40 -07:00
Jeff Law
8b715b2abc alloca-norm.h (alloca, GCC case): Don't redefine alloca if it was alr eady defined previously.
* alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
        was alr eady defined previously.
        * Makefile.in (INSTALL): Use ../install-sh, not install.

From-SVN: r18170
1998-02-22 09:46:27 -07:00
Ian Lance Taylor
b134508bdf getopt.c: Update to latest FSF version.
* getopt.c: Update to latest FSF version.
        * getopt1.c: Likewise.
Bring over from devo.

From-SVN: r18169
1998-02-22 09:44:13 -07:00
Manfred Hollstein
f5c3ae66ff Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
* Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
        (.c.o): Check value of enable_shared, not PICFLAG.
        (stamp-picdir): Dito.

From-SVN: r17681
1998-02-05 17:33:49 -07:00
Mike Stump
c00f2b9d1a config.table (vxworks configs): Default to VxWorks 5.x, as that is the currently shipping OS.
�
        * config.table (vxworks configs): Default to VxWorks 5.x, as that is
        the currently shipping OS.

From-SVN: r17571
1998-01-31 18:51:19 -07:00
Mumit Khan
77aff45955 Add mingw32 support.
* pexecute.c (pexecute): New function for mingw32. Supports pipes.
        (pwait): New function for mingw32.
        * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
        * config/mt-mingw32: New file.
        * xmalloc.c (first_break): Not used for mingw32.
        (xmalloc_set_program_name): Don't use sbrk on mingw32.
        (xmalloc): Likewise.
        (xrealloc): Likewise.

Co-Authored-By: J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>

From-SVN: r17395
1998-01-17 14:30:39 -07:00
Jeffrey A Law
84f79fea91 * choose-temp.c: Sync with gcc.
From-SVN: r17394
1998-01-17 14:23:29 -07:00
Jeffrey A Law
e7757d6919 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
From-SVN: r16952
1997-12-04 17:22:32 -07:00
Jody Goldberg
0c23b0b21f * Makefile.in (CFILES): Add pexecute.c.
From-SVN: r16226
1997-10-28 23:39:04 -07:00
Ian Lance Taylor
a6e74b833c asprintf.c: Consistently use either stdarg or varargs.
* asprintf.c: Consistently use either stdarg or varargs.

Bring over from devo.

From-SVN: r15929
1997-10-16 01:39:03 -06:00
Jason Merrill
19ddc834bc cplus-dem.c (demangle_signature): Don't look for return types on constructors.
Tue Oct 14 12:01:00 1997  Mark Mitchell  <mmitchell@usa.net>

	* cplus-dem.c (demangle_signature): Don't look for return types on
	constructors.  Handle member template constructors.

and update from devo.

From-SVN: r15901
1997-10-14 15:10:45 -04:00
Mark Mitchell
a3a5b5b7bf cplus-dem.c (demangle_template): Add new parameter.
Sun Sep 28 12:00:52 1997  Mark Mitchell  <mmitchell@usa.net>

        * cplus-dem.c (demangle_template): Add new parameter.  Handle new
        template-function mangling.
        (consume_count_with_underscores): New function.
        (demangle_signature): Handle new name-mangling scheme.

From-SVN: r15778
1997-09-28 15:37:05 -04:00
Jim Wilson
c6b50f1082 Patch from Alexandre Oliva to fix SunOS4 install problem.
* Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
	to all filenames in libdir and tooldir.

From-SVN: r15210
1997-09-09 19:46:16 -07:00