This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/51259] no escape on control characters on linemarker lines
- From: "skannan at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 May 2013 10:11:39 +0000
- Subject: [Bug preprocessor/51259] no escape on control characters on linemarker lines
- Auto-submitted: auto-generated
- References: <bug-51259-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51259
Shakthi Kannan <skannan at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |skannan at redhat dot com
--- Comment #1 from Shakthi Kannan <skannan at redhat dot com> ---
Opening the .c file in vim, or Emacs shows the control characters. Doing a
hexdump on the output of 'gcc -E' does show the octal value in the output
('001'). For example:
$ gcc -E inc.c > gcc.e
$ hexdump -c gcc.e
0000000 # 1 " i n c . c " \n # 1
0000010 " < c o m m a n d - l i n e > "
0000020 \n # 1 " i n c . c " \n # 1
0000030 " a a 001 b b . h " 1 \n i n t
0000040 m a i n ( ) { } \n # 1
0000050 " i n c . c " 2 \n
000005a