This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Xtensa] add default value for new macro
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 25 Apr 2006 08:47:18 -0700
- Subject: [Xtensa] add default value for new macro
My change on 2006-01-09 added a new XCHAL_HAVE_WIDE_BRANCHES macro to
include/xtensa-config.h. That file is intended to be replaced with values to
match particular Xtensa processor configurations, and if someone replaces it
with an older copy of the file, the new macro may be missing. This patch adds a
default value in the assembler so that it will still build with an older version
of the xtensa-config.h header. Committed on mainline and the 2.17 branch.
2006-04-25 Bob Wilson <bob.wilson@acm.org>
* config/xtensa-relax.c (XCHAL_HAVE_WIDE_BRANCHES): Provide default.
Index: config/xtensa-relax.c
===================================================================
RCS file: /cvs/src/src/gas/config/xtensa-relax.c,v
retrieving revision 1.10
diff -u -p -r1.10 xtensa-relax.c
--- config/xtensa-relax.c 30 Dec 2005 23:34:00 -0000 1.10
+++ config/xtensa-relax.c 25 Apr 2006 15:38:37 -0000
@@ -101,6 +101,10 @@
#include <stddef.h>
#include "xtensa-config.h"
+#ifndef XCHAL_HAVE_WIDE_BRANCHES
+#define XCHAL_HAVE_WIDE_BRANCHES 0
+#endif
+
/* Imported from bfd. */
extern xtensa_isa xtensa_default_isa;