summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-10-16 21:16:09 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1997-10-16 21:16:09 +0000
commit546c566e79e91628f24e0b68a4a60b9e772760ee (patch)
treeee78e6e36123dc28b541e8a1546a6c1b68ae6bf8 /gcc/config/rs6000/rs6000.h
parent0c0464e67b22e9c8a1f585d9dfc40c8839734c6e (diff)
downloadgcc-546c566e79e91628f24e0b68a4a60b9e772760ee.tar.gz
* rs6000.h (ROUND_TYPE_ALIGN): Don't blow up if no fields in record.
Bring over from gcc2. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000.h')
-rw-r--r--gcc/config/rs6000/rs6000.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index ddbda7cff74..91242a8c35a 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -604,6 +604,7 @@ extern int rs6000_debug_arg; /* debug argument handling */
((TREE_CODE (STRUCT) == RECORD_TYPE \
|| TREE_CODE (STRUCT) == UNION_TYPE \
|| TREE_CODE (STRUCT) == QUAL_UNION_TYPE) \
+ && TYPE_FIELDS (STRUCT) != 0 \
&& DECL_MODE (TYPE_FIELDS (STRUCT)) == DFmode \
? MAX (MAX ((COMPUTED), (SPECIFIED)), BIGGEST_ALIGNMENT) \
: MAX ((COMPUTED), (SPECIFIED)))