Skip to content

Commit 8e54572

Browse files
committed
Update changes
1 parent f6623bd commit 8e54572

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎src/Changes‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
Version 7.1
22

3+
10/8/26 [GH #182]
4+
"GCC diagnostic" pragmas
5+
6+
The "GCC diagnostic" pragmas were not recognized, so in GNU modes each one
7+
was given an "unrecognized GCC pragma" warning. For example, with --g++:
8+
9+
#pragma GCC diagnostic push // Previously warned about.
10+
#pragma GCC diagnostic ignored "-Wunused-parameter"
11+
int f(int unused) { return 0; }
12+
#pragma GCC diagnostic pop
13+
14+
This is now fixed. The "error", "warning", and "ignored" forms, the "push"
15+
and "pop" forms (when emulating GCC 4.6 or later), the "ignored_attributes"
16+
form (when emulating GCC 13 or later), and the "fatal" form (when emulating
17+
clang) are accepted without a warning, to match the behavior of those
18+
compilers. A missing option string is still diagnosed. The pragmas have no
19+
effect on the front end's own diagnostics.
20+
21+
322
10/7/26 [GH #176]
423
C-generating back end: always_inline attribute and inlined setjmp calls
524

0 commit comments

Comments
 (0)