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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88773
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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++;
}
+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.
--- /dev/null
+/* { 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)" } } */