This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [_Complex test 1/4] support_complex_tests in gdb.exp and pass _Complex args to func


On Thu, 19 May 2011, Yao Qi wrote:

> The other part I am not sure is about PROTOTYPES.  If I understand it
> correctly, these stuff are used to be compatible with old C standard,
> while _Complex types are introduced in C99.  We may don't need prototype
> stuffs for functions of _Complex args/return type.  In my patch, I still
> follow the existing manner.

I don't know how PROTOTYPES is used in the GDB testsuite.  I don't see any 
need to support compilers with complex support but without prototypes 
support.  However, it does make sense to test that passing _Complex float 
to an unprototyped function works correctly.  (Whereas float is promoted 
to double when passed to an unprototyped function, _Complex float is *not* 
promoted to _Complex double.  Hopefully GDB already knows that, but it 
seems a good thing to have a test of.)

-- 
Joseph S. Myers
joseph@codesourcery.com


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