typeck.c (259694) | typeck.c (259947) |
---|---|
1/* Build expressions with type checking for C++ compiler. 2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 Hacked by Michael Tiemann (tiemann@cygnus.com) 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify --- 3462 unchanged lines hidden (view full) --- 3471 arithmetic_types_p = 0; 3472 /* Vector arithmetic is only allowed when both sides are vectors. */ 3473 if (code0 == VECTOR_TYPE && code1 == VECTOR_TYPE) 3474 { 3475 if (!tree_int_cst_equal (TYPE_SIZE (type0), TYPE_SIZE (type1)) 3476 || !same_scalar_type_ignoring_signedness (TREE_TYPE (type0), 3477 TREE_TYPE (type1))) 3478 { | 1/* Build expressions with type checking for C++ compiler. 2 Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 3 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 Hacked by Michael Tiemann (tiemann@cygnus.com) 5 6This file is part of GCC. 7 8GCC is free software; you can redistribute it and/or modify --- 3462 unchanged lines hidden (view full) --- 3471 arithmetic_types_p = 0; 3472 /* Vector arithmetic is only allowed when both sides are vectors. */ 3473 if (code0 == VECTOR_TYPE && code1 == VECTOR_TYPE) 3474 { 3475 if (!tree_int_cst_equal (TYPE_SIZE (type0), TYPE_SIZE (type1)) 3476 || !same_scalar_type_ignoring_signedness (TREE_TYPE (type0), 3477 TREE_TYPE (type1))) 3478 { |
3479 binary_op_error (code); | 3479 binary_op_error (code, type0, type1); |
3480 return error_mark_node; 3481 } 3482 arithmetic_types_p = 1; 3483 } 3484 } 3485 /* Determine the RESULT_TYPE, if it is not already known. */ 3486 if (!result_type 3487 && arithmetic_types_p --- 3561 unchanged lines hidden --- | 3480 return error_mark_node; 3481 } 3482 arithmetic_types_p = 1; 3483 } 3484 } 3485 /* Determine the RESULT_TYPE, if it is not already known. */ 3486 if (!result_type 3487 && arithmetic_types_p --- 3561 unchanged lines hidden --- |