public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* attribute((interfacearm))
@ 2001-12-19 16:10 Shaun Jackman
  0 siblings, 0 replies; only message in thread
From: Shaun Jackman @ 2001-12-19 16:10 UTC (permalink / raw)
  To: gcc-help

In gcc/config/arm/README-interworking the attribute((interfacearm)) is 
mentioned as a way of supporting non-interworking arm routines that need to 
call a thumb routine.

Here's the source.
int __attribute__((interfacearm)) 
sys_write( int fd, const void* buf, unsigned count)
{
	(void)fd;
	gnputs( buf, count);
	return 0;
}

Here's the error
$ arm-elf-gcc -I. -Wall -Werror -g -DINVERTDISP -DTARGET_PATHPORT 
-DTARGET_ARM -DTARGET_PATHPORT_REV1 -mcpu=arm7tdmi -mlittle-endian 
-mthumb-interwork -mthumb  -I../include     -c -o lcd.o lcd.c
cc1: warnings being treated as errors
lcd.c:415: warning: `interfacearm' attribute directive ignored

If I use the alternate declspec(interfacearm) syntax I get
$ arm-elf-gcc -I. -Wall -Werror -g -DINVERTDISP unsigned -DTARGET_PATHPORT 
-DTARGET_ARM -DTARGET_PATHPORT_REV1 -mcpu=arm7tdmi -mlittle-endian 
-mthumb-interwork -mthumb  -I../include     -c -o lcd.o lcd.c
lcd.c:414: parse error before "sys_write"
cc1: warnings being treated as errors
lcd.c:415: warning: return type defaults to `int'

Is this attribute actually supported in gcc 3.0.2?

Thanks,
Shaun

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-20  0:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 16:10 attribute((interfacearm)) Shaun Jackman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).