Earlier quoted context omitted.
I didn't interview with my current boss, but he definitely knows my total comp down to the dollar and stock/bonus/salary split - I've seen it on his screen during annual performance & bonus reviews. This is at a big 5 company.
Well, it's a company, which does not care that employees know each other salary then.
Salary secrecy can't really extend to managers unless you want your managers to do a poor job rewarding people. How's it supposed to work when someone comes to their manager and asks for a raise? "I think I'm underpaid and want a 10% raise." "Well, I don't know what you or anyone else makes so I have no idea if you're underpaid. Deal with it I guess."