Mumit Khan
7f22ec2e64
basename.c (DIR_SEPARATOR): New macro.
...
* basename.c (DIR_SEPARATOR): New macro.
(DIR_SEPARATOR_2): Likewise.
(HAVE_DOS_BASED_FILESYSTEM): Likewise.
(IS_DIR_SEPARATOR): Likewise.
(main): Handle MSDOS style pathname.
From-SVN: r29937
1999-10-13 01:18:09 -06:00
Mark Mitchell
7c56a6cef7
cplus-dem.c (do_type): Handle pointer to member types whose enclosing classes have namespace scope.
...
* cplus-dem.c (do_type): Handle pointer to member types whose
enclosing classes have namespace scope.
From-SVN: r29901
1999-10-11 08:32:10 +00:00
Marc Espie
cd32188bd6
* config.table: Provide a backup shell for executing move-if-change.
...
From-SVN: r29883
1999-10-10 01:27:40 -06:00
Mark Mitchell
fc232f7a62
xmalloc.c (xmalloc): Fix spelling error.
...
* xmalloc.c (xmalloc): Fix spelling error.
(xcalloc, xrealloc): Likewise.
From-SVN: r29779
1999-10-03 01:55:59 +00:00
Kaveh R. Ghazi
2a138827f0
cplus-dem.c (fancy_abort, [...]): Add prototype.
...
* cplus-dem.c (fancy_abort, demangle_integral_value,
demangle_arm_hp_template, recursively_demangle,
standard_symbol_characters, hp_symbol_characters, main): Add prototype.
(program_name, program_version, fatal): Constify a char*.
(usage, fatal): Mark with ATTRIBUTE_NORETURN.
(main): Call return, not exit.
From-SVN: r29776
1999-10-02 20:03:15 +00:00
Richard Henderson
2c45d1a04d
alloca-conf.h (alloca): Don't use Gcc builtin or <alloca.h>.
...
* alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
or <alloca.h>.
* clock.c (GNU_HZ): New definition.
(clock): Use it.
* getruntime.c: Likewise.
* config.table: Use mh-beos.
* config/mh-beos: New file.
From-SVN: r29680
1999-09-27 11:45:52 -06:00
Kaveh R. Ghazi
5a657fc371
libiberty.h (make_temp_file): Add a prototype.
...
include:
* libiberty.h (make_temp_file): Add a prototype.
libiberty:
* choose-temp.c: Remove obsolete comment about gcc.
(make_temp_file): Constify a char*.
gcc:
* collect2.c (make_temp_file): Don't prototype.
* gcc.c (make_temp_file): Likewise.
* mips.c (mips_make_temp_file): Renamed from `make_temp_file'.
From-SVN: r29662
1999-09-25 13:11:17 +00:00
Kaveh R. Ghazi
33c5ddcd3e
* xmemdup.c: Include sys/types.h.
...
From-SVN: r29218
1999-09-09 00:11:39 +00:00
Jeff Garzik
b10647f1b2
xmemdup.c: New xmemdup function.
...
* xmemdup.c: New xmemdup function.
* Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
From-SVN: r29199
1999-09-08 02:19:52 -06:00
Linas Vepstas
3dd6c3afe3
config.table: Add openedition target.
...
* config.table: Add openedition target.
* config/mh-openedition: New file.
From-SVN: r29188
1999-09-07 23:33:11 -07:00
Marc Espie
19e28e2aee
* pexecute.c (pexecute): Fill in temp_base when needed.
...
From-SVN: r29053
1999-09-02 01:37:50 -06:00
Richard Henderson
4dfeccf9d0
* getpwd.c: Check HAVE_GETCWD before defining it away.
...
From-SVN: r29013
1999-08-31 13:33:13 -07:00
Kaveh R. Ghazi
4ac3cb830a
Makefile.in (CFILES): Add calloc.c and getpwd.c.
...
* Makefile.in (CFILES): Add calloc.c and getpwd.c.
(REQUIRED_OFILES): Add getpwd.o.
(getpwd.o): Add target.
* configure.in (AC_PREREQ): Bump to 2.13.
(AC_CHECK_HEADERS): Add check for <sys/stat.h>.
* getpwd.c: New file, moved here from gcc.
From-SVN: r28996
1999-08-31 00:50:36 +00:00
Kaveh R. Ghazi
e797ff7048
Warning fixes:
...
* cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
comparing against a signed quantity.
(arm_special): Likewise.
(demangle_fund_type): Likewise.
(do_hpacc_template_const_value): Mark parameter `work' with
ATTRIBUTE_UNUSED.
(main): Constify variable `valid_symbols'.
From-SVN: r28859
1999-08-25 13:29:34 +00:00
Philippe De Muyter
55247fce70
* strtoul.c (strtoul): Add parentheses around && within ||.
...
From-SVN: r28819
1999-08-24 02:51:03 -06:00
Daniel Jacobowitz
76632dd06d
Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, libdir, libsubdir and tooldir.
...
* Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
libdir, libsubdir and tooldir.
Applied in libchill, libf2c, libiberty and libobjc
From-SVN: r28569
1999-08-06 23:37:16 -06:00
Mark Mitchell
d080bbfa45
* splay-tree.h (splay_tree_insert): Return the new node.
...
From-SVN: r28389
1999-08-02 05:54:50 +00:00
Ian Lance Taylor
652374d338
splay-tree.c (splay_tree_insert): Add initialization to avoid warning.
...
* splay-tree.c (splay_tree_insert): Add initialization to avoid
warning.
From-SVN: r28269
1999-07-26 11:57:25 -06:00
Richard Henderson
a81c752ad3
argv.c: Include stdlib.h and string.h instead of prototyping directly.
...
* argv.c: Include stdlib.h and string.h instead of
prototyping directly.
* choose-temp.c: Conditionally include string.h.
From-SVN: r28099
1999-07-14 10:29:38 -07:00
Jason Merrill
8f1824d91b
* Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
...
From-SVN: r28071
1999-07-12 14:20:41 -04:00
Jason Merrill
a654176720
tweak
...
From-SVN: r28003
1999-07-07 22:43:10 -04:00
Jason Merrill
a4494286a6
Makefile.in (needed-list): Only include stuff we actually need for libstdc++.
...
* Makefile.in (needed-list): Only include stuff we actually need
for libstdc++.
From-SVN: r27999
1999-07-07 11:22:55 -04:00
Jeff Law
e8bb250c8d
Whoops. Revert patch applied to the wrong tre.
...
From-SVN: r27737
1999-06-24 15:30:38 -06:00
Philippe De Muyter
4ef877d9fb
setenv.c (sys/types.h, stdio.h): Files included.
...
* setenv.c (sys/types.h, stdio.h): Files included.
* xstrdup.c (sys/types.h): File included.
For the gcc-2.95 branch only. Not to be migrated into the mainline tree
because it is incomplete.
From-SVN: r27736
1999-06-24 15:28:22 -06:00
Andreas Schwab
90e72e20a3
configure.in (checkfuncs): Add gettimeofday.
...
* configure.in (checkfuncs): Add gettimeofday.
* config.in, configure: Regenerated.
From-SVN: r27647
1999-06-20 23:01:18 -06:00
Mumit Khan
62133b5e6a
configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.
...
p
* configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
the test fails.
* configure: Regenerate.
From-SVN: r27642
1999-06-20 22:56:40 -06:00
Mumit Khan
b569200e6d
configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.
...
�
* configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
the test fails.
* configure: Regenerate.
From-SVN: r27641
1999-06-20 22:56:38 -06:00
Mike Stump
739194481c
Mike Stump <mrs@wrs.com>
...
Mike Stump <mrs@wrs.com>
* Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
parallel builds.
From-SVN: r27477
1999-06-10 13:43:56 -07:00
Kaveh R. Ghazi
fee9125c10
putenv.c: Include ansidecl.h to define `const'.
...
* putenv.c: Include ansidecl.h to define `const'.
* setenv.c: Likewise.
From-SVN: r27221
1999-05-28 07:34:48 +00:00
Jeff Law
a7c9637fbf
Forgot to commit.
...
From-SVN: r27172
1999-05-26 05:35:41 -06:00
Jeff Law
9eb4080f6f
Makefile.in (CFILES): Add putenv.c and setenv.c.
...
* Makefile.in (CFILES): Add putenv.c and setenv.c.
* configure.in (funcs): Add putenv and setenv.
(AC_CHECK_FUNCS): Check for putenv and setenv.
* configure: Rebuilt.
* putenv.c setenv.c: New files.
[[Split portion of a mixed commit.]]
From-SVN: r27162.2
1999-05-25 21:13:18 -06:00
Melissa O'Neill
d05ba2205f
getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc.
...
P
* getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
bytes of space using malloc.
From-SVN: r27161
1999-05-25 21:04:27 -06:00
Melissa O'Neill
71cce721af
getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc.
...
�
* getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
bytes of space using malloc.
From-SVN: r27160
1999-05-25 21:04:25 -06:00
Stu Grossman
53504016e1
cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance the *mangled pointer beyond the end of the string.
...
* cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
the *mangled pointer beyond the end of the string. Clean up code to
match prevailing coding style.
From-SVN: r26959
1999-05-16 18:44:09 -06:00
Michael Hayes
348425392f
* tmpnam.c (L_tmpnam): Fix typo.
...
From-SVN: r26921
1999-05-12 19:23:42 -06:00
Marc Espie
3a08531df2
cplus-dem.c (standard_symbol_characters): Renamed from standard_symbol_alphabet.
...
* cplus-dem.c (standard_symbol_characters): Renamed from
standard_symbol_alphabet. No longer modify TABLE.
(hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
modify TABLE.
(main): Corresponding changes. Use strchr to determine if a
character is valid.
From-SVN: r26912
1999-05-12 18:24:18 -06:00
Jim Blandy
8db9d08ba1
*** empty log message ***
...
From-SVN: r26888
1999-05-11 12:40:31 +00:00
Jim Blandy
3eca405bd9
cplus-dem.c (main): Use table lookup to distinguish identifier characters from non-identifier...
...
* cplus-dem.c (main): Use table lookup to distinguish identifier
characters from non-identifier characters.
(standard_symbol_alphabet, hp_symbol_alphabet): New functions.
From-SVN: r26887
1999-05-11 12:39:46 +00:00
Fred Fish
6a071f4a74
Fred Fish <fnf@be.com>
...
Fred Fish <fnf@be.com>
* configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
* getruntime.c: Only attempt to include sys/resource.h and
use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
are defined.
From-SVN: r26808
1999-05-06 13:57:01 -07:00
Donn Terry
7dd8861714
configure.in (alloca detection): Handle alloca directly for interix.
...
* configure.in (alloca detection): Handle alloca directly for interix.
* configure: Rebuilt.
From-SVN: r26635
1999-04-25 18:40:51 -06:00
Mumit Khan
7a1528bc63
* choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
...
From-SVN: r26619
1999-04-24 18:23:06 -06:00
Jim Blandy
76409268c4
*** empty log message ***
...
From-SVN: r26563
1999-04-20 11:02:02 +00:00
Jim Blandy
c5a855ce6e
Fix from Dale Hawkins:
...
* cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
reallocated properly if we use it again.
* cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
stricter about syntax. Always null-terminate string.
From-SVN: r26562
1999-04-20 11:00:27 +00:00
Mumit Khan
acbbd80a54
configure.in (checkfuncs): Check for sbrk.
...
* configure.in (checkfuncs): Check for sbrk.
* config.in: Rebuilt.
* configure: Likewise.
* xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
From-SVN: r26480
1999-04-15 16:05:35 -06:00
Jim Blandy
9252355101
*** empty log message ***
...
From-SVN: r26374
1999-04-12 12:36:31 +00:00
Jim Blandy
92b0366412
Fix from Marcus Daniels:
...
* cplus-dem.c (demangle_fund_type): Don't run off the end of the
identifier looking for another underscore.
From-SVN: r26373
1999-04-12 12:36:00 +00:00
Mumit Khan
36eb4217ac
pexecute.c: Change all references to __UWIN__ to _UWIN.
...
* pexecute.c: Change all references to __UWIN__ to _UWIN.
* xmalloc.c: Likewise.
(xcalloc): UWIN has sbrk.
(xrealloc): Fix guard macro.
From-SVN: r26352
1999-04-11 16:21:28 -06:00
Mark Mitchell
391cdef056
cplus-dem.c (demangle_template_value_parm): Handle pointers-to-members.
...
* cplus-dem.c (demangle_template_value_parm): Handle
pointers-to-members.
(do_type): Handle template parameters as qualifiers.
From-SVN: r26350
1999-04-11 18:46:52 +00:00
Jeff Law
f4f30aa199
Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
...
From-SVN: r26322
1999-04-09 16:26:17 -06:00
Jim Blandy
9d22998936
cplus-dem.c: Attempt to handle overflows in counts with some semblance of grace.
...
1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
* cplus-dem.c: Attempt to handle overflows in counts with some
semblance of grace.
(consume_count): Detect overflows. Return -1 to indicate errors,
instead of zero.
(demangle_template_value_parm, demangle_template): Handle change
to consume_count's return convention.
From-SVN: r26309
1999-04-09 09:01:35 +00:00