This is the mail archive of the gcc@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: Configuration issues on Itanium VMS


"Joseph S. Myers" <joseph@codesourcery.com> writes:

> On Mon, 8 Nov 2004, Douglas B Rupp wrote:
>
>> Configure, e.g. libiberty/configure,  generates conftest programs to decide if
>> particular CRTL functions exist in the host. If the compile or link is
>> unsucessful, e.g. undefined symbols in the link, then the function is
>> assumed not to exist.  *Configure doesn't bother to include the necessary
>> header files in the programs it generates, so all CRTL functions show up as
>> undefined with Gcc*.
>
> Standard C and POSIX say that you don't need to include the headers to use 
> standard functions which can be used without using any type defined in a 
> header, so requiring headers to be included is a bug in the GCC 
> configuration.  That doesn't mean it's easy to fix in GCC.

The TARGET_INIT_BUILTINS hook could, perhaps, be used to construct
invisible declarations for every function that requires a prefix (or
augment the invisible declarations for the functions that already have
them), setting DECL_ASSEMBLER_NAME appropriately.

zw


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