preprocessor: add_path simplifications
authorNathan Sidwell <nathan@acm.org>
Wed, 22 Jul 2020 15:01:45 +0000 (08:01 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 22 Jul 2020 15:43:25 +0000 (08:43 -0700)
commit18d96339d26e31f06707fe234040bde45b6de70b
treee1144045835cebe090a42afeed2951f4520f527e
parent5980c0dcc6b3c2bb2f01f2140f48beb3fe3ffee6
preprocessor: add_path simplifications

I noticed add_path was calling strlen more than once on the same
string.  Let's not do that.

gcc/
* incpath.c (add_path): Avoid multiple strlen calls.
gcc/incpath.c