This is the mail archive of the gcc@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: Proper way to make a one-off multi-file testcase?


>>>>> "Hans-Peter" == Hans-Peter Nilsson <hp@bitrange.com> writes:

 Hans-Peter> On Wed, 30 Jan 2008, Ian Lance Taylor wrote:
 >> One issue here is that in some cases const and pure calls can get
 >> combined and eliminated even with attribute noinline (unless this
 >> changed recently).  So in addition to attribute noinline, putting
 >> an asm volatile ("") in the function can help make it non-pure and
 >> non-const.

 Hans-Peter> (The "volatile" is redundant; an asm without in/out
 Hans-Peter> operands is always volatile.)

That's what the docs say, but I've seen indications that this is not
actually how it works.  (At least not a couple of releases ago.)

	 paul


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