From Fedora Project Wiki
m (Formatting)
(Handling false positives)
Line 15: Line 15:
* Delete the log file in the [https://gitlab.com/fweimer-rh/fedora-modernc-logs fedora-modernc-logs] repository.
* Delete the log file in the [https://gitlab.com/fweimer-rh/fedora-modernc-logs fedora-modernc-logs] repository.
* Add a markdown documentation file to the [https://gitlab.com/fweimer-rh/fedora-modernc fedora-modernc] repository. Include the Fedora bug if applicable. Always include a link to the Fedora dist-git commit. Please add link titles to external links.
* Add a markdown documentation file to the [https://gitlab.com/fweimer-rh/fedora-modernc fedora-modernc] repository. Include the Fedora bug if applicable. Always include a link to the Fedora dist-git commit. Please add link titles to external links.
== Handling false positives ==
It is important to record exceptions so that further mass-prebuilds with the instrumented compilers do not show the same set of known false positives.
* Add an exception for an undeclared function to [https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/private-f38-toolchain/f/report-gcc-errors.lua report-gcc-errors.lua].
* Delete the log file in the [https://gitlab.com/fweimer-rh/fedora-modernc-logs fedora-modernc-logs] repository, noting this is a false positive. No updated to the [https://gitlab.com/fweimer-rh/fedora-modernc fedora-modernc] repository is required.
There is currently no way to record exceptions for implicit ints, only for implicit function declarations. The instrumented GCC compiler contains changes that avoid spurious implicit int diagnostics for common erroneous constructs.

Revision as of 11:21, 12 January 2023

Procedures for Modern C Porting

Choosing packages to work on

Clone the fedora-modernc-logs repository and pick a log file to work on at random:

git ls-files logs | sort -R | head -n1

At present, there are so many packages left that this is not likely to create a collision and duplicated work.

Recording work

  • Delete the log file in the fedora-modernc-logs repository.
  • Add a markdown documentation file to the fedora-modernc repository. Include the Fedora bug if applicable. Always include a link to the Fedora dist-git commit. Please add link titles to external links.

Handling false positives

It is important to record exceptions so that further mass-prebuilds with the instrumented compilers do not show the same set of known false positives.

There is currently no way to record exceptions for implicit ints, only for implicit function declarations. The instrumented GCC compiler contains changes that avoid spurious implicit int diagnostics for common erroneous constructs.