Is there a pragma way of adding the --no_bad_aliases option to my code?
#pragma FUNCTION_OPTIONS("-mt")
gives me...
: error: Option "--no_bad_aliases" cannot be used in FUNCTION_OPTIONS pragma
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there a pragma way of adding the --no_bad_aliases option to my code?
#pragma FUNCTION_OPTIONS("-mt")
gives me...
: error: Option "--no_bad_aliases" cannot be used in FUNCTION_OPTIONS pragma
Perhaps I don't understand the full scenario here, but wouldn't the "restrict" keyword be more appropriate here?
William Bagshaw said:Is there a pragma way of adding the --no_bad_aliases option to my code?
Unfortunately, no.
Thanks and regards,
-George
Brad Griffis said:wouldn't the "restrict" keyword be more appropriate here?
Using the restrict keyword is generally preferred, because it affects only that specific pointer, and not most pointers like --no_bad_aliases does.
But when development time is short, using --no_bad_aliases can be a quick and dirty solution
Thanks and regards,
-George