diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-06-23 10:40:37 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-06-25 17:02:45 +0200 |
commit | 6948c7c3d29bf5892299550a19ce615a85ef9b2b (patch) | |
tree | 3ab9d80b327c79a5e3f1b611541c181d68949ce7 /gcc/d | |
parent | 72acf751d8eb41bab7a4d8b4dd74f8165b10cd71 (diff) | |
download | gcc-6948c7c3d29bf5892299550a19ce615a85ef9b2b.zip gcc-6948c7c3d29bf5892299550a19ce615a85ef9b2b.tar.gz gcc-6948c7c3d29bf5892299550a19ce615a85ef9b2b.tar.bz2 |
d: Turn on deprecation warnings by default.
This is the default in the upstream reference compiler, and can reduce
some confusion when comparing warning/error messages of gdc and dmd side
by side.
Merges libphobos with upstream druntime d05ebaad and phobos 021ae0df7.
Reviewed-on: https://github.com/dlang/druntime/pull/3127
https://github.com/dlang/phobos/pull/7521
gcc/d/ChangeLog:
* d-lang.cc (d_init_options): Turn on deprecation warnings by default.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime d05ebaad.
* src/MERGE: Merge upstream phobos 021ae0df7.
* testsuite/libphobos.typeinfo/struct-align.d: Remove empty statement.
gcc/testsuite/ChangeLog:
* gdc.dg/asm1.d: Don't use deprecated asm syntax.
* gdc.dg/compilable.d: Add public to selective import.
* gdc.dg/lto/ltotests_0.d: Explicitly catch Throwable.
* gdc.dg/runnable.d: Remove empty statement.
Diffstat (limited to 'gcc/d')
-rw-r--r-- | gcc/d/d-lang.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc index 82e24de..24a1125 100644 --- a/gcc/d/d-lang.cc +++ b/gcc/d/d-lang.cc @@ -306,7 +306,7 @@ d_init_options (unsigned int, cl_decoded_option *decoded_options) global.params.cplusplus = CppStdRevisionCpp14; /* Warnings and deprecations are disabled by default. */ - global.params.useDeprecated = DIAGNOSTICoff; + global.params.useDeprecated = DIAGNOSTICinform; global.params.warnings = DIAGNOSTICoff; global.params.imppath = new Strings (); |