]>
Commit | Line | Data |
---|---|---|
9f33203d JM |
1 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
2 | ||
3 | PR c/54552 | |
4 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
5 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
6 | c_fully_fold first. | |
7 | ||
a27d595d JM |
8 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
9 | ||
10 | PR c/54103 | |
11 | * c-typeck.c (build_unary_op): Pass original argument of | |
12 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
13 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
14 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
15 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
16 | to c_objc_common_truthvalue_conversion, then remove any | |
17 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
18 | c_objc_common_truthvalue_conversion not | |
19 | c_common_truthvalue_conversion. | |
20 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
21 | call note_integer_operands for arguments with integer operands | |
22 | that are not integer constants. | |
23 | ||
9feb29df JJ |
24 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
25 | ||
26 | PR c/54559 | |
27 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
28 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
29 | ||
d409320c JJ |
30 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
31 | ||
32 | PR c/54428 | |
33 | * c-convert.c (convert): Don't call fold_convert_loc if | |
34 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
35 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
36 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
37 | ||
6265d07c JJ |
38 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
39 | ||
40 | PR c/54355 | |
41 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
42 | for nested and empty_ok arguments in the call to | |
43 | c_parser_declaration_or_fndef. | |
44 | ||
1a4049e7 JJ |
45 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
46 | ||
47 | * c-tree.h (c_last_sizeof_arg): Declare. | |
48 | * c-parser.c (struct c_tree_loc_pair): New type. | |
49 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
50 | non-NULL. | |
51 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
52 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
53 | sizeof_pointer_memaccess_warning if needed. | |
54 | (sizeof_ptr_memacc_comptypes): New function. | |
55 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
56 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
57 | ||
0229aee9 UB |
58 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
59 | ||
60 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
61 | ||
7ee2468b SB |
62 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
63 | ||
64 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
65 | * Make-lang.in: Fix dependencies. | |
66 | ||
d4a10d0a SB |
67 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
68 | ||
69 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
70 | and add language Makefile hooks. | |
71 | * config-lang.in: New file. | |
72 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
73 | add the required "normal" config-lang.in rules. | |
74 | * c-lang.h: Moved from gcc/ to here. | |
75 | * c-tree.h: Likewise. | |
76 | * c-objc-common.c: Likewise. | |
77 | * c-objc-common.h: Likewise. | |
78 | * c-typeck.c: Likewise. | |
79 | * c-convert.c: Likewise. | |
80 | * c-lang.c: Likewise. | |
81 | * c-aux-info.c: Likewise. | |
82 | * c-errors.c: Likewise. | |
83 | * gccspec.c: Likewise. | |
84 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
85 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
86 | \f | |
87 | Copyright (C) 2012 Free Software Foundation, Inc. | |
88 | ||
89 | Copying and distribution of this file, with or without modification, | |
90 | are permitted in any medium without royalty provided the copyright | |
91 | notice and this notice are preserved. |