This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] MIPS: Fix GCC `noreorder' for undefined R5900 short loops
On 7/24/19 9:31 AM, Maciej W. Rozycki wrote:
> Fredrik,
>
>>> Why? What is wrong with using `-Werror'?
>>>
>>> Or you could use `-Wa,-fatal-warnings' to limit making warnings fatal to
>>> the assembly stage only if you are concerned about bad high-level language
>>> code quality interfering with your goal.
>>
>> It appears unfeasible to fix thousands of build scripts to work like that.
>> Although the numbers with actual MIPS code in them likely are very small,
>> some may source macros and other stuff via various libraries. Some
>> distributions, such as Gentoo, do have global CFLAGS but such mechanism are
>> unreliable.
>
> I'd expect a sane distribution packager to prepare/patch any disobedient
> software packages to accept global distribution-specific flags, as there
> are often more important flags to pass which all packages need to be build
> with.
Getting good flags injection and being able to audit it is painful, but
amazingly helpful (insert plug here for Nick's annobin/annocheck).
Fixing packages to accept the standard methods of flag injection as well
as addressing issues that arise is all standard procedure.
Jeff