public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] GCC processor independent install?
@ 2024-02-26 21:59 Vru Inbvi
  2024-02-26 22:06 ` Gabriel Ravier
  0 siblings, 1 reply; 2+ messages in thread
From: Vru Inbvi @ 2024-02-26 21:59 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

Hi,

If I install for instance Ubuntu 22.04 with the default compilers (from apt
install) on computers with AMD and Intel processors, and run my application
I get the same results, bit for bit.

However if I install a different version of GCC and GFORTRAN from source I
get different results.

Which configuration options should I use make my install
processor-independent and get the same results?

VI

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

* Re: [wwwdocs] GCC processor independent install?
  2024-02-26 21:59 [wwwdocs] GCC processor independent install? Vru Inbvi
@ 2024-02-26 22:06 ` Gabriel Ravier
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Ravier @ 2024-02-26 22:06 UTC (permalink / raw)
  To: Vru Inbvi, gcc-help

On 2/26/24 21:59, Vru Inbvi via Gcc-help wrote:
> Hi,
>
> If I install for instance Ubuntu 22.04 with the default compilers (from apt
> install) on computers with AMD and Intel processors, and run my application
> I get the same results, bit for bit.
>
> However if I install a different version of GCC and GFORTRAN from source I
> get different results.
>
> Which configuration options should I use make my install
> processor-independent and get the same results?
>
> VI


I don't exactly understand what it is you're trying to say here, 
exactly...  If you're installing different versions of GCC (e.g. GCC 12 
and GCC 13) then I would hope it is obvious enough that the different 
versions will pretty much always output different code - even for minor 
version updates this can often occur. If the issue is that your 
application appears to exhibit different behavior (and not just have 
differing executable artifacts) depending on the version this is most 
likely due to a bug in your program, which you might be able to find 
using checkers like `-fsanitize` or others, or, much less likely, there 
is a bug in one of the two versions of GCC you used to compile the code.


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

end of thread, other threads:[~2024-02-26 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 21:59 [wwwdocs] GCC processor independent install? Vru Inbvi
2024-02-26 22:06 ` Gabriel Ravier

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