Objective-C 2.0 support

2009-12-29 Thread Vincent R.
Hi, I would like to provide a kind of iPhone-like api on non apple hardware using Objective-C and I wanted to know if there will be one day support of Objective-C 2.0(at least property syntax) ? Thanks

Re: apple blocks extension

2009-09-25 Thread Vincent R.
On Thu, 24 Sep 2009 12:53:04 -0400, Jason Merrill wrote: > On 09/24/2009 11:22 AM, Chris Lattner wrote: >> Can the lambda (containing X) be copied and put onto a queue? What is >> its type? > > As you said, the lambda has a unique anonymous type. If you want to put > multiple lambdas into a con

Re: apple blocks extension

2009-09-16 Thread Vincent R.
On Wed, 16 Sep 2009 09:20:58 -0700, Ian Lance Taylor wrote: > Mark Mitchell writes: > >> Ian Lance Taylor wrote: >> >>> programs. So it seems to me that any changes that Apple makes to gcc >>> (or gdb, emacs, etc.) can simply be brought over by any interested >>> party. >> >> I'd certainly chec

Re: apple blocks extension

2009-09-15 Thread Vincent R.
On Tue, 15 Sep 2009 16:03:35 +0200, Tristan Gingold wrote: > On Sep 15, 2009, at 3:46 PM, Steven Bosscher wrote: >> >> Hi, >> >> The status is that there is no status, unfortunately (it's an >> interesting extension...). >> >> This extension is not presently implemented in the FSF GCC. >> AFAIU th

apple blocks extension

2009-09-15 Thread Vincent R.
Hi, I just was curious to know if closures in apple gcc(called blocks from what I read) is also in mainline. What is the status about this extension ? Thanks

Re: gcc 4.4.0 on ARM/WinCE float problem

2009-07-23 Thread Vincent R.
; lot >> of things that were aligned to an (odd/even) multiple of 8 may now be >> aligned >> to an (even/odd) multiple instead. > > Also the message thread started by : > > http://gcc.gnu.org/ml/gcc-help/2009-03/msg00107.html > > could be checked... Although takin

Slight tree reorganization for cygming platforms

2009-04-24 Thread Vincent R.
ery new ms derived platform or reference files in i386 folder. i386-w32 (win32) i386-w64 (win64) i386-wce (wince) arm-wce (arm-wince-pe) mips-wce(mips-wince-pe) What do you think ? Vincent R.

Error message when using ASM_DECLARE_FUNCTION_NAME macro

2009-04-15 Thread Vincent R.
Hi, Sorry to cross-post but I don't have any answer on gcc-help. When implementing seh for arm(arm-wince-pe) we have a weird assembler message when declaring ASM_DECLARE_FUNCTION_NAME. This macro calls the arm_seh_header_function and if we are trying to directly access a new field (has_seh) from

Re: generating functions and eh region

2009-04-03 Thread Vincent R.
On Fri, 03 Apr 2009 08:00:33 +0100, Dave Korn wrote: > Cary Coutant wrote: >>> With SEH you can catch that kind of errors and that's why it's so >>> interesting in embedded world >> >> That's also why SEH is a major pain for optimization. The compiler >> would have to identify every instruction t

Re: generating functions and eh region

2009-04-02 Thread Vincent R.
On Wed, 01 Apr 2009 11:22:22 -0700, Ian Lance Taylor wrote: > "Vincent R." writes: > >>> gcc will do the right thing if you put statements in an exception >>> region. >> >> Hum how gcc can do that kind of things, is it some kind of voodoo ? >>

Re: generating functions and eh region

2009-04-01 Thread Vincent R.
On Wed, 01 Apr 2009 08:56:49 -0700, Ian Lance Taylor wrote: > "Vincent R." writes: > >> Yes I think I don't explain things very clearly, so what is important to >> know is that the __except keyword >> can be passed instructions(case 1) or directly a functi

Re: generating functions and eh region

2009-04-01 Thread Vincent R.
On Wed, 01 Apr 2009 07:54:20 -0700, Ian Lance Taylor wrote: > "Vincent R." writes: > >> Now the question is can we declare a function with an eh region and will >> it >> construct prologue and epilogue ? > > The instructions are already in a function. W

generating functions and eh region

2009-04-01 Thread Vincent R.
e can pass directly a function so this time I suppose we only need to declare it as a eh_region. Could you confirm I am understanding well the purpose of eh_region and tell us if we are looking in the right direction. Thanks Vincent R.

Re: Problem with a cross-compiler based on gcc-trunk

2009-03-23 Thread Vincent R.
On Mon, 23 Mar 2009 18:51:50 +, Dave Korn wrote: > Vincent R. wrote: > >> vinc...@vincent-pc:~/projects$ arm-mingw32ce-gcc -std=gnu99 -save-temps >> -I/home/vincent/local/wince/include -DNDEBUG -O3 -c cegcc-errno-bug.c >> -DDLL_EXPORT -DPIC -o libeet_la-eet_lib.o

Problem with a cross-compiler based on gcc-trunk

2009-03-23 Thread Vincent R.
Hi, I am testing a cross-compiler targetting arm-wince-pe and based on gcc-trunk revision r144975 and when compiling a project I get the following error : vinc...@vincent-pc:~/projects$ arm-mingw32ce-gcc -std=gnu99 -save-temps -I/home/vincent/local/wince/include -DNDEBUG -O3 -c cegcc-errno-bug.c

Re: Problem when cross-compiling trunk in libgcc2.c

2009-03-19 Thread Vincent R.
On Thu, 19 Mar 2009 19:58:13 +0200, Ozkan Sezer wrote: > I'm a bit amazed that the prototype for VirtualProtect() is known to the > compiler but the definition of DWORD is not.. In any case, it should be > fixed easily by changing DWORD into unsigned int which is what a > DWORD is always defined a

Problem when cross-compiling trunk in libgcc2.c

2009-03-19 Thread Vincent R.
Hi, I tried to generate a cross-compiler from trunk a few hours ago and I have noticed that libgcc2.c doesn't compile anymore because of the following function : int mprotect (char *addr, int len, int prot) { DWORD np, op; if (prot == 7) np = 0x40; else if (prot == 5) np = 0x20;

Re: Instrument gcc

2009-02-24 Thread Vincent R.
On Tue, 24 Feb 2009 18:31:07 +, Dave Korn wrote: > Laurent GUERBY wrote: >> On Tue, 2009-02-24 at 17:39 +0100, Vincent R. wrote: >>> And what if I want to debug a cross compiler, there is no cc1 or cc1plus >>> with the toolchain I use: >> >> Try

Re: Instrument gcc

2009-02-24 Thread Vincent R.
On Tue, 24 Feb 2009 16:43:08 +0100, Richard Guenther wrote: > On Tue, Feb 24, 2009 at 4:38 PM, Vincent R. > wrote: >> Hi, >> >> even if I am simple mortal I would like to understand or at least follow >> what is going on with gcc. >> Generally when I ru

Instrument gcc

2009-02-24 Thread Vincent R.
Hi, even if I am simple mortal I would like to understand or at least follow what is going on with gcc. Generally when I run gdb and try to breakpoint inside a function I get a undefined symbol or something like that. I suppose this is because gcc is not a simple static exe but depends on other bi

Code transformation and optimization

2009-02-20 Thread Vincent R.
is with optimization because the code just after goto shouldn't be discarded even if it appears to be stupid because it cannot be executed. Thanks Vincent R.

Re: GCC and the Visual Basic programmer....

2009-02-16 Thread Vincent R.
On Tue, 17 Feb 2009 09:03:36 +1100, Carl wrote: > On Tue, Feb 17, 2009 at 8:38 AM, Farlie A > wrote: > >> In terms of Visual Basic code, there is of course no 'free' compiler for >> VB >> code written prior >> to VB.NET., and again the EULA for the runtime support would prevent use >> of >> the

ARM : code less efficient with gcc-trunk ?

2009-02-16 Thread Vincent R.
Hi, I am comparing the assembly generated by compilers targeting arm-wince platform and it seems that cross-compiler from gcc-trunk is less optimized than an old one based on gcc 4.1.x Here is the comparison obtained from objdump: cegcc-4.1.x : 00011000 : 11000: e92d40f0push

Re: cross-compilation, deprecated option and libgcc

2009-01-28 Thread Vincent R.
On Tue, 27 Jan 2009 09:16:10 +1100, Ben Elliston wrote: > On Mon, 2009-01-26 at 14:19 +0100, Vincent R. wrote: > >> 1) When I compile bootstrap gcc, I am using make all-gcc and make >> install-gcc and it seems it doesn't build libgcc anymore. > > I think that's

cross-compilation, deprecated option and libgcc

2009-01-26 Thread Vincent R.
Hi, I am still trying to generate a cross-compiler targeting wince-pe from trunk. Last time it seems nobody was able to answer so now I am going to ask simpler questions : 1) When I compile bootstrap gcc, I am using make all-gcc and make install-gcc and it seems it doesn't build libgcc anymore.

cross-compilation and crt issues

2009-01-21 Thread Vincent R.
Hi, I am trying to generate a cross-compiler targetting ARM wince plateform from gcc trunk and I have an error message when compiling mingw and regarding linker My tree is organized like this : src + binutils + gcc + mingw + w32api + build-mingw32ce and I am using a script to build the differen

Re: prologue length

2009-01-16 Thread Vincent R.
On Fri, 16 Jan 2009 14:13:58 -0800, Ian Lance Taylor wrote: > "Vincent R." writes: > >> To locate appropriate handlers when an exception occurs in Win32 >> environments other than x86, > > Note that as far as I know, gcc only supports win32 for ARM and x8

Re: prologue length

2009-01-16 Thread Vincent R.
On Fri, 16 Jan 2009 08:37:20 -0800, Ian Lance Taylor wrote: > "Vincent R." writes: > >> I am working on a gcc-4.1.2 and I would like to know how the prologue >> length from a function can be calculated. > > The question is not well formed. The instruction

prologue length

2009-01-16 Thread Vincent R.
Hi, I am working on a gcc-4.1.2 and I would like to know how the prologue length from a function can be calculated. Indeed I am trying to evaluate what needs to be done to implement SEH and one requirement is to be able to fill a structure holding information like function length and prologue leng