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]
Other format: [Raw text]

Re: [cfg-branch] thread safe profiling patch installed


> 
> > I forgot to commit the ansidecl change outside gcc module. Should be
> > fixed now.
> 
> You forgot to *post* the patch, too.  This is especially important for
> include/ and libiberty/ as they're shared with other projects and
> warrant a more thorough review.

Here it comes, it is really trivial.
Note that the patch got intalled only to cfg branch, so it should not
affect other modules until (if) it get merged to mainline.

Honza

Index: ansidecl.h
===================================================================
RCS file: /cvs/gcc/gcc/include/ansidecl.h,v
retrieving revision 1.13
diff -c -3 -p -r1.13 ansidecl.h
*** ansidecl.h	2001/08/29 19:44:39	1.13
--- ansidecl.h	2001/12/13 20:25:08
*************** So instead we use the macro below and te
*** 261,266 ****
--- 261,274 ----
  #define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
  #endif /* ATTRIBUTE_UNUSED */
  
+ #ifndef ATTRIBUTE_NO_PROFILE
+ # if (GCC_VERSION >= 3001)
+ #  define ATTRIBUTE_NO_PROFILE __attribute__ ((__no_profile__))
+ # else
+ #  define ATTRIBUTE_NO_PROFILE
+ # endif /* GNUC >= 3.1 */
+ #endif /* ATTRIBUTE_NO_PROFILE */
+ 
  #ifndef ATTRIBUTE_NORETURN
  #define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
  #endif /* ATTRIBUTE_NORETURN */

--1yeeQ81UyVL57Vl7--


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