]> git.ipfire.org Git - thirdparty/gcc.git/commit
Objective-C/C++: Ensure sufficient setup for the preprocessor.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 9 Jan 2024 17:31:41 +0000 (17:31 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 20 Apr 2024 14:42:28 +0000 (15:42 +0100)
commit633e24e1c7846cdd6796074f42254afdf0f44ef3
tree0ccbcf7f9f57dedf67517f23fc22b1b02eece38f
parent9e44e2f767c6fa1a658964feb6306e9672d26d01
Objective-C/C++: Ensure sufficient setup for the preprocessor.

The tokenizer makes use of functions that determine if identifiers
are interface or class names, and those functions need a hash map
to be set up.

This ensures that these are initialized before pre-process-only
jobs are run.

gcc/objc/ChangeLog:

* objc-act.cc (objc_init): Initialize interface and class
name hash maps before the preprocessor uses them.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit 60f58d0630805e8dce79f5489658fd83e42fa8f1)
gcc/objc/objc-act.cc