[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread a_fisch at gmx dot de
--- Comment #4 from a_fisch at gmx dot de 2007-03-07 17:43 --- Subject: Re: Wrong code for volatile var with initalization and optimization My runtime environment is clearing .bss but the problem is that the initialization value is != 0 . Because of the value != 0 it's not allo

[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-03-07 17:11 --- .sbss is .sdata but in the bss part of it. If your loader does not zero bss, then you can use -fno-zero-initialized-in-bss to get the variable not stored in the bss section. -- pinskia at gcc dot gnu dot org chan

[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread a_fisch at gmx dot de
--- Comment #2 from a_fisch at gmx dot de 2007-03-07 15:44 --- Created an attachment (id=13163) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13163&action=view) Generated assembler output: powerpc-elf-gcc -O1 -S -o fg_O1.s fg.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31

[Bug c/31072] Wrong code for volatile var with initalization and optimization

2007-03-07 Thread a_fisch at gmx dot de
--- Comment #1 from a_fisch at gmx dot de 2007-03-07 15:41 --- Created an attachment (id=13162) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13162&action=view) Preprocessed source of code sample -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31072