Hi!

I'm using the pre-built version for Windows as pointed out in 
http://ghdl.free.fr/download.html which is currently 
http://ghdl.free.fr/ghdl-installer-0.26.exe.

ghdl -v gives:

GHDL 0.26 (20070408) [Sokcho edition]
 Compiled with GNAT Version: GPL 2005 (20050729)
 mcode code generator
Written by Tristan Gingold.

Copyright (C) 2003, 2004, 2005, 2006, 2007 Tristan Gingold.
GHDL is free software, covered by the GNU General Public License.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Running
ghdl -a --ieee=synopsys -Wc,-ftest-coverage -Wc,-fprofile-arcs -fexplicit 
foo.vhd
gives

c:\Program\Ghdl\Bin\ghdl.exe: unknown option '-Wc,-ftest-coverage' for command 
'-a'

As you Arnim said "-fcode-coverage" still runs in V0.27 the error may be caused 
by the "[Sokcho edition]", thus recompiling (on Windows unfortunately) may help.

Thanks & 
kind regards

Christian Strzyz
---
NB: Neither ghdl --help nor ghdl --options-help describe the -W option despite 
"-Wc," is documented in the installed 
file:///C:/Program/Ghdl/ghdl.html#Passing-options-to-other-programs 

-----Ursprungligt meddelande-----
Från: [email protected] [mailto:[email protected]] För 
Arnim Läuger
Skickat: den 20 februari 2009 20:02
Till: GHDL discuss list
Ämne: Re: [Ghdl-discuss] Newbie question: GHDL -Wc needed but not working

Hi Christian,

> I'd like to use the ghdl - gcov tool chain to measure code coverage, 
> and according to  the page 
> http://home.mnet-online.de/al/ghdl_gcov/ghdl_gcov.html I've to use a 
> syntax like ghdl -a -Wc,-ftest-coverage -Wc,-fprofile-arcs ... 
> <unit>.vhd to command the underlying gcc to produce the intermediate 
> files needed by gcov.
> 
> But my ghdl V0.26 seems not support any -Wc options any more.

What is the exact error message?
I just gave it a try with ghdl 0.27 and it analyzed a file without any
problems:
$ ghdl -a --std=93c --workdir=work -Wc,-ftest-coverage -Wc,-fprofile-arcs 
../src/T80/T80_MCode.vhd $ ll work T80_MCode.gcno



Best regards
Arnim

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to