[Top][All Lists]

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

Re: [RFC v1 24/38] target/arm: move aa64_va_parameter_tbi,tbid,tcma and

From: Richard Henderson
Subject: Re: [RFC v1 24/38] target/arm: move aa64_va_parameter_tbi,tbid,tcma and arm_rebuild_hflags
Date: Tue, 23 Feb 2021 08:30:15 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 2/23/21 2:07 AM, Claudio Fontana wrote:
> is the code elimination for "if (0)" a guarantee, ie, we won't encounter
> compiler or compiler-options differences, for the compilers we support?
Yes, it's a guarantee.

> Is there some way to force the compilers to not even look at what is in the
> if (0) block?

No, it must be syntactically correct, and it must not reference variables that
have not been declared.  But that's a feature -- making sure that nothing has
syntax errors in is a major improvement over ifdefs.

> That should work also with --enable-debug?


> This way we could avoid a lot of boilerplate/stubs...

Eh, maybe, maybe not.  Stubs may still be required, depending on how complex
the condition is -- more than if (0).


reply via email to

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