Re: asm volatile statement reordering

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

 



>> GCC guesses wrong on occasion. It will remove code that has value that
>> but does not produce an output because the language does not allow us
>> to express it.
>
> Yes, the compiler is bad at guessing what you mean.  It does not even
> try; it only cares about what you *say*.

I've had both SIGILL probes and memory zeroizers removed by GCC. I was
very clear about what I said should be done.

The language did not give me a way to tell GCC, please don't mess with
this code and please ensure it executes like I've written it.

Jeff



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux