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)
Tue, Nov 19, 5:57 AM
Unknown Object (File)
Sun, Nov 17, 12:54 AM
Unknown Object (File)
Sun, Nov 17, 12:48 AM
Unknown Object (File)
Sun, Nov 17, 12:42 AM
Unknown Object (File)
Sat, Nov 16, 10:48 PM
Unknown Object (File)
Sat, Nov 16, 2:51 PM
Unknown Object (File)
Sep 27 2024, 10:49 PM
Unknown Object (File)
Sep 25 2024, 10:53 AM
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 25759
Build 24336: 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