[Bug rtl-optimization/39081] missed optimization: un-needed copy of structure.

2009-02-07 Thread linasvepstas at gmail dot com
--- Comment #3 from linasvepstas at gmail dot com 2009-02-08 04:57 --- Thanks, You are quite right, I offer my apologies for wasting your time. I meant to have the signature of other() be other(TV&) not other(TV*) -- but -- I was hurriedly explaining this to someone else, and said "oh i

[Bug rtl-optimization/39081] missed optimization: un-needed copy of structure.

2009-02-05 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-02-06 01:35 --- > tv = my_tv_maker(434.23); // over-write previous tv. This needs to have a space for the return value as tv can be accessed via my_tv_maker as the address of it was passed to an extern function. Think of: exte

[Bug rtl-optimization/39081] missed optimization: un-needed copy of structure.

2009-02-02 Thread linasvepstas at gmail dot com
--- Comment #1 from linasvepstas at gmail dot com 2009-02-02 17:57 --- Happens both for 4.1.2 on powerpc, and 4.2.4 on Intel: gcc -v Using built-in specs. Target: powerpc64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --