public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* cross compiled output differs
@ 2018-03-10 11:58 Milan Ton
  2018-03-12 13:02 ` Nathan Sidwell
  2018-03-12 13:24 ` Richard Biener
  0 siblings, 2 replies; 6+ messages in thread
From: Milan Ton @ 2018-03-10 11:58 UTC (permalink / raw)
  To: gcc

Hi:

I built two versions -- linux/mingw -- of a 32-bit gcc cross compiler
of codebase 7.3.0 on fedora 20 (gcc 4.8). Then I compiled an embedded
project using the both cross compilers in the same build
environment. An assemble code inspection showed that one function out
of about thousand project functions differs in the two builds. Both
run-time tests and visual inspection suggest that both variants of the
compiled function are correct. I looked at the output of the switch
`-fdump-tree-all' and realized that the path `ivopts' makes this difference.
Once `-fno-ivopts' applied, the two compilations are binary equivalent.

Shouldn't I expect in general same output of such cross compilers ?
What could be reasons of such differences ? and options to fix it ?

Milan

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

end of thread, other threads:[~2018-03-12 18:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-10 11:58 cross compiled output differs Milan Ton
2018-03-12 13:02 ` Nathan Sidwell
2018-03-12 13:24 ` Richard Biener
2018-03-12 13:45   ` Nathan Sidwell
2018-03-12 16:30     ` Milan Ton
     [not found]     ` <2560201520871091@web16g.yandex.ru>
2018-03-12 18:21       ` Richard Biener

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).