| | memcpy patch for gcc 2.95.2 wanted Rossz Vámos-Wentworth
|
| | In an attempt to track down my RCX lockup problems I've been rereading the older messages and came across the discussion that sounded exactly like my problem: the RCX locks up when dll is executed. The conclusion was that bad code was generated for (...) (25 years ago, 24-Mar-00, to lugnet.robotics.rcx.legos)
|
| | |
| | | | Re: memcpy patch for gcc 2.95.2 wanted Rossz Vámos-Wentworth
|
| | | | I've been able to fix my code by hand modifying the assembler code that is produced and using that instead of the .c code. I'm concerned, however, that the bug in GCC might manifest itself in other ways. Is there a patch for GCC available somewhere? (...) (25 years ago, 25-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Eddie C. Dost
|
| | | | | (...) Could you describe the bug to us more clearly, i.e. what was the produced code, and what did you modify, so others won't run into the same trouble again, please? Thanks, Eddie C. Dost ecd@skynet.be (25 years ago, 25-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | | |
| | | | Re: memcpy patch for gcc 2.95.2 wanted Ben Jackson
|
| | | | (...) That was probably me. I don't know anything about GCC asm macros so I wasn't sure if it was a bug in memcpy or a bug in GCC's code generation. I solved the problem by going to egcs-1.1.2 which generates correct code. I was hoping that someone (...) (25 years ago, 26-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Luis Villa
|
| | | | (...) Sorry... I was going to recommend the same thing last night, but got sidetracked (it has been a tough two days to be a Duke basketball fan.) I have a question: from where in the code is the incorrect assembly generated? i.e., could it be (...) (25 years ago, 26-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Les Smithson
|
| | | | (...) I think the compiler was generating incorrect code. I'm no gcc expert, but the asm macros looked OK to me, and besides, why should the macro work in one compiler version & not the other? FYI, I fixed it by compiling the source to an assembler (...) (25 years ago, 26-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Rossz Vámos-Wentworth
|
| | | | | Les Smithson <lsmithso@hare.demon.co.uk> wrote in message news:Fs0v5B.J44@lugnet.com... (...) You saved me the trouble of posting the exact same fix. Thanks. I'm concerned there might be other problems caused by this bug. Fixing this routine treats (...) (25 years ago, 26-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Luis Villa
|
| | | | (...) Because there were some decisions made as to what "incorrect" macros were and weren't by the egcs/gcc teams. For some time, this made compiling the Linux kernel with the newest egcs a serious problem. (...) Cool. -Luis (...) ###...### (...) (25 years ago, 26-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Eddie C. Dost
|
| | | | (...) IMHO it is better anyway to use pure assembly files when generating code like memcpy (which is completely in assembly here). Call them memcpy.S, and you won't have the problem of accidentially removing them. With this you can use 'c' style (...) (25 years ago, 26-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Luis Villa
|
| | | | (...) I don't know if Markus would approve, but it might be worthwhile to do this and put it in to CVS so that 0.2.4(?) would be compilable with 2.95.x. Does anyone have the time/skill to do this? Markus? Your two cents? -Luis ###...### Profanity is (...) (25 years ago, 26-Mar-00, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: memcpy patch for gcc 2.95.2 wanted Ross Crawford
|
| | | | (...) I've posted an update which includes memcpy.s, memset.s (even though this didn't seem to cause a problem, I thought best to keep things consistent) and Makefile (so it doesn't delete *.s for target clean). Just un-tar it to your $LEGOS_HOME. (...) (25 years ago, 2-Apr-00, to lugnet.robotics.rcx.legos)
|
| | | | |