]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* collect2.c (main): Use CONST_CAST2 to perform char ** to
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Jun 2009 07:45:09 +0000 (07:45 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Jun 2009 07:45:09 +0000 (07:45 +0000)
const char ** conversion in AIX specific section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148649 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/collect2.c

index c9e5ec84f2bcef155598b604c04b7a47d3f6a4fe..6469c25cb66fa8cbb233e4e8fee26c950674cee9 100644 (file)
@@ -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
index efb00871755869ab25bdfe4fb420cdfa11241eba..57866aac8a171a1c5e16ee57462fd86bae15bc42 100644 (file)
@@ -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);