Summary: | Pointer arithmetic in libgccjit seems to require an extra cast | ||
---|---|---|---|
Product: | gcc | Reporter: | Roger Ferrer Ibanez <rofirrim> |
Component: | jit | Assignee: | David Malcolm <dmalcolm> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 5.2.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | ||
Attachments: | Small reproducer |
Description
Roger Ferrer Ibanez
2015-11-16 06:10:30 UTC
// text++; Can't this be computed as: text = text POINTER_PLUS 1; ? Thanks for reporting this. That error message: libgccjit.so: error: gcc_jit_block_add_assignment: mismatching types: assignment to text (type: const char *) from &text[(int)1] (type: const char *) looks wrong. Please can you attach the full reproducer as a .c file (perhaps using gcc_jit_context_dump_reproducer_to_file; see https://gcc.gnu.org/onlinedocs/jit/topics/contexts.html#gcc_jit_context_dump_reproducer_to_file ). Created attachment 36729 [details]
Small reproducer
|