diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-17 12:55:18 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-03-17 12:55:18 +0000 |
commit | 462bc935ee37c6a8d9fac8eae63ef2f16811f678 (patch) | |
tree | b57c114ce9ad346f061859b94e327d1396b2f7d3 /gcc/config/i386 | |
parent | 4543b422ecb03616d2560b06657372da7031601b (diff) | |
download | gcc-462bc935ee37c6a8d9fac8eae63ef2f16811f678.tar.gz |
2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
PR target/39476
* config/i386/i386.c (ix86_function_regparm): Rewrite for
64bit.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144902 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r-- | gcc/config/i386/i386.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index bc912b60b5a..bde1604c08c 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4273,17 +4273,15 @@ static int ix86_function_regparm (const_tree type, const_tree decl) { tree attr; - int regparm = ix86_regparm; + int regparm; static bool error_issued; if (TARGET_64BIT) - { - if (ix86_function_type_abi (type) == DEFAULT_ABI) - return regparm; - return DEFAULT_ABI != SYSV_ABI ? X86_64_REGPARM_MAX : X64_REGPARM_MAX; - } + return (ix86_function_type_abi (type) == SYSV_ABI + ? X86_64_REGPARM_MAX : X64_REGPARM_MAX); + regparm = ix86_regparm; attr = lookup_attribute ("regparm", TYPE_ATTRIBUTES (type)); if (attr) { |