mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 21:01:29 +08:00
ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node and target_option_default_node to get...
* ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node and target_option_default_node to get -fprofile-generate ctors working right with LTO. From-SVN: r278123
This commit is contained in:
parent
e4020b28d0
commit
d4b44b834e
@ -1,3 +1,9 @@
|
||||
2019-11-13 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
|
||||
and target_option_default_node to get -fprofile-generate ctors working
|
||||
right with LTO.
|
||||
|
||||
2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
|
||||
|
||||
* tree-vectorizer.h (vect_nop_conversion_p): Declare.
|
||||
|
@ -914,7 +914,14 @@ cgraph_build_static_cdtor_1 (char which, tree body, int priority, bool final,
|
||||
void
|
||||
cgraph_build_static_cdtor (char which, tree body, int priority)
|
||||
{
|
||||
cgraph_build_static_cdtor_1 (which, body, priority, false, NULL, NULL);
|
||||
/* FIXME: We should be able to
|
||||
gcc_assert (!in_lto_p);
|
||||
because at LTO time the global options are not safe to use.
|
||||
Unfortunately ASAN finish_file will produce constructors late and they
|
||||
may lead to surprises. */
|
||||
cgraph_build_static_cdtor_1 (which, body, priority, false,
|
||||
optimization_default_node,
|
||||
target_option_default_node);
|
||||
}
|
||||
|
||||
/* When target does not have ctors and dtors, we call all constructor
|
||||
|
Loading…
x
Reference in New Issue
Block a user