aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-11-07 22:52:30 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-11-07 22:52:30 +0000
commit2916c0850865be78d9886d6a5ec13331d5e65bbf (patch)
treeac70fd378763e1512e643e017a4628647c49ce42
parent216caa2b7f64c19cd9d5af5d903ecf71dcf9ec34 (diff)
downloadgcc-2916c0850865be78d9886d6a5ec13331d5e65bbf.zip
gcc-2916c0850865be78d9886d6a5ec13331d5e65bbf.tar.gz
gcc-2916c0850865be78d9886d6a5ec13331d5e65bbf.tar.bz2
c-decl.c (pushdecl): Remove file and line.
* c-decl.c (pushdecl): Remove file and line. * c-typeck.c (pop_init_level): Remove size. From-SVN: r46838
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-decl.c8
-rw-r--r--gcc/c-typeck.c4
3 files changed, 5 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8d72138..14b8e2d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-07 Neil Booth <neil@daikokuya.demon.co.uk>
+
+ * c-decl.c (pushdecl): Remove file and line.
+ * c-typeck.c (pop_init_level): Remove size.
+
2001-11-07 Aldy Hernandez <aldyh@redhat.com>
* doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index a8a974c..0440bba 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2093,8 +2093,6 @@ pushdecl (x)
if (name)
{
- const char *file;
- int line;
int different_binding_level = 0;
if (warn_nested_externs
@@ -2126,12 +2124,6 @@ pushdecl (x)
error_with_decl (x, "`%s' used prior to declaration");
}
- if (t != 0)
- {
- file = DECL_SOURCE_FILE (t);
- line = DECL_SOURCE_LINE (t);
- }
-
/* If this decl is `static' and an implicit decl was seen previously,
warn. But don't complain if -traditional,
since traditional compilers don't complain. */
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index e3e541b..64f0f07 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -5463,7 +5463,6 @@ pop_init_level (implicit)
int implicit;
{
struct constructor_stack *p;
- HOST_WIDE_INT size = 0;
tree constructor = 0;
if (implicit == 0)
@@ -5479,9 +5478,6 @@ pop_init_level (implicit)
p = constructor_stack;
- if (constructor_type != 0)
- size = int_size_in_bytes (constructor_type);
-
/* Error for initializing a flexible array member, or a zero-length
array member in an inappropriate context. */
if (constructor_type && constructor_fields