c-decl.c (grokdeclarator): Don't give a warning about defaulting to int for plain...
authorJoseph Myers <jsm28@cam.ac.uk>
Sun, 17 Sep 2000 19:39:56 +0000 (20:39 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 17 Sep 2000 19:39:56 +0000 (20:39 +0100)
commit60e9d01cf742140d4d56eb8aaf7eced14a923141
tree334934f9502cc4e6f33fbd5069958392abed651a
parentbc5006c72549c530c630f8a749612ea5ec2bb9e7
c-decl.c (grokdeclarator): Don't give a warning about defaulting to int for plain complex which defaults...

* c-decl.c (grokdeclarator): Don't give a warning about defaulting
to int for plain complex which defaults to complex double.  Do
warn about defaulting to complex double if pedantic.  Warn about
complex integer types if pedantic.  Warn about complex types if
pedantic and not in C99 mode.
* c-typeck.c (build_unary_op): If pedantic, warn about use of ~
for complex conjugation.

testsuite:
* gcc.dg/c90-complex-1.c, gcc.dg/c99-complex-1.c: New tests.

From-SVN: r36478
gcc/ChangeLog
gcc/c-decl.c
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-complex-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-complex-1.c [new file with mode: 0644]