[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 Andrew Pinski changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #17 from xiehongbiao --- (In reply to Andrew Pinski from comment #16) > I don't see anything wrong with strace of the -O2 case. In fact I see: > [pid 10270] stat("a.out", {st_mode=S_IFREG|0755, st_size=8592, ...}) = 0 > [pid 10270] l

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #16 from Andrew Pinski --- I don't see anything wrong with strace of the -O2 case. In fact I see: [pid 10270] stat("a.out", {st_mode=S_IFREG|0755, st_size=8592, ...}) = 0 [pid 10270] lstat("a.out", {st_mode=S_IFREG|0755, st_size=8592

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #15 from xiehongbiao --- (In reply to Martin Liška from comment #14) > (In reply to xiehongbiao from comment #13) > > (In reply to Martin Liška from comment #9) > > > Can you please attach output for strace -f -s512 of the problematic

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #14 from Martin Liška --- (In reply to xiehongbiao from comment #13) > (In reply to Martin Liška from comment #9) > > Can you please attach output for strace -f -s512 of the problematic > > execution? > > Please help check the strace

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #13 from xiehongbiao --- (In reply to Martin Liška from comment #9) > Can you please attach output for strace -f -s512 of the problematic > execution? Please help check the strace log (attached). Thanks.

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #12 from xiehongbiao --- Created attachment 47618 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47618&action=edit strace log

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #11 from Martin Liška --- (In reply to xiehongbiao from comment #10) > (In reply to Andrew Pinski from comment #8) > > Can you also add -Wl,-v ; this will cause collect2 to print it runs? > > It reports error :"gcc: error: unrecogniz

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-09 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #10 from xiehongbiao --- (In reply to Andrew Pinski from comment #8) > Can you also add -Wl,-v ; this will cause collect2 to print it runs? It reports error :"gcc: error: unrecognized command line option ‘-Wl’". Please let me know i

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #9 from Martin Liška --- Can you please attach output for strace -f -s512 of the problematic execution?

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #8 from Andrew Pinski --- Can you also add -Wl,-v ; this will cause collect2 to print it runs?

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #7 from xiehongbiao --- Created attachment 47611 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47611&action=edit log comparation snapshot The above 2 logs comparation snapshot.

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #6 from xiehongbiao --- (In reply to Martin Liška from comment #3) > (In reply to xiehongbiao from comment #2) > > (In reply to Andrew Pinski from comment #1) > > > Double check that your -O2 is a capitalized O. My bet it is not and

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #5 from xiehongbiao --- Created attachment 47610 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47610&action=edit O1 Good Add -v in compile command

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #4 from xiehongbiao --- Created attachment 47609 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47609&action=edit O2 NG add -v in compile command.

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #3

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread xiehongbiao at sensetime dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #2 from xiehongbiao --- (In reply to Andrew Pinski from comment #1) > Double check that your -O2 is a capitalized O. My bet it is not and really > you are producing a file called 2 instead. Thanks for the reply Andrew. I'm sure that

[Bug driver/93196] GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93196 --- Comment #1 from Andrew Pinski --- Double check that your -O2 is a capitalized O. My bet it is not and really you are producing a file called 2 instead.