-frestrict-args
Purpose
Specifying this option is equivalent to adding the restrict keyword to the
pointer parameters within all functions, except that you do not need to modify the source file.
Syntax
Default
-fnorestrict-args. It means no function pointer parameters are restricted, unless you specify the restrict attribute in the source file.
Usage
Using this option can improve the performance of your application, but incorrectly asserting this pointer restriction might cause the compiler to generate incorrect code based on the false assumption. If the application works correctly when recompiled without -frestrict-args, the assertion might be false. In this case, do not use this option.
Predefined macro
None.
Example
To compile myprogram.c and instruct the compiler to restrict the pointer access,
enter the following command:
ibm-clang -frestrict-args myprogram.c
