]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/avr/genopt.sh
avr.opt (mmcu=): Change to have a string value.
[thirdparty/gcc.git] / gcc / config / avr / genopt.sh
index 9838ec25a45dcd64edad36fbd7ea8128b5fee17f..d55c6571ffda3a0c3352cb8bb896874c7f589d0a 100755 (executable)
@@ -41,19 +41,18 @@ cat <<EOF
 ; <http://www.gnu.org/licenses/>.
 
 Enum
-Name(avr_mcu) Type(int)
-Known MCU names:
+Name(avr_arch) Type(enum avr_arch)
+Known MCU architectures:
 
 EOF
 
 awk -F'[(,     ]+' 'BEGIN {
-    value = 0
 }
-/^AVR_MCU/ {
+/^AVR_MCU.*NULL/ {
     name = $2
+    value = $3
     gsub("\"", "", name)
     print "EnumValue"
-    print "Enum(avr_mcu) String(" name ") Value(" value ")"
+    print "Enum(avr_arch) String(" name ") Value(" value ")"
     print ""
-    value++
 }' $1