Commit 24b830b6 by Thomas Schwinge Committed by Martin Liska

Fix ifunc detection in target-supports.exp file.

2018-03-08  Thomas Schwinge  <thomas@codesourcery.com>

	* lib/target-supports.exp: Do not return zero from a ifunc
	function.

From-SVN: r258362
parent de341bf0
2018-03-08 Thomas Schwinge <thomas@codesourcery.com>
* lib/target-supports.exp: Do not return zero from a ifunc
function.
2018-03-08 Richard Biener <rguenther@suse.de> 2018-03-08 Richard Biener <rguenther@suse.de>
PR tree-optimization/84746 PR tree-optimization/84746
......
...@@ -448,8 +448,9 @@ proc check_ifunc_available { } { ...@@ -448,8 +448,9 @@ proc check_ifunc_available { } {
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
typedef void F (void); extern void f_ ();
F* g (void) { return 0; } typedef void F (void);
F* g (void) { return &f_; }
void f () __attribute__ ((ifunc ("g"))); void f () __attribute__ ((ifunc ("g")));
#ifdef __cplusplus #ifdef __cplusplus
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment