public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/110408] New: gcc 13 crashes with %rename in specs
@ 2023-06-26 7:39 brjd_epdjq36 at kygur dot com
2023-06-28 13:31 ` [Bug driver/110408] " brjd_epdjq36 at kygur dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: brjd_epdjq36 at kygur dot com @ 2023-06-26 7:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110408
Bug ID: 110408
Summary: gcc 13 crashes with %rename in specs
Product: gcc
Version: 13.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: brjd_epdjq36 at kygur dot com
Target Milestone: ---
According to https://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html
if I apply this instruction to redefine only a part of the specs file:
%rename lib old_lib
*lib:
--start-group -lgcc -lc -leval1 --end-group %(old_lib)
,it is not necessary to change the whole specs file.
Still, in gcc 13 it crashes and returns this error:
g++-13: fatal error: specs file malformed after 35 characters
compilation terminated.
35 characters is the position after the last character in the old_lib string.
I test it with an older compiler gcc 4 and it is wonderful, no error.
I suppose that this manual is not updated to work in gcc 13 and there are
changes in the syntax.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug driver/110408] gcc 13 crashes with %rename in specs
2023-06-26 7:39 [Bug driver/110408] New: gcc 13 crashes with %rename in specs brjd_epdjq36 at kygur dot com
@ 2023-06-28 13:31 ` brjd_epdjq36 at kygur dot com
2023-06-28 18:27 ` [Bug driver/110408] [13/14 Regression] " pinskia at gcc dot gnu.org
2023-06-28 22:18 ` brjd_epdjq36 at kygur dot com
2 siblings, 0 replies; 4+ messages in thread
From: brjd_epdjq36 at kygur dot com @ 2023-06-28 13:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110408
--- Comment #1 from Brjd <brjd_epdjq36 at kygur dot com> ---
Test with specs file
%rename lib old_lib
*lib:
--start-group -lgcc -lc --end-group %(old_lib)
and hello.cpp
g++ hello.cpp -specs=/path-to-specs
g++-13: fatal error: specs file malformed after 36 characters
compilation terminated.
g++12 no error
g++-4 no error.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug driver/110408] [13/14 Regression] gcc 13 crashes with %rename in specs
2023-06-26 7:39 [Bug driver/110408] New: gcc 13 crashes with %rename in specs brjd_epdjq36 at kygur dot com
2023-06-28 13:31 ` [Bug driver/110408] " brjd_epdjq36 at kygur dot com
@ 2023-06-28 18:27 ` pinskia at gcc dot gnu.org
2023-06-28 22:18 ` brjd_epdjq36 at kygur dot com
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-28 18:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110408
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|gcc 13 crashes with %rename |[13/14 Regression] gcc 13
|in specs |crashes with %rename in
| |specs
Target Milestone|--- |13.2
Keywords| |needs-bisection
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug driver/110408] [13/14 Regression] gcc 13 crashes with %rename in specs
2023-06-26 7:39 [Bug driver/110408] New: gcc 13 crashes with %rename in specs brjd_epdjq36 at kygur dot com
2023-06-28 13:31 ` [Bug driver/110408] " brjd_epdjq36 at kygur dot com
2023-06-28 18:27 ` [Bug driver/110408] [13/14 Regression] " pinskia at gcc dot gnu.org
@ 2023-06-28 22:18 ` brjd_epdjq36 at kygur dot com
2 siblings, 0 replies; 4+ messages in thread
From: brjd_epdjq36 at kygur dot com @ 2023-06-28 22:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110408
Brjd <brjd_epdjq36 at kygur dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Brjd <brjd_epdjq36 at kygur dot com> ---
Please ignore it. I test it more and find out that it is my misunderstanding
that I can make it the default specs if I use the %rename option. However, the
compiler is not designed in this way.
Please tell if there are other options. AFAIK currently there are two options
to change the specs behavior.
First, I can override only a part of the specs file with the %rename option.
The shortage here is that it is not the default and I should invoke it manually
every time by the -specs=/path-to-my-specs-file.
The second way is a rebuild of the GCC or changes in the whole specs file. This
is the way I can set the default without invoking in the command line
-specs=/path-to-my-specs-file.
I do the first one and that causes the error since I use the GCC without
-specs. The compiler simply replaces the whole specs with my custom overriding
specs and fails.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-28 22:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-26 7:39 [Bug driver/110408] New: gcc 13 crashes with %rename in specs brjd_epdjq36 at kygur dot com
2023-06-28 13:31 ` [Bug driver/110408] " brjd_epdjq36 at kygur dot com
2023-06-28 18:27 ` [Bug driver/110408] [13/14 Regression] " pinskia at gcc dot gnu.org
2023-06-28 22:18 ` brjd_epdjq36 at kygur dot com
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).