Re: GCC RTX generation question

2010-10-21 Thread Radu Hobincu
Radu Hobincu radu.hobi...@arh.pub.ro writes: 2. I have another piece of code that fails to compile with -O3. - struct desc{ int int1; int int2; int int3; }; int bugTest(struct desc *tDesc){ return *((int*)(tDesc-int1 + 16)); }

Re: GCC RTX generation question

2010-10-20 Thread Radu Hobincu
Radu Hobincu radu.hobi...@arh.pub.ro writes: 1. I have the following code: --- extern void doSmth(); void bugTest(){ doSmth(); } --- It compiles fine with -O0, but when I try to use -O3, I get the following compiler error:

Re: GCC RTX generation question

2010-10-20 Thread Ian Lance Taylor
Radu Hobincu radu.hobi...@arh.pub.ro writes: 2. I have another piece of code that fails to compile with -O3. - struct desc{ int int1; int int2; int int3; }; int bugTest(struct desc *tDesc){ return *((int*)(tDesc-int1 + 16));

GCC RTX generation question

2010-10-19 Thread Radu Hobincu
Hello, I wrote here before a few months ago, I'm trying to port GCC to a simple RISC machine and I have two problems I don't seem to be able to fix. I'm using gcc 4.4.3 for both compiling and as source code. 1. I have the following code: --- extern void doSmth();

Re: GCC RTX generation question

2010-10-19 Thread Ian Lance Taylor
Radu Hobincu radu.hobi...@arh.pub.ro writes: 1. I have the following code: --- extern void doSmth(); void bugTest(){ doSmth(); } --- It compiles fine with -O0, but when I try to use -O3, I get the following compiler error: