[patch,avr,v5,packported] Apply avr back-ports to v5.

Georg-Johann Lay avr@gjlay.de
Tue Aug 22 13:54:00 GMT 2017


Backported the wollowing PRs to v5: PR81910, PR80462, PR81407, PR67353, 
PR79883, PR81305, PR75963, PR81487.


gcc/
	Backport from 2017-08-22 trunk r251256.
	PR target/81910
	* config/avr/avr.c (avr_handle_addr_attribute): Early return if
	not VAR_P. Filter attribute warnings with OPT_Wattributes.
	(avr_attribute_table) <io, io_low, address>: Initialize
	.decl_required with true.


gcc/
	Backport from 2017-07-05 trunk r249995.
	PR target/81305
	* config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
	Don't depend on "optimize > 0".
	(out_movhi_r_mr, out_movqi_mr_r): Same.
	(out_movhi_mr_r, out_movqi_r_mr): Same.
	(avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
	io_address_operand on "optimize > 0".
gcc/testsuite/
	Backport from 2017-07-05 trunk r249995, r249996.
	PR target/81305
	* gcc.target/avr/isr-test.h: New file.
	* gcc.target/avr/torture/isr-01-simple.c: New test.
	* gcc.target/avr/torture/isr-02-call.c: New test.
	* gcc.target/avr/torture/isr-03-fixed.c: New test.


gcc/
	Backport from 2017-04-19 trunk r246997.
	PR target/80462
	* config/avr/avr.c (tree.h): Include it.
	(hash-table.h): Include it.
	(hash-set.h): Include it.
	(symtab.h): Include it.
	(inchash.h): Include it.
	(function.h): Include it.
	(hash-map.h): Include it.
	(plugin-api.h): Include it.
	(ipa-ref.h): Include it.
	(cgraph.h): Include it.
	(avr_encode_section_info): Don't warn for uninitialized progmem
	variable if it's just an alias.

	Backport from 2017-07-12 trunk r250151.
	PR target/81407
	* config/avr/avr.c (avr_encode_section_info)
	[progmem && !TREE_READONLY]: Error if progmem object needs
	constructing.


gcc/
	Backport from 2016-06-15 trunk r237486.
	Backport from 2017-07-12 trunk r250156.
	PR target/79883
	PR target/67353
	* config/avr/avr.c (avr_set_current_function): Warn misspelled ISR
	only if -Wmisspelled-isr is on.  In diagnostic messages: Quote
	keywords and (parts of) identifiers.
	[WITH_AVRLIBC]: Warn functions named "ISR", "SIGNAL" or "INTERRUPT".
	* doc/invoke.texi (AVR Options) <-Wmisspelled-isr>: Document.


gcc/
	Backport from 2017-05-06 trunk r247719.
	PR rtl-optimization/75964
	* simplify-rtx.c (simplify_const_relational_operation): Remove
	invalid handling of comparisons of integer ABS.
gcc/testsuite/
	Backport from 2017-05-06 trunk r247719.
	PR rtl-optimization/75964
	* gcc.dg/torture/pr75964.c: New test.

lto-plugin/
	Backport from 2017-07-26 gcc-7-branch r250562.
	PR lto/81487
	* lto-plugin.c (claim_file_handler): Use xasprintf instead of
	asprintf.
	[hi!=0]: Swap hi and lo arguments supplied to xasprintf.
gcc/
	Backport from 2017-07-26 gcc-7-branch r250562.
	PR 81487
	* tree-ssa-structalias.c (alias_get_name): Use xasprintf instead
	of asprintf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr81910-v5.diff
Type: text/x-patch
Size: 2949 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20170822/7472e50c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr81305-v5.diff
Type: text/x-patch
Size: 15943 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20170822/7472e50c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr80462-pr81407-v5.diff
Type: text/x-patch
Size: 1786 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20170822/7472e50c/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr79883-pr67353-v5.diff
Type: text/x-patch
Size: 4292 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20170822/7472e50c/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr75964-v5.diff
Type: text/x-patch
Size: 2047 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20170822/7472e50c/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr81487-v5.diff
Type: text/x-patch
Size: 2427 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20170822/7472e50c/attachment-0005.bin>


More information about the Gcc mailing list