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

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.