diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-12 22:19:00 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-12 22:19:00 +0000 |
commit | 43554d4d8ce5a2b9cfe11e8818b4b4631e07b570 (patch) | |
tree | 640127d272b25dce189f22f63c39c3ffc6518f55 /libobjc | |
parent | 88b9f96156f221b7fe19ba1e7457dd1b04dc2607 (diff) | |
download | gcc-43554d4d8ce5a2b9cfe11e8818b4b4631e07b570.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227710 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc')
-rw-r--r-- | libobjc/ChangeLog | 5 | ||||
-rw-r--r-- | libobjc/sendmsg.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index f176fd0fc45..26e468fc584 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> + + PR libobjc/24775 + * sendmsg.c: Remove check of STRUCT_VALUE macro. + 2015-05-13 Eric Botcazou <ebotcazou@adacore.com> * configure.ac: Remove manual SJLJ check. diff --git a/libobjc/sendmsg.c b/libobjc/sendmsg.c index 8e347dfede3..3a079f08903 100644 --- a/libobjc/sendmsg.c +++ b/libobjc/sendmsg.c @@ -47,7 +47,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include <assert.h> /* For assert */ #include <string.h> /* For strlen */ -/* This is how we hack STRUCT_VALUE to be 1 or 0. */ #define gen_rtx(args...) 1 #define gen_rtx_MEM(args...) 1 #define gen_rtx_REG(args...) 1 @@ -55,11 +54,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #undef rtx #define rtx int -#if ! defined (STRUCT_VALUE) || STRUCT_VALUE == 0 #define INVISIBLE_STRUCT_RETURN 1 -#else -#define INVISIBLE_STRUCT_RETURN 0 -#endif /* The uninstalled dispatch table. If a class' dispatch table points to __objc_uninstalled_dtable then that means it needs its dispatch |