[multiple changes]

2004-10-05  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17368
        * semantics.c (finish_asm_stmt): Asm expressions need cleanup
        also.

2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17368
        * g++.dg/ext/asm6.C: New test.

From-SVN: r88627
This commit is contained in:
Andrew Pinski 2004-10-06 15:09:25 -07:00
parent df7d2d8064
commit 564060c32a
4 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-10-05 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/17368
* semantics.c (finish_asm_stmt): Asm expressions need cleanup
also.
2004-10-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
Convert diagnostics to use quoting flag q 6/n

View File

@ -1178,6 +1178,7 @@ finish_asm_stmt (int volatile_p, tree string, tree output_operands,
output_operands, input_operands,
clobbers);
ASM_VOLATILE_P (r) = volatile_p;
r = maybe_cleanup_point_expr (r);
return add_stmt (r);
}

View File

@ -1,6 +1,11 @@
2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/17368
* g++.dg/ext/asm6.C: New test.
2004-10-06 Kenneth Zadeck <zadeck@naturalbridge.com>
gcc.dg/20011119-1.c : Added memory attribute to asm sequence.
* gcc.dg/20011119-1.c : Added memory attribute to asm sequence.
2004-10-06 Paul Brook <paul@codesourcery.com>

View File

@ -0,0 +1,11 @@
struct A
{
~A();
};
int foo(A);
void bar()
{
A a;
asm("" : : "r"(foo(a)) );//<-- cleanup needed here.
};