X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Ftsystem.h;h=fc7713c9d13990ae88a0c9d051569b66c09620ad;hb=d4fa0ca0a7405b4a025b4d61cd2bf8fcf2b86d26;hp=7ccdf4c0f593e622c652703069c95f940a225b2c;hpb=14f9c168b9d11189fad5e4b471070dd1fa82fe0d;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/tsystem.h b/gcc/tsystem.h index 7ccdf4c0f59..fc7713c9d13 100644 --- a/gcc/tsystem.h +++ b/gcc/tsystem.h @@ -1,12 +1,12 @@ /* Get common system includes and various definitions and declarations based on target macros. - Copyright (C) 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2004, 2005, 2009 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free -Software Foundation; either version 2, or (at your option) any later +Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY @@ -14,17 +14,14 @@ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. */ +Under Section 7 of GPL version 3, you are granted additional +permissions described in the GCC Runtime Library Exception, version +3.1, as published by the Free Software Foundation. -/* As a special exception, if you link this library with other files, - some of which are compiled with GCC, to produce an executable, - this library does not by itself cause the resulting executable - to be covered by the GNU General Public License. - This exception does not however invalidate any other reasons why - the executable file might be covered by the GNU General Public License. */ +You should have received a copy of the GNU General Public License and +a copy of the GCC Runtime Library Exception along with this program; +see the files COPYING3 and COPYING.RUNTIME respectively. If not, see +. */ #ifndef GCC_TSYSTEM_H #define GCC_TSYSTEM_H @@ -99,7 +96,7 @@ extern void *memset (void *, int, size_t); extern int errno; #endif -/* GCC (fixproto) guarantees these system headers exist. */ +/* If these system headers do not exist, fixincludes must create them. */ #include #include #include @@ -107,7 +104,7 @@ extern int errno; /* GCC supplies this header. */ #include -/* GCC (fixproto) guarantees this system headers exists. */ +/* If these system headers do not exist, fixincludes must create them. */ #include #endif /* inhibit_libc */ @@ -121,4 +118,17 @@ extern int errno; #undef alloca #define alloca(x) __builtin_alloca(x) +#ifdef ENABLE_RUNTIME_CHECKING +#define gcc_assert(EXPR) ((void)(!(EXPR) ? abort (), 0 : 0)) +#else +/* Include EXPR, so that unused variable warnings do not occur. */ +#define gcc_assert(EXPR) ((void)(0 && (EXPR))) +#endif +/* Use gcc_unreachable() to mark unreachable locations (like an + unreachable default case of a switch. Do not use gcc_assert(0). */ +#define gcc_unreachable() (abort ()) + +/* Filename handling macros. */ +#include "filenames.h" + #endif /* ! GCC_TSYSTEM_H */