aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-09-13 09:15:39 -0400
committerJason Merrill <jason@gcc.gnu.org>2016-09-13 09:15:39 -0400
commit9453eee910731ae8d0deded6952b6d085652bbfe (patch)
tree94b2e8f118f88ba1a6f3338702d44559bd39da2a
parent4c13ba175ad537e6b0809f721a5450e7df76423b (diff)
downloadgcc-9453eee910731ae8d0deded6952b6d085652bbfe.zip
gcc-9453eee910731ae8d0deded6952b6d085652bbfe.tar.gz
gcc-9453eee910731ae8d0deded6952b6d085652bbfe.tar.bz2
Trying again to fix aligned-new on m68k.
* c-common.c (check_cxx_fundamental_alignment_constraints): Don't limit types at all. From-SVN: r240110
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-common.c9
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index bfa606b3..d7b95de 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-13 Jason Merrill <jason@redhat.com>
+
+ * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
+ limit types at all.
+
2016-09-12 Jason Merrill <jason@redhat.com>
* c-common.c (check_cxx_fundamental_alignment_constraints): Fix
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index 9b5e016..9fec2cf 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -7905,13 +7905,8 @@ check_cxx_fundamental_alignment_constraints (tree node,
}
else if (TYPE_P (node))
{
- /* Let's be liberal for types. BIGGEST_ALIGNMENT is the largest
- alignment a built-in type can require, MAX_OFILE_ALIGNMENT is the
- largest alignment the object file can represent, but a type that is
- only allocated dynamically could request even larger alignment. So
- only limit type alignment to what TYPE_ALIGN can represent. */
- if (requested_alignment > (max_align = 8U << 28))
- alignment_too_large_p = true;
+ /* Let's be liberal for types; don't limit their alignment any more than
+ check_user_alignment already did. */
}
if (alignment_too_large_p)