aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-06-28 14:05:04 +0200
committerThomas Schwinge <tschwinge@baylibre.com>2024-07-19 21:55:23 +0200
commit385004846dc6437bab9b3b7d8b071ce1c3418384 (patch)
tree4f7cfe1f3c5a70d81772b89573633f690d60760a
parent348d890c287a7ec4c88d3082ae6105537bd39398 (diff)
downloadgcc-385004846dc6437bab9b3b7d8b071ce1c3418384.zip
gcc-385004846dc6437bab9b3b7d8b071ce1c3418384.tar.gz
gcc-385004846dc6437bab9b3b7d8b071ce1c3418384.tar.bz2
Rewrite usage comment at the top of 'gcc/passes.def'
Since Subversion r201359 (Git commit a167b052dfe9a8509bb23c374ffaeee953df0917) "Introduce gen-pass-instances.awk and pass-instances.def", the usage comment at the top of 'gcc/passes.def' no longer is accurate (even if that latter file does continue to use the 'NEXT_PASS' form without 'NUM') -- and, worse, the 'NEXT_PASS' etc. in that usage comment are processed by the 'gcc/gen-pass-instances.awk' script: --- source-gcc/gcc/passes.def 2024-06-24 18:55:15.132561641 +0200 +++ build-gcc/gcc/pass-instances.def 2024-06-24 18:55:27.768562714 +0200 [...] @@ -20,546 +22,578 @@ /* Macros that should be defined when using this file: INSERT_PASSES_AFTER (PASS) PUSH_INSERT_PASSES_WITHIN (PASS) POP_INSERT_PASSES () - NEXT_PASS (PASS) + NEXT_PASS (PASS, 1) TERMINATE_PASS_LIST (PASS) */ [...] (That is, this is 'NEXT_PASS' for the first instance of pass 'PASS'.) That's benign so far, but with another thing that I'll be extending, I'd then run into an error while the script handles this comment block. ;-\ gcc/ * passes.def: Rewrite usage comment at the top.
-rw-r--r--gcc/passes.def13
1 files changed, 5 insertions, 8 deletions
diff --git a/gcc/passes.def b/gcc/passes.def
index 5e7f939..b06d6d4 100644
--- a/gcc/passes.def
+++ b/gcc/passes.def
@@ -17,14 +17,11 @@ You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-/*
- Macros that should be defined when using this file:
- INSERT_PASSES_AFTER (PASS)
- PUSH_INSERT_PASSES_WITHIN (PASS)
- POP_INSERT_PASSES ()
- NEXT_PASS (PASS)
- TERMINATE_PASS_LIST (PASS)
- */
+/* Note that this file is processed by a simple parser:
+ 'gen-pass-instances.awk', so carefully verify the generated
+ 'pass-instances.def' if you deviate from the syntax otherwise used in
+ here. */
+
/* All passes needed to lower the function into shape optimizers can
operate on. These passes are always run first on the function, but