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 AM Joe via Gcc

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

2020-04-20 Thread Jim Wilson
On Sat, Apr 18, 2020 at 8:45 AM Joe via Gcc wrote: > test.c: In function ‘main’: > test.c:5:1: error: insn does not satisfy its constraints: The constrain_operands function is failing to match the insn to its constraints. Try putting a breakpoint there, and stepping through the code to see what

`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.