Re: Help on emitting static constant arrays

2007-07-05 Thread FX Coudert
It's probably a beginner mistake, but I never wrote code to emit GIMPLE arrays before, and don't know where to look exactly. I'll continue looking for the reason, but if someone thinks of something trivial I'd be interested in knowing! I am pretty sure you should pass the array as a pointer

Help on emitting static constant arrays

2007-07-05 Thread FX Coudert
Hi all, I'm modifying the Fortran front-end to emit code such as: static int4 options.2[5] = {102, 127, 1, 1, 1}; _gfortran_set_options (5, options.2); where _gfortran_set_options is a library function with prototype "void _gfortran_set_options (int , int [])". This works well (the pseu