Deleted Added
full compact
toplev.c (258748) toplev.c (260014)
1/* Top level of GCC compilers (cc1, cc1plus, etc.)
2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
4 Free Software Foundation, Inc.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under

--- 6 unchanged lines hidden (view full) ---

15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
17
18You should have received a copy of the GNU General Public License
19along with GCC; see the file COPYING. If not, write to the Free
20Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
2102110-1301, USA. */
22
1/* Top level of GCC compilers (cc1, cc1plus, etc.)
2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
4 Free Software Foundation, Inc.
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under

--- 6 unchanged lines hidden (view full) ---

15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
17
18You should have received a copy of the GNU General Public License
19along with GCC; see the file COPYING. If not, write to the Free
20Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
2102110-1301, USA. */
22
23/* $FreeBSD: head/contrib/gcc/toplev.c 258748 2013-11-29 18:46:02Z pfg $ */
23/* $FreeBSD: head/contrib/gcc/toplev.c 260014 2013-12-28 20:30:31Z pfg $ */
24
25/* This is the top level of cc1/c++.
26 It parses command args, opens files, invokes the various passes
27 in the proper order, and counts the time used by each.
28 Error messages and low-level interface to malloc also handled here. */
29
30#include "config.h"
31#undef FLOAT /* This is for hpux. They should change hpux. */

--- 909 unchanged lines hidden (view full) ---

941 if (what)
942 warning (OPT_Wdeprecated_declarations, "%qs is deprecated", what);
943 else
944 warning (OPT_Wdeprecated_declarations, "type is deprecated");
945 }
946 }
947}
948
24
25/* This is the top level of cc1/c++.
26 It parses command args, opens files, invokes the various passes
27 in the proper order, and counts the time used by each.
28 Error messages and low-level interface to malloc also handled here. */
29
30#include "config.h"
31#undef FLOAT /* This is for hpux. They should change hpux. */

--- 909 unchanged lines hidden (view full) ---

941 if (what)
942 warning (OPT_Wdeprecated_declarations, "%qs is deprecated", what);
943 else
944 warning (OPT_Wdeprecated_declarations, "type is deprecated");
945 }
946 }
947}
948
949/* APPLE LOCAL begin "unavailable" attribute (radar 2809697) --ilr */
950/* Warn about a use of an identifier which was marked deprecated. */
951void
952error_unavailable_use (tree node)
953{
954 if (node == 0)
955 return;
956
957 if (DECL_P (node))
958 error ("%qs is unavailable (declared at %s:%d)",
959 IDENTIFIER_POINTER (DECL_NAME (node)),
960 DECL_SOURCE_FILE (node), DECL_SOURCE_LINE (node));
961 else if (TYPE_P (node))
962 {
963 const char *what = NULL;
964 tree decl = TYPE_STUB_DECL (node);
965
966 if (TREE_CODE (TYPE_NAME (node)) == IDENTIFIER_NODE)
967 what = IDENTIFIER_POINTER (TYPE_NAME (node));
968 else if (TREE_CODE (TYPE_NAME (node)) == TYPE_DECL
969 && DECL_NAME (TYPE_NAME (node)))
970 what = IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (node)));
971
972 if (what)
973 {
974 if (decl)
975 error ("%qs is unavailable (declared at %s:%d)", what,
976 DECL_SOURCE_FILE (decl), DECL_SOURCE_LINE (decl));
977 else
978 error ("%qs is unavailable", what);
979 }
980 else if (decl)
981 error ("type is unavailable (declared at %s:%d)",
982 DECL_SOURCE_FILE (decl), DECL_SOURCE_LINE (decl));
983 else
984 error ("type is unavailable");
985 }
986}
987/* APPLE LOCAL end "unavailable" attribute (radar 2809697) --ilr */
988
949/* Save the current INPUT_LOCATION on the top entry in the
950 INPUT_FILE_STACK. Push a new entry for FILE and LINE, and set the
951 INPUT_LOCATION accordingly. */
952
953void
954#ifdef USE_MAPPED_LOCATION
955push_srcloc (location_t fline)
956#else

--- 1084 unchanged lines hidden ---
989/* Save the current INPUT_LOCATION on the top entry in the
990 INPUT_FILE_STACK. Push a new entry for FILE and LINE, and set the
991 INPUT_LOCATION accordingly. */
992
993void
994#ifdef USE_MAPPED_LOCATION
995push_srcloc (location_t fline)
996#else

--- 1084 unchanged lines hidden ---