This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patches to c-decl.c and c-lex.c
- To: Haj dot Ten dot Brugge at net dot HCC dot nl (Herman ten Brugge)
- Subject: Re: patches to c-decl.c and c-lex.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 25 Jun 1998 00:43:55 -0600
- cc: gcc-patches at gnu dot org, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <353baad80.3592@htbrug.net.HCC.nl>you write:
> I need these two patches to let pragma's work correctly for the c4x
> target. The patch to c-decl.c allows pragma's to be used on global
> variables. The patch to c-lex.c pushes the last read charater (nextchar)
> back onto the input stream so the HANDLE_PRAGMA function can use it.
>
> Herman.
>
>
> 1998-04-20 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
>
> * c-decl.c (start_decl): Use new macro SET_DEFAULT_ATTRIBUTES.
> * c-lex.c (check_newline): Put last read character back on input stream.
I think egcs fixed the problem in check_newline a while ago (around
December 1997 if I remember correctly). Any chance you could test
it to see if it fixes your problem?
I'm a little confused why you need the SET_DEFAULT_ATTRIBUTES change;
I always thought attributes worked fine on global variables. If you
gave an example where it's failing it would help us understand why
you need the SET_DEFAULT_ATTRIBUTES patch.
int a __attribute__ ((aligned (64))) = 1;
.align 64
a
.word 1
Jeff