Re: What's the status of of D on mingw?

2019-04-29 Thread Johannes Pfau
Am 25.04.19 um 20:05 schrieb Rainer Emrich: Does anybody knows what's the plans for D on mingw. AFAIS the frontend builds and is enabled for mingw. But the D runtime is disabled for mingw and doesn't build. A quick dive into the source showed that there is code for mingw target. But it looks li

TREE_ADDRESSABLE types cause ICE in declare_return_variable

2013-02-21 Thread Johannes Pfau
Hi, the gdc D compiler currently doesn't implement "non-POD" types. As in C++ those types can have copy constructors or destructors and should be kept in memory. Right now I just set TREE_ADDRESSABLE on the RECORD_TYPE tree and it's mostly working. Some test cases fail though if optimization / inl

Re: make_decl_one_only and inlining

2013-02-18 Thread Johannes Pfau
Jan Hubicka ucw.cz> writes: > > > > How does the C++ frontend handle this? > > See logic in cgraph_function_body_availability. When function is weak (that is effect > of make_decl_one_only) it will be inlinable only if it is declared inline. This happens > to be the case of C++ weaks because o

Re: make_decl_one_only and inlining

2013-02-16 Thread Johannes Pfau
Ian Lance Taylor google.com> writes: > > Why is that? decl_replaceable_p is supposed to be true for a function > that may be replaced by an entirely different function at runtime. > This is mainly to implement the correct semantics for weak functions. > You can't inline a weak function, but at

make_decl_one_only and inlining

2013-02-15 Thread Johannes Pfau
Hi, We recently got a bug report for the GCC D compiler frontend which shows that we currently don't inline any templated functions. The reason seems to be that decl_replaceable_p always returns true for D template functions. We currently just mark such template function instances using make_decl