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));
}
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:
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));
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();
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: