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][2/2] Crude debug language selection for LTO


On 09/20/2010 08:54 AM, Richard Guenther wrote:
On Fri, 17 Sep 2010, Jason Merrill wrote:

On 09/17/2010 07:14 AM, Richard Guenther wrote:
+ 	  else if (strncmp (common_lang, "GNU C", 5) == 0
+ 		&&  strncmp (TRANSLATION_UNIT_LANGUAGE (t), "GNU C", 5) ==
0)
+ 	    /* Mixing C and C++ is ok, use C++ in that case.  */
+ 	    common_lang = "GNU C++";

Seems like this will give you C++ from mixing C and C.

Ooops, true. Fixed with the following incremental patch.


Is allocating comp_unit_die lazily like done in that patch ok with you?

Yep. OK with this fix.


Jason


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