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: RFA: Solaris 10 fixincludes tweak


On 8/27/07, Mark Mitchell <mark@codesourcery.com> wrote:
> Bruce Korb wrote:
>
> > Maybe the real best fix is to send a patch to *Sun* suggesting that
[...]
> Even if they do, we still have to live with Solaris 10 and older for
> years to come...

If they do, then a robust fix would be unwarranted.
If they dont, given the years of struggling with this thing,
I'm thinking a "once and for all" fix might well be worth it.

> >> Is this patch OK?  Any better ideas?
> >
> > The perfect solution would be to write a C-code fix that parsed the sys/types.h
[....]
> Yes, that would probably be somewhat better.  Is it worth it, though?

That is, indeed, the question.

> Seriously, I'm not aware of a situation in which my changes can do the
> wrong thing.  (On Solaris 10, the condition in sys/types.h will never be
> true for GCC, no matter what command-line options you pass, so upad64t
> will always be an int.)

Then perhaps that is the easiest thing:   make sure the upad64_t parts of
the initializer are always just plain "0".  This is what I thought they were,
actually, so it is again unclear to me why the initializer needs fixing at all.

> If you're not sanguine about my patch, though, and you're willing to do
> the infrastructure work, I'll try to fill it in as you suggest.

I'm confident enough that this will fix it for now.  The issue is, "Will it need
fixing again?"  History says, "Yes."  I'm thinking maybe it has been fixed
enough times already.  :)

Cheers - Bruce


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