* Re: -frepo option
@ 2000-12-09 17:37 andy
0 siblings, 0 replies; 4+ messages in thread
From: andy @ 2000-12-09 17:37 UTC (permalink / raw)
To: crossgcc
Aargh! Compiler bug.
I applied the following fix
http://gcc.gnu.org/ml/gcc-patches/1999-10n/msg00840.html
- it works!
Andy
>I just rebuilt and installed gcc 2.95.2 and it still does not work!
>I'm on arm-linux (armv4l unknown).
>However I tried it under OpenBSD 2.7 gcc 2.95.2 and it does work
>So, what do I need to do to make it work on the arm linux ?
>
>TIA Andy
>
>
>>On Dec 6, 2000, andy@softbookpress.com wrote:
>>
>>> I'm compiling it with the -frepo option ( 2.95.1)
>>> test.o(.text+0x620): undefined reference to
>>>
>>>`__uninitialized_copy_aux__H2ZP9my_structZP9my_struct_X01X01X11G12__false_typ
>>>e_X
>>>11'
>>
>>Try GCC 2.95.2. I seem to recall some bugs in the implementation of
>>-frepo that may have been fixed in the latest release.
>>
>>--
>>Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
>>Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
>>CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
>>Free Software Evangelist *Please* write to mailing lists, not to me
>
>
>
>
>------
>Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
>Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* -frepo option
@ 2000-12-06 18:11 andy
2000-12-08 14:19 ` Alexandre Oliva
0 siblings, 1 reply; 4+ messages in thread
From: andy @ 2000-12-06 18:11 UTC (permalink / raw)
To: crossgcc
Sorry if it's not exactly a cross-compile issue
Here's a simplle program:
#include <string>
#include <stdio.h>
#include <vector>
typedef struct my_struct
{
int a;
short b;
}MyStruct;
vector<MyStruct> myVec;
void test();
int main ()
{
test();
return 0;
}
void test()
{
MyStruct blah;
try{
myVec.push_back(blah);
throw(1);
}
catch(...){
}
}
I'm compiling it with the -frepo option ( 2.95.1)
#g++ -frepo -o test.o -c test.cpp
#g++ -O2 -o testapp test.o
collect: recompiling test.cpp
collect: relinking
test.o: In function `vector<my_struct, allocator<my_struct>
>::_M_insert_aux(my_struct *, my_struct const &)':
test.o(.text+0x620): undefined reference to
`__uninitialized_copy_aux__H2ZP9my_structZP9my_struct_X01X01X11G12__false_type_X
11'
test.o(.text+0x69c): undefined reference to
`__uninitialized_copy_aux__H2ZP9my_structZP9my_struct_X01X01X11G12__false_type_X
11'
collect2: ld returned 1 exit status
What's the right way to use this option ?
Is there any advantage of using it ( in terms of the code size)
TIA
Andy
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -frepo option
2000-12-06 18:11 andy
@ 2000-12-08 14:19 ` Alexandre Oliva
2000-12-08 15:46 ` andy
0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Oliva @ 2000-12-08 14:19 UTC (permalink / raw)
To: andy; +Cc: crossgcc
On Dec 6, 2000, andy@softbookpress.com wrote:
> I'm compiling it with the -frepo option ( 2.95.1)
> test.o(.text+0x620): undefined reference to
> `__uninitialized_copy_aux__H2ZP9my_structZP9my_struct_X01X01X11G12__false_type_X11'
Try GCC 2.95.2. I seem to recall some bugs in the implementation of
-frepo that may have been fixed in the latest release.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -frepo option
2000-12-08 14:19 ` Alexandre Oliva
@ 2000-12-08 15:46 ` andy
0 siblings, 0 replies; 4+ messages in thread
From: andy @ 2000-12-08 15:46 UTC (permalink / raw)
To: crossgcc
I just rebuilt and installed gcc 2.95.2 and it still does not work!
I'm on arm-linux (armv4l unknown).
However I tried it under OpenBSD 2.7 gcc 2.95.2 and it does work
So, what do I need to do to make it work on the arm linux ?
TIA Andy
>On Dec 6, 2000, andy@softbookpress.com wrote:
>
>> I'm compiling it with the -frepo option ( 2.95.1)
>> test.o(.text+0x620): undefined reference to
>>
>>`__uninitialized_copy_aux__H2ZP9my_structZP9my_struct_X01X01X11G12__false_type_X
>>11'
>
>Try GCC 2.95.2. I seem to recall some bugs in the implementation of
>-frepo that may have been fixed in the latest release.
>
>--
>Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
>Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
>CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
>Free Software Evangelist *Please* write to mailing lists, not to me
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-12-09 17:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-09 17:37 -frepo option andy
-- strict thread matches above, loose matches on Subject: below --
2000-12-06 18:11 andy
2000-12-08 14:19 ` Alexandre Oliva
2000-12-08 15:46 ` andy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).