This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc/11650] New: Hardlinks not work with #import


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Hardlinks not work with #import
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wo701 at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org

After submit bug for symlinks not work with #import, I looked at hardlinks
and noticed they fail too.  They work with 2.95.

Testcase:

create file1.h:

#warning "File imported"

create file2.h, hardlink to file1.h:

ln file2.h file1.h

compile main.m:

#import "file1.h"
#import "file2.h"

int main() {exit(0);}

2.95 prints out "File imported" once, correct; new gcc prints out "File
imported" twice, wrong.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]