[clang] [Driver] Pass correct alignment for -falign-functions with no argument (PR #101257)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 31 07:08:40 PDT 2024


================
@@ -1982,7 +1982,7 @@ unsigned tools::ParseFunctionAlignment(const ToolChain &TC,
     return 0;
 
   if (A->getOption().matches(options::OPT_falign_functions))
-    return 0;
+    return 4; // log2(16)
----------------
compnerd wrote:

@pogo59 that is documented in the GCC documentation. Many, if not most, of the driver arguments are GCC derived and behave identically.

https://github.com/llvm/llvm-project/pull/101257


More information about the cfe-commits mailing list