This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/35013] Incomplete check in RTL for "pm()" annotation
- From: "hutchinsonandy at aim dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2008 22:06:24 -0000
- Subject: [Bug target/35013] Incomplete check in RTL for "pm()" annotation
- References: <bug-35013-14966@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from hutchinsonandy at aim dot com 2008-02-16 22:06 -------
Created an attachment (id=15169)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15169&action=view)
Patch
The attached patch allows function address expressions of the form address+k
to be correctly recognized as program memory addresses and thus force use of
pm() assembler syntax.
This has not been extensively tested but assembler appears to be correct for
this bugs testcase and a similar issue found in:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27192
Note, odd addresses will be accepted by C and only cause linker warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35013