Re: Providing default option to GAS through gcc driver

2007-02-28 Thread Andrew Pinski
On 2/28/07, Mohamed Shafi <[EMAIL PROTECTED]> wrote: Is there anyway to do this? Yes look at config/rs6000/rs6000.h and ASM_CPU_SPEC and EXTRA_SPECS and ASM_SPEC. Thanks, Andrew Pinski

Providing default option to GAS through gcc driver

2007-02-28 Thread Mohamed Shafi
Hello all, I would like to know if there is any way to control the gcc driver program to pass a default option to the assembler if no option/switch is given. say -march=arch1 if no -march option is provided by the user. The macro TARGET_OPTION_TRANSLATE_TABLE does something like this but with t

gcc-4.2-20070228 is now available

2007-02-28 Thread gccadmin
Snapshot gcc-4.2-20070228 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20070228/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.2 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: Finalizer after pass?

2007-02-28 Thread Diego Novillo
Paulo J. Matos wrote on 02/28/07 11:07: Is there a way to install a finalizing function? (to be called after all functions in the pass have been processed) Or to know if the current function being processed is the last one? (maybe if I know the number of times my pass will be called!) Perhaps i

Finalizer after pass?

2007-02-28 Thread Paulo J. Matos
Hello, I have stumbled upon a very problematic issue. I have been, through a pass, creating a structure of the gimple tree which fits my interests. However, my final need is _after_ all gimple functions are processed, to process that structure to give interesting reports to the user. Now, I stumb

Re: Why does linker fail to resolve dependencies within the same .a file?

2007-02-28 Thread Christian Convey
I stand corrected on so many points here that I think I'll have bruises when I wake up tomorrow :) Thanks for all the help. To put a happy (though embarrassing) end to the story: I was missing a few .cpp files when constructing the library. Not a problem at compile-time, because the headers wer

Re: Why does linker fail to resolve dependencies within the same .a file?

2007-02-28 Thread Nick Clifton
Hi Christian, [I have restored the CC to gcc@gcc.gnu.org as there may be other people interested in this discussion]. foo.o -lbar baz.o -lbar The second "-lbar" is only needed if baz.o includes references to symbols that are defined in libbar.a which will not be pulled in when resolving

Re: Why does linker fail to resolve dependencies within the same .a file?

2007-02-28 Thread Ian Lance Taylor
"Christian Convey" <[EMAIL PROTECTED]> writes: > I'm not so sure that's true, because someone said that putting "bar.a" > on the linker command line is pretty much identical in effect to > listing, on the command line, the files that got bundled up into > bar.a. So if bar.a is made up of x.o, y.o

Re: Linker problems: dependencies with .a file not resolved?

2007-02-28 Thread Jonathan Adamczewski
Christian Convey wrote: But the symbol really does appear to be in the archive: [EMAIL PROTECTED]:~$ nm --demangle /home/cjc/csc583-svn/uriVisionLib/trunk/Development/Source/C++/liburiVision.a | grep "uriVideoSources::ImageReader_gen::getFrame" U uriVideoSources::ImageReader_gen::getF

Re: Linker problems: dependencies with .a file not resolved?

2007-02-28 Thread Ian Lance Taylor
"Christian Convey" <[EMAIL PROTECTED]> writes: > Sorry, I re-typed the operation to have output for my email and > goofed. But the symbol really does appear to be in the archive: > > [EMAIL PROTECTED]:~$ nm --demangle > /home/cjc/csc583-svn/uriVisionLib/trunk/Development/Source/C++/liburiVision.

Why does linker fail to resolve dependencies within the same .a file?

2007-02-28 Thread Christian Convey
On 2/28/07, Nick Clifton <[EMAIL PROTECTED]> wrote: Hi Christian, > /usr/bin/c++ -fPIC "CMakeFiles/simpleIO.dir/main_IO.o" -o > simpleIO -rdynamic > -L/home/cjc/csc583-svn/uriVisionLib/trunk/Development/Source/C++ -lGL > -lglut -Wl,-Bstatic -luriVision -luriVision -Wl,-Bdynamic > -Wl,-rpath,/hom

Re: Linker problems: dependencies with .a file not resolved?

2007-02-28 Thread Christian Convey
On 27 Feb 2007 21:11:26 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: "Christian Convey" <[EMAIL PROTECTED]> writes: > ImageReader.cpp:(.text+0x90): undefined reference to > `uriVideoSources::ImageReader_gen::getFrame_(bool, > uriBase::RasterImage*)' > > (there are more errors as well, but

Re: Why does linker fail to resolve dependencies within the same .a file?

2007-02-28 Thread Nick Clifton
Hi Christian, /usr/bin/c++ -fPIC "CMakeFiles/simpleIO.dir/main_IO.o" -o simpleIO -rdynamic -L/home/cjc/csc583-svn/uriVisionLib/trunk/Development/Source/C++ -lGL -lglut -Wl,-Bstatic -luriVision -luriVision -Wl,-Bdynamic -Wl,-rpath,/home/cjc/csc583-svn/uriVisionLib/trunk/Development/Source/C++ N

Is "FTZ/DAZ for SSE via fast math" available for x86 arch other than Linux?

2007-02-28 Thread Zuxy Meng
I saw the patch in http://gcc.gnu.org/ml/gcc/2005-08/msg00281.html but is it available for other hosts, like mingw32? -- Zuxy