This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Inline function in while expression not evaluated


Whoops!  I'm not on the list so I had no idea I sent this.

While I was composing the message I figured out my problem
by using Alexandre's previous advice with asm volatile 
to keep the while loop from optimizing out the function
call.

I thought I aborted the message but it looks like Deja.com
had other ideas.  Thanks to those who have replied.

Jeff

>To: "Jeff Hammond" <jshammond@my-deja.com>
>Cc: gcc@gcc.gnu.org
>Subject: Re: Inline function in while expression not evaluated
>From: Alexandre Oliva <aoliva@redhat.com>
>Date: 25 Jan 2001 19:52:47 -0200
>
>On Jan 25, 2001, "Jeff Hammond" <jshammond@my-deja.com> wrote:
>
>> I am making more progress with inline functions (thanks
>> Alexandre :) ) and I ran into another problem.
>
>And what problem was that?
>
>> It has to do with the following line of C code:
>>     while( read_testmem16( PROCAB_RTNIADDR + RTNI_READ_STATUS ) 
>> == (short)0xFFFE) {};
>
>Without the rest of the code around it, it will be even harder to
>figure out what went wrong :-)
>
>-- 
>Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
>Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
>CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
>Free Software Evangelist    *Please* write to mailing lists, not to me




------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]