[Bug ada/8898] [Ada] cannot link with tasks and pragma Linker_Options ("-Wl,--stack=0x80000");

dannysmith at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 27 04:45:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8898



------- Additional Comments From dannysmith at gcc dot gnu dot org  2003-08-27 04:45 -------
The bug is still present on gcc version 3.4 20030825 (experimental) with mingw32

This patch _avoids_ the bug but I suspect it is not really the correct fix:

Danny

Index: gcc/gcc/ada/5wsystem.ads
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/5wsystem.ads,v
retrieving revision 1.4
diff -c -3 -p -r1.4 5wsystem.ads
*** gcc/gcc/ada/5wsystem.ads	23 Oct 2002 07:33:20 -0000	1.4
--- gcc/gcc/ada/5wsystem.ads	19 Aug 2003 08:06:01 -0000
*************** private
*** 187,193 ****
  
        Interrupt_Priority         => 15);
  
!    pragma Linker_Options ("-Wl,--stack=0x2000000");
     --  This is used to change the default stack (32 MB) size for non tasking
     --  programs. We change this value for GNAT on Windows here because the
     --  binutils on this platform have switched to a too low value for Ada
--- 187,193 ----
  
        Interrupt_Priority         => 15);
  
!    pragma Link_With ("-Xlinker --stack=0x2000000");
     --  This is used to change the default stack (32 MB) size for non tasking
     --  programs. We change this value for GNAT on Windows here because the
     --  binutils on this platform have switched to a too low value for Ada



More information about the Gcc-bugs mailing list