-noprelude and fun-based cycle phase do not play well together
| Bugzilla Link | 888 |
| Created on | Nov 13, 2011 22:06 |
| Version | svn |
| OS | Linux |
| Architecture | PC |
Extended Description
sac2c -V sac2c v1.00-beta (Haggis And Apple) developer rev 17702:MODIFIED linux-gnu_x86_64 (Sun Nov 13 11:20:25 EST 2011 by sac) If I do this compile, all is well: sac2c bug877.sac -ecc -doawlf But if I do this, we get a crash: sac2c bug877.sac -ecc -doawlf -v0 -noprelude global/phase.c:490 Assertion "FUNDEF_NEXT( fundef) == NULL" failed! Fun-based cycle phase returned more than one fundef. AWLFI is generating inlined function calls within the current fundef. If sacprelude is present, things are OK, but if not, FUNDEF_NEXT( fundef) gets element(s) appended to it. Not a clue as to how to address this. It's not a big deal usually, but sometimes, it's nice to be able to compile with -noprelude, particularly when debugging.