I want to know the information about the function arguments

2018-06-06 Thread 冠人 王 via gcc
When I modify the gcc source code, sometimes I do not know what parameters does the function call. For example,  bool warn_if_unused_value(const tree exp,location_t locus){    function declaration ... } I want to know what "exp" and "locus" are by using fprintf such as fprintf(stderr,"%s\n%s\n",e

What is dump_file in gcc ?

2018-06-06 Thread 冠人 王 via gcc
I have ever seen "fprintf(dump_file,"something writes into dump_file") many times. I want to know what dump_file is and how can I check its content ?

RE: What is dump_file in gcc ?

2018-06-06 Thread Peryt, Sebastian
> Subject: What is dump_file in gcc ? > > I have ever seen "fprintf(dump_file,"something writes into dump_file") many > times. > I want to know what dump_file is and how can I check its content ? I'm not 100% sure, but my best guess is that this is related to GCC dumps, e.g. related to passes. Y

Re: I want to know the information about the function arguments

2018-06-06 Thread Martin Jambor
Hi, On Wed, Jun 06 2018, 冠人 王 via gcc wrote: > When I modify the gcc source code, sometimes I do not know what parameters > does the function call. > For example,  > bool warn_if_unused_value(const tree exp,location_t locus){    function > declaration ... > } > I want to know what "exp" and "loc

Re: I want to know the information about the function arguments

2018-06-06 Thread David Malcolm
On Wed, 2018-06-06 at 13:04 +0200, Martin Jambor wrote: > Hi, > > On Wed, Jun 06 2018, 冠人 王 via gcc wrote: > > When I modify the gcc source code, sometimes I do not know what > > parameters does the function call. > > For example, > > bool warn_if_unused_value(const tree exp,location_t locus){

How to get GCC on par with ICC?

2018-06-06 Thread Paul Menzel
Dear GCC folks, Some scientists in our organization still want to use the Intel compiler, as they say, it produces faster code, which is then executed on clusters. Some resources on the Web [1][2] confirm this. (I am aware, that it’s heavily dependent on the actual program.) My question is,

Re: How to get GCC on par with ICC?

2018-06-06 Thread Joel Sherrill
On Wed, Jun 6, 2018 at 10:51 AM, Paul Menzel < pmenzel+gcc.gnu@molgen.mpg.de> wrote: > Dear GCC folks, > > > Some scientists in our organization still want to use the Intel compiler, > as they say, it produces faster code, which is then executed on clusters. > Some resources on the Web [1][2]

Re: How to get GCC on par with ICC?

2018-06-06 Thread Paul Menzel
Dear Joel, Thank you for your quick reply. On 06/06/18 17:57, Joel Sherrill wrote: On Wed, Jun 6, 2018 at 10:51 AM, Paul Menzel wrote: Some scientists in our organization still want to use the Intel compiler, as they say, it produces faster code, which is then executed on clusters. Some re

Re: How to get GCC on par with ICC?

2018-06-06 Thread Bin.Cheng
On Wed, Jun 6, 2018 at 3:51 PM, Paul Menzel wrote: > Dear GCC folks, > > > Some scientists in our organization still want to use the Intel compiler, as > they say, it produces faster code, which is then executed on clusters. Some > resources on the Web [1][2] confirm this. (I am aware, that it’s h

Re: How to get GCC on par with ICC?

2018-06-06 Thread Dmitry Mikushin
Dear Paul, The opinion you've mentioned is common in scientific community. However, in more detail it often surfaces that the used set of GCC compiler options simply does not correspond to that "fast" version of Intel. For instance, when you do "-O3" for Intel it actually corresponds to (at least)

Re: How to get GCC on par with ICC?

2018-06-06 Thread Ryan Burn
One case where ICC can generate much faster code sometimes is by using the nontemporal pragma [https://software.intel.com/en-us/node/524559] with loops. AFAIK, there's no such equivalent pragma in gcc [https://gcc.gnu.org/ml/gcc/2012-01/msg00028.html]. When I tried this simple example https://git

Re: How to get GCC on par with ICC?

2018-06-06 Thread Zan Lynx
On 06/06/2018 10:22 AM, Dmitry Mikushin wrote: > The opinion you've mentioned is common in scientific community. However, in > more detail it often surfaces that the used set of GCC compiler options > simply does not correspond to that "fast" version of Intel. For instance, > when you do "-O3" for

gcc-6-20180606 is now available

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