Re: Question about asm on functions/variables

2006-11-02 Thread Mike Stump
On Nov 1, 2006, at 8:10 PM, Andrew Pinski wrote: We don't reject this TU during compiling but the assembler does. Is this correct or should we actually reject this during compiling? If you add any checking code, also consider: int i asm("r1"); int j asm("r1");

Re: Question about asm on functions/variables

2006-11-01 Thread Ian Lance Taylor
Andrew Pinski <[EMAIL PROTECTED]> 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) {} >

Question about asm on functions/variables

2006-11-01 Thread Andrew Pinski
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