aboutsummaryrefslogtreecommitdiff
path: root/gcc/output.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-02-02 14:21:51 +0100
committerMartin Liska <mliska@suse.cz>2022-02-02 16:05:39 +0100
commit9a92e46c0e9a75cd14125493b8826d3e33dd0f67 (patch)
treeff6f1b9ba6123c97b0ce0cb93a2280d44757e36c /gcc/output.h
parent302caa1faebf98e0d662a2e68ef171ea74115184 (diff)
downloadgcc-9a92e46c0e9a75cd14125493b8826d3e33dd0f67.zip
gcc-9a92e46c0e9a75cd14125493b8826d3e33dd0f67.tar.gz
gcc-9a92e46c0e9a75cd14125493b8826d3e33dd0f67.tar.bz2
lto: fix error handling for -Wl,-plugin-opt=debug
When one uses something like: -Wl,-plugin-opt=debug, we end up with lto1 WPA invocation that has 'debug' on command line. We interpret that as input filename. The patch moves resolution checking later so that we end up with a reasonable error message: lto1: fatal error: open debug failed: No such file or directory compilation terminated. PR lto/104333 gcc/lto/ChangeLog: * lto-common.cc (read_cgraph_and_symbols): Move resolution checking for number of files later and report a reasonable error message. * lto-object.cc (lto_obj_file_open): Make error fatal.
Diffstat (limited to 'gcc/output.h')
0 files changed, 0 insertions, 0 deletions