Re: GCC and Meltdown and Spectre vulnerabilities

2018-01-04 Thread timofonic timofonic
Paranoid jails/sandboxes inside a virtual machine may mitigate a lot the risk for those untrusted binaries, right? Plus using a debugger and maybe an antivirus (I don't trust them so much and prefer to isolate them too)? What about already built software? Can those be "fixed"? What about GLibC? Wh

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

2018-01-04 Thread timofonic timofonic
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. Some developers said me GCC on Windows is a "toy compiler". Is this right? Kind regar

Re: Build Ada compiler for nios2?

2018-01-04 Thread Sebastian Huber
On 04/01/18 16:03, Andreas Schwab wrote: On Jan 04 2018, Sebastian Huber wrote: /home/sh/src/gcc/gcc/config/nios2/nios2.h:436:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nios2_section_threshold'  extern unsigned HOST_WIDE_INT nios2_section_threshold; Change the prepro

Re: Nested-Functions

2018-01-04 Thread Alexsandr Yvarov
Thanks Jonathan! Hm... why would don't add it for portability? Of course, i don't see codes with Nested-Functions so much, but... I think that better would delete it, or add full support? And, it's contradicts to standart of C, nope?:) ~~~ About lambda: Yeah is very pooowerful, of course

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

2018-01-04 Thread Tong Zhou
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_stmt (although I don't know exactly what it does). But the fina

Re: GCC and Meltdown and Spectre vulnerabilities

2018-01-04 Thread Ian Lance Taylor via gcc
On Thu, Jan 4, 2018 at 7:14 PM, Zan Lynx wrote: > > On January 4, 2018 8:10:14 PM MST, 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

Re: GCC and Meltdown and Spectre vulnerabilities

2018-01-04 Thread Zan Lynx
On January 4, 2018 8:10:14 PM MST, 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 execution >and indirect branch prediction,

Re: GCC and Meltdown and Spectre vulnerabilities

2018-01-04 Thread Will Hawkins
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 execution > and indirect branch prediction

GCC and Meltdown and Spectre vulnerabilities

2018-01-04 Thread Eric Gallager
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 execution and indirect branch prediction, and those are the domain of things the compiler deals with, r

gcc-7-20180104 is now available

2018-01-04 Thread gccadmin
Snapshot gcc-7-20180104 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/7-20180104/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 7 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-7

gcc diagnostic bug ?

2018-01-04 Thread François Dumont
On 15/12/2017 03:20, Jonathan Wakely wrote: FAIL: 23_containers/vector/cons/destructible_neg.cc (test for errors, line 35) FAIL: 23_containers/vector/cons/destructible_neg.cc (test for errors, line 41) I had a look at this remaining issue. The compilation result is: In file included from /h

Re: Build Ada compiler for nios2?

2018-01-04 Thread Andreas Schwab
On Jan 04 2018, Sebastian Huber wrote: > /home/sh/src/gcc/gcc/config/nios2/nios2.h:436:31: error: expected '=', > ',', ';', 'asm' or '__attribute__' before 'nios2_section_threshold' >  extern unsigned HOST_WIDE_INT nios2_section_threshold; Change the preprocessor conditional to check USED_FOR_TA

Re: Nested-Functions

2018-01-04 Thread Nathan Sidwell
On 01/03/2018 07:52 PM, Austin T wrote: By nested functions, I'm assuming that means raw function definitions that are valid inside a temporary scope of a function. If I'm not mistaken, they're equivalent to C++ lambda expressions but just written in a syntactic sugar syntax. GNU-C nested fun

Re: Build Ada compiler for nios2?

2018-01-04 Thread Eric Botcazou
> This HOST_WIDE_INT is defined in gcc/hwint.h. Who is supposed to include > this file? Is this done via an #include or via a tm_file (gcc/config.gcc)? Nobody I'd say, the declaration shouldn't be compiled for the target. -- Eric Botcazou

Build Ada compiler for nios2?

2018-01-04 Thread Sebastian Huber
Hello, I tried to build an Ada compiler for nios2-rtems5 and ended up with this: /run/user/10351/b-gcc-nios2/./gcc/xgcc -B/run/user/10351/b-gcc-nios2/./gcc/ -nostdinc -B/run/user/10351/b-gcc-nios2/nios2-rtems5/newlib/ -isystem /run/user/10351/b-gcc-nios2/nios2-rtems5/newlib/targ-include -isys

Re: Nested-Functions

2018-01-04 Thread Jonathan Wakely
On 4 January 2018 at 00:54, nick wrote: > > > On 2018-01-03 07:52 PM, Austin T wrote: >> By nested functions, I'm assuming that means raw function definitions that >> are valid inside a temporary scope of a function. If I'm not mistaken, >> they're equivalent to C++ lambda expressions but just w

Re: Nested-Functions

2018-01-04 Thread Jonathan Wakely
On 4 January 2018 at 00:44, nick wrote: > > > On 2018-01-03 06:05 PM, Jonathan Wakely wrote: >> On 3 January 2018 at 21:13, Alexsandr Yvarov wrote: >>> Why would dont add it at GNU G++? >> >> Aren't C++ lambda expressions more powerful and flexible? >> > > It depends actually, lambdas are consider