This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problem compiling with STL templates and IRIX assembler
- To: egcs at cygnus dot com
- Subject: problem compiling with STL templates and IRIX assembler
- From: Scott Presnell <srp at zgi dot com>
- Date: Tue, 1 Dec 1998 11:30:20 -0800 (PST)
- Cc: henne at zgi dot com
Hi egcs folks,
I'm working on trying to compile mico-2.2.1 (for eventual use with
kde/koffice) with egcs-1.1.1-prerelease under an mips-sgi-irix6.2
environment and I'm running into some assembler releated problems. Here is
a simple test case, similar to the offending code in mico:
===
#include <string>
#include <map>
main()
{
map < string, string, less<string> >
myMap;
myMap[ "abc" ] = "cde";
}
===
This code, when compiled, causes very long tokens to be generated, and the
irix assembler chokes:
as: Error: /var/tmp/ccVIDNad.s, line 2827: Truncating token: __t4pair2Zt18__rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZRt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZbRCt18__rb_tree_iterator3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZRt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0ZPt4pair2ZCt12basic_string3ZcZt18string_char_traits1Zc!
!
Zt24__default_alloc_template2b0i0Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_al
I have also run into this kind of problem with several chunks of KDE code.
(I remind the gentle reader that GAS does not yet exist for irix6, and so I
am stuck with the SGI assembler).
Are there any other irix6 users out there who have bumped into this?
Are there any known patches, or workarounds for these problems?
Please respond using reply-all, or cc: me directly. I don't normally read
this mailing list.
Thanks for any help, pointers, or condolences :-/.
- Scott Presnell (srp@zgi.com)