Turkey has warned France that ties between the two countries will suffer what it called " irreparable damage " if French lawmakers approve a measure making denial of the Armenian genocide 90 years ago a criminal offense .