aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2015-09-12 22:19:00 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2015-09-12 22:19:00 +0000
commit2f0c2a0cc4024163281b7c960764635fafb21b8d (patch)
tree640127d272b25dce189f22f63c39c3ffc6518f55 /gcc
parentffaa5de654e256225a7dd324d40958fa93ad0250 (diff)
downloadgcc-2f0c2a0cc4024163281b7c960764635fafb21b8d.zip
gcc-2f0c2a0cc4024163281b7c960764635fafb21b8d.tar.gz
gcc-2f0c2a0cc4024163281b7c960764635fafb21b8d.tar.bz2
remove STRUCT_VALUE macro
This macro was converted to the TARGET_STRUCT_VALUE_RTX hook many years ago, however there are still some lingering definitions, and a use in libobjc. All the remaining definitions define the macro to 0, which libobjc treats the same as undefined, so it won't break anything else to have libobjc stop checking the macro. However it may be that this part of libobjc has been broken for a long time on targets that only define the hook, but that is a separate issue. gcc/ChangeLog: 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * config/arc/arc.h: Remove define of STRUCT_VALUE. * config/lm32/lm32.h: Likewise. * config/mep/mep.h: Likewise. * config/visium/visium.h: Likewise. * system.h: Poison STRUCT_VALUE macro. libobjc/ChangeLog: 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> PR libobjc/24775 * sendmsg.c: Remove check of STRUCT_VALUE macro. From-SVN: r227710
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/arc/arc.h4
-rw-r--r--gcc/config/lm32/lm32.h2
-rw-r--r--gcc/config/mep/mep.h2
-rw-r--r--gcc/config/visium/visium.h8
-rw-r--r--gcc/system.h2
6 files changed, 9 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c49902d..6e9e378 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
+ * config/arc/arc.h: Remove define of STRUCT_VALUE.
+ * config/lm32/lm32.h: Likewise.
+ * config/mep/mep.h: Likewise.
+ * config/visium/visium.h: Likewise.
+ * system.h: Poison STRUCT_VALUE macro.
+
2015-09-12 John David Anglin <danglin@gcc.gnu.org>
* config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index 874b118..e8baf5b 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -896,10 +896,6 @@ arc_return_addr_rtx(COUNT,FRAME)
/* Tell GCC to use RETURN_IN_MEMORY. */
#define DEFAULT_PCC_STRUCT_RETURN 0
-/* Register in which address to store a structure value
- is passed to a function, or 0 to use `invisible' first argument. */
-#define STRUCT_VALUE 0
-
/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
the stack pointer does not matter. The value is tested only in
functions that have frame pointers.
diff --git a/gcc/config/lm32/lm32.h b/gcc/config/lm32/lm32.h
index 986383f..c65538a 100644
--- a/gcc/config/lm32/lm32.h
+++ b/gcc/config/lm32/lm32.h
@@ -302,8 +302,6 @@ enum reg_class
LM32_NUM_INTS ((MODE) == BLKmode ? \
int_size_in_bytes (TYPE) : GET_MODE_SIZE (MODE))
-#define STRUCT_VALUE 0
-
/*---------------------------*/
/* Function entry and exit. */
/*---------------------------*/
diff --git a/gcc/config/mep/mep.h b/gcc/config/mep/mep.h
index f7322cb7..4d335b0 100644
--- a/gcc/config/mep/mep.h
+++ b/gcc/config/mep/mep.h
@@ -499,8 +499,6 @@ typedef struct
#define DEFAULT_PCC_STRUCT_RETURN 0
-#define STRUCT_VALUE 0
-
#define FUNCTION_OK_FOR_SIBCALL(DECL) mep_function_ok_for_sibcall(DECL)
/* Prologue and epilogues are all handled via RTL. */
diff --git a/gcc/config/visium/visium.h b/gcc/config/visium/visium.h
index a2ab61c..71c960e 100644
--- a/gcc/config/visium/visium.h
+++ b/gcc/config/visium/visium.h
@@ -1075,14 +1075,6 @@ struct visium_args
If not defined, this defaults to the value 1. */
#define DEFAULT_PCC_STRUCT_RETURN 0
-/* `STRUCT_VALUE'
-
- If the structure value address is not passed in a register, define
- `STRUCT_VALUE' as an expression returning an RTX for the place
- where the address is passed. If it returns 0, the address is
- passed as an "invisible" first argument. */
-#define STRUCT_VALUE 0
-
/* Caller-Saves Register Allocation
If you enable it, GNU CC can save registers around function calls.
diff --git a/gcc/system.h b/gcc/system.h
index 1cc5d40..3189bda 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -956,7 +956,7 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
EXTRA_ADDRESS_CONSTRAINT CONST_DOUBLE_OK_FOR_CONSTRAINT_P \
CALLER_SAVE_PROFITABLE LARGEST_EXPONENT_IS_NORMAL \
ROUND_TOWARDS_ZERO SF_SIZE DF_SIZE XF_SIZE TF_SIZE LIBGCC2_TF_CEXT \
- LIBGCC2_LONG_DOUBLE_TYPE_SIZE
+ LIBGCC2_LONG_DOUBLE_TYPE_SIZE STRUCT_VALUE
/* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \