This is the mail archive of the gcc@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]

sparc-sun-solaris2.8 headers: fixinc, cpplib


If I compile the trivial program
  #include <stdio.h>
  int main() { }
with `g++ x.cc -Wall` I get the following warnings:

In file included from /sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.8/2.97/include/stdio.h:15,
                 from x.cc:1:
/usr/include/iso/stdio_iso.h:1: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:1,
                 from /sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.8/2.97/include/stdio.h:15,
                 from x.cc:1:
/usr/include/sys/feature_tests.h:1: warning: ignoring #pragma ident
In file included from /usr/include/sys/feature_tests.h:1,
                 from /usr/include/iso/stdio_iso.h:1,
                 from /sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.8/2.97/include/stdio.h:15,
                 from x.cc:1:
/usr/include/sys/isa_defs.h:1: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:36,
                 from /sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.8/2.97/include/stdio.h:15,
                 from x.cc:1:
/usr/include/sys/va_list.h:1: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:37,
                 from /sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.8/2.97/include/stdio.h:15,
                 from x.cc:1:
/usr/include/stdio_tag.h:1: warning: ignoring #pragma ident
In file included from /usr/include/iso/stdio_iso.h:38,
                 from /sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.8/2.97/include/stdio.h:15,
                 from x.cc:1:
/usr/include/stdio_impl.h:1: warning: ignoring #pragma ident

There are two problems here:

1\ The pragma itself, which should be removed by fixinc, I guess.

   #pragma ident   "@(#)stdio_iso.h        1.2     99/10/25 SMI"

2\ cpplib, which provides an incorrect line number (The #pragma is not
   at line 1).

Gerald

PS: At http://www.dbai.tuwien.ac.at/~pfeifer/tmp/include.solaris8/ you'll
find a copy of /usr/include from a sparc-sun-solaris8 host.
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/


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