On Fri, 15 Jan 2021, 07:39 Sebastian Huber, <
sebastian.hu...@embedded-brains.de> wrote:

> On 14/01/2021 15:16, Sebastian Huber wrote:
>
> > Hello,
> >
> > I try to add a nios2 multilib to support the "Nios II Floating Point
> > Hardware 2 Component":
> >
> >
> https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_nios2_custom_instruction.pdf
> >
> >
> > If I add all custom instructions supported by the component, then I
> > get an error in libatomic since -Werror is used:
> >
> > cc1: error: switch '-mcustom-fmins' has no effect unless
> > '-ffinite-math-only' is specified [-Werror]
> > cc1: error: switch '-mcustom-fmaxs' has no effect unless
> > '-ffinite-math-only' is specified [-Werror]
> > cc1: error: switch '-mcustom-round' has no effect unless
> > '-fno-math-errno' is specified [-Werror]
> >
> > I am not sure how to fix this.
> Is a compiler warning the right diagnostic for an inconsistent use of
> compiler options? This warning is not related to code processed by GCC.
>

But the options are part of the input provided by the user. I think a
warning is appropriate (and I'm not sure what other sensible options there
are anyway).

Reply via email to