diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-05-29 19:40:27 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-05-29 19:40:27 +0100 |
commit | 5305f6d718b92844c271f2f4bce64fa25e224fa5 (patch) | |
tree | 61bfa35e8aff04843c32b0e89f92e10cf8972fda /gcc | |
parent | 50796c52d96b4a024ac637ed528d1947d1a228a1 (diff) | |
download | gcc-5305f6d718b92844c271f2f4bce64fa25e224fa5.zip gcc-5305f6d718b92844c271f2f4bce64fa25e224fa5.tar.gz gcc-5305f6d718b92844c271f2f4bce64fa25e224fa5.tar.bz2 |
* c-typeck.c (common_type): Correct comment.
From-SVN: r82426
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-typeck.c | 11 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3573ee2..68b4b56 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk> + + * c-typeck.c (common_type): Correct comment. + 2004-05-29 Peter Barada <peter@the-baradas.com> * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index ddc2d08..1193f05 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -199,10 +199,13 @@ qualify_type (tree type, tree like) TYPE_QUALS (type) | TYPE_QUALS (like)); } -/* Return the common type of two types. - We assume that comptypes has already been done and returned 1; - if that isn't so, this may crash. In particular, we assume that qualifiers - match. +/* Return the composite type of two compatible types, or the common + type for two arithmetic types under the usual arithmetic + conversions. + + Unless both types are arithmetic types, we assume that comptypes + has already been done and returned 1; if that isn't so, this may + crash. In particular, we assume that qualifiers match. This is the type for the result of most arithmetic operations if the operands have the given two types. */ |