typescript of the problem: ###################################### stan@vaxatron:~/wtmp> cat gb2.c static inline int foo () { return 123; } static inline int bar () __attribute__ ((alias ("foo"))); int main () { return bar (); } stan@vaxatron:~/wtmp> CVSgcc gb2.c /tmp/ccWI7qQj.o: In function `main': /tmp/ccWI7qQj.o(.text+0x1d): undefined reference to `foo' collect2: ld returned 1 exit status stan@vaxatron:~/wtmp> CVSgcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/home/stan/GCC/gcc-4.0-20050220/bin --program-prefix=CVS : (reconfigured) ../configure --prefix=/home/stan/GCC/gcc-4.0-20050220/bin --program-prefix=CVS Thread model: posix gcc version 4.0.0 20050220 (experimental) ########################################### Seems to discard the function because it thinks it's unused.
This is not a bug. This is a dup of bug 15700. *** This bug has been marked as a duplicate of 15700 ***
We could document that in the manual though. Reopening to keep track of this as a request for enhancement in the manual.
Actually, being a dup of PR 15700, it was a bug. No doc updates needed. *** This bug has been marked as a duplicate of 15700 ***