Reload problem: asm operand requires impossible reload

2009-05-01 Thread Bingfeng Mei
Hello, I experienced "asm operand requires impossible reload" error in our private porting. After digging into the reloading pass, I found something a bit fishy. The error message is produced in reload_as_needed function (reload1.c) ... /* If this was an ASM, make sure that all

Re: gcc-4.4.0 Build Report: Success on Open Solaris 2008.11, x86_64

2009-05-01 Thread Tom Browder
On Thu, Apr 30, 2009 at 11:39, Janis Johnson wrote: Thanks to Janis, Andrew, and David. I see inside the script all you say, but it seems to be throwing up on some ill-formed screen output from some of the tests, e.g., gawk: cmd. line:50: { next; } gawk: cmd. line:50: ^ `next' used in E

[RFC] Thoughts on reordering the source tree

2009-05-01 Thread Steven Bosscher
Hello, The GCC source tree is getting really big. We currently have in gcc/: - 337 .c files - 171 .h files Personally, I think the source tree is quite a mess, the way it is now. A long time ago (I can't find the threads involved) there was some discussion about re-ordering the source tree a b

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Richard Kenner
I'm in favor of such a reorganization, but would suggest: (1) tree-* to go to gcc/tree-opt (2) Not distinguish between the various rtl passes (why is sched "code generation", for example?) and put all in gcc/rtl (3) Not do this: > - basic intermediate language support stays in gcc/ or goes to gc

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Manuel López-Ibáñez
2009/5/1 Steven Bosscher : > Hello, > > Now that GCC uses subversion, we can move files around without > destroying the file revision history, right? And we are in stage1, the > perfect time for Big Changes like re-ordering the source tree. If you going to tackle this, I would suggest to start wit

Problem with gcc-4.4.0 with Cortex-m3 and cortex-a9 cpu

2009-05-01 Thread Nitin Garg
I am working on Cortex-A9 and M3 of ARM. I am using gcc 4.4.0, uClibc 0.9.30.1 and binutils 2.19.1 and building it for Cortex-m3. While building for m3 if I specify arch as armv7-m alonmg with cpu cortex-m3, the build fails. Using the same set, if I build the toolchain for Cortex-A9 (cpu=cortex-a9

RE: Problem with gcc-4.4.0 with Cortex-m3 and cortex-a9 cpu

2009-05-01 Thread Ramana Radhakrishnan
> -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of > Nitin Garg > Sent: 01 May 2009 14:11 > To: gcc@gcc.gnu.org; gcc-h...@gcc.gnu.org > Subject: Problem with gcc-4.4.0 with Cortex-m3 and cortex-a9 cpu > > I am working on Cortex-A9 and M3 of ARM

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Joseph S. Myers
On Fri, 1 May 2009, Steven Bosscher wrote: > - c-* go to gcc/c (including c-common.*, 29 files) I still suggest using a separate c-family/ directory for those files also shared with C++. There are some cleanups that need doing of files that include C headers that shouldn't, and of c-family fil

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Joseph S. Myers
On Fri, 1 May 2009, Joseph S. Myers wrote: > On Fri, 1 May 2009, Steven Bosscher wrote: > > > - c-* go to gcc/c (including c-common.*, 29 files) > > I still suggest using a separate c-family/ directory for those files also > shared with C++. There are some cleanups that need doing of files tha

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Steven Bosscher
On Fri, May 1, 2009 at 3:54 PM, Joseph S. Myers wrote: > On Fri, 1 May 2009, Joseph S. Myers wrote: > >> On Fri, 1 May 2009, Steven Bosscher wrote: >> >> > - c-* go to gcc/c (including c-common.*, 29 files) >> >> I still suggest using a separate c-family/ directory for those files also >> shared w

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Joseph S. Myers
On Fri, 1 May 2009, Steven Bosscher wrote: > Eh, ouch. > > I'll see if I can clean this up. I don't believe for 90% of these > files that they should include c-common.h / c-tree.h. Looks like > history and the usual carelessness when adding #include lines to new > files/passes. Thanks! I agre

Re: Reload problem: asm operand requires impossible reload

2009-05-01 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > I experienced "asm operand requires impossible reload" error in our private > porting. > After digging into the reloading pass, I found something a bit fishy. > > The error message is produced in reload_as_needed function (reload1.c) > > ... > /* If this wa

RE: Reload problem: asm operand requires impossible reload

2009-05-01 Thread Bingfeng Mei
> -Original Message- > From: Ian Lance Taylor [mailto:i...@google.com] > Sent: 01 May 2009 15:32 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org; bernd.schm...@analog.com; weig...@de.ibm.com > Subject: Re: Reload problem: asm operand requires impossible reload > > "Bingfeng Mei" writes: > >

Re: Reload problem: asm operand requires impossible reload

2009-05-01 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > Actually, they do contain references to pseudo-registers. Only in following > code (reload function in reload1.c, after the reload_as_needed function > that emits error message), pseudo registers are replaced with requivalent > memory operands. Yes, but the insns generat

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Steven Bosscher
On Fri, May 1, 2009 at 4:13 PM, Joseph S. Myers wrote: > On Fri, 1 May 2009, Steven Bosscher wrote: > >> Eh, ouch. >> >> I'll see if I can clean this up.  I don't believe for 90% of these >> files that they should include c-common.h / c-tree.h.  Looks like >> history and the usual carelessness whe

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Joseph S. Myers
On Fri, 1 May 2009, Steven Bosscher wrote: > Actually nothing uses it, except one case of %qE. And some passes > forgot to include splay-tree.h but got it via c-*.h. There should be no problem with %qE in non-front-end files, since: 2009-04-23 Rafael Avila de Espindola * c-format.c

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Steven Bosscher
On Fri, May 1, 2009 at 6:48 PM, Joseph S. Myers wrote: > On Fri, 1 May 2009, Steven Bosscher wrote: > >> Actually nothing uses it, except one case of %qE.  And some passes >> forgot to include splay-tree.h but got it via c-*.h. > > There should be no problem with %qE in non-front-end files, since:

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Joseph S. Myers
On Fri, 1 May 2009, Steven Bosscher wrote: > On Fri, May 1, 2009 at 6:48 PM, Joseph S. Myers > wrote: > > On Fri, 1 May 2009, Steven Bosscher wrote: > > > >> Actually nothing uses it, except one case of %qE.  And some passes > >> forgot to include splay-tree.h but got it via c-*.h. > > > > There

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Steven Bosscher
On Fri, May 1, 2009 at 7:01 PM, Joseph S. Myers wrote: > On Fri, 1 May 2009, Steven Bosscher wrote: > >> On Fri, May 1, 2009 at 6:48 PM, Joseph S. Myers >> wrote: >> > On Fri, 1 May 2009, Steven Bosscher wrote: >> > >> >> Actually nothing uses it, except one case of %qE.  And some passes >> >> f

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Richard Guenther
On Fri, May 1, 2009 at 2:05 PM, Steven Bosscher wrote: > Hello, > > The GCC source tree is getting really big.  We currently have in gcc/: > > - 337 .c files > - 171 .h files > > Personally, I think the source tree is quite a mess, the way it is > now.  A long time ago (I can't find the threads in

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Andrew Haley
Richard Guenther wrote: > Branches will get confused. SVN does not really track file moves. So > I think this is not a stage1 but more a stage3 thing. > > It also will make grepping even more painful than it is now (remember > that ada change to introduce a 3rd directory level here ...). > > I

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Jan Hubicka
> On Fri, May 1, 2009 at 2:05 PM, Steven Bosscher wrote: > > Hello, > > > > The GCC source tree is getting really big.  We currently have in gcc/: > > > > - 337 .c files > > - 171 .h files > > > > Personally, I think the source tree is quite a mess, the way it is > > now.  A long time ago (I can't

Re: Reserving a number of consecutive registers

2009-05-01 Thread Jean Christophe Beyler
Yes, I have done that and now am looking to limit those numbers. For example, I don't copy back the ones that are not live-out registers. It works well but I am have an issue when recompiling the whole compiler. I've simplified this to this, if in my reorg function, I do only this : FOR_EACH

Re: Reserving a number of consecutive registers

2009-05-01 Thread Jean Christophe Beyler
Ok, I added a df_analyze at the beginning of my target reorg function and now it works. Is there anything I should add to cleanup afterwards ? Sorry about this, I'm slowly learning different parts of the GCC compiler as I go, Thanks again for all your help, Jc On Fri, May 1, 2009 at 4:33 PM, Jean

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Steven Bosscher
On Fri, May 1, 2009 at 3:54 PM, Joseph S. Myers wrote: > attribs.c:#include "c-common.h" > cgraphunit.c:#include "c-common.h" > ipa-pure-const.c:#include "c-common.h" > ipa-reference.c:#include "c-common.h" > ipa-struct-reorg.c:#include "c-tree.h" > ipa-struct-reorg.c:#include "c-common.h" > ipa-t

Re: Reserving a number of consecutive registers

2009-05-01 Thread Eric Botcazou
> Ok, I added a df_analyze at the beginning of my target reorg function > and now it works. Is there anything I should add to cleanup afterwards > ? As far as DF is concerned, no, probably nothing. -- Eric Botcazou

Re: [RFC] Thoughts on reordering the source tree

2009-05-01 Thread Joseph S. Myers
On Fri, 1 May 2009, Steven Bosscher wrote: > > And these are the problem inclusions of files specific to C and ObjC from > > files also shared with C++: > > > > c-common.c:#include "c-tree.h" > > c-dump.c:#include "c-tree.h" > > c-gimplify.c:#include "c-tree.h" > > c-lex.c:#include "c-tree.h" > >