Commit afa223c6 by Geoff Keating Committed by Geoffrey Keating

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
parent a3a834aa
2000-09-19 Geoff Keating <geoffk@cygnus.com>
* stmt.c (expand_asm_operands): Allow # in constraints.
2000-09-22 Jason Merrill <jason@redhat.com> 2000-09-22 Jason Merrill <jason@redhat.com>
* c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace. * c-lex.c (skip_white_space): Just treat CRs as horizontal whitespace.
......
...@@ -1476,7 +1476,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) ...@@ -1476,7 +1476,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
} }
break; break;
case '?': case '!': case '*': case '&': case '?': case '!': case '*': case '&': case '#':
case 'E': case 'F': case 'G': case 'H': case 'E': case 'F': case 'G': case 'H':
case 's': case 'i': case 'n': case 's': case 'i': case 'n':
case 'I': case 'J': case 'K': case 'L': case 'M': case 'I': case 'J': case 'K': case 'L': case 'M':
...@@ -1658,7 +1658,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line) ...@@ -1658,7 +1658,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
break; break;
case '<': case '>': case '<': case '>':
case '?': case '!': case '*': case '?': case '!': case '*': case '#':
case 'E': case 'F': case 'G': case 'H': case 'E': case 'F': case 'G': case 'H':
case 's': case 'i': case 'n': case 's': case 'i': case 'n':
case 'I': case 'J': case 'K': case 'L': case 'M': case 'I': case 'J': case 'K': case 'L': case 'M':
......
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> 2000-09-21 Nick Clifton <nickc@redhat.com>
* gcc.c-torture/execute/divmod-1.c (mod5): New function - perform * gcc.c-torture/execute/divmod-1.c (mod5): New function - perform
......
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);
}
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