]> 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>
Sun, 31 Mar 2024 11:27:18 +0000 (12:27 +0100)
commit56455edc6572f11c68e1a079dba9ba910c334d1e
treed7c0c0c1792755b2a4b71a20ace774b4a0487c9c
parent5ec63c2e0b9bc90247686a60db521426cef428f6
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