11debfc3dSmrg# Extract the version of a single symbol from the version map. 2*8feb0f0bSmrg# Copyright (C) 2014-2020 Free Software Foundation, Inc. 31debfc3dSmrg# 41debfc3dSmrg# This file is part of GCC. 51debfc3dSmrg# 61debfc3dSmrg# GCC is free software; you can redistribute it and/or modify it under 71debfc3dSmrg# the terms of the GNU General Public License as published by the Free 81debfc3dSmrg# Software Foundation; either version 3, or (at your option) any later 91debfc3dSmrg# version. 101debfc3dSmrg# 111debfc3dSmrg# GCC is distributed in the hope that it will be useful, but WITHOUT 121debfc3dSmrg# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 131debfc3dSmrg# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 141debfc3dSmrg# License for more details. 151debfc3dSmrg# 161debfc3dSmrg# You should have received a copy of the GNU General Public License 171debfc3dSmrg# along with GCC; see the file COPYING3. If not see 181debfc3dSmrg# <http://www.gnu.org/licenses/>. 191debfc3dSmrg 201debfc3dSmrg/^[A-Z]/ { 211debfc3dSmrg version = $1; 221debfc3dSmrg next; 231debfc3dSmrg} 241debfc3dSmrg 251debfc3dSmrg$1 == symbol { 261debfc3dSmrg print version 271debfc3dSmrg exit 281debfc3dSmrg} 29