https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97969
--- Comment #8 from ktkachov at gcc dot gnu.org --- (In reply to Haoxin Tu from comment #7) > (In reply to Paul Sokolovsky from comment #0) > > Hi, Paul. May I ask how to reduce compile-time-hog/memory-hog test cases > using CReduce? > I know CReduce can be easily used to reduce crash/wrong-code test cases, but > I don't know how to minimize compile-time/memory ones. I will be very > appreciated if you can give me any tips. Thanks. > > > Best, > Haoxin When I had to do it in the past I've used the 'ulimit' command in linux. That allows you to kill a process if it exceeds a time limit (ulimit -t) or a memory limit (ulimit -m). You can use it in the validation script to check for the pathological behaviour