Dynamically allocated array of function pointers

2018-07-27 Thread Vladimir Reshetnikov
I'm trying to understand why gcc rejects the dynamic array allocation in the initializer of e (introducing an alias or additional parenthesization suppress the error). Clang and MSVC happily compile this code. Does gcc correctly reject this code? template void f() { typedef void(*arr[T::value]

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-27 Thread Matthias Klose
On 27.07.2018 16:31, Michael Matz wrote: > Hi, > > On Fri, 27 Jul 2018, Michael Matz wrote: > >> Using any python scripts as part of generally building GCC (i.e. where >> the generated files aren't prepackaged) will introduce a python >> dependency for distro packages. And for those distros th

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-27 Thread konsolebox
Just another user here. I'm not a fan of Python and I don't want it added as a dependency to my favorite compiler. If I would build a minimal system with a toolchain, I wouldn't want Python to be a mandatory component, so please don't. Thanks. P.S. I don't mind Perl. It's a legacy tool next to Aw

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-27 Thread Paul Smith
On Fri, 2018-07-27 at 14:53 +, Michael Matz wrote: > perl is currently included in the bootstrap set. There's no reason > why python couldn't be included as well, If Perl is already in the bootstrap set and the awk scripts are hard to maintain then why can't the awk scripts be rewritten in Pe

gcc-8-20180727 is now available

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

Activate your account.

2018-07-27 Thread INFO
? ? Dear gcc@gcc.gnu.org, No need to worry, your Spotify account is safe we just need you to confirm your billing details by clicking the link below in order to keep providing you with our services.Please copy the link below and paste it into your browser bar :  bit.ly/2LprPlQ The process wil

Activate your account.

2018-07-27 Thread INFO
? ? Dear gcc@gcc.gnu.org, No need to worry, your Spotify account is safe we just need you to confirm your billing details by clicking the link below in order to keep providing you with our services.Please copy the link below and paste it into your browser bar :  bit.ly/2LprPlQ The process wil

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-27 Thread Michael Matz
Hi, On Fri, 27 Jul 2018, Joseph Myers wrote: > I would have expected most concerns to be about builds on non-GNU hosts - > not about builds on GNU/Linux where Python is generally already available > (and differences in Python versions should definitely *not* affect the > generated output, so t

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-27 Thread Joseph Myers
On Fri, 27 Jul 2018, Michael Matz wrote: > Using any python scripts as part of generally building GCC (i.e. where the > generated files aren't prepackaged) will introduce a python dependency for > distro packages. And for those distros that bootstrap a core cycle of > packages (e.g. *SUSE) thi

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-27 Thread Michael Matz
Hi, On Fri, 27 Jul 2018, Michael Matz wrote: > Using any python scripts as part of generally building GCC (i.e. where > the generated files aren't prepackaged) will introduce a python > dependency for distro packages. And for those distros that bootstrap a > core cycle of packages (e.g. *SUSE

Re: [RFC] Adding Python as a possible language and it's usage

2018-07-27 Thread Michael Matz
Hi, On Tue, 17 Jul 2018, Martin Liška wrote: > 1) gcc/optc-save-gen.awk is full of copy&pasted code, due to lack of flags > type classes multiple > global variables are created (var_opt_char, var_opt_string, ...) > > 2) similar happens in gcc/opth-gen.awk > > 3) we do very many regex matches (

Re: Question related to GCC structure variable assignment optimization

2018-07-27 Thread keshav tilak
>> Are you sure the linker does not perform this relaxation in your case? If so, >> that's an issue (missed optimization) in the linker. yes, after linking phase also I see reference memcpy from PLT. The file I am building is created with -ffreestanding and -fnostdlib option; The memcpy function

Re: Question related to GCC structure variable assignment optimization

2018-07-27 Thread Alexander Monakov
On Fri, 27 Jul 2018, keshav tilak wrote: > This leads to GCC compiler issuing a call to `memcpy@PLT()' in function bar1. > > I want to create a position independent executable from this source > and run this on > a secure environment which implements ASLR and the loader disallows any binary > whic

Question related to GCC structure variable assignment optimization

2018-07-27 Thread keshav tilak
I need some help for GCC optimization behavior which inserts call to `memcpy` when it detects that there is a structure variable assignment. I have below sample code (copied from a similar gcc-help question): [ 0] [15:21:40] root@localhost : # cat b.c struct foo_t { int x[1048576]; } *fo