> I have a general question about the g++ compiler available in buildroot version 1161. I have noticed that the compiler does not inline my template functions if I use -O3 compiler option. It only inlines the function if I mark them with the "inline" keyword. Can I give the compiler special options to solve this problem ? For example VC7.1 does inline the functions without the inline keyword.
According to the gcc help options, one of the following look useful:
-fdefault-inline Inline member functions by default
-fimplicit-inline-templates Emit implicit instantiations of inline templates
You can get the list of options by doing:
./arm-linux-gcc -v --help > gcc.opt 2>&1
and then loading up gcc.opt into your editor for searching.
Vancouver, BC, Canada