summaryrefslogtreecommitdiff
path: root/translate/gcc
diff options
context:
space:
mode:
authorgingold2010-01-12 03:15:20 +0000
committergingold2010-01-12 03:15:20 +0000
commitfb5957a16dea47ae4021c5d4c57b980cea02ee59 (patch)
treeabdfbed5924f5be4418f74a0afe50b248e41c330 /translate/gcc
parent8cca0b24e2c19eedecffdeec89a8a2898da1e362 (diff)
downloadghdl-fb5957a16dea47ae4021c5d4c57b980cea02ee59.tar.gz
ghdl-fb5957a16dea47ae4021c5d4c57b980cea02ee59.tar.bz2
ghdl-fb5957a16dea47ae4021c5d4c57b980cea02ee59.zip
ghdl 0.29 release.
Diffstat (limited to 'translate/gcc')
-rw-r--r--translate/gcc/INSTALL2
-rw-r--r--translate/gcc/README10
-rw-r--r--translate/gcc/dist-common.sh44
-rwxr-xr-xtranslate/gcc/dist.sh36
4 files changed, 84 insertions, 8 deletions
diff --git a/translate/gcc/INSTALL b/translate/gcc/INSTALL
index 8b95cea..e710f91 100644
--- a/translate/gcc/INSTALL
+++ b/translate/gcc/INSTALL
@@ -1,6 +1,6 @@
Install file for the binary distribution of GHDL.
-GHDL is Copyright 2002 - 2009 Tristan Gingold.
+GHDL is Copyright 2002 - 2010 Tristan Gingold.
GHDL is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
diff --git a/translate/gcc/README b/translate/gcc/README
index 63c3981..a2df5d9 100644
--- a/translate/gcc/README
+++ b/translate/gcc/README
@@ -4,7 +4,7 @@ To get the binary distribution or more information, go to http://ghdl.free.fr
Copyright:
**********
-GHDL is copyright (c) 2002 - 2009 Tristan Gingold.
+GHDL is copyright (c) 2002 - 2010 Tristan Gingold.
See the GHDL manual for more details.
This program is free software; you can redistribute it and/or modify
@@ -55,14 +55,18 @@ end Example;
the gcc distribution.
You should have a @GCCVERSION@/gcc/vhdl directory.
* configure gcc with the --enable-languages=vhdl option. You may of course
- add other languages.
+ add other languages. Also you'd better to disable bootstraping using
+ --disable-bootstrap.
Refer to the gcc installation documentation.
* compile gcc.
'make CFLAGS="-O"' is OK
* install gcc. This installs the ghdl driver too.
'make install' is OK.
-Send bugs and comments to ghdl@free.fr.
+There is a mailing list for any questions. You can subscribe via:
+ https://mail.gna.org/listinfo/ghdl-discuss/
+Please report bugs on https://gna.org/bugs/?group=ghdl
+
If you cannot compile, please report the gcc version, GNAT version and gcc
source version.
diff --git a/translate/gcc/dist-common.sh b/translate/gcc/dist-common.sh
index e3ccc91..8ee0c16 100644
--- a/translate/gcc/dist-common.sh
+++ b/translate/gcc/dist-common.sh
@@ -27,8 +27,12 @@ sem_types.ads
sem_types.adb
sem_assocs.ads
sem_assocs.adb
+sem_psl.ads
+sem_psl.adb
canon.adb
canon.ads
+canon_psl.ads
+canon_psl.adb
flags.adb
flags.ads
configuration.adb
@@ -37,6 +41,7 @@ nodes.ads
nodes.adb
options.ads
options.adb
+psl-errors.ads
lists.ads
lists.adb
iirs.adb
@@ -71,6 +76,8 @@ errorout.adb
errorout.ads
parse.adb
parse.ads
+parse_psl.ads
+parse_psl.adb
post_sems.ads
post_sems.adb
ieee.ads
@@ -260,5 +267,38 @@ times.c
clock.c
linux.c
pthread.c
-win32.c
-win32thr.c"
+win32.c"
+
+psl_files="
+psl.ads
+psl-build.adb
+psl-build.ads
+psl-cse.adb
+psl-cse.ads
+psl-disp_nfas.adb
+psl-disp_nfas.ads
+psl-dump_tree.adb
+psl-dump_tree.ads
+psl-hash.adb
+psl-hash.ads
+psl-nfas.adb
+psl-nfas.ads
+psl-nfas-utils.adb
+psl-nfas-utils.ads
+psl-nodes.adb
+psl-nodes.ads
+psl-optimize.adb
+psl-optimize.ads
+psl-prints.adb
+psl-prints.ads
+psl-priorities.ads
+psl-qm.adb
+psl-qm.ads
+psl-rewrites.adb
+psl-rewrites.ads
+psl-subsets.adb
+psl-subsets.ads
+psl-tprint.adb
+psl-tprint.ads
+sa_bools.adb
+sa_bools.ads"
diff --git a/translate/gcc/dist.sh b/translate/gcc/dist.sh
index e22b278..f79719b 100755
--- a/translate/gcc/dist.sh
+++ b/translate/gcc/dist.sh
@@ -27,7 +27,7 @@
# * Check lists of exported files in this file.
# * Create source tar and build binaries: ./dist.sh dist_phase1
# * su root
-# * Build binary tar: ./dist.sh dist_phase2
+# * Build binary tar: HOME=~user ./dist.sh dist_phase2
# * Run the testsuites: GHDL=ghdl ./testsuite.sh gcc
# * Update website/index.html (./dist.sh website helps)
# * upload (./dist upload)
@@ -131,6 +131,9 @@ for i in $grt_config_files; do
ln -sf $CWD/../grt/config/$i $VHDLDIR/grt/config/$i
done
+for i in $psl_files; do
+ ln -sf $CWD/../../psl/$i $VHDLDIR/$i
+done
}
# Create the tar of sources.
@@ -180,12 +183,39 @@ do_compile ()
mkdir $GCCDISTOBJ
cd $GCCDISTOBJ
export CFLAGS="-O -g"
- ../gcc-$GCCVERSION/configure --enable-languages=vhdl --prefix=$PREFIX --disable-bootstrap --with-bugurl="<URL:http://gna.org/projects/ghdl>" --build=i686-pc-linux-gnu --with-gmp=$PWD/../build --with-mpfr=$PWD/../build --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp
+
+ case x86 in
+ x86)
+ BUILD=i686-pc-linux-gnu
+ CONFIG_LIBS="--with-gmp=$PWD/../build --with-mpfr=$PWD/../build"
+ ;;
+ x86-64)
+ BUILD=x86_64-pc-linux-gnu
+ CONFIG_LIBS=""
+ ;;
+ *)
+ exit 1
+ ;;
+ esac
+ ../gcc-$GCCVERSION/configure --enable-languages=vhdl --prefix=$PREFIX --disable-bootstrap --with-bugurl="<URL:http://gna.org/projects/ghdl>" --build=$BUILD $CONFIG_LIBS --disable-shared --disable-libmudflap --disable-libssp --disable-libgomp
+
make
make -C gcc vhdl.info
cd $CWD
}
+# Re-package sources, update gcc sources and recompile without reconfiguring.
+do_recompile ()
+{
+ set -x
+
+ do_sources
+ do_update_gcc_sources;
+ cd $GCCDISTOBJ
+ export CFLAGS="-O -g"
+ make
+}
+
check_root ()
{
if [ $UID -ne 0 ]; then
@@ -400,6 +430,8 @@ else
do_sources ;;
compile)
do_compile;;
+ recompile)
+ do_recompile;;
update_gcc)
do_update_gcc_sources;;
compile2)