]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/vms/make-crtlmap.awk
Update copyright years.
[thirdparty/gcc.git] / gcc / config / vms / make-crtlmap.awk
index 6f82dee7aa856c1613dd92cf7c2e950b57d9d482..fce5c7d896e204166404120a31e1a4b047801b29 100644 (file)
@@ -1,5 +1,5 @@
 # Generate the VMS crtl map
-#      Copyright (C) 2011  Free Software Foundation, Inc.
+#      Copyright (C) 2011-2020 Free Software Foundation, Inc.
 
 BEGIN {
     is_first = 1;
@@ -40,13 +40,13 @@ BEGIN {
     print "{ \"" $1 "\", "
     if (NF == 1)
         print "0 }"
-    else if (NF == 2)
-        printf "VMS_CRTL_" $2 " }"
-    else if (NF == 3)
-        printf "VMS_CRTL_" $2 " | VMS_CRTL_" $3 " }"
     else
-        # To be fixed.
-        exit 1
+    {
+       printf "VMS_CRTL_" $2
+       for (i = 3; i <= NF; i++)
+           printf " | VMS_CRTL_" $i
+       printf " }"
+    }
 }
 
 END {