diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-04-24 23:39:32 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-04-24 23:39:32 +0200 |
commit | 0b4718956d6a3030dacd0e65f6a21c674593b9ca (patch) | |
tree | fe0aff5a3b463dbc2be7987281aa3e301337df98 /gcc/tree-ssa-phiopt.c | |
parent | 28b733ea04f4f5d85cab621e901aa8ba7b6b1ae4 (diff) | |
download | gcc-0b4718956d6a3030dacd0e65f6a21c674593b9ca.zip gcc-0b4718956d6a3030dacd0e65f6a21c674593b9ca.tar.gz gcc-0b4718956d6a3030dacd0e65f6a21c674593b9ca.tar.bz2 |
d: Fix order of precedence for -defaultlib and -debuglib
The order of precedence used by the upstream reference compiler for
determining what library to link against is:
- No library if -nophoboslib or -fno-druntime was seen.
- The library passed to -debuglib if -g was also seen.
- The library passed to -defaultlib
- The in-tree libgphobos library.
This aligns the D language driver to follow the same rules.
gcc/d/ChangeLog:
* d-spec.cc (need_phobos): Remove.
(lang_specific_driver): Replace need_phobos with phobos_library.
Reorder -debuglib and -defaultlib to have precedence over libphobos.
(lang_specific_pre_link): Remove test for need_phobos.
Diffstat (limited to 'gcc/tree-ssa-phiopt.c')
0 files changed, 0 insertions, 0 deletions