Re: support single predicate set instructions in GCC-4.1.1

2007-09-25 Thread 吴曦
2007/9/25, Jim Wilson <[EMAIL PROTECTED]>: > ÎâêØ wrote: > > (define_insn "*shift_predicate_cmp" > > [(set (const_int 0) > > (and:BI (and:BI (match_operand:BI 1 "register_operand" "c") > > (and:BI (match_operand:DI 2 "gr_reg_or_8bit_adjusted_operand" > > "rL") > >

getting operands of call arguments and return values

2007-09-25 Thread Alexander Sotirov
I'm working on a vulnerability detection pass for GCC, using a combination of taint and value range propagation. The first version of the code (and a paper describing the approach) is available at http://gcc.vulncheck.org/ The tree-ssa infrastructure was very useful for implementing this type of a

Re: Q about assignment expansion

2007-09-25 Thread Andrew Pinski
On 9/24/07, DJ Delorie <[EMAIL PROTECTED]> wrote: > > I'm trying to get libfortran (all_l4.c) building for m32c, and it > complains (eventually) that it can't add PSI (pointer) and HI > (integer) types together. I've backtracked to the statement just > before it's lowered to rtl, see below. Note

bootstrap error on ppc64

2007-09-25 Thread Revital1 Eres
Hello, I get the following error while running make BOOT_CFLAGS='-O2' bootstrap on ppc64 with --enable-checking on r128689: libtool: compile: /home/revitale/check_dump_sms/new_build/./gcc/xgcc -shared-libgcc -B/home/revitale/check_dump_sms/new_build/./gcc -nostdinc++ -L/home/revitale/check_du

Question about how to have an target specific type-based operator

2007-09-25 Thread Kai Tietz
Hi, I would like to implement a type-based operator (like sizeof, alignof, etc.) for mingw32 / cygwin targets, which allows to interprete type-based attributes. For DCOM support it would be helpful to have the __uuidof (type) returning the string reference provided by a type-attribute uuid ("a

Re:Re:AST-tree in GCC

2007-09-25 Thread Johan Bohlin
Diego what do you mean by the IL ? Thomas -fdump-tree-gimple-raw dosent include global variable that are not used i functions. I need something like -fdump-translation-unit that dosent cut the body of the function. >Debugging dumps are always incomplete. Mostly by design, but in >general becaus

Long standing ppc64 regression. Any workarounds?

2007-09-25 Thread Diego Novillo
I have not been able to get a clean libstdc++ build on ppc64 for more than a month (since 2007-08-23). The failure is always the same. While building libstdc++/system-error.cc, I get: /home/dnovillo/perf/sbox/gcc/local.ppc64/src/libstdc++-v3/src/system_error.cc:67: error: std::system_category cau

Re: Long standing ppc64 regression. Any workarounds?

2007-09-25 Thread David Edelsohn
> Diego Novillo writes: Diego> I have not been able to get a clean libstdc++ build on ppc64 for more Diego> than a month (since 2007-08-23). The failure is always the same. Diego> While building libstdc++/system-error.cc, I get: Diego> /home/dnovillo/perf/sbox/gcc/local.ppc64/src/libstdc++-

Re: bootstrap error on ppc64

2007-09-25 Thread David Edelsohn
> Revital1 Eres writes: Revital> I get the following error while running make BOOT_CFLAGS='-O2' bootstrap Revital> on ppc64 with --enable-checking on r128689: Revital> ../../../../gcc/libstdc++-v3/src/system_error.cc -o system_error.o >> /dev/null 2>&1 Revital> make[4]: *** [system_error.l

Re: Q about assignment expansion

2007-09-25 Thread DJ Delorie
> From what I recall and what I remember the main issue is that IV-opts > like producing: > [MEM index: ] > Note it might be better to use debug_generic_expr instead of > debug_tree (it is easier to read in most cases). I like that! Not quite enough info for some needs (like it's missing the ma

support tnat instruction on IA-64. error occurs in bundling. help

2007-09-25 Thread 吴曦
Hi I am working on IA-64 and GCC-4.1.1 I modify ia64.md to support tnat instruction. More specifically, I add the following define_insn: (define_insn "shift_tnat" [(set (match_operand:BI 0 "register_operand" "=c") (unspec:BI [(match_operand:DI 1 "gr_regist

Re: Long standing ppc64 regression. Any workarounds?

2007-09-25 Thread Benjamin Kosnik
> I have not been able to get a clean libstdc++ build on ppc64 for more > than a month (since 2007-08-23). The failure is always the same. > While building libstdc++/system-error.cc, I get: > > /home/dnovillo/perf/sbox/gcc/local.ppc64/src/libstdc++-v3/src/system_error.cc:67: > error: std::system

Re: Long standing ppc64 regression. Any workarounds?

2007-09-25 Thread Diego Novillo
On 9/25/07, Benjamin Kosnik <[EMAIL PROTECTED]> wrote: > Hey Diego. It looks like David has state on this: it appears as if the > ppc32 fixes are not enough to get ppc64 back together. Yeah. I am now using --with-cpu=default32 at configure time. That seems to fix things enough to get libstdc++

Re: support single predicate set instructions in GCC-4.1.1

2007-09-25 Thread Jim Wilson
On Tue, 2007-09-25 at 15:13 +0800, 吴曦 wrote: > propagate_one_insn), I don't understand why GCC fails the computation > of liveness if there is no optimization flag :-(. There is probably something else happening with -O that is recomputing some liveness or CFG info. For instance, the flow2 pass w

Re: GCC 4.3.0 Status Report (2007-09-04)

2007-09-25 Thread Martin Jambor
On Sun, Sep 09, 2007 at 11:42:55AM -0700, Mark Mitchell wrote: > Other than that, the patch looks pretty good to me. However, I'd like a > middle-end maintainer to review the patch. Ian, Diego, Roger, would one > of you please take a look? Well... ping? > to use the --param mechanism. Our pol

Re: Re:AST-tree in GCC

2007-09-25 Thread Diego Novillo
On 9/25/07, Johan Bohlin <[EMAIL PROTECTED]> wrote: > Diego what do you mean by the IL ? IL stands for Intermediate Language. Sorry.

Re: Q about assignment expansion

2007-09-25 Thread Andrew Pinski
On 9/25/07, DJ Delorie <[EMAIL PROTECTED]> wrote: > I like that! Not quite enough info for some needs (like it's missing > the machine mode and rtl assignments, which I often need), but much > cleaner: > > MEM[base: D.3720 + (unsigned int) &sstride] = MEM[base: D.3718, offset: 10] Usually I use d

Re: support tnat instruction on IA-64. error occurs in bundling. help

2007-09-25 Thread Jim Wilson
ÎâêØ wrote: [(set_attr "itanium_class" "tnat")]) The itanium_class names are based on info from the Itanium Processor Microprocessor Reference by the way. I believe the problem is that you didn't add info to the DFA scheduler dscriptions in the itanium1.md and itanium2.md files fo

Re: support tnat instruction on IA-64. error occurs in bundling. help

2007-09-25 Thread 吴曦
2007/9/26, Jim Wilson <[EMAIL PROTECTED]>: > ÎâêØ wrote: > > [(set_attr "itanium_class" "tnat")]) > > The itanium_class names are based on info from the Itanium Processor > Microprocessor Reference by the way. > > I believe the problem is that you didn't add info to the DFA scheduler > dscr

Re: support tnat instruction on IA-64. error occurs in bundling. help

2007-09-25 Thread Jim Wilson
On Wed, 2007-09-26 at 08:11 +0800, 吴曦 wrote: > Truly thanks, I have discovered this problem after I sent the first > mail, and I found itanium1.md and itanium2.md describe the pipeline > hazard, but they are really complex... :-(. Is there any guide or docs > on this? thanks There is Itanium micro

Re: Q about assignment expansion

2007-09-25 Thread DJ Delorie
> So it looks like we have D.3720 + (unsigned int) &sstride which > looks funny in of it self. Can you provide the tree dump before > iv-opts and the one of iv-opts? It might explain what is going > wrong? http://people.redhat.com/dj/all_l4.c.105t.cunroll http://people.redhat.com/dj/all_l4.c.10

Re: Q about assignment expansion

2007-09-25 Thread DJ Delorie
Also, http://people.redhat.com/dj/all_l4.i and ./cc1 -fpreprocessed all_l4.i -quiet -dumpbase all_l4.c -mcpu=m32cm \ -auxbase-strip all_l4.o -g -O2 -O2 -Wall -Wstrict-prototypes \ -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings \ -std=gnu99 -version -o all_l4.s -dap -fdu