[Bug target/16324] New: static functions should use 'regparm' to pass arguments by default
bryner at brianryner dot com
gcc-bugzilla@gcc.gnu.org
Thu Jul 1 23:55:00 GMT 2004
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
More information about the Gcc-bugs
mailing list