Commit 4bf2d473 by John David Anglin Committed by John David Anglin

re PR ada/24533 (FAIL: a85013b: *** glibc detected *** free(): invalid pointer: 0x00062a00 ***)

	PR ada/24533
	* s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.

From-SVN: r110025
parent 670cbfcf
2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR ada/24533
* s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
......
......@@ -508,7 +508,10 @@ private
lock : lock_array;
end record;
pragma Convention (C, atomic_lock_t);
for atomic_lock_t'Alignment use 16;
-- ??? Alignment should be 16 but this is larger than BIGGEST_ALIGNMENT.
-- This causes an erroneous pointer value to sometimes be passed to free
-- during deallocation. See PR ada/24533 for more details.
for atomic_lock_t'Alignment use 8;
type struct_pthread_fast_lock is record
spinlock : atomic_lock_t;
......
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