* g++.dg/cpp0x/constexpr-53094-2.C: Ignore non-standard ABI
[official-gcc.git] / gcc / config / arm / genopt.sh
blobaaf34678331e87fb7945c184d443c7bf935cb750
1 #!/bin/sh
2 # Generate arm-tables.opt from the lists in *.def.
3 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
5 # This file is part of GCC.
7 # GCC is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3, or (at your option)
10 # any later version.
12 # GCC is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GCC; see the file COPYING3. If not see
19 # <http://www.gnu.org/licenses/>.
21 cat <<EOF
22 ; -*- buffer-read-only: t -*-
23 ; Generated automatically by genopt.sh from arm-cores.def, arm-arches.def
24 ; and arm-fpus.def.
26 ; Copyright (C) 2011-2013 Free Software Foundation, Inc.
28 ; This file is part of GCC.
30 ; GCC is free software; you can redistribute it and/or modify it under
31 ; the terms of the GNU General Public License as published by the Free
32 ; Software Foundation; either version 3, or (at your option) any later
33 ; version.
35 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
36 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
37 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
38 ; for more details.
40 ; You should have received a copy of the GNU General Public License
41 ; along with GCC; see the file COPYING3. If not see
42 ; <http://www.gnu.org/licenses/>.
44 Enum
45 Name(processor_type) Type(enum processor_type)
46 Known ARM CPUs (for use with the -mcpu= and -mtune= options):
48 EOF
50 awk -F'[(, ]+' '/^ARM_CORE/ {
51 name = $2
52 enum = $3
53 gsub("\"", "", name)
54 print "EnumValue"
55 print "Enum(processor_type) String(" name ") Value(" enum ")"
56 print ""
57 }' $1/arm-cores.def
59 cat <<EOF
60 Enum
61 Name(arm_arch) Type(int)
62 Known ARM architectures (for use with the -march= option):
64 EOF
66 awk -F'[(, ]+' 'BEGIN {
67 value = 0
69 /^ARM_ARCH/ {
70 name = $2
71 gsub("\"", "", name)
72 print "EnumValue"
73 print "Enum(arm_arch) String(" name ") Value(" value ")"
74 print ""
75 value++
76 }' $1/arm-arches.def
78 cat <<EOF
79 Enum
80 Name(arm_fpu) Type(int)
81 Known ARM FPUs (for use with the -mfpu= option):
83 EOF
85 awk -F'[(, ]+' 'BEGIN {
86 value = 0
88 /^ARM_FPU/ {
89 name = $2
90 gsub("\"", "", name)
91 print "EnumValue"
92 print "Enum(arm_fpu) String(" name ") Value(" value ")"
93 print ""
94 value++
95 }' $1/arm-fpus.def