Re: Where is DESTDIR got defined in gcc makefile?

2008-12-08 Thread Amker . Cheng
I used buildroot tool to build GCC and did not get the make command line, so didn't find it. Thanks. On Sun, Dec 7, 2008 at 11:24 PM, Brian Dessent <[EMAIL PROTECTED]> wrote: > "Amker.Cheng" wrote: > >> Here the destination directory is $(DESTDIR)$(libexecsubdir)/, but >> where is DESTDIR defined?

Re: questions about "find_if_case"

2008-12-08 Thread Steven Bosscher
On Mon, Dec 8, 2008 at 8:54 AM, Eric Fisher <[EMAIL PROTECTED]> wrote: > Hi, > > For if-conversion pass (pass_if_after_combine), we can see there're > some IF-THEN-ELSE cases which we try to transform. Let's say > find_if_case_1, for an example. > > (1) >if (test) goto over; // x not l

[ARM] Implement __builtin_bswap32() via ARMv6 "rev" instruction

2008-12-08 Thread Alexandre Pereira Nunes
A patch follows. I didn't take care of the scheduling case the correct way, tought (aliased to clz class). Can someone please review (works for me (c)) and merge? -- Alexandre --- gcc-4.3.2/gcc/config/arm/arm.md~2008-12-05 18:17:09.0 -0200 +++ gcc-4.3.2/gcc/config/arm/arm.md 2008-

Re: [ARM] Implement __builtin_bswap32() via ARMv6 "rev" instruction

2008-12-08 Thread Paul Brook
On Monday 08 December 2008, Alexandre Pereira Nunes wrote: > A patch follows. I didn't take care of the scheduling case the correct > way, tought (aliased to clz class). Please read http://gcc.gnu.org/contribute.html In particular you need a copyright assignment, ChangeLog entry, and testing. Yo

Re: Reload generating memory ref in memory ref

2008-12-08 Thread Richard Henderson
Michael Eager wrote: Another possibility is illegal rtl sharing. If you mean that an rtx would be pointed to by two different insn's, how would that happen? (Excluding someone mucking things up deliberately or accidentally.) Generally this sort of mistake happens in the backend somewhere. E.

Re: [ARM] Implement __builtin_bswap32() via ARMv6 "rev" instruction

2008-12-08 Thread Alexandre Pereira Nunes
> 2008/12/8 Paul Brook <[EMAIL PROTECTED]>: > On Monday 08 December 2008, Alexandre Pereira Nunes wrote: >> A patch follows. I didn't take care of the scheduling case the correct >> way, tought (aliased to clz class). > > Please read http://gcc.gnu.org/contribute.html > > In particular you need a c

Re: [ARM] Implement __builtin_bswap32() via ARMv6 "rev" instruction

2008-12-08 Thread Andrew Thomas Pinski
Sent from my iPhone On Dec 8, 2008, at 9:37 AM, "Alexandre Pereira Nunes" <[EMAIL PROTECTED] > wrote: 2008/12/8 Paul Brook <[EMAIL PROTECTED]>: On Monday 08 December 2008, Alexandre Pereira Nunes wrote: A patch follows. I didn't take care of the scheduling case the correct way, tought (a

Re: [ARM] Implement __builtin_bswap32() via ARMv6 "rev" instruction

2008-12-08 Thread Ian Lance Taylor
"Alexandre Pereira Nunes" <[EMAIL PROTECTED]> writes: > I can provide these, tough as for the copyright assignment, the > document mentions I can declare the changes in public domain, and > since I already published something (which may or may not be used by > someone in the future), I hereby

Re: [ARM] Implement __builtin_bswap32() via ARMv6 "rev" instruction

2008-12-08 Thread Nils Pipenbrinck
Ian Lance Taylor wrote: Unfortunately we need more than that: we need a signed piece of paper disclaiming copyright. This is something I stumbled over some month ago when I studied the submission rules: I am now a lawyer, but as far as I know in my country (germany) it is not possible to

TLS on darwin

2008-12-08 Thread IainS
Hi, following on from http://gcc.gnu.org/ml/gcc/2008-05/msg00202.html should I expect "--enable-tls" to produce a functional result on {intel,powerpc}-*-darwin{8,9} or should all testcases with thread local requirements be wrapped with { dg-require-effective-target tls_runtime } thanks, Iai

Re: TLS on darwin

2008-12-08 Thread Andrew Pinski
On Mon, Dec 8, 2008 at 1:04 PM, IainS <[EMAIL PROTECTED]> wrote: > following on from http://gcc.gnu.org/ml/gcc/2008-05/msg00202.html As I mentioned; it is emulated. So it works, by default, though it is not native support (that is there is no ABI helper that speeds it up). In fact tls_runtime sh

Re: [ARM] Implement __builtin_bswap32() via ARMv6 "rev" instruction

2008-12-08 Thread Ian Lance Taylor
Nils Pipenbrinck <[EMAIL PROTECTED]> writes: > I am now a lawyer, but as far as I know in my country (germany) it is > not possible to decline copyright (called Urheberrecht here - it's not > exactly the same but close). You can give away the usage-rights to > your code at will and for free (by pu

Re: Reload generating memory ref in memory ref

2008-12-08 Thread Jeff Law
Richard Henderson wrote: Michael Eager wrote: Another possibility is illegal rtl sharing. If you mean that an rtx would be pointed to by two different insn's, how would that happen? (Excluding someone mucking things up deliberately or accidentally.) Generally this sort of mistake happens in

Re: questions about "find_if_case"

2008-12-08 Thread Eric Fisher
> It avoids a branch instruction. For the first case, the path via "x = > a" is "test -> jump -> set -> jump" (where "set" is th "x = > a"-instruction). This becomes "set -> test -> jump". So one jump > less. Thank you very much for the detailed explanation. However, I have a doubt here. IMO, t

redundancy code

2008-12-08 Thread tian xiaonan
Hello, I used the spim5 gcc 4.0.2 to study gcc port. but I found there are lots of the 'move' insns redundancy code. For example, the C code like this: i=1; i = i + 5; the Spim compiler will generate the code like the following(PS:RX is the register) . li R0, #1 SW R0, 0(MEM) LW R0

gcc -r

2008-12-08 Thread Ralf Corsepius
Hi, 2 questions: 1) Is "gcc -r" officially supported by gcc? It apparently works, but I can't find it documented anywhere in GCC's documentation. 2) Is "gcc -r" any different from using "gcc -Wl,-r"? Ralf

Re: Reload generating memory ref in memory ref

2008-12-08 Thread Michael Eager
Jeff Law wrote: Richard Henderson wrote: Michael Eager wrote: Another possibility is illegal rtl sharing. If you mean that an rtx would be pointed to by two different insn's, how would that happen? (Excluding someone mucking things up deliberately or accidentally.) Generally this sort of m