1 extern void abort (void); 2 3 /* Since GCC 5 folds symbol address comparison, assuming each symbol has 4 different address, &foo == &bar is always false for GCC 5. Use 5 check_ptr_eq to check if 2 addresses are the same. */ 6 7 void check_ptr_eq(void * p1,void * p2)8check_ptr_eq (void *p1, void *p2) 9 { 10 if (p1 != p2) 11 abort (); 12 } 13