Page MenuHomeFreeBSD

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

Authored by arichardson on Apr 13 2021, 11:59 AM.
Tags
None
Referenced Files
F102677726: D29743.diff
Fri, Nov 15, 6:05 PM
Unknown Object (File)
Wed, Nov 6, 11:50 PM
Unknown Object (File)
Mon, Oct 28, 4:48 AM
Unknown Object (File)
Oct 9 2024, 10:51 AM
Unknown Object (File)
Oct 9 2024, 10:51 AM
Unknown Object (File)
Oct 9 2024, 10:51 AM
Unknown Object (File)
Oct 9 2024, 10:08 AM
Unknown Object (File)
Oct 1 2024, 8:59 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38556
Build 35445: arc lint + arc unit

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?