4.4.0 20081126 (experimental) [trunk revision 142228] /n/12/joel/test-gcc/b-gcc2-h8300/./gcc/xgcc -B/n/12/joel/test-gcc/b-gcc2-h8300/./gcc/ -nostdinc -B/n/12/joel/test-gcc/b-gcc2-h8300/h8300-rtems4.10/newlib/ -isystem /n/12/joel/test-gcc/b-gcc2-h8300/h8300-rtems4.10/newlib/targ-include -isystem /n/12/joel/test-gcc/gcc-svn/newlib/libc/include -B/n/12/joel/test-gcc/install/h8300-rtems4.10/bin/ -B/n/12/joel/test-gcc/install/h8300-rtems4.10/lib/ -isystem /n/12/joel/test-gcc/install/h8300-rtems4.10/include -isystem /n/12/joel/test-gcc/install/h8300-rtems4.10/sys-include -c -g -O2 -W -Wall -gnatpg a-calari.adb -o a-calari.o checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... s-parame.ads:96:51: value not in range of type "System.Parameters.Size_Type" s-parame.ads:96:51: static expression fails Constraint_Check Line 96 is this: Default_Env_Stack_Size : constant Size_Type := 8_192_000; -- Assumed size of the environment task, if no other information -- is available. This value is used when stack checking is -- enabled and no GNAT_STACK_LIMIT environment variable is set. I think this is because the H8 only has a limited address range and 8MB is too large for its default environment stack size. I am recalling that 64K is the limit for offsets and that the larger parts in the family only have 24 address bits for 16MB.
Ada not boehm-gc. Selected wrong box.
Ping.. still broken gcc (GCC) 4.4.0 20090226 (experimental) [trunk revision 144455]
Laurent.. would it make sense to have a "low memory" alternate version of the file in question and swap it in on some targets like the sh2e issue?
First you need to find out which stack_size works on your target. An obvious patch would be something like that: Default_Env_Stack_Size : constant Size_Type := Size_Type'Min (8_192_000, Size_Type'Last / 1024 ); Otherwise since the only used of Default_Env_Stack_Size is s-stchop.adb I think replacing the constant by a function would be acceptable, then you could customize the return value it in s-parame-rtems.adb.
.