This is the mail archive of the gcc@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]

Re: merge_translation_unit_decls / duplicate_decls



On 17/11/2003, at 9:53 PM, Per Bothner wrote:


It seems to me that TREE_ASM_WRITTEN only when we had [before
this code is executed], because of the earlier assignment:
DECL_EXTERNAL (newdecl) && ! DECL_EXTERNAL (olddecl)

Yes, but after the code we have ! DECL_EXTERNAL on both of them. So, now we have two *definitions* of this decl, and if we try to write them both out, we'll get a duplicate symbol error in the assembly code; so we suppress writing one of them out.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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