Changeset 1391 for branches/GNU/src/gcc/libiberty
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libiberty/ChangeLog
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 2003-02-05 Release Manager 2 3 * GCC 3.2.2 Released. 1 2004-02-14 Release Manager 2 3 * GCC 3.3.3 Released. 4 5 2003-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 24 2003-10-16 Release Manager 25 26 * GCC 3.3.2 Released. 27 28 2003-08-04 Release Manager 29 30 * GCC 3.3.1 Released. 31 32 2003-08-04 Release Manager 33 34 * GCC 3.3.1 Released. 35 36 2003-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 45 2003-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 54 2003-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 59 2003-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 67 2003-05-14 Carlo Wood <carlo@alinoe.com> 68 69 * cp-demangle.c: Fix typo in "char_traints" string-literal. 70 71 2003-05-13 Release Manager 72 73 * GCC 3.3 Released. 74 75 2003-05-13 Release Manager 76 77 * GCC 3.3 Released. 78 79 2003-05-13 Release Manager 80 81 * GCC 3.3 Released. 82 83 2003-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 92 2003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 93 94 * configure.in (HAVE_UINTPTR_T): Always define. 95 * configure: Regenerated. 96 97 2003-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 103 2003-03-03 Mark Mitchell <mark@codesourcery.com> 104 105 * cplus-dem.c: Add license exception to copyright notice. 106 107 2003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 108 109 * physmem.c: Formatting changes from upstream. 110 111 2003-02-24 Danny Smith <dannysmith@users.source.forge.net> 112 113 * physmem.c (physmem_total): Add _WIN32 support. 114 (physmem_available): Likewise. 115 116 2003-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 122 2003-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 129 2003-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 137 2003-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 149 2003-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 156 2003-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 162 2003-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 172 2003-02-20 Alexandre Oliva <aoliva@redhat.com> 173 174 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to 175 config.status. 176 * configure: Rebuilt. 177 178 2003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 179 180 * acconfig.h: New file. Add uintptr_t. 181 * config.in: Regenerated. 182 183 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk> 184 185 * libiberty.texi: Update to GFDL 1.2. 4 186 5 187 2003-02-02 Christian Cornelssen <ccorn@cs.tu-berlin.de> … … 18 200 Pass $(FLAGS_TO_PASS). 19 201 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 28 202 2003-01-27 Alexandre Oliva <aoliva@redhat.com> 29 203 … … 31 205 /`$$CC -print-multi-os-directory`. 32 206 207 2003-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 33 213 2003-01-20 Josef Zlomek <zlomekj@suse.cz> 34 214 35 215 * hashtab.c (htab_expand): Fix allocation of new entries. 36 216 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> 217 2002-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 222 2002-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 227 2002-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 233 2002-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 238 2002-10-16 Jakub Jelinek <jakub@redhat.com> 239 240 * config.table: Use mh-s390pic for s390x too. 241 242 2002-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 248 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 50 249 51 250 * Makefile.in (all): Fix multilib parallel build. 52 251 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. 252 2002-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 270 2002-09-19 Nick Clifton <nickc@redhat.com> 271 272 * README: Update email addresses for bugs and patches. 273 274 2002-09-10 Mike Stump <mrs@apple.com> 275 276 * splay-tree.c (splay_tree_successor): Fix comments. 277 278 2002-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 287 2002-09-05 Roger Sayle <roger@eyesopen.com> 288 289 * regex.c: Only use "#pragma alloca" on AIX when not using gcc. 290 291 2002-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 299 2002-07-29 Neil Booth <neil@daikokuya.co.uk> 300 301 * cplus-dem.c (PREPEND_BLANK): Remove. 302 303 2002-07-10 Jason Merrill <jason@redhat.com> 304 305 * cp-demangle.c (demangle_identifier): Support extended Unicode 306 characters. 307 308 2002-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. 60 312 61 313 2002-07-01 Mark Mitchell <mark@codesourcery.com> … … 65 317 (demangle_expression): Handle expressions with types as arguments. 66 318 67 2002-05-31 Roman Lechtchinsky <rl@cs.tu-berlin.de> 319 2002-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 324 2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de> 325 326 * Makefile.in (install_to_libdir): Add $(DESTDIR). 327 (install_to_tooldir): Likewise. 328 329 2002-06-17 Douglas Rupp <rupp@gnat.com> 330 331 * lbasename.c: Add 2002 to copyright. 332 (IS_DIR_SEPARATOR): Remove VMS junk. 333 334 2002-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 340 2002-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 348 2002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de> 68 349 69 350 * configure.in: Fix typo in the code checking for sys_errlist. 70 351 * configure: Regenerated. 71 352 72 2002-05-1 4 Release Manager73 74 * GCC 3.1 Released.353 2002-05-13 Andreas Schwab <schwab@suse.de> 354 355 * config.table: Use mh-x86pic also for x86-64. 75 356 76 357 2002-05-08 Alexandre Oliva <aoliva@redhat.com> … … 80 361 * configure: Rebuilt. 81 362 363 2002-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 82 370 2002-04-09 Richard Henderson <rth@redhat.com> 83 371 … … 85 373 (find_empty_slot_for_expand): Don't compute hash2 unless needed. 86 374 (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.92 375 93 376 2002-04-01 Phil Edwards <pme@gcc.gnu.org> … … 100 383 2002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz> 101 384 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" 103 386 if it is NULL. 104 387 388 2002-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 105 395 2002-03-27 Mark Mitchell <mark@codesourcery.com> 106 396 107 397 * dyn-string.c: Add libgcc exception to copyright notice. 398 399 2002-03-26 H.J. Lu (hjl@gnu.org) 400 401 * config.table: Support --with-build-subdir. 402 * configure.in: Likewise. 403 * configure: Rebuild. 108 404 109 405 2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com> … … 120 416 121 417 * xatexit.c [VMS]: Include stdlib.h and unixlib.h. 418 419 2002-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 425 2002-03-06 Andrew Cagney <ac131313@redhat.com> 426 427 * floatformat.c (floatformat_arm_ext_big): Delete definition. 428 429 2002-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 436 2002-03-04 Neil Booth <neil@daikokuya.demon.co.uk> 437 438 * xmalloc.c (xmalloc_fail): Clarify error message further. 439 440 2002-03-03 Neil Booth <neil@daikokuya.demon.co.uk> 441 442 * xmalloc.c (xmalloc_fail): Clarify error message. 122 443 123 444 2002-02-22 Jim Blandy <jimb@redhat.com> … … 476 797 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu> 477 798 478 479 480 481 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. 482 803 483 804 2001-08-21 Richard Henderson <rth@redhat.com> -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/Makefile.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 1 # 2 2 # Makefile 3 # Copyright (C) 1990, 91-99, 2000, 2001, 200 33 # Copyright (C) 1990, 91-99, 2000, 2001, 2002, 2003 4 4 # Free Software Foundation 5 5 # … … 36 36 bindir = @bindir@ 37 37 libdir = @libdir@ 38 includedir = @includedir@ 39 target_header_dir = @target_header_dir@ 38 40 39 41 SHELL = @SHELL@ … … 51 53 INSTALL_DATA = @INSTALL_DATA@ 52 54 mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs 55 56 # Some compilers can't handle cc -c blah.c -o foo/blah.o. 57 OUTPUT_OPTION = @OUTPUT_OPTION@ 53 58 54 59 AR = @AR@ … … 118 123 $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \ 119 124 else true; fi 120 $(COMPILE.c) $< 125 $(COMPILE.c) $< $(OUTPUT_OPTION) 121 126 122 127 # NOTE: If you add new files to the library, add them to this list … … 133 138 index.c insque.c \ 134 139 lbasename.c \ 140 lrealpath.c make-relative-prefix.c \ 135 141 make-temp-file.c md5.c memchr.c memcmp.c memcpy.c memmove.c \ 136 142 memset.c mkstemps.c \ 137 143 objalloc.c obstack.c \ 138 partition.c pexecute.c p utenv.c\144 partition.c pexecute.c physmem.c putenv.c \ 139 145 random.c regex.c rename.c rindex.c \ 140 146 safe-ctype.c setenv.c sigsetmask.c sort.c spaces.c \ … … 157 163 hashtab.o hex.o \ 158 164 lbasename.o \ 165 lrealpath.o make-relative-prefix.o \ 159 166 make-temp-file.o \ 160 167 objalloc.o obstack.o \ 161 partition.o p execute.o\168 partition.o physmem.o pexecute.o \ 162 169 safe-ctype.o sort.o spaces.o splay-tree.o strerror.o \ 163 170 strsignal.o \ … … 185 192 waitpid.o 186 193 194 # These files are installed if the library has been configured to do so. 195 INSTALLED_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 187 210 $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) 188 211 -rm -f $(TARGETLIB) pic/$(TARGETLIB) … … 241 264 242 265 install_to_libdir: all 243 $ (mkinstalldirs)$(DESTDIR)$(libdir)$(MULTISUBDIR)266 ${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR) 244 267 $(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 248 280 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install 249 281 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. 286 MULTIOSDIR = `$(CC) $(LIBCFLAGS) -print-multi-os-directory` 250 287 install_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) 256 292 @$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install 257 293 … … 408 444 lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ 409 445 $(INCDIR)/safe-ctype.h 446 lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h 447 make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h 410 448 make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h 411 449 md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h … … 422 460 pexecute.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ 423 461 $(INCDIR)/safe-ctype.h 462 physmem.o: config.h $(INCDIR)/libiberty.h 424 463 putenv.o: config.h $(INCDIR)/ansidecl.h 425 464 random.o: $(INCDIR)/ansidecl.h -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/README
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 16 16 instructions in ../README. 17 17 18 Please report bugs and fixes to "bug-gnu-utils@prep.ai.mit.edu". Thank you. 18 Please report bugs to "gcc-bugs@gcc.gnu.org" and send fixes to 19 "gcc-patches@gcc.gnu.org". Thank you. 19 20 20 21 ADDING A NEW FILE -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/aclocal.m4
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 87 87 fi 88 88 ]) 89 90 dnl See whether we need a declaration for a function. 91 AC_DEFUN(libiberty_NEED_DECLARATION, 92 [AC_MSG_CHECKING([whether $1 must be declared]) 93 AC_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], 111 libiberty_cv_decl_needed_$1=no, libiberty_cv_decl_needed_$1=yes)]) 112 AC_MSG_RESULT($libiberty_cv_decl_needed_$1) 113 if 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.]) 116 fi 117 ])dnl 89 118 90 119 # FIXME: We temporarily define our own version of AC_PROG_CC. This is -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/config.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 16 16 #undef inline 17 17 18 /* Define if your C compiler doesn't accept -c and -o together. */ 19 #undef NO_MINUS_C_MINUS_O 20 18 21 /* Define to `int' if <sys/types.h> doesn't define. */ 19 22 #undef pid_t … … 31 34 #undef vfork 32 35 36 /* Define to `unsigned long' if <sys/types.h> doesn't define. */ 37 #undef uintptr_t 38 33 39 /* Define if you have the _doprnt function. */ 34 40 #undef HAVE__DOPRNT … … 58 64 #undef HAVE_CALLOC 59 65 66 /* Define if you have the canonicalize_file_name function. */ 67 #undef HAVE_CANONICALIZE_FILE_NAME 68 60 69 /* Define if you have the clock function. */ 61 70 #undef HAVE_CLOCK … … 73 82 #undef HAVE_GETRUSAGE 74 83 84 /* Define if you have the getsysinfo function. */ 85 #undef HAVE_GETSYSINFO 86 75 87 /* Define if you have the gettimeofday function. */ 76 88 #undef HAVE_GETTIMEOFDAY … … 106 118 #undef HAVE_PSIGNAL 107 119 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 108 126 /* Define if you have the putenv function. */ 109 127 #undef HAVE_PUTENV … … 112 130 #undef HAVE_RANDOM 113 131 132 /* Define if you have the realpath function. */ 133 #undef HAVE_REALPATH 134 114 135 /* Define if you have the rename function. */ 115 136 #undef HAVE_RENAME … … 163 184 #undef HAVE_SYSCONF 164 185 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 165 195 /* Define if you have the times function. */ 166 196 #undef HAVE_TIMES … … 193 223 #undef HAVE_LIMITS_H 194 224 225 /* Define if you have the <machine/hal_sysinfo.h> header file. */ 226 #undef HAVE_MACHINE_HAL_SYSINFO_H 227 195 228 /* Define if you have the <stdlib.h> header file. */ 196 229 #undef HAVE_STDLIB_H … … 211 244 #undef HAVE_SYS_PARAM_H 212 245 246 /* Define if you have the <sys/pstat.h> header file. */ 247 #undef HAVE_SYS_PSTAT_H 248 213 249 /* Define if you have the <sys/resource.h> header file. */ 214 250 #undef HAVE_SYS_RESOURCE_H … … 217 253 #undef HAVE_SYS_STAT_H 218 254 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 219 270 /* Define if you have the <sys/time.h> header file. */ 220 271 #undef HAVE_SYS_TIME_H … … 225 276 /* Define if you have the <unistd.h> header file. */ 226 277 #undef HAVE_UNISTD_H 278 279 /* Define if you have the <malloc.h> header file. */ 280 #undef HAVE_MALLOC_H 227 281 228 282 /* Define if errno must be declared even when <errno.h> is included. */ … … 253 307 #undef STACK_DIRECTION 254 308 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 -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/config.table
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 # Don't build the shared library for build. 2 if [ -n "${with_build_subdir}" ]; then 3 enable_shared=no 4 fi 5 6 frag= 1 7 case "${host}" in 2 8 rs6000-ibm-aix3.1 | rs6000-ibm-aix) … … 9 15 esac 10 16 11 frags=$frag 17 if [ -n "${frag}" ]; then 18 frags=${libiberty_topdir}/libiberty/config/$frag 19 else 20 frags= 21 fi 12 22 13 23 # If they didn't specify --enable-shared, don't generate shared libs. … … 19 29 esac 20 30 if [ "${shared}" = "yes" ]; then 31 frag= 21 32 case "${host}" in 22 33 *-*-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 ;; 27 39 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 ;; 31 44 esac 45 if [ -n "${frag}" ]; then 46 frags="${frags} ${libiberty_topdir}/config/${frag}" 47 fi 32 48 fi 33 49 … … 35 51 36 52 for frag in ${frags}; do 37 case ${frag} in38 ../* )39 if [ ${srcdir} = . ]; then40 [ -n "${with_target_subdir}" ] && frag=../${frag}41 [ -n "${with_multisrctop}" ] && frag=${with_multisrctop}${frag}42 fi43 ;;44 esac45 frag=${srcdir}/${xsrcdir}config/$frag46 53 if [ -f ${frag} ]; then 47 54 echo "Appending ${frag} to xhost-mkfrag" -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/configure
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 13 13 # Any additions from configure.in: 14 14 ac_help="$ac_help 15 --with-target-subdir=SUBDIR Configuring in a subdirectory" 15 --with-target-subdir=SUBDIR Configuring in a subdirectory for target" 16 ac_help="$ac_help 17 --with-build-subdir=SUBDIR Configuring in a subdirectory for build" 16 18 ac_help="$ac_help 17 19 --with-cross-host=HOST Configuring with a cross compiler" … … 22 24 enable make rules and dependencies not useful 23 25 (and sometimes confusing) to the casual installer" 26 ac_help="$ac_help 27 --enable-install-libiberty Install headers for end users" 24 28 25 29 # Initialize some variables set by options. … … 545 549 fi 546 550 551 # Check whether --with-build-subdir or --without-build-subdir was given. 552 if test "${with_build_subdir+set}" = set; then 553 withval="$with_build_subdir" 554 : 555 fi 556 547 557 # Check whether --with-cross-host or --without-cross-host was given. 548 558 if test "${with_cross_host+set}" = set; then … … 559 569 560 570 if 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 562 575 libiberty_topdir="${srcdir}/.." 563 576 else … … 594 607 595 608 echo $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" >&5609 echo "configure:610: checking whether to enable maintainer-specific portions of Makefiles" >&5 597 610 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 598 611 if test "${enable_maintainer_mode+set}" = set; then … … 619 632 set dummy makeinfo; ac_word=$2 620 633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 621 echo "configure:6 22: checking for $ac_word" >&5634 echo "configure:635: checking for $ac_word" >&5 622 635 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then 623 636 echo $ac_n "(cached) $ac_c" 1>&6 … … 665 678 set dummy perl; ac_word=$2 666 679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 667 echo "configure:6 68: checking for $ac_word" >&5680 echo "configure:681: checking for $ac_word" >&5 668 681 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 669 682 echo $ac_n "(cached) $ac_c" 1>&6 … … 705 718 706 719 echo $ac_n "checking host system type""... $ac_c" 1>&6 707 echo "configure:7 08: checking host system type" >&5720 echo "configure:721: checking host system type" >&5 708 721 709 722 host_alias=$host … … 728 741 729 742 echo $ac_n "checking build system type""... $ac_c" 1>&6 730 echo "configure:7 31: checking build system type" >&5743 echo "configure:744: checking build system type" >&5 731 744 732 745 build_alias=$build … … 754 767 set dummy ${ac_tool_prefix}ar; ac_word=$2 755 768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 756 echo "configure:7 57: checking for $ac_word" >&5769 echo "configure:770: checking for $ac_word" >&5 757 770 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 758 771 echo $ac_n "(cached) $ac_c" 1>&6 … … 786 799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 787 800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 788 echo "configure: 789: checking for $ac_word" >&5801 echo "configure:802: checking for $ac_word" >&5 789 802 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 790 803 echo $ac_n "(cached) $ac_c" 1>&6 … … 818 831 set dummy ranlib; ac_word=$2 819 832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 820 echo "configure:8 21: checking for $ac_word" >&5833 echo "configure:834: checking for $ac_word" >&5 821 834 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 822 835 echo $ac_n "(cached) $ac_c" 1>&6 … … 855 868 set dummy gcc; ac_word=$2 856 869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 857 echo "configure:8 58: checking for $ac_word" >&5870 echo "configure:871: checking for $ac_word" >&5 858 871 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 859 872 echo $ac_n "(cached) $ac_c" 1>&6 … … 885 898 set dummy cc; ac_word=$2 886 899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 887 echo "configure: 888: checking for $ac_word" >&5900 echo "configure:901: checking for $ac_word" >&5 888 901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 889 902 echo $ac_n "(cached) $ac_c" 1>&6 … … 934 947 935 948 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 936 echo "configure:9 37: checking whether we are using GNU C" >&5949 echo "configure:950: checking whether we are using GNU C" >&5 937 950 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 938 951 echo $ac_n "(cached) $ac_c" 1>&6 … … 943 956 #endif 944 957 EOF 945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9 46: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then958 if { 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 946 959 ac_cv_prog_gcc=yes 947 960 else … … 959 972 CFLAGS= 960 973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 961 echo "configure:9 62: checking whether ${CC-cc} accepts -g" >&5974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 962 975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 963 976 echo $ac_n "(cached) $ac_c" 1>&6 … … 989 1002 990 1003 1004 if test "x$CC" != xcc; then 1005 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 1006 echo "configure:1007: checking whether $CC and cc understand -c and -o together" >&5 1007 else 1008 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 1009 echo "configure:1010: checking whether cc understands -c and -o together" >&5 1010 fi 1011 set dummy $CC; ac_cc="`echo $2 | 1012 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" 1013 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then 1014 echo $ac_n "(cached) $ac_c" 1>&6 1015 else 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. 1020 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' 1021 if { (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; }; 1023 then 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 1040 else 1041 eval ac_cv_prog_cc_${ac_cc}_c_o=no 1042 fi 1043 rm -f conftest* 1044 1045 fi 1046 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 1047 echo "$ac_t""yes" 1>&6 1048 else 1049 echo "$ac_t""no" 1>&6 1050 cat >> confdefs.h <<\EOF 1051 #define NO_MINUS_C_MINUS_O 1 1052 EOF 1053 1054 fi 1055 1056 # autoconf is lame and doesn't give us any substitution variable for this. 1057 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then 1058 NO_MINUS_C_MINUS_O=yes 1059 else 1060 OUTPUT_OPTION='-o $@' 1061 fi 1062 1063 1064 991 1065 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 992 echo "configure: 993: checking for POSIXized ISC" >&51066 echo "configure:1067: checking for POSIXized ISC" >&5 993 1067 if test -d /etc/conf/kconfig.d && 994 1068 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 … … 1011 1085 1012 1086 echo $ac_n "checking for working const""... $ac_c" 1>&6 1013 echo "configure:10 14: checking for working const" >&51087 echo "configure:1088: checking for working const" >&5 1014 1088 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1015 1089 echo $ac_n "(cached) $ac_c" 1>&6 1016 1090 else 1017 1091 cat > conftest.$ac_ext <<EOF 1018 #line 10 19"configure"1092 #line 1093 "configure" 1019 1093 #include "confdefs.h" 1020 1094 … … 1065 1139 ; return 0; } 1066 1140 EOF 1067 if { (eval echo configure:1 068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1141 if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1068 1142 rm -rf conftest* 1069 1143 ac_cv_c_const=yes … … 1086 1160 1087 1161 echo $ac_n "checking for inline""... $ac_c" 1>&6 1088 echo "configure:1 089: checking for inline" >&51162 echo "configure:1163: checking for inline" >&5 1089 1163 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1090 1164 echo $ac_n "(cached) $ac_c" 1>&6 … … 1093 1167 for ac_kw in inline __inline__ __inline; do 1094 1168 cat > conftest.$ac_ext <<EOF 1095 #line 1 096"configure"1169 #line 1170 "configure" 1096 1170 #include "confdefs.h" 1097 1171 … … 1100 1174 ; return 0; } 1101 1175 EOF 1102 if { (eval echo configure:11 03: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1176 if { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1103 1177 rm -rf conftest* 1104 1178 ac_cv_c_inline=$ac_kw; break … … 1143 1217 # ./install, which can be erroneously created by make from ./install.sh. 1144 1218 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1145 echo "configure:1 146: checking for a BSD compatible install" >&51219 echo "configure:1220: checking for a BSD compatible install" >&5 1146 1220 if test -z "$INSTALL"; then 1147 1221 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1204 1278 # something. 1205 1279 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1206 echo "configure:12 07: checking how to run the C preprocessor" >&51280 echo "configure:1281: checking how to run the C preprocessor" >&5 1207 1281 # On Suns, sometimes $CPP names a directory. 1208 1282 if test -n "$CPP" && test -d "$CPP"; then … … 1219 1293 # not just through cpp. 1220 1294 cat > conftest.$ac_ext <<EOF 1221 #line 12 22"configure"1295 #line 1296 "configure" 1222 1296 #include "confdefs.h" 1223 1297 #include <assert.h> … … 1225 1299 EOF 1226 1300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1227 { (eval echo configure:1 228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1301 { (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1228 1302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1229 1303 if test -z "$ac_err"; then … … 1236 1310 CPP="${CC-cc} -E -traditional-cpp" 1237 1311 cat > conftest.$ac_ext <<EOF 1238 #line 1 239"configure"1312 #line 1313 "configure" 1239 1313 #include "confdefs.h" 1240 1314 #include <assert.h> … … 1242 1316 EOF 1243 1317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1244 { (eval echo configure:1 245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1318 { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1245 1319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1246 1320 if test -z "$ac_err"; then … … 1253 1327 CPP="${CC-cc} -nologo -E" 1254 1328 cat > conftest.$ac_ext <<EOF 1255 #line 1 256"configure"1329 #line 1330 "configure" 1256 1330 #include "confdefs.h" 1257 1331 #include <assert.h> … … 1259 1333 EOF 1260 1334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1261 { (eval echo configure:1 262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1335 { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1262 1336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1263 1337 if test -z "$ac_err"; then … … 1283 1357 echo "$ac_t""$CPP" 1>&6 1284 1358 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.h1359 for 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 1286 1360 do 1287 1361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1288 1362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1289 echo "configure:1 290: checking for $ac_hdr" >&51363 echo "configure:1364: checking for $ac_hdr" >&5 1290 1364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1291 1365 echo $ac_n "(cached) $ac_c" 1>&6 1292 1366 else 1293 1367 cat > conftest.$ac_ext <<EOF 1294 #line 1 295"configure"1368 #line 1369 "configure" 1295 1369 #include "confdefs.h" 1296 1370 #include <$ac_hdr> 1297 1371 EOF 1298 1372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1299 { (eval echo configure:13 00: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1373 { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1300 1374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1301 1375 if test -z "$ac_err"; then … … 1324 1398 1325 1399 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1326 echo "configure:1 327: checking for sys/wait.h that is POSIX.1 compatible" >&51400 echo "configure:1401: checking for sys/wait.h that is POSIX.1 compatible" >&5 1327 1401 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1328 1402 echo $ac_n "(cached) $ac_c" 1>&6 1329 1403 else 1330 1404 cat > conftest.$ac_ext <<EOF 1331 #line 1 332"configure"1405 #line 1406 "configure" 1332 1406 #include "confdefs.h" 1333 1407 #include <sys/types.h> … … 1345 1419 ; return 0; } 1346 1420 EOF 1347 if { (eval echo configure:1 348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1421 if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1348 1422 rm -rf conftest* 1349 1423 ac_cv_header_sys_wait_h=yes … … 1366 1440 1367 1441 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1368 echo "configure:1 369: checking whether time.h and sys/time.h may both be included" >&51442 echo "configure:1443: checking whether time.h and sys/time.h may both be included" >&5 1369 1443 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1370 1444 echo $ac_n "(cached) $ac_c" 1>&6 1371 1445 else 1372 1446 cat > conftest.$ac_ext <<EOF 1373 #line 1 374"configure"1447 #line 1448 "configure" 1374 1448 #include "confdefs.h" 1375 1449 #include <sys/types.h> … … 1380 1454 ; return 0; } 1381 1455 EOF 1382 if { (eval echo configure:1 383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1456 if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1383 1457 rm -rf conftest* 1384 1458 ac_cv_header_time=yes … … 1402 1476 1403 1477 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6 1404 echo "configure:14 05: checking whether errno must be declared" >&51478 echo "configure:1479: checking whether errno must be declared" >&5 1405 1479 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then 1406 1480 echo $ac_n "(cached) $ac_c" 1>&6 1407 1481 else 1408 1482 cat > conftest.$ac_ext <<EOF 1409 #line 14 10"configure"1483 #line 1484 "configure" 1410 1484 #include "confdefs.h" 1411 1485 #include <errno.h> … … 1414 1488 ; return 0; } 1415 1489 EOF 1416 if { (eval echo configure:14 17: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1490 if { (eval echo configure:1491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1417 1491 rm -rf conftest* 1418 1492 libiberty_cv_declare_errno=no … … 1436 1510 1437 1511 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1438 echo "configure:1 439: checking for ANSI C header files" >&51512 echo "configure:1513: checking for ANSI C header files" >&5 1439 1513 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1440 1514 echo $ac_n "(cached) $ac_c" 1>&6 1441 1515 else 1442 1516 cat > conftest.$ac_ext <<EOF 1443 #line 1 444"configure"1517 #line 1518 "configure" 1444 1518 #include "confdefs.h" 1445 1519 #include <stdlib.h> … … 1449 1523 EOF 1450 1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1451 { (eval echo configure:1 452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1452 1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1453 1527 if test -z "$ac_err"; then … … 1466 1540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1467 1541 cat > conftest.$ac_ext <<EOF 1468 #line 1 469"configure"1542 #line 1543 "configure" 1469 1543 #include "confdefs.h" 1470 1544 #include <string.h> … … 1484 1558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1485 1559 cat > conftest.$ac_ext <<EOF 1486 #line 1 487"configure"1560 #line 1561 "configure" 1487 1561 #include "confdefs.h" 1488 1562 #include <stdlib.h> … … 1505 1579 else 1506 1580 cat > conftest.$ac_ext <<EOF 1507 #line 15 08"configure"1581 #line 1582 "configure" 1508 1582 #include "confdefs.h" 1509 1583 #include <ctype.h> … … 1516 1590 1517 1591 EOF 1518 if { (eval echo configure:15 19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1592 if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1519 1593 then 1520 1594 : … … 1540 1614 1541 1615 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6 1542 echo "configure:1 543: checking for uintptr_t" >&51616 echo "configure:1617: checking for uintptr_t" >&5 1543 1617 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then 1544 1618 echo $ac_n "(cached) $ac_c" 1>&6 1545 1619 else 1546 1620 cat > conftest.$ac_ext <<EOF 1547 #line 1 548"configure"1621 #line 1622 "configure" 1548 1622 #include "confdefs.h" 1549 1623 #include <sys/types.h> … … 1572 1646 fi 1573 1647 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. 1651 cat >> confdefs.h <<\EOF 1652 #define HAVE_UINTPTR_T 1 1653 EOF 1654 1655 1656 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 1657 echo "configure:1658: checking for pid_t" >&5 1658 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 1659 echo $ac_n "(cached) $ac_c" 1>&6 1660 else 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 1669 EOF 1670 if (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 1674 else 1675 rm -rf conftest* 1676 ac_cv_type_pid_t=no 1677 fi 1678 rm -f conftest* 1679 1680 fi 1681 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 1682 if test $ac_cv_type_pid_t = no; then 1577 1683 cat >> confdefs.h <<\EOF 1578 #define HAVE_UINTPTR_T 1 1579 EOF 1580 1581 fi 1684 #define pid_t int 1685 EOF 1686 1687 fi 1688 1582 1689 1583 1690 # This is the list of functions which libiberty will provide if they … … 1631 1738 1632 1739 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" 1740 checkfuncs="$checkfuncs realpath canonicalize_file_name" 1741 checkfuncs="$checkfuncs pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl" 1633 1742 1634 1743 # These are neither executed nor required, but they help keep … … 1638 1747 do 1639 1748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1640 echo "configure:1 641: checking for $ac_func" >&51749 echo "configure:1750: checking for $ac_func" >&5 1641 1750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1642 1751 echo $ac_n "(cached) $ac_c" 1>&6 1643 1752 else 1644 1753 cat > conftest.$ac_ext <<EOF 1645 #line 1 646"configure"1754 #line 1755 "configure" 1646 1755 #include "confdefs.h" 1647 1756 /* System header to define __stub macros and hopefully few prototypes, … … 1666 1775 ; return 0; } 1667 1776 EOF 1668 if { (eval echo configure:1 669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1777 if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1669 1778 rm -rf conftest* 1670 1779 eval "ac_cv_func_$ac_func=yes" … … 1693 1802 do 1694 1803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1695 echo "configure:1 696: checking for $ac_func" >&51804 echo "configure:1805: checking for $ac_func" >&5 1696 1805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1697 1806 echo $ac_n "(cached) $ac_c" 1>&6 1698 1807 else 1699 1808 cat > conftest.$ac_ext <<EOF 1700 #line 1 701"configure"1809 #line 1810 "configure" 1701 1810 #include "confdefs.h" 1702 1811 /* System header to define __stub macros and hopefully few prototypes, … … 1721 1830 ; return 0; } 1722 1831 EOF 1723 if { (eval echo configure:1 724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1832 if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1724 1833 rm -rf conftest* 1725 1834 eval "ac_cv_func_$ac_func=yes" … … 1748 1857 do 1749 1858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1750 echo "configure:1 751: checking for $ac_func" >&51859 echo "configure:1860: checking for $ac_func" >&5 1751 1860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1752 1861 echo $ac_n "(cached) $ac_c" 1>&6 1753 1862 else 1754 1863 cat > conftest.$ac_ext <<EOF 1755 #line 1 756"configure"1864 #line 1865 "configure" 1756 1865 #include "confdefs.h" 1757 1866 /* System header to define __stub macros and hopefully few prototypes, … … 1776 1885 ; return 0; } 1777 1886 EOF 1778 if { (eval echo configure:1 779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1887 if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1779 1888 rm -rf conftest* 1780 1889 eval "ac_cv_func_$ac_func=yes" … … 1803 1912 do 1804 1913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1805 echo "configure:1 806: checking for $ac_func" >&51914 echo "configure:1915: checking for $ac_func" >&5 1806 1915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1807 1916 echo $ac_n "(cached) $ac_c" 1>&6 1808 1917 else 1809 1918 cat > conftest.$ac_ext <<EOF 1810 #line 1 811"configure"1919 #line 1920 "configure" 1811 1920 #include "confdefs.h" 1812 1921 /* System header to define __stub macros and hopefully few prototypes, … … 1831 1940 ; return 0; } 1832 1941 EOF 1833 if { (eval echo configure:1 834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1834 1943 rm -rf conftest* 1835 1944 eval "ac_cv_func_$ac_func=yes" … … 1858 1967 do 1859 1968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1860 echo "configure:1 861: checking for $ac_func" >&51969 echo "configure:1970: checking for $ac_func" >&5 1861 1970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1862 1971 echo $ac_n "(cached) $ac_c" 1>&6 1863 1972 else 1864 1973 cat > conftest.$ac_ext <<EOF 1865 #line 1 866"configure"1974 #line 1975 "configure" 1866 1975 #include "confdefs.h" 1867 1976 /* System header to define __stub macros and hopefully few prototypes, … … 1886 1995 ; return 0; } 1887 1996 EOF 1888 if { (eval echo configure:1 889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1889 1998 rm -rf conftest* 1890 1999 eval "ac_cv_func_$ac_func=yes" … … 1913 2022 do 1914 2023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1915 echo "configure: 1916: checking for $ac_func" >&52024 echo "configure:2025: checking for $ac_func" >&5 1916 2025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1917 2026 echo $ac_n "(cached) $ac_c" 1>&6 1918 2027 else 1919 2028 cat > conftest.$ac_ext <<EOF 1920 #line 1921"configure"2029 #line 2030 "configure" 1921 2030 #include "confdefs.h" 1922 2031 /* System header to define __stub macros and hopefully few prototypes, … … 1941 2050 ; return 0; } 1942 2051 EOF 1943 if { (eval echo configure: 1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1944 2053 rm -rf conftest* 1945 2054 eval "ac_cv_func_$ac_func=yes" … … 1968 2077 do 1969 2078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1970 echo "configure: 1971: checking for $ac_func" >&52079 echo "configure:2080: checking for $ac_func" >&5 1971 2080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1972 2081 echo $ac_n "(cached) $ac_c" 1>&6 1973 2082 else 1974 2083 cat > conftest.$ac_ext <<EOF 1975 #line 1976"configure"2084 #line 2085 "configure" 1976 2085 #include "confdefs.h" 1977 2086 /* System header to define __stub macros and hopefully few prototypes, … … 1996 2105 ; return 0; } 1997 2106 EOF 1998 if { (eval echo configure: 1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1999 2108 rm -rf conftest* 2000 2109 eval "ac_cv_func_$ac_func=yes" … … 2020 2129 done 2021 2130 2131 for ac_func in realpath canonicalize_file_name 2132 do 2133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2134 echo "configure:2135: checking for $ac_func" >&5 2135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2136 echo $ac_n "(cached) $ac_c" 1>&6 2137 else 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. */ 2147 char $ac_func(); 2148 2149 int 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) 2155 choke me 2156 #else 2157 $ac_func(); 2158 #endif 2159 2160 ; return 0; } 2161 EOF 2162 if { (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" 2165 else 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" 2170 fi 2171 rm -f conftest* 2172 fi 2173 2174 if 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 2179 EOF 2180 2181 else 2182 echo "$ac_t""no" 1>&6 2183 fi 2184 done 2185 2186 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl 2187 do 2188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2189 echo "configure:2190: checking for $ac_func" >&5 2190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2191 echo $ac_n "(cached) $ac_c" 1>&6 2192 else 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. */ 2202 char $ac_func(); 2203 2204 int 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) 2210 choke me 2211 #else 2212 $ac_func(); 2213 #endif 2214 2215 ; return 0; } 2216 EOF 2217 if { (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" 2220 else 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" 2225 fi 2226 rm -f conftest* 2227 fi 2228 2229 if 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 2234 EOF 2235 2236 else 2237 echo "$ac_t""no" 1>&6 2238 fi 2239 done 2240 2022 2241 cat >> confdefs.h <<\EOF 2023 2242 #define HAVE_SYS_ERRLIST 1 … … 2040 2259 setobjs= 2041 2260 CHECK= 2261 target_header_dir= 2042 2262 if test -n "${with_target_subdir}"; then 2043 2263 … … 2080 2300 fi 2081 2301 2302 # We may wish to install the target headers somewhere. 2303 # Check whether --enable-install-libiberty or --disable-install-libiberty was given. 2304 if test "${enable_install_libiberty+set}" = set; then 2305 enableval="$enable_install_libiberty" 2306 enable_install_libiberty=$enableval 2307 else 2308 enable_install_libiberty=no 2309 fi 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 2082 2326 else 2083 2327 … … 2086 2330 2087 2331 fi 2332 2088 2333 2089 2334 … … 2200 2445 # tests. This will only work if the compiler works. 2201 2446 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2202 echo "configure:2 203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52447 echo "configure:2448: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2203 2448 2204 2449 ac_ext=c … … 2211 2456 cat > conftest.$ac_ext << EOF 2212 2457 2213 #line 2 214"configure"2458 #line 2459 "configure" 2214 2459 #include "confdefs.h" 2215 2460 2216 2461 main(){return(0);} 2217 2462 EOF 2218 if { (eval echo configure:2 219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2219 2464 ac_cv_prog_cc_works=yes 2220 2465 # If we can't run a trivial program, we are probably using a cross compiler. … … 2242 2487 fi 2243 2488 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2244 echo "configure:2 245: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52489 echo "configure:2490: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2245 2490 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2246 2491 cross_compiling=$ac_cv_prog_cc_cross … … 2249 2494 do 2250 2495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2251 echo "configure:2 252: checking for $ac_func" >&52496 echo "configure:2497: checking for $ac_func" >&5 2252 2497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2253 2498 echo $ac_n "(cached) $ac_c" 1>&6 2254 2499 else 2255 2500 cat > conftest.$ac_ext <<EOF 2256 #line 2 257"configure"2501 #line 2502 "configure" 2257 2502 #include "confdefs.h" 2258 2503 /* System header to define __stub macros and hopefully few prototypes, … … 2277 2522 ; return 0; } 2278 2523 EOF 2279 if { (eval echo configure:2 280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2280 2525 rm -rf conftest* 2281 2526 eval "ac_cv_func_$ac_func=yes" … … 2304 2549 2305 2550 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2306 echo "configure:2 307: checking whether alloca needs Cray hooks" >&52551 echo "configure:2552: checking whether alloca needs Cray hooks" >&5 2307 2552 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2308 2553 echo $ac_n "(cached) $ac_c" 1>&6 2309 2554 else 2310 2555 cat > conftest.$ac_ext <<EOF 2311 #line 2 312"configure"2556 #line 2557 "configure" 2312 2557 #include "confdefs.h" 2313 2558 #if defined(CRAY) && ! defined(CRAY2) … … 2334 2579 for ac_func in _getb67 GETB67 getb67; do 2335 2580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2336 echo "configure:2 337: checking for $ac_func" >&52581 echo "configure:2582: checking for $ac_func" >&5 2337 2582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2338 2583 echo $ac_n "(cached) $ac_c" 1>&6 2339 2584 else 2340 2585 cat > conftest.$ac_ext <<EOF 2341 #line 2 342"configure"2586 #line 2587 "configure" 2342 2587 #include "confdefs.h" 2343 2588 /* System header to define __stub macros and hopefully few prototypes, … … 2362 2607 ; return 0; } 2363 2608 EOF 2364 if { (eval echo configure:2 365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2365 2610 rm -rf conftest* 2366 2611 eval "ac_cv_func_$ac_func=yes" … … 2388 2633 2389 2634 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2390 echo "configure:2 391: checking stack direction for C alloca" >&52635 echo "configure:2636: checking stack direction for C alloca" >&5 2391 2636 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2392 2637 echo $ac_n "(cached) $ac_c" 1>&6 … … 2396 2641 else 2397 2642 cat > conftest.$ac_ext <<EOF 2398 #line 2 399"configure"2643 #line 2644 "configure" 2399 2644 #include "confdefs.h" 2400 2645 find_stack_direction () … … 2415 2660 } 2416 2661 EOF 2417 if { (eval echo configure:2 418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2418 2663 then 2419 2664 ac_cv_c_stack_direction=1 … … 2435 2680 2436 2681 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_%'` 2683 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2684 echo "configure:2685: checking for vfork.h" >&5 2685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2440 2686 echo $ac_n "(cached) $ac_c" 1>&6 2441 2687 else 2442 2688 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" 2478 2690 #include "confdefs.h" 2479 2691 #include <vfork.h> 2480 2692 EOF 2481 2693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2482 { (eval echo configure:2 483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2694 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2483 2695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2484 2696 if test -z "$ac_err"; then … … 2505 2717 2506 2718 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 2507 echo "configure:2 508: checking for working vfork" >&52719 echo "configure:2720: checking for working vfork" >&5 2508 2720 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 2509 2721 echo $ac_n "(cached) $ac_c" 1>&6 … … 2511 2723 if test "$cross_compiling" = yes; then 2512 2724 echo $ac_n "checking for vfork""... $ac_c" 1>&6 2513 echo "configure:2 514: checking for vfork" >&52725 echo "configure:2726: checking for vfork" >&5 2514 2726 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 2515 2727 echo $ac_n "(cached) $ac_c" 1>&6 2516 2728 else 2517 2729 cat > conftest.$ac_ext <<EOF 2518 #line 2 519"configure"2730 #line 2731 "configure" 2519 2731 #include "confdefs.h" 2520 2732 /* System header to define __stub macros and hopefully few prototypes, … … 2539 2751 ; return 0; } 2540 2752 EOF 2541 if { (eval echo configure:2 542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2542 2754 rm -rf conftest* 2543 2755 eval "ac_cv_func_vfork=yes" … … 2561 2773 else 2562 2774 cat > conftest.$ac_ext <<EOF 2563 #line 2 564"configure"2775 #line 2776 "configure" 2564 2776 #include "confdefs.h" 2565 2777 /* Thanks to Paul Eggert for this test. */ … … 2656 2868 } 2657 2869 EOF 2658 if { (eval echo configure:2 659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2870 if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2659 2871 then 2660 2872 ac_cv_func_vfork_works=yes … … 2688 2900 do 2689 2901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2690 echo "configure:2 691: checking for $ac_func" >&52902 echo "configure:2903: checking for $ac_func" >&5 2691 2903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2692 2904 echo $ac_n "(cached) $ac_c" 1>&6 2693 2905 else 2694 2906 cat > conftest.$ac_ext <<EOF 2695 #line 2 696"configure"2907 #line 2908 "configure" 2696 2908 #include "confdefs.h" 2697 2909 /* System header to define __stub macros and hopefully few prototypes, … … 2716 2928 ; return 0; } 2717 2929 EOF 2718 if { (eval echo configure:2 719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2719 2931 rm -rf conftest* 2720 2932 eval "ac_cv_func_$ac_func=yes" … … 2746 2958 do 2747 2959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2748 echo "configure:2 749: checking for $ac_func" >&52960 echo "configure:2961: checking for $ac_func" >&5 2749 2961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2750 2962 echo $ac_n "(cached) $ac_c" 1>&6 2751 2963 else 2752 2964 cat > conftest.$ac_ext <<EOF 2753 #line 2 754"configure"2965 #line 2966 "configure" 2754 2966 #include "confdefs.h" 2755 2967 /* System header to define __stub macros and hopefully few prototypes, … … 2774 2986 ; return 0; } 2775 2987 EOF 2776 if { (eval echo configure:2 777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2988 if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2777 2989 rm -rf conftest* 2778 2990 eval "ac_cv_func_$ac_func=yes" … … 2802 3014 for v in $vars; do 2803 3015 echo $ac_n "checking for $v""... $ac_c" 1>&6 2804 echo "configure: 2805: checking for $v" >&53016 echo "configure:3017: checking for $v" >&5 2805 3017 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then 2806 3018 echo $ac_n "(cached) $ac_c" 1>&6 2807 3019 else 2808 3020 cat > conftest.$ac_ext <<EOF 2809 #line 2810"configure"3021 #line 3022 "configure" 2810 3022 #include "confdefs.h" 2811 3023 int *p; … … 2814 3026 ; return 0; } 2815 3027 EOF 2816 if { (eval echo configure: 2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2817 3029 rm -rf conftest* 2818 3030 eval "libiberty_cv_var_$v=yes" … … 2837 3049 fi 2838 3050 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 3055 echo "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> 3060 int main() { 3061 double x = _system_configuration.physmem; 3062 ; return 0; } 3063 EOF 3064 if { (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 3069 EOF 3070 3071 else 3072 echo "configure: failed program was:" >&5 3073 cat conftest.$ac_ext >&5 3074 rm -rf conftest* 3075 echo "$ac_t""no" 1>&6 3076 fi 3077 rm -f conftest* 3078 3079 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6 3080 echo "configure:3081: checking whether canonicalize_file_name must be declared" >&5 3081 if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then 3082 echo $ac_n "(cached) $ac_c" 1>&6 3083 else 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 3103 int main() { 3104 char *(*pfn) = (char *(*)) canonicalize_file_name 3105 ; return 0; } 3106 EOF 3107 if { (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 3110 else 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 3115 fi 3116 rm -f conftest* 3117 fi 3118 3119 echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6 3120 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then 3121 cat >> confdefs.h <<\EOF 3122 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 3123 EOF 3124 3125 fi 3126 2839 3127 for ac_func in $checkfuncs 2840 3128 do 2841 3129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2842 echo "configure: 2843: checking for $ac_func" >&53130 echo "configure:3131: checking for $ac_func" >&5 2843 3131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2844 3132 echo $ac_n "(cached) $ac_c" 1>&6 2845 3133 else 2846 3134 cat > conftest.$ac_ext <<EOF 2847 #line 2848"configure"3135 #line 3136 "configure" 2848 3136 #include "confdefs.h" 2849 3137 /* System header to define __stub macros and hopefully few prototypes, … … 2868 3156 ; return 0; } 2869 3157 EOF 2870 if { (eval echo configure: 2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2871 3159 rm -rf conftest* 2872 3160 eval "ac_cv_func_$ac_func=yes" … … 2898 3186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2899 3187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2900 echo "configure: 2901: checking for $ac_hdr" >&53188 echo "configure:3189: checking for $ac_hdr" >&5 2901 3189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2902 3190 echo $ac_n "(cached) $ac_c" 1>&6 2903 3191 else 2904 3192 cat > conftest.$ac_ext <<EOF 2905 #line 2906"configure"3193 #line 3194 "configure" 2906 3194 #include "confdefs.h" 2907 3195 #include <$ac_hdr> 2908 3196 EOF 2909 3197 ac_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; } 2911 3199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2912 3200 if test -z "$ac_err"; then … … 2937 3225 do 2938 3226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2939 echo "configure: 2940: checking for $ac_func" >&53227 echo "configure:3228: checking for $ac_func" >&5 2940 3228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2941 3229 echo $ac_n "(cached) $ac_c" 1>&6 2942 3230 else 2943 3231 cat > conftest.$ac_ext <<EOF 2944 #line 2945"configure"3232 #line 3233 "configure" 2945 3233 #include "confdefs.h" 2946 3234 /* System header to define __stub macros and hopefully few prototypes, … … 2965 3253 ; return 0; } 2966 3254 EOF 2967 if { (eval echo configure: 2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2968 3256 rm -rf conftest* 2969 3257 eval "ac_cv_func_$ac_func=yes" … … 2990 3278 2991 3279 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2992 echo "configure: 2993: checking for working mmap" >&53280 echo "configure:3281: checking for working mmap" >&5 2993 3281 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2994 3282 echo $ac_n "(cached) $ac_c" 1>&6 … … 2998 3286 else 2999 3287 cat > conftest.$ac_ext <<EOF 3000 #line 3 001"configure"3288 #line 3289 "configure" 3001 3289 #include "confdefs.h" 3002 3290 … … 3138 3426 3139 3427 EOF 3140 if { (eval echo configure:3 141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3141 3429 then 3142 3430 ac_cv_func_mmap_fixed_mapped=yes … … 3162 3450 3163 3451 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6 3164 echo "configure:3 165: checking for working strncmp" >&53452 echo "configure:3453: checking for working strncmp" >&5 3165 3453 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then 3166 3454 echo $ac_n "(cached) $ac_c" 1>&6 … … 3170 3458 else 3171 3459 cat > conftest.$ac_ext <<EOF 3172 #line 3 173"configure"3460 #line 3461 "configure" 3173 3461 #include "confdefs.h" 3174 3462 … … 3234 3522 3235 3523 EOF 3236 if { (eval echo configure:3 237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3237 3525 then 3238 3526 ac_cv_func_strncmp_works=yes … … 3419 3707 s%@CC@%$CC%g 3420 3708 s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g 3709 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g 3710 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g 3421 3711 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3422 3712 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g … … 3426 3716 s%@CPP@%$CPP%g 3427 3717 s%@CHECK@%$CHECK%g 3718 s%@target_header_dir@%$target_header_dir%g 3428 3719 s%@LIBOBJS@%$LIBOBJS%g 3429 3720 s%@INSTALL_DEST@%$INSTALL_DEST%g … … 3641 3932 target=${target} 3642 3933 with_target_subdir=${with_target_subdir} 3934 with_build_subdir=${with_build_subdir} 3643 3935 with_multisubdir=${with_multisubdir} 3644 3936 ac_configure_args="--enable-multilib ${ac_configure_args}" 3645 3937 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 3938 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 3646 3939 libiberty_topdir=${libiberty_topdir} 3647 3940 … … 3650 3943 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3651 3944 if test -n "$CONFIG_FILES"; then 3652 if test -n "${with_ target_subdir}"; then3945 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then 3653 3946 # FIXME: We shouldn't need to set ac_file 3654 3947 ac_file=Makefile -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/configure.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 12 12 dnl We use these options to decide which functions to include. 13 13 AC_ARG_WITH(target-subdir, 14 [ --with-target-subdir=SUBDIR Configuring in a subdirectory]) 14 [ --with-target-subdir=SUBDIR Configuring in a subdirectory for target]) 15 AC_ARG_WITH(build-subdir, 16 [ --with-build-subdir=SUBDIR Configuring in a subdirectory for build]) 15 17 AC_ARG_WITH(cross-host, 16 18 [ --with-cross-host=HOST Configuring with a cross compiler]) … … 19 21 20 22 if 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 22 27 libiberty_topdir="${srcdir}/.." 23 28 else … … 97 102 LIB_AC_PROG_CC 98 103 104 AC_PROG_CC_C_O 105 # autoconf is lame and doesn't give us any substitution variable for this. 106 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then 107 NO_MINUS_C_MINUS_O=yes 108 else 109 OUTPUT_OPTION='-o $@' 110 fi 111 AC_SUBST(NO_MINUS_C_MINUS_O) 112 AC_SUBST(OUTPUT_OPTION) 113 99 114 AC_ISC_POSIX 100 115 AC_C_CONST … … 128 143 # able to link anything, it had better be able to at least compile 129 144 # 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)145 AC_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) 131 146 AC_HEADER_SYS_WAIT 132 147 AC_HEADER_TIME … … 135 150 136 151 AC_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. 155 AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if you have the \`uintptr_t' type.]) 156 157 AC_TYPE_PID_T 142 158 143 159 # This is the list of functions which libiberty will provide if they … … 191 207 192 208 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" 209 checkfuncs="$checkfuncs realpath canonicalize_file_name" 210 checkfuncs="$checkfuncs pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl" 193 211 194 212 # These are neither executed nor required, but they help keep … … 202 220 AC_CHECK_FUNCS(vsprintf waitpid getrusage on_exit psignal strerror strsignal) 203 221 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) 204 224 AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.]) 205 225 AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.]) … … 213 233 setobjs= 214 234 CHECK= 235 target_header_dir= 215 236 if test -n "${with_target_subdir}"; then 216 237 … … 247 268 fi 248 269 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 249 291 else 250 292 … … 255 297 256 298 AC_SUBST(CHECK) 299 AC_SUBST(target_header_dir) 257 300 258 301 case "${host}" in … … 384 427 fi 385 428 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) 386 441 AC_CHECK_FUNCS($checkfuncs) 387 442 fi … … 402 457 [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 403 458 if test -n "$CONFIG_FILES"; then 404 if test -n "${with_ target_subdir}"; then459 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then 405 460 # FIXME: We shouldn't need to set ac_file 406 461 ac_file=Makefile … … 413 468 target=${target} 414 469 with_target_subdir=${with_target_subdir} 470 with_build_subdir=${with_build_subdir} 415 471 with_multisubdir=${with_multisubdir} 416 472 ac_configure_args="--enable-multilib ${ac_configure_args}" 417 473 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 474 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 418 475 libiberty_topdir=${libiberty_topdir} 419 476 ) -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/cp-demangle.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 51 51 #include <string.h> 52 52 #endif 53 54 #include <ctype.h> 53 55 54 56 #include "ansidecl.h" … … 834 836 } 835 837 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; 838 840 839 841 return dm; … … 973 975 { 974 976 if (error_message == NULL) 975 error_message = strdup ("Expected ?");977 error_message = (char *) strdup ("Expected ?"); 976 978 error_message[9] = c; 977 979 return error_message; … … 1467 1469 while (length-- > 0) 1468 1470 { 1471 int ch; 1469 1472 if (end_of_name_p (dm)) 1470 1473 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)) 1472 1510 return STATUS_ALLOCATION_FAILED; 1473 1511 } … … 3361 3399 else 3362 3400 { 3363 RETURN_IF_ERROR (result_add (dm, "std::basic_istream<char, std::char_trai nts<char> >"));3401 RETURN_IF_ERROR (result_add (dm, "std::basic_istream<char, std::char_traits<char> >")); 3364 3402 new_last_source_name = "basic_istream"; 3365 3403 } … … 3881 3919 3882 3920 3921 #ifndef IN_GLIBCPP_V3 3883 3922 /* Demangle NAME in the G++ V3 ABI demangling style, and return either 3884 3923 zero, indicating that some error occurred, or a demangling_t … … 3918 3957 3919 3958 3920 #ifndef IN_GLIBCPP_V33921 3959 /* Return non-zero iff NAME is the mangled form of a constructor name 3922 3960 in the G++ V3 ABI demangling style. Specifically, return: … … 3937 3975 } 3938 3976 else 3939 return 0;3977 return (enum gnu_v3_ctor_kinds) 0; 3940 3978 } 3941 3979 … … 3959 3997 } 3960 3998 else 3961 return 0;3999 return (enum gnu_v3_dtor_kinds) 0; 3962 4000 } 3963 4001 #endif /* IN_GLIBCPP_V3 */ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/cplus-dem.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 11 11 License as published by the Free Software Foundation; either 12 12 version 2 of the License, or (at your option) any later version. 13 14 In addition to the permissions in the GNU Library General Public 15 License, the Free Software Foundation gives you unlimited permission 16 to link the compiled version of this file into combinations with other 17 programs, and to distribute those combinations without any restriction 18 coming from the use of this file. (The Library Public License 19 restrictions do apply in other respects; for example, they cover 20 modification of the file, and distribution when not linked into a 21 combined executable.) 13 22 14 23 Libiberty is distributed in the hope that it will be useful, … … 306 315 307 316 #define STRING_EMPTY(str) ((str) -> b == (str) -> p) 308 #define PREPEND_BLANK(str) {if (!STRING_EMPTY(str)) \309 string_prepend(str, " ");}310 317 #define APPEND_BLANK(str) {if (!STRING_EMPTY(str)) \ 311 318 string_append(str, " ");} … … 517 524 518 525 static void 519 grow_vect PARAMS (( void**, size_t *, size_t, int));526 grow_vect PARAMS ((char **, size_t *, size_t, int)); 520 527 521 528 /* Translate count to integer, consuming tokens in the process. … … 939 946 static void 940 947 grow_vect (old_vect, size, min_size, element_size) 941 void**old_vect;948 char **old_vect; 942 949 size_t *size; 943 950 size_t min_size; … … 949 956 if (*size < min_size) 950 957 *size = min_size; 951 *old_vect = xrealloc (*old_vect, *size * element_size);958 *old_vect = (void *) xrealloc (*old_vect, *size * element_size); 952 959 } 953 960 } … … 972 979 int at_start_name; 973 980 int changed; 974 char *demangling_buffer = NULL; 975 size_t demangling_buffer_size = 0; 981 size_t demangled_size = 0; 976 982 977 983 changed = 0; … … 1001 1007 1002 1008 /* Make demangled big enough for possible expansion by operator name. */ 1003 grow_vect ( (void **) &(demangling_buffer),1004 &demangl ing_buffer_size, 2 * len0 + 1,1009 grow_vect (&demangled, 1010 &demangled_size, 2 * len0 + 1, 1005 1011 sizeof (char)); 1006 demangled = demangling_buffer;1007 1012 1008 1013 if (ISDIGIT ((unsigned char) mangled[len0 - 1])) { … … 1054 1059 1055 1060 Suppress: 1056 grow_vect ( (void **) &(demangling_buffer),1057 &demangl ing_buffer_size, strlen (mangled) + 3,1061 grow_vect (&demangled, 1062 &demangled_size, strlen (mangled) + 3, 1058 1063 sizeof (char)); 1059 demangled = demangling_buffer; 1064 1060 1065 if (mangled[0] == '<') 1061 1066 strcpy (demangled, mangled); … … 1209 1214 if (from->ntmpl_args) 1210 1215 to->tmpl_argvec 1211 = xmalloc (from->ntmpl_args * sizeof (to->tmpl_argvec[0]));1216 = (char **) xmalloc (from->ntmpl_args * sizeof (to->tmpl_argvec[0])); 1212 1217 1213 1218 for (i = 0; i < from->ntmpl_args; i++) … … 4881 4886 string_append (s, buf); 4882 4887 } 4883 4884 /* To generate a standalone demangler program for testing purposes,4885 just compile and link this file with -DMAIN and libiberty.a. When4886 run, it demangles each command line arg, or each stdin string, and4887 prints the result on stdout. */4888 4889 #ifdef MAIN4890 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 void4903 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 else4915 {4916 printf ("%s\n", result);4917 free (result);4918 }4919 }4920 4921 static void4922 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 void4938 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 327674962 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 void4982 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 occur4998 as a valid symbol component, in the standard assembler symbol4999 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 occur5009 as a valid symbol name component in an HP object file.5010 5011 Note that, since HP's compiler generates object code straight from5012 C++ source, without going through an assembler, its mangled5013 identifiers can use all sorts of characters that no assembler would5014 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__32OrdinaryCompareIndExpClassMemberFv5019 __ct__Q2_9Elf64_Dyn18{unnamed.union.#1}Fv5020 5021 This still seems really weird to me, since nowhere else in this5022 file is there anything to recognize curly brackets, parens, etc.5023 I've talked with Srikanth <srikanth@cup.hp.com>, and he assures me5024 this is right, but I still strongly suspect that there's a5025 misunderstanding here.5026 5027 If we decide it's better for c++filt to use HP's assembler syntax5028 to scrape identifiers out of its input, here's the definition of5029 the symbol name syntax from the HP assembler manual:5030 5031 Symbols are composed of uppercase and lowercase letters, decimal5032 digits, dollar symbol, period (.), ampersand (&), pound sign(#) and5033 underscore (_). A symbol can begin with a letter, digit underscore or5034 dollar sign. If a symbol begins with a digit, it must contain a5035 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 occur5046 as a valid symbol component in the GNU C++ V3 ABI mangling5047 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 int5059 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 else5100 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 else5114 {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 for5134 each demangling. Providing a default would allow the5135 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 else5174 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 void5189 fatal (str)5190 const char *str;5191 {5192 fprintf (stderr, "%s: %s\n", program_name, str);5193 exit (1);5194 }5195 5196 PTR5197 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 PTR5207 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 */ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/fibheap.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 68 68 fibnode_t node; 69 69 70 node = xcalloc (1, sizeof *node);70 node = (fibnode_t) xcalloc (1, sizeof *node); 71 71 node->left = node; 72 72 node->right = node; -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/floatformat.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 103 103 floatformat_intbit_no, 104 104 "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"112 105 }; 113 106 const struct floatformat floatformat_arm_ext_big = -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/functions.texi
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 277 277 @end deftypefn 278 278 279 @c getruntime.c: 78279 @c getruntime.c:82 280 280 @deftypefn Replacement long get_run_time (void) 281 281 … … 318 318 @end deftypefn 319 319 320 @c hex.c:25 321 @deftypefn Extension void hex_init (void) 322 323 Initializes the array mapping the current character set to 324 corresponding hex values. This function must be called before any 325 call to @code{hex_p} or @code{hex_value}. If you fail to call it, a 326 default 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 333 Evaluates to non-zero if the given character is a valid hex character, 334 or 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 342 Returns the numeric equivalent of the given character when interpreted 343 as a hexidecimal digit. The result is undefined if you pass an 344 invalid hex digit. Note that the value you pass will be cast to 345 @code{unsigned char} within the macro. 346 347 @end deftypefn 348 320 349 @c index.c:5 321 350 @deftypefn Supplemental char* index (char *@var{s}, int @var{c}) … … 361 390 In particular, the empty string returns the same empty string, 362 391 and 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 398 Given three strings @var{progname}, @var{bin_prefix}, @var{prefix}, return a string 399 that gets to @var{prefix} starting with the directory portion of @var{progname} and 400 a relative pathname of the difference between @var{bin_prefix} and @var{prefix}. 401 402 For example, if @var{bin_prefix} is @code{/alpha/beta/gamma/gcc/delta}, @var{prefix} 403 is @code{/alpha/beta/gamma/omega/}, and @var{progname} is @code{/red/green/blue/gcc}, 404 then this function will return @code{/red/green/blue/../../omega/}. 405 406 The return value is normally allocated via @code{malloc}. If no relative prefix 407 can 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 414 Given a pointer to a string containing a pathname, returns a canonical 415 version of the filename. Symlinks will be resolved, and ``.'' and ``..'' 416 components 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 424 Given three paths @var{progname}, @var{bin_prefix}, @var{prefix}, 425 return 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 428 portion of @var{progname}, followed by a relative pathname of the 429 difference between @var{bin_prefix} and @var{prefix}. 430 431 If @var{progname} does not contain any directory separators, 432 @code{make_relative_prefix} will search @env{PATH} to find a program 433 named @var{progname}. Also, if @var{progname} is a symbolic link, 434 the symbolic link will be resolved. 435 436 For 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 441 The return value is normally allocated via @code{malloc}. If no 442 relative prefix can be found, return @code{NULL}. 363 443 364 444 @end deftypefn -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/getopt.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 337 337 else 338 338 { 339 memset ( __mempcpy (new_str, __getopt_nonoption_flags,340 339 memset (mempcpy (new_str, __getopt_nonoption_flags, 340 nonoption_flags_max_len), 341 341 '\0', top + 1 - nonoption_flags_max_len); 342 342 nonoption_flags_max_len = top + 1; … … 448 448 nonoption_flags_max_len = -1; 449 449 else 450 memset ( __mempcpy (__getopt_nonoption_flags, orig_str, len),450 memset (mempcpy (__getopt_nonoption_flags, orig_str, len), 451 451 '\0', nonoption_flags_max_len - len); 452 452 } -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/getruntime.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 1 /* 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. 3 3 4 4 This file is part of the libiberty library. … … 22 22 #include "ansidecl.h" 23 23 #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> 24 28 25 29 /* There are several ways to get elapsed execution time; unfortunately no -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/hashtab.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 44 44 #ifdef HAVE_STRING_H 45 45 #include <string.h> 46 #endif 47 48 #ifdef HAVE_MALLOC_H 49 #include <malloc.h> 46 50 #endif 47 51 … … 159 163 source length. Created hash table is initiated as empty (all the 160 164 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 167 htab_t 168 htab_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 163 201 htab_t 164 202 htab_create (size, hash_f, eq_f, del_f) … … 168 206 htab_del del_f; 169 207 { 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 } 187 210 188 211 htab_t … … 193 216 htab_del del_f; 194 217 { 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); 215 219 } 216 220 … … 230 234 (*htab->del_f) (htab->entries[i]); 231 235 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 } 234 241 } 235 242 … … 303 310 PTR *olimit; 304 311 PTR *p; 312 PTR *nentries; 305 313 size_t nsize; 306 314 … … 310 318 nsize = higher_prime_number (htab->size * 2); 311 319 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; 322 324 htab->size = nsize; 325 323 326 htab->n_elements -= htab->n_deleted; 324 327 htab->n_deleted = 0; … … 340 343 while (p < olimit); 341 344 342 free (oentries); 345 if (htab->free_f != NULL) 346 (*htab->free_f) (oentries); 343 347 return 1; 344 348 } -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/hex.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 21 21 #include "libiberty.h" 22 22 23 /* Provided for ABI compatibility. */ 24 void 25 hex_init () 26 { 27 } 23 /* 24 25 @deftypefn Extension void hex_init (void) 26 27 Initializes the array mapping the current character set to 28 corresponding hex values. This function must be called before any 29 call to @code{hex_p} or @code{hex_value}. If you fail to call it, a 30 default 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 36 Evaluates to non-zero if the given character is a valid hex character, 37 or 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 44 Returns the numeric equivalent of the given character when interpreted 45 as a hexidecimal digit. The result is undefined if you pass an 46 invalid 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 28 57 29 58 /* Are we ASCII? */ … … 107 136 _hex_bad, _hex_bad, _hex_bad, _hex_bad, 108 137 }; 138 #define HEX_TABLE_INITIALIZED 139 109 140 #else 110 #error "Unsupported host character set" 141 142 char _hex_value[_hex_array_size]; 143 111 144 #endif /* not ASCII */ 145 146 void 147 hex_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 } -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/lbasename.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 1 /* Libiberty basename. Like basename, but is not overridden by the 2 2 system C library. 3 Copyright (C) 2001 Free Software Foundation, Inc.3 Copyright (C) 2001, 2002 Free Software Foundation, Inc. 4 4 5 5 This file is part of the libiberty library. … … 54 54 #endif 55 55 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) 62 58 #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) \ 67 60 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) 68 # endif69 61 #endif 70 62 -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/libiberty.texi
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 30 30 31 31 Permission is granted to copy, distribute and/or modify this document 32 under the terms of the GNU Free Documentation License, Version 1. 132 under the terms of the GNU Free Documentation License, Version 1.2 33 33 or any later version published by the Free Software Foundation; 34 34 with no Invariant Sections, with no Front-Cover Texts, and with no … … 59 59 60 60 Permission is granted to copy, distribute and/or modify this document 61 under the terms of the GNU Free Documentation License, Version 1. 161 under the terms of the GNU Free Documentation License, Version 1.2 62 62 or any later version published by the Free Software Foundation; 63 63 with no Invariant Sections, with no Front-Cover Texts, and with no -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/md5.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 230 230 } 231 231 232 buffer = (const char *) buffer + add;232 buffer = (const void *) ((const char *) buffer + add); 233 233 len -= add; 234 234 } … … 238 238 { 239 239 md5_process_block (buffer, len & ~63, ctx); 240 buffer = (const char *) buffer + (len & ~63);240 buffer = (const void *) ((const char *) buffer + (len & ~63)); 241 241 len &= 63; 242 242 } … … 270 270 { 271 271 md5_uint32 correct_words[16]; 272 const md5_uint32 *words = buffer;272 const md5_uint32 *words = (const md5_uint32 *) buffer; 273 273 size_t nwords = len / sizeof (md5_uint32); 274 274 const md5_uint32 *endp = words + nwords; … … 344 344 argument specifying the function to use. */ 345 345 #undef OP 346 #define OP( f, a, b, c, d, k, s, T)\346 #define OP(a, b, c, d, k, s, T) \ 347 347 do \ 348 348 { \ 349 a += f(b, c, d) + correct_words[k] + T; \349 a += FX (b, c, d) + correct_words[k] + T; \ 350 350 CYCLIC (a, s); \ 351 351 a += b; \ … … 353 353 while (0) 354 354 355 #define FX(b, c, d) FG (b, c, d) 356 355 357 /* 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) 372 377 373 378 /* 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) 390 398 391 399 /* 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); 408 416 409 417 /* Add the starting values of the context. */ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/regex.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 3 3 (Implements POSIX draft P1003.2/D11.2, except for some of the 4 4 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. 6 6 This file is part of the GNU C Library. 7 7 … … 26 26 routines or with other components regex routines. */ 27 27 /* AIX requires this to be the first thing in the file. */ 28 #if defined _AIX && !defined REGEX_MALLOC28 #if defined _AIX && !defined __GNUC__ && !defined REGEX_MALLOC 29 29 #pragma alloca 30 30 #endif … … 1382 1382 but why not be nice? */ 1383 1383 1384 static const char re_error_msgid[] =1384 static const char *re_error_msgid[] = 1385 1385 { 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 */ 1435 1402 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_IDX1457 1403 }; 1458 1404 … … 4717 4663 while (1) 4718 4664 { 4719 if (p == pend || *p == succeed)4665 if (p == pend || *p == (UCHAR_T) succeed) 4720 4666 { 4721 4667 /* We have reached the (effective) end of pattern. */ … … 7964 7910 if (!ret) 7965 7911 return NULL; 7966 return gettext (re_error_msgid + re_error_msgid_idx[(int) ret]);7912 return gettext (re_error_msgid[(int) ret]); 7967 7913 } 7968 7914 #ifdef _LIBC … … 8002 7948 re_comp_buf.buffer = (unsigned char *) malloc (200); 8003 7949 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]); 8006 7951 re_comp_buf.allocated = 200; 8007 7952 8008 7953 re_comp_buf.fastmap = (char *) malloc (1 << BYTEWIDTH); 8009 7954 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]); 8012 7956 } 8013 7957 … … 8029 7973 8030 7974 /* 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]); 8032 7976 } 8033 7977 … … 8261 8205 8262 8206 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]))) 8265 8209 /* Only error codes returned by the rest of the code should be passed 8266 8210 to this routine. If we are given anything else, or if other regex … … 8269 8213 abort (); 8270 8214 8271 msg = gettext (re_error_msgid + re_error_msgid_idx[errcode]);8215 msg = gettext (re_error_msgid[errcode]); 8272 8216 8273 8217 msg_size = strlen (msg) + 1; /* Includes the null. */ … … 8278 8222 { 8279 8223 #if defined HAVE_MEMPCPY || defined _LIBC 8280 *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';8224 *((char *) mempcpy (errbuf, msg, errbuf_size - 1)) = '\0'; 8281 8225 #else 8282 8226 memcpy (errbuf, msg, errbuf_size - 1); -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/safe-ctype.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 49 49 50 50 /* 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 */ 58 58 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 */ 65 65 66 66 /* Are we ASCII? */ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/splay-tree.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 235 235 void *data ATTRIBUTE_UNUSED; 236 236 { 237 return xmalloc (size);237 return (void *) xmalloc (size); 238 238 } 239 239 … … 483 483 484 484 /* 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. */ 486 486 487 487 splay_tree_node … … 493 493 splay_tree_node node; 494 494 495 /* If the tree is empty, there is certainly no predecessor. */495 /* If the tree is empty, there is certainly no successor. */ 496 496 if (!sp->root) 497 497 return NULL; -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/testsuite/Makefile.in
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 1 1 # 2 2 # Makefile 3 # Copyright (C) 1999 3 # Copyright (C) 1999, 2002 4 4 # Free Software Foundation 5 5 # … … 46 46 47 47 # Run some tests of the demangler. 48 check-cplus-dem: test- filter$(srcdir)/demangle-expected49 $(SHELL) $(srcdir)/regress-demangle$(srcdir)/demangle-expected48 check-cplus-dem: test-demangle $(srcdir)/demangle-expected 49 ./test-demangle < $(srcdir)/demangle-expected 50 50 51 # Note that we just hard-code prepends_underscore to 0. This doesn't52 # matter since any particular test can override the default if need53 # be.54 51 TEST_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 52 test-demangle: $(srcdir)/test-demangle.c 53 $(TEST_COMPILE) -o test-demangle \ 54 $(srcdir)/test-demangle.c ../libiberty.a 60 55 61 56 # Standard (either GNU or Cygnus) rules we don't use. … … 64 59 # The standard clean rules. 65 60 mostlyclean: 66 rm -f test- us.c test-filter61 rm -f test-demangle 67 62 clean: mostlyclean 68 63 distclean: clean … … 70 65 maintainer-clean realclean: distclean 71 66 72 73 67 Makefile: $(srcdir)/Makefile.in ../config.status 74 68 CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/testsuite/demangle-expected
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 128 128 # 129 129 --format=gnu 130 _10PageButton \$__both130 _10PageButton$__both 131 131 PageButton::__both 132 132 # 133 133 --format=gnu 134 _3RNG \$singleMantissa134 _3RNG$singleMantissa 135 135 RNG::singleMantissa 136 136 # 137 137 --format=gnu 138 _5IComp \$_release138 _5IComp$_release 139 139 IComp::_release 140 140 # 141 141 --format=gnu 142 _ \$_10BitmapComp142 _$_10BitmapComp 143 143 BitmapComp::~BitmapComp(void) 144 144 # 145 145 --format=gnu 146 _ \$_9__io_defs146 _$_9__io_defs 147 147 __io_defs::~__io_defs(void) 148 148 # 149 149 --format=gnu 150 _ \$_Q23foo3bar150 _$_Q23foo3bar 151 151 foo::bar::~bar(void) 152 152 # 153 153 --format=gnu 154 _ \$_Q33foo3bar4bell154 _$_Q33foo3bar4bell 155 155 foo::bar::bell::~bell(void) 156 156 # … … 436 436 # 437 437 --format=gnu 438 _vt \$foo438 _vt$foo 439 439 foo virtual table 440 440 # 441 441 --format=gnu 442 _vt \$foo\$bar442 _vt$foo$bar 443 443 foo::bar virtual table 444 444 # … … 648 648 # 649 649 --format=gnu 650 _2T4 \$N650 _2T4$N 651 651 T4::N 652 652 # 653 653 --format=gnu 654 _Q22T42t1 \$N654 _Q22T42t1$N 655 655 T4::t1::N 656 656 # … … 728 728 # 729 729 --format=gnu 730 _ \$_t6vector1Zdi730 _$_t6vector1Zdi 731 731 vector<double>::~vector(int) 732 732 # 733 733 --format=gnu 734 _ \$_t6vector1Zii734 _$_t6vector1Zii 735 735 vector<int>::~vector(int) 736 736 # … … 828 828 # 829 829 --format=gnu 830 _GLOBAL_ \$D\$set830 _GLOBAL_$D$set 831 831 global destructors keyed to set 832 832 # 833 833 --format=gnu 834 _GLOBAL_ \$I\$set834 _GLOBAL_$I$set 835 835 global constructors keyed to set 836 836 # … … 876 876 # 877 877 --format=gnu 878 _vt \$t8BDDHookV1ZPc878 _vt$t8BDDHookV1ZPc 879 879 BDDHookV<char *> virtual table 880 880 # … … 2565 2565 # 2566 2566 --format=gnu 2567 _26_GLOBAL_ \$N\$_tmp_n.iilg4Gya\$app_instance2567 _26_GLOBAL_$N$_tmp_n.iilg4Gya$app_instance 2568 2568 {anonymous}::app_instance 2569 2569 # … … 2587 2587 _ZN4Prim1iEibcdfwPN4java4lang6StringEsx 2588 2588 Prim.i(int, boolean, byte, double, float, char, java.lang.String, short, long) 2589 # 2590 --format=java 2591 _ZN4java4util14Map__U24_Entry11class__U24_E 2592 java.util.Map$Entry.class$ 2589 2593 # 2590 2594 --format=hp -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/vasprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 139 139 global_total_width = total_width; 140 140 #endif 141 *result = malloc (total_width);141 *result = (char *) malloc (total_width); 142 142 if (*result != NULL) 143 143 return vsprintf (*result, format, *args); -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/vsprintf.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 27 27 the executable file might be covered by the GNU General Public License. */ 28 28 29 #include <ansidecl.h> 30 #ifdef ANSI_PROTOTYPES 31 #include <stdarg.h> 32 #else 29 33 #include <varargs.h> 34 #endif 30 35 #include <stdio.h> 31 #include <ansidecl.h>32 36 #undef vsprintf 33 37 -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/waitpid.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 14 14 #include "config.h" 15 15 #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 16 21 #ifdef HAVE_SYS_WAIT_H 17 22 #include <sys/wait.h> 18 23 #endif 19 24 20 int25 pid_t 21 26 waitpid (pid, stat_loc, options) 22 int pid, *stat_loc, options; 27 pid_t pid; 28 int *stat_loc, options; 23 29 { 24 30 for (;;) -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/gcc/libiberty/xmalloc.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 121 121 allocated = (char *) sbrk (0) - (char *) &environ; 122 122 fprintf (stderr, 123 "\n%s%s Cannot allocate %lu bytes after allocating%lu bytes\n",123 "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n", 124 124 name, *name ? ": " : "", 125 125 (unsigned long) size, (unsigned long) allocated); 126 126 #else /* HAVE_SBRK */ 127 127 fprintf (stderr, 128 "\n%s%s Cannot allocate%lu bytes\n",128 "\n%s%sout of memory allocating %lu bytes\n", 129 129 name, *name ? ": " : "", 130 130 (unsigned long) size); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.