r225129 - in /branches/gcc-5-branch/gcc: jit/Ch...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Mon Jun 29 15:41:00 GMT 2015


Author: dmalcolm
Date: Mon Jun 29 15:41:02 2015
New Revision: 225129

URL: https://gcc.gnu.org/viewcvs?rev=225129&root=gcc&view=rev
Log:
jit: Add missing type-checking to gcc_jit_{l|r}value_access_field

Backport of r224565
(aka 6689f47f53079d76bbb051d3b5da9018c2e0161a) from trunk

gcc/jit/ChangeLog:
	Backport from mainline r224565
	2015-06-17  David Malcolm  <dmalcolm@redhat.com>

	* libgccjit.c (gcc_jit_lvalue_access_field): Verify that the field
	is for the correct struct.
	(gcc_jit_rvalue_access_field): Likewise.

gcc/testsuite/ChangeLog:
	Backport from mainline r224565
	2015-06-17  David Malcolm  <dmalcolm@redhat.com>

	* jit.dg/test-error-accessing-field-in-other-struct.c: Rename to...
	* jit.dg/test-error-gcc_jit_rvalue_dereference_field-wrong-struct.c:
	...this.
	* jit.dg/test-error-gcc_jit_lvalue_access_field-wrong-struct.c:
	New testcase.
	* jit.dg/test-error-gcc_jit_rvalue_access_field-wrong-struct.c:
	New testcase.


Added:
    branches/gcc-5-branch/gcc/testsuite/jit.dg/test-error-gcc_jit_lvalue_access_field-wrong-struct.c
    branches/gcc-5-branch/gcc/testsuite/jit.dg/test-error-gcc_jit_rvalue_access_field-wrong-struct.c
    branches/gcc-5-branch/gcc/testsuite/jit.dg/test-error-gcc_jit_rvalue_dereference_field-wrong-struct.c
      - copied unchanged from r225128, branches/gcc-5-branch/gcc/testsuite/jit.dg/test-error-accessing-field-in-other-struct.c
Removed:
    branches/gcc-5-branch/gcc/testsuite/jit.dg/test-error-accessing-field-in-other-struct.c
Modified:
    branches/gcc-5-branch/gcc/jit/ChangeLog
    branches/gcc-5-branch/gcc/jit/libgccjit.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list