public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52927] New: "procps" do not work with -Os flag.
@ 2012-04-10 13:09 jonatan.goebel at digitel dot com.br
  2012-04-10 13:14 ` [Bug c/52927] " redi at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jonatan.goebel at digitel dot com.br @ 2012-04-10 13:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927

             Bug #: 52927
           Summary: "procps" do not work with -Os flag.
    Classification: Unclassified
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jonatan.goebel@digitel.com.br


I imagine it's the same bug as I found here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621 but for another platform.

This happens for the e500x2 core, using uClibc 0.9.32.

The main difference, is that there is no segmentation fault, the software just
stuck.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
@ 2012-04-10 13:14 ` redi at gcc dot gnu.org
  2012-04-10 15:15 ` jonatan.goebel at digitel dot com.br
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-04-10 13:14 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
  2012-04-10 13:14 ` [Bug c/52927] " redi at gcc dot gnu.org
@ 2012-04-10 15:15 ` jonatan.goebel at digitel dot com.br
  2012-04-10 17:53 ` ubizjak at gmail dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jonatan.goebel at digitel dot com.br @ 2012-04-10 15:15 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
  2012-04-10 13:14 ` [Bug c/52927] " redi at gcc dot gnu.org
  2012-04-10 15:15 ` jonatan.goebel at digitel dot com.br
@ 2012-04-10 17:53 ` ubizjak at gmail dot com
  2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ubizjak at gmail dot com @ 2012-04-10 17:53 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
                   ` (2 preceding siblings ...)
  2012-04-10 17:53 ` ubizjak at gmail dot com
@ 2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
  2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jonatan.goebel at digitel dot com.br @ 2012-04-10 18:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
                   ` (3 preceding siblings ...)
  2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
@ 2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
  2012-04-10 18:17 ` jonatan.goebel at digitel dot com.br
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jonatan.goebel at digitel dot com.br @ 2012-04-10 18:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
                   ` (4 preceding siblings ...)
  2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
@ 2012-04-10 18:17 ` jonatan.goebel at digitel dot com.br
  2012-04-10 18:25 ` jonatan.goebel at digitel dot com.br
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jonatan.goebel at digitel dot com.br @ 2012-04-10 18:17 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
                   ` (5 preceding siblings ...)
  2012-04-10 18:17 ` jonatan.goebel at digitel dot com.br
@ 2012-04-10 18:25 ` jonatan.goebel at digitel dot com.br
  2012-04-10 20:57 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jonatan.goebel at digitel dot com.br @ 2012-04-10 18:25 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
                   ` (6 preceding siblings ...)
  2012-04-10 18:25 ` jonatan.goebel at digitel dot com.br
@ 2012-04-10 20:57 ` redi at gcc dot gnu.org
  2012-04-19 15:38 ` jonatan.goebel at digitel dot com.br
  2020-06-03  0:01 ` [Bug target/52927] " segher at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-04-10 20:57 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
                   ` (7 preceding siblings ...)
  2012-04-10 20:57 ` redi at gcc dot gnu.org
@ 2012-04-19 15:38 ` jonatan.goebel at digitel dot com.br
  2020-06-03  0:01 ` [Bug target/52927] " segher at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jonatan.goebel at digitel dot com.br @ 2012-04-19 15:38 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/52927] "procps" do not work with -Os flag.
  2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
                   ` (8 preceding siblings ...)
  2012-04-19 15:38 ` jonatan.goebel at digitel dot com.br
@ 2020-06-03  0:01 ` segher at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: segher at gcc dot gnu.org @ 2020-06-03  0:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52927

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
                 CC|                            |segher at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #10 from Segher Boessenkool <segher at gcc dot gnu.org> ---
The powerpcspe backend has been deprecated in GCC 8 and removed during GCC 9
development. See corresponding mailing list threads[1,2,3] for details.

[1] https://gcc.gnu.org/legacy-ml/gcc/2018-04/msg00102.html
[2] https://gcc.gnu.org/legacy-ml/gcc-patches/2018-12/msg00123.html
[3] https://gcc.gnu.org/pipermail/gcc/2020-May/232342.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-06-03  0:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-10 13:09 [Bug c/52927] New: "procps" do not work with -Os flag jonatan.goebel at digitel dot com.br
2012-04-10 13:14 ` [Bug c/52927] " redi at gcc dot gnu.org
2012-04-10 15:15 ` jonatan.goebel at digitel dot com.br
2012-04-10 17:53 ` ubizjak at gmail dot com
2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
2012-04-10 18:16 ` jonatan.goebel at digitel dot com.br
2012-04-10 18:17 ` jonatan.goebel at digitel dot com.br
2012-04-10 18:25 ` jonatan.goebel at digitel dot com.br
2012-04-10 20:57 ` redi at gcc dot gnu.org
2012-04-19 15:38 ` jonatan.goebel at digitel dot com.br
2020-06-03  0:01 ` [Bug target/52927] " segher at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).