c++ patch

Torbjorn Granlund tege at swox.com
Tue May 16 00:54:33 CEST 2006


Marc Glisse <marc.glisse at normalesup.org> writes:

  I attach a patch that I am using. It in particular helps me on
  solaris, where I use:

  CC=cc
  CXX=CC
  ABI=32
  CXXFLAGS=-library=stlport4
  
Thanks.  (Are there problems with ABI=64, or you just trying to limit
the blinding speed of sparc?)

  Some cxx tests (t-binary t-ops t-prec t-ternary t-unary) still
  fail to compile, but I believe it is because of bugs in the
  compiler (whereas what I patched looks like bugs in the code).
  
Is it determinable whether the compilation failures are bugs in the
compiler or bugs in the code, in this advanced language?

When I have tried to compile smoe C++ code with GCC, each syntax error
gives about 300 MB worth of error messages.  Of course, such error
messages can take some time to decipher.  :-)

  A bit more details:
  there are a number of missing std:: for c++ use. Since gmp-impl.h
  is not installed, it can just use the easy "using namespace
  std;". For gmp.h, I did something cleaner (It is better for
  standard conformance, but I am not sure it may not hurt some
  broken c++ compiler).
  The typedef in gmpxx.h is because a C linkage function and a C++
  linkage function need not look the same I think.
  
  I will check again after the next patch to sun's c++ compiler
  (the one released today was a disappointment).

When is the next patch going to be available?

-- 
Torbjörn


More information about the gmp-bugs mailing list