Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Miles Bader
"willus.com" writes: >> For the math functions, this is normally more a libc feature, so you >> might get very different results on different OS. Then again, by using >> -ffast-math, you allow the math functions to return any random value, >> so I can think of ways to make it even faster ;-) > > I

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Tim Prince
On 1/19/2012 9:24 PM, willus.com wrote: On 1/18/2012 10:37 PM, Marc Glisse wrote: On Wed, 18 Jan 2012, willus.com wrote: For those who might be interested, I've recently benchmarked gcc 4.6.3 (and 3.4.2) vs. Intel v11 and Microsoft (in Windows 7) here: http://willus.com/ccomp_benchmark2.shtml

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread willus.com
On 1/19/2012 6:29 AM, Richard Guenther wrote: On Thu, Jan 19, 2012 at 3:27 PM, willus.com wrote: On 1/19/2012 2:59 AM, Richard Guenther wrote: On Thu, Jan 19, 2012 at 7:37 AM, Marc Glissewrote: On Wed, 18 Jan 2012, willus.com wrote: For those who might be interested, I've recently bench

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread willus.com
On 1/18/2012 10:37 PM, Marc Glisse wrote: On Wed, 18 Jan 2012, willus.com wrote: For those who might be interested, I've recently benchmarked gcc 4.6.3 (and 3.4.2) vs. Intel v11 and Microsoft (in Windows 7) here: http://willus.com/ccomp_benchmark2.shtml http://en.wikipedia.org/wiki/Microsof

about hosting the gcc.

2012-01-19 Thread Santosh Sharma Poudel
Dear Sir/madam, You wish to host a new mirror site, in my area. Below mention is my personal detail. Name: Santosh Sharma poudel City: kathmandu. Country: Nepal. Looking forward for your positive responce Regards, Santosh Sharma Poudel

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Vincent Lefevre
On 2012-01-19 15:58:22 +0100, Duncan Sands wrote: > Hi Ludo, I didn't really get it. Why do you want to know whether the compiler > is GCC or not? Presumably because you have several versions of your code, > one version using GCC feature XYZ and the other not using XYZ. If so, the > logically co

Re: trouble emilinating redundant compares

2012-01-19 Thread Dave Korn
On 17/01/2012 21:16, Paul S wrote: > For example the i386 seems to use predicates and constraints of the form > <*_operand> and for the reload versions of these instructions - > and I haven't been able to find definitions of these or a mention in > gcc_internals.pdf of any special meaning assigne

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Dave Korn
On 19/01/2012 16:51, Ludovic Courtès wrote: > Right. But how would you write feature tests that would check (1) > whether the GNU C language is supported, Try and compile a conftest that uses it. If you wanted a possibly over-engineered solution, write one conftest for each feature of GNU C

gcc-4.5-20120119 is now available

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

Interface Method Table

2012-01-19 Thread Matt Davis
For a Go program being compiled in gcc, from the middle end, is there a way to figure-out which routines make up the interface-method-table? I could check the mangled name of the method table, but is there another way to deduce what methods compose it from the middle-end? Thanks! -Matt

Re: Hashing regs and subregs

2012-01-19 Thread Ian Lance Taylor
"Paulo J. Matos" writes: > I am developing a new pass and looking for suggestions on the best way > to record in a data structure which regs and subregs I have seen and > which mode they are in through the insn chain so I know if I find > duplicates. > > Any suggestions on the best way to do this

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Oleg Smolsky
Nice work! The only think is that you didn't enable WPO/LTCG on VC++ builds, so that test is a little skewed... On 2012/1/18 20:35, willus.com wrote: Hello, For those who might be interested, I've recently benchmarked gcc 4.6.3 (and 3.4.2) vs. Intel v11 and Microsoft (in Windows 7) here: ht

Re: readonly register

2012-01-19 Thread Ian Lance Taylor
BELBACHIR Selim writes: > In fact my final purpose is to replace $INP by a register bank in order to be > able to read several inputs using pipelined instructions (and instruction > scheduler). The fixed reg solution will prevent me from doing this. Is there > another way to prevent the use of

RE: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Paul_Koning
Write a test that checks for the existence of that machinery. I agree with the earlier comments. Checking version strings or program names is the wrong way, because you're essentially saying "if it is X then I know it can do Y" rather than directly asking the question "can it do Y". The issue

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Xinliang David Li
libacml from AMD is also a good candidate to try: http://www.ualberta.ca/AICT/RESEARCH/LinuxClusters/doc/acml350/Linking_002fWindows.html David On Thu, Jan 19, 2012 at 2:59 AM, Richard Guenther wrote: > On Thu, Jan 19, 2012 at 7:37 AM, Marc Glisse wrote: >> On Wed, 18 Jan 2012, willus.com wrote

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Ludovic Courtès
Duncan Sands skribis: > Why do you want to know whether the compiler > is GCC or not? Because I’m writing a plug-in for GCC. Ludo’.

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Ludovic Courtès
Hi Paul, Paul Eggert skribis: > A 'configure' script is supposed to check for behavior, not identity. > If the compiler supports the features needed, then generally speaking > a 'configure' script shouldn't care whether the compiler is truly GCC. Right. But how would you write feature tests th

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Tim Prince
On 1/19/2012 9:27 AM, willus.com wrote: On 1/19/2012 2:59 AM, Richard Guenther wrote: On Thu, Jan 19, 2012 at 7:37 AM, Marc Glisse wrote: On Wed, 18 Jan 2012, willus.com wrote: For those who might be interested, I've recently benchmarked gcc 4.6.3 (and 3.4.2) vs. Intel v11 and Microsoft (in W

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Paul Eggert
On 01/19/12 06:24, Ludovic Courtès wrote: > I don’t see what can be done on “our” side (perhaps Autoconf’s feature > test could be strengthened, but how?) Which feature test would that be? I certainly understand the problem, and have run into issues where clang fools 'configure' into thinking a G

Re: Getting rid of duplicate .debug_ranges

2012-01-19 Thread Mark Wielaard
On Sun, 2012-01-15 at 19:42 +0100, Mark Wielaard wrote: > I noticed that when you generate dwarf for an inlined function it often > comes with duplicate range lists for both the DW_TAG_inlined_subroutine > and the child DW_TAG_lexical_block DIE. I filed a bug report for it with some additional sta

GNU Tools Cauldron 2012 - Call for Abstracts and Participation

2012-01-19 Thread Diego Novillo
REMINDERS: 1- If you are thinking of preparing a presentation ahead of time, please let us know before 31/Jan. You do not need to prepare a detailed write-up. We will also be voting on discussion topics just ahead of the conference, like we did at the last one. 2- Please REGISTER E

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Duncan Sands
Hi Ludo, I didn't really get it. Why do you want to know whether the compiler is GCC or not? Presumably because you have several versions of your code, one version using GCC feature XYZ and the other not using XYZ. If so, the logically correct (but maybe impractical) approach is to test if the

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Ludovic Courtès
Hi Ducan, Duncan Sands skribis: >> A number of compilers claim to be GCC, without actually being GCC. This >> has come to a point where they can hardly be distinguished–until one >> actually tries to use them. > > this suggests that you shouldn't be testing for GCC, and instead should be > test

Re: Dealing with compilers that pretend to be GCC

2012-01-19 Thread Duncan Sands
Hi Ludo, A number of compilers claim to be GCC, without actually being GCC. This has come to a point where they can hardly be distinguished–until one actually tries to use them. this suggests that you shouldn't be testing for GCC, and instead should be testing for support for particular featu

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Richard Guenther
On Thu, Jan 19, 2012 at 3:27 PM, willus.com wrote: > On 1/19/2012 2:59 AM, Richard Guenther wrote: >> >> On Thu, Jan 19, 2012 at 7:37 AM, Marc Glisse  wrote: >>> >>> On Wed, 18 Jan 2012, willus.com wrote: >>> For those who might be interested, I've recently benchmarked gcc 4.6.3 (and 3.4

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread willus.com
On 1/19/2012 2:59 AM, Richard Guenther wrote: On Thu, Jan 19, 2012 at 7:37 AM, Marc Glisse wrote: On Wed, 18 Jan 2012, willus.com wrote: For those who might be interested, I've recently benchmarked gcc 4.6.3 (and 3.4.2) vs. Intel v11 and Microsoft (in Windows 7) here: http://willus.com/ccomp

Dealing with compilers that pretend to be GCC

2012-01-19 Thread Ludovic Courtès
Hello, A number of compilers claim to be GCC, without actually being GCC. This has come to a point where they can hardly be distinguished–until one actually tries to use them. I had the following macro to determine whether plug-in support is available: https://gforge.inria.fr/scm/viewvc.php/

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Uros Bizjak
Hello! > > For the math functions, this is normally more a libc feature, so you might > > get very different results on different OS. Then again, by using > > -ffast-math, you allow the math functions to return any random value, so I > > can think of ways to make it even faster ;-) > > Also for ma

Re: Access to source code from an analyser

2012-01-19 Thread David Malcolm
On Thu, 2012-01-19 at 14:06 +0100, Alberto Lozano Alelu wrote: > Hello. > > Thanks for your fast response. > > With expand_location I get struct expanded_location which has these fields: > type = struct { > const char *file; > int line; > int column; > unsigned char sysp; > } > >

Re: auto-vectorization analysis/__builtin_assume_aligned on gcc-4.7-20120114

2012-01-19 Thread Richard Guenther
On Thu, Jan 19, 2012 at 2:12 PM, Alexander Herz wrote: > The generated non-vectorized assembly is simply the unrolled loop with >8 > iterations, so loop structure is pretty much intact (except for unrolling). > > Does the vectorizer fail on unrolled loops? > > I can compile some assembly dumps sho

Re: Access to source code from an analyser

2012-01-19 Thread Richard Guenther
On Thu, Jan 19, 2012 at 2:06 PM, Alberto Lozano Alelu wrote: > Hello. > > Thanks for your fast response. > > With expand_location I get struct expanded_location which has these fields: > type = struct { >    const char *file; >    int line; >    int column; >    unsigned char sysp; > } > > But it

Re: auto-vectorization analysis/__builtin_assume_aligned on gcc-4.7-20120114

2012-01-19 Thread Alexander Herz
The generated non-vectorized assembly is simply the unrolled loop with >8 iterations, so loop structure is pretty much intact (except for unrolling). Does the vectorizer fail on unrolled loops? I can compile some assembly dumps showing both the vectorized and the unvectorized loop? Alex On

Re: Access to source code from an analyser

2012-01-19 Thread Alberto Lozano Alelu
Hello. Thanks for your fast response. With expand_location I get struct expanded_location which has these fields: type = struct { const char *file; int line; int column; unsigned char sysp; } But it hasn't source line text. I know how I have to use expand_location function but I

Hashing regs and subregs

2012-01-19 Thread Paulo J. Matos
Hi, I am developing a new pass and looking for suggestions on the best way to record in a data structure which regs and subregs I have seen and which mode they are in through the insn chain so I know if I find duplicates. Any suggestions on the best way to do this? Are there any rtx hashes a

Re: Access to source code from an analyser

2012-01-19 Thread Richard Guenther
On Thu, Jan 19, 2012 at 12:56 PM, Alberto Lozano Alelu wrote: > Hello. > > I'm developing a C++ analyzer and I would like to get source text of > file when I'm analyzing C++ code. > > When I'm analyzing source code I would like to get source text line > from a location of a type. I have got type l

Access to source code from an analyser

2012-01-19 Thread Alberto Lozano Alelu
Hello. I'm developing a C++ analyzer and I would like to get source text of file when I'm analyzing C++ code. When I'm analyzing source code I would like to get source text line from a location of a type. I have got type location but I don't know a function to get source line text from source loc

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-19 Thread Richard Guenther
On Thu, Jan 19, 2012 at 7:37 AM, Marc Glisse wrote: > On Wed, 18 Jan 2012, willus.com wrote: > >> For those who might be interested, I've recently benchmarked gcc 4.6.3 >> (and 3.4.2) vs. Intel v11 and Microsoft (in Windows 7) here: >> >> http://willus.com/ccomp_benchmark2.shtml > > > http://en.wi

Re: Fortran Compil;er

2012-01-19 Thread Jonathan Wakely
On 19 January 2012 10:21, tintu david joy wrote: > Hello, > >  I have a system with Suse 10.3 and gcc version 4.2.1. Will there be > inbuilt fortran compiler or do I have to install it separately. Thanks This question is unsuitable for this mailing list, please use the gcc-h...@gcc.gnu.org list fo

Re: auto-vectorization analysis/__builtin_assume_aligned on gcc-4.7-20120114

2012-01-19 Thread Richard Guenther
On Wed, Jan 18, 2012 at 6:37 PM, Alexander Herz wrote: > Given this piece of code (gcc-4.7-20120114): > >    static void Test(Batch* block,Batch* new_block,const uint32 offs) >    { > >        T* __restrict old_values > =(T*)__builtin_assume_aligned(block->items,16); >        T* __restrict new_val

Fortran Compil;er

2012-01-19 Thread tintu david joy
Hello, I have a system with Suse 10.3 and gcc version 4.2.1. Will there be inbuilt fortran compiler or do I have to install it separately. Thanks

RE: readonly register

2012-01-19 Thread BELBACHIR Selim
In fact my final purpose is to replace $INP by a register bank in order to be able to read several inputs using pipelined instructions (and instruction scheduler). The fixed reg solution will prevent me from doing this. Is there another way to prevent the use of some registers during the reload

Improvement of Cortex-A15

2012-01-19 Thread Yang Yueming
I want to do some optimizations for Cortex-A15,Is anyone doing this too or is there any work has been done? Yang Yueming