1151497Sru#!/bin/sh 2151497Sru# Generate rs6000-tables.opt from the list of CPUs in rs6000-cpus.def. 318099Spst# Copyright (C) 2011-2020 Free Software Foundation, Inc. 418099Spst# 518099Spst# This file is part of GCC. 618099Spst# 718099Spst# GCC is free software; you can redistribute it and/or modify 818099Spst# it under the terms of the GNU General Public License as published by 918099Spst# the Free Software Foundation; either version 3, or (at your option) 1018099Spst# any later version. 1118099Spst# 1218099Spst# GCC is distributed in the hope that it will be useful, 1318099Spst# but WITHOUT ANY WARRANTY; without even the implied warranty of 1418099Spst# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1518099Spst# GNU General Public License for more details. 1618099Spst# 1718099Spst# You should have received a copy of the GNU General Public License 1818099Spst# along with GCC; see the file COPYING3. If not see 19151497Sru# <http://www.gnu.org/licenses/>. 2018099Spst 21151497Srucat <<EOF 22151497Sru; -*- buffer-read-only: t -*- 2375584Sru; Generated automatically by genopt.sh from rs6000-cpus.def. 24151497Sru 2575584Sru; Copyright (C) 2011-2020 Free Software Foundation, Inc. 26151497Sru; 2775584Sru; This file is part of GCC. 28151497Sru; 29151497Sru; GCC is free software; you can redistribute it and/or modify it under 30151497Sru; the terms of the GNU General Public License as published by the Free 31151497Sru; Software Foundation; either version 3, or (at your option) any later 32151497Sru; version. 33151497Sru; 34151497Sru; GCC is distributed in the hope that it will be useful, but WITHOUT ANY 35151497Sru; WARRANTY; without even the implied warranty of MERCHANTABILITY or 36151497Sru; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3775584Sru; for more details. 38104862Sru; 3975584Sru; You should have received a copy of the GNU General Public License 4075584Sru; along with GCC; see the file COPYING3. If not see 4118099Spst; <http://www.gnu.org/licenses/>. 4218099Spst 4318099SpstEnum 4418099SpstName(rs6000_cpu_opt_value) Type(int) 4518099SpstKnown CPUs (for use with the -mcpu= and -mtune= options): 46151497Sru 47151497SruEnumValue 48151497SruEnum(rs6000_cpu_opt_value) String(native) Value(RS6000_CPU_OPTION_NATIVE) DriverOnly 49151497Sru 50151497SruEOF 51151497Sru 52151497Sruawk -F'[(, ]+' ' 53151497SruBEGIN { 54151497Sru value = 0 55151497Sru} 56151497Sru 57151497Sru/^RS6000_CPU/ { 5818099Spst name = $2 5918099Spst gsub("\"", "", name) 6018099Spst print "EnumValue" 6118099Spst print "Enum(rs6000_cpu_opt_value) String(" name ") Value(" value ")" 6218099Spst print "" 6318099Spst value++ 6418099Spst}' $1/rs6000-cpus.def 6518099Spst