From: Geoff Keating Date: Fri, 22 Sep 2000 18:07:49 +0000 (+0000) Subject: In gcc/ChangeLog: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afa223c6a91f807cc4729e84c877f10bbed10481;p=gcc.git In gcc/ChangeLog: * stmt.c (expand_asm_operands): Allow # in constraints. In gcc/testsuite/ChangeLog: * gcc.c-torture/compile/20000922-1.c: New file. From-SVN: r36571 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d3203cce324..776e80a557c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-09-19 Geoff Keating + + * stmt.c (expand_asm_operands): Allow # in constraints. + 2000-09-22 Jason Merrill * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace. diff --git a/gcc/stmt.c b/gcc/stmt.c index 2892d340b89..f6468254043 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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': diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3ca1afe987f..1de5ac8dce1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-09-22 Geoff Keating + + * gcc.c-torture/compile/20000922-1.c: New file. + 2000-09-21 Nick Clifton * 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 index 00000000000..0fef966e676 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20000922-1.c @@ -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); +}