This is the mail archive of the gcc-patches@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]

Re: gfortran using libcpp/internal.h (was Re: [C++ Patch] PR 50956)


On Thu, Nov 3, 2011 at 3:46 PM, Jason Merrill <jason@redhat.com> wrote:
> On 11/03/2011 09:51 AM, Tom Tromey wrote:
>>>>>>>
>>>>>>> "Paolo" == Paolo Carlini<paolo.carlini@oracle.com> ?writes:
>>
>> Paolo> ?By the way, I have no idea why I didn't see it, only Fortran
>> includes
>> Paolo> ?[internal.h] in the *libcpp* directory? Anyway, I'm proceeding to
>> Paolo> ?bootstrap the attached.
>>
>> It really isn't ok to do this. ?That header is supposedly private to
>> libcpp.
>
> That include seems to have been there since cpp.c was first checked in by
> Daniel Franke.

Most of the errors go away with replacing it with #include "cpplib.h",
remaining:

,,,
k/gcc/fortran/cpp.c -o fortran/cpp.o
/space/rguenther/src/svn/trunk/gcc/fortran/cpp.c: In function
‘scan_translation_unit_trad’:
/space/rguenther/src/svn/trunk/gcc/fortran/cpp.c:769: warning:
implicit declaration of function ‘_cpp_read_logical_line_trad’

but then we dereference struct cpp_reader:

/space/rguenther/src/svn/trunk/gcc/fortran/cpp.c:771: error:
dereferencing pointer to incomplete type
/space/rguenther/src/svn/trunk/gcc/fortran/cpp.c:771: error:
dereferencing pointer to incomplete type
/space/rguenther/src/svn/trunk/gcc/fortran/cpp.c:772: error:
dereferencing pointer to incomplete type
...

Richard.

> Jason
>
>


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