This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Outwit compiler dead code elimination in break.exp test


Fred Fish wrote:
I know that GCC will now, when -O is specified, inline (and thence eliminate) pure functions. However, I don't think that should occure when -O isn't specified.


It doesn't.  The gdb specifically uses optimization for the test that
is currently failing:

FAIL: gdb.base/break.exp: run until breakpoint set at small function, optimized file


Ah. And I was gonna say "GCC shouldn't do that without optimization turned on". Never mind, I guess...



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]