public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24222] New: -fsyntax-only runs the gimplifier
@ 2005-10-06 1:29 sabre at nondot dot org
2005-10-06 1:30 ` [Bug c++/24222] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: sabre at nondot dot org @ 2005-10-06 1:29 UTC (permalink / raw)
To: gcc-bugs
Compiling a C++ file with -fsyntax-only -ftime-report includes time spent on
'tree gimplify'. Unless I'm missing something, -fsyntax-only shouldn't have to
gimplify anything.
-Chris
--
Summary: -fsyntax-only runs the gimplifier
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sabre at nondot dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] -fsyntax-only runs the gimplifier
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
@ 2005-10-06 1:30 ` pinskia at gcc dot gnu dot org
2005-10-06 1:37 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-06 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-06 01:30 -------
This needed for some syntaxical analysis, IIRC.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] -fsyntax-only runs the gimplifier
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
2005-10-06 1:30 ` [Bug c++/24222] " pinskia at gcc dot gnu dot org
@ 2005-10-06 1:37 ` pinskia at gcc dot gnu dot org
2005-10-06 1:42 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-06 1:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-06 01:37 -------
The following explains about the C compiler:
http://gcc.gnu.org/ml/gcc/2004-05/msg00257.html
It is semantical analysis and not syntax.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] -fsyntax-only runs the gimplifier
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
2005-10-06 1:30 ` [Bug c++/24222] " pinskia at gcc dot gnu dot org
2005-10-06 1:37 ` pinskia at gcc dot gnu dot org
@ 2005-10-06 1:42 ` pinskia at gcc dot gnu dot org
2005-10-06 1:52 ` [Bug c++/24222] The gimplifier shouldn't emit warnings or errors sabre at nondot dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-06 1:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-06 01:42 -------
right now if we don't gimplify with -fsyntax-only, we would not be able to
diagnostic the following:
void f(void)
{
break;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] The gimplifier shouldn't emit warnings or errors
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
` (2 preceding siblings ...)
2005-10-06 1:42 ` pinskia at gcc dot gnu dot org
@ 2005-10-06 1:52 ` sabre at nondot dot org
2005-10-06 20:56 ` gdr at integrable-solutions dot net
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: sabre at nondot dot org @ 2005-10-06 1:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sabre at nondot dot org 2005-10-06 01:51 -------
The gimplifier apparently emits these three errors:
error ("memory input %d is not directly addressable", i);
error ("invalid lvalue in asm output %d", i);
error ("too few arguments to function %<va_start%>");
In an ideal, modular, world, the front-ends should be emitting these. If these
checks need to be shared across different front-ends, the checks could be
function calls in c-common, not be put into the gimplifier.
One immediate advantage would be that -fsyntax-only wouldn't need to run the
gimplifier.
-Chris
--
sabre at nondot dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-fsyntax-only runs the |The gimplifier shouldn't
|gimplifier |emit warnings or errors
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] The gimplifier shouldn't emit warnings or errors
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
` (3 preceding siblings ...)
2005-10-06 1:52 ` [Bug c++/24222] The gimplifier shouldn't emit warnings or errors sabre at nondot dot org
@ 2005-10-06 20:56 ` gdr at integrable-solutions dot net
2005-10-06 20:57 ` gdr at integrable-solutions dot net
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-10-06 20:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from gdr at integrable-solutions dot net 2005-10-06 20:56 -------
Subject: Re: -fsyntax-only runs the gimplifier
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| right now if we don't gimplify with -fsyntax-only, we would not be able to
| diagnostic the following:
| void f(void)
| {
| break;
| }
That is one more reason why it is a bug in the compiler.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] The gimplifier shouldn't emit warnings or errors
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
` (4 preceding siblings ...)
2005-10-06 20:56 ` gdr at integrable-solutions dot net
@ 2005-10-06 20:57 ` gdr at integrable-solutions dot net
2005-12-04 5:17 ` gdr at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-10-06 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from gdr at integrable-solutions dot net 2005-10-06 20:57 -------
Subject: Re: New: -fsyntax-only runs the gimplifier
"sabre at nondot dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Compiling a C++ file with -fsyntax-only -ftime-report includes time spent on
| 'tree gimplify'. Unless I'm missing something, -fsyntax-only
| shouldn't have to gimplify anything.
I strongly agree that that is a bug in the way the compiler currently works.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] The gimplifier shouldn't emit warnings or errors
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
` (5 preceding siblings ...)
2005-10-06 20:57 ` gdr at integrable-solutions dot net
@ 2005-12-04 5:17 ` gdr at gcc dot gnu dot org
2006-03-18 16:27 ` [Bug c++/24222] [meta-bug] " pinskia at gcc dot gnu dot org
2006-03-18 16:39 ` [Bug middle-end/24222] " pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-12-04 5:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from gdr at gcc dot gnu dot org 2005-12-04 05:17 -------
(In reply to comment #3)
> right now if we don't gimplify with -fsyntax-only, we would not be able to
> diagnostic the following:
> void f(void)
> {
> break;
> }
If that is true, then it should be considered a bug in the C++ front-end.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24222] [meta-bug] The gimplifier shouldn't emit warnings or errors
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
` (6 preceding siblings ...)
2005-12-04 5:17 ` gdr at gcc dot gnu dot org
@ 2006-03-18 16:27 ` pinskia at gcc dot gnu dot org
2006-03-18 16:39 ` [Bug middle-end/24222] " pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-18 16:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-03-18 16:26 -------
I am going to seperate this into a couple of different bugs.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-18 16:26:58
date| |
Summary|The gimplifier shouldn't |[meta-bug] The gimplifier
|emit warnings or errors |shouldn't emit warnings or
| |errors
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/24222] [meta-bug] The gimplifier shouldn't emit warnings or errors
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
` (7 preceding siblings ...)
2006-03-18 16:27 ` [Bug c++/24222] [meta-bug] " pinskia at gcc dot gnu dot org
@ 2006-03-18 16:39 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-18 16:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2006-03-18 16:39 -------
I found some other ones which had been added after this bug report was open :(.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Component|c++ |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24222
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-03-18 16:39 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06 1:29 [Bug c++/24222] New: -fsyntax-only runs the gimplifier sabre at nondot dot org
2005-10-06 1:30 ` [Bug c++/24222] " pinskia at gcc dot gnu dot org
2005-10-06 1:37 ` pinskia at gcc dot gnu dot org
2005-10-06 1:42 ` pinskia at gcc dot gnu dot org
2005-10-06 1:52 ` [Bug c++/24222] The gimplifier shouldn't emit warnings or errors sabre at nondot dot org
2005-10-06 20:56 ` gdr at integrable-solutions dot net
2005-10-06 20:57 ` gdr at integrable-solutions dot net
2005-12-04 5:17 ` gdr at gcc dot gnu dot org
2006-03-18 16:27 ` [Bug c++/24222] [meta-bug] " pinskia at gcc dot gnu dot org
2006-03-18 16:39 ` [Bug middle-end/24222] " pinskia at gcc dot gnu dot 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).