Fix typos in gcc.dg/pr45570.c.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 2010 15:52:47 +0000 (15:52 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 2010 15:52:47 +0000 (15:52 +0000)
2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.dg/pr45570.c: Fix typos.  Also run for i?86-*-*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165474 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr45570.c

index 22dc14b..3f98ce9 100644 (file)
@@ -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
index 0b4b367..8a25951 100644 (file)
@@ -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);
-}
-