aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2009-06-18 07:45:09 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2009-06-18 07:45:09 +0000
commitdb4fa1c1219aa58d009cbdce038d426523cd801b (patch)
treec78320f403fa179e3334c93b007803b977c62f46 /gcc
parenta9a51750b98cbff008e5388946ad65bd221fe079 (diff)
downloadgcc-db4fa1c1219aa58d009cbdce038d426523cd801b.zip
gcc-db4fa1c1219aa58d009cbdce038d426523cd801b.tar.gz
gcc-db4fa1c1219aa58d009cbdce038d426523cd801b.tar.bz2
collect2.c (main): Use CONST_CAST2 to perform char ** to const char ** conversion in AIX specific...
* collect2.c (main): Use CONST_CAST2 to perform char ** to const char ** conversion in AIX specific section. From-SVN: r148649
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/collect2.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c9e5ec8..6469c25 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-17 Olivier Hainque <hainque@adacore.com>
+
+ * collect2.c (main): Use CONST_CAST2 to perform char ** to
+ const char ** conversion in AIX specific section.
+
2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_special_builtin_type): Remove
diff --git a/gcc/collect2.c b/gcc/collect2.c
index efb0087..57866aa 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1281,7 +1281,8 @@ main (int argc, char **argv)
/* The AIX linker will discard static constructors in object files if
nothing else in the file is referenced, so look at them first. */
{
- const char **export_object_lst = (const char **)object_lst;
+ const char **export_object_lst
+ = CONST_CAST2 (const char **, char **, object_lst);
while (export_object_lst < object)
scan_prog_file (*export_object_lst++, PASS_OBJ);