]> git.ipfire.org Git - thirdparty/gcc.git/commit
[ObjC] Recognise 'instancetype' as equivalent to 'id'.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 5 Sep 2019 19:06:44 +0000 (19:06 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 5 Sep 2019 19:06:44 +0000 (19:06 +0000)
commitdd1936cc557e10a6131ea83714874be9426585ba
treeb094a927173945623aabc19cc4e494e3f96d4c04
parent4be09c5d8132859b92f668b14fbf26be54b909ad
[ObjC] Recognise 'instancetype' as equivalent to 'id'.

This is primarily about fixing a number of testsuite fails, it
implements the parsing of 'instancetype' but doesn't alter the
code gen (relative to using id in the same position). It is
part of the work-arounds for PR90709.

gcc/objc/

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>

* objc/objc-act.h (OCTI_INSTANCE_TYPE, OCTI_INSTANCETYPE_NAME): New.
(objc_global_trees): Add instance type and name.
(INSTANCE_TYPEDEF_NAME): New.
* objc/objc-act.c (synth_module_prologue): Build decls for
objc_instancetype_type and objc_instancetype_name.

gcc/testsuite/

2019-09-05  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>

* objc.dg/instancetype-0.m: New.

From-SVN: r275428
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/objc/objc-act.h
gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/instancetype-0.m [new file with mode: 0644]