re PR c/48552 (ICE with void type expressions in asm inputs/outputs)
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 Apr 2011 06:27:23 +0000 (08:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 12 Apr 2011 06:27:23 +0000 (08:27 +0200)
commitbae5cddff8b905bb49ed4e013e9756ebea13c099
tree944d7c023a9a5532266fc936c723bbf8ccfe1abf
parent06eb52cab5c99abcdb3adcbdfba8cf75d38705c4
re PR c/48552 (ICE with void type expressions in asm inputs/outputs)

PR c/48552
* c-typeck.c (build_asm_expr): Error out on attempts to use
void type outputs or inputs for constraints that allow reg or
don't allow memory.

* gcc.dg/pr48552-1.c: New test.
* gcc.dg/pr48552-2.c: New test.

From-SVN: r172298
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48552-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr48552-2.c [new file with mode: 0644]