bootstrap failure: cp/class.c:4057: undefined referenceto `DECL_ALIGN_UNIT'

Mark Mitchell mark@codesourcery.com
Fri Oct 20 08:52:00 GMT 2000


>>>>> "Andreas" == Andreas Jaeger <aj@suse.de> writes:

    Andreas> Current gcc CVS fails on i686-linux with:

    Andreas> class.o: In function `build_base_field':
    Andreas> /cvs/gcc/gcc/cp/class.c:4057: undefined reference to
    Andreas> `DECL_ALIGN_UNIT' /cvs/gcc/gcc/cp/class.c:4057: undefined
    Andreas> reference to `DECL_ALIGN_UNIT'

Yup, I blew it.  I forgot I had made a change to the common code.

Here it is.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-10-20  Mark Mitchell  <mark@codesourcery.com>

	* tree.h (DECL_ALIGN_UNIT): New macro.

Index: tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tree.h,v
retrieving revision 1.203
diff -c -p -r1.203 tree.h
*** tree.h	2000/10/13 12:23:31	1.203
--- tree.h	2000/10/20 15:49:34
*************** struct tree_type
*** 1307,1314 ****
  #define DECL_SIZE(NODE) (DECL_CHECK (NODE)->decl.size)
  /* Likewise for the size in bytes.  */
  #define DECL_SIZE_UNIT(NODE) (DECL_CHECK (NODE)->decl.size_unit)
! /* Holds the alignment required for the datum.  */
  #define DECL_ALIGN(NODE) (DECL_CHECK (NODE)->decl.u1.a.align)
  /* For FIELD_DECLs, off_align holds the number of low-order bits of
     DECL_FIELD_OFFSET which are known to be always zero.
     DECL_OFFSET_ALIGN thus returns the alignment that DECL_FIELD_OFFSET
--- 1307,1316 ----
  #define DECL_SIZE(NODE) (DECL_CHECK (NODE)->decl.size)
  /* Likewise for the size in bytes.  */
  #define DECL_SIZE_UNIT(NODE) (DECL_CHECK (NODE)->decl.size_unit)
! /* Holds the alignment required for the datum, in bits.  */
  #define DECL_ALIGN(NODE) (DECL_CHECK (NODE)->decl.u1.a.align)
+ /* The alignment of NODE, in bytes.  */
+ #define DECL_ALIGN_UNIT(NODE) (DECL_ALIGN (NODE) / BITS_PER_UNIT)
  /* For FIELD_DECLs, off_align holds the number of low-order bits of
     DECL_FIELD_OFFSET which are known to be always zero.
     DECL_OFFSET_ALIGN thus returns the alignment that DECL_FIELD_OFFSET


More information about the Gcc-bugs mailing list