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]

[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  <robertmh@gnu.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.
> 
> Committed.

Unfortunately it breaks x86_64-*-linux.
Fixed thusly, committed as obvious.

2004-11-27  Jakub Jelinek  <jakub@redhat.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

	Jakub


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