From d0c3eecf2d404f02ae7a478f2f50785732dc583b Mon Sep 17 00:00:00 2001 From: fxcoudert Date: Mon, 7 Jul 2014 11:59:27 +0000 Subject: * libgfortran.h: Assume __GNUC__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212328 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/ChangeLog | 4 ++++ libgfortran/libgfortran.h | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'libgfortran') diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index eef0b2885c7..773778ab256 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2014-07-07 Francois-Xavier Coudert + + * libgfortran.h: Assume __GNUC__. + 2014-07-07 Francois-Xavier Coudert * runtime/stop.c: Use C11 _Noreturn. diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h index fa2fd83e7fa..dbc3f29cd60 100644 --- a/libgfortran/libgfortran.h +++ b/libgfortran/libgfortran.h @@ -107,14 +107,8 @@ typedef off_t gfc_offset; heuristic will mark this branch as much less likely as unlikely() would do. */ -#ifndef __GNUC__ -#define __attribute__(x) -#define likely(x) (x) -#define unlikely(x) (x) -#else #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) -#endif /* Make sure we have ptrdiff_t. */ -- cgit v1.2.1