The stat call on mingw fails when a trailing slash is included in the pathname. Hence, trailing slashes need to be stripped from include directory pathnames, lest gcc thinks these paths do not exist. A patch is here: http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00598.html
Confirmed.
What is the status of this? The patch looks reasonable to me (though I can't approve it) but seems to have been dropped.
Can someone please commit this patch? I need this for mingw-hosted cross toolchains.
This is a duplicate of bug #22133.
*** This bug has been marked as a duplicate of 22133 ***