Re: x86_64-gnu 14.2.0 cross-compiler -O2 removes THREAD_SETMEM in glibc sigreturn.c

2024-11-24 Thread Andreas Schwab
unreachable intrinsic > after the asm statement) > ” > > so it's the documented way to make it so, but apparently it does more > than this and affects the fs-segmented store. This is only about asm goto. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47

Re: x86_64-gnu 14.2.0 cross-compiler -O2 removes THREAD_SETMEM in glibc sigreturn.c

2024-11-24 Thread Andreas Schwab
t allowed to change flow control. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: About initialization of automatic variables

2023-04-18 Thread Andreas Schwab
0 is just one instance of "undefined value". -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: Compilation of rust-demangle.c fails on MinGW

2021-08-04 Thread Andreas Schwab
On Aug 04 2021, Eli Zaretskii via Gcc-bugs wrote: > I'd love to, but please tell me where. I couldn't find any > information about reporting libiberty bugs, sorry if I missed > something obvious. The libiberty README says to report bugs to gcc-bugs@gcc.gnu.org. Andreas.

Re: [Bug tree-optimization/65752] Too strong optimizations int -> pointer casts

2015-05-19 Thread Andreas Schwab
"gil.hur at sf dot snu.ac.kr" writes: > Since "hello" is not printed, I think the if-statement is the same as no-op. > Thus, removing the if-statement should not change the behavior of the program > according to ISO C11. Unless you are invoking undefined behaviour.

Re: [Bug libffi/47442] does not build multilib on m68k

2011-01-25 Thread Andreas Schwab
"joel at gcc dot gnu.org" writes: > Why cmp.w when it is tst.l? Because it is smaller.

Re: [Bug insn-scheduling][4.4 ARM] Scheduling error on -O2 -mfloat-abi=softfp -mfpu=vfp

2010-12-24 Thread Andreas Schwab
"M.F. Wu" writes: > Source code: > > typedef unsigned long long float64; > > float64 syst_float64_div( float64 a, float64 b ) > { > float64 z; > > *( (double *) &z ) = *( (double *) &a ) / *( (double *) &b ); Please read <http://

Re: size_t cast in libssp

2010-10-05 Thread Andreas Schwab
If INT_MAX > SIZE_MAX then (size_t)INT_MAX == SIZE_MAX, ie. this is the minimum either way. Andreas. -- Andreas Schwab, sch...@redhat.com GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something completely different."

Re: gcc cannot recognize "0xe+0x1"

2009-03-02 Thread Andreas Schwab
Tadahito Kobayashi writes: > return 0xe+0x1 ; 0xe+0x1 forms a single preprocessing token (a pp-number), but cannot be converted to a valid token. Add some whitespace around + to break up the preprocessing token. Andreas. -- Andreas Schwab, sch...@linux-m68k.org Key fingerpr

Re: misusing placement new OR possible cxx bug

2008-10-13 Thread Andreas Schwab
the use of 'placement new' in weird syntax I didn't know > before, or is this code wrong and accidentally accepted by gcc? In the > former case, please correct me and sorry for the noise! $ gcc -Wunused-value -c new.cc new.cc: In function 'int main(int, char**)': new.cc

Re: ANSI C, type composition, constant arrays in function arguments

2008-09-21 Thread Andreas Schwab
"Mikoláš Janota" <[EMAIL PROTECTED]> writes: > However, the following declarations > void p(int p[30]); > void p(int p[4]); > > do not yield a warning. See 6.7.5.3#7. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldst

Re: Suspected bug, triggering code included

2007-04-04 Thread Andreas Schwab
ess of A is used instead of the address of the newly > allocated memory. This is not a bug. The evaluation order of the operands is unspecified. > When splitting the multiple assignment in two (see #ifdef WORK_AROUND), > everything works fine. It's not a workaround, it's the on

Re: -O2 bug in gcc 3.2, 3.3 and 3.4 with 64 bit integers on x86

2004-11-09 Thread Andreas Schwab
Anders Torger <[EMAIL PROTECTED]> writes: > Perhaps GCC should not accept code that will result in undefined > behaviour This is impossible because there is nothing wrong when the code is never executed. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux AG, Max

Re: -O2 bug in gcc 3.2, 3.3 and 3.4 with 64 bit integers on x86

2004-11-09 Thread Andreas Schwab
cc-3.4.3/gcc/Optimize-Options.html#index-fstrict_002daliasing-422 Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: -O2 bug in gcc 3.2, 3.3 and 3.4 with 64 bit integers on x86

2004-11-09 Thread Andreas Schwab
Anders Torger <[EMAIL PROTECTED]> writes: > unsigned long > hash(void *key) > { > unsigned long long ull; > ull = *(unsigned long long *)key; > return ((unsigned long *)&ull)[0] ^ ((unsigned long *)&ull)[1]; Try -Wstrict-aliasing. Andreas. -- A