It is fairly common for -O to be passed to clang when linking and both bfd and gold support -O options, but currently the driver doesn't translate it and projects have to use -Wl,-O if they want to enable those options. In fact, our own build pass -O3, but not -Wl,-O.
The attached patch translates and forwards the -O options to the linker. Cheers, Rafael
t.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
