Xi Ruoyao via Gcc-patches <gcc-patches@gcc.gnu.org> writes: > Another attempt to make kernel module happy. > > One remaining issue: the patch cannot diagnostic some insane thing like > > int x __attribute__((model("normal"))); > int x __attribute__((model("extreme"))); > > It seems incredibly difficult to diagnose such thing: I can't figure out > any solution w/o invasion into the frontend. IA-64 model() only accepts > small so this is not a problem for them, and M32R model() also cannot > diagnose such error. > > Any suggestion is welcomed.
You might be able to detect this in the merge_decl_attributes hook. Thanks, Richard