Hello, 

Past http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01691.html,
bootstrap still fails on AIX, from

  gcc/collect2.c:1484:25: error: to be safe all intermediate pointers in cast 
from
  'char **' to 'const char **' must be 'const' qualified [-Werror=cast-qual]
  gcc/collect2.c:1488:15: <same>

This patch fixes this by using CONST_CAST2, as seems appropriate for the
case at hand.

Tested by checking that bootstrap proceeds and terminates after the
change on powerpc-ibm-aix5.3

OK ?

Thanks in advance,

Regards,

Olivier

--

2011-12-23  Olivier Hainque  <hain...@adacore.com>

        * collect2.c (main): In AIX specific computations for vector insertions,
        use CONST_CAST2 to cast from char ** to const char **.

Attachment: aix-collect-cast.dif
Description: video/dv

Reply via email to