diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-30 17:43:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-01-30 17:43:48 +0000 |
commit | d74e1c4eac049852175a7ed400d6d29fdb599cb0 (patch) | |
tree | d0a79da6cb654517bd562d034053118a4da21a2e /gcc | |
parent | 2009-01-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-testing-d74e1c4eac049852175a7ed400d6d29fdb599cb0.tar.bz2 |
2009-01-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* ChangeLog, gcc/testsuite/ada/acats/rtems_init.c,
gcc/testsuite/ada/acats/run_all_rtems.sh: c380004 needs > 1 MB of
stack space. Compile it with a special argument to account for this.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ada/acats/rtems_init.c | 15 | ||||
-rwxr-xr-x | gcc/testsuite/ada/acats/run_all_rtems.sh | 1 |
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/testsuite/ada/acats/rtems_init.c b/gcc/testsuite/ada/acats/rtems_init.c index 981899a..4c8e6e0 100644 --- a/gcc/testsuite/ada/acats/rtems_init.c +++ b/gcc/testsuite/ada/acats/rtems_init.c @@ -65,12 +65,15 @@ void *POSIX_Init( void *argument ) status = pthread_attr_init( &attr ); assert( !status ); -#define GNAT_MAIN_STACKSPACE 100 -#ifdef GNAT_MAIN_STACKSPACE - stacksize = GNAT_MAIN_STACKSPACE * 1024; -#else -#define GNAT_MAIN_STACKSPACE 0 -#endif + #ifndef GNAT_MAIN_STACKSPACE + #define GNAT_MAIN_STACKSPACE 100 + #endif + + #ifdef GNAT_MAIN_STACKSPACE + stacksize = GNAT_MAIN_STACKSPACE * 1024; + #else + #define GNAT_MAIN_STACKSPACE 0 + #endif status = pthread_attr_setstacksize( &attr, stacksize ); assert( !status ); diff --git a/gcc/testsuite/ada/acats/run_all_rtems.sh b/gcc/testsuite/ada/acats/run_all_rtems.sh index 1381dd7..b684fb0 100755 --- a/gcc/testsuite/ada/acats/run_all_rtems.sh +++ b/gcc/testsuite/ada/acats/run_all_rtems.sh @@ -312,6 +312,7 @@ for chapter in $chapters; do ca1020e) rm -f ca1020e_func1.adb ca1020e_func2.adb ca1020e_proc1.adb ca1020e_proc2.adb > /dev/null 2>&1;; ca14028) rm -f ca14028_func2.ads ca14028_func3.ads ca14028_proc1.ads ca14028_proc3.ads > /dev/null 2>&1;; cxh1001) extraflags="-a -f"; echo "pragma Normalize_Scalars;" > gnat.adc + c380004) extraflags="-DGNAT_MAIN_STACKSIZE=1100" ;; esac if [ "$main" = "" ]; then display "FAIL: $i" |