This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[m68k] Fix m68k-netbsdelf bootstrap
- From: Bernardo Innocenti <bernie at develer dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 12 Jan 2004 21:48:12 +0100
- Subject: [m68k] Fix m68k-netbsdelf bootstrap
- Organization: Develer S.r.l.
Fix crash during bootstrap on m68k-netbsdelf caused by a NULL
pointer in the register names array.
It would be nice if we could factor these multiple REGISTER_NAMES
definitions in a single place. The default in m68k.h is the
opposite of what most targets want.
2004-01-12 Bernardo Innocenti <bernie@develer.com>
* config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
pseudo-register.
diff -u -p -u -p -r1.19 netbsd-elf.h
--- gcc/config/m68k/netbsd-elf.h 30 Nov 2003 04:20:28 -0000 1.19
+++ gcc/config/m68k/netbsd-elf.h 12 Jan 2004 20:36:27 -0000
@@ -185,7 +185,7 @@ while (0)
#define REGISTER_NAMES \
{"%d0", "%d1", "%d2", "%d3", "%d4", "%d5", "%d6", "%d7", \
"%a0", "%a1", "%a2", "%a3", "%a4", "%a5", "%fp", "%sp", \
- "%fp0", "%fp1", "%fp2", "%fp3", "%fp4", "%fp5", "%fp6", "%fp7" }
+ "%fp0", "%fp1", "%fp2", "%fp3", "%fp4", "%fp5", "%fp6", "%fp7", "argptr" }
/* Currently, JUMP_TABLES_IN_TEXT_SECTION must be defined in order to
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/