public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "andersin at freenet dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/30439]  New: Intended Behaviour? #include <signal.h> searches for signal.h in local directory
Date: Thu, 11 Jan 2007 17:27:00 -0000	[thread overview]
Message-ID: <bug-30439-13903@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2007-01-11 17:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11 17:27 andersin at freenet dot de [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30439-13903@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).