GNU toolchain for RISC-V, including GCC
This report summarizes scanner evidence for riscv-collab/riscv-gnu-toolchain, a C project with 4,638 GitHub stars. SynthScan examined 214,396 lines of code across 995 source files, recording 1455 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 6.6 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1455 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 1455 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1455 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/benchmarks/dhrystone/dhrystone.h | 361 | #undef HZ | COMMENT |
| LOW | test/benchmarks/dhrystone/dhrystone.h | 381 | COMMENT | |
| LOW | test/benchmarks/dhrystone/dhrystone.h | 401 | #define Stop_Timer() times(&time_info); End_Time = (long)time_info.tms_utime | COMMENT |
| LOW | linux-headers/include/drm/ivpu_accel.h | 1 | /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ | COMMENT |
| LOW | linux-headers/include/drm/ivpu_accel.h | 21 | #define DRM_IVPU_METRIC_STREAMER_START 0x07 | COMMENT |
| LOW | linux-headers/include/drm/ivpu_accel.h | 81 | #define DRM_IVPU_PARAM_PLATFORM_TYPE 2 | COMMENT |
| LOW | linux-headers/include/drm/vc4_drm.h | 21 | * IN THE SOFTWARE. | COMMENT |
| LOW | linux-headers/include/drm/vc4_drm.h | 41 | #define DRM_VC4_SET_TILING 0x08 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 41 | COMMENT | |
| LOW | linux-headers/include/drm/radeon_drm.h | 61 | #define RADEON_UPLOAD_TEX1 0x00000400 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 81 | #define RADEON_EMIT_PP_LUM_MATRIX 5 /* bumpmap/1 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 101 | #define R200_EMIT_PP_TXCBLEND_4 25 /* tex4/4 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 121 | #define R200_EMIT_PP_TXOFFSET_3 45 /* tex3/1 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 141 | #define R200_EMIT_PP_CUBIC_FACES_2 65 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 161 | #define R200_EMIT_PP_AFS_0 85 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 281 | } drm_r300_cmd_header_t; | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 321 | #define RADEON_GART_TEX_HEAP 1 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 481 | #define DRM_RADEON_FULLSCREEN 0x06 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 501 | #define DRM_RADEON_SURF_ALLOC 0x1a | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 521 | #define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START) | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 541 | #define DRM_IOCTL_RADEON_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_IRQ_EMIT, drm_radeon_irq_emit_t) | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 701 | /* 1.3: An ioctl to get parameters that aren't available to the 3d | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 841 | #define RADEON_TILING_SWAP_32BIT 0x8 | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 921 | __u32 op; /* RADEON_GEM_OP_* */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 1001 | #define RADEON_INFO_WANT_CMASK 0x08 /* get access to CMASK on r300 */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 1021 | /* query if a RADEON_CS_RING_* submission is supported */ | COMMENT |
| LOW | linux-headers/include/drm/radeon_drm.h | 1061 | #define SI_TILE_MODE_COLOR_2D_16BPP 15 | COMMENT |
| LOW | linux-headers/include/drm/habanalabs_accel.h | 821 | #define HL_INFO_RESET_COUNT 9 | COMMENT |
| LOW | linux-headers/include/drm/habanalabs_accel.h | 841 | #define HL_INFO_UNDEFINED_OPCODE_EVENT 31 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 401 | } drm_i915_sarea_t; | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 421 | /* | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 441 | #define DRM_I915_SET_VBLANK_PIPE 0x0d | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 461 | #define DRM_I915_GEM_GET_APERTURE 0x23 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 481 | #define DRM_I915_PERF_OPEN 0x36 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 501 | #define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t) | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 521 | #define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread) | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 541 | #define DRM_IOCTL_I915_REG_READ DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read) | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 601 | #define I915_PARAM_HAS_GEM 5 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 621 | #define I915_PARAM_HAS_EXEC_NO_RELOC 25 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 1721 | #define I915_TILING_X 1 | COMMENT |
| LOW | linux-headers/include/drm/i915_drm.h | 1841 | #define I915_OVERLAY_RGB15 0x3000 | COMMENT |
| LOW | linux-headers/include/drm/tegra_drm.h | 621 | /** | COMMENT |
| LOW | linux-headers/include/drm/tegra_drm.h | 641 | #define DRM_TEGRA_GEM_GET_TILING 0x0b | COMMENT |
| LOW | linux-headers/include/drm/tegra_drm.h | 1041 | __u32 value; | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 161 | #define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */ | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 181 | #define DRM_FORMAT_ABGR1555 fourcc_code('A', 'B', '1', '5') /* [15:0] A:B:G:R 1:5:5:5 little endian */ | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 201 | #define DRM_FORMAT_BGRA8888 fourcc_code('B', 'A', '2', '4') /* [31:0] B:G:R:A 8:8:8:8 little endian */ | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 301 | #define DRM_FORMAT_BGRX8888_A8 fourcc_code('B', 'X', 'A', '8') | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 1621 | #define AMD_FMT_MOD_TILE_GFX12_256B_2D 1 | COMMENT |
| LOW | linux-headers/include/drm/drm_fourcc.h | 1681 | #define AMD_FMT_MOD_BANK_XOR_BITS_SHIFT 24 | COMMENT |
| LOW | linux-headers/include/drm/lima_drm.h | 161 | #define DRM_LIMA_CTX_CREATE 0x05 | COMMENT |
| LOW | linux-headers/include/drm/qaic_accel.h | 21 | #define QAIC_SEM_OUTSYNCFENCE 1 | COMMENT |
| LOW | linux-headers/include/drm/qaic_accel.h | 41 | #define QAIC_TRANS_ACTIVATE_TO_DEV 9 | COMMENT |
| LOW | linux-headers/include/drm/qaic_accel.h | 381 | #define DRM_QAIC_WAIT_BO 0x06 | COMMENT |
| LOW | linux-headers/include/drm/panthor_drm.h | 241 | __u32 gpu_id; | COMMENT |
| LOW | linux-headers/include/drm/drm_sarea.h | 41 | /* SAREA area needs to be at least a page */ | COMMENT |
| LOW | linux-headers/include/drm/drm.h | 61 | COMMENT | |
| LOW | linux-headers/include/drm/drm.h | 1041 | COMMENT | |
| LOW | linux-headers/include/drm/drm.h | 1081 | #define DRM_IOCTL_ADD_MAP DRM_IOWR(0x15, struct drm_map) | COMMENT |
| LOW | linux-headers/include/drm/drm.h | 1141 | #define DRM_IOCTL_PRIME_FD_TO_HANDLE DRM_IOWR(0x2e, struct drm_prime_handle) | COMMENT |
| 1390 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | linux-headers/include/linux/netlink.h | 67 | #define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | linux-headers/include/drm/drm_mode.h | 86 | * When adding a new stereo mode don't forget to adjust DRM_MODE_FLAGS_3D_MAX | COMMENT |
| LOW | linux-headers/include/sound/asound.h | 101 | /* Don't forget to change the following: */ | COMMENT |
| LOW | linux-headers/include/sound/asound.h | 153 | /* Don't forget to change the following: */ | COMMENT |
| LOW | linux-headers/include/sound/asound.h | 160 | /* Don't forget to change the following: */ | COMMENT |