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] MIPS: Fix GCC `noreorder' for undefined R5900 short loops


On 7/22/19 3:47 PM, Maciej W. Rozycki wrote:
> Hi Fredrik,
> 
>> I'm glad to hear from you again!
> 
>  I'm not dead, just distracted.
> 
>>>  I think that should be a GAS warning really (similarly to macros that 
>>> expand to multiple instructions in a delay slot) as people ought to be 
>>> allowed to do what they wish, and then `-Werror' can be used for code 
>>> quality enforcement (and possibly disabled on a case-by-case basis).
>>
>> How can one reasonably prevent the bug when compiling a whole Linux
>> distribution with thousands of packages if GAS merely warns and proceeds
>> in many cases?
> 
>  I think the tools must not set a policy.  By using `.set noreorder' the 
> user told the toolchain he knows better and asked to keep its hands away.
Agreed, 100%.



Jeff


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