------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-04 08:16 -------
This code is undefined:
  len = ((unsigned int)&_ram_erase_sector_end 
         - (unsigned int)&_ram_erase_sector_start) / sizeof(unsigned int);

That is obviously undefined as taking the difference between two pointers which
are not in the same array is undefined code.

Even the comparision:
p_rom < p_end;
is undefined.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27016

Reply via email to