Re: target hooks / plugins

2009-12-24 Thread Joseph S. Myers
On Wed, 23 Dec 2009, Joern Rennecke wrote:

> I've attached what I have so far.

If you want to have documentation extracted from source files, you need to 
engage with the SC and FSF at an early stage to get suitable license 
exception wording to permit the relevant text to be used in the manuals as 
well as the main (GPL) sources.  Of course, the ordering and (especially) 
section divisions in the internals manual are human-designed not arbitrary 
so you need to retain the ability to put the documentation of each hook in 
an appropriate position in an appropriate section of the manual.

If you can make this work it should reduce the risk of people not 
documenting new hooks, but for it to work the FSF agreement is critical as 
is ensuring it genuinely works as well as the existing system without 
regressions (including working in update_web_docs).

-- 
Joseph S. Myers
jos...@codesourcery.com


Re: target hooks / plugins

2009-12-24 Thread Joseph S. Myers
It appears you CC:ed your message to a closed mailing list 
ctuning-discussi...@googlegroups.com that bounces messages from 
non-subscribers.  Please avoid doing this; messages to public lists should 
not be CC:ed to any list that will send bounces or other automatic replies 
to non-subscribers.  You are free to forward GCC list messages manually to 
such a list, of course.

-- 
Joseph S. Myers
jos...@codesourcery.com


Re: Approval as AVR maintainer

2009-12-24 Thread David Edelsohn
On Wed, Dec 23, 2009 at 5:24 PM, Andrew Hutchinson
 wrote:
> How does one get to be maintainer of port?
>
> Specifically AVR port - so that I do not need to get approval to commit
> changes. The time it takes now is rather longer than getting approval on
> other parts of GCC.
>
> The process does not seem to be written down anywhere - but I am sure
> someone will correct me if I am wrong.

Maintainers are appointed by the GCC Steering Committee.  Someone
nominates you or you nominate yourself through a member of the
committee, like me.  It helps to have support from / agreement of the
current maintainers.

Happy Holidays,
David


gcc-4.5-20091224 is now available

2009-12-24 Thread gccadmin
Snapshot gcc-4.5-20091224 is now available on
  ftp://gcc.gnu.org/pub/gcc/snapshots/4.5-20091224/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 4.5 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/trunk revision 155461

You'll find:

gcc-4.5-20091224.tar.bz2  Complete GCC (includes all of below)

gcc-core-4.5-20091224.tar.bz2 C front end and core compiler

gcc-ada-4.5-20091224.tar.bz2  Ada front end and runtime

gcc-fortran-4.5-20091224.tar.bz2  Fortran front end and runtime

gcc-g++-4.5-20091224.tar.bz2  C++ front end and runtime

gcc-java-4.5-20091224.tar.bz2 Java front end and runtime

gcc-objc-4.5-20091224.tar.bz2 Objective-C front end and runtime

gcc-testsuite-4.5-20091224.tar.bz2The GCC testsuite

Diffs from 4.5-20091217 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-4.5
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.


Re: CSE & compare/branch template problem

2009-12-24 Thread Michael Eager

Paolo Bonzini wrote:

On 12/21/2009 08:10 PM, Richard Henderson wrote:

(define_insn_and_split "*cmp"
   [(set (match_operand:SI 0 "register_operand" "=r")
 (lt:SI (match_operand:SI 1 "register_operand" "r")
(match_operand:SI 2 "register_operand" "r")))]
   ""
   "cmp %0,%1,%2\;andi $0,$0,1"
   ""
   [(set (match_dup 0)
 (unspec:SI [(match_dup 1) (match_dup 2)] UNSPEC_CMP))
(set (match_dup 0) (and:SI (match_dup 0) (const_int 1)))]
   "")


It's actually the MSB that is affected, and the entire register is set 
to zero if a == b.  Basically cmp/cmpu prepare rD so that a signed 
compare-with-zero-and-branch will do the requested conditional branch.


So, branches are easy, but cstores are tricky.  Something like this 
should work; indeed you do not need any CC mode:


Thanks.  I'll take a look at this.

There are some other quirks with the MicroBlaze architecture.
The cmp/cmpu instructions only take a register.  Other instructions
which can be used for equality or signed comparisons (xor or sub)
can take an immediate operand.  I'll see how they can be added.

--
Michael Eagerea...@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077