This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/43471] Unnecessary reload of asm "m" operand address
- From: "mirq-gccboogs at rere dot qmqm dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2010 14:04:05 -0000
- Subject: [Bug rtl-optimization/43471] Unnecessary reload of asm "m" operand address
- References: <bug-43471-18939@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from mirq-gccboogs at rere dot qmqm dot pl 2010-03-23 14:04 -------
The problem is that gcc sometimes emits instructions that are copying the
global r4 (even when it's marked as const) into temporary. Originally I thought
that the simplies case was this asm statememt, but it looks like it depends on
having adress of a structure field taken as a parameter for a function that's
later inlined. I'll file a new report with the second example and this
explanation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43471