public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h
@ 2005-03-07  8:56 jakub at gcc dot gnu dot org
  2005-03-07  9:02 ` [Bug preprocessor/20356] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-03-07  8:56 UTC (permalink / raw)
  To: gcc-bugs

If some /usr/include header uses
#include "limits.h"
instead of
#include <limits.h>
it gets error: #include nested too deeply.
There are 2 limits.h headers, /usr/lib/gcc/*/*/include/limits.h and
/usr/include/limits.h that try to include each other with #include_next,
guarded with the defines that protect multiple header inclusion for the other
one.
" instead of < causes /usr/include/limits.h to be included first
(normally is /usr/lib/gcc/*/*/include/limits.h first) and this does:
#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
# include_next <limits.h>

In older GCC releases, this include_next would load the next limits.h in the
search path, which is /usr/lib/gcc/*/*/include/limits.h, but GCC4 includes
/usr/include/limits.h again (and does so until reaching the nesting limit).

-- 
           Summary: New #include_next behaviour breaks limits.h
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: *-linux


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


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

* [Bug preprocessor/20356] [4.0/4.1 Regression] New #include_next behaviour breaks limits.h
  2005-03-07  8:56 [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h jakub at gcc dot gnu dot org
@ 2005-03-07  9:02 ` pinskia at gcc dot gnu dot org
  2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-07  9:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-07 09:02 -------
I think this is related to PR 20348.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|New #include_next behaviour |[4.0/4.1 Regression] New
                   |breaks limits.h             |#include_next behaviour
                   |                            |breaks limits.h
   Target Milestone|---                         |4.0.0


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


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

* [Bug preprocessor/20356] [4.0/4.1 Regression] New #include_next behaviour breaks limits.h
  2005-03-07  8:56 [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h jakub at gcc dot gnu dot org
  2005-03-07  9:02 ` [Bug preprocessor/20356] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
  2005-07-08  1:38 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-21  5:01 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |4.0.1


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


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

* [Bug preprocessor/20356] [4.0/4.1 Regression] New #include_next behaviour breaks limits.h
  2005-03-07  8:56 [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h jakub at gcc dot gnu dot org
  2005-03-07  9:02 ` [Bug preprocessor/20356] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
@ 2005-07-08  1:38 ` mmitchel at gcc dot gnu dot org
  2005-08-26 16:16 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08  1:38 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.1                       |4.0.2


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


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

* [Bug preprocessor/20356] [4.0/4.1 Regression] New #include_next behaviour breaks limits.h
  2005-03-07  8:56 [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h jakub at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-08  1:38 ` mmitchel at gcc dot gnu dot org
@ 2005-08-26 16:16 ` jakub at gcc dot gnu dot org
  2005-08-30  6:28 ` cvs-commit at gcc dot gnu dot org
  2005-08-30  7:27 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-08-26 16:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jakub at gcc dot gnu dot org  2005-08-26 16:16 -------
Indeed.  If I back out:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/files.c.diff?r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/files.c.diff?r1=1.1&r2=1.2
it works just fine.

*** This bug has been marked as a duplicate of 20348 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug preprocessor/20356] [4.0/4.1 Regression] New #include_next behaviour breaks limits.h
  2005-03-07  8:56 [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h jakub at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-08-26 16:16 ` jakub at gcc dot gnu dot org
@ 2005-08-30  6:28 ` cvs-commit at gcc dot gnu dot org
  2005-08-30  7:27 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-30  6:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-30 06:28 -------
Subject: Bug 20356

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jakub@gcc.gnu.org	2005-08-30 06:28:22

Modified files:
	libcpp         : ChangeLog 
	gcc/testsuite  : ChangeLog 
	libcpp         : files.c 
Added files:
	gcc/testsuite/gcc.dg/cpp: pr20356.h pr20356.c pr20348.c 
	                          pr20348.h 
	gcc/testsuite/gcc.dg/cpp/inc: pr20348-aux.h pr20356.h 
	                              pr20356-aux.h pr20348.h 

Log message:
	PR preprocessor/20348
	PR preprocessor/20356
	* files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
	2004-06-05 changes.
	
	* gcc.dg/cpp/pr20348.c: New test.
	* gcc.dg/cpp/pr20348.h: New file.
	* gcc.dg/cpp/inc/pr20348.h: New file.
	* gcc.dg/cpp/inc/pr20348-aux.h: New file.
	* gcc.dg/cpp/pr20356.c: New test.
	* gcc.dg/cpp/pr20356.h: New file.
	* gcc.dg/cpp/inc/pr20356.h: New file.
	* gcc.dg/cpp/inc/pr20356-aux.h: New file.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/ChangeLog.diff?cvsroot=gcc&r1=1.75&r2=1.76
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5980&r2=1.5981
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/files.c.diff?cvsroot=gcc&r1=1.12&r2=1.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20356.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20356.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20348.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20348.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20348-aux.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20356.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20356-aux.h.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20348.h.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug preprocessor/20356] [4.0/4.1 Regression] New #include_next behaviour breaks limits.h
  2005-03-07  8:56 [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h jakub at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-08-30  6:28 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-30  7:27 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-30  7:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-30 06:36 -------
Subject: Bug 20356

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	jakub@gcc.gnu.org	2005-08-30 06:35:45

Modified files:
	libcpp         : ChangeLog 
	gcc/testsuite  : ChangeLog 
	libcpp         : files.c 
Added files:
	gcc/testsuite/gcc.dg/cpp: pr20356.h pr20356.c pr20348.c 
	                          pr20348.h 
	gcc/testsuite/gcc.dg/cpp/inc: pr20348-aux.h pr20356.h 
	                              pr20356-aux.h pr20348.h 

Log message:
	PR preprocessor/20348
	PR preprocessor/20356
	* files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
	2004-06-05 changes.
	
	* gcc.dg/cpp/pr20348.c: New test.
	* gcc.dg/cpp/pr20348.h: New file.
	* gcc.dg/cpp/inc/pr20348.h: New file.
	* gcc.dg/cpp/inc/pr20348-aux.h: New file.
	* gcc.dg/cpp/pr20356.c: New test.
	* gcc.dg/cpp/pr20356.h: New file.
	* gcc.dg/cpp/inc/pr20356.h: New file.
	* gcc.dg/cpp/inc/pr20356-aux.h: New file.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.56.2.9&r2=1.56.2.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.361&r2=1.5084.2.362
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libcpp/files.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.9&r2=1.9.6.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20356.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20356.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20348.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/pr20348.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20348-aux.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20356.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20356-aux.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/inc/pr20348.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

end of thread, other threads:[~2005-08-30  6:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07  8:56 [Bug preprocessor/20356] New: New #include_next behaviour breaks limits.h jakub at gcc dot gnu dot org
2005-03-07  9:02 ` [Bug preprocessor/20356] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-04-21  5:01 ` mmitchel at gcc dot gnu dot org
2005-07-08  1:38 ` mmitchel at gcc dot gnu dot org
2005-08-26 16:16 ` jakub at gcc dot gnu dot org
2005-08-30  6:28 ` cvs-commit at gcc dot gnu dot org
2005-08-30  7:27 ` cvs-commit 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).