Bug 38349 - Error Building Ada (h8300)
Summary: Error Building Ada (h8300)
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-01 14:45 UTC by Joel Sherrill
Modified: 2015-12-05 17:25 UTC (History)
3 users (show)

See Also:
Host:
Target: h8300-rtems4.10
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2008-12-01 14:45:36 UTC
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.
Comment 1 Joel Sherrill 2008-12-01 15:15:16 UTC
Ada not boehm-gc.  Selected wrong box.
Comment 2 Joel Sherrill 2009-02-27 16:26:34 UTC
Ping.. still broken

gcc (GCC) 4.4.0 20090226 (experimental) [trunk revision 144455]
Comment 3 Joel Sherrill 2009-02-27 16:28:44 UTC
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?
Comment 4 Laurent GUERBY 2009-02-27 17:42:24 UTC
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.
Comment 5 Eric Botcazou 2015-12-05 17:25:34 UTC
.