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]

fix -fno-common build


        * profile.h (profile_info): Add missing extern to declaration.
        * profile.c (profile_info): Define it.

Index: profile.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/profile.c,v
retrieving revision 1.83
diff -c -p -d -r1.83 profile.c
*** profile.c	9 May 2002 12:54:18 -0000	1.83
--- profile.c	12 May 2002 17:02:00 -0000
*************** struct bb_info
*** 79,84 ****
--- 79,88 ----
  			       : ((bb) == EXIT_BLOCK_PTR		\
  				  ? n_basic_blocks + 1 : (bb)->index + 1))
  
+ /* Instantiate the profile info structure.  */
+ 
+ struct profile_info profile_info;
+ 
  /* Name and file pointer of the output file for the basic block graph.  */
  
  static FILE *bbg_file;
Index: profile.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/profile.h,v
retrieving revision 1.2
diff -c -p -d -r1.2 profile.h
*** profile.h	9 May 2002 15:07:00 -0000	1.2
--- profile.h	12 May 2002 17:02:00 -0000
*************** Software Foundation, 59 Temple Place - S
*** 21,27 ****
  #ifndef GCC_PROFILE_H
  #define GCC_PROFILE_H
  
! struct
    {
      /* Used by final, for allocating the proper amount of storage for the
         instrumented arc execution counts.  */
--- 21,27 ----
  #ifndef GCC_PROFILE_H
  #define GCC_PROFILE_H
  
! struct profile_info
    {
      /* Used by final, for allocating the proper amount of storage for the
         instrumented arc execution counts.  */
*************** struct
*** 47,52 ****
         function.  */
      int count_profiles_merged;
  
!   } profile_info;
  
  #endif
--- 47,54 ----
         function.  */
      int count_profiles_merged;
  
!   };
! 
! extern struct profile_info profile_info;
  
  #endif


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