Messages in this thread | | | Date | Tue, 28 Mar 2000 12:27:05 +0200 | From | Stephane Casset <> | Subject | Re: [2.3.99-pre3] via-rhine.o and gcc 2.95.2 doesn't get along |
| |
<!-- On Tue, Mar 28, 2000 at 11:49:56AM +0200, Urban Widmark wrote: > On Mon, 27 Mar 2000, Jean-Luc Pedneault wrote: > > > I'd like to point out that egcs-1.1.2 executed the code fine even with #if > > 0 (ie. without compiling the additional code). GCC 2.95.2's optimizations > > breaks the code, at least that's what I think. > > Me too. But reading all that assembly code makes my head hurt. So instead > of trying to figure out why/where/if gcc 2.95.2 get's the loop wrong, > maybe you could try this patch which should be just a different way of > doing the same thing. Maybe this code is simpler to compile ... > > I have not had chance to test this myself, but will this evening (after > installing gcc 2.95.2 to play with). Patch vs 2.3.99-pre3. >
I was about to try the same trick as you in your patch just to see... ;) Well at least I tested your patch... And it works !
The test was done on : Linux version 2.3.99-pre3 (root@glacon) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #24 Tue Mar 28 12:11:33 CEST 2000
bash-2.04$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 7 model name : Pentium III (Katmai) stepping : 3 cpu MHz : 501.147139 cache size : 512 KB fdiv_bug : no hlt_bug : no sep_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr xmm bogomips : 999.42
System : Debian/woody (last update)
Gcc version : gcc version 2.95.2 20000220 (Debian GNU/Linux)
No more messages, and the NIC is working fine ! Good job...
> Also, generating a smaller (non-kernel) testcase for reporting this to the > gcc people might be a good thing to do, after checking if this is already > known of course. If someone wants to do that let me know, else I'll try > that later ...
Yes, agreed.
A+ Stéphane -- << On ne voit bien qu'avec le coeur, | Stephane Casset l'essentiel est invisible | casset@inforezo.u-strasbg.fr pour les yeux >> St. Exupery | http://inforezo.u-strasbg.fr/~casset -->Si vous ne voyez rien c'est normal utilisez un VRAI lecteur de mails !
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |