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

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).