aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-12-10 17:11:09 +0000
committergingold <gingold@b72b5c32-5f01-0410-b925-b5c7b92870f7>2005-12-10 17:11:09 +0000
commit1716b52525c5b6baaba7e0a16d6d9dbf6633ac6d (patch)
treea73d75a464215acd1f7cc1532c07ecd214a3471e
parente1625e7d23b3c80820f53f921f4149736bcd5e7b (diff)
downloadghdl-1716b52525c5b6baaba7e0a16d6d9dbf6633ac6d.tar.gz
ghdl-1716b52525c5b6baaba7e0a16d6d9dbf6633ac6d.tar.bz2
ghdl-1716b52525c5b6baaba7e0a16d6d9dbf6633ac6d.zip
dist-common.sh added
-rw-r--r--translate/gcc/Makefile.in1
-rw-r--r--translate/gcc/README3
-rw-r--r--translate/gcc/dist-common.sh251
-rwxr-xr-xtranslate/gcc/dist.sh254
4 files changed, 256 insertions, 253 deletions
diff --git a/translate/gcc/Makefile.in b/translate/gcc/Makefile.in
index 2757b907c..863e43039 100644
--- a/translate/gcc/Makefile.in
+++ b/translate/gcc/Makefile.in
@@ -233,6 +233,7 @@ install-ghdllib: ghdllib grt.lst $(STD93_SRCS) $(STD87_SRCS) \
$(MKDIR) $(DESTDIR)$(VHDL_LIB_DIR)/lib
$(INSTALL_DATA) libgrt.a $(DESTDIR)$(VHDL_LIB_DIR)/lib/libgrt.a
$(INSTALL_DATA) grt.lst $(DESTDIR)$(VHDL_LIB_DIR)/lib/grt.lst
+ $(INSTALL_DATA) grt.ver $(DESTDIR)$(VHDL_LIB_DIR)/lib/grt.ver
# Install VHDL sources.
$(MKDIR) $(DESTDIR)$(VHDL_LIB_DIR)/src
$(MKDIR) $(DESTDIR)$(VHDL_LIB_DIR)/src/std
diff --git a/translate/gcc/README b/translate/gcc/README
index d7bab3281..2d3a882c5 100644
--- a/translate/gcc/README
+++ b/translate/gcc/README
@@ -29,7 +29,8 @@ Building GHDL from sources:
Required:
* the sources of @GCCVERSION@ (at least the core part).
Note: other versions of gcc sources have not been tested.
-* the Ada95 GNAT compiler (GNAT v3.15p and GNAT GPL 2005 are known to work).
+* the Ada95 GNAT compiler (GNAT v3.15p and GNAT GPL 2005 are known to work;
+ Ada compilers in most Linux distributions are more or less buggy)
* GNU/Linux for ix86 (pc systems) (porting is necessary for other systems)
Procedure:
diff --git a/translate/gcc/dist-common.sh b/translate/gcc/dist-common.sh
new file mode 100644
index 000000000..442e81dbb
--- /dev/null
+++ b/translate/gcc/dist-common.sh
@@ -0,0 +1,251 @@
+# ghdl core files
+cfiles="
+evaluation.adb
+evaluation.ads
+scan.ads
+scan.adb
+scan-scan_literal.adb
+back_end.ads
+back_end.adb
+files_map.adb
+files_map.ads
+sem.adb
+sem.ads
+sem_expr.adb
+sem_expr.ads
+sem_names.adb
+sem_names.ads
+sem_scopes.adb
+sem_scopes.ads
+sem_decls.ads
+sem_decls.adb
+sem_specs.ads
+sem_specs.adb
+sem_stmts.ads
+sem_stmts.adb
+sem_types.ads
+sem_types.adb
+sem_assocs.ads
+sem_assocs.adb
+canon.adb
+canon.ads
+flags.adb
+flags.ads
+configuration.adb
+configuration.ads
+nodes.ads
+nodes.adb
+lists.ads
+lists.adb
+iirs.adb
+iirs.ads
+iir_chains.ads
+iir_chains.adb
+iir_chain_handling.ads
+iir_chain_handling.adb
+std_names.adb
+std_names.ads
+disp_tree.adb
+disp_tree.ads
+iirs_utils.adb
+iirs_utils.ads
+std_package.adb
+std_package.ads
+disp_vhdl.adb
+disp_vhdl.ads
+libraries.adb
+libraries.ads
+tokens.adb
+tokens.ads
+name_table.adb
+name_table.ads
+str_table.ads
+str_table.adb
+types.ads
+version.ads
+errorout.adb
+errorout.ads
+parse.adb
+parse.ads
+post_sems.ads
+post_sems.adb
+ieee.ads
+ieee-std_logic_1164.ads
+ieee-std_logic_1164.adb
+ieee-vital_timing.ads
+ieee-vital_timing.adb
+xrefs.ads
+xrefs.adb
+bug.ads
+bug.adb
+"
+
+# translation file
+tfiles="
+translation.adb
+ortho_front.adb
+translation.ads
+trans_decls.ads
+trans_be.ads
+trans_be.adb"
+
+ortho_files="
+ortho_front.ads"
+
+ortho_gcc_files="
+lang.opt
+ortho-lang.c
+ortho_gcc-main.adb
+ortho_gcc-main.ads
+ortho_gcc.adb
+ortho_gcc.ads
+ortho_gcc_front.ads
+ortho_ident.adb
+ortho_ident.ads
+ortho_nodes.ads
+"
+
+ghdl_files="
+ghdl_gcc.adb
+ghdldrv.ads
+ghdldrv.adb
+ghdlprint.ads
+ghdlprint.adb
+ghdllocal.ads
+ghdllocal.adb
+ghdlmain.ads
+ghdlmain.adb
+"
+
+libraries_files="
+std/textio.vhdl
+std/textio_body.vhdl
+ieee/numeric_bit-body.vhdl
+ieee/numeric_bit.vhdl
+ieee/numeric_std-body.vhdl
+ieee/numeric_std.vhdl
+ieee/std_logic_1164.vhdl
+ieee/std_logic_1164_body.vhdl
+ieee/math_real.vhdl
+ieee/math_real-body.vhdl
+ieee/math_complex.vhdl
+ieee/math_complex-body.vhdl
+vital95/vital_primitives.vhdl
+vital95/vital_primitives_body.vhdl
+vital95/vital_timing.vhdl
+vital95/vital_timing_body.vhdl
+vital2000/memory_b.vhdl
+vital2000/memory_p.vhdl
+vital2000/prmtvs_b.vhdl
+vital2000/prmtvs_p.vhdl
+vital2000/timing_b.vhdl
+vital2000/timing_p.vhdl
+synopsys/std_logic_arith.vhdl
+synopsys/std_logic_misc.vhdl
+synopsys/std_logic_misc-body.vhdl
+synopsys/std_logic_signed.vhdl
+synopsys/std_logic_textio.vhdl
+synopsys/std_logic_unsigned.vhdl
+mentor/std_logic_arith.vhdl
+mentor/std_logic_arith_body.vhdl
+"
+
+grt_files="
+grt-cbinding.c
+grt-cvpi.c
+grt.adc
+grt-avhpi.adb
+grt-avhpi.ads
+grt-disp.adb
+grt-disp.ads
+grt-disp_rti.adb
+grt-disp_rti.ads
+grt-disp_signals.adb
+grt-disp_signals.ads
+grt-errors.adb
+grt-errors.ads
+grt-files.adb
+grt-files.ads
+grt-hooks.adb
+grt-hooks.ads
+grt-images.adb
+grt-images.ads
+grt-values.adb
+grt-values.ads
+grt-lib.adb
+grt-lib.ads
+grt-main.adb
+grt-main.ads
+grt-names.adb
+grt-names.ads
+grt-options.adb
+grt-options.ads
+grt-processes.adb
+grt-processes.ads
+grt-rtis.ads
+grt-rtis_addr.adb
+grt-rtis_addr.ads
+grt-rtis_utils.adb
+grt-rtis_utils.ads
+grt-rtis_binding.ads
+grt-rtis_types.ads
+grt-rtis_types.adb
+grt-sdf.adb
+grt-sdf.ads
+grt-shadow_ieee.ads
+grt-shadow_ieee.adb
+grt-signals.adb
+grt-signals.ads
+grt-stack2.adb
+grt-stack2.ads
+grt-stacks.adb
+grt-stacks.ads
+grt-c.ads
+grt-zlib.ads
+grt-stdio.ads
+grt-astdio.ads
+grt-astdio.adb
+grt-types.ads
+grt-vcd.adb
+grt-vcd.ads
+grt-vcdz.adb
+grt-vcdz.ads
+grt-vital_annotate.adb
+grt-vital_annotate.ads
+grt-vpi.adb
+grt-vpi.ads
+grt-vstrings.adb
+grt-vstrings.ads
+grt-stats.ads
+grt-stats.adb
+grt-waves.ads
+grt-waves.adb
+grt-avls.ads
+grt-avls.adb
+grt-unithread.ads
+grt-unithread.adb
+grt-threads.ads
+grt-arch_none.ads
+grt-arch_none.adb
+grt.ads
+main.adb
+main.ads
+ghdl_main.ads
+ghdl_main.adb
+ghwlib.h
+ghwlib.c
+ghwdump.c
+grt.ver
+"
+
+grt_config_files="
+i386.S
+sparc.S
+ppc.S
+ia64.S
+amd64.S
+times.c
+clock.c
+linux.c
+pthread.c
+win32.c"
diff --git a/translate/gcc/dist.sh b/translate/gcc/dist.sh
index dab7afbf0..2d15f7708 100755
--- a/translate/gcc/dist.sh
+++ b/translate/gcc/dist.sh
@@ -97,287 +97,37 @@ do_Makefile ()
# Copy (or link) sources files into $VHDLDIR
do_files ()
{
+. ./dist-common.sh
+
# Local files
lfiles="config-lang.in lang-options.h lang-specs.h"
for i in $lfiles; do ln -sf $CWD/$i $VHDLDIR/$i; done
-# ghdl core files
-cfiles="
-evaluation.adb
-evaluation.ads
-scan.ads
-scan.adb
-scan-scan_literal.adb
-back_end.ads
-back_end.adb
-files_map.adb
-files_map.ads
-sem.adb
-sem.ads
-sem_expr.adb
-sem_expr.ads
-sem_names.adb
-sem_names.ads
-sem_scopes.adb
-sem_scopes.ads
-sem_decls.ads
-sem_decls.adb
-sem_specs.ads
-sem_specs.adb
-sem_stmts.ads
-sem_stmts.adb
-sem_types.ads
-sem_types.adb
-sem_assocs.ads
-sem_assocs.adb
-canon.adb
-canon.ads
-flags.adb
-flags.ads
-configuration.adb
-configuration.ads
-nodes.ads
-nodes.adb
-lists.ads
-lists.adb
-iirs.adb
-iirs.ads
-iir_chains.ads
-iir_chains.adb
-iir_chain_handling.ads
-iir_chain_handling.adb
-std_names.adb
-std_names.ads
-disp_tree.adb
-disp_tree.ads
-iirs_utils.adb
-iirs_utils.ads
-std_package.adb
-std_package.ads
-disp_vhdl.adb
-disp_vhdl.ads
-libraries.adb
-libraries.ads
-tokens.adb
-tokens.ads
-name_table.adb
-name_table.ads
-str_table.ads
-str_table.adb
-types.ads
-version.ads
-errorout.adb
-errorout.ads
-parse.adb
-parse.ads
-post_sems.ads
-post_sems.adb
-ieee.ads
-ieee-std_logic_1164.ads
-ieee-std_logic_1164.adb
-ieee-vital_timing.ads
-ieee-vital_timing.adb
-xrefs.ads
-xrefs.adb
-bug.ads
-bug.adb
-"
-
for i in $cfiles; do ln -sf $CWD/../../$i $VHDLDIR/$i; done
ln -sf $CWD/../../doc/ghdl.texi $VHDLDIR/ghdl.texi
-# translation file
-tfiles="
-translation.adb
-ortho_front.adb
-translation.ads
-trans_decls.ads
-trans_be.ads
-trans_be.adb"
-
for i in $tfiles; do ln -sf $CWD/../$i $VHDLDIR/$i; done
-ortho_files="
-ortho_front.ads"
-
for i in $ortho_files; do ln -sf $CWD/../../ortho/$i $VHDLDIR/$i; done
-ortho_gcc_files="
-lang.opt
-ortho-lang.c
-ortho_gcc-main.adb
-ortho_gcc-main.ads
-ortho_gcc.adb
-ortho_gcc.ads
-ortho_gcc_front.ads
-ortho_ident.adb
-ortho_ident.ads
-ortho_nodes.ads
-"
-
for i in $ortho_gcc_files; do
ln -sf $CWD/../../ortho/gcc/$i $VHDLDIR/$i
done
-ghdl_files="
-ghdl_gcc.adb
-ghdldrv.ads
-ghdldrv.adb
-ghdlprint.ads
-ghdlprint.adb
-ghdllocal.ads
-ghdllocal.adb
-ghdlmain.ads
-ghdlmain.adb
-"
-
for i in $ghdl_files; do
ln -sf $CWD/../ghdldrv/$i $VHDLDIR/ghdldrv/$i
done
-libraries_files="
-std/textio.vhdl
-std/textio_body.vhdl
-ieee/numeric_bit-body.vhdl
-ieee/numeric_bit.vhdl
-ieee/numeric_std-body.vhdl
-ieee/numeric_std.vhdl
-ieee/std_logic_1164.vhdl
-ieee/std_logic_1164_body.vhdl
-ieee/math_real.vhdl
-ieee/math_real-body.vhdl
-ieee/math_complex.vhdl
-ieee/math_complex-body.vhdl
-vital95/vital_primitives.vhdl
-vital95/vital_primitives_body.vhdl
-vital95/vital_timing.vhdl
-vital95/vital_timing_body.vhdl
-vital2000/memory_b.vhdl
-vital2000/memory_p.vhdl
-vital2000/prmtvs_b.vhdl
-vital2000/prmtvs_p.vhdl
-vital2000/timing_b.vhdl
-vital2000/timing_p.vhdl
-synopsys/std_logic_arith.vhdl
-synopsys/std_logic_misc.vhdl
-synopsys/std_logic_misc-body.vhdl
-synopsys/std_logic_signed.vhdl
-synopsys/std_logic_textio.vhdl
-synopsys/std_logic_unsigned.vhdl
-mentor/std_logic_arith.vhdl
-mentor/std_logic_arith_body.vhdl
-"
-
for i in $libraries_files; do
- echo "adding $i"
ln -sf $CWD/../../libraries/$i $VHDLDIR/libraries/$i
done
-grt_files="
-grt-cbinding.c
-grt-cvpi.c
-grt.adc
-grt-avhpi.adb
-grt-avhpi.ads
-grt-disp.adb
-grt-disp.ads
-grt-disp_rti.adb
-grt-disp_rti.ads
-grt-disp_signals.adb
-grt-disp_signals.ads
-grt-errors.adb
-grt-errors.ads
-grt-files.adb
-grt-files.ads
-grt-hooks.adb
-grt-hooks.ads
-grt-images.adb
-grt-images.ads
-grt-values.adb
-grt-values.ads
-grt-lib.adb
-grt-lib.ads
-grt-main.adb
-grt-main.ads
-grt-names.adb
-grt-names.ads
-grt-options.adb
-grt-options.ads
-grt-processes.adb
-grt-processes.ads
-grt-rtis.ads
-grt-rtis_addr.adb
-grt-rtis_addr.ads
-grt-rtis_utils.adb
-grt-rtis_utils.ads
-grt-rtis_binding.ads
-grt-rtis_types.ads
-grt-rtis_types.adb
-grt-sdf.adb
-grt-sdf.ads
-grt-shadow_ieee.ads
-grt-shadow_ieee.adb
-grt-signals.adb
-grt-signals.ads
-grt-stack2.adb
-grt-stack2.ads
-grt-stacks.adb
-grt-stacks.ads
-grt-c.ads
-grt-zlib.ads
-grt-stdio.ads
-grt-astdio.ads
-grt-astdio.adb
-grt-types.ads
-grt-vcd.adb
-grt-vcd.ads
-grt-vcdz.adb
-grt-vcdz.ads
-grt-vital_annotate.adb
-grt-vital_annotate.ads
-grt-vpi.adb
-grt-vpi.ads
-grt-vstrings.adb
-grt-vstrings.ads
-grt-stats.ads
-grt-stats.adb
-grt-waves.ads
-grt-waves.adb
-grt-avls.ads
-grt-avls.adb
-grt-unithread.ads
-grt-unithread.adb
-grt-threads.ads
-grt.ads
-main.adb
-main.ads
-ghdl_main.ads
-ghdl_main.adb
-ghwlib.h
-ghwlib.c
-ghwdump.c
-"
-
for i in $grt_files; do
- echo "adding $i"
ln -sf $CWD/../grt/$i $VHDLDIR/grt/$i
done
-grt_config_files="
-i386.S
-sparc.S
-ppc.S
-ia64.S
-amd64.S
-times.c
-clock.c
-linux.c
-pthread.c
-win32.c"
-
for i in $grt_config_files; do
- echo "adding $i"
ln -sf $CWD/../grt/config/$i $VHDLDIR/grt/config/$i
done