Re: [RFC] -Weverything

2019-01-23 Thread Franz Sirl
Am 2019-01-22 um 19:56 schrieb Jonathan Wakely: On Tue, 22 Jan 2019 at 18:46, Marc Glisse wrote: On Tue, 22 Jan 2019, Thomas Koenig wrote: Hi, What would people think about a -Weverything option which turns on every warning there is? I think that could be quite useful in some circumstances

Re: Bug 84762 - GCC for PowerPC32 violates the SysV ABI spec for small struct returns

2018-12-04 Thread Franz Sirl
Am 2018-12-04 um 08:14 schrieb Lokesh Janghel: Thank you Sirl, -msvr4-struct-return=standard and -msvr4-struct-return=gnu (which would be the default (-msvr4-struct-return=standard) by default, you mean using registers to return? Hi Lokesh, both return small structs in registers. The quest

Re: Bug 84762 - GCC for PowerPC32 violates the SysV ABI spec for small struct returns

2018-11-30 Thread Franz Sirl
Am 2018-11-26 um 06:13 schrieb Lokesh Janghel: Hi Sirl, As you mentioned in Bugzilla (comment 13), aix_return ( return in memory) svr4_return (return in register) what is the semantics of svr4gnu w.r.t. return. Hi Lokesh, I don't quite understand what you are asking me here? In comment 13 I'v

Re: Bug 84762 - GCC for PowerPC32 violates the SysV ABI spec for small struct returns

2018-11-19 Thread Franz Sirl
Am 2018-11-19 um 15:36 schrieb Lokesh Janghel: Hi Segher, I am building the GCC with the following configuration ( using gcc trunk ). ../gcc/configure --target=powerpc-linux --prefix=/opt/buckeye/powerpc-linux --disable-shared --disable-threads --enable-languages=c --with-newlib And my assemb

Re: Unstable build/host qsorts causing differing generated target code

2018-01-25 Thread Franz Sirl
Am 2018-01-12 um 19:45 schrieb Jeff Law: On 01/12/2018 11:26 AM, Cory Fields wrote: Quick disclaimer: I'm 100% new to GCC code and the dev process, so there are bound to be some faulty assumptions below. I recently worked on a build of gcc, x86_64-pc-linux-gnu -> x86_64-pc-linux-musl. In order

Re: extern const initialized warns in C

2018-01-22 Thread Franz Sirl
Am 2018-01-21 um 13:08 schrieb Georg-Johann Lay: Jay K schrieb: extern const int foo = 123; Why does this warn? This is a valid portable form, with the same meaning across all compilers, and, importantly, portably to C and C++. I also wondered about this. In C99 ยง6.9.2 "External object defin

Re: Request for warnings on implicit bool to int conversions

2012-03-28 Thread Franz Sirl
Am 2012-03-28 00:43, schrieb mathog: The C99 bool data type, and the similar type in C++, currently (v 4.5.2) do not generate warnings for any of these sorts of operations: bool b; b = 3; b++; b += 2; if(b == 3) The last one is PR 44077. Franz