Landing: 03fb45556c2b

Project / Subsystem

gcc / ada

Date

2026-01-19

Author

Piotr Trojanek

Commit

03fb45556c2b0da81ef0e7fceb2b56a47fb9d94a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
03fb45556c2b0da81ef0e7fceb2b56a47fb9d94a
source_type
github
headline
Ada Now Rejects Duplicate CPU/Priority Pragmas when Aspects are Present.
tldr
The Ada compiler now rejects `pragma CPU` and `pragma Priority` when they duplicate corresponding aspects already defined for a subprogram.
author
Piotr Trojanek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • compiler
  • pragma
  • aspects
discussion_id_link
bugzilla_pr
date
2026-01-19T00:00:00.000Z

The Ada compiler now rejects pragma CPU and pragma Priority when they duplicate corresponding aspects that are already specified for a given subprogram. Previously, the pragmas were silently ignored, potentially leading to confusion. The change modifies sem_ch13.adb to record aspect CPU and Priority applied to a subprogram as a representation item during aspect specification analysis.