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

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.