From alexei.sheplyakov at gmail.com Wed Jan 6 18:56:04 2010 From: alexei.sheplyakov at gmail.com (Alexei Sheplyakov) Date: Wed, 6 Jan 2010 19:56:04 +0200 Subject: [GiNaC-devel] [PATCH] Install the ginac-excompiler script iff excompiler is supported and enabled. Message-ID: <20100106175604.GA10126@vargsbox.jinr.ru> --- configure.ac | 1 + tools/Makefile.am | 5 ++++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 373cd5c..0f40373 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,7 @@ GINAC_READLINE dnl Check for dl library (needed for GiNaC::compile). GINAC_EXCOMPILER +AM_CONDITIONAL(CONFIG_EXCOMPILER, [test "x${CONFIG_EXCOMPILER}" = "xyes"]) dnl Check for utilities needed by the different kinds of documentation. dnl Documentation needs only be built when extending it, so never mind if it diff --git a/tools/Makefile.am b/tools/Makefile.am index 824d1fe..a634102 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -4,7 +4,10 @@ bin_PROGRAMS = viewgar viewgar_SOURCES = viewgar.cpp viewgar_LDADD = ../ginac/libginac.la -bin_SCRIPTS = ginac-excompiler +bin_SCRIPTS = +if CONFIG_EXCOMPILER +bin_SCRIPTS += ginac-excompiler +endif AM_CPPFLAGS = -I$(srcdir)/../ginac -I../ginac -DIN_GINAC -- 1.6.5 From alexei.sheplyakov at gmail.com Wed Jan 6 18:55:43 2010 From: alexei.sheplyakov at gmail.com (Alexei Sheplyakov) Date: Wed, 6 Jan 2010 19:55:43 +0200 Subject: [GiNaC-devel] [PATCH] Use C style cast when converting void* into function pointer. Message-ID: <20100106175543.GA10084@vargsbox.jinr.ru> Building GiNaC 1.5.5 with GCC 3.4 fails with the following error: libtool: compile: ccache g++-3.4 -DHAVE_CONFIG_H -I. -I../../ginac -I../config -I/home/pc7135/varg/target/x86_64-linux-gnu/include -O2 -g -Wall -pipe -MT builtin_fcns.lo -MD -MP -MF .deps/builtin_fcns.Tpo -c ../../ginac/parser/builtin_fcns.cpp -fPIC -DPIC -o .libs/builtin_fcns.o ../../ginac/parser/builtin_fcns.cpp: In function `GiNaC::ex (* GiNaC::encode_serial_as_reader_func(unsigned int))(const GiNaC::exvector&)': /home/pc7135/varg/tmp/build/GiNaC/build-linux-gcc-3.4/ginac/../../ginac/parser/builtin_fcns.cpp|67| error: ISO C++ forbids casting between pointer-to-function and pointer-to-object make[2]: *** [builtin_fcns.lo] Error 1 The C++98 standard [expr.reinterpret.cast] does not allow reinterpret_cast(void*) reinterpret_cast(function_pointer) But the ability to do so is important for a lot of practical uses. So soon after the C++98 standard was approved, a language defect report was filed on this topic, see http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#195 The result is that compilers will be allowed to support reinterpret_cast conversions of function pointers to other (pointers) types, and vice a versa. Such conversions work with *current* compilers (GCC 4.x), but don't work with older ones, hence this patch. --- ginac/parser/default_reader.tpl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ginac/parser/default_reader.tpl b/ginac/parser/default_reader.tpl index ae36dde..006fb90 100644 --- a/ginac/parser/default_reader.tpl +++ b/ginac/parser/default_reader.tpl @@ -59,7 +59,7 @@ static reader_func encode_serial_as_reader_func(unsigned serial) { uintptr_t u = (uintptr_t)serial; u = (u << 1) | (uintptr_t)1; - reader_func ptr = reinterpret_cast((void *)u); + reader_func ptr = (reader_func)((void *)u); return ptr; } -- 1.6.5 From git at ginac.de Thu Jan 14 13:51:42 2010 From: git at ginac.de (Jens Vollinga) Date: Thu, 14 Jan 2010 13:51:42 +0100 (CET) Subject: [GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations branch, ginac_1-5, updated. release_1-4-0-222-g352547e Message-ID: <20100114125142.C69CBE2C011@cebix.net> This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GiNaC -- a C++ library for symbolic computations". The branch, ginac_1-5 has been updated via 352547eac1ff77d754870b3b8299899089edc24b (commit) via 71118ab007969a09872193641469318c9dc4fbcc (commit) from dbf7b53572f05c8b803748b781e3ce0fc2be62ab (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 352547eac1ff77d754870b3b8299899089edc24b Author: Alexei Sheplyakov Date: Wed Jan 6 19:55:43 2010 +0200 Use C style cast when converting void* into function pointer. Building GiNaC 1.5.5 with GCC 3.4 fails with the following error: libtool: compile: ccache g++-3.4 -DHAVE_CONFIG_H -I. -I../../ginac -I../config -I/home/pc7135/varg/target/x86_64-linux-gnu/include -O2 -g -Wall -pipe -MT builtin_fcns.lo -MD -MP -MF .deps/builtin_fcns.Tpo -c ../../ginac/parser/builtin_fcns.cpp -fPIC -DPIC -o .libs/builtin_fcns.o ../../ginac/parser/builtin_fcns.cpp: In function `GiNaC::ex (* GiNaC::encode_serial_as_reader_func(unsigned int))(const GiNaC::exvector&)': /home/pc7135/varg/tmp/build/GiNaC/build-linux-gcc-3.4/ginac/../../ginac/parser/builtin_fcns.cpp|67| error: ISO C++ forbids casting between pointer-to-function and pointer-to-object make[2]: *** [builtin_fcns.lo] Error 1 The C++98 standard [expr.reinterpret.cast] does not allow reinterpret_cast(void*) reinterpret_cast(function_pointer) But the ability to do so is important for a lot of practical uses. So soon after the C++98 standard was approved, a language defect report was filed on this topic, see http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#195 The result is that compilers will be allowed to support reinterpret_cast conversions of function pointers to other (pointers) types, and vice a versa. Such conversions work with *current* compilers (GCC 4.x), but don't work with older ones, hence this patch. commit 71118ab007969a09872193641469318c9dc4fbcc Author: Alexei Sheplyakov Date: Wed Jan 6 19:56:04 2010 +0200 Install the ginac-excompiler script iff excompiler is supported and enabled. (cherry picked from commit 25c7a8c09f7db73b48675777aa805e788f2308be) ----------------------------------------------------------------------- Summary of changes: configure.ac | 1 + ginac/parser/default_reader.tpl | 2 +- tools/Makefile.am | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) hooks/post-receive -- GiNaC -- a C++ library for symbolic computations From git at ginac.de Thu Jan 14 13:51:42 2010 From: git at ginac.de (Jens Vollinga) Date: Thu, 14 Jan 2010 13:51:42 +0100 (CET) Subject: [GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations branch, master, updated. release_1-4-0-203-g25c7a8c Message-ID: <20100114125143.22B83E2C014@cebix.net> This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GiNaC -- a C++ library for symbolic computations". The branch, master has been updated via 25c7a8c09f7db73b48675777aa805e788f2308be (commit) from e6b2274fd45c4e635d5bcad3a4def1e97b37e051 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 25c7a8c09f7db73b48675777aa805e788f2308be Author: Alexei Sheplyakov Date: Wed Jan 6 19:56:04 2010 +0200 Install the ginac-excompiler script iff excompiler is supported and enabled. ----------------------------------------------------------------------- Summary of changes: configure.ac | 1 + tools/Makefile.am | 5 ++++- 2 files changed, 5 insertions(+), 1 deletions(-) hooks/post-receive -- GiNaC -- a C++ library for symbolic computations From jensv at nikhef.nl Thu Jan 14 13:56:09 2010 From: jensv at nikhef.nl (Jens Vollinga) Date: Thu, 14 Jan 2010 13:56:09 +0100 Subject: [GiNaC-devel] release Message-ID: <4B4F1469.7050206@nikhef.nl> Hi Alexei, thanks for the patches. Do you have anything else pending? Otherwise I'll do a 1.5.6 release. Regards, Jens From alexei.sheplyakov at gmail.com Sun Jan 17 22:13:41 2010 From: alexei.sheplyakov at gmail.com (Alexei Sheplyakov) Date: Sun, 17 Jan 2010 23:13:41 +0200 Subject: [GiNaC-devel] release In-Reply-To: <4B4F1469.7050206@nikhef.nl> References: <4B4F1469.7050206@nikhef.nl> Message-ID: <20100117211341.GA10093@vargsbox.jinr.ru> Hi Jens, On Thu, Jan 14, 2010 at 01:56:09PM +0100, Jens Vollinga wrote: > Do you have anything else pending? Otherwise I'll do a 1.5.6 release. I don't have anything suitable for a stable release. Best regards, Alexei From git at ginac.de Thu Jan 28 15:39:53 2010 From: git at ginac.de (Jens Vollinga) Date: Thu, 28 Jan 2010 15:39:53 +0100 (CET) Subject: [GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations branch, ginac_1-5, updated. release_1-4-0-223-gce67a91 Message-ID: <20100128143954.04BC6F001FA@cebix.net> This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GiNaC -- a C++ library for symbolic computations". The branch, ginac_1-5 has been updated via ce67a917331907288c6702b05e191722f4f0441b (commit) from 352547eac1ff77d754870b3b8299899089edc24b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit ce67a917331907288c6702b05e191722f4f0441b Author: Jens Vollinga Date: Thu Jan 28 15:25:01 2010 +0100 Preparing for release 1.5.6. ----------------------------------------------------------------------- Summary of changes: NEWS | 5 +++++ configure.ac | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) hooks/post-receive -- GiNaC -- a C++ library for symbolic computations From git at ginac.de Thu Jan 28 15:40:01 2010 From: git at ginac.de (Jens Vollinga) Date: Thu, 28 Jan 2010 15:40:01 +0100 (CET) Subject: [GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations tag, release_1-5-6, created. release_1-4-0-223-gce67a91 Message-ID: <20100128144001.A8F2DF005A3@cebix.net> This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GiNaC -- a C++ library for symbolic computations". The tag, release_1-5-6 has been created at ce67a917331907288c6702b05e191722f4f0441b (commit) - Log ----------------------------------------------------------------- commit ce67a917331907288c6702b05e191722f4f0441b Author: Jens Vollinga Date: Thu Jan 28 15:25:01 2010 +0100 Preparing for release 1.5.6. ----------------------------------------------------------------------- hooks/post-receive -- GiNaC -- a C++ library for symbolic computations From jensv at nikhef.nl Thu Jan 28 15:45:08 2010 From: jensv at nikhef.nl (Jens Vollinga) Date: Thu, 28 Jan 2010 15:45:08 +0100 Subject: [GiNaC-devel] GiNaC release 1.5.6 Message-ID: <4B61A2F4.4080805@nikhef.nl> Hi everybody, GiNaC 1.5.6 is out and available. The changes are: * Fixed compile problem with gcc 3.4. * Improved excompiler: The ginac-excompiler script will only be installed if excompiler is supported and enabled. As always, this release can be downloaded from http://www.ginac.de/Download.html Best wishes, Jens