coarray_43.f90: Add "-latomic" option if libatomic_available.
[gcc.git] / libgcc / unwind-dw2-fde.h
index c8201c6b4308fdc6b3f70fabddc38b3546773060..7141867260ca39582316f86ac3fc57c3cb1a4371 100644 (file)
@@ -1,5 +1,5 @@
 /* Subroutines needed for unwinding stack frames for exception handling.  */
-/* Copyright (C) 1997-2014 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2017 Free Software Foundation, Inc.
    Contributed by Jason Merrill <jason@cygnus.com>.
 
 This file is part of GCC.
@@ -169,7 +169,7 @@ static inline int
 last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f)
 {
 #ifdef DWARF2_OBJECT_END_PTR_EXTENSION
-  return (char *)f == obj->fde_end || f->length == 0;
+  return f == (const fde *) obj->fde_end || f->length == 0;
 #else
   return f->length == 0;
 #endif