[RFC] Another fix for PR c++/41183

Jie Zhang jie@codesourcery.com
Fri Mar 19 17:52:00 GMT 2010


Hi Jakub,

I just found another way to fix this PR. Why not copy cfun->language 
when we create function clones as the attached patch does. I encountered 
another similar issue, that means I need to add cp_function_chain 
checking in another place. This patch could fix both cases. This patch 
has been bootstrapped and regtested with 
--enable-languages=c,c++,objc,fortran on gcc-4.4 branch. Testing on 
trunk with an adapted patch looks OK, too. How would you like this fix?


Regards,
-- 
Jie Zhang
CodeSourcery
(650) 331-3385 x735
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-44-copy-function-language.diff
Type: text/x-patch
Size: 5110 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100319/eef248cb/attachment.bin>


More information about the Gcc-patches mailing list