Successful Compilation

Janis Johnson janis187@us.ibm.com
Mon Mar 25 17:01:00 GMT 2002


On Mon, Mar 25, 2002 at 03:32:56PM -0800, Walter Landry wrote:
> Greetings,
> 
> First of all, I would like to thank each and every one of you.  I've
> constructed a tensor library using a number of C++ template tricks.
> Until recently, gcc would not compile it (PR 2494).  I was stuck using
> proprietary compilers, causing me no end of grief.  A week ago, I
> downloaded gcc-3_1-branch and, lo and behold, it now works.  Huzzah!
> It still gives a warning about implicit typenames, but I can live with
> that.  Since I've tested this library on more compilers than you can
> shake a stick at, I think that is a bug in gcc.
> 
> In any case, I noticed that there is a list of libraries that GCC 3.1
> is being tested against.  One of the implicit goals seems to be good
> template support.  Since my library seems to stress the template
> support more than the other libraries (as I said, gcc only recently
> started compiling it), I thought it might be useful to the gcc team as
> a test.
> 
> I have already written a fairly comprehensive test suite and included
> it in the tarball.  These test whether everything is compiled
> correctly, as well as a set of tests to look at how well the compiler
> is optimizing these sorts of codes.  If anyone is interested, the code
> is at
> 
> http://superbeast.ucsd.edu/~landry/FTensor

The link to the newer version is to file://something.  If that's the one
you'd like people to try, let us know when the link is fixed.
 
> I don't know what kind of format is preferred for the test suite.  I'd
> be happy to modify the test so that it outputs the results in a
> suitable form.

See http://gcc.gnu.org/gcc-3.0/lapack-guide.html for an example of
useful instructions for trying out your library.  Please explain how
to compile with a specified set of compilation options; building with
different sets of optimization flags is a good way to flush out
compiler bugs.

I'm pounding on the GCC 3.1 prerelease on ia64-linux and look forward to
trying out your library.

Janis



More information about the Gcc mailing list