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

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.