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
F102743269: D21195.diff
Sat, Nov 16, 2:51 PM
Unknown Object (File)
Sep 27 2024, 10:49 PM
Unknown Object (File)
Sep 25 2024, 10:53 AM
Unknown Object (File)
Sep 23 2024, 7:21 AM
Unknown Object (File)
Sep 23 2024, 2:20 AM
Unknown Object (File)
Sep 20 2024, 10:40 PM
Unknown Object (File)
Sep 20 2024, 10:40 PM
Unknown Object (File)
Sep 20 2024, 10:39 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 8 2019, 11:37 PM
tests/sys/fs/fusefs/Makefile
71 ↗(On Diff #60604)

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