public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96981] New: Assembler messages: Error: missing name
@ 2020-09-08 13:05 tangyixuan at mail dot dlut.edu.cn
2020-09-08 13:08 ` [Bug c++/96981] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: tangyixuan at mail dot dlut.edu.cn @ 2020-09-08 13:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96981
Bug ID: 96981
Summary: Assembler messages: Error: missing name
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tangyixuan at mail dot dlut.edu.cn
Target Milestone: ---
Hi, g++ cannot compile the following code while clang success.
$ cat s.cpp
extern char a;
char a __attribute__ (( __section__ ("")));
$ clang++ -c s.cpp
success.
$ g++ -c s.cpp
/tmp/cctRcNlE.s: Assembler messages:
/tmp/cctRcNlE.s:4: Error: missing name
$ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc-20200823/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/gcc-20200823/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-11-20200823/configure --prefix=/usr/local/gcc-20200823
--enable-checking=release --enable-languages=c,c++ --disable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200823 (experimental) (GCC)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/96981] Assembler messages: Error: missing name
2020-09-08 13:05 [Bug c++/96981] New: Assembler messages: Error: missing name tangyixuan at mail dot dlut.edu.cn
@ 2020-09-08 13:08 ` rguenth at gcc dot gnu.org
2020-09-08 13:38 ` [Bug c++/96981] Assembler messages: Error: missing name for O0-O3 jakub at gcc dot gnu.org
2020-09-08 14:22 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-08 13:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96981
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
on the border of being invalid I guess
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/96981] Assembler messages: Error: missing name for O0-O3
2020-09-08 13:05 [Bug c++/96981] New: Assembler messages: Error: missing name tangyixuan at mail dot dlut.edu.cn
2020-09-08 13:08 ` [Bug c++/96981] " rguenth at gcc dot gnu.org
@ 2020-09-08 13:38 ` jakub at gcc dot gnu.org
2020-09-08 14:22 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-09-08 13:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96981
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
IMHO a clang bug, where it silently ignores the bogus section attribute.
section attribute requires a name of the section, an empty string is not a
valid section name.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/96981] Assembler messages: Error: missing name for O0-O3
2020-09-08 13:05 [Bug c++/96981] New: Assembler messages: Error: missing name tangyixuan at mail dot dlut.edu.cn
2020-09-08 13:08 ` [Bug c++/96981] " rguenth at gcc dot gnu.org
2020-09-08 13:38 ` [Bug c++/96981] Assembler messages: Error: missing name for O0-O3 jakub at gcc dot gnu.org
@ 2020-09-08 14:22 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-08 14:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96981
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 96982 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-08 14:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-08 13:05 [Bug c++/96981] New: Assembler messages: Error: missing name tangyixuan at mail dot dlut.edu.cn
2020-09-08 13:08 ` [Bug c++/96981] " rguenth at gcc dot gnu.org
2020-09-08 13:38 ` [Bug c++/96981] Assembler messages: Error: missing name for O0-O3 jakub at gcc dot gnu.org
2020-09-08 14:22 ` 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).