diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-22 22:33:48 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-22 22:33:48 +0000 |
commit | 084919122e437b5e71c13a83addf16075755ec06 (patch) | |
tree | 6c47921f4947f086070ce6f76eeb80c06959ae83 /gcc/builtins.c | |
parent | 96f59d23f87afc69648447365486904c69454e03 (diff) | |
download | gcc-084919122e437b5e71c13a83addf16075755ec06.tar.gz |
PR rtl-optimization/36017
* builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
expanding the library call.
* gcc.dg/pr36017.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134569 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index d5c4f9222c9..761a658bc71 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -1804,6 +1804,9 @@ expand_errno_check (tree exp, rtx target) } #endif + /* Make sure the library call isn't expanded as a tail call. */ + CALL_EXPR_TAILCALL (exp) = 0; + /* We can't set errno=EDOM directly; let the library call do it. Pop the arguments right away in case the call gets deleted. */ NO_DEFER_POP; |