ghdl: building the standard libs with -O2

That leads to faster simulations.

+15 -1
+2 -1
pkgs/development/compilers/gcc/4.3/default.nix
··· 80 80 ++ optional noSysDirs ./no-sys-dirs.patch 81 81 ++ optional (noSysDirs && langFortran) ./no-sys-dirs-fortran.patch 82 82 ++ optional langJava ./java-jvgenmain-link.patch 83 - ++ optional langVhdl ./ghdl-ortho-cflags.patch; 83 + ++ optional langVhdl ./ghdl-ortho-cflags.patch 84 + ++ optional langVhdl ./ghdl-runtime-o2.patch; 84 85 85 86 inherit noSysDirs profiledCompiler staticCompiler crossStageStatic 86 87 binutilsCross libcCross;
+13
pkgs/development/compilers/gcc/4.3/ghdl-runtime-o2.patch
··· 1 + diff --git a/gcc/vhdl/Makefile.in b/gcc/vhdl/Makefile.in 2 + index b8d2ed0..0e8bd55 100644 3 + --- a/gcc/vhdl/Makefile.in 4 + +++ b/gcc/vhdl/Makefile.in 5 + @@ -682,7 +682,7 @@ install-ghdllib: ghdllib grt.lst $(STD93_SRCS) $(STD87_SRCS) \ 6 + PDIR=`pwd` && cd $(DESTDIR)$(VHDL_LIB_DIR) && \ 7 + $(MAKE) -f $$PDIR/Makefile REL_DIR=../../.. \ 8 + LIBSRC_DIR="src" LIB93_DIR=lib/v93 LIB87_DIR=lib/v87 \ 9 + - ANALYZE="$$PDIR/../ghdl -a --GHDL1=$$PDIR/../ghdl1 --ieee=none" \ 10 + + ANALYZE="$$PDIR/../ghdl -a --GHDL1=$$PDIR/../ghdl1 --ieee=none -Wc,-O2" \ 11 + std.v93 std.v87 ieee.v93 ieee.v87 synopsys.v93 synopsys.v87 mentor.v93 12 + # Copy std_standard (this is done after libraries, since they remove dirs). 13 + $(INSTALL_DATA) std87_standard.o \