Re: gcc -O bug

2001-04-27 Thread Dennis
At 05:23 PM 04/27/2001, you wrote: >In message <[EMAIL PROTECTED]>, Dennis writes: > >At 05:51 PM 04/26/2001, Peter Seebach wrote: > >>(Go ahead, dismiss me as being unfairly biased against C.) > > >Done. Like I said, its not worthy of debate. > >Wow. I think that pretty much summarizes your know

Re: gcc -O bug

2001-04-27 Thread Peter Seebach
In message <[EMAIL PROTECTED]>, Dennis writes: >At 05:51 PM 04/26/2001, Peter Seebach wrote: >>(Go ahead, dismiss me as being unfairly biased against C.) >Done. Like I said, its not worthy of debate. Wow. I think that pretty much summarizes your knowledge of the situation. :) -s p.s.: If you

Re: gcc -O bug

2001-04-26 Thread Dennis
At 05:51 PM 04/26/2001, Peter Seebach wrote: >In message <[EMAIL PROTECTED]>, Dennis writes: > >Don't try to argue this ridiculous point on this list. You are badly > >overmatched. You are so wrong that its not worthy of debate. > >Which is presumably why you offered no arguments. > >Actually, thi

Re: gcc -O bug

2001-04-26 Thread Peter Seebach
In message <[EMAIL PROTECTED]>, Dennis writes: >Don't try to argue this ridiculous point on this list. You are badly >overmatched. You are so wrong that its not worthy of debate. Which is presumably why you offered no arguments. Actually, this is a fairly well-demonstrated result. Anything tha

Re: gcc -O bug

2001-04-26 Thread Jason Andresen
Dennis wrote: > > At 09:11 AM 04/26/2001, you wrote: > >On Thu, Apr 26, 2001 at 11:00:15PM +1000, Greg Black wrote: > >Nope. The real nonsense is what you say. Perl core is written in a > >highly optimized C using very polished algorithms. As long as the Perl > >script is written in such a way

Re: gcc -O bug

2001-04-26 Thread Dennis
At 09:11 AM 04/26/2001, you wrote: >On Thu, Apr 26, 2001 at 11:00:15PM +1000, Greg Black wrote: > > Anton Berezin wrote: > > > > | Could you provide the Perl script as well? > > > > That would be pointless. The issue is with the C ... > >I know that. > > > | I am quite sure it can be > > | made t

Re: gcc -O bug

2001-04-26 Thread David O'Brien
On Thu, Apr 26, 2001 at 09:44:36AM -0400, Jason Andresen wrote: > Er, isn't this the kind of problem the GCC folks are more likly to be > able to fix? In general yes. But it doesn't hurt to double check here to make sure you your ducks in row before going to the GCC lists. I see later in this t

Re: gcc -O bug

2001-04-26 Thread Dag-Erling Smorgrav
Jason Andresen <[EMAIL PROTECTED]> writes: > Dag-Erling Smorgrav wrote: > > I ran into this bug while analyzing a customer's logs to determine the > > best time of day for an upgrade. The original script was in Perl, but > > I rewrote it in C because it was too slow. The C version produces > > i

Re: gcc -O bug

2001-04-26 Thread Jason Andresen
Dag-Erling Smorgrav wrote: > > I ran into this bug while analyzing a customer's logs to determine the > best time of day for an upgrade. The original script was in Perl, but > I rewrote it in C because it was too slow. The C version produces > incorrect results when compiled with -O. Note that

Re: gcc -O bug

2001-04-26 Thread Anton Berezin
On Thu, Apr 26, 2001 at 11:00:15PM +1000, Greg Black wrote: > Anton Berezin wrote: > > | Could you provide the Perl script as well? > > That would be pointless. The issue is with the C ... I know that. > | I am quite sure it can be > | made to run faster. In fact, it is almost always possib

Re: gcc -O bug

2001-04-26 Thread Greg Black
Anton Berezin wrote: | Could you provide the Perl script as well? That would be pointless. The issue is with the C ... | I am quite sure it can be | made to run faster. In fact, it is almost always possible in Perl to | closely match the perfomance of a C program for this kind of | applicati

Re: gcc -O bug

2001-04-26 Thread Dag-Erling Smorgrav
Anton Berezin <[EMAIL PROTECTED]> writes: > Could you provide the Perl script as well? I am quite sure it can be > made to run faster. In fact, it is almost always possible in Perl to > closely match the perfomance of a C program for this kind of > application. I doubt it - and in any case, thi

Re: gcc -O bug

2001-04-26 Thread Anton Berezin
On Thu, Apr 26, 2001 at 02:23:49PM +0200, Dag-Erling Smorgrav wrote: > I ran into this bug while analyzing a customer's logs to determine the > best time of day for an upgrade. The original script was in Perl, but > I rewrote it in C because it was too slow. Could you provide the Perl script as

gcc -O bug

2001-04-26 Thread Dag-Erling Smorgrav
I ran into this bug while analyzing a customer's logs to determine the best time of day for an upgrade. The original script was in Perl, but I rewrote it in C because it was too slow. The C version produces incorrect results when compiled with -O. Note that the log starts at 16:27. The warning