Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (21 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28dir.info
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libiberty/ChangeLog

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1 2003-02-05  Release Manager
    2 
    3         * GCC 3.2.2 Released.
     12004-02-14  Release Manager
     2
     3        * GCC 3.3.3 Released.
     4
     52003-11-12  Daniel Jacobowitz  <drow@mvista.com>
     6
     7        Backport from mainline:
     8        2003-02-20  Daniel Jacobowitz  <drow@mvista.com>
     9
     10        * Makefile.in (CFILES): Add lrealpath.c.
     11        (REQUIRED_OFILES): Add lrealpath.o.
     12        (lrealpath.o): Add rule.
     13        * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
     14        * configure.in: Add realpath and canonicalize_file_name to
     15        checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
     16        for canonicalize_file_name.
     17        * lrealpath.c: New file.
     18        * make-relative-prefix.c: Update documentation.
     19        (make_relative_prefix): Simplify.  Use lbasename and lrealpath.
     20        * config.in: Regenerated.
     21        * configure: Regenerated.
     22        * functions.texi: Regenerated.
     23
     242003-10-16  Release Manager
     25
     26        * GCC 3.3.2 Released.
     27
     282003-08-04  Release Manager
     29
     30        * GCC 3.3.1 Released.
     31
     322003-08-04  Release Manager
     33
     34        * GCC 3.3.1 Released.
     35
     362003-06-19  Dara Hazeghi  <dhazeghi@yahoo.com>
     37
     38        * configure.in: Add check for malloc.h needed by
     39        m68k for function free().
     40        * configure: Regenerated.
     41        * config.in: Add HAVE_MALLOC_H.
     42        * hashtab.c: include malloc.h were available for
     43        free().
     44
     452003-06-09  Albert Chin-A-Young  <china@thewrittenword.com>
     46       
     47        PR bootstrap/10974
     48        * physmem.c: Update comment.
     49        * configure.in: Modify test for _system_configuration for older
     50        AIX systems.
     51
     52        * config.in, configure: Regenerated.
     53       
     542003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
     55
     56        PR other/10810
     57        * test-demangle.c (getline): Fix fence-post error.
     58
     592003-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     60
     61        Backport from mainline:
     62        2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     63       
     64        * vsprintf.c: Include "ansidecl.h" earlier, rely on
     65        ANSI_PROTOTYPES and possibly include <stdarg.h>.
     66
     672003-05-14  Carlo Wood  <carlo@alinoe.com>
     68
     69        * cp-demangle.c: Fix typo in "char_traints" string-literal.
     70
     712003-05-13  Release Manager
     72
     73        * GCC 3.3 Released.
     74
     752003-05-13  Release Manager
     76
     77        * GCC 3.3 Released.
     78
     792003-05-13  Release Manager
     80
     81        * GCC 3.3 Released.
     82
     832003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     84
     85        PR target/10338
     86        PR bootstrap/10198
     87        PR bootstrap/10140
     88        * getopt.c (exchange, _getopt_initialize): Use mempcpy not
     89        __mempcpy.
     90        * regex.c (regerror): Likewise.
     91
     922003-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     93
     94        * configure.in (HAVE_UINTPTR_T): Always define.
     95        * configure: Regenerated.
     96
     972003-03-23  Alexandre Oliva  <aoliva@redhat.com>
     98
     99        * Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
     100        instead of $$CC alone.
     101        (install_to_tooldir): Use it.
     102
     1032003-03-03  Mark Mitchell  <mark@codesourcery.com>
     104
     105        * cplus-dem.c: Add license exception to copyright notice.
     106
     1072003-02-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     108
     109        * physmem.c: Formatting changes from upstream.
     110
     1112003-02-24  Danny Smith  <dannysmith@users.source.forge.net>
     112
     113        * physmem.c (physmem_total): Add _WIN32 support.
     114        (physmem_available): Likewise.
     115
     1162003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
     117
     118        * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
     119        GSI_PHYSMEM.
     120        (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
     121
     1222003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     123
     124        * configure.in: Check for sys/systemcfg.h and
     125        _system_configuration.
     126        * physmem.c: Add support for AIX.  Tweek formatting as per
     127        upstream coreutils beta.
     128
     1292003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     130            Richard Earnshaw  <rearnsha@arm.com>
     131            Geoffrey Keating  <geoffk@apple.com>
     132       
     133        * configure.in: Check for sys/sysctl.h and sysctl.
     134        * physmem.c: Add support for *bsd and darwin.
     135        * Makefile.in: Generate depedency for physmem.o.
     136
     1372003-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
     138
     139        * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
     140        Tru64 UNIX.
     141        (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
     142        Tru64 UNIX.
     143
     144        * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
     145        machine/hal_sysinfo.h, sys/table.h.
     146        (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
     147        * configure, config.in: Regenerate.
     148
     1492003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     150
     151        * configure.in: Check for sys/sysmp.h and sysmp.
     152        * physmem.c: Pull upstream copy, add support for irix6.
     153
     154        * config.in, configure: Regenerated.
     155
     1562003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     157
     158        * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
     159        * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
     160        pstat_getdynamic.
     161
     1622003-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     163
     164        * Makefile.in (CFILES): Add physmem.c.
     165        (REQUIRED_OFILES): Add physmem.o.
     166        * configure.in: Check for sys/pstat.h.
     167        (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
     168        * physmem.c: New file, copied from textutils.
     169
     170        * config.in, configure: Regenerated.
     171
     1722003-02-20  Alexandre Oliva  <aoliva@redhat.com>
     173
     174        * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
     175        config.status.
     176        * configure: Rebuilt.
     177
     1782003-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     179
     180        * acconfig.h: New file.  Add uintptr_t.
     181        * config.in: Regenerated.
     182
     1832003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
     184
     185        * libiberty.texi: Update to GFDL 1.2.
    4186
    51872003-02-02  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
     
    18200        Pass $(FLAGS_TO_PASS).
    19201
    20 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
    21 
    22         * Makefile.in (mkinstalldirs): New variable.
    23         (FLAGS_TO_PASS): Also pass DESTDIR.
    24         (install_to_libdir, install_to_tooldir): Add $(mkinstalldirs)
    25         command.  Prepend $(DESTDIR) to destination paths.
    26         Cd to destination directory for post-install work.
    27 
    282022003-01-27  Alexandre Oliva  <aoliva@redhat.com>
    29203
     
    31205        /`$$CC -print-multi-os-directory`.
    32206
     2072003-01-26  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
     208
     209        * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
     210        (install_to_libdir, install_to_tooldir): Add a mkinstalldirs
     211        command.
     212
    332132003-01-20  Josef Zlomek  <zlomekj@suse.cz>
    34214
    35215        * hashtab.c (htab_expand): Fix allocation of new entries.
    36216
    37 2002-11-19  Release Manager
    38 
    39         * GCC 3.2.1 Released.
    40 
    41 2002-11-19  Release Manager
    42 
    43         * GCC 3.2.1 Released.
    44 
    45 2002-11-18  Release Manager
    46 
    47         * GCC 3.2.1 Released.
    48 
    49 2002-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     2172002-12-04  Danny Smith  <dannysmith@users.sourceforge.net>
     218
     219        * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
     220        Define for hosts with HOST_EXECUTABLE_SUFFIX.
     221
     2222002-11-24  Nick Clifton  <nickc@redhat.com>
     223
     224        * make-relative-prefix.c (make_relative_prefix): Ensure return
     225        string is empty before using strcat to construct it.
     226
     2272002-11-22  Daniel Jacobowitz  <drow@mvista.com>
     228
     229        * Makefile.in: Add make-relative-prefix.c.
     230        * make-relative-prefix.c: New file.
     231        * functions.texi: Rebuilt.
     232
     2332002-11-16  Jakub Jelinek  <jakub@redhat.com>
     234
     235        * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
     236        used with arguments in traditional C' warnings.
     237
     2382002-10-16  Jakub Jelinek  <jakub@redhat.com>
     239
     240        * config.table: Use mh-s390pic for s390x too.
     241
     2422002-10-06  Andreas Jaeger  <aj@suse.de>
     243
     244        * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
     245        variable and of strict-aliasing warning.
     246        (grow_vect): Use char as first parameter.
     247
     2482002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
    50249
    51250        * Makefile.in (all): Fix multilib parallel build.
    52251
    53 2002-08-14  Release Manager
    54 
    55         * GCC 3.2 Released.
    56 
    57 2002-07-25  Release Manager
    58 
    59         * GCC 3.1.1 Released.
     2522002-09-19  John David Anglin  <dave@hiuly1.hia.nrc.ca>
     253
     254        * cp-demangle.c (demangling_new): Cast 0 to enum.
     255        (demangle_char): Cast return of strdup to char *.
     256        (is_gnu_v3_mangled_ctor): Cast 0 to enum.
     257        (is_gnu_v3_mangled_dtor): Likewise.
     258        * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
     259        (work_stuff_copy_to_from): Cast return of xmalloc to char **.
     260        * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
     261        * md5.c (md5_process_bytes): Cast results back to const void *.
     262        (md5_process_block): Add cast to const md5_uint32 *.
     263        * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
     264        * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
     265        unsigned short.
     266        * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
     267        to void *.
     268        * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
     269
     2702002-09-19  Nick Clifton  <nickc@redhat.com>
     271
     272        * README: Update email addresses for bugs and patches.
     273
     2742002-09-10  Mike Stump  <mrs@apple.com>
     275
     276        * splay-tree.c (splay_tree_successor): Fix comments.
     277
     2782002-09-11  Zack Weinberg  <zack@codesourcery.com>
     279
     280        * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
     281        * testsuite/Makefile.in: Adjust for test-demangle.
     282        * testsuite/regress-demangle: Deleted.
     283        * testsuite/test-demangle.c: New file.
     284        * testsuite/demangle-expected: Change \$ to $ throughout, now that
     285        this file is not being read by a shell script.
     286
     2872002-09-05  Roger Sayle  <roger@eyesopen.com>
     288
     289        * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
     290
     2912002-08-07  DJ Delorie  <dj@redhat.com>
     292
     293        * regex.c (re_error_msgid): Just use a simple array of strings.
     294        (re_compile_pattern): Compensate.
     295        (re_comp): Likewise.
     296        (re_comp): Likewise.
     297        (regerror): Likewise.
     298
     2992002-07-29  Neil Booth  <neil@daikokuya.co.uk>
     300
     301        * cplus-dem.c (PREPEND_BLANK): Remove.
     302
     3032002-07-10  Jason Merrill  <jason@redhat.com>
     304
     305        * cp-demangle.c (demangle_identifier): Support extended Unicode
     306        characters.
     307
     3082002-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
     309
     310        * cp-demangle.c (demangle_v3_with_details): Wrap in
     311        !defined IN_GLIBCPP_V3.
    60312
    613132002-07-01  Mark Mitchell  <mark@codesourcery.com>
     
    65317        (demangle_expression): Handle expressions with types as arguments.
    66318
    67 2002-05-31  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
     3192002-06-30  Douglas Rupp  <rupp@gnat.com>
     320
     321        * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
     322        * Makefile.in (OUTPUT_OPTION): Use.
     323
     3242002-06-22  Peter Breitenlohner <peb@mppmu.mpg.de>
     325
     326        * Makefile.in (install_to_libdir): Add $(DESTDIR).
     327        (install_to_tooldir): Likewise.
     328
     3292002-06-17  Douglas Rupp  <rupp@gnat.com>
     330
     331        * lbasename.c: Add 2002 to copyright.
     332        (IS_DIR_SEPARATOR): Remove VMS junk.
     333
     3342002-06-05  Geoffrey Keating  <geoffk@redhat.com>
     335
     336        * hashtab.c (htab_create): New stub function for backward
     337        compatibility.
     338        (htab_try_create): Likewise.
     339
     3402002-06-03  Geoffrey Keating  <geoffk@redhat.com>
     341
     342        * hashtab.c (htab_create): Delete.
     343        (htab_try_create): Delete.
     344        (htab_create_alloc): New.
     345        (htab_delete): Support user-specified memory allocation.
     346        (htab_expand): Likewise.
     347
     3482002-05-22  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
    68349
    69350        * configure.in: Fix typo in the code checking for sys_errlist.
    70351        * configure: Regenerated.
    71352
    72 2002-05-14  Release Manager
    73 
    74         * GCC 3.1 Released.
     3532002-05-13  Andreas Schwab  <schwab@suse.de>
     354
     355        * config.table: Use mh-x86pic also for x86-64.
    75356
    763572002-05-08  Alexandre Oliva  <aoliva@redhat.com>
     
    80361        * configure: Rebuilt.
    81362
     3632002-05-07  Mark Mitchell  <mark@codesourcery.com>
     364
     365        * configure.in (AC_TYPE_PID_T): Use it.
     366        * configure: Regenerated.
     367        * getruntime.c: Include <sys/types.h>.
     368        * waitpid.c: Likewise.  Use pid_t, not int, as the type of "pid".
     369
    823702002-04-09  Richard Henderson  <rth@redhat.com>
    83371
     
    85373        (find_empty_slot_for_expand): Don't compute hash2 unless needed.
    86374        (htab_find_slot_with_hash): Likewise.
    87 
    88 2002-04-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
    89 
    90         * splay-tree.c (splay_tree_xmalloc_allocate): Use K & R syntax.
    91         (splay_tree_xmalloc_deallocate): Likewise.
    92375
    933762002-04-01  Phil Edwards  <pme@gcc.gnu.org>
     
    1003832002-03-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
    101384
    102         * cp-demangle.c (java_demangle_v3): Don't try to release "demangled" 
     385        * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
    103386        if it is NULL.
    104387
     3882002-03-27  DJ Delorie  <dj@redhat.com>
     389
     390        * hex.c: Add documentation.
     391        (_hex_value): Provide non-ASCII empty table.
     392        (hex_init): Initialize the non-ASCII table.
     393        * functions.texi: Regenerate.
     394
    1053952002-03-27  Mark Mitchell  <mark@codesourcery.com>
    106396
    107397        * dyn-string.c: Add libgcc exception to copyright notice.
     398
     3992002-03-26  H.J. Lu  (hjl@gnu.org)
     400
     401        * config.table: Support --with-build-subdir.
     402        * configure.in: Likewise.
     403        * configure: Rebuild.
    108404
    1094052002-03-18  Stuart Griffith  <Stuart_Griffith@credence.com>
     
    120416
    121417        * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
     418
     4192002-03-06  Jim Blandy  <jimb@redhat.com>
     420
     421        * splay-tree.c (splay_tree_xmalloc_allocate,
     422        splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
     423        prototyped definitions.  Mark `data' arguments as unused.
     424
     4252002-03-06  Andrew Cagney  <ac131313@redhat.com>
     426
     427        * floatformat.c (floatformat_arm_ext_big): Delete definition.
     428
     4292002-03-04  Phil Edwards  <pme@gcc.gnu.org>
     430
     431        * configure.in:  Add --enable-install-libiberty option.
     432        * Makefile.in (INSTALLED_HEADERS):  New variable.
     433        (install_to_libdir):  Possibly also copy headers.
     434        * configure:  Regenerated.
     435
     4362002-03-04  Neil Booth  <neil@daikokuya.demon.co.uk>
     437
     438        * xmalloc.c (xmalloc_fail): Clarify error message further.
     439
     4402002-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
     441
     442        * xmalloc.c (xmalloc_fail): Clarify error message.
    122443
    1234442002-02-22  Jim Blandy  <jimb@redhat.com>
     
    4767972001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
    477798
    478         * fibheap.c (fibheap_init, fibnode_init): Remove.
    479         (fibheap_new, fibnode_new): Use xcalloc to allocate and
    480         initialize memory.
    481         (fibheap_insert): Remove check for node allocation failure.
     799        * fibheap.c (fibheap_init, fibnode_init): Remove.
     800        (fibheap_new, fibnode_new): Use xcalloc to allocate and
     801        initialize memory.
     802        (fibheap_insert): Remove check for node allocation failure.
    482803
    4838042001-08-21  Richard Henderson  <rth@redhat.com>
  • branches/GNU/src/gcc/libiberty/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11#
    22# Makefile
    3 #   Copyright (C) 1990, 91-99, 2000, 2001, 2003
     3#   Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003
    44#   Free Software Foundation
    55#
     
    3636bindir = @bindir@
    3737libdir = @libdir@
     38includedir = @includedir@
     39target_header_dir = @target_header_dir@
    3840
    3941SHELL = @SHELL@
     
    5153INSTALL_DATA = @INSTALL_DATA@
    5254mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs
     55
     56# Some compilers can't handle cc -c blah.c -o foo/blah.o.
     57OUTPUT_OPTION = @OUTPUT_OPTION@
    5358
    5459AR = @AR@
     
    118123          $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \
    119124        else true; fi
    120         $(COMPILE.c) $<
     125        $(COMPILE.c) $< $(OUTPUT_OPTION)
    121126
    122127# NOTE: If you add new files to the library, add them to this list
     
    133138        index.c insque.c                                                \
    134139        lbasename.c                                                     \
     140        lrealpath.c make-relative-prefix.c                              \
    135141        make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c     \
    136142         memset.c mkstemps.c                                            \
    137143        objalloc.c obstack.c                                            \
    138         partition.c pexecute.c putenv.c                                 \
     144        partition.c pexecute.c physmem.c putenv.c                       \
    139145        random.c regex.c rename.c rindex.c                              \
    140146        safe-ctype.c setenv.c sigsetmask.c sort.c spaces.c              \
     
    157163        hashtab.o hex.o                                                 \
    158164        lbasename.o                                                     \
     165        lrealpath.o make-relative-prefix.o                              \
    159166        make-temp-file.o                                                \
    160167        objalloc.o obstack.o                                            \
    161         partition.o pexecute.o                                          \
     168        partition.o physmem.o pexecute.o                                \
    162169        safe-ctype.o sort.o spaces.o splay-tree.o strerror.o            \
    163170         strsignal.o                                                    \
     
    185192        waitpid.o
    186193
     194# These files are installed if the library has been configured to do so.
     195INSTALLED_HEADERS =                                                     \
     196        $(INCDIR)/ansidecl.h                                            \
     197        $(INCDIR)/demangle.h                                            \
     198        $(INCDIR)/dyn-string.h                                          \
     199        $(INCDIR)/fibheap.h                                             \
     200        $(INCDIR)/floatformat.h                                         \
     201        $(INCDIR)/hashtab.h                                             \
     202        $(INCDIR)/libiberty.h                                           \
     203        $(INCDIR)/objalloc.h                                            \
     204        $(INCDIR)/partition.h                                           \
     205        $(INCDIR)/safe-ctype.h                                          \
     206        $(INCDIR)/sort.h                                                \
     207        $(INCDIR)/splay-tree.h                                          \
     208        $(INCDIR)/ternary.h
     209
    187210$(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
    188211        -rm -f $(TARGETLIB) pic/$(TARGETLIB)
     
    241264
    242265install_to_libdir: all
    243         $(mkinstalldirs) $(DESTDIR)$(libdir)$(MULTISUBDIR)
     266        ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
    244267        $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n
    245         ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) && \
    246           $(RANLIB) $(TARGETLIB)n && \
    247           mv -f $(TARGETLIB)n $(TARGETLIB) )
     268        ( cd $(DESTDIR)$(libdir)$(MULTISUBDIR) ; $(RANLIB) $(TARGETLIB)n )
     269        mv -f $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)n $(DESTDIR)$(libdir)$(MULTISUBDIR)/$(TARGETLIB)
     270        if test -n "${target_header_dir}"; then \
     271          case "${target_header_dir}" in \
     272            /*)    thd=${target_header_dir};; \
     273            *)     thd=${includedir}${MULTISUBDIR}/${target_header_dir};; \
     274          esac; \
     275          ${mkinstalldirs} $(DESTDIR)$${thd}; \
     276          for h in ${INSTALLED_HEADERS}; do \
     277            ${INSTALL_DATA} $$h $(DESTDIR)$${thd}; \
     278          done; \
     279        fi
    248280        @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
    249281
     282# This is tricky.  Even though CC in the Makefile contains
     283# multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
     284# default multilib, so we have to take LIBCFLAGS into account as well,
     285# since it will be passed the multilib flags.
     286MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory`
    250287install_to_tooldir: all
    251         $(mkinstalldirs) $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`
    252         $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory`/$(TARGETLIB)n
    253         ( cd $(DESTDIR)$(tooldir)/lib/`$$CC -print-multi-os-directory` && \
    254           $(RANLIB) $(TARGETLIB)n && \
    255           mv -f $(TARGETLIB)n $(TARGETLIB) )
     288        ${mkinstalldirs} $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)
     289        $(INSTALL_DATA) $(TARGETLIB) $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n
     290        ( cd $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR) ; $(RANLIB) $(TARGETLIB)n )
     291        mv -f $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)n $(DESTDIR)$(tooldir)/lib/$(MULTIOSDIR)/$(TARGETLIB)
    256292        @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
    257293
     
    408444lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
    409445        $(INCDIR)/safe-ctype.h
     446lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
     447make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
    410448make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h
    411449md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h
     
    422460pexecute.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
    423461        $(INCDIR)/safe-ctype.h
     462physmem.o: config.h $(INCDIR)/libiberty.h
    424463putenv.o: config.h $(INCDIR)/ansidecl.h
    425464random.o: $(INCDIR)/ansidecl.h
  • branches/GNU/src/gcc/libiberty/README

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1616instructions in ../README.
    1717
    18 Please report bugs and fixes to "bug-gnu-utils@prep.ai.mit.edu".  Thank you.
     18Please report bugs to "gcc-bugs@gcc.gnu.org" and send fixes to
     19"gcc-patches@gcc.gnu.org".  Thank you.
    1920
    2021ADDING A NEW FILE
  • branches/GNU/src/gcc/libiberty/aclocal.m4

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    8787fi
    8888])
     89
     90dnl See whether we need a declaration for a function.
     91AC_DEFUN(libiberty_NEED_DECLARATION,
     92[AC_MSG_CHECKING([whether $1 must be declared])
     93AC_CACHE_VAL(libiberty_cv_decl_needed_$1,
     94[AC_TRY_COMPILE([
     95#include "confdefs.h"
     96#include <stdio.h>
     97#ifdef HAVE_STRING_H
     98#include <string.h>
     99#else
     100#ifdef HAVE_STRINGS_H
     101#include <strings.h>
     102#endif
     103#endif
     104#ifdef HAVE_STDLIB_H
     105#include <stdlib.h>
     106#endif
     107#ifdef HAVE_UNISTD_H
     108#include <unistd.h>
     109#endif],
     110[char *(*pfn) = (char *(*)) $1],
     111libiberty_cv_decl_needed_$1=no, libiberty_cv_decl_needed_$1=yes)])
     112AC_MSG_RESULT($libiberty_cv_decl_needed_$1)
     113if test $libiberty_cv_decl_needed_$1 = yes; then
     114  AC_DEFINE([NEED_DECLARATION_]translit($1, [a-z], [A-Z]), 1,
     115            [Define if $1 is not declared in system header files.])
     116fi
     117])dnl
    89118
    90119# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
  • branches/GNU/src/gcc/libiberty/config.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1616#undef inline
    1717
     18/* Define if your C compiler doesn't accept -c and -o together.  */
     19#undef NO_MINUS_C_MINUS_O
     20
    1821/* Define to `int' if <sys/types.h> doesn't define.  */
    1922#undef pid_t
     
    3134#undef vfork
    3235
     36/* Define to `unsigned long' if <sys/types.h> doesn't define.  */
     37#undef uintptr_t
     38
    3339/* Define if you have the _doprnt function.  */
    3440#undef HAVE__DOPRNT
     
    5864#undef HAVE_CALLOC
    5965
     66/* Define if you have the canonicalize_file_name function.  */
     67#undef HAVE_CANONICALIZE_FILE_NAME
     68
    6069/* Define if you have the clock function.  */
    6170#undef HAVE_CLOCK
     
    7382#undef HAVE_GETRUSAGE
    7483
     84/* Define if you have the getsysinfo function.  */
     85#undef HAVE_GETSYSINFO
     86
    7587/* Define if you have the gettimeofday function.  */
    7688#undef HAVE_GETTIMEOFDAY
     
    106118#undef HAVE_PSIGNAL
    107119
     120/* Define if you have the pstat_getdynamic function.  */
     121#undef HAVE_PSTAT_GETDYNAMIC
     122
     123/* Define if you have the pstat_getstatic function.  */
     124#undef HAVE_PSTAT_GETSTATIC
     125
    108126/* Define if you have the putenv function.  */
    109127#undef HAVE_PUTENV
     
    112130#undef HAVE_RANDOM
    113131
     132/* Define if you have the realpath function.  */
     133#undef HAVE_REALPATH
     134
    114135/* Define if you have the rename function.  */
    115136#undef HAVE_RENAME
     
    163184#undef HAVE_SYSCONF
    164185
     186/* Define if you have the sysctl function.  */
     187#undef HAVE_SYSCTL
     188
     189/* Define if you have the sysmp function.  */
     190#undef HAVE_SYSMP
     191
     192/* Define if you have the table function.  */
     193#undef HAVE_TABLE
     194
    165195/* Define if you have the times function.  */
    166196#undef HAVE_TIMES
     
    193223#undef HAVE_LIMITS_H
    194224
     225/* Define if you have the <machine/hal_sysinfo.h> header file.  */
     226#undef HAVE_MACHINE_HAL_SYSINFO_H
     227
    195228/* Define if you have the <stdlib.h> header file.  */
    196229#undef HAVE_STDLIB_H
     
    211244#undef HAVE_SYS_PARAM_H
    212245
     246/* Define if you have the <sys/pstat.h> header file.  */
     247#undef HAVE_SYS_PSTAT_H
     248
    213249/* Define if you have the <sys/resource.h> header file.  */
    214250#undef HAVE_SYS_RESOURCE_H
     
    217253#undef HAVE_SYS_STAT_H
    218254
     255/* Define if you have the <sys/sysctl.h> header file.  */
     256#undef HAVE_SYS_SYSCTL_H
     257
     258/* Define if you have the <sys/sysinfo.h> header file.  */
     259#undef HAVE_SYS_SYSINFO_H
     260
     261/* Define if you have the <sys/sysmp.h> header file.  */
     262#undef HAVE_SYS_SYSMP_H
     263
     264/* Define if you have the <sys/systemcfg.h> header file.  */
     265#undef HAVE_SYS_SYSTEMCFG_H
     266
     267/* Define if you have the <sys/table.h> header file.  */
     268#undef HAVE_SYS_TABLE_H
     269
    219270/* Define if you have the <sys/time.h> header file.  */
    220271#undef HAVE_SYS_TIME_H
     
    225276/* Define if you have the <unistd.h> header file.  */
    226277#undef HAVE_UNISTD_H
     278
     279/* Define if you have the <malloc.h> header file.  */
     280#undef HAVE_MALLOC_H
    227281
    228282/* Define if errno must be declared even when <errno.h> is included. */
     
    253307#undef STACK_DIRECTION
    254308
     309/* Define if you have the _system_configuration variable. */
     310#undef HAVE__SYSTEM_CONFIGURATION
     311
     312/* Define if canonicalize_file_name is not declared in system header files. */
     313#undef NEED_DECLARATION_CANONICALIZE_FILE_NAME
     314
  • branches/GNU/src/gcc/libiberty/config.table

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
     1# Don't build the shared library for build.
     2if [ -n "${with_build_subdir}" ]; then
     3  enable_shared=no
     4fi
     5
     6frag=
    17case "${host}" in
    28  rs6000-ibm-aix3.1 | rs6000-ibm-aix)
     
    915esac
    1016
    11 frags=$frag
     17if [ -n "${frag}" ]; then
     18  frags=${libiberty_topdir}/libiberty/config/$frag
     19else
     20  frags=
     21fi
    1222
    1323# If they didn't specify --enable-shared, don't generate shared libs.
     
    1929esac
    2030if [ "${shared}" = "yes" ]; then
     31  frag=
    2132  case "${host}" in
    2233    *-*-cygwin*)        ;;
    23     alpha*-*-linux*)    frags="${frags} ../../config/mh-elfalphapic" ;;
    24     arm*-*-*)           frags="${frags} ../../config/mh-armpic" ;;
    25     hppa*-*-*)          frags="${frags} ../../config/mh-papic" ;;
    26     i[3456]86-*-*)      frags="${frags} ../../config/mh-x86pic" ;;
     34    alpha*-*-linux*)    frag=mh-elfalphapic ;;
     35    arm*-*-*)           frag=mh-armpic ;;
     36    hppa*-*-*)          frag=mh-papic ;;
     37    i[3456]86-*-* | x86_64-*-*)
     38                        frag=mh-x86pic ;;
    2739    powerpc*-*-aix*)    ;;
    28     powerpc*-*-*)       frags="${frags} ../../config/mh-ppcpic" ;;
    29     sparc*-*-*)         frags="${frags} ../../config/mh-sparcpic" ;;
    30     *-*-*)              frags="${frags} ../../config/mh-${host_cpu}pic" ;;
     40    powerpc*-*-*)       frag=mh-ppcpic ;;
     41    sparc*-*-*)         frag=mh-sparcpic ;;
     42    s390*-*-*)          frag=mh-s390pic ;;
     43    *)                  frag=mh-${host_cpu}pic ;;
    3144  esac
     45  if [ -n "${frag}" ]; then
     46    frags="${frags} ${libiberty_topdir}/config/${frag}"
     47  fi
    3248fi
    3349
     
    3551
    3652for frag in ${frags}; do
    37   case ${frag} in
    38     ../* )
    39       if [ ${srcdir} = . ]; then
    40         [ -n "${with_target_subdir}" ] && frag=../${frag}
    41         [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}
    42       fi
    43       ;;
    44   esac
    45   frag=${srcdir}/${xsrcdir}config/$frag
    4653  if [ -f ${frag} ]; then
    4754    echo "Appending ${frag} to xhost-mkfrag"
  • branches/GNU/src/gcc/libiberty/configure

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1313# Any additions from configure.in:
    1414ac_help="$ac_help
    15   --with-target-subdir=SUBDIR      Configuring in a subdirectory"
     15  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target"
     16ac_help="$ac_help
     17  --with-build-subdir=SUBDIR       Configuring in a subdirectory for build"
    1618ac_help="$ac_help
    1719  --with-cross-host=HOST           Configuring with a cross compiler"
     
    2224                          enable make rules and dependencies not useful
    2325                          (and sometimes confusing) to the casual installer"
     26ac_help="$ac_help
     27  --enable-install-libiberty       Install headers for end users"
    2428
    2529# Initialize some variables set by options.
     
    545549fi
    546550
     551# Check whether --with-build-subdir or --without-build-subdir was given.
     552if test "${with_build_subdir+set}" = set; then
     553  withval="$with_build_subdir"
     554  :
     555fi
     556
    547557# Check whether --with-cross-host or --without-cross-host was given.
    548558if test "${with_cross_host+set}" = set; then
     
    559569
    560570if test "${srcdir}" = "."; then
    561   if test -z "${with_target_subdir}"; then
     571  if test -n "${with_build_subdir}"; then
     572    libiberty_topdir="${srcdir}/../.."
     573    with_target_subdir=
     574  elif test -z "${with_target_subdir}"; then
    562575    libiberty_topdir="${srcdir}/.."
    563576  else
     
    594607
    595608echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
    596 echo "configure:597: checking whether to enable maintainer-specific portions of Makefiles" >&5
     609echo "configure:610: checking whether to enable maintainer-specific portions of Makefiles" >&5
    597610    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
    598611if test "${enable_maintainer_mode+set}" = set; then
     
    619632set dummy makeinfo; ac_word=$2
    620633echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    621 echo "configure:622: checking for $ac_word" >&5
     634echo "configure:635: checking for $ac_word" >&5
    622635if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
    623636  echo $ac_n "(cached) $ac_c" 1>&6
     
    665678set dummy perl; ac_word=$2
    666679echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    667 echo "configure:668: checking for $ac_word" >&5
     680echo "configure:681: checking for $ac_word" >&5
    668681if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
    669682  echo $ac_n "(cached) $ac_c" 1>&6
     
    705718
    706719echo $ac_n "checking host system type""... $ac_c" 1>&6
    707 echo "configure:708: checking host system type" >&5
     720echo "configure:721: checking host system type" >&5
    708721
    709722host_alias=$host
     
    728741
    729742echo $ac_n "checking build system type""... $ac_c" 1>&6
    730 echo "configure:731: checking build system type" >&5
     743echo "configure:744: checking build system type" >&5
    731744
    732745build_alias=$build
     
    754767set dummy ${ac_tool_prefix}ar; ac_word=$2
    755768echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    756 echo "configure:757: checking for $ac_word" >&5
     769echo "configure:770: checking for $ac_word" >&5
    757770if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    758771  echo $ac_n "(cached) $ac_c" 1>&6
     
    786799set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    787800echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    788 echo "configure:789: checking for $ac_word" >&5
     801echo "configure:802: checking for $ac_word" >&5
    789802if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    790803  echo $ac_n "(cached) $ac_c" 1>&6
     
    818831set dummy ranlib; ac_word=$2
    819832echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    820 echo "configure:821: checking for $ac_word" >&5
     833echo "configure:834: checking for $ac_word" >&5
    821834if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    822835  echo $ac_n "(cached) $ac_c" 1>&6
     
    855868set dummy gcc; ac_word=$2
    856869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    857 echo "configure:858: checking for $ac_word" >&5
     870echo "configure:871: checking for $ac_word" >&5
    858871if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    859872  echo $ac_n "(cached) $ac_c" 1>&6
     
    885898set dummy cc; ac_word=$2
    886899echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    887 echo "configure:888: checking for $ac_word" >&5
     900echo "configure:901: checking for $ac_word" >&5
    888901if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    889902  echo $ac_n "(cached) $ac_c" 1>&6
     
    934947
    935948echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    936 echo "configure:937: checking whether we are using GNU C" >&5
     949echo "configure:950: checking whether we are using GNU C" >&5
    937950if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    938951  echo $ac_n "(cached) $ac_c" 1>&6
     
    943956#endif
    944957EOF
    945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     958if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    946959  ac_cv_prog_gcc=yes
    947960else
     
    959972  CFLAGS=
    960973  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    961 echo "configure:962: checking whether ${CC-cc} accepts -g" >&5
     974echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
    962975if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    963976  echo $ac_n "(cached) $ac_c" 1>&6
     
    9891002
    9901003
     1004if test "x$CC" != xcc; then
     1005  echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
     1006echo "configure:1007: checking whether $CC and cc understand -c and -o together" >&5
     1007else
     1008  echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
     1009echo "configure:1010: checking whether cc understands -c and -o together" >&5
     1010fi
     1011set dummy $CC; ac_cc="`echo $2 |
     1012                       sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
     1013if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
     1014  echo $ac_n "(cached) $ac_c" 1>&6
     1015else
     1016  echo 'foo(){}' > conftest.c
     1017# Make sure it works both with $CC and with simple cc.
     1018# We do the test twice because some compilers refuse to overwrite an
     1019# existing .o file with -o, though they will create one.
     1020ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
     1021if { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
     1022   test -f conftest.o && { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
     1023then
     1024  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
     1025  if test "x$CC" != xcc; then
     1026    # Test first that cc exists at all.
     1027    if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
     1028      ac_try='cc -c conftest.c -o conftest.o 1>&5'
     1029      if { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
     1030         test -f conftest.o && { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
     1031      then
     1032        # cc works too.
     1033        :
     1034      else
     1035        # cc exists but doesn't like -o.
     1036        eval ac_cv_prog_cc_${ac_cc}_c_o=no
     1037      fi
     1038    fi
     1039  fi
     1040else
     1041  eval ac_cv_prog_cc_${ac_cc}_c_o=no
     1042fi
     1043rm -f conftest*
     1044
     1045fi
     1046if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
     1047  echo "$ac_t""yes" 1>&6
     1048else
     1049  echo "$ac_t""no" 1>&6
     1050  cat >> confdefs.h <<\EOF
     1051#define NO_MINUS_C_MINUS_O 1
     1052EOF
     1053
     1054fi
     1055
     1056# autoconf is lame and doesn't give us any substitution variable for this.
     1057if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
     1058  NO_MINUS_C_MINUS_O=yes
     1059else
     1060  OUTPUT_OPTION='-o $@'
     1061fi
     1062
     1063
     1064
    9911065echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
    992 echo "configure:993: checking for POSIXized ISC" >&5
     1066echo "configure:1067: checking for POSIXized ISC" >&5
    9931067if test -d /etc/conf/kconfig.d &&
    9941068  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     
    10111085
    10121086echo $ac_n "checking for working const""... $ac_c" 1>&6
    1013 echo "configure:1014: checking for working const" >&5
     1087echo "configure:1088: checking for working const" >&5
    10141088if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    10151089  echo $ac_n "(cached) $ac_c" 1>&6
    10161090else
    10171091  cat > conftest.$ac_ext <<EOF
    1018 #line 1019 "configure"
     1092#line 1093 "configure"
    10191093#include "confdefs.h"
    10201094
     
    10651139; return 0; }
    10661140EOF
    1067 if { (eval echo configure:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1141if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    10681142  rm -rf conftest*
    10691143  ac_cv_c_const=yes
     
    10861160
    10871161echo $ac_n "checking for inline""... $ac_c" 1>&6
    1088 echo "configure:1089: checking for inline" >&5
     1162echo "configure:1163: checking for inline" >&5
    10891163if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    10901164  echo $ac_n "(cached) $ac_c" 1>&6
     
    10931167for ac_kw in inline __inline__ __inline; do
    10941168  cat > conftest.$ac_ext <<EOF
    1095 #line 1096 "configure"
     1169#line 1170 "configure"
    10961170#include "confdefs.h"
    10971171
     
    11001174; return 0; }
    11011175EOF
    1102 if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1176if { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    11031177  rm -rf conftest*
    11041178  ac_cv_c_inline=$ac_kw; break
     
    11431217# ./install, which can be erroneously created by make from ./install.sh.
    11441218echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1145 echo "configure:1146: checking for a BSD compatible install" >&5
     1219echo "configure:1220: checking for a BSD compatible install" >&5
    11461220if test -z "$INSTALL"; then
    11471221if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     
    12041278# something.
    12051279echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1206 echo "configure:1207: checking how to run the C preprocessor" >&5
     1280echo "configure:1281: checking how to run the C preprocessor" >&5
    12071281# On Suns, sometimes $CPP names a directory.
    12081282if test -n "$CPP" && test -d "$CPP"; then
     
    12191293  # not just through cpp.
    12201294  cat > conftest.$ac_ext <<EOF
    1221 #line 1222 "configure"
     1295#line 1296 "configure"
    12221296#include "confdefs.h"
    12231297#include <assert.h>
     
    12251299EOF
    12261300ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1227 { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1301{ (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12281302ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12291303if test -z "$ac_err"; then
     
    12361310  CPP="${CC-cc} -E -traditional-cpp"
    12371311  cat > conftest.$ac_ext <<EOF
    1238 #line 1239 "configure"
     1312#line 1313 "configure"
    12391313#include "confdefs.h"
    12401314#include <assert.h>
     
    12421316EOF
    12431317ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1244 { (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1318{ (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12451319ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12461320if test -z "$ac_err"; then
     
    12531327  CPP="${CC-cc} -nologo -E"
    12541328  cat > conftest.$ac_ext <<EOF
    1255 #line 1256 "configure"
     1329#line 1330 "configure"
    12561330#include "confdefs.h"
    12571331#include <assert.h>
     
    12591333EOF
    12601334ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1261 { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1335{ (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12621336ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12631337if test -z "$ac_err"; then
     
    12831357echo "$ac_t""$CPP" 1>&6
    12841358
    1285 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h
     1359for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h
    12861360do
    12871361ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    12881362echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1289 echo "configure:1290: checking for $ac_hdr" >&5
     1363echo "configure:1364: checking for $ac_hdr" >&5
    12901364if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    12911365  echo $ac_n "(cached) $ac_c" 1>&6
    12921366else
    12931367  cat > conftest.$ac_ext <<EOF
    1294 #line 1295 "configure"
     1368#line 1369 "configure"
    12951369#include "confdefs.h"
    12961370#include <$ac_hdr>
    12971371EOF
    12981372ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1299 { (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1373{ (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13001374ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    13011375if test -z "$ac_err"; then
     
    13241398
    13251399echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
    1326 echo "configure:1327: checking for sys/wait.h that is POSIX.1 compatible" >&5
     1400echo "configure:1401: checking for sys/wait.h that is POSIX.1 compatible" >&5
    13271401if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
    13281402  echo $ac_n "(cached) $ac_c" 1>&6
    13291403else
    13301404  cat > conftest.$ac_ext <<EOF
    1331 #line 1332 "configure"
     1405#line 1406 "configure"
    13321406#include "confdefs.h"
    13331407#include <sys/types.h>
     
    13451419; return 0; }
    13461420EOF
    1347 if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1421if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    13481422  rm -rf conftest*
    13491423  ac_cv_header_sys_wait_h=yes
     
    13661440
    13671441echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1368 echo "configure:1369: checking whether time.h and sys/time.h may both be included" >&5
     1442echo "configure:1443: checking whether time.h and sys/time.h may both be included" >&5
    13691443if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    13701444  echo $ac_n "(cached) $ac_c" 1>&6
    13711445else
    13721446  cat > conftest.$ac_ext <<EOF
    1373 #line 1374 "configure"
     1447#line 1448 "configure"
    13741448#include "confdefs.h"
    13751449#include <sys/types.h>
     
    13801454; return 0; }
    13811455EOF
    1382 if { (eval echo configure:1383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1456if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    13831457  rm -rf conftest*
    13841458  ac_cv_header_time=yes
     
    14021476
    14031477echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6
    1404 echo "configure:1405: checking whether errno must be declared" >&5
     1478echo "configure:1479: checking whether errno must be declared" >&5
    14051479if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then
    14061480  echo $ac_n "(cached) $ac_c" 1>&6
    14071481else
    14081482  cat > conftest.$ac_ext <<EOF
    1409 #line 1410 "configure"
     1483#line 1484 "configure"
    14101484#include "confdefs.h"
    14111485#include <errno.h>
     
    14141488; return 0; }
    14151489EOF
    1416 if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1490if { (eval echo configure:1491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    14171491  rm -rf conftest*
    14181492  libiberty_cv_declare_errno=no
     
    14361510
    14371511echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1438 echo "configure:1439: checking for ANSI C header files" >&5
     1512echo "configure:1513: checking for ANSI C header files" >&5
    14391513if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    14401514  echo $ac_n "(cached) $ac_c" 1>&6
    14411515else
    14421516  cat > conftest.$ac_ext <<EOF
    1443 #line 1444 "configure"
     1517#line 1518 "configure"
    14441518#include "confdefs.h"
    14451519#include <stdlib.h>
     
    14491523EOF
    14501524ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1451 { (eval echo configure:1452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1525{ (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14521526ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14531527if test -z "$ac_err"; then
     
    14661540  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    14671541cat > conftest.$ac_ext <<EOF
    1468 #line 1469 "configure"
     1542#line 1543 "configure"
    14691543#include "confdefs.h"
    14701544#include <string.h>
     
    14841558  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    14851559cat > conftest.$ac_ext <<EOF
    1486 #line 1487 "configure"
     1560#line 1561 "configure"
    14871561#include "confdefs.h"
    14881562#include <stdlib.h>
     
    15051579else
    15061580  cat > conftest.$ac_ext <<EOF
    1507 #line 1508 "configure"
     1581#line 1582 "configure"
    15081582#include "confdefs.h"
    15091583#include <ctype.h>
     
    15161590
    15171591EOF
    1518 if { (eval echo configure:1519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1592if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    15191593then
    15201594  :
     
    15401614
    15411615echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6
    1542 echo "configure:1543: checking for uintptr_t" >&5
     1616echo "configure:1617: checking for uintptr_t" >&5
    15431617if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then
    15441618  echo $ac_n "(cached) $ac_c" 1>&6
    15451619else
    15461620  cat > conftest.$ac_ext <<EOF
    1547 #line 1548 "configure"
     1621#line 1622 "configure"
    15481622#include "confdefs.h"
    15491623#include <sys/types.h>
     
    15721646fi
    15731647
    1574 
    1575 if test $ac_cv_type_uintptr_t = yes
    1576 then
     1648# Given the above check, we always have uintptr_t or a fallback
     1649# definition.  So define HAVE_UINTPTR_T in case any imported code
     1650# relies on it.
     1651cat >> confdefs.h <<\EOF
     1652#define HAVE_UINTPTR_T 1
     1653EOF
     1654
     1655
     1656echo $ac_n "checking for pid_t""... $ac_c" 1>&6
     1657echo "configure:1658: checking for pid_t" >&5
     1658if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
     1659  echo $ac_n "(cached) $ac_c" 1>&6
     1660else
     1661  cat > conftest.$ac_ext <<EOF
     1662#line 1663 "configure"
     1663#include "confdefs.h"
     1664#include <sys/types.h>
     1665#if STDC_HEADERS
     1666#include <stdlib.h>
     1667#include <stddef.h>
     1668#endif
     1669EOF
     1670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1671  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1672  rm -rf conftest*
     1673  ac_cv_type_pid_t=yes
     1674else
     1675  rm -rf conftest*
     1676  ac_cv_type_pid_t=no
     1677fi
     1678rm -f conftest*
     1679
     1680fi
     1681echo "$ac_t""$ac_cv_type_pid_t" 1>&6
     1682if test $ac_cv_type_pid_t = no; then
    15771683  cat >> confdefs.h <<\EOF
    1578 #define HAVE_UINTPTR_T 1
    1579 EOF
    1580 
    1581 fi
     1684#define pid_t int
     1685EOF
     1686
     1687fi
     1688
    15821689
    15831690# This is the list of functions which libiberty will provide if they
     
    16311738
    16321739checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
     1740checkfuncs="$checkfuncs realpath canonicalize_file_name"
     1741checkfuncs="$checkfuncs pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl"
    16331742
    16341743# These are neither executed nor required, but they help keep
     
    16381747do
    16391748echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1640 echo "configure:1641: checking for $ac_func" >&5
     1749echo "configure:1750: checking for $ac_func" >&5
    16411750if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    16421751  echo $ac_n "(cached) $ac_c" 1>&6
    16431752else
    16441753  cat > conftest.$ac_ext <<EOF
    1645 #line 1646 "configure"
     1754#line 1755 "configure"
    16461755#include "confdefs.h"
    16471756/* System header to define __stub macros and hopefully few prototypes,
     
    16661775; return 0; }
    16671776EOF
    1668 if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1777if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16691778  rm -rf conftest*
    16701779  eval "ac_cv_func_$ac_func=yes"
     
    16931802do
    16941803echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1695 echo "configure:1696: checking for $ac_func" >&5
     1804echo "configure:1805: checking for $ac_func" >&5
    16961805if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    16971806  echo $ac_n "(cached) $ac_c" 1>&6
    16981807else
    16991808  cat > conftest.$ac_ext <<EOF
    1700 #line 1701 "configure"
     1809#line 1810 "configure"
    17011810#include "confdefs.h"
    17021811/* System header to define __stub macros and hopefully few prototypes,
     
    17211830; return 0; }
    17221831EOF
    1723 if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1832if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17241833  rm -rf conftest*
    17251834  eval "ac_cv_func_$ac_func=yes"
     
    17481857do
    17491858echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1750 echo "configure:1751: checking for $ac_func" >&5
     1859echo "configure:1860: checking for $ac_func" >&5
    17511860if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    17521861  echo $ac_n "(cached) $ac_c" 1>&6
    17531862else
    17541863  cat > conftest.$ac_ext <<EOF
    1755 #line 1756 "configure"
     1864#line 1865 "configure"
    17561865#include "confdefs.h"
    17571866/* System header to define __stub macros and hopefully few prototypes,
     
    17761885; return 0; }
    17771886EOF
    1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1887if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17791888  rm -rf conftest*
    17801889  eval "ac_cv_func_$ac_func=yes"
     
    18031912do
    18041913echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1805 echo "configure:1806: checking for $ac_func" >&5
     1914echo "configure:1915: checking for $ac_func" >&5
    18061915if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18071916  echo $ac_n "(cached) $ac_c" 1>&6
    18081917else
    18091918  cat > conftest.$ac_ext <<EOF
    1810 #line 1811 "configure"
     1919#line 1920 "configure"
    18111920#include "confdefs.h"
    18121921/* System header to define __stub macros and hopefully few prototypes,
     
    18311940; return 0; }
    18321941EOF
    1833 if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1942if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18341943  rm -rf conftest*
    18351944  eval "ac_cv_func_$ac_func=yes"
     
    18581967do
    18591968echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1860 echo "configure:1861: checking for $ac_func" >&5
     1969echo "configure:1970: checking for $ac_func" >&5
    18611970if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    18621971  echo $ac_n "(cached) $ac_c" 1>&6
    18631972else
    18641973  cat > conftest.$ac_ext <<EOF
    1865 #line 1866 "configure"
     1974#line 1975 "configure"
    18661975#include "confdefs.h"
    18671976/* System header to define __stub macros and hopefully few prototypes,
     
    18861995; return 0; }
    18871996EOF
    1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1997if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    18891998  rm -rf conftest*
    18901999  eval "ac_cv_func_$ac_func=yes"
     
    19132022do
    19142023echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1915 echo "configure:1916: checking for $ac_func" >&5
     2024echo "configure:2025: checking for $ac_func" >&5
    19162025if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    19172026  echo $ac_n "(cached) $ac_c" 1>&6
    19182027else
    19192028  cat > conftest.$ac_ext <<EOF
    1920 #line 1921 "configure"
     2029#line 2030 "configure"
    19212030#include "confdefs.h"
    19222031/* System header to define __stub macros and hopefully few prototypes,
     
    19412050; return 0; }
    19422051EOF
    1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2052if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19442053  rm -rf conftest*
    19452054  eval "ac_cv_func_$ac_func=yes"
     
    19682077do
    19692078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1970 echo "configure:1971: checking for $ac_func" >&5
     2079echo "configure:2080: checking for $ac_func" >&5
    19712080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    19722081  echo $ac_n "(cached) $ac_c" 1>&6
    19732082else
    19742083  cat > conftest.$ac_ext <<EOF
    1975 #line 1976 "configure"
     2084#line 2085 "configure"
    19762085#include "confdefs.h"
    19772086/* System header to define __stub macros and hopefully few prototypes,
     
    19962105; return 0; }
    19972106EOF
    1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2107if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    19992108  rm -rf conftest*
    20002109  eval "ac_cv_func_$ac_func=yes"
     
    20202129done
    20212130
     2131  for ac_func in realpath canonicalize_file_name
     2132do
     2133echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2134echo "configure:2135: checking for $ac_func" >&5
     2135if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2136  echo $ac_n "(cached) $ac_c" 1>&6
     2137else
     2138  cat > conftest.$ac_ext <<EOF
     2139#line 2140 "configure"
     2140#include "confdefs.h"
     2141/* System header to define __stub macros and hopefully few prototypes,
     2142    which can conflict with char $ac_func(); below.  */
     2143#include <assert.h>
     2144/* Override any gcc2 internal prototype to avoid an error.  */
     2145/* We use char because int might match the return type of a gcc2
     2146    builtin and then its argument prototype would still apply.  */
     2147char $ac_func();
     2148
     2149int main() {
     2150
     2151/* The GNU C library defines this for functions which it implements
     2152    to always fail with ENOSYS.  Some functions are actually named
     2153    something starting with __ and the normal name is an alias.  */
     2154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2155choke me
     2156#else
     2157$ac_func();
     2158#endif
     2159
     2160; return 0; }
     2161EOF
     2162if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2163  rm -rf conftest*
     2164  eval "ac_cv_func_$ac_func=yes"
     2165else
     2166  echo "configure: failed program was:" >&5
     2167  cat conftest.$ac_ext >&5
     2168  rm -rf conftest*
     2169  eval "ac_cv_func_$ac_func=no"
     2170fi
     2171rm -f conftest*
     2172fi
     2173
     2174if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2175  echo "$ac_t""yes" 1>&6
     2176    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2177  cat >> confdefs.h <<EOF
     2178#define $ac_tr_func 1
     2179EOF
     2180 
     2181else
     2182  echo "$ac_t""no" 1>&6
     2183fi
     2184done
     2185
     2186  for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl
     2187do
     2188echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2189echo "configure:2190: checking for $ac_func" >&5
     2190if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2191  echo $ac_n "(cached) $ac_c" 1>&6
     2192else
     2193  cat > conftest.$ac_ext <<EOF
     2194#line 2195 "configure"
     2195#include "confdefs.h"
     2196/* System header to define __stub macros and hopefully few prototypes,
     2197    which can conflict with char $ac_func(); below.  */
     2198#include <assert.h>
     2199/* Override any gcc2 internal prototype to avoid an error.  */
     2200/* We use char because int might match the return type of a gcc2
     2201    builtin and then its argument prototype would still apply.  */
     2202char $ac_func();
     2203
     2204int main() {
     2205
     2206/* The GNU C library defines this for functions which it implements
     2207    to always fail with ENOSYS.  Some functions are actually named
     2208    something starting with __ and the normal name is an alias.  */
     2209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2210choke me
     2211#else
     2212$ac_func();
     2213#endif
     2214
     2215; return 0; }
     2216EOF
     2217if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2218  rm -rf conftest*
     2219  eval "ac_cv_func_$ac_func=yes"
     2220else
     2221  echo "configure: failed program was:" >&5
     2222  cat conftest.$ac_ext >&5
     2223  rm -rf conftest*
     2224  eval "ac_cv_func_$ac_func=no"
     2225fi
     2226rm -f conftest*
     2227fi
     2228
     2229if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2230  echo "$ac_t""yes" 1>&6
     2231    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2232  cat >> confdefs.h <<EOF
     2233#define $ac_tr_func 1
     2234EOF
     2235 
     2236else
     2237  echo "$ac_t""no" 1>&6
     2238fi
     2239done
     2240
    20222241  cat >> confdefs.h <<\EOF
    20232242#define HAVE_SYS_ERRLIST 1
     
    20402259setobjs=
    20412260CHECK=
     2261target_header_dir=
    20422262if test -n "${with_target_subdir}"; then
    20432263
     
    20802300  fi
    20812301
     2302  # We may wish to install the target headers somewhere.
     2303  # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
     2304if test "${enable_install_libiberty+set}" = set; then
     2305  enableval="$enable_install_libiberty"
     2306  enable_install_libiberty=$enableval
     2307else
     2308  enable_install_libiberty=no
     2309fi
     2310 
     2311  # Option parsed, now set things appropriately.
     2312  case x"$enable_install_libiberty" in
     2313    xyes|x)
     2314      target_header_dir=libiberty
     2315      ;;
     2316    xno)   
     2317      target_header_dir=
     2318      ;;
     2319    *)
     2320      # This could be sanity-checked in various ways...
     2321      target_header_dir="${enable_install_libiberty}"
     2322      ;;
     2323  esac
     2324
     2325
    20822326else
    20832327
     
    20862330
    20872331fi
     2332
    20882333
    20892334
     
    22002445  # tests.  This will only work if the compiler works.
    22012446  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2447echo "configure:2448: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    22032448
    22042449ac_ext=c
     
    22112456cat > conftest.$ac_ext << EOF
    22122457
    2213 #line 2214 "configure"
     2458#line 2459 "configure"
    22142459#include "confdefs.h"
    22152460
    22162461main(){return(0);}
    22172462EOF
    2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2463if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22192464  ac_cv_prog_cc_works=yes
    22202465  # If we can't run a trivial program, we are probably using a cross compiler.
     
    22422487fi
    22432488echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    2244 echo "configure:2245: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2489echo "configure:2490: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    22452490echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    22462491cross_compiling=$ac_cv_prog_cc_cross
     
    22492494do
    22502495echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2251 echo "configure:2252: checking for $ac_func" >&5
     2496echo "configure:2497: checking for $ac_func" >&5
    22522497if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    22532498  echo $ac_n "(cached) $ac_c" 1>&6
    22542499else
    22552500  cat > conftest.$ac_ext <<EOF
    2256 #line 2257 "configure"
     2501#line 2502 "configure"
    22572502#include "confdefs.h"
    22582503/* System header to define __stub macros and hopefully few prototypes,
     
    22772522; return 0; }
    22782523EOF
    2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2524if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22802525  rm -rf conftest*
    22812526  eval "ac_cv_func_$ac_func=yes"
     
    23042549
    23052550  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2306 echo "configure:2307: checking whether alloca needs Cray hooks" >&5
     2551echo "configure:2552: checking whether alloca needs Cray hooks" >&5
    23072552if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    23082553  echo $ac_n "(cached) $ac_c" 1>&6
    23092554else
    23102555  cat > conftest.$ac_ext <<EOF
    2311 #line 2312 "configure"
     2556#line 2557 "configure"
    23122557#include "confdefs.h"
    23132558#if defined(CRAY) && ! defined(CRAY2)
     
    23342579  for ac_func in _getb67 GETB67 getb67; do
    23352580    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2336 echo "configure:2337: checking for $ac_func" >&5
     2581echo "configure:2582: checking for $ac_func" >&5
    23372582if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    23382583  echo $ac_n "(cached) $ac_c" 1>&6
    23392584else
    23402585  cat > conftest.$ac_ext <<EOF
    2341 #line 2342 "configure"
     2586#line 2587 "configure"
    23422587#include "confdefs.h"
    23432588/* System header to define __stub macros and hopefully few prototypes,
     
    23622607; return 0; }
    23632608EOF
    2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2609if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23652610  rm -rf conftest*
    23662611  eval "ac_cv_func_$ac_func=yes"
     
    23882633
    23892634echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2390 echo "configure:2391: checking stack direction for C alloca" >&5
     2635echo "configure:2636: checking stack direction for C alloca" >&5
    23912636if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    23922637  echo $ac_n "(cached) $ac_c" 1>&6
     
    23962641else
    23972642  cat > conftest.$ac_ext <<EOF
    2398 #line 2399 "configure"
     2643#line 2644 "configure"
    23992644#include "confdefs.h"
    24002645find_stack_direction ()
     
    24152660}
    24162661EOF
    2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2662if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    24182663then
    24192664  ac_cv_c_stack_direction=1
     
    24352680
    24362681
    2437   echo $ac_n "checking for pid_t""... $ac_c" 1>&6
    2438 echo "configure:2439: checking for pid_t" >&5
    2439 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
     2682  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
     2683echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
     2684echo "configure:2685: checking for vfork.h" >&5
     2685if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    24402686  echo $ac_n "(cached) $ac_c" 1>&6
    24412687else
    24422688  cat > conftest.$ac_ext <<EOF
    2443 #line 2444 "configure"
    2444 #include "confdefs.h"
    2445 #include <sys/types.h>
    2446 #if STDC_HEADERS
    2447 #include <stdlib.h>
    2448 #include <stddef.h>
    2449 #endif
    2450 EOF
    2451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2452   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    2453   rm -rf conftest*
    2454   ac_cv_type_pid_t=yes
    2455 else
    2456   rm -rf conftest*
    2457   ac_cv_type_pid_t=no
    2458 fi
    2459 rm -f conftest*
    2460 
    2461 fi
    2462 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
    2463 if test $ac_cv_type_pid_t = no; then
    2464   cat >> confdefs.h <<\EOF
    2465 #define pid_t int
    2466 EOF
    2467 
    2468 fi
    2469 
    2470 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
    2471 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
    2472 echo "configure:2473: checking for vfork.h" >&5
    2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    2474   echo $ac_n "(cached) $ac_c" 1>&6
    2475 else
    2476   cat > conftest.$ac_ext <<EOF
    2477 #line 2478 "configure"
     2689#line 2690 "configure"
    24782690#include "confdefs.h"
    24792691#include <vfork.h>
    24802692EOF
    24812693ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2482 { (eval echo configure:2483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2694{ (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    24832695ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    24842696if test -z "$ac_err"; then
     
    25052717
    25062718echo $ac_n "checking for working vfork""... $ac_c" 1>&6
    2507 echo "configure:2508: checking for working vfork" >&5
     2719echo "configure:2720: checking for working vfork" >&5
    25082720if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
    25092721  echo $ac_n "(cached) $ac_c" 1>&6
     
    25112723  if test "$cross_compiling" = yes; then
    25122724  echo $ac_n "checking for vfork""... $ac_c" 1>&6
    2513 echo "configure:2514: checking for vfork" >&5
     2725echo "configure:2726: checking for vfork" >&5
    25142726if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
    25152727  echo $ac_n "(cached) $ac_c" 1>&6
    25162728else
    25172729  cat > conftest.$ac_ext <<EOF
    2518 #line 2519 "configure"
     2730#line 2731 "configure"
    25192731#include "confdefs.h"
    25202732/* System header to define __stub macros and hopefully few prototypes,
     
    25392751; return 0; }
    25402752EOF
    2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2753if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25422754  rm -rf conftest*
    25432755  eval "ac_cv_func_vfork=yes"
     
    25612773else
    25622774  cat > conftest.$ac_ext <<EOF
    2563 #line 2564 "configure"
     2775#line 2776 "configure"
    25642776#include "confdefs.h"
    25652777/* Thanks to Paul Eggert for this test.  */
     
    26562868}
    26572869EOF
    2658 if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2870if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    26592871then
    26602872  ac_cv_func_vfork_works=yes
     
    26882900do
    26892901echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2690 echo "configure:2691: checking for $ac_func" >&5
     2902echo "configure:2903: checking for $ac_func" >&5
    26912903if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    26922904  echo $ac_n "(cached) $ac_c" 1>&6
    26932905else
    26942906  cat > conftest.$ac_ext <<EOF
    2695 #line 2696 "configure"
     2907#line 2908 "configure"
    26962908#include "confdefs.h"
    26972909/* System header to define __stub macros and hopefully few prototypes,
     
    27162928; return 0; }
    27172929EOF
    2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2930if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27192931  rm -rf conftest*
    27202932  eval "ac_cv_func_$ac_func=yes"
     
    27462958do
    27472959echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2748 echo "configure:2749: checking for $ac_func" >&5
     2960echo "configure:2961: checking for $ac_func" >&5
    27492961if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    27502962  echo $ac_n "(cached) $ac_c" 1>&6
    27512963else
    27522964  cat > conftest.$ac_ext <<EOF
    2753 #line 2754 "configure"
     2965#line 2966 "configure"
    27542966#include "confdefs.h"
    27552967/* System header to define __stub macros and hopefully few prototypes,
     
    27742986; return 0; }
    27752987EOF
    2776 if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2988if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    27772989  rm -rf conftest*
    27782990  eval "ac_cv_func_$ac_func=yes"
     
    28023014  for v in $vars; do
    28033015    echo $ac_n "checking for $v""... $ac_c" 1>&6
    2804 echo "configure:2805: checking for $v" >&5
     3016echo "configure:3017: checking for $v" >&5
    28053017    if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then
    28063018  echo $ac_n "(cached) $ac_c" 1>&6
    28073019else
    28083020  cat > conftest.$ac_ext <<EOF
    2809 #line 2810 "configure"
     3021#line 3022 "configure"
    28103022#include "confdefs.h"
    28113023int *p;
     
    28143026; return 0; }
    28153027EOF
    2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3028if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28173029  rm -rf conftest*
    28183030  eval "libiberty_cv_var_$v=yes"
     
    28373049    fi
    28383050  done
     3051
     3052  # special check for _system_configuration because AIX <4.3.2 do not
     3053  # contain the `physmem' member.
     3054  echo $ac_n "checking for external symbol _system_configuration""... $ac_c" 1>&6
     3055echo "configure:3056: checking for external symbol _system_configuration" >&5
     3056  cat > conftest.$ac_ext <<EOF
     3057#line 3058 "configure"
     3058#include "confdefs.h"
     3059#include <sys/systemcfg.h>
     3060int main() {
     3061double x = _system_configuration.physmem;
     3062; return 0; }
     3063EOF
     3064if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3065  rm -rf conftest*
     3066  echo "$ac_t""yes" 1>&6
     3067    cat >> confdefs.h <<\EOF
     3068#define HAVE__SYSTEM_CONFIGURATION 1
     3069EOF
     3070
     3071else
     3072  echo "configure: failed program was:" >&5
     3073  cat conftest.$ac_ext >&5
     3074  rm -rf conftest*
     3075  echo "$ac_t""no" 1>&6
     3076fi
     3077rm -f conftest*
     3078
     3079  echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6
     3080echo "configure:3081: checking whether canonicalize_file_name must be declared" >&5
     3081if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then
     3082  echo $ac_n "(cached) $ac_c" 1>&6
     3083else
     3084  cat > conftest.$ac_ext <<EOF
     3085#line 3086 "configure"
     3086#include "confdefs.h"
     3087
     3088#include "confdefs.h"
     3089#include <stdio.h>
     3090#ifdef HAVE_STRING_H
     3091#include <string.h>
     3092#else
     3093#ifdef HAVE_STRINGS_H
     3094#include <strings.h>
     3095#endif
     3096#endif
     3097#ifdef HAVE_STDLIB_H
     3098#include <stdlib.h>
     3099#endif
     3100#ifdef HAVE_UNISTD_H
     3101#include <unistd.h>
     3102#endif
     3103int main() {
     3104char *(*pfn) = (char *(*)) canonicalize_file_name
     3105; return 0; }
     3106EOF
     3107if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3108  rm -rf conftest*
     3109  libiberty_cv_decl_needed_canonicalize_file_name=no
     3110else
     3111  echo "configure: failed program was:" >&5
     3112  cat conftest.$ac_ext >&5
     3113  rm -rf conftest*
     3114  libiberty_cv_decl_needed_canonicalize_file_name=yes
     3115fi
     3116rm -f conftest*
     3117fi
     3118
     3119echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6
     3120if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
     3121  cat >> confdefs.h <<\EOF
     3122#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
     3123EOF
     3124
     3125fi
     3126
    28393127  for ac_func in $checkfuncs
    28403128do
    28413129echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2842 echo "configure:2843: checking for $ac_func" >&5
     3130echo "configure:3131: checking for $ac_func" >&5
    28433131if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    28443132  echo $ac_n "(cached) $ac_c" 1>&6
    28453133else
    28463134  cat > conftest.$ac_ext <<EOF
    2847 #line 2848 "configure"
     3135#line 3136 "configure"
    28483136#include "confdefs.h"
    28493137/* System header to define __stub macros and hopefully few prototypes,
     
    28683156; return 0; }
    28693157EOF
    2870 if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3158if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28713159  rm -rf conftest*
    28723160  eval "ac_cv_func_$ac_func=yes"
     
    28983186ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    28993187echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2900 echo "configure:2901: checking for $ac_hdr" >&5
     3188echo "configure:3189: checking for $ac_hdr" >&5
    29013189if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    29023190  echo $ac_n "(cached) $ac_c" 1>&6
    29033191else
    29043192  cat > conftest.$ac_ext <<EOF
    2905 #line 2906 "configure"
     3193#line 3194 "configure"
    29063194#include "confdefs.h"
    29073195#include <$ac_hdr>
    29083196EOF
    29093197ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2910 { (eval echo configure:2911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3198{ (eval echo configure:3199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    29113199ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    29123200if test -z "$ac_err"; then
     
    29373225do
    29383226echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2939 echo "configure:2940: checking for $ac_func" >&5
     3227echo "configure:3228: checking for $ac_func" >&5
    29403228if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    29413229  echo $ac_n "(cached) $ac_c" 1>&6
    29423230else
    29433231  cat > conftest.$ac_ext <<EOF
    2944 #line 2945 "configure"
     3232#line 3233 "configure"
    29453233#include "confdefs.h"
    29463234/* System header to define __stub macros and hopefully few prototypes,
     
    29653253; return 0; }
    29663254EOF
    2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3255if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29683256  rm -rf conftest*
    29693257  eval "ac_cv_func_$ac_func=yes"
     
    29903278
    29913279echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2992 echo "configure:2993: checking for working mmap" >&5
     3280echo "configure:3281: checking for working mmap" >&5
    29933281if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    29943282  echo $ac_n "(cached) $ac_c" 1>&6
     
    29983286else
    29993287  cat > conftest.$ac_ext <<EOF
    3000 #line 3001 "configure"
     3288#line 3289 "configure"
    30013289#include "confdefs.h"
    30023290
     
    31383426
    31393427EOF
    3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3428if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31413429then
    31423430  ac_cv_func_mmap_fixed_mapped=yes
     
    31623450
    31633451echo $ac_n "checking for working strncmp""... $ac_c" 1>&6
    3164 echo "configure:3165: checking for working strncmp" >&5
     3452echo "configure:3453: checking for working strncmp" >&5
    31653453if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then
    31663454  echo $ac_n "(cached) $ac_c" 1>&6
     
    31703458else
    31713459  cat > conftest.$ac_ext <<EOF
    3172 #line 3173 "configure"
     3460#line 3461 "configure"
    31733461#include "confdefs.h"
    31743462
     
    32343522
    32353523EOF
    3236 if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3524if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32373525then
    32383526  ac_cv_func_strncmp_works=yes
     
    34193707s%@CC@%$CC%g
    34203708s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g
     3709s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
     3710s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
    34213711s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    34223712s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     
    34263716s%@CPP@%$CPP%g
    34273717s%@CHECK@%$CHECK%g
     3718s%@target_header_dir@%$target_header_dir%g
    34283719s%@LIBOBJS@%$LIBOBJS%g
    34293720s%@INSTALL_DEST@%$INSTALL_DEST%g
     
    36413932target=${target}
    36423933with_target_subdir=${with_target_subdir}
     3934with_build_subdir=${with_build_subdir}
    36433935with_multisubdir=${with_multisubdir}
    36443936ac_configure_args="--enable-multilib ${ac_configure_args}"
    36453937CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     3938ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
    36463939libiberty_topdir=${libiberty_topdir}
    36473940
     
    36503943test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    36513944if test -n "$CONFIG_FILES"; then
    3652   if test -n "${with_target_subdir}"; then
     3945  if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
    36533946    # FIXME: We shouldn't need to set ac_file
    36543947    ac_file=Makefile
  • branches/GNU/src/gcc/libiberty/configure.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1212dnl We use these options to decide which functions to include.
    1313AC_ARG_WITH(target-subdir,
    14 [  --with-target-subdir=SUBDIR      Configuring in a subdirectory])
     14[  --with-target-subdir=SUBDIR      Configuring in a subdirectory for target])
     15AC_ARG_WITH(build-subdir,
     16[  --with-build-subdir=SUBDIR       Configuring in a subdirectory for build])
    1517AC_ARG_WITH(cross-host,
    1618[  --with-cross-host=HOST           Configuring with a cross compiler])
     
    1921
    2022if test "${srcdir}" = "."; then
    21   if test -z "${with_target_subdir}"; then
     23  if test -n "${with_build_subdir}"; then
     24    libiberty_topdir="${srcdir}/../.."
     25    with_target_subdir=
     26  elif test -z "${with_target_subdir}"; then
    2227    libiberty_topdir="${srcdir}/.."
    2328  else
     
    97102LIB_AC_PROG_CC
    98103
     104AC_PROG_CC_C_O
     105# autoconf is lame and doesn't give us any substitution variable for this.
     106if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
     107  NO_MINUS_C_MINUS_O=yes
     108else
     109  OUTPUT_OPTION='-o $@'
     110fi
     111AC_SUBST(NO_MINUS_C_MINUS_O)
     112AC_SUBST(OUTPUT_OPTION)
     113
    99114AC_ISC_POSIX
    100115AC_C_CONST
     
    128143# able to link anything, it had better be able to at least compile
    129144# something.
    130 AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h)
     145AC_CHECK_HEADERS(sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h)
    131146AC_HEADER_SYS_WAIT
    132147AC_HEADER_TIME
     
    135150
    136151AC_CHECK_TYPE(uintptr_t, unsigned long)
    137 
    138 if test $ac_cv_type_uintptr_t = yes
    139 then
    140   AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.])
    141 fi
     152# Given the above check, we always have uintptr_t or a fallback
     153# definition.  So define HAVE_UINTPTR_T in case any imported code
     154# relies on it.
     155AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.])
     156
     157AC_TYPE_PID_T
    142158
    143159# This is the list of functions which libiberty will provide if they
     
    191207
    192208checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
     209checkfuncs="$checkfuncs realpath canonicalize_file_name"
     210checkfuncs="$checkfuncs pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl"
    193211
    194212# These are neither executed nor required, but they help keep
     
    202220  AC_CHECK_FUNCS(vsprintf waitpid getrusage on_exit psignal strerror strsignal)
    203221  AC_CHECK_FUNCS(sysconf times sbrk gettimeofday ffs)
     222  AC_CHECK_FUNCS(realpath canonicalize_file_name)
     223  AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl)
    204224  AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.])
    205225  AC_DEFINE(HAVE_SYS_NERR,    1, [Define if you have the sys_nerr variable.])
     
    213233setobjs=
    214234CHECK=
     235target_header_dir=
    215236if test -n "${with_target_subdir}"; then
    216237
     
    247268  fi
    248269
     270  # We may wish to install the target headers somewhere.
     271  AC_ARG_ENABLE(install-libiberty,
     272  [  --enable-install-libiberty       Install headers for end users],
     273  enable_install_libiberty=$enableval,
     274  enable_install_libiberty=no)dnl
     275 
     276  # Option parsed, now set things appropriately.
     277  case x"$enable_install_libiberty" in
     278    xyes|x)
     279      target_header_dir=libiberty
     280      ;;
     281    xno)   
     282      target_header_dir=
     283      ;;
     284    *)
     285      # This could be sanity-checked in various ways...
     286      target_header_dir="${enable_install_libiberty}"
     287      ;;
     288  esac
     289
     290
    249291else
    250292
     
    255297
    256298AC_SUBST(CHECK)
     299AC_SUBST(target_header_dir)
    257300
    258301case "${host}" in
     
    384427    fi
    385428  done
     429
     430  # special check for _system_configuration because AIX <4.3.2 do not
     431  # contain the `physmem' member.
     432  AC_MSG_CHECKING([for external symbol _system_configuration])
     433  AC_TRY_COMPILE([#include <sys/systemcfg.h>],
     434                 [double x = _system_configuration.physmem;],
     435    [AC_MSG_RESULT([yes])
     436    AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1,
     437              [Define if you have the _system_configuration variable.])],
     438    [AC_MSG_RESULT([no])])
     439
     440  libiberty_NEED_DECLARATION(canonicalize_file_name)
    386441  AC_CHECK_FUNCS($checkfuncs)
    387442fi
     
    402457[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
    403458if test -n "$CONFIG_FILES"; then
    404   if test -n "${with_target_subdir}"; then
     459  if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then
    405460    # FIXME: We shouldn't need to set ac_file
    406461    ac_file=Makefile
     
    413468target=${target}
    414469with_target_subdir=${with_target_subdir}
     470with_build_subdir=${with_build_subdir}
    415471with_multisubdir=${with_multisubdir}
    416472ac_configure_args="--enable-multilib ${ac_configure_args}"
    417473CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     474ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
    418475libiberty_topdir=${libiberty_topdir}
    419476)
  • branches/GNU/src/gcc/libiberty/cp-demangle.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    5151#include <string.h>
    5252#endif
     53
     54#include <ctype.h>
    5355
    5456#include "ansidecl.h"
     
    834836    }
    835837  dm->style = style;
    836   dm->is_constructor = 0;
    837   dm->is_destructor = 0;
     838  dm->is_constructor = (enum gnu_v3_ctor_kinds) 0;
     839  dm->is_destructor = (enum gnu_v3_dtor_kinds) 0;
    838840
    839841  return dm;
     
    973975    {
    974976      if (error_message == NULL)
    975         error_message = strdup ("Expected ?");
     977        error_message = (char *) strdup ("Expected ?");
    976978      error_message[9] = c;
    977979      return error_message;
     
    14671469  while (length-- > 0)
    14681470    {
     1471      int ch;
    14691472      if (end_of_name_p (dm))
    14701473        return "Unexpected end of name in <identifier>.";
    1471       if (!dyn_string_append_char (identifier, next_char (dm)))
     1474      ch = next_char (dm);
     1475
     1476      /* Handle extended Unicode characters.  We encode them as __U{hex}_,
     1477         where {hex} omits leading 0's.  For instance, '$' is encoded as
     1478         "__U24_".  */
     1479      if (ch == '_'
     1480          && peek_char (dm) == '_'
     1481          && peek_char_next (dm) == 'U')
     1482        {
     1483          char buf[10];
     1484          int pos = 0;
     1485          advance_char (dm); advance_char (dm); length -= 2;
     1486          while (length-- > 0)
     1487            {
     1488              ch = next_char (dm);
     1489              if (!isxdigit (ch))
     1490                break;
     1491              buf[pos++] = ch;
     1492            }
     1493          if (ch != '_' || length < 0)
     1494            return STATUS_ERROR;
     1495          if (pos == 0)
     1496            {
     1497              /* __U_ just means __U.  */
     1498              if (!dyn_string_append_cstr (identifier, "__U"))
     1499                return STATUS_ALLOCATION_FAILED;
     1500              continue;
     1501            }
     1502          else
     1503            {
     1504              buf[pos] = '\0';
     1505              ch = strtol (buf, 0, 16);
     1506            }
     1507        }
     1508
     1509      if (!dyn_string_append_char (identifier, ch))
    14721510        return STATUS_ALLOCATION_FAILED;
    14731511    }
     
    33613399          else
    33623400            {
    3363               RETURN_IF_ERROR (result_add (dm, "std::basic_istream<char, std::char_traints<char> >"));
     3401              RETURN_IF_ERROR (result_add (dm, "std::basic_istream<char, std::char_traits<char> >"));
    33643402              new_last_source_name = "basic_istream";
    33653403            }
     
    38813919
    38823920
     3921#ifndef IN_GLIBCPP_V3
    38833922/* Demangle NAME in the G++ V3 ABI demangling style, and return either
    38843923   zero, indicating that some error occurred, or a demangling_t
     
    39183957
    39193958
    3920 #ifndef IN_GLIBCPP_V3
    39213959/* Return non-zero iff NAME is the mangled form of a constructor name
    39223960   in the G++ V3 ABI demangling style.  Specifically, return:
     
    39373975    }
    39383976  else
    3939     return 0;
     3977    return (enum gnu_v3_ctor_kinds) 0;
    39403978}
    39413979
     
    39593997    }
    39603998  else
    3961     return 0;
     3999    return (enum gnu_v3_dtor_kinds) 0;
    39624000}
    39634001#endif /* IN_GLIBCPP_V3 */
  • branches/GNU/src/gcc/libiberty/cplus-dem.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1111License as published by the Free Software Foundation; either
    1212version 2 of the License, or (at your option) any later version.
     13
     14In addition to the permissions in the GNU Library General Public
     15License, the Free Software Foundation gives you unlimited permission
     16to link the compiled version of this file into combinations with other
     17programs, and to distribute those combinations without any restriction
     18coming from the use of this file.  (The Library Public License
     19restrictions do apply in other respects; for example, they cover
     20modification of the file, and distribution when not linked into a
     21combined executable.)
    1322
    1423Libiberty is distributed in the hope that it will be useful,
     
    306315
    307316#define STRING_EMPTY(str)       ((str) -> b == (str) -> p)
    308 #define PREPEND_BLANK(str)      {if (!STRING_EMPTY(str)) \
    309     string_prepend(str, " ");}
    310317#define APPEND_BLANK(str)       {if (!STRING_EMPTY(str)) \
    311318    string_append(str, " ");}
     
    517524
    518525static void
    519 grow_vect PARAMS ((void **, size_t *, size_t, int));
     526grow_vect PARAMS ((char **, size_t *, size_t, int));
    520527
    521528/* Translate count to integer, consuming tokens in the process.
     
    939946static void
    940947grow_vect (old_vect, size, min_size, element_size)
    941      void **old_vect;
     948     char **old_vect;
    942949     size_t *size;
    943950     size_t min_size;
     
    949956      if (*size < min_size)
    950957        *size = min_size;
    951       *old_vect = xrealloc (*old_vect, *size * element_size);
     958      *old_vect = (void *) xrealloc (*old_vect, *size * element_size);
    952959    }
    953960}
     
    972979  int at_start_name;
    973980  int changed;
    974   char *demangling_buffer = NULL;
    975   size_t demangling_buffer_size = 0;
     981  size_t demangled_size = 0;
    976982 
    977983  changed = 0;
     
    10011007 
    10021008  /* Make demangled big enough for possible expansion by operator name.  */
    1003   grow_vect ((void **) &(demangling_buffer),
    1004              &demangling_buffer_size,  2 * len0 + 1,
     1009  grow_vect (&demangled,
     1010             &demangled_size,  2 * len0 + 1,
    10051011             sizeof (char));
    1006   demangled = demangling_buffer;
    10071012 
    10081013  if (ISDIGIT ((unsigned char) mangled[len0 - 1])) {
     
    10541059 
    10551060 Suppress:
    1056   grow_vect ((void **) &(demangling_buffer),
    1057              &demangling_buffer_size,  strlen (mangled) + 3,
     1061  grow_vect (&demangled,
     1062             &demangled_size,  strlen (mangled) + 3,
    10581063             sizeof (char));
    1059   demangled = demangling_buffer;
     1064
    10601065  if (mangled[0] == '<')
    10611066     strcpy (demangled, mangled);
     
    12091214  if (from->ntmpl_args)
    12101215    to->tmpl_argvec
    1211       = xmalloc (from->ntmpl_args * sizeof (to->tmpl_argvec[0]));
     1216      = (char **) xmalloc (from->ntmpl_args * sizeof (to->tmpl_argvec[0]));
    12121217
    12131218  for (i = 0; i < from->ntmpl_args; i++)
     
    48814886  string_append (s, buf);
    48824887}
    4883 
    4884 /* To generate a standalone demangler program for testing purposes,
    4885    just compile and link this file with -DMAIN and libiberty.a.  When
    4886    run, it demangles each command line arg, or each stdin string, and
    4887    prints the result on stdout.  */
    4888 
    4889 #ifdef MAIN
    4890 
    4891 #include "getopt.h"
    4892 
    4893 static const char *program_name;
    4894 static const char *program_version = VERSION;
    4895 static int flags = DMGL_PARAMS | DMGL_ANSI | DMGL_VERBOSE;
    4896 
    4897 static void demangle_it PARAMS ((char *));
    4898 static void usage PARAMS ((FILE *, int)) ATTRIBUTE_NORETURN;
    4899 static void fatal PARAMS ((const char *)) ATTRIBUTE_NORETURN;
    4900 static void print_demangler_list PARAMS ((FILE *));
    4901 
    4902 static void
    4903 demangle_it (mangled_name)
    4904      char *mangled_name;
    4905 {
    4906   char *result;
    4907 
    4908   /* For command line args, also try to demangle type encodings.  */
    4909   result = cplus_demangle (mangled_name, flags | DMGL_TYPES);
    4910   if (result == NULL)
    4911     {
    4912       printf ("%s\n", mangled_name);
    4913     }
    4914   else
    4915     {
    4916       printf ("%s\n", result);
    4917       free (result);
    4918     }
    4919 }
    4920 
    4921 static void
    4922 print_demangler_list (stream)
    4923      FILE *stream;
    4924 {
    4925   const struct demangler_engine *demangler;
    4926 
    4927   fprintf (stream, "{%s", libiberty_demanglers->demangling_style_name);
    4928  
    4929   for (demangler = libiberty_demanglers + 1;
    4930        demangler->demangling_style != unknown_demangling;
    4931        ++demangler)
    4932     fprintf (stream, ",%s", demangler->demangling_style_name);
    4933 
    4934   fprintf (stream, "}");
    4935 }
    4936 
    4937 static void
    4938 usage (stream, status)
    4939      FILE *stream;
    4940      int status;
    4941 {
    4942   fprintf (stream, "\
    4943 Usage: %s [-_] [-n] [--strip-underscores] [--no-strip-underscores] \n",
    4944            program_name);
    4945 
    4946   fprintf (stream, "\
    4947        [-s ");
    4948   print_demangler_list (stream);
    4949   fprintf (stream, "]\n");
    4950 
    4951   fprintf (stream, "\
    4952        [--format ");
    4953   print_demangler_list (stream);
    4954   fprintf (stream, "]\n");
    4955 
    4956   fprintf (stream, "\
    4957        [--help] [--version] [arg...]\n");
    4958   exit (status);
    4959 }
    4960 
    4961 #define MBUF_SIZE 32767
    4962 char mbuffer[MBUF_SIZE];
    4963 
    4964 /* Defined in the automatically-generated underscore.c.  */
    4965 extern int prepends_underscore;
    4966 
    4967 int strip_underscore = 0;
    4968 
    4969 static const struct option long_options[] = {
    4970   {"strip-underscores", no_argument, 0, '_'},
    4971   {"format", required_argument, 0, 's'},
    4972   {"help", no_argument, 0, 'h'},
    4973   {"no-strip-underscores", no_argument, 0, 'n'},
    4974   {"version", no_argument, 0, 'v'},
    4975   {0, no_argument, 0, 0}
    4976 };
    4977 
    4978 /* More 'friendly' abort that prints the line and file.
    4979    config.h can #define abort fancy_abort if you like that sort of thing.  */
    4980 
    4981 void
    4982 fancy_abort ()
    4983 {
    4984   fatal ("Internal gcc abort.");
    4985 }
    4986 
    4987 
    4988 static const char *
    4989 standard_symbol_characters PARAMS ((void));
    4990 
    4991 static const char *
    4992 hp_symbol_characters PARAMS ((void));
    4993 
    4994 static const char *
    4995 gnu_v3_symbol_characters PARAMS ((void));
    4996 
    4997 /* Return the string of non-alnum characters that may occur
    4998    as a valid symbol component, in the standard assembler symbol
    4999    syntax.  */
    5000 
    5001 static const char *
    5002 standard_symbol_characters ()
    5003 {
    5004   return "_$.";
    5005 }
    5006 
    5007 
    5008 /* Return the string of non-alnum characters that may occur
    5009    as a valid symbol name component in an HP object file.
    5010 
    5011    Note that, since HP's compiler generates object code straight from
    5012    C++ source, without going through an assembler, its mangled
    5013    identifiers can use all sorts of characters that no assembler would
    5014    tolerate, so the alphabet this function creates is a little odd.
    5015    Here are some sample mangled identifiers offered by HP:
    5016 
    5017         typeid*__XT24AddressIndExpClassMember_
    5018         [Vftptr]key:__dt__32OrdinaryCompareIndExpClassMemberFv
    5019         __ct__Q2_9Elf64_Dyn18{unnamed.union.#1}Fv
    5020 
    5021    This still seems really weird to me, since nowhere else in this
    5022    file is there anything to recognize curly brackets, parens, etc.
    5023    I've talked with Srikanth <srikanth@cup.hp.com>, and he assures me
    5024    this is right, but I still strongly suspect that there's a
    5025    misunderstanding here.
    5026 
    5027    If we decide it's better for c++filt to use HP's assembler syntax
    5028    to scrape identifiers out of its input, here's the definition of
    5029    the symbol name syntax from the HP assembler manual:
    5030 
    5031        Symbols are composed of uppercase and lowercase letters, decimal
    5032        digits, dollar symbol, period (.), ampersand (&), pound sign(#) and
    5033        underscore (_). A symbol can begin with a letter, digit underscore or
    5034        dollar sign. If a symbol begins with a digit, it must contain a
    5035        non-digit character.
    5036 
    5037    So have fun.  */
    5038 static const char *
    5039 hp_symbol_characters ()
    5040 {
    5041   return "_$.<>#,*&[]:(){}";
    5042 }
    5043 
    5044 
    5045 /* Return the string of non-alnum characters that may occur
    5046    as a valid symbol component in the GNU C++ V3 ABI mangling
    5047    scheme.  */
    5048 
    5049 static const char *
    5050 gnu_v3_symbol_characters ()
    5051 {
    5052   return "_$.";
    5053 }
    5054 
    5055 
    5056 extern int main PARAMS ((int, char **));
    5057 
    5058 int
    5059 main (argc, argv)
    5060      int argc;
    5061      char **argv;
    5062 {
    5063   char *result;
    5064   int c;
    5065   const char *valid_symbols;
    5066   enum demangling_styles style = auto_demangling;
    5067 
    5068   program_name = argv[0];
    5069 
    5070   strip_underscore = prepends_underscore;
    5071 
    5072   while ((c = getopt_long (argc, argv, "_ns:", long_options, (int *) 0)) != EOF)
    5073     {
    5074       switch (c)
    5075         {
    5076         case '?':
    5077           usage (stderr, 1);
    5078           break;
    5079         case 'h':
    5080           usage (stdout, 0);
    5081         case 'n':
    5082           strip_underscore = 0;
    5083           break;
    5084         case 'v':
    5085           printf ("GNU %s (C++ demangler), version %s\n", program_name, program_version);
    5086           return (0);
    5087         case '_':
    5088           strip_underscore = 1;
    5089           break;
    5090         case 's':
    5091           {
    5092             style = cplus_demangle_name_to_style (optarg);
    5093             if (style == unknown_demangling)
    5094               {
    5095                 fprintf (stderr, "%s: unknown demangling style `%s'\n",
    5096                          program_name, optarg);
    5097                 return (1);
    5098               }
    5099             else
    5100               cplus_demangle_set_style (style);
    5101           }
    5102           break;
    5103         }
    5104     }
    5105 
    5106   if (optind < argc)
    5107     {
    5108       for ( ; optind < argc; optind++)
    5109         {
    5110           demangle_it (argv[optind]);
    5111         }
    5112     }
    5113   else
    5114     {
    5115       switch (current_demangling_style)
    5116         {
    5117         case gnu_demangling:
    5118         case lucid_demangling:
    5119         case arm_demangling:
    5120         case java_demangling:
    5121         case edg_demangling:
    5122         case gnat_demangling:
    5123         case auto_demangling:
    5124           valid_symbols = standard_symbol_characters ();
    5125           break;
    5126         case hp_demangling:
    5127           valid_symbols = hp_symbol_characters ();
    5128           break;
    5129         case gnu_v3_demangling:
    5130           valid_symbols = gnu_v3_symbol_characters ();
    5131           break;
    5132         default:
    5133           /* Folks should explicitly indicate the appropriate alphabet for
    5134              each demangling.  Providing a default would allow the
    5135              question to go unconsidered.  */
    5136           abort ();
    5137         }
    5138 
    5139       for (;;)
    5140         {
    5141           int i = 0;
    5142           c = getchar ();
    5143           /* Try to read a label.  */
    5144           while (c != EOF && (ISALNUM (c) || strchr (valid_symbols, c)))
    5145             {
    5146               if (i >= MBUF_SIZE-1)
    5147                 break;
    5148               mbuffer[i++] = c;
    5149               c = getchar ();
    5150             }
    5151           if (i > 0)
    5152             {
    5153               int skip_first = 0;
    5154 
    5155               if (mbuffer[0] == '.' || mbuffer[0] == '$')
    5156                 ++skip_first;
    5157               if (strip_underscore && mbuffer[skip_first] == '_')
    5158                 ++skip_first;
    5159 
    5160               if (skip_first > i)
    5161                 skip_first = i;
    5162 
    5163               mbuffer[i] = 0;
    5164               flags |= (int) style;
    5165               result = cplus_demangle (mbuffer + skip_first, flags);
    5166               if (result)
    5167                 {
    5168                   if (mbuffer[0] == '.')
    5169                     putc ('.', stdout);
    5170                   fputs (result, stdout);
    5171                   free (result);
    5172                 }
    5173               else
    5174                 fputs (mbuffer, stdout);
    5175 
    5176               fflush (stdout);
    5177             }
    5178           if (c == EOF)
    5179             break;
    5180           putchar (c);
    5181           fflush (stdout);
    5182         }
    5183     }
    5184 
    5185   return (0);
    5186 }
    5187 
    5188 static void
    5189 fatal (str)
    5190      const char *str;
    5191 {
    5192   fprintf (stderr, "%s: %s\n", program_name, str);
    5193   exit (1);
    5194 }
    5195 
    5196 PTR
    5197 xmalloc (size)
    5198   size_t size;
    5199 {
    5200   register PTR value = (PTR) malloc (size);
    5201   if (value == 0)
    5202     fatal ("virtual memory exhausted");
    5203   return value;
    5204 }
    5205 
    5206 PTR
    5207 xrealloc (ptr, size)
    5208   PTR ptr;
    5209   size_t size;
    5210 {
    5211   register PTR value = (PTR) realloc (ptr, size);
    5212   if (value == 0)
    5213     fatal ("virtual memory exhausted");
    5214   return value;
    5215 }
    5216 #endif  /* main */
  • branches/GNU/src/gcc/libiberty/fibheap.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    6868  fibnode_t node;
    6969
    70   node = xcalloc (1, sizeof *node);
     70  node = (fibnode_t) xcalloc (1, sizeof *node);
    7171  node->left = node;
    7272  node->right = node;
  • branches/GNU/src/gcc/libiberty/floatformat.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    103103  floatformat_intbit_no,
    104104  "floatformat_m88110_ext_harris"
    105 };
    106 const struct floatformat floatformat_arm_ext =
    107 {
    108   /* Bits 1 to 16 are unused.  */
    109   floatformat_big, 96, 0, 17, 15, 0x3fff, 0x7fff, 32, 64,
    110   floatformat_intbit_yes,
    111   "floatformat_arm_ext"
    112105};
    113106const struct floatformat floatformat_arm_ext_big =
  • branches/GNU/src/gcc/libiberty/functions.texi

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    277277@end deftypefn
    278278
    279 @c getruntime.c:78
     279@c getruntime.c:82
    280280@deftypefn Replacement long get_run_time (void)
    281281
     
    318318@end deftypefn
    319319
     320@c hex.c:25
     321@deftypefn Extension void hex_init (void)
     322
     323Initializes the array mapping the current character set to
     324corresponding hex values.  This function must be called before any
     325call to @code{hex_p} or @code{hex_value}.  If you fail to call it, a
     326default ASCII-based table will normally be used on ASCII systems.
     327
     328@end deftypefn
     329
     330@c hex.c:34
     331@deftypefn Extension int hex_p (int @var{c})
     332
     333Evaluates to non-zero if the given character is a valid hex character,
     334or zero if it is not.  Note that the value you pass will be cast to
     335@code{unsigned char} within the macro.
     336
     337@end deftypefn
     338
     339@c hex.c:42
     340@deftypefn Extension int hex_value (int @var{c})
     341
     342Returns the numeric equivalent of the given character when interpreted
     343as a hexidecimal digit.  The result is undefined if you pass an
     344invalid hex digit.  Note that the value you pass will be cast to
     345@code{unsigned char} within the macro.
     346
     347@end deftypefn
     348
    320349@c index.c:5
    321350@deftypefn Supplemental char* index (char *@var{s}, int @var{c})
     
    361390In particular, the empty string returns the same empty string,
    362391and a path ending in @code{/} returns the empty string after it.
     392
     393@end deftypefn
     394
     395@c make-relative-prefix.c:24
     396@deftypefn Extension {const char*} make_relative_prefix (const char *@var{progname}, const char *@var{bin_prefix}, const char *@var{prefix})
     397
     398Given three strings @var{progname}, @var{bin_prefix}, @var{prefix}, return a string
     399that gets to @var{prefix} starting with the directory portion of @var{progname} and
     400a relative pathname of the difference between @var{bin_prefix} and @var{prefix}.
     401
     402For example, if @var{bin_prefix} is @code{/alpha/beta/gamma/gcc/delta}, @var{prefix}
     403is @code{/alpha/beta/gamma/omega/}, and @var{progname} is @code{/red/green/blue/gcc},
     404then this function will return @code{/red/green/blue/../../omega/}.
     405
     406The return value is normally allocated via @code{malloc}.  If no relative prefix
     407can be found, return @code{NULL}.
     408
     409@end deftypefn
     410
     411@c lrealpath.c:25
     412@deftypefn Replacement {const char*} lrealpath (const char *@var{name})
     413
     414Given a pointer to a string containing a pathname, returns a canonical
     415version of the filename.  Symlinks will be resolved, and ``.'' and ``..''
     416components will be simplified.  The returned value will be allocated using
     417@code{malloc}, or @code{NULL} will be returned on a memory allocation error.
     418
     419@end deftypefn
     420
     421@c make-relative-prefix.c:24
     422@deftypefn Extension {const char*} make_relative_prefix (const char *@var{progname}, const char *@var{bin_prefix}, const char *@var{prefix})
     423
     424Given three paths @var{progname}, @var{bin_prefix}, @var{prefix},
     425return the path that is in the same position relative to
     426@var{progname}'s directory as @var{prefix} is relative to
     427@var{bin_prefix}.  That is, a string starting with the directory
     428portion of @var{progname}, followed by a relative pathname of the
     429difference between @var{bin_prefix} and @var{prefix}.
     430
     431If @var{progname} does not contain any directory separators,
     432@code{make_relative_prefix} will search @env{PATH} to find a program
     433named @var{progname}.  Also, if @var{progname} is a symbolic link,
     434the symbolic link will be resolved.
     435
     436For example, if @var{bin_prefix} is @code{/alpha/beta/gamma/gcc/delta},
     437@var{prefix} is @code{/alpha/beta/gamma/omega/}, and @var{progname} is
     438@code{/red/green/blue/gcc}, then this function will return
     439@code{/red/green/blue/../../omega/}.
     440
     441The return value is normally allocated via @code{malloc}.  If no
     442relative prefix can be found, return @code{NULL}.
    363443
    364444@end deftypefn
  • branches/GNU/src/gcc/libiberty/getopt.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    337337      else
    338338        {
    339           memset (__mempcpy (new_str, __getopt_nonoption_flags,
    340                              nonoption_flags_max_len),
     339          memset (mempcpy (new_str, __getopt_nonoption_flags,
     340                           nonoption_flags_max_len),
    341341                  '\0', top + 1 - nonoption_flags_max_len);
    342342          nonoption_flags_max_len = top + 1;
     
    448448                nonoption_flags_max_len = -1;
    449449              else
    450                 memset (__mempcpy (__getopt_nonoption_flags, orig_str, len),
     450                memset (mempcpy (__getopt_nonoption_flags, orig_str, len),
    451451                        '\0', nonoption_flags_max_len - len);
    452452            }
  • branches/GNU/src/gcc/libiberty/getruntime.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11/* Return time used so far, in microseconds.
    2    Copyright (C) 1994, 1999 Free Software Foundation, Inc.
     2   Copyright (C) 1994, 1999, 2002 Free Software Foundation, Inc.
    33
    44This file is part of the libiberty library.
     
    2222#include "ansidecl.h"
    2323#include "libiberty.h"
     24
     25/* On some systems (such as WindISS), you must include <sys/types.h>
     26   to get the definition of "time_t" before you include <time.h>.  */
     27#include <sys/types.h>
    2428
    2529/* There are several ways to get elapsed execution time; unfortunately no
  • branches/GNU/src/gcc/libiberty/hashtab.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    4444#ifdef HAVE_STRING_H
    4545#include <string.h>
     46#endif
     47
     48#ifdef HAVE_MALLOC_H
     49#include <malloc.h>
    4650#endif
    4751
     
    159163   source length.  Created hash table is initiated as empty (all the
    160164   hash table entries are EMPTY_ENTRY).  The function returns the
    161    created hash table.  Memory allocation must not fail.  */
    162 
     165   created hash table, or NULL if memory allocation fails.  */
     166
     167htab_t
     168htab_create_alloc (size, hash_f, eq_f, del_f, alloc_f, free_f)
     169     size_t size;
     170     htab_hash hash_f;
     171     htab_eq eq_f;
     172     htab_del del_f;
     173     htab_alloc alloc_f;
     174     htab_free free_f;
     175{
     176  htab_t result;
     177
     178  size = higher_prime_number (size);
     179  result = (htab_t) (*alloc_f) (1, sizeof (struct htab));
     180  if (result == NULL)
     181    return NULL;
     182  result->entries = (PTR *) (*alloc_f) (size, sizeof (PTR));
     183  if (result->entries == NULL)
     184    {
     185      if (free_f != NULL)
     186        (*free_f) (result);
     187      return NULL;
     188    }
     189  result->size = size;
     190  result->hash_f = hash_f;
     191  result->eq_f = eq_f;
     192  result->del_f = del_f;
     193  result->alloc_f = alloc_f;
     194  result->free_f = free_f;
     195  return result;
     196}
     197
     198/* These functions exist solely for backward compatibility.  */
     199
     200#undef htab_create
    163201htab_t
    164202htab_create (size, hash_f, eq_f, del_f)
     
    168206     htab_del del_f;
    169207{
    170   htab_t result;
    171 
    172   size = higher_prime_number (size);
    173   result = (htab_t) xcalloc (1, sizeof (struct htab));
    174   result->entries = (PTR *) xcalloc (size, sizeof (PTR));
    175   result->size = size;
    176   result->hash_f = hash_f;
    177   result->eq_f = eq_f;
    178   result->del_f = del_f;
    179   result->return_allocation_failure = 0;
    180   return result;
    181 }
    182 
    183 /* This function creates table with length slightly longer than given
    184    source length.  The created hash table is initiated as empty (all the
    185    hash table entries are EMPTY_ENTRY).  The function returns the created
    186    hash table.  Memory allocation may fail; it may return NULL.  */
     208  return htab_create_alloc (size, hash_f, eq_f, del_f, xcalloc, free);
     209}
    187210
    188211htab_t
     
    193216     htab_del del_f;
    194217{
    195   htab_t result;
    196 
    197   size = higher_prime_number (size);
    198   result = (htab_t) calloc (1, sizeof (struct htab));
    199   if (result == NULL)
    200     return NULL;
    201 
    202   result->entries = (PTR *) calloc (size, sizeof (PTR));
    203   if (result->entries == NULL)
    204     {
    205       free (result);
    206       return NULL;
    207     }
    208 
    209   result->size = size;
    210   result->hash_f = hash_f;
    211   result->eq_f = eq_f;
    212   result->del_f = del_f;
    213   result->return_allocation_failure = 1;
    214   return result;
     218  return htab_create_alloc (size, hash_f, eq_f, del_f, calloc, free);
    215219}
    216220
     
    230234        (*htab->del_f) (htab->entries[i]);
    231235
    232   free (htab->entries);
    233   free (htab);
     236  if (htab->free_f != NULL)
     237    {
     238      (*htab->free_f) (htab->entries);
     239      (*htab->free_f) (htab);
     240    }
    234241}
    235242
     
    303310  PTR *olimit;
    304311  PTR *p;
     312  PTR *nentries;
    305313  size_t nsize;
    306314
     
    310318  nsize = higher_prime_number (htab->size * 2);
    311319
    312   if (htab->return_allocation_failure)
    313     {
    314       PTR *nentries = (PTR *) calloc (nsize, sizeof (PTR));
    315       if (nentries == NULL)
    316         return 0;
    317       htab->entries = nentries;
    318     }
    319   else
    320     htab->entries = (PTR *) xcalloc (nsize, sizeof (PTR));
    321 
     320  nentries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR));
     321  if (nentries == NULL)
     322    return 0;
     323  htab->entries = nentries;
    322324  htab->size = nsize;
     325
    323326  htab->n_elements -= htab->n_deleted;
    324327  htab->n_deleted = 0;
     
    340343  while (p < olimit);
    341344
    342   free (oentries);
     345  if (htab->free_f != NULL)
     346    (*htab->free_f) (oentries);
    343347  return 1;
    344348}
  • branches/GNU/src/gcc/libiberty/hex.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    2121#include "libiberty.h"
    2222
    23 /* Provided for ABI compatibility.  */
    24 void
    25 hex_init ()
    26 {
    27 }
     23/*
     24
     25@deftypefn Extension void hex_init (void)
     26
     27Initializes the array mapping the current character set to
     28corresponding hex values.  This function must be called before any
     29call to @code{hex_p} or @code{hex_value}.  If you fail to call it, a
     30default ASCII-based table will normally be used on ASCII systems.
     31
     32@end deftypefn
     33
     34@deftypefn Extension int hex_p (int @var{c})
     35
     36Evaluates to non-zero if the given character is a valid hex character,
     37or zero if it is not.  Note that the value you pass will be cast to
     38@code{unsigned char} within the macro.
     39
     40@end deftypefn
     41
     42@deftypefn Extension int hex_value (int @var{c})
     43
     44Returns the numeric equivalent of the given character when interpreted
     45as a hexidecimal digit.  The result is undefined if you pass an
     46invalid hex digit.  Note that the value you pass will be cast to
     47@code{unsigned char} within the macro.
     48
     49@end deftypefn
     50
     51@undocumented _hex_array_size
     52@undocumented _hex_bad
     53@undocumented _hex_value
     54
     55*/
     56
    2857
    2958/* Are we ASCII? */
     
    107136  _hex_bad, _hex_bad, _hex_bad, _hex_bad,
    108137};
     138#define HEX_TABLE_INITIALIZED
     139
    109140#else
    110  #error "Unsupported host character set"
     141
     142char _hex_value[_hex_array_size];
     143
    111144#endif /* not ASCII */
     145
     146void
     147hex_init ()
     148{
     149#ifndef HEX_TABLE_INITIALIZED
     150  int i;
     151
     152  for (i=0; i<_hex_array_size; i++)
     153    {
     154      switch (i)
     155        {
     156        case '0': _hex_value[i] = 0; break;
     157        case '1': _hex_value[i] = 1; break;
     158        case '2': _hex_value[i] = 2; break;
     159        case '3': _hex_value[i] = 3; break;
     160        case '4': _hex_value[i] = 4; break;
     161        case '5': _hex_value[i] = 5; break;
     162        case '6': _hex_value[i] = 6; break;
     163        case '7': _hex_value[i] = 7; break;
     164        case '8': _hex_value[i] = 8; break;
     165        case '9': _hex_value[i] = 9; break;
     166
     167        case 'a': case 'A': _hex_value[i] = 10; break;
     168        case 'b': case 'B': _hex_value[i] = 11; break;
     169        case 'c': case 'C': _hex_value[i] = 12; break;
     170        case 'd': case 'D': _hex_value[i] = 13; break;
     171        case 'e': case 'E': _hex_value[i] = 14; break;
     172        case 'f': case 'F': _hex_value[i] = 15; break;
     173
     174        default:
     175          _hex_value[i] = _hex_bad;
     176          break;
     177        }
     178    }
     179#endif
     180}
  • branches/GNU/src/gcc/libiberty/lbasename.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11/* Libiberty basename.  Like basename, but is not overridden by the
    22   system C library.
    3    Copyright (C) 2001 Free Software Foundation, Inc.
     3   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    44
    55This file is part of the libiberty library.
     
    5454#endif
    5555
    56 /* Define IS_DIR_SEPARATOR. VMS uses '::', ':', '[...]' and '<...>' to
    57    separate the different components of a file specification.  It's a
    58    bit of a stretch to call ':', ']' and '>' directory separators, so
    59    just define the test to find the file name component.  */
    60 #ifdef VMS
    61 #  define IS_DIR_SEPARATOR(ch) ((ch) == ':' || (ch) == ']' || (ch) == '>')
     56#ifndef DIR_SEPARATOR_2
     57#  define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
    6258#else
    63 #  ifndef DIR_SEPARATOR_2
    64 #    define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
    65 #  else
    66 #    define IS_DIR_SEPARATOR(ch) \
     59#  define IS_DIR_SEPARATOR(ch) \
    6760        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
    68 #  endif
    6961#endif
    7062
  • branches/GNU/src/gcc/libiberty/libiberty.texi

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    3030
    3131      Permission is granted to copy, distribute and/or modify this document
    32       under the terms of the GNU Free Documentation License, Version 1.1
     32      under the terms of the GNU Free Documentation License, Version 1.2
    3333      or any later version published by the Free Software Foundation;
    3434      with no Invariant Sections, with no Front-Cover Texts, and with no
     
    5959
    6060      Permission is granted to copy, distribute and/or modify this document
    61       under the terms of the GNU Free Documentation License, Version 1.1
     61      under the terms of the GNU Free Documentation License, Version 1.2
    6262      or any later version published by the Free Software Foundation;
    6363      with no Invariant Sections, with no Front-Cover Texts, and with no
  • branches/GNU/src/gcc/libiberty/md5.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    230230        }
    231231
    232       buffer = (const char *) buffer + add;
     232      buffer = (const void *) ((const char *) buffer + add);
    233233      len -= add;
    234234    }
     
    238238    {
    239239      md5_process_block (buffer, len & ~63, ctx);
    240       buffer = (const char *) buffer + (len & ~63);
     240      buffer = (const void *) ((const char *) buffer + (len & ~63));
    241241      len &= 63;
    242242    }
     
    270270{
    271271  md5_uint32 correct_words[16];
    272   const md5_uint32 *words = buffer;
     272  const md5_uint32 *words = (const md5_uint32 *) buffer;
    273273  size_t nwords = len / sizeof (md5_uint32);
    274274  const md5_uint32 *endp = words + nwords;
     
    344344         argument specifying the function to use.  */
    345345#undef OP
    346 #define OP(f, a, b, c, d, k, s, T)                                      \
     346#define OP(a, b, c, d, k, s, T)                                         \
    347347      do                                                                \
    348348        {                                                               \
    349           a += f (b, c, d) + correct_words[k] + T;                      \
     349          a += FX (b, c, d) + correct_words[k] + T;                     \
    350350          CYCLIC (a, s);                                                \
    351351          a += b;                                                       \
     
    353353      while (0)
    354354
     355#define FX(b, c, d) FG (b, c, d)
     356
    355357      /* Round 2.  */
    356       OP (FG, A, B, C, D,  1,  5, (md5_uint32) 0xf61e2562);
    357       OP (FG, D, A, B, C,  6,  9, (md5_uint32) 0xc040b340);
    358       OP (FG, C, D, A, B, 11, 14, (md5_uint32) 0x265e5a51);
    359       OP (FG, B, C, D, A,  0, 20, (md5_uint32) 0xe9b6c7aa);
    360       OP (FG, A, B, C, D,  5,  5, (md5_uint32) 0xd62f105d);
    361       OP (FG, D, A, B, C, 10,  9, (md5_uint32) 0x02441453);
    362       OP (FG, C, D, A, B, 15, 14, (md5_uint32) 0xd8a1e681);
    363       OP (FG, B, C, D, A,  4, 20, (md5_uint32) 0xe7d3fbc8);
    364       OP (FG, A, B, C, D,  9,  5, (md5_uint32) 0x21e1cde6);
    365       OP (FG, D, A, B, C, 14,  9, (md5_uint32) 0xc33707d6);
    366       OP (FG, C, D, A, B,  3, 14, (md5_uint32) 0xf4d50d87);
    367       OP (FG, B, C, D, A,  8, 20, (md5_uint32) 0x455a14ed);
    368       OP (FG, A, B, C, D, 13,  5, (md5_uint32) 0xa9e3e905);
    369       OP (FG, D, A, B, C,  2,  9, (md5_uint32) 0xfcefa3f8);
    370       OP (FG, C, D, A, B,  7, 14, (md5_uint32) 0x676f02d9);
    371       OP (FG, B, C, D, A, 12, 20, (md5_uint32) 0x8d2a4c8a);
     358      OP (A, B, C, D,  1,  5, (md5_uint32) 0xf61e2562);
     359      OP (D, A, B, C,  6,  9, (md5_uint32) 0xc040b340);
     360      OP (C, D, A, B, 11, 14, (md5_uint32) 0x265e5a51);
     361      OP (B, C, D, A,  0, 20, (md5_uint32) 0xe9b6c7aa);
     362      OP (A, B, C, D,  5,  5, (md5_uint32) 0xd62f105d);
     363      OP (D, A, B, C, 10,  9, (md5_uint32) 0x02441453);
     364      OP (C, D, A, B, 15, 14, (md5_uint32) 0xd8a1e681);
     365      OP (B, C, D, A,  4, 20, (md5_uint32) 0xe7d3fbc8);
     366      OP (A, B, C, D,  9,  5, (md5_uint32) 0x21e1cde6);
     367      OP (D, A, B, C, 14,  9, (md5_uint32) 0xc33707d6);
     368      OP (C, D, A, B,  3, 14, (md5_uint32) 0xf4d50d87);
     369      OP (B, C, D, A,  8, 20, (md5_uint32) 0x455a14ed);
     370      OP (A, B, C, D, 13,  5, (md5_uint32) 0xa9e3e905);
     371      OP (D, A, B, C,  2,  9, (md5_uint32) 0xfcefa3f8);
     372      OP (C, D, A, B,  7, 14, (md5_uint32) 0x676f02d9);
     373      OP (B, C, D, A, 12, 20, (md5_uint32) 0x8d2a4c8a);
     374
     375#undef FX
     376#define FX(b, c, d) FH (b, c, d)
    372377
    373378      /* Round 3.  */
    374       OP (FH, A, B, C, D,  5,  4, (md5_uint32) 0xfffa3942);
    375       OP (FH, D, A, B, C,  8, 11, (md5_uint32) 0x8771f681);
    376       OP (FH, C, D, A, B, 11, 16, (md5_uint32) 0x6d9d6122);
    377       OP (FH, B, C, D, A, 14, 23, (md5_uint32) 0xfde5380c);
    378       OP (FH, A, B, C, D,  1,  4, (md5_uint32) 0xa4beea44);
    379       OP (FH, D, A, B, C,  4, 11, (md5_uint32) 0x4bdecfa9);
    380       OP (FH, C, D, A, B,  7, 16, (md5_uint32) 0xf6bb4b60);
    381       OP (FH, B, C, D, A, 10, 23, (md5_uint32) 0xbebfbc70);
    382       OP (FH, A, B, C, D, 13,  4, (md5_uint32) 0x289b7ec6);
    383       OP (FH, D, A, B, C,  0, 11, (md5_uint32) 0xeaa127fa);
    384       OP (FH, C, D, A, B,  3, 16, (md5_uint32) 0xd4ef3085);
    385       OP (FH, B, C, D, A,  6, 23, (md5_uint32) 0x04881d05);
    386       OP (FH, A, B, C, D,  9,  4, (md5_uint32) 0xd9d4d039);
    387       OP (FH, D, A, B, C, 12, 11, (md5_uint32) 0xe6db99e5);
    388       OP (FH, C, D, A, B, 15, 16, (md5_uint32) 0x1fa27cf8);
    389       OP (FH, B, C, D, A,  2, 23, (md5_uint32) 0xc4ac5665);
     379      OP (A, B, C, D,  5,  4, (md5_uint32) 0xfffa3942);
     380      OP (D, A, B, C,  8, 11, (md5_uint32) 0x8771f681);
     381      OP (C, D, A, B, 11, 16, (md5_uint32) 0x6d9d6122);
     382      OP (B, C, D, A, 14, 23, (md5_uint32) 0xfde5380c);
     383      OP (A, B, C, D,  1,  4, (md5_uint32) 0xa4beea44);
     384      OP (D, A, B, C,  4, 11, (md5_uint32) 0x4bdecfa9);
     385      OP (C, D, A, B,  7, 16, (md5_uint32) 0xf6bb4b60);
     386      OP (B, C, D, A, 10, 23, (md5_uint32) 0xbebfbc70);
     387      OP (A, B, C, D, 13,  4, (md5_uint32) 0x289b7ec6);
     388      OP (D, A, B, C,  0, 11, (md5_uint32) 0xeaa127fa);
     389      OP (C, D, A, B,  3, 16, (md5_uint32) 0xd4ef3085);
     390      OP (B, C, D, A,  6, 23, (md5_uint32) 0x04881d05);
     391      OP (A, B, C, D,  9,  4, (md5_uint32) 0xd9d4d039);
     392      OP (D, A, B, C, 12, 11, (md5_uint32) 0xe6db99e5);
     393      OP (C, D, A, B, 15, 16, (md5_uint32) 0x1fa27cf8);
     394      OP (B, C, D, A,  2, 23, (md5_uint32) 0xc4ac5665);
     395
     396#undef FX
     397#define FX(b, c, d) FI (b, c, d)
    390398
    391399      /* Round 4.  */
    392       OP (FI, A, B, C, D,  0,  6, (md5_uint32) 0xf4292244);
    393       OP (FI, D, A, B, C,  7, 10, (md5_uint32) 0x432aff97);
    394       OP (FI, C, D, A, B, 14, 15, (md5_uint32) 0xab9423a7);
    395       OP (FI, B, C, D, A,  5, 21, (md5_uint32) 0xfc93a039);
    396       OP (FI, A, B, C, D, 12,  6, (md5_uint32) 0x655b59c3);
    397       OP (FI, D, A, B, C,  3, 10, (md5_uint32) 0x8f0ccc92);
    398       OP (FI, C, D, A, B, 10, 15, (md5_uint32) 0xffeff47d);
    399       OP (FI, B, C, D, A,  1, 21, (md5_uint32) 0x85845dd1);
    400       OP (FI, A, B, C, D,  8,  6, (md5_uint32) 0x6fa87e4f);
    401       OP (FI, D, A, B, C, 15, 10, (md5_uint32) 0xfe2ce6e0);
    402       OP (FI, C, D, A, B,  6, 15, (md5_uint32) 0xa3014314);
    403       OP (FI, B, C, D, A, 13, 21, (md5_uint32) 0x4e0811a1);
    404       OP (FI, A, B, C, D,  4,  6, (md5_uint32) 0xf7537e82);
    405       OP (FI, D, A, B, C, 11, 10, (md5_uint32) 0xbd3af235);
    406       OP (FI, C, D, A, B,  2, 15, (md5_uint32) 0x2ad7d2bb);
    407       OP (FI, B, C, D, A,  9, 21, (md5_uint32) 0xeb86d391);
     400      OP (A, B, C, D,  0,  6, (md5_uint32) 0xf4292244);
     401      OP (D, A, B, C,  7, 10, (md5_uint32) 0x432aff97);
     402      OP (C, D, A, B, 14, 15, (md5_uint32) 0xab9423a7);
     403      OP (B, C, D, A,  5, 21, (md5_uint32) 0xfc93a039);
     404      OP (A, B, C, D, 12,  6, (md5_uint32) 0x655b59c3);
     405      OP (D, A, B, C,  3, 10, (md5_uint32) 0x8f0ccc92);
     406      OP (C, D, A, B, 10, 15, (md5_uint32) 0xffeff47d);
     407      OP (B, C, D, A,  1, 21, (md5_uint32) 0x85845dd1);
     408      OP (A, B, C, D,  8,  6, (md5_uint32) 0x6fa87e4f);
     409      OP (D, A, B, C, 15, 10, (md5_uint32) 0xfe2ce6e0);
     410      OP (C, D, A, B,  6, 15, (md5_uint32) 0xa3014314);
     411      OP (B, C, D, A, 13, 21, (md5_uint32) 0x4e0811a1);
     412      OP (A, B, C, D,  4,  6, (md5_uint32) 0xf7537e82);
     413      OP (D, A, B, C, 11, 10, (md5_uint32) 0xbd3af235);
     414      OP (C, D, A, B,  2, 15, (md5_uint32) 0x2ad7d2bb);
     415      OP (B, C, D, A,  9, 21, (md5_uint32) 0xeb86d391);
    408416
    409417      /* Add the starting values of the context.  */
  • branches/GNU/src/gcc/libiberty/regex.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    33   (Implements POSIX draft P1003.2/D11.2, except for some of the
    44   internationalization features.)
    5    Copyright (C) 1993-1999, 2000, 2001 Free Software Foundation, Inc.
     5   Copyright (C) 1993-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    66   This file is part of the GNU C Library.
    77
     
    2626   routines or with other components regex routines. */
    2727/* AIX requires this to be the first thing in the file. */
    28 #if defined _AIX && !defined REGEX_MALLOC
     28#if defined _AIX && !defined __GNUC__ && !defined REGEX_MALLOC
    2929  #pragma alloca
    3030#endif
     
    13821382   but why not be nice?  */
    13831383
    1384 static const char re_error_msgid[] =
     1384static const char *re_error_msgid[] =
    13851385  {
    1386 # define REG_NOERROR_IDX        0
    1387     gettext_noop ("Success")    /* REG_NOERROR */
    1388     "\0"
    1389 # define REG_NOMATCH_IDX (REG_NOERROR_IDX + sizeof "Success")
    1390     gettext_noop ("No match")   /* REG_NOMATCH */
    1391     "\0"
    1392 # define REG_BADPAT_IDX (REG_NOMATCH_IDX + sizeof "No match")
    1393     gettext_noop ("Invalid regular expression") /* REG_BADPAT */
    1394     "\0"
    1395 # define REG_ECOLLATE_IDX (REG_BADPAT_IDX + sizeof "Invalid regular expression")
    1396     gettext_noop ("Invalid collation character") /* REG_ECOLLATE */
    1397     "\0"
    1398 # define REG_ECTYPE_IDX (REG_ECOLLATE_IDX + sizeof "Invalid collation character")
    1399     gettext_noop ("Invalid character class name") /* REG_ECTYPE */
    1400     "\0"
    1401 # define REG_EESCAPE_IDX        (REG_ECTYPE_IDX + sizeof "Invalid character class name")
    1402     gettext_noop ("Trailing backslash") /* REG_EESCAPE */
    1403     "\0"
    1404 # define REG_ESUBREG_IDX        (REG_EESCAPE_IDX + sizeof "Trailing backslash")
    1405     gettext_noop ("Invalid back reference") /* REG_ESUBREG */
    1406     "\0"
    1407 # define REG_EBRACK_IDX (REG_ESUBREG_IDX + sizeof "Invalid back reference")
    1408     gettext_noop ("Unmatched [ or [^")  /* REG_EBRACK */
    1409     "\0"
    1410 # define REG_EPAREN_IDX (REG_EBRACK_IDX + sizeof "Unmatched [ or [^")
    1411     gettext_noop ("Unmatched ( or \\(") /* REG_EPAREN */
    1412     "\0"
    1413 # define REG_EBRACE_IDX (REG_EPAREN_IDX + sizeof "Unmatched ( or \\(")
    1414     gettext_noop ("Unmatched \\{") /* REG_EBRACE */
    1415     "\0"
    1416 # define REG_BADBR_IDX  (REG_EBRACE_IDX + sizeof "Unmatched \\{")
    1417     gettext_noop ("Invalid content of \\{\\}") /* REG_BADBR */
    1418     "\0"
    1419 # define REG_ERANGE_IDX (REG_BADBR_IDX + sizeof "Invalid content of \\{\\}")
    1420     gettext_noop ("Invalid range end")  /* REG_ERANGE */
    1421     "\0"
    1422 # define REG_ESPACE_IDX (REG_ERANGE_IDX + sizeof "Invalid range end")
    1423     gettext_noop ("Memory exhausted") /* REG_ESPACE */
    1424     "\0"
    1425 # define REG_BADRPT_IDX (REG_ESPACE_IDX + sizeof "Memory exhausted")
    1426     gettext_noop ("Invalid preceding regular expression") /* REG_BADRPT */
    1427     "\0"
    1428 # define REG_EEND_IDX   (REG_BADRPT_IDX + sizeof "Invalid preceding regular expression")
    1429     gettext_noop ("Premature end of regular expression") /* REG_EEND */
    1430     "\0"
    1431 # define REG_ESIZE_IDX  (REG_EEND_IDX + sizeof "Premature end of regular expression")
    1432     gettext_noop ("Regular expression too big") /* REG_ESIZE */
    1433     "\0"
    1434 # define REG_ERPAREN_IDX        (REG_ESIZE_IDX + sizeof "Regular expression too big")
     1386    gettext_noop ("Success"),   /* REG_NOERROR */
     1387    gettext_noop ("No match"),  /* REG_NOMATCH */
     1388    gettext_noop ("Invalid regular expression"), /* REG_BADPAT */
     1389    gettext_noop ("Invalid collation character"), /* REG_ECOLLATE */
     1390    gettext_noop ("Invalid character class name"), /* REG_ECTYPE */
     1391    gettext_noop ("Trailing backslash"), /* REG_EESCAPE */
     1392    gettext_noop ("Invalid back reference"), /* REG_ESUBREG */
     1393    gettext_noop ("Unmatched [ or [^"), /* REG_EBRACK */
     1394    gettext_noop ("Unmatched ( or \\("), /* REG_EPAREN */
     1395    gettext_noop ("Unmatched \\{"), /* REG_EBRACE */
     1396    gettext_noop ("Invalid content of \\{\\}"), /* REG_BADBR */
     1397    gettext_noop ("Invalid range end"), /* REG_ERANGE */
     1398    gettext_noop ("Memory exhausted"), /* REG_ESPACE */
     1399    gettext_noop ("Invalid preceding regular expression"), /* REG_BADRPT */
     1400    gettext_noop ("Premature end of regular expression"), /* REG_EEND */
     1401    gettext_noop ("Regular expression too big"), /* REG_ESIZE */
    14351402    gettext_noop ("Unmatched ) or \\)") /* REG_ERPAREN */
    1436   };
    1437 
    1438 static const size_t re_error_msgid_idx[] =
    1439   {
    1440     REG_NOERROR_IDX,
    1441     REG_NOMATCH_IDX,
    1442     REG_BADPAT_IDX,
    1443     REG_ECOLLATE_IDX,
    1444     REG_ECTYPE_IDX,
    1445     REG_EESCAPE_IDX,
    1446     REG_ESUBREG_IDX,
    1447     REG_EBRACK_IDX,
    1448     REG_EPAREN_IDX,
    1449     REG_EBRACE_IDX,
    1450     REG_BADBR_IDX,
    1451     REG_ERANGE_IDX,
    1452     REG_ESPACE_IDX,
    1453     REG_BADRPT_IDX,
    1454     REG_EEND_IDX,
    1455     REG_ESIZE_IDX,
    1456     REG_ERPAREN_IDX
    14571403  };
    14581404
     
    47174663  while (1)
    47184664    {
    4719       if (p == pend || *p == succeed)
     4665      if (p == pend || *p == (UCHAR_T) succeed)
    47204666        {
    47214667          /* We have reached the (effective) end of pattern.  */
     
    79647910  if (!ret)
    79657911    return NULL;
    7966   return gettext (re_error_msgid + re_error_msgid_idx[(int) ret]);
     7912  return gettext (re_error_msgid[(int) ret]);
    79677913}
    79687914#ifdef _LIBC
     
    80027948      re_comp_buf.buffer = (unsigned char *) malloc (200);
    80037949      if (re_comp_buf.buffer == NULL)
    8004         return (char *) gettext (re_error_msgid
    8005                                  + re_error_msgid_idx[(int) REG_ESPACE]);
     7950        return (char *) gettext (re_error_msgid[(int) REG_ESPACE]);
    80067951      re_comp_buf.allocated = 200;
    80077952
    80087953      re_comp_buf.fastmap = (char *) malloc (1 << BYTEWIDTH);
    80097954      if (re_comp_buf.fastmap == NULL)
    8010         return (char *) gettext (re_error_msgid
    8011                                  + re_error_msgid_idx[(int) REG_ESPACE]);
     7955        return (char *) gettext (re_error_msgid[(int) REG_ESPACE]);
    80127956    }
    80137957
     
    80297973
    80307974  /* Yes, we're discarding `const' here if !HAVE_LIBINTL.  */
    8031   return (char *) gettext (re_error_msgid + re_error_msgid_idx[(int) ret]);
     7975  return (char *) gettext (re_error_msgid[(int) ret]);
    80327976}
    80337977
     
    82618205
    82628206  if (errcode < 0
    8263       || errcode >= (int) (sizeof (re_error_msgid_idx)
    8264                            / sizeof (re_error_msgid_idx[0])))
     8207      || errcode >= (int) (sizeof (re_error_msgid)
     8208                           / sizeof (re_error_msgid[0])))
    82658209    /* Only error codes returned by the rest of the code should be passed
    82668210       to this routine.  If we are given anything else, or if other regex
     
    82698213    abort ();
    82708214
    8271   msg = gettext (re_error_msgid + re_error_msgid_idx[errcode]);
     8215  msg = gettext (re_error_msgid[errcode]);
    82728216
    82738217  msg_size = strlen (msg) + 1; /* Includes the null.  */
     
    82788222        {
    82798223#if defined HAVE_MEMPCPY || defined _LIBC
    8280           *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
     8224          *((char *) mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
    82818225#else
    82828226          memcpy (errbuf, msg, errbuf_size - 1);
  • branches/GNU/src/gcc/libiberty/safe-ctype.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    4949
    5050/* Masks.  */
    51 #define L  lo|is   |pr  /* lower case letter */
    52 #define XL lo|is|xd|pr  /* lowercase hex digit */
    53 #define U  up|is   |pr  /* upper case letter */
    54 #define XU up|is|xd|pr  /* uppercase hex digit */
    55 #define D  di   |xd|pr  /* decimal digit */
    56 #define P  pn      |pr  /* punctuation */
    57 #define _  pn|is   |pr  /* underscore */
     51#define L  (const unsigned short) (lo|is   |pr) /* lower case letter */
     52#define XL (const unsigned short) (lo|is|xd|pr) /* lowercase hex digit */
     53#define U  (const unsigned short) (up|is   |pr) /* upper case letter */
     54#define XU (const unsigned short) (up|is|xd|pr) /* uppercase hex digit */
     55#define D  (const unsigned short) (di   |xd|pr) /* decimal digit */
     56#define P  (const unsigned short) (pn      |pr) /* punctuation */
     57#define _  (const unsigned short) (pn|is   |pr) /* underscore */
    5858
    59 #define C           cn  /* control character */
    60 #define Z  nv      |cn  /* NUL */
    61 #define M  nv|sp   |cn  /* cursor movement: \f \v */
    62 #define V  vs|sp   |cn  /* vertical space: \r \n */
    63 #define T  nv|sp|bl|cn  /* tab */
    64 #define S  nv|sp|bl|pr  /* space */
     59#define C  (const unsigned short) (         cn) /* control character */
     60#define Z  (const unsigned short) (nv      |cn) /* NUL */
     61#define M  (const unsigned short) (nv|sp   |cn) /* cursor movement: \f \v */
     62#define V  (const unsigned short) (vs|sp   |cn) /* vertical space: \r \n */
     63#define T  (const unsigned short) (nv|sp|bl|cn) /* tab */
     64#define S  (const unsigned short) (nv|sp|bl|pr) /* space */
    6565
    6666/* Are we ASCII? */
  • branches/GNU/src/gcc/libiberty/splay-tree.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    235235     void *data ATTRIBUTE_UNUSED;
    236236{
    237   return xmalloc (size);
     237  return (void *) xmalloc (size);
    238238}
    239239
     
    483483
    484484/* Return the immediate successor KEY, or NULL if there is no
    485    predecessor.  KEY need not be present in the tree.  */
     485   successor.  KEY need not be present in the tree.  */
    486486
    487487splay_tree_node
     
    493493  splay_tree_node node;
    494494
    495   /* If the tree is empty, there is certainly no predecessor.  */
     495  /* If the tree is empty, there is certainly no successor.  */
    496496  if (!sp->root)
    497497    return NULL;
  • branches/GNU/src/gcc/libiberty/testsuite/Makefile.in

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11#
    22# Makefile
    3 #   Copyright (C) 1999
     3#   Copyright (C) 1999, 2002
    44#   Free Software Foundation
    55#
     
    4646
    4747# Run some tests of the demangler.
    48 check-cplus-dem: test-filter $(srcdir)/demangle-expected
    49         $(SHELL) $(srcdir)/regress-demangle $(srcdir)/demangle-expected
     48check-cplus-dem: test-demangle $(srcdir)/demangle-expected
     49        ./test-demangle < $(srcdir)/demangle-expected
    5050
    51 # Note that we just hard-code prepends_underscore to 0.  This doesn't
    52 # matter since any particular test can override the default if need
    53 # be.
    5451TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
    55 test-filter: $(srcdir)/../cplus-dem.c
    56         echo 'int prepends_underscore = 0;' > test-us.c
    57         $(TEST_COMPILE) -o test-filter -DMAIN -DVERSION='"none"' @DEFS@ \
    58                 $(srcdir)/../cplus-dem.c test-us.c -L.. -liberty
    59 
     52test-demangle: $(srcdir)/test-demangle.c
     53        $(TEST_COMPILE) -o test-demangle \
     54                $(srcdir)/test-demangle.c ../libiberty.a
    6055
    6156# Standard (either GNU or Cygnus) rules we don't use.
     
    6459# The standard clean rules.
    6560mostlyclean:
    66         rm -f test-us.c test-filter
     61        rm -f test-demangle
    6762clean: mostlyclean
    6863distclean: clean
     
    7065maintainer-clean realclean: distclean
    7166
    72 
    7367Makefile: $(srcdir)/Makefile.in ../config.status
    7468        CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
  • branches/GNU/src/gcc/libiberty/testsuite/demangle-expected

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    128128#
    129129--format=gnu
    130 _10PageButton\$__both
     130_10PageButton$__both
    131131PageButton::__both
    132132#
    133133--format=gnu
    134 _3RNG\$singleMantissa
     134_3RNG$singleMantissa
    135135RNG::singleMantissa
    136136#
    137137--format=gnu
    138 _5IComp\$_release
     138_5IComp$_release
    139139IComp::_release
    140140#
    141141--format=gnu
    142 _\$_10BitmapComp
     142_$_10BitmapComp
    143143BitmapComp::~BitmapComp(void)
    144144#
    145145--format=gnu
    146 _\$_9__io_defs
     146_$_9__io_defs
    147147__io_defs::~__io_defs(void)
    148148#
    149149--format=gnu
    150 _\$_Q23foo3bar
     150_$_Q23foo3bar
    151151foo::bar::~bar(void)
    152152#
    153153--format=gnu
    154 _\$_Q33foo3bar4bell
     154_$_Q33foo3bar4bell
    155155foo::bar::bell::~bell(void)
    156156#
     
    436436#
    437437--format=gnu
    438 _vt\$foo
     438_vt$foo
    439439foo virtual table
    440440#
    441441--format=gnu
    442 _vt\$foo\$bar
     442_vt$foo$bar
    443443foo::bar virtual table
    444444#
     
    648648#
    649649--format=gnu
    650 _2T4\$N
     650_2T4$N
    651651T4::N
    652652#
    653653--format=gnu
    654 _Q22T42t1\$N
     654_Q22T42t1$N
    655655T4::t1::N
    656656#
     
    728728#
    729729--format=gnu
    730 _\$_t6vector1Zdi
     730_$_t6vector1Zdi
    731731vector<double>::~vector(int)
    732732#
    733733--format=gnu
    734 _\$_t6vector1Zii
     734_$_t6vector1Zii
    735735vector<int>::~vector(int)
    736736#
     
    828828#
    829829--format=gnu
    830 _GLOBAL_\$D\$set
     830_GLOBAL_$D$set
    831831global destructors keyed to set
    832832#
    833833--format=gnu
    834 _GLOBAL_\$I\$set
     834_GLOBAL_$I$set
    835835global constructors keyed to set
    836836#
     
    876876#
    877877--format=gnu
    878 _vt\$t8BDDHookV1ZPc
     878_vt$t8BDDHookV1ZPc
    879879BDDHookV<char *> virtual table
    880880#
     
    25652565#
    25662566--format=gnu
    2567 _26_GLOBAL_\$N\$_tmp_n.iilg4Gya\$app_instance
     2567_26_GLOBAL_$N$_tmp_n.iilg4Gya$app_instance
    25682568{anonymous}::app_instance
    25692569#
     
    25872587_ZN4Prim1iEibcdfwPN4java4lang6StringEsx
    25882588Prim.i(int, boolean, byte, double, float, char, java.lang.String, short, long)
     2589#
     2590--format=java
     2591_ZN4java4util14Map__U24_Entry11class__U24_E
     2592java.util.Map$Entry.class$
    25892593#
    25902594--format=hp
  • branches/GNU/src/gcc/libiberty/vasprintf.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    139139  global_total_width = total_width;
    140140#endif
    141   *result = malloc (total_width);
     141  *result = (char *) malloc (total_width);
    142142  if (*result != NULL)
    143143    return vsprintf (*result, format, *args);
  • branches/GNU/src/gcc/libiberty/vsprintf.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    2727the executable file might be covered by the GNU General Public License. */
    2828
     29#include <ansidecl.h>
     30#ifdef ANSI_PROTOTYPES
     31#include <stdarg.h>
     32#else
    2933#include <varargs.h>
     34#endif
    3035#include <stdio.h>
    31 #include <ansidecl.h>
    3236#undef vsprintf
    3337
  • branches/GNU/src/gcc/libiberty/waitpid.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1414#include "config.h"
    1515#endif
     16
     17/* On some systems (such as WindISS), you must include <sys/types.h>
     18   to get the definition of "pid_t" before you include <sys/wait.h>.  */
     19#include <sys/types.h>
     20
    1621#ifdef HAVE_SYS_WAIT_H
    1722#include <sys/wait.h>
    1823#endif
    1924
    20 int
     25pid_t
    2126waitpid (pid, stat_loc, options)
    22         int pid, *stat_loc, options;
     27     pid_t pid;
     28     int *stat_loc, options;
    2329{
    2430  for (;;)
  • branches/GNU/src/gcc/libiberty/xmalloc.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    121121    allocated = (char *) sbrk (0) - (char *) &environ;
    122122  fprintf (stderr,
    123            "\n%s%sCannot allocate %lu bytes after allocating %lu bytes\n",
     123           "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n",
    124124           name, *name ? ": " : "",
    125125           (unsigned long) size, (unsigned long) allocated);
    126126#else /* HAVE_SBRK */
    127127  fprintf (stderr,
    128            "\n%s%sCannot allocate %lu bytes\n",
     128           "\n%s%sout of memory allocating %lu bytes\n",
    129129           name, *name ? ": " : "",
    130130           (unsigned long) size);
Note: See TracChangeset for help on using the changeset viewer.