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

Submitter:  Ludovic Courtès <civodul>
Submitted:  Sun 17 Oct 2010 12:27:23 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  grischka
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Grishka fixed the root problem in commit 2358b378b3cd526956713f033f5a0ecaa5f63951

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

Fixed by Sergey Vinokurov in mob branch.

Thomas Preud'homme <robotux>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-01-13 robotux Assigned toNone grischka
    2012-10-26 robotux StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2012-10-19 robotux StatusNone Confirmed
    2010-10-17 civodul Carbon-Copy- Added bruno haible <bruno@clisp.org>

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code