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/12213] New: [3.4 regression] warning: conflicting types for builtin-function 'gamma'


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] warning: conflicting types for builtin-
                    function 'gamma'
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: critical
          Priority: P1
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mec at shout dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

gcc HEAD is giving me warnings for library functions in libraries that I don't
include.

The test program:

  int alpha () { return 0; }
  int beta ()  { return 0; }
  int gamma () { return 0; }

  int main ()
  {
    alpha ();
    beta ();
    gamma ();
    return 0;
  }

Compiles fine with gcc 3.3.1: gcc -S gamma.c.
Gives a warning with gcc HEAD: gcc -S gamma.c:

  gamma.c:3: warning: conflicting types for built-in function 'gamma'

I did not include <math.h>, so I think gcc should not put 'gamma' in my name space!

This regressed some time between 2003-06-22 00:00:00 UTC and 2003-08-29 18:00:00
UTC.  Actually it probably broke some time after 2003-08-27 00:00:00 UTC but I
don't have that compiler around any more.  I will regression-search this and
post the patch where it broke.


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