[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 --- Comment #9 from Jonatan GOebel jonatan.goebel at digitel dot com.br 2012-04-19 15:14:27 UTC --- Hi. The problem actually happen when using -Os and -frename-registers. Also the source code may note help, because it randomly happens on different parts of the code depending on compiling flags and source code size. But always stuck after a return that never returns.
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2012-04-10 Ever Confirmed|0 |1 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2012-04-10 13:13:33 UTC --- If it was the same then it would be fixed in gcc 4.1.2 and not present in gcc 4.5.3 But noone can tell if it's the same because you haven't provided any information at all about the problem.
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 --- Comment #2 from Jonatan GOebel jonatan.goebel at digitel dot com.br 2012-04-10 15:14:53 UTC --- The ps code calls the funcion set_personality() This function ends with a goto *(found-jump); this goto jump to case_unknown: do some stuffs and returns NULL. And the program stuck, he probably returned to somewhere else.
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 --- Comment #3 from Uros Bizjak ubizjak at gmail dot com 2012-04-10 17:52:52 UTC --- (In reply to comment #2) Please follow instructions at http://gcc.gnu.org/bugs/#report on how to provide all required information.
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 --- Comment #4 from Jonatan GOebel jonatan.goebel at digitel dot com.br 2012-04-10 18:15:58 UTC --- Created attachment 27125 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27125 S file compiled with -Os flag
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 --- Comment #5 from Jonatan GOebel jonatan.goebel at digitel dot com.br 2012-04-10 18:16:36 UTC --- Created attachment 27126 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27126 S file compiled without -Os flag
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 --- Comment #6 from Jonatan GOebel jonatan.goebel at digitel dot com.br 2012-04-10 18:17:39 UTC --- Created attachment 27127 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27127 compiled sorce file.
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 --- Comment #7 from Jonatan GOebel jonatan.goebel at digitel dot com.br 2012-04-10 18:24:55 UTC --- props project: http://procps.sourceforge.net/index.html Hi, I attached the i and the S files from the source code that causes the program to stuck. And this is the only warning in this source. In file included from ps/../proc/escape.h:7:0, from ps/common.h:16, from ps/global.c:24: ps/../proc/readproc.h:76:2: warning: padding struct to align 'start_code' the full command line is: powerpc-e500v2-linux-uclibcspe-gcc -c -D_GNU_SOURCE -I proc -fno-common -ffast-math -W -Wall -Wshadow -Wcast-align -Wredundant-decls -Wbad-function-cast -Wcast-qual -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Os -save-temps -Wdeclaration-after-statement -Wpadded -Wstrict-aliasing -fweb -frename-registers -fomit-frame-pointer -fno-inline-functions ps/global.c -o ps/global.o
[Bug c/52927] procps do not work with -Os flag.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |UNCONFIRMED Ever Confirmed|1 |0 --- Comment #8 from Jonathan Wakely redi at gcc dot gnu.org 2012-04-10 20:57:06 UTC --- Thank you for the additional details.