wwbmmm commented on issue #1693: URL: https://github.com/apache/incubator-brpc/issues/1693#issuecomment-1150703799
> > 不是很理解仅仅删除这个编译优化提示`__attribute__ ((const))`为什么要改其它基础库? 用到__atrribute((const))的地方很多,不只是glibc,其它库也可能会用到,哪些该删哪些不该删,需要一个一个排查。 > > ARM Compiler 的文档说得更清楚,只有函数的返回值只依赖其输入参数时才可以使用`__attribute__ ((const))`: https://developer.arm.com/documentation/100067/0612/Compiler-specific-Function--Variable--and-Type-Attributes/--attribute----const---function-attribute 这个描述确实比gcc的文档清楚些,但估计看这个文档的人不多。。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org