Commit 9453eee9 by Jason Merrill Committed by Jason Merrill

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
parent 4c13ba17
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> 2016-09-12 Jason Merrill <jason@redhat.com>
* c-common.c (check_cxx_fundamental_alignment_constraints): Fix * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
......
...@@ -7905,13 +7905,8 @@ check_cxx_fundamental_alignment_constraints (tree node, ...@@ -7905,13 +7905,8 @@ check_cxx_fundamental_alignment_constraints (tree node,
} }
else if (TYPE_P (node)) else if (TYPE_P (node))
{ {
/* Let's be liberal for types. BIGGEST_ALIGNMENT is the largest /* Let's be liberal for types; don't limit their alignment any more than
alignment a built-in type can require, MAX_OFILE_ALIGNMENT is the check_user_alignment already did. */
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;
} }
if (alignment_too_large_p) if (alignment_too_large_p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment