Page MenuHomeFreeBSD

dtrace tests: fix prototypes for gcc build
ClosedPublic

Authored by rlibby on Jan 8 2021, 7:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 11:17 AM
Unknown Object (File)
Oct 5 2024, 1:28 AM
Unknown Object (File)
Oct 5 2024, 1:26 AM
Unknown Object (File)
Oct 4 2024, 11:25 PM
Unknown Object (File)
Oct 2 2024, 6:21 PM
Unknown Object (File)
Oct 2 2024, 1:14 AM
Unknown Object (File)
Oct 1 2024, 1:55 PM
Unknown Object (File)
Sep 29 2024, 5:08 PM
Subscribers

Details

Summary
  • quiet -Wstrict-prototypes
  • provide prototypes for weak aliases
Test Plan

Build with clang and gcc, nm output looks good.

env MAKEOBJDIRPREFIX=/usr/obj/gcc9 CROSS_TOOLCHAIN=amd64-gcc9 make WITH_DTRACE_TESTS=YES buildworld
make WITH_DTRACE_TESTS=YES buildworld
% nm /usr/obj/usr/src/freebsd/amd64.amd64/cddl/usr.sbin/dtrace/tests/common/pid/tst.weak1.o
0000000000000000 W _go
                 U exit
                 U getpid
0000000000000000 T go
0000000000000040 t handle
0000000000000010 T main
                 U signal
% nm /usr/obj/gcc9/usr/src/freebsd/amd64.amd64/cddl/usr.sbin/dtrace/tests/common/pid/tst.weak1.o  
0000000000000000 W _go
                 U exit
                 U getpid
0000000000000000 T go
000000000000000f t handle
000000000000002e T main
                 U signal

Diff Detail

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

Event Timeline

rlibby requested review of this revision.Jan 8 2021, 7:33 AM
This revision was not accepted when it landed; it landed in state Needs Review.Jan 11 2021, 5:55 AM
This revision was automatically updated to reflect the committed changes.