This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: the same gcc binary emits warnings on one machine but not on another


* john smith:

> We use the same cross-compiler on two Linux machines: machine A and
> machine B.  It produces some warnings on machine A but not on machine
> B when used to compile the same file and with the same set of options
> (specifically we use -Wall and -Wextra).  We are absolutely sure that
> it's the same compiler - it's in the same version and has the same
> md5sum on both machines.  However, these 2 Linux machines differ - A
> is x32 Ubuntu, B is x64 bit Slackware.

It's unlikely that the two compiler versions are the same.  In the
past, Debian has backported some new upstream warnings to an older
version, and Slackware probably won't have these backports.

In addition, some warnings are issued from the optimizers, and they
can be very target-specific in practice.  I saw this with -Woverflow
warnings in particular because fold uses different heuristics on IBM
targets compared to the rest.


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