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: PATCH: reorganize layout of RECORD_TYPEs



Hi Mark,

with your patch I get a build failure:
../../egcs/gcc/stor-layout.c: In function `new_record_layout_info':
../../egcs/gcc/stor-layout.c:425: `rec' undeclared (first use in this function)
../../egcs/gcc/stor-layout.c:425: (Each undeclared identifier is reported only once
../../egcs/gcc/stor-layout.c:425: for each function it appears in.)

A patch is appended - please double check that this is really correct.

Andreas

2000-03-13  Andreas Jaeger  <aj@suse.de>

	* stor-layout.c (new_record_layout_info): Fix last patch.

Index: gcc/stor-layout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stor-layout.c,v
retrieving revision 1.54
diff -u -p -r1.54 stor-layout.c
--- stor-layout.c	2000/03/13 09:12:50	1.54
+++ stor-layout.c	2000/03/13 14:30:31
@@ -422,7 +422,7 @@ new_record_layout_info (t)
 
 #ifdef STRUCTURE_SIZE_BOUNDARY
   /* Packed structures don't need to have minimum size.  */
-  if (! TYPE_PACKED (rec))
+  if (! TYPE_PACKED (t))
     rli->record_align = MAX (rli->record_align, STRUCTURE_SIZE_BOUNDARY);
 #endif
 

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

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