It seems like gcc does canonicalisation of file names. More