The Linux binutils 2.17.50.0.10 is released

2007-01-22 Thread H. J. Lu
This is the beta release of binutils 2.17.50.0.10 for Linux, which is based on binutils 2007 0122 in CVS on sourceware.org plus various changes. It is purely for Linux. Starting from the 2.17.50.0.4 release, the default output section LMA (load memory address) has changed for allocatable sections

Which optimization levels affect gimple?

2007-01-24 Thread Paulo J. Matos
Hi all, Which optimization levels affect gimple? I've tried for a program to check what kind of gimple code you get with -fdump-tree-gimple and -O0 and -O3 have different results, however, -O3 and -O9 have exactly the same output. Will -Ox for x > 3, generate the same gimple trees? (i.e., are don

2007 GCC Developers Summit

2007-01-24 Thread Andrew J. Hutton
We would like to invite everyone to read over the Call for Papers for the 2007 GCC Developers' Summit located at http://www.gccsummit.org/2007/cfp.php and to consider submitting a proposal for this year. This year we're going to be from July 18th to 20th for a change and hope that you're all

Re: [RFC] Our release cycles are getting longer

2007-01-25 Thread H. J. Lu
On Thu, Jan 25, 2007 at 11:18:34AM +0100, François-Xavier Coudert wrote: > [sorry for breaking the thread; stupid gmail doesn't want to add > custom References headers] > > >It may be that not too many people pick up 4.2.0. But, if 4.3 isn't > >looking very stable, there will be a point when peop

Re: [RFC] Our release cycles are getting longer

2007-01-25 Thread H. J. Lu
On Thu, Jan 25, 2007 at 09:57:45AM -0500, Robert Dewar wrote: > H. J. Lu wrote: > > >Gcc 4.2 has a serious FP performace issue: > > > >http://gcc.gnu.org/ml/gcc/2007-01/msg00408.html > > > >on both ia32 and x86-64. If there will be a 4.2.0 release, I hope it

Re: Possible build problems with the "current" gcc

2007-01-25 Thread H. J. Lu
On Thu, Jan 25, 2007 at 07:22:46PM -0800, George R Goffe wrote: > Howdy, > > I got an email from Joe Buck who suggested that I fix a clock skew problem > between 2 > of my systems. I did this but this did not change the "other" problem with > this > build effort. A diff of the 2 sets of error me

The Linux binutils 2.17.50.0.11 is released

2007-01-25 Thread H. J. Lu
This is the beta release of binutils 2.17.50.0.11 for Linux, which is based on binutils 2007 0125 in CVS on sourceware.org plus various changes. It is purely for Linux. Starting from the 2.17.50.0.4 release, the default output section LMA (load memory address) has changed for allocatable sections

Re: Which optimization levels affect gimple?

2007-01-26 Thread Paulo J. Matos
On 1/24/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 01/24/07 12:44: > check what kind of gimple code you get with -fdump-tree-gimple and > -O0 and -O3 have different results, > -fdump-tree-gimple is the first dump *before* any optimizations occur. To se

The Linux binutils 2.17.50.0.12 is released

2007-01-28 Thread H. J. Lu
This is the beta release of binutils 2.17.50.0.12 for Linux, which is based on binutils 2007 0128 in CVS on sourceware.org plus various changes. It is purely for Linux. Starting from the 2.17.50.0.4 release, the default output section LMA (load memory address) has changed for allocatable sections

Re: Which optimization levels affect gimple?

2007-01-28 Thread Paulo J. Matos
On 24 Jan 2007 09:56:55 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: "Paulo J. Matos" <[EMAIL PROTECTED]> writes: > Which optimization levels affect gimple? > I've tried for a program to check what kind of gimple code you get > with -fdump-tree-g

Re: Which optimization levels affect gimple?

2007-01-28 Thread Paulo J. Matos
On 1/24/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 01/24/07 12:44: > check what kind of gimple code you get with -fdump-tree-gimple and > -O0 and -O3 have different results, > -fdump-tree-gimple is the first dump *before* any optimizations occur. To se

Re: Which optimization levels affect gimple?

2007-01-28 Thread Paulo J. Matos
On 1/26/07, Richard Guenther <[EMAIL PROTECTED]> wrote: On 1/26/07, Diego Novillo <[EMAIL PROTECTED]> wrote: > Paulo J. Matos wrote on 01/26/07 06:52: > > > Is the output of -fdump-tree-optimized a subset of GIMPLE? > > > Yes. The output is an incomplete tex

Re: Which optimization levels affect gimple?

2007-01-28 Thread Paulo J. Matos
On 1/28/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: On 1/24/07, Diego Novillo <[EMAIL PROTECTED]> wrote: > Paulo J. Matos wrote on 01/24/07 12:44: > > > check what kind of gimple code you get with -fdump-tree-gimple and > > -O0 and -O3 have different results, &

Re: Which optimization levels affect gimple?

2007-01-28 Thread Paulo J. Matos
On 1/26/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Richard Guenther wrote on 01/26/07 07:28: > It's after doing TER, so the statements are no longer valid GIMPLE statements. > Silly me. Richard's right. You want the output of -fdump-tree-uncprop. That's the last GIMPLE dump (if my memory d

Re: Which optimization levels affect gimple?

2007-01-29 Thread Paulo J. Matos
On 1/29/07, Diego Novillo <[EMAIL PROTECTED]> wrote: -fdump-tree-all gives you all the dumps by the high-level optimizers. -fdump-all-all gives you all the dumps by both GIMPLE and RTL optimizers. Is this -fdump-all-all version specific? Doesn't work on 4.1.1: $ g++ -fdump-all-all allocation.c

After GIMPLE...

2007-01-29 Thread Paulo J. Matos
Hi all, I've been looking into the gcc sources and I'm somewhat confused. Are gcc/g++ comepletely independent programs or do they share a backend? This question comes from the fact that I was trying to find a point in the source where I could get the GIMPLE tree and do with it what ever I wished

Re: Which optimization levels affect gimple?

2007-01-30 Thread Paulo J. Matos
On 1/29/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: -fdump-tree-all-all will work as will -fdump-rtl-all-all I never added support for -fdump-all-all-all :) Thank you! -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampto

Re: After GIMPLE...

2007-01-30 Thread Paulo J. Matos
On 29 Jan 2007 11:38:15 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: "Paulo J. Matos" <[EMAIL PROTECTED]> writes: > I've been looking into the gcc sources and I'm somewhat confused. > Are gcc/g++ comepletely independent programs or do they share a ba

Re: After GIMPLE...

2007-01-30 Thread Paulo J. Matos
On 29 Jan 2007 11:38:15 -0800, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: I don't see why you would have to modify any code in the frontend. You would modify the middle-end code. Rebuilding the compiler would rebuild cc1, cc1plus, etc. Well, I spent the morning looking at the code and since

Re: After GIMPLE...

2007-01-31 Thread Paulo J. Matos
On 1/31/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 01/30/07 10:11: > Well, I spent the morning looking at the code and since what I need is > only the flow of gcc up until I have the GIMPLE tree, I could add a > pass after the pass which generates the

Fwd: Compiling GCC

2007-02-01 Thread Paulo J. Matos
I forgot to send to the mailing list that the --disable-multilib from Andrew worked. Thank you all. :) -- Forwarded message -- From: Paulo J. Matos <[EMAIL PROTECTED]> Date: Jan 31, 2007 3:41 PM Subject: Re: Compiling GCC To: Andrew Haley <[EMAIL PROTECTED]> On 1/3

Re: After GIMPLE...

2007-02-01 Thread Paulo J. Matos
On 1/31/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 01/31/07 11:26: > So, ideally, I would like just the gcc part until the first part of > the middleend where you have a 'no optimizations', language > independent AST of the source file. >

Re: After GIMPLE...

2007-02-01 Thread Paulo J. Matos
On 2/1/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 02/01/07 04:37: > What can I do then to stop gcc to further process things? After > informing the user there's no more reason on my site to continue. > Stop gracefully or just stop? The latter

Re: trunk rev121458 dont bootstrap

2007-02-01 Thread H. J. Lu
On Thu, Feb 01, 2007 at 08:03:36AM +0100, Basile STARYNKEVITCH wrote: > > Hello > > (I don't know if the good mailing list for this is gcc@ or gcc-patches@) > > Apparently trunk rev 121458 don't bootstrap on linux debian sid amd64 ie > x86_64-unknown-linux-gnu > > I'm getting > > make[4]

Disabling bootstrap

2007-02-02 Thread Paulo J. Matos
Hi all, I've changed gcc by adding a new pass, however, when I compile gcc, during compilation it calls itself, so I disabled bootstrap but that is still happening even during bootstrap. Is there any way to compile gcc without the final gcc compiling something? Moreover, how can I add a flag to

Re: Disabling bootstrap

2007-02-02 Thread Paulo J. Matos
On 2/2/07, Zdenek Dvorak <[EMAIL PROTECTED]> wrote: Hello, > I've changed gcc by adding a new pass, however, when I compile gcc, > during compilation it calls itself, so I disabled bootstrap but that > is still happening even during bootstrap. Is there any way to compile > gcc without the final

Re: not building?

2007-02-02 Thread H. J. Lu
On Fri, Feb 02, 2007 at 11:19:57AM -0800, Mike Stump wrote: > I've been seeing: > > /Volumes/mrs5/net/gcc-darwin/./gcc/xgcc -shared-libgcc -B/ > Volumes/mrs5/net/gcc-darwin/./gcc -nostdinc++ -L/Volumes/mrs5/net/gcc- > darwin/i686-apple-darwin9/libstdc++-v3/src -L/Volumes/mrs5/net/gcc- >

Re: After GIMPLE...

2007-02-06 Thread Paulo J. Matos
On 1/31/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 01/31/07 11:26: > So, ideally, I would like just the gcc part until the first part of > the middleend where you have a 'no optimizations', language > independent AST of the source file. >

Re: After GIMPLE...

2007-02-07 Thread Paulo J. Matos
On 2/6/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 02/06/07 14:19: > Why before pass_build_ssa? (version 4.1.1) > It depends on the properties your pass requires. If you ask for PROP_cfg and PROP_gimple_any then you should schedule it after the CFG has bee

Re: 27% regression of gcc 4.3 performance on cpu2k6/calculix

2007-02-08 Thread H. J. Lu
On Wed, Feb 07, 2007 at 05:32:28PM +0300, Vladimir Sysoev wrote: > Hi! > I create test to reproduce issue with cpu2006/454.calculix > See attached. File e_c3d.f contains cutted subroutine from calculix. > tr535.f main entry point of the test. you can use go-script as a > reference how i get these r

Is compare no longer enabled by default?

2007-02-11 Thread H. J. Lu
"make bootstrap" used to compare stage2 and stage3 after gcc was bootstrapped. "make bootstrap" would abort if comparison was failed. Now, compare stage2 and stage3 is not longer done for "make bootstrap". Is that intentional? I think it is a very bad idea. H.J.

Re: Is compare no longer enabled by default?

2007-02-11 Thread H. J. Lu
On Sun, Feb 11, 2007 at 01:00:41PM -0800, H. J. Lu wrote: > "make bootstrap" used to compare stage2 and stage3 after gcc was > bootstrapped. "make bootstrap" would abort if comparison was failed. > Now, compare stage2 and stage3 is not longer done for > "mak

Re: ICE in gcc/libgcc2.c:566 (gcc trunk)

2007-02-11 Thread H. J. Lu
On Sun, Feb 11, 2007 at 05:11:15PM +0100, Hanno Meyer-Thurow wrote: > On 07 Feb 2007 15:36:14 -0800 > Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > > > Can anybody else out there recreate this on their x86_64 system? > > Not that I could not recreate the segfault but I found a way to hide the > s

Re: ICE in gcc/libgcc2.c:566 (gcc trunk)

2007-02-11 Thread H. J. Lu
On Sun, Feb 11, 2007 at 01:09:40PM -0800, H. J. Lu wrote: > On Sun, Feb 11, 2007 at 05:11:15PM +0100, Hanno Meyer-Thurow wrote: > > On 07 Feb 2007 15:36:14 -0800 > > Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > > > > > Can anybody else out there recreate this

Re: Is compare no longer enabled by default?

2007-02-12 Thread H. J. Lu
On Mon, Feb 12, 2007 at 09:53:00AM -0800, Joe Buck wrote: > On Sun, Feb 11, 2007 at 01:04:05PM -0800, H. J. Lu wrote: > > On Sun, Feb 11, 2007 at 01:00:41PM -0800, H. J. Lu wrote: > > > "make bootstrap" used to compare stage2 and stage3 after gcc was > > >

Re: Performance regression on the 4.3 branch?

2007-02-14 Thread H. J. Lu
On Wed, Feb 14, 2007 at 02:34:24PM +0100, Paweł Sikora wrote: > François-Xavier Coudert napisał(a): > > >$ gcc -march=pentium4 -O3 a.c && time ./a.out > >064069fbc13963b920219c3e939225e38e38e38e3956d81c71c71c71c0ba0f00 > >./a.out 1.81s user 0.00s system 99% cpu 1.818 total > >$ gcc-4.3 -march=pen

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-17 Thread H. J. Lu
On Sat, Feb 17, 2007 at 01:35:28PM +0300, Vladimir Sysoev wrote: > Hello, Daniel > > It looks like your changeset listed bellow makes performance > regression ~40% on SPEC2006/leslie3d. I will try to create minimal > test for this issue this week and update you in any case. > That is a known iss

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-19 Thread H. J. Lu
On Mon, Feb 19, 2007 at 03:16:12PM -0800, Mark Mitchell wrote: > Daniel Berlin wrote: > > >> > > > It looks like your changeset listed bellow makes performance > >> > > > regression ~40% on SPEC2006/leslie3d. I will try to create minimal > >> > > > test for this issue this week and update you in a

Re: 40% performance regression SPEC2006/leslie3d on gcc-4_2-branch

2007-02-22 Thread H. J. Lu
On Tue, Feb 20, 2007 at 03:53:55PM -0800, Mark Mitchell wrote: > Richard Guenther wrote: > > >> This is 4.7% drop of SPECfp_base2006 ratio (geomean of individual FP > >> ratios). > > Clearly, 4.7% is significant. Grigory, thanks for the measurements! > > >> Here is the full set of changes in cp

Re: Why use pentium4 for Pentium M?

2007-02-26 Thread H. J. Lu
On Tue, Feb 27, 2007 at 12:30:16PM +0800, Zuxy Meng wrote: > Hi, > > -march=native choose pentium4 instead of pentium-m for Pentium M processors > (see config/i386/driver-i386.c)? Is this intentional or a typo? > It is because Pentium M implements Pentium instructions. You should get: bash-3.0

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: Finalizer after pass?

2007-03-01 Thread Paulo J. Matos
On 2/28/07, Diego Novillo <[EMAIL PROTECTED]> wrote: 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 o

Re: Finalizer after pass?

2007-03-01 Thread Paulo J. Matos
On 3/1/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 03/01/07 10:41: > My IPA pass seems to be run only for -On, n>=1, is there a way to make > it ran even for -O0? No, we only run IPA passes if flag_unit_at_a_time is set. That only is set when optimizi

Accessing function code from CFG

2007-03-02 Thread Paulo J. Matos
Hi all, In an IPA pass, for each CFG node, I have a tree decl member from which I can access the return type, name of the function, argument names and its types, but I can't seem to find a way to get the function code. I would guess it would be a basic block list but I don't know where I can get

Re: Accessing function code from CFG

2007-03-02 Thread Paulo J. Matos
On 3/2/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 03/02/07 10:12: > In an IPA pass, for each CFG node, I have a tree decl member from > which I can access the return type, name of the function, argument > names and its types, but I can't seem to f

Re: Massive SPEC failures on trunk

2007-03-03 Thread H. J. Lu
On Sat, Mar 03, 2007 at 11:01:40AM -0500, Diego Novillo wrote: > Grigory Zagorodnev wrote on 03/03/07 02:27: > > > There are three checkins, candidates for the root of regression: > > http://gcc.gnu.org/viewcvs?view=rev&revision=122487 > > http://gcc.gnu.org/viewcvs?view=rev&revision=12248

Re: Massive SPEC failures on trunk

2007-03-03 Thread H. J. Lu
On Sat, Mar 03, 2007 at 02:00:30PM -0800, Andrew Pinski wrote: > On 3/3/07, H. J. Lu <[EMAIL PROTECTED]> wrote: > >> [1] 176.gcc and 253.perlbmk usually miscompare for me. Not sure why. > > >176.gcc=default=default=default: > >CPORTABILITY = -Dalloca=_al

Adding a new gcc dir

2007-03-06 Thread Paulo J. Matos
Hi all, I've just added a new gcc subdir : head/gcc/myproj with structures and utilities for my ipa pass which lives in head/gcc. Now I have to tell gcc to compile the files inside myproj. Is there a standard way to do this? I've looked into head/gcc/Makefile.in but it seem quite cluttered and I

Re: BUG: wrong function call

2007-03-06 Thread Paulo J. Matos
On 3/6/07, W. Ivanov <[EMAIL PROTECTED]> wrote: Hi, I use multiple inheritance in my project. In the child class i have functions GetParam() and SetParam(). In the cpp-file I call GetParam() function, but I fell to SetParam() function. Can You help me? Don't take me wrong but it is most likely

Re: Adding a new gcc dir

2007-03-06 Thread Paulo J. Matos
On 3/6/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: Hi all, I've just added a new gcc subdir : head/gcc/myproj with structures and utilities for my ipa pass which lives in head/gcc. Now I have to tell gcc to compile the files inside myproj. Is there a standard way to do this? I

Re: Adding a new gcc dir

2007-03-06 Thread Paulo J. Matos
On 3/6/07, Dave Korn <[EMAIL PROTECTED]> wrote: On 06 March 2007 16:07, Paulo J. Matos wrote: > Well, added a couple of lines to gcc/Makefile.in referring to files in > myproj. Still, although it is partly working one thing is annoying me. > It's using these flags by

Re: Adding a new gcc dir

2007-03-06 Thread Paulo J. Matos
On 3/6/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: Hi all, I've just added a new gcc subdir : head/gcc/myproj with structures and utilities for my ipa pass which lives in head/gcc. Now I have to tell gcc to compile the files inside myproj. Is there a standard way to do this? I

Re: Adding a new gcc dir

2007-03-06 Thread Paulo J. Matos
On 3/6/07, Dave Korn <[EMAIL PROTECTED]> wrote: On 06 March 2007 18:22, Paulo J. Matos wrote: > i686-pc-linux-gnu-ar: symbol-tables.o: No such file or directory > > And in fact there is no symbol-tables.o but I saw it being compiled so > I wonder where it has gone to. >

Re: Adding a new gcc dir

2007-03-06 Thread Paulo J. Matos
On 3/6/07, Dave Korn <[EMAIL PROTECTED]> wrote: No, I advise that when adding a pass, regardless of whether the code can fit in a single file or is large enough to need to use several separate files, it's consistent to put all the files that implement the pass in the main 'gcc' source directory

Re: Adding a new gcc dir

2007-03-07 Thread Paulo J. Matos
On 3/7/07, Dave Korn <[EMAIL PROTECTED]> wrote: On 07 March 2007 14:30, [EMAIL PROTECTED] wrote: > Is it time to offer "second-strap" level of compilation? Ie allow C99 to > bootstrap the creation of a basic GCC compiler, then allow a second compile > using the basic GCC compiler to get the full

Re: Adding a new gcc dir

2007-03-07 Thread Paulo J. Matos
On 3/7/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: On 3/7/07, Dave Korn <[EMAIL PROTECTED]> wrote: > On 07 March 2007 14:30, [EMAIL PROTECTED] wrote: > > > Is it time to offer "second-strap" level of compilation? Ie allow C99 to > > bootstrap the creati

Re: Accessing function code from CFG

2007-03-07 Thread Paulo J. Matos
On 3/2/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 03/02/07 10:12: > In an IPA pass, for each CFG node, I have a tree decl member from > which I can access the return type, name of the function, argument > names and its types, but I can't seem to f

Re: Adding a new gcc dir

2007-03-07 Thread Paulo J. Matos
On 3/7/07, Paul Brook <[EMAIL PROTECTED]> wrote: On Wednesday 07 March 2007 14:30, [EMAIL PROTECTED] wrote: > Is it time to offer "second-strap" level of compilation? Ie allow C99 to > bootstrap the creation of a basic GCC compiler, then allow a second compile > using the basic GCC compiler to ge

Re: Accessing function code from CFG

2007-03-07 Thread Paulo J. Matos
On 3/7/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 03/07/07 10:36: > Is this normal? It seems there are no basic blocks set for the > functions. Probably my pass is being run before the bbs are created? Looks like it. Set a breakpoint in build_tree_

Re: Accessing function code from CFG

2007-03-07 Thread Paulo J. Matos
On 3/7/07, Diego Novillo <[EMAIL PROTECTED]> wrote: Paulo J. Matos wrote on 03/07/07 11:43: > What am I missing? You are debugging the wrong binary. I'd suggest you browse through http://gcc.gnu.org/wiki/DebuggingGCC You need to debug one of cc1/cc1plus/jc1 Thank you. It

Re: Accessing function code from CFG

2007-03-07 Thread Paulo J. Matos
On 3/7/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: On 3/7/07, Diego Novillo <[EMAIL PROTECTED]> wrote: > Paulo J. Matos wrote on 03/07/07 11:43: > > > What am I missing? > > You are debugging the wrong binary. I'd suggest you browse through > http://gcc.

Re: Adding a new gcc dir

2007-03-07 Thread Paulo J. Matos
On 3/7/07, Dave Korn <[EMAIL PROTECTED]> wrote: As explained: because it makes it impossible for users running old systems with pre-C99 compilers to build gcc and thereby excludes them from the world of free software, which is the opposite of what we're trying to achieve. Well, I surely und

Libiberty functions

2007-03-08 Thread Paulo J. Matos
Hello all, when using functions from libiberty, I'm for example using xstrdup and xmalloc but free is not defined as free or xfree afail nor strlen so how should I include things? Before system.h and then standard libs or the other way around? I am almost sure it should be the other way around b

Re: Libiberty functions

2007-03-08 Thread Paulo J. Matos
Thank you all for the excellent suggestions, I'll be looking into all of your references this afternoon. Regarding my initial question, I understand I don't need free. My real problem was if I needed to include standard libraries after including system.h or if system.h would provide me free from s

MODIFY_EXPR lhs

2007-03-08 Thread Paulo J. Matos
Hello, Why is it that a left hand side of a modify_expr usually had void_type while other times it has integer, real or something else _type? One pattern I'm detecting is that when the lhs is a user variable it has void type, but when the lhs if a gcc generated variable, the modify expr has the t

Static Chain Argument in call_expr

2007-03-08 Thread Paulo J. Matos
Hello, in tree.def, in DEFTREECODE for call_expr, it says operand 2 is the static chain argument, or NULL. Can someone tell me or reference me to what static chain argument is? Cheers, -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of

Re: Static Chain Argument in call_expr

2007-03-08 Thread Paulo J. Matos
On 3/8/07, Duncan Sands <[EMAIL PROTECTED]> wrote: > in tree.def, in DEFTREECODE for call_expr, it says operand 2 is the > static chain argument, or NULL. Can someone tell me or reference me to > what static chain argument is? It's for nested functions, eg int parent (int n) { int child (int

Re: Massive SPEC failures on trunk

2007-03-12 Thread H. J. Lu
On Mon, Mar 12, 2007 at 05:27:21PM +0100, Richard Guenther wrote: > Most of the problems are fixed, dealII remains with: > > /gcc/spec/sb-balakirew-head-64-2006/x86_64/install-hack/bin/g++ -c -o > quadrature.o -DSPEC_CPU -DNDEBUG -Iinclude -DBOOST_DISABLE_THREADS > -Ddeal_II_dimension=3 -O2 -D

On INTEGER_CST

2007-03-13 Thread Paulo J. Matos
Hello all, INTEGER_CST seems to have TREE_INT_CST_LOW and TREE_INT_CST_HIGH fields (tree.def). Each has 32 bits. 1 - Should I use ints for these fields? 2 - If the INTEGER_CST is negative, is the negative part only in one of the high or low fields, i.e. low is always unsigned and high is always s

On NULL and 0

2007-03-13 Thread Paulo J. Matos
Hello, When programming, due to my journeys through C++ recently, I've been using 0 instead of NULL. Strangely gcc compilation doesn't warn me about it. Is it ok to do this? (So far, I had no problems). Is there anything I should be aware when using 0 instead of NULL in gcc code? Cheers, -- Pau

Re: On NULL and 0

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Dave Korn <[EMAIL PROTECTED]> wrote: On 13 March 2007 13:52, Paulo J. Matos wrote: > Hello, > > When programming, due to my journeys through C++ recently, I've been > using 0 instead of NULL. Strangely gcc compilation doesn't warn me > about it. Is i

Re: On INTEGER_CST

2007-03-13 Thread Paulo J. Matos
On 13 Mar 2007 07:58:41 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: "Paulo J. Matos" <[EMAIL PROTECTED]> writes: > INTEGER_CST seems to have TREE_INT_CST_LOW and TREE_INT_CST_HIGH > fields (tree.def). Each has 32 bits. No, each has type HOST_WIDE_INT. On a

Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
Hi all, In #gcc, it was suggested to use referenced vars to get all the referenced vars for a function. I added to my IPA pass props, PROP_referenced_vars , used push_cfun and then FOR_EACH_REFERENCED_VAR, however, it just segfaults in tree-flow-inline.h:34 : hti->slot = table->entries; It was s

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > int x; > { > int y; > { > int z; > ... > } > ... > } > > just happens to have three statements, all VAR_DECL,x, y, z, without > any reference to the starting and ending blocks. As a side

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > int x; > { > int y; > { > int z; > ... > } > ... > } > > just happens to have three statements, all VAR_DECL,x, y, z, without > any reference to the starting and ending blocks. As a side

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Jeffrey Law <[EMAIL PROTECTED]> wrote: On Tue, 2007-03-13 at 18:09 +0100, Paolo Bonzini wrote: > > int x; > > { > > int y; > > { > > int z; > > ... > > } > > ... > > } > > > > just happens to have three statements, all VAR_DECL,x,

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: Uh, since when did 4.1 support IPA GIMPLE? What do you mean by that? -- Paulo Jorge Matos - pocm at soton.ac.uk http://www.personal.soton.ac.uk/pocm PhD Student @ ECS University of Southampton, UK

Re: Referenced Vars in IPA pass

2007-03-13 Thread Paulo J. Matos
On 3/13/07, Richard Guenther <[EMAIL PROTECTED]> wrote: On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: > On 3/13/07, Paulo J. Matos <[EMAIL PROTECTED]> wrote: > > On 3/13/07, Daniel Berlin <[EMAIL PROTECTED]> wrote: > > > Uh, since when did 4.1 su

The Linux binutils 2.17.50.0.13 is released

2007-03-16 Thread H. J. Lu
This is the beta release of binutils 2.17.50.0.13 for Linux, which is based on binutils 2007 0315 in CVS on sourceware.org plus various changes. It is purely for Linux. All relevant patches in patches have been applied to the source tree. You can take a look at patches/README to see what have been

Re: GCC 4.1.2 generates different pentium instructions

2007-03-21 Thread H. J. Lu
On Wed, Mar 21, 2007 at 09:19:44PM +0100, fafa wrote: > Hi all, > > I noticed that G++ 4.1.2 (on a Pentium 4) generates different instructions > for > lea0x0(%esi),%esi > or > lea0x0(%edi),%edi > with the same meaning but different encoding depending on the switch > "-momit-leaf-fram

Re: We're out of tree codes; now what?

2007-03-23 Thread H. J. Lu
On Fri, Mar 23, 2007 at 09:29:05AM -0400, Doug Gregor wrote: > On 3/23/07, Kaveh R. GHAZI <[EMAIL PROTECTED]> wrote: > >When I brought up the 16-bit option earlier, Jakub replied that x86 would > >get hosed worse because it's 16-bit accesses are not as efficient as it's > >8 or 32 bit ones. > > > >

The Linux binutils 2.17.50.0.14 is released

2007-03-23 Thread H. J. Lu
This is the beta release of binutils 2.17.50.0.14 for Linux, which is based on binutils 2007 0322 in CVS on sourceware.org plus various changes. It is purely for Linux. All relevant patches in patches have been applied to the source tree. You can take a look at patches/README to see what have been

A question on ACX_BUGURL

2007-03-23 Thread H. J. Lu
ACX_BUGURL has [case "$withval" in yes) AC_MSG_ERROR([bug URL not specified]) ;; no) REPORT_BUGS_TO=""; REPORT_BUGS_TEXI="" ;; *) REPORT_BUGS_TO="<$withval>" REPORT_BUGS_TEXI="@uref{`echo $withval | sed 's/@/@@/g'`}" ;; esac]

Re: A question on ACX_BUGURL

2007-03-23 Thread H. J. Lu
On Fri, Mar 23, 2007 at 04:57:03PM +, Joseph S. Myers wrote: > On Fri, 23 Mar 2007, H. J. Lu wrote: > > > It assumes there is no @ in $1. Shouldn't be > > > > REPORT_BUGS_TEXI="@uref{`echo $1 | sed 's/@/@@/g'`}" > > Feel free

Re: A question on ACX_BUGURL

2007-03-23 Thread H. J. Lu
On Fri, Mar 23, 2007 at 06:55:38PM +0100, Andreas Schwab wrote: > "H. J. Lu" <[EMAIL PROTECTED]> writes: > > > REPORT_BUGS_TO="<$1>" > > - REPORT_BUGS_TEXI="@uref{$1}" > > + REPORT_BUGS_TEXI="@uref{`echo $1 |

Re: A question on ACX_BUGURL

2007-03-23 Thread H. J. Lu
On Fri, Mar 23, 2007 at 06:20:10PM -, Dave Korn wrote: > On 23 March 2007 18:11, H. J. Lu wrote: > > > On Fri, Mar 23, 2007 at 06:55:38PM +0100, Andreas Schwab wrote: > >> "H. J. Lu" <[EMAIL PROTECTED]> writes: > >> > >>> RE

Re: RFC: integer division by multiply with invariant reciprocal

2007-03-25 Thread Charles J. Tabony
> So I think that the easiest way to integrate this with the rest of the > compiler is to have a target hook that emits trees to compute SHIFT, INV1 > and INV2. (define_tree_expand "name" "condition" { preparation statements; } ) :-)

Re: A question on ACX_BUGURL

2007-03-26 Thread H. J. Lu
On Mon, Mar 26, 2007 at 09:13:30AM +0200, Paolo Bonzini wrote: > Please do this instead: > > [EMAIL PROTECTED] "$BUGURL" | sed 's/@/@@/g'`} > Will it work with spaces in $BUGURL? H.J.

Re: --disable-multilib broken on x86_64

2007-03-26 Thread H. J. Lu
On Mon, Mar 26, 2007 at 01:57:52PM -0400, Michael Meissner wrote: > On Sat, Mar 24, 2007 at 07:01:40PM +, Martin Michlmayr wrote: > > The following change broke --disable-multilib: > > > > 2007-03-23 Michael Meissner <[EMAIL PROTECTED]> > > H.J. Lu <[EMAIL PROTECTED]> > > > > .

Re: 4.3 bootstrap broken on i386-linux

2007-03-27 Thread H. J. Lu
On Tue, Mar 27, 2007 at 12:28:18PM +0200, François-Xavier Coudert wrote: > >My nightly bootstrap of mainline on i386-linux failed tonight, on > >revision 123192. > > This issue is still not fixed as of now. A diff was posted to PR31344 > with the mention "This isn't a real patch." Is a real patch

Re: 4.3 bootstrap broken on i386-linux

2007-03-27 Thread H. J. Lu
On Tue, Mar 27, 2007 at 02:41:51PM +0100, Richard Guenther wrote: > On 3/27/07, H. J. Lu <[EMAIL PROTECTED]> wrote: > >On Tue, Mar 27, 2007 at 12:28:18PM +0200, François-Xavier Coudert wrote: > >> >My nightly bootstrap of mainline on i386-linux failed tonigh

RFC: Enable __declspec for Linux/x86

2007-04-02 Thread H. J. Lu
Many x86 SSE source codes use __declspec. I'd like to make __declspec available for Linux/x86. We can do one of the following: 1. Define TARGET_DECLSPEC for Linux/x86. 2. Define TARGET_DECLSPEC for x86. 3. Add -mdeclspec. Any comments? H.J.

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread H. J. Lu
On Mon, Apr 02, 2007 at 02:06:15PM -0700, Andrew Pinski wrote: > On 4/2/07, H. J. Lu <[EMAIL PROTECTED]> wrote: > >Many x86 SSE source codes use __declspec. I'd like to make > >__declspec available for Linux/x86. We can do one of the > >following: > > Do t

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread H. J. Lu
On Mon, Apr 02, 2007 at 03:11:06PM -0700, Andrew Pinski wrote: > On 4/2/07, Joe Buck <[EMAIL PROTECTED]> wrote: > >If the Windows version of GCC has to recognize __declspec to function > >as a hosted compiler on Windows, then the work already needs to be done > >to implement it. So what's the harm

Re: Bootstrap is broken on i[345]86-linux

2007-04-03 Thread H. J. Lu
On Wed, Apr 04, 2007 at 12:17:59AM +0200, Steven Bosscher wrote: > On 4/4/07, FX Coudert wrote: > >Bootstrap has been broken since 2007-03-25 on i[345]86-linux. This is > >a decimal float issue reported as PR31344, and is due to a decimal > >float patch, probably the following: > > > >2007-03-23

Re: x86 inc/dec on core2

2007-04-06 Thread H. J. Lu
On Fri, Apr 06, 2007 at 01:27:09PM -0700, Mike Stump wrote: > I was wondering, if: > > /* X86_TUNE_USE_INCDEC */ > ~(m_PENT4 | m_NOCONA | m_CORE2 | m_GENERIC), > > is correct. Should it be: > > /* X86_TUNE_USE_INCDEC */ > ~(m_PENT4 | m_NOCONA | m_GENERIC), > > ? inc/dec has the same p

Re: x86 inc/dec on core2

2007-04-07 Thread H. J. Lu
On Sat, Apr 07, 2007 at 11:29:46AM +0200, Uros Bizjak wrote: > Hello! > > >> I was wondering, if: > >> > >> /* X86_TUNE_USE_INCDEC */ > >> ~(m_PENT4 | m_NOCONA | m_CORE2 | m_GENERIC), > >> > >> is correct. Should it be: > >> > >> /* X86_TUNE_USE_INCDEC */ > >> ~(m_PENT4 | m_NOCONA | m_

Re: x86 inc/dec on core2

2007-04-08 Thread H. J. Lu
On Sun, Apr 08, 2007 at 11:37:43AM +0200, Uros Bizjak wrote: > H. J. Lu wrote: > > >>>inc/dec has the same performance as add/sub on Core 2 Duo. But > >>>inc/dec is shorter. > >>> > >>> > >>What about partial flag register

Re: x86 inc/dec on core2

2007-04-09 Thread H. J. Lu
On Mon, Apr 09, 2007 at 10:51:22AM -0700, Mike Stump wrote: > On Apr 8, 2007, at 8:51 PM, Zuxy Meng wrote: > >Intel's optimization reference manual says that: > > I wasn't going off the documentation... I'd be more interested in > either benchmarks or in recommendations by Intel people that kno

Re: x86 inc/dec on core2

2007-04-09 Thread H. J. Lu
On Mon, Apr 09, 2007 at 11:13:17AM -0700, H. J. Lu wrote: > On Mon, Apr 09, 2007 at 10:51:22AM -0700, Mike Stump wrote: > > On Apr 8, 2007, at 8:51 PM, Zuxy Meng wrote: > > >Intel's optimization reference manual says that: > > > > I wasn't going off the doc

<    1   2   3   4   5   6   7   8   9   >