This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18761] C++ ABI bug on OS X with emebed types
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2004 19:10:11 -0000
- Subject: [Bug c++/18761] C++ ABI bug on OS X with emebed types
- References: <20041201184702.18761.mmitchel@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-01 19:10 -------
This patch should fix it:
Index: rs6000.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.757
diff -u -p -r1.757 rs6000.c
--- rs6000.c 27 Nov 2004 23:00:57 -0000 1.757
+++ rs6000.c 1 Dec 2004 19:09:39 -0000
@@ -3042,7 +3042,7 @@ rs6000_special_round_type_align (tree ty
/* Skip all the static variables only if ABI is greater than
1 or equal to 0. */
- while (field != NULL && TREE_CODE (field) == VAR_DECL)
+ while (field != NULL && TREE_CODE (field) != FIELD_DECL)
field = TREE_CHAIN (field);
if (field == NULL || field == type || DECL_MODE (field) != DFmode)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18761