This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/24068] Unconditional warning when using -combine


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-26 19:41 -------
Because one file uses K&R style function defintions and the other uses a prototype which is ANSI/ISO 
style.

Simple example:
file1.c:
int f(int);
---
file2.c:
int f(a)
int a;
{
  return a;
}
---
Compile it as:
gcc file2.c file1.c -combine


So this about the following:
int f(a)
int a;
{
  return a;
}
int f(int);

Which is questionable.

So I don't think this is not an inappropriate warning.


--------------------------------------------
As an aside, I wish people would stop using K&R style C already.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24068


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]