gway (Old French) comes from Frankish wai, from Proto-Germanic wai, from Proto-Indo-European wai — oh!; woe!.