Commit 9900f597 by Jakub Jelinek Committed by Jakub Jelinek

cpphash.c (trad_stringify): Adjust p after stringification as well.

	* cpphash.c (trad_stringify): Adjust p after stringification as
	well.

	* gcc.dg/cpp-tradstringify.c: New test.

From-SVN: r33612
parent c56c2073
2000-05-02 Jakub Jelinek <jakub@redhat.com>
* cpphash.c (trad_stringify): Adjust p after stringification as
well.
2000-05-02 Zack Weinberg <zack@wolery.cumb.org> 2000-05-02 Zack Weinberg <zack@wolery.cumb.org>
* cpplib.h (CPP_POP, parse_cleanup_t): Delete. * cpplib.h (CPP_POP, parse_cleanup_t): Delete.
......
...@@ -433,6 +433,7 @@ trad_stringify (pfile, base, len, argc, argv, pat, endpat, last) ...@@ -433,6 +433,7 @@ trad_stringify (pfile, base, len, argc, argv, pat, endpat, last)
argv[i].rest_arg); argv[i].rest_arg);
last = CPP_WRITTEN (pfile); last = CPP_WRITTEN (pfile);
base = p + argv[i].len; base = p + argv[i].len;
p = base;
goto proceed; goto proceed;
} }
p++; p++;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* gcc.c-torture/compile/20000502-1.c: New test. * gcc.c-torture/compile/20000502-1.c: New test.
* g++.old-deja/g++.other/align.C: New test. * g++.old-deja/g++.other/align.C: New test.
* gcc.dg/cpp-tradstringify.c: New test.
Sun Apr 23 14:41:33 2000 Jeffrey A Law (law@cygnus.com) Sun Apr 23 14:41:33 2000 Jeffrey A Law (law@cygnus.com)
......
/* Test whether traditional stringify works. */
/* { dg-do preprocess } */
/* { dg-options "-traditional" } */
#define foo(a, b) c="a"; d="b";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment