This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21518] [4.0/4.1 Regression] unable to find a register with -fPIC and -O2 and non inlining static function
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2005 03:35:28 -0000
- Subject: [Bug target/21518] [4.0/4.1 Regression] unable to find a register with -fPIC and -O2 and non inlining static function
- References: <bug-21518-10616@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from mmitchel at gcc dot gnu dot org 2005-10-31 03:35 -------
It sounds like we should (a) forbid __attribute__((regparm(3)) with -fPIC, and
(b) not automatically generate that value, as per the patch in Comment #9. It
doesn't seem useful to have an option that we think is too dangerous to use.
I'm going to leave this as P2, because, if that's correct, this seems
relatively easy to fix, and it would avoid one class of user confusion.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21518