public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/30439]  New: Intended Behaviour? #include <signal.h> searches for signal.h in local directory
@ 2007-01-11 17:27 andersin at freenet dot de
  2007-01-11 17:29 ` [Bug c/30439] " andersin at freenet dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: andersin at freenet dot de @ 2007-01-11 17:27 UTC (permalink / raw)
  To: gcc-bugs

Problem:
#include<signal.h> does not include /usr/include/signal.h (the library header)
if ./signal.h exists.

Expected Behavior:
If a file ./signal.h exists, #include<signal.h> includes /usr/include/signal.h
and #include "signal.h" includes ./signal.h

As far as I know, ANSI C states that #include<signal.h> includes only library
files and not user files (e.g. in the local directory).

Steps to Reproduce:
try to compile attached testcase

Additional Information:
gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r1/work/gcc-4.1.1/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r1)


-- 
           Summary: Intended Behaviour? #include <signal.h> searches for
                    signal.h in local directory
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andersin at freenet dot de
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30439


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-01-14 18:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-11 17:27 [Bug c/30439] New: Intended Behaviour? #include <signal.h> searches for signal.h in local directory andersin at freenet dot de
2007-01-11 17:29 ` [Bug c/30439] " andersin at freenet dot de
2007-01-11 17:31 ` andersin at freenet dot de
2007-01-11 17:32 ` andersin at freenet dot de
2007-01-11 17:33 ` andersin at freenet dot de
2007-01-11 17:33 ` andersin at freenet dot de
2007-01-14  4:56 ` pinskia at gcc dot gnu dot org
2007-01-14 14:29 ` andersin at freenet dot de
2007-01-14 18:21 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).