bugTiny C Compiler - Bugs: bug #31357, `#include_next' confused by...

 
 

bug #31357: `#include_next' confused by multiple occurrences of the same directory in the search path

Submitted by:  Ludovic Courtès <civodul>
Submitted on:  Sun 17 Oct 2010 12:27:23 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: grischka <grischka>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 13 Jan 2013 09:54:06 PM UTC, comment #3:

Grishka fixed the root problem in commit 2358b378b3cd526956713f033f5a0ecaa5f63951

Thomas Preud'homme <robotux>
Project Member
Fri 26 Oct 2012 01:52:10 PM UTC, comment #2:

Fixed by Sergey Vinokurov in mob branch.

Thomas Preud'homme <robotux>
Project Member
Sun 17 Oct 2010 01:44:20 PM UTC, comment #1:

It also gets confused when the equivalent directory specifications
appear in the search path, for example
-I. -I./.

That is, just eliminating obvious duplicates from the -I
options won't fix the bug.

Bruno Haible <haible>
Sun 17 Oct 2010 12:27:23 PM UTC, original submission:

The `#include_next' directive gets confused when the same directory appears several times in the search path:

#v+
$ cat foo.c
#include <stdlib.h>

$ cat stdlib.h
#include_next <stdlib.h>

$ tcc -I. -c foo.c
# OK.

$ tcc -I. -I. -c foo.c
In file included from foo.c:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
./stdlib.h:1: #include recursion too deep
#v-

With tcc 0.9.25.

Initially reported by Bruno Haible at <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00355.html>.

Ludovic Courtès <civodul>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by robotux (Updated the item)
  • -unavailable- added by haible (Posted a comment)
  • -unavailable- added by civodul (Submitted the item)
  • -unavailable- added by civodul
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Jan 2013 09:54:06 PM UTCrobotuxAssigned toNone=>grischka
    Fri 26 Oct 2012 01:52:10 PM UTCrobotuxStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 19 Oct 2012 03:11:54 PM UTCrobotuxStatusNone=>Confirmed
    Sun 17 Oct 2010 12:27:23 PM UTCcivodulCarbon-Copy-=>Added bruno haible

    Back to the top


    Powered by Savane 3.1-cleanup1