[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Broken inline assembly syntax on the mob

From: Michael Matz
Subject: Re: [Tinycc-devel] Broken inline assembly syntax on the mob
Date: Sat, 29 Jun 2019 05:20:51 +0200 (CEST)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)


On Sat, 29 Jun 2019, Yuxi Hao wrote:

`error: string constant expected`

 __asm__ __volatile__("int {$}3":);

The error message is correct, you have a lone ':' in that asm, and that must be followed by asm constraints (a string literal) or be removed.

Your example doesn't contain any inline functions, so I doubt it would have worked before the indicated commit, but that commit caused some inline functions to be parsed and syntax analyzed when they weren't before the commit, so invalid source (like the above when contained within an inline function) might have been accepted before and now is diagnosed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]