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: [PATCH] PR debug/37959


+	  /* If this is an explicit constructor declaration then generate
+	     a DW_AT_explicit attribute.  */
+          if (lang_hooks.decls.function_decl_is_constructor_p (decl)
+	      && lang_hooks.decls.function_decl_is_explicit_p (decl))
+	    add_AT_flag (subr_die, DW_AT_explicit, 1);

My point was that we don't want to check whether the function is a constructor, because other functions can be explicit too. And even if that wasn't the case there wouldn't be any reason to do this with two langhooks for a single test. We don't need the is_constructor_p langhook.


Jason


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