On a visit to Poland, US president Barack Obama reiterated his countrys commitment to the security of its east-European allies.