ce301bae890e87a82e39f4df50fa01155d2c66dd
[gcc.git] / gcc / ChangeLog
1 2006-01-04 Paul Brook <paul@codesourcery.com>
2
3 * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
4
5 2006-01-04 Daniel Berlin <dberlin@dberlin.org>
6
7 * lambda-code.c (can_put_in_inner_loop): Relax
8 restrictions.
9 (can_put_after_inner_loop): New function.
10 (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
11 (perfect_nestify): Change to make copies and modify uses.
12
13 2006-01-04 Richard Henderson <rth@redhat.com>
14
15 Merge from gomp branch:
16 * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
17 via integer constant.
18 (pragma_lex): Remove.
19 * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
20 rather than parsing it.
21 * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
22 handle_pragma_extern_prefix): Add %< %> quotes.
23 (registered_pragmas): New.
24 (c_register_pragma_1): New.
25 (c_register_pragma): Use it.
26 (c_register_pragma_with_expansion): Likewise.
27 (c_invoke_pragma_handler): New.
28 (init_pragma): Use cpp_register_deferred_pragma directly for
29 pch_preprocess.
30 * c-pragma.h (enum pragma_kind): New.
31 (pragma_handler): New.
32 (c_invoke_pragma_handler): Declare.
33 * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
34 CPP_PRAGMA_EOL.
35 * c-common.h (c_common_pch_pragma): Update decl.
36 * Makefile.in (c-parser.o): Update dependencies.
37 (GTFILES): Add c-pragma.h.
38 * c-parser.c (struct c_token): Add pragma_kind.
39 (struct c_parser): Add in_pragma.
40 (c_lex_one_token): Always initialize keyword and pragma_kind.
41 Extract data for CPP_PRAGMA.
42 (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
43 (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
44 Don't allow CPP_PRAGMA_EOL if in_pragma.
45 (c_parser_consume_pragma): New.
46 (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
47 (c_parser_skip_to_end_of_parameter): Likewise.
48 (c_parser_skip_to_end_of_block_or_statement): Likewise.
49 (c_parser_skip_to_pragma_eol): New.
50 (c_parser_external_declaration): Handle CPP_PRAGMA.
51 (c_parser_compound_statement_nostart): Likewise.
52 (c_parser_statement_after_labels): Likewise.
53 (c_parser_pragma): New.
54 (pragma_lex): Likewise.
55 (c_parser_pragma_pch_preprocess): New.
56 (c_parser_new): Merge into ...
57 (c_parse_file): ... here. Call c_parser_pragma_pch_preprocess.
58
59 2005-01-04 Jeff Law <law@redhat.com>
60
61 PR ada/24994
62 * tree-cfg.c (bsi_replace): Remove the original statement
63 from the EH throw statement table.
64
65 2006-01-04 Jakub Jelinek <jakub@redhat.com>
66
67 * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
68 make the prototype extern "C" and add throw ().
69
70 PR target/25554
71 * config/i386/i386.md (testqi_ext_3): Ensure len is positive
72 and pos non-negative and pos + len <= 32.
73 (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
74 drop pos + len < HOST_BITS_PER_WIDE_INT test.
75 (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
76
77 PR c/25559
78 * c-common.c (handle_vector_size_attribute): Reject zero vector size
79 as well as sizes not multiple of component size.
80
81 PR debug/25562
82 * function.c (instantiate_expr): New function.
83 (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
84 walk its DECL_VALUE_EXPR with instantiate_expr.
85
86 * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
87 DW_OP_deref{,_size} if address isn't going to be added.
88
89 2006-01-04 Ben Elliston <bje@au.ibm.com>
90
91 * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
92 * config/fp-bit.c: Likewise.
93
94 2006-01-03 Daniel Berlin <dberlin@dberlin.org>
95
96 * dominance.c: Add comment about why we use DFS numbering
97 of dominance tree.
98
99 2006-01-03 Jakub Jelinek <jakub@redhat.com>
100 Richard Henderson <rth@redhat.com>
101
102 Merge from gomp-branch:
103 * varasm.c (assemble_variable): Handle thread-local COMMON data.
104 * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
105
106 2006-01-03 Paolo Bonzini <bonzini@gnu.org>
107
108 PR rtl-optimization/25578
109 * combine.c (combine_simplify_rtx, force_to_mode): Don't
110 pass a parameter to simplify_shift_const if changing ASHIFTRT
111 to LSHIFTRT.
112
113 2006-01-03 Adrian Straetling <straetling@de.ibm.com>
114
115 * gcc/builtins.c (get_builtin_sync_mem): New function.
116 (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
117 expand_builtin_lock_test_and_set, expand_builtin_lock_release):
118 Call get_builtin_sync_mem to generate mem rtx.
119
120 2006-01-03 Richard Guenther <rguenther@suse.de>
121
122 PR c/25183
123 * stmt.c (add_case_node): Make sure to clear overflow flags
124 from ranges.
125
126 2006-01-03 Jakub Jelinek <jakub@redhat.com>
127
128 Merge from gomp-branch.
129 * config/sparc/sync.md: New file.
130 * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
131 UNSPECV_LDSTUB): New constants.
132 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
133 * config/sparc/predicates.md (memory_reg_operand): New predicate.
134 * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
135 prototype.
136
137 2006-01-03 Roger Sayle <roger@eyesopen.com>
138
139 * combine.c (reg_subword_p): New predicate to test whether the
140 destination of a set refers to a subword/piece of a register.
141 (try_combine): Generalize the code to merge the setting of a
142 pseudo to a constant followed by a set of a subword of that
143 register to a constant.
144
145 2006-01-03 Kazu Hirata <kazu@codesourcery.com>
146
147 * basic-block.h (control_flow_graph): Change the type of
148 x_label_to_block_map to VEC(basic_block,gc) *.
149 * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
150 set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
151
152 * tree-ssa-propagate.c (cfg_blocks): Change the type to
153 VEC(basic_block,heap) *.
154 (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
155 ssa_prop_fini): Adjust the uses of cfg_blocks.
156
157 2006-01-03 Steven Bosscher <stevenb.gcc@gmail.com>
158
159 * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
160 COMPONENT_REFs.
161 * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
162 hashing trees instead of a pointer hash.
163 (mem_attrs_htab_eq): Do a deep compare instead of a pointer
164 compare for MEM_EXPR.
165
166 PR rtl-optimization/25130
167 * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
168 when comparing MEMs for GCSE
169
170 2006-01-03 Ben Elliston <bje@au.ibm.com>
171
172 * targhooks.h (default_decimal_float_supported_p): Declare.
173 * targhooks.c (default_decimal_float_supported_p): Define.
174 * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
175 `default_decimal_float_supported_p'.
176 * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
177
178 2006-01-02 Adam Nemet <anemet@caviumnetworks.com>
179
180 * combine.c (apply_distributive_law <SUBREG>): Check
181 TRULY_NOOP_TRUNCATION.
182
183 2006-01-02 Geoffrey Keating <geoffk@apple.com>
184
185 * dwarf2out.c (have_switched_text_section): Delete.
186 (have_multiple_function_sections): New.
187 (have_location_lists): Make 'bool'.
188 (add_AT_loc_list): Use 'true' not '1'.
189 (dwarf2out_switch_text_section): Set have_multiple_function_sections.
190 (output_loc_list): Use have_multiple_function_sections.
191 (output_ranges): Likewise.
192 (dwarf2out_begin_function): Set have_multiple_function_sections if
193 necessary.
194 (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
195 Check function_section rather than DECL_SECTION_NAME.
196 (dwarf2out_finish): Use have_multiple_function_sections.
197 Don't clear have_location_lists.
198
199 2006-01-02 Eric Botcazou <ebotcazou@adacore.com>
200 Jan Hubicka <jh@suse.cz>
201
202 * cfglayout.c (fixup_reorder_chain): Remove kludge for the
203 case of conditional jump jumping to the next instruction.
204 * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
205 cases of conditional jump jumping to the next instruction.
206
207 2006-01-02 Jan Hubicka <jh@suse.cz>
208
209 * i386.c (*_cost): Add COSTS_N_INSNS.
210 (ix86_rtx_costs): Do not use COSTS_N_INSNS.
211
212 2006-01-02 Paolo Bonzini <bonzini@gnu.org>
213
214 PR target/25259
215 * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
216
217 2006-01-02 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
218
219 * config/arm/arm.c (all_fpus): Fix comment typo.
220 * config/darwin.c: Likewise.
221 * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
222 * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
223 * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
224
225 2006-01-01 David Edelsohn <edelsohn@gnu.org>
226
227 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
228 (rs6000_split_compare_and_swapqhi): New.
229 * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
230 (sync_compare_and_swapqhi_internal): New.
231 * config/rs6000/rs6000-protos.h: Declare.
232