public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/114330] New: needs_preprocessing field of struct compiler is unused
@ 2024-03-13 22:15 pinskia at gcc dot gnu.org
2024-03-13 22:16 ` [Bug driver/114330] " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-13 22:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114330
Bug ID: 114330
Summary: needs_preprocessing field of struct compiler is unused
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: internal-improvement
Severity: enhancement
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
I suspect needs_preprocessing field became unused when the C preprocessor
became itergrated into the cc1.
while it does not hurt anything to have the field still around and only the
".c" sets it to true, it seems like a decent idea to remove the field.
Also note it might be useful to boolize combinable in struct compiler in gcc.cc
too.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/114330] needs_preprocessing field of struct compiler is unused
2024-03-13 22:15 [Bug driver/114330] New: needs_preprocessing field of struct compiler is unused pinskia at gcc dot gnu.org
@ 2024-03-13 22:16 ` pinskia at gcc dot gnu.org
2024-03-14 1:18 ` sjames at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-13 22:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114330
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
[apinski@xeond2 gcc]$ git grep needs_preprocessing
gcc.cc: int needs_preprocessing; /* If nonzero, source files need to
lto/lang-specs.h: /*cpp_spec=*/NULL, /*combinable=*/1,
/*needs_preprocessing=*/0},
That is the only references that grep could find even for needs_preprocessing.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/114330] needs_preprocessing field of struct compiler is unused
2024-03-13 22:15 [Bug driver/114330] New: needs_preprocessing field of struct compiler is unused pinskia at gcc dot gnu.org
2024-03-13 22:16 ` [Bug driver/114330] " pinskia at gcc dot gnu.org
@ 2024-03-14 1:18 ` sjames at gcc dot gnu.org
2024-03-14 1:19 ` sjames at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-14 1:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114330
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sjames at gcc dot gnu.org
--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
git log -G needs_preprocessing -p indicates r0-102965-gc3224d6f70eefb
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/114330] needs_preprocessing field of struct compiler is unused
2024-03-13 22:15 [Bug driver/114330] New: needs_preprocessing field of struct compiler is unused pinskia at gcc dot gnu.org
2024-03-13 22:16 ` [Bug driver/114330] " pinskia at gcc dot gnu.org
2024-03-14 1:18 ` sjames at gcc dot gnu.org
@ 2024-03-14 1:19 ` sjames at gcc dot gnu.org
2024-03-14 1:52 ` pinskia at gcc dot gnu.org
2024-04-16 19:49 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-14 1:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114330
--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
(I think it was dead before, but it should've been removed by then)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/114330] needs_preprocessing field of struct compiler is unused
2024-03-13 22:15 [Bug driver/114330] New: needs_preprocessing field of struct compiler is unused pinskia at gcc dot gnu.org
` (2 preceding siblings ...)
2024-03-14 1:19 ` sjames at gcc dot gnu.org
@ 2024-03-14 1:52 ` pinskia at gcc dot gnu.org
2024-04-16 19:49 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-14 1:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114330
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2024-03-14
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sam James from comment #2)
> git log -G needs_preprocessing -p indicates r0-102965-gc3224d6f70eefb
Oh yes when -combine support was removed. It was added in -combine support was
added in r0-57561-g0855eab7a30bb9 . combinable field was added at the same time
but combinable was used afterwards for go (and D and a few others).
So I will handle this for GCC 15. I thought it was added much earlier.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug driver/114330] needs_preprocessing field of struct compiler is unused
2024-03-13 22:15 [Bug driver/114330] New: needs_preprocessing field of struct compiler is unused pinskia at gcc dot gnu.org
` (3 preceding siblings ...)
2024-03-14 1:52 ` pinskia at gcc dot gnu.org
@ 2024-04-16 19:49 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-16 19:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114330
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The most annoying part of this is the struct compiler is initialized by
*/lang-specs.h and it looks like I missed one and the error message is not so
obvious where the issue is.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-04-16 19:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 22:15 [Bug driver/114330] New: needs_preprocessing field of struct compiler is unused pinskia at gcc dot gnu.org
2024-03-13 22:16 ` [Bug driver/114330] " pinskia at gcc dot gnu.org
2024-03-14 1:18 ` sjames at gcc dot gnu.org
2024-03-14 1:19 ` sjames at gcc dot gnu.org
2024-03-14 1:52 ` pinskia at gcc dot gnu.org
2024-04-16 19:49 ` pinskia 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).