This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/7425: deprecated attribute doesn't merge with multiple declarations


>Number:         7425
>Category:       c
>Synopsis:       deprecated attribute doesn't merge with multiple declarations
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 28 12:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     James Antill
>Release:        3.1.1
>Organization:
n/a
>Environment:
System: Linux code.and.org 2.4.18-5 #1 Mon Jun 10 15:37:14 EDT 2002 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --prefix=/opt : (reconfigured) ./configure --prefix=/opt/gcc-3.1.1
>Description:
	If you have to extern declarations for a function as in...

extern void func(void);
extern __typeof(func) func __attribute__((deprecated)) ;

	...then the attribute is ignored.

>How-To-Repeat:
	see above.
>Fix:
	I'm guessing that a new TREE() node is created for the second
declaration, so either make that the one that is found ... or merge them.

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]