PR/56153: Rin Okuyama: alpha miscompiles malloca() macro.

This commit is contained in:
christos 2021-05-08 12:23:47 +00:00
parent 0c720f9cde
commit 2d56ebfab5
1 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,13 @@ alloc_failed (void)
holds the same value as the value returned. */
char *
#ifdef __alpha__
/*
* toolchain/56153
* GCC 10 and 9 miscompile malloca() macro for alpha.
*/
__attribute__((optimize("O0")))
#endif
__realpath (const char *name, char *resolved)
{
char *rpath, *dest, *extra_buf = NULL;