summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-12 17:45:57 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-06-12 17:45:57 +0000
commit754a9c6cc1b3c2e514a8bfc2472a511a280637b1 (patch)
tree2571b37001781dba24682a36bf18261b0df39086 /gcc/collect2.c
parent00581c897a59d22effae8f9832b93df643f663fe (diff)
downloadgcc-754a9c6cc1b3c2e514a8bfc2472a511a280637b1.tar.gz
PR bootstrap/40430
* collect2.c (main): Use CONST_CAST2 in code inside #if LINK_ELIMINATE_DUPLICATE_LDIRECTORIES. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148434 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 9848b903580..efb00871755 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1167,7 +1167,9 @@ main (int argc, char **argv)
#else
#if LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
case 'L':
- if (is_in_args (arg, (const char **) ld1_argv, ld1-1))
+ if (is_in_args (arg,
+ CONST_CAST2 (const char **, char **, ld1_argv),
+ ld1 - 1))
--ld1;
break;
#endif /* LINK_ELIMINATE_DUPLICATE_LDIRECTORIES */