Mercurial > hg > CbC > CbC_gcc
comparison gcc/opt-functions.awk @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 # Copyright (C) 2003-2018 Free Software Foundation, Inc. | 1 # Copyright (C) 2003-2020 Free Software Foundation, Inc. |
2 # Contributed by Kelley Cook, June 2004. | 2 # Contributed by Kelley Cook, June 2004. |
3 # Original code from Neil Booth, May 2003. | 3 # Original code from Neil Booth, May 2003. |
4 # | 4 # |
5 # This program is free software; you can redistribute it and/or modify it | 5 # This program is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License as published by the | 6 # under the terms of the GNU General Public License as published by the |
103 test_flag("JoinedOrMissing", flags, " | CL_JOINED") \ | 103 test_flag("JoinedOrMissing", flags, " | CL_JOINED") \ |
104 test_flag("Separate", flags, " | CL_SEPARATE") \ | 104 test_flag("Separate", flags, " | CL_SEPARATE") \ |
105 test_flag("Undocumented", flags, " | CL_UNDOCUMENTED") \ | 105 test_flag("Undocumented", flags, " | CL_UNDOCUMENTED") \ |
106 test_flag("NoDWARFRecord", flags, " | CL_NO_DWARF_RECORD") \ | 106 test_flag("NoDWARFRecord", flags, " | CL_NO_DWARF_RECORD") \ |
107 test_flag("Warning", flags, " | CL_WARNING") \ | 107 test_flag("Warning", flags, " | CL_WARNING") \ |
108 test_flag("(Optimization|PerFunction)", flags, " | CL_OPTIMIZATION") | 108 test_flag("(Optimization|PerFunction)", flags, " | CL_OPTIMIZATION") \ |
109 test_flag("Param", flags, " | CL_PARAMS") | |
109 sub( "^0 \\| ", "", result ) | 110 sub( "^0 \\| ", "", result ) |
110 return result | 111 return result |
111 } | 112 } |
112 | 113 |
113 # Return bit-field initializers for option flags FLAGS. | 114 # Return bit-field initializers for option flags FLAGS. |
344 } | 345 } |
345 | 346 |
346 function integer_range_info(range_option, init, option) | 347 function integer_range_info(range_option, init, option) |
347 { | 348 { |
348 if (range_option != "") { | 349 if (range_option != "") { |
349 start = nth_arg(0, range_option); | 350 ival = init + 0; |
350 end = nth_arg(1, range_option); | 351 start = nth_arg(0, range_option) + 0; |
351 if (init != "" && init != "-1" && (init < start || init > end)) | 352 end = nth_arg(1, range_option) + 0; |
353 if (init != "" && init != "-1" && (ival < start || ival > end)) | |
352 print "#error initial value " init " of '" option "' must be in range [" start "," end "]" | 354 print "#error initial value " init " of '" option "' must be in range [" start "," end "]" |
353 return start ", " end | 355 return start ", " end |
354 } | 356 } |
355 else | 357 else |
356 return "-1, -1" | 358 return "-1, -1" |