aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-08-21 02:07:01 +0000
committerJeff Law <law@gcc.gnu.org>1998-08-20 20:07:01 -0600
commitf24b26edd3e791a71a81f5acaf0c10cb3685072e (patch)
tree1d72c6b622d795c182faf67ea4f27ef578a7f419 /gcc
parent1df7c0ee2582f357f2b7b4a3436b04820d875f62 (diff)
downloadgcc-f24b26edd3e791a71a81f5acaf0c10cb3685072e.zip
gcc-f24b26edd3e791a71a81f5acaf0c10cb3685072e.tar.gz
gcc-f24b26edd3e791a71a81f5acaf0c10cb3685072e.tar.bz2
h8300.c (h8300_encode_label): Use '&' for tiny data items.
* h8300.c (h8300_encode_label): Use '&' for tiny data items. * h8300.h (TINY_DATA_NAME_P): Likewise. (STRIP_NAME_ENCODING): Handle '&'. From-SVN: r21892
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/h8300/h8300.c2
-rw-r--r--gcc/config/h8300/h8300.h4
3 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4bda631..ed6d2dc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
Thu Aug 20 19:43:44 1998 Jeffrey A Law (law@cygnus.com)
+ * h8300.c (h8300_encode_label): Use '&' for tiny data items.
+ * h8300.h (TINY_DATA_NAME_P): Likewise.
+ (STRIP_NAME_ENCODING): Handle '&'.
+
* mn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the
register (it could be accessed via an outer SUBREG).
(REG_OK_FOR_BASE_P): Likewwise.
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index e0dff83..3f66b06 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -2996,7 +2996,7 @@ h8300_encode_label (decl)
newstr = obstack_alloc (saveable_obstack, len + 2);
strcpy (newstr + 1, str);
- *newstr = '*';
+ *newstr = '&';
XSTR (XEXP (DECL_RTL (decl), 0), 0) = newstr;
}
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index 4da7c9e..3d2d1e3 100644
--- a/gcc/config/h8300/h8300.h
+++ b/gcc/config/h8300/h8300.h
@@ -1117,7 +1117,7 @@ readonly_data() \
} \
}
-#define TINY_DATA_NAME_P(NAME) (*(NAME) == '*')
+#define TINY_DATA_NAME_P(NAME) (*(NAME) == '&')
/* If we are referencing a function that is supposed to be called
through the function vector, the SYMBOL_REF_FLAG in the rtl
@@ -1138,7 +1138,7 @@ readonly_data() \
/* Store the user-specified part of SYMBOL_NAME in VAR.
This is sort of inverse to ENCODE_SECTION_INFO. */
#define STRIP_NAME_ENCODING(VAR,SYMBOL_NAME) \
- (VAR) = (SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*' || (SYMBOL_NAME)[0] == '@');
+ (VAR) = (SYMBOL_NAME) + ((SYMBOL_NAME)[0] == '*' || (SYMBOL_NAME)[0] == '@' || SYMBOL_NAME[0] == '&')
/* How to refer to registers in assembler output.
This sequence is indexed by compiler's hard-register-number (see above). */