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

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.