[Bug c/106571] Implement -Wsection diag
bp at alien8 dot de
gcc-bugzilla@gcc.gnu.org
Wed Aug 10 15:11:49 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106571
--- Comment #5 from Boris <bp at alien8 dot de> ---
(In reply to Michael Matz from comment #4)
> Boris: what does DECLARE_PER_CPU() expand into? Are there other attributes
> that could be usefully checked for mismatch between decl and def?
Unfortunately,
DECLARE_PER_CPU(u64, x86_spec_ctrl_current);
expands only to:
extern __attribute__((section(".data..percpu" ""))) __typeof__(u64)
x86_spec_ctrl_current;
More information about the Gcc-bugs
mailing list