This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warning : 'model' attribute directive ignored
- From: Andrew Haley <aph at redhat dot com>
- To: Dong Phuong <dongphuong2410 at yahoo dot com>
- Cc: gcc at gnu dot org
- Date: Thu, 13 Nov 2008 10:25:30 +0000
- Subject: Re: Warning : 'model' attribute directive ignored
- References: <250941.32492.qm@web31909.mail.mud.yahoo.com>
Dong Phuong wrote:
> I've declared some macros in my target description
> file to add more attributes to it.
>
> When I built it, everything was OK and file cc1.exe
> was created.
>
> But when I use attributes in my C source file. For
> example :
> int x __attribute__ ((model ("small)));
>
> and use file cc1.exe to compile, there is warning :
> Warning : 'model' attribute directive ignored
>
> So could you tell me why my attribute is ignored ?
What did investigating the warning with gdb tell you?
Andrew.