[patch,testsuite] Support dg-require-effective-target label_offsets.

Georg-Johann Lay avr@gjlay.de
Wed Oct 26 14:46:00 GMT 2016

There are targets that support taking values of labels but where any arithmetic 
on such values might produce garbage.

This patch introduces new dg-require-effective-target label_offsets which is a 
subset of label_values, and adjusts respective test cases to the more 
restricted predicate.

Run tests against avr-unknown-none ATmega2560 where it makes actually a 
difference between label_values and label_offsets.

Ok for trunk?


	* lib/target-supports.exp (check_effective_target_label_offsets):
	New proc.
	* gcc.dg/20021029-1.c (dg-require-effective-target): Require
	more restrict label_offsets instead of label_values.
	* gcc.dg/pr16973.c: Dito.
	* gcc.dg/torture/pr66123.c: Dito.
	* gcc.dg/torture/pr66178.c: Dito.
	* gcc.c-torture/compile/20021108-1.c: Dito.
	* gcc.c-torture/compile/920501-7.c: Dito.
	* gcc.c-torture/compile/labels-2.c: Dito.
	* gcc.c-torture/compile/labels-3.c: Dito.
	* gcc.c-torture/execute/pr70460.c: Dito.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: label-offsets.diff
Type: text/x-patch
Size: 4843 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161026/dfc1c12e/attachment.bin>

More information about the Gcc-patches mailing list