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]

Re: Optimization is removing wanted branches


> The other day one of us noticed that the following code is emitted from cc1
> without a branch when optimization is turned on.  Is there a way to use
> optimization (-O1, -O2, -O3) and have the assembly branch instuction in the
> ouput?

Yes, you could insert an asm volatile (""); .


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