[Bug c++/18761] C++ ABI bug on OS X with emebed types
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 1 19:10:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list