This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about asm on functions/variables
- From: Andrew Pinski <pinskia at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 01 Nov 2006 20:10:34 -0800
- Subject: Question about asm on functions/variables
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?
Thanks,
Andrew Pinski