From the U.S. Flag Code: The flag should never be upside down, except to signal distress or great danger.