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]

[rtlopt] dwarf2out.c (location lists) do not unnecessary mark a field


Hi,

this patch avoids unnecessary marking an element of structure.

Bootstrapped x86-64.

Josef

2003-02-24  Josef Zlomek  <zlomekj at suse dot cz>

	* dwarf2out.c (struct var_loc_node): Skip "last".


Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.382.2.13
diff -c -3 -p -r1.382.2.13 dwarf2out.c
*** dwarf2out.c	22 Feb 2003 20:46:02 -0000	1.382.2.13
--- dwarf2out.c	24 Feb 2003 14:11:21 -0000
*************** struct var_loc_node GTY ((chain_next ("%
*** 3492,3498 ****
  struct var_loc_list_def GTY (())
  {
    struct var_loc_node * GTY (()) first;
!   struct var_loc_node * GTY (()) last;
  };
  typedef struct var_loc_list_def var_loc_list;
  
--- 3492,3501 ----
  struct var_loc_list_def GTY (())
  {
    struct var_loc_node * GTY (()) first;
! 
!   /* Do not mark the last element of the chained list because
!      it is marked through the chain.  */
!   struct var_loc_node * GTY ((skip ("%h"))) last;
  };
  typedef struct var_loc_list_def var_loc_list;
  


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