GCC Bugzilla – Attachment 48867 Details for
Bug 95498
unhandled conversion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Minimal reproducer
repro_pr95498.c (text/x-csrc), 1.05 KB, created by
Alex Coplan
on 2020-07-13 09:42:43 UTC
(
hide
)
Description:
Minimal reproducer
Filename:
MIME Type:
Creator:
Alex Coplan
Created:
2020-07-13 09:42:43 UTC
Size:
1.05 KB
patch
obsolete
>#include <assert.h> >#include <libgccjit.h> > >static void build_code(gcc_jit_context *ctx, > enum gcc_jit_types t_outer, enum gcc_jit_types t_inner) >{ > gcc_jit_type *t1 = gcc_jit_context_get_type(ctx, t_outer); > gcc_jit_type *t2 = gcc_jit_context_get_type(ctx, t_inner); > > gcc_jit_param *param = gcc_jit_context_new_param(ctx, NULL, > t1, "x"); > > gcc_jit_function *fn = gcc_jit_context_new_function(ctx, > NULL, GCC_JIT_FUNCTION_EXPORTED, > t1, "test", 1, ¶m, 0); > > gcc_jit_block *block = gcc_jit_function_new_block(fn, NULL); > > gcc_jit_rvalue *rval = gcc_jit_param_as_rvalue(param); > > rval = gcc_jit_context_new_cast(ctx, NULL, rval, t2); > rval = gcc_jit_context_new_cast(ctx, NULL, rval, t1); > > gcc_jit_block_end_with_return(block, NULL, rval); >} > >int main(int argc, char *argv[]) >{ > gcc_jit_context *ctx = gcc_jit_context_acquire(); > assert(ctx); > build_code(ctx, GCC_JIT_TYPE_SHORT, GCC_JIT_TYPE_INT); > gcc_jit_result *result = gcc_jit_context_compile(ctx); > assert(result); > gcc_jit_result_release(result); > gcc_jit_context_release(ctx); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 95498
:
48667
|
48829
| 48867