coarray_43.f90: Add "-latomic" option if libatomic_available.
[gcc.git] / libgcc / unwind-dw2-fde.h
index 6d7a8dee2cf84660cb24a225ec398de0601f6b5d..7141867260ca39582316f86ac3fc57c3cb1a4371 100644 (file)
@@ -1,6 +1,5 @@
 /* Subroutines needed for unwinding stack frames for exception handling.  */
-/* Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2009
-   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.
@@ -170,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