gcc assembler preprocessor not compatible with standard headers

百般思念 提交于 2019-12-04 08:17:23

__ASSEMBLY__ is a convention that the Linux kernel project made up themselves before they knew about the existence of the gcc predefined macro __ASSEMBLER__.

The linux kernel passes down __ASSEMBLY__ explicitly in linux/Makefile:

KBUILD_AFLAGS   := -D__ASSEMBLY__

There were patches posted on LKML to migrate to __ASSEMBLER__ in 2005 but they were not merged: Re: [RFC][MEGAPATCH] Change ASSEMBLY to ASSEMBLER (defined by GCC from 2.95 to current CVS)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!