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

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.