C++ PATCH for c++/59821 (builtin_LINE in default args)

Jason Merrill jason@redhat.com
Thu Jan 16 20:49:00 GMT 2014


On 01/16/2014 03:17 PM, Jakub Jelinek wrote:
> On Thu, Jan 16, 2014 at 02:54:14PM -0500, Jason Merrill wrote:
>> commit 4088607eba17cb79c9bda0d5e2829705c75386b8
>> Author: Jason Merrill <jason@redhat.com>
>> Date:   Thu Jan 16 13:54:35 2014 -0500
>>
>>      	PR c++/59821
>>      	* tree.c (bot_manip): Update the location of builtin_LINE and
>>      	builtin_FILE calls.
>
> Thanks.  Shouldn't __builtin_FUNCTION be also treated the same?
> I mean, those 3 were the builtins added together for this purpose.

__builtin_FUNCTION doesn't need any change, because 
current_function_decl already reflects the call site when we expand the 
builtin.

Jason





More information about the Gcc-patches mailing list