<< Back to previous view

[PCC-402] __builtin_return_address() does not accept an argument Created: 24/Aug/12  Updated: 30/Aug/12

Status: Resolved
Project: pcc
Component/s: i386 target
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Iain Hibbert Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: NetBSD/i386 at least

the __builtin_return_address() function does not accept an argument

% cat foo.c
void foo (void)
% pcc -c foo.c
foo.c, line 3: wrong argument count to __builtin_return_address
/usr/libexec/ccom terminated with status 1

but gcc-4.5.3 documentation does define it as

  void * __builtin_return_address (unsigned int LEVEL);

no time to look at it now, but the amd64 & i386 code at least does seem to check for an argument, not sure why narg is listed as -1?


Comment by Anders Magnusson [ 30/Aug/12 06:21 PM ]
Fixed now. I had forgotten to update due to builtin changes.
Generated at Sat Oct 21 08:41:36 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.