Function to compute the name of a compilation buffer. The function receives one argument, the name of the major mode of the compilation buffer. It should return a string. If nil, compute the name with `(concat "*" (downcase major-mode) "*")'.