From 82a1c2fe690f15bfa0b91b54a7f1746acad0a1ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Coudert?= Date: Sun, 3 Oct 2010 19:00:55 +0000 Subject: cppbuiltin.c: New file. gcc/ * cppbuiltin.c: New file. * cppbuiltin.h: New file. * Makefile.in: Take into account cppbuiltin.{h,c}. gcc/c-family/ * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision): Remove. (c_cpp_builtins): Call functions from cppbuiltin.c instead of duplicating code. gcc/fortran/ * cpp.c (cpp_define_builtins): Call functions from cppbuiltin.c instead of duplicating code. * Make-lang.in: Add dependency on cppbuiltin.h. Don't define BASEVER. From-SVN: r164917 --- gcc/cppbuiltin.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 gcc/cppbuiltin.h (limited to 'gcc/cppbuiltin.h') diff --git a/gcc/cppbuiltin.h b/gcc/cppbuiltin.h new file mode 100644 index 0000000..f884512 --- /dev/null +++ b/gcc/cppbuiltin.h @@ -0,0 +1,37 @@ +/* Define builtin-in macros for all front ends that perform preprocessing + Copyright (C) 2010 + 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 3, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +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 COPYING3. If not see +. */ + +#ifndef GCC_CPPBUILTIN_H +#define GCC_CPPBUILTIN_H + +#include "coretypes.h" + + +/* Parse a BASEVER version string of the format "major.minor.patchlevel" + or "major.minor" to extract its components. */ +extern void parse_basever (int *, int *, int *); + +/* Define macros builtins common to all language performing CPP + preprocessing. */ +extern void define_language_independent_builtin_macros (cpp_reader *); + + +#endif /* ! GCC_CPPBUILTIN_H */ + -- cgit v1.1