Bug 20167 - document that attribute alias does not reference a name
Summary: document that attribute alias does not reference a name
Status: RESOLVED DUPLICATE of bug 15700
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: documentation
Depends on:
Blocks:
 
Reported: 2005-02-23 15:04 UTC by stelios
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stelios 2005-02-23 15:04:53 UTC
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.
Comment 1 Andrew Pinski 2005-02-23 15:11:10 UTC
This is not a bug.  This is a dup of bug 15700.

*** This bug has been marked as a duplicate of 15700 ***
Comment 2 Giovanni Bajo 2005-02-23 17:11:11 UTC
We could document that in the manual though. Reopening to keep track of this as 
a request for enhancement in the manual.
Comment 3 Richard Henderson 2005-03-16 21:51:34 UTC
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 ***