Re: RFH: _inter_-procedure optimizations CALL_REALLY_USED_REGISTERS

2005-08-09 Thread Björn Haase
Steven Bosscher wrote: In any case, you should assume that it is a much bigger job than just modifying the call expander. Ok, I had a closer look at what is happening in present state gcc and I understand that it is indeed a much more complex task than I first thought. One Issue would be

RFH: intra-procedure optimizations CALL_REALLY_USED_REGISTERS

2005-08-07 Thread Björn Haase
Hello, The avr port presently misses possible intra-procedure optimizations concerning register use. Optimizations are missed when 1) calling a leaf function that is 2) defined in the same unit as a the caller and 3) clobbers only a subset of the call-clobbered registers. Presently I observe

Re: How can I build gcc on my Windows PC?

2005-08-07 Thread Björn Haase
checkboxes during installation. Yours, Björn Haase BTW: Maybe your question is probably better posted on the gcc-help list.

Re: RFH: _inter_-procedure optimizations CALL_REALLY_USED_REGISTERS

2005-08-07 Thread Björn Haase
Steven Bosscher wrote on Sonntag, 7. August 2005 12:45 : On Sunday 07 August 2005 09:35, Björn Haase wrote: Hello, The avr port presently misses possible intra-procedure optimizations concerning register use. What you describe is an _inter_procedural optimization. Between procedures

Re: Expanding an ADDSI3 into 2 x ADDHI3 does not work

2005-06-16 Thread Björn Haase
If I use: (define_expand addsi [(set (match_operand:SI 0 general_operand =g) (plus:SI (match_operand:SI 1 general_operand g) (match_operand:SI 2 general_operand g)))] { emit_insn (gen_addhi3 (custom_subword(operands[0], 0, SImode),

Re: help using mingw/gcc

2005-06-15 Thread Björn Haase
[EMAIL PROTECTED] wrote on Mittwoch, 15. Juni 2005 18:31 : Hello, I'm trying to compile a simple program with gcc on windows and am getting really frustrated. I've tried entering the commands in command prompt (no ms-dos mode, I have XP) and Run, but can't get anything, mostly something like

Re: RFC: Strategy for cc0 - CCmode conversion for the AVR target.

2005-06-05 Thread Björn Haase
Thank's for your response, Sunday, 5. Juni 2005 04:16 Ian Lance Taylor wrote: The condition-code re-use issue is the point, where, IMO, the link to the subreg-lowering 2.) shows up. After, e.g., breaking down a HI mode sub operation into two QI mode sub and sub-with-carrys at expand, I

RFC: Strategy for cc0 - CCmode conversion for the AVR target.

2005-06-04 Thread Björn Haase
Hi, During the last weeks I have experimented a bit with the AVR back-end. IMO there presently are two areas where it is worth to concentrating efforts on: 1.) cc0 - CCmode transition 2.) splitting of HI- and SI-mode operations so that the RTL finally gets some similarity with the actually

Re: RFC: Strategy for cc0 - CCmode conversion for the AVR target.

2005-06-04 Thread Björn Haase
Am Samstag, 4. Juni 2005 15:04 schrieb Paolo Bonzini: (parallel [ (use (operands[0])) (set (operands[0]) (minus:HI (operands[1]) (operands[2])) (note please delete the entire embracing parallel instruction before register life-time analysis by a new pass: It pretends to use operands 1

Re: sizeof(int) in testsuite

2005-06-04 Thread Björn Haase
Am Freitag, 3. Juni 2005 10:48 schrieb Mark Mitchell: DJ Delorie wrote: Do we have a standard way of telling the testsuite how big target types are, or some standard this test assumes 32 bit int dejagnu flag? I don't think we have any way of doing this at present. I could be wrong,

Bootstrap failure for target AVR, probably linked to Patch 2005-05-19 Jan Hubicka [EMAIL PROTECTED]

2005-05-20 Thread Björn Haase
Hi, I am observing a bootstrap failure for the avr target that seems to be related to the patch 2005-05-19 Jan Hubicka [EMAIL PROTECTED] ... * basic-block.h (REG_BR_PROB_BASE): Define. ... * rtl.h (REG_BR_PROB_BASE): Kill. . Bootstrap using the switches configure

Re: Bootstrap failure for target AVR, probably linked to Patch 2005-05-19 Jan Hubicka [EMAIL PROTECTED]

2005-05-20 Thread Björn Haase
Jan Hubicka wrote, Friday May 20th The attached patch seems to fix the problem to me (at least to the point so I can build cc1 binarry). What kind of other problems you are seeing? thank you for your fast response. After applying your patch, bootstrap succeeds again also on my machine.

Re: Bootstrap failure for target AVR, probably linked to Patch 2005-05-19 Jan Hubicka [EMAIL PROTECTED]

2005-05-20 Thread Björn Haase
Jan Hubicka wrote, Friday May 20th The attached patch seems to fix the problem to me (at least to the point so I can build cc1 binarry). What kind of other problems you are seeing? ... just realized that you have still reported the problem that build stops at the cc1 level: This is

RFC: (use) useful for avoiding unnecessary compare instructions during cc0-CCmode ?!

2005-05-14 Thread Björn Haase
Hi, I have thinking about how to overcome part of the double-setter difficulties that arise when implementing cc0-CCmode conversion for a couple of targets: IIUC correctly one of the two or three difficulties with cc0-CCmode conversion is, that combine in it's present form is not able to

Re: RFC: (use) useful for avoiding unnecessary compare instructions during cc0-CCmode ?!

2005-05-14 Thread Björn Haase
Am Samstag, 14. Mai 2005 21:39 schrieb Alexandre Oliva: On May 14, 2005, Bjrn Haase [EMAIL PROTECTED] wrote: I.e. expand would insert two instructions after the double-set instruction that contain the two individual sets and an additional use statement. I.e. above sequence after expand

RFD: Is there a helper function like print_rtx_to_stdout ?

2005-05-06 Thread Björn Haase
Hi, I am facing a situation where a gcc_assert call that checks for some properties of a rtx expression, say op, triggers an ICE (see below). I'd like to have a look the rtx that triggers this error. For this reason, I'd like to know whether there exists a helper function for writing to stdout

Re: Is there a helper function like print_rtx_to_stdout ?

2005-05-06 Thread Björn Haase
Best thanks for your fast reply! ... did not know that gdb has support for printing RTX. *VERY* useful feature (and much better than temporary including debugging printout commands in the compiler itself :-) ). Yours, Björn

Missed optimizations: Constant propagation / algebraic simplification re-run after after reload.?

2005-05-06 Thread Björn Haase
Hello, when working on the AVR target I stepped over the follwoing issue (IMO not urgent but still bearing quite some potential of improvement): When implementing lowering of SImode and HImode expressions to QImode sequences by splitters after reload, quite a number of new optimization

Unnesting of nested subreg expressions

2005-04-19 Thread Björn Haase
Hi, when working on removing avr's present monolithic SI-mode instruction patterns by splitters after reload and lowering to QI modes after expand, I have stepped over the following general issue: The mid-end seems not to be able to simplify nested subreg expressions. I.e. it seems that there

Re: My opinions on tree-level and RTL-level optimization

2005-04-17 Thread Björn Haase
Hi, while lacking the deep insight into GCC internals most of you have, I'd never the less like to ask you to be very prudent concerning the issue of removal of seemingly unnecessary RTL optimizations. In contrast to 32 bit targets, for 8 and 16 bit targets the RTL representation possibly

Re: internal compiler error at dwarf2out.c:8362

2005-04-17 Thread Björn Haase
James E Wilson wrote You shouldn't be trying to build your own types in a machine dependent attribute handler function. The compiler's type system is determined by front-ends mainly, and some middle-end infrastructure, and isn't your domain to mess with. This stuff is subject to change, at

Re: Obsoleting c4x last minute for 4.0

2005-04-07 Thread Björn Haase
References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Joseph Myers wrote: One possible way of assessing activity would be to say that after 4.1 maintained CPU ports should have test results for mainline regularly sent to

Re: Obsoleting c4x last minute for 4.0

2005-04-07 Thread Björn Haase
Am Freitag, 8. April 2005 01:06 schrieb Janis Johnson: I should have done that, I must have missed seeing your patch. I'll look for it now in the archives. Janis I just had a look at the archives and found that the subject of the mail I have been sending was not very clear either :-) (and

Bootstrap fails on HEAD 4.1 for AVR

2005-04-03 Thread Björn Haase
Hi, when checking out the gcc tree this morning for a clean rebuild and regular testsuite run, I observed that bootstrap failed. It seems that it is related to some preprocessor issue: 1.) Problem occures when assembling the libgcc library. First failing operation is

Sorry for the noise: Bootstrap fails on HEAD 4.1 for AVR

2005-04-03 Thread Björn Haase
When trying to figure out the origin of the problem, I have realized so far, that it is obviously stems from a problem during my local configure process: The xgcc I'm just building tries to pipe the asm result through my host-as instead of the target-as. I will myself have to look for why

Re: [AVR] RTL prologue/epilogue

2005-03-20 Thread Björn Haase
Hello Andy, I have tested your patch concerning RTL prologue/epilogue. Gratulations: My testsuite run only reports a single regression Tests that now fail, but worked before: gcc.c-torture/execute/20010122-1.c execution, -O0 . This happens on a testcase that anyway is problematic (succeeds

Re: CC0 to CCmode conversion

2005-03-19 Thread Björn Haase
Hi Denis, I have had a look at your patch. It generally seems to work. Presently it still misses some optimization where the old cc0 back-end was smarter. The testsuite also reports a couple of new failures. Yours, Björn. Here are a couple of cases where the old cc0 interface generated

Re: AVR: CC0 to CCmode conversion

2005-03-19 Thread Björn Haase
Hi Paul, I have the impression that you are trying to open open doors :-) : If IIUC what Denis aims to do is to segment the re-organization of the back-end into several independent small steps. One step will be the cc0 - CC_mode issue he is addressing now. The splitting issue would be one of

Dwarf-2 support for the avr-target seems to be broken on head 4.0.0.

2005-02-10 Thread Björn Haase
Hi, some of you possibly remember that I had sent you a mail recently, stating that the avr port was broken again. A bug that I myself was not able to reproduce a couple of minutes later. I now have found the origin. It seems that there indeed is a bug: I have just been checking out the