diff options
author | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2022-10-25 16:11:05 +0200 |
---|---|---|
committer | Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> | 2022-11-04 08:57:06 +0100 |
commit | 97752b7c446e513677e9d49b0c57427d41aaebde (patch) | |
tree | a566b926ca48951a45025628da18b7e54e865d29 /gcc/cp | |
parent | fabe470b2441a4a760a5f491395631e53821b765 (diff) | |
download | gcc-97752b7c446e513677e9d49b0c57427d41aaebde.zip gcc-97752b7c446e513677e9d49b0c57427d41aaebde.tar.gz gcc-97752b7c446e513677e9d49b0c57427d41aaebde.tar.bz2 |
c++: Use in-process client when networking is disabled
Without the patch, the output for bad-mapper-3.C would be:
/src/gcc/gcc/testsuite/g++.dg/modules/bad-mapper-3.C:2:1: error: unknown Compiled Module Interface: no such module
As this line is unexpected, the test case would fail.
The same problem can also be seen for g++.dg/modules/bad-mapper-2.C.
gcc/cp/ChangeLog:
* mapper-client.cc: Use in-process client when networking is
disabled.
gcc/testsuite/ChangeLog:
* g++.dg/modules/bad-mapper-3.C: Update dg-error pattern.
Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/mapper-client.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/mapper-client.cc b/gcc/cp/mapper-client.cc index fe9544b..8e331c0 100644 --- a/gcc/cp/mapper-client.cc +++ b/gcc/cp/mapper-client.cc @@ -227,6 +227,8 @@ module_client::open_module_client (location_t loc, const char *o, int fd = -1; #if CODY_NETWORKING fd = Cody::OpenLocal (&errmsg, name.c_str () + 1); +#else + errmsg = "disabled"; #endif if (fd >= 0) c = new module_client (fd, fd); @@ -254,6 +256,8 @@ module_client::open_module_client (location_t loc, const char *o, int fd = -1; #if CODY_NETWORKING fd = Cody::OpenInet6 (&errmsg, name.c_str (), port); +#else + errmsg = "disabled"; #endif name[colon] = ':'; |