mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 09:40:54 +08:00
re PR c/16999 (#ident stopped working)
2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> PR c/16999 * c-ppoutput.c (cb_ident): Don't quote string as it is already quoted. * gcc.dg/cpp/ident-1.c: New test. From-SVN: r88773
This commit is contained in:
parent
6048b706dc
commit
147887759d
@ -1,3 +1,9 @@
|
||||
2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR c/16999
|
||||
* c-ppoutput.c (cb_ident): Don't quote string as it is already
|
||||
quoted.
|
||||
|
||||
2004-10-08 Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
* tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
|
||||
|
@ -304,7 +304,7 @@ cb_ident (cpp_reader *pfile ATTRIBUTE_UNUSED, source_location line,
|
||||
const cpp_string *str)
|
||||
{
|
||||
maybe_print_line (line);
|
||||
fprintf (print.outf, "#ident \"%s\"\n", str->text);
|
||||
fprintf (print.outf, "#ident %s\n", str->text);
|
||||
print.src_line++;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR c/16999
|
||||
* gcc.dg/cpp/ident-1.c: New test.
|
||||
|
||||
2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* gcc.c-torture/compile/acc1.c: New.
|
||||
|
7
gcc/testsuite/gcc.dg/cpp/ident-1.c
Normal file
7
gcc/testsuite/gcc.dg/cpp/ident-1.c
Normal file
@ -0,0 +1,7 @@
|
||||
/* { dg-do preprocess } */
|
||||
|
||||
/* Based on PR 16999 */
|
||||
|
||||
#ident "this is an ident"
|
||||
|
||||
/* { dg-final { scan-file "ident-1.i" "(^|\\n)#ident \"this is an ident\"($|\\n)" } } */
|
Loading…
x
Reference in New Issue
Block a user