Niels Nesse eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
..
config eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
testsuite eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
.gitignore eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
COPYING.LIB eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
ChangeLog eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
ChangeLog.jit eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
Makefile.in eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
README eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
_doprnt.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
aclocal.m4 eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
alloca.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
argv.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
asprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
at-file.texi eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
atexit.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
basename.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
bcmp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
bcopy.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
bsearch.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
bzero.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
calloc.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
choose-temp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
clock.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
concat.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
config.h-vms eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
config.in eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
configure eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
configure.ac eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
configure.com eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
copying-lib.texi eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
copysign.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
cp-demangle.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
cp-demangle.h eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
cp-demint.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
cplus-dem.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
crc32.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
d-demangle.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
dwarfnames.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
dyn-string.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
fdmatch.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
ffs.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
fibheap.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
filename_cmp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
floatformat.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
fnmatch.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
fnmatch.txh eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
fopen_unlocked.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
functions.texi eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
gather-docs eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
getcwd.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
getopt.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
getopt1.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
getpagesize.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
getpwd.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
getruntime.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
gettimeofday.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
hashtab.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
hex.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
index.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
insque.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
lbasename.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
libiberty.texi eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
lrealpath.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
maint-tool eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
make-relative-prefix.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
make-temp-file.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
makefile.vms eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
md5.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
memchr.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
memcmp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
memcpy.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
memmem.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
memmove.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
mempcpy.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
memset.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
mkstemps.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
msdos.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
objalloc.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
obstack.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
obstacks.texi eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
partition.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pex-common.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pex-common.h eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pex-djgpp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pex-msdos.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pex-one.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pex-unix.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pex-win32.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pexecute.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
pexecute.txh eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
physmem.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
putenv.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
random.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
regex.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
rename.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
rindex.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
safe-ctype.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
setenv.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
setproctitle.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
sha1.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
sigsetmask.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
simple-object-coff.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
simple-object-common.h eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
simple-object-elf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
simple-object-mach-o.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
simple-object-xcoff.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
simple-object.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
simple-object.txh eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
snprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
sort.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
spaces.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
splay-tree.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
stack-limit.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
stpcpy.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
stpncpy.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strcasecmp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strchr.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strdup.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strerror.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strncasecmp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strncmp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strndup.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strnlen.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strrchr.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strsignal.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strstr.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strtod.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strtol.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strtoll.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strtoul.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strtoull.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
strverscmp.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
timeval-utils.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
tmpnam.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
unlink-if-ordinary.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vasprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vfork.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vfprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vprintf-support.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vprintf-support.h eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vsnprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
vsprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
waitpid.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xasprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xatexit.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xexit.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xmalloc.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xmemdup.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xstrdup.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xstrerror.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xstrndup.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden
xvasprintf.c eb72d50f44 Import gcc 5.2.0 from tarball 9 jaren geleden

README

This directory contains the -liberty library of free software.
It is a collection of subroutines used by various GNU programs.
Current members include:

getopt -- get options from command line
obstack -- stacks of arbitrarily-sized objects
strerror -- error message strings corresponding to errno
strtol -- string-to-long conversion
strtoul -- string-to-unsigned-long conversion

We expect many of the GNU subroutines that are floating around to
eventually arrive here.

The library must be configured from the top source directory. Don't
try to run configure in this directory. Follow the configuration
instructions in ../README.

Please report bugs to "gcc-bugs@gcc.gnu.org" and send fixes to
"gcc-patches@gcc.gnu.org". Thank you.

ADDING A NEW FILE
=================

There are two sets of files: Those that are "required" will be
included in the library for all configurations, while those
that are "optional" will be included in the library only if "needed."

To add a new required file, edit Makefile.in to add the source file
name to CFILES and the object file to REQUIRED_OFILES.

To add a new optional file, it must provide a single function, and the
name of the function must be the same as the name of the file.

* Add the source file name to CFILES in Makefile.in and the object
file to CONFIGURED_OFILES.

* Add the function to name to the funcs shell variable in
configure.ac.

* Add the function to the AC_CHECK_FUNCS lists just after the
setting of the funcs shell variable. These AC_CHECK_FUNCS calls
are never executed; they are there to make autoheader work
better.

* Consider the special cases of building libiberty; as of this
writing, the special cases are newlib and VxWorks. If a
particular special case provides the function, you do not need
to do anything. If it does not provide the function, add the
object file to LIBOBJS, and add the function name to the case
controlling whether to define HAVE_func.

Finally, in the build directory of libiberty, configure with
"--enable-maintainer-mode", run "make maint-deps" to update
Makefile.in, and run 'make stamp-functions' to regenerate
functions.texi.

The optional file you've added (e.g. getcwd.c) should compile and work
on all hosts where it is needed. It does not have to work or even
compile on hosts where it is not needed.

ADDING A NEW CONFIGURATION
==========================

On most hosts you should be able to use the scheme for automatically
figuring out which files are needed. In that case, you probably
don't need a special Makefile stub for that configuration.

If the fully automatic scheme doesn't work, you may be able to get
by with defining EXTRA_OFILES in your Makefile stub. This is
a list of object file names that should be treated as required
for this configuration - they will be included in libiberty.a,
regardless of whatever might be in the C library.