Mercurial > hg > CbC > CbC_gcc
comparison gcc/optc-gen.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 |
330 if (var_name(flags[i]) != "") | 330 if (var_name(flags[i]) != "") |
331 print "#error Ignored option with Var" | 331 print "#error Ignored option with Var" |
332 if (flag_set_p("Report", flags[i])) | 332 if (flag_set_p("Report", flags[i])) |
333 print "#error Ignored option with Report" | 333 print "#error Ignored option with Report" |
334 } | 334 } |
335 else if (flag_set_p("Deprecated", flags[i])) { | 335 else if (flag_set_p("Deprecated", flags[i])) |
336 alias_data = "NULL, NULL, OPT_SPECIAL_deprecated" | 336 print "#error Deprecated was replaced with WarnRemoved" |
337 else if (flag_set_p("WarnRemoved", flags[i])) { | |
338 alias_data = "NULL, NULL, OPT_SPECIAL_warn_removed" | |
337 if (warn_message != "NULL") | 339 if (warn_message != "NULL") |
338 print "#error Deprecated option with Warn" | 340 print "#error WarnRemoved option with Warn" |
339 if (flag_set_p("Report", flags[i])) | 341 if (flag_set_p("Report", flags[i])) |
340 print "#error Deprecated option with Report" | 342 print "#error WarnRemoved option with Report" |
341 } | 343 } |
342 else | 344 else |
343 alias_data = "NULL, NULL, N_OPTS" | 345 alias_data = "NULL, NULL, N_OPTS" |
344 if (flag_set_p("Enum.*", flags[i])) { | 346 if (flag_set_p("Enum.*", flags[i])) { |
345 if (!flag_set_p("RejectNegative", flags[i]) \ | 347 if (!flag_set_p("RejectNegative", flags[i]) \ |