John David Anglin
8191fe819a
re PR other/10810 (gcc-3.3 fails make check: buffer overrun in test_demangle.c)
...
PR other/10810
* test-demangle.c (getline): Fix fence-post error.
From-SVN: r67499
2003-06-05 16:38:22 +00:00
Nick Clifton
8d398258b5
asprintf.c: Change comment to note that -1 is returned upon error.
...
vasprintf.c: Likewise. (vasprintf): Return -1 upon error.
functions.texi: Document changes to asprintf and vasprintf.
From-SVN: r67395
2003-06-03 18:19:17 +00:00
Kelley Cook
29ad6d3f11
* config.table: Accept i[345867]86 variant.
...
From-SVN: r66986
2003-05-19 22:49:26 -04:00
Jim Blandy
49a19cfd34
hex.c (_hex_value): Make this unsigned.
...
libiberty/ChangeLog:
2003-05-14 Jim Blandy <jimb@redhat.com>
* hex.c (_hex_value): Make this unsigned.
(hex_value): Update documentation for new return type. hex_value
now expands to an unsigned int expression, to avoid unexpected
sign extension when we store it in a bfd_vma, which is larger than
int on some platforms.
* functions.texi: Regenerated.
include/ChangeLog:
2003-05-14 Jim Blandy <jimb@redhat.com>
* libiberty.h (hex_value): Make the value an unsigned int, to
avoid unexpected sign-extension when cast to unsigned types larger
than int --- like bfd_vma, on some platforms.
(_hex_value): Update declaration.
From-SVN: r66840
2003-05-15 19:02:13 +00:00
Jason Merrill
9d70d418db
s/burtle/iterative
...
From-SVN: r66577
2003-05-07 16:30:32 -04:00
Josef Zlomek
d5d4eae28d
splay-tree.c (splay_tree_predecessor): Fix comment.
...
* splay-tree.c (splay_tree_predecessor): Fix comment.
(splay_tree_successor): Fix comment.
From-SVN: r66569
2003-05-07 18:19:36 +00:00
Jason Merrill
5cc5a0d00d
hashtab.c (burtle_hash): New fn.
...
libiberty/
* hashtab.c (burtle_hash): New fn.
* configure.in: Add AC_C_BIGENDIAN_CROSS.
* aclocal.m4: Include accross.m4.
* configure, config.in: Regenerate.
include/
* hashtab.h (burtle_hash): Prototype.
(burtle_hash_object): New macro.
From-SVN: r66565
2003-05-07 14:07:58 -04:00
Kaveh R. Ghazi
05c30f2224
configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
...
* configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
* configure: Regenerate.
From-SVN: r66467
2003-05-04 22:14:18 +00:00
Carlo Wood
41fe940407
cp-demangle.c: Fix typo in "char_traints" string-literal.
...
2003-05-03 Carlo Wood <carlo@alinoe.com>
* cp-demangle.c: Fix typo in "char_traints" string-literal.
From-SVN: r66427
2003-05-03 14:09:35 +00:00
Kaveh R. Ghazi
52dd322420
vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
...
* vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
(main): Test that we don't write too much data.
From-SVN: r65955
2003-04-22 19:58:57 +00:00
Kaveh R. Ghazi
bd3fbc6b72
configure.in (funcs, [...]): Add snprintf and vsnprintf.
...
* configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
vsnprintf.
* snprintf.c, vsnprintf.c: New files.
* Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
(CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
Regenerate dependencies.
* functions.texi, configure, config.in: Regenerated.
From-SVN: r65704
2003-04-16 22:42:07 +00:00
Kaveh Ghazi
733340fb05
Fix typo in last checkin.
...
From-SVN: r65676
2003-04-16 04:42:38 +00:00
Kaveh R. Ghazi
029bcc09d2
mempcpy.c, [...]: New files.
...
* mempcpy.c, stpcpy.c, stpncpy.c: New files.
* configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
and stpncpy.
* Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
(CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
Regenerate dependencies.
* functions.texi, configure, config.in: Regenerated.
From-SVN: r65674
2003-04-16 02:56:46 +00:00
Kaveh R. Ghazi
c9ac9147cf
argv.c: Fix comments.
...
* argv.c: Fix comments.
* calloc.c: Don't unnecessarily include "libiberty.h".
(bzero): Add prototype.
* floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
* getcwd.c (getcwd): Use standard definition to avoid conflicts
with system headers.
* hashtab.c (htab_traverse): Delete unused variables.
* rename.c: Include "ansidecl.h".
(rename): Use standard definition to avoid conflicts with system
headers.
* strsignal.c: Rely on ANSI_PROTOTYPES.
* strstr.c: Check GNUC >= 2, not GNUC == 2.
* vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
* vprintf.c: Include "ansidecl.h" earlier, rely on
ANSI_PROTOTYPES.
* vsprintf.c: Include "ansidecl.h" earlier, rely on
ANSI_PROTOTYPES and possibly include <stdarg.h>.
* Makefile.in: Regenerate dependencies.
From-SVN: r65659
2003-04-15 20:36:33 +00:00
DJ Delorie
98475c572e
* maint-tool (deps): Scan for headers in $srcdir also.
...
From-SVN: r65653
2003-04-15 15:21:38 -04:00
Kaveh R. Ghazi
55adc7bd57
re PR target/10338 ([3.3 regression?] [Cygwin -> tic4x | avr] cross target compilation error)
...
gcc:
PR target/10338
PR bootstrap/10198
PR bootstrap/10140
* fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
libiberty:
PR target/10338
PR bootstrap/10198
PR bootstrap/10140
* getopt.c (exchange, _getopt_initialize): Use mempcpy not
__mempcpy.
* regex.c (regerror): Likewise.
From-SVN: r65634
2003-04-15 14:24:26 +00:00
Roger Sayle
0ae0f1b084
argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
...
* argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
* memchr.c: Likewise.
* strcasecmp.c: Likewise.
* strncasecmp.c: Likewise.
* strncmp.c: Likewise.
* xatexit.c: Likewise.
* xmalloc.c: Likewise.
* copysign.c: Use traditional function declaration instead of DEFUN.
* sigsetmask.c: Likewise.
* memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
* memset.c: Likewise.
* memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
* memmove.c: Likewise.
From-SVN: r65619
2003-04-15 03:35:47 +00:00
Roger Sayle
88702c45a6
* strdup.c (strdup): Tweak implementation to use memcpy.
...
From-SVN: r65616
2003-04-15 02:11:43 +00:00
Kaveh R. Ghazi
39e8d04986
configure.in (HAVE_UINTPTR_T): Always define.
...
* configure.in (HAVE_UINTPTR_T): Always define.
* configure: Regenerated.
From-SVN: r65574
2003-04-14 14:29:14 +00:00
Alexandre Oliva
9f2e060862
Makefile.in (MULTIOSDIR): New macro.
...
* Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
instead of $$CC alone.
(install_to_tooldir): Use it.
From-SVN: r64745
2003-03-23 10:15:50 +00:00
Jan Hubicka
dbccdc4211
ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
...
* ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
* hashtab.h (htab_traverse_noresize): Declare.
* hashtab.c (htab_traverse_noresize): Break out from ...
* hashtab.c (htab_traverse): ... here.
From-SVN: r64496
2003-03-17 17:59:58 +00:00
Jan Hubicka
cd22e4af59
* hashtab.c (htab_expand): Fix warning.
...
From-SVN: r64249
2003-03-12 16:43:21 +00:00
Jan Hubicka
0a8e3de3c8
hashtab.c (htab_expand): Compute the size of hashtable based on the number of elements actually used.
...
* hashtab.c (htab_expand): Compute the size of hashtable based
on the number of elements actually used.
(htab_traverse): Call htab_expand when table is too empty.
From-SVN: r64246
2003-03-12 14:15:09 +00:00
Carlo Wood
8fe857758f
cplus-dem.c (demangle_integral_value): Correction to reflect patch of 2002-01-10 in order to also make negative...
...
* cplus-dem.c (demangle_integral_value): Correction to reflect
patch of 2002-01-10 in order to also make negative multi-digits
without leading underscore work.
From-SVN: r64179
2003-03-11 14:55:46 -05:00
Mark Mitchell
3bf2782272
* cplus-dem.c: Add license exception to copyright notice.
...
From-SVN: r63760
2003-03-04 02:57:16 +00:00
Kaveh R. Ghazi
434fa0b8ca
* physmem.c: Formatting changes from upstream.
...
From-SVN: r63519
2003-02-27 20:18:20 +00:00
Danny Smith
ed935c3531
physmem.c (physmem_total): Add _WIN32 support.
...
2003-02-24 Danny Smith <dannysmith@users.source.forge.net>
* physmem.c (physmem_total): Add _WIN32 support.
(physmem_available): Likewise.
From-SVN: r63504
2003-02-27 13:44:27 +00:00
Rainer Orth
7f9fc00642
physmem.c (physmem_total): Test for GSI_PHYSMEM.
...
* physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
GSI_PHYSMEM.
(physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
From-SVN: r63373
2003-02-24 19:31:49 +00:00
Kaveh R. Ghazi
d47f75c469
configure.in: Check for sys/systemcfg.h and _system_configuration.
...
* configure.in: Check for sys/systemcfg.h and
_system_configuration.
* physmem.c: Add support for AIX. Tweek formatting as per
upstream coreutils beta.
From-SVN: r63287
2003-02-22 15:39:16 +00:00
Kaveh R. Ghazi
170230b723
configure.in: Check for sys/sysctl.h and sysctl.
...
* configure.in: Check for sys/sysctl.h and sysctl.
* physmem.c: Add support for *bsd and darwin.
* Makefile.in: Generate depedency for physmem.o.
Co-Authored-By: Geoffrey Keating <geoffk@apple.com>
Co-Authored-By: Richard Earnshaw <rearnsha@arm.com>
From-SVN: r63285
2003-02-22 15:17:36 +00:00
Rainer Orth
4a06f7f2ec
physmem.c (physmem_total): Use getsysinfo on Tru64 UNIX.
...
* physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
Tru64 UNIX.
(physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
Tru64 UNIX.
* configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
machine/hal_sysinfo.h, sys/table.h.
(checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
* configure, config.in: Regenerate.
From-SVN: r63241
2003-02-21 20:33:50 +00:00
Kaveh R. Ghazi
64c7e556ab
configure.in: Check for sys/sysmp.h and sysmp.
...
* configure.in: Check for sys/sysmp.h and sysmp.
* physmem.c: Pull upstream copy, add support for irix6.
* config.in, configure: Regenerated.
From-SVN: r63237
2003-02-21 20:15:39 +00:00
Kaveh R. Ghazi
e9019af616
physmem.c (physmem_total, [...]): De-ANSI-fy.
...
* physmem.c (physmem_total, physmem_available): De-ANSI-fy.
* configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
pstat_getdynamic.
From-SVN: r63203
2003-02-21 05:02:44 +00:00
Kaveh R. Ghazi
a354191ebf
libiberty.h (physmem_total, [...]): Prototype.
...
include:
* libiberty.h (physmem_total, physmem_available): Prototype.
libiberty:
* Makefile.in (CFILES): Add physmem.c.
(REQUIRED_OFILES): Add physmem.o.
* configure.in: Check for sys/pstat.h.
(checkfuncs): Add pstat_getstatic and pstat_getdynamic.
* physmem.c: New file, copied from textutils.
* config.in, configure: Regenerated.
From-SVN: r63198
2003-02-21 00:27:04 +00:00
Daniel Jacobowitz
4876b2b427
Makefile.in (CFILES): Add lrealpath.c.
...
* Makefile.in (CFILES): Add lrealpath.c.
(REQUIRED_OFILES): Add lrealpath.o.
(lrealpath.o): Add rule.
* aclocal.m4 (libiberty_NEED_DECLARATION): Add.
* configure.in: Add realpath and canonicalize_file_name to
checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
for canonicalize_file_name.
* lrealpath.c: New file.
* make-relative-prefix.c: Update documentation.
(make_relative_prefix): Simplify. Use lbasename and lrealpath.
* config.in: Regenerated.
* configure: Regenerated.
* functions.texi: Regenerated.
From-SVN: r63186
2003-02-20 22:11:13 +00:00
jmc
e182f0a397
* cplus_dem.c: Fix typo: intializes -> initializes.
...
From-SVN: r63182
2003-02-20 15:31:18 -05:00
Alexandre Oliva
3343fdd21c
configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to config.status.
...
* configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
config.status.
* configure: Rebuilt.
From-SVN: r63159
2003-02-20 09:08:45 +00:00
Daniel Jacobowitz
902cf50c93
re PR c++/7612 (Memory leaks in cplus-dem.c)
...
Fix PR c++/7612.
* cplus-dem.c (demangle_signature): Call string_delete.
Remove extra string_init.
(demangle_arm_hp_template): Call string_delete instead of
string_clear. Add missing string_delete call.
(demangle_qualified): Add missing string_delete call.
(do_type): Remove unused variable btype. Add missing string_delete
call. Call string_delete instead of string_clear.
(demangle_fund_type): Move variable btype inside of the switch
statement. Add missing string_delete call.
(do_arg): Call string_delete instead of string_clear. Remove extra
string_init.
(demangle_nested_args): Free work->previous_argument.
From-SVN: r62852
2003-02-13 17:21:20 +00:00
Kaveh R. Ghazi
7ac27e08a3
acconfig.h: New file.
...
* acconfig.h: New file. Add uintptr_t.
* config.in: Regenerated.
From-SVN: r62811
2003-02-13 01:54:07 +00:00
Joseph Myers
b3a8389d18
fastjar.texi: Update to GFDL 1.2.
...
fastjar:
* fastjar.texi: Update to GFDL 1.2.
gcc:
* doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
* doc/install.texi: Update copyright dates. Update to GFDL 1.2.
gcc/ada:
* gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
* gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
gnat_ug_wnt.texi: Regenerate.
gcc/f:
* g77.texi, invoke.texi: Update to GFDL 1.2.
gcc/java:
* gcj.texi: Update to GFDL 1.2.
gcc/treelang:
* treelang.texi: Update to GFDL 1.2.
libiberty:
* libiberty.texi: Update to GFDL 1.2.
libstdc++-v3:
* docs/html/17_intro/porting.texi: Update to GFDL 1.2.
* docs/html/17_intro/porting.html: Regenerate.
From-SVN: r62365
2003-02-04 01:27:53 +00:00
Christian Cornelssen
d8c22ce740
Makefile.in (libiberty_topdir): New subst.
...
* Makefile.in (libiberty_topdir): New subst.
(mkinstalldirs): Redefine in terms of the above.
* configure.in: AC_SUBST it.
* configure: Regenerate.
From-SVN: r62155
2003-01-30 14:02:12 -05:00
Christian Cornelssen
4ce1921a71
* Makefile.in (all-subdir, check-subdir, installcheck-subdir)
...
(info-subdir, install-info-subdir, clean-info-subdir)
(dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
(clean-subdir, distclean-subdir, maintainer-clean-subdir):
Pass $(FLAGS_TO_PASS).
From-SVN: r62013
2003-01-28 21:52:14 +00:00
Alexandre Oliva
93239fdba0
Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use /$$CC -print-multi-os-directory
.
...
* Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
/`$$CC -print-multi-os-directory`.
From-SVN: r61938
2003-01-28 01:48:39 +00:00
Daniel Jacobowitz
74828682c7
hashtab.h (htab_alloc_with_arg, [...]): Add new types.
...
include/
* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types.
(struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f.
(htab_create_alloc_ex): New prototype.
(htab_set_functions_ex): New prototype.
libiberty/
* hashtab.c (htab_create_alloc_ex): New function.
(hatab_set_functions_ex): New function.
(htab_delete, htab_expand): Support alternate allocation functions.
From-SVN: r61820
2003-01-26 07:09:41 +00:00
Christopher Faylor
ece0e59fbc
configure.in: Remove special pex-cygwin consideration.
...
* configure.in: Remove special pex-cygwin consideration.
* configure: Regenerate.
* pex-cygwin.c: Remove.
* Makefile.in: Remove pex-cygwin.[co] lines.
From-SVN: r61744
2003-01-24 18:23:18 -05:00
Zack Weinberg
55d0e5e022
Makefile.in (CFILES): Add pex-*.c.
...
* Makefile.in (CFILES): Add pex-*.c.
(REQUIRED_OFILES): Change pexecute.o to @pexecute@
(CONFIGURED_OFILES): Add pex-*.o.
(TEXIFILES): Add pexecute.txh.
(pexecute.o): Delete rule.
(pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
pex-unix.o, pex-win32.o): New rules.
* configure.in: Change AC_INIT argument to xmalloc.c.
Compute appropriate pexecute implementation and substitute it
as @pexecute@.
* pexecute.c: Split up into...
* pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
new files.
* functions.texi: Regenerate.
* configure: Regenerate.
From-SVN: r61728
2003-01-24 20:02:11 +00:00
Josef Zlomek
120cdf68d5
* hashtab.c (htab_expand): Fix allocation of new entries.
...
From-SVN: r61507
2003-01-20 18:41:01 +00:00
Christian Cornelssen
d7082cd712
Makefile.in (install_to_libdir, [...]): Add a mkinstalldirs command.
...
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (install_to_libdir, install_to_tooldir): Add a
mkinstalldirs command.
From-SVN: r61083
2003-01-09 09:10:57 +01:00
Christian Cornelssen
90e5b39f8e
Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
...
libf2c:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
(install, uninstall): Prepend $(DESTDIR) to destination
paths in all (un)installation commands.
libiberty:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
libobjc:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
(install-libs, install-headers): Prepend $(DESTDIR) to
destination paths in all (un)installation commands.
libstdc++:
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* include/Makefile.am (install-data-local): Prepend
$(DESTDIR) to destination paths in all (un)installation
commands. Use ${c_base_builddir} and ${std_builddir}
as destination subdirectories to achieve consistency with
preceding mkinstalldirs commands. No effect because both
variables contain "." only.
* include/Makefile.in: Regenerate.
From-SVN: r61082
2003-01-09 09:08:30 +01:00
Danny Smith
eaed9290d6
make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX): Define for hosts with HOST_EXECUTABLE_SUFFIX.
...
* make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
Define for hosts with HOST_EXECUTABLE_SUFFIX.
From-SVN: r59797
2002-12-04 01:57:27 +00:00