aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRodney Brown <RodneyBrown@mynd.com>2000-12-07 02:31:47 +0000
committerJeff Law <law@gcc.gnu.org>2000-12-06 19:31:47 -0700
commitf5720527d9d0a0e088740d84def4dae62718f424 (patch)
tree2ccd68c1c2d77cd128c7832d79d351d5642bff5f /gcc
parent6b4b8cb9ef5cd225dac506fd2b59f3f487e9ebbc (diff)
downloadgcc-f5720527d9d0a0e088740d84def4dae62718f424.zip
gcc-f5720527d9d0a0e088740d84def4dae62718f424.tar.gz
gcc-f5720527d9d0a0e088740d84def4dae62718f424.tar.bz2
c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
* c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX. * collect2.c (scan_libraries): Remove unused `ch'. (COFF specific stuff): Prototype ldgetname. Declare and prototype ldbtread and ldclose. From-SVN: r38092
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-lex.c2
-rw-r--r--gcc/collect2.c6
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1193d80..2da80c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -5,6 +5,11 @@ Wed Dec 6 19:22:02 2000 Jeffrey A Law (law@cygnus.com)
2000-12-06 Rodney Brown <RodneyBrown@mynd.com>
+ * c-lex.c (cb_indent): Decorate `str' argument, unused on HP-UX.
+ * collect2.c (scan_libraries): Remove unused `ch'.
+ (COFF specific stuff): Prototype ldgetname. Declare and prototype
+ ldbtread and ldclose.
+
* config/alpha/osf.h: Standarize copyright statement.
* config/arc/arc.h: Likewise.
* config/arm/elf.h config/arm/coff.h config/arm/aout.h: Likewise.
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index ea0391a..cf65cea 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -217,7 +217,7 @@ dump_time_statistics ()
static void
cb_ident (pfile, str)
cpp_reader *pfile ATTRIBUTE_UNUSED;
- const cpp_string *str;
+ const cpp_string *str ATTRIBUTE_UNUSED;
{
#ifdef ASM_OUTPUT_IDENT
if (! flag_no_ident)
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 49cb0e7..6792eef 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -2598,7 +2598,7 @@ scan_libraries (prog_name)
/* Read each line of ldd output. */
while (fgets (buf, sizeof buf, inf) != (char *) 0)
{
- int ch, ch2;
+ int ch2;
char *name, *end, *p = buf;
/* Extract names of libraries and add to list. */
@@ -2681,7 +2681,9 @@ scan_libraries (prog_name)
|| (HEADER (X).f_magic == 0757 && aix64_flag))
#endif
-extern char *ldgetname ();
+extern char *ldgetname PARAMS ((LDFILE *, GCC_SYMENT *));
+extern int ldtbread PARAMS ((LDFILE *, long, GCC_SYMENT *));
+extern int ldclose PARAMS ((LDFILE *));
/* COFF version to scan the name list of the loaded program for
the symbols g++ uses for static constructors and destructors.