Re: Using CMake for building GCC

2022-09-12 Thread Jose E. Marchesi via Gcc
> On Sun, Sep 11, 2022, 10:30 Junk Trash via Gcc wrote: > >> Hi, >> >> I want to get the opinions of GCC developers regarding adding CMake as a >> build system for GCC. Is it something you would like, something you are >> neutral about, or something you are strongly against? >> >> Thanks for you

Question unused function parameter data garbage collection

2022-09-12 Thread Fredrik Hederstierna via Gcc
Hi, We have a function that does not used an in-parameter, simplified example: void test_unused_string_param_gc(const char* unused) { // empty } Though when we have calls to this function, the arguments are still put in the memory, causing unnecessary flash memory usage for 'dead parameters'

Re: Question unused function parameter data garbage collection

2022-09-12 Thread Richard Biener via Gcc
On Mon, Sep 12, 2022 at 1:23 PM Fredrik Hederstierna via Gcc wrote: > > Hi, > > We have a function that does not used an in-parameter, simplified example: > > void test_unused_string_param_gc(const char* unused) > { >// empty > } > > Though when we have calls to this function, the arguments ar

Re: Question unused function parameter data garbage collection

2022-09-12 Thread Martin Jambor
Hi, On Mon, Sep 12 2022, Richard Biener via Gcc wrote: > On Mon, Sep 12, 2022 at 1:23 PM Fredrik Hederstierna via Gcc > wrote: >> >> Hi, >> >> We have a function that does not used an in-parameter, simplified example: >> >> void test_unused_string_param_gc(const char* unused) >> { >>// empty

Re: Using CMake for building GCC

2022-09-12 Thread Iru Cai via Gcc
In my opinion, the advantage of autotools is that it can generate a configure script that can be shipped with the source tarball, then any one with the source can run the configure script when the system has a POSIX shell and tools. If using CMake, meson, xmake, etc. the user will first need to