In gcc/ChangeLog:
authorGeoff Keating <geoffk@cygnus.com>
Fri, 22 Sep 2000 18:07:49 +0000 (18:07 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 22 Sep 2000 18:07:49 +0000 (18:07 +0000)
* stmt.c (expand_asm_operands): Allow # in constraints.
In gcc/testsuite/ChangeLog:
* gcc.c-torture/compile/20000922-1.c: New file.

From-SVN: r36571

gcc/ChangeLog
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20000922-1.c [new file with mode: 0644]

index d3203cce324c67c2e2dd15597e4926651191a7f4..776e80a557c911ea3927f8e4ee3c65e11a1c2581 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-19  Geoff Keating  <geoffk@cygnus.com>
+
+       * stmt.c (expand_asm_operands): Allow # in constraints.
+
 2000-09-22  Jason Merrill  <jason@redhat.com>
 
        * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
index 2892d340b8909d6de7448692271e44f411bde026..f6468254043ba76a4f7d199f136e220ad0575932 100644 (file)
@@ -1476,7 +1476,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
              }
            break;
 
-         case '?':  case '!':  case '*':  case '&':
+         case '?':  case '!':  case '*':  case '&':  case '#':
          case 'E':  case 'F':  case 'G':  case 'H':
          case 's':  case 'i':  case 'n':
          case 'I':  case 'J':  case 'K':  case 'L':  case 'M':
@@ -1658,7 +1658,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
            break;
 
          case '<':  case '>':
-         case '?':  case '!':  case '*':
+         case '?':  case '!':  case '*':  case '#':
          case 'E':  case 'F':  case 'G':  case 'H':
          case 's':  case 'i':  case 'n':
          case 'I':  case 'J':  case 'K':  case 'L':  case 'M':
index 3ca1afe987fc47249acaa96a24d7880b54ce0e6e..1de5ac8dce15edb432dd6a8c270a9168b4b7c75f 100644 (file)
@@ -1,3 +1,7 @@
+2000-09-22  Geoff Keating  <geoffk@cygnus.com>
+
+       * gcc.c-torture/compile/20000922-1.c: New file.
+
 2000-09-21  Nick Clifton  <nickc@redhat.com>
 
        * gcc.c-torture/execute/divmod-1.c (mod5): New function - perform
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000922-1.c b/gcc/testsuite/gcc.c-torture/compile/20000922-1.c
new file mode 100644 (file)
index 0000000..0fef966
--- /dev/null
@@ -0,0 +1,12 @@
+extern void doit(int);
+void 
+quick_doit(int x)
+{
+#ifdef __OPTIMIZE__
+  if (__builtin_constant_p (x)
+      && x != 0)
+    asm volatile ("%0" : : "i#*X"(x));
+  else
+#endif
+    doit(x);
+}