GCC Bugzilla – Attachment 9035 Details for
Bug 20297
#pragma GCC visibility isn't properly handled for builtin functions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
New patch
pr20297.diff (text/plain), 1.42 KB, created by
Michael Matz
on 2005-06-06 07:48:38 UTC
(
hide
)
Description:
New patch
Filename:
MIME Type:
Creator:
Michael Matz
Created:
2005-06-06 07:48:38 UTC
Size:
1.42 KB
patch
obsolete
>--- gcc/builtins.c >+++ gcc/builtins.c >@@ -5129,9 +5129,9 @@ > SUBTARGET may be used as the target for computing one of EXP's operands. > IGNORE is nonzero if the value is to be ignored. */ > >-rtx >-expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode, >- int ignore) >+static rtx >+expand_builtin_1 (tree exp, rtx target, rtx subtarget, >+ enum machine_mode mode, int ignore) > { > tree fndecl = get_callee_fndecl (exp); > tree arglist = TREE_OPERAND (exp, 1); >@@ -5793,6 +5793,28 @@ > return expand_call (exp, target, ignore); > } > >+rtx >+expand_builtin (tree exp, rtx target, rtx subtarget, >+ enum machine_mode mode, int ignore) >+{ >+ enum symbol_visibility saved_visibility = default_visibility; >+ unsigned int saved_inpragma = visibility_options.inpragma; >+ tree fndecl = get_callee_fndecl (exp); >+ rtx expanded; >+ >+ /* We should use the original visibility of the builtin function >+ declaration. */ >+ default_visibility = DECL_VISIBILITY (fndecl); >+ visibility_options.inpragma = DECL_VISIBILITY_SPECIFIED (fndecl); >+ >+ expanded = expand_builtin_1 (exp, target, subtarget, mode, ignore); >+ >+ default_visibility = saved_visibility; >+ visibility_options.inpragma = saved_inpragma; >+ >+ return expanded; >+} >+ > /* Determine whether a tree node represents a call to a built-in > function. If the tree T is a call to a built-in function with > the right number of arguments of the appropriate types, return
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20297
:
8315
| 9035 |
9720