public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16666] New: 3.4.x regression compared to 3.3.x.
@ 2004-07-22 2:53 gcc-bugzilla at gcc dot gnu dot org
2004-07-22 3:24 ` [Bug c/16666] [3.4/3.5 regression] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-07-22 2:53 UTC (permalink / raw)
To: gcc-bugs
A simple test case below triggers the bug. GCC calls
diagnose_mismatched_decls before it parses K&R parameter definitions
in second dremf occurence and this effectively causes comparison of
float dremf(float, float); // takes two floats
float fremf(); // takes unspecified number of args
prototypes, causing a bogus error message.
% gcc34 -c builtin.c
dremf.c:5: error: conflicting types for 'dremf'
dremf.c:5: error: conflicting types for 'dremf'
This is a regression from previous GCC releases.
Environment:
System: FreeBSD k8.dnsalias.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Jul 12 00:28:33 EDT 2004 kan@k8.dnsalias.net:/usr/src/sys/amd64/compile/KAN amd64
<machine, os, target, libraries (multiple lines)>
host: x86_64-portbld-freebsd5.2
build: x86_64-portbld-freebsd5.2
target: x86_64-portbld-freebsd5.2
configured with: ./..//gcc-3.4-20040709/configure --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local --program-suffix=34 --with-gxx-include-dir=/usr/local/lib/gcc/x86_64-portbld-freebsd5.2/3.4.2/include/c++/ --disable-shared --disable-libgcj --prefix=/usr/local x86_64-portbld-freebsd5.2
How-To-Repeat:
% cat dremf.c
float dremf(float, float);
float
dremf(x, y)
float x, y;
{
return x+y;
}
% gcc34 -c dremf.c
dremf.c:5: error: conflicting types for 'dremf'
dremf.c:5: error: conflicting types for 'dremf'
------- Additional Comments From kan at FreeBSD dot ORG 2004-07-22 02:53 -------
Fix:
Unfortunately, I have no patch for this.
--
Summary: 3.4.x regression compared to 3.3.x.
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kan at FreeBSD dot ORG
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-portbld-freebsd5.2
GCC host triplet: x86_64-portbld-freebsd5.2
GCC target triplet: x86_64-portbld-freebsd5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/3.5 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
@ 2004-07-22 3:24 ` pinskia at gcc dot gnu dot org
2004-07-22 3:34 ` kan at FreeBSD dot ORG
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-22 3:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-22 03:24 -------
Confirmed, this is about the same bug as PR 15698, why PR 15698 does not fail in 3.4 I do not know.
It is most likely caused by the patch which fixed PR 13856.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |zack at gcc dot gnu dot org
OtherBugsDependingO| |15698
nThis| |
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|x86_64-portbld-freebsd5.2 |
GCC host triplet|x86_64-portbld-freebsd5.2 |
GCC target triplet|x86_64-portbld-freebsd5.2 |
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2004-07-22 03:24:22
date| |
Summary|3.4.x regression compared to|[3.4/3.5 regression]
|3.3.x. |compared to 3.3.x.
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/3.5 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
2004-07-22 3:24 ` [Bug c/16666] [3.4/3.5 regression] " pinskia at gcc dot gnu dot org
@ 2004-07-22 3:34 ` kan at FreeBSD dot ORG
2004-07-22 3:45 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: kan at FreeBSD dot ORG @ 2004-07-22 3:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kan at FreeBSD dot ORG 2004-07-22 03:34 -------
It has something to do with float in arguments. Floats are getting expanded
before they are pushed on arguments stack and this is the condition which
prevents simple cases like
int foo(int a, int b);
int
foo(a, b)
int a, b;
{
....
}
from failing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/3.5 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
2004-07-22 3:24 ` [Bug c/16666] [3.4/3.5 regression] " pinskia at gcc dot gnu dot org
2004-07-22 3:34 ` kan at FreeBSD dot ORG
@ 2004-07-22 3:45 ` pinskia at gcc dot gnu dot org
2004-07-22 4:58 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-22 3:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-22 03:45 -------
Yes and it has to do with builtins as -fno-builtin makes it work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/3.5 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-07-22 3:45 ` pinskia at gcc dot gnu dot org
@ 2004-07-22 4:58 ` pinskia at gcc dot gnu dot org
2004-07-29 14:43 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-22 4:58 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/3.5 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-07-22 4:58 ` pinskia at gcc dot gnu dot org
@ 2004-07-29 14:43 ` pinskia at gcc dot gnu dot org
2004-08-25 13:18 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-29 14:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-29 14:43 -------
: Search converges between 2004-02-01-trunk (#445) and 2004-03-01-trunk (#446).
: Search converges between 2004-02-02-3.4 (#1) and 2004-03-01-3.4 (#2).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/3.5 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-07-29 14:43 ` pinskia at gcc dot gnu dot org
@ 2004-08-25 13:18 ` reichelt at gcc dot gnu dot org
2004-08-29 18:41 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-25 13:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-25 13:18 -------
First, a warning appeared:
: Search converges between 2003-08-28-trunk (#337) and 2003-08-29-trunk (#338).
PR16666.c:7: warning: conflicting types for built-in function 'dremf'
PR16666.c:7: warning: conflicting types for built-in function 'dremf'
Zack, your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-02/msg00398.html
turned the warning into an error:
PR16666.c:7: error: conflicting types for 'dremf'
PR16666.c:7: error: conflicting types for 'dremf'
Could you please have a look?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
Known to work| |3.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/3.5 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-08-25 13:18 ` reichelt at gcc dot gnu dot org
@ 2004-08-29 18:41 ` mmitchel at gcc dot gnu dot org
2004-09-20 23:38 ` [Bug c/16666] [3.4/4.0 " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-29 18:41 -------
Postponed until GCC 3.4.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/4.0 regression] compared to 3.3.x.
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-08-29 18:41 ` mmitchel at gcc dot gnu dot org
@ 2004-09-20 23:38 ` pinskia at gcc dot gnu dot org
2004-10-30 8:50 ` [Bug c/16666] [3.4/4.0 regression] dremf type conflict cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-20 23:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-20 23:38 -------
*** Bug 17573 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bowdidge at apple dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4/4.0 regression] dremf type conflict
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-09-20 23:38 ` [Bug c/16666] [3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-10-30 8:50 ` cvs-commit at gcc dot gnu dot org
2004-10-30 13:46 ` [Bug c/16666] [3.4 " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-30 8:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-30 08:50 -------
Subject: Bug 16666
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jsm28@gcc.gnu.org 2004-10-30 08:50:31
Modified files:
gcc : ChangeLog c-decl.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: dremf-type-compat-1.c
dremf-type-compat-2.c
dremf-type-compat-3.c
dremf-type-compat-4.c old-style-prom-1.c
old-style-prom-2.c old-style-prom-3.c
Log message:
PR c/16666
* c-decl.c (start_function): Don't check for DECL_BUILT_IN when
determining whether to copy parameter types from a previous
prototype declaration.
testsuite:
* gcc.dg/dremf-type-compat-1.c, gcc.dg/dremf-type-compat-2.c,
gcc.dg/dremf-type-compat-3.c, gcc.dg/dremf-type-compat-4.c,
gcc.dg/old-style-prom-1.c, gcc.dg/old-style-prom-2.c,
gcc.dg/old-style-prom-3.c: New tests.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6102&r2=2.6103
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.604&r2=1.605
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4521&r2=1.4522
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/dremf-type-compat-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/dremf-type-compat-2.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/dremf-type-compat-3.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/dremf-type-compat-4.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/old-style-prom-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/old-style-prom-2.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/old-style-prom-3.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4 regression] dremf type conflict
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-10-30 8:50 ` [Bug c/16666] [3.4/4.0 regression] dremf type conflict cvs-commit at gcc dot gnu dot org
@ 2004-10-30 13:46 ` pinskia at gcc dot gnu dot org
2004-10-31 2:43 ` mmitchel at gcc dot gnu dot org
2005-04-30 0:02 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-30 13:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-30 13:46 -------
Fixed on the mainline right now.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.4.1 4.0.0 |3.4.1
Known to work|3.3.4 |3.3.4 4.0.0
Summary|[3.4/4.0 regression] dremf |[3.4 regression] dremf type
|type conflict |conflict
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4 regression] dremf type conflict
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-10-30 13:46 ` [Bug c/16666] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-31 2:43 ` mmitchel at gcc dot gnu dot org
2005-04-30 0:02 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-10-31 2:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-10-31 02:43 -------
Postponed until GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/16666] [3.4 regression] dremf type conflict
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-10-31 2:43 ` mmitchel at gcc dot gnu dot org
@ 2005-04-30 0:02 ` jsm28 at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-04-30 0:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-04-30 00:02 -------
Fixed in 4.0.0. c-decl.c in 3.4 was part way through a rewrite and
that intermediate version is fairly buggy and fragile, so backporting
fixes to that version seems inadvisable.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu dot org
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|3.4.4 |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16666
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-04-30 0:02 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-22 2:53 [Bug c/16666] New: 3.4.x regression compared to 3.3.x gcc-bugzilla at gcc dot gnu dot org
2004-07-22 3:24 ` [Bug c/16666] [3.4/3.5 regression] " pinskia at gcc dot gnu dot org
2004-07-22 3:34 ` kan at FreeBSD dot ORG
2004-07-22 3:45 ` pinskia at gcc dot gnu dot org
2004-07-22 4:58 ` pinskia at gcc dot gnu dot org
2004-07-29 14:43 ` pinskia at gcc dot gnu dot org
2004-08-25 13:18 ` reichelt at gcc dot gnu dot org
2004-08-29 18:41 ` mmitchel at gcc dot gnu dot org
2004-09-20 23:38 ` [Bug c/16666] [3.4/4.0 " pinskia at gcc dot gnu dot org
2004-10-30 8:50 ` [Bug c/16666] [3.4/4.0 regression] dremf type conflict cvs-commit at gcc dot gnu dot org
2004-10-30 13:46 ` [Bug c/16666] [3.4 " pinskia at gcc dot gnu dot org
2004-10-31 2:43 ` mmitchel at gcc dot gnu dot org
2005-04-30 0:02 ` jsm28 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).