This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [m68k] Fix m68k-netbsdelf bootstrap


Richard Henderson wrote:
On Tue, Jan 13, 2004 at 02:52:52PM +0100, Andreas Schwab wrote:

This is easy, now that we require C89.  Tested with a ia64->m68k-linux
cross compiler.  Could you please double check?

I was going to say it wouldn't work, but then I recalled the way cpp expands macros allows overriding REGISTER_PREFIX after the definition REGISTER_NAMES.


Well, there's still the matter of a6 vs fp.  Do all assemblers
support a6?  (I'd hope so, but...).

The opposite is most likely true: several m68k assemblers I used on the Amiga didn't have any "fp" register, because using link/unlink wasn't common practice. Even most C compilers didn't use it by default.

Anyway, I like seeing "fp" in GCC's output as it helps reading
the code.  Could we add yet another hook in m68k.h such as

  #undef M68K_FP_REG_NAME
  #define M68K_FP_REG_NAME "fp"

?

--
 // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/



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