diff options
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 57b839f..3ff8726 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1443,26 +1443,6 @@ layout_type (type) if (TYPE_SIZE_UNIT (element) != 0 && ! integer_onep (element_size)) TYPE_SIZE_UNIT (type) = size_binop (MULT_EXPR, TYPE_SIZE_UNIT (element), length); - - /* Complain if the user has requested an array too large to - fit in size_t. - - ??? Disable this test for signed sizetypes. This has the effect - of disabling it for Ada, where it will cause trouble. However, - this test doesn't make sense for C either since there should - be no problem with a type whose size overflows, only an - object whose size overflows. */ - if (TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST - && TREE_OVERFLOW (TYPE_SIZE (type)) - && TREE_UNSIGNED (TREE_TYPE (TYPE_SIZE (type)))) - { - error ("requested array too large for target"); - - /* Avoid crashing later. */ - TYPE_SIZE (type) = element_size; - if (TYPE_SIZE_UNIT (type)) - TYPE_SIZE_UNIT (type) = TYPE_SIZE_UNIT (element); - } } /* Now round the alignment and size, |