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: Question about asm on functions/variables


Andrew Pinski <pinskia@gmail.com> writes:

> I noticed this with the recent C99 inline changes but it is unrelated to
> the changes as 4.1 also has the same issue.  With the following TU:
> extern void f(void) __asm__("g");
> extern void g(void);
> extern void f(void) {}
> extern void g(void) {}
> ---------------
> We don't reject this TU during compiling but the assembler does.  Is
> this correct or should we actually reject this during compiling?

Personally, I think it would be OK to reject this in the compiler but
it doesn't seem all that important to me.  If it is easy to detect
this case in the compiler, then we could go ahead and do it there, but
I suspect that it is not all that easy.

Ian


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