diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-12 17:45:57 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-12 17:45:57 +0000 |
commit | 754a9c6cc1b3c2e514a8bfc2472a511a280637b1 (patch) | |
tree | 2571b37001781dba24682a36bf18261b0df39086 /gcc/collect2.c | |
parent | 00581c897a59d22effae8f9832b93df643f663fe (diff) | |
download | gcc-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.c | 4 |
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 */ |