]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove SLOW_SHORT_ACCESS from target headers
authorAndrew Pinski <apinski@marvell.com>
Thu, 10 Nov 2022 01:11:43 +0000 (01:11 +0000)
committerAndrew Pinski <apinski@marvell.com>
Thu, 10 Nov 2022 16:25:33 +0000 (16:25 +0000)
SLOW_SHORT_ACCESS is defined in bfin and i386 target
headers but the target macro is not used elsewhere.
So let's remove it from those two headers and poison it.

OK? Built x86_64-linux-gnu and bfin-elf.

gcc/ChangeLog:

* config/bfin/bfin.h (SLOW_SHORT_ACCESS): Delete.
* config/i386/i386.h (SLOW_SHORT_ACCESS): Delete.
* system.h: Poison SLOW_SHORT_ACCESS

gcc/config/bfin/bfin.h
gcc/config/i386/i386.h
gcc/system.h

index 4e7753038a872f6ef4567558a4f62d3eed915d3f..1d75c655df84386b4bb0188a703008f854192b89 100644 (file)
@@ -810,7 +810,6 @@ typedef struct {
    subsequent accesses occur to other fields in the same word of the
    structure, but to different bytes.  */
 #define SLOW_BYTE_ACCESS  0
-#define SLOW_SHORT_ACCESS 0
 
 /* Define this if most significant bit is lowest numbered
    in instructions that operate on numbered bit-fields. */
index b32db8da1092211050d49eccd0c3bbb1abb3021f..a5ad9f387f7e10e7f1dc193e5713065879253c17 100644 (file)
@@ -1933,9 +1933,6 @@ do {                                                      \
 
 #define SLOW_BYTE_ACCESS 0
 
-/* Nonzero if access to memory by shorts is slow and undesirable.  */
-#define SLOW_SHORT_ACCESS 0
-
 /* Define this macro if it is as good or better to call a constant
    function address than to call an address kept in a register.
 
index c192b6c3ce787e01c09f10bdfefc5f06d59038ef..de9c5c0d2ef08a8d4fe5e7955e120b0949dce63a 100644 (file)
@@ -1075,7 +1075,7 @@ extern void fancy_abort (const char *, int, const char *)
        EH_FRAME_IN_DATA_SECTION TARGET_FLT_EVAL_METHOD_NON_DEFAULT        \
        JCR_SECTION_NAME TARGET_USE_JCR_SECTION SDB_DEBUGGING_INFO         \
        SDB_DEBUG NO_IMPLICIT_EXTERN_C NOTICE_UPDATE_CC                    \
-       CC_STATUS_MDEP_INIT CC_STATUS_MDEP CC_STATUS
+       CC_STATUS_MDEP_INIT CC_STATUS_MDEP CC_STATUS SLOW_SHORT_ACCESS
 
 /* Hooks that are no longer used.  */
  #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE  \