[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#627672: PR 28322 patch is still wrong



Package: gcc-4.3
Version: 4.3.2-1.1

The changelog for gcc-4.3 says:

  gcc-4.3 (4.3.1-5) unstable; urgency=low

    * Update to SVN 20080705 from the gcc-4_3-branch.
      - Fix PR target/36634, wrong-code on powerpc with -msecure-plt.
    * Fix PR target/35965, PIC + -fstack-protector on arm/armel. Closes: #469517.
    * Don't run the libjava testsuite with -mabi=n32.
    * Update patch for PR other/28322, that unknown -Wno-* options do not
      cause errors, but warnings instead.
    * On m68k, add -fgnu89-inline when in gnu99 mode (requested by Michael
      Casadeval for the m68k port). Closes: #489234.

   -- Matthias Klose <doko@debian.org>  Sun, 06 Jul 2008 01:39:30 +0200

However, on released lenny:

  mariner:~/junk> gcc -DHACK -Wno-sponge t.c
  t.c: In function 'main':
  t.c:7: warning: initialization makes pointer from integer without a cast
  At top level:
  cc1: error: unrecognized command line option "-Wno-sponge"
  mariner:~/junk> cat t.c

  #include <stdio.h>

  int main(void)
  {
  #ifdef HACK
	  void *p = 0x1234;
  #else
	  void *p = NULL;
  #endif
	  printf("P is %p\n", p);
  }

  mariner:~/junk> 

This means that this gcc has a broken version of the fix for
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28322

This is particularly annoying as it means that programs' whose
configure scripts attempt to discover whether a particular -Wno-foo
option is supported will fail to spot that it isn't, pass it anyway,
and then fall over if there are any other warnings.  (Only programs
not using -Werror are affected.)

sqeeze is fine.  Could we consider an update to improve this for 
lenny ?

Ian.



Reply to: