Answer the question
In order to leave comments, you need to log in
What happens if you repeat two optimization parameters in GCC with different values?
What will happen if my package is built with parameters, for example "-O2 -O3"? Or, for example, "-march=armv8-a -march=x86-64"? Or "-mtune=generic -mtune=native"?
Answer the question
In order to leave comments, you need to log in
For most options -- will be overwritten with the last value passed. This is particularly true for -march and -mtune on x86.
But in the general case, it can be anything, since gcc can convert one option to another according to its specs before invoking the actual compiler.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question