This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [debug-early] do not add location info/etc to abstract instances


On 10/02/2014 11:53 AM, Jason Merrill wrote:
On 09/30/2014 02:43 PM, Aldy Hernandez wrote:
+  if (parm_die
+      /* Make sure the function to which this parameter belongs to is
+     not an abstract instance.  If it is, we can't reuse anything.
+     We must create a new DW_TAG_formal_parameter with a
+     corresponding DW_AT_abstract_origin.  */
+      && !get_AT (context_die, DW_AT_abstract_origin))

Can we use the same test here that we do later in this function, namely
origin && origin != node?

Or, rather, just "if (origin)".

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]