This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16324] New: static functions should use 'regparm' to pass arguments by default
- From: "bryner at brianryner dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2004 23:55:46 -0000
- Subject: [Bug target/16324] New: static functions should use 'regparm' to pass arguments by default
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Since with a static function there's no chance of the function being called from
outside the translation unit where the calling convention isn't known, it would
make sense to always use up to 3 registers to pass parameters to static
functions on x86. This seems to nearly always generate better code at the call
site.
--
Summary: static functions should use 'regparm' to pass arguments
by default
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bryner at brianryner dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16324