This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patches to c-decl.c and c-lex.c



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]