This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/31182] preprocessor doubles up digits in token pasting
- From: "dsb at boyski dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2007 12:42:29 -0000
- Subject: [Bug preprocessor/31182] preprocessor doubles up digits in token pasting
- References: <bug-31182-14249@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from dsb at boyski dot com 2007-03-15 12:42 -------
This is because the default behavior is to preprocess in C mode but as I
mentioned it happens in assembler mode. If you add the flag '-x
assembler-with-cpp' you should see the reported result. My test case was in a
file with a .s extension which causes cpp/gcc to infer '-x assembler-with-cpp'.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31182