Actions
Bug #9549
closedC back-end provides invalid function prototypes
Status:
Rejected
Priority:
Urgent
Assignee:
-
Category:
C back-end
Start date:
03/17/2019
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
It always misses function parameter names for function declarations without bodies (function prototypes). In many cases this is okay, but not in, e.g.:
extern char *strcpy(char *restrict d, const char *restrict s);
since in outputted code:
char *strcpy(char *restrict, char const *restrict);
storage class specifier restrict becomes parameter name.
Updated by Evgeny Novikov about 5 years ago
- Status changed from New to Rejected
- Assignee deleted (
Evgeny Novikov)
Indeed, I just used incorrect C standard to check generate code. With "-std=c99" everything works good and "restrict" is not considered as a parameter name.
Actions