Page MenuHomeFreeBSD

devel/freebsd-gcc*: Fix error in printf0 format checker patch
ClosedPublic

Authored by jhb on Jul 9 2024, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 2, 9:36 AM
Unknown Object (File)
Thu, Jul 31, 12:45 PM
Unknown Object (File)
Sat, Jul 19, 2:27 AM
Unknown Object (File)
Fri, Jul 18, 10:53 PM
Unknown Object (File)
Fri, Jul 18, 9:50 AM
Unknown Object (File)
Fri, Jul 18, 9:20 AM
Unknown Object (File)
Apr 23 2025, 11:19 PM
Unknown Object (File)
Apr 22 2025, 11:15 AM
Subscribers
None

Details

Summary

Fix a mismerge of the printf0 format checking patch from GCC 9 to GCC
12/13. GCC 11 and later don't warn for NULL format strings (instead a
separate nonnull attribute is used). The printf0 format specifier is
left for now to support builds of existing FreeBSD releases but will
be removed in the future.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Jul 9 2024, 8:46 PM
jhb created this revision.

This looks good, but the way to test it is to change printf0 to printf on that one line :)

This revision is now accepted and ready to land.Jul 9 2024, 10:05 PM
In D45941#1047201, @imp wrote:

This looks good, but the way to test it is to change printf0 to printf on that one line :)

I just did that test and world and kernel built fine with that change.