g++spec.c cleanups, generality improvements
Andreas Schwab
schwab@suse.de
Mon Jul 26 23:43:00 GMT 2004
gkeating@geoffk5.apple.com (Geoffrey Keating) writes:
> @@ -297,15 +297,19 @@ lang_specific_driver (int *in_argc, cons
> /* Add `-lstdc++' if we haven't already done so. */
> if (library > 0)
> {
> - arglist[j++] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
> - added_libraries++;
> + arglist[j] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
> + if (arglist[j][0] != '-' || arglist[j][1] == 'l')
> + added_libraries++;
That doesn't match exactly the description in the changelog since you
still count it as library if the string does not start with '-'. Is it
that what you intended?
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc-patches
mailing list