darwin-c.c (add_framework): Copy the directory name as it can be freed later.
authorMike Stump <mrs@apple.com>
Wed, 5 May 2004 18:25:52 +0000 (18:25 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Wed, 5 May 2004 18:25:52 +0000 (18:25 +0000)
commite3c287c9f3141a97a75ea54ca9d99d940765d831
treec90d3529878cc7887b1b4e333bac9bb10c41467a
parentf08a3544c21fba472a946b93ad506d6469481311
darwin-c.c (add_framework): Copy the directory name as it can be freed later.

* config/darwin-c.c (add_framework): Copy the directory name as it
can be freed later.  Also, ensure we always allocate enough room
for the cached framework information.
(find_subframework_header): Keep track of the directory where the
subframework header was found.
(framework_construct_pathname): Speed up by not trying to re-add a
framework.
* cppfiles.c (search_path_exhausted): Arrange for the missing
header callback to be able to set the directory where the header
was found.
(cpp_get_dir): Add.
* cpplib.h (missing_header_cb): Add a parameter.
(cpp_get_dir): Add.

From-SVN: r81534
gcc/ChangeLog
gcc/config/darwin-c.c
gcc/cppfiles.c
gcc/cpplib.h