Re: question on optimizing calls to library functions

2008-12-13 Thread Toon Moene

Paolo Bonzini wrote:

The main difference that springs to mind: SIN is built-in, MATMUL is a library 
function. In gcc/builtin.defs, one finds 


Not just that: SIN is a pure (or const, depending on -frounding-math)
function, which can be subject to CSE and DCE.  I don't see anything
suggesting that for MATMUL in intrinsic.c.  In fact, since MATMUL
receives the return array by reference and writes to it, it would be
very wrong to make MATMUL const or pure.


While this is true on the level the middle end looks at things, on the 
level of the Fortran front end, MATMUL simply is a constant function 
that takes two arrays and returns one (result) array.


I talked about that at the GCC Summit 2007; see 
http://moene.org/~toon/GCCSummit-2007.pdf.


Cheers,

--
Toon Moene - e-mail: t...@moene.org (*NEW*) - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.4/changes.html


Re: Will GCC 4.3 or 4.4 work on the AlphaServer anytime soon?

2008-12-13 Thread Uros Bizjak

Hello!

Hi - to all of the incredible programmers who make GCC work on so many 
computer chip architectures... I have one question:


Will GCC 4.3.X or 4.4.X be ported and operational on the AlphaServer 
4XXX Systems running Debian Linux or any other Linux anytime soon?


Have you actually tried to compile gcc on AlphaServer? Did you found any 
specific problem during compilation?


To answer your question: gcc bootstraps OK for alpha*-unknown-linux-gnu, 
4.3 and 4.4 branch. Please see recent testresults [1], [2].


[1] http://gcc.gnu.org/ml/gcc-testresults/2008-12/msg00926.html
[2] http://gcc.gnu.org/ml/gcc-testresults/2008-12/msg00296.html

Uros.


gcc-4.3.2 cross build error

2008-12-13 Thread raja . saleru
Hi, I am cross compiling the gcc-4.3.2 for arm based dsp target.
while building, the following error occurs.

Please help us how to proceed further.

Checking multilib configuration for libgcc...
Configuring in dsp/libgcc
..
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/obj'
make: *** [all] Error 2

The config log contain the following error:

configure:2398: /obj/./gcc/xgcc -B/obj/./gcc/ -B/opt/test/dsp/bin/
-B/opt/test/dsp/lib/ -isystem /opt/test/dsp/include -isystem
/opt/test/dsp/sys-include -o conftest -O2   conftest.c  >&5
conftest.c:1: internal compiler error: in default_secondary_reload, at
targhooks.c:618
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

Thanks and Regards
Raja Saleru