mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
13 lines
301 B
C
13 lines
301 B
C
|
extern void abort (void);
|
||
|
|
||
|
/* Since GCC 5 folds symbol address comparison, assuming each symbol has
|
||
|
different address, &foo == &bar is always false for GCC 5. Use
|
||
|
check_ptr_eq to check if 2 addresses are the same. */
|
||
|
|
||
|
void
|
||
|
check_ptr_eq (void *p1, void *p2)
|
||
|
{
|
||
|
if (p1 != p2)
|
||
|
abort ();
|
||
|
}
|