Scalar constraints crash memory allocator
|
|
Bugzilla Link |
683 |
Created on |
Mar 01, 2010 16:26 |
Resolution |
FIXED |
Resolved on |
Mar 01, 2010 18:16 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
My changes to propagate N_array constraint function results
via scalarization (prfunr) crash the memory allocator.
If you compile almost any problem with -ecc, you get this:
** 15: Introducing memory management instructions ...
**** Propagating constants ...
**** AUD/SCL distinction ...
**** Making copy operations explicit ...
**** Introducing explicit allocation statements ...
ASSERTION FAILED: file 'memory/alloc.c', line 304
alloc requires a dim expression!
EXECUTION TERMINATED
Aborted
sac@rattler:~/sac/testsuite/optimizations/constantfolding$ sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 16771 linux-gnu_x86_64
(Sun Feb 28 17:34:29 EST 2010 by sac)
I am guessing that scalar and vector versions of the constraint
functions need different treatment in alloc.c (which they
currently don't get), but could use a pointer in which direction to
look for a working example.