Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257054 - sys-devel/gcc-4.3 - patch to fix code generation for constant address accesses
Summary: sys-devel/gcc-4.3 - patch to fix code generation for constant address accesses
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: MIPS Linux
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-31 08:52 UTC by Manuel Lauss
Modified: 2013-12-25 11:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch #1 (gcc-mips-constant-address-opt.patch,2.61 KB, patch)
2009-01-31 08:53 UTC, Manuel Lauss
Details | Diff
Patch for gcc-4.4 (all_gcc44_mips-constant-addr.patch,1.78 KB, patch)
2009-08-16 11:28 UTC, Manuel Lauss
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Lauss 2009-01-31 08:52:19 UTC
GCC up to and including 4.3.3 isn't very smart wrt. code generation for
accesses to constant addresses within a certain range.

See http://gcc.gnu.org/ml/gcc/2008-11/msg00231.html  for more information.

Richard Sandiford provided a patch against gcc-svn which I ported to 4.3.2.  Built KDE-3.5.10 and linux kernels with a patched compiler; I see no obvious malfunctions with either.

Please consider for inclusion into the gcc patch series.


Reproducible: Always
Comment 1 Manuel Lauss 2009-01-31 08:53:29 UTC
Created attachment 180385 [details, diff]
patch #1

The patch in question.  Applies cleanly to 4.3.2 and 4.3.3
Comment 2 SpanKY gentoo-dev 2009-02-22 01:26:38 UTC
guessing the mips guys are ok with this, so queued in the 4.3.3 patchset

http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.3.3/gentoo/78_all_mips-constant-addr.patch?rev=1.1
Comment 3 Joshua Kinard gentoo-dev 2009-02-22 01:33:58 UTC
Yeah, looks good to me.  More optimization is better for us all!
Comment 4 Manuel Lauss 2009-08-16 11:28:40 UTC
Created attachment 201402 [details, diff]
Patch for gcc-4.4

I've uploaded a new tested patch for gcc-4.4[.1]
Comment 5 SpanKY gentoo-dev 2013-12-25 08:36:41 UTC
(In reply to Manuel Lauss from comment #4)

if you have newer patches for newer versions of gcc, please file new bugs
Comment 6 Manuel Lauss 2013-12-25 11:38:39 UTC
Please close this bug, I'm using 4.8-branch now.
Thanks