Re: DImode operations

2009-09-24 Thread daniel tian
Thanks. I am working for it now. But I have a question about how to debug the cc1 with libgcc1.c. because if I run the cc1 to build the libgcc2.c, lots of errors occurred. Run the cc1 with the command: ./cc1 -g -I../../rice-gcc-4.3.0/gcc -I../../rice-gcc-4.3.0/gcc/../include ../../rice-gcc-4.3.0/g

further help on dwarf2 debug

2009-09-24 Thread IainS
I'm trying to formulate a bug report for tools used to examine/ process debug output. looking specifically at the _debug_frame. for this source: --- int testfunc(void) { int i; i = 1; return i; } === using -save-temps -dA -g -O0 -fverbose-asm (-gstrict-dwarf, on 4.5)

Re: Request for code review - (ZEE patch : Redundant Zero extension elimination)

2009-09-24 Thread Richard Guenther
On Thu, Sep 24, 2009 at 8:25 AM, Paolo Bonzini wrote: > On 09/24/2009 08:24 AM, Ian Lance Taylor wrote: >> >> We already have the hooks, they have just been stuck in plugin.c when >> they should really be in the generic backend.  See register_pass. >> >> (Sigh, every time I looked at this I said "

Re: DImode operations

2009-09-24 Thread daniel tian
Another problem I found when hacking other port. Do I need to write SF, DF move operations? And basic arithmetic insn patterns like ADD, SUB in DImode? Because in CRX port (as I knew, there is no float point unit in this cpu), DI,SF,DF mode have 'move' operation. and there are subtract, add opera

Re: further help on dwarf2 debug

2009-09-24 Thread Dominique Dhumieres
With revision 152076 on i686-apple-darwin9 bootstrapped as described in comment#61 of pr41405, I get: [ibook-dhum] bug/debug% gcc45 -c -save-temps -dA -g -O0 -fverbose-asm -gno-strict-dwarf simplistic.c [ibook-dhum] bug/debug% dwarfdump --debug-frame simplistic.o -

Prague GCC folks meeting summary report

2009-09-24 Thread Richard Guenther
Present: Jakub Jelinek, Jan Hubicka, Martin Jambor, Michael Matz, Paolo Bonzini, Petr Baudis, Richard Guenther Not present but invited: Andreas Schwab, Zdenek Dvorak The objective of this meeting was to have a discussion about the development of GCC (and dependent tools and libraries) in

On VIEW_CONVERT_EXPRs and TBAA

2009-09-24 Thread Richard Guenther
While looking at PR38747 again I was diving into the alias.c code and tried to confirm that it does what I think it does for VIEW_CONVERT_EXPR. And in fact it basically does. In general there are odds between what get_alias_set does if you pass it a reference tree compared to what it does if yo

How to implement compare and branch instruction

2009-09-24 Thread Mohamed Shafi
Hello all, I am porting a 32bit target in GCC 4.4.0 The target has have distinct signed and unsigned compare instructions, and only one set of conditional branch instructions. Moreover the operands cannot be immediate values if the comparison is unsigned. I have implemented this using compare-and-

Re: further help on dwarf2 debug

2009-09-24 Thread IainS
On 24 Sep 2009, at 10:27, Dominique Dhumieres wrote: With revision 152076 on i686-apple-darwin9 bootstrapped as described in comment#61 of pr41405, I get: [ibook-dhum] bug/debug% gcc45 -c -save-temps -dA -g -O0 -fverbose- asm -gno-strict-dwarf simplistic.c [ibook-dhum] bug/debug% dwarfdump --

Re: How to implement compare and branch instruction

2009-09-24 Thread Paolo Bonzini
On 09/24/2009 02:41 PM, Mohamed Shafi wrote: How can i overcome this error? Remove the guilty alternatives, for example the d/L alternative, and make operand 2 a register_operand. Paolo

Re: GCC 4.5 Status Report (2009-09-19)

2009-09-24 Thread Jason Merrill
On 09/20/2009 08:07 AM, Dave Korn wrote: Richard Guenther wrote: On Sun, 20 Sep 2009, Dave Korn wrote: BTW, why don't we call this more-flexible-stage-3 "stage 2" any more? It sounds a lot like the way that's still described on develop.html. Because "New functionality may not be introdu

Re: C++0x lambdas in 4.5?

2009-09-24 Thread Jason Merrill
On 09/22/2009 10:16 PM, Kenny Simpson wrote: Will the lambda branch be merged into 4.5? Yes. Jason

Re: DImode operations

2009-09-24 Thread Dave Korn
daniel tian wrote: > Thanks. I am working for it now. > But I have a question about how to debug the cc1 with libgcc1.c. > because if I run the cc1 to build the libgcc2.c, lots of errors > occurred. > > Run the cc1 with the command: > ./cc1 -g -I../../rice-gcc-4.3.0/gcc > -I../../rice-gcc-4.3.0/gc

Re: GCC 4.5 Status Report (2009-09-19)

2009-09-24 Thread Richard Guenther
On Thu, 24 Sep 2009, Jason Merrill wrote: > On 09/20/2009 08:07 AM, Dave Korn wrote: > > Richard Guenther wrote: > > > On Sun, 20 Sep 2009, Dave Korn wrote: > > > > > >BTW, why don't we call this more-flexible-stage-3 "stage 2" any more? > > > > It > > > > sounds a lot like the way that's sti

Re: further help on dwarf2 debug

2009-09-24 Thread Jack Howarth
On Thu, Sep 24, 2009 at 03:01:12PM +0100, IainS wrote: > > So, this particular bug appears to be cleared at > > dwarfutils-66 or greater. (confir...@dwarfutils-70 as well) > > (It does not seem to affect powerpc-apple-darwin8 which only has > dwarfutils-42, > but I can't speak for i686-apple-d

Re: DImode operations

2009-09-24 Thread Dave Korn
daniel tian wrote: > Another problem I found when hacking other port. > Do I need to write SF, DF move operations? > And basic arithmetic insn patterns like ADD, SUB in DImode? > > Because in CRX port (as I knew, there is no float point unit in this > cpu), DI,SF,DF mode have 'move' operation. an

Re: apple blocks extension

2009-09-24 Thread Jason Merrill
On 09/15/2009 12:35 PM, Chris Lattner wrote: The second major feature of Blocks vs c++ lambdas is that they can be "copied onto the heap". This allows things like "Grand Central Dispatch" to work: you can write code that executes blocks asynchronously or on other threads/work queues (after the fu

Re: further help on dwarf2 debug

2009-09-24 Thread IainS
On 24 Sep 2009, at 15:54, Jack Howarth wrote: On Thu, Sep 24, 2009 at 03:01:12PM +0100, IainS wrote: So, this particular bug appears to be cleared at Iain, What do you mean by the 'bug appears to be cleared'? Can you map which versions of Xcode on Intel darwin exhibit this bug and which

Re: further help on dwarf2 debug

2009-09-24 Thread Jack Howarth
On Thu, Sep 24, 2009 at 04:03:28PM +0100, IainS wrote: > > this bug - "fail in dwarfdump --debug-frame" for i686 target > > Is present in: > XCode 3.1.2 dwarfutils-49 (IIRC) > > In not present in: > XCode 3.1.3 dwarfutils-66 and XCode 3.1.4 dwarfutils-70 > > -- > N.B. this is NOT the "orig_str" Ab

Re: apple blocks extension

2009-09-24 Thread Chris Lattner
On Sep 24, 2009, at 7:57 AM, Jason Merrill wrote: On 09/15/2009 12:35 PM, Chris Lattner wrote: The second major feature of Blocks vs c++ lambdas is that they can be "copied onto the heap". This allows things like "Grand Central Dispatch" to work: you can write code that executes blocks asyn

Re: Prague GCC folks meeting summary report

2009-09-24 Thread Jeff Law
On 09/24/09 04:35, Richard Guenther wrote:. . It was also suggested to change hppa2.0w-hp-hpux11.11 to ia64-hpux and to change s390-linux-gnu to s390x-linux-gnu in the list of secondary targets. No argument from me re: hppa moving to secondary status. IIRC, HP has stopped selling new PA sy

Re: Prague GCC folks meeting summary report

2009-09-24 Thread Joseph S. Myers
On Thu, 24 Sep 2009, Richard Guenther wrote: > The regular problem of emitting warnings for unreachable code may > be addressed by using a new variant of debug statements. Those > would queue up warnings and if still around emit them during > expansion. Currently queueing a warning can be done w

Re: How to implement compare and branch instruction

2009-09-24 Thread Richard Henderson
On 09/24/2009 05:41 AM, Mohamed Shafi wrote: (define_expand "cmp" ... (define_expand "b" For the record, you should be combining these into a cbranch expander, so that you don't have to do the "save the cmp operands" trick anymore. (define_insn_and_split "compare_and_branch_insn" [(set

Re: Prague GCC folks meeting summary report

2009-09-24 Thread Joseph S. Myers
On Thu, 24 Sep 2009, Richard Guenther wrote: > We discussed about features we don't like (PCH and -combine). PCH > is used but has the issue that improper use is not diagnosed and PCH > seems to be unmaintained. We agreed on deprecating -combine for 4.5 > though. Can we map -combine to use LTO

Re: Request for code review - (ZEE patch : Redundant Zero extension elimination)

2009-09-24 Thread Sriraman Tallam
On Thu, Sep 24, 2009 at 1:36 AM, Richard Guenther wrote: > On Thu, Sep 24, 2009 at 8:25 AM, Paolo Bonzini wrote: >> On 09/24/2009 08:24 AM, Ian Lance Taylor wrote: >>> >>> We already have the hooks, they have just been stuck in plugin.c when >>> they should really be in the generic backend.  See

Re: further help on dwarf2 debug

2009-09-24 Thread Richard Henderson
On 09/24/2009 12:35 AM, IainS wrote: The main difference (and the area causing the tool to barf) is that the FDE on 4.5 has some extra information not present in 4.4 .byte 0x4 # DW_CFA_advance_loc4 .set L$set$6,LCFI3-LCFI1 .long L$set$6 .byte 0xc5 # DW_CFA_restore, column 0x5 .byte 0xc # DW_CFA_

Re: apple blocks extension

2009-09-24 Thread Jason Merrill
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 container, you can use std::function as the element type. Jason

Re: Prague GCC folks meeting summary report

2009-09-24 Thread Richard Guenther
On Thu, 24 Sep 2009, Joseph S. Myers wrote: > On Thu, 24 Sep 2009, Richard Guenther wrote: > > > We discussed about features we don't like (PCH and -combine). PCH > > is used but has the issue that improper use is not diagnosed and PCH > > seems to be unmaintained. We agreed on deprecating -com

[LTO] Branch frozen for final merge

2009-09-24 Thread Diego Novillo
I've merged lto into trunk and am currently preparing the final set of patches to submit. Please do not commit anything to the branch. Diego.

gcc-4.5-20090924 is now available

2009-09-24 Thread gccadmin
Snapshot gcc-4.5-20090924 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.5-20090924/ 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

Plug-in reviewers

2009-09-24 Thread Gerald Pfeifer
It is my pleasure to announce that the steering committee has appointed Le-Chun Wu and Rafael Espindola plug-in reviewers. Thanks for all your contributions so far, and keep up the good work! Please adjust the MAINTAINERS file accordingly, and Happy hacking! Gerald

Outdated comment in real.c (was: constant folding)

2009-09-24 Thread Vincent Lefevre
[Cc to the gcc mailing-list] On 2009-09-25 02:18:55 +0200, Vincent Lefevre wrote: > Also, as EXP_BITS is the full (biased) exponent size, it seems that > the real.c comment is buggy (27 -> 26). Looking at the history: Index: real.h

Any tips for debugging a GNAT tasking implementation problem?

2009-09-24 Thread Dave Korn
Hi all, Over on the cygwin-improvements branch(*) I've got a fairly nifty fully POSIX-based port of Ada, but there's one FAIL on the gnat testsuite that I'm trying to debug. It could be a bug in the port, or the testcase might have stressed an underlying bug in Cygwin's pthread functions.

wie kann Ich gcc herunterladen ?

2009-09-24 Thread gerhard gangl
hallo gcc_team suche gcc zum downloaden wer kann mir helfen ? liebe grüße u. danke im vorraus _gerhard_ gangl, reichsstr. 77, 8045 graz