Commit cc3dac97 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/88636 (ICE: Segmentation fault (in c_tree_chain_next))

	PR c++/88636
	* decl.c (builtin_function_1): Return result of pushdecl_top_level
	or pushdecl rather than decl.

	* g++.target/i386/pr88636.C: New test.

From-SVN: r267548
parent 7dae2950
2019-01-03 Jakub Jelinek <jakub@redhat.com>
PR c++/88636
* decl.c (builtin_function_1): Return result of pushdecl_top_level
or pushdecl rather than decl.
2019-01-03 Paolo Carlini <paolo.carlini@oracle.com> 2019-01-03 Paolo Carlini <paolo.carlini@oracle.com>
* tree.c (handle_nodiscard_attribute): Improve warning location. * tree.c (handle_nodiscard_attribute): Improve warning location.
......
...@@ -4536,11 +4536,9 @@ builtin_function_1 (tree decl, tree context, bool is_global) ...@@ -4536,11 +4536,9 @@ builtin_function_1 (tree decl, tree context, bool is_global)
} }
if (is_global) if (is_global)
pushdecl_top_level (decl); return pushdecl_top_level (decl);
else else
pushdecl (decl); return pushdecl (decl);
return decl;
} }
tree tree
......
2019-01-03 Jakub Jelinek <jakub@redhat.com>
PR c++/88636
* g++.target/i386/pr88636.C: New test.
2019-01-03 Paolo Carlini <paolo.carlini@oracle.com> 2019-01-03 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/cpp1z/nodiscard3.C: Test locations too. * g++.dg/cpp1z/nodiscard3.C: Test locations too.
......
// PR c++/88636
// { dg-do compile }
// { dg-options "-msse2 -mno-sse3 -fno-exceptions --param ggc-min-heapsize=0" }
extern unsigned int __builtin_ia32_crc32si (unsigned int, unsigned int);
#pragma GCC target("sse4.2")
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