Page MenuHomeFreeBSD

lib/msun: Exclude ignored-pragmas from -Werror
ClosedPublic

Authored by arichardson on Apr 13 2021, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 11:50 PM
Unknown Object (File)
Mon, Oct 28, 4:48 AM
Unknown Object (File)
Wed, Oct 9, 10:51 AM
Unknown Object (File)
Wed, Oct 9, 10:51 AM
Unknown Object (File)
Wed, Oct 9, 10:51 AM
Unknown Object (File)
Wed, Oct 9, 10:08 AM
Unknown Object (File)
Oct 1 2024, 8:59 PM
Unknown Object (File)
Sep 29 2024, 2:47 PM
Subscribers

Details

Summary

This avoids build failures due to the clang 12 warning:

'#pragma FENV_ACCESS' is not supported on this target - ignored
Test Plan

compiles with clang12

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Is this now on e.g. PowerPC etc? Or also on x86? But in any case, LGTM.

This revision is now accepted and ready to land.Apr 13 2021, 1:34 PM

I saw this building CheriBSD, and I think it affected almost all architectures.

Ah, I thought maybe now that the StrictFP stuff is operational we might finally get some #pragma FENV_ACCESS support, but it's probably a whole other can of worms...

Looks like the warning is not triggered for x86, only other architectures. That indicates that the pragmas might actually be implemented now.
Should I restrict the -Wno-error to non-x86?