diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-06-08 08:04:19 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-06-08 08:16:15 +0000 |
commit | e7b3f654f2ab0400c95c0517387a9ad645a5c4cd (patch) | |
tree | abf913e1081892824cae8050327da9d594cd7fe9 /libgcc | |
parent | 48b799ea9a6a252c355947f33f78f43a38fe31b0 (diff) | |
download | gcc-e7b3f654f2ab0400c95c0517387a9ad645a5c4cd.zip gcc-e7b3f654f2ab0400c95c0517387a9ad645a5c4cd.tar.gz gcc-e7b3f654f2ab0400c95c0517387a9ad645a5c4cd.tar.bz2 |
[arm] (header usage fix) include c++ algorithm header via system.h
After the recent commit that forces uses of c++11, the arm part failed
to build because it does not include <algorithm> via system.h as
should be done.
This results in:
from /gcc/common/config/arm/arm-common.c:34:
/usr/lib/gcc/x86_64-linux-gnu/5/include/mm_malloc.h:42:12: error:
attempt to use poisoned "malloc"
return malloc (size);
This patch fixes the problem by defining INCLUDE_ALGORITHM before
including system.h and no longer includes <algorithm> directly.
gcc/ChangeLog:
* common/config/arm/arm-common.c (INCLUDE_ALGORITHM):
Define. No longer include <algorithm>.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions