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] |
The problem here is that libcpp wants to octalify unprintable charactors which is just wrong according to the C and C++ standard. This patch fixes the problem by removing the code which does this, it also lowers the needed buffer for stringification as we only now need a max of 2 times the size instead of 4 times. OK? Bootstrapped and tested on x86_64-pc-linux-gnu with no regressions. Thanks, Andrew Pinski libcpp/ChangeLog: * macro.c (_cpp_builtin_macro_text): Lower the needed max buffer size. (cpp_quote_string): Don't octalify non printable charactors. testsuite/ChangeLog: * gcc.dg/cpp/strify4.c: New test.
Attachment:
fixPR22042.diff.txt
Description: ASCII C program text
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |