aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-09-28 16:00:57 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-09-28 16:00:57 +0000
commit5a47aa2c8c36571a51552e46f3d971c107d5bf88 (patch)
tree5896869c2602163e4d7f534581d112054601d4e2 /gcc/config
parentf276c46cd81d7a0008c696ddb75638dc6aa25f92 (diff)
downloadgcc-5a47aa2c8c36571a51552e46f3d971c107d5bf88.zip
gcc-5a47aa2c8c36571a51552e46f3d971c107d5bf88.tar.gz
gcc-5a47aa2c8c36571a51552e46f3d971c107d5bf88.tar.bz2
jit: handle equality of function pointer types
gcc/jit/ChangeLog: * jit-recording.c (gcc::jit::recording::function_type::is_same_type_as): New function. * jit-recording.h: In namespace gcc::jit::recording:: (type::accepts_writes_from): Use is_same_type_as rather than pointer equality. (type::is_same_type_as): New virtual function. (function_type::is_same_type_as): New override. gcc/testsuite/ChangeLog: * jit.dg/test-error-mismatching-types-in-assignment-fn-ptr.c: New test case. * jit.dg/test-returning-function-ptr.c (create_code): Update to create a function pointer type independently of the call to gcc_jit_function_get_address, and assign the pointer to a local before returning it, to exercise the function pointer type comparison code. From-SVN: r253255
Diffstat (limited to 'gcc/config')
0 files changed, 0 insertions, 0 deletions