"error: unable to generate reloads for...", any hints?

2007-02-07 Thread 吴曦
Hi, I am working on gcc 4.1.1 and Itanium architecture. I want to modify the machine description of ia64.md to add some checks before each ld instruction. the following is the original define_insn: (define_insn "*movqi_internal" [(set (match_operand:QI 0 "destination_operand" "=r

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

2007-02-07 Thread Ian Lance Taylor
Hanno Meyer-Thurow <[EMAIL PROTECTED]> writes: > sorry to bother again. I reduced the code (attached) that segfaults here > on Core 2 Duo [1]. If I add -fno-split-wide-types the code does not segfault. > That flag comes from your patchset [2]. > > execute: > # ./cc1 -quiet -m64 -O1 test.c -o tes

Re: Regarding tree traversal

2007-02-07 Thread Prabhanjan Kambadur
Yup, what you answered is indeed what I want Thanks, Anju

Re: Regarding tree traversal

2007-02-07 Thread Mike Stump
On Feb 7, 2007, at 1:05 PM, Prabhanjan Kambadur wrote: I am new to this list, so please excuse any obvious mistakes. I am trying to check if two types are equal or one is derived from the other within the compiler. One of the types is a struct that is defined under the std namescope. How do I sea

Re: Regarding tree traversal

2007-02-07 Thread Mike Stump
On Feb 7, 2007, at 1:05 PM, Prabhanjan Kambadur wrote: I am trying to check if two types are equal equal, what's that? :-) (That's a joke for the rest of the folks here. See the CANONICAL types work that Doug did recently for some of the more recent email threads.) One of the types is

gcc-4.2-20070207 is now available

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

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

2007-02-07 Thread Hanno Meyer-Thurow
On 07 Feb 2007 13:46:43 -0800 Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn. Yes, that is there. I have revision 121690. Hanno

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

2007-02-07 Thread Ian Lance Taylor
Hanno Meyer-Thurow <[EMAIL PROTECTED]> writes: > Hi Ian, > sorry to bother again. I reduced the code (attached) that segfaults here > on Core 2 Duo [1]. If I add -fno-split-wide-types the code does not segfault. > That flag comes from your patchset [2]. > > execute: > # ./cc1 -quiet -m64 -O1 tes

Fw: Scheduling an early complete loop unrolling pass?

2007-02-07 Thread Ayal Zaks
... >Ah, right... I wonder if we can keep the loop structure in place, even >after completely unrolling the loop - I mean the 'struct loop' in >'current_loops' (not the actual CFG), so that the "SLP in loops" would have >a chance to at least consider vectorizing this "loop". Having a "loop" str

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

2007-02-07 Thread Hanno Meyer-Thurow
Hi Ian, sorry to bother again. I reduced the code (attached) that segfaults here on Core 2 Duo [1]. If I add -fno-split-wide-types the code does not segfault. That flag comes from your patchset [2]. execute: # ./cc1 -quiet -m64 -O1 test.c -o test.o Any ideas? Regards, Hanno [1] http://gcc.gnu

Regarding tree traversal

2007-02-07 Thread Prabhanjan Kambadur
I am new to this list, so please excuse any obvious mistakes. I am trying to check if two types are equal or one is derived from the other within the compiler. One of the types is a struct that is defined under the std namescope. How do I search for a "node" that is a TYPE_DECL of the structure th

Re: Bug in value-prof.c:visit_hist

2007-02-07 Thread Eric Botcazou
> This patch bootstraps and passes make check on x86_64. Please do not cross-post. Patches should go to gcc-patches@ only. -- Eric Botcazou

Bug in value-prof.c:visit_hist

2007-02-07 Thread Robert Kidd
There appears to be a bug in value-prof.c:visit_hist rev 121554. This function always returns 0, which causes htab_traverse to exit early. This means that only the first histogram that appears in cfun- >value_histograms->entries is ever checked, so verify_histograms will only indicate an e

Re: which opt. flags go where? - references

2007-02-07 Thread Kenneth Hoste
Hi, On 07 Feb 2007, at 15:22, Diego Novillo wrote: Kenneth Hoste wrote on 02/07/07 08:56: [1] Almagor et al., Finding effective compilation sequences (LCES'04) [2] Cooper et al., Optimizing for Reduced Code Space using Genetic Algorithms (LCTES'99) [3] Almagor et al., Compilation Order Mat

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

2007-02-07 Thread Vladimir Sysoev
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 results. find_stall.pl script which find problem instruction combinations.

Re: which opt. flags go where? - references

2007-02-07 Thread Diego Novillo
Kenneth Hoste wrote on 02/07/07 08:56: [1] Almagor et al., Finding effective compilation sequences (LCES'04) [2] Cooper et al., Optimizing for Reduced Code Space using Genetic Algorithms (LCTES'99) [3] Almagor et al., Compilation Order Matters: Exploring the Structure of the Space of Compila

which opt. flags go where? - references

2007-02-07 Thread Kenneth Hoste
Hello, I'm planning to do some research on the optimization flags available for GCC (currently, using 4.1.1). More in particular, we want to see how we can come up with a set of combinations of flags which allow a tradeoff between compilation time, execution time and code size (as with -O

Re: False ???noreturn??? function does return warnings

2007-02-07 Thread Sergei Organov
Jan Hubicka <[EMAIL PROTECTED]> writes: [...] >> static inline void __attribute__((noreturn)) BUG(void) >> { >> __asm__ __volatile__("trap"); >> __builtin_unreached(); > > This is bit dificult to do in general since it introduces new kind of > control flow construct. It would be better t

Re: A question about macro replacement

2007-02-07 Thread Brooks Moses
[EMAIL PROTECTED] wrote: With following code: [CODE] struct B { int c; int d; }; #define X(a, b, c) \ do\ {\ if (a)\ printf("%d, %d\n", b.c, c);\ else\ printf("%d\n", c);\ }while(0); [/CODE] Why int d = 24; X(1, b,

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 been built, but i

A question about macro replacement

2007-02-07 Thread zhao_bingfeng
Hi, all, With following code: [CODE] struct B { int c; int d; }; #define X(a, b, c) \ do\ {\ if (a)\ printf("%d, %d\n", b.c, c);\ else\ printf("%d\n", c);\ }while(0); [/CODE] Why int d = 24; X(1, b, d); can be compil