This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING] Target hook for rewriting inline asm constraints
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: "Andreas Krebbel" <Andreas dot Krebbel at de dot ibm dot com>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 04 Nov 2007 23:05:27 +0000
- Subject: Re: [PING] Target hook for rewriting inline asm constraints
- References: <20071030115424.GA6864@homer.boeblingen.de.ibm.com> <m3sl3r5o38.fsf@fleche.redhat.com> <84fc9c000710310830i10fb4bc5vd8c73a3ade568811@mail.gmail.com> <20071031162911.GA13462@homer.boeblingen.de.ibm.com> <84fc9c000710310943i7c45fadcs7f3558816218ffa3@mail.gmail.com> <20071031172121.GA14226@homer.boeblingen.de.ibm.com>
"Andreas Krebbel" <Andreas.Krebbel@de.ibm.com> writes:
> So you actually can't support new addressing formats in the back end
> without changing the semantics of it. The proper way would be to
> disallow the "m" constraint in inline assemblies but thats probably a
> bit late ;)
Sorry if this has already been suggested, but why not just replace
hard-coded uses of 'm' in constraint-handling code with uses of some
target macro? You could then treat your current 'm' as an ordinary
define_memory_constraint.
Richard