Summary: | [Ada] cannot link with tasks and pragma Linker_Options ("-Wl,--stack=0x80000"); | ||
---|---|---|---|
Product: | gcc | Reporter: | n.brunot |
Component: | ada | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | minor | CC: | dannysmith, gcc-bugs |
Priority: | P3 | ||
Version: | 3.3 | ||
Target Milestone: | --- | ||
Host: | Target: | *-mingw32 | |
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2003-09-28 21:29:43 |
Description
n.brunot
2002-12-11 01:06:01 UTC
Can you you provide "gnatlink -v -v" output? It would be nice to have the actual linker invocation, to see what's really going on. As a workaround, you could specify the linker options on the gnatmake command line, using the "-largs" option. Subject: RE: [Ada] cannot link with tasks and pragma Linker _Options ("-Wl,--stack=0x80000"); Hello >As a workaround, you could specify the linker options on the gnatmake >command line, using the "-largs" option. This doesn't help. The same problem occurs. I put the pragma linker_options in the sample code to simplify the command line. >Can you you provide "gnatlink -v -v" output? It would be nice to have >the actual linker invocation, to see what's really going on. The problem occurs on every gcc 3.3 or 3.4 for Mingw I tried. You can try with current HEAD You can also use the experimental gnatgcc-3.3-exp-20021006 available at http://prdownloads.sf.net/mingw It gives [c:\work.gnat]gnatlink -v -v cadwinfm.ali GNATLINK 3.3 20021223 (mingw prerelease) Copyright 1996-2002 Free Software Foundation, Inc. -----Message d'origine----- De: fw@gcc.gnu.org A: n.brunot@cadwin.com Date: 27/05/2003 20:06 Objet: [Bug ada/8898] [Ada] cannot link with tasks and pragma Linker_Options ("-Wl,--stack=0x80000"); 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 fw@gcc.gnu.org changed: What |Removed |Added ------------------------------------------------------------------------ ---- Severity|major |minor Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2003-05-27 18:06:30 date| | ------- Additional Comments From fw@gcc.gnu.org 2003-05-27 18:06 ------- Can you you provide "gnatlink -v -v" output? It would be nice to have the actual linker invocation, to see what's really going on. As a workaround, you could specify the linker options on the gnatmake command line, using the "-largs" option. ------- You are receiving this mail because: ------- You reported the bug, or are watching the reporter. Replacing pragma Linker_Options line with pragma Link_With ("-Xlinker --stack=0x80000"); the testcase compiles with gcc-3.3 (release) mingw build. Danny Can someone please state what the status of this bug is? Is it fixed, or still present? Thanks. 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 Danny say this still exists on the mainline (there is even a workaround in this bug now). If there's still a bug, it is in mingw, not in GNAT or GCC (I used a combination of multiple -wl,--stack option under windows with no trouble), so I am closing this PR. Arno Subject: RE: [Ada] cannot link with tasks and pragma Linker_Options ("-Wl,--stack=0x80000"); This is not surprising there is no trouble, because a patch was applied, to prevent crash at compile time. Actually, there is no crash, but given option has no effect, so the problem is still there. The author of the patch didn't close the PR See comment #5 from Danny Smith I heard once that the problem could be due to the way Gnat handle the order of options. Anybody knows what is the correct explanation, and where is the problem, GCC, GNAT or MinGW ? |