Trying again to fix aligned-new on m68k.
authorJason Merrill <jason@redhat.com>
Tue, 13 Sep 2016 13:15:39 +0000 (09:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 13 Sep 2016 13:15:39 +0000 (09:15 -0400)
* c-common.c (check_cxx_fundamental_alignment_constraints): Don't
limit types at all.

From-SVN: r240110

gcc/c-family/ChangeLog
gcc/c-family/c-common.c

index bfa606b3191029b5ce9e8009f0276f7934d5dd3f..d7b95dec3249cad852e26363fbca7354b529000b 100644 (file)
@@ -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
index 9b5e016191325445cec06b321535e043681aeb7d..9fec2cfbc50b7d9226d2b76892e0c5c906948f14 100644 (file)
@@ -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)