[Bug middle-end/89052] excessive data segment size causes a hang

2019-01-24 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89052 --- Comment #2 from joseph at codesourcery dot com --- I'd say it's a bug for GCC to need to allocate memory for the trailing zero-initialized part of such an object at all; it should only need to allocate memory for the initial part and rememb

[Bug middle-end/89052] excessive data segment size causes a hang

2019-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89052 --- Comment #1 from Martin Sebor --- Clang seems to use SIZE_MAX / 8 as the maximum object size and gives an error for any object whose size exceeds that. But it doesn't seem to doesn't track total object sizes and crashes in LLVM as it runs out