This is the mail archive of the
mailing list for the GCC project.
[PATCH] Fix i386-k*bsd-gnu fix (w/ChangeLog)
On Fri, Nov 26, 2004 at 10:38:18PM +0100, Gerald Pfeifer wrote:
> On Tue, 16 Nov 2004, Robert Millan wrote:
> > Btw, it's worth noting that this patch was already reviewed and committed by
> > Jim Wilson, but was accidentaly reverted in one of the post-release branch
> > merges. See http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00050.html
> > 2004-11-16 Robert Millan <firstname.lastname@example.org>
> > Changes for k*bsd-gnu support.
> > * config/i386/linux.h: Define REG_NAME to allow overriding of register
> > names in sc structure.
> > * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead of
> > sc->reg.
> > * config.gcc: Detect x86_64-k*bsd-gnu systems.
Unfortunately it breaks x86_64-*-linux.
Fixed thusly, committed as obvious.
2004-11-27 Jakub Jelinek <email@example.com>
* config/i386/linux64.h (REG_NAME): Define.
--- gcc/config/i386/linux64.h.jj 2004-10-18 00:57:21.000000000 +0200
+++ gcc/config/i386/linux64.h 2004-11-27 12:12:01.326687080 +0100
@@ -70,3 +70,6 @@ Boston, MA 02111-1307, USA. */
#define NEED_INDICATE_EXEC_STACK 1
#define MD_UNWIND_SUPPORT "config/i386/linux-unwind.h"
+/* This macro may be overriden in i386/k*bsd-gnu.h */
+#define REG_NAME(reg) reg