diff options
author | Jason Merrill <jason@redhat.com> | 2024-07-25 17:36:09 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-07-25 19:55:20 -0400 |
commit | e397f8524a7982004eb616217477434ce350e80f (patch) | |
tree | 0784da0a1bc8d198b13f1af594cbca05931da46b /include/gdb/gdb-index.h | |
parent | 523836716137d0f7f4088c85752a980f5f971b36 (diff) | |
download | gcc-e397f8524a7982004eb616217477434ce350e80f.zip gcc-e397f8524a7982004eb616217477434ce350e80f.tar.gz gcc-e397f8524a7982004eb616217477434ce350e80f.tar.bz2 |
c++: #pragma target and deferred instantiation [PR115403]
My patch for 109753 applies the current #pragma target/optimize to a
function when we compile it, which was a problem for a template
instantiation deferred until EOF, where different #pragmas are active. So
let's only do this for artificial functions.
PR c++/115403
PR c++/109753
gcc/cp/ChangeLog:
* decl.cc (start_preparsed_function): Only call decl_attributes for
artificial functions.
gcc/testsuite/ChangeLog:
* g++.dg/ext/pragma-target1.C: New test.
Diffstat (limited to 'include/gdb/gdb-index.h')
0 files changed, 0 insertions, 0 deletions