On Tue, Jul 31, 2001 at 09:54:34AM +0400, Andy Igoshin wrote:
> >   Это (-I/usr/include) оказалось documented behavior.
> >   info gcc и cpp на тему Directory Options, System Headers, -I,
> >   -isystem.
> 
> что именно оказалось документированным поведением?

  Дисконально я обьяснить не могу, но примерно.
  Заголовочные фаилы из так называемых standard system directories
  имеют специальное отклонение в их обработке gcc компилером:

The header files declaring interfaces to the operating system and
runtime libraries often cannot be written in strictly conforming C.
Therefore, GNU C gives code found in "system headers" special
treatment.  Certain categories of warnings are suppressed, notably those
enabled by -pedantic'.

  GCC 3.0 дает на это варнинг:

lithium(/1)arkadi:~/tmp> ../opt/gcc-3_0-branch-010730/bin/i586-pc-linux-gnu-gcc -o s.o 
-c s.c -I/usr/include
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory

  На то, что это documented behavior, мне указал [EMAIL PROTECTED]


arkadi.
=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops" in message body.
Archive is accessible on http://www.paco.net/oops/

Дати відповідь електронним листом