alpha.c (alpha_start_function): Use switch_to_section.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2
3         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
4         (alpha_elf_select_rtx_section): Return the selected section rather
5         than emitting assembly code.
6         (alpha_write_linkage): Emit a ".link" directive directly and then
7         set in_section to NULL.
8         (vms_asm_out_constructor): Use switch_to_section.
9         (vms_asm_out_destructor): Likewise.
10         (unicosmk_output_common): Set in_section to NULL instead of calling
11         the dummy common_section function.
12         (unicosmk_text_section): Delete in favor of...
13         (unicosmk_output_text_section_asm_op): ...this new function.
14         (unicosmk_data_section): Delete in favor of...
15         (unicosmk_output_data_section_asm_op): ...this new function.
16         (unicosmk_init_sections): New function.
17         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
18         (unicosmk_output_ssib): Set in_section to NULL instead of calling
19         the dummy ssib_section function.
20         (unicosmk_section_buf): Delete.
21         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
22         (unicosmk_data_section): Delete.
23         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
24         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
25         (SECTION_FUNCTION_TEMPLATE): Delete.
26         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
27         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
28         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
29         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
30         (TARGET_ASM_INIT_SECTIONS): Define.
31         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
32         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
33         (link_section, literals_section): Delete.
34         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
35         set in_section to NULL.
36
37         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
38         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
39         (COMMON_SECTION): Delete.
40         (TARGET_ASM_INIT_SECTIONS): Define.
41         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
42         the dummy common_section function.
43         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
44         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
45         between readonly_data_section and text_section to check whether
46         read-only data is being put in the text section.
47         (arm_output_function_epilogue): Use switch_to_section.
48         (arm_elf_asm_constructor): Likewise.
49         (thumb_call_via_reg): Replace call to in_text_section with
50         a comparison between in_section and text_section.
51         (arm_file_end): Use switch_to_section.
52         (aof_text_section): Delete in favor of...
53         (aof_output_text_section_asm_op): ...this new function.
54         (aof_data_section): Delete in favor of...
55         (aof_output_data_section_asm_op): ...this new function.
56         (aof_asm_init_sections): New function.
57         (zero_init_section): Moved from config/arm/aof.h.
58         (aof_dump_imports, aof_file_start): Use switch_to_section.
59         * config/arm/arm.h (thumb_call_via_label): Update comment.
60         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
61         (common_section): Delete.
62         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
63         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
64         global switch_to_section function instead of the old port-local one.
65         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
66         (SWITCH_TO_SECTION_FUNCTION): Delete.
67         (drectve_section): Redefine as a macro.
68         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
69         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
70         switch_to_section.
71
72         * config/avr/avr.c (progmem_section): New variable.
73         (avr_output_progmem_section_asm_op): New function.
74         (avr_asm_init_sections): New function.
75         (avr_output_addr_vec_elt): Use switch_to_section.
76         * config/avr/avr.h (progmem_section): Declare.
77         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
78         (READONLY_DATA_SECTION): Delete.
79         (TARGET_ASM_INIT_SECTIONS): Define.
80         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
81         * config/avr/avr-protos.h (progmem_section): Delete.
82
83         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
84
85         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
86         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
87
88         * config/darwin-sections.def: New file.
89         * config/darwin.c: Define all sections in darwin-sections.def.
90         (output_objc_section_asm_op, darwin_init_sections): New functions.
91         (machopic_output_indirection): Use switch_to_section.
92         (machopic_select_section): Return the selected section rather than
93         emitting assembly code.  Replace the static function table with
94         inline conditional expressions.  Update the tests of last_text_section
95         and move them into the FUNCTION_DECL block.
96         (machopic_select_rtx_section): Return the selected section rather than
97         emitting assembly code.
98         (machopic_asm_out_constructor, machopic_asm_out_destructor)
99         (darwin_file_end): Use switch_to_section.
100         * config/darwin.h: Use darwin-sections.def to declare sections.
101         (INIT_SECTION_ASM_OP): Remove empty definition.
102         (HAS_INIT_SECTION): Define this instead.
103         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
104         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
105         (TARGET_ASM_EH_FRAME_SECTION): Delete.
106         (TARGET_ASM_INIT_SECTIONS): Define.
107         * config/darwin-protos.h (darwin_init_sections): Declare.
108         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
109         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
110         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
111         (constructor_section, destructor_section, mod_init_section): Delete.
112         (mod_term_section): Delete.
113         (darwin_exception_section, darwin_eh_frame_section): Delete.
114         (machopic_select_section): Return a section.
115         (machopic_select_rtx_section): Likewise.
116         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
117         (const_section, const_coal_section, const_data_section): Delete.
118         (const_data_coal_section, data_coal_section, cstring_section): Delete.
119         (literal4_section, literal8_section, constructor_section): Delete.
120         (mod_init_section, mod_term_section, destructor_section): Delete.
121         (objc_class_section, objc_meta_class_section, objc_category_section)
122         (objc_class_vars_section, objc_instance_vars_section): Delete.
123         (objc_cls_meth_section, objc_inst_meth_section): Delete.
124         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
125         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
126         (objc_symbols_section, objc_module_info_section): Delete.
127         (objc_image_info_section, objc_protocol_section): Delete.
128         (objc_string_object_section, objc_constant_string_object_section)
129         (objc_class_names_section, objc_meth_var_names_section): Delete.
130         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
131         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
132         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
133         (darwin_exception_section, darwin_eh_frame_section): Delete.
134         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
135
136         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
137         (frv_asm_out_destructor): Likewise.
138         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
139         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
140         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
141         get_named_section.
142         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
143         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
144         (data_section): Delete.
145
146         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
147         (DRECTVE_SECTION_FUNCTION): Delete.
148         (drectve_section): Redefine as a macro that sets in_section after
149         emitting the directive.
150         (SWITCH_TO_SECTION_FUNCTION): Delete.
151         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
152         in_text_section with comparison between in_section and text_section.
153         * config/i386/i386.c (x86_64_elf_select_section): Return the section
154         rather than emitting assembly code.  Use get_named_section.
155         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
156         get_named_section.
157         (machopic_output_stub): Use switch_to_section.
158         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
159         (nwld_named_section_asm_out_destructor): Use get_section and
160         switch_to_section.
161
162         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
163         rather than emitting assembly code.
164         (ia64_rwreloc_select_section): Likewise.
165         (ia64_rwreloc_select_rtx_section): Likewise.
166         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
167         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
168         switch_to_section.
169         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
170         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
171
172         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
173         section rather than emitting assembly code.
174         (iq2000_select_section): Likewise.
175         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
176         (sbss_section): Delete.
177
178         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
179         and get_named_section.
180         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
181
182         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
183         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
184         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
185         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
186         in_section to NULL.
187         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
188         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
189         global switch_to_section function instead of the old port-local one.
190         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
191         (SWITCH_SECTION_FUNCTION): Delete.
192         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
193         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
194         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
195         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
196         in_section to NULL.
197         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
198         global switch_to_section function instead of the old port-local one.
199         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
200
201         * config/mips/mips.c (mips_file_start): Update comment.
202         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
203         (mips_output_aligned_decl_common): Use switch_to_section.
204         (mips_select_rtx_section): Return the section rather than emitting
205         assembly code.  Use get_named_section.
206         (mips_function_rodata_section: Likewise get_section.
207         (build_mips16_function_stub): Use switch_to_section.
208         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
209         (SDATA_SECTION_ASM_OP): Delete.
210         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
211         (EXTRA_SECTION_FUNCTIONS): Delete.
212
213         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
214         (mmix_asm_output_aligned_local): Use switch_to_section.
215
216         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
217         (som_one_only_readonly_data_section): New variables.
218         (pa_output_function_epilogue): Set in_section to NULL instead of
219         calling forget_section.
220         (output_deferred_plabels): Use select_section.
221         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
222         of calling forget_section.
223         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
224         (pa_asm_output_aligned_local): Use select_section.
225         (som_text_section_asm_op): Delete in favor of...
226         (som_output_text_section_asm_op): ...this new function.
227         (pa_som_asm_init_sections): New function.
228         (pa_select_section): Return the section rather than emitting
229         assembly code.
230         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
231         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
232         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
233         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
234         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
235         (som_readonly_data_section, som_one_only_readonly_data_section)
236         (som_one_only_data_section, forget_section): Delete.
237         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
238         (TARGET_ASM_INIT_SECTIONS): Define.
239         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
240
241         * config/rs6000/rs6000.c (read_only_data_section): New variable.
242         (private_data_section, read_only_private_data_section): New variables.
243         (sdata2_section, toc_section): New variables.
244         (rs6000_file_start): Use switch_to_section.
245         (rs6000_assemble_integer): Use comparisons against in_section
246         instead of calling in_toc_section and in_text_section.  Use
247         unlikely_text_section_p.
248         (rs6000_elf_output_toc_section_asm_op): New function, derived
249         from the old rs6000/sysv4.h toc_section function.
250         (rs6000_elf_asm_init_sections): New function.
251         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
252         the section rather than emitting assembly code.
253         (machopic_output_stub): Use switch_to_section.
254         (toc_section): Delete dummy function.
255         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
256         switch_to_section and get_section.
257         (rs6000_xcoff_output_readonly_section_asm_op): New function.
258         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
259         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
260         the old rs6000/xcoff.h toc_section function.
261         (rs6000_xcoff_asm_init_sections): New function.
262         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
263         the section rather than emitting assembly code.
264         (rs6000_xcoff_file_start): Use switch_to_section.
265         (rs6000_xcoff_file_end): Likewise.
266         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
267         (sdata2_section, sbss_section, private_data_section): Delete.
268         (read_only_data_section, read_only_private_data_section): Delete.
269         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
270         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
271         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
272         (FINI_SECTION_FUNCTION): Delete.
273         (TARGET_ASM_INIT_SECTIONS): Define.
274         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
275         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
276         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
277         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
278         (READONLY_DATA_SECTION): Delete.
279         (TARGET_ASM_INIT_SECTIONS): Define.
280         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
281         to NULL rather than no_section.
282         (TARGET_ASM_EXCEPTION_SECTION): Delete.
283
284         * config/sh/sh.c (sh_file_start): Use switch_to_section.
285
286         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
287         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
288         from call to current_function_section.
289
290         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
291         (bss100_section): New variable.
292         (xstormy16_asm_output_aligned_common): Use switch_to_section.
293         (xstormy16_asm_init_sections): New function.
294         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
295         switch_to_section and get_section.
296         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
297         from calls to current_function_section.
298         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
299         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
300         (TARGET_ASM_INIT_SECTIONS): Define.
301         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
302
303         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
304         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
305         (FINI_SECTION_FUNCTION): Delete.
306
307         * config/v850/v850.c: Include gt-v850.h.
308         (rosdata_section, rozdata_section, tdata_section, zdata_section)
309         (zbss_section): New variables.
310         (v850_output_aligned_bss): Use switch_to_section.
311         (v850_asm_init_sections): New function.
312         (v850_select_section): Return the section rather than emitting
313         assembly code.
314         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
315         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
316         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
317         (TARGET_ASM_INIT_SECTIONS): Define.
318         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
319         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
320         (zbss_section): Delete.
321
322         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
323
324         * config/vx-common.h (vxworks_exception_section): Delete.
325         (TARGET_ASM_EXCEPTION_SECTION): Delete.
326
327         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
328         section rather than emitting assembly code.
329         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
330         switch_to_section.
331
332         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
333         * coretypes.h (section): New union and typedef.
334         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
335         from call to current_function_section.
336         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
337         (dbxout_symbol_location): Use switch_to_section.
338         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
339         most of the code into...
340         (default_eh_frame_section): ...here.  Return a section.
341         (collect2_eh_frame_section): Delete, moving most of the code into..
342         (switch_to_eh_frame_section): ...this new function.
343         (debug_info_section, debug_abbrev_section, debug_aranges_section)
344         (debug_macinfo_section, debug_line_section, debug_loc_section)
345         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
346         variables.
347         (output_call_frame_info): Call switch_to_eh_frame_section instead of
348         eh_frame_section.  Use switch_to_section and get_section.
349         (dwarf2out_begin_prologue): Use switch_to_section.
350         (AT_string_form): Check the flags in debug_str_section instead of
351         DEBUG_STR_SECTION_FLAGS.
352         (output_comp_unit): Use switch_to_section, get_section, and
353         debug_info_section.
354         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
355         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
356         from call to current_function_section.
357         (dwarf2out_var_location): Use unlikely_text_section_p.
358         (dwarf2out_source_line): Use switch_to_section.  Remove argument
359         from call to current_function_section.
360         (dwarf2out_start_source_file, dwarf2out_end_source_file)
361         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
362         debug_macinfo_section.
363         (dwarf2out_init): Initialize the new section variables.  Use them
364         instead of calls to named_section_flags.  Use switch_to_section.
365         (output_indirect_string): Use switch_to_section and debug_str_section.
366         (dwarf2out_finish): Use switch_to_section and the new section
367         variables.
368         * except.c (default_exception_section): Return the section instead
369         of emitting assembly code.
370         (output_function_exception_table): Use the global exception_section
371         variable instead of the target hook.  Use switch_to_section.  Remove
372         argument from call to current_function_section.
373         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
374         (shorten_branches): Use pointer comparisons to detect whether the
375         text section is the same as readonly_data_section.
376         (profile_function): Use switch_to_section.  Remove argument from
377         call to current_function_section.
378         (final_scan_insn): Likewise.  Update use of last_text_section.
379         * gengtype.c (open_base_files): Add an include of output.h.
380         * output.h (text_section, data_section, readonly_data_section)
381         (ctors_section, dtors_section, bss_section, init_section)
382         (fini_section, sdata_section): Turn into section pointers.
383         (in_text_section, in_unlikely_text_section, exports_section)
384         (drectve_section, named_section, mergeable_string_section)
385         (last_text_section_name): Delete.
386         (default_exception_section, default_eh_frame_section): Return sections.
387         (SECTION_DECLARED, SECTION_NAMED): New macros.
388         (SECTION_MACH_DEP): Bump value.
389         (section_common, named_section, unnamed_section): New structures.
390         (unnamed_section_callback): New typedef.
391         (section): New union.
392         (sbss_section, exception_section, eh_frame_section): New variables.
393         (in_section, last_text_section): Turn into section pointers.
394         (get_unnamed_section, get_section, get_named_section): New functions.
395         (mergeable_constant_section, function_section): Return a section.
396         (unlikely_text_section): Likewise.
397         (current_function_section): Likewise.  Remove the decl argument.
398         (unlikely_text_section_p, switch_to_section): New functions.
399         (output_section_asm_op): New function.
400         (set_named_section_flags, named_section_flags, named_section_real)
401         (named_section_first_declaration): Delete.
402         (default_select_section, default_elf_select_section): Return a section.
403         (default_elf_select_section_1, default_function_rodata_section)
404         (default_no_function_rodata_section, default_select_rtx_section)
405         (default_elf_select_rtx_section): Likewise.
406         * rtl.h (in_data_section): Delete.
407         * sdbout.c (sdbout_one_type): Use switch_to_section.
408         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
409         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
410         (TARGET_ASM_EH_FRAME_SECTION): Poison.
411         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
412         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
413         (TARGET_ASM_OUT): Update after above changes.
414         * target.h (init_sections): New hook.
415         (exception_section, eh_frame_section): Delete.
416         (select_section, select_rtx_section, function_rodata_section): Return
417         a section rather than emitting assembly code.
418         * varasm.c (text_section, data_section, readonly_data_section)
419         (ctors_section, dtors_section, bss_section, init_section)
420         (fini_section): Turn into section pointers.
421         (sdata_section, sbss_section, exception_section): New variables.
422         (eh_frame_section): New variable.
423         (in_section): Make global and turn into a section pointer.
424         (last_text_section): Turn into a section pointer.
425         (unnamed_sections): New variable.
426         (in_named_name, last_text_section_name): Delete.
427         (EXTRA_SECTION_FUNCTIONS): Delete.
428         (in_named_entry): Delete.
429         (section_htab): New variable, replacing...
430         (in_named_htab): ...this deleted variable.
431         (section_entry_eq, section_entry_hash): New functions, based on...
432         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
433         (get_unnamed_section, get_section): New functions.
434         (unlikely_text_section): Return a section instead of emitting
435         assembly code.
436         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
437         (get_named_section_flags, named_section_first_declaration): Delete.
438         (unlikely_text_section_p): New function.
439         (named_section_real, named_section): Delete.
440         (get_named_section): New function.
441         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
442         (function_section): Return a section rather than emitting
443         assembly code.
444         (current_function_section): Likewise.  Remove argument.  Use
445         last_text_section if nonnull, otherwise use function_section.
446         (default_function_rodata_section): Return a section rather than
447         emitting assembly code.  Use get_section.
448         (default_no_function_rodata_section): Return a section rather than
449         emitting assembly code.
450         (variable_section): Use switch_to_section and get_named_section.
451         (mergeable_string_section): Return a section rather than emitting
452         assembly code.  Use get_section.  Make static.  Don't take special
453         countermeasures for empty strings.
454         (mergeable_constant_section): Return a section rather than emitting
455         assembly code.  Use get_section.
456         (default_named_section_asm_out_destructor): Use switch_to_section
457         and get_section.
458         (default_dtor_section_asm_out_destructor): Use switch_to_section.
459         (default_named_section_asm_out_constructor): Use switch_to_section
460         and get_section.
461         (default_ctor_section_asm_out_constructor): Use switch_to_section.
462         (assemble_start_function): Likewise.  Set last_text_section to
463         NULL rather than no_section.  Change the type of save_section.
464         (assemble_zeros, assemble_variable): Use the section flags to detect
465         whether or not a section is text.
466         (assemble_static_space): Use switch_to_section.
467         (assemble_trampoline_template): Likewise.
468         (output_constant_def_contents): Use switch_to_section and
469         get_named_section.
470         (output_constant_pool_1): Use switch_to_section.  Use the section
471         flags to see whether sections contain mergeable data.
472         (init_varasm_once): Initialize section_htab instead of in_named_htab.
473         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
474         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
475         whether a section has already been declared.
476         (default_select_section, default_elf_select_section): Return a
477         section rather than emitting assembly code.
478         (default_elf_select_section_1): Likewise.  Use bss_section for
479         SECCAT_BSS if nonnull.  Use get_named_section.
480         (default_select_rtx_section): Return a section rather than
481         emitting assembly code.
482         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
483         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
484         (output_section_asm_op, switch_to_section): New functions.
485         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
486         get_named_section.
487
488         * doc/tm.texi: Expand the introduction to the sections documentation.
489         (TRAMPOLINE_SECTION): Document new interface.
490         (SDATA_SECTION_ASM_OP): Document new macro.
491         (READONLY_DATA_SECTION): Delete.
492         (SDATA_SECTION_ASM_OP): Document new macro.
493         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
494         (TARGET_ASM_INIT_SECTIONS): Document new hook.
495         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
496         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
497         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
498
499 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
500
501         * gcc.c (init_gcc_specs): Match braces inside conditionally
502         compiled strings.
503
504 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
505
506         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
507
508 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
509
510        PR C++/24138
511         * tree.c (integer_all_onesp): Always return true if all bits on.
512
513         * testsuite/g++.dg/init/array0.C: New.
514
515 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
516
517           * doc/md.texi: Adapt to implementation.
518
519 2005-12-06  Andreas Schwab  <schwab@suse.de>
520
521         * opts.c (decode_options): Fix typo in message.
522
523 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
524
525         PR other/13873
526         * longlong.h: Merge PPC tests from upstream.
527
528 2005-12-06  Richard Guenther  <rguenther@suse.de>
529
530         * fold-const.c (fold_convert): Do not build and fold
531         CONVERT_EXPR, but always use NOP_EXPR.
532
533 2005-12-06  Jan Beulich  <jbeulich@novell.com>
534
535         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
536         __builtin_ia32_paddq and __builtin_ia32_subq.
537         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
538         __builtin_ia32_pshufw.
539         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
540
541 2005-12-05  James E Wilson  <wilson@specifix.com>
542
543         PR target/24934
544         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
545         is set.
546
547 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
548         
549         * print-tree.c (print_node): Ditto.
550         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
551         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
552         before accessing DECL_ARTIFICIAL. 
553         Handle new tag tree codes.
554         * tree-flow-inline.h (clear_call_clobbered): Update for tag
555         changes.
556         (unmodifiable_var_p): Ditto.
557         * tree-flow.h (mem_tag_kind): Remove.
558         (struct var_ann_d): Remove mem_tag_kind member.
559         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
560         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
561         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
562         (group_aliases): Ditto.
563         (setup_pointers_and_addressables): Ditto.
564         (is_escape_site): Ditto.                                          
565         (may_alias_p): Ditto.
566         (create_tag_raw): New function.
567         (create_memory_tag): Use it.
568         (dump_alias_info): Update for tags.
569         (may_be_aliased): Ditto.
570         (add_type_alias): Ditto.
571         (new_type_alias): Ditto.
572         (create_sft): Ditto.
573         (create_structure_vars): Ditto.
574         * tree-ssa-ccp.c (get_default_value): Ditto.
575         * tree-ssa-operands.c (get_expr_operands): Ditto.
576         (add_stmt_operand): Ditto.
577         (add_call_clobber_ops): Remove duplicated condition.
578         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
579         tags.
580         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
581         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
582         * tree.c (init_ttree): Update structures for new tree codes.
583         (tree_code_size): Update sizes for new tree codes.
584         (make_node_stat): Don't try to set common things on minimal
585         structures.
586         (tree_node_structure): Update for tags.
587         (is_global_var): Ditto.
588         * tree.def: Add new tree codes.
589         * tree.h (MTAG_P): New macro.
590         (TREE_MEMORY_TAG_CHECK): Ditto.
591         (SSA_VAR_P): Update for tags.
592         (struct tree_memory_tag): New structure.
593         (MTAG_GLOBAL): New macro.
594         (union tree_node): Add memory tag member.
595         * treestruct.def (TS_MEMORY_TAG): New.
596         
597 2005-12-05  Dale Johannesen  <dalej@apple.com>
598
599         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
600         what was approved (PR 24323).
601
602 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
603
604         * doc/c-tree.texi (Function Bodies): Remove description of
605         RETURN_INIT.
606
607 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
608
609         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
610         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
611         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
612         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
613         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
614         __divxc3): Document.
615
616 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
617
618         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
619         previous behaviour.
620         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
621         hook_bool_void_false.
622         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
623         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
624
625         * config/darwin.c (machopic_select_section): It's not defined
626         as weak if it's only marked as weak_import.
627         
628         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
629         Prototype.
630
631         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
632         A hidden weak object does bind locally.  Strong linkonce data
633         counts like any other strong symbol for binding.
634         (weak_finish_1): Don't specially handle weakrefs, they no longer
635         arrive here.
636         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
637         * c-common.c (handle_alias_attribute): Allow static aliases
638         of variables.
639         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
640         * gthr-dce.h: Make weakrefs static.
641         * gthr-tpf.h: Likewise.
642         * gthr-solaris.h: Likewise.
643         * gthr-posix.h: Likewise.
644         * gthr-posix95.h: Likewise.
645         * config/darwin.c (darwin_encode_section_info): static weakref
646         variables are not necessarily defined in this translation unit.
647         * doc/extend.texi (Function Attributes): Mention that an alias
648         attribute creates a definition for the thing it's attached to.
649         Change the documentation for weakref to say that the thing
650         it's attached to must be static.
651
652         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
653         we don't go into an infinite loop.
654
655 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
656
657         * config/rs6000/predicates.md (logical_const_operand): Split
658         out of logical_operand.
659         (logical_operand): Use it.
660         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
661         logical_const_operand.
662
663 2005-12-05  Jan Beulich  <jbeulich@novell.com>
664
665         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
666         and IX86_BUILTIN_CMPNESS.
667         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
668         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
669         * config/i386/i386.md (movti_internal): Correct type attribute.
670         Simplify mode attribute.
671         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
672         Correct type attribute.
673         (absxf2): Correct operator.
674         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
675         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
676         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
677         mode attribute.
678         (sse2_vmsqrtv2df2): Correct mode attribute.
679
680 2005-12-05  Jan Beulich  <jbeulich@novell.com>
681
682         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
683         16 bits. Provide insn pattern for this case.
684
685 2005-12-05  Jan Beulich  <jbeulich@novell.com>
686
687         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
688         result.
689         (__popcountDI2): Likewise.
690
691 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
692
693         PR target/25166
694         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
695         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
696         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
697         functions.
698
699 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
700
701         * c-typeck.c (null_pointer_constant_p): New function.
702         (build_conditional_expr, build_c_cast, convert_for_assignment,
703         build_binary_op): Use it.
704
705 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
706
707         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
708         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
709         CONVERT_EXPR.
710         (check_function_arguments_recurse): Allow both NOP_EXPR and
711         CONVERT_EXPR but check conversions preserve precision.
712         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
713         but check conversions preserve precision.
714         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
715         default case.
716
717 2005-12-04  Roger Sayle  <roger@eyesopen.com>
718
719         PR c/7776
720         * common.opt (Wstring-literal-comparison): New command line option.
721         * c-opts.c (c_common_handle_option): Set it with -Wall.
722         * c-typeck.c (parser_build_binary_op): Issue warning if either
723         operand of a comparison operator is a string literal, except for
724         testing equality or inequality against NULL.
725
726         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
727
728 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
729
730         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
731         of building a NOP_EXPR.
732         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
733         NOP_EXPR.
734         * c-convert.c (convert): Use fold_convert instead of building
735         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
736         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
737         #if 0 code.
738         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
739         NOP_EXPR the same as CONVERT_EXPR.
740         * c-typeck.c (build_function_call): Use fold_convert instead of
741         building a NOP_EXPR directly.
742         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
743
744 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
745
746         PR rtl-optimization/25197
747         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
748         have a reg.
749
750 2005-12-02  Stuart Hastings  <stuart@apple.com>
751
752         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
753         warning.
754
755 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
756
757         * c-typeck.c (default_function_array_conversion,
758         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
759         (build_conditional_expr): Apply integer_zerop to orig_op1 and
760         orig_op2.  Don't check them for NOP_EXPR.
761         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
762         around integer zero.
763
764 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
765
766         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
767         toc_save_offset, toc_size, lr_size.
768         (rs6000_stack_info): Use memset rather than bss struct copy to init.
769         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
770         Adjust for removal of unused rs6000_stack_t fields.
771         (debug_stack_info): Adjust.
772         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
773         first, and don't bother checking for set/inc of lr on sibcalls.
774         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
775
776 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
777
778         PR target/25199
779         * config/i386/i386.md (movqi_1): Only force imovx for alternative
780         5 if operand 1 is not aligned.  Undo previous constraint change.
781         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
782
783 2005-12-02  Richard Guenther  <rguenther@suse.de>
784
785         * tree.h (build): Remove prototype.
786         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
787         * tree.c (build): Remove.
788         (build0_stat): Update comment.
789
790 2005-12-02  Richard Guenther  <rguenther@suse.de>
791
792         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
793         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
794         Likewise.
795         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
796         maybe_fold_offset_to_component_ref): Likewise.
797         * tree-ssa-dom.c (thread_across_edge,
798         simplify_rhs_and_lookup_avail_expr,
799         find_equivalent_equality_comparison, record_equivalences_from_stmt):
800         Likewise.
801         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
802         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
803         lower_try_finally_switch): Likewise.
804         * tree-if-conv.c (add_to_dst_predicate_list,
805         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
806         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
807         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
808         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
809         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
810         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
811         gimplify_init_ctor_eval, gimplify_init_constructor,
812         gimplify_variable_sized_compare, gimplify_boolean_expr,
813         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
814         gimplify_expr, gimplify_body, gimplify_function_tree,
815         force_gimple_operand): Likewise.
816         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
817         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
818         mx_register_decls): Likewise.
819         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
820         get_frame_field, finalize_nesting_tree_1): Likewise.
821         * tree-inline.c (setup_one_parameter): Likewise.
822         * tree-vect-transform.c (vectorizable_condition): Likewise.
823         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
824         Likewise.
825         * tree-profile.c (tree_gen_edge_profiler): Likewise.
826         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
827         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
828         * tree-chrec.h (build_polynomial_chrec): Likewise.
829
830 2005-12-02  Richard Guenther  <rguenther@suse.de>
831
832         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
833         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
834         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
835         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
836         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
837         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
838         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
839         Likewise.
840         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
841         sh_adjust_unroll_max): Likewise.
842         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
843         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
844         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
845         Likewise.
846         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
847         Likewise.
848         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
849         Likewise.
850
851 2005-12-02  Richard Guenther  <rguenther@suse.de>
852
853         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
854         simplify_cond_using_ranges): Use buildN instead of build.
855         * tree-tailcall.c (adjust_accumulator_values,
856         adjust_return_value): Likewise.
857         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
858         generate_element_copy, generate_element_zero,
859         generate_one_element_init): Likewise.
860         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
861         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
862         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
863         perfect_nestify): Likewise.
864
865 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
866
867         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
868
869 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
870
871         * ggc.h (GGC_RESIZEVEC): New.
872
873 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
874
875         * gcc.c (execute): Improve readability.
876
877 2005-12-02  Richard Guenther  <rguenther@suse.de>
878
879         * tree-cfg.c (mark_used_vars): New function.
880         (dump_function_to_file): Dump only used VAR_DECLs.
881
882 2005-12-02  Richard Guenther  <rguenther@suse.de>
883
884         * convert.c (convert_to_integer): Fix compare for nonpositive
885         constant to use tree_int_cst_sgn <= 0.
886
887 2005-12-02  Richard Guenther  <rguenther@suse.de>
888
889         * convert.c (convert_to_integer): Use fold_convert instead
890         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
891         instead of comparing against 0.  Use build_int_cst instead
892         of converting integer_zero_node.
893
894 2005-12-02  Richard Guenther  <rguenther@suse.de>
895
896         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
897         and RROTATE_EXPR.
898  
899 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
900
901         PR target/21017
902         * combine.c (simplify_logical <IOR>): Simplify more patterns to
903         rotates.
904
905 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
906
907         PR middle-end/25176
908         * function.c (expand_function_end): Emit blockage for unwinder
909         after return label.
910
911 2005-12-01  Roger Sayle  <roger@eyesopen.com>
912
913         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
914         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
915         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
916         integer constant comparisons.
917
918 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
919             Janis Johnson  <janis187@us.ibm.com>
920             David Edelsohn  <dje@watson.ibm.com>
921             Ben Elliston  <bje@au.ibm.com>
922
923         * dfp.h, dfp.c: New files.
924         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
925         (DECNUM_H): Likewise.
926         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
927         (INCLUDES): Append $(DECNUMINC).
928         (OBJS-common): Add dfp.o.
929         (dfp.o): New rule.
930         * real.h (EXP_BITS): Pinch one bit to ..
931         (struct real_value): Add decimal field.
932         (real_format): Change table size, update documentation.
933         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
934         (real_from_string3): Declare.
935         (decimal_single_format): Declare.
936         (decimal_double_format): Declare.
937         (decimal_quad_format): Declare.
938         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
939         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
940         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
941         * real.c: Include dfp.h.
942         (normalize): Early return for decimal floats.
943         (do_add): Zero decimal field.
944         (do_compare): Call do_decimal_compare for decimal floats.
945         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
946         (real_arithmetic): Call decimal_real_arithmetic for decimal
947         floating point operands.
948         (real_identical): If a and b are of differing radix, return false.
949         (real_to_integer): Call decimal_real_to_integer if the value is a
950         decimal float.
951         (real_to_integer2): Likewise, call decimal_real_to_integer2.
952         (real_to_decimal): Likewise, call decimal_real_to_decimal.
953         (real_to_hexadecimal): Place "N/A" in the return string for
954         decimal float.
955         (real_from_string3): New variant, given a mode.
956         (real_maxval): Use decimal_real_maxval for decimal floats.
957         (round_for_format): Use decimal_round_for_format for decimals.
958         (real_convert): Use decimal_real_convert where appropriate.
959         (significand_size): Handle base 10.
960         (encode_decimal_single, decode_decimal_single,
961         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
962         decode_decimal_quad): New functions.
963         (decimal_single_format): New.
964         (decimal_double_format): New.
965         (decimal_quad_format): New.
966         * machmode.def: Add SD, DD and TD decimal floating point modes.
967         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
968         Include MODE_DECIMAL_FLOAT.
969         (DECIMAL_FLOAT_MODE_P): New.
970         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
971         * genmodes.c (struct mode_data): Add counter field.
972         (struct mode_data): Update comment for format.
973         (blank_mode): Initialise counter field.
974         (new_mode): Increment counter field for each mode defined.
975         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
976         using a format.
977         (make_complex_modes): Handle modes containing `D'.
978         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
979         (make_decimal_float_mode): New.
980         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
981         (cmp_modes): Compare counter field if other characteristics
982         similar.
983         (emit_real_format_for_mode): Support formats for decimal floats.
984         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
985         Document MODE_DECIMAL_FLOAT.
986
987 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
988
989         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
990         Delete dead code.
991
992 2005-12-01  Richard Henderson  <rth@redhat.com>
993
994         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
995
996 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
997
998         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
999
1000         * config/pa/pa.c (pa_init_builtins): If we detect
1001         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
1002         putc_unlocked.
1003
1004 2005-12-01  Richard Guenther  <rguenther@suse.de>
1005
1006         * fold-const.c (fold_binary): Use fold_build2, not
1007         fold (build (...)).
1008
1009 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1010
1011         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
1012
1013         * vec.h (VEC_block_remove): New.
1014
1015 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1016
1017         PR c/13384
1018         * c-common.c (lvalue_error): Fix wording.
1019
1020 2005-12-01  Richard Guenther  <rguenther@suse.de>
1021
1022         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
1023         thinko in last patch.
1024
1025 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
1026
1027         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
1028         than -flat_namespace.
1029
1030 2005-12-01  Ben Elliston  <bje@au.ibm.com>
1031
1032         * mklibgcc.in: Parameterise the script to build soft float
1033         functions by iterating over each type, rather than cloning the
1034         code for each type.
1035
1036 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1037
1038         PR middle-end/25158
1039         * builtins.c (fold_builtin_fputs): Defer check for missing
1040         replacement functions.
1041
1042 2005-11-30  Kean Johnston  <jkj@sco.com>
1043
1044         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
1045         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
1046
1047 2005-11-30  Richard Guenther  <rguenther@suse.de>
1048
1049         PR tree-optimization/22501
1050         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
1051         function split out from ...
1052         (forward_propagate_addr_expr): ... here.  Use it to propagate
1053         ADDR_EXPRs to all uses.
1054
1055 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1056
1057         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
1058         * builtins.c (expand_builtin_mathfn): Use them.
1059         (expand_builtin_mathfn_2): Likewise.
1060         (expand_builtin_mathfn_3): Likewise.
1061         (expand_builtin_int_roundingfn): Likewise.
1062         (expand_builtin): Likewise.
1063         (integer_valued_real_p): Likewise.
1064         (fold_builtin_int_roundingfn): Likewise.
1065         (fold_builtin_bitop): Likewise.
1066         (fold_builtin_logarithm): Likewise.
1067         (fold_builtin_1): Likewise.
1068         * convert.c (convert_to_integer): Likewise.
1069         * fold-const.c (negate_mathfn_p): Likewise.
1070         (tree_expr_nonnegative_p): Likewise.
1071
1072 2005-11-30  Dale Johannesen  <dalej@apple.com>
1073             Andrew Pinski  <pinskia@physics.uc.edu>
1074
1075         * combine.c (find_split_point):  Sign extend bitmask
1076         when changing bitfield assignment to IOR of AND.
1077
1078 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1079
1080         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
1081         clobber to scratch reg.
1082         (*decrement_and_branch_until_zero_no_clobber): Remove.
1083         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
1084         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
1085         * config/ms1/ms1.opt (mmul): Remove.
1086         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
1087         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
1088
1089 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1090             Bernd Schmidt  <bernd.schmidt@analog.com>
1091
1092         * pa/predicates.md (symbolic_operand): Add comment.
1093         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
1094         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
1095         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
1096         (pa_secondary_reload_class): Delete.
1097         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
1098         and pa_secondary_reload_class.  Reorder some checks.  Update inline
1099         copy of symbolic operand.
1100         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
1101
1102 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1103
1104         * loop-doloop.c (add_test): Only add jump notes if we did emit a
1105         jump.
1106
1107 2005-11-30  Jeff Law  <law@redhat.com>
1108
1109         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
1110         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1111
1112 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
1113
1114         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
1115         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
1116         (ia64_expand_move): Adjust caller.
1117
1118         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
1119         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
1120         negate VAL.
1121
1122 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
1123
1124         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
1125         Always produce an output if we can remove NEGs or canonicalize
1126         (minus (minus ...)) expressions.  Provide a fast path for the
1127         two-operand case.
1128         (simplify_gen_binary): Do not call simplify_plus_minus.
1129         (simplify_binary_operation_1): Reassociate at the end of the
1130         function.
1131
1132 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
1133
1134         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
1135         moves and unpack to speed up.
1136
1137 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
1138
1139         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
1140         argument, they are always sparc_compare_op0 and sparc_compare_op1.
1141         (gen_v9_scc): Update callers.
1142         * config/sparc/sparc.md: Likewise.
1143         * config/sparc/sparc-protos.h: Update extern declaration.
1144
1145         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
1146
1147 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1148
1149         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
1150         the if.
1151
1152 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1153
1154         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
1155         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
1156         (negate_expr): Here.
1157
1158 2005-11-29  Ben Elliston  <bje@au.ibm.com>
1159
1160         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
1161         Fix typo in comment.
1162
1163 2005-11-29  Ben Elliston  <bje@au.ibm.com>
1164
1165         * Makefile.in (clean-target): Depend on clean-target-libgcc.
1166         (clean-target-libgcc): Import rule from the top-level Makefile.in.
1167
1168 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1169
1170         PR middle-end/20109
1171         PR middle-end/25120
1172         * builtins.c (init_target_chars): New.
1173         (expand_builtin_printf, expand_builtin_fprintf,
1174         expand_builtin_sprintf, fold_builtin_sprintf,
1175         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
1176         fold_builtin_snprintf_chk, fold_builtin_printf,
1177         fold_builtin_fprintf): Check for matching format strings using
1178         the target charset.
1179
1180 2005-11-29  Paul Brook  <paul@codesourcery.com>
1181
1182         * config.gcc: Do not use fixproto on m68k-elf.
1183
1184 2005-11-28  Roger Sayle  <roger@eyesopen.com>
1185
1186         * expmed.c (div_cost): Replace with...
1187         (sdiv_cost, udiv_cost): New.
1188         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
1189         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
1190         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
1191         (expand_divmod): Replace use of div_cost with either sdiv_cost
1192         or udiv_cost depending upon the signedness of the operation.
1193
1194 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
1195
1196         PR libfortran/24991
1197         * config/darwin.c (machopic_indirection_name,
1198         machopic_output_indirection): Follow transparent alias chain.
1199
1200 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
1201
1202         * varasm.c (ultimate_transparent_alias_target): Add comment.
1203
1204 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
1205
1206         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
1207         SET_SRC instead of XEXP where appropriate.
1208
1209 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
1210
1211         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
1212         __builtin_expect.
1213
1214 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
1215
1216         * config/fp-bit.h (LSHIFT): Take shift count parameter.
1217         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
1218         bit at a time.
1219
1220 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
1221
1222         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
1223         secondary_input_reload_class, made static.  Adapt to new
1224         infrastructure.
1225         (secondary_output_reload_class): Delete.
1226         (TARGET_SECONDARY_RELOAD): New macro.
1227         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
1228         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1229
1230 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
1231
1232         PR c++/21166
1233         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
1234         when its natural alignment is > BITS_PER_UNIT.
1235         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
1236         * c-common.c (handle_packed_attribute): Ignore packing on a field
1237         whose type is naturally char aligned.
1238
1239 2005-11-28  Richard Guenther  <rguenther@suse.de>
1240
1241         * c-common.c (strict_aliasing_warning): Handle all
1242         component-ref like accesses.
1243
1244 2005-11-28  Roger Sayle  <roger@eyesopen.com>
1245             Uros Bizjak  <uros@kss-loka.si>
1246
1247         PR middle-end/20219
1248         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
1249         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
1250         when flag_unsafe_math_optimizations is set and
1251         we don't care about NaNs or Infinities.
1252
1253         Move x/expN(y) and x/pow(y,z) transformation into common
1254         flag_unsafe_math_optimizations section.
1255
1256 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
1257
1258         * gcc.c (main): Change type of argv to "char **".
1259
1260 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
1261
1262         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
1263         small data sections.
1264         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
1265         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
1266         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
1267         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
1268         output locals to sbss if !rs6000_elf_in_small_data_p.
1269         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
1270
1271 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
1272
1273         PR target/24997
1274         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
1275         generated by reload.
1276         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
1277         indexed_or_indirect_address.
1278         (indexed_or_indirect_address): Don't test for base reg.  Call
1279         address_operand last.  Make it a special predicate.
1280
1281 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
1282
1283         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
1284
1285 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
1286
1287         PR middle-end/24575
1288         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
1289         is undefined.
1290         (negate_expr): Likewise.
1291
1292 2005-11-27  Andreas Schwab  <schwab@suse.de>
1293
1294         * config/m68k/m68k.c: Reindent and fix whitespace, remove
1295         redundant parens.
1296
1297 2005-11-27  Steven Bosscher  <stevenb@suse.de>
1298
1299         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
1300         has EH predecessor edges.
1301
1302 2005-11-26  Eric Christopher  <echristo@apple.com>
1303
1304         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
1305         register stalls by zero extending to the full register.
1306
1307 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
1308
1309         * config/floatunsisf.c, config/floatunsidf.c,
1310         config/floatunsixf.c, config/floatunsitf.c: New files.
1311         * config/ia64/t-hpux: Add floatunsitf.c.
1312         * config/ia64/ia64.c (ia64_init_libfuncs): Use
1313         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
1314
1315 2005-11-26  Richard Henderson  <rth@redhat.com>
1316
1317         * c-lex.c (pragma_lex): Rename from c_lex.
1318         * c-pch.c: Update for pragma_lex rename.
1319         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
1320         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
1321         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
1322         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
1323         * doc/tm.texi: Likewise.
1324
1325 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
1326
1327         PR middle-end/23669
1328         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
1329         when overflow is undefined.
1330
1331 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
1332
1333         * doc/md.texi (Insn Canonicalizations): Refer to the
1334         function commutative_operand_precedence for further rules.
1335
1336 2005-11-25  Roger Sayle  <roger@eyesopen.com>
1337
1338         PR middle-end/21309
1339         * expmed.c (choose_mult_variant): Return immediately when mult_cost
1340         is less than zero.  Limit mult_cost to a reasonable upper bound for
1341         the synthetic multiplication sequence.
1342
1343 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1344
1345         PR middle-end/25022
1346         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1347         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
1348         Lookup the explicit replacement functions for any unlocked
1349         stdio builtin transformations.
1350
1351 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
1352
1353         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
1354         earlyclobber.
1355         * targhooks.c (default_secondary_reload): Don't require operand 2
1356         for an input reload to be earlyclobber.
1357
1358 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1359
1360         * fold-const.c (negate_mathfn_p): Fix comment and add support
1361         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
1362         BUILT_IN_ATANH.
1363
1364 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1365
1366         PR middle-end/24998
1367         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
1368         _Q_ulltoq for unsigned conversions from SImode and DImode to
1369         TFmode.
1370
1371 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
1372
1373         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
1374         (__floatundidf, __floatundisf): Likewise.
1375
1376 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
1377
1378         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
1379         (rs6000_override_options): Remove initialization of
1380         rs6000_sr_alias_set.
1381         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
1382         (rs6000_emit_stack_tie): Same.
1383         (emit_frame_save): Same.
1384         (gen_frame_mem_offset): Same.
1385         (rs6000_emit_prologue): Same.
1386         (rs6000_emit_epilogue): Same.
1387
1388 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1389
1390         PR middle-end/24989
1391         * fold-const.c (fold_build): Convert bool_var != 1 and
1392         bool_var == 0 to !bool_var.
1393
1394 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1395
1396         PR middle-end/24990
1397         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
1398         for C being INTEGER_CST.  Likewise for !=.
1399
1400 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1401
1402         PR middle-end/24998
1403         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
1404         unsigned conversions from SImode to TFmode.
1405
1406 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1407
1408         * expr.c (expand_expr_real_1): Fix error in last change.
1409
1410 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
1411
1412         * caller-save.c: (this_insn_sets): Move into:
1413         (save_call_clobbered_regs).
1414         (mark_set_regs): Get this_insn_sets from data.
1415
1416         (save_call_clobbered_regs): Take sets of the return value by
1417         sibcalls into account.
1418
1419 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
1420         PR target/21623:
1421
1422         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
1423         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
1424         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
1425         (memory_move_secondary_cost, init_reg_autoinc): Remove
1426         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
1427         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
1428         secondary_reload_class call.
1429         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
1430         callers.
1431         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
1432         (push_secondary_reload): Use secondary_reload target hook.
1433         (secondary_reload_class, scratch_reload_class): New functions.
1434         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
1435         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
1436         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
1437         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
1438         (secondary_reload_class, scratch_reload_class): Declare.
1439         * reload1.c: Include target.h.
1440         (reload_adjust_reg_for_temp): New function.
1441         (reload_adjust_reg_for_icode): Likewise.
1442         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
1443         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
1444         call.
1445         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
1446         for inheritance.  Support case when both secondary & tertiary reloads
1447         are for intermediate registers.
1448         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
1449         with secondary_reload_class call.  Support case when both secondary
1450         & tertiary reloads are for intermediate registers.
1451         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
1452         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
1453         * target.h (secondary_reload_info): New struct / typedef.
1454         (struct gcc_target): New member secondary_reload.
1455         * targhooks.c Include reload.h, optabs.h and recog.h.
1456         (default_secondary_reload): New function.
1457         * targhooks.h (default_secondary_reload): Declare.
1458         * doc/tm.texi: Document secondary_reload target hook.  Update
1459         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
1460         * doc/md.texi: Likewise.
1461
1462         * sh-protos.h (sh_secondary_reload): Declare.
1463         * sh.c (TARGET_SECONDARY_RELOAD): Override.
1464         (sh_secondary_reload): New function.
1465         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
1466         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1467         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
1468         (HAVE_SECONDARY_RELOADS): Define.
1469         * sh.md (reload_indf): Rename to:
1470         (reload_indf__frn).
1471         (reload_outdf): Rename to:
1472         (reload_outdf__RnFRm).
1473         (reload_insf): Rename to:
1474         (reload_insf__frn).
1475         (reload_insi): Rename to:
1476         (reload_insi__i_fpul).
1477
1478 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
1479
1480         * configure.ac: Require at least texinfo 4.4.
1481         * configure: Regenerate.
1482
1483         * doc/install.texi (Tools/packages necessary for building GCC):
1484         Update required version of texinfo to at least 4.4.
1485         (Installing GCC: Building): Update required version of texinfo
1486         to at least 4.4.
1487         (Installing GCC: Final installation): Update required version
1488         of texi2dvi to at least 4.4.
1489         (Host/target specific installation notes for GCC): Update required
1490         version of texinfo to at least 4.4.
1491
1492 2005-11-24  Richard Guenther  <rguenther@suse.de>
1493         Dirk Mueller <dmueller@suse.de>
1494
1495         PR c++/14024
1496         * c-common.h (strict_aliasing_warning): Declare.
1497         * c-common.c (strict_aliasing_warning): New function,
1498         split out from ...
1499         * c-typeck.c (build_c_cast): ... here.
1500
1501 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
1502
1503         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1504         to order operands.
1505         (swap_commutative_operands_with_target): New.
1506
1507 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
1508
1509         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
1510         also when doing PRE, rather than only for global CPROP.
1511
1512 2005-11-24  Ben Elliston  <bje@au.ibm.com>
1513
1514         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
1515         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
1516         formatting.
1517         (expand_twoval_unop): Likewise.
1518         (widen_clz): Likewise.
1519         (expand_parity): Likewise.
1520         (expand_unop): Likewise.
1521         (emit_cmp_and_jmp_insn_1): Likewise.
1522         (prepare_float_lib_cmp): Likewise.
1523
1524 2005-11-24  Ben Elliston  <bje@au.ibm.com>
1525
1526         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
1527         Remove unused `class' variable.
1528
1529 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1530
1531         PR c++/21667
1532         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
1533         C/C++ diagnostic function warn_array_subscript_with_type_char.
1534         * c-common.h (warn_array_subscript_with_type_char): Declare.
1535         * c-common.c (warn_array_subscript_with_type_char): Define.
1536
1537 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1538
1539         PR c/21668
1540         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
1541         compiling at the intersection of C and C++.
1542
1543 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
1544
1545         * doc/invoke.texi: For man pages, include gcc-vers.texi.
1546         List @file in the option summary.  Include the libiberty
1547         documentation for @file.
1548         * gcc.c (main): Call expandargv.
1549         * Makefile.in (gcc-vers.texi): Define srcdir.
1550
1551 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
1552
1553         * passes.c (init_optimization_passes): Document
1554         sequencing of passes.
1555
1556 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
1557
1558         * config/m68k/predicates.md (pcrel_address, extend_operator,
1559         post_inc_operand, pre_dec_operand): Remove redundant
1560         conditionals.
1561         (const_uint32_operand, const_sint32_operand): Use gcc_assert
1562         instead of abort.
1563         (valid_dbcc_comparison_p): Rewrite in the lisp style.
1564
1565 2005-11-23  Ben Elliston  <bje@au.ibm.com>
1566
1567         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
1568
1569 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
1570
1571         Preparatory work for PR target/21623:
1572         * alpha.c (secondary_reload_class): Rename to:
1573         (alpha_secondary_reload_class).
1574         * alpha.h, alpha-protos.h: Likewise.
1575         * mn10300.c (secondary_reload_class): Rename to:
1576         (mn10300_secondary_reload_class).
1577         * mn10300.h, mn10300-protos.h: Likewise.
1578         * pa.c (secondary_reload_class): Rename to:
1579         (pa_secondary_reload_class).
1580         * pa.h, pa-protos.h: Likewise.
1581         * rs6000.c (secondary_reload_class): Rename to:
1582         rs6000_secondary_reload_class.
1583         * rs6000.h, rs6000-protos.h: Likewise.
1584
1585 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1586
1587         PR middle-end/22561
1588         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
1589
1590 2005-11-22  Ian Lance Taylor  <ian@airs.com>
1591
1592         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
1593         a mode_class.
1594         (prepare_cmp_insn): Likewise.
1595
1596 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
1597
1598         PR target/23435
1599         * m68k.md (zero_extendsidi2): Force operands[1] to a register
1600         if both operands[0] and operands[1] are memory.
1601
1602 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
1603
1604         PR middle-end/23606
1605         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
1606         COMPARISON_CLASS_P and an integral types create create a new
1607         expression with the new type and fold that.
1608
1609 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
1610
1611         PR target/24988
1612         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
1613         to SUBTARGET_OS_CPP_BUILTINS.
1614
1615 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
1616
1617         * arm.c (emit_set_insn): New function.
1618         (arm_split_constant): Call it.
1619         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
1620         (arm_legitimize_address): Likewise.  Use plus_constant.
1621         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
1622         (thumb_expand_prologue): Likewise.
1623         (arm_gen_load_multiple): Use VOIDmode in SET.
1624         (arm_gen_store_multiple): Likewise.
1625         (vfp_emit_fstmx): Likewise.  Use plus_constant.
1626         (emit_multi_reg_push): Likewise.
1627         (emit_sfm): Use plus_constant.
1628
1629 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
1630
1631         PR target/24954
1632         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
1633         typo last change.
1634
1635 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
1636
1637         PR middle-end/24950
1638         * expmed.c (store_bit_field): Don't attempt to insv a field
1639         larger than the reg.
1640
1641 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
1642
1643         PR target/24954
1644         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
1645         explicit sign extension, not a (char) cast.
1646
1647 2005-11-22  Ben Elliston  <bje@au.ibm.com>
1648
1649         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
1650         GET_MODE_CLASS (x) == MODE_FLOAT.
1651         * config/i386/i386.c: Likewise.
1652         * config/rs6000/xcoff.h: Likewise.
1653         * config/rs6000/linux64.h: Likewise.
1654         * config/rs6000/rs6000.c: Likewise.
1655         * config/rs6000/rs6000.h: Likewise.
1656         * config/rs6000/predicates.md: Likewise.
1657         * config/rs6000/sysv4.h: Likewise.
1658
1659 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1660
1661         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
1662         flag_pic is set.
1663
1664         * config/alpha/freebsd.h, config/alpha/linux.h,
1665         config/arm/linux-elf.h, config/bfin/bfin.h,
1666         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
1667         config/i386/beos-elf.h, config/i386/gnu.h,
1668         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
1669         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
1670         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
1671         config/rs6000/linux64.h, config/rs6000/sysv4.h,
1672         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
1673         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
1674         config/sparc/linux.h, config/sparc/linux64.h,
1675         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
1676
1677         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
1678         are both defined when either flag -fpic or -fPIC are used.
1679
1680 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
1681
1682         * config/fp-bit.c (clzusi): New function.
1683         (si_to_float, usi_to_float): Use it to compute proper shift.
1684         (usi_to_float): Preserve guard bits when shifting right.
1685         * libgcc-std.ver (GCC_4.2.0): New version.
1686         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
1687         __floatundisf): New functions.
1688         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
1689         __floatundisf): Declare.
1690         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
1691         _floatundixf, and _floatunditf.
1692         * optabs.c (expand_float): If target does not define a pattern for
1693         signed or unsigned conversion, use an unsigned libcall instead of
1694         a signed one.
1695         (init_optabs): Initialize ufloat_optab.
1696
1697 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
1698
1699         * config/rs6000/rs6000.opt (mmulhw): New option.
1700         * doc/invoke.texi (-mmulhw): Document.
1701         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
1702         for 405 and 440.
1703         * config/rs6000/rs6000.md: Add half-word multiply and
1704         multiply-accumulate instructions for 405 and 440.
1705
1706 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
1707
1708         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
1709         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
1710         default now includes a linker group which makes the RTEMS one nest.
1711
1712 2005-11-22  Ben Elliston  <bje@au.ibm.com>
1713
1714         * cse.c (fold_rtx): Typo fix.
1715         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
1716
1717 2005-11-21  Richard Henderson  <rth@redhat.com>
1718
1719         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
1720         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
1721
1722         * c-tree.h (lookup_name): Move declaration ...
1723         * c-common.h (lookup_name): ... here.
1724         * config/darwin-c.c: Include c-common.h.
1725         * config/t-darwin: Update dependencies.
1726
1727 2005-11-22  Ben Elliston  <bje@au.ibm.com>
1728
1729         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
1730         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
1731         * genopinit.c (gen_insn): Likewise.
1732         * reload.c (find_equiv_reg): Likewise.
1733         * loop.c (load_mems): Likewise.
1734         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
1735         * cse.c (find_comparison_args, fold_rtx): Likewise.
1736         * dwarf2out.c (add_const_value_attribute): Likewise.
1737         * expr.c (convert_move): Likewise.
1738         * recog.c (general_operand, register_operand): Likewise.
1739         * reg-stack.c (replace_reg): Likewise.
1740         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
1741         * c-common.c (handle_vector_size_attribute): Likewise.
1742         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1743         (simplify_binary_operation_1): Likewise.
1744         (simplify_const_binary_operation): Likewise.
1745         (simplify_relational_operation): Likewise.
1746         (simplify_const_relational_operation): Likewise.
1747         (simplify_immed_subreg): Likewise.
1748         * emit-rtl.c (gen_lowpart_common): Likewise.
1749         * expmed.c (expand_mult): Likewise.
1750         * stor-layout.c (layout_type): Likewise.
1751
1752 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
1753
1754         PR target/24951
1755         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
1756         cst2 only for SPE vectors.
1757
1758 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
1759
1760         PR target/24953
1761         * config/rs6000/predicates.md (vrsave_operation): Check
1762         UNSPEC_VOLATILE value.
1763
1764 2005-11-21  Jan Hubicka  <jh@suse.cz>
1765
1766         PR tree-optimization/24653
1767         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
1768
1769 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
1770
1771         * config/i386/predicates.md (ax_reg_operand): New predicate.
1772         (memory_displacement_only_operand): New predicate.
1773         * config/i386/i386.md ("modrm" attribute): Return 0 if one
1774         operand is AX register and the other operand is memory operand
1775         with displacement only.
1776
1777 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
1778
1779         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
1780         if we don't care about NaNs or Infinities.
1781
1782 2005-11-20  Ian Lance Taylor  <ian@airs.com>
1783
1784         PR rtl-optimization/24883
1785         * combine.c (combinable_i3pat): When checking whether the
1786         destination of i3 is used in i3, consider paradoxical subregs.
1787
1788 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
1789
1790         PR middle-end/20583
1791         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
1792
1793 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
1794
1795         * combine.c (try_combine): Do not run subst on i1src and i2src in
1796         the case of generating a PARALLEL for a comparison.
1797
1798 2005-11-20  Richard Henderson  <rth@redhat.com>
1799
1800         PR 24931
1801         * tree-sra.c (struct sra_elt): Add all_no_warning.
1802         (struct sra_walk_fns) <use>: Add use_all argument.
1803         (sra_walk_expr): Pass it.
1804         (sra_walk_modify_expr): Likewise.
1805         (scalarize_ldst): Likewise.
1806         (scan_use): Update for new argument.
1807         (mark_no_warning): New.
1808         (scalarize_use): Use it.
1809
1810 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
1811
1812         * expr.c (expand_expr_real): Use usmul_optab for widening
1813         signed * unsigned multiplies.
1814         * genopinit.c (optabs): Add usmul_widen_optab.
1815         * optabs.c (init_optabs): Likewise.
1816         * optabs.h (enum optab_index): Add OTI_usmul_widen.
1817         (usmul_widen_optab): Define.
1818         * config/bfin/bfin.md (usmulhisi3): New pattern.
1819
1820         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
1821
1822 2005-11-20  Graham Stott <btinternet.com>
1823
1824         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
1825
1826 2005-11-20  Andreas Schwab  <schwab@suse.de>
1827
1828         PR target/24757
1829         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
1830         insn.
1831
1832 2005-11-19  Richard Henderson  <rth@redhat.com>
1833
1834         PR tree-opt/24665
1835         * tree-gimple.c (is_gimple_id): Export.
1836         * tree-gimple.h (is_gimple_id): Declare.
1837         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
1838         (get_default_value): Use it.
1839         (maybe_fold_stmt_indirect): Likewise.
1840
1841 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
1842
1843         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
1844         than VR1 or vice-versa.
1845
1846 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
1847
1848         PR middle-end/24912
1849         PR middle-end/24750
1850         * reload.c (find_reloads_address_1): Mention dependency on
1851         gen_reload.
1852         * reload1.c (gen_reload): For IN with an unary operation, try
1853         moving inner expression to OUT if trivial SET is not valid.
1854         Confirm that the result is valid.  Move common code block into...
1855         (emit_insn_if_valid_for_reload): New function.
1856
1857 2005-11-19  Richard Guenther  <rguenther@suse.de>
1858
1859         * fold-const.c (fold_indirect_ref_1): Make sure we fold
1860         ARRAY_REFs of constant strings.
1861
1862 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
1863
1864         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
1865         fatal format string.
1866
1867 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
1868
1869         * combine.c (make_compound_operation): Swap operands of
1870         commutative operation if necessary before returning.
1871
1872 2005-11-19  Richard Guenther  <rguenther@suse.de>
1873
1874         PR middle-end/23294
1875         * fold-const.c (fold_plusminus_mult_expr): New function.
1876         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
1877         cases, remove now unnecessary code.
1878
1879 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
1880
1881         * gensupport.c (old_preds): Rename to std_preds, add special field.
1882         (struct old_pred_table): Rename to struct std_pred_table, add special
1883         field.
1884         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
1885         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
1886         (init_predicate_table): Adjust, and set along the way whether a
1887         predicate is special.
1888
1889 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
1890
1891         * BASE-VER: Change to 4.2.0.
1892
1893 2005-11-18  James E Wilson  <wilson@specifix.com>
1894
1895         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
1896         returning it.
1897
1898 2005-11-18  Mike Stump  <mrs@apple.com>
1899
1900         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
1901         * config/darwin-c.c (darwin_pragma_unused): Likewise.
1902         * c-decl.c (lookup_name_two) Remove.
1903         * c-tree.h (lookup_name_two): Remove.
1904         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
1905         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
1906         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
1907         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
1908
1909 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
1910
1911         PR target/24914
1912         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
1913         when not generating code to use that co-processor.
1914
1915 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
1916
1917         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
1918         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
1919         these functions are now in tree-phinodes.c.
1920
1921 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
1922
1923         * config/bfin/bfin.md (trap): New pattern.
1924
1925 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1926
1927         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
1928         on types.
1929
1930         * expr.c (expand_expr_real): Don't call record_block_change unless
1931         ib_boundaries_block is non-null
1932
1933         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
1934
1935         * fold-const.c (build_range_check): Use proper type for subtraction
1936         when merging lower bound.
1937
1938 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
1939
1940         PR rtl-optimization/24497
1941         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
1942         the copied insn.
1943
1944 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
1945
1946         * tree-scalar-evolution.c (expression_expensive_p): New function.
1947         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
1948
1949 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
1950
1951         * config/bfin/crtlibid.s: New file.
1952
1953 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1954
1955         PR target/24348
1956         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
1957         when not using sjlj exceptions.
1958         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
1959         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1960         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
1961         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
1962         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
1963         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
1964         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
1965         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
1966         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
1967         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
1968         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
1969         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
1970         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
1971         defines.
1972         * config/pa/hpux-unwind.h: New file.
1973
1974 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
1975
1976         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
1977         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
1978         * varasm.c (do_assemble_alias): Adjust call.
1979         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
1980         is defined.
1981         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
1982
1983 2005-11-17  James E Wilson  <wilson@specifix.com>
1984
1985         * tree.def (FUNCTION_DECL): Correct typo in comment.
1986
1987 2005-11-17  Richard Henderson  <rth@redhat.com>
1988
1989         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
1990         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
1991         and DW_CFA_def_cfa_sf.
1992         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
1993         (dbx_reg_number): Don't assert particular registers here.
1994         (based_loc_descr): ... do it here instead.  Fold in ...
1995         (eliminate_reg_to_offset): ... this function.
1996         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
1997         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
1998         * unwind-dw2.c (execute_cfa_program): Apply data align factor
1999         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
2000         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
2001         (instantiate_virtual_regs): Likewise.
2002         * var-tracking.c (adjust_stack_reference): Likewise.
2003         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
2004
2005 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2006
2007         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
2008         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
2009         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
2010         crtlibid.o.
2011         ($(T)crtlibid.o): New rule.
2012
2013 2005-11-16  Richard Guenther  <rguenther@suse.de>
2014
2015         PR middle-end/24851
2016         * fold-const.c (extract_array_ref): Return byte offset
2017         in all cases.
2018         (fold_binary): Fold &x[a] CMP &x[b] to
2019         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
2020         behavior.
2021
2022 2005-11-16  Richard Henderson  <rth@redhat.com>
2023
2024         PR middle-end/23497
2025         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
2026         parts of an SSA_NAME.
2027
2028 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
2029
2030         PR target/24861
2031         * arm.md (split for movsf with immediate): Restrict split to insns
2032         that set a general register.
2033
2034 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2035
2036         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
2037         uw_update_context.
2038         * unwind-dw2.c (uw_advance_context): Likewise.
2039         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
2040         _Unwind_SjLj_Unregister.
2041         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
2042
2043 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2044
2045         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
2046
2047 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2048
2049         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
2050         langhook to get a DImode integer type.
2051
2052 2005-11-16  Richard Henderson  <rth@redhat.com>
2053             J"orn Rennecke <joern.rennecke@st.com>
2054             Ulrich Weigand  <uweigand@de.ibm.com>
2055
2056         PR rtl-opt/24160
2057         PR target/24621
2058         * reload1.c (reg_equiv_invariant): New.
2059         (reload): Allocate, initialize, and free it.
2060         (calculate_needs_all_insns): Check it when skipping equivalence
2061         setting insns.
2062         (alter_reg): Likewise.
2063         (eliminate_regs_1): Rename from eliminate_regs.  Add new
2064         may_use_invariant argument; only use reg_equiv_invariant when true.
2065         (eliminate_regs): New.
2066         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
2067         a context for which may_use_invariant may be true.
2068
2069 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2070
2071         * fold-const.c (const_binop): Don't constant fold the operation
2072         if the result has overflowed and flag_trapping_math.
2073         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
2074
2075 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2076
2077         * config/arm/unwind-arm.c (abort): Add prototype here.
2078         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
2079         (struct phase1_vrs): Add prev_sp.
2080         (unwind_phase2_forced): Save the original core registers instead of
2081         modifying entry_vrs.  Take a new flag argument for resuming unwinding
2082         and set action flags accordingly.  Always set _US_END_OF_STACK when
2083         get_eit_entry fails.  Unwind before calling the stop function.
2084         (_Unwind_GetCFA): New function.
2085         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
2086         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
2087         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
2088         just call unwind_phase2_forced.
2089         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
2090         * config/arm/unwind-arm.h (abort): Remove prototype.
2091         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
2092         prototypes.
2093         (_Unwind_GetCFA): New prototype.
2094         * config/arm/pr-support.c (abort): Add prototype here.
2095         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
2096         forced unwinding.
2097         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
2098         not schedule the prologue with non-call exceptions and EABI.
2099
2100 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
2101
2102         * config/arm/unwind-arm.h: Reorder interface function declarations.
2103         (_URC_END_OF_STACK): New enumeration value.
2104         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
2105         (struct _Unwind_Control_Block): Document reserved field use.
2106         (_Unwind_Stop_Fn): New typedef.
2107         (_Unwind_ForcedUnwind): Declare.
2108         (_Unwind_Resume_or_Rethrow): Declare.
2109         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
2110         argument.  Adjust.
2111         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
2112         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
2113         (UCB_FORCED_STOP_ARG): New.
2114         (search_EIT_table): Update boundary condition checks.
2115         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
2116         (unwind_phase2): Replace for with do..while.
2117         (unwind_phase2_forced): New.
2118         (__gnu_Unwind_RaiseException): Replace for with do..while.
2119         (__gnu_Unwind_ForcedUnwind): New.
2120         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
2121         Use appropriate phase2 unwinder.
2122         (__gnu_Unwind_Resume_or_Rethrow): New.
2123         (__gnu_unwind_pr_common): Cope with forced unwinding.
2124
2125 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
2126
2127         PR target/24772
2128         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
2129
2130         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
2131         roundsf2): Remove "s" from mnemonic.
2132
2133 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
2134
2135         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
2136         __PIC__ is defined.
2137         * config/bfin/crtn.s: Change epilogues to match.
2138         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
2139         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
2140         __PIC__ and __pic__.
2141
2142 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2143
2144         PR 24357
2145         * doc/invoke.texi: Distinguish between free and fixed form instead of
2146         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
2147         languages.
2148         * gcc.c (default_compilers): Remove double entries, add entries for
2149         suffixes '.F90' and '.F95'.
2150
2151 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
2152
2153         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
2154         in the stack probing loop.
2155
2156 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
2157
2158         * configure.ac: Use .machine power5 not power5x.
2159         * configure: Regenerate.
2160
2161 2005-11-15  Mike Stump  <mrs@apple.com>
2162
2163         * c-decl.c (lookup_name_two): Add.
2164         * c-tree.h (lookup_name_two): Likewise.
2165         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
2166         * config/darwin-c.c (darwin_pragma_unused): Likewise.
2167
2168 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
2169
2170         PR rtl-optimization/23392
2171         * regrename.c (enum scan_actions) Add mark_access.
2172         (scan_actions_name): Ditto.
2173         (scan_rtx_reg): Handle mark_access.
2174         (scan_rtx_address): Do nothing for mark_access.
2175         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
2176         and regs in REG_INC notes before closing chains for dead regs.
2177         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
2178         opening chains for new writes.
2179
2180 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
2181
2182         * c.opt (ffixed-line-length-none): New.
2183
2184 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
2185
2186         * mklibgcc.in: Change contents of eh_dummy.c.
2187
2188 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
2189
2190         * loop.c (scan_loop): Do not insert temporaries for hard registers.
2191
2192 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
2193
2194         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
2195         of making syscalls.
2196         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
2197
2198 2005-11-15  Jan Hubicka  <jh@suse.cz>
2199
2200         * invoke.texi (large-unit-insns): Document.
2201         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
2202         * params.def (large-unit-insns): New param.
2203
2204 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
2205
2206         PR target/24869
2207         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
2208         special register for operand 3.  Reindent constraints to align
2209         them vertically.
2210
2211 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
2212
2213         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
2214         -mpopcntb, -mfprnd. Add -mcpu=power5+.
2215         * configure.ac: Add test for FP rounding instructions.
2216         * configure: Regenerate.
2217         * config.in: Regenerate.
2218         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2219         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
2220         features enabled.
2221         * config/rs6000/rs6000.opt (mfprnd): New.
2222         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
2223         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
2224         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
2225         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
2226         (TARGET_FPRND): New.
2227         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
2228         UNSPEC_FRIZ): New.
2229         (btrunc<mode>2): New.
2230         (ceil<mode>2): New.
2231         (floor<mode>2): New.
2232         (round<mode>2): New.
2233
2234 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
2235
2236         * gcc.c (version_compare_spec_function): Use fatal() rather than
2237         abort().
2238
2239         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
2240         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
2241         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
2242         as empty.
2243         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
2244         link in crt2.o.
2245
2246         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
2247         on -mmacosx-version-min setting.
2248
2249 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2250
2251         PR 24840
2252         * tree-vrp.c (infer_value_range): Return false if STMT is a
2253         block terminator and its basic block has no successors.
2254
2255 2005-11-14  Mike Stump  <mrs@apple.com>
2256
2257         * config/i386/i386.c (override_options): -masm=intel isn't
2258         supported on darwin.
2259         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
2260
2261 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
2262
2263         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
2264         vfork after including auto-host.h.
2265
2266 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
2267
2268         PR rtl-optimization/22002
2269         * combine.c (distribute_notes): Detect cases where a reg dies
2270         two or more times in a bb, including on the insn we are combining,
2271         and place the death note on the correct range.
2272
2273 2005-11-14  Dale Johannesen  <dalej@apple.com>
2274
2275         * expmed.c (store_bit_field):  Add offset unconditionally for
2276         memory targets.
2277         (extract_bit_field):  Don't force extzv or extv operand into
2278         a register if field is too big.
2279
2280 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
2281
2282         * config/arm/arm.c (pic_labelno): New.
2283         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
2284         LABEL_REF.  Pass only the labelno to PIC insns.
2285         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
2286         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
2287         * arm.md (UNSPEC_PIC_LABEL): New constant.
2288         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
2289         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
2290         Use the correct label prefix.
2291
2292 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
2293
2294         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
2295         REQ_EQUIV note.
2296
2297 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
2298
2299         * loop-invariant.c: Include tm_p.h.
2300         * Makefile.in: Updated.
2301
2302 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2303
2304         * pa.c (store_reg): Revise generation of frame notes in large frames.
2305         (set_reg_plus_d): Likewise.
2306
2307 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
2308
2309         PR tree-optimization/24709
2310         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
2311         loop check.
2312
2313 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2314
2315         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
2316         and duplicate declaration of pthread_self.
2317
2318 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2319             Ian Lance Taylor  <ian@airs.com>
2320
2321         PR middle-end/24003
2322         * calls.c (expand_call): If TARGET is a MEM and some part of the
2323         argument area has been saved, force TARGET to a register.
2324
2325 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
2326
2327         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
2328         checking.
2329
2330 2005-11-13  Jason Merrill  <jason@redhat.com>
2331
2332         PR c++/22489
2333         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
2334         lazily declared methods.
2335         (force_decl_die): Stop if forcing out the context already make a
2336         DIE for the decl.
2337         (force_type_die): Likewise.
2338
2339 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
2340
2341         PR middle-end/24820
2342         * builtins.c (integer_valued_real_p): Add break in
2343         REAL_CST having TREE_OVERFLOW set.
2344
2345 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
2346
2347         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
2348         addressing modes during calculation of costs.
2349
2350 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2351
2352         * function.c (assign_stack_local_1): Restrict sanity check
2353         on frame size overflow to 32-bit and above platforms.
2354
2355 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2356
2357         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
2358         * config/cris/cris.c: Include reload.h.
2359         (cris_initial_elimination_offset): New function.
2360         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
2361         Prototype.
2362
2363 2005-11-12  Richard Guenther  <rguenther@suse.de>
2364
2365         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
2366
2367 2005-11-12  Jan Hubicka  <jh@suse.cz>
2368
2369         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
2370         to compare against 0 when possible.
2371
2372 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
2373
2374         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
2375         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
2376         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
2377         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
2378         in the new order.
2379
2380 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2381
2382         * recog.c (constrain_operands) <case 'g'>: For a match, require
2383         that a non-register matches general_operand when strict >= 0.
2384
2385 2005-11-11  Steven Bosscher  <stevenb@suse.de>
2386
2387         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
2388         previous checkin.
2389
2390 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2391
2392         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
2393         (memory_address_same): New.
2394         (dse_optimize_stmt): Call memory_address_same.
2395
2396 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2397
2398         PR middle-end/24750
2399         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
2400         ZERO_EXTEND>: New cases.
2401
2402 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2403
2404         * longlong.h (__clz_tab): Always provide.
2405
2406 2005-11-11  Steven Bosscher  <stevenb@suse.de>
2407
2408         PR 24265
2409         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
2410         can be assigned to.
2411         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
2412         before check_maybe_invariant.
2413         (move_invariant_reg): Use gen_move_insn instead of replacing
2414         SET_DEST with the temporary for the invariant.
2415         (move_loop_invariants): If checking is enabled, do internal
2416         consistency checks after completing the pass.
2417
2418 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
2419
2420         PR 24644
2421         * common.opt (Wvolatile-register-var): New.
2422         * varasm.c (make_decl_rtl): Only emit warning when option
2423         specified.  Clarify warning message.
2424         * doc/invoke.texi (Wvolatile-register-var): Document new option.
2425
2426         * doc/md.texi (copysign): Document standard named pattern.
2427
2428 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
2429
2430         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
2431         bytes when align is 2.
2432         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
2433         by the first instruction of the loop.
2434
2435 2005-11-11  Jason Merrill  <jason@redhat.com>
2436
2437         PR c++/24686
2438         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
2439         the cleanup list.
2440
2441 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
2442
2443         PR rtl-optimization/22509
2444         * local-alloc.c (memref_used_between_p): Check whether a function call
2445         could not reference the memref.
2446
2447 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
2448
2449         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
2450         algorithm so as to choose the best, not the worst, alternative.
2451         Reset accumulated register class before processing next alternative.
2452
2453 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2454
2455         PR target/24445
2456         * calls.c (expand_call): Copy a return value to a plain register
2457         if needed.
2458
2459 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
2460
2461         PR target/24778
2462         * varasm.c (assemble_name): Recompute name only for transparent
2463         aliases.
2464
2465 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
2466
2467         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
2468
2469 2005-11-04  Jeff Law  <law@redhat.com>
2470
2471         PR middle-end/23181
2472         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
2473         perform reassociation if the parent statement will not die as
2474         a result of the optimization.
2475
2476 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
2477
2478         * tree-ssa-alias.c (compute_may_aliases): Remove call to
2479         delete_old_heap_vars.
2480         * tree-dfa.c (referenced_var_remove): Remove function.
2481         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
2482         (delete_tree_ssa): Remove call to delete_old_heapvars.
2483         Add call to delete_alias_heapvars.
2484         * tree-flow.h (referenced_var_remove): Remove prototype
2485         (init_alias_heapvars): New prototype.
2486         (delete_alias_heapvars): Ditto.
2487         * Makefile.in (tree-ssa-structalias.o): Add
2488         gt-tree-ssa-structalias.o
2489         (GTFILES): Add tree-ssa-structalias.h and
2490         tree-ssa-structalias.c.
2491         (s-gtype): Add gt-tree-ssa-structalias.h.
2492         * tree-ssa-structalias.c (heapvars): Remove.
2493         (oldheapvars): Remove.
2494         (heapvar_for_stmt): New variable.
2495         (heapvar_lookup): New function.
2496         (heapvar_insert): Ditto.
2497         (get_constraint_for): See if we have an old heapvar
2498         to reuse.
2499         (init_alias_heapvars): New function.
2500         (delete_alias_heapvars): Ditto.
2501         Add include of gt-tree-ssa-structalias.h.
2502
2503 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2504
2505         PR middle-end/22127
2506         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
2507
2508 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2509
2510         * tree.c (int_fits_type_p): Only look at the base type
2511         if it has the same precision as the original type.
2512
2513 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
2514
2515         PR other/4372
2516         * varasm.c (assemble_alias): Use %q+D in the error
2517         message instead of %J and %qD.
2518
2519 2005-11-10  Richard Guenther  <rguenther@suse.de>
2520
2521         * gcse.c (free_ldst_entry): Only free hashtable if
2522         it exists.
2523
2524 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2525
2526         * function.c (assign_stack_local_1): Issue an error message if
2527         the frame size overflows in the signed target arithmetics.
2528
2529 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2530
2531         * tree.c (build_qualified_type): Chain the new type to the original
2532         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
2533         a POINTER_TYPE or a REFERENCE_TYPE respectively.
2534         (build_pointer_type_for_mode): Only return unqualified types.
2535         (build_reference_type_for_mode): Likewise.
2536
2537 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2538
2539         * Makefile.in (gnucompare): Do comparison of all files using one of
2540         the chosen methods and only afterwards decide if just warning should
2541         be issued or comparison failure raised.
2542
2543 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2544
2545         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
2546         (noce_try_abs): Negate if the comparison is reversed.
2547         Look only one instruction backwards for a REG_EQUAL note.
2548
2549 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
2550
2551         PR other/4372
2552         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
2553         gthr-tpf.h: Define __gthrw.  For all identifiers that might
2554         be weak, introduce weakrefs or non-weak aliases with __gthrw,
2555         and prefix all uses with __ghtrw.
2556
2557 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
2558
2559         PR other/4372
2560         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
2561         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
2562         * c-common.c (handle_weakref_attribute): New.
2563         (c_common_attribute_table): Add weakref.
2564         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
2565         in the assembler.
2566         * configure, config.in: Rebuilt.
2567         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
2568         * doc/extend.texi: Document weakref attribute.
2569         * varasm.c (ultimate_transparent_alias_target): New
2570         (assemble_name): Use it.
2571         (weak_finish_1): Split out of...
2572         (weak_finish): ... and deal with weakrefs in...
2573         (weakref_targets): ... new list.
2574         (globalize_decl): Clean up weakref_targets.
2575         (do_assemble_alias): Handle weakrefs.
2576         (finish_aliases_1): Do not reject weakrefs to external symbols.
2577         (assemble_alias): Handle weakrefs.
2578
2579 2005-11-09  Richard Guenther  <rguenther@suse.de>
2580
2581         PR tree-optimization/24716
2582         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
2583         t_bool to track results from follow_ssa_edge.
2584
2585 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2586
2587         * final.c (force_source_line): New global variable.
2588         (final_scan_insn): Set it to true instead of clearing last_filename.
2589         (notice_source_line): Return true if force_source_line is true,
2590         unless source info is absent.
2591
2592 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
2593
2594         PR c/24644
2595         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
2596         a linkage name for a variable if it a register variable.
2597         * c-decl.c (grokdeclarator): Global register variables
2598         should be set as PUBLIC.
2599
2600 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
2601
2602         PR 24624
2603         * config/s390/s390.c (struct s390_frame_layout): New fields
2604         first_save_gpr_slot and last_save_gpr_slot.
2605         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
2606         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
2607         first_save_gpr and last_save_gpr with the _slot variants.
2608         (s390_register_info): Calculate first_save_gpr_slot and
2609         last_save_gpr_slot using regs_ever_live.
2610
2611 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
2612
2613         PR 24623
2614         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
2615         for a function containing a landing pad.
2616
2617 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
2618
2619         PR 24034
2620         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
2621         is live afterwards.
2622
2623 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2624
2625         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
2626         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
2627
2628 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
2629
2630         Add ms2 support
2631         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
2632         constants.
2633         (call,load,store): New insn types.
2634         (mem_access, branch_access): Adjust reservation conditions.
2635         (define_delay): Adjust condition.
2636         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
2637         type.
2638         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
2639         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
2640         insn type.
2641         (call_internal, call_value_internal, return_internal,
2642         return_interrupt_internal, eh_return_internal, indirect_jump,
2643         tablejump): Set call insn type.
2644         (blockage, ei, di): Use appropriate unspec const.
2645         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
2646         (ms1_get_attr_type): Adjust to give load & store types.
2647         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
2648         backwards past a barrier.
2649         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
2650         branch scheduling.
2651         (struct branch_info, struct label_info): New.
2652         (ms1_labels): New.
2653         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
2654         (ms1_machine_reorg): New.
2655         (TARGET_MACHINE_DEPENDENT_REORG): Override.
2656         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
2657         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
2658         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
2659         (TARGET_MS2): New.
2660
2661 2005-11-09  Per Bothner  <per@bothner.com>
2662             Uros Bizjak  <uros@kss-loka.si>
2663
2664         PR c/24101
2665         * toplev.c (process_options): Initialize debug_hooks early
2666         in case lang_hooks.post_options ends up calling a debug_hook.
2667
2668 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2669
2670         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
2671         DBX_REGISTER_NUMBER being contiguous.
2672
2673 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
2674             Diego Novillo  <dnovillo@redhat.com>
2675
2676         PR 23046
2677         * tree-vrp.c (register_edge_assert_for): Do not register
2678         always-false predicates.
2679
2680 2005-11-08  Devang Patel <dpatel@apple.com>
2681
2682         PR tree-optimization/23115
2683         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
2684         relation.
2685
2686 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
2687
2688         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
2689         -mcpu=440.
2690
2691 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
2692
2693         Fix PR tree-optimization/23382
2694
2695         * tree-ssa-alias.c (compute_may_aliases): Call
2696         delete_old_heap_vars.
2697         * tree-dfa.c (referenced_var_remove): New function.
2698         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
2699         * tree-flow.h (referenced_var_remove): Add prototype.
2700         (delete_old_heap_vars): Ditto.
2701         * tree-ssa-structalias.c (heapvars): New variable.
2702         (oldheapvars): Ditto.
2703         (get_constraint_for): Put heap vars on heapvars list.
2704         (delete_old_heap_vars): New function.
2705
2706 2005-11-08  Jason Merrill  <jason@redhat.com>
2707
2708         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
2709
2710 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
2711
2712         PR target/19340
2713         * reg-stack.c (reg_to_stack): Update register liveness also
2714         for flag_sched2_use_traces.
2715
2716 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
2717
2718         PR target/23704
2719         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
2720         override prior explicit -mno-powerpc-gfxopt.
2721
2722 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
2723
2724         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
2725         if the bitsize is zero.
2726         * doc/md.texi (Standard Pattern Names): Document it.
2727
2728         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
2729         (TARGET_PASS_BY_REFERENCE): Likewise.
2730
2731 2005-11-07  Ian Lance Taylor  <ian@airs.com>
2732
2733         PR rtl-optimization/24683
2734         * config/i386/i386.c (legitimize_pic_address): If constant operand
2735         to PLUS is too large, put it in a register.
2736
2737 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
2738
2739         * configure.ac: Enable checking assembler dwarf2 support for bfin
2740         target.
2741         * configure: Regenerate.
2742
2743 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
2744
2745         PR target/24230
2746
2747         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
2748         gen_easy_vector_constant_add_self): Delete.
2749         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
2750         New.
2751         (output_vec_const_move): Use gen_easy_altivec_constant.
2752         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
2753         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
2754         (easy_vector_constant_add_self): Rewritten.
2755         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
2756         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
2757         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
2758         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
2759         Macroize and adjust for the other changes.
2760
2761 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
2762
2763         PR c/24599
2764
2765         * c-typeck.c (build_c_cast): Try using a shared constant, and see
2766         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
2767
2768 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2769
2770         PR rtl-optimization/23567
2771         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
2772         (noce_process_if_block): Don't do any optimizations except
2773         if (cond) x = x; if !set_b and write into orig_x may trap
2774         or fault.  Remove the MEM_READONLY_P check.
2775
2776 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
2777
2778         PR 24670
2779         * tree-vrp.c (fix_equivalence_set): New.
2780         (extract_range_from_assert): Call it.
2781
2782 2005-11-05  Ian Lance Taylor  <ian@airs.com>
2783
2784         PR target/22432
2785         * combine.c (apply_distributive_law): Don't distribute across a
2786         vector mode subreg.
2787
2788 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
2789
2790         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
2791         config/ms1/ms1.h, config/rs6000/predicates.md,
2792         config/s390/s390.c, params.def, postreload-gcse.c,
2793         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
2794         tree-vrp.c, tree.c: Fix comment typos.
2795         * doc/invoke.texi: Fix typos.
2796
2797 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
2798
2799         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
2800         for testing whether the data_dependence_relation contains distance
2801         vectors.  Iterate over all distance vectors of the ddr.
2802         * lambda.h: Define a vec of lambda_vector pointers.
2803         * tree-data-ref.c (dump_data_dependence_relation,
2804         dump_data_dependence_direction): Iterate over all distance and
2805         direction vectors of the ddr.
2806         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
2807         DDR_DIST_VECTS.
2808         (build_classic_dist_vector, build_classic_dir_vector): Push a set
2809         of distance/direction vectors instead of a single one.
2810         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
2811         lambda_vectors with a vec of lambda_vectors.
2812         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
2813         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
2814         DDR_NUM_DIST_VECTS): New.
2815         * tree-loop-linear.c (gather_interchange_stats): Test for the
2816         existence of distance vectors only after having checked that there
2817         is a dependence.  Iterate over all distance vectors of the ddr.
2818         (linear_transform_loops): Use dump_data_dependence_relation.
2819         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
2820         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
2821         distance vectors of the ddr.
2822
2823 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2824
2825         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
2826         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
2827         IS_INTHANDLER; all callers changed.
2828         (n_regs_saved_by_prologue): Take interrupt handler attributes into
2829         account.
2830         (do_link, do_unlink): New argument ALL; all callers changed.
2831         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
2832         If function isn't leaf, save and restore all registers.
2833         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
2834         exception handler.
2835
2836 2005-11-05  Jan Hubicka  <jh@suse.cz>
2837
2838         PR rtl-optimization/23490
2839         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
2840         max-flow-memory-location): Document.
2841         * flow.c: Include params.h
2842         (MAX_MEM_SET_LIST_LEN): Kill.
2843         (add_to_mem_set_list): Use new param.
2844         * cse.c (cse_basic_block): Replace 1000 by new param.
2845         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
2846         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
2847         * predict.c (predict_loops): Use new param.
2848         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
2849
2850         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
2851         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
2852         Do not hold memory returned by cgraph_node_name across other call.
2853
2854 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
2855
2856         PR target/23424
2857         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
2858         Disable.
2859
2860 2005-11-04  Jeff Law  <law@redhat.com>
2861
2862         PR/21883
2863         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
2864         * tree-ssa-dom.c: Include params.h.
2865         (thread_across_edge): If there are too many statements in the
2866         target block, then do not thread through it.
2867         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
2868         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
2869
2870 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
2871
2872         PR 24627
2873         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
2874         TODO_update_ssa instead of TODO_update_ssa_no_phi.
2875
2876 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
2877
2878         PR/18595
2879         * tree-scalar-evolution.c (instantiate_parameters_1,
2880         instantiate_parameters, resolve_mixers): Compute the size of an
2881         expression to be instantiated and give up the instantiation if the
2882         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
2883
2884 2005-11-04  Richard Guenther  <rguenther@suse.de>
2885
2886         * tree-flow.h (ref_contains_indirect_ref): Rename to
2887         array_ref_contains_indirect_ref.
2888         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
2889         (array_ref_contains_indirect_ref): Make comment match the code
2890         and vice-versa.
2891         (ref_contains_array_ref): Likewise.
2892         * tree-ssa-structalias.c (find_func_aliases): Remove call to
2893         ref_contains_indirect_ref.
2894         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2895         Rename calls to ref_contains_indirect_ref.
2896
2897 2005-11-04 Paul Brook  <paul@codesourcery.com>
2898
2899         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
2900         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
2901         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
2902         * config/arm/arm.md: Use match_operand in peephole input templates
2903         and match_dup in peephole output templates.
2904
2905 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
2906
2907         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
2908         __aeabi_uidiv.
2909
2910 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
2911             Daniel Jacobowitz  <dan@codesourcery.com>
2912
2913         * longlong.h (add_ssaaaa): Clobber condition code register
2914         in ARM version.
2915         (sub_ddmmss): Likewise.
2916         (umul_ppmm): Likewise.
2917
2918 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
2919             Paul Brook  <paul@codesourcery.com>
2920             Phil Blundell  <pb@reciva.com>
2921
2922         * configure.ac: Add test for ARM TLS support.
2923         * configure: Regenerated.
2924         * config/arm/arm-protos.h (legitimize_tls_address)
2925         (arm_tls_referenced_p, tls_mentioned_p)
2926         (arm_output_addr_const_extra): New prototypes.
2927         (thumb_legitimize_pic_address): Delete.
2928         * config/arm/arm.c: Include "gt-arm.h".
2929         (enum tls_reloc): New.
2930         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
2931         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
2932         (arm_call_tls_get_addr, legitimize_tls_address)
2933         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
2934         (arm_init_tls_builtins, arm_emit_tls_decoration)
2935         (arm_output_addr_const_extra): New functions.
2936         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
2937         (TARGET_HAVE_TLS): Define.
2938         (target_thread_pointer): New.
2939         (arm_override_options): Handle -mtp=.
2940         (legitimize_pic_address): Ignore UNSPECs.
2941         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
2942         relative symbols.
2943         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
2944         (tls_get_addr_libfunc): New variable.
2945         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
2946         (arm_init_builtins): Call arm_init_tls_builtins.
2947         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
2948         (arm_encode_section_info): Call default_encode_section_info.
2949         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
2950         (enum arm_tp_type): New.
2951         (target_thread_pointer): Add declaration.
2952         (LEGITIMATE_CONSTANT_P): Handle TLS.
2953         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
2954         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
2955         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
2956         * config/arm/arm.md: Add UNSPEC_TLS.
2957         (movsi): Handle TLS.
2958         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
2959         non-PIC.
2960         (tls_load_dot_plus_eight): New insn and a peephole to create it.
2961         (load_tp_hard, load_tp_soft): New insns.
2962         * arm.opt: Add -mtp=.
2963         * doc/invoke.texi (ARM Options): Document -mtp.
2964
2965 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
2966
2967         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
2968         * config/arm/libunwind.S: Include "lib1funcs.asm".
2969         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
2970         (LIB2ADDEH): Add libunwind.S.
2971         (LIB2ADDEHDEP): Add lib1funcs.asm.
2972         * mklibgcc.in: Handle asm files in libgcc_eh.a.
2973
2974 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2975
2976         PR fortran/18452
2977         * gcc/c.opt: Add a -lang-fortran option.
2978         * gcc/c-opts.c: Add a lang_fortran flag.
2979         (c_common_init_options): Handling the -lang-fortran option.
2980         (c_common_handle_option): Add a case for Fortran options in
2981         preprocessing. Remove cases for -ffixed-form and
2982         -ffixed-line-length. Add a case for -lang-fortran.
2983
2984 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
2985
2986         * config/rs6000/rs6000.c: Include params.h
2987         (optimization_options): Set max-grow-copy-bb-insns default to 16.
2988         (bdesc_2arg): Delete vpkuhss and vpkuwss.
2989         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
2990         (UNSPEC_VPKUWSS): Delete.
2991         (altivec_vpkuhss): Delete.
2992         (altivec_vpkuwss): Delete.
2993         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
2994         final condition.
2995         (neg_eq0<mode>): Remove final condition.
2996         (neg_eq<mode>): Remove condition and split-condition.
2997
2998 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
2999
3000         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
3001         Use associated print macros.
3002
3003 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3004
3005         PR c++/17964
3006         * diagnostic.c (diagnostic_set_info_translated): New function.
3007         (diagnostic_set_info): Use it.  Add comment.
3008         * diagnostic.h (diagnostic_set_info_translated): Declare.
3009
3010 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3011
3012         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
3013         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
3014         reference only if 'public' is true.
3015         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
3016         emit the .hidden directive only if the indirect reference is public.
3017         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
3018         Pass it to dw2_force_const_mem.
3019         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
3020         * dwarf2out.c (output_cfi): Adjust calls to above function.
3021         (output_call_frame_info): Likewise.
3022         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
3023         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
3024
3025 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
3026
3027         PR tree-optimization/24483
3028         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
3029         field to elts if possible.
3030
3031 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3032
3033         PR middle-end/23155
3034         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
3035         CONSTRUCTOR.
3036
3037 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
3038
3039         Fix PR tree-optimization/24351
3040
3041         * tree-ssa-structalias.c (struct variable_info): Add
3042         collapsed_into.
3043         (get_varinfo_fc): New function to follow collapsing.
3044         (new_var_info): Set collapsed_to to NULL.
3045         (dump_constraint): Follow collapsing.
3046         (build_constraint_graph): Handle collapsing.
3047         (do_simple_structure_copy): Return false if something bad
3048         happened.
3049         (collapse_rest_of_var): New function.
3050         (do_structure_copy): Collapse if do_simple_structure_copy returns
3051         false.
3052
3053 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3054
3055         PR middle-end/24589
3056         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
3057         expressions to a statement list instead of gimplifying them.
3058
3059 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3060
3061         PR rtl-optimization/23585
3062         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
3063         that can't trap plus a constant integer, if the mode has zero size.
3064
3065 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
3066
3067         PR target/24620
3068         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
3069         as operand 2.
3070         ("*insv<mode>_reg_extimm"): Likewise.
3071
3072 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3073
3074         PR c/24329
3075         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
3076         c_common_type_for_mode returns an unnamed type.
3077
3078 2005-11-02  Richard Henderson  <rth@redhat.com>
3079
3080         PR target/9350
3081         PR target/24374
3082         * dwarf2out.c (dwarf2out_reg_save_reg): New.
3083         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
3084         * function.c (assign_parms): Use calls.internal_arg_pointer.
3085         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
3086         code.
3087         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
3088         (TARGET_CALLS): Add it.
3089         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
3090         * targhooks.c (default_internal_arg_pointer): New.
3091         * targhooks.h (default_internal_arg_pointer): Declare.
3092         * tree.h (dwarf2out_reg_save_reg): Declare.
3093         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
3094         * config/i386/i386.c (dbx_register_map): Add return column.
3095         (dbx64_register_map, svr4_dbx_register_map): Likewise.
3096         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
3097         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
3098         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
3099         (ix86_save_reg): Save force_align_arg_pointer.
3100         (ix86_emit_save_regs): Make regno unsigned.
3101         (ix86_emit_save_regs_using_mov): Likewise.
3102         (ix86_expand_prologue): Handle force_align_arg_pointer.
3103         (ix86_expand_epilogue): Likewise.
3104         * config/i386/i386.h: (dbx_register_map): Update.
3105         (dbx64_register_map, svr4_dbx_register_map): Update.
3106         (struct machine_function): Add force_align_arg_pointer.
3107         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
3108         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
3109         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
3110
3111 2005-11-02  Jan Hubicka  <jh@suse.cz>
3112
3113         PR target/23303
3114         * i386.md: Add peep2 for simplyfing array accesses.
3115
3116 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3117
3118         PR target/24615
3119         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
3120         * config/s390/s390.c (s390_decompose_shift_count): New function.
3121         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
3122         (print_shift_count_operand): Use s390_decompose_shift_count.
3123         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
3124         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
3125
3126 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3127
3128         PR target/24600
3129         * loop.c (loop_givs_rescan): Use force_operand to expand
3130         complex GIVs.
3131
3132 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
3133
3134         PR 22429
3135         * fold-const.c (build_range_check): Use unsigned when signed
3136         overflow is undefined also.  If etype is subtype, make sure that
3137         the subtraction is in the supertype.
3138
3139 2005-11-02  Richard Henderson  <rth@redhat.com>
3140
3141         PR target/24178
3142         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
3143         by MEM_ALIGN.
3144
3145 2005-11-01  Richard Henderson  <rth@redhat.com>
3146
3147         PR 21518
3148         * loop.c (scan_loop): Do not propagate computations to a hard
3149         register destination with SMALL_REGISTER_CLASSES.
3150
3151 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
3152
3153         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
3154         costs for MULT inside PLUS or MINUS.
3155
3156 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
3157
3158         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
3159         (TRAMPOLINE_SIZE): Round up to 60.
3160         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
3161
3162 2005-10-31  James E. Wilson  <wilson@specifix.com>
3163
3164         PR debug/24444
3165         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
3166         ifdef.  Put ifdefs around call in gen_subprogram_die.
3167         (compute_frame_pointer_to_cfa_displacement): Likewise.
3168         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
3169         not defined.
3170
3171         PR rtl-optimization/17356
3172         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
3173         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
3174
3175 2005-10-31  Jan Hubicka  <jh@suse.cz>
3176
3177         PR middle-end/24093
3178         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
3179
3180         PR target/20928
3181         * i386.c (legitimize_pic_address): Deal with large immediates.
3182
3183         PR profile/20815
3184         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
3185         from symbol names while computing checkup.
3186
3187         PR profile/24487
3188         * predict.c (predict_loops): Do not estimate more than
3189         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
3190         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
3191
3192 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
3193
3194         PR tree-optimization/19097
3195         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
3196
3197 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
3198
3199         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
3200
3201 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
3202
3203         PR middle-end/23492
3204         * tree-inline.c (setup_one_parameter): If the init_stmt
3205         is NULL, don't insert the statement.
3206
3207 2005-10-30  Jan Hubicka  <jh@suse.cz>
3208
3209         PR tree-optimization/24172
3210         * tree-inline.c (copy_body_r): Unshare the substituted value first.
3211
3212 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
3213
3214         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
3215         constants for hosts with long != 32 bits.
3216
3217 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
3218
3219         PR middle-end/24093
3220         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
3221
3222 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
3223
3224         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
3225         (TARGET_MS1_16_002): New.
3226         (TARGET_MS1_16_003): New.
3227
3228         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
3229         ("*decrement_and_branch_until_zero_no_clobber"): New.
3230         Add corresponding splitter for decrement_and_branch_until_zero
3231         instruction.
3232         Key all decrement_and_branch_until_zero patterns off of
3233         TARGET_MS1_16_003.
3234
3235 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
3236
3237         PR middle-end/24362
3238         * tree-complex.c (extract_component): Treat RESULT_DECL
3239         like the rest of the decls.
3240
3241 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3242
3243         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
3244         indirect call to _mcount if the function needs a static chain.
3245
3246 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3247             Caroline Tice  <ctice@apple.com>
3248
3249         PR rtl-optimization/24460
3250         * dwarf2out.c (have_switched_text_sections): New boolean variable.
3251         (dwarf2out_switch_text_section): Set it to true instead of
3252         incrementing separate_line_info_table_in_use.
3253         (output_loc_list): Additionally test have_switched_text_sections.
3254         (output_ranges): Likewise.
3255         (dwarf2out_finish): Likewise.
3256         * varasm.c (assemble_start_function): Do not call
3257         insert_section_boundary_note.
3258         (assemble_end_function): If flag_reorder_blocks_and_partition,
3259         switch to the function's section before emitting the .size directive.
3260         * bb-reorder.c (insert_section_boundary_note): Staticify.
3261         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
3262         * output.h (insert_section_boundary_note): Delete.
3263
3264 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
3265
3266         PR c/23103
3267         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
3268         instead of pointer equality when comparing types.
3269
3270 2005-10-24  James E. Wilson  <wilson@specifix.com>
3271
3272         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
3273         add_dependence_list_and_free calls.
3274
3275 2005-10-24  Steven Bosscher  <stevenb@suse.de>
3276
3277         * contrib.texi: Add the names of the LLNL folks who donated
3278         Cray pointer support for gfortran.
3279
3280 2005-10-24  Steven Bosscher  <stevenb@suse.de>
3281
3282         PR tree-optimization/24225
3283         * profile.c (branch_prob): Look from end to start through a
3284         basic block when looking for a locus.
3285
3286 2005-10-24  Richard Henderson  <rth@redhat.com>
3287
3288         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
3289         parallel.
3290         (hppa_expand_prologue): Likewise.
3291
3292 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3293
3294         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
3295         (NO_DEFERRED_PROFILE_COUNTERS): Define.
3296         * pa.h (NO_PROFILE_COUNTERS): Define.
3297         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
3298         (funcdef_nos): New vector to hold label numbers of deferred profile
3299         counters.
3300         (output_deferred_profile_counters): New function.
3301         (hppa_profile_hook): Push label number onto funcdef_nos.
3302         (pa_hpux_file_end): Call output_deferred_profile_counters if
3303         NO_DEFERRED_PROFILE_COUNTERS is false.
3304
3305         * pa-protos.h (get_deferred_plabel): New prototype.
3306         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
3307         Make global.
3308         (output_call): Adjust calls.
3309
3310 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
3311
3312         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
3313         peculiarity of GOT/TOC section usage.
3314
3315 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
3316
3317         PR objc/24435
3318          * c-common.c (constant_string_class_name): Add documentation.
3319
3320 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
3321
3322         PR target/23832
3323         * recog.c (peephole2_optimize): Increment peep2_current_count
3324         only when the slot is empty.
3325
3326 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3327
3328         PR ada/23957
3329         * except.c (output_function_exception_table): Call
3330         assemble_external_libcall if we need a personality function.
3331
3332 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3333
3334         PR rtl-optimization/24460
3335         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
3336         set the basic block for barriers.
3337
3338 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
3339
3340         * var-tracking.c (vt_initialize): Initialize post.
3341
3342 2005-10-21  Devang Patel  <dpatel@apple.com>
3343
3344         PR/24220
3345         * c-common.c (vector_types_convertible_p): Check vector element type.
3346
3347 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3348
3349         * config/sh/sh.c (prepare_move_operands): Handle the address
3350         constant which is a tls symbolic address plus a constant.
3351
3352 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
3353
3354         PR driver/24473
3355         * gcc.c (main): Use the correct counter for erroring out
3356         about mulitple files.
3357
3358 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
3359
3360         PR target/24465
3361         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
3362         use r2 for 64-bit tls .got access.
3363
3364 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
3365
3366         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
3367         TRUTH_OR_EXPR.
3368
3369 2005-10-20  Steven Bosscher  <stevenb@suse.de>
3370
3371         PR tree-optimization/24307
3372         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
3373
3374 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
3375
3376         PR middle-end/24295
3377         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
3378         alias targets.
3379         * varasm.c (find_decl_and_mark_needed): After cgraph global info
3380         is ready, stop marking functions, but still mark variables.
3381
3382 2005-10-20  Richard Guenther  <rguenther@suse.de>
3383
3384         PR c++/24439
3385         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
3386         void type operands.
3387
3388 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3389
3390         PR rtl-optimization/23585
3391         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
3392         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
3393         (may_trap_p_1): New predicate extracted from...
3394         (may_trap_p): ... here.  Invoke may_trap_p_1.
3395         (may_trap_or_fault_p): New predicate.
3396         * rtl.h (may_trap_or_fault_p): Declare it.
3397         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
3398         instead of may_trap_p.
3399         (steal_delay_list_from_fallthrough): Likewise.
3400         (fill_simple_delay_slots): Likewise.
3401         (fill_slots_from_thread): Likewise.
3402         * function.c (pad_to_arg_alignment): Rework comment about
3403         SPARC_STACK_BOUNDARY_HACK.
3404         * config/sparc/sparc.h: Likewise.
3405
3406 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
3407
3408         * config/s390/s390.c (s390_expand_insv): New.
3409         * config/s390/s390-protos.h (s390_expand_insv): Declare.
3410         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
3411         ("icm_hi"): Remove mode attribute.
3412         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
3413         Adjust all uses.
3414         ("*extracthi", "*extractqi"): Remove.
3415         (extv<mode>", "*extzv<mode>"): New.
3416         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
3417         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
3418
3419 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3420
3421         * cfgexpand.c (discover_nonconstant_array_refs_r,
3422         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
3423         (tree_expand_cfg): Call discover_nonconstant_array_refs.
3424         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
3425         discover_nonconstant_array_refs.
3426
3427 2005-10-19  Steven Bosscher  <stevenb@suse.de>
3428
3429         PR c/23228
3430         * c-decl.c (pop_scope): Don't warn about an unused variable
3431         if it is marked with TREE_NO_WARNING.
3432         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
3433         somenow mismatch and olddecl is to be replaced.
3434
3435 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3436
3437         PR middle-end/23199
3438         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
3439         whether registers live on the edge can be saved/restored.
3440
3441 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
3442
3443         * config/sh/sh.c (fixup_mova): Skip notes.
3444
3445 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3446
3447         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
3448         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
3449         (s390_can_eliminate): Handle BASE_REGNUM elimination.
3450         (s390_initial_elimination_offset): Likewise.
3451         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
3452         register on TARGET_ZARCH targets.
3453         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
3454         (INITIAL_FRAME_POINTER_OFFSET): Remove.
3455         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
3456         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
3457
3458 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3459
3460         * config/s390/s390.md: Comment describing output modifiers updated.
3461         * config/s390/s390.c (print_operand): Likewise.
3462
3463 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3464
3465         * config/s390/s390.c (override_options): Added check for -mstack-size
3466         64k limitation.
3467         * doc/invoke.texi: Mention that limit in the documenation.
3468
3469 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
3470
3471         PR #19672
3472         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
3473
3474 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
3475
3476         Fix PR tree-optimization/24231
3477
3478         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
3479         (compute_avail): Ditto.
3480
3481 2005-10-18  Richard Henderson  <rth@redhat.com>
3482
3483         PR target/24428
3484         * config/i386/i386.c (legitimate_constant_p): Check
3485         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
3486         if LABEL_REF.
3487         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
3488         (legitimate_pic_address_disp_p): Reorg CONST checking to make
3489         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
3490         directly.
3491         (print_operand_address): Likewise.
3492         * config/i386/predicates.md (x86_64_immediate_operand): Test
3493         SYMBOL_REF_TLS_MODEL properly inside CONST.
3494         (x86_64_zext_immediate_operand): Likewise.
3495         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
3496         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
3497         * config/i386/i386-protos.h: Remove predicates.md entries.
3498
3499 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
3500
3501         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
3502         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
3503
3504 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
3505             Ian Lance Taylor <ian@airs.com>
3506
3507         PR middle-end/23522
3508         * fold-const.c (fold_widened_comparison): Do not allow range based
3509         constant folding when right operand cannot be unwidened.
3510
3511 2005-10-17  Richard Henderson  <rth@redhat.com>
3512
3513         * builtins.c (expand_builtin_synchronize): Build a new-style asm
3514         with a memory clobber.
3515
3516 2005-10-17  James E Wilson  <wilson@specifix.com>
3517
3518         PR rtl-optimization/17356
3519         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
3520         checking for EDGE_EH.
3521
3522 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3523
3524         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
3525         the slot on an even boundary for any type with 16-byte alignment.
3526
3527 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
3528
3529         PR target/23424
3530         * md.texi (Modifiers) <%>: Clarify that % doesn't work
3531         after register allocation.
3532
3533 2005-10-17  DJ Delorie  <dj@redhat.com>
3534
3535         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
3536         as frame related.
3537
3538 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
3539
3540         PR c++/22551
3541         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
3542         overflow flags.
3543
3544 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3545
3546         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
3547         to 2 if it's already non-zero.
3548         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
3549         is set and warn about it if flag_schedule_insns is 1.
3550
3551 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
3552
3553         * config/crx/crx.md: Compare-and-branch instructions need to
3554         invalidate CC.
3555
3556 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
3557
3558         PR target/24315
3559         * config/i386/i386.md (*pushdi2_rex64 splitter)
3560         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
3561         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
3562         flow2 pass only when (optimize > 0 && flag_peephole2).
3563
3564 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
3565
3566         PR driver/22544
3567         * gcc.c (have_c): New static variable.
3568         (have_o): Likewise.
3569         (process_command): Remove declation of have_c.
3570         Set have_o to 1 when handling -o.
3571         (main): Add a fatel error if there are multiple
3572         files specified and -o and -c/-S is passed witout
3573         -combine or multiple languages.
3574
3575 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
3576
3577         Fix PR tree-optimization/22444
3578         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
3579         Assert that we don't hit something with subvars.
3580         (setup_pointers_and_addressables): Don't add things with subvars,
3581         because we'll already process the subvars for aliasing purposes.
3582
3583 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
3584
3585         PR target/23424
3586         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
3587         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
3588         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
3589         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
3590         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
3591         swapped, alternatives for the R constraint.
3592
3593         PR middle-end/24341
3594         * builtins.c (get_builtin_sync_mode): Make unlimited
3595         mode_for_size request.
3596
3597 2005-10-15  Richard Henderson  <rth@redhat.com>
3598
3599         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
3600         (gimplify_expr): ... here.
3601         (gimplify_compound_lval): Use it in initial scan loop.  Allow
3602         fb_lvalue in base expression.
3603
3604 2005-10-15  Richard Henderson  <rth@redhat.com>
3605
3606         PR 23714
3607         * builtins.c (expand_builtin_trap): Export.
3608         * expr.h (expand_builtin_trap): Declare.
3609         * expr.c (expand_assignment): Emit a trap for integral offsets
3610         from registers that weren't reduced to bitpos.
3611
3612         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
3613         (mark_array_ref_addressable): Remove.
3614         * tree-flow.h (mark_array_ref_addressable): Remove.
3615         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
3616
3617 2005-10-15  James E Wilson  <wilson@specifix.com>
3618
3619         PR target/24232
3620         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
3621         (add_dependence_list_and_free): Likewise.
3622         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
3623         call.
3624
3625 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
3626
3627         PR 23141
3628         PR 23142
3629         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
3630         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
3631         anti-range.
3632         (vrp_visit_phi_node): Only prevent infinite iterations when
3633         the previous result and the new result are both VR_RANGEs.
3634
3635 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
3636
3637         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
3638         function comment.
3639
3640 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3641
3642         PR c/23439
3643         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
3644         to initialize loc.
3645
3646 2005-10-14  Per Bothner  <per@bothner.com>
3647
3648         PR preprocessor/21250
3649         * c-ppoutput.c (print_line): Print internal line 0 as 1.
3650
3651 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
3652
3653         PR c++/22551
3654         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
3655         overflow flags.  Refactor some conditionals.
3656
3657 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
3658
3659         PR tree-opt/21304
3660         * tree-dfa.c (add_referenced_var): Only look at decls which
3661         have TREE_CONSTANT or TREE_READONLY set instead of if
3662         !TREE_PUBLIC or !TREE_CONSTANT.
3663
3664 2005-10-13  James E Wilson  <wilson@specifix.com>
3665
3666         * doc/invoke.texi: For -x, add f95-cpp-input.
3667         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
3668
3669 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
3670
3671         PR tree-optimization/24262
3672         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
3673         in loop all the time.
3674
3675 2005-10-12  Richard Henderson  <rth@redhat.com>
3676
3677         PR c/24255
3678         * tree.h (DECL_TRANSPARENT_UNION): Remove.
3679         * function.c (assign_parm_find_data_types): Don't support it.
3680         * print-tree.c (print_node): Likewise.
3681         * c-common.c (handle_transparent_union_attribute): Likewise.
3682         Use build_duplicate_type.
3683         * tree-inline.c (remap_type_1): Split out of remap_type;
3684         properly remap aggregate fields.
3685         (build_duplicate_type): New.
3686         * doc/extend.texi (Variable Attributes): Remove documentation
3687         for transparent_union.
3688
3689 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3690
3691         PR target/24284
3692         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
3693         (gen_stack_pointer_dec): Likewise.
3694
3695 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
3696
3697         PR middle-end/21275
3698         PR middle-end/21766
3699         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
3700         target hook.
3701         (struct cxx): Add adjust_class_at_definition target hook.
3702         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
3703         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
3704         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
3705         hook_void_tree. Add to TARGET_CXX.
3706         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
3707         dllimport_flag.
3708         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
3709         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
3710         instead of attribute. Check for dllexport override.  Warn if
3711         inconsistent dll linkage. Don't lose old dllimport if decl has
3712         had address referenced.   Tweak lookup of dllimport atribute.
3713         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
3714         for target specific rules.  Don't add dllimport attribute if
3715         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
3716         dllimport attribute.
3717         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
3718         * varasm.c (initializer_constant_valid_p): Replace
3719         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
3720
3721         PR target/21801
3722         PR target/23589
3723         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
3724         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
3725         (i[34567]86-*-mingw32*): Likewise.
3726
3727         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
3728         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
3729
3730         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
3731         C++-specific code. Change return value to bool.
3732         (i386_pe_dllimport_p): Likewise.
3733         (associated_type): Simplify and make language-independent
3734         (i386_pe_encode_section_info): Replace override of ambiguous
3735         dllimport symbol refs with a gcc_assert.
3736         (i386_pe_valid_dllimport_attribute_p): Define.
3737         * config/i386/winnt-cxx.c: New file. Define C++ versions of
3738         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
3739         i386_pe_adjust_class_at_definition.
3740         * config/i386/winnt-stubs.c: New file. Define stub versions of
3741         lang-specific functions.
3742         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
3743         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
3744         i386_pe_adjust_class_at_definition.
3745         (i386_pe_valid_dllimport_attribute_p): Declare.
3746         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
3747         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
3748         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
3749
3750         PR target/19704
3751         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
3752         dllimport attribute with test of DECL_DLLIMPORT_P.
3753
3754 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
3755
3756         * combine.c (make_extraction): Correct offset computation.
3757
3758 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
3759
3760         * config/cris/t-linux (LIMITS_H_TEST): Define.
3761
3762 2005-10-12  Richard Henderson  <rth@redhat.com>
3763
3764         PR rtl-opt/23324
3765         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
3766
3767 2005-10-12  Richard Guenther  <rguenther@suse.de>
3768
3769         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
3770
3771 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
3772
3773         PR c++/19964
3774         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
3775         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
3776         type.
3777
3778 2005-10-12  Richard Guenther  <rguenther@suse.de>
3779
3780         PR c++/23799
3781         * varasm.c (output_constant): Correct typo from previous
3782         patch by DJ.
3783
3784 2005-10-11  Ian Lance Taylor  <ian@airs.com>
3785
3786         PR rtl-optimization/13931
3787         * combine.c: Revert patch of 2003-05-14, and:
3788         (try_combine): Only set elim_i1 and elim_i2 if the destination is
3789         completely killed in the appropriate insn.
3790         (distribute_notes): Don't skip multiple hard register test for
3791         elim_i1 and elim_i2.
3792
3793 2005-10-11  Richard Henderson  <rth@redhat.com>
3794
3795         PR c/24255
3796         * c-typeck.c (convert_for_assignment): Use build_constructor_single
3797         to initialize a transparent union instead of a nop_expr.
3798
3799 2005-10-11  Richard Henderson  <rth@redhat.com>
3800
3801         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
3802         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
3803         (tree_ssa_dce_loop): Call scev_reset.
3804
3805         PR tree-opt/24300
3806         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
3807         * tree-ssa-dce.c: Include cfgloop.h.
3808         (tree_ssa_dce_loop, pass_dce_loop): New.
3809         * tree-pass.h (pass_dce_loop): Declare it.
3810         * passes.c (init_optimization_passes): Use it.
3811
3812 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
3813
3814         PR middle-end/24263
3815         * convert.c (convert_to_real): Revert 2005-10-05 patch.
3816         Only apply the optimization for rounding builtins if the inner
3817         cast is also an extension.
3818
3819 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
3820
3821         PR tree-opt/23946
3822         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
3823         mark_new_vars_to_rename instead of update_stmt.
3824
3825 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3826
3827         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
3828
3829 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3830
3831         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
3832         for setting MMX register to 0 rather than mmx.
3833
3834 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
3835
3836         PR target/12098
3837         * configure.ac: Move gas check from mips specific case to common case.
3838         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
3839         * configure: Regenerate
3840         * doc/install.texi: Update.
3841
3842 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3843
3844         PR target/24284
3845         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
3846
3847 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
3848
3849         * gcc.c (do_spec_1): Accept numeric characters in file name
3850         suffixes.
3851
3852 2005-10-10  Nick Clifton  <nickc@redhat.com>
3853
3854         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
3855         describing the deleted arm_gen_rotated_half_load function.
3856
3857 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3858
3859         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
3860         __fpscr_values.
3861
3862 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
3863
3864         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
3865         gnu_ld assignments.
3866         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
3867         (EXTRA_MULTILIB_PARTS): Define.
3868         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
3869         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
3870         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
3871         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
3872         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
3873         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
3874
3875 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
3876
3877         PR tree-optimization/24226
3878         * tree-cfg.c (remove_bb): Clean up unreachable loops.
3879         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
3880         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
3881         Export.
3882
3883 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3884
3885         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
3886
3887 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
3888
3889         PR target/24136
3890         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
3891         Rewrite for no need for the early clobber.
3892
3893 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
3894
3895         Merge from csl-arm-branch:
3896         2005-09-07  Paul Brook  <paul@codesourcery.com>
3897         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
3898         space to string.
3899
3900         2005-04-30  Paul Brook  <paul@codesourcery.com>
3901         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
3902         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
3903
3904         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
3905         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
3906         (arm_override_options): Use TARGET_AAPCS_BASED.
3907         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
3908         (PTRDIFF_TYPE): Use int for AAPCS.
3909         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
3910         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
3911         (DEFAULT_SHORT_ENUMS): Delete.
3912         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
3913
3914         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
3915         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
3916         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
3917         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
3918
3919         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
3920         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
3921
3922         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
3923         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
3924
3925         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
3926         * config.gcc (arm*-*-linux-gnueabi): Add it.
3927         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
3928         redefining it.
3929         (TARGET_OS_CPP_BUILTINS): Likeiwse.
3930         * config/arm/linux-eabi.h: New file.
3931         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
3932         (LINUX_TARET_LINK_SPEC): Likewise.
3933         (LINK_SPEC): Use it.
3934         * config/arm/t-linux-eabi: New file.
3935
3936 2005-10-08  Steven Bosscher  <stevenb@suse.de>
3937
3938         PR other/22202
3939         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
3940         spaces.
3941         (PARAM_SMS_DFA_HISTORY): Likewise.
3942
3943 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
3944
3945         PR middle-end/23150
3946         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
3947         (load_register_parameters): Call it.
3948         (check_sibcall_argument_overlap_1): Likewise.
3949         (store_one_arg): Likewise.
3950
3951 2005-10-07  James E. Wilson  <wilson@specifix.com>
3952
3953         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
3954         DImode not VECINT24 for operand 2.
3955
3956         PR target/23644
3957         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
3958         -mtune-arch.
3959
3960         PR target/24193
3961         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
3962         fr_spill): Use destination_operand for operand 0.
3963
3964 2005-10-07  DJ Delorie  <dj@redhat.com>
3965
3966         * varasm.c (output_constant): Limit error to expanding
3967         conversions.
3968
3969 2005-10-07  Richard Guenther  <rguenther@suse.de>
3970
3971         PR middle-end/24227
3972         * fold-const.c (fold_binary): Fix operand types during folding
3973         of X op (A, Y).  Evaluation order of the side-effects of
3974         X and A are frontend-defined, so ensure we honour that even for
3975         tcc_comparison class operands; eased by removing duplicate code.
3976
3977 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
3978
3979         * stor-layout.c (layout_type): Do not allow alignment of array
3980         elements to be greater than their size.
3981
3982 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
3983
3984         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
3985         host_xmake_file.
3986         (hppa*-*-linux*): Ditto.
3987         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
3988         * config/host-hpux.c: New.
3989         * config/x-hpux: New.
3990         * config/pa/x-hpux: Remove.
3991         * config/pa/x-linux: Remove.
3992         * config/pa/pa-host.c: Remove.
3993
3994 2005-10-07  Jeff Law  <law@redhat.com>
3995
3996         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
3997         determine whether or not to try and thread outgoing edges.
3998
3999 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
4000
4001         * config/rs6000/rs6000.md (eqsi_power): New.
4002         (neg_eq0si): Add TARGET_POWER to final condition.
4003         (neg_eqsi): Same.
4004
4005 2005-10-06  Richard Henderson  <rth@redhat.com>
4006
4007         * config/rs6000/rs6000.c: Revert last change.
4008
4009 2005-10-06  Richard Henderson  <rth@redhat.com>
4010
4011         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
4012         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
4013
4014 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
4015
4016         PR middle-end/22216
4017         PR middle-end/23651
4018         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
4019         out return_label and naked_return_label.
4020
4021 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4022
4023         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
4024         change.
4025
4026 2005-10-06  Richard Henderson  <rth@redhat.com>
4027
4028         PR tree-opt/22237
4029         * tree-inline.c (declare_return_variable): Handle modify_dest not
4030         being a DECL.
4031
4032 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4033
4034         Fix PR tree-optimization/22488
4035         * tree-ssa-structalias.c (check_for_overlaps): New function.
4036         (create_variable_info_for): Use it.
4037
4038 2005-10-06  Richard Henderson  <rth@redhat.com>
4039
4040         PR debug/24070
4041         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
4042         (dwarf2out_start_source_file): Print it.
4043
4044 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
4045
4046         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
4047
4048 2005-10-06  Richard Henderson  <rth@redhat.com>
4049
4050         PR 23706
4051         * mode-switching.c (optimize_mode_switching): Clear transp bit
4052         for block with incomming abnormal edges.
4053
4054         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
4055         (fpscr_set_from_mem): Use them.
4056         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
4057         (fpscr postinc splitters): Rewrite as peephole2+split.
4058
4059 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
4060
4061         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
4062         (eq<mode>_compare): Same.
4063
4064 2005-10-06  Richard Guenther  <rguenther@suse.de>
4065
4066         PR tree-optimization/24238
4067         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
4068
4069 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
4070
4071         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
4072         here.  Use AC_PATH_PROG for environment variables instead of
4073         test -x.
4074         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
4075         objdump also.
4076         * configure: Regenerated.
4077
4078 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
4079
4080         PR target/23783
4081         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
4082         then force it into a register.
4083         (call_value): Likewise.
4084
4085 2005-10-06  Richard Henderson  <rth@redhat.com>
4086
4087         PR 24049
4088         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
4089         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
4090         under pass_vectorize.
4091
4092 2005-10-05  Devang Patel  <dpatel@apple.com>
4093
4094         PR Debug/23205
4095         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
4096         handling constants. Check NAMESPACE_DECL context for constants.
4097
4098 2005-10-05  Eric Christopher  <echristo@apple.com>
4099
4100         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
4101
4102 2005-10-05  Richard Henderson  <rth@redhat.com>
4103
4104         PR 23714
4105         * tree-cfg.c (mark_array_ref_addressable_1): New.
4106         (mark_array_ref_addressable): New.
4107         * tree-flow.h (mark_array_ref_addressable): Declare.
4108         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
4109
4110 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
4111
4112         PR middle-end/20606
4113         PR middle-end/24069
4114         * reload.c (subst_reloads): When adding a REG_LABEL to a
4115         jump instruction, also update JUMP_LABEL.
4116
4117 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
4118
4119         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
4120         * bb-reorder.c (copy_bb_p): Use it.
4121         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
4122
4123 2005-10-05  Richard Henderson  <rth@redhat.com>
4124
4125         PR target/23602
4126         * toplev.c (process_options): Warn about unsupported combinations
4127         of unwind tables and omit-frame-pointer.
4128         * config/i386/i386.c (override_options): Similarly.  Enable
4129         accumulate-outgoing-args if not explicitly disabled.
4130
4131 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
4132
4133         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
4134         Handle big endian vs. small endian.
4135         (vec_initv2sf): Handle big endian vs. small endian.
4136         (*vec_extractv2sf_1): Ditto.
4137
4138 2005-10-05  Dale Johannesen  <dalej@apple.com>
4139
4140         * convert.c (convert_to_real):  Don't convert
4141         (float)floor(double d) to floorf((float)d).
4142
4143 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
4144
4145         * config/arm/arm.md (insv): Use gen_int_mode in more places.
4146
4147 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
4148
4149         PR tree-optimization/18587
4150         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
4151         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
4152         build_vuses): Change to VEC type.
4153         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
4154         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
4155         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
4156         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
4157         (get_name_decl): New.  Return DECL_UID of base variable.
4158         (operand_build_cmp): New.  qsort comparison routine.
4159         (operand_build_sort_virtual): New.  Sort virtual build vector.
4160         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
4161         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
4162         (FINALIZE_BASE): Use get_name_decl.
4163         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
4164         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
4165         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
4166         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
4167         direct VEC_* manipulations.
4168         (build_ssa_operands): Call operand_build_sort_virtual.
4169         (copy_virtual_operand, create_ssa_artficial_load_stmt,
4170         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
4171         with direct VEC_* manipulations.
4172         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
4173         with direct VEC manipulations.
4174
4175 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
4176
4177         PR tree-optimization/21419
4178         PR tree-optimization/24146
4179         PR tree-optimization/24151
4180
4181         * c-typeck.c (readonly_error): Handle USE being lv_asm.
4182         (build_asm_expr): Call it if outputs are read-only.
4183         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
4184
4185 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
4186             Paolo Bonzini  <bonzini@gnu.org>
4187
4188         PR target/23809
4189
4190         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
4191         enable the instructions and not just the built-ins.
4192         * doc/invoke.texi (x86 Options): Likewise.
4193
4194 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
4195
4196         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
4197
4198         * doc/invoke.texi (Option Summary): Correct spelling
4199         of -mmacosx-version-min.
4200
4201 2005-10-04  Devang Patel  <dpatel@apple.com>
4202
4203         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
4204         real types.
4205
4206 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
4207
4208         * tree-vect-transform.c (vect_create_epilog_for_reduction):
4209         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
4210
4211 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
4212
4213         * config/s390/s390.md ("TDSI","DP"): New mode macros.
4214         ("TE","tg"): New mode attributes.
4215         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
4216         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
4217         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
4218         dword_mode and one for GPRmode.
4219
4220 2005-10-04  Ian Lance Taylor  <ian@airs.com>
4221
4222         PR preprocessor/13726
4223         * c-ppoutput.c (cb_include): Add comments parameter, and print out
4224         any comments passed in.
4225
4226 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4227
4228         * tree.c (annotate_with_file_line): Fix typo.
4229
4230 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4231
4232         PR ada/19382
4233         * builtins.c (fold_builtin_memcmp): When constructing the pointer
4234         type used to access data in the inlined length == 1 case, use
4235         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
4236         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4237
4238 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
4239
4240         * config/i386/i386.h (TARGET_FISTTP): Enable also for
4241         TARGET_SSE3 and only for TARGET_80387.
4242         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
4243         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
4244         Do not depend on TARGET_80387.
4245
4246 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4247
4248         * tree.c (last_annotated_node): Change type to location_t*.
4249         (annotate_with_file_line): Reflect the change of
4250         last_annotated_node type.
4251
4252 2005-10-04  Richard Guenther  <rguenther@suse.de>
4253
4254         PR c/23576
4255         * c-decl.c (grokdeclarator): Don't write to fields
4256         of error_mark_node.
4257
4258 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4259
4260         PR middle-end/23125
4261         * c-decl.c (finish_decl): Use set_user_assembler_name even for
4262         register variables.
4263         * varasm.c (make_decl_rtl): If a register variable does not
4264         have a set user assmbler name, error out.
4265         Decode the asmspec is now name+1 bypassing '*'.
4266
4267 2005-10-04  Steven Bosscher  <stevenb@suse.de>
4268
4269         PR tree-optimization/23049
4270         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
4271         of a COND_EXPR is folded before calling fold on the whole rhs of a
4272         conditional assignment.
4273         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
4274         document that a COND_EXPR may appear there.
4275
4276 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
4277
4278         PR 23445
4279         * tree-vrp.c (extract_range_from_assert): If the new numeric
4280         range created out of the assertion contradicts the existing
4281         numeric range of the ASSERT_EXPR variable, make the new range
4282         varying.
4283
4284 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4285
4286         * config/sh/sh.c (sh_register_move_cost): Add case for moving
4287         from T_REGS to FP register class.
4288
4289 2005-10-03  Richard Henderson  <rth@redhat.com>
4290
4291         PR 24135
4292         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
4293         before creating a new one.
4294
4295 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
4296
4297         * config/rs6000/t-aix43 (LDFLAGS): New.
4298         * config/rs6000/t-aix52 (LDFLAGS): New.
4299
4300 2005-10-03  Ian Lance Taylor  <ian@airs.com>
4301
4302         * gimplify.c (find_single_pointer_decl_1): New static function.
4303         (find_single_pointer_decl): New static function.
4304         (internal_get_tmp_var): For a formal variable, set restrict base
4305         information if appropriate.
4306         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
4307         return it.
4308         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
4309         (DECL_GET_RESTRICT_BASE): Define.
4310         (SET_DECL_RESTRICT_BASE): Define.
4311         (decl_restrict_base_lookup): Declare.
4312         (decl_restrict_base_insert): Declare.
4313         (struct tree_decl_with_vis): Add based_on_restrict_p field.
4314         * tree.c (restrict_base_for_decl): New static variable.
4315         (init_ttree): Initialize restrict_base_for_decl.
4316         (copy_node_stat): Copy restrict base information.
4317         (decl_restrict_base_lookup): New function.
4318         (decl_restrict_base_insert): New function.
4319         (print_restrict_base_statistics): New static function.
4320         (dump_tree_statistics): Call print_restrict_base_statistics.
4321
4322 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
4323
4324         PR 24142
4325         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
4326         case of anti-ranges.
4327
4328 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
4329
4330         PR c/18851
4331         * c-typeck.c (tagged_tu_seen): Rename to ...
4332         (tagged_tu_seen_cache): this and add val field.
4333         (comptypes): Move functional to comptypes_internal
4334         and free tagged_tu_seen.
4335         (comptypes_internal): New function and call comptypes_internal
4336         instead of comptypes. Speed up by sibcalling
4337         tagged_types_tu_compatible_p.
4338         (alloc_tagged_tu_seen): New function
4339         (free_all_tagged_tu_seen_up_to): New function.
4340         (tagged_types_tu_compatible_p): Return the val of the seen two
4341         types.
4342         Add that the two types are the same to tagged_tu_seen_base
4343         if they are and call comptypes_internal instead of comptypes.
4344         <case UNION_TYPE>: Speed up common type where the fields are
4345         in the same order.
4346         (function_types_compatible_p): Call comptypes_internal instead of
4347         comptypes.
4348         (type_lists_compatible_p): Likewise.
4349         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
4350
4351 2005-10-02  Matthias Klose  <doko@debian.org>
4352
4353         * doc/invoke.texi: Fix typo and speling error.
4354
4355 2005-10-01  Richard Henderson  <rth@redhat.com>
4356
4357         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
4358
4359 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
4360
4361         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
4362         using --start-group and --end-group.
4363
4364 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
4365
4366         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
4367         FIXME note regarding quirky semantics.
4368
4369 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
4370
4371         PR 24141
4372         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
4373         non-null range as a last resort.
4374
4375 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
4376             Diego Novillo  <dnovillo@redhat.com>
4377
4378         PR 23604
4379         * tree-vrp.c (extract_range_from_assert): For !=
4380         assertions, only build an anti-range if LIMIT is a
4381         single-valued range.
4382
4383 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
4384
4385         * arm.md (movqi): On thumb when optimizing, handle loading from
4386         memory by describing this as taking a subreg of a zero-extended load
4387         into an SImode register.
4388         (movhi): Likewise.
4389
4390 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
4391
4392         * reload1.c (merge_assigned_reloads): Do not change any
4393         RELOAD_FOR_OUTPUT_ADDRESS reloads.
4394
4395 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
4396
4397         * Makefile.in (LIPO_FOR_TARGET): Define.
4398         (STRIP_FOR_TARGET): Define.
4399
4400         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
4401         before creating new ones.  Do symlinks before creating the actual
4402         targets.
4403
4404         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
4405         to work out which multilibs are actually being built.
4406
4407 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
4408
4409         * tree-vect-transform.c, config/ms1/ms1.md,
4410         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
4411         Follow spelling conventions.
4412         * doc/invoke.texi, doc/md.texi: Fix typos.
4413
4414 2005-09-30  Andrew Macleod  <amacleod@redat.com>
4415
4416         PR tree-optimization/21430
4417         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
4418         use operands, and set stmt pointer if need be.
4419         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
4420         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
4421         present.
4422
4423 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4424
4425         PR middle-end/24053
4426         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
4427
4428 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
4429
4430         * optabs.c (expand_binop): Initialize first_pass_p.
4431
4432 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
4433
4434         PR middle-end/24109
4435         * c-decl.c (c_write_global_declarations_1): If any
4436         wrapup_global_declaration_2 call returned true, restart the loop.
4437
4438 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
4439
4440         Fix PR tree-optimization/24117
4441         * tree-ssa-structalias.c (find_func_aliases): Strip nops
4442         before considering whether to use anyoffset.
4443
4444 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
4445
4446         Revert this patch:
4447
4448         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
4449
4450         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
4451         to order operands.
4452         (swap_commutative_operands_with_target): New.
4453
4454 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
4455
4456         PR c/21419
4457         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
4458         read-only.
4459
4460 2005-09-29  Steven Bosscher  <stevenb@suse.de>
4461
4462         PR tree-optimization/23911
4463         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
4464         and IMAGPART_EXPR too.
4465
4466 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
4467
4468         PR 17886
4469         * expmed.c (expand_shift): Move logic to reverse rotation
4470         direction when  rotating by constants ...
4471         * optabs.c (expand_binop): ... here.
4472         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
4473         (ix86_rotrdi3): New pattern.
4474         (rotldi3): Handle 32-bit mode.
4475         (ix86_rotldi3): New pattern.
4476
4477 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
4478
4479         PR target/24102
4480         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
4481         check for numbers that need no bit twiddle.
4482
4483 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
4484
4485         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
4486         multilib to be built.
4487
4488         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
4489         (stage1-start): Delete old libgcc and libunwind before moving
4490         anything into the stage directory.
4491         (stage2-start): Likewise.
4492         (stage3-start): Likewise.
4493         (stage4-start): Likewise.
4494         (stageprofile-start): Likewise.
4495         (stagefeedback-start): Likewise.
4496         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
4497         header in tm_file and CPU-specific t-darwin in tmake_file.
4498         (i[34567]86-*-darwin*): Don't change tm_file.
4499         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
4500         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
4501         shared library stub for target OS version.
4502         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
4503         (SHLIB_LINK): Don't make SHLIB_SOLINK.
4504         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
4505         (libgcc_s.%.dylib): New.
4506         (LIBGCC): Define.
4507         (install-darwin-libgcc-stubs): New.
4508         (INSTALL_LIBGCC): New append.
4509         * config/i386/darwin-libgcc.10.4.ver: New.
4510         * config/i386/darwin-libgcc.10.5.ver: New.
4511         * config/i386/t-darwin: New.
4512         * config/rs6000/darwin-libgcc.10.4.ver: New.
4513         * config/rs6000/darwin-libgcc.10.5.ver: New.
4514         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
4515         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
4516
4517 2005-09-28  Paul Brook  <paul@codesourcery.com>
4518
4519         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
4520         denormals.
4521
4522 2005-09-28  Richard Guenther  <rguenther@suse.de>
4523
4524         PR tree-optimization/23853
4525         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
4526         host_integerp to verify misalignment value.
4527
4528 2005-09-28  Richard Henderson  <rth@redhat.com>
4529
4530         * builtins.c (get_builtin_sync_mode): New.
4531         (expand_builtin_sync_operation): Pass in mode argument.
4532         (expand_builtin_compare_and_swap): Likewise.
4533         (expand_builtin_lock_test_and_set): Likewise.
4534         (expand_builtin_lock_release): Likewise.
4535         (expand_builtin): Update to match.
4536
4537 2005-09-28  Nick Clifton  <nickc@redhat.com>
4538
4539         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
4540         formatting.  Add check to PLUS case to ensure that the offset is
4541         within an acceptable range.
4542
4543         * config/v850/v850.md (casesi): Disable the generation of the
4544         switch pattern as it is not being handled properly at the moment.
4545
4546         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
4547         for when the high words are identical.
4548
4549 2005-09-27  Richard Henderson  <rth@redhat.com>
4550
4551         * pretty-print.c (pp_base_format): Fix typo for %>.
4552
4553 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
4554             Devang Patel  <dpatel@apple.com>
4555
4556         PR tree-optimization/23625
4557         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
4558         LABEL_EXPR, assertion check.
4559
4560 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
4561
4562         * optabs.c (no_conflict_move_test): Check if a result of a
4563         to-be-moved insn would be clobbered by an originally
4564         preceding insn.
4565
4566 2005-09-27  Jeff Law  <law@redhat.com>
4567
4568         * passes.c (init_optimization_passes): Replace copy propagation
4569         passes immediately after DOM with phi-only copy propagation
4570         pases.  Add phi-only copy propagation pass after first DOM pass.
4571         * tree-pass.h (pass_phi_only_copy_prop): Declare.
4572         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
4573         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
4574         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
4575         to init_copy_prop.  Callers updated.
4576         (do_phi_only_copy_prop): New function.
4577         (pass_phi_only_copy_prop): New pass descriptor.
4578
4579 2005-09-27  Nick Clifton  <nickc@redhat.com>
4580
4581         * libgcc2.c (__popcount_tab): Remove redundant prototype.
4582
4583 2005-09-26  Jason Merrill  <jason@redhat.com>
4584
4585         PR c++/13764
4586         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
4587
4588         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
4589
4590 2005-09-26  James E Wilson  <wilson@specifix.com>
4591
4592         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
4593         copyright.  Add gcc copyright plus libgcc exception.
4594         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
4595         copyright.
4596         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
4597
4598 2005-09-26  Jeff Law  <law@redhat.com>
4599
4600         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
4601         about when to iterate.
4602
4603 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
4604
4605         PR target/23847
4606         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
4607         for __complex__ double in -mcpu=G5 mode.
4608
4609 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
4610
4611         PR tree-optimization/23942
4612         * Makefile.in (SCEV_H): Depends on PARAMS_H.
4613         * tree-scalar-evolution.c: Include params.h.
4614         (t_bool): New enum.
4615         (follow_ssa_edge, follow_ssa_edge_in_rhs,
4616         follow_ssa_edge_in_condition_phi_branch,
4617         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
4618         Change return type to t_bool.  Use a parameter to limit the size of
4619         trees that are walked before stopping
4620         (analyze_evolution_in_loop): Initialize the limit to 0.
4621         (follow_ssa_edge): Give up by returning t_dont_know if the limit
4622         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
4623
4624 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
4625
4626         PR middle-end/23831
4627         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
4628         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
4629
4630 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
4631
4632         * combine.c (make_extraction): Check for valid use of subreg.
4633
4634 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
4635
4636         PR target/24055
4637         * config/i386/i386.md ("*fistdi2_1"): New pattern.
4638         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
4639         ("fist<mode>2_with_temp"): Use only register operands.
4640
4641 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
4642
4643         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
4644         CALL_INSN_FUNCTION_USAGE.
4645
4646 2005-09-26  Richard Guenther  <rguenther@suse.de>
4647
4648         PR middle-end/15855
4649         * gcse.c: Include hashtab.h, define ldst entry hashtable.
4650         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
4651         (ldst_entry): Use the hashtable instead of list-walking.
4652         (find_rtx_in_ldst): Likewise.
4653         (free_ldst_entry): Free the hashtable.
4654         (compute_ld_motion_mems): Create the hashtable.
4655         (trim_ld_motion_mems): Remove entry from hashtable if
4656         removing it from list.
4657         (compute_store_table): Likewise^2.
4658         (store_motion): Free hashtable in case we did not see
4659         any stores.
4660
4661 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
4662
4663         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
4664         and arg1 if we are passing them to fold_build2.
4665
4666 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
4667
4668         PR 23828
4669         * config/i386/i386.c (ix86_function_regparm): Fix the test for
4670         a nested function.
4671
4672 2005-09-25  Richard Henderson  <rth@redhat.com>
4673
4674         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
4675         SYMBOL_REF_TLS_MODEL to be correct.
4676
4677 2005-09-24  Richard Henderson  <rth@redhat.com>
4678
4679         * ipa-type-escape.c (discover_unique_type): Remove dead code at
4680         end of function.  Reindent.
4681
4682 2005-09-24  Ian Lance Taylor  <ian@airs.com>
4683
4684         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
4685         NEGATE_EXPR/BIT_NOT_EXPR case.
4686
4687 2005-09-24  Richard Henderson  <rth@redhat.com>
4688
4689         * c-common.c (handle_mode_attribute): When not modifying in place,
4690         create subtypes for enumerations.
4691         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
4692         * gimplify.c (create_tmp_from_val): Likewise.
4693
4694 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
4695
4696         * config/i386/i386.md (*tls_global_dynamic_64,
4697         *tls_local_dynamic_base_64): Add missing mode to call.
4698         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
4699
4700 2005-09-24  Jan Hubicka  <jh@suse.cz>
4701
4702         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
4703         (cgraph_clone_node): Likewise.
4704         * cgraph.h (cgraph_clone_edge): Update prototype.
4705         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
4706         duplicated prototypes; add updating argument.
4707         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
4708         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
4709         updating profile.
4710         (cgraph_mark_inline_edge): Likewise.
4711         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
4712         (cgraph_flatten_node): Likewise.
4713         (cgraph_decide_recursive_inlining): Likewise.
4714         (cgraph_decide_inlining_of_small_function): Likewise.
4715         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4716
4717 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
4718             Pete Steinmetz <steinmtz@us.ibm.com>
4719
4720         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
4721         (rldic.): Set type to "compare".
4722         (rldicr.): Same.
4723         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
4724         mfjmpr for MFCTR/MFLR.
4725         (movdf_hardfloat64): Same.
4726         (movdf_softfloat64): Same.  Correct order of store and move types.
4727         (movti_string): Set type to store_ux/load_ux.
4728         (load_multiple): Set type to load_ux.
4729         (store_multiple): Set type to store_ux.
4730         (movmemsi): Set type to store_ux.
4731         (output_cbranch direct_return): Set type to jmpreg.
4732         (stmw): Set type to store_ux.
4733         (lmw): Set type to load_ux.
4734         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
4735         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
4736         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
4737         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
4738         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
4739         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
4740         (rios1-fpstore): Increase latency to 3.
4741         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
4742         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
4743
4744 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
4745             Andrew Pinski  <pinskia@physics.uc.edu>
4746
4747         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
4748         operand2 constraint to "b".
4749         (sync_<fetchop_name>di_internal): Same.
4750         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
4751         to "b".
4752         (sync_old_<fetchop_name>di_internal): Same.
4753         (sync_new_<fetchop_name>si_internal): Same.
4754         (sync_new_<fetchop_name>di_internal): Same.
4755
4756 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
4757
4758         PR middle-end/23991
4759         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
4760         case, define as macros.
4761
4762         PR rtl-optimization/23837
4763         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
4764         clobber / clobber match between dest and p->first.
4765
4766         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
4767         (no_conflict_move_test): Update comments.
4768
4769 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
4770
4771         * doc/install.texi: Update URL for Jacks.
4772         * doc/sourcebuild.texi: Likewise.
4773
4774 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
4775
4776         PR target/24007
4777         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
4778         registers when choosing register preferences.
4779         (movdf_hardfloat64): Same.
4780
4781 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
4782
4783         * expmed.c (expand_shift): Don't use the target of the rotate as
4784         target for the first expanded shift insn.
4785         * testsuite/gcc.dg/20050922-1.c: Testcase added.
4786
4787 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
4788
4789         PR tree-optimization/22438
4790         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
4791         preserved iv rhs rewriting specially.
4792
4793 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
4794
4795         * tree-data-ref.c (analyze_array_indexes): Only estimate when
4796         estimate_only  is true.
4797         * tree-flow.h (ref_contains_indirect_ref): New prototype.
4798         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
4799         tree-ssa-structalias.c
4800         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
4801         ref_contains_indirect_ref.
4802         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
4803
4804 2005-09-21  DJ Delorie  <dj@redhat.com>
4805
4806         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
4807         MASK_PTR_A0D0.
4808         (mn10300_return_in_memory): Support variable size types also.
4809         (mn10300_pass_by_reference): Likewise.
4810         (mn10300_function_value): New.
4811         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
4812         (FUNCTION_OUTGOING_VALUE): Likewise.
4813         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
4814         * doc/invoke.texi: Document it.
4815
4816 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
4817
4818         PR target/22585
4819         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
4820         force integer op1 into register for XFmode compares.
4821
4822 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
4823
4824         PR middle-end/23971
4825         * expmed.c (alg_code): Add alg_impossible.
4826         (alg_hash_entry): Add cost.
4827         (synth_mult): Record alg_impossible in the hash table if
4828         multiplication by a given integer is impossble within the
4829         limit.  Speed up using alg_impossible.
4830
4831 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
4832
4833         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
4834         argument.  Allow and set any offset if needs_anyoffset is passed
4835         in.
4836         (get_constraint_for): Add argument here too.
4837         Pass it down.
4838         (do_structure_copy): Pass NULL to get_constraint_for.
4839         (handle_ptr_arith): Ditto.
4840         (find_func_aliases): Ditto.
4841
4842 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
4843
4844         PR rtl-optimization/23898
4845         * output.h (get_attr_min_length): Declare.
4846         * final.c (get_attr_length_1): New function, broken out of:
4847         (get_attr_length).
4848         (get_attr_min_length): New function.
4849         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
4850         (duplicate_computed_gotos): Likewise.
4851         * genattr.c (insn_min_length): Generate declaration.
4852         * genattrtab.c (min_fn, min_attr_value): New functions.
4853         (make_length_attrs): Generate insn_min_length.
4854
4855 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
4856
4857         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
4858
4859 2005-09-20  Richard Henderson  <rth@redhat.com>
4860
4861         PR tree-optimization/24059
4862         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
4863         EXPAND_STACK_PARM.
4864
4865 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
4866
4867         * c.opt (fextended-identifiers): New.
4868         * c-opts.c (c_common_handle_option): Handle
4869         -fextended-identifiers.
4870         * doc/cpp.texi: Update documentation of extended identifiers.
4871         * doc/cppopts.texi (-fextended-identifiers): Document.
4872
4873 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4874
4875         PR tree-optimization/23929
4876         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
4877         if expr is NULL.
4878
4879         PR tree-optimization/23818
4880         * tree-stdarg.c (execute_optimize_stdarg): Call
4881         calculate_dominance_info.
4882
4883 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
4884
4885         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
4886         (analyze_siv_subscript_cst_affine): Add weak SIV test.
4887         (compute_overlap_steps_for_affine_1_2): Use
4888         get_number_of_iters_for_loop.
4889         (analyze_subscript_affine_affine): Check whether difference is
4890         zero first.
4891         Use get_number_of_iters_for_loop.
4892         Check whether overlap occurs outside of bounds.
4893         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
4894
4895 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
4896
4897         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
4898         base register if possible.
4899
4900 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
4901
4902         PR tree-optimization/18463
4903         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
4904         converting it directly is not possible.
4905         (chrec_convert_aggressive): New function.
4906         * tree-chrec.h (chrec_convert_aggressive): Declare.
4907         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
4908         Fold chrec conversions aggressively if asked to.
4909         (instantiate_parameters): Modified because of changes in
4910         instantiate_parameters_1.
4911
4912 2005-09-19  Richard Henderson  <rth@redhat.com>
4913
4914         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
4915         (reduc_splus_v2df): New.
4916
4917 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
4918
4919         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
4920         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
4921
4922 2005-09-19  Richard Henderson  <rth@redhat.com>
4923
4924         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
4925         vcondu<SSEMODE12>.
4926
4927 2005-09-19  Richard Henderson  <rth@redhat.com>
4928
4929         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
4930         (ia64_expand_dot_prod_v8qi): New.
4931         * config/ia64/ia64-protos.h: Update.
4932         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
4933         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
4934         sdot_prodv8qi, sdot_prodv4hi): New.
4935         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
4936
4937 2005-09-19  Richard Henderson  <rth@redhat.com>
4938
4939         PR 23941
4940         * real.c (exact_real_truncate): Return false if the format cannot
4941         represent the number as a normal.
4942
4943         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
4944         for a memory source.
4945
4946 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
4947
4948         * tree-ssa-operands.c (swap_tree_operands): Export.
4949         * tree.h (swap_tree_operands): Declare.
4950         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
4951         Call swap_tree_operands.
4952
4953 2005-09-19  Richard Henderson  <rth@redhat.com>
4954
4955         * tree-flow.h (merge_alias_info): Declare.
4956         * tree-ssa-copy.c (merge_alias_info): Export.
4957         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
4958         (vect_create_data_ref_ptr): Use create_iv directly.
4959         (vectorizable_load): Use correct types for integer constants.
4960         (vect_generate_tmps_on_preheader): Likewise.
4961         (vect_gen_niters_for_prolog_loop): Likewise.
4962
4963 2005-09-19  Steven Bosscher  <stevenb@suse.de>
4964
4965         PR rtl-optimization/23943
4966         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
4967
4968 2005-09-18  Jan Hubicka  <jh@suse.cz>
4969
4970         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
4971
4972 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
4973
4974         * varasm.c (output_constant): Do not abort on conversions to union
4975         types between different sizes.
4976
4977 2005-09-18  Richard Guenther  <rguenther@suse.de>
4978
4979         PR middle-end/23944
4980         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
4981         fallback.
4982
4983 2005-09-18  Paul Brook  <paul@codesourcery.com>
4984
4985         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
4986
4987 2005-09-17  Richard Henderson  <rth@redhat.com>
4988
4989         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
4990         * tree-ssa-loop.c (pass_vect_dce): Remove.
4991         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
4992         of pass_vectorize.
4993
4994 2005-09-17  Richard Henderson  <rth@redhat.com>
4995
4996         * tree-pass.h (pass_vect_dce): Declare.
4997         * passes.c (init_optimization_passes): Add it.
4998         * tree-flow.h (tree_ssa_dce): Declare.
4999         * tree-ssa-dce.c (tree_ssa_dce): Export.
5000         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
5001         (gate_tree_vectorize): ... here.
5002         (pass_vect_dce): New.
5003
5004 2005-09-17  Jan Hubicka  <jh@suse.cz>
5005
5006         * except.c (struct eh_status): Turn region_array into vec.
5007         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
5008         convert_from_eh_region_ranges, find_exception_handler_labels,
5009         current_function_has_exception_handlers, assign_filter_values,
5010         build_post_landing_pads, dw2_build_landing_pads,
5011         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
5012         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
5013         foreach_reachable_handler, can_throw_internal_1,
5014         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
5015         region_array.
5016         (duplicate_eh_region_1): Update region_array.
5017         (duplicate_eh_regions): Resize region_array and avoid recomputing.
5018
5019 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
5020
5021         PR middle-end/22067
5022         * expmed.c (expand_mult): Substitute simple register for op0 when
5023         computing max_cost.
5024
5025 2005-09-17  Richard Henderson  <rth@redhat.com>
5026
5027         * expr.c (emit_move_via_integer): Add force argument, pass it on
5028         to emit_move_change_mode.  Update callers.
5029         (emit_move_complex): Pass true to new force argument.
5030         * function.c (expand_function_end): Move expand_eh_return call
5031         earlier.  Merge sub-word complex values into a pseudo before
5032         copying to the return hard register.
5033
5034 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5035
5036         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
5037         between different sizes.
5038
5039 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
5040
5041         PR 23903
5042
5043         * passes.c (init_optimization_passes): Register dump files for
5044         IPA passes first.
5045
5046 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
5047
5048         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
5049         * config/s390/s390.c (s390_overlap_p): New function.
5050         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
5051         peephole2, "*xc" peephole2): Added overlap check to the peephole2
5052         condition.
5053
5054 2005-09-16  Richard Guenther  <rguenther@suse.de>
5055
5056         * ipa-pure-const.c (static_execute): Free auxiliar information.
5057         * ipa-type-escape.c (discover_unique_type): Free temporary key.
5058         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
5059
5060 2005-09-15  DJ Delorie  <dj@redhat.com>
5061
5062         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
5063
5064 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
5065
5066         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
5067         to order operands.
5068         (swap_commutative_operands_with_target): New.
5069
5070 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
5071
5072         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
5073         parameter.
5074         Update callers.
5075         (estimate_iters_using_array): New function.
5076         * tree-data-ref.h (estimate_iters_using_array): Prototype
5077         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
5078         Use estimate_iters_using_array instead of analyze_array.
5079
5080 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5081
5082         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
5083         as addressable.
5084
5085 2005-09-15  Michael Matz  <matz@suse.de>
5086
5087         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
5088
5089 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
5090
5091         PR tree-optimization/23835
5092         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
5093         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
5094
5095 2005-09-14  Richard Henderson  <rth@redhat.com>
5096
5097         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
5098         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
5099
5100 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
5101
5102         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
5103         in the ARRAY_TYPE case.
5104
5105 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
5106
5107         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
5108
5109 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
5110
5111         PR middle-end/22480
5112         * tree-vect-transform.c (vectorizable_operation): Return false for
5113         scalar shift operations and for vector shift operations with
5114         non-invariant shift arguments.  Use scalar tree operand op1 as
5115         a shift operand when vector shift insn pattern uses scalar shift
5116         operand.
5117         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
5118
5119 2005-09-14  Olivier Hainque  <hainque@adacore.com>
5120
5121         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
5122         value if it has side-effects.
5123
5124 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
5125
5126         PR target/22068
5127         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
5128
5129 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
5130
5131         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
5132         passed as NAME as if it were label at start of function code.
5133
5134 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5135
5136         * config/sh/sh.md (*movv4sf_i): Add general register cases to
5137         the constraints.
5138
5139 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
5140
5141         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
5142         as early clobber.  Rewrite so the PIC register is not implicitly used.
5143
5144 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5145
5146         * tree.c (annotate_with_file_line): Compare line numbers before
5147         file names.
5148
5149 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
5150
5151         PR target/23816
5152         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
5153         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
5154
5155 2005-09-13  Ian Lance Taylor  <ian@airs.com>
5156
5157         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
5158         than a HOST_WIDEST_INT to gen_doloop_begin.
5159
5160 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
5161
5162         * tree-dfa.c (dump_variable): Guard against NULL annotations.
5163
5164 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
5165
5166         PR tree-optimize/23817
5167         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
5168
5169 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
5170
5171         PR target/23774
5172         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
5173         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
5174         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
5175         (restore_stack_nonlocal): Likewise.
5176         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
5177
5178 2005-09-12  Ian Lance Taylor  <ian@airs.com>
5179
5180         PR g++/7874
5181         * c.opt (ffriend-injection): New C++ option.
5182         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
5183         (C++ Dialect Options): Document -ffriend-injection.
5184
5185 2005-09-12  Josh Conner  <jconner@apple.com>
5186
5187         PR middle-end/23237
5188         * ipa-reference.c (static_execute): Don't mark variables in
5189         named sections TREE_READONLY.
5190
5191 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
5192
5193         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
5194         stack_tie.
5195
5196 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
5197
5198         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
5199         V_MUST_DEF instead of just the first_use_p.
5200         Don't mark the virtual variables for renaming on the statement which
5201         is being removed.
5202         (pass_dse): Remove TODO_update_ssa.
5203
5204 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
5205
5206         PR middle-end/23290
5207         * stor-layout.c (compute_record_mode): For records with a single
5208         field, actually check the field's mode size against the type size.
5209
5210         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
5211         registers for TARGET_SHMEDIA.
5212         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
5213         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
5214         of GENERAL_REGS and FP_REGS.
5215
5216 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
5217
5218         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
5219
5220 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
5221
5222         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
5223         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
5224         are omitted.  Exclude stack_tie insn too.
5225
5226 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
5227
5228         PR rtl-optimization/23098
5229         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
5230         0.0f is easy.
5231         * config/rs6000/rs6000.md (movdf splitter): Use
5232         const_double_operand predicate for TARGET_POWERPC64.
5233         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
5234         SYMBOL_REF method to ABI_V4.
5235
5236         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
5237         replace_equiv_address.
5238         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
5239         rs6000_sr_alias_set and MEM_NOTRAP.
5240         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
5241
5242 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
5243
5244         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
5245         handle CALL_EXPR again.
5246
5247 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
5248
5249         * arm/predicates.md (alignable_memory_operand): Delete.
5250
5251 2005-09-10  Richard Henderson  <rth@redhat.com>
5252
5253         PR debug/23806
5254         * dbxout.c (dbxout_expand_expr): New.
5255         (dbxout_symbol): Use it.
5256
5257 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
5258
5259         * arm.c (arm_gen_rotated_half_load): Delete.
5260         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
5261         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
5262         (thumb_set_return_address): Likewise.
5263         (thumb_load_double_from_address): Use adjust_address.
5264         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
5265         (extendhsisi2_mem, movhi_bytes): Use change_address.
5266         (movhi): Use widen_memory_access.
5267         (reload_out_df): Use replace_equiv_address.
5268         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
5269
5270 2005-09-09  Richard Henderson  <rth@redhat.com>
5271
5272         PR debug/20998
5273         * dbxout.c: Include expr.h.
5274         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
5275         (dbxout_symbol): Handle DECL_VALUE_EXPR.
5276         * Makefile.in (dbxout.o): Add EXPR_H.
5277
5278 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
5279
5280         PR tree-optimization/23509
5281         * tree-cfg.c (replace_uses_by): Use replace_exp.
5282         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
5283         pointers have name_mem_tag or type_mem_tag set.
5284
5285 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
5286
5287         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
5288         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
5289         of wrongly accessing operands.
5290
5291 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
5292
5293         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
5294         * tree-chrec.c: Include tree-scalar-evolution.h.
5295         (chrec_convert): Instantiate the base and step before calling
5296         scev_probably_wraps_p that would fail on parametric evolutions.
5297         Collect all the fails into a single section failed_to_convert,
5298         print a diagnostic, and return chrec_dont_know instead of calling
5299         fold_convert.
5300         * tree-scalar-evolution.c (loop_closed_phi_def): New.
5301         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
5302         phi nodes.
5303         (scev_const_prop): Don't replace the definition of a loop closed ssa
5304         phi node by itself, or by another loop closed ssa phi node.
5305         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
5306         that base and step are defined.
5307
5308 2005-09-09  Richard Guenther  <rguenther@suse.de>
5309
5310         PR c++/23624
5311         * fold-const.c (fold_ternary): Check truth_value_p before
5312         calling invert_truthvalue.
5313
5314 2005-09-09  Nick Clifton  <nickc@redhat.com>
5315
5316         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
5317         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
5318         dimension of these arrays.
5319         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
5320         these arrays.
5321         * longlong.h: Only provide a prototype for the __clz_tab[] array
5322         if this header has not been included from libgcc2.h.
5323         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
5324         defining own types.
5325         Provide prototypes for exported functions.
5326         Use the __clz_tab[] and __popcount_tab[] arrays provided by
5327         libgcc2.c.
5328
5329 2005-09-08  Josh Conner  <jconner@apple.com>
5330
5331         PR c++/21135
5332         PR c++/23180
5333         * expr.c (expand_expr_addr_expr_1): Don't invoke
5334         expand_simple_binop for EXPAND_INITIALIZER.
5335
5336 2005-09-08  Richard Henderson  <rth@redhat.com>
5337
5338         PR debug/23190
5339         * toplev.c (wrapup_global_declaration_1): Split out ...
5340         (wrapup_global_declaration_2): ... from ...
5341         (wrapup_global_declarations): ... here.  Return bool.
5342         (check_global_declaration_1): Split out ...
5343         (check_global_declarations): from here.
5344         (emit_debug_global_declarations): New.
5345         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
5346         check_global_declaration_1, emit_debug_global_declarations): Declare.
5347         * c-decl.c (c_write_global_declarations_1): Don't create a vector
5348         of decls.  Call wrapup_global_declaration_1,
5349         wrapup_global_declaration_2, check_global_declaration_1 directly.
5350         (c_write_global_declarations_2): New.
5351         (ext_block): New.
5352         (c_write_global_declarations): Call c_write_global_declarations_2.
5353         * langhooks.c (write_global_declarations): Call
5354         emit_debug_global_declarations.
5355
5356         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
5357         remove decls that have DECL_RTL_SET_P.
5358         * passes.c (rest_of_decl_compilation): Invoke
5359         cgraph_varpool_finalize_decl for all but functions.
5360
5361 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5362
5363         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
5364         the result of a conversion if the new min and max cannot be compared.
5365
5366 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
5367
5368         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
5369         (override_options): Setting s390_sr_alias_set removed.
5370         (save_fpr, save_gprs): Set alias set to vararg or frame.
5371         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
5372         s390_sr_alias_set with get_frame_alias_set ().
5373         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
5374         get_varargs_alias_set ().
5375
5376 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
5377
5378         PR objc/20574
5379         PR objc/19324
5380         * c-parser.c (c_parser_objc_method_definition): If the next
5381         token is not "{", error out and don't start the function.
5382
5383 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
5384
5385         * tree-vrp.c (extract_range_from_expr): Move the check for non
5386         nullness after the check for gimple invariant.
5387
5388 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5389
5390         * tree.c (host_integerp, tree_low_cst): Correct function comment.
5391
5392 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5393
5394         PR target/23747
5395         * config/m32r.md (movmemsi_internal): Canonicalize order of
5396         operands in PLUS component of template.
5397
5398 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5399
5400         * reload1.c (fixup_eh_region_note): Remove assertion.
5401         (fixup_abnormal_edges): Reverted removal of call to
5402         find_many_sub_basic_blocks made on 2005-08-31.
5403
5404 2005-09-07  Richard Henderson  <rth@redhat.com>
5405
5406         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
5407         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
5408         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
5409         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
5410         rearrange for better packing.
5411         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
5412         (lookup_cfa_1): Remove inline marker.
5413         (cfa_equal_p): Split out of ...
5414         (def_cfa_1): ... here.  Use INVALID_REGNUM.
5415         (build_cfa_loc): Handle !cfa->indirect.
5416         (frame_pointer_cfa_offset): New.
5417         (dbx_reg_number): Assert register elimination performed; do
5418         leaf register remapping.
5419         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
5420         (eliminate_reg_to_offset): New.
5421         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
5422         for verifiably local stack frame addresses; re-base to CFA.
5423         (mem_loc_descriptor): Remove can_use_fbreg argument.
5424         (concat_loc_descriptor, loc_descriptor): Likewise.
5425         (containing_function_has_frame_base): Remove.
5426         (rtl_for_decl_location): Don't do register elimination or
5427         leaf register remapping here.
5428         (secname_for_decl): Split out from ..
5429         (add_location_or_const_value_attribute): ... here.
5430         (convert_cfa_to_loc_list): New.
5431         (compute_frame_pointer_to_cfa_displacement): New.
5432         (gen_subprogram_die): Use them.
5433         * tree.h (frame_base_decl): Remove.
5434         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
5435         (prologue_stack_adjust): Remove.
5436         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
5437         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
5438         (set_frame_base_location): Remove.
5439         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
5440         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
5441         (vt_add_function_parameters): Don't eliminate_regs.
5442         (vt_initialize): Don't create frame_base_decl.
5443
5444 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5445
5446         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
5447         version of GNU binutils for 4.x and later.
5448
5449 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
5450
5451         * ggc-page.c (ggc_push_context): Remove.
5452         (ggc_pop_context): Likewise.
5453         * ggc.h (ggc_push_context): Remove.
5454         (ggc_pop_context): Likewise.
5455
5456 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5457
5458         PR target/8973
5459         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
5460         returning from an interrupt handler.
5461
5462 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5463
5464         PR target/8972
5465         * config/arc/arc.c (output_shift): Add check for loop count when
5466         optimizing.
5467
5468 2005-09-06  Steven Bosscher  <stevenb@suse.de>
5469
5470         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
5471         form manually.
5472         (abs_replacement): Likewise.
5473         (pass_phiopt): Remove TODO_update_ssa.
5474
5475 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
5476
5477         PR c/23075
5478         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
5479         if "return with no value, in function returning non-void" warning
5480         has been issued.
5481         * tree-cfg.c (execute_warn_function_return): Don't look at
5482         RETURN_EXPRs with TREE_NO_WARNING set.
5483
5484         PR target/22362
5485         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
5486         for internal functions doesn't use registers used by global registers
5487         variables.  Use fewer register parameters if there are global register
5488         variables.
5489
5490 2005-09-06  Olivier Hainque  <hainque@adacore.com>
5491             Eric Botcazou  <ebotcazou@adacore.com>
5492
5493         PR middle-end/14997
5494         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
5495         when we would be extracting outside its bit span (bitpos+bitsize
5496         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
5497         Ada unchecked conversions.
5498
5499 2005-09-06  Steven Bosscher  <stevenb@suse.de>
5500
5501         * tree-ssa-pre.c (try_look_through_load): New function.
5502         (compute_avail): Use it to try to look through loads for some
5503         more useful expressions.
5504
5505 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5506
5507         * simplify-rtx.c (simplify_binary_operation_1): Correct the
5508         condition for detecting cases like (a&a) and (a^a).
5509
5510 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
5511
5512         * common.opt: Add option ftree-vect-loop-version.
5513         * params.def: Add --param vect-max-version-checks.
5514         * doc/invoke.texi: Document ftree-vect-loop-version and
5515         --param vect-max-version-checks.
5516         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
5517         may_misalign_stmts and defines for accessors.
5518         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
5519         LOOP_VINFO_MAY_MISALIGN_STMTS.
5520         (destroy_loop_vec_info): VEC_free for
5521         LOOP_VINFO_MAY_MISALIGN_STMTS.
5522         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5523         Update documentation.
5524         (vect_update_misalignment_for_peel): New.
5525         (vect_enhance_data_refs_alignment): Update to choose loop
5526         peeling or loop versioning if appropriate for the (potentially)
5527         unaligned data references in the loop.
5528         (vect_analyze_data_refs_alignment): Remove call to
5529         vect_enhance_data_refs_alignment so the checks can be done
5530         earlier.
5531         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
5532         and move up call to vect_analyze_data_refs_alignment.
5533         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
5534         (vect_transform_loop): Add call to loop_version.
5535
5536 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
5537
5538         PR rtl-optimization/23098
5539         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
5540         * simplify-rtx.c (constant_pool_reference_p): New function.
5541         * rtl.h (constant_pool_reference_p): New prototype.
5542         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
5543         constant_pool_reference_p in condition and
5544         avoid_constant_pool_reference in preparation statements.
5545
5546 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5547
5548         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
5549         STRICT_LOW_PART SETs.
5550
5551 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
5552
5553         PR middle-end/21460
5554         * except.c (sjlj_emit_function_enter): Find the function begin
5555         note even when it's not in first basic block.
5556
5557 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
5558
5559         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
5560         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
5561         * aclocal.m4: Regenerate.
5562
5563 2005-09-05  DJ Delorie  <dj@redhat.com>
5564
5565         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
5566         of macro.
5567
5568 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
5569
5570         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
5571         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
5572         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
5573         Follow spelling conventions.
5574         * doc/invoke.texi: Follow spelling conventions.
5575
5576 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
5577
5578         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
5579         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
5580         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
5581
5582 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
5583
5584         PR target/23683
5585         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
5586         (output_stack_adjust): Use gen_tmp_stack_mem.
5587         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
5588         (sh_set_return_address, sh_allocate_initial_value): Likewise.
5589         (sh_get_pr_initial_val): Likewise.
5590         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
5591         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
5592         * sh.md (divsi_inv_m0): Use gen_const_mem.
5593         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
5594         (movdf_i4+1): Use gen_tmp_stack_mem.
5595         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
5596         (fpu_switch+2): Likewise.
5597         (movv4sf_i, movv16sf_i): Use adjust_address.
5598         (symGOT_load): Set MEM_NOTRAP_P bit.
5599
5600 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5601
5602         PR target/23721
5603         * pa.c (emit_move_sequence): Fix typo in last change.
5604
5605 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
5606
5607         PR rtl-optimization/23454
5608         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
5609         is true.
5610
5611 2005-09-03  Richard Henderson  <rth@redhat.com>
5612             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5613
5614         PR middle-end/23671
5615         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
5616         gen_rtx_MEM.
5617
5618 2005-09-02  Nicolas Pitre <nico@cam.org>
5619
5620         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
5621         to bit_count to 32 bits.
5622
5623 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
5624
5625         PR c++/23167
5626         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
5627         generating synthetic loads from volatile lvalues.
5628
5629 005-09-02  Nick Clifton  <nickc@redhat.com>
5630
5631         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
5632         __ctzhi2, __clzhi2): New functions.
5633
5634 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
5635
5636         PR middle-end/23547
5637         * tree-nested.c (struct var_map_elt): Mark with GTY.
5638         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
5639         var_map_elt.
5640         (lookup_field_for_decl): Allocate new element in GC memory.
5641         (lookup_tramp_for_decl): Likewise.
5642         (convert_nl_goto_reference): Likewise
5643         (create_nesting_tree): Allocate info in GC memory. Likewise for
5644         info->var_map.
5645         (free_nesting_tree): Free with ggc_free instead of free.
5646         (root): New static variable.
5647         (lower_nested_functions): Remove root as local variable.  And zero out
5648         root at the end of the function.
5649
5650 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
5651
5652         PR rtl-optimization/20365
5653         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
5654         to short.  New member ix.
5655         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
5656         (simplify_plus_minus): Initialize ix members before calling qsort.
5657
5658 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
5659
5660         PR tree-optimization/23626
5661         * tree-cfg.c (replace_uses_by): Clean up eh info.
5662
5663 2005-09-01  DJ Delorie  <dj@redhat.com>
5664
5665         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
5666         fprintf.
5667
5668 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
5669
5670         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
5671         (rs6000_split_multireg_move): Use replace_equiv_address instead of
5672         gen_rtx_MEM.
5673
5674 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5675
5676         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
5677         do not issue warning for a variable definition following
5678         a declaration.
5679
5680 2005-09-01  Richard Henderson  <rth@redhat.com>
5681
5682         PR 23668
5683         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
5684         conversion to CONST_VECTOR.
5685
5686 2005-09-01  Richard Henderson  <rth@redhat.com>
5687
5688         PR 23676
5689         * reload1.c (reload_as_needed): Check !CALL_P before calling
5690         fixup_eh_region_note.
5691         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
5692
5693 2005-09-01  DJ Delorie  <dj@redhat.com>
5694
5695         * varasm.c (output_constant): Let the target resolve
5696         conversions of addresses to non-default pointer sizes.
5697
5698 2005-09-01  Nicolas Pitre <nico@cam.org>
5699
5700         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
5701         to alow matching ARM pre-indexed addressing mode.
5702         (arm_override_options): Remove now irrelevant comment.
5703
5704 2005-09-01  Phil Edwards  <phil@codesourcery.com>
5705
5706         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
5707         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
5708         * config/i386/vxworks.h:  Likewise.
5709         * config/i386/t-vxworksae:  New file, for VxWorks AE.
5710         * config/i386/vxworksae.h:  Likewise.
5711
5712 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
5713
5714         PR tree-optimization/23410
5715         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
5716         sequence is not wrapping during the first step.
5717
5718 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
5719
5720         PR debug/7241
5721         * dwarf2out.c (base_type_die): Compare char_type_node with
5722         TYPE_MAIN_VARIANT (type), not type.
5723
5724 2005-09-01  Richard Guenther  <rguenther@suse.de>
5725
5726         PR tree-optimization/15366
5727         * common.opt: Add -finline-functions-called-once.
5728         Put -fearly-inlining in alphabetically ordered place.
5729         * doc/invoke.texi: Document new option.
5730         * ipa-inline.c (cgraph_decide_inlining): Honour
5731         flag_inline_functions_called_once.
5732
5733 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
5734
5735         PR rtl-optimization/23478
5736         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
5737         (alloc_qty): Initialize it.
5738         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
5739         (combine_regs): Combine also n_throwing_calls_crossed fields.
5740         (find_free_reg): Don't attempt to caller-save pseudos crossing
5741         calls that might throw.
5742         * global.c (struct allocno): Add throwing_calls_crossed field.
5743         (global_alloc): Revert 2005-08-22 change.  Initialize
5744         throwing_calls_crossed.
5745         (find_reg): Don't attempt to caller-save pseudos crossing calls that
5746         might throw.
5747
5748 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
5749
5750         PR target/23649
5751         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
5752         (mask64_operand): Reinstate code prior to 2005-06-11 change.
5753         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
5754         (and64_2_operand): Tweak to use predicate.
5755         (and_operand): Adjust for mask_operand changes.
5756         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
5757         (print_operand): Likewise.
5758         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
5759         (mask64_1or2_operand): Delete.
5760         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
5761         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
5762         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
5763         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
5764         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
5765         (rotldi3_internal4): Likewise.
5766         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
5767         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
5768         (ashldi3_internal7): Likewise.
5769         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
5770         (ashldi3_internal, ashldi3_internal9 split): Likewise.
5771         (anddi3 split): Don't match mask64_operand.
5772         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
5773         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
5774         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
5775         't' splitter predicate.
5776         (movdi_internal64 + 2): Revert 2005-06-11 change.
5777
5778 2005-08-31  DJ Delorie  <dj@redhat.com>
5779
5780         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
5781         (m32c_asm_integer): Add support for 32 bit pointers.
5782
5783 2005-08-31  Richard Henderson  <rth@redhat.com>
5784
5785         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
5786         component-like references for setting MEM_NOTRAP_P.
5787
5788         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
5789         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
5790
5791 2005-08-31  Richard Henderson  <rth@redhat.com>
5792
5793         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
5794         into a pseudo before applying gen_lowpart.
5795
5796 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
5797
5798         * doc/install.texi (Specific): Update cctools version required
5799         for full functionality.
5800         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
5801         linkers as -macosx_version_min.
5802
5803 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
5804
5805         PR target/21255
5806         * sh.c (print_operand, %R and %S): Add handling of floating point
5807         registers, memory, constants and invalid operands.
5808
5809 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
5810
5811         * ipa-pure-const.c: Change dump name.
5812
5813 2005-08-31 Uros Bizjak <uros@kss-loka.si>
5814
5815         PR target/23570
5816         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
5817         to "reg_or_0_operand".
5818         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
5819
5820 2005-08-31  Dale Johannesen  <dalej@apple.com>
5821
5822         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
5823         loops that count down.
5824
5825 2005-08-31  Richard Henderson  <rth@redhat.com>
5826
5827         PR rtl-opt/23601
5828         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
5829         (fixup_eh_region_note): New.
5830         (reload_as_needed): Call it.
5831         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
5832         don't call find_many_sub_basic_blocks; call verify_flow_info.
5833         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
5834         (keep_stack_depressed): Likewise.
5835         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
5836
5837 2005-08-31  Richard Henderson  <rth@redhat.com>
5838
5839         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
5840         fp return matching.
5841
5842 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
5843
5844         * expr.c (expand_expr_real_1): Compare size of address
5845         mode to target's address mode size in deciding expansion of
5846         the constant address.
5847
5848 2005-08-31  Richard Guenther  <rguenther@suse.de>
5849
5850         PR middle-end/23477
5851         * expr.c (all_zeros_p): New function.
5852         (expand_expr_real_1): Handle the case of an all-zero
5853         non-addressable constructor separately.
5854
5855 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
5856
5857         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
5858         arguments, adjust all callers.
5859         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
5860
5861 2005-08-30  Richard Henderson  <rth@redhat.com>
5862
5863         PR target/23630
5864         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
5865         whenever the mode sizes match.
5866
5867 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
5868
5869         * calls.c (load_register_parameters): Fix comment typo.
5870         * expr.c (emit_push_insn): Comment formatting.
5871
5872 2005-08-30  Ian Lance Taylor  <ian@airs.com>
5873
5874         * config/i386/x-cygwin (host-cygwin): Change dependency from
5875         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
5876
5877 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
5878
5879         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
5880         parts of 'vals'.
5881
5882 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
5883
5884         PR middle-end/23408
5885         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
5886         call to ggc_collect.
5887
5888 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
5889
5890         PR bootstrap/21268
5891         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
5892         beginning.  Remove $(INCLUDES) from all the rules, if following
5893         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
5894
5895 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
5896
5897         PR middle-end/23484
5898         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
5899         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
5900         not constant, but maxlen is, don't set len to maxlen, rather
5901         set maxlen to len if len is a constant.
5902
5903 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
5904
5905         PR tree-optimization/23475
5906         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
5907         and counts.
5908
5909 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
5910
5911         Fix PR middle-end/22455
5912
5913         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
5914         Checksum only the parts of the tree that exist for the tree code.
5915
5916 2005-08-28  Dale Johannesen  <dalej@apple.com>
5917
5918         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
5919
5920 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
5921
5922         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
5923
5924 2005-08-28  Richard Henderson  <rth@redhat.com>
5925
5926         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
5927         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
5928         of char_type_node.
5929
5930 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
5931
5932         PR ada/23593
5933         * builtins.c (get_memory_rtx): Don't strip nops
5934         in between COMPONENT_REFs.
5935
5936 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
5937
5938         PR middle-end/23463
5939         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
5940         types.
5941         (gimplify_modify_expr): Check for zero sized types and gimplify the
5942         rhs and lhs as statements.
5943
5944 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
5945
5946         PR libgcj/23508
5947         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
5948         state for return address column of signal frames.
5949
5950 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
5951
5952         PR target/23539
5953         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
5954         bytes >= 2 not bytes == 2.
5955         (expand_block_move): Same.
5956
5957 2005-08-27  Richard Guenther  <rguenther@suse.de>
5958
5959         PR target/23575
5960         * config/i386/sse.md (sse2_movsd): Add missing closing
5961         braces.
5962
5963 2005-08-27  Paul Brook  <paul@codesourcery.com>
5964
5965         * genrecog.c (enum decision_type): Add DT_num_insns.
5966         (struct decision_test): Add u.num_insns.
5967         (add_to_sequence): Add DT_num_insns test.
5968         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
5969         (write_cond, debug_decision_2): Ditto.
5970         (change_state): Assume peep2_next_insn never fails.
5971         Remove "afterward" argument.
5972         (write afterward, write_tree): Update to match.
5973         * recog.c (peep2_current_count): New variable.
5974         (peep2_next_insn): Check it.
5975         (peephole2_optimize): Set peep2_current_count.
5976         * recog.h (peep2_current_count): Declare.
5977
5978 2005-08-26  Josh Conner  <jconner@apple.com>
5979
5980         PR middle-end/23584
5981         * ipa-pure-const.c (check_tree): Check for volatile-ness
5982         when considering a dereference.
5983
5984 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
5985
5986         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
5987
5988 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
5989
5990         PR rtl-optimization/23561
5991         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
5992         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
5993         at most LEN bytes long memory fits into the field.
5994         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
5995         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
5996         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
5997
5998 2005-08-26  Richard Henderson  <rth@redhat.com>
5999
6000         PR rtl-opt/23560
6001         * loop.c (biased_biv_may_wrap_p): New.
6002         (maybe_eliminate_biv_1): Use it to suppress non-equality
6003         comparison transformations.  Delete disabled code.
6004
6005 2005-08-26  Ian Lance Taylor  <ian@airs.com>
6006
6007         * combine.c (make_extraction): Avoid reference outside object.
6008
6009 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
6010
6011         * stor-layout.c (finalize_type_size): Restore behaviour for
6012         non-aggregate types to the status quo ante of the patch for
6013         pr 23467.  Document why it matters.
6014
6015 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6016
6017         PR c/23506
6018         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
6019         array by one element, initialize the BT_LAST element with NULL.
6020
6021 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
6022
6023         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
6024         optimizing for size.
6025         (plus_eqsi): Same.
6026         (compare_plus_eqsi): Same.
6027         (plus_eqsi_compare): Same.
6028         (neg_eq0<mode>): Same.
6029         (neg_eq<mode>): Same.
6030
6031         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
6032         PROCESSOR_POWER4.
6033
6034 2005-08-26  Nick Clifton  <nickc@redhat.com>
6035
6036         * config/v850/v850.c (ep_memory_operand): Return FALSE if
6037         TARGET_EP is not defined.
6038         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
6039         TARGET_EP is enabled.
6040         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
6041         * config/v850/v850.md (save_all_interrupt): Only use the EP
6042         register if TARGET_EP is defined.
6043         (restore_all_interrupt): Likewise.
6044         * config/v850/lib1funcs.asm: Update functions so that the EP
6045         register is only used if __EP__ is defined.
6046
6047 2005-08-26  David Ung  <davidu@mips.com>
6048
6049         * config/mips/mips.c (mips_expand_prologue): Handle case when
6050         generating for MIPS16 and the outgoing argument area is more than
6051         SMALL_OPERAND. Use the frame pointer as temporary to generate the
6052         add instruction.
6053
6054 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
6055
6056         * config/crx/crx.md: Make doloop_end pattern usage controllable
6057         via mloop-nesting=<max-nesting> command line switch. Make sure
6058         the combiner cannot use doloop_end_<mode> in an illegal way.
6059         * config/crx/crx.c: Use regs up to r6 for argument passing.
6060         Refine crx_address_cost (non cst4 displacements are expensive).
6061         * config/crx/crx.opt: Add switch for mloop-nesting=.
6062
6063 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
6064
6065         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
6066         (UNSPEC_MVST): New constant.
6067
6068 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6069
6070         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
6071         Reject operands containing eliminable registers.
6072         * testsuite/gcc.dg/20050825-1.c: New testcase.
6073
6074 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6075             Jan Hubicka  <jh@suse.cz>
6076
6077         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
6078
6079 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6080
6081         PR tree-optimization/23546
6082         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
6083         and REAL_CST nodes.
6084
6085 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
6086
6087         * params.def (PARAM_MIN_SPEC_PROB): New.
6088         * sched-rgn.c (MIN_PROBABILITY): Delete.
6089         (compute_trg_info): Convert to PARAM_VALUE.
6090         * doc/invoke.texi (param): Document min-spec-prob.
6091
6092 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
6093
6094         * config/darwin.h: define __PIC__
6095         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
6096         TARGET_OS_CPP_BUILTINS macro.
6097
6098 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6099
6100         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
6101         yesterday.
6102
6103 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
6104
6105         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
6106         to duplicate_block.
6107         * cfghooks.c (duplicate_block): Added position where to place
6108         new block as argument.
6109         * cfghooks.h (duplicate_block): Declaration changed.
6110         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
6111         duplicate_block.
6112         * cfglayout.h (copy_bbs): Declaration changed.
6113         * cfgloop.h (loop_version): Declaration changed.
6114         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
6115         position to copy_bbs.
6116         (loop_version): Pass position to duplicate_loop_to_header_edge.
6117         Add place_after argument and position new blocks according to
6118         it.
6119         * modulo-sched.c (sms_schedule): Pass place_after argument
6120         to loop_version.
6121         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
6122         * tree-cfg.c (split_edge_bb_loc): New function.
6123         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
6124         to determine position of new blocks.
6125         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
6126         to loop_version.
6127         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
6128         argument to duplicate_block.
6129         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
6130         Pass position to copy_bbs.
6131
6132 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
6133
6134         * fold-const.c (ptr_difference_const): Use
6135         cst_and_fits_in_hwi instead of host_integerp.
6136
6137 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6138
6139         * config/darwin.c (gen_pic_offset): New.
6140         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
6141         Use it.
6142
6143 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
6144
6145         PR tree-optimization/23486
6146         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
6147
6148 2005-08-23  Phil Edwards  <phil@codesourcery.com>
6149
6150         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
6151         remove use_collect2.
6152         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
6153
6154         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
6155         configuration files to override the default value.
6156
6157         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
6158         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
6159         * config/vx-common.h:  New file, split out from...
6160         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
6161         * config/vxworksae.h:  New file, for VxWorks AE.
6162         * config/vxworks.opt:  New file.
6163         * config/vxlib.c:  Update for VxWorks 6.
6164
6165         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
6166         other MULTILIB_* variables appropriately.
6167         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
6168         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
6169         * config/rs6000/vxworks.h:  Update for VxWorks 6.
6170         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
6171
6172 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
6173
6174         PR target/20799
6175         * config/darwin.c (machopic_select_section): Remove the hack to
6176         mark "::operator new" and "::operator delete" for coalescing
6177         even though they are not weak.
6178
6179 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
6180
6181         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
6182         * configure: Regenerate.
6183
6184 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
6185
6186         PR middle-end/23517
6187         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
6188         between vectors.
6189         * convert.c (convert_to_integer, convert_to_vector): Likewise.
6190         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
6191         Likewise.
6192
6193 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
6194
6195         * config/rs6000/predicates.md (equality_operator): New.
6196         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
6197         comparison with a large constant.
6198
6199 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
6200
6201         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
6202
6203 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
6204
6205         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
6206         registers is even, and we have a hardware double precision fp,
6207         align the buffer.
6208         (sh_gimplify_va_arg_expr): For floating point arguments, consider
6209         size of current argument when checking if argument was passed in
6210         registers.
6211
6212         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
6213
6214         PR middle-end/23467
6215         * stor-layout.c (finalize_type_size): Dont override
6216         existing alignment with a smaller alignment from the mode.
6217
6218 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
6219
6220         * lambda-code.c (lambda_vector_lexico_pos): Moved...
6221         * lambda.h (lambda_vector_lexico_pos): ... here.
6222         * tree-data-ref.c (build_classic_dist_vector): Return false when
6223         the distance vector is lexicographically negative.
6224
6225 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
6226
6227         PR tree-optimization/23511
6228         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
6229         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
6230
6231 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
6232
6233         PR tree-optimization/22043
6234         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
6235         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
6236         If ALLOW_FLEXARR, handle types ending with flexible array member.
6237         Pass false as second argument to recursive count_type_elements calls.
6238         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
6239         argument to count_type_elements call.
6240         * tree-sra.c (decide_block_copy): Likewise.
6241         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
6242         for a constant-sized object, set cleared as well.  Pass true as
6243         second argument to count_type_elements call.
6244
6245 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
6246
6247         PR target/21571
6248         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
6249         from legitimate_small_data_p, and make global.  Update use.
6250         Remove forward declaration.
6251         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
6252         Declare.
6253         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
6254
6255 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
6256
6257         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
6258         of scratch intermediates.
6259         (eq<mode>_compare): Same.
6260         (neg_eq0<mode>): New.
6261         (neg_eq<mode>): Convert to define_insn_and_split.
6262
6263 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
6264
6265         PR target/23070
6266         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
6267         stdarg functions, set/clear the fp marker even when no variable
6268         args are passed.
6269         * config/rs6000/sysv4.opt (mprototype): Describe.
6270
6271 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
6272
6273         PR rtl-optimization/23478
6274         * regs.h (reg_info): Add throw_calls_crossed.
6275         (REG_N_THROWING_CALLS_CROSSED): Define.
6276         * flow.c (allocate_reg_life_data): Initialize
6277         REG_N_THROWING_CALLS_CROSSED.
6278         (propagate_one_insn, attempt_auto_inc): Update
6279         REG_N_THROWING_CALLS_CROSSED.
6280         * global.c (global_alloc): Don't allocate pseudos across
6281         calls that may throw.
6282
6283 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
6284
6285         PR c/18715
6286         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
6287         value is inbetween the range if we did not find an exact match.
6288
6289 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
6290
6291         * doc/invoke.texi (Option Summary): Add ms1 options.
6292         * doc/extend.texi: Document interrupt handler attribute for ms1.
6293         * doc/md.texi: Document ms1 constraints.
6294         * config.gcc: Add ms1-*-elf.
6295         * config/ms1/ms1.h: New.
6296         * config/ms1/ms1.c: New.
6297         * config/ms1/ms1.md: New.
6298         * config/ms1/ms1-protos.h: New.
6299         * config/ms1/ABI.txt: New.
6300         * config/ms1/crti.asm: New.
6301         * config/ms1/crtn.asm: New.
6302         * config/ms1/lib2extra-funcs.c: New.
6303         * config/ms1/t-ms1: New.
6304         * config/ms1/ms1.opt: New.
6305
6306 2005-08-22 Ira Rosen <irar@il.ibm.com>
6307
6308         * config/rs6000/altivec.md (xorv4sf3): New.
6309         (negv4sf2, neg<mode>2): Likewise.
6310
6311 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6312
6313         PR target/23485
6314         * config/ia64/ia64.md (divsi3): Check divide by zero.
6315         (udivsi3): Likewise.
6316         (divdi3): Likewise.
6317         (udivdi3): Likewise.
6318
6319 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
6320
6321         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
6322         up to elem_bitsize bits, not max_bitsize.
6323
6324 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
6325
6326         PR tree-optimization/23433
6327         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
6328         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
6329
6330 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
6331
6332         PR tree-optimization/23434
6333         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
6334         the iteration bound is not an INTEGER_CST.
6335
6336 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
6337
6338         * tree-vect-transform.c (get_initial_def_for_reduction): Set
6339         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
6340         NULL if need_epilog_adjust is false.
6341         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
6342         Case 3 always peels first itration, not just for PLUS case, and no need
6343         to use scalar_initial_def here. Create an epilog adjustment only if
6344         scalar_initial_def is not NULL.
6345
6346         (vectorizable_reduction): Remove assert.
6347
6348 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6349
6350         PR target/23485
6351         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
6352         (__moddi3): Likewise.
6353         (__udivdi3): Likewise.
6354         (__umoddi3): Likewise.
6355         (__divsi3): Likewise.
6356         (__modsi3): Likewise.
6357         (__udivsi3): Likewise.
6358         (__umodsi3): Likewise.
6359
6360 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
6361
6362         * tree-pass.h (TDF_GRAPH): Define.
6363         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
6364         * passes.c (finish_optimization_passes): Only call
6365         finish_graph_dump_file if TDF_GRAPH is set.
6366         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
6367         NULL.  Set TDF_GRAPH bit.
6368         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
6369
6370 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
6371
6372         * arm.h (arm_stack_offsets): Add locals_base field.
6373         * arm.c (arm_get_frame_offsets): Compute it.
6374         (thumb_compute_initial_elimination offset): Make the Thumb frame
6375         pointer point to the base of the local variables.
6376         (thumb_expand_prologue): Update accordingly.
6377         (thumb_expand_epilogue): Likewise.
6378
6379         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
6380         mode of clobbered scratch to DImode.  Handle a case that's known to
6381         need this.
6382
6383 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
6384
6385         * config/rs6000/rs6000.md (gt0<mode>): Delete.
6386         (gt0<mode>_compare): Delete.
6387         (neg_gt0<mode>): Delete.
6388
6389 2005-08-19  Eric Christopher  <echristo@apple.com>
6390
6391         * optabs.h: Change CTI_ to COI_.
6392         * optabs.c: Ditto.
6393
6394 2005-08-19  James E Wilson  <wilson@specifix.com>
6395
6396         * builtins.c (expand_builtin_return_addr): Set
6397         current_function_accesses_prior_frames when count != 0.  Use
6398         frame_pointer_rtx when count == 0.
6399         * function.h (struct function): Add accesses_prior_frames field.
6400         (current_function_accesses_prior_frames): Define.
6401         * reload1.c (init_elim_table): Check
6402         current_function_accesses_prior_frames.
6403         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
6404
6405 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6406
6407         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
6408         indicator.  Return true if the flowgraph changed during
6409         cleanup.
6410
6411 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6412
6413         PR 23476
6414         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
6415         conditional expression before testing its value.
6416
6417 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6418
6419         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
6420
6421 2005-08-19  Devang Patel  <dpatel@apple.com>
6422
6423         PR tree-optimization/23048
6424         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
6425         third parameter. Check whether latch is dominated by exit
6426         block or not.
6427         (if_convertible_loop_p): Supply exit block itself to
6428         if_convertible_bb_p.
6429
6430 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
6431
6432         PR target/23473
6433         * arm.md (arm_load_pic_register): Change argument to the mask of
6434         saved registers.  Call thumb_find_work_register if we need a
6435         scratch register on Thumb.
6436         (arm_expand_prologue): Pass empty register set to
6437         arm_load_pic_register.
6438         (thumb_expand_prologue): Pass live_regs_mask directly to
6439         arm_load_pic_register.
6440         * arm-protos.h (arm_load_pic_register): Update prototype.
6441
6442 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
6443
6444         * sh.c (find_sole_member): New function.
6445         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
6446         if the record's alignment is larger than the size of its only member.
6447
6448 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
6449
6450         PR target/23436
6451         * arm.c (thumb_legitimize_reload_address): New function.
6452         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
6453         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
6454
6455 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
6456
6457         * config/crx/crx.c: Implement crx_decompose_address. Reject
6458         symbolic displacements since CRX register relative adressing
6459         mode can't handle unsigned 32-bit values as displacements.
6460         * config/crx/crx.h: Simplify definitions, remove redundant
6461         parenthesis and obsolete macros.
6462         * config/crx/crx.opt: Add new switch for debugging addresses.
6463         * config/crx/crx-protos.h: Add new declarations for above.
6464
6465 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
6466
6467         PR middle-end/20624
6468         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
6469         looking past it.
6470
6471 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6472
6473         * collect2.c (dup2): Delete.
6474         * configure.ac: Don't check for dup2.
6475
6476         * config.in, configure: Regenerate.
6477
6478 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
6479
6480         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
6481         record with the type of its only member.
6482
6483 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
6484
6485         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
6486         define_insn_and_split.
6487         (plus_ltu<mode>_compare): Same.
6488         (gtu<mode>_compare): Same.
6489         (plus_gtu<mode>_compare): Same.
6490
6491 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
6492
6493         PR tree-optimization/22228
6494         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
6495         todo_flags_start.
6496         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
6497         are recorded in vect_vnames_to_rename for renaming.
6498         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
6499         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
6500         in vect_vnames_to_rename.
6501         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
6502         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
6503
6504 2005-08-18  Jan Hubicka  <jh@suse.cz>
6505
6506         PR c++/22034
6507         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
6508         info only for local statics, not for member variables.
6509
6510 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6511
6512         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
6513
6514 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6515
6516         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
6517
6518 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
6519
6520         PR middle-end/16045
6521         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
6522
6523 2005-08-17  James E Wilson  <wilson@specifix.com>
6524
6525         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6526         array size check.
6527
6528 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
6529
6530         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
6531         (leu<mode>_compare): Same.
6532         (plus_leu<mode>): Same.
6533         (neg_leu<mode>): Same.
6534         (and_neg_leu<mode): Same.
6535         (ltu<mode>_compare): Same.
6536         (plus_ltu<mode>): Same.
6537         (geu<mode>): Same.
6538         (geu<mode>_compare): Same.
6539         (plus_geu<mode>): Same.
6540         (neg_geu<mode>): Same.
6541         (and_neg_geu<mode>): Same.
6542         (plus_gt<mode>): Same.
6543         (gtu<mode>_compare): Same.
6544         (plus_gtu<mode>): Same.
6545
6546 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
6547
6548         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
6549         Move call_table_data to end.  Delete spurious .text.
6550         (callt_save_all_interrupt): Fix comment typo.
6551
6552 2005-08-17  James E Wilson  <wilson@specifix.com>
6553             Kevin Winchester  <winchester@amirix.com>
6554
6555         PR target/21684
6556         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
6557
6558 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
6559
6560         PR target/23268
6561         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
6562         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
6563
6564 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
6565
6566         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
6567         record with the type of its only member if the modes don't match.
6568
6569         * varasm.c (decode_reg_name): Skip empty additional register names.
6570
6571 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
6572
6573         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
6574         lsm_tmp_name_length): New.
6575         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
6576         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
6577
6578 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6579             Andreas Krebbel  <krebbel1@de.ibm.com>
6580
6581         * config.gcc: Added z9-109 switch.
6582         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
6583         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
6584         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
6585         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
6586         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
6587         for "z9_109" cpu attribute.
6588         * config/s390/s390.c (z9_109_cost): New processor cost structure.
6589         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
6590         (s390_handle_arch_option): Added z9-109 switch.
6591         (override_options): Set respective cost function for z9-109.
6592         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
6593         (legitimate_reload_constant_p): Accept extended immediates.
6594         (print_operand): Three new output modifiers added: k, m and o.
6595         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
6596         (s390_output_mi_thunk): Use extended immediate when possible.
6597         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
6598         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
6599         (CONSTRAINT_LEN): Added length of O constraint.
6600         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
6601         * config/s390/s390.md ("cpu"): New value z9_109 added.
6602         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
6603         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
6604         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
6605         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
6606         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
6607         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
6608         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
6609         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
6610         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
6611         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
6612         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
6613         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
6614         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
6615         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
6616         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
6617         immediates.
6618         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
6619         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
6620         insns for TARGET_EXTIMM.
6621
6622 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
6623
6624         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
6625
6626 2005-08-17  Nick Clifton  <nickc@redhat.com>
6627
6628         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
6629         Call default_encode_section_info.
6630
6631 2005-08-17  Steven Bosscher  <stevenb@suse.de>
6632
6633         PR tree-optimization/21574
6634         * tree-ssa-ccp.c (likely_value): If the right hand side is a
6635         constant, return CONSTANT.
6636         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
6637         (ccp_fold, visit_assignment): Likewise.
6638         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
6639
6640 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
6641
6642         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
6643         fold_buildN instead of buildN then fold_initializer or fold.
6644         (build_unary_op): Likewise.
6645         (build_binary_op): Likewise.
6646         * fold-const.c (fold_initializer): Remove.
6647         (fold_build1_initializer): New function.
6648         (fold_build2_initializer): New function.
6649         (fold_build3_initializer): New function.
6650         * tree.h (fold_initializer): Remove.
6651         (fold_build1_initializer): New function.
6652         (fold_build2_initializer): New function.
6653         (fold_build3_initializer): New function.
6654
6655 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
6656
6657         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
6658         (try_move_mult_to_index): Call fold_build2 instead of build2.
6659         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
6660         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
6661         fold_binary_to_constant.
6662         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
6663         fold (build.
6664         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
6665         check if A == gcd (A, B).  Remove TYPE argument.
6666         (analyze_offset) Use fold_build2 instead of fold (build.
6667         (create_data_ref): Likewise.
6668         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
6669         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
6670         then fold.
6671
6672 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
6673
6674         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
6675         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
6676
6677 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
6678
6679         PR tree-opt/23402
6680         * gimplify.c (zero_sized_type): New function.
6681         (gimplify_modify_expr_rhs): If we have a zero sized type,
6682         replace the statement with an empty statement.
6683
6684 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6685
6686         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
6687         fxsave.
6688
6689 2005-08-16  Ian Lance Taylor  <ian@airs.com>
6690
6691         * doc/tm.texi (Label Output): Correct typo.
6692
6693 2005-08-16  Steven Bosscher  <stevenb@suse.de>
6694
6695         PR target/23376
6696         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
6697         force_operand will work later on using have_insn_for.
6698
6699 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6700
6701         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
6702
6703 2005-08-16  Ian Lance Taylor  <ian@airs.com>
6704
6705         PR c++/23337
6706         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
6707         vector type, don't try to construct it element by element.  Add an
6708         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
6709
6710 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6711
6712         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
6713
6714 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
6715
6716         * doc/invoke.texi (Precompiled Headers): Document some more options
6717         which are known to be safe.
6718
6719 2005-08-16  James E Wilson  <wilson@specifix.com>
6720
6721         PR tree-optimization/21105
6722         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6723         TREE_OVERFLOW check.
6724
6725 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
6726
6727         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
6728         (neg_ltu<mode>): Same.
6729         (gtu<mode>): Same.
6730         (neg_gtu<mode>): Same.
6731
6732 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6733
6734         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
6735         (fold_builtin_isdigit): Use fold_buildN.
6736         (build_function_call_expr): Likewise.
6737         * c-typeck.c (c_finish_loop): Likewise.
6738
6739 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
6740             Richard Shann <rshann@superh.com>
6741
6742         PR middle-end/20396:
6743         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
6744
6745 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
6746
6747         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
6748
6749 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
6750
6751         PR target/23355
6752         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
6753         arm_compure_save_reg0_reg12_mask to determine when the PIC register
6754         must be saved.
6755
6756 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6757
6758         PR middle-end/23369
6759         * fold-const.c (build_range_check): Disable optimization for function
6760         pointer expressions on targets that require function pointer
6761         canonicalization.
6762
6763 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
6764
6765         * simplify-rtx.c (simplify_const_relational_operation): When
6766         extracting arguments of a COMPARE, recompute the mode as well.
6767
6768 2005-08-15  Ian Lance Taylor  <ian@airs.com>
6769
6770         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
6771
6772 2005-08-15  DJ Delorie  <dj@redhat.com>
6773
6774         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
6775         the stack.
6776         (movsi_splittable): Allow, but split, moves to the stack.
6777         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
6778         stack.
6779
6780 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6781
6782         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
6783         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
6784         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
6785
6786         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
6787         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
6788         Delete HOST_PTR_PRINTF.
6789
6790         * configure, config.in: Regenerate.
6791
6792 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
6793
6794         * config/rs6000/rs6000.md (QHSI): New mode macro.
6795         (wd): Extend mode attr for QImode and HImode
6796         (dbits): New mode attr.
6797         (zero_extend<mode>di2): Convert to mode macro.
6798
6799 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
6800
6801         PR target/21841
6802         * doc/invoke.texi (-mgnu-ld): Update description.
6803         (-mhp-ld): Ditto.
6804
6805 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
6806
6807         PR 23391
6808         * Makefile.in (tree-chrec.o): Depends on real.h.
6809         * tree-chrec.c: Include real.h.
6810         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
6811         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
6812         * tree-scalar-evolution.c (add_to_evolution_1,
6813         interpret_rhs_modify_expr): Ditto.
6814
6815 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
6816
6817         PR 23386
6818         * tree-data-ref.c (estimate_niter_from_size_of_data): When
6819         step is negative compute the estimation from init downwards to zero.
6820
6821 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
6822
6823         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
6824
6825 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6826
6827         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
6828         constraint.
6829         (legitimate_reload_constant_p): Fix handling of lliXX operands.
6830         Accept double-word constants that can be split.
6831         * config/s390/s390.md ("movti"): Use 'P' constraint.
6832         ("*movdi_31", "*movdf_31"): Likewise.
6833
6834 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
6835
6836         Fix PR tree-optimization/22615
6837
6838         * tree-ssa-structalias.c (solution_set_add): Handle
6839         first_vi_for_offset returning NULL.
6840         (do_da_constraint): Ditto.
6841         (do_sd_constraint): Ditto.
6842         (do_ds_constraint): Ditto
6843         (find_func_aliases): Ditto.
6844         (build_constraint_graph): RHS is allowed be ANYTHING.
6845         (first_vi_for_offset): Return NULL if we couldn't find anything at
6846         the offset.
6847
6848 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6849
6850         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
6851         over memory as first operand.
6852
6853 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
6854
6855         PR target/23360
6856         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
6857         available for setting it.
6858
6859 2005-08-14  Ira Rosen  <irar@il.ibm.com>
6860
6861         PR tree-optimization/23320
6862         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
6863         data-refs' types instead of base object nullness. Add check for
6864         pointer type data-refs before first location comparison. Remove
6865         assert.
6866
6867 2005-08-14  Andreas Schwab  <schwab@suse.de>
6868
6869         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
6870
6871 2005-08-13  James E Wilson  <wilson@specifix.com>
6872
6873         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
6874         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
6875         -fstack-protector-all, --param ssp-buffer-size): Document.
6876         (-Wvariadic-macros): Alphabetize.
6877         (-fsched-stalled-insns-dep): Add missing 'f'.
6878
6879         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
6880         macros.
6881
6882 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
6883
6884         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
6885         or indirect address operand.
6886         (EXTRA_ADDRESS_CONSTRAINT): New.
6887         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
6888
6889 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
6890
6891         PR tree-optimization/22236
6892         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
6893         successors and predecessors.
6894         * tree-chrec.c (chrec_convert): Before converting, check that
6895         sequences don't wrap.
6896         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
6897         (analyze_array): Extern.
6898         (find_data_references_in_loop): Remove call to
6899         compute_estimated_nb_iterations.
6900         * tree-data-ref.h (analyze_array): Declared.
6901         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
6902         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
6903         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
6904         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
6905         condition.
6906         * tree-ssa-loop-ivcanon.c: Fix documentation.
6907         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
6908         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
6909         (infer_loop_bounds_from_undefined): New.
6910         (estimate_numbers_of_iterations_loop): Use
6911         infer_loop_bounds_from_undefined.
6912         (used_in_pointer_arithmetic_p): New.
6913         (scev_probably_wraps_p): Pass an extra parameter.  Call
6914         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
6915         (convert_step): Fix documentation.
6916         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
6917         Use initial_condition_in_loop_num and evolution_part_in_loop_num
6918         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
6919         scev_probably_wraps_p.
6920
6921 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
6922
6923         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
6924         (s390_register_info): Ignore clobbered_regs information for fixed
6925         registers, and only fixed registers.
6926         (s390_init_frame_layout): Remove redundant call.
6927
6928 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
6929
6930         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
6931         description of -Wold-style-casts.
6932
6933 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6934             Jakub Jelinek  <jakub@redhat.com>
6935
6936         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
6937         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
6938         * config/s390/s390.c (print_operand): New output modifier 'G' added.
6939         (get_thread_pointer): Renamed to s390_get_thread_pointer.
6940         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
6941         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
6942         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
6943         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
6944         ("stack_protect_set", "stack_protect_test"): New expanders.
6945         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
6946         "stack_protect_testdi"): New insn definitions.
6947
6948 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6949
6950         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
6951
6952 2005-08-12  Paul Brook  <paul@codesourcery.com>
6953
6954         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
6955
6956 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6957
6958         * config/s390/predicates.md (setmem_operand): New predicate.
6959         (shift_count_operand): Accept ANDs with special constants as
6960         operand.
6961         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
6962         with special constants.
6963         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
6964         shift_count_operand with setmem_operand.
6965
6966 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6967
6968         * config/s390/s390.c (s390_extract_part, s390_single_part):
6969         Type cast added.
6970         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
6971         (s390_output_mi_thunk): Don't use lg on 31 bit.
6972         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
6973         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
6974
6975 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6976
6977         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
6978         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
6979         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
6980         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
6981         with one of the new macros.
6982
6983 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6984
6985         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
6986         Don't set save_return_addr_p.
6987         (s390_register_info): Make clobbered_regs not depending on
6988         save_return_addr_p.
6989
6990 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
6991
6992         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
6993         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
6994
6995 2005-08-11  James E. Wilson  <wilson@specifix.com>
6996
6997         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
6998
6999 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
7000
7001         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
7002         locations gathered by var-tracking in single entry loc_list
7003         over loc_descriptor_from_tree.
7004
7005         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
7006         pass it down to loc_descriptor.
7007         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
7008         (containing_function_has_frame_base): Move earlier in the file.
7009         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
7010         instead of always assuming fbreg can't be used.
7011
7012 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
7013
7014         * config/rs6000/altivec.md: Change constraint "m" to "Z".
7015         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7016         Accept address wrapped in AND for Altivec.
7017         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
7018         Strip AND wrapping offset address for Altivec.
7019
7020 2005-08-11  Richard Henderson  <rth@redhat.com>
7021
7022         PR middle-end/23312
7023         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
7024         before using TYPE_IS_SIZETYPE.
7025
7026 2005-08-11  Richard Henderson  <rth@redhat.com>
7027
7028         PR target/22225
7029         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
7030         insn types not present on ev4.
7031         (alphaev5_insn_pipe): Similarly.
7032
7033 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
7034
7035         PR target/23250
7036         * arm.c (arm_override_options): If the user has selected callee-super-
7037         interworking, then enable normal interworking.
7038
7039 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7040
7041         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
7042         redefinition.
7043
7044 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
7045
7046         * doc/rtl.texi: Fix two typos.
7047
7048 2005-08-11  Richard Guenther  <rguenther@suse.de>
7049
7050         PR target/23289
7051         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
7052         cases where we call to/from functions returning void.
7053
7054 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
7055
7056         PR c++/23225
7057         * tree.c (build_pointer_type_for_mode): Robustify.
7058
7059 2005-08-10  James E Wilson  <wilson@specifix.com>
7060
7061         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
7062         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
7063
7064         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
7065         "cum->".
7066
7067 2005-08-10  Eric Christopher  <echristo@apple.com>
7068
7069         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
7070         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
7071         V2DFmode.
7072
7073 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
7074
7075         PR target/21887
7076         * config/darwin.c (machopic_indirect_data_reference): Use a new register
7077         for the high part when generating dynamic-no-pic code.
7078
7079 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
7080
7081         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
7082         (x86_64-*-linux*): Likewise.
7083
7084         * config/i386/crtfastmath.c: New file.
7085         * config/i386/t-crtfm: Likewise.
7086
7087         * config/i386/linux.h (ENDFILE_SPEC): New.
7088         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
7089
7090         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
7091         crtfastmath.o.
7092
7093 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
7094
7095         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
7096         (vec_shl, vec_shr): Document new operations.
7097         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
7098
7099 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
7100
7101         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
7102         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
7103         change predicate to indexed_or_indirect_address.
7104
7105 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
7106
7107         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
7108         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
7109         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
7110         and __aeabi_uwrite8.
7111         * config/arm/unaligned-funcs.c: New file.
7112         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
7113
7114 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
7115
7116         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
7117         Add dump.
7118         * cfglayout.c (pass_insn_locators_initialize): Add dump.
7119         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
7120         Add dump.
7121         * except.c (pass_convert_to_eh_region_ranges): Add dump.
7122         * final.c (pass_shorten_branches): Add dump.
7123         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
7124         (pass_life): Rename dump.
7125         (rest_of_handle_flow2): Remove initial verify_flow_info.
7126         * function.c (pass_instantiate_virtual_regs): Add dump.
7127         * integrate.c (pass_initial_value_sets): Add dump.
7128         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
7129         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
7130         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
7131         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
7132         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
7133         gate_rtl_unrool_and_peel_loops): New.
7134         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
7135         rtl_doloop): Do not look at flags.
7136         * mode-switching.c (pass_mode_switching): Add dump.
7137         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
7138         pass_split_before_regstack): Add dump.
7139         * regmove.c (pass_stack_adjustments): Add dump.
7140         * tree-optimize.c (pass_fixup_cfg): Add dump.
7141
7142 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7143
7144         PR 23309
7145         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
7146         deciding which instruction sequence to use.
7147
7148 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
7149
7150         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
7151         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
7152
7153 2005-08-09  Richard Guenther  <rguenther@suse.de>
7154
7155         * c-common.c (builtin_function_2): Remove.
7156         (def_builtin_1): New function.
7157         (c_common_nodes_and_builtins): Use def_builtin_1 to
7158         build builtin functions.
7159
7160 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
7161
7162         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
7163         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
7164         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
7165         Visual DSP.
7166
7167 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
7168
7169         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
7170         fold_binary instead of fold_build2 since we don't care about the
7171         resulting tree.
7172         (loop_niter_by_eval): Likewise.
7173         (compare_trees): Likewise.
7174         (proved_non_wrapping_p): Likewise.
7175
7176 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
7177
7178         PR c/23161
7179         PR c/23165
7180         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
7181         if the if is really empty.
7182
7183 2005-08-09  Steven Bosscher  <stevenb@suse.de>
7184
7185         PR tree-optimization/23234
7186         * tree-ssa-math-opts.c (place_reciprocal): New enum.
7187         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
7188         argument of the new enum.
7189         (execute_cse_reciprocals): Add reciprocals for function arguments
7190         on the unique successor edge of the entry block.  Update other calls
7191         to execute_cse_reciprocals_1.
7192
7193 2005-08-08  Richard Henderson  <rth@redhat.com>
7194
7195         PR 22439
7196         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
7197
7198 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
7199
7200         * expr.c (write_complex_part): Return after handling MEM.
7201
7202 2005-08-08  Josh Conner  <jconner@apple.com>
7203
7204         PR rtl-optimization/23241
7205         * combine.c (simplify_comparison): Fix error in determining
7206         whether to lift a subreg from comparison.
7207
7208 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
7209
7210         PR target/18506
7211         * config/rs6000/altivec.md (vec_init<mode>): New.
7212         (vec_set<mode>): New.
7213         (vec_extract<mode>): New.
7214         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
7215         (rs6000_expand_vector_set): New.
7216         (rs6000_expand_vector_extract): New.
7217         (rs6000_legitimate_offset_address_p): Offset addresses are valid
7218         for Altivec modes before reload.
7219         (altivec_expand_vec_init_builtin): New.
7220         (get_element_number): New.
7221         (altivec_expand_vec_set_builtin): New.
7222         (altivec_expand_vec_ext_builtin): New.
7223         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
7224         builtins.
7225         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
7226         builtins.
7227         * config/rs6000/rs6000.h (rs6000_builtins): Add
7228         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
7229         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
7230         * config/rs6000/rs6000-protos.h: Declare new functions.
7231
7232 2005-08-08  Jan Hubicka  <jh@suse.cz>
7233
7234         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
7235         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
7236         * i386.md (movdi*): Use pic_32bit_operand.
7237         * predicates.md (pic_32bit_operand): New.
7238
7239 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
7240
7241         PR c++/21166
7242         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
7243
7244 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
7245
7246         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
7247         (test_for_singularity): Use fold_build2.
7248
7249 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7250
7251         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
7252
7253 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
7254
7255         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
7256         (COMMON_ASM_OP) Define.
7257         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
7258         (ix86_encode_section_info): Likewise.
7259         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
7260         SUBTARGET_ENCODE_SECTION_INFO.
7261
7262 2005-08-06  Richard Henderson  <rth@redhat.com>
7263
7264         PR 21894
7265         * tree-nested.c (convert_local_reference): Save and restore val_only
7266         around component_ref and friends.  Clear walk_subtrees by default.
7267
7268 2005-08-06  Peter O'Gorman  <peter@pogma.com>
7269
7270         PR 21366
7271         * gcc.c (process_command): Check the argument to -b has a dash.
7272         * doc/invoke.texi: Update -b and -V docs.
7273
7274 2005-08-06  James E Wilson  <wilson@specifix.com>
7275
7276         * config/mips/cross64.h, config/mips/t-cross64: Delete.
7277
7278 2005-08-06  Michael Matz  <matz@suse.de>
7279
7280         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
7281         member only if only one insn is associated with the value.
7282
7283 2005-08-06  Nick Clifton  <nickc@redhat.com>
7284
7285         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
7286         New define.
7287         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
7288         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
7289         Check symbol flags instead of symbol name mangling.
7290         (xstormy16_asm_output_aligned_common): Likewise.  Also
7291         simplify code since the bss100_section cass is the only case
7292         where the below100 code will be triggered.
7293         (xstormy16_encode_section_info): Encode below100 attribute
7294         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
7295         the name.
7296         (xstormy16_strip_name_encoding): Delete - this function is no
7297         longer needed.
7298         (TARGET_STRIP_NAME_ENCODING): Undefine.
7299         * config/stormy16/stormy16-protos.h: Delete prototype for
7300         xstormy16_strip_name_encoding.
7301
7302 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
7303
7304         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
7305         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
7306         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
7307         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
7308         config/alpha/predicates.md, config/arc/arc.h,
7309         config/arm/arm.h, config/arm/ieee754-df.S,
7310         config/arm/ieee754-sf.S, config/bfin/bfin.c,
7311         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
7312         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
7313         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
7314         config/m68hc11/m68hc11.h, config/mips/mips.c,
7315         config/mips/mips.h, config/mips/openbsd.h,
7316         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
7317         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
7318         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
7319         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
7320         config/sparc/linux.h, config/sparc/linux64.h,
7321         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
7322         doc/extend.texi, doc/gcov.texi, doc/install.texi,
7323         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
7324         typos.  Follow spelling conventions.
7325
7326 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
7327
7328         PR c/23113
7329         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
7330         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
7331         specially.  Check for side effects only for COND_EXPR.
7332         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
7333         return with TREE_NO_WARNING.
7334
7335 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
7336
7337         PR rtl-optimization/23233
7338         * loop.c (combine_movables): Require the modes to be the same.
7339         (move_movables): Remove handling of cases where the replacement
7340         had a different mode to the original.
7341
7342 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
7343
7344         PR tree-optimization/23128
7345         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
7346         subtraction wrap, and set TREE_OVERFLOW if they do.
7347
7348 2005-08-05  Richard Henderson  <rth@redhat.com>
7349
7350         PR 21728
7351         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
7352         FORCED_LABEL labels.
7353
7354 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
7355
7356         PR middle-end/23135
7357         * reload.c (find_reloads_subreg_address): Pass down TYPE
7358         unchanged.  Change all callers except find_reloads_toplev.
7359
7360 2005-08-05  Michael Matz  <matz@suse.de>
7361
7362         * genattrtab.c (current_alternative_string): Remove.
7363         (SIMPLIFY_ALTERNATIVE): Ditto.
7364         (attr_alt_bit_p): Ditto.
7365         (alternative_name): Make const char *.
7366         (evaluate_eq_attr): Remove use of above things.
7367         (simplify_test_exp): Ditto.
7368         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
7369         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
7370
7371 2005-08-04  James E Wilson  <wilson@specifix.com>
7372
7373         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
7374         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
7375         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
7376         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
7377         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
7378
7379 2005-08-04  Richard Henderson  <rth@redhat.com>
7380
7381         PR 21529
7382         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
7383         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
7384         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
7385         if we'd have to instantiate too many members.
7386
7387 2005-08-04  Richard Henderson  <rth@redhat.com>
7388
7389         PR 21291
7390         * tree-outof-ssa.c (coalesce_asm_operands): New.
7391         (coalesce_ssa_name): Use it.  Split out ...
7392         (coalesce_phi_operands, coalesce_result_decls): ... these.
7393
7394 2005-08-04  Paul Brook  <paul@codesourcery.com>
7395
7396         * read-rtl.c (read_quoted_string): Break if EOF.
7397
7398 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
7399
7400         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
7401         (fold_build2): Likewise.
7402         (fold_build3): Likewise.
7403         (fold_build1_stat): New function prototype.
7404         (fold_build2_stat): Likewise.
7405         (fold_build3_stat): Likewise.
7406         * fold-const.c (fold_build1): Rename to ..
7407         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7408         through to build1_stat.
7409         (fold_build2): Rename to ..
7410         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7411         through to build2_stat.
7412         (fold_build3): Rename to ..
7413         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7414         through to build3_stat.
7415
7416 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
7417             Ian Lance Taylor  <ian@airs.com>
7418
7419         * function.c (assign_stack_local_1): Do not correct stack slot
7420         address if allocation size is smaller than mode size.
7421
7422 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
7423
7424         PR 22037
7425         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
7426         (tree_merge_blocks): Propagate anything allowed by
7427         may_propagate_copy.
7428         Clarify documentation.
7429         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
7430         SSA form, schedule an update if necessary.
7431
7432 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
7433
7434         * doc/install.texi (Binaries): Remove broken link to
7435         Sinix/Reliant Unix binaries.
7436
7437 2005-08-03  Richard Henderson  <rth@redhat.com>
7438
7439         PR 23221
7440         * function.c (stack_protect_epilogue): Export.
7441         * tree.h (stack_protect_epilogue): Declare.
7442         * calls.c (expand_call): Call it.
7443
7444 2005-08-03  Eric Christopher  <echristo@apple.com>
7445
7446         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
7447         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
7448         spec.
7449
7450 2005-08-04  Jan Hubicka  <jh@suse.cz>
7451
7452         * profile.c (branch_prob): Split edges with goto locus on them
7453         to get proper line counts.
7454         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
7455
7456 2005-08-03  Paul Brook  <paul@codesourcery.com>
7457
7458         * function.c (assign_parms): Round current_function_args_size
7459         to PARM_BOUNDARY, not STACK_BOUNDARY.
7460
7461 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
7462
7463         * config/i386/i386.c (x86_elf_aligned_common)
7464         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
7465
7466 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
7467
7468         PR tree-optimization/23157
7469         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
7470         before emitting them.
7471
7472 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7473
7474         PR tree-optimization/19899
7475         * Makefile.in (tree-scalar-evolution.o): Add real.h.
7476         * tree-scalar-evolution.c: Include real.h.
7477         (add_to_evolution): Build constant -1 of correct type.
7478
7479 2005-08-03  Jan Hubicka  <jh@suse.cz>
7480
7481         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
7482         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
7483         profile updating for complette unrolling.
7484         * loop-unroll.c (peel_loop_completely): Use it.
7485         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
7486         (tree_unroll_loops_completely): Disable code growing unrolling of cold
7487         loops.
7488
7489 2005-08-03  Paul Brook  <paul@codesourcery.com>
7490
7491         * combine.c (can_change_dest_mode): New function.
7492         (try_combine, simplify_set): Use it.
7493
7494 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
7495
7496         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
7497         TFmode to BLKmode.
7498
7499 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
7500
7501         * doc/install.texi (Specific): Adjust link to openavr.org.
7502         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
7503         (Binaries): Adjust HP-UX Porting Center link.
7504         (Binaries): Adjust Free Software Foundation ordering link.
7505
7506 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
7507
7508         * convert.c (convert_to_integer): Use fold_build1 instead of
7509         build1 when converting an integer to an integer.
7510
7511 2005-08-02  Richard Henderson  <rth@redhat.com>
7512
7513         * combine.c (combine_instructions): Don't use reg_equal/equiv
7514         results if the mode doesn't match.
7515
7516 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
7517
7518         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
7519         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
7520
7521 2005-08-02  Richard Henderson  <rth@redhat.com>
7522
7523         PR 23196
7524         * explow.c (memory_address): Remove special-case for
7525         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
7526
7527 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
7528
7529         PR 23164
7530         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
7531         number of calls to cleanup_tree_cfg_1.
7532
7533 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
7534
7535         * doc/invoke.texi: document file extensions .F90 and .F95
7536
7537 2005-08-02  Richard Guenther  <rguenther@suse.de>
7538
7539         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
7540         positive if its first argument is positive.
7541
7542 2005-08-02  Richard Guenther  <rguenther@suse.de>
7543
7544         PR tree-optimization/23177
7545         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
7546         on TMR_TAG.
7547
7548 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
7549
7550         PR tree-optimization/23129
7551         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
7552         varying for divisions with anti-ranges.
7553
7554 2005-08-02  Jan Hubicka  <jh@suse.cz>
7555
7556         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
7557         * tree-ssa-threadupdate.c (thread_block): Add it here.
7558
7559 2005-08-01  James E Wilson  <wilson@specifix.com>
7560
7561         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
7562         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
7563         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
7564         New.
7565         * config/mips/predicates.md (const_call_insn_operand): Add check for
7566         SYMBOL_REF_LONG_CALL_P.
7567         * doc/extend.texi (long_call): Document the new attribute.
7568
7569 2005-08-01  Ian Lance Taylor  <ian@airs.com>
7570             Richard Henderson  <rth@redhat.com>
7571
7572         * Makefile.in (RTL_BASE_H): Add real.h.
7573         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
7574         instead of memcpy.
7575         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
7576         directly.
7577         * rtl.c (rtl_check_failed_code_mode): New.
7578         * rtl.h (struct rtx_def): Add u.rv.
7579         (XCMWINT, XCNMPRV): New.
7580         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
7581         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
7582
7583 2005-08-01  Richard Henderson  <rth@redhat.com>
7584
7585         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
7586         with auto-inc codes.
7587
7588         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
7589
7590 2005-08-01  Jan Hubicka  <jh@suse.cz>
7591
7592         * i386-protos.h (asm_preferred_eh_data_format): Declare.
7593         * i386.c: Include dwarf2.h
7594         (asm_preferred_eh_data_format): New.
7595         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
7596
7597 2005-08-01  Ian Lance Taylor  <ian@airs.com>
7598
7599         * config/host-linux.c (linux_gt_pch_get_address): Add new name
7600         randomize_va_space for virtual address randomization control.
7601
7602 2005-08-01  Steven Bosscher  <stevenb@suse.de>
7603
7604         * common.opt (flag_ipa_cp): Put in right place to maintain
7605         alphabetic sort.
7606
7607 2005-08-01  Jan Hubicka  <jh@suse.cz>
7608
7609         * profile.c (compute_value_histograms): Fix thinko.
7610         * value-prof.c: Include toplev.h
7611         (check_counter): New function.
7612         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
7613         tree_mod_subtract_transform): Add sanity check.
7614
7615 2005-08-01  Richard Guenther  <rguenther@suse.de>
7616
7617         PR tree-optimization/23133
7618         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
7619         current functions parameter decls to find defs to cse
7620         reciprocals of.
7621
7622 2005-08-01  Richard Guenther  <rguenther@suse.de>
7623
7624         PR tree-optimization/23109
7625         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
7626         If trapping math is in effect, use post-dominator information
7627         to check if we'd in any case reach a trapping point before
7628         doing the reciprocal insertion.
7629         (execute_cse_reciprocals): Compute post-dominators, if necessary.
7630         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
7631         expressions are invariant only if trapping math is not in effect.
7632
7633 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
7634
7635         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
7636         cgraph_function_versioning): New declarations.
7637         * cgraphunit.c: Add include to ipa-prop.h.
7638         (update_call_expr, cgraph_copy_node_for_versioning,
7639         cgraph_function_versioning): New functions.
7640         * integrate.c (copy_decl_for_inlining): Remove.
7641         * ipa-prop.h (ipa_replace_map): New struct.
7642         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
7643         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
7644         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
7645         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
7646         ipcp_iterate_stage, ipcp_method_scale_print,
7647         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
7648         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
7649         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
7650         ipcp_update_bb_counts, ipcp_update_profiling,
7651         ipcp_update_edges_counts): New functions.
7652         (ipcp_method_cval_init): Remove restriction regarding local methods.
7653         (ipcp_init_stage): Add ipcp_method_compute_scale.
7654         (ipcp_insert_stage): Add versioning.
7655         (ipcp_structures_print): Add ipcp_method_scale_print.
7656         (ipcp_driver): Dump profiling info.
7657         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
7658         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
7659         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
7660         (struct inline_data): Add versioning_p, ipa_info, new fields.
7661         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
7662         declare_return_variable): Replace calls to copy_decl_for_inlining with
7663         copy_decl_for_dup.
7664         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
7665         versioning support.
7666         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
7667         Add argument VERSIONING.
7668         (copy_arguments_for_versioning, copy_static_chain,
7669         function_versionable_p, tree_versionable_function_p,
7670         tree_function_versioning, replace_ref_tree): New functions.
7671         * tree-inline.h: Include varray.h.
7672         (tree_versionable_function_p,  tree_function_versioning,
7673         tree copy_decl_for_dup): New declarations.
7674
7675 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
7676
7677         * ipa-cp.c: New file. Contains IPCP specific functionality.
7678         * ipa-prop.h: New file. Contains structures/definitions that can be
7679         used by several interprocedural data flow optimizations (and also IPCP).
7680         * ipa-prop.c: New file.
7681         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
7682         * common.opt: Add ipa-cp flag.
7683         * timevar.def: Add IPCP optimization.
7684         * tree-optimize.c (init_tree_optimization_passes): Schedule
7685         pass_ipa_cp.
7686         * tree-pass.h (pass_ipa_cp): Declare.
7687
7688 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
7689
7690         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
7691         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
7692         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
7693         config/i386/i386.c, config/mips/mips.h,
7694         config/rs6000/rs6000.h, config/sh/sh.c,
7695         config/stormy16/stormy16.c: Fix comment typos.
7696
7697 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
7698
7699         PR c/22311
7700         * c-typeck.c (build_binary_op): Use common_type wrapper on
7701         shortened types.
7702         (common_type): Update comment.
7703
7704 2005-07-31  Steven Bosscher  <stevenb@suse.de>
7705
7706         PR target/23095
7707         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
7708         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
7709         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
7710
7711 2005-07-31  Jan Hubicka  <jh@suse.cz>
7712
7713         * pretty-print.h (pp_widest_integer): New macro.
7714         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
7715         counts.
7716
7717 2005-07-31  Jan Hubicka  <jh@suse.cz>
7718
7719         * output.h (enum section_category): Export from varasm.c
7720         (categorize_decl_for_section): Likewise.
7721         * varasm.c (enum section_category): Kill.
7722         (categorize_decl_for_section): Make global.
7723         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
7724         Declare.
7725         * i386.c (ix86_section_threshold): New static variable.
7726         (ix86_in_large_data_p, ix86_encode_section_info,
7727         x86_64_elf_unique_section,
7728         x86_64_elf_select_section): New functions.
7729         (TARGET_ENCODE_SECTION_INFO): Define
7730         (override_options): Enable medium model for PIC.
7731         (ix86_expand_prologue): Expand gen_set_got_rex64.
7732         (legitimate_constant_p): Handle new UNSPECs.
7733         (legitimate_pic_address_disp_p): Likewise.
7734         (legitimize_pic_address): Lower MEDIUM model addressing.
7735         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
7736         (enum cmodel): Add MEDIUM_PIC.
7737         (SYMBOL_REF_FAR_ADDR_P): New macro.
7738         (SYMBOL_FLAG_FAR_ADDR): New flag.
7739         * i386.md (movdi): Support medium model.
7740         (set_got_rex64): New pattern.
7741         * i386.opt (mlarge-data-threshold): New flag.
7742         * predicates.md (zext_operand/sext_operand): Deal with medium model.
7743         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
7744         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
7745         TARGET_ASM_UNIQUE_SECTION): New.
7746
7747         * invoke.texi (-mlarge_data_threshold): Document
7748
7749 2005-07-31  Jan Hubicka  <jh@suse.cz>
7750
7751         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
7752         (coalesce_vars): Likewise.
7753         * tree-ssa-live.c (coalesce_cost): New.
7754         (build_tree_conflict_graph): Use coalesce_cost.
7755         * tree-ssa-live.h (coalesce_cost): Declare.
7756
7757 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
7758
7759         * arm.md (all peepholes for post-increment operations): Delete.
7760         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
7761         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
7762         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
7763         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
7764         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
7765
7766 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
7767
7768         * fold-const.c (tree_expr_nonnegative_p): Always return true for
7769         non-integral types.
7770
7771 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
7772
7773         PR target/22582
7774         * doc/invoke.texi: Document -rdynamic.
7775
7776 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
7777
7778         PR c/23143
7779         * c-parser.c (c_parser_parms_list_declarator): Call
7780         mark_forward_parm_decls.
7781         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
7782         decls with visibility structure.
7783
7784 2005-07-30  Paul Brook  <paul@codesourcery.com>
7785
7786         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
7787
7788 2005-07-30  Paul Brook  <paul@codesourcery.com>
7789
7790         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
7791         prototype.
7792         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
7793         value for mode.
7794         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
7795
7796 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7797
7798         PR c/529
7799         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
7800         nested function declarators.
7801         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
7802         (grokparms): Call warn_if_shadowing for parameters used within the
7803         parameter list.
7804         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
7805         not used within the parameter list.
7806         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
7807
7808 2005-07-30  Jan Hubicka  <jh@suse.cz>
7809
7810         * expr.c (expand_expr_real_1): Do not load mem targets into register.
7811         * i386.c (ix86_fixup_binary_operands): Likewise.
7812         (ix86_expand_unary_operator): Likewise.
7813         (ix86_expand_fp_absneg_operator): Likewise.
7814         * optabs.c (expand_vec_cond_expr): Validate dest.
7815
7816 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7817
7818         PR c/21720
7819         * real.c (real_from_string): Also set last bit if there is a
7820         nonzero hex digit beyond GCC's internal precision after ".".
7821
7822 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
7823
7824         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
7825         define_constants.  Change duplicate values to unassigned numbers.
7826         Change UNSPEC_SUBS to UNSPEC_VSUBS.
7827         (*altivec_vspltsf): New.
7828         (altivec_vperm_v4sf): Delete.
7829         (altivec_vperm_<mode>): Use mode macro V.
7830         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
7831         (altivec_predicate_v4sf): Delete.
7832         (altivec_predicate_<mode>): Use mode macro V.
7833         (*altivec_lvesfx): New.
7834         (*altivec_stvesfx): New.
7835         (vec_realign_load_v4sf): Delete.
7836         (vec_realign_load_<mode>): Use mode macro V.
7837         * config/rs6000/rs6000.c (generate_set_vrsave): Use
7838         UNSPECV_SET_VRSAVE.
7839
7840 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
7841
7842         PR bootstrap/23131
7843         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
7844         string.
7845         * configure: Regenerated.
7846
7847 2005-07-29  Paul Brook  <paul@codesourcery.com>
7848
7849         * doc/install.texi: Add link to GFortran binaries wiki page.
7850
7851 2005-07-29  David Ung  <davidu@mips.com>
7852
7853         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
7854         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
7855         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
7856         * config/mips/mips.md (cpu): Add 5kf name.
7857         (includes): Includes 5k.md.
7858         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
7859         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
7860         -march flag.
7861
7862 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
7863
7864         PR 22550
7865         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
7866         (cleanup_tree_cfg): ... here.
7867         Call cleanup_tree_cfg_1 until there are no more cleanups to
7868         do.
7869
7870 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
7871
7872         * tree-vrp.c (compare_range_with_value): Return true or false
7873         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
7874         EQ_EXPR respectively.
7875
7876 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
7877
7878         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
7879         Fix comment typos.
7880
7881 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
7882
7883         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
7884         (tree_ssa_dominator_optimize): Increment it.
7885         (dump_dominator_optimization_stats): Print it.
7886
7887 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
7888             Steven Bosscher  <stevenb@suse.de>
7889
7890         PR rtl-optimization/23117
7891         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
7892         when head == tail.  Tidy comment.
7893
7894 2005-07-28  Richard Henderson  <rth@redhat.com>
7895
7896         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
7897         * cselib.c (rtx_equal_for_cselib_p): Likewise.
7898         * jump.c (rtx_renumbered_equal_p): Likewise.
7899         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
7900         CONST_INT and CONST_DOUBLE.
7901         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
7902         * reload.c (operands_match_p): Special case CONST_INT and
7903         CONST_DOUBLE; check mode earlier.
7904
7905 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7906
7907         PR c/22240
7908         * c-typeck.c (convert_for_assignment): Do not check
7909         DECL_IN_SYSTEM_HEADER on NULL fundecl.
7910
7911 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7912
7913         PR c/22192
7914         * c-typeck.c (composite_type): Prefer constant size arrays to
7915         VLAs.
7916
7917 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7918
7919         PR c/21720
7920         * real.c (real_from_string): Set last bit if there is a nonzero
7921         hex digit beyond GCC's internal precision.
7922
7923 2005-07-28  Richard Henderson  <rth@redhat.com>
7924
7925         PR rtl-opt/22619
7926         * cfgcleanup.c (try_forward_edges): Watch out for end of
7927         insn chain.
7928
7929 2005-07-28  James E Wilson  <wilson@specifixinc.com>
7930
7931         PR c/23106
7932         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
7933
7934 2005-07-28  Jan Hubicka  <jh@suse.cz>
7935
7936         * Makefile.in (rtl-profile.o): Kill all traces of it.
7937         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
7938         * coverage.h (rtl_coverage_counter_ref): Kill.
7939         * opts.c (flag_speculative_prefetching_set): Kill.
7940         (flag_loop_optimize_set): New.
7941         (common_handle_option): Disable loop optimizer when profiling;
7942         do not handle speculative prefetching.
7943         * passes.c (init_optimization_passes): Replace pass_profiling combo
7944         by branch_prob pass.
7945         * profile.c (compute_value_histograms): Update for simplified value
7946         profiles.
7947         (rtl_register_profile_hooks): Kill.
7948         (pass_profiling): Kill.
7949         (rest_of_handle_branch_prob): Do not profile.
7950         * toplev.c (process_options): Remove speculative prefetching.
7951         * toplev.h (flag_tree_based_profiling): Kill.
7952         * tree-profile.c (prepare_instrumented_value,
7953         tree_gen_interval_profiler, tree_gen_pow2_profiler,
7954         tree_gen_one_value_profiler, do_tree_profiling): Update for
7955         simplified datastructures.
7956         * value-prof.c: Add comment that speculative prefetching was dropped;
7957         update rest of file for simplified datastructures.
7958         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
7959         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
7960         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
7961         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
7962         rtl_mod_subtract, gen_speculative_prefetch,
7963         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
7964         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
7965         (gate_handle_value_profile_transformations,
7966         rest_of_handle_value_profile_transformations,
7967         pass_value_profile_transformations): Kill.
7968         * value-prof.h (histogram_value_t): Remove IL based unions.
7969         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
7970         rtl_profile_hooks): Remove hooks.
7971
7972         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
7973
7974         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
7975         (cgraph_clone_node): Likewise.
7976         * cgraph.h (cgraph_clone_edge): Update prototype.
7977         (cgraph_clone_node): Likewise.
7978         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
7979         cgraph_clone_node.
7980         (lookup_recursive_calls): Consider profile.
7981         (cgraph_decide_recursive_inlining): Fix updating; use new
7982         probability argument; use profile.
7983         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
7984         * tree-inline.c (copy_bb): Update clal of clone_edge.
7985         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
7986
7987         * invoke.texi (min-inline-recursive-probability): Document.
7988
7989 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
7990
7991         * doc/install.texi (Configuration): Update Valgrind homepage.
7992
7993 2005-07-28  Richard Henderson  <rth@redhat.com>
7994
7995         PR middle-end/21362
7996         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
7997         labels we want to delete.
7998         (cfg_layout_merge_blocks): Likewise.
7999
8000 2005-07-28  Richard Henderson  <rth@redhat.com>
8001
8002         PR target/17692
8003         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
8004         when expanding to nothing.
8005
8006 2005-07-28  Josh Conner  <jconner@apple.com>
8007
8008         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
8009         (cgraph_decide_inlining_of_small_functions): Likewise.
8010
8011 2005-07-28  Josh Conner  <jconner@apple.com>
8012
8013         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
8014         direction of badness if negative.
8015         (cgraph_default_inline_p): Add reason to parameters, and assign it
8016         a value.
8017         (cgraph_decide_inlining_of_small_functions): New parameter in call
8018         to cgraph_default_inline_p.
8019         (cgraph_decide_inlining_incrementally): Likewise.
8020         * cgraphunit.c (decide_is_function_needed): Likewise.
8021         * cgraph.h (cgraph_default_inline_p): Likewise.
8022
8023 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8024
8025         * builtins.c: Fix comment typo(s).
8026         * genautomata.c: Likewise.
8027         * gimplify.c: Likewise.
8028         * tree-dfa.c: Likewise.
8029         * tree-flow-inline.h: Likewise.
8030         * tree-into-ssa.c: Likewise.
8031         * tree-ssa-alias.c: Likewise.
8032         * tree-ssa-ccp.c: Likewise.
8033         * tree-ssa-copy.c: Likewise.
8034         * tree-ssa-dce.c: Likewise.
8035         * tree-ssa-dom.c: Likewise.
8036         * tree-ssa-operands.c: Likewise.
8037         * tree-tailcall.c: Likewise.
8038         * tree-vectorizer.c: Likewise.
8039         * tree-vrp.c: Likewise.
8040         * tree.c: Likewise.
8041
8042 2005-07-28  Jeff Law  <law@redhat.com>
8043
8044         * tree-vrp.c (test_for_singularity): Extracted from  ...
8045         (simplify_cond_using_ranges): Attempt to simplify a relational
8046         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
8047
8048 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
8049
8050         PR tree-optimization/22506
8051         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
8052         phis whose argument is constant.
8053
8054 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
8055
8056         PR rtl-optimization/18992
8057         Back out this patch:
8058           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8059           PR optimization/12142
8060           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
8061           uses of the register in the SET_SRC.  Remove unnecessary argument.
8062
8063         Replace it with this:
8064         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
8065         if flag_non_call_exceptions is set and the insn may trap, pass
8066         pc_rtx as dest for recursion.
8067         In SET_SRC part of SET case, if dest is already set, pass it down
8068         unchanged.
8069
8070 2005-07-28  Jan Hubicka  <jh@suse.cz>
8071
8072         * cfg.c (update_bb_profile_for_threading): Use RDIV.
8073         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
8074         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
8075         roundoff errors.
8076         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
8077         profile when available.
8078
8079 2005-07-28  Jan Beulich <jbeulich@novell.com>
8080
8081         * config/ia64/ia64.c (ia64_load_pair_ok): New.
8082         (ia64_print_operand): Describe and handle 'X'.
8083         (ia64_register_move_cost): Also handle FP_REGS.
8084         (ia64_preferred_reload_class): Likewise.
8085         (ia64_secondary_reload_class): Likewise.
8086         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
8087         it. Also check for ITANIUM_CLASS_FLDP.
8088         * config/ia64/ia64.h (FP_REGNO_P): New.
8089         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
8090         (reg_class): Add FP_REGS.
8091         (REG_CLASS_NAMES): Adjust for it.
8092         (REG_CLASS_CONTENTS): Likewise.
8093         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
8094         (REG_CLASS_FROM_LETTER): Handle 'x'.
8095         (CLASS_MAX_NREGS): Handle FP_REGS.
8096         (MEMORY_MOVE_COST): Likewise.
8097         * config/ia64/ia64.md (itanium_class): Add fldp.
8098         (type): Handle fldp.
8099         (movti_internal): More allowable operand combinations. Use ldfp8 when
8100         splitting unnecessary. Remove predicable attribute. Adjust
8101         itanium_class attribute.
8102         (smuldi3_highpart): Remove outdated comment.
8103         (mulditi3, umulditi3, rotlti3): New expanders.
8104         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
8105         (absti2): Disabled new insn for future reference.
8106         Respective new splitters.
8107         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
8108         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
8109         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
8110
8111 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
8112
8113         PR rtl-optimization/23047
8114         * simplify-rtx.c (simplify_const_relational_operation): Respect
8115         flag_wrapv for comparisons with ABS.
8116
8117 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
8118
8119         PR tree-optimization/22493
8120         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
8121         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
8122
8123 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
8124
8125         * config/frv/frv.opt (moptimize-membar): New.
8126
8127         * doc/invoke.texi: Document -moptimize-membar and its inverse.
8128
8129         * config/frv/frv.h: Remove machine_function definition.
8130
8131         * config/frv/frv.c (struct frv_io): New.
8132         (struct machine_function): Moved from frv.h.  Add has_membar_p.
8133         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
8134         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
8135         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
8136         (frv_optimize_membar_global, frv_optimize_membar): New functions.
8137         (frv_reorg): Call frv_optimize_membar when appropriate.
8138         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
8139         (frv_expand_builtin): Adjust calls accordingly.
8140         (frv_io_address_cookie): New function.
8141         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
8142         load or store rather than a special insn.  Add ccnstant address and
8143         io-type operands to the membar.
8144         (frv_ifcvt_modify_tests): Unsign regno.
8145         (frv_ifcvt_modify_tests): Same.
8146
8147         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
8148         UNSPEC_OPTIONAL_MEMBAR constant.
8149         (builtin_read_<mode>): Delete.
8150         (builtin_write_<mode>): Delete.
8151         ("optional_membar_<mode>"): Add operand.
8152
8153         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
8154         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
8155         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
8156         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
8157         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
8158         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
8159         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
8160         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
8161         * testsuite/gcc.target/frv/all-read-write-1.c: New.
8162
8163 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8164
8165         * df.c (df_uses_record): Handle SCRATCH.
8166
8167 2005-07-28  Steven Bosscher  <stevenb@suse.de>
8168
8169         PR debug/20161
8170         * passes.c (rest_of_decl_compilation): If decl is a type and
8171         we have encountered errors, don't emit debug information.
8172
8173 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
8174
8175         * params.def: Fixed comment.
8176
8177 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
8178
8179         PR target/19885
8180         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
8181         (TARGET_ASM_UNALIGNED_HI_OP): Add.
8182         (TARGET_ASM_UNALIGNED_SI_OP): Add.
8183
8184 2005-07-27  Steven Bosscher  <stevenb@suse.de>
8185
8186         PR c++/22003
8187         * varasm.c (assemble_start_function): Don't do anything that may
8188         require a CFG if the current function is a thunk.
8189
8190 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
8191
8192         * doc/install.texi (Prerequisites): Mention that perl is needed
8193         to do export control in libstdc++ targetting Darwin.
8194
8195 2005-07-27  Steven Bosscher  <stevenb@suse.de>
8196
8197         PR rtl-optimization/17808
8198         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
8199         (sched_insns_conditions_mutex_p): Split out from...
8200         (add_dependence): ...here.  But don't call it from here.
8201         (add_dependence_list): Check sched_insns_conditions_mutex_p
8202         before calling add_dependence.
8203         (add_dependence_list_and_free): Likewise.
8204         (fixup_sched_groups): Likewise.
8205         (sched_analyze_1): Likewise.
8206         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
8207         (sched_analyze): Likewise.
8208         (sched_analyze_insn): Likewise.
8209         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
8210         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
8211         dependencies on all COND_EXEC insns to jumps ending basic blocks
8212         when doing intrablock scheduling.
8213         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
8214
8215 2005-07-27  Jeff Law  <law@redhat.com>
8216
8217         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
8218         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
8219         equivalency sets, correctly handle the case were vr0 has an
8220         equivalency set, but vr1 does not.
8221
8222 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
8223
8224         PR tree-optimization/23073
8225         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
8226         vect_print_dump_info before fprintf.
8227
8228 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8229
8230         PR tree-optimize/22348
8231         * tree-ssa-loop-niter.c (number_of_iterations_cond):
8232         Fold the partial computation.
8233
8234 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8235
8236         PR tree-optimization/22325
8237         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
8238         Declare.
8239         * tree-scalar-evolution.c (scev_const_prop): Add generic final
8240         value replacement.
8241         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
8242         (force_var_cost): ... this function.
8243         (compute_phi_arg_on_exit): Export.
8244
8245 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8246
8247         PR tree-optimization/20773
8248         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
8249         edge.
8250
8251 2005-07-27  Richard Guenther  <rguenther@suse.de>
8252
8253         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
8254         Avoid pushing again if current struct contains only
8255         fields we decomposed.
8256
8257 2005-07-27  Jan Hubicka  <jh@suse.cz>
8258
8259         PR tree-optimization/22574
8260         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
8261         not available.
8262
8263         * tree-tailcall.c (decrease_profile): New function.
8264         (eliminate_tail_call): Use it.
8265
8266         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
8267         visibility flags correctly in whole program mode.
8268
8269 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
8270
8271         PR rtl-optimization/22472
8272         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
8273
8274 2005-07-26  Steven Bosscher  <stevenb@suse.de>
8275
8276         PR tree-optimization/22504
8277         * tree-complex.c (expand_complex_addition): Use 'code' instead
8278         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
8279
8280 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
8281
8282         * config.gcc (cpu_type): Add frv case.
8283         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
8284         (supported_defaults): Add fr550 case.
8285
8286 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
8287
8288         PR 22591
8289         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
8290         whether a pointer of type T * may point to objects of type T *.
8291
8292 2005-07-26  DJ Delorie  <dj@redhat.com>
8293
8294         * configure: Regenerate.
8295
8296 2005-07-26  Dale Johannesen  <dalej@apple.com>
8297
8298         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
8299
8300 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
8301
8302         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
8303         Clarify use of "build" in name.
8304
8305 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
8306
8307         * doc/extend.texi (Raw read/write Functions): New section.
8308         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
8309         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
8310         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
8311         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
8312         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
8313         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
8314         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
8315         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
8316         * config/frv/frv.c: Add bdesc_loads global.
8317         Add bdesc_stores global.
8318         (frv_init_builtins): Add support for __builtin_{read/write}*.
8319         (frv_volatile_memref): New.
8320         (frv_expand_load_builtin): New.
8321         (frv_expand_store_builtin): New.
8322         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
8323         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
8324         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
8325         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
8326         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
8327         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
8328         (builtin_read_<mode>): New.
8329         (builtin_write_<mode>): New.
8330         (builtin_write64): New.
8331         (optional_membar_<mode>): New.
8332
8333 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
8334
8335         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
8336         (rather than units) against HOST_BITS_PER_WIDE_INT.
8337
8338 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
8339
8340         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
8341         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
8342         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
8343         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
8344         FSF address.
8345
8346         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
8347         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
8348         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
8349         comment typos.
8350         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
8351
8352 2005-07-26  Richard Guenther  <rguenther@suse.de>
8353
8354         PR tree-optimization/22486
8355         * fold-const.c (fold_unary): Fold away useless component
8356         references of the form (T *)&T.x, if the address
8357         doesn't change.
8358
8359 2005-07-25  James E Wilson  <wilson@specifixinc.com>
8360
8361         * dwarf2out.c (add_call_src_coords_attributes): New.
8362         (gen_inlined_subroutine_die): Call it.
8363         (maybe_emit_file, init_file_table): Add comments.
8364         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
8365         maybe_emit_file.
8366         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
8367         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
8368         * tree.h (BLOCK_SOURCE_LOCATION): New.
8369         (struct tree_block): New field locus.
8370
8371 2005-07-26  Andreas Schwab  <schwab@suse.de>
8372
8373         PR rtl-optimization/23043
8374         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
8375         when allocating a struct unoccr.
8376
8377 2005-07-25  Richard Henderson  <rth@redhat.com>
8378
8379         PR 22626
8380         * tree-complex.c (gate_no_optimization): True if errors.
8381         * Makefile.in (tree-complex.o): Update dependencies.
8382
8383 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
8384
8385         * config/frv/predicates.md (integer_register_operand): Use
8386         GPR_AP_OR_PSEUDO_P.
8387
8388 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
8389
8390         PR tree-opt/22484
8391         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
8392         after fold.
8393         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
8394
8395 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
8396
8397         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
8398         types when flag_unsafe_math_optimizations is true.
8399
8400 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
8401
8402         * gcc.c (option_map): Add --sysroot.
8403         (process_command): Handle --sysroot.
8404         (display_help): Document it.
8405         * doc/cppopts.tex (-isysroot): Document.
8406         * doc/invoke.texi (--sysroot): Document.
8407         * doc/install.texi (--with-build-sysroot): Document.
8408
8409         * Makefile.in (inhibit_libc): New variable.
8410         (INHIBIT_LIBC_CFLAGS): Likewise.
8411         (LIBGCC2_CFLAGS): Include
8412         $(INHIBIT_LIBC_CFLAGS).
8413         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
8414         ($(T)crtbegin.o): Do not use @inhibit_libc@.
8415         ($(T)crtend.o): Likewise.
8416         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
8417         ($(T)crtendS.o): Likewise.
8418         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
8419         ($(T)crtendT.o): Likewise.
8420         (stmp-fixinc): Do not complain about missing headers if
8421         inhibit_libc.
8422         * configure.ac (inhibit_libc): Set it to true/false.
8423         (--with-build-sysroot): New option.  Use it to set
8424         SYSTEM_HEADER_DIR.
8425         * configure: Regenerated.
8426
8427 2005-07-25  Manfred Hollstein  <mh@suse.com>
8428
8429         * calls.c (store_one_arg): Fix unsigned comparison warning.
8430
8431 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
8432
8433         PR other/22337
8434         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
8435         (ggc_print_statistics): Initialize variable before use.
8436
8437 2005-07-25  Richard Guenther  <rguenther@suse.de>
8438
8439         * tree-dfa.c (mark_new_vars_to_rename): Protect against
8440         calling with a PHI_NODE argument.
8441
8442         * tree-flow-inline.h (overlap_subvar): Protect against
8443         possible overflow.
8444
8445 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
8446
8447         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
8448         * configure: Regenerate.
8449
8450 2005-07-25  Ira Rosen  <irar@il.ibm.com>
8451
8452         * expr.c (highest_pow2_factor): Make extern.
8453         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
8454         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
8455         record_array_differ_p, array_ptr_differ_p): Likewise.
8456         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
8457         additional cases. Call the above functions.
8458         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
8459         base_object_differ_p when there are two base objects. Otherwise, compare
8460         base address and offset. Call may_alias_p.
8461         (dump_data_reference): Use a correct field name.
8462         (analyze_array): Make static. Initialize new data-ref fields.
8463         (analyze_indirect_ref): New function.
8464         (init_data_ref): Initialize new data-ref fields.
8465         (strip_conversion): Moved from tree-vect-analyze.c.
8466         (analyze_offset_expr, get_ptr_offset, address_analysis,
8467         object_analysis): Likewise.
8468         (analyze_offset): New function.
8469         (create_data_ref): Likewise.
8470         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
8471         dimensions for ARRAY_REFs only.
8472         (build_classic_dist_vector): Make static.
8473         (access_functions_are_affine_or_constant_p): Call macro to get the
8474         address of access functions.
8475         (compute_all_dependences): Add new parameter
8476         compute_self_and_read_read_dependences. Compute self and read-read
8477         dependences if it is true.
8478         (find_data_references_in_loop): Call create_data_ref. Initialize new
8479         data-ref fields.
8480         (compute_data_dependences_for_loop): Add new parameter
8481         compute_self_and_read_read_dependences. Remove parameter nb_loops,
8482         compute nb_loops. Call compute_all_dependences,
8483         build_classic_dist_vector and build_classic_dir_vector with correct
8484         parameters.
8485         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
8486         with correct parameters. Compare dimensions for ARRAY_REFs only.
8487         (free_data_refs): Call macro to free access functions.
8488         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
8489         fields from stmt_vinfo.
8490         (struct base_object_info): New structure.
8491         (struct data_reference): Move fields to base_object_info. Add fields
8492         first_location and object_info for above structures. Move fields from
8493         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
8494         aligned_to.  Add macros to access the new fields.
8495         Update functions declarations.
8496         * tree-flow.h (is_aliased_with): Declare.
8497         * tree-loop-linear.c (linear_transform_loops): Call
8498         compute_data_dependences_for_loop with correct parameters.
8499         * tree-ssa-alias.c (is_aliased_with): New function.
8500         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
8501         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
8502         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
8503         vect_base_addr_differ_p, compute_subscript_distance and
8504         build_classic_dist_vector. Add printings. Check absolute value of
8505         distance.
8506         (vect_analyze_data_ref_dependences): Go through ddrs instead of
8507         data-refs.
8508         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
8509         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
8510         to bytes. Add printing.
8511         (vect_compute_data_refs_alignment): Go through loads and stores in one
8512         loop.
8513         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
8514         vect_analyze_data_ref_access): Likewise.
8515         (vect_analyze_pointer_ref_access): Remove.
8516         (vect_address_analysis, vect_object_analysis): Likewise.
8517         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
8518         and analyze data-refs in the loop.
8519         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
8520         fields of data-ref instead of stmt. Add init to the offset from the
8521         base.
8522         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
8523         (vect_update_init_of_dr): Likewise.
8524         (vect_update_inits_of_drs): Go through loads and stores in one loop.
8525         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
8526         removed fields.
8527         (new_loop_vec_info): Initialize new fields.
8528         (destroy_loop_vec_info): Free new fields.
8529         (vect_strip_conversion): Remove.
8530         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
8531         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
8532         datarefs. Add new field ddrs.
8533         Add macros for the new fields access.
8534         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
8535         base_aligned_p, misalignment, memtag, ptr_info and subvars.
8536         Remove their macros.
8537         * tree.h (highest_pow2_factor): Declare.
8538
8539 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
8540
8541         * calls.c (store_one_arg): Check for sibling call MEM arguments
8542         from already clobbered incoming argument area.
8543
8544 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8545
8546         * c-common.c (check_missing_format_attribute): New.
8547         * c-common.h (check_missing_format_attribute): Likewise.
8548         * c-typeck.c (convert_for_assignment): Use it.
8549
8550 2005-07-24  Andreas Schwab  <schwab@suse.de>
8551
8552         * config/m68k/m68k.md ("extendqidi2"): When source is an address
8553         register use a word move.  Correct operand of ext.w in 68000 code.
8554
8555 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
8556
8557         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
8558         variables as declarations, rather than definitions.
8559
8560 2005-07-24  Ira Rosen  <irar@il.ibm.com>
8561
8562         PR tree-optimization/22526
8563         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
8564         of the zero node.
8565
8566 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8567
8568         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
8569         that C99 reserve for future use. Use it to define clog10,
8570         clog10f and clog10l.
8571
8572 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8573
8574         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
8575         * configure.ac: Check for -Wmissing-format-attribute.
8576
8577         * configure: Regenerate.
8578
8579 2005-07-23  Richard Henderson  <rth@redhat.com>
8580
8581         PR tree-optimization/22623
8582         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
8583
8584 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
8585
8586         PR target/22577
8587         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
8588
8589 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8590
8591         * Makefile.in (C_TREE_H): Update dependencies.
8592         * c-tree.h: Include toplev.h.
8593         * diagnostic.h (diagnostic_set_info): Add format attribute.
8594         * rtl-error.c (diagnostic_for_asm): Likewise.
8595
8596 2005-07-23  Chao-ying Fu  <fu@mips.com>
8597
8598         * config/mips/mips-dsp.md: New file.
8599         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
8600         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
8601         functions.
8602         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
8603         MIPS_BUILTIN_BPOSGE32.
8604         (mips_expand_builtin_direct): Add one parameter to indicate that
8605         builtin functions need to return a value.
8606         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
8607         functions.
8608         (mips_regno_to_class): Add classes for 12 new DSP registers.
8609         (mips_subword): Change to check four HI registers.
8610         (mips_output_move): Output move to and from 6 new DSP accumulators.
8611         (override_options): Make sure -mdsp and -mips16 are not used together.
8612         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
8613         for machine modes.
8614         (mips_conditional_register_usage): Disable 6 new DSP accumulators
8615         when !TARGET_DSP.
8616         (print_operand): Add 'q' for printing DSP accumulators.
8617         (mips_cannot_change_mode_class): Check ACC_REGS.
8618         (mips_secondary_reload_class): Check ACC_REGS.
8619         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
8620         (mips_register_move_cost): Check ACC_REGS.
8621         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
8622         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
8623         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
8624         (dsp_bdesc): New array.
8625         (bdesc_arrays): Add DSP builtin function table.
8626         (mips_prepare_builtin_arg): Check predicate again after
8627         copy_to_mode_reg.
8628         (mips_expand_builtin): Add one more parameter to
8629         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
8630         MIPS_BUILTIN_BPOSGE32.
8631         (mips_init_builtins): Initialize new function types.
8632         (mips_expand_builtin_direct): Check if builtin functions need to
8633         return a value and pass operands properly.
8634         (mips_expand_builtin_bposge): New function.
8635         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
8636         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
8637         (FIRST_PSEUDO_REGISTER): Increase to 188.
8638         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8639         Update for 12 new DSP registers.
8640         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
8641         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
8642         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
8643         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
8644         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
8645         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
8646         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
8647         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
8648         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
8649         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
8650         (REGISTER_NAMES): Add names for 12 new DSP registers.
8651         * config/mips/mips.md: Include mips-dsp.md.
8652         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
8653         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
8654         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
8655         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
8656         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
8657         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
8658         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
8659         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
8660         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
8661         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
8662         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
8663         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
8664         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
8665         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
8666         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
8667         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
8668         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
8669         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
8670         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8671         (UNSPEC_RDDSP): New constants.
8672         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
8673         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
8674         A<-d alternative.
8675         * config/mips/mips.opt (-mdsp): New option.
8676         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
8677         (reg_imm10_operand): New predicates.
8678         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
8679         * doc/invoke.texi (-mdsp): Document new option.
8680
8681 2005-07-22  DJ Delorie  <dj@redhat.com>
8682
8683         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
8684         to warning calls.
8685         * tree-inline.c (inlinable_function_p): Likewise.
8686
8687 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
8688
8689         PR debug/21828
8690         * toplev.c (check_global_declarations): Do not mark undefined
8691         variables as DECL_IGNORED_P.
8692         * varasm.c (first_global_object_name): GTY it.
8693         (weak_global_object_name): Likewise.
8694         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
8695         a string to go into {weak,first}_global_object_name.
8696
8697 2005-07-22  DJ Delorie  <dj@redhat.com>
8698
8699         * c-format.c (check_function_format): Change warning control
8700         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
8701
8702 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
8703
8704         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
8705         &PTR->FLD a dereference of PTR.
8706         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
8707         a potential dereference of PTR.
8708
8709 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
8710
8711         PR rtl-optimization/20370
8712         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
8713         call allocate_reg_info if necessary.
8714
8715         PR rtl-optimization/21848
8716         * calls.c (emit_library_call_value_1): For const functions, add
8717         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
8718
8719         PR rtl-optimization/22445
8720         * cselib.c (target.h): Include.
8721         (rtx_equal_for_cselib_p): Allow commutative matches.
8722         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
8723         Remove MODE parameter.  Changed all callers.
8724
8725         PR rtl-optimization/22258
8726         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
8727         New functions.
8728         (try_combine): Use likely_spilled_retval_p.
8729
8730 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
8731
8732         * config.gcc: Add crx-elf support.
8733
8734         * doc/contrib.texi: Mention crx.
8735         * doc/extend.texi: Document crx extensions.
8736         * doc/install.texi: Document crx install.
8737         * doc/invoke.texi: Document crx options.
8738         * doc/md.texi: Document crx constraints.
8739
8740         * config/crx/crx-protos.h: New file.
8741         * config/crx/crx.c: New file.
8742         * config/crx/crx.h: New file.
8743         * config/crx/crx.md: New file.
8744         * config/crx/crx.opt: New file.
8745         * config/crx/t-crx: New file.
8746
8747 2005-07-22  Manfred Hollstein  <mh@suse.com>
8748
8749         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
8750         warnings.
8751         (int_add_graph_edge): Likewise.
8752         (collapse_nodes): Likewise.
8753         (process_unification_queue): Likewise.
8754
8755 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8756             Laurent GUERBY  <laurent@guerby.net>
8757
8758         PR tree-optimization/22336
8759         * function.c (record_block_change): Check for
8760         cfun->ib_boundaries_block.
8761
8762 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
8763
8764         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
8765         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
8766
8767 2005-07-21  DJ Delorie  <dj@redhat.com>
8768
8769         * toplev.c (warn_deprecated_use): Add warning control to warning
8770         call.
8771         * c-typeck.c (parser_build_binary_op): Likewise.
8772         (c_finish_if_stmt): Likewise.
8773         * c-common.c (check_function_sentinel): Likewise.
8774         (check_nonnull_arg): Likewise.
8775
8776 2005-07-21  Richard Henderson  <rth@redhat.com>
8777
8778         PR tree-opt/22504
8779         * tree-complex.c (complex_ssa_name_components): New.
8780         (cvc_lookup): Allow entry not found.
8781         (create_components): Remove.
8782         (create_one_component_var, get_component_var): New.
8783         (get_component_ssa_name, set_component_ssa_name): New.
8784         (extract_component): Use get_component_ssa_name.
8785         (update_complex_components): Use set_component_ssa_name.
8786         (update_complex_components_on_edge): Likewise.
8787         (update_phi_components): Create new PHI nodes directly, instead
8788         of adding insns to edges.
8789         (tree_lower_complex): Allocate and free complex_variable_components
8790         and complex_ssa_name_components here.
8791
8792 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
8793
8794         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
8795         revert to returning false.
8796
8797 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
8798
8799         PR target/21149
8800         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
8801
8802 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
8803
8804         PR target/22576
8805         * config/i386/i386.md (cmpxf): Change operand constraints
8806         to "nonmemory_operand".
8807
8808 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
8809
8810         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
8811
8812 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
8813
8814         PR middle-end/21180
8815         * fold-const.c (fold_build1): Add checksum for the operands.
8816         (fold_build2): Likewise.
8817         (fold_build3): Likewise.
8818
8819 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
8820
8821         PR middle-end/19055
8822         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
8823
8824 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
8825
8826         * common.opt (-fforward-propagate): Committed by mistake,
8827         removed.
8828
8829 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8830
8831         * reg-stack.c: Fix comment typo(s).
8832         * tree-ssa-operands.c: Likewise.
8833         * tree-vectorizer: Likewise.
8834
8835 2005-07-21  Nick Clifton  <nickc@redhat.com>
8836
8837         * config/sh/symbian.c: Replace C++ style line comments with C
8838         style line comments.
8839         (symbian_add_attribute): Do not use a ? operator on the LHS of
8840         an assignment.
8841         (sh_symbian_handle_dll_attribute): Change the type of the
8842         method vector to "VEC(tree,gc)*" and use vector accessor
8843         macros to walk over the elements.
8844         (symbian_export_vtable_and_rtti_p): Likewise.
8845         (symbian_class_needs_attribute_p): Likewise.
8846
8847 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
8848
8849         PR target/22085
8850         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
8851         initialize targetm.resolve_overloaded_builtin here.
8852         (altivec_expand_overloaded_builtin): Make it non-static.
8853         * config/rs6000/rs6000-protos.h
8854         (altivec_expand_overloaded_builtin): New prototype.
8855         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
8856         targetm.resolve_overloaded_builtin here.
8857         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
8858
8859 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
8860             Zdenek Dvorak  <dvorakz@suse.cz>
8861
8862         PR tree-optimization/19210
8863         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
8864         New.
8865         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
8866         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
8867         rely on unproven assumptions.
8868         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
8869         * tree-flow.h (number_of_iterations_exit): Add final parameter.
8870         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
8871         to number_of_iterations_exit.
8872         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
8873         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
8874         * tree-ssa-loop-niter.c (find_loop_niter,
8875         estimate_numbers_of_iterations_loop): Likewise.
8876         (number_of_iterations_exit): Honor the new options.
8877         * doc/invoke.texi (Wunsafe-loop-optimizations,
8878         funsafe-loop-optimizations): Document them.
8879
8880 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
8881
8882         PR rtl-optimization/22167
8883         * gcse.c (hoist_code): Fix hoist_exprs[] check.
8884
8885 2005-07-20  Adam Nemet  <anemet@lnxw.com>
8886
8887         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
8888         __do_global_dtors_aux longcall.
8889
8890 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
8891
8892         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
8893         (old_special_pred_table): Don't reference
8894         SPECIAL_MODE_PREDICATES.
8895         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
8896         * config/arc/arc.h: Don't mention PREDICATE_CODES.
8897         * config/sh/predicates.h: Don't mention
8898         SPECIAL_MODE_PREDICATES.
8899         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
8900         Remove.
8901
8902 2005-07-20  DJ Delorie  <dj@redhat.com>
8903
8904         * config.gcc: Add m32c-elf support.
8905
8906         * doc/contrib.texi: Mention m32c.
8907         * doc/extend.texi: Document m32c extensions.
8908         * doc/install.texi: Mention m32c.
8909         * doc/invoke.texi: Document m32c options.
8910         * doc/md.texi: Document m32c constraints.
8911
8912         * config/m32c/addsub.md: New file.
8913         * config/m32c/bitops.md: New file.
8914         * config/m32c/cond.md: New file.
8915         * config/m32c/jump.md: New file.
8916         * config/m32c/m32c-lib1.S: New file.
8917         * config/m32c/m32c-lib2.c: New file.
8918         * config/m32c/m32c-modes.def: New file.
8919         * config/m32c/m32c-pragma.c: New file.
8920         * config/m32c/m32c-protos.h: New file.
8921         * config/m32c/m32c.abi: New file.
8922         * config/m32c/m32c.c: New file.
8923         * config/m32c/m32c.h: New file.
8924         * config/m32c/m32c.md: New file.
8925         * config/m32c/m32c.opt: New file.
8926         * config/m32c/minmax.md: New file.
8927         * config/m32c/mov.md: New file.
8928         * config/m32c/muldiv.md: New file.
8929         * config/m32c/predicates.md: New file.
8930         * config/m32c/prologue.md: New file.
8931         * config/m32c/shift.md: New file.
8932         * config/m32c/t-m32c: New file.
8933
8934 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8935
8936         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
8937         (stack_protect_set, stack_protect_test): New expanders.
8938         (stack_protect_set_si, stack_protect_set_si_media,
8939         stack_protect_set_di_media, stack_protect_test_si,
8940         stack_protect_test_si_media, stack_protect_test_di_media):
8941         New insns.
8942
8943 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
8944
8945         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
8946
8947 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
8948
8949         * tree.h (tree_expr_nonzero_p): Export.
8950         * fold-const.c (tree_expr_nonzero_p): Likewise.
8951         Return true for CALL_EXPRs that are alloca calls.
8952         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
8953         against zero.
8954         * tree-flow.h (expr_computes_nonzero): Remove.
8955         * tree-vrp.c (expr_computes_nonzero): Remove.
8956         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
8957         (extract_range_from_unary_expr): Likewise.
8958         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
8959         tree_expr_nonzero_p.
8960
8961 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
8962
8963         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
8964         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
8965         extra arg "picreg" and use it instead of pic_offset_table_rtx.
8966         All callers changed.
8967         (frame_related_constant_load): New arg "related" which controls
8968         setting of RTX_FRAME_RELATED_P.  All callers changed.
8969         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
8970         (bfin_expand_prologue): Add stack limit checking.
8971         * config/bfin/bfin.md (trapifcc): New pattern.
8972
8973         * config/bfin/bfin.c: Include "langhooks.h".
8974         (def_builtin): Go through lang_hooks to call builtin_function.
8975
8976         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
8977         * config/bfin/predicates.md (symbol_ref_operand): New.
8978         (call_insn_operand): Delete.  All callers changed to use
8979         register_no_elim_operand.
8980         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
8981         call_cookie field.
8982         (function_arg): Use it to generate the call's operand 2.
8983         (bfin_longcall_p): New function.
8984         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
8985         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
8986         determine if the address needs to be in a REG.
8987         (bfin_handle_longcall_attribute): New function.
8988         (bfin_attribute_table): Add "longcall" and "shortcall".
8989         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
8990         (CUMULATIVE_ARGS): New member call_cookie.
8991         (PREDICATE_CODES): Add symbol_ref_operand.
8992         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
8993         extra USE to the pattern.
8994         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
8995         New patterns, split off call_insn, sibcall_insn, call_value_insn and
8996         sibcall_value_insn; now the new patterns handle direct calls and the
8997         old ones indirect calls.
8998         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
8999
9000 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9001
9002         * doc/trouble.texi: Update section on handling of empty loops.
9003
9004 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
9005
9006         * config.gcc: Remove support for sparc-*-openbsd*,
9007         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
9008         ns32k-*-netbsd*.
9009         * config.host: Remove support for i860-*-sysv4* as a host.
9010         * config/i860/*, config/ip2k/*, config/ns32k/*,
9011         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
9012         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
9013         mention obsolete ports.
9014
9015 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9016
9017         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
9018         soft frame pointer.
9019         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
9020         of frame_pointer_rtx.
9021         (sh_expand_epilogue): Likewise.
9022         (sh_set_return_address): Likewise.
9023         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
9024         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
9025         offsets from FRAME_POINTER_REGNUM.
9026         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
9027         (sh_register_names): Add initializer for sfp.
9028         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
9029         (VALID_REGISTER_P): Likewise.
9030         (FIRST_PSEUDO_REGISTER): Update.
9031         (DWARF_FRAME_REGISTERS): Define.
9032         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
9033         (HARD_FRAME_POINTER_REGNUM): Define.
9034         (FRAME_POINTER_REGNUM): Redefine.
9035         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
9036         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
9037         from FRAME_POINTER_REGNUM.
9038         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
9039         FRAME_POINTER_REGNUM.
9040         (REG_CLASS_CONTENTS): Add sfp.
9041         (REG_ALLOC_ORDER): Likewise.
9042         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
9043         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
9044         of frame_pointer_rtx.
9045         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9046
9047 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
9048
9049         * fold-const.c (tree_expr_nonnegative_p): Only return true for
9050         ABS_EXPR when flag_wrapv is false because of INT_MIN.
9051         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
9052         of an ABS_EXPR.
9053         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
9054         ABS_EXPR<x>.
9055
9056 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
9057
9058         Make CONSTRUCTOR use VEC to store initializers.
9059         * c-common.c (complete_array_type): Update to cope with VEC in
9060         CONSTRUCTOR_ELTS.
9061         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
9062         (pp_c_constructor_elts): New function.
9063         * c-pretty-print.h (pp_c_constructor_elts): Declare.
9064         * c-typeck.c (build_function_call, build_c_cast, digest_init,
9065         struct constructor_stack, struct initializer_stack,
9066         constructor_elements, push_init_level, pop_init_level,
9067         add_pending_init, find_init_member, output_init_element): Update to
9068         cope with VEC in CONSTRUCTOR_ELTS.
9069         * coverage.c (build_fn_info_value, build_ctr_info_value,
9070         build_gcov_info): Likewise.
9071         * expr.c (categorize_ctor_elements_1, store_constructor,
9072         expand_expr_real_1): Likewise.
9073         * fold-const.c (fold_ternary): Likewise.
9074         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
9075         gimplify_init_constructor, gimplify_expr): Likewise.
9076         * tree-dump.c (dequeue_and_dump): Likewise.
9077         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
9078         node.
9079         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
9080         CONSTRUCTOR_ELTS.
9081         * tree-sra.c (generate_element_init_1): Likewise.
9082         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
9083         * tree-ssa-operands.c (get_expr_operands): Likewise.
9084         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9085         * tree-vect-transform.c (vect_get_vec_def_for_operand):
9086         (get_initial_def_for_reduction): Likewise.
9087         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
9088         value handle in annotations.
9089         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
9090         tree_node_structure): Add support for constr_kind.
9091         (build_vector_from_ctor, build_constructor_single,
9092         build_constructor_from_list): New functions.
9093         (build_constructor): Update to take a VEC instead of a TREE_LIST.
9094         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
9095         Update to cope with VEC in CONSTRUCTOR_ELTS.
9096         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
9097         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
9098         CONSTRUCTOR_APPEND_ELT): New macros.
9099         (struct constructor_elt, struct tree_constructor): New data types.
9100         (union tree_node): Add tree_constructor field.
9101         * treestruct.def: Define TS_CONSTRUCTOR.
9102         * varasm.c (const_hash_1, compare_constant, copy_constant,
9103         compute_reloc_for_constant, output_addressed_constants,
9104         initializer_constant_valid_p, output_constant,
9105         array_size_for_constructor, output_constructor): Update to cope with
9106         VEC in CONSTRUCTOR_ELTS.
9107         * vec.h (VEC_empty, VEC_copy): New macros.
9108
9109 2005-07-19  Devang Patel  <dpatel@apple.com>
9110
9111         * dbxout.c (dbxout_type): Check Objective-C++ lang.
9112
9113 2005-07-19  Richard Henderson  <rth@redhat.com>
9114
9115         PR tree-opt/22278
9116         * gimplify.c (gimplify_expr): Use main variant type for the temp
9117         destination for a discarded volatile read.
9118         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
9119         casts between non-void types that change volatility.
9120
9121 2005-07-15  DJ Delorie  <dj@redhat.com>
9122
9123         * toplev.h: Add comment about the first parameter for warning().
9124         * errors.h: Likewise.
9125
9126         * c.opt (Wpragmas): New.
9127         * doc/invoke.texi: Document it.
9128
9129         * function.c (do_warn_unused_parameter): Add warning control to
9130         warning call.
9131         * c-decl.c (warn_if_shadowing): Likewise.
9132         * c-lex.c (cb_def_pragma): Likewise.
9133         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
9134         (pop_alignment): Likewise.
9135         (handle_pragma_pack): Likewise.
9136         (apply_pragma_weak): Likewise.
9137         (handle_pragma_weak): Likewise.
9138         (handle_pragma_redefine_extname): Likewise.
9139         (add_to_renaming_pragma_list): Likewise.
9140         (handle_pragma_extern_prefix): Likewise.
9141         (maybe_apply_renaming_pragma): Likewise.
9142         (handle_pragma_visibility): Likewise.
9143
9144         * config/c4x/c4x-c.c (BAD): Likewise.
9145         (c4x_parse_pragma): Likewise.
9146         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
9147         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
9148         (rs6000_pragma_longcall): Likewise.
9149         * config/v850/v850-c.c (pop_data_area): Likewise.
9150         (ghs_pragma_section): Likewise.
9151         (ghs_pragma_section): Likewise.
9152         (ghs_pragma_interrupt): Likewise.
9153         (ghs_pragma_starttda): Likewise.
9154         (ghs_pragma_startsda): Likewise.
9155         (ghs_pragma_startzda): Likewise.
9156         (ghs_pragma_endtda): Likewise.
9157         (ghs_pragma_endsda): Likewise.
9158         (ghs_pragma_endzda): Likewise.
9159
9160 2005-07-19  Danny Berlin <dberlin@dberlin.org>
9161             Kenneth Zadeck <zadeck@naturalbridge.com>
9162
9163         * Makefile.in: Removed tree-promote-statics.c
9164         * tree-promote-statics.c: Removed.
9165         * common.opt: Removed flag-promote-statics.
9166         * opts.c: Ditto.
9167         * passes.c: Removed tree-promote-statics pass.
9168         * tree-pass.h: Ditto.
9169         * timevar.def: Removed TV_PROMOTE_STATICS.
9170
9171
9172 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
9173
9174         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
9175         and *-*-freebsd9.
9176         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
9177
9178 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9179
9180         PR c/22476
9181         * c-common.c (check_function_arguments): Call
9182         'check_function_format' if either -Wformat or
9183         -Wmissing-format-attribute are specified.
9184         * c-format.c (check_function_format): Check -Wformat before
9185         calling 'check_format_info'.
9186         * c-opts.c (c_common_post_options): Don't warn for
9187         -Wmissing-format-attribute without -Wformat.
9188         * c-typeck.c (convert_for_assignment): Detect additional cases for
9189         -Wmissing-format-attribute.
9190         * doc/invoke.texi (-Wmissing-format-attribute): Document new
9191         behavior.
9192
9193 2005-07-19  Richard Guenther  <rguenther@suse.de>
9194
9195         * config/i386/i386.md (lrint<mode>2): Use temporary
9196         instead of clobbering non-existent memory.
9197
9198 2005-07-19  Nick Clifton  <nickc@redhat.com>
9199
9200         * config/avr/avr.c (legitimate_address_p): Fix debugging print
9201         statement to avoid displaying ASCII control characters.
9202
9203 2005-07-19  Ben Elliston  <bje@au.ibm.com>
9204
9205         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
9206         * cfganal.c (find_edge_index): Ditto.
9207         * combine.c (combine_instructions): Ditto.
9208         * ddg.c (create_scc): Ditto.
9209         (find_successors): Ditto.
9210         (find_predecessors): Ditto.
9211         (find_nodes_on_paths): Ditto.
9212         (longest_simple_path): Ditto.
9213         * flow.c (update_life_info): Ditto.
9214         (count_or_remove_death_notes): Ditto.
9215         (clear_log_links): Ditto.
9216         * modulo-sched.c (generate_reg_moves): Ditto.
9217         (find_max_asap): Ditto.
9218         (find_max_hv_min_mob): Ditto.
9219         (find_max_dv_min_mob): Ditto.
9220         * sbitmap.c (sbitmap_first_set_bit): Ditto.
9221         * sched-rgn.c (extract_edgelst): Ditto.
9222         * tree-into-ssa.c (prepare_names_to_update): Ditto.
9223         (dump_update_ssa): Ditto.
9224         (ssa_names_to_replace) Ditto.
9225         (switch_virtuals_to_full_rewrite): Ditto.
9226         (update_ssa): Ditto.
9227         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
9228
9229 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
9230
9231         Fix PR tree-optimization/22483
9232
9233         * tree-complex.c (create_components): Use
9234         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
9235         * tree-flow-inline.h (fill_referenced_var_vec): New function.
9236         * tree-flow.h (safe_referenced_var_iterator): New structure.
9237         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
9238         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
9239         safe_referenced_var iterator.
9240         (add_type_alias): Ditto.
9241
9242 2005-07-19  Steven Bosscher  <stevenb@suse.de>
9243
9244         * loop-init.c (rest_of_handle_loop2): Remove.
9245         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
9246         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
9247         (pass_rtl_loop_init, pass_rtl_loop_done,
9248         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
9249         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
9250         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
9251         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
9252         pass_tree_loop_done, and pass_tree_unswitch.
9253         (gate_loop): Rename to gate_tree_loop.
9254         * passes.c (init_optimization_passes): Update for renamed tree
9255         loop passes.  Add the new loop2 passes as subpasses of loop2.
9256         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
9257         Update for the renamed tree loop passes.
9258
9259 2005-07-18  Ian Lance Taylor  <ian@airs.com>
9260
9261         PR middle-end/22057
9262         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
9263         blocks when optimizing.
9264
9265 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
9266
9267         * common.opt (frename-registers): Initialize to 2.
9268         (fweb): Ditto.
9269         (fgcse-after-reload): Ditto.
9270         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
9271         (process_options): Only change flag_web, flag_rename_registers,
9272         and flag_rerun_cse_after_loop if not explicitly set by user.
9273
9274 2005-07-18  Jan Beulich  <jbeulich@novell.com>
9275
9276         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
9277         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
9278         in 64-bit mode the same as DImode in 32-bit mode.
9279         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
9280         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
9281         mode. Add new mode parameter.
9282         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
9283         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
9284         x86_64_shift_adj): New expanders.
9285         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
9286         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
9287         insns.
9288         Respective new splitters. Use renamed shift splitter helpers in 32-bit
9289         DImode shift splitters.
9290         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
9291         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
9292         mode parameter.
9293
9294 2005-07-18  Jan Beulich  <jbeulich@novell.com>
9295
9296         * i386.md (movdi_extzv_1): New.
9297         (zero_extendhidi2): Combine alternatives and never force use of
9298         REX64 prefix.
9299         (zero_extendqidi2): Likewise. Don't restrict input selection.
9300
9301 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9302
9303         Fix PR tree-optimization/22531
9304         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
9305          moment.
9306
9307 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9308
9309         * tree-promote-statics.c (pass_promote_statics): Change dump file
9310          name.
9311
9312 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9313
9314         * tree-optimize.c (init_tree_optimization_passes): Add
9315         pass_eliminate_useless_stores pass.
9316         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
9317         * tree-ssa-pre.c (is_copy_stmt): New function.
9318         (follow_copies_till_vuse): Ditto.
9319         (do_eustores): Ditto.
9320         (gate_eustores): Ditto.
9321
9322 2005-07-16  Richard Henderson  <rth@redhat.com>
9323
9324         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
9325
9326 2005-07-16 Danny Berlin <dberlin@dberlin.org>
9327            Kenneth Zadeck <zadeck@naturalbridge.com>
9328
9329         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
9330         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
9331         ipa-type-escape.h, tree-promote-statics.c
9332         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
9333         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
9334         tree-promote-statics.c: new files.
9335         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
9336         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
9337         int nonlocal_set_p, mark_constant_function): Deleted.
9338         (rest_of_handle_cfg): Removed call to mark_constant_function.
9339         (nonoverlapping_component_refs_p): Added calls to support
9340         type based aliasing.
9341         * tree-ssa-alias.c (may_alias_p,
9342         compute_flow_insensitive_aliasing): Ditto.
9343         * calls.c (flags_from_decl_or_type): Removed reference to
9344         cgraph_rtl_info.
9345         * c-typeck.c (convert_arguments): Make builtins tolerant of having
9346         too many arguments.  This is necessary for Spec 2000.
9347         * cgraph.h (const_function, pure_function): Removed.
9348         * common.opt: Added "fipa-pure-const", "fipa-reference",
9349         "fipa-type-escape", and "ftree-promote-static".
9350         * opts.c: Ditto.
9351         * passes.c: Added ipa and tree-promote-statics passes.
9352         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
9353         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
9354         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
9355         * tree-flow.h: Added exposed sra calls and addition of
9356         reference_vars_info field for FUNCTION_DECLS.
9357         * tree-pass.h: Added passes.
9358         * tree-sra.c: (sra_init_cache): New function.
9359         (sra_insert_before, sra_insert_after) Made public.
9360         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
9361         and made public.
9362         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
9363         aliasing. (may_alias_p): Added code to use type escape analysis to
9364         improve alias sets.
9365         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
9366         code to prune clobbers of static variables based on information
9367         produced in ipa-reference pass.  Changed call clobbering so that
9368         statics are not marked as clobbered if the call does not clobber
9369         them.
9370
9371 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
9372
9373         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
9374         too.
9375
9376 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9377
9378         * doc/install.texi (*-*-solaris2*): Document recommended version
9379         of GNU binutils and mention GNU linker problem on Solaris 10.
9380
9381 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
9382
9383         PR c/22421
9384         * c-decl.c (c_build_bitfield_integer_type): New function.
9385         (finish_struct): Call it.
9386         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
9387
9388 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9389
9390         * c-typeck.c (digest_init): Call 'convert_for_assignment'
9391         before returning.
9392
9393 2005-07-16  Jan Hubicka  <jh@suse.cz>
9394
9395         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
9396         (scale_bbs_frequencies_int): Watch roundoff errors.
9397         * predict.c (return_prediction): Initialize return_stmt.
9398
9399 2005-07-16  Jan Hubicka  <jh@suse.cz>
9400
9401         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
9402         after RTL profiling.
9403
9404 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
9405
9406         PR middle-end/22398
9407         * fold-const.c (build_range_check): Convert high/low to etype
9408         if we are only comparing against exp.
9409
9410 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
9411
9412         Fix PR tree-optimization/22376
9413         * tree-ssa-structalias.c (build_constraint_graph): We really meant
9414         special var here.
9415         (need_to_solve): New function.
9416         (compute_points_to_sets): Use it.
9417
9418 2005-07-15  Jan Hubicka  <jh@suse.cz>
9419
9420         * cfg.c (update_bb_profile_for_threading): More diagnostic.
9421         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
9422
9423 2005-07-15  Richard Guenther  <rguenther@suse.de>
9424
9425         * c-common.c (handle_flatten_attribute): New function.
9426         Add flatten function attribute.
9427         * doc/extend.texi: Document flatten function attribute.
9428         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
9429         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
9430         New functions.
9431         (cgraph_decide_inlining): Handle functions with flatten
9432         attribute.
9433
9434 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
9435
9436         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
9437         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
9438         UNSPEC_XCHG, UNSPEC_AND): New.
9439         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
9440         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
9441         * config/rs6000/sync.md (FETCHOP): New code macro.
9442         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
9443         New code attrs.
9444         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
9445         (sync_compare_and_swap<mode>): Same.
9446         (sync_lock_test_and_set<mode>): Same.
9447         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
9448         for QImode and HImode, and not PPC405.
9449         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
9450         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
9451         (sync_<fetchop>{si,di}_internal): New.
9452         (sync_nand{si,di}_internal): New.
9453         (sync_old_<fetchop>{si,di}_internal): New.
9454         (sync_old_nand{si,di}_internal): New
9455         (sync_new_<fetchop>{si,di}_internal): New.
9456         (sync_new_nand{si,di}_internal): New.
9457         (atomic_and{si,di}): New.
9458         (sync_new_nand{si,di}_internal): New.
9459         (atomic_and{si,di}): New.
9460         (sync_add<mode>_internal): Delete.
9461         (sync_addshort_internal): Use unspec instead of unspec_volatile.
9462         (sync_sub<mode>_internal): Delte.
9463         (sync_subshort_internal): New.
9464         (sync_andsi_internal): Use unspec instead of unspec_volatile.
9465         (sync_anddi_internal): Delete.
9466         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
9467         (sync_booldi_internal): Delete.
9468         (sync_boolc<mode>_internal): Delete.
9469         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
9470         (sync_boolc<mode>_internal2): Delete.
9471         (sync_boolcc<mode>_internal): Delete.
9472         (isync, lwsync): Use unspec instead of unspec_volatile.
9473         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
9474         Revert UNSPEC_VOLATILE.
9475         (rs6000_split_atomic_op): New.
9476         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
9477
9478 2005-07-14  Eric Christopher  <echristo@redhat.com>
9479
9480         * config/mips/mips.c (mips_canonicalize_comparison): Cast
9481         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
9482
9483 2005-07-14  Eric Christopher  <echristo@redhat.com>
9484
9485         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
9486
9487 2005-07-14  Steven Bosscher  <stevenb@suse.de>
9488
9489         PR tree-optimization/22230
9490         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
9491         the computation of the four cross productions for "range op range".
9492
9493 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
9494             Ulrich Weigand  <uweigand@de.ibm.com>
9495
9496         PR target/20126
9497         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
9498         in some insn.
9499
9500 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
9501
9502         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
9503
9504 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
9505
9506         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
9507
9508 2005-07-14  Richard Guenther  <rguenther@suse.de>
9509
9510         PR middle-end/22347
9511         * config/i386/i386-protos.h (ix86_function_value): Change
9512         prototype to match new target hook.
9513         * config/i386/i386.c (ix86_value_regno): Change prototype
9514         to take extra type argument.
9515         (TARGET_FUNCTION_VALUE): Define.
9516         (ix86_function_ok_for_sibcall): Pass extra argument to
9517         ix86_value_regno, check return slot rtx for exact match.
9518         (ix86_function_value): Take extra parameter.  Dispatch to
9519         ix86_value_regno with fndecl/fntype as provided.
9520         (ix86_value_regno): Handle extra type argument.
9521         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
9522
9523         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
9524         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
9525         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
9526         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
9527         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
9528
9529 2005-07-14  Richard Guenther  <rguenther@suse.de>
9530
9531         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
9532         * calls.c (expand_call): Pass fntype to hard_function_value.
9533         (emit_library_call_value_1): Likewise.
9534         * explow.c: Include target.h.
9535         (hard_function_value): Take extra argument, the fntype.
9536         Use new target hook for function_value.
9537         * expr.h (hard_function_value): Change prototype.
9538         * function.c (aggregate_value_p): Pass 0 as fntype to
9539         hard_function_value.
9540         (assign_parms): Use new target hook for function_value.
9541         Pass 0 as fntype to hard_function_value.
9542         (expand_function_end): Likewise.
9543         * reg-stack.c: Include target.h.
9544         (stack_result): Use new target hook for function_value.
9545         * target-def.h: New target hook function_value.
9546         * target.h: Likewise.
9547         * targhooks.c (default_function_value): New function.
9548         * targhooks.h (default_function_value): Declare.
9549
9550 2005-07-13  Ian Lance Taylor  <ian@airs.com>
9551
9552         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
9553
9554 2005-07-14  Jan Hubicka  <jh@suse.cz>
9555
9556         * tree-dfa.c (dump_variable): Use default_def function.
9557         * tree-ssa-alias.c (dump_points_to_info): Likewise.
9558         * tree-ssa.c (verify_use): Likewise.
9559         * tree-ssanames.c (release_ssa_name): Likewise.
9560         * tree-tailcall.c (eliminate_tail_call): Likewise.
9561         (tree_optimize_tail_calls_1): Likewise.
9562         * tree-vrp.c (get_value_range): Likewise.
9563
9564 2005-07-14  Ben Elliston  <bje@au.ibm.com>
9565
9566         * gcc.c (main): Compare language[0] with '*' when iterating over
9567         the infiles.
9568
9569 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
9570
9571         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
9572         "s390_emit_compare".  Add handling of CCZ1mode.
9573         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
9574         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
9575         checking.
9576         (s390_branch_condition_mask): Add CCZ1mode handling.
9577         * config/s390/s390.md: ("seq", "*seq"): New pattern.
9578         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
9579         Use CCZ1mode instead of CCZmode.
9580         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
9581
9582 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
9583
9584         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
9585         pattern.
9586         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
9587
9588 2005-07-13  Eric Christopher  <echristo@redhat.com>
9589
9590         * config/mips/mips.c (mips_canonicalize_comparison): New.
9591         (mips_emit_int_relational): Use.
9592
9593 2005-07-13  Eric Christopher  <echristo@redhat.com>
9594
9595         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
9596         static extra parts.
9597         * config/s390/s390.md: Include tpf.md. Move tpf specific
9598         patterns...
9599         * config/s390/tpf.md: To here.
9600         * config/s390/s390.opt: Move tpf specific options...
9601         * config/s390/tpf.opt: to here. Add mmain option.
9602         * config/s390/tpf-unwind.h: Remove unnecessary defines.
9603         * config/s390/tpf.h: Rewrite.
9604
9605 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9606
9607         * doc/tm.texi: Remove @xref{Cross-profiling}.
9608
9609 2005-07-13  Jeff Law  <law@redhat.com>
9610
9611         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
9612         expressions, test their _DECL operands for pointer equality rather
9613         than using operand_equal_p.
9614
9615 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9616
9617         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
9618         (TARGET_POSIX_IO): This.
9619         * config/darwin.h: Likewise.
9620         * config/freebsd.h: Likewise.
9621         * config/linux.h: Likewise.
9622         * config/lynx.h: Likewise.
9623         * config/netbsd.h: Likewise.
9624         * config/rs6000/linux64.h: Likewise.
9625         * config/rs6000/linux.h: Likewise.
9626         * config/s390/tpf.h: Likewise.
9627         * config/sh/embed-elf.h: Likewise.
9628         * config/sparc/linux64.h: Likewise.
9629         * config/sparc/linux.h: Likewise.
9630         * config/svr4.h: Likewise.
9631         * gcov-io.h: Likewise.
9632
9633         * doc/tm.texi: Updated.
9634
9635         * libgcov.c (create_file_directory): Defined only if
9636         TARGET_POSIX_IO is defined.
9637         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
9638         is defined.
9639
9640 2005-07-13  Jan Hubicka  <jh@suse.cz>
9641
9642         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
9643
9644 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
9645
9646         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
9647         structure as argument.
9648
9649 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
9650
9651         PR tree-optimization/21921
9652         * tree-iterator.c (tsi_link_before): Support the case when
9653         tsi_end_p (tsi) == true.
9654
9655 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
9656
9657         PR tree-optimization/22442
9658         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
9659         correctly.
9660
9661 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
9662
9663         PR rtl-optimization/20376
9664         * toplev.c (process_options): Enable -fweb and -frename-registers when
9665         unrolling.
9666         * doc/invoke.texi: Update the information about when -fweb and
9667         -frename-registers are enabled.
9668
9669 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
9670
9671         PR tree-opt/21840
9672         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
9673         if *rhs_p is not a SSA_NAME.
9674
9675 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
9676
9677         Fix PR tree-optimization/22422
9678         * tree-ssa-structalias.c (struct variable_info): Add flag for
9679         special vars.
9680         (get_varinfo): Now a static function.
9681         (new_varinfo): init has_union and is_special_var to false.
9682         (solution_set_add): Check has_union.
9683         (do_da_constraint): Move temporary variable so it gets reset
9684         properly.
9685         Also check for special variable.
9686         (do_ds_constraint): Ditto.
9687         (do_sd_constraint): Ditto.
9688         (do_structure_copy): Check for special variable.
9689         (find_func_aliases): Ditto.
9690         (init_base_vars): Set special vars properly.
9691
9692 2005-07-13  Jan Hubicka  <jh@suse.cz>
9693
9694         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
9695         do unit-at-a-time.
9696
9697         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
9698         (get_expr_operands): Fix thinko wrt flags and subvars.
9699
9700         PR tree-optimize/22379
9701         * tree-inline.c (expand_call_inline): Do not output sorry in early
9702         inlining.
9703
9704 2005-07-12  Dale Johannesen  <dalej@apple.com>
9705
9706         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
9707
9708 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
9709
9710         PR bootstrap/21704
9711         * host-linux.h: Include limits.h.
9712
9713 2005-07-12  Dale Johannesen  <dalej@apple.com>
9714
9715         * expr.c (compress_float_constant):  Add cost check.
9716         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
9717
9718 2005-07-12  Dale Johannesen  <dalej@apple.com>
9719
9720         * gcc.target/i386/compress-float-sse.c:  New.
9721         * gcc.target/i386/compress-float-sse-pic.c:  New.
9722         * gcc.target/i386/compress-float-387.c:  New.
9723         * gcc.target/i386/compress-float-387-pic.c:  New.
9724         * gcc.dg/compress-float-ppc.c:  New.
9725         * gcc.dg/compress-float-ppc-pic.c:  New.
9726
9727 2005-07-12  Eric Christopher  <echristo@redhat.com>
9728
9729         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
9730         static extra parts.
9731         * config/s390/s390.md: Include tpf.md. Move tpf specific
9732         patterns...
9733         * config/s390/tpf.md: To here.
9734         * config/s390/s390.opt: Move tpf specific options...
9735         * config/s390/tpf.opt: to here. Add mmain option.
9736         * config/s390/tpf-unwind.h: Remove unnecessary defines.
9737         * config/s390/tpf.h: Rewrite.
9738
9739 2005-07-12  Eric Christopher  <echristo@redhat.com>
9740
9741         * gcc.c (struct infile): Update comment for language.
9742         (main): Rewrite input file resetting code.
9743
9744 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
9745
9746         PR tree-opt/22335
9747         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
9748         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
9749         (lookup_avail_expr): Use constant_boolean_node instead
9750         of boolean_false_node/boolean_true_node.
9751
9752 2005-07-12  Ben Elliston  <bje@au.ibm.com>
9753
9754         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
9755         and use it when printing num_edges.
9756
9757 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
9758
9759         * doc/extend.texi (Blackfin Built-in Functions): New section.
9760         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
9761         @opindex.
9762
9763 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
9764
9765         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
9766         s/cmpstrsi/cmpstrnsi
9767         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
9768         'cmpstrnsi'.
9769         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
9770         (init_optabs): Initialize cmpstrn_optab.
9771         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
9772         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
9773         * expr.c: (enum insn_code cmpstrn_optab): Declare.
9774         * config/i386/i386.md: s/cmpstr/cmpstrn
9775         * config/c4x/c4x.md: s/cmpstr/cmpstrn
9776         * doc/md.texi: Update documentation.
9777
9778 2005-07-11  Richard Henderson  <rth@redhat.com>
9779
9780         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
9781         build_va_arg_indirect_ref.
9782         (alpha_gimplify_va_arg): Likewise.
9783         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
9784         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
9785         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
9786         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9787         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
9788         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
9789         Likewise.
9790         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
9791
9792 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
9793
9794         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
9795         * passes.c (init_optimization_passes): Add pass_empty_loop.
9796         * tree-pass.h (pass_empty_loop): Declare.
9797         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
9798         try_remove_empty_loop, remove_empty_loops): New functions.
9799         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
9800         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
9801
9802 2005-07-12  Peter Barada  <peter@the-baradas.com>
9803
9804         PR middle-end/16719
9805         PR middle-end/18421
9806         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
9807         in address registers.
9808         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
9809         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
9810         alternative of addsi3_5200.
9811
9812 2005-07-11  Ian Lance Taylor  <ian@airs.com>
9813
9814         * config/mips/mips.md (ffs<mode>2): Remove.
9815
9816 2005-07-11  Ian Lance Taylor  <ian@airs.com>
9817
9818         * doc/tree-ssa.texi (Cleanups): Improve description of
9819         TRY_FINALLY_EXPR.
9820         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
9821
9822 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
9823
9824         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
9825         * tree.h (DECL_ARGUMENT_FLD): New macro.
9826
9827 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
9828
9829         Fix PR tree-optimization/22404
9830
9831         * tree-ssa-structalias.c (create_variable_info_for): Use
9832         correct offset.
9833
9834 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9835
9836         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
9837         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
9838         for second comparison operand.
9839         * config/bfin/predicates.md (reg_or_const_int_operand): New.
9840
9841         * config/bfin/bfin.md (define_attr "type"): Add "sync".
9842         (define_insn_reservation "alu"): Likewise.
9843         (csync, ssync): Now of type sync.
9844         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
9845         -mcsync-anomaly -mspecld-anomaly.
9846         * config/bfin/bfin.opt (mcsync): Remove.
9847         (mcsync-anomaly, mspecld-anomaly): Add.
9848         * config/bfin/bfin.c: Include "insn-codes.h".
9849         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
9850         (TARGET_DEFAULT_TARGET_FLAGS): New.
9851         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
9852
9853 2005-07-11  Steven Bosscher  <stevenb@suse.de>
9854
9855         * basic-block.h: Give the BB flags enum a name, bb_flags.
9856         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
9857         * cfgcleanup.c (enum bb_flags): Remove here.
9858         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
9859         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
9860         (update_forwarder_flag): Likewise.
9861         (thread_jump): Likewise.
9862         (try_forward_edges): Likewise.
9863         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
9864         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
9865         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
9866
9867 2005-07-11  Richard Guenther  <rguenther@suse.de>
9868
9869         * config/i386/i386.opt: New target option -msseregparm.
9870         * config/i386/i386.c (override_options): Error out for
9871         -msseregparm but no SSE support.
9872         (ix86_function_sseregparm): Check for global sseregparm.
9873         * doc/invoke.texi: Document -msseregparm.
9874
9875 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9876
9877         * config.gcc (m32r-*-linux*): Use the default extra_parts.
9878         (m32rle-*-linux*): Ditto.
9879
9880 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
9881
9882         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
9883         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
9884         bytes.
9885
9886 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9887
9888         PR middle-end/22239
9889         PR target/20126
9890         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
9891         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
9892
9893 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
9894
9895         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
9896         (varmap): Heapify varmap.
9897         (constraints): Heapify constraints.
9898         (struct constraint_graph): Heapify succs and preds.
9899         (constraint_vec_find): Update for heapification.
9900         (constraint_set_union): Ditto.
9901         (insert_into_complex): Ditto.
9902         (constraint_edge_vec_find): Ditto.
9903         (erase_graph_self_edge): Ditto.
9904         (add_graph_edge): Ditto.
9905         (get_graph_weights): Ditto.
9906         (merge_graph_nodes): Ditto.
9907         (build_constraint_graph): Ditto.
9908         (topo_visit): Ditto.
9909         (solve_graph): Ditto.
9910         (create_variable_info_for): Ditto.
9911         (init_base_vars): Ditto.
9912         (delete_points_to_sets): Free graph, varmap, and complex constraints.
9913         (condese_varmap_nodes): Free complex vector.
9914         (clear_edges_for_node): Clear succs and preds vector.
9915
9916 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
9917
9918         * tree-ssa-structalias.c (update_alias_info): Change counting of
9919         references to not include vdefs.
9920
9921 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
9922
9923         * tree-ssa-alias.c (free_used_part_map): Add missing free.
9924         (up_insert): Ditto.
9925
9926 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9927
9928         * pa.c (pa_commutative_p): Make PLUS commutative when
9929         TARGET_NO_SPACE_REGS is true.
9930
9931 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
9932
9933         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
9934         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
9935         * tree-dfa.c (dump_subvars_for): New.
9936         (debug_subvars_for): New.
9937         (dump_variable): Show subvariables if VAR has them.
9938         * tree-flow-inline.h (get_subvar_at): New.
9939         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
9940         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
9941         Update all users.
9942         (struct subvar): Change fields offset and size to unsigned
9943         HOST_WIDE_INT.
9944         (dump_subvars_for): Declare.
9945         (debug_subvars_for): Declare.
9946         (get_subvar_at): Declare.
9947         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
9948         to unsigned HOST_WIDE_INT *.
9949         (overlap_subvar): Likewise.
9950         * tree-gimple.c (is_gimple_reg): Always return false for
9951         SFTs and memory tags.
9952         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
9953         Update all callers.
9954         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
9955         (compute_may_aliases): Call compute_points_to_sets.
9956         (collect_points_to_info_for): Remove.
9957         (compute_points_to_and_addr_escape): Remove.
9958         (delete_alias_info): Call delete_points_to_sets.
9959         (compute_flow_sensitive_aliasing): If the call to
9960         find_what_p_points_to returns false, call set_pt_anything.
9961         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
9962         (set_pt_anything): Clear pi->pt_vars.
9963         (set_pt_malloc): Remove.
9964         (merge_pointed_to_info): Remove.
9965         (add_pointed_to_expr): Remove.
9966         (add_pointed_to_var): Remove.
9967         (collect_points_to_info_r): Remove.
9968         (is_escape_site): Make extern.
9969         (create_sft): New.
9970         (create_overlap_variables_for): Call it.
9971         * tree-ssa-copy.c (merge_alias_info): Never merge
9972         flow-sensitive alias information.
9973         * tree-ssa-operands.c (get_expr_operands): Adjust variables
9974         offset and size to be unsigned HOST_WIDE_INT.
9975         (add_to_addressable_set): Rename from note_addressable.
9976         Set TREE_ADDRESSABLE as the variables are added to the set.
9977         Update all users.
9978         (add_stmt_operand): Do not try to micro-optimize unmodifiable
9979         operands into VUSEs when adding V_MAY_DEFs for members in an
9980         alias set.
9981         * tree-ssa-operands.h (add_to_addressable_set): Declare.
9982         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
9983         (struct variable_info): Add bitfield is_heap_var.
9984         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
9985         (new_var_info): Initialize is_heap_var.
9986         (get_constraint_for): Add HEAP variables to the symbol table.
9987         Mark them with is_heap_var.
9988         (update_alias_info): New.  Taken mostly from the old
9989         compute_points_to_and_addr_escape.
9990         (handle_ptr_arith): New.
9991         (find_func_aliases): Call update_alias_info.
9992         Call handle_ptr_info for tcc_binary expressions.
9993         Call mark_stmt_modified.
9994         (create_variable_info_for): If DECL has subvars, do not create
9995         variables for its subvars.  Always add all the fields.
9996         (set_uids_in_ptset): If the solution includes ANYOFFSET and
9997         SFTs, then add all the SFTs of the structure.
9998         If VI->DECL is an aggregate with subvariables, add the SFT at
9999         VI->OFFSET.
10000         (find_what_p_points_to): If VI is an artificial variable,
10001         translate to bitfields in SSA_NAME_PTR_INFO.
10002         If the solution is empty, set pi->pt_vars to NULL
10003         (init_base_vars): Create ANYOFFSET.
10004         (compute_points_to_sets): Rename from create_alias_vars.
10005         Make extern.
10006         (pass_build_pta): Remove.
10007         (delete_points_to_sets): Rename from delete_alias_vars.
10008         (pass_del_pta): Remove.
10009         * tree-ssa-structalias.h (struct alias_info): Move from
10010         tree-ssa-alias.h.
10011         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
10012         NUM_REFERENCES_SET): Likewise.
10013         (compute_points_to_sets, delete_points_to_sets): Declare.
10014
10015 2005-07-09  Richard Henderson  <rth@redhat.com>
10016
10017         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
10018         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
10019         alpha_split_lock_test_and_set_12): New functions.
10020         * config/alpha/alpha-protos.h: Update.
10021         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
10022         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
10023         * config/alpha/sync.md (I12MODE): New.
10024         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
10025         (sync_<fetchop_name><I48MODE>): Likewise.
10026         (sync_nand<I48MODE>): Likewise.
10027         (sync_old_<fetchop_name><I48MODE>): Likewise.
10028         (sync_new_<fetchop_name><I48MODE>): Likewise.
10029         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
10030         (sync_compare_and_swap<I48MODE>): Likewise.
10031         (sync_lock_test_and_set<I48MODE>): Likewise.
10032         (sync_compare_and_swap<I12MODE>): New.
10033         (sync_compare_and_swap<I12MODE>_1): New.
10034         (sync_lock_test_and_set<I12MODE>): New.
10035         (sync_lock_test_and_set<I12MODE>_1): New.
10036
10037 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
10038
10039         PR 21356
10040         PR 22332
10041         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
10042
10043 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
10044
10045         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
10046         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
10047
10048 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
10049
10050         PR target/21656
10051         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
10052
10053 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
10054
10055         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
10056         memory_operand constraint.
10057         (store_conditional_<mode>): Same.
10058         (sync_compare_and_swap<mode>): Same.
10059         (sync_lock_test_and_set<mode>): Same.
10060
10061 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
10062
10063         Rewrite PIC support to more closely model actual instructions.
10064         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
10065         (cris_symbol): Remove prototypes for removed functions.
10066         (cris_pic_symbol_type_of, cris_valid_pic_const)
10067         (cris_expand_pic_call_address): Prototypes for new functions.
10068         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
10069         variable.
10070         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
10071         modifiers.
10072         <case ':'>: Add case for new punctuation character.
10073         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
10074         emitting (extra) PIC modifier.
10075         <case UNSPEC>: Do not assert for PLT.
10076         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
10077         (cris_expand_prologue, cris_expand_epilogue): Check
10078         for pic_offset_table_rtx usage instead of taking
10079         current_function_uses_pic_offset_table as the final word.
10080         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
10081         Remove flag_pic difference.
10082         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
10083         the moral equivalents of...
10084         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
10085         functions.
10086         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
10087         (cris_handle_option): Mark ARG as unused.
10088         (cris_expand_pic_call_address): New worker function for "call",
10089         "call_value".
10090         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
10091         output PIC constructs here.
10092         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
10093         as symbol-specific modifers, not whole or part of operands.
10094         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
10095         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
10096         constants and flag_pic.
10097         (CONSTANT_INDEX_P): Adjust for new functions.
10098         (enum cris_pic_symbol_type): New helper type.
10099         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
10100         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
10101         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
10102         define_constants.
10103         ("movsi"): Emit actual instructions for GOT and relative access.
10104         ("*movsi_got_load"): New pattern to set up the register holding
10105         the GOT pointer.
10106         ("*movsi_internal"): Operand 1 is not a plain general_operand.
10107         Adjust FIXME for 'S'.
10108         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
10109         Use "movs" for -fpic cases.
10110         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
10111         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
10112         ("call", "call_value"): Just call cris_expand_pic_call_address for
10113         PIC addresses.
10114         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
10115         Remove special pattern.
10116         ("*expanded_call_side", "*expanded_call_value_side"): New
10117         patterns.
10118         (gotplt-to-plt, gotplt-to-plt-side-call)
10119         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
10120         peephole2:s.
10121         * config/cris/cris/predicates.md
10122         ("cris_general_operand_or_gotless_symbol"): Remove unused
10123         predicate.
10124         ("cris_general_operand_or_symbol"): Adjust for new functions.
10125
10126 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10127
10128         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
10129
10130 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
10131
10132         * Makefile.in (TREE_H): Add treestruct.def.
10133         (c-decl.o): Add pointer-set.h
10134         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
10135         visibility on regular DECL's.
10136         (merge_decls): Fix the copying of decl nodes of various types for
10137         the new structures.  Don't update RTL, section name, weak status,
10138         etc, on DECL's without RTL.
10139         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
10140         Don't check volatile on non-variable types.
10141         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
10142         to check whether we have seen arguments.
10143         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
10144         flag is checked before field (flag is common, field is not).
10145         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
10146         TS_DECL_COMMON could have an origin.
10147         (add_location_or_const_value_attribute): Don't check section name
10148         on non-var/function decls.
10149         (dwarf2out_var_location): Reverse order of tests.
10150         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
10151         with DECL_WRTL_CHECK.
10152         * expmed.c (make_tree): rtl is now in decl_with_rtl.
10153         * fold-const.c (fold_binary): Don't check weakness on
10154         non-var/function decls.
10155         (tree_expr_nonzero_p): Ditto.
10156         (fold_checksum_tree): Use tree_decl_extra as sizeof
10157         buffer.
10158         * ggc-page.c (extra_order_size_table): Add sizes for
10159         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
10160         tree_field_decl.
10161         * gimplify.c (gimplify_bind_expr): Only set
10162         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
10163         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
10164         without RTL.
10165         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
10166         * langhooks.h (init_ts). New langhook.
10167         * passes.c (rest_of_decl_compilation): Reverse order of tests.
10168         * print-tree.c (print_node): Update to only print fields that
10169         exist in the structures the passed decl has.
10170         * toplev.c (wrapup_global_declarations): Don't reset
10171         DECL_DEFER_OUTPUT on DECL's that don't contain it.
10172         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
10173         * tree-inline.c (remap_decl): Ditto.
10174         * tree-outof-ssa.c (create_temp): Reverse order of tests.
10175         * tree-pretty-print.c (print_declaration): Don't print
10176         DECL_REGISTER on things that don't contain it.
10177         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
10178         non-var/function decls.
10179         * tree.c (tree_contains_struct): New structure.
10180         (init_priority_for_decl): New hashtable.
10181         (tree_int_map): New structure.
10182         (tree_int_map_eq): New function.
10183         (tree_int_map_marked_p): Ditto.
10184         (tree_int_map_hash): Ditto.
10185         (tree_map): Move to tree.h.
10186         (tree_map_eq): Externalize.
10187         (tree_map_hash): Ditto.
10188         (tree_map_marked_p): Ditto.
10189         (init_ttree): Set up tree_contains_struct and call langhook.
10190         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
10191         (tree_code_size): Update for new structures.
10192         (tree_node_structure): Update for new structures.
10193         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
10194         without the field.
10195         (copy_node_stat):  Copy init priority.
10196         (build_decl_stat): Ditto for visibility.
10197         (ts_enum_names): New.
10198         (tree_contains_struct_check_failed): New function.
10199         (decl_init_priority_lookup): Ditto.
10200         (decl_init_priority_insert): Ditto.
10201         * treestruct.def: New file.
10202         * tree.h (CODE_CONTAINS_STRUCT): New macro.
10203         (CONTAINS_STRUCT_CHECK): Ditto.
10204         (tree_contains_struct_check_failed): New prototype.
10205         (DECL_CHECK): Removed.
10206         (DECL_MINIMAL_CHECK): New.
10207         (DECL_COMMON_CHECK): Ditto.
10208         (DECL_WRTL_CHECK): Ditto.
10209         (DECL_NON_COMMON_CHECK): Ditto.
10210         (DECL_WITH_VIS_CHECK): Ditto.
10211         (VAR_OR_FUNCTION_DECL_P): Ditto
10212         (struct tree_decl_minimal): New structure.
10213         (struct tree_decl_common): Ditto.
10214         (struct tree_decl_with_rtl): Ditto.
10215         (struct tree_decl_with_vis): Ditto.
10216         (struct tree_decl_non_common): Ditto.
10217         (struct tree_field_decl): Ditto.
10218         (struct tree_parm_decl): Ditto.
10219         (struct tree_var_decl): Ditto.
10220         (struct tree_function_decl): Ditto.
10221         (struct tree_const_decl): Ditto.
10222         (struct tree_result_decl): Ditto.
10223         (union tree_node): Add new structures.
10224         * var-tracking.c (track_expr_p): Reverse order of tests.
10225
10226         * doc/c-tree.texi: Add documentation on DECL node internal structure.
10227
10228 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
10229
10230         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
10231         * system.h: Poison FINALIZE_PIC.
10232         * doc/tm.texi (FINALIZE_PIC): Remove.
10233
10234 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10235
10236         PR tree-opt/22329
10237         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
10238         to the correct type if we have a MODIFY_EXPR.
10239
10240 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
10241
10242         PR tree-optimization/22360
10243         * tree.c (upper_bound_in_type): Fix calculations for casting
10244         to a non-wider signed type and casting a signed value to a
10245         wider unsigned type.
10246         (lower_bound_in_type): Fix calculations for casting to a
10247         non-wider signed type.
10248
10249         PR tree-optimization/20139
10250         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
10251         release_defs.
10252         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
10253         fold_cond_expr_cond.
10254         * tree-ssanames.c (release_defs): Assert in_ssa_p.
10255         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
10256
10257 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10258
10259         PR tree-opt/22356
10260         * tree-complex.c (expand_complex_libcall): Produce
10261         REALPART_EXPR/IMAGPART_EXPR with the correct type.
10262
10263 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
10264
10265         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
10266         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
10267         b" assert and inserted fastpath code for this case.
10268         (bitmap_ior): Removed "a != b" assert.
10269
10270 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10271
10272         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
10273         (ENDFILE_SPEC): Likewise.
10274         * config/m32r/m32r.h (ASM_SPEC): Likewise.
10275
10276         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
10277         a large stack frame at epilogue.
10278
10279 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
10280
10281         * final.c: Include sdbout.h when required.
10282
10283 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
10284
10285         * config.gcc (*-*-darwin*): Only one target-specific header file
10286         for generic darwin.
10287         (powerpc-*-darwin*): Add version-specific header files.
10288         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
10289         * config.in: Regenerate.
10290         * configure: Regenerate.
10291         * gcc.c: Include xregex.h.
10292         (version_compare_spec_function): New.
10293         (spec_function): Add version-compare.
10294         (replace_outfile_spec_function): Reformat comment.
10295         (compare_version_strings): New.
10296         * config/darwin-c.c (version_as_macro): New.
10297         (builtin_define): New.
10298         (darwin_cpp_builtins): New.
10299         * config/darwin-protos.h (darwin_cpp_builtins): New.
10300         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
10301         (LIB_SPEC): Make unconditional, update comment.
10302         (TARGET_C99_FUNCTIONS): Define.
10303         * config/darwin.opt: Sort.
10304         (mmacosx-version-min=): New.
10305         * config/darwin7.h: Delete.
10306         * config/darwin8.h: Delete.
10307         * config/i386/darwin.h (): Call darwin_cpp_builtins.
10308         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
10309         (TARGET_C99_FUNCTIONS): Define.
10310         * config/rs6000/darwin7.h: New.
10311         * config/rs6000/darwin8.h: New.
10312         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
10313         (-mmacosx-version-min): Document.
10314
10315 2005-07-07  Ian Lance Taylor  <ian@airs.com>
10316
10317         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
10318
10319 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
10320
10321         PR middle-end/22239
10322         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
10323
10324 2005-07-07  Khem Raj  <kraj@mvista.com>
10325
10326         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
10327         in bytes, not words.
10328
10329 2005-07-07  Paul Brook  <paul@codesourcery.com>
10330
10331         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
10332         DEFAULT_FUNCTION_ARG_PADDING to upward.
10333
10334 2005-07-07  Richard Henderson  <rth@redhat.com>
10335
10336         * function.c (locate_and_pad_parm): Record parameter alignment in
10337         stack_alignment_needed.
10338
10339 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
10340
10341         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
10342         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
10343         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
10344         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
10345         (define_attr "type"): Add isync, sync, load_l, store_c.
10346         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
10347         Create scratch volatile MEM.
10348         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
10349         sync.
10350         (load_locked_<mode>): New.
10351         (store_conditional_<mode>): New.
10352         (sync_compare_and_swap<mode>): Replace with splitter.
10353         (sync_lock_test_and_set<mode>): Replace with splitter.
10354         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
10355         and UNSPECV_ISYNC.
10356         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
10357         is ics.  Attribute isync.
10358         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
10359         lwsync.
10360         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
10361         and UNSPECV_SYNC_OP.
10362         (emit_unlikely_jump): New.
10363         (emit_load_locked): New.
10364         (emit_store_conditional): New.
10365         (rs6000_split_compare_and_swap): New.
10366         (rs6000_split_lock_test_and_set): New.
10367         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
10368         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
10369         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
10370         rs6000_split_lock_test_and_set): Declare.
10371         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
10372         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
10373         store_c, isync, sync.
10374
10375 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
10376
10377         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
10378         filenames to gtyp-gen.h.
10379         (s-typ-gen): Use it in place of for loops.
10380
10381 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
10382
10383         * hooks.c (hook_bool_rtx_int_false): New function.
10384         * hooks.h (hook_bool_rtx_int_false): Declare.
10385         * target-def.h (TARGET_COMMUTATIVE_P): Define.
10386         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
10387         * target.h (struct gcc_target): Add commutative_p member.
10388         * targhooks.c (hook_bool_rtx_commutative_p): New function.
10389         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
10390         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
10391         (pa_commutative_p): New function.
10392         * jump.c (target.h): Include.
10393         (rtx_renumbered_equal_p): Use targetm.commutative_p.
10394         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
10395
10396 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10397
10398         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
10399         (s390_expand_setmem): New.
10400         * config/s390/s390.c: Likewise.
10401         (print_shift_count_operand): Truncate to 12 bits instead of 6.
10402         Adapt comments.
10403         * config/s390/s390.md: ("setmem<mode>"): Accept character as
10404         general_operand.  Call new function "s390_expand_setmem".
10405         ("clrmem_long", "*clrmem_long"): Rewrite to ...
10406         ("setmem_long", "*setmem_long"): ... this.
10407
10408 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10409
10410         * config/s390/s390.c: (optimization_options): Enable
10411         TARGET_MVCLE at -Os.
10412         * doc/invoke.texi: Document changes in default behaviour.
10413         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
10414
10415 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10416
10417         * expr.c: (set_storage_via_setmem): Convert opchar to mode
10418         defined by back-end.
10419
10420 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
10421
10422         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
10423         all sets in the pattern.
10424         * config/rs6000/rs6000.md (stack_protect_testsi,
10425         stack_protect_testdi): Likewise.
10426
10427 2005-07-06  Jeff Law  <law@redhat.com>
10428
10429         * tree-vrp.c (simplify_using_ranges): Kill.
10430         (vrp_finalize): Remove call to simplify_using_ranges.
10431         (simplify_stmt_using_ranges): New function extracted from
10432         simplify_using_ranges.
10433         (simplify_div_or_mod_using_ranges): Likewise.
10434         (simplify_abs_using_ranges): Likewise.
10435         (simplify_cond_using_ranges): New function.
10436         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
10437         * tree-ssa-propagate.c (substitute_and_fold): Call
10438         simplify_stmt_using_ranges if we have range information.
10439
10440 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
10441
10442         * config/ia64/ia64.c (ia64_reorg): Check optimize before
10443         ia64_flag_schedule_isns2.
10444
10445         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
10446         reading/writing general registers.
10447         (ia64_function_arg): Revert 2005-06-18 change.
10448
10449 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
10450
10451         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
10452         (legitimize_tls_address): Use gcc_unreachable instead of abort.
10453
10454 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
10455
10456         * function.c (expand_function_end): Revert part of 2005-06-27
10457         patch.  Do sjlj_emit_function_exit_after after return_label.
10458
10459 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
10460
10461         * doc/install.texi (--disable-libssp): New.
10462
10463 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
10464
10465         * doc/invoke.texi: Update -fforce-mem documentation.
10466         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
10467         code for -fforce-mem.
10468         * expmed.c: (store_bit_field,store_fixed_bit_field,
10469         extract_bit_field): Ditto.
10470         * expr.c: (convert_move): Ditto.
10471         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
10472         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
10473         emit_conditional_add,expand_float,expand_fix): Ditto.
10474         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
10475         (common_handle_option): Issue warning when -fforce-mem specified.
10476
10477 2005-07-06  Paul Brook  <paul@codesourcery.com>
10478
10479         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
10480         argument is empty.
10481         * configure: Regenerate.
10482
10483 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
10484
10485         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
10486
10487 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
10488
10489         Fix PR tree-optimization/22319
10490         Fix PR tree-optimization/22140
10491         Fix PR tree-optimization/22310
10492
10493         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
10494         variable sized types.
10495         Use correct type for intermediate structure on *a = *b structure
10496         copies.
10497
10498 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
10499
10500         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
10501         Remove.
10502         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
10503         (machine_function): Move typedef to...
10504         * config/rs6000/rs6000.c (machine_function): ... here.  Add
10505         varargs_save_offset field.
10506         (rs6000_stack_t): Remove varargs_size field.
10507         (setup_incoming_varargs): Allocate varargs save area using
10508         assign_stack_local, try to make it as small as possible.
10509         Save offset from virtual_stack_vars_rtx to the save area
10510         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
10511         instead of magic 8 when fp word byte size is used.
10512         (rs6000_va_start): Use cfun->machine->varargs_save_offset
10513         instead of -RS6000_VARARGS_SIZE.
10514         (rs6000_stack_info, debug_stack_info,
10515         rs6000_initial_elimination_offset): Remove all traces of
10516         varargs_size.
10517         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
10518         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
10519         RS6000_VARARGS_AREA.
10520
10521 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
10522
10523         PR tree-optimization/21963
10524         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
10525         constant_multiple_of in the same way get_computation_cost_at does.
10526
10527 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
10528
10529         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
10530         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
10531         (gen_compare_reg): If sparc_compare_emitted is set, clear it
10532         and return its previous value.
10533         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
10534         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
10535         constants.
10536         (stack_protect_set, stack_protect_test): New expanders.
10537         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
10538         stack_protect_testdi): New insns.
10539         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
10540         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
10541
10542 2005-07-06  Jeff Law  <law@redhat.com>
10543
10544         * tree-ssa-dce.c (cfg_altered): New global.
10545         (tree_dce_init): Initialize cfg_altered.
10546         (remove_dead_stmt): If we remove an edge in the CFG, then set
10547         CFG_ALTERED.
10548         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
10549         the dominators.
10550
10551 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
10552
10553         * Makefile.in (stamp-collect-ld): Use
10554         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
10555         ./collect-ld if it already exists.
10556         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
10557         Don't remove ./nm if it already exists.
10558
10559 2005-07-05  Devang Patel  <dpatel@apple.com>
10560
10561         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
10562         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
10563         * tree-vectorizer.c (vect_loop_location): New.
10564         (vect_print_dump_info): Use vect_loop_location.
10565         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
10566         (vectorize_loops): Set vect_loop_location.
10567         * tree-vect-analyze.c (vect_analyze_offset_expr,
10568         vect_determin_vectorization_factor, vect_analyze_operations,
10569         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
10570         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
10571         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
10572         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
10573         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
10574         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
10575         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
10576         vect_analyze_loop): Adjust vect_print_dump_info API.
10577         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
10578         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
10579         vect_finish_stmt_generation, vectorizable_assignment,
10580         vectorizable_operation, vectorizable_store, vectorizable_load,
10581         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
10582         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
10583         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
10584         vect_transform_loop): Same.
10585         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
10586         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
10587         Same.
10588
10589 2005-07-05  Randolph Chung  <tausq@debian.org>
10590
10591         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
10592         * configure: Regenerate.
10593         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
10594         (pa_tls_referenced_p): Declare.
10595         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
10596         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
10597         (legitimize_tls_address): New.
10598         (hppa_legitimize_address): Handle TLS addresses.
10599         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
10600         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10601         (emit_move_sequence): Handle TLS addresses.
10602         (pa_encode_section_info): Call default handler to handle common
10603         sections.
10604         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
10605         (CONSTANT_ADDRESS_P): Reject TLS operands.
10606         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
10607         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
10608         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
10609         (UNSPEC_TLSLE): Define new constants.
10610         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
10611         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
10612         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
10613         (tie_symbolic_operand, tle_symbolic_operand): New
10614
10615 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
10616
10617         * aclocal.m4: Update macros for autoconf 2.59 style.
10618         * configure.ac: Likewise.
10619
10620 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10621
10622         * pa.c (function_value): Handle small aggregates on 32-bit targets.
10623         (function_arg): Pass small aggregates in general registers on 32-bit
10624         targets.
10625         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
10626
10627 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
10628
10629         * Makefile.in (final.o): Fix dependencies.
10630
10631 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
10632
10633         PR c/22013
10634         PR c/22098
10635         * langhooks.h (struct lang_hooks): Add expr_to_decl.
10636         * langhooks.c (lhd_expr_to_decl): New.
10637         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
10638         New.
10639         (LANG_HOOKS_INITIALIZER): Update.
10640         * tree.c (recompute_tree_invarant_for_addr_expr): Call
10641         expr_to_decl langhook.
10642         * c-tree.h (c_expr_to_decl): Declare.
10643         * c-typeck.c (c_expr_to_decl): New.
10644         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
10645         specially.
10646         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
10647
10648 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
10649
10650         PR c/22308
10651         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
10652         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
10653
10654 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
10655
10656         * Makefile.in: Adjust dependencies.
10657         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
10658         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
10659         * alias.c (rest_of_handle_cfg, pass_cfg): New.
10660         * bb-reorder.c (duplicate_computed_gotos): Make it static.
10661         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
10662         rest_of_compilation.
10663
10664         * bb-reorder.c (gate_duplicate_computed_gotos,
10665         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
10666         rest_of_handle_reorder_blocks, pass_reorder_blocks,
10667         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
10668         pass_partition_blocks): New.
10669         * bt-load.c (gate_handle_branch_target_load_optimize,
10670         rest_of_handle_branch_target_load_optimize,
10671         pass_branch_target_load_optimize): New.
10672         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
10673         pass_jump2): New.
10674         * cfglayout.c (pass_insn_locators_initialize): New.
10675         * cfgrtl.c (pass_free_cfg): New.
10676         * combine.c (gate_handle_combine, rest_of_handle_combine,
10677         pass_combine): New.
10678         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
10679         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
10680         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
10681         * except.c (pass_set_nothrow_function_flags,
10682         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
10683         pass_rtl_eh): New.
10684         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
10685         rest_of_handle_shorten_branches, pass_shorten_branches,
10686         rest_of_clean_state, pass_clean_state): New.
10687         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
10688         rest_of_handle_remove_death_notes, pass_remove_death_notes,
10689         rest_of_handle_life, pass_life, rest_of_handle_flow2,
10690         pass_flow2): New.
10691         * function.c (pass_instantiate_virtual_regs, pass_init_function,
10692         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
10693         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
10694         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
10695         pass_gcse): New.
10696         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
10697         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
10698         pass_rtl_ifcvt, gate_handle_if_after_combine,
10699         rest_of_handle_if_after_combine, pass_if_after_combine,
10700         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
10701         pass_if_after_reload): New.
10702         * integrate.c (pass_initial_value_sets): New.
10703         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
10704         pass_purge_lineno_notes): New.
10705         * mode-switching.c (rest_of_handle_mode_switching,
10706         pass_mode_switching): New.
10707         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
10708         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
10709         pass_loop2): New.
10710         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
10711         pass_loop_optimize): New.
10712         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
10713         pass_sms): New.
10714         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
10715         pass_gcse2): New.
10716         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
10717         pass_postreload_cse): New.
10718         * profile.c (gate_handle_profiling, pass_profiling,
10719         rest_of_handle_branch_prob, pass_branch_prob): New.
10720         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
10721         pass_split_before_regstack, gate_handle_split_before_regstack,
10722         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
10723         rest_of_handle_split_all_insns, pass_split_all_insns): New.
10724         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
10725         pass_stack_regs): New.
10726         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
10727         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
10728         pass_stack_adjustments): New.
10729         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
10730         pass_regrename): New.
10731         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
10732         pass_delay_slots, gate_handle_machine_reorg,
10733         rest_of_handle_machine_reorg, pass_machine_reorg): New.
10734         * rtl.h (extern void purge_line_number_notes): New.
10735         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
10736         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
10737         pass_sched2): New.
10738         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
10739         pass_tracer): New.
10740         * value-prof.c (gate_handle_value_profile_transformations,
10741         rest_of_handle_value_profile_transformations,
10742         pass_value_profile_transformations): New.
10743         * var-tracking.c (gate_handle_var_tracking,
10744         pass_variable_tracking): New.
10745         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
10746
10747         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
10748         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
10749         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
10750         rest_of_handle_old_regalloc, rest_of_handle_regrename,
10751         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
10752         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
10753         rest_of_handle_gcse2, rest_of_handle_regmove,
10754         rest_of_handle_tracer, rest_of_handle_if_conversion,
10755         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
10756         rest_of_handle_web, rest_of_handle_branch_prob,
10757         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
10758         rest_of_handle_jump_bypass, rest_of_handle_combine,
10759         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
10760         rest_of_handle_gcse, rest_of_handle_loop_optimize,
10761         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
10762         rest_of_handle_mode_switching, rest_of_handle_jump,
10763         rest_of_handle_eh, rest_of_handle_stack_adjustments,
10764         rest_of_handle_flow2, rest_of_handle_jump2,
10765         rest_of_handle_peephole2, rest_of_handle_postreload,
10766         rest_of_handle_shorten_branches, rest_of_clean_state,
10767         rest_of_compilation): Remove.
10768
10769         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
10770         * passes.c (dump_flags, in_gimple_form, all_passes,
10771         all_ipa_passes, all_lowering_passes, register_one_dump_file,
10772         register_dump_files, next_pass_1, last_verified, execute_todo,
10773         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
10774         from tree-optimize.c.
10775         (init_optimization_passes): Moved from tree-optimize.c,
10776         adding the RTL optimizations.
10777         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
10778         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
10779         all_ipa_passes, all_lowering_passes, register_one_dump_file,
10780         register_dump_files, next_pass_1, last_verified, execute_todo,
10781         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
10782         init_tree_optimization_passes, ipa_passes): Delete.
10783         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
10784         the RTL dumps.
10785         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
10786         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
10787         from tree.h.
10788         (ipa_passes): Remove.
10789         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
10790         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
10791         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
10792         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
10793         (dump_info_p, dump_flag): Moved to tree-dump.h.
10794
10795         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
10796         cgraph.c, opts.c.
10797         * passes.c (finish_optimization_passes): Use dump_begin
10798         and dump_end, TDI_end.
10799         (gate_rest_of_compilation): New.
10800         (pass_rest_of_compilation): Use it.
10801         (gate_postreload, pass_postreload): New.
10802         * toplev.c (general_init): Rename init_tree_optimization_passes.
10803         * toplev.h (init_tree_optimization_passes): Rename to
10804         init_optimizations_passes.
10805         * tree-dump.c (dump_flag): Make static.
10806         (dump_files): Remove RTL dumps.
10807         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
10808         pass_cleanup_cfg, pass_free_cfg_annotations,
10809         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
10810         pass_init_datastructures, pass_fixup_cfg): Make non-static.
10811         * tree-pretty-print.c: Include tree-pass.h.
10812         * cgraph.c: Include tree-dump.h.
10813
10814 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
10815
10816         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
10817         Only fall back to saying it points to readonly memory if
10818         we can't do better.
10819
10820 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10821
10822         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
10823         * config/m32r/m32r.c (m32r_compute_frame_size,
10824         m32r_expand_prologue): Take current_function_profile into
10825         account whenever we reference
10826         current_function_uses_pic_offset_table.
10827         (m32r_finalize_pic): Remove.
10828         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
10829
10830 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
10831
10832         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
10833         instead of $<.  Don't remove ./as if it already exists.
10834
10835 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10836
10837         PR target/21723
10838         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
10839         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
10840         for complex modes when generating code for PA 1.0.
10841         (VALID_FP_MODE_P): New macro.
10842         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
10843         sets for all general and floating point modes.  Align wide floating
10844         point modes to even register boundaries to comply with architectural
10845         requirements.
10846         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
10847         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
10848         (VALID_FP_MODE_P): New macro.
10849         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
10850         sets for all general and floating point modes.  Align wide floating
10851         point modes to even register boundaries to comply with architectural
10852         requirements.
10853
10854 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
10855
10856         * tree-dump.c (dump_files): Initialize dump number for .cgraph
10857         to 0.
10858
10859 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
10860
10861         * tree-ssa-structalias.c: Don't include expr.h.
10862
10863 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
10864
10865         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
10866         comments.
10867
10868 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
10869
10870         Fix PR tree-optimization/22279
10871
10872         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
10873         correct operator.
10874
10875 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
10876
10877         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
10878
10879 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
10880
10881         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
10882         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
10883         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
10884         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
10885         config/stormy16/stormy16.c, config/v850/v850.c,
10886         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
10887         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
10888         Avoid "." or "\n" at end of diagnostics and capital letters at
10889         start of diagnostics.
10890         * combine.c, cse.c: Don't translate dump file output.
10891         * toplev.c (print_version): Only translate output if going to
10892         stderr.
10893
10894 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
10895
10896         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
10897         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
10898         typos.
10899
10900 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10901
10902         * pa.c (fix_range): Fix typo in comment.
10903
10904 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
10905
10906         * tree-vrp.c (extract_range_from_assert): Replace
10907         fold (build (...)) with fold_build2.
10908
10909 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10910
10911         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
10912         gcc_gfc_char_table, init_dynamic_gfc_info): New.
10913         (format_types_orig, handle_format_attribute): Add support for
10914         format "gcc_gfc".
10915
10916 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10917
10918         * varasm.c (assemble_variable): Fix format specifier thinko.
10919
10920 2005-07-03  Ira Rosen  <irar@il.ibm.com>
10921
10922         PR tree-optimization/22029 (and 22135)
10923         * tree-pretty-print.c (dump_generic_node): Check that the node is not
10924         a phi node before calling dump_vops.
10925
10926 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10927
10928         * tree-dump.h (dump_string_field): Declare.
10929         * tree-dump.c: Use it instead of dump_string.
10930         (dump_string_field): Make non-static.
10931
10932 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10933
10934         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
10935         up the minimal CFG stuff always when optimize > 0.  Call
10936         split_all_insns_noflow in PIC case if needed.
10937
10938 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10939             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
10940
10941         PR c++/18279
10942         * c-decl.c (c_write_global_declarations): Dump contents of
10943         external scope to.
10944         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
10945         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
10946         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
10947         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
10948         is enabled.
10949
10950 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
10951
10952         * c-common.h (GCC_DIAG_STYLE): Define.
10953         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
10954         version for format checking to 4.1.
10955         * c-format.c: Include toplev.h after c-common.h.
10956         (enum format_type): Add gcc_tdiag_format_type.
10957         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
10958         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
10959         (format_types_orig): Add gcc_tdiag.
10960         (init_dynamic_diag_info): Support gcc_tdiag formats.
10961         (handle_format_attribute): Likewise.
10962         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
10963         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
10964         version for format checking to 4.1.
10965         (warning0, warning, error, pedwarn, sorry): Use
10966         ATTRIBUTE_GCC_DIAG.
10967         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
10968         (finish_aliases_1): Do not use %qE.
10969         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
10970         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
10971         Correct format bugs.
10972         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
10973         parameter to unsigned HOST_WIDE_INT.
10974         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
10975
10976 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
10977
10978         PR middle-end/21742
10979         * expr.c (write_complex_part): Use adjust_address for MEM.
10980         (read_complex_part): Same.
10981
10982 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
10983
10984         Fix PR tree-optimization/22280
10985
10986         * tree-sra.c (generate_element_init): Remove useless loop.
10987
10988 2005-07-02  Richard Henderson  <rth@redhat.com>
10989
10990         * config/alpha/alpha.c (alpha_legitimize_address): Check for
10991         TLS_MODEL_NONE.
10992         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
10993
10994 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
10995
10996         PR middle-end/14490
10997         * fold-const.c (fold_binary): Handle the return value of
10998         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
10999         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
11000
11001 2005-07-02  Jeff Law  <law@redhat.com>
11002
11003         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
11004         a eliminate type conversion which feeds an equality comparison
11005         if the original type or either operand in the comparison is a
11006         function pointer.
11007
11008 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
11009
11010         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
11011         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
11012         texts.
11013         * config/avr/avr.c: Do not use '`' as left quote.
11014         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
11015         Remove "." from end of diagnostics.  Make diagnostics start with
11016         lowercase letter.
11017
11018 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
11019             Joseph S. Myers  <joseph@codesourcery.com>
11020
11021         * toplev.c (default_tree_printer): Handle setting location with
11022         '+' flag.
11023         * c-objc.common.c (c_tree_printer): Likewise.
11024         * c-format.c (gcc_diag_flag_specs): Add '+'.
11025         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
11026         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
11027         formats.
11028         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
11029         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
11030         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
11031         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
11032         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
11033         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
11034         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
11035         format arguments where %J is used without %D.
11036
11037 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
11038
11039         * gcc.c (LINK_SSP_SPEC): Define.
11040         (link_ssp_spec): New variable.
11041         (LINK_COMMAND_SPEC): Add %(link_ssp).
11042         (static_specs): Add link_ssp_spec.
11043         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
11044         * configure: Rebuilt.
11045         * config.in: Rebuilt.
11046
11047         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11048         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11049         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11050         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11051         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
11052         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
11053         -0x7008(2) instead of reading __stack_chk_guard variable.
11054         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
11055         number.
11056         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
11057         (stack_protect_set, stack_protect_test): Use *_tls* patterns
11058         if TARGET_THREAD_SSP_OFFSET is defined.
11059         (stack_tls_protect_set_si, stack_tls_protect_set_di,
11060         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
11061
11062         Revert:
11063         2005-06-27  Richard Henderson  <rth@redhat.com>
11064         * libgcc-std.ver (GCC_4.1.0): New.
11065         * libgcc.h (__stack_chk_guard): Declare.
11066         (__stack_chk_fail, __stack_chk_fail_local): Declare.
11067         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
11068         * mklibgcc.in (lib2funcs): Add them.
11069
11070 2005-07-01  Richard Henderson  <rth@redhat.com>
11071
11072         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
11073         void * before struct sigcontext *.
11074         (x86_fallback_frame_state): Likewise.
11075
11076 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
11077
11078         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
11079
11080 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11081
11082         PR tree-opt/22269
11083         * tree-ssa-reassoc.c (should_transpose): Fix which operand
11084         we check for SSA_NAME for.
11085
11086 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
11087
11088         Fix PR tree-optimization/22071
11089
11090         * tree-ssa-structalias.c (offset_overlaps_with_access): New
11091         function.
11092         (get_constraint_for_component_ref): Use it.
11093
11094 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11095
11096         PR other/22264
11097         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
11098         print out the last new line.
11099
11100 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
11101
11102         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
11103         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
11104         * config/cris/cris.c (cris_conditional_register_usage): Adjust
11105         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
11106         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
11107         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
11108         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
11109         (enum reg_class): New member CC0_REGS.
11110         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
11111         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
11112         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
11113         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11114         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
11115         Adjust for register now described.
11116
11117 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
11118
11119         PR target/22262
11120         * config/i386/i386.md (stack_protect_test_si,
11121         stack_protect_test_di): Add earlyclobber for scratch 3.
11122         * config/rs6000/rs6000.md (stack_protect_testsi,
11123         stack_protect_testdi): Add earlyclobber for scratch 3,
11124         remove earlyclobber from scratch 4.
11125
11126 Older entries for 2005 can be found in ChangeLog-2005.