This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
asm and templates
- To: egcs-bugs at cygnus dot com
- Subject: asm and templates
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- Date: Mon, 01 Dec 1997 16:14:22 +0100
Hi,
I think I have found another strange behaviour in egcs. My configuration is:
i586-pc-linux-gnulibc1 with "gcc version egcs-2.90.19 971127"
but the bug exists also with egcs 971122 and should be target independent.
Here is a sample example:
--------------------------------- test2.ii ---------------------------------
# 1 "test2.C"
template <const unsigned c>
void f() {
asm("foo");
}
int
main()
{
f<1>();
}
---------------------------------------------------------------------------
(egcs++ is a symbolic link to the egcs g++ version)
hawai->egcs++ -S test2.ii
This produce a test2.s file that does not contain any string foo. It seems that
asm are silently not emitted when in templates.
Thank's a lot, egcs is a very nice piece of work.
Theo.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: papadop@sophia.inria.fr Tel: (33) 93 65 76 01
--------------------------------------------------------------------