Re: Re: GCC 6.1 Hard-coded C++ header paths and relocation problem on Windows

2016-05-03 Thread lh_mouse
Should I file a bug report then? We need some Linux testers, though not many people on Linux relocate compilers. -- Best regards, lh_mouse 2016-05-03 - 发件人:Jonathan Wakely 发送日期:2016-05-03

Re: GCC 6.1 Hard-coded C++ header paths and relocation problem on Windows

2016-05-02 Thread lh_mouse
of C and C++ header paths that is the problem. -- Best regards, lh_mouse 2016-05-02

GCC 6.1 Hard-coded C++ header paths and relocation problem on Windows

2016-05-02 Thread lh_mouse
nGW/mingw32/include/c++/6.1.1/iostream:39, from test.cpp:1: C:/MinGW/mingw32/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next ^ compilation terminated. ``` Do you know how to solve this problem (modifications t

Re: Re: Why does gcc generate const local array on stack?

2016-04-20 Thread lh_mouse
onst int a[] = {0,1,2,3,4,5,6,7,8,9}; ptrs[recur] = a; if(recur == 0){ ++recur; foo(); } if(ptrs[0] == ptrs[1]){ abort(); } } int main(){ foo(); } [/code] -- Best regards, lh_mouse 2016-04-21 ---

Re: Why does gcc generate const local array on stack?

2016-04-20 Thread lh_mouse
objects that are not bit-fields may have the same address if one is a subobject of the other, or if at least one is a base class subobject of zero size and they are of different types; otherwise, they shall have distinct addresses.4 [/quote] --

Re: Re: Re: Adding a new thread model to GCC

2016-04-20 Thread lh_mouse
n of GCC. Does it have anything to do with code generation? And where is it involved? -- Best regards, lh_mouse 2016-04-20

Re: Re: Re: Adding a new thread model to GCC

2016-04-19 Thread lh_mouse
: https://github.com/lhmouse/mcfgthread/tree/master/release Problem reports and suggestions are welcome. :> Thanks for your help and interest! -- Best regards, lh_mouse 2016-04-19 9000-Added-mcf-thread-model-support-from-mcfgthread.patch D

Re: Re: Re: Adding a new thread model to GCC

2016-04-18 Thread lh_mouse
sion from a { seconds, nanoseconds } struct to milliseconds is > trivial, for functions taking an absolute time you need to know the > epoch of the clock that was used when populating the struct. Will do that next week. Still need to make gcc work with my library. -- Best regards, lh_mouse 2016-04-18

Re: Re: Re: Adding a new thread model to GCC

2016-04-18 Thread lh_mouse
take a deep look. Thanks for your help! -- Best regards, lh_mouse 2016-04-18

Re: Re: Re: Adding a new thread model to GCC

2016-04-18 Thread lh_mouse
Oh I missed the build-in specs in gcc/config/i386/mingw32.h and it was lack of -lmcfgthread in it that caused the failure. Stage 1 seemed ok. Already hacked that. Rebuilding. Apologize for that. -- Best regards, lh_mouse 2016-04-18

Re: Re: Adding a new thread model to GCC

2016-04-18 Thread lh_mouse
on. How to solve this problem? -- Best regards, lh_mouse 2016-04-18 9000-Added-mcf-thread-model-support-from-mcfgthread.patch Description: Binary data

Re: Re: Adding a new thread model to GCC

2016-04-17 Thread lh_mouse
libstdc++ handles this. -- Best regards, lh_mouse 2016-04-18

Re: Re: Re: Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
f it. -- Best regards, lh_mouse 2016-04-14 - 发件人:Dongsheng Song 发送日期:2016-04-14 11:02 收件人:lh_mouse 抄送:Torvald Riegel,gcc,mingw-w64-public 主题:Re: Re: Adding a new thread model to GCC Currently, --enable-threads=win32 map to

Re: Re: Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
either efficiency or maintainability. Linux and Windows work differently. I consider it 'harmful' to make one look like the other. -- Best regards, lh_mouse 2016-04-14 - 发件人:Torvald

Re: Re: Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
btw this could be one or two days later. :<) -- Best regards, lh_mouse 2016-04-13 - 发件人:Jonathan Wakely 发送日期:2016-04-13 18:30 收件人:lh_mouse 抄送:gcc,mingw-w64-public 主题:Re: Adding a new

Adding a new thread model to GCC

2016-04-13 Thread lh_mouse
on about that. If someone know how to add a new thread model in GCC, I would appreciate that. Also, this library has not been fully tested. If someone has interest in exploring how it works or testing it, I might be able to help. -- Best regards, lh_mouse 2016-04-13