This is the mail archive of the gcc-help@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: asm needs too many reloads


On Aug 16, 2001, "jonathan page" <pagejonathan@hotmail.com> wrote:

> /* This code snippet works fine...but the problem shows up when
> * this macro is included from a large c file with many such macros
> */

Then, we need the large C file ot be able to duplicate the problem.
Or a reduced version thereof that still triggers it.

Consider using local variables to hold copies of op1 and op2, and
other local variables for __temp and fl, explicitly assigned to the
global variables after the asm statement.  I believe this would help
reload do its job.

-- 
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


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