Re: Seeking suggestion

2009-05-22 Thread Jamie Prescott
> From: Ian Lance Taylor > To: Jamie Prescott > Cc: gcc@gcc.gnu.org > Sent: Friday, May 22, 2009 5:45:21 PM > Subject: Re: Seeking suggestion > > Jamie Prescott writes: > > > But now I get and invalid rtx sharing from the push/pop parallels: > > This normally means that you need a copy_rtx so

Re: Seeking suggestion

2009-05-22 Thread Ian Lance Taylor
Jamie Prescott writes: > But now I get and invalid rtx sharing from the push/pop parallels: This normally means that you need a copy_rtx somewhere. Different insns may not share data structure. Ian

Re: Seeking suggestion

2009-05-22 Thread Jamie Prescott
> From: Jamie Prescott > To: gcc@gcc.gnu.org > Sent: Friday, May 22, 2009 10:36:47 AM > Subject: Seeking suggestion > > > Suppose you're writing the backend for a VM supporting two architectures, in > which > one of them clobbers the CC registers for certain instructions, while the > other >

Re: [PATCH][RFC] Adjust the middle-end memory model

2009-05-22 Thread Mark Mitchell
Richard Guenther wrote: > Yes, that's the primary motivation of this patch. Can I take this > as an approval for the C++ frontend changes? OK. -- Mark Mitchell CodeSourcery m...@codesourcery.com (650) 331-3385 x713

Re: false assertion make_decl_rtl, at varasm.c:1273

2009-05-22 Thread Eric Botcazou
> make_decl_rtl is used to generate the RTL to refer to some static > object. It should not be called for a local variable; a local variable > should be turned into a pseudo-register instead. It's hard to know what > is wrong with your pass; you should look at what is calling > make_decl_rtl with

Re: false assertion make_decl_rtl, at varasm.c:1273

2009-05-22 Thread Ian Lance Taylor
Kouadri Mostéfaoui Abdellah Medjadji writes: > I'm working on a new transformation pass. > During this pass the whole TREE of a function is parsed using tree > walker, and code is inserted (using BIND_EXPRs). > The problem is that i'm having a false assertion > > "at make_decl_rtl, at varasm

Seeking suggestion

2009-05-22 Thread Jamie Prescott
Suppose you're writing the backend for a VM supporting two architectures, in which one of them clobbers the CC registers for certain instructions, while the other does not. The instructions themselves are exactly the same. What is the best/shortest/more-elegant way to write this, possibly w/out

XARK Backend with OpenMP

2009-05-22 Thread José Manuel Andión Fernández
Dear GCC developers. My name is José Manuel Andión Fernández and I have just started to work at University of A Coruña on porting XARK (eXtensible Compiler for Automatic Recognition of Computational Kernels, http://doi.acm.org/10.1145/1391956.1391959) to GCC. The main goal of this project is t

RE: [4.5] Find more autoinc addressing for induction variables

2009-05-22 Thread Rahul Kharche
Hi, Its fixed for me. I was missing get_ref_tag () in copy_ref_info () when I patched against 4.5. Thanks again, Rahul -Original Message- From: Bernd Schmidt [mailto:bernds_...@t-online.de] Sent: 22 May 2009 16:56 To: Rahul Kharche Cc: gcc@gcc.gnu.org; sdkteam-all Subject: Re: [4.5] Fin

RE: [4.5] Find more autoinc addressing for induction variables

2009-05-22 Thread Rahul Kharche
4.4.1, GCC 4.4 branch. Will I need dependent changes from the 4.5 branch? Many Thanks, Rahul -Original Message- From: Bernd Schmidt [mailto:bernds_...@t-online.de] Sent: 22 May 2009 16:56 To: Rahul Kharche Cc: gcc@gcc.gnu.org; sdkteam-all Subject: Re: [4.5] Find more autoinc addressing

false assertion make_decl_rtl, at varasm.c:1273

2009-05-22 Thread Kouadri Mostéfaoui Abdellah Medjadji
Hi, I'm working on a new transformation pass. During this pass the whole TREE of a function is parsed using tree walker, and code is inserted (using BIND_EXPRs). The problem is that i'm having a false assertion "at make_decl_rtl, at varasm.c:1273" This is the line N°1273 of varasm.c gcc_a

Re: [4.5] Find more autoinc addressing for induction variables

2009-05-22 Thread Bernd Schmidt
Hi, Rahul Kharche wrote: I am trialing this patch on a private GCC port that I'm working on. The patch works well with several test cases we have. However, fails on the following int main () { const int arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int i; for (i = 0; i < 10; i++) {

RE: [4.5] Find more autoinc addressing for induction variables

2009-05-22 Thread Rahul Kharche
Hi, I am trialing this patch on a private GCC port that I'm working on. The patch works well with several test cases we have. However, fails on the following int main () { const int arr[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int i; for (i = 0; i < 10; i++) { printf("arr[%d] : %d\

Re: [PATCH][RFC] Adjust the middle-end memory model

2009-05-22 Thread Richard Guenther
On Wed, 20 May 2009, Mark Mitchell wrote: > Richard Guenther wrote: > > > int i; > > float f; > > void foo() > > { > > int *p = (int *)malloc(sizeof(int)); > > *p = 1; > > i = *p; > > float *q = (float *)p; > > *q = 2.0; > > f = *q; > > } > > Yes, I think that's a valid program too.

Re: GCC4.3.3: Bootstrap comparison failure!

2009-05-22 Thread chenyang
>> I tried --save-temps and the resulting .s files were identical. >> I found that the problem was introduced by "as". >> I ran "as" twice with the same arguments. The two resulting .o files >> were different. >> I upgraded the binutils to the latest version: 2.19. The problem >> hasn't gone away.

Re: Accumulator based machines

2009-05-22 Thread Georg-Johann Lay
Michael Hope schrieb: The problem is when I have to clobber ACC such as when moving between registers. The output should be: LOADACC, R10; STOREACC, R11 (equivalent to ACC = R10; R11 = ACC) I've tried a parallel clobber like: (define_insn "movsi" [(set (match_operand:SI 0 "nonimmediate_oper

Re: Adding new runtime library

2009-05-22 Thread Basile STARYNKEVITCH
Petros Panayi wrote: Hi, I try to write an optimization pass which at some point will make a call to a new runtime library. To achieve this I need to write my own runtime library i.e something like libgomp but much simpler for now. I will like to know if there is a tutorial of any documentatio

Adding new runtime library

2009-05-22 Thread Petros Panayi
Hi, I try to write an optimization pass which at some point will make a call to a new runtime library. To achieve this I need to write my own runtime library i.e something like libgomp but much simpler for now. I will like to know if there is a tutorial of any documentation on how to do this?