`insn does not satisfy its constraints` when compiling a simple program.

2020-04-18 Thread Joe via Gcc
Hello, I am working on writing a backend for a new architecture but I have encountered a problem. When I try to compile the following simple program with -O0 (note: this problem does not occur when optimizations are enabled): int main() { int a = 10; a++; } I get this error: test.

Re: `insn does not satisfy its constraints` when compiling a simple program.

2020-04-23 Thread Joe via Gcc
Hi, thanks for the response, I've given debugging it a try but I cannot figure out what is causing it to fail. It's probably just my inexperience. Thanks for the input, it's very much appreciated. Cheers, Joe On 20/04/2020 19:43, Jim Wilson wrote: On Sat, Apr 18, 2020 at 8:45