From: Jeffrey A Law Date: Sat, 12 Dec 1998 23:12:43 +0000 (+0000) Subject: h8300.c (h8300_encode_label): Use '&' for tiny data items. X-Git-Tag: prereleases/egcs-1.1.2-prerelease-1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e5432d553cb107dae6cfd345e9066898745833c;p=thirdparty%2Fgcc.git 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: r24284 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 55f22f0dd784..c94b3093b8e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sun Dec 13 00:09:47 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 '&'. + Wed Dec 2 01:44:58 1998 Jeffrey A Law (law@cygnus.com) * egcs-1.1.1 released. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index e0dff83c9d36..3f66b0630b5f 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 4da7c9ea96f2..c65eb42e1767 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). */