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: Update config.gcc for sparc-elf target use of sol2 headers/files


Hi Nick,

>   A toolchain configured as "--target=sparc-elf" will not build in the
>   current mainline sources because of the lack of the function
>   solaris_insert_attributes().

PR bootstrap/19364.  Please mention this reference in any checkins.

>   It seems to me that there are two ways to solve this problem -
>   remove the inclusion of sparc/sol2.h for the sparc-elf target or
>   else add the inclusion of the config/sol2.c file.  I am proposing
>   the latter and I would like to ask for permission to apply this
>   patch ?

That's clearly *not* the way to go: the dependencies on sol2.* files for 
non-Solaris targets are just plain wrong.  They will have to be disentangled 
at some point.

I'm not really sure what to do for 4.0.x: maybe duplicate sparc/sol2.h 
entirely for the embedded targets and remove the offending bits there.

-- 
Eric Botcazou


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