Re: c-pch.c:149: undefined reference to `_executable_checksum'

2007-11-13 Thread 马骅
sorry, it's my mistake. I clean all, and rebuild, and find the make will stop at first gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute-DHAVE_CONFIG_H -o cc1-dummy c-lang.o stub-objc.o a

c-pch.c:149: undefined reference to `_executable_checksum'

2007-11-13 Thread 马骅
hi , I have a error when i compile gcc-4.1.2 using buildroot in cygwin gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute-DHAVE_CONFIG_H -o cc1 c-lang.o stub-objc.o attribs.o c-errors.o c

Re: alias and pointers analysis

2007-11-13 Thread deepak poola
hi, i have a some what similar confusion . i am trying to implement reference count algo for c. i need to knw how to manupulate pionters and which file i need to alter. for example if i have some statements like int *p,*q,a; p=&a; q=p; and i need to change the pointer assignments so that i can i

Re: [RFC][modulo-sched] Fix scheduling order within a cycle

2007-11-13 Thread Ayal Zaks
Revital1 Eres/Haifa/IBM wrote on 13/11/2007 15:13:25: > Hello, > > Following our off-line discussion; attached is the dump file of the > problematic testcase. (sms-4.c) > > Here are some relevant details: > > insn 61(write) and 58(read) were swapped, so sms tries to generate some > kind of reg-mov

Re: Cannot unwind through MIPS signal frames withICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Kevin D. Kissell
> > True, though it should perhaps be noted that currently it's only on 4KSc/Sd > > systems (which I know you work on) where it's even possible for the stack > > *not* to have exec permissions, since the classical MIPS MMU gives > > execute permission to any page that is readable. > > Disabling PR

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Andrew Pinski
On 11/13/07, Ralf Baechle <[EMAIL PROTECTED]> wrote: > Old versions of glibc were probable the most notorious users of trampolines. > Objective C also generates them. Since a cacheflush that is a syscall is > required performance is less than great. No Objective-C does not generate them. Objecti

Re: dynamic_cast problem

2007-11-13 Thread Jonathan Wakely
On 13/11/2007, ganesh subramonian <[EMAIL PROTECTED]> wrote: > > Can someone tell me why the cast2 fails but cast1 > works? What effect does the cstyle cast have? It makes the program incorrect. This mailing list is for discussion of GCC development, for help using GCC use the gcc-help list. For

Re: Two questions on register allocation & reload.

2007-11-13 Thread Vladimir Makarov
Alexander Monakov wrote: Hi. I have two questions related to register allocation and reload area. 1. Is there a way to distinguish memory accesses introduced during register allocation (register spills and fills) from "regular" ones? Or, alternatively, is augmenting reload & friends to use s

Two questions on register allocation & reload.

2007-11-13 Thread Alexander Monakov
Hi. I have two questions related to register allocation and reload area. 1. Is there a way to distinguish memory accesses introduced during register allocation (register spills and fills) from "regular" ones? Or, alternatively, is augmenting reload & friends to use specific instructions t

Re: alias and pointers analysis

2007-11-13 Thread Diego Novillo
On Nov 13, 2007 1:38 PM, Fran Baena <[EMAIL PROTECTED]> wrote: >1. Convert the function into GIMPLE form. Implemented in gimplify.c > and c-simplify.c. >2. Find variable references in the code. Implemented in tree-dfa.c. >3. Build a control-flow graph (CFG). Implemented in tree-cfg.c.

Re: alias and pointers analysis

2007-11-13 Thread Fran Baena
Hi again, i have been studing gcc docs to undestand SSA and steps to take to get SSA form. In one GCC online document: http://gcc.gnu.org/projects/tree-ssa/#ssa, the steps to translate to SSA form are listed. Here, i copy and paste the mentioned text: [] Conversion to SSA form is a three step

Re: undocumented optimization options

2007-11-13 Thread Ian Lance Taylor
Razya Ladelsky <[EMAIL PROTECTED]> writes: > This patch adds documentation for fipa-cp and -fipa-matrix-reorg. > > 2007-11-12 Razya Ladelsky <[EMAIL PROTECTED]> > > * doc/invoke.texi (fipa-cp, fipa-matrix-reorg): Add documentation. > > Ok to commit? This is OK. Thanks. Ian

dynamic_cast problem

2007-11-13 Thread ganesh subramonian
I have this example program below. #include #include using namespace std; class Base { public: Base() {} Base(int aa) { a = aa; } int a; char c; virtual void show() { cout << "a=" << a << endl; } }; class Derived:

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread David Daney
David Daney wrote: With the current kernel (2.6.23.1) in my R5000 based O2 it seems impossible for GCC's exception unwinding machinery to unwind through signal frames. The cause of the problems is the ICACHE_REFILLS_WORKAROUND_WAR which puts the sigcontext at an almost impossible to determine

Re: Using crlibm as the default math library in GCC sources

2007-11-13 Thread Geert Bosch
On Nov 13, 2007, at 08:17, Michael Matz wrote: You don't have to preach to the choir, I know why I looked at several libms in the past :-) I just say that crlibm is not it. There are libms which would impose much less work, are more complete, faster and more proven in the real world. Do you

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Ralf Baechle
On Tue, Nov 13, 2007 at 03:37:39PM +0100, Kevin D. Kissell wrote: > True, though it should perhaps be noted that currently it's only on 4KSc/Sd > systems (which I know you work on) where it's even possible for the stack > *not* to have exec permissions, since the classical MIPS MMU gives > execute

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Ralf Baechle
On Tue, Nov 13, 2007 at 03:22:33PM +0100, Franck Bui-Huu wrote: > > > And the stack wouldn't need to have exec permission anymore. > > > > Oh? > > > > extern void frob(void (*)(void)); > > > > int foo(void) > > { > > int x; > > > > void bar(void) > > { > > x

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Franck Bui-Huu
On Nov 13, 2007 3:37 PM, Kevin D. Kissell <[EMAIL PROTECTED]> wrote: > Franck a dit: > > > Another reason is to get rid of the classic trampoline the kernel installs > > > on the stack. On some multiprocessor systems it requires a cacheflush > > > operation to be performed on all processors which

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Kevin D. Kissell
Franck a dit: > > Another reason is to get rid of the classic trampoline the kernel installs > > on the stack. On some multiprocessor systems it requires a cacheflush > > operation to be performed on all processors which is expensive. Having > > the trampoline in a vDSO would solve that. > > > >

Re: Designs for better debug info in GCC

2007-11-13 Thread Michael Matz
Hi, On Mon, 12 Nov 2007, Alexandre Oliva wrote: > > Why does it make sense to have that, rather than notes on instructions > > that say what affect the instruction has on user variables? > > Few instructions need such notes, so the proposal of growing SET by 33% > doesn't quite appeal to me.

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Franck Bui-Huu
On Nov 13, 2007 3:00 PM, Ralf Baechle <[EMAIL PROTECTED]> wrote: > > On Tue, Nov 13, 2007 at 02:14:58PM +0100, Franck Bui-Huu wrote: > > > > > David Daney writes: > > > > > With the current kernel (2.6.23.1) in my R5000 based O2 it seems > > > > > impossible for GCC's exception unwinding machiner

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Ralf Baechle
On Tue, Nov 13, 2007 at 02:14:58PM +0100, Franck Bui-Huu wrote: > > > David Daney writes: > > > > With the current kernel (2.6.23.1) in my R5000 based O2 it seems > > > > impossible for GCC's exception unwinding machinery to unwind through > > > > signal frames. The cause of the problems is th

Re: Using crlibm as the default math library in GCC sources

2007-11-13 Thread Michael Matz
Hi, On Mon, 12 Nov 2007, Geert Bosch wrote: > The big advantage of having a libm with GCC is that, instead of only > being able to rely on the lowest common denominator for accuracy of math > functions, you'll be able to rely on the same precision on all targets. > This is a huge benefit, espe

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Franck Bui-Huu
On Nov 13, 2007 1:10 PM, Ralf Baechle <[EMAIL PROTECTED]> wrote: > > On Tue, Nov 13, 2007 at 11:48:53AM +, Andrew Haley wrote: > > > David Daney writes: > > > With the current kernel (2.6.23.1) in my R5000 based O2 it seems > > > impossible for GCC's exception unwinding machinery to unwind th

Re: Designs for better debug info in GCC

2007-11-13 Thread Michael Matz
Hi, On Mon, 12 Nov 2007, Alexandre Oliva wrote: > With the design I've proposed, it is possible to compute the value of i, No. Only if the function is reservible. There are many which aren't: static inline int foo(int i) { return i % 10; } int foobar(int j) { return foo(j % 20); } int ma

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Ralf Baechle
On Tue, Nov 13, 2007 at 11:48:53AM +, Andrew Haley wrote: > David Daney writes: > > With the current kernel (2.6.23.1) in my R5000 based O2 it seems > > impossible for GCC's exception unwinding machinery to unwind through > > signal frames. The cause of the problems is the > > ICACHE_R

Re: Cannot unwind through MIPS signal frames with ICACHE_REFILLS_WORKAROUND_WAR

2007-11-13 Thread Andrew Haley
David Daney writes: > With the current kernel (2.6.23.1) in my R5000 based O2 it seems > impossible for GCC's exception unwinding machinery to unwind through > signal frames. The cause of the problems is the > ICACHE_REFILLS_WORKAROUND_WAR which puts the sigcontext at an almost > impossib

Re: internal compiler error when compile busybox 1.1.3 using buildroot in cygwin

2007-11-13 Thread Ramana Radhakrishnan
Hi, Please reply to the list also and not only to me . On Nov 13, 2007 2:38 PM, 马骅 <[EMAIL PROTECTED]> wrote: > The target platform is arm, gcc version is 4.0.3, > binutils-2.17.50.0.8, uClibc-0.9.28. You might need to use a newer version of the compiler. The current release series supported by

Re: internal compiler error when compile busybox 1.1.3 using buildroot in cygwin

2007-11-13 Thread Ramana Radhakrishnan
Hi, On Nov 13, 2007 2:29 PM, 马骅 <[EMAIL PROTECTED]> wrote: > hi , when I try to compile the busybox 1.1.3 using buildroot in cygwin. > an internal compiler error happens. > Could any one give a help on this? > > LINK busybox_unstripped > /home/mahua/opt/armbuild26_v0 /build_arm/busybox- > 1

internal compiler error when compile busybox 1.1.3 using buildroot in cygwin

2007-11-13 Thread 马骅
hi , when I try to compile the busybox 1.1.3 using buildroot in cygwin. an internal compiler error happens. Could any one give a help on this? LINK busybox_unstripped /home/mahua/opt/armbuild26_v0 /build_arm/busybox- 1.1.3/networking/telnetd.c: In function 'telnetd_main': /home/mahua/opt/arm

Re: Declaring artificial fields

2007-11-13 Thread Gabriele SVELTO
Ian Lance Taylor wrote: Are you emitting CLI directly from GIMPLE? Yes, we emit gimple right before GIMPLE is transformed into RTL so our code doesn't go through the RTL-only optimizations It may help to look at store_bit_field and extract_bit_field so see how this sort of thing is handled