This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: asm needs too many reloads
- To: "jonathan page" <pagejonathan at hotmail dot com>
- Subject: Re: asm needs too many reloads
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 Aug 2001 22:20:00 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <F207GbWnZZ3cNfOUwGY0000e03b@hotmail.com>
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