From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21847 invoked by alias); 20 Dec 2001 00:10:25 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21402 invoked from network); 20 Dec 2001 00:09:07 -0000 Received: from unknown (HELO mail.pathwayconnect.com) (209.91.95.13) by sources.redhat.com with SMTP; 20 Dec 2001 00:09:07 -0000 Received: (qmail 1426 invoked from network); 20 Dec 2001 00:09:02 -0000 Received: from unknown (HELO dazed) (192.168.0.149) by 0 with SMTP; 20 Dec 2001 00:09:02 -0000 Received: from dazed ([127.0.0.1] helo=there ident=sjackman) by dazed with smtp (Exim 3.32 #1 (Debian)) id 16GqlD-0007qA-00 for ; Wed, 19 Dec 2001 17:08:31 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Shaun Jackman Organization: Pathway Connectivity To: gcc-help@gcc.gnu.org Subject: attribute((interfacearm)) Date: Wed, 19 Dec 2001 16:10:00 -0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-SW-Source: 2001-12/txt/msg00133.txt.bz2 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