3e9aca0f34
Attribute optimize(0) doesn't appear to be helpful helpful. This prevents optimization in the function but not at call sites to the function. The function may still be inlined since it has no side effect (in some cases that we currently don't support). Having a side effect prevents a call site optimization that allows removal of a noinline function call with no side effect. Call site optimization should only happen (in GCC at least) when using whole program optimization so this may be stronger than we strictly need. Also added _amdgpu_r_debug to the exported symbol list (global) and switched to the standard macro for an exported symbol (HSA_API). Without being in the global list the debugger will not find this symbol if the binary has been stripped. Change-Id: Ieb00175ccc55fda4491deee44711cd55b3f24aeb