https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96588
Bug ID: 96588
Summary: [nvptx] Add -minit-limit
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
[ As proposed in PR96566. ]
When compiling test-case gcc.dg/builtin-object-size-21.c for nvptx, we time
out, possibly while consuming a lot of disk space.
This has now been fixed for that testcase by requiring effective target
large_initializer, but for new test-cases that doesn't help.
We could add a nvptx option -minit-limit, set to unlimited by default, and then
add say -minit-limit=0xfffffff in nvptx-none-run.exp to make sure that we run
into an error rather than a timeout/out-of-disk-space.