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]

Re: [PATCH] Make basic asm implicitly clobber memory, pr24414


On 12/09/2015 03:18 AM, Bernd Edlinger wrote:
Furthermore there is a documented use for asm(""): The empty assembler string is used to make a function
volatile, thus calls can not be optimized away.  But I think it is not necessary to make this clobber anything,
nor should it be an instruction scheduling barrier, as it used to be in the past.

Making that change seems risky; best not to make assumptions about how these are used. In any case,

... or should I wait for the next stage1?

I think that would be better.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]