aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorManfred Hollstein <manfred@gcc.gnu.org>1998-03-12 00:29:16 +0000
committerManfred Hollstein <manfred@gcc.gnu.org>1998-03-12 00:29:16 +0000
commit4e1e206433953cd5a879b1496145a09867f200b7 (patch)
tree7647abfaa5d6efde5b142c17cd5cbbd0ac63a59e /gcc
parent1bbe34be639806778ef821dff78b2f1019b4af0e (diff)
downloadgcc-4e1e206433953cd5a879b1496145a09867f200b7.zip
gcc-4e1e206433953cd5a879b1496145a09867f200b7.tar.gz
gcc-4e1e206433953cd5a879b1496145a09867f200b7.tar.bz2
a
In gcc/: * bitmap.c (bitmap_element_allocate): Remove unused parameter; change callers accordingly. * cplus-dem.c (arm_special): Remove unused parameter work in prototype and definition; change all callers accordingly. * except.c (init_eh): Avoid assignment of unused return value of build_pointer_type; cast it to void, instead, and remove unused variable type. * gcc.c (lang_specific_driver): Define prototype only #ifdef LANG_SPECIFIC_DRIVER. (temp_names): Define only #ifdef MKTEMP_EACH_FILE. * genoutput.c (output_epilogue): Initialize next_name to 0. * real.c (efrexp): #if 0 prototype and function definition. (eremain): Likewise. (uditoe): Likewise. (ditoe): Likewise. (etoudi): Likewise. (etodi): Likewise. (esqrt): Likewise. * reload.c (push_secondary_reload): Define prototype only #ifdef HAVE_SECONDARY_RELOADS. * varasm.c (assemble_static_space): Define rounded only #ifndef ASM_OUTPUT_ALIGNED_LOCAL. In gcc/cp/: * call.c (default_parm_conversions): Remove prototype definition. (build_method_call): Remove unused variable result. * cvt.c (ocp_convert): Remove unused variable conversion. * decl2.c (ambiguous_decl): Add explicit parameter definition for name. * except.c (do_unwind): #if 0 definition of unused variables fcall and next_pc. * expr.c (extract_scalar_init): #if 0 prototype and function definition. * init.c (expand_aggr_init_1): Remove unused variable init_type. (build_new_1): Remove unused variable t. * pt.c (instantiate_class_template): Remove unused variable newtag; cast called function return value to void. (do_decl_instantiation): Remove unused variables name and fn. * tree.c (get_type_decl): Add default return to shut up compiler from complaining control reaches end of non-void function. * typeck.c (build_x_conditional_expr): Remove unused variable rval. From-SVN: r18497
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/tree.c3
-rw-r--r--gcc/cplus-dem.c11
-rw-r--r--gcc/gcc.c8
-rw-r--r--gcc/varasm.c2
4 files changed, 17 insertions, 7 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 4fb1724..dd6d50f 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -1921,6 +1921,9 @@ get_type_decl (t)
return TYPE_STUB_DECL (t);
my_friendly_abort (42);
+
+ /* Stop compiler from complaining control reaches end of non-void function. */
+ return 0;
}
int
diff --git a/gcc/cplus-dem.c b/gcc/cplus-dem.c
index 7c1f08c..6aa5cb5 100644
--- a/gcc/cplus-dem.c
+++ b/gcc/cplus-dem.c
@@ -264,7 +264,7 @@ static int
gnu_special PARAMS ((struct work_stuff *, const char **, string *));
static int
-arm_special PARAMS ((struct work_stuff *, const char **, string *));
+arm_special PARAMS ((const char **, string *));
static void
string_need PARAMS ((string *, int));
@@ -1696,7 +1696,7 @@ demangle_prefix (work, mangled, declp)
then find the next "__" that separates the prefix from the signature.
*/
if (!(ARM_DEMANGLING || LUCID_DEMANGLING)
- || (arm_special (work, mangled, declp) == 0))
+ || (arm_special (mangled, declp) == 0))
{
while (*scan == '_')
{
@@ -1940,8 +1940,8 @@ LOCAL FUNCTION
SYNOPSIS
static int
- arm_special (struct work_stuff *work, const char **mangled,
- string *declp);
+ arm_special (const char **mangled,
+ string *declp);
DESCRIPTION
@@ -1955,8 +1955,7 @@ DESCRIPTION
*/
static int
-arm_special (work, mangled, declp)
- struct work_stuff *work;
+arm_special (mangled, declp)
const char **mangled;
string *declp;
{
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 5d2855d..8e35070 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -259,6 +259,10 @@ static void error PROTO(());
void fancy_abort ();
char *xmalloc ();
char *xrealloc ();
+
+#ifdef LANG_SPECIFIC_DRIVER
+extern void lang_specific_driver PROTO ((void (*) (), int *, char ***));
+#endif
/* Specs are strings containing lines, each of which (if not blank)
is made up of a program name, and arguments separated by spaces.
@@ -1210,8 +1214,9 @@ static int argbuf_length;
static int argbuf_index;
+#ifdef MKTEMP_EACH_FILE
/* This is the list of suffixes and codes (%g/%u/%U) and the associated
- temp file. Used only if MKTEMP_EACH_FILE. */
+ temp file. */
static struct temp_name {
char *suffix; /* suffix associated with the code. */
@@ -1221,6 +1226,7 @@ static struct temp_name {
int filename_length; /* strlen (filename). */
struct temp_name *next;
} *temp_names;
+#endif
/* Number of commands executed so far. */
diff --git a/gcc/varasm.c b/gcc/varasm.c
index b204b43..c7783d0 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -1667,11 +1667,13 @@ assemble_static_space (size)
char name[12];
char *namestring;
rtx x;
+#ifndef ASM_OUTPUT_ALIGNED_LOCAL
/* Round size up to multiple of BIGGEST_ALIGNMENT bits
so that each uninitialized object starts on such a boundary. */
int rounded = ((size + (BIGGEST_ALIGNMENT / BITS_PER_UNIT) - 1)
/ (BIGGEST_ALIGNMENT / BITS_PER_UNIT)
* (BIGGEST_ALIGNMENT / BITS_PER_UNIT));
+#endif
#if 0
if (flag_shared_data)