[GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations branch, ginac_1-5, updated. release_1-4-0-222-g352547e

Jens Vollinga git at ginac.de
Thu Jan 14 13:51:42 CET 2010


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 <alexei.sheplyakov at gmail.com>
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<function_pointer>(void*)
    reinterpret_cast<void*>(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 <alexei.sheplyakov at gmail.com>
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


More information about the GiNaC-devel mailing list