This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I decided to fix up this patch for Zack and I found it was just a simple off by one error when handling maybe_apply_renaming_pragma.
Bootstrapped on powerpc-apple-darwin with no regressions plus I tried the simple testcase which Rainer Orth gave and it looked to be fixed.
OK to commit if someone tests on Solaris and Tru64 (OSF) and there are no regressions because of this patch?
I had forgot to say the only difference between this patch and the one which Zack sent out is:
+ /* If we have a null character as the last charactor in the + array, then the length of the string is smaller by one. */ + if (prefix[plen - 1] == '\0') + plen--; + + if (id[ilen - 1] == '\0') + ilen--;
Thanks, Andrew Pinski
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |