From 112b531a1b74547e8575f7a687d617869e86c766 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 21 Dec 2005 20:53:13 +0000 Subject: 2005-12-21 Frank Ch. Eigler * loc2c.h: Add __attribute__ defeating code for g++ 3.3 compatibility. --- ChangeLog | 4 ++++ loc2c.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 12bb3600..8d3af735 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-12-21 Frank Ch. Eigler + + * loc2c.h: Add __attribute__ defeating code for g++ 3.3 compatibility. + 2005-12-20 Josh Stone * vim/filetype.vim: defines *.stp files as SystemTap scripts diff --git a/loc2c.h b/loc2c.h index 9b0a7868..96cc2568 100644 --- a/loc2c.h +++ b/loc2c.h @@ -3,6 +3,10 @@ struct obstack; /* Use */ struct location; /* Opaque */ +/* G++ 3.3 doesn't seem to like the __attribute__ constructs below. */ +#if (__GNUG__ == 3) && (__GNUC_MINOR__ == 3) +#define __attribute__(x) /* nothing */ +#endif /* Translate a C fragment for the location expression, using *INPUT as the starting location, begin from scratch if *INPUT is null. -- cgit