Skip to content

gcc prompts: verify testsuite codegen and alias claims before reporting "incomplete fix" #986

Done

Description

@sendaoYan

The GCC bundle ignores test inputs, but says nothing about test checks.
GLM reported a Low finding claiming two untouched sibling tests
(pr113104.c, pr113196.c) were left unfixed; on aarch64 trunk both pass
with exactly the expected counts and no runtime alias check.

Add a "Testsuite Codegen Checks and Alias Reasoning" section to
projects/gcc/prompts/false-positive-guide.md:

  1. Scope findings to tests the patch touches, or that the reviewer has
    verified (compile before/after, or a now-failing scan-assembler*).
  2. Name the base object before an alias/TBAA claim; distinct base objects are
    already disambiguated and TBAA is irrelevant.
  3. State expected vs. actual counts for scan-assembler-times /
    check-function-bodies claims.
  4. A passing test with matching counts is not an incomplete fix.

Plus one cross-reference line in review-core.md rule 4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions