summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/collect2.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0b95499f36f..8da2816c831 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-03 Richard Guenther <rguenther@suse.de>
+
+ * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
+
2011-11-03 Martin Jambor <mjambor@suse.cz>
* ipa-prop.c (type_change_info): New fields offset, object,
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 9240bc8684b..92ef7ba024e 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1091,7 +1091,9 @@ main (int argc, char **argv)
const char **ld2;
char **object_lst;
const char **object;
+#ifdef TARGET_AIX_VERSION
int object_nbr = argc;
+#endif
int first_file;
int num_c_args;
char **old_argv;