This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 08/30/2009 08:16 AM, Sylvain Pion wrote:GCC is already going slightly beyond this, because it's accepting more than a string-literal. But that's relatively minor.
However, using "asm goto" outside the parentheses goes further in terms of syntax extension, and I'm not convinced that the need justifies it.
GCC already accepts volatile outside the parenthesis too.
I'm not sure what your point really is.
Moreover, the syntax of asms being already not so easy to understand, I would like to suggest moving the "goto" inside the asm, so that one easily sees which arguments are labels (a kind of "named argument"). Something like the following :
asm ("..." : ... : ... : ... : goto (label-list) );
Has this option been considered ?
No, I hadn't thought of this. I suppose it would be trivial to change the grammar in this way, if a majority think it's worthwhile. I personally don't see anything wrong with what I have implemented at present.
I don't have a strong position on this issue, I just wanted to make this remark in case others cared.
-- Sylvain Pion INRIA Sophia-Antipolis Geometrica Project-Team CGAL, http://cgal.org/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |