def METHOD_NAME(self, name, flags):
    if name == "cflags":
        compiler_spec = self.spec.compiler
        if spack.compilers.is_mixed_toolchain(self.compiler):
            compiler_spec = self._get_real_compiler_spec("cc") or compiler_spec
        if any(
            [
                compiler_spec.satisfies(s)
                for s in ["gcc@10:", "clang@11:", "cce@11:", "aocc@3:", "oneapi"]
            ]
        ):
            # https://gcc.gnu.org/gcc-10/porting_to.html
            # https://releases.llvm.org/11.0.0/tools/clang/docs/ReleaseNotes.html#modified-compiler-flags
            flags.append("-fcommon")
    return flags, None, None