RE: -mfmovd enabled by default for SH2A but not for SH4

2008-02-25 Thread Naveen H.S.
Hi, >> Have you got this error on the real SH2A-FPU hardware? Yes, we got this error on SH72513(SH2A) hardware. When the same code is run on simulator, the "address error" occurs on encountering the "fmov.d" instruction. >> couldn't find any description for 8-byte alignment restriction for >> dou

Re: Redundant logical operations left after early splitting

2008-02-25 Thread Jeff Law
[EMAIL PROTECTED] wrote: If I understand correctly: Prop. of "0" causes simplfy-rtx to create NOP from OR Rx,0 This NOP (deletion?) creates another set of potential uses - as now the prior RHS def now passes straight thru to a new set of uses - but we miss those new uses. (which in the testc

Re: Redundant logical operations left after early splitting

2008-02-25 Thread Paolo Bonzini
What's important here is that reg1 is being set multiple times. You'd be better off if you can twiddle the splitters to avoid this behavior. If you need a new pseudo, then get one :-) I agree with this, but... Once you do that, local would propagate these things better. That still leaves t

Re: -mfmovd enabled by default for SH2A but not for SH4

2008-02-25 Thread Christian BRUEL
Hello, Looks like you are mixing ABIs. what is you fpscr setting ? From my understanding, if the fpscr PR bit is set to 0 the 64-bit operation behaves as 2 32 bit operations (paired single precision). so I don't think you get an address error here. The well defined behavior of the fmov instr

Re: -mfmovd enabled by default for SH2A but not for SH4

2008-02-25 Thread Kaz Kojima
"Naveen H.S." <[EMAIL PROTECTED]> wrote: > Yes, we got this error on SH72513(SH2A) hardware. When the same code > is run on simulator, the "address error" occurs on encountering the > "fmov.d" instruction. [snip] > It is mentioned that "Double longword data accessed from other than > double longwo

need help

2008-02-25 Thread Mag cool
hi, i am a beginner in this tech world. i want to learn 1/how to do programming in c in unix or linux. i don't know anything about linux. where to start. Never miss a thing. Make Yahoo your home page. h

need help

2008-02-25 Thread Mag cool
hi, i am a beginner in this tech world. i want to learn how to do programming in c in unix or linux. i don't know anything about linux. where to start. Looking for last minute shopping deals? Find them

RE: -mfmovd enabled by default for SH2A but not for SH4

2008-02-25 Thread Naveen H.S.
Hi, >> Although one can explicitly provide his own fpscr setting as >> Christian said and can use appropriate options, defaulting -mdalign >. for TARGET_SH2A_DOUBLE might be more robust for users. Yes, we completely agree that using the option "-mdalign" would solve the "address error" problem i

Re: need help

2008-02-25 Thread Alexey Zaytsev
On Mon, Feb 25, 2008 at 3:23 PM, Mag cool <[EMAIL PROTECTED]> wrote: > hi, i am a beginner in this tech world. i want to learn 1/how to do > programming in c in unix or linux. i don't know anything about linux. where > to start. > Try this book: http://www.advancedlinuxprogramming.com/ > > >

Re: -mfmovd enabled by default for SH2A but not for SH4

2008-02-25 Thread Kaz Kojima
"Naveen H.S." <[EMAIL PROTECTED]> wrote: > Yes, we completely agree that using the option "-mdalign" would solve > the "address error" problem in the present testcase. We had tried the > similar way to solve the problem. However, we observed that "-mdlaign" > option would not guarantee the stack va

Re: Redundant logical operations left after early splitting

2008-02-25 Thread hutchinsonandy
Jeff, I take your point and will go back over my splitters as I know one instance in which a splitter can create such an issue. (I should checlk for a constant operand after simplifying an operand). In the cases I looked at before this was not the situation. Each splitter - or subreg loweri

4.3 regression: -frtti and #pragma visibility

2008-02-25 Thread Benjamin Smedberg
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I discovered a GCC 4.3 regression today while compiling Mozilla in debug mode (with RTTI), and submitted a reduced testcase in PR35368. I'm happy to submit a patch if somebody can point me in the right direction: I presume there's a magic tree node s

ObjC 2.0 on the GCC trunk...

2008-02-25 Thread Gregory John Casamento
Hi guys, I'm interested in what if any issues exist in bringing ObjC 2.0 to the trunk of GCC. I spoke with someone recently who claimed that there were GPLv3 problems with Apple's code, is this correct? Thanks, GJC -- Gregory Casamento -- Principal Consultant - OLC, Inc # GNUstep Chief Maint

When the R.I.P. of 4.1.x branch for?

2008-02-25 Thread J.C. Pizarro
The 4.0.x branch was R.I.P.ed. Commiting 4.1.x, 4.2.x, 4.3.x and 4.4.x means 4 times of efforts than 3 times. They are very similar in design, they use TreeSSA, autovectoring, etc. It's recommended to be online 4.2.x, 4.3.x and 4.4.x branches. I want to see a comparison of performances between 4

Bootstrap failure on x86_64

2008-02-25 Thread Uros Bizjak
Hello! A recent patch introduced this bootstrap breakage on x86_64: Entering directory `/home/uros/gcc-build/x86_64-unknown-linux-gnu/libstdc++-v3/include' if [ ! -d "./x86_64-unknown-linux-gnu/bits/stdc++.h.gch" ]; then \ mkdir -p ./x86_64-unknown-linux-gnu/bits/stdc++.h.gch; \

Re: SSA alias representation

2008-02-25 Thread Fran Baena
If a name tag is associated to a ssa name, ¿when does it make sense to version a name tag? (If it does) 2008/2/21, Diego Novillo <[EMAIL PROTECTED]>: > On 2/21/08 1:13 PM, Fran Baena wrote: > > 2008/2/21, Diego Novillo <[EMAIL PROTECTED]>: > >> On 2/19/08 2:27 PM, Fran Baena wrote: > >> > Hi e

Re: SSA alias representation

2008-02-25 Thread Diego Novillo
On Mon, Feb 25, 2008 at 10:25, Fran Baena <[EMAIL PROTECTED]> wrote: > If a name tag is associated to a ssa name, ¿when does it make sense to > version a name tag? (If it does) When there are no symbols in the pointer's points-to set. Diego.

Re: Idea to gain the time of wider testing.

2008-02-25 Thread Ben Elliston
On Fri, 2008-02-22 at 20:56 +0100, J.C. Pizarro wrote: > I've ideas when there are repetitive processes as e.g. the testing processes. > > Q1. Why to lose time testing the same reiterated files that always had worked > for many months or years? To use an old expression, "past performance is

Re: Bootstrap failure on x86_64

2008-02-25 Thread H.J. Lu
On Mon, Feb 25, 2008 at 9:55 AM, Uros Bizjak <[EMAIL PROTECTED]> wrote: > Hello! > > A recent patch introduced this bootstrap breakage on x86_64: > > Revision: 132629 > > Last Changed Author: rguenth > Last Changed Rev: 132629 > Last Changed Date: 2008-02-25 16:10:34 +0100 (Mon, 25 Feb 2008) >

Re: Bootstrap failure on x86_64

2008-02-25 Thread Richard Guenther
On Mon, 25 Feb 2008, H.J. Lu wrote: > On Mon, Feb 25, 2008 at 9:55 AM, Uros Bizjak <[EMAIL PROTECTED]> wrote: > > Hello! > > > > A recent patch introduced this bootstrap breakage on x86_64: > > > > Revision: 132629 > > > > Last Changed Author: rguenth > > Last Changed Rev: 132629 > > Last Cha

Re: Idea to gain the time of wider testing.

2008-02-25 Thread Robert Dewar
Ben Elliston wrote: On Fri, 2008-02-22 at 20:56 +0100, J.C. Pizarro wrote: I've ideas when there are repetitive processes as e.g. the testing processes. Q1. Why to lose time testing the same reiterated files that always had worked for many months or years? To use an old expression, "past

Re: Bootstrap failure on x86_64

2008-02-25 Thread Richard Guenther
On Mon, 25 Feb 2008, Richard Guenther wrote: > On Mon, 25 Feb 2008, H.J. Lu wrote: > > > On Mon, Feb 25, 2008 at 9:55 AM, Uros Bizjak <[EMAIL PROTECTED]> wrote: > > > Hello! > > > > > > A recent patch introduced this bootstrap breakage on x86_64: > > > > > > Revision: 132629 > > > > > > Last C

Re: Bootstrap failure on x86_64

2008-02-25 Thread H.J. Lu
On Mon, Feb 25, 2008 at 12:13 PM, Richard Guenther <[EMAIL PROTECTED]> wrote: > > On Mon, 25 Feb 2008, Richard Guenther wrote: > > > On Mon, 25 Feb 2008, H.J. Lu wrote: > > > > > On Mon, Feb 25, 2008 at 9:55 AM, Uros Bizjak <[EMAIL PROTECTED]> wrote: > > > > Hello! > > > > > > > > A recent p

Re: GTY as attributes

2008-02-25 Thread Tom Tromey
> "Taras" == Taras Glek <[EMAIL PROTECTED]> writes: Taras> typedef struct Name GTY(()) { Taras> }; Taras> These would parse fine as attributes if they were more like Taras> typedef struct GTY(()) Name { Taras> }; Taras> Would you be willing to accept such a change? I couldn't approve or reje

global declarations

2008-02-25 Thread Dasarath Weeratunge
Once the files have been completely parsed, how can I traverse through all global declarations (e.g. types and variables) ? I can find the functions by traversing the call graph but would like to know how to do the same for types and variables. Also is there a way to find a decl from its UID? Than

Re: When the R.I.P. of 4.1.x branch for?

2008-02-25 Thread Samuel Tardieu
> "JCP" == J C Pizarro <[EMAIL PROTECTED]> writes: JCP> I want to see a comparison of performances between 4.1.x, 4.2.x JCP> and 4.4.x to know how they have been evolved. What prevents you from doing the comparaison yourself using SVN? Sam -- Samuel Tardieu -- [EMAIL PROTECTED] -- http://

Re: Bootstrap failure on x86_64

2008-02-25 Thread Richard Guenther
On Mon, 25 Feb 2008, H.J. Lu wrote: > Uros failed with --enable-checking=release and I failed with > --enable-checking=assert. > You can try either one. That reproduces it. I have reverted the patch for now. Richard.

gcc-4.1-20080225 is now available

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

optimizing predictable branches on x86

2008-02-25 Thread Nick Piggin
Hi list, gcc-4.3 appears to make quite heavy use of cmov to eliminate conditional branches on x86(-64) architecture, even for those branches that are determined to be predictable. The problem with this is that the data dependancy introduced by the cmov can restrict execution, wheras a predicted b

RE: [discuss] When is RBX used for base pointer?

2008-02-25 Thread Ye, Joey
Honza, > Honza said: > I am bit confused here. If I wanted a free register in prologue only, I > would probably look at the caller saved ones. But I gues it is just > typo. > I don't see much value in making the register callee-saved especially if > you say that virtual reg (pseudo?) is used af