diff options
author | hainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-18 07:45:09 +0000 |
---|---|---|
committer | hainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-18 07:45:09 +0000 |
commit | 71a0b254c87715332b5e55ed98624ef214667c0c (patch) | |
tree | c78320f403fa179e3334c93b007803b977c62f46 /gcc/collect2.c | |
parent | 2b3fc9df3214cd9407d339d25edc64857f653150 (diff) | |
download | gcc-71a0b254c87715332b5e55ed98624ef214667c0c.tar.gz |
* collect2.c (main): Use CONST_CAST2 to perform char ** to
const char ** conversion in AIX specific section.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148649 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index efb00871755..57866aac8a1 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); |