aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2002-07-30 02:19:43 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2002-07-30 02:19:43 +0000
commite62f4abc90905f2db2f64f54a18e7c0de08db7df (patch)
treef741ebc6e7bcb37a9e94fb86f83fbeaad1c8bc67 /gcc/builtins.c
parent0cd2fb440df3fe8c3a4197dd5fdaa1d144bf9fc9 (diff)
downloadgcc-e62f4abc90905f2db2f64f54a18e7c0de08db7df.zip
gcc-e62f4abc90905f2db2f64f54a18e7c0de08db7df.tar.gz
gcc-e62f4abc90905f2db2f64f54a18e7c0de08db7df.tar.bz2
builtins.c (expand_builtin): Change the default behavior to only issue an error if...
* builtins.c (expand_builtin): Change the default behavior to only issue an error if the builtin function doesn't have a fallback library call. Remove several cases handled by the new default. From-SVN: r55860
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 1c8e8a8..9c52cce 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -3776,9 +3776,6 @@ expand_builtin (exp, target, subtarget, mode, ignore)
return target;
break;
- case BUILT_IN_FMOD:
- break;
-
case BUILT_IN_APPLY_ARGS:
return expand_builtin_apply_args ();
@@ -3999,15 +3996,6 @@ expand_builtin (exp, target, subtarget, mode, ignore)
expand_builtin_trap ();
return const0_rtx;
- case BUILT_IN_PUTCHAR:
- case BUILT_IN_PUTS:
- case BUILT_IN_FPUTC:
- case BUILT_IN_FWRITE:
- case BUILT_IN_PUTCHAR_UNLOCKED:
- case BUILT_IN_PUTS_UNLOCKED:
- case BUILT_IN_FPUTC_UNLOCKED:
- case BUILT_IN_FWRITE_UNLOCKED:
- break;
case BUILT_IN_FPUTS:
target = expand_builtin_fputs (arglist, ignore,/*unlocked=*/ 0);
if (target)
@@ -4058,9 +4046,10 @@ expand_builtin (exp, target, subtarget, mode, ignore)
return const0_rtx;
- default: /* just do library call, if unknown builtin */
- error ("built-in function `%s' not currently supported",
- IDENTIFIER_POINTER (DECL_NAME (fndecl)));
+ default: /* just do library call, if unknown builtin */
+ if (!DECL_ASSEMBLER_NAME_SET_P (fndecl))
+ error ("built-in function `%s' not currently supported",
+ IDENTIFIER_POINTER (DECL_NAME (fndecl)));
}
/* The switch statement above can drop through to cause the function