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

Re: invalid assembly language generated on Solaris


On Wed, 24 Jun 1998, Dimitri PAPADOPOULOS-ORFANOS wrote:
>> I have tried this on sparc-sun-solaris2.5.1 with Sun as: SC4.2 dev 30 Nov 1995
>> and while I could reproduce your problem with egcs-1.0.3a, a more current
>> snapshot egcs-2.91.40 19980613 compiles your example without a hitch.
> I tried once again with egcs-2.91.42 19980621 on sparc-sun-solaris2.5.1
> with Sun as: WorkShop Compilers 4.X dev 18 Sep 1996.

_Unfortunately_, with egcs-2.91.42 19980625 I'm now able to reproduce your
problem again.

_Fortunately_, I can provide not one, but even two fixes:


1) Use the -fsquangle option

   markab[232]:~% egcs -c x.cc
   /usr/ccs/bin/as: "/var/tmp/cca000x4.s", line 251: error: can't compute
   value of an expression involving an external symbol
   markab[233]:~% egcs -c -fsquangle x.cc
   markab[234]:~% 

2) Install gas, the GNU assembler from binutils as (no pun intended):
   
   egcs_resides_here/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.42/as


I'm afraid that your (resp. our local code) has triggered some limitation
of the Sun tools, i.e., it's probably more a Sun bug than it is an egcs
bug... :-}

Hope this helps,
Gerald 
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/



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