diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-10-14 15:52:47 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-10-14 08:52:47 -0700 |
commit | 280649b5bb865eabdbdcadd23ef01681a34507fa (patch) | |
tree | 1e1208b6b88dd4e48a2a58b3d9fdcfbe33f933fa /gcc | |
parent | 7d36e53818f31ab207c545d0c273fd9edca6ff09 (diff) | |
download | gcc-280649b5bb865eabdbdcadd23ef01681a34507fa.zip gcc-280649b5bb865eabdbdcadd23ef01681a34507fa.tar.gz gcc-280649b5bb865eabdbdcadd23ef01681a34507fa.tar.bz2 |
Fix typos in gcc.dg/pr45570.c.
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/pr45570.c: Fix typos. Also run for i?86-*-*.
From-SVN: r165474
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr45570.c | 34 |
2 files changed, 6 insertions, 32 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 22dc14b..3f98ce9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-10-14 H.J. Lu <hongjiu.lu@intel.com> + + * gcc.dg/pr45570.c: Fix typos. Also run for i?86-*-*. + 2010-10-14 Joseph Myers <joseph@codesourcery.com> PR c/45969 diff --git a/gcc/testsuite/gcc.dg/pr45570.c b/gcc/testsuite/gcc.dg/pr45570.c index 0b4b367..8a25951 100644 --- a/gcc/testsuite/gcc.dg/pr45570.c +++ b/gcc/testsuite/gcc.dg/pr45570.c @@ -1,5 +1,5 @@ -/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ -/* { dg-options "O3 -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -ftracer" } */ +/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O3 -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -ftracer" } */ void parser_get_next_char (char c, int qm, char *p) { @@ -26,33 +26,3 @@ parser_get_next_parameter (char *p) { parser_get_next_char (':', 1, p); } - -/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ -/* { dg-options "O3 -fselective-scheduling2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -ftracer" } */ -void -parser_get_next_char (char c, int qm, char *p) -{ - int quote_mode = 0; - for (; *p; p++) - { - if (qm) - { - if (quote_mode == 0 && *p == '"' && *(p - 1)) - { - quote_mode = 1; - continue; - } - if (quote_mode && *p == '"' && *(p - 1)) - quote_mode = 0; - } - if (quote_mode == 0 && *p == c && *(p - 1)) - break; - } -} - -void -parser_get_next_parameter (char *p) -{ - parser_get_next_char (':', 1, p); -} - |