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 c/19287] New: a protoize bug (directory string is duplicated.)


My first bug report :-)

$ protoize subdir/test.c
protoize: compiling `subdir/test.c'
protoize: subdir/subdir/test.c: can't get status: No such file or directory
protoize: warning: missing SYSCALLS file `/usr/local/lib/gcc-lib/i686-pc-linux-
gnu/3.2.3/SYSCALLS.c.X'
$


I think following modification is better :

in gcc-3.2.3/gcc/protoize.c

1478c1478
<   fi_p = find_file (abspath (invocation_filename, filename), 0);
---
>   fi_p = find_file (abspath (getpwd(), filename), 0);
1548c1548
<     def_dec_p->file = find_file (abspath (invocation_filename, filename), 
is_syscalls);
---
>     def_dec_p->file = find_file (abspath (getpwd(), filename), is_syscalls);

Thank you.

----
Tetsuya Takatsuru
NTT COMWARE
Japan

-- 
           Summary: a protoize bug (directory string is duplicated.)
           Product: gcc
           Version: 3.2.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: takatsuru dot tetsuya at nttcom dot co dot jp
                CC: gcc-bugs at gcc dot gnu dot org


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


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