PR jit/66783: improve error messages
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 8 Jul 2015 14:41:59 +0000 (14:41 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 8 Jul 2015 14:41:59 +0000 (14:41 +0000)
commit58c5ad4032b2bb9e39a0d8c9925c0673f22877a0
tree3fbc08b75a6006db22d369b7360f24233a99c656
parentcadb53a5e6c47904f42e636dadbfada6c76fec39
PR jit/66783: improve error messages

gcc/jit/ChangeLog:
PR jit/66783
* libgccjit.c (gcc_jit_context_new_field): Show name of field in
"unknown size" error message.
(gcc_jit_struct_set_fields): Show name of struct in error message.
(gcc_jit_context_new_global): Show name of global in
"unknown size" error message.
(gcc_jit_function_new_local): Likewise for local.

gcc/testsuite/ChangeLog:
PR jit/66783
* jit.dg/test-error-gcc_jit_context_new_field-opaque-struct.c
(verify_code): Update expected error message.
* jit.dg/test-error-gcc_jit_context_new_global-opaque-struct.c
(verify_code): Likewise.
* jit.dg/test-error-gcc_jit_function_new_local-opaque-struct.c
(verify_code): Likewise.

From-SVN: r225557
gcc/jit/ChangeLog
gcc/jit/libgccjit.c
gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/test-error-gcc_jit_context_new_field-opaque-struct.c
gcc/testsuite/jit.dg/test-error-gcc_jit_context_new_global-opaque-struct.c
gcc/testsuite/jit.dg/test-error-gcc_jit_function_new_local-opaque-struct.c