public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe
@ 2020-03-09 18:57 msebor at gcc dot gnu.org
2020-03-09 19:01 ` [Bug c/94106] [8/9/10 Regression] " msebor at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-03-09 18:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Bug ID: 94106
Summary: error on a function redeclaration with attribute
transaction_safe
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: msebor at gcc dot gnu.org
Target Milestone: ---
Of the six declarations below each is accepted on its own. The latter two
redeclarations are accepted as well, but the first redeclaration is rejected
with an error. I can't find documentation of the attributes in the manual so
it's not entirely clear to me whether the error is a bug or whether its absence
on the other two redeclarations is a bug, or whether this works as intended,
but intuitively I would expect all three to accepted as happens with other
attributes.
$ cat z.c && gcc -Wall -Wextra -S -Wall z.c
void f0 (void);
__attribute__ ((transaction_safe)) void f0 (void); // (bogus?) error
void f1 (void);
__attribute__ ((transaction_unsafe)) void f1 (void); // accepted
void f2 (void);
__attribute__ ((transaction_callable)) void f2 (void); // accepted
z.c:2:41: error: conflicting types for ‘f0’
2 | __attribute__ ((transaction_safe)) void f0 (void); // (bogus?)
error
| ^~
z.c:1:41: note: previous declaration of ‘f0’ was here
1 | void f0 (void);
| ^~
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [8/9/10 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
@ 2020-03-09 19:01 ` msebor at gcc dot gnu.org
2020-03-10 9:41 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-03-09 19:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|error on a function |[8/9/10 Regression] error
|redeclaration with |on a function redeclaration
|attribute transaction_safe |with attribute
| |transaction_safe
Keywords| |rejects-valid
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Bisection points to r228462 as the first revision to reject the code:
commit b8fd7909c04a29e82fb3ebace161801f949ad4f5
Author: Jason Merrill <jason@redhat.com>
Date: Sun Oct 4 15:17:19 2015 -0400
Implement N4514, C++ Extensions for Transactional Memory.
gcc/
* builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
gcc/c-family/
* c-common.c (c_common_reswords): Add C++ TM TS keywords.
(c_common_attribute_table): Add transaction_safe_dynamic.
transaction_safe now affects type identity.
(handle_tm_attribute): Handle transaction_safe_dynamic.
* c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
(OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
(D_TRANSMEM): New.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [8/9/10 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
2020-03-09 19:01 ` [Bug c/94106] [8/9/10 Regression] " msebor at gcc dot gnu.org
@ 2020-03-10 9:41 ` rguenth at gcc dot gnu.org
2020-03-10 12:00 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-03-10 9:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.5
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [8/9/10 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
2020-03-09 19:01 ` [Bug c/94106] [8/9/10 Regression] " msebor at gcc dot gnu.org
2020-03-10 9:41 ` rguenth at gcc dot gnu.org
@ 2020-03-10 12:00 ` jakub at gcc dot gnu.org
2020-04-17 17:49 ` law at redhat dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-03-10 12:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'm afraid nobody really maintains the -fgnu-tm stuff anymore.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [8/9/10 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
` (2 preceding siblings ...)
2020-03-10 12:00 ` jakub at gcc dot gnu.org
@ 2020-04-17 17:49 ` law at redhat dot com
2021-05-14 9:53 ` [Bug c/94106] [9/10/11/12 " jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: law at redhat dot com @ 2020-04-17 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at redhat dot com
Priority|P3 |P4
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [9/10/11/12 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
` (3 preceding siblings ...)
2020-04-17 17:49 ` law at redhat dot com
@ 2021-05-14 9:53 ` jakub at gcc dot gnu.org
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [9/10/11/12 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
` (4 preceding siblings ...)
2021-05-14 9:53 ` [Bug c/94106] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01 8:16 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug c/94106] [10/11/12/13 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [10/11/12/13 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
` (5 preceding siblings ...)
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:42 ` rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [10/11/12/13 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
` (6 preceding siblings ...)
2022-05-27 9:42 ` [Bug c/94106] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug c/94106] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-07-19 13:07 ` [Bug c/94106] [12/13/14/15 " rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [11/12/13/14 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
` (7 preceding siblings ...)
2022-06-28 10:39 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:37 ` rguenth at gcc dot gnu.org
2024-07-19 13:07 ` [Bug c/94106] [12/13/14/15 " rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/94106] [12/13/14/15 Regression] error on a function redeclaration with attribute transaction_safe
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
` (8 preceding siblings ...)
2023-07-07 10:37 ` [Bug c/94106] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2024-07-19 13:07 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-07-19 13:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94106
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.5 |12.5
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11 branch is being closed.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-07-19 13:07 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 18:57 [Bug c/94106] New: error on a function redeclaration with attribute transaction_safe msebor at gcc dot gnu.org
2020-03-09 19:01 ` [Bug c/94106] [8/9/10 Regression] " msebor at gcc dot gnu.org
2020-03-10 9:41 ` rguenth at gcc dot gnu.org
2020-03-10 12:00 ` jakub at gcc dot gnu.org
2020-04-17 17:49 ` law at redhat dot com
2021-05-14 9:53 ` [Bug c/94106] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug c/94106] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug c/94106] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-07-19 13:07 ` [Bug c/94106] [12/13/14/15 " rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).