Red Hat Bugzilla – Bug 192816
static inline function wrongly left out of generated assembly
Last modified: 2007-11-30 17:11:33 EST
Description of problem:
Version-Release number of selected component (if applicable):
Reproduced in both gcc-4.1.0-3 (released) and gcc-4.1.0-19.fc5 (testing).
Compile the attached code to assembly in PIC mode:
cc -fPIC -Wall -S static.c
The function "callback" is a static inline whose address is used, so it should
be included in the assembly but it is not. Removing -fPIC causes it to appear as
does turning on the optimiser with -O.
Function "callback" not in assembly output.
Function "callback" in assembly output.
This works in the FC4 gcc 4.0.2 compiler.
Created attachment 129855 [details]