Re: GCC and Meltdown and Spectre vulnerabilities

2018-01-05 Thread Florian Weimer
* timofonic timofonic: > Paranoid jails/sandboxes inside a virtual machine may mitigate a lot > the risk for those untrusted binaries, right? Someone needs to impelement those sandboxes and virtual machines, and GCC changes may help with writing them in such a way that they are less exposed to th

Re: GCC and Meltdown and Spectre vulnerabilities

2018-01-05 Thread Eric Gallager
On 1/5/18, Eric Gallager wrote: > On 1/4/18, Will Hawkins wrote: >> On Thu, Jan 4, 2018 at 10:10 PM, Eric Gallager >> wrote: >>> Is there anything GCC could be doing at the compiler level to mitigate >>> the recently-announced Meltdown and Spectre vulnerabilities? From >>> reading about them, it

Re: GCC and Meltdown and Spectre vulnerabilities

2018-01-05 Thread Eric Gallager
On 1/4/18, Will Hawkins wrote: > On Thu, Jan 4, 2018 at 10:10 PM, Eric Gallager > wrote: >> Is there anything GCC could be doing at the compiler level to mitigate >> the recently-announced Meltdown and Spectre vulnerabilities? From >> reading about them, it seems like they involve speculative exe

Re: [question] replacing called function by gimple_call_set_fndecl doesn't actually take effect

2018-01-05 Thread Richard Biener
On Fri, Jan 5, 2018 at 5:57 AM, Tong Zhou wrote: > Hi, > > I am new to gcc and was trying to implement a gimple pass today. One thing > I tried to do was to make a call_stat that originally calls malloc call > another function like new_malloc. I used gimple_call_set_fndecl and also > did update_st

Re: Can GCC generate totally native Microsoft Windows binaries as Visual Studio?

2018-01-05 Thread Liu Hao
On 2018/1/5 15:30, timofonic timofonic wrote: > Hello. > > Excuse me my ignorance, but that's what people say me. > > GCC can compile to Microsoft Windows platforms, I understand it. But > people say me it uses a "shim" between *nix and native Microsoft > Windows API. > There are three platform