On 07/15/2017 12:43 AM, Jeff Law wrote:
On 07/14/2017 10:54 AM, Nathan Sidwell wrote:
This was the most surprising check of TYPE_METHODS.  When not optimizing
we use the non-nullness of TYPE_METHODS to figure out if we want to
place a non BLKmode structure into a register.  On the grounds that one
can't call a member function with a register-located object.

That seems overly enthusiastic -- if we're not optimizing, who cares?

(When we zap TYHPE_METHODS we currently set it to error_mark_node, if it
was non-null, so that this above check will work).

As a result gdb was unable to do an inferior call to its the object's
methods.

Right, I realize I failed to mention gdb in the email. To be clear, what the snippet does is NEVER put record types in registers, when not optimizing.

nathan
--
Nathan Sidwell

Reply via email to