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]

__builtin_apply/sparc.md problem on SPARC-Solaris ?


Hi,

I had problems using the objc_msg_sendv() function from the Objective-C
runtime. Since the function relies on __builtin_apply() I wonder whether
something is wrong with this in egcs-SPARC and whether such a problem is
known.

I found a patch for gcc 2.8.0 (works on egcs-1.0.3 as well) on

  ftp://alpha.gnu.org/gnu/gnustep/contrib/gcc-2.8.0-sparc.diff

which solved the problem for me (actually I applied the patch by hand,
since the CVS egcs sparc.md file is much different from the egcs-1.0.3
one).
If it matters, I'm using an UltraSPARC machine with Solaris 2.6.

------diff of what I changed in gcc/config/sparc/sparc.md------
7305c7305,7307
<                              GEN_INT (INTVAL (operands[3]) & 0xfff),
---
> /*HH patch inspired by ftp://alpha.gnu.org/gnu/gnustep/contrib/gcc-2.8.0-sparc.diff
>                              GEN_INT (INTVAL (operands[3]) & 0xfff),*/
>                                operands[3],
7337c7339,7341
<                          GEN_INT (INTVAL (operands[3]) & 0xfff),
---
> /*HH patch inspired by ftp://alpha.gnu.org/gnu/gnustep/contrib/gcc-2.8.0-sparc.diff
>                          GEN_INT (INTVAL (operands[3]) & 0xfff),*/
>                            operands[3],
------snap------

There is some operation applied on the 'operands[3]' which is removed by
the patch.

Since I do not understand the modification at all, I wonder whether this
patch is a hack or whether it's a correct fix, in which case I wonder
why it isn't in the egcs repository.

BTW: Where are these .md files used ? They look like a lisp-C mixture ?!

It would be kind if anyone with knowledge about egcs-SPARC could say
something to this issue
  Helge
-- 
MDlink online service center
http://www.mdlink.de/


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