This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
patch: sim/ppc sim_hwflags
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: gdb-patches at sourceware dot org
- Cc: dje at google dot com
- Date: Mon, 14 Sep 2009 22:42:17 +0200
- Subject: patch: sim/ppc sim_hwflags
Hello,
current cvs gdb fails to build for me since this issue.
sim_hwflags does not seem to be populated for the build process.
Attached a patch which builds here on poerpc-freebsd8.
The patch itself needs an autoconf run in src/sim/ppc, this diff is not
included.
I do not know if it is ok, anyway.
Might be I hit an arch which this is needed and the whole world does not
need it ;).
Andreas
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/sim/ppc/Makefile.in,v
retrieving revision 1.26
diff -u -r1.26 Makefile.in
--- Makefile.in 30 Jul 2009 22:53:18 -0000 1.26
+++ Makefile.in 14 Sep 2009 20:35:39 -0000
@@ -70,6 +70,7 @@
RANLIB = @RANLIB@
SIM_CFLAGS = @sim_cflags@
+SIM_HWFLAGS = @sim_hwflags@
INLINE_CFLAGS = @sim_inline@
BSWAP_CFLAGS = @sim_bswap@
ENDIAN_CFLAGS = @sim_endian@
@@ -116,8 +117,8 @@
$(DEVZERO_CFLAGS)
SIM_FPU_CFLAGS = @sim_fpu_cflags@
-STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS)
-NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS)
+STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS) $(SIM_HWFLAGS)
+NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS) $(SIM_HWFLAGS)
BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(INCLUDES) $(WARNING_CFLAGS)
BUILD_LDFLAGS =
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/sim/ppc/configure.ac,v
retrieving revision 1.10
diff -u -r1.10 configure.ac
--- configure.ac 18 Nov 2008 21:30:37 -0000 1.10
+++ configure.ac 14 Sep 2009 20:35:39 -0000
@@ -901,6 +901,7 @@
AC_SUBST(sim_targ_vals)
AC_SUBST(sim_fpu_cflags)
AC_SUBST(sim_fpu)
+AC_SUBST(sim_hwflags)
AC_OUTPUT(Makefile,
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])