[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 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 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 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 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 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 c/93196] New: GCC compiles c code, provides no executable output with option -O2

2020-01-08 Thread xiehongbiao at sensetime dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: xiehongbiao at sensetime dot com Target Milestone: --- Thanks for reading this. I'm using gcc 5.4.0 to compile an open source project gmp-6.1.2. Some errors happen in my Ubuntu