Re: inefficient comparison

2006-10-18 Thread Uros Bizjak
Krishna Myneni <[EMAIL PROTECTED]> wrote: Under "gcc (GCC) 4.1.0 (SUSE Linux)", with CFLAGS = -m32 -S, and under all of the optimization levels (O0 through O3), the following is produced : flds .LC2 fldz fxch %st(1) fucompp fnstsw %ax : The FXCH instruction is unnecessary if the FLDS and FLDZ

inefficient comparison

2006-10-18 Thread Krishna Myneni
int test (void) { double f; int j = (f > 0.); return j; } Under "gcc (GCC) 4.1.0 (SUSE Linux)", with CFLAGS = -m32 -S, and under all of the optimization levels (O0 through O3), the following is produced : flds.LC2 fldz fxch%st(1)

Re: Compiling with profiling flags

2006-10-18 Thread Seongbae Park
On 10/17/06, Revital1 Eres <[EMAIL PROTECTED]> wrote: Hello, Is there an option to change the name of the .gcno file that is generated by using profiling flags like -fprofile-generate and later used by -fprofile-use? I read that "For each source file compiled with `-fprofile-arcs', an accompany

Re: Compiling with profiling flags

2006-10-18 Thread Ben Elliston
Hi Revital > Is there an option to change the name of the .gcno file that is > generated by using profiling flags like -fprofile-generate and later > used by -fprofile-use? I read that "For each source file compiled > with `-fprofile-arcs', an accompanying `.gcda' file will be placed > in the obj

Re: Wiki, documenting Tree SSA passes

2006-10-18 Thread Ben Elliston
> Is documenting the passes on the Wiki worthwile? Could some people > document (in a few sentences) each pass (ie each struct > tree_opt_pass defined in the source tree) if possible? Perhaps once your assignment is processed, you could transfer all of the new material from the Wiki into the inter

Re: gcc/testsuite incorrect checking of compiler's retval in dg-compile

2006-10-18 Thread Mike Stump
On Oct 18, 2006, at 2:22 PM, Bernhard Fischer wrote: I need to check for a non-0 return value in dg-compile testcases in gcc. I'd not worry about it in general. The exit status should be properly checked for every other compile line and it should be ok.

Re: Getting a virtual functions VT lookup index

2006-10-18 Thread Brendon Costa
Brendon Costa wrote: > Hi all, > > How can I find a FUNCTION_DECL node from a CALL_EXPR node for virtual > function calls? > Well I have managed to achieve this, though I don't know if it is the best way to do so. For the sake of people that may find this question in the list archives I will sho

gcc/testsuite incorrect checking of compiler's retval in dg-compile

2006-10-18 Thread Bernhard Fischer
Hi, I need to check for a non-0 return value in dg-compile testcases in gcc. A simple testcase from richi shows the problem i'm facing: http://gcc.gnu.org/viewcvs/trunk/gcc/testsuite/gcc.dg/pr29254.c?view=markup&pathrev=117577 In this testcase, he checks for /* { dg-warning "warnings being treate

Re: GCC 4.2/4.3 Status Report (2006-10-17)

2006-10-18 Thread Geoffrey Keating
Mark Mitchell <[EMAIL PROTECTED]> writes: > IMA for C++ is another difficult case. This is unambiguously useful, > though duplicative of what we're trying to build with LTO. Although there are some things you can do with LTO that you can also do with IMA, there are many things that you can do wi

Re: TARGET_SCHED_PROLOG defined twice

2006-10-18 Thread Andrew Pinski
On Wed, 2006-10-18 at 10:02 +0200, Marcin Dalecki wrote: > Looking at rs6000.opt I have found that the above command line switch > variable is defined TWICE: > > msched-prolog > Target Report Var(TARGET_SCHED_PROLOG) Init(1) > Schedule the start and end of the procedure > > msched-epilog > Targ

Re: GCC 4.2/4.3 Status Report (2006-10-17)

2006-10-18 Thread Mark Mitchell
Kaveh R. GHAZI wrote: The configury bit was approved by DJ for stage1, but do you see any reason to hold back? Or is this posting sufficient warning that people may need to upgrade? (I.e. people should start upgrading their libraries now.) I don't see any reason to hold back. Thanks, -- M

Re: GCC 4.2/4.3 Status Report (2006-10-17)

2006-10-18 Thread Kaveh R. GHAZI
On Tue, 17 Oct 2006, Mark Mitchell wrote: > As Gerald noticed, there are now fewer than 100 serious regressions open > against mainline, which means that we've met the criteria for creating > the 4.2 release branch. (We still have 17 P1s, so we've certainly got > some work left to do before creat

Re: Including GMP/MPFR in GCC repository?

2006-10-18 Thread Kaveh R. GHAZI
On Fri, 13 Oct 2006, Kaveh R. GHAZI wrote: > On Thu, 12 Oct 2006, DJ Delorie wrote: > > > > > > Okay for stage1? > > > > Ok, assuming everyone agrees to those versions ;-) > > Great, thanks. I haven't heard anyone disagree with those versions, so > unless someone objects before stage1 starts I'll

Re: Why does GCC allow '$' character in variable and function names?

2006-10-18 Thread Andrew Haley
Ian Lance Taylor writes: > gcc permits '$' as an implementation defined character. It does this > mainly for historical reasons. We also need it to link C++ programs with programs written in the Java language. That's because in Java, classes have synthetic fields whose names contain '$' chraca

Re: Request for acceptance of new port (Cell SPU)

2006-10-18 Thread David Edelsohn
> trevor smigiel writes: trevor> We, Sony Computer Entertainment, would like to contribute a port for a trevor> new target, the Cell SPU, and seek acceptance from the Steering trevor> Committee to do so. The GCC Steering Committee welcomes the contribution of the Cell SPU port from So

Re: "insn outside basic block" in custom back end

2006-10-18 Thread Rask Ingemann Lambertsen
On Tue, Oct 17, 2006 at 07:07:00PM +0200, Frank Riese wrote: > Hi, > > I have the following problem with a back end I've written after the following > changes in the machine header, to tell GCC that the machine is word-addressed > with a word width of 16 Bit: > > #define BITS_PER_UNIT

Re: TARGET_SCHED_PROLOG defined twice

2006-10-18 Thread Marcin Dalecki
On 2006-10-18, at 12:15, Steven Bosscher wrote: On 10/18/06, Marcin Dalecki <[EMAIL PROTECTED]> wrote: Looking at rs6000.opt I have found that the above command line switch variable is defined TWICE: msched-prolog Target Report Var(TARGET_SCHED_PROLOG) Init(1) Schedule the start and end of th

Re: build error

2006-10-18 Thread bob_rossi
Brian Dessent <[EMAIL PROTECTED]> wrote: > > Consider posting this kind of question to gcc-help@ instead. OK, I will. > [EMAIL PROTECTED] wrote: > > > I just ran these commands: > > > > svn -q checkout svn://gcc.gnu.org/svn/gcc/trunk gcc > > mkdir builddir > > cd builddir > > CFLAGS="-

Re: expand_omp_parallel typo?

2006-10-18 Thread Diego Novillo
Marcin Dalecki wrote on 10/18/06 00:27: bsi_insert_after (&si, t, TSI_SAME_STMT); Shouldn't this bee bsi_insert_after (&si, t, BSI_SAME_STMT); instead? Yes. We lucked out because both symbols have the same numeric value. Patch pre-approved as obvious. PS: Please do not use existin

Re: TARGET_SCHED_PROLOG defined twice

2006-10-18 Thread Steven Bosscher
On 10/18/06, Marcin Dalecki <[EMAIL PROTECTED]> wrote: Looking at rs6000.opt I have found that the above command line switch variable is defined TWICE: msched-prolog Target Report Var(TARGET_SCHED_PROLOG) Init(1) Schedule the start and end of the procedure msched-epilog Target Undocumented Var(

Re: expand_omp_parallel typo?

2006-10-18 Thread Gabriel Dos Reis
Marcin Dalecki <[EMAIL PROTECTED]> writes: | Looking at the function expand_omp_parallel in omp-low.c I have found | the following line of code: | |bsi_insert_after (&si, t, TSI_SAME_STMT); | | Shouldn't this bee | |bsi_insert_after (&si, t, BSI_SAME_STMT); | | instead? The TSI_* and

TARGET_SCHED_PROLOG defined twice

2006-10-18 Thread Marcin Dalecki
Looking at rs6000.opt I have found that the above command line switch variable is defined TWICE: msched-prolog Target Report Var(TARGET_SCHED_PROLOG) Init(1) Schedule the start and end of the procedure msched-epilog Target Undocumented Var(TARGET_SCHED_PROLOG) VarExists This appears of course