From: Jeff Law Date: Sun, 22 Feb 1998 19:54:13 +0000 (-0700) Subject: pa.h (TEXT_SPACE_P): Remove unnecessary indirection into tree_code_type. X-Git-Tag: prereleases/egcs-1.0.2-prerelease~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57b67f059c523acab8c48e9356ba028cf1a88295;p=thirdparty%2Fgcc.git pa.h (TEXT_SPACE_P): Remove unnecessary indirection into tree_code_type. * pa/pa.h (TEXT_SPACE_P): Remove unnecessary indirection into tree_code_type. * vax/vms.h (SELECT_SECTION): Similarly. Remove this change -- I was in the wrong tree (release instead of mainline). Sigh. Starting to burn out a little on this stuff. From-SVN: r18194 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e003c27b5cf..8dfec4121178 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,9 +1,3 @@ -Sun Feb 22 20:48:54 1998 Jeffrey A Law (law@cygnus.com) - - * pa/pa.h (TEXT_SPACE_P): Remove unnecessary indirection - into tree_code_type. - * vax/vms.h (SELECT_SECTION): Similarly. - Sun Feb 22 20:46:31 1998 Bernd Schmidt * expr.c (emit_move_insn_1): When moving complex values in several diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 19b1c605c124..5944448a849c 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -1649,7 +1649,7 @@ extern struct rtx_def *hppa_legitimize_address (); && TREE_READONLY (DECL) && ! TREE_SIDE_EFFECTS (DECL) \ && (! DECL_INITIAL (DECL) || ! reloc_needed (DECL_INITIAL (DECL))) \ && !flag_pic) \ - || (tree_code_type[(int) TREE_CODE (DECL)] == 'c' \ + || (*tree_code_type[(int) TREE_CODE (DECL)] == 'c' \ && !(TREE_CODE (DECL) == STRING_CST && flag_writable_strings))) #define FUNCTION_NAME_P(NAME) \ diff --git a/gcc/config/vax/vms.h b/gcc/config/vax/vms.h index 44bb55cede3b..d8580b5c1a13 100644 --- a/gcc/config/vax/vms.h +++ b/gcc/config/vax/vms.h @@ -264,7 +264,7 @@ const_section () \ else \ data_section (); \ } \ - if (tree_code_type[(int) TREE_CODE (T)] == 'c') \ + if (*tree_code_type[(int) TREE_CODE (T)] == 'c') \ { \ if ((TREE_CODE (T) == STRING_CST && flag_writable_strings)) \ data_section (); \