Keywords: GNU, gcc, inline
When compiling code for the PPC using the EDK tools, the code contains some inline functions similar to the following:
extern inline void out_be8(volatile unsigned char *addr, unsigned int val) { ... }
The code works when compiled with optimization turned on, but when the optimization is turned off the compiler does not find some function calls in the header file. The error message is similar to the following:
"/cygdrive/c/edk_projects/simple_test/src/io.h:81: undefined reference to 'out_be8'"
How do I fix this problem?