Page MenuHomeFreeBSD

Don't add -Wno-class-memaccess with older gcc.
ClosedPublic

Authored by brooks on Aug 8 2019, 11:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 10, 2:43 AM
Unknown Object (File)
Mon, Apr 1, 1:12 PM
Unknown Object (File)
Feb 19 2024, 4:15 PM
Unknown Object (File)
Feb 9 2024, 9:54 PM
Unknown Object (File)
Jan 27 2024, 1:08 AM
Unknown Object (File)
Jan 18 2024, 9:39 PM
Unknown Object (File)
Dec 14 2023, 10:02 PM
Unknown Object (File)
Dec 5 2023, 2:16 PM
Subscribers

Details

Summary

This is a gcc 8.0+ warning which needed to be silenced on for the riscv build. amd64-xtoolchain-gcc still uses gcc 6.4.0 and does not understand this flag.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25766
Build 24340: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 8 2019, 11:37 PM
tests/sys/fs/fusefs/Makefile
71

Lose the extra indirection. It's not needed and bogus.
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 50000
is what you want. The extra indirection is valid only in src/Makefile.inc1

imp requested changes to this revision.Aug 8 2019, 11:55 PM
This revision now requires changes to proceed.Aug 8 2019, 11:55 PM

I added that flag to make the riscv build happy. Have you tested your change through a riscv buildworld?

I completely misunderstood what was going on. The in .. excludes gcc 4.2.1 and this is a gcc 8.0+ warning. The incorrect copy and paste meant it worked by accident for 6.4. I'm testing a new version now...

  • Use the correct expression to add -Wno-class-memaccess.

I've fixed the expression to exclude gcc < 8 and tested on amd64 and riscv.

brooks retitled this revision from Don't add -Wno-class-memaccess with modern gcc. to Don't add -Wno-class-memaccess with older gcc..Aug 9 2019, 8:38 PM
brooks edited the summary of this revision. (Show Details)

Ok, that looks better.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 9 2019, 11:51 PM
This revision was automatically updated to reflect the committed changes.
Owners added a reviewer: Restricted Owners Package.Aug 9 2019, 11:51 PM