Skip to contentSkip to conversation

disable gcc warnings of sign/unsigned comparison

PATCH Andi Kleen 3 participants 6 messages Jan 2, 2004 – Mar 29, 2004 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#3 lore raw
Quoted 1 line · Paul Jackson

Right now, compiling a 2.6.0-mm1 (what I had handy) with the 3.3 gcc on

That was a bug in gcc 3.3.0. It had the -Wsign-compare warning enabled in -Wall by mistake. Update to gcc 3.3.1, which has this fixed.

-Andi

#4 lore raw
Quoted 2 lines · Andi

That was a bug in gcc 3.3.0. It had the -Wsign-compare warning enabled in -Wall by mistake.

Correct. Even what is now downloadable as:

ftp://ftp.gnu.org/gnu/gcc/gcc-3.3

seems to have this fixed, and has a gcc/cp/NEWS file entry stating:

+ -Wall no longer implies -W. The new warning flag, -Wsign-compare, included in -Wall, warns about dangerous comparisons of signed and unsigned values. Only the flag is new; it was previously part of -W.

Signature · 3 lines
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <[email protected]> 1.650.933.1373
#5 lore raw
In reply to Andi Kleen
Quoted 6 lines · Andi Kleen
Quoted 1 line · Paul Jackson

Right now, compiling a 2.6.0-mm1 (what I had handy) with the 3.3 gcc on

That was a bug in gcc 3.3.0. It had the -Wsign-compare warning enabled in -Wall by mistake. Update to gcc 3.3.1, which has this fixed.

Wrong.

It was _not_ a bug in gcc 3.3 .

It was a bug in some _prerelease_ versions of gcc 3.3 SuSE decided to ship in a release of their distribution.

There is no officially released version of gcc with this problem.

Quoted 1 line

-Andi

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#6 lore raw
Quoted 2 lines

It was a bug in some _prerelease_ versions of gcc 3.3 SuSE decided to ship in a release of their distribution.

That matches my observations, as I noted an earlier reply on lkml, when I recommended against accepting my own patch, on the grounds that we shouldn't pollute the Makefile with exceptions that only applied to people running the gcc in a particular SuSE distro.

Good. Thanks for the confirmation.

Signature · 3 lines
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <[email protected]> 1.650.933.1373
#7 lore raw
In reply to Adrian Bunk
Quoted 2 lines

It was a bug in some _prerelease_ versions of gcc 3.3 SuSE decided to ship in a release of their distribution.

That matches my observations, as I noted an earlier reply on lkml, when I recommended against accepting my own patch, on the grounds that we shouldn't pollute the Makefile with exceptions that only applied to people running the gcc in a particular SuSE distro.

Good. Thanks for the confirmation.

Signature · 3 lines
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <[email protected]> 1.650.933.1373
#8 lore raw
In reply to Andi Kleen
Quoted 6 lines · Andi Kleen
Quoted 1 line · Paul Jackson

Right now, compiling a 2.6.0-mm1 (what I had handy) with the 3.3 gcc on

That was a bug in gcc 3.3.0. It had the -Wsign-compare warning enabled in -Wall by mistake. Update to gcc 3.3.1, which has this fixed.

Wrong.

It was _not_ a bug in gcc 3.3 .

It was a bug in some _prerelease_ versions of gcc 3.3 SuSE decided to ship in a release of their distribution.

There is no officially released version of gcc with this problem.

Quoted 1 line

-Andi

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed