coretypes.h (section): Provide dummy definition for target files.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
2
3         * coretypes.h (section): Provide dummy definition for target files.
4         * config/darwin.h: Revert previous change.
5
6 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
7
8         * doc/sourcebuild.texi (all.build, install-normal): Remove.
9         * configure.ac: Remove all.build and install-normal from target_list
10         * configure: Regenerate.
11         * Makefile.in (install): Don't depend on install-normal.
12
13 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14
15         * Makefile.in: Document the use of stamps.
16
17 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
18
19         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
20         * Makefile.in: Add code to compute some dependencies on s-gtype
21         automatically.  Remove the declaration of those dependencies.
22
23 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
24
25         * gcc/reload.c (push_secondary_reload): Fix typo:
26         s/insn_constraint/scratch_constraint/.
27
28 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
29
30         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
31
32 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
33
34         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
35         (alpha_elf_select_rtx_section): Return the selected section rather
36         than emitting assembly code.
37         (alpha_write_linkage): Emit a ".link" directive directly and then
38         set in_section to NULL.
39         (vms_asm_out_constructor): Use switch_to_section.
40         (vms_asm_out_destructor): Likewise.
41         (unicosmk_output_common): Set in_section to NULL instead of calling
42         the dummy common_section function.
43         (unicosmk_text_section): Delete in favor of...
44         (unicosmk_output_text_section_asm_op): ...this new function.
45         (unicosmk_data_section): Delete in favor of...
46         (unicosmk_output_data_section_asm_op): ...this new function.
47         (unicosmk_init_sections): New function.
48         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
49         (unicosmk_output_ssib): Set in_section to NULL instead of calling
50         the dummy ssib_section function.
51         (unicosmk_section_buf): Delete.
52         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
53         (unicosmk_data_section): Delete.
54         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
55         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
56         (SECTION_FUNCTION_TEMPLATE): Delete.
57         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
58         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
59         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
60         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
61         (TARGET_ASM_INIT_SECTIONS): Define.
62         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
63         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
64         (link_section, literals_section): Delete.
65         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
66         set in_section to NULL.
67
68         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
69         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
70         (COMMON_SECTION): Delete.
71         (TARGET_ASM_INIT_SECTIONS): Define.
72         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
73         the dummy common_section function.
74         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
75         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
76         between readonly_data_section and text_section to check whether
77         read-only data is being put in the text section.
78         (arm_output_function_epilogue): Use switch_to_section.
79         (arm_elf_asm_constructor): Likewise.
80         (thumb_call_via_reg): Replace call to in_text_section with
81         a comparison between in_section and text_section.
82         (arm_file_end): Use switch_to_section.
83         (aof_text_section): Delete in favor of...
84         (aof_output_text_section_asm_op): ...this new function.
85         (aof_data_section): Delete in favor of...
86         (aof_output_data_section_asm_op): ...this new function.
87         (aof_asm_init_sections): New function.
88         (zero_init_section): Moved from config/arm/aof.h.
89         (aof_dump_imports, aof_file_start): Use switch_to_section.
90         * config/arm/arm.h (thumb_call_via_label): Update comment.
91         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
92         (common_section): Delete.
93         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
94         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
95         global switch_to_section function instead of the old port-local one.
96         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
97         (SWITCH_TO_SECTION_FUNCTION): Delete.
98         (drectve_section): Redefine as a macro.
99         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
100         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
101         switch_to_section.
102
103         * config/avr/avr.c (progmem_section): New variable.
104         (avr_output_progmem_section_asm_op): New function.
105         (avr_asm_init_sections): New function.
106         (avr_output_addr_vec_elt): Use switch_to_section.
107         * config/avr/avr.h (progmem_section): Declare.
108         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
109         (READONLY_DATA_SECTION): Delete.
110         (TARGET_ASM_INIT_SECTIONS): Define.
111         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
112         * config/avr/avr-protos.h (progmem_section): Delete.
113
114         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
115
116         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
117         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
118
119         * config/darwin-sections.def: New file.
120         * config/darwin.c: Define all sections in darwin-sections.def.
121         (output_objc_section_asm_op, darwin_init_sections): New functions.
122         (machopic_output_indirection): Use switch_to_section.
123         (machopic_select_section): Return the selected section rather than
124         emitting assembly code.  Replace the static function table with
125         inline conditional expressions.  Update the tests of last_text_section
126         and move them into the FUNCTION_DECL block.
127         (machopic_select_rtx_section): Return the selected section rather than
128         emitting assembly code.
129         (machopic_asm_out_constructor, machopic_asm_out_destructor)
130         (darwin_file_end): Use switch_to_section.
131         * config/darwin.h: Use darwin-sections.def to declare sections.
132         (INIT_SECTION_ASM_OP): Remove empty definition.
133         (HAS_INIT_SECTION): Define this instead.
134         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
135         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
136         (TARGET_ASM_EH_FRAME_SECTION): Delete.
137         (TARGET_ASM_INIT_SECTIONS): Define.
138         * config/darwin-protos.h (darwin_init_sections): Declare.
139         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
140         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
141         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
142         (constructor_section, destructor_section, mod_init_section): Delete.
143         (mod_term_section): Delete.
144         (darwin_exception_section, darwin_eh_frame_section): Delete.
145         (machopic_select_section): Return a section.
146         (machopic_select_rtx_section): Likewise.
147         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
148         (const_section, const_coal_section, const_data_section): Delete.
149         (const_data_coal_section, data_coal_section, cstring_section): Delete.
150         (literal4_section, literal8_section, constructor_section): Delete.
151         (mod_init_section, mod_term_section, destructor_section): Delete.
152         (objc_class_section, objc_meta_class_section, objc_category_section)
153         (objc_class_vars_section, objc_instance_vars_section): Delete.
154         (objc_cls_meth_section, objc_inst_meth_section): Delete.
155         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
156         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
157         (objc_symbols_section, objc_module_info_section): Delete.
158         (objc_image_info_section, objc_protocol_section): Delete.
159         (objc_string_object_section, objc_constant_string_object_section)
160         (objc_class_names_section, objc_meth_var_names_section): Delete.
161         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
162         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
163         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
164         (darwin_exception_section, darwin_eh_frame_section): Delete.
165         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
166
167         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
168         (frv_asm_out_destructor): Likewise.
169         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
170         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
171         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
172         get_named_section.
173         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
174         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
175         (data_section): Delete.
176
177         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
178         (DRECTVE_SECTION_FUNCTION): Delete.
179         (drectve_section): Redefine as a macro that sets in_section after
180         emitting the directive.
181         (SWITCH_TO_SECTION_FUNCTION): Delete.
182         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
183         in_text_section with comparison between in_section and text_section.
184         * config/i386/i386.c (x86_64_elf_select_section): Return the section
185         rather than emitting assembly code.  Use get_named_section.
186         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
187         get_named_section.
188         (machopic_output_stub): Use switch_to_section.
189         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
190         (nwld_named_section_asm_out_destructor): Use get_section and
191         switch_to_section.
192
193         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
194         rather than emitting assembly code.
195         (ia64_rwreloc_select_section): Likewise.
196         (ia64_rwreloc_select_rtx_section): Likewise.
197         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
198         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
199         switch_to_section.
200         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
201         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
202
203         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
204         section rather than emitting assembly code.
205         (iq2000_select_section): Likewise.
206         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
207         (sbss_section): Delete.
208
209         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
210         and get_named_section.
211         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
212
213         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
214         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
215         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
216         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
217         in_section to NULL.
218         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
219         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
220         global switch_to_section function instead of the old port-local one.
221         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
222         (SWITCH_SECTION_FUNCTION): Delete.
223         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
224         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
225         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
226         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
227         in_section to NULL.
228         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
229         global switch_to_section function instead of the old port-local one.
230         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
231
232         * config/mips/mips.c (mips_file_start): Update comment.
233         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
234         (mips_output_aligned_decl_common): Use switch_to_section.
235         (mips_select_rtx_section): Return the section rather than emitting
236         assembly code.  Use get_named_section.
237         (mips_function_rodata_section: Likewise get_section.
238         (build_mips16_function_stub): Use switch_to_section.
239         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
240         (SDATA_SECTION_ASM_OP): Delete.
241         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
242         (EXTRA_SECTION_FUNCTIONS): Delete.
243
244         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
245         (mmix_asm_output_aligned_local): Use switch_to_section.
246
247         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
248         (som_one_only_readonly_data_section): New variables.
249         (pa_output_function_epilogue): Set in_section to NULL instead of
250         calling forget_section.
251         (output_deferred_plabels): Use select_section.
252         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
253         of calling forget_section.
254         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
255         (pa_asm_output_aligned_local): Use select_section.
256         (som_text_section_asm_op): Delete in favor of...
257         (som_output_text_section_asm_op): ...this new function.
258         (pa_som_asm_init_sections): New function.
259         (pa_select_section): Return the section rather than emitting
260         assembly code.
261         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
262         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
263         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
264         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
265         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
266         (som_readonly_data_section, som_one_only_readonly_data_section)
267         (som_one_only_data_section, forget_section): Delete.
268         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
269         (TARGET_ASM_INIT_SECTIONS): Define.
270         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
271
272         * config/rs6000/rs6000.c (read_only_data_section): New variable.
273         (private_data_section, read_only_private_data_section): New variables.
274         (sdata2_section, toc_section): New variables.
275         (rs6000_file_start): Use switch_to_section.
276         (rs6000_assemble_integer): Use comparisons against in_section
277         instead of calling in_toc_section and in_text_section.  Use
278         unlikely_text_section_p.
279         (rs6000_elf_output_toc_section_asm_op): New function, derived
280         from the old rs6000/sysv4.h toc_section function.
281         (rs6000_elf_asm_init_sections): New function.
282         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
283         the section rather than emitting assembly code.
284         (machopic_output_stub): Use switch_to_section.
285         (toc_section): Delete dummy function.
286         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
287         switch_to_section and get_section.
288         (rs6000_xcoff_output_readonly_section_asm_op): New function.
289         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
290         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
291         the old rs6000/xcoff.h toc_section function.
292         (rs6000_xcoff_asm_init_sections): New function.
293         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
294         the section rather than emitting assembly code.
295         (rs6000_xcoff_file_start): Use switch_to_section.
296         (rs6000_xcoff_file_end): Likewise.
297         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
298         (sdata2_section, sbss_section, private_data_section): Delete.
299         (read_only_data_section, read_only_private_data_section): Delete.
300         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
301         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
302         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
303         (FINI_SECTION_FUNCTION): Delete.
304         (TARGET_ASM_INIT_SECTIONS): Define.
305         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
306         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
307         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
308         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
309         (READONLY_DATA_SECTION): Delete.
310         (TARGET_ASM_INIT_SECTIONS): Define.
311         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
312         to NULL rather than no_section.
313         (TARGET_ASM_EXCEPTION_SECTION): Delete.
314
315         * config/sh/sh.c (sh_file_start): Use switch_to_section.
316
317         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
318         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
319         from call to current_function_section.
320
321         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
322         (bss100_section): New variable.
323         (xstormy16_asm_output_aligned_common): Use switch_to_section.
324         (xstormy16_asm_init_sections): New function.
325         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
326         switch_to_section and get_section.
327         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
328         from calls to current_function_section.
329         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
330         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
331         (TARGET_ASM_INIT_SECTIONS): Define.
332         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
333
334         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
335         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
336         (FINI_SECTION_FUNCTION): Delete.
337
338         * config/v850/v850.c: Include gt-v850.h.
339         (rosdata_section, rozdata_section, tdata_section, zdata_section)
340         (zbss_section): New variables.
341         (v850_output_aligned_bss): Use switch_to_section.
342         (v850_asm_init_sections): New function.
343         (v850_select_section): Return the section rather than emitting
344         assembly code.
345         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
346         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
347         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
348         (TARGET_ASM_INIT_SECTIONS): Define.
349         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
350         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
351         (zbss_section): Delete.
352
353         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
354
355         * config/vx-common.h (vxworks_exception_section): Delete.
356         (TARGET_ASM_EXCEPTION_SECTION): Delete.
357
358         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
359         section rather than emitting assembly code.
360         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
361         switch_to_section.
362
363         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
364         * coretypes.h (section): New union and typedef.
365         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
366         from call to current_function_section.
367         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
368         (dbxout_symbol_location): Use switch_to_section.
369         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
370         most of the code into...
371         (default_eh_frame_section): ...here.  Return a section.
372         (collect2_eh_frame_section): Delete, moving most of the code into..
373         (switch_to_eh_frame_section): ...this new function.
374         (debug_info_section, debug_abbrev_section, debug_aranges_section)
375         (debug_macinfo_section, debug_line_section, debug_loc_section)
376         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
377         variables.
378         (output_call_frame_info): Call switch_to_eh_frame_section instead of
379         eh_frame_section.  Use switch_to_section and get_section.
380         (dwarf2out_begin_prologue): Use switch_to_section.
381         (AT_string_form): Check the flags in debug_str_section instead of
382         DEBUG_STR_SECTION_FLAGS.
383         (output_comp_unit): Use switch_to_section, get_section, and
384         debug_info_section.
385         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
386         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
387         from call to current_function_section.
388         (dwarf2out_var_location): Use unlikely_text_section_p.
389         (dwarf2out_source_line): Use switch_to_section.  Remove argument
390         from call to current_function_section.
391         (dwarf2out_start_source_file, dwarf2out_end_source_file)
392         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
393         debug_macinfo_section.
394         (dwarf2out_init): Initialize the new section variables.  Use them
395         instead of calls to named_section_flags.  Use switch_to_section.
396         (output_indirect_string): Use switch_to_section and debug_str_section.
397         (dwarf2out_finish): Use switch_to_section and the new section
398         variables.
399         * except.c (default_exception_section): Return the section instead
400         of emitting assembly code.
401         (output_function_exception_table): Use the global exception_section
402         variable instead of the target hook.  Use switch_to_section.  Remove
403         argument from call to current_function_section.
404         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
405         (shorten_branches): Use pointer comparisons to detect whether the
406         text section is the same as readonly_data_section.
407         (profile_function): Use switch_to_section.  Remove argument from
408         call to current_function_section.
409         (final_scan_insn): Likewise.  Update use of last_text_section.
410         * gengtype.c (open_base_files): Add an include of output.h.
411         * output.h (text_section, data_section, readonly_data_section)
412         (ctors_section, dtors_section, bss_section, init_section)
413         (fini_section, sdata_section): Turn into section pointers.
414         (in_text_section, in_unlikely_text_section, exports_section)
415         (drectve_section, named_section, mergeable_string_section)
416         (last_text_section_name): Delete.
417         (default_exception_section, default_eh_frame_section): Return sections.
418         (SECTION_DECLARED, SECTION_NAMED): New macros.
419         (SECTION_MACH_DEP): Bump value.
420         (section_common, named_section, unnamed_section): New structures.
421         (unnamed_section_callback): New typedef.
422         (section): New union.
423         (sbss_section, exception_section, eh_frame_section): New variables.
424         (in_section, last_text_section): Turn into section pointers.
425         (get_unnamed_section, get_section, get_named_section): New functions.
426         (mergeable_constant_section, function_section): Return a section.
427         (unlikely_text_section): Likewise.
428         (current_function_section): Likewise.  Remove the decl argument.
429         (unlikely_text_section_p, switch_to_section): New functions.
430         (output_section_asm_op): New function.
431         (set_named_section_flags, named_section_flags, named_section_real)
432         (named_section_first_declaration): Delete.
433         (default_select_section, default_elf_select_section): Return a section.
434         (default_elf_select_section_1, default_function_rodata_section)
435         (default_no_function_rodata_section, default_select_rtx_section)
436         (default_elf_select_rtx_section): Likewise.
437         * rtl.h (in_data_section): Delete.
438         * sdbout.c (sdbout_one_type): Use switch_to_section.
439         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
440         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
441         (TARGET_ASM_EH_FRAME_SECTION): Poison.
442         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
443         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
444         (TARGET_ASM_OUT): Update after above changes.
445         * target.h (init_sections): New hook.
446         (exception_section, eh_frame_section): Delete.
447         (select_section, select_rtx_section, function_rodata_section): Return
448         a section rather than emitting assembly code.
449         * varasm.c (text_section, data_section, readonly_data_section)
450         (ctors_section, dtors_section, bss_section, init_section)
451         (fini_section): Turn into section pointers.
452         (sdata_section, sbss_section, exception_section): New variables.
453         (eh_frame_section): New variable.
454         (in_section): Make global and turn into a section pointer.
455         (last_text_section): Turn into a section pointer.
456         (unnamed_sections): New variable.
457         (in_named_name, last_text_section_name): Delete.
458         (EXTRA_SECTION_FUNCTIONS): Delete.
459         (in_named_entry): Delete.
460         (section_htab): New variable, replacing...
461         (in_named_htab): ...this deleted variable.
462         (section_entry_eq, section_entry_hash): New functions, based on...
463         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
464         (get_unnamed_section, get_section): New functions.
465         (unlikely_text_section): Return a section instead of emitting
466         assembly code.
467         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
468         (get_named_section_flags, named_section_first_declaration): Delete.
469         (unlikely_text_section_p): New function.
470         (named_section_real, named_section): Delete.
471         (get_named_section): New function.
472         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
473         (function_section): Return a section rather than emitting
474         assembly code.
475         (current_function_section): Likewise.  Remove argument.  Use
476         last_text_section if nonnull, otherwise use function_section.
477         (default_function_rodata_section): Return a section rather than
478         emitting assembly code.  Use get_section.
479         (default_no_function_rodata_section): Return a section rather than
480         emitting assembly code.
481         (variable_section): Use switch_to_section and get_named_section.
482         (mergeable_string_section): Return a section rather than emitting
483         assembly code.  Use get_section.  Make static.  Don't take special
484         countermeasures for empty strings.
485         (mergeable_constant_section): Return a section rather than emitting
486         assembly code.  Use get_section.
487         (default_named_section_asm_out_destructor): Use switch_to_section
488         and get_section.
489         (default_dtor_section_asm_out_destructor): Use switch_to_section.
490         (default_named_section_asm_out_constructor): Use switch_to_section
491         and get_section.
492         (default_ctor_section_asm_out_constructor): Use switch_to_section.
493         (assemble_start_function): Likewise.  Set last_text_section to
494         NULL rather than no_section.  Change the type of save_section.
495         (assemble_zeros, assemble_variable): Use the section flags to detect
496         whether or not a section is text.
497         (assemble_static_space): Use switch_to_section.
498         (assemble_trampoline_template): Likewise.
499         (output_constant_def_contents): Use switch_to_section and
500         get_named_section.
501         (output_constant_pool_1): Use switch_to_section.  Use the section
502         flags to see whether sections contain mergeable data.
503         (init_varasm_once): Initialize section_htab instead of in_named_htab.
504         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
505         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
506         whether a section has already been declared.
507         (default_select_section, default_elf_select_section): Return a
508         section rather than emitting assembly code.
509         (default_elf_select_section_1): Likewise.  Use bss_section for
510         SECCAT_BSS if nonnull.  Use get_named_section.
511         (default_select_rtx_section): Return a section rather than
512         emitting assembly code.
513         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
514         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
515         (output_section_asm_op, switch_to_section): New functions.
516         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
517         get_named_section.
518
519         * doc/tm.texi: Expand the introduction to the sections documentation.
520         (TRAMPOLINE_SECTION): Document new interface.
521         (SDATA_SECTION_ASM_OP): Document new macro.
522         (READONLY_DATA_SECTION): Delete.
523         (SDATA_SECTION_ASM_OP): Document new macro.
524         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
525         (TARGET_ASM_INIT_SECTIONS): Document new hook.
526         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
527         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
528         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
529
530 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
531
532         * gcc.c (init_gcc_specs): Match braces inside conditionally
533         compiled strings.
534
535 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
536
537         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
538
539 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
540
541         PR C++/24138
542         * tree.c (integer_all_onesp): Always return true if all bits on.
543
544         * testsuite/g++.dg/init/array0.C: New.
545
546 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
547
548         * doc/md.texi: Adapt to implementation.
549
550 2005-12-06  Andreas Schwab  <schwab@suse.de>
551
552         * opts.c (decode_options): Fix typo in message.
553
554 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
555
556         PR other/13873
557         * longlong.h: Merge PPC tests from upstream.
558
559 2005-12-06  Richard Guenther  <rguenther@suse.de>
560
561         * fold-const.c (fold_convert): Do not build and fold
562         CONVERT_EXPR, but always use NOP_EXPR.
563
564 2005-12-06  Jan Beulich  <jbeulich@novell.com>
565
566         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
567         __builtin_ia32_paddq and __builtin_ia32_subq.
568         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
569         __builtin_ia32_pshufw.
570         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
571
572 2005-12-05  James E Wilson  <wilson@specifix.com>
573
574         PR target/24934
575         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
576         is set.
577
578 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
579         
580         * print-tree.c (print_node): Ditto.
581         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
582         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
583         before accessing DECL_ARTIFICIAL. 
584         Handle new tag tree codes.
585         * tree-flow-inline.h (clear_call_clobbered): Update for tag
586         changes.
587         (unmodifiable_var_p): Ditto.
588         * tree-flow.h (mem_tag_kind): Remove.
589         (struct var_ann_d): Remove mem_tag_kind member.
590         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
591         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
592         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
593         (group_aliases): Ditto.
594         (setup_pointers_and_addressables): Ditto.
595         (is_escape_site): Ditto.                                          
596         (may_alias_p): Ditto.
597         (create_tag_raw): New function.
598         (create_memory_tag): Use it.
599         (dump_alias_info): Update for tags.
600         (may_be_aliased): Ditto.
601         (add_type_alias): Ditto.
602         (new_type_alias): Ditto.
603         (create_sft): Ditto.
604         (create_structure_vars): Ditto.
605         * tree-ssa-ccp.c (get_default_value): Ditto.
606         * tree-ssa-operands.c (get_expr_operands): Ditto.
607         (add_stmt_operand): Ditto.
608         (add_call_clobber_ops): Remove duplicated condition.
609         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
610         tags.
611         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
612         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
613         * tree.c (init_ttree): Update structures for new tree codes.
614         (tree_code_size): Update sizes for new tree codes.
615         (make_node_stat): Don't try to set common things on minimal
616         structures.
617         (tree_node_structure): Update for tags.
618         (is_global_var): Ditto.
619         * tree.def: Add new tree codes.
620         * tree.h (MTAG_P): New macro.
621         (TREE_MEMORY_TAG_CHECK): Ditto.
622         (SSA_VAR_P): Update for tags.
623         (struct tree_memory_tag): New structure.
624         (MTAG_GLOBAL): New macro.
625         (union tree_node): Add memory tag member.
626         * treestruct.def (TS_MEMORY_TAG): New.
627         
628 2005-12-05  Dale Johannesen  <dalej@apple.com>
629
630         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
631         what was approved (PR 24323).
632
633 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
634
635         * doc/c-tree.texi (Function Bodies): Remove description of
636         RETURN_INIT.
637
638 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
639
640         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
641         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
642         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
643         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
644         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
645         __divxc3): Document.
646
647 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
648
649         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
650         previous behaviour.
651         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
652         hook_bool_void_false.
653         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
654         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
655
656         * config/darwin.c (machopic_select_section): It's not defined
657         as weak if it's only marked as weak_import.
658         
659         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
660         Prototype.
661
662         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
663         A hidden weak object does bind locally.  Strong linkonce data
664         counts like any other strong symbol for binding.
665         (weak_finish_1): Don't specially handle weakrefs, they no longer
666         arrive here.
667         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
668         * c-common.c (handle_alias_attribute): Allow static aliases
669         of variables.
670         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
671         * gthr-dce.h: Make weakrefs static.
672         * gthr-tpf.h: Likewise.
673         * gthr-solaris.h: Likewise.
674         * gthr-posix.h: Likewise.
675         * gthr-posix95.h: Likewise.
676         * config/darwin.c (darwin_encode_section_info): static weakref
677         variables are not necessarily defined in this translation unit.
678         * doc/extend.texi (Function Attributes): Mention that an alias
679         attribute creates a definition for the thing it's attached to.
680         Change the documentation for weakref to say that the thing
681         it's attached to must be static.
682
683         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
684         we don't go into an infinite loop.
685
686 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
687
688         * config/rs6000/predicates.md (logical_const_operand): Split
689         out of logical_operand.
690         (logical_operand): Use it.
691         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
692         logical_const_operand.
693
694 2005-12-05  Jan Beulich  <jbeulich@novell.com>
695
696         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
697         and IX86_BUILTIN_CMPNESS.
698         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
699         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
700         * config/i386/i386.md (movti_internal): Correct type attribute.
701         Simplify mode attribute.
702         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
703         Correct type attribute.
704         (absxf2): Correct operator.
705         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
706         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
707         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
708         mode attribute.
709         (sse2_vmsqrtv2df2): Correct mode attribute.
710
711 2005-12-05  Jan Beulich  <jbeulich@novell.com>
712
713         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
714         16 bits. Provide insn pattern for this case.
715
716 2005-12-05  Jan Beulich  <jbeulich@novell.com>
717
718         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
719         result.
720         (__popcountDI2): Likewise.
721
722 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
723
724         PR target/25166
725         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
726         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
727         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
728         functions.
729
730 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
731
732         * c-typeck.c (null_pointer_constant_p): New function.
733         (build_conditional_expr, build_c_cast, convert_for_assignment,
734         build_binary_op): Use it.
735
736 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
737
738         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
739         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
740         CONVERT_EXPR.
741         (check_function_arguments_recurse): Allow both NOP_EXPR and
742         CONVERT_EXPR but check conversions preserve precision.
743         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
744         but check conversions preserve precision.
745         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
746         default case.
747
748 2005-12-04  Roger Sayle  <roger@eyesopen.com>
749
750         PR c/7776
751         * common.opt (Wstring-literal-comparison): New command line option.
752         * c-opts.c (c_common_handle_option): Set it with -Wall.
753         * c-typeck.c (parser_build_binary_op): Issue warning if either
754         operand of a comparison operator is a string literal, except for
755         testing equality or inequality against NULL.
756
757         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
758
759 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
760
761         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
762         of building a NOP_EXPR.
763         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
764         NOP_EXPR.
765         * c-convert.c (convert): Use fold_convert instead of building
766         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
767         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
768         #if 0 code.
769         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
770         NOP_EXPR the same as CONVERT_EXPR.
771         * c-typeck.c (build_function_call): Use fold_convert instead of
772         building a NOP_EXPR directly.
773         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
774
775 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
776
777         PR rtl-optimization/25197
778         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
779         have a reg.
780
781 2005-12-02  Stuart Hastings  <stuart@apple.com>
782
783         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
784         warning.
785
786 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
787
788         * c-typeck.c (default_function_array_conversion,
789         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
790         (build_conditional_expr): Apply integer_zerop to orig_op1 and
791         orig_op2.  Don't check them for NOP_EXPR.
792         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
793         around integer zero.
794
795 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
796
797         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
798         toc_save_offset, toc_size, lr_size.
799         (rs6000_stack_info): Use memset rather than bss struct copy to init.
800         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
801         Adjust for removal of unused rs6000_stack_t fields.
802         (debug_stack_info): Adjust.
803         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
804         first, and don't bother checking for set/inc of lr on sibcalls.
805         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
806
807 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
808
809         PR target/25199
810         * config/i386/i386.md (movqi_1): Only force imovx for alternative
811         5 if operand 1 is not aligned.  Undo previous constraint change.
812         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
813
814 2005-12-02  Richard Guenther  <rguenther@suse.de>
815
816         * tree.h (build): Remove prototype.
817         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
818         * tree.c (build): Remove.
819         (build0_stat): Update comment.
820
821 2005-12-02  Richard Guenther  <rguenther@suse.de>
822
823         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
824         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
825         Likewise.
826         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
827         maybe_fold_offset_to_component_ref): Likewise.
828         * tree-ssa-dom.c (thread_across_edge,
829         simplify_rhs_and_lookup_avail_expr,
830         find_equivalent_equality_comparison, record_equivalences_from_stmt):
831         Likewise.
832         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
833         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
834         lower_try_finally_switch): Likewise.
835         * tree-if-conv.c (add_to_dst_predicate_list,
836         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
837         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
838         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
839         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
840         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
841         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
842         gimplify_init_ctor_eval, gimplify_init_constructor,
843         gimplify_variable_sized_compare, gimplify_boolean_expr,
844         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
845         gimplify_expr, gimplify_body, gimplify_function_tree,
846         force_gimple_operand): Likewise.
847         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
848         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
849         mx_register_decls): Likewise.
850         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
851         get_frame_field, finalize_nesting_tree_1): Likewise.
852         * tree-inline.c (setup_one_parameter): Likewise.
853         * tree-vect-transform.c (vectorizable_condition): Likewise.
854         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
855         Likewise.
856         * tree-profile.c (tree_gen_edge_profiler): Likewise.
857         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
858         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
859         * tree-chrec.h (build_polynomial_chrec): Likewise.
860
861 2005-12-02  Richard Guenther  <rguenther@suse.de>
862
863         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
864         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
865         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
866         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
867         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
868         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
869         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
870         Likewise.
871         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
872         sh_adjust_unroll_max): Likewise.
873         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
874         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
875         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
876         Likewise.
877         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
878         Likewise.
879         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
880         Likewise.
881
882 2005-12-02  Richard Guenther  <rguenther@suse.de>
883
884         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
885         simplify_cond_using_ranges): Use buildN instead of build.
886         * tree-tailcall.c (adjust_accumulator_values,
887         adjust_return_value): Likewise.
888         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
889         generate_element_copy, generate_element_zero,
890         generate_one_element_init): Likewise.
891         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
892         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
893         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
894         perfect_nestify): Likewise.
895
896 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
897
898         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
899
900 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
901
902         * ggc.h (GGC_RESIZEVEC): New.
903
904 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
905
906         * gcc.c (execute): Improve readability.
907
908 2005-12-02  Richard Guenther  <rguenther@suse.de>
909
910         * tree-cfg.c (mark_used_vars): New function.
911         (dump_function_to_file): Dump only used VAR_DECLs.
912
913 2005-12-02  Richard Guenther  <rguenther@suse.de>
914
915         * convert.c (convert_to_integer): Fix compare for nonpositive
916         constant to use tree_int_cst_sgn <= 0.
917
918 2005-12-02  Richard Guenther  <rguenther@suse.de>
919
920         * convert.c (convert_to_integer): Use fold_convert instead
921         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
922         instead of comparing against 0.  Use build_int_cst instead
923         of converting integer_zero_node.
924
925 2005-12-02  Richard Guenther  <rguenther@suse.de>
926
927         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
928         and RROTATE_EXPR.
929  
930 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
931
932         PR target/21017
933         * combine.c (simplify_logical <IOR>): Simplify more patterns to
934         rotates.
935
936 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
937
938         PR middle-end/25176
939         * function.c (expand_function_end): Emit blockage for unwinder
940         after return label.
941
942 2005-12-01  Roger Sayle  <roger@eyesopen.com>
943
944         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
945         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
946         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
947         integer constant comparisons.
948
949 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
950             Janis Johnson  <janis187@us.ibm.com>
951             David Edelsohn  <dje@watson.ibm.com>
952             Ben Elliston  <bje@au.ibm.com>
953
954         * dfp.h, dfp.c: New files.
955         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
956         (DECNUM_H): Likewise.
957         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
958         (INCLUDES): Append $(DECNUMINC).
959         (OBJS-common): Add dfp.o.
960         (dfp.o): New rule.
961         * real.h (EXP_BITS): Pinch one bit to ..
962         (struct real_value): Add decimal field.
963         (real_format): Change table size, update documentation.
964         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
965         (real_from_string3): Declare.
966         (decimal_single_format): Declare.
967         (decimal_double_format): Declare.
968         (decimal_quad_format): Declare.
969         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
970         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
971         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
972         * real.c: Include dfp.h.
973         (normalize): Early return for decimal floats.
974         (do_add): Zero decimal field.
975         (do_compare): Call do_decimal_compare for decimal floats.
976         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
977         (real_arithmetic): Call decimal_real_arithmetic for decimal
978         floating point operands.
979         (real_identical): If a and b are of differing radix, return false.
980         (real_to_integer): Call decimal_real_to_integer if the value is a
981         decimal float.
982         (real_to_integer2): Likewise, call decimal_real_to_integer2.
983         (real_to_decimal): Likewise, call decimal_real_to_decimal.
984         (real_to_hexadecimal): Place "N/A" in the return string for
985         decimal float.
986         (real_from_string3): New variant, given a mode.
987         (real_maxval): Use decimal_real_maxval for decimal floats.
988         (round_for_format): Use decimal_round_for_format for decimals.
989         (real_convert): Use decimal_real_convert where appropriate.
990         (significand_size): Handle base 10.
991         (encode_decimal_single, decode_decimal_single,
992         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
993         decode_decimal_quad): New functions.
994         (decimal_single_format): New.
995         (decimal_double_format): New.
996         (decimal_quad_format): New.
997         * machmode.def: Add SD, DD and TD decimal floating point modes.
998         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
999         Include MODE_DECIMAL_FLOAT.
1000         (DECIMAL_FLOAT_MODE_P): New.
1001         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
1002         * genmodes.c (struct mode_data): Add counter field.
1003         (struct mode_data): Update comment for format.
1004         (blank_mode): Initialise counter field.
1005         (new_mode): Increment counter field for each mode defined.
1006         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
1007         using a format.
1008         (make_complex_modes): Handle modes containing `D'.
1009         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
1010         (make_decimal_float_mode): New.
1011         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
1012         (cmp_modes): Compare counter field if other characteristics
1013         similar.
1014         (emit_real_format_for_mode): Support formats for decimal floats.
1015         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
1016         Document MODE_DECIMAL_FLOAT.
1017
1018 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1019
1020         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
1021         Delete dead code.
1022
1023 2005-12-01  Richard Henderson  <rth@redhat.com>
1024
1025         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
1026
1027 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1028
1029         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
1030
1031         * config/pa/pa.c (pa_init_builtins): If we detect
1032         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
1033         putc_unlocked.
1034
1035 2005-12-01  Richard Guenther  <rguenther@suse.de>
1036
1037         * fold-const.c (fold_binary): Use fold_build2, not
1038         fold (build (...)).
1039
1040 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1041
1042         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
1043
1044         * vec.h (VEC_block_remove): New.
1045
1046 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1047
1048         PR c/13384
1049         * c-common.c (lvalue_error): Fix wording.
1050
1051 2005-12-01  Richard Guenther  <rguenther@suse.de>
1052
1053         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
1054         thinko in last patch.
1055
1056 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
1057
1058         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
1059         than -flat_namespace.
1060
1061 2005-12-01  Ben Elliston  <bje@au.ibm.com>
1062
1063         * mklibgcc.in: Parameterise the script to build soft float
1064         functions by iterating over each type, rather than cloning the
1065         code for each type.
1066
1067 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1068
1069         PR middle-end/25158
1070         * builtins.c (fold_builtin_fputs): Defer check for missing
1071         replacement functions.
1072
1073 2005-11-30  Kean Johnston  <jkj@sco.com>
1074
1075         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
1076         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
1077
1078 2005-11-30  Richard Guenther  <rguenther@suse.de>
1079
1080         PR tree-optimization/22501
1081         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
1082         function split out from ...
1083         (forward_propagate_addr_expr): ... here.  Use it to propagate
1084         ADDR_EXPRs to all uses.
1085
1086 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1087
1088         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
1089         * builtins.c (expand_builtin_mathfn): Use them.
1090         (expand_builtin_mathfn_2): Likewise.
1091         (expand_builtin_mathfn_3): Likewise.
1092         (expand_builtin_int_roundingfn): Likewise.
1093         (expand_builtin): Likewise.
1094         (integer_valued_real_p): Likewise.
1095         (fold_builtin_int_roundingfn): Likewise.
1096         (fold_builtin_bitop): Likewise.
1097         (fold_builtin_logarithm): Likewise.
1098         (fold_builtin_1): Likewise.
1099         * convert.c (convert_to_integer): Likewise.
1100         * fold-const.c (negate_mathfn_p): Likewise.
1101         (tree_expr_nonnegative_p): Likewise.
1102
1103 2005-11-30  Dale Johannesen  <dalej@apple.com>
1104             Andrew Pinski  <pinskia@physics.uc.edu>
1105
1106         * combine.c (find_split_point):  Sign extend bitmask
1107         when changing bitfield assignment to IOR of AND.
1108
1109 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1110
1111         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
1112         clobber to scratch reg.
1113         (*decrement_and_branch_until_zero_no_clobber): Remove.
1114         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
1115         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
1116         * config/ms1/ms1.opt (mmul): Remove.
1117         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
1118         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
1119
1120 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1121             Bernd Schmidt  <bernd.schmidt@analog.com>
1122
1123         * pa/predicates.md (symbolic_operand): Add comment.
1124         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
1125         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
1126         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
1127         (pa_secondary_reload_class): Delete.
1128         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
1129         and pa_secondary_reload_class.  Reorder some checks.  Update inline
1130         copy of symbolic operand.
1131         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
1132
1133 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1134
1135         * loop-doloop.c (add_test): Only add jump notes if we did emit a
1136         jump.
1137
1138 2005-11-30  Jeff Law  <law@redhat.com>
1139
1140         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
1141         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1142
1143 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
1144
1145         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
1146         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
1147         (ia64_expand_move): Adjust caller.
1148
1149         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
1150         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
1151         negate VAL.
1152
1153 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
1154
1155         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
1156         Always produce an output if we can remove NEGs or canonicalize
1157         (minus (minus ...)) expressions.  Provide a fast path for the
1158         two-operand case.
1159         (simplify_gen_binary): Do not call simplify_plus_minus.
1160         (simplify_binary_operation_1): Reassociate at the end of the
1161         function.
1162
1163 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
1164
1165         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
1166         moves and unpack to speed up.
1167
1168 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
1169
1170         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
1171         argument, they are always sparc_compare_op0 and sparc_compare_op1.
1172         (gen_v9_scc): Update callers.
1173         * config/sparc/sparc.md: Likewise.
1174         * config/sparc/sparc-protos.h: Update extern declaration.
1175
1176         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
1177
1178 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1179
1180         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
1181         the if.
1182
1183 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1184
1185         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
1186         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
1187         (negate_expr): Here.
1188
1189 2005-11-29  Ben Elliston  <bje@au.ibm.com>
1190
1191         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
1192         Fix typo in comment.
1193
1194 2005-11-29  Ben Elliston  <bje@au.ibm.com>
1195
1196         * Makefile.in (clean-target): Depend on clean-target-libgcc.
1197         (clean-target-libgcc): Import rule from the top-level Makefile.in.
1198
1199 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1200
1201         PR middle-end/20109
1202         PR middle-end/25120
1203         * builtins.c (init_target_chars): New.
1204         (expand_builtin_printf, expand_builtin_fprintf,
1205         expand_builtin_sprintf, fold_builtin_sprintf,
1206         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
1207         fold_builtin_snprintf_chk, fold_builtin_printf,
1208         fold_builtin_fprintf): Check for matching format strings using
1209         the target charset.
1210
1211 2005-11-29  Paul Brook  <paul@codesourcery.com>
1212
1213         * config.gcc: Do not use fixproto on m68k-elf.
1214
1215 2005-11-28  Roger Sayle  <roger@eyesopen.com>
1216
1217         * expmed.c (div_cost): Replace with...
1218         (sdiv_cost, udiv_cost): New.
1219         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
1220         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
1221         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
1222         (expand_divmod): Replace use of div_cost with either sdiv_cost
1223         or udiv_cost depending upon the signedness of the operation.
1224
1225 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
1226
1227         PR libfortran/24991
1228         * config/darwin.c (machopic_indirection_name,
1229         machopic_output_indirection): Follow transparent alias chain.
1230
1231 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
1232
1233         * varasm.c (ultimate_transparent_alias_target): Add comment.
1234
1235 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
1236
1237         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
1238         SET_SRC instead of XEXP where appropriate.
1239
1240 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
1241
1242         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
1243         __builtin_expect.
1244
1245 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
1246
1247         * config/fp-bit.h (LSHIFT): Take shift count parameter.
1248         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
1249         bit at a time.
1250
1251 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
1252
1253         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
1254         secondary_input_reload_class, made static.  Adapt to new
1255         infrastructure.
1256         (secondary_output_reload_class): Delete.
1257         (TARGET_SECONDARY_RELOAD): New macro.
1258         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
1259         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1260
1261 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
1262
1263         PR c++/21166
1264         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
1265         when its natural alignment is > BITS_PER_UNIT.
1266         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
1267         * c-common.c (handle_packed_attribute): Ignore packing on a field
1268         whose type is naturally char aligned.
1269
1270 2005-11-28  Richard Guenther  <rguenther@suse.de>
1271
1272         * c-common.c (strict_aliasing_warning): Handle all
1273         component-ref like accesses.
1274
1275 2005-11-28  Roger Sayle  <roger@eyesopen.com>
1276             Uros Bizjak  <uros@kss-loka.si>
1277
1278         PR middle-end/20219
1279         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
1280         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
1281         when flag_unsafe_math_optimizations is set and
1282         we don't care about NaNs or Infinities.
1283
1284         Move x/expN(y) and x/pow(y,z) transformation into common
1285         flag_unsafe_math_optimizations section.
1286
1287 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
1288
1289         * gcc.c (main): Change type of argv to "char **".
1290
1291 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
1292
1293         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
1294         small data sections.
1295         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
1296         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
1297         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
1298         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
1299         output locals to sbss if !rs6000_elf_in_small_data_p.
1300         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
1301
1302 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
1303
1304         PR target/24997
1305         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
1306         generated by reload.
1307         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
1308         indexed_or_indirect_address.
1309         (indexed_or_indirect_address): Don't test for base reg.  Call
1310         address_operand last.  Make it a special predicate.
1311
1312 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
1313
1314         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
1315
1316 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
1317
1318         PR middle-end/24575
1319         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
1320         is undefined.
1321         (negate_expr): Likewise.
1322
1323 2005-11-27  Andreas Schwab  <schwab@suse.de>
1324
1325         * config/m68k/m68k.c: Reindent and fix whitespace, remove
1326         redundant parens.
1327
1328 2005-11-27  Steven Bosscher  <stevenb@suse.de>
1329
1330         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
1331         has EH predecessor edges.
1332
1333 2005-11-26  Eric Christopher  <echristo@apple.com>
1334
1335         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
1336         register stalls by zero extending to the full register.
1337
1338 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
1339
1340         * config/floatunsisf.c, config/floatunsidf.c,
1341         config/floatunsixf.c, config/floatunsitf.c: New files.
1342         * config/ia64/t-hpux: Add floatunsitf.c.
1343         * config/ia64/ia64.c (ia64_init_libfuncs): Use
1344         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
1345
1346 2005-11-26  Richard Henderson  <rth@redhat.com>
1347
1348         * c-lex.c (pragma_lex): Rename from c_lex.
1349         * c-pch.c: Update for pragma_lex rename.
1350         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
1351         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
1352         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
1353         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
1354         * doc/tm.texi: Likewise.
1355
1356 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
1357
1358         PR middle-end/23669
1359         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
1360         when overflow is undefined.
1361
1362 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
1363
1364         * doc/md.texi (Insn Canonicalizations): Refer to the
1365         function commutative_operand_precedence for further rules.
1366
1367 2005-11-25  Roger Sayle  <roger@eyesopen.com>
1368
1369         PR middle-end/21309
1370         * expmed.c (choose_mult_variant): Return immediately when mult_cost
1371         is less than zero.  Limit mult_cost to a reasonable upper bound for
1372         the synthetic multiplication sequence.
1373
1374 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1375
1376         PR middle-end/25022
1377         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1378         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
1379         Lookup the explicit replacement functions for any unlocked
1380         stdio builtin transformations.
1381
1382 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
1383
1384         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
1385         earlyclobber.
1386         * targhooks.c (default_secondary_reload): Don't require operand 2
1387         for an input reload to be earlyclobber.
1388
1389 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1390
1391         * fold-const.c (negate_mathfn_p): Fix comment and add support
1392         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
1393         BUILT_IN_ATANH.
1394
1395 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1396
1397         PR middle-end/24998
1398         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
1399         _Q_ulltoq for unsigned conversions from SImode and DImode to
1400         TFmode.
1401
1402 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
1403
1404         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
1405         (__floatundidf, __floatundisf): Likewise.
1406
1407 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
1408
1409         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
1410         (rs6000_override_options): Remove initialization of
1411         rs6000_sr_alias_set.
1412         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
1413         (rs6000_emit_stack_tie): Same.
1414         (emit_frame_save): Same.
1415         (gen_frame_mem_offset): Same.
1416         (rs6000_emit_prologue): Same.
1417         (rs6000_emit_epilogue): Same.
1418
1419 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1420
1421         PR middle-end/24989
1422         * fold-const.c (fold_build): Convert bool_var != 1 and
1423         bool_var == 0 to !bool_var.
1424
1425 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1426
1427         PR middle-end/24990
1428         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
1429         for C being INTEGER_CST.  Likewise for !=.
1430
1431 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1432
1433         PR middle-end/24998
1434         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
1435         unsigned conversions from SImode to TFmode.
1436
1437 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1438
1439         * expr.c (expand_expr_real_1): Fix error in last change.
1440
1441 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
1442
1443         * caller-save.c: (this_insn_sets): Move into:
1444         (save_call_clobbered_regs).
1445         (mark_set_regs): Get this_insn_sets from data.
1446
1447         (save_call_clobbered_regs): Take sets of the return value by
1448         sibcalls into account.
1449
1450 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
1451         PR target/21623:
1452
1453         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
1454         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
1455         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
1456         (memory_move_secondary_cost, init_reg_autoinc): Remove
1457         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
1458         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
1459         secondary_reload_class call.
1460         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
1461         callers.
1462         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
1463         (push_secondary_reload): Use secondary_reload target hook.
1464         (secondary_reload_class, scratch_reload_class): New functions.
1465         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
1466         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
1467         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
1468         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
1469         (secondary_reload_class, scratch_reload_class): Declare.
1470         * reload1.c: Include target.h.
1471         (reload_adjust_reg_for_temp): New function.
1472         (reload_adjust_reg_for_icode): Likewise.
1473         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
1474         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
1475         call.
1476         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
1477         for inheritance.  Support case when both secondary & tertiary reloads
1478         are for intermediate registers.
1479         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
1480         with secondary_reload_class call.  Support case when both secondary
1481         & tertiary reloads are for intermediate registers.
1482         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
1483         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
1484         * target.h (secondary_reload_info): New struct / typedef.
1485         (struct gcc_target): New member secondary_reload.
1486         * targhooks.c Include reload.h, optabs.h and recog.h.
1487         (default_secondary_reload): New function.
1488         * targhooks.h (default_secondary_reload): Declare.
1489         * doc/tm.texi: Document secondary_reload target hook.  Update
1490         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
1491         * doc/md.texi: Likewise.
1492
1493         * sh-protos.h (sh_secondary_reload): Declare.
1494         * sh.c (TARGET_SECONDARY_RELOAD): Override.
1495         (sh_secondary_reload): New function.
1496         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
1497         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1498         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
1499         (HAVE_SECONDARY_RELOADS): Define.
1500         * sh.md (reload_indf): Rename to:
1501         (reload_indf__frn).
1502         (reload_outdf): Rename to:
1503         (reload_outdf__RnFRm).
1504         (reload_insf): Rename to:
1505         (reload_insf__frn).
1506         (reload_insi): Rename to:
1507         (reload_insi__i_fpul).
1508
1509 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
1510
1511         * configure.ac: Require at least texinfo 4.4.
1512         * configure: Regenerate.
1513
1514         * doc/install.texi (Tools/packages necessary for building GCC):
1515         Update required version of texinfo to at least 4.4.
1516         (Installing GCC: Building): Update required version of texinfo
1517         to at least 4.4.
1518         (Installing GCC: Final installation): Update required version
1519         of texi2dvi to at least 4.4.
1520         (Host/target specific installation notes for GCC): Update required
1521         version of texinfo to at least 4.4.
1522
1523 2005-11-24  Richard Guenther  <rguenther@suse.de>
1524         Dirk Mueller <dmueller@suse.de>
1525
1526         PR c++/14024
1527         * c-common.h (strict_aliasing_warning): Declare.
1528         * c-common.c (strict_aliasing_warning): New function,
1529         split out from ...
1530         * c-typeck.c (build_c_cast): ... here.
1531
1532 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
1533
1534         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1535         to order operands.
1536         (swap_commutative_operands_with_target): New.
1537
1538 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
1539
1540         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
1541         also when doing PRE, rather than only for global CPROP.
1542
1543 2005-11-24  Ben Elliston  <bje@au.ibm.com>
1544
1545         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
1546         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
1547         formatting.
1548         (expand_twoval_unop): Likewise.
1549         (widen_clz): Likewise.
1550         (expand_parity): Likewise.
1551         (expand_unop): Likewise.
1552         (emit_cmp_and_jmp_insn_1): Likewise.
1553         (prepare_float_lib_cmp): Likewise.
1554
1555 2005-11-24  Ben Elliston  <bje@au.ibm.com>
1556
1557         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
1558         Remove unused `class' variable.
1559
1560 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1561
1562         PR c++/21667
1563         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
1564         C/C++ diagnostic function warn_array_subscript_with_type_char.
1565         * c-common.h (warn_array_subscript_with_type_char): Declare.
1566         * c-common.c (warn_array_subscript_with_type_char): Define.
1567
1568 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1569
1570         PR c/21668
1571         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
1572         compiling at the intersection of C and C++.
1573
1574 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
1575
1576         * doc/invoke.texi: For man pages, include gcc-vers.texi.
1577         List @file in the option summary.  Include the libiberty
1578         documentation for @file.
1579         * gcc.c (main): Call expandargv.
1580         * Makefile.in (gcc-vers.texi): Define srcdir.
1581
1582 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
1583
1584         * passes.c (init_optimization_passes): Document
1585         sequencing of passes.
1586
1587 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
1588
1589         * config/m68k/predicates.md (pcrel_address, extend_operator,
1590         post_inc_operand, pre_dec_operand): Remove redundant
1591         conditionals.
1592         (const_uint32_operand, const_sint32_operand): Use gcc_assert
1593         instead of abort.
1594         (valid_dbcc_comparison_p): Rewrite in the lisp style.
1595
1596 2005-11-23  Ben Elliston  <bje@au.ibm.com>
1597
1598         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
1599
1600 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
1601
1602         Preparatory work for PR target/21623:
1603         * alpha.c (secondary_reload_class): Rename to:
1604         (alpha_secondary_reload_class).
1605         * alpha.h, alpha-protos.h: Likewise.
1606         * mn10300.c (secondary_reload_class): Rename to:
1607         (mn10300_secondary_reload_class).
1608         * mn10300.h, mn10300-protos.h: Likewise.
1609         * pa.c (secondary_reload_class): Rename to:
1610         (pa_secondary_reload_class).
1611         * pa.h, pa-protos.h: Likewise.
1612         * rs6000.c (secondary_reload_class): Rename to:
1613         rs6000_secondary_reload_class.
1614         * rs6000.h, rs6000-protos.h: Likewise.
1615
1616 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1617
1618         PR middle-end/22561
1619         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
1620
1621 2005-11-22  Ian Lance Taylor  <ian@airs.com>
1622
1623         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
1624         a mode_class.
1625         (prepare_cmp_insn): Likewise.
1626
1627 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
1628
1629         PR target/23435
1630         * m68k.md (zero_extendsidi2): Force operands[1] to a register
1631         if both operands[0] and operands[1] are memory.
1632
1633 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
1634
1635         PR middle-end/23606
1636         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
1637         COMPARISON_CLASS_P and an integral types create create a new
1638         expression with the new type and fold that.
1639
1640 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
1641
1642         PR target/24988
1643         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
1644         to SUBTARGET_OS_CPP_BUILTINS.
1645
1646 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
1647
1648         * arm.c (emit_set_insn): New function.
1649         (arm_split_constant): Call it.
1650         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
1651         (arm_legitimize_address): Likewise.  Use plus_constant.
1652         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
1653         (thumb_expand_prologue): Likewise.
1654         (arm_gen_load_multiple): Use VOIDmode in SET.
1655         (arm_gen_store_multiple): Likewise.
1656         (vfp_emit_fstmx): Likewise.  Use plus_constant.
1657         (emit_multi_reg_push): Likewise.
1658         (emit_sfm): Use plus_constant.
1659
1660 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
1661
1662         PR target/24954
1663         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
1664         typo last change.
1665
1666 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
1667
1668         PR middle-end/24950
1669         * expmed.c (store_bit_field): Don't attempt to insv a field
1670         larger than the reg.
1671
1672 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
1673
1674         PR target/24954
1675         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
1676         explicit sign extension, not a (char) cast.
1677
1678 2005-11-22  Ben Elliston  <bje@au.ibm.com>
1679
1680         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
1681         GET_MODE_CLASS (x) == MODE_FLOAT.
1682         * config/i386/i386.c: Likewise.
1683         * config/rs6000/xcoff.h: Likewise.
1684         * config/rs6000/linux64.h: Likewise.
1685         * config/rs6000/rs6000.c: Likewise.
1686         * config/rs6000/rs6000.h: Likewise.
1687         * config/rs6000/predicates.md: Likewise.
1688         * config/rs6000/sysv4.h: Likewise.
1689
1690 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1691
1692         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
1693         flag_pic is set.
1694
1695         * config/alpha/freebsd.h, config/alpha/linux.h,
1696         config/arm/linux-elf.h, config/bfin/bfin.h,
1697         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
1698         config/i386/beos-elf.h, config/i386/gnu.h,
1699         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
1700         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
1701         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
1702         config/rs6000/linux64.h, config/rs6000/sysv4.h,
1703         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
1704         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
1705         config/sparc/linux.h, config/sparc/linux64.h,
1706         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
1707
1708         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
1709         are both defined when either flag -fpic or -fPIC are used.
1710
1711 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
1712
1713         * config/fp-bit.c (clzusi): New function.
1714         (si_to_float, usi_to_float): Use it to compute proper shift.
1715         (usi_to_float): Preserve guard bits when shifting right.
1716         * libgcc-std.ver (GCC_4.2.0): New version.
1717         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
1718         __floatundisf): New functions.
1719         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
1720         __floatundisf): Declare.
1721         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
1722         _floatundixf, and _floatunditf.
1723         * optabs.c (expand_float): If target does not define a pattern for
1724         signed or unsigned conversion, use an unsigned libcall instead of
1725         a signed one.
1726         (init_optabs): Initialize ufloat_optab.
1727
1728 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
1729
1730         * config/rs6000/rs6000.opt (mmulhw): New option.
1731         * doc/invoke.texi (-mmulhw): Document.
1732         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
1733         for 405 and 440.
1734         * config/rs6000/rs6000.md: Add half-word multiply and
1735         multiply-accumulate instructions for 405 and 440.
1736
1737 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
1738
1739         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
1740         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
1741         default now includes a linker group which makes the RTEMS one nest.
1742
1743 2005-11-22  Ben Elliston  <bje@au.ibm.com>
1744
1745         * cse.c (fold_rtx): Typo fix.
1746         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
1747
1748 2005-11-21  Richard Henderson  <rth@redhat.com>
1749
1750         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
1751         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
1752
1753         * c-tree.h (lookup_name): Move declaration ...
1754         * c-common.h (lookup_name): ... here.
1755         * config/darwin-c.c: Include c-common.h.
1756         * config/t-darwin: Update dependencies.
1757
1758 2005-11-22  Ben Elliston  <bje@au.ibm.com>
1759
1760         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
1761         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
1762         * genopinit.c (gen_insn): Likewise.
1763         * reload.c (find_equiv_reg): Likewise.
1764         * loop.c (load_mems): Likewise.
1765         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
1766         * cse.c (find_comparison_args, fold_rtx): Likewise.
1767         * dwarf2out.c (add_const_value_attribute): Likewise.
1768         * expr.c (convert_move): Likewise.
1769         * recog.c (general_operand, register_operand): Likewise.
1770         * reg-stack.c (replace_reg): Likewise.
1771         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
1772         * c-common.c (handle_vector_size_attribute): Likewise.
1773         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1774         (simplify_binary_operation_1): Likewise.
1775         (simplify_const_binary_operation): Likewise.
1776         (simplify_relational_operation): Likewise.
1777         (simplify_const_relational_operation): Likewise.
1778         (simplify_immed_subreg): Likewise.
1779         * emit-rtl.c (gen_lowpart_common): Likewise.
1780         * expmed.c (expand_mult): Likewise.
1781         * stor-layout.c (layout_type): Likewise.
1782
1783 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
1784
1785         PR target/24951
1786         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
1787         cst2 only for SPE vectors.
1788
1789 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
1790
1791         PR target/24953
1792         * config/rs6000/predicates.md (vrsave_operation): Check
1793         UNSPEC_VOLATILE value.
1794
1795 2005-11-21  Jan Hubicka  <jh@suse.cz>
1796
1797         PR tree-optimization/24653
1798         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
1799
1800 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
1801
1802         * config/i386/predicates.md (ax_reg_operand): New predicate.
1803         (memory_displacement_only_operand): New predicate.
1804         * config/i386/i386.md ("modrm" attribute): Return 0 if one
1805         operand is AX register and the other operand is memory operand
1806         with displacement only.
1807
1808 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
1809
1810         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
1811         if we don't care about NaNs or Infinities.
1812
1813 2005-11-20  Ian Lance Taylor  <ian@airs.com>
1814
1815         PR rtl-optimization/24883
1816         * combine.c (combinable_i3pat): When checking whether the
1817         destination of i3 is used in i3, consider paradoxical subregs.
1818
1819 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
1820
1821         PR middle-end/20583
1822         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
1823
1824 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
1825
1826         * combine.c (try_combine): Do not run subst on i1src and i2src in
1827         the case of generating a PARALLEL for a comparison.
1828
1829 2005-11-20  Richard Henderson  <rth@redhat.com>
1830
1831         PR 24931
1832         * tree-sra.c (struct sra_elt): Add all_no_warning.
1833         (struct sra_walk_fns) <use>: Add use_all argument.
1834         (sra_walk_expr): Pass it.
1835         (sra_walk_modify_expr): Likewise.
1836         (scalarize_ldst): Likewise.
1837         (scan_use): Update for new argument.
1838         (mark_no_warning): New.
1839         (scalarize_use): Use it.
1840
1841 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
1842
1843         * expr.c (expand_expr_real): Use usmul_optab for widening
1844         signed * unsigned multiplies.
1845         * genopinit.c (optabs): Add usmul_widen_optab.
1846         * optabs.c (init_optabs): Likewise.
1847         * optabs.h (enum optab_index): Add OTI_usmul_widen.
1848         (usmul_widen_optab): Define.
1849         * config/bfin/bfin.md (usmulhisi3): New pattern.
1850
1851         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
1852
1853 2005-11-20  Graham Stott <btinternet.com>
1854
1855         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
1856
1857 2005-11-20  Andreas Schwab  <schwab@suse.de>
1858
1859         PR target/24757
1860         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
1861         insn.
1862
1863 2005-11-19  Richard Henderson  <rth@redhat.com>
1864
1865         PR tree-opt/24665
1866         * tree-gimple.c (is_gimple_id): Export.
1867         * tree-gimple.h (is_gimple_id): Declare.
1868         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
1869         (get_default_value): Use it.
1870         (maybe_fold_stmt_indirect): Likewise.
1871
1872 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
1873
1874         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
1875         than VR1 or vice-versa.
1876
1877 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
1878
1879         PR middle-end/24912
1880         PR middle-end/24750
1881         * reload.c (find_reloads_address_1): Mention dependency on
1882         gen_reload.
1883         * reload1.c (gen_reload): For IN with an unary operation, try
1884         moving inner expression to OUT if trivial SET is not valid.
1885         Confirm that the result is valid.  Move common code block into...
1886         (emit_insn_if_valid_for_reload): New function.
1887
1888 2005-11-19  Richard Guenther  <rguenther@suse.de>
1889
1890         * fold-const.c (fold_indirect_ref_1): Make sure we fold
1891         ARRAY_REFs of constant strings.
1892
1893 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
1894
1895         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
1896         fatal format string.
1897
1898 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
1899
1900         * combine.c (make_compound_operation): Swap operands of
1901         commutative operation if necessary before returning.
1902
1903 2005-11-19  Richard Guenther  <rguenther@suse.de>
1904
1905         PR middle-end/23294
1906         * fold-const.c (fold_plusminus_mult_expr): New function.
1907         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
1908         cases, remove now unnecessary code.
1909
1910 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
1911
1912         * gensupport.c (old_preds): Rename to std_preds, add special field.
1913         (struct old_pred_table): Rename to struct std_pred_table, add special
1914         field.
1915         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
1916         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
1917         (init_predicate_table): Adjust, and set along the way whether a
1918         predicate is special.
1919
1920 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
1921
1922         * BASE-VER: Change to 4.2.0.
1923
1924 2005-11-18  James E Wilson  <wilson@specifix.com>
1925
1926         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
1927         returning it.
1928
1929 2005-11-18  Mike Stump  <mrs@apple.com>
1930
1931         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
1932         * config/darwin-c.c (darwin_pragma_unused): Likewise.
1933         * c-decl.c (lookup_name_two) Remove.
1934         * c-tree.h (lookup_name_two): Remove.
1935         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
1936         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
1937         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
1938         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
1939
1940 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
1941
1942         PR target/24914
1943         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
1944         when not generating code to use that co-processor.
1945
1946 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
1947
1948         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
1949         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
1950         these functions are now in tree-phinodes.c.
1951
1952 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
1953
1954         * config/bfin/bfin.md (trap): New pattern.
1955
1956 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1957
1958         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
1959         on types.
1960
1961         * expr.c (expand_expr_real): Don't call record_block_change unless
1962         ib_boundaries_block is non-null
1963
1964         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
1965
1966         * fold-const.c (build_range_check): Use proper type for subtraction
1967         when merging lower bound.
1968
1969 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
1970
1971         PR rtl-optimization/24497
1972         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
1973         the copied insn.
1974
1975 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
1976
1977         * tree-scalar-evolution.c (expression_expensive_p): New function.
1978         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
1979
1980 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
1981
1982         * config/bfin/crtlibid.s: New file.
1983
1984 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1985
1986         PR target/24348
1987         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
1988         when not using sjlj exceptions.
1989         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
1990         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1991         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
1992         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
1993         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
1994         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
1995         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
1996         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
1997         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
1998         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
1999         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
2000         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
2001         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
2002         defines.
2003         * config/pa/hpux-unwind.h: New file.
2004
2005 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
2006
2007         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
2008         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
2009         * varasm.c (do_assemble_alias): Adjust call.
2010         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
2011         is defined.
2012         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
2013
2014 2005-11-17  James E Wilson  <wilson@specifix.com>
2015
2016         * tree.def (FUNCTION_DECL): Correct typo in comment.
2017
2018 2005-11-17  Richard Henderson  <rth@redhat.com>
2019
2020         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
2021         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
2022         and DW_CFA_def_cfa_sf.
2023         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
2024         (dbx_reg_number): Don't assert particular registers here.
2025         (based_loc_descr): ... do it here instead.  Fold in ...
2026         (eliminate_reg_to_offset): ... this function.
2027         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
2028         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
2029         * unwind-dw2.c (execute_cfa_program): Apply data align factor
2030         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
2031         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
2032         (instantiate_virtual_regs): Likewise.
2033         * var-tracking.c (adjust_stack_reference): Likewise.
2034         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
2035
2036 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2037
2038         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
2039         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
2040         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
2041         crtlibid.o.
2042         ($(T)crtlibid.o): New rule.
2043
2044 2005-11-16  Richard Guenther  <rguenther@suse.de>
2045
2046         PR middle-end/24851
2047         * fold-const.c (extract_array_ref): Return byte offset
2048         in all cases.
2049         (fold_binary): Fold &x[a] CMP &x[b] to
2050         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
2051         behavior.
2052
2053 2005-11-16  Richard Henderson  <rth@redhat.com>
2054
2055         PR middle-end/23497
2056         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
2057         parts of an SSA_NAME.
2058
2059 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
2060
2061         PR target/24861
2062         * arm.md (split for movsf with immediate): Restrict split to insns
2063         that set a general register.
2064
2065 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2066
2067         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
2068         uw_update_context.
2069         * unwind-dw2.c (uw_advance_context): Likewise.
2070         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
2071         _Unwind_SjLj_Unregister.
2072         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
2073
2074 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2075
2076         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
2077
2078 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2079
2080         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
2081         langhook to get a DImode integer type.
2082
2083 2005-11-16  Richard Henderson  <rth@redhat.com>
2084             J"orn Rennecke <joern.rennecke@st.com>
2085             Ulrich Weigand  <uweigand@de.ibm.com>
2086
2087         PR rtl-opt/24160
2088         PR target/24621
2089         * reload1.c (reg_equiv_invariant): New.
2090         (reload): Allocate, initialize, and free it.
2091         (calculate_needs_all_insns): Check it when skipping equivalence
2092         setting insns.
2093         (alter_reg): Likewise.
2094         (eliminate_regs_1): Rename from eliminate_regs.  Add new
2095         may_use_invariant argument; only use reg_equiv_invariant when true.
2096         (eliminate_regs): New.
2097         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
2098         a context for which may_use_invariant may be true.
2099
2100 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2101
2102         * fold-const.c (const_binop): Don't constant fold the operation
2103         if the result has overflowed and flag_trapping_math.
2104         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
2105
2106 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2107
2108         * config/arm/unwind-arm.c (abort): Add prototype here.
2109         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
2110         (struct phase1_vrs): Add prev_sp.
2111         (unwind_phase2_forced): Save the original core registers instead of
2112         modifying entry_vrs.  Take a new flag argument for resuming unwinding
2113         and set action flags accordingly.  Always set _US_END_OF_STACK when
2114         get_eit_entry fails.  Unwind before calling the stop function.
2115         (_Unwind_GetCFA): New function.
2116         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
2117         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
2118         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
2119         just call unwind_phase2_forced.
2120         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
2121         * config/arm/unwind-arm.h (abort): Remove prototype.
2122         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
2123         prototypes.
2124         (_Unwind_GetCFA): New prototype.
2125         * config/arm/pr-support.c (abort): Add prototype here.
2126         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
2127         forced unwinding.
2128         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
2129         not schedule the prologue with non-call exceptions and EABI.
2130
2131 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
2132
2133         * config/arm/unwind-arm.h: Reorder interface function declarations.
2134         (_URC_END_OF_STACK): New enumeration value.
2135         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
2136         (struct _Unwind_Control_Block): Document reserved field use.
2137         (_Unwind_Stop_Fn): New typedef.
2138         (_Unwind_ForcedUnwind): Declare.
2139         (_Unwind_Resume_or_Rethrow): Declare.
2140         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
2141         argument.  Adjust.
2142         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
2143         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
2144         (UCB_FORCED_STOP_ARG): New.
2145         (search_EIT_table): Update boundary condition checks.
2146         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
2147         (unwind_phase2): Replace for with do..while.
2148         (unwind_phase2_forced): New.
2149         (__gnu_Unwind_RaiseException): Replace for with do..while.
2150         (__gnu_Unwind_ForcedUnwind): New.
2151         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
2152         Use appropriate phase2 unwinder.
2153         (__gnu_Unwind_Resume_or_Rethrow): New.
2154         (__gnu_unwind_pr_common): Cope with forced unwinding.
2155
2156 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
2157
2158         PR target/24772
2159         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
2160
2161         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
2162         roundsf2): Remove "s" from mnemonic.
2163
2164 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
2165
2166         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
2167         __PIC__ is defined.
2168         * config/bfin/crtn.s: Change epilogues to match.
2169         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
2170         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
2171         __PIC__ and __pic__.
2172
2173 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2174
2175         PR 24357
2176         * doc/invoke.texi: Distinguish between free and fixed form instead of
2177         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
2178         languages.
2179         * gcc.c (default_compilers): Remove double entries, add entries for
2180         suffixes '.F90' and '.F95'.
2181
2182 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
2183
2184         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
2185         in the stack probing loop.
2186
2187 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
2188
2189         * configure.ac: Use .machine power5 not power5x.
2190         * configure: Regenerate.
2191
2192 2005-11-15  Mike Stump  <mrs@apple.com>
2193
2194         * c-decl.c (lookup_name_two): Add.
2195         * c-tree.h (lookup_name_two): Likewise.
2196         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
2197         * config/darwin-c.c (darwin_pragma_unused): Likewise.
2198
2199 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
2200
2201         PR rtl-optimization/23392
2202         * regrename.c (enum scan_actions) Add mark_access.
2203         (scan_actions_name): Ditto.
2204         (scan_rtx_reg): Handle mark_access.
2205         (scan_rtx_address): Do nothing for mark_access.
2206         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
2207         and regs in REG_INC notes before closing chains for dead regs.
2208         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
2209         opening chains for new writes.
2210
2211 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
2212
2213         * c.opt (ffixed-line-length-none): New.
2214
2215 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
2216
2217         * mklibgcc.in: Change contents of eh_dummy.c.
2218
2219 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
2220
2221         * loop.c (scan_loop): Do not insert temporaries for hard registers.
2222
2223 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
2224
2225         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
2226         of making syscalls.
2227         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
2228
2229 2005-11-15  Jan Hubicka  <jh@suse.cz>
2230
2231         * invoke.texi (large-unit-insns): Document.
2232         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
2233         * params.def (large-unit-insns): New param.
2234
2235 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
2236
2237         PR target/24869
2238         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
2239         special register for operand 3.  Reindent constraints to align
2240         them vertically.
2241
2242 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
2243
2244         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
2245         -mpopcntb, -mfprnd. Add -mcpu=power5+.
2246         * configure.ac: Add test for FP rounding instructions.
2247         * configure: Regenerate.
2248         * config.in: Regenerate.
2249         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2250         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
2251         features enabled.
2252         * config/rs6000/rs6000.opt (mfprnd): New.
2253         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
2254         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
2255         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
2256         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
2257         (TARGET_FPRND): New.
2258         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
2259         UNSPEC_FRIZ): New.
2260         (btrunc<mode>2): New.
2261         (ceil<mode>2): New.
2262         (floor<mode>2): New.
2263         (round<mode>2): New.
2264
2265 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
2266
2267         * gcc.c (version_compare_spec_function): Use fatal() rather than
2268         abort().
2269
2270         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
2271         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
2272         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
2273         as empty.
2274         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
2275         link in crt2.o.
2276
2277         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
2278         on -mmacosx-version-min setting.
2279
2280 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2281
2282         PR 24840
2283         * tree-vrp.c (infer_value_range): Return false if STMT is a
2284         block terminator and its basic block has no successors.
2285
2286 2005-11-14  Mike Stump  <mrs@apple.com>
2287
2288         * config/i386/i386.c (override_options): -masm=intel isn't
2289         supported on darwin.
2290         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
2291
2292 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
2293
2294         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
2295         vfork after including auto-host.h.
2296
2297 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
2298
2299         PR rtl-optimization/22002
2300         * combine.c (distribute_notes): Detect cases where a reg dies
2301         two or more times in a bb, including on the insn we are combining,
2302         and place the death note on the correct range.
2303
2304 2005-11-14  Dale Johannesen  <dalej@apple.com>
2305
2306         * expmed.c (store_bit_field):  Add offset unconditionally for
2307         memory targets.
2308         (extract_bit_field):  Don't force extzv or extv operand into
2309         a register if field is too big.
2310
2311 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
2312
2313         * config/arm/arm.c (pic_labelno): New.
2314         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
2315         LABEL_REF.  Pass only the labelno to PIC insns.
2316         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
2317         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
2318         * arm.md (UNSPEC_PIC_LABEL): New constant.
2319         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
2320         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
2321         Use the correct label prefix.
2322
2323 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
2324
2325         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
2326         REQ_EQUIV note.
2327
2328 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
2329
2330         * loop-invariant.c: Include tm_p.h.
2331         * Makefile.in: Updated.
2332
2333 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2334
2335         * pa.c (store_reg): Revise generation of frame notes in large frames.
2336         (set_reg_plus_d): Likewise.
2337
2338 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
2339
2340         PR tree-optimization/24709
2341         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
2342         loop check.
2343
2344 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2345
2346         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
2347         and duplicate declaration of pthread_self.
2348
2349 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2350             Ian Lance Taylor  <ian@airs.com>
2351
2352         PR middle-end/24003
2353         * calls.c (expand_call): If TARGET is a MEM and some part of the
2354         argument area has been saved, force TARGET to a register.
2355
2356 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
2357
2358         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
2359         checking.
2360
2361 2005-11-13  Jason Merrill  <jason@redhat.com>
2362
2363         PR c++/22489
2364         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
2365         lazily declared methods.
2366         (force_decl_die): Stop if forcing out the context already make a
2367         DIE for the decl.
2368         (force_type_die): Likewise.
2369
2370 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
2371
2372         PR middle-end/24820
2373         * builtins.c (integer_valued_real_p): Add break in
2374         REAL_CST having TREE_OVERFLOW set.
2375
2376 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
2377
2378         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
2379         addressing modes during calculation of costs.
2380
2381 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2382
2383         * function.c (assign_stack_local_1): Restrict sanity check
2384         on frame size overflow to 32-bit and above platforms.
2385
2386 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2387
2388         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
2389         * config/cris/cris.c: Include reload.h.
2390         (cris_initial_elimination_offset): New function.
2391         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
2392         Prototype.
2393
2394 2005-11-12  Richard Guenther  <rguenther@suse.de>
2395
2396         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
2397
2398 2005-11-12  Jan Hubicka  <jh@suse.cz>
2399
2400         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
2401         to compare against 0 when possible.
2402
2403 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
2404
2405         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
2406         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
2407         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
2408         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
2409         in the new order.
2410
2411 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2412
2413         * recog.c (constrain_operands) <case 'g'>: For a match, require
2414         that a non-register matches general_operand when strict >= 0.
2415
2416 2005-11-11  Steven Bosscher  <stevenb@suse.de>
2417
2418         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
2419         previous checkin.
2420
2421 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2422
2423         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
2424         (memory_address_same): New.
2425         (dse_optimize_stmt): Call memory_address_same.
2426
2427 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2428
2429         PR middle-end/24750
2430         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
2431         ZERO_EXTEND>: New cases.
2432
2433 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2434
2435         * longlong.h (__clz_tab): Always provide.
2436
2437 2005-11-11  Steven Bosscher  <stevenb@suse.de>
2438
2439         PR 24265
2440         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
2441         can be assigned to.
2442         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
2443         before check_maybe_invariant.
2444         (move_invariant_reg): Use gen_move_insn instead of replacing
2445         SET_DEST with the temporary for the invariant.
2446         (move_loop_invariants): If checking is enabled, do internal
2447         consistency checks after completing the pass.
2448
2449 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
2450
2451         PR 24644
2452         * common.opt (Wvolatile-register-var): New.
2453         * varasm.c (make_decl_rtl): Only emit warning when option
2454         specified.  Clarify warning message.
2455         * doc/invoke.texi (Wvolatile-register-var): Document new option.
2456
2457         * doc/md.texi (copysign): Document standard named pattern.
2458
2459 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
2460
2461         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
2462         bytes when align is 2.
2463         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
2464         by the first instruction of the loop.
2465
2466 2005-11-11  Jason Merrill  <jason@redhat.com>
2467
2468         PR c++/24686
2469         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
2470         the cleanup list.
2471
2472 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
2473
2474         PR rtl-optimization/22509
2475         * local-alloc.c (memref_used_between_p): Check whether a function call
2476         could not reference the memref.
2477
2478 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
2479
2480         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
2481         algorithm so as to choose the best, not the worst, alternative.
2482         Reset accumulated register class before processing next alternative.
2483
2484 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2485
2486         PR target/24445
2487         * calls.c (expand_call): Copy a return value to a plain register
2488         if needed.
2489
2490 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
2491
2492         PR target/24778
2493         * varasm.c (assemble_name): Recompute name only for transparent
2494         aliases.
2495
2496 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
2497
2498         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
2499
2500 2005-11-04  Jeff Law  <law@redhat.com>
2501
2502         PR middle-end/23181
2503         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
2504         perform reassociation if the parent statement will not die as
2505         a result of the optimization.
2506
2507 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
2508
2509         * tree-ssa-alias.c (compute_may_aliases): Remove call to
2510         delete_old_heap_vars.
2511         * tree-dfa.c (referenced_var_remove): Remove function.
2512         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
2513         (delete_tree_ssa): Remove call to delete_old_heapvars.
2514         Add call to delete_alias_heapvars.
2515         * tree-flow.h (referenced_var_remove): Remove prototype
2516         (init_alias_heapvars): New prototype.
2517         (delete_alias_heapvars): Ditto.
2518         * Makefile.in (tree-ssa-structalias.o): Add
2519         gt-tree-ssa-structalias.o
2520         (GTFILES): Add tree-ssa-structalias.h and
2521         tree-ssa-structalias.c.
2522         (s-gtype): Add gt-tree-ssa-structalias.h.
2523         * tree-ssa-structalias.c (heapvars): Remove.
2524         (oldheapvars): Remove.
2525         (heapvar_for_stmt): New variable.
2526         (heapvar_lookup): New function.
2527         (heapvar_insert): Ditto.
2528         (get_constraint_for): See if we have an old heapvar
2529         to reuse.
2530         (init_alias_heapvars): New function.
2531         (delete_alias_heapvars): Ditto.
2532         Add include of gt-tree-ssa-structalias.h.
2533
2534 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2535
2536         PR middle-end/22127
2537         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
2538
2539 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2540
2541         * tree.c (int_fits_type_p): Only look at the base type
2542         if it has the same precision as the original type.
2543
2544 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
2545
2546         PR other/4372
2547         * varasm.c (assemble_alias): Use %q+D in the error
2548         message instead of %J and %qD.
2549
2550 2005-11-10  Richard Guenther  <rguenther@suse.de>
2551
2552         * gcse.c (free_ldst_entry): Only free hashtable if
2553         it exists.
2554
2555 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2556
2557         * function.c (assign_stack_local_1): Issue an error message if
2558         the frame size overflows in the signed target arithmetics.
2559
2560 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2561
2562         * tree.c (build_qualified_type): Chain the new type to the original
2563         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
2564         a POINTER_TYPE or a REFERENCE_TYPE respectively.
2565         (build_pointer_type_for_mode): Only return unqualified types.
2566         (build_reference_type_for_mode): Likewise.
2567
2568 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2569
2570         * Makefile.in (gnucompare): Do comparison of all files using one of
2571         the chosen methods and only afterwards decide if just warning should
2572         be issued or comparison failure raised.
2573
2574 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2575
2576         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
2577         (noce_try_abs): Negate if the comparison is reversed.
2578         Look only one instruction backwards for a REG_EQUAL note.
2579
2580 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
2581
2582         PR other/4372
2583         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
2584         gthr-tpf.h: Define __gthrw.  For all identifiers that might
2585         be weak, introduce weakrefs or non-weak aliases with __gthrw,
2586         and prefix all uses with __ghtrw.
2587
2588 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
2589
2590         PR other/4372
2591         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
2592         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
2593         * c-common.c (handle_weakref_attribute): New.
2594         (c_common_attribute_table): Add weakref.
2595         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
2596         in the assembler.
2597         * configure, config.in: Rebuilt.
2598         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
2599         * doc/extend.texi: Document weakref attribute.
2600         * varasm.c (ultimate_transparent_alias_target): New
2601         (assemble_name): Use it.
2602         (weak_finish_1): Split out of...
2603         (weak_finish): ... and deal with weakrefs in...
2604         (weakref_targets): ... new list.
2605         (globalize_decl): Clean up weakref_targets.
2606         (do_assemble_alias): Handle weakrefs.
2607         (finish_aliases_1): Do not reject weakrefs to external symbols.
2608         (assemble_alias): Handle weakrefs.
2609
2610 2005-11-09  Richard Guenther  <rguenther@suse.de>
2611
2612         PR tree-optimization/24716
2613         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
2614         t_bool to track results from follow_ssa_edge.
2615
2616 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2617
2618         * final.c (force_source_line): New global variable.
2619         (final_scan_insn): Set it to true instead of clearing last_filename.
2620         (notice_source_line): Return true if force_source_line is true,
2621         unless source info is absent.
2622
2623 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
2624
2625         PR c/24644
2626         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
2627         a linkage name for a variable if it a register variable.
2628         * c-decl.c (grokdeclarator): Global register variables
2629         should be set as PUBLIC.
2630
2631 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
2632
2633         PR 24624
2634         * config/s390/s390.c (struct s390_frame_layout): New fields
2635         first_save_gpr_slot and last_save_gpr_slot.
2636         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
2637         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
2638         first_save_gpr and last_save_gpr with the _slot variants.
2639         (s390_register_info): Calculate first_save_gpr_slot and
2640         last_save_gpr_slot using regs_ever_live.
2641
2642 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
2643
2644         PR 24623
2645         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
2646         for a function containing a landing pad.
2647
2648 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
2649
2650         PR 24034
2651         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
2652         is live afterwards.
2653
2654 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2655
2656         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
2657         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
2658
2659 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
2660
2661         Add ms2 support
2662         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
2663         constants.
2664         (call,load,store): New insn types.
2665         (mem_access, branch_access): Adjust reservation conditions.
2666         (define_delay): Adjust condition.
2667         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
2668         type.
2669         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
2670         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
2671         insn type.
2672         (call_internal, call_value_internal, return_internal,
2673         return_interrupt_internal, eh_return_internal, indirect_jump,
2674         tablejump): Set call insn type.
2675         (blockage, ei, di): Use appropriate unspec const.
2676         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
2677         (ms1_get_attr_type): Adjust to give load & store types.
2678         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
2679         backwards past a barrier.
2680         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
2681         branch scheduling.
2682         (struct branch_info, struct label_info): New.
2683         (ms1_labels): New.
2684         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
2685         (ms1_machine_reorg): New.
2686         (TARGET_MACHINE_DEPENDENT_REORG): Override.
2687         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
2688         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
2689         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
2690         (TARGET_MS2): New.
2691
2692 2005-11-09  Per Bothner  <per@bothner.com>
2693             Uros Bizjak  <uros@kss-loka.si>
2694
2695         PR c/24101
2696         * toplev.c (process_options): Initialize debug_hooks early
2697         in case lang_hooks.post_options ends up calling a debug_hook.
2698
2699 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2700
2701         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
2702         DBX_REGISTER_NUMBER being contiguous.
2703
2704 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
2705             Diego Novillo  <dnovillo@redhat.com>
2706
2707         PR 23046
2708         * tree-vrp.c (register_edge_assert_for): Do not register
2709         always-false predicates.
2710
2711 2005-11-08  Devang Patel <dpatel@apple.com>
2712
2713         PR tree-optimization/23115
2714         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
2715         relation.
2716
2717 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
2718
2719         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
2720         -mcpu=440.
2721
2722 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
2723
2724         Fix PR tree-optimization/23382
2725
2726         * tree-ssa-alias.c (compute_may_aliases): Call
2727         delete_old_heap_vars.
2728         * tree-dfa.c (referenced_var_remove): New function.
2729         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
2730         * tree-flow.h (referenced_var_remove): Add prototype.
2731         (delete_old_heap_vars): Ditto.
2732         * tree-ssa-structalias.c (heapvars): New variable.
2733         (oldheapvars): Ditto.
2734         (get_constraint_for): Put heap vars on heapvars list.
2735         (delete_old_heap_vars): New function.
2736
2737 2005-11-08  Jason Merrill  <jason@redhat.com>
2738
2739         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
2740
2741 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
2742
2743         PR target/19340
2744         * reg-stack.c (reg_to_stack): Update register liveness also
2745         for flag_sched2_use_traces.
2746
2747 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
2748
2749         PR target/23704
2750         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
2751         override prior explicit -mno-powerpc-gfxopt.
2752
2753 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
2754
2755         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
2756         if the bitsize is zero.
2757         * doc/md.texi (Standard Pattern Names): Document it.
2758
2759         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
2760         (TARGET_PASS_BY_REFERENCE): Likewise.
2761
2762 2005-11-07  Ian Lance Taylor  <ian@airs.com>
2763
2764         PR rtl-optimization/24683
2765         * config/i386/i386.c (legitimize_pic_address): If constant operand
2766         to PLUS is too large, put it in a register.
2767
2768 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
2769
2770         * configure.ac: Enable checking assembler dwarf2 support for bfin
2771         target.
2772         * configure: Regenerate.
2773
2774 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
2775
2776         PR target/24230
2777
2778         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
2779         gen_easy_vector_constant_add_self): Delete.
2780         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
2781         New.
2782         (output_vec_const_move): Use gen_easy_altivec_constant.
2783         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
2784         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
2785         (easy_vector_constant_add_self): Rewritten.
2786         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
2787         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
2788         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
2789         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
2790         Macroize and adjust for the other changes.
2791
2792 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
2793
2794         PR c/24599
2795
2796         * c-typeck.c (build_c_cast): Try using a shared constant, and see
2797         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
2798
2799 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2800
2801         PR rtl-optimization/23567
2802         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
2803         (noce_process_if_block): Don't do any optimizations except
2804         if (cond) x = x; if !set_b and write into orig_x may trap
2805         or fault.  Remove the MEM_READONLY_P check.
2806
2807 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
2808
2809         PR 24670
2810         * tree-vrp.c (fix_equivalence_set): New.
2811         (extract_range_from_assert): Call it.
2812
2813 2005-11-05  Ian Lance Taylor  <ian@airs.com>
2814
2815         PR target/22432
2816         * combine.c (apply_distributive_law): Don't distribute across a
2817         vector mode subreg.
2818
2819 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
2820
2821         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
2822         config/ms1/ms1.h, config/rs6000/predicates.md,
2823         config/s390/s390.c, params.def, postreload-gcse.c,
2824         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
2825         tree-vrp.c, tree.c: Fix comment typos.
2826         * doc/invoke.texi: Fix typos.
2827
2828 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
2829
2830         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
2831         for testing whether the data_dependence_relation contains distance
2832         vectors.  Iterate over all distance vectors of the ddr.
2833         * lambda.h: Define a vec of lambda_vector pointers.
2834         * tree-data-ref.c (dump_data_dependence_relation,
2835         dump_data_dependence_direction): Iterate over all distance and
2836         direction vectors of the ddr.
2837         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
2838         DDR_DIST_VECTS.
2839         (build_classic_dist_vector, build_classic_dir_vector): Push a set
2840         of distance/direction vectors instead of a single one.
2841         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
2842         lambda_vectors with a vec of lambda_vectors.
2843         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
2844         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
2845         DDR_NUM_DIST_VECTS): New.
2846         * tree-loop-linear.c (gather_interchange_stats): Test for the
2847         existence of distance vectors only after having checked that there
2848         is a dependence.  Iterate over all distance vectors of the ddr.
2849         (linear_transform_loops): Use dump_data_dependence_relation.
2850         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
2851         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
2852         distance vectors of the ddr.
2853
2854 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2855
2856         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
2857         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
2858         IS_INTHANDLER; all callers changed.
2859         (n_regs_saved_by_prologue): Take interrupt handler attributes into
2860         account.
2861         (do_link, do_unlink): New argument ALL; all callers changed.
2862         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
2863         If function isn't leaf, save and restore all registers.
2864         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
2865         exception handler.
2866
2867 2005-11-05  Jan Hubicka  <jh@suse.cz>
2868
2869         PR rtl-optimization/23490
2870         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
2871         max-flow-memory-location): Document.
2872         * flow.c: Include params.h
2873         (MAX_MEM_SET_LIST_LEN): Kill.
2874         (add_to_mem_set_list): Use new param.
2875         * cse.c (cse_basic_block): Replace 1000 by new param.
2876         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
2877         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
2878         * predict.c (predict_loops): Use new param.
2879         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
2880
2881         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
2882         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
2883         Do not hold memory returned by cgraph_node_name across other call.
2884
2885 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
2886
2887         PR target/23424
2888         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
2889         Disable.
2890
2891 2005-11-04  Jeff Law  <law@redhat.com>
2892
2893         PR/21883
2894         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
2895         * tree-ssa-dom.c: Include params.h.
2896         (thread_across_edge): If there are too many statements in the
2897         target block, then do not thread through it.
2898         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
2899         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
2900
2901 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
2902
2903         PR 24627
2904         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
2905         TODO_update_ssa instead of TODO_update_ssa_no_phi.
2906
2907 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
2908
2909         PR/18595
2910         * tree-scalar-evolution.c (instantiate_parameters_1,
2911         instantiate_parameters, resolve_mixers): Compute the size of an
2912         expression to be instantiated and give up the instantiation if the
2913         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
2914
2915 2005-11-04  Richard Guenther  <rguenther@suse.de>
2916
2917         * tree-flow.h (ref_contains_indirect_ref): Rename to
2918         array_ref_contains_indirect_ref.
2919         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
2920         (array_ref_contains_indirect_ref): Make comment match the code
2921         and vice-versa.
2922         (ref_contains_array_ref): Likewise.
2923         * tree-ssa-structalias.c (find_func_aliases): Remove call to
2924         ref_contains_indirect_ref.
2925         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2926         Rename calls to ref_contains_indirect_ref.
2927
2928 2005-11-04 Paul Brook  <paul@codesourcery.com>
2929
2930         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
2931         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
2932         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
2933         * config/arm/arm.md: Use match_operand in peephole input templates
2934         and match_dup in peephole output templates.
2935
2936 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
2937
2938         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
2939         __aeabi_uidiv.
2940
2941 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
2942             Daniel Jacobowitz  <dan@codesourcery.com>
2943
2944         * longlong.h (add_ssaaaa): Clobber condition code register
2945         in ARM version.
2946         (sub_ddmmss): Likewise.
2947         (umul_ppmm): Likewise.
2948
2949 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
2950             Paul Brook  <paul@codesourcery.com>
2951             Phil Blundell  <pb@reciva.com>
2952
2953         * configure.ac: Add test for ARM TLS support.
2954         * configure: Regenerated.
2955         * config/arm/arm-protos.h (legitimize_tls_address)
2956         (arm_tls_referenced_p, tls_mentioned_p)
2957         (arm_output_addr_const_extra): New prototypes.
2958         (thumb_legitimize_pic_address): Delete.
2959         * config/arm/arm.c: Include "gt-arm.h".
2960         (enum tls_reloc): New.
2961         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
2962         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
2963         (arm_call_tls_get_addr, legitimize_tls_address)
2964         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
2965         (arm_init_tls_builtins, arm_emit_tls_decoration)
2966         (arm_output_addr_const_extra): New functions.
2967         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
2968         (TARGET_HAVE_TLS): Define.
2969         (target_thread_pointer): New.
2970         (arm_override_options): Handle -mtp=.
2971         (legitimize_pic_address): Ignore UNSPECs.
2972         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
2973         relative symbols.
2974         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
2975         (tls_get_addr_libfunc): New variable.
2976         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
2977         (arm_init_builtins): Call arm_init_tls_builtins.
2978         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
2979         (arm_encode_section_info): Call default_encode_section_info.
2980         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
2981         (enum arm_tp_type): New.
2982         (target_thread_pointer): Add declaration.
2983         (LEGITIMATE_CONSTANT_P): Handle TLS.
2984         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
2985         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
2986         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
2987         * config/arm/arm.md: Add UNSPEC_TLS.
2988         (movsi): Handle TLS.
2989         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
2990         non-PIC.
2991         (tls_load_dot_plus_eight): New insn and a peephole to create it.
2992         (load_tp_hard, load_tp_soft): New insns.
2993         * arm.opt: Add -mtp=.
2994         * doc/invoke.texi (ARM Options): Document -mtp.
2995
2996 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
2997
2998         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
2999         * config/arm/libunwind.S: Include "lib1funcs.asm".
3000         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
3001         (LIB2ADDEH): Add libunwind.S.
3002         (LIB2ADDEHDEP): Add lib1funcs.asm.
3003         * mklibgcc.in: Handle asm files in libgcc_eh.a.
3004
3005 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3006
3007         PR fortran/18452
3008         * gcc/c.opt: Add a -lang-fortran option.
3009         * gcc/c-opts.c: Add a lang_fortran flag.
3010         (c_common_init_options): Handling the -lang-fortran option.
3011         (c_common_handle_option): Add a case for Fortran options in
3012         preprocessing. Remove cases for -ffixed-form and
3013         -ffixed-line-length. Add a case for -lang-fortran.
3014
3015 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
3016
3017         * config/rs6000/rs6000.c: Include params.h
3018         (optimization_options): Set max-grow-copy-bb-insns default to 16.
3019         (bdesc_2arg): Delete vpkuhss and vpkuwss.
3020         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
3021         (UNSPEC_VPKUWSS): Delete.
3022         (altivec_vpkuhss): Delete.
3023         (altivec_vpkuwss): Delete.
3024         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
3025         final condition.
3026         (neg_eq0<mode>): Remove final condition.
3027         (neg_eq<mode>): Remove condition and split-condition.
3028
3029 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
3030
3031         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
3032         Use associated print macros.
3033
3034 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3035
3036         PR c++/17964
3037         * diagnostic.c (diagnostic_set_info_translated): New function.
3038         (diagnostic_set_info): Use it.  Add comment.
3039         * diagnostic.h (diagnostic_set_info_translated): Declare.
3040
3041 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3042
3043         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
3044         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
3045         reference only if 'public' is true.
3046         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
3047         emit the .hidden directive only if the indirect reference is public.
3048         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
3049         Pass it to dw2_force_const_mem.
3050         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
3051         * dwarf2out.c (output_cfi): Adjust calls to above function.
3052         (output_call_frame_info): Likewise.
3053         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
3054         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
3055
3056 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
3057
3058         PR tree-optimization/24483
3059         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
3060         field to elts if possible.
3061
3062 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3063
3064         PR middle-end/23155
3065         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
3066         CONSTRUCTOR.
3067
3068 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
3069
3070         Fix PR tree-optimization/24351
3071
3072         * tree-ssa-structalias.c (struct variable_info): Add
3073         collapsed_into.
3074         (get_varinfo_fc): New function to follow collapsing.
3075         (new_var_info): Set collapsed_to to NULL.
3076         (dump_constraint): Follow collapsing.
3077         (build_constraint_graph): Handle collapsing.
3078         (do_simple_structure_copy): Return false if something bad
3079         happened.
3080         (collapse_rest_of_var): New function.
3081         (do_structure_copy): Collapse if do_simple_structure_copy returns
3082         false.
3083
3084 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3085
3086         PR middle-end/24589
3087         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
3088         expressions to a statement list instead of gimplifying them.
3089
3090 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3091
3092         PR rtl-optimization/23585
3093         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
3094         that can't trap plus a constant integer, if the mode has zero size.
3095
3096 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
3097
3098         PR target/24620
3099         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
3100         as operand 2.
3101         ("*insv<mode>_reg_extimm"): Likewise.
3102
3103 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3104
3105         PR c/24329
3106         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
3107         c_common_type_for_mode returns an unnamed type.
3108
3109 2005-11-02  Richard Henderson  <rth@redhat.com>
3110
3111         PR target/9350
3112         PR target/24374
3113         * dwarf2out.c (dwarf2out_reg_save_reg): New.
3114         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
3115         * function.c (assign_parms): Use calls.internal_arg_pointer.
3116         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
3117         code.
3118         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
3119         (TARGET_CALLS): Add it.
3120         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
3121         * targhooks.c (default_internal_arg_pointer): New.
3122         * targhooks.h (default_internal_arg_pointer): Declare.
3123         * tree.h (dwarf2out_reg_save_reg): Declare.
3124         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
3125         * config/i386/i386.c (dbx_register_map): Add return column.
3126         (dbx64_register_map, svr4_dbx_register_map): Likewise.
3127         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
3128         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
3129         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
3130         (ix86_save_reg): Save force_align_arg_pointer.
3131         (ix86_emit_save_regs): Make regno unsigned.
3132         (ix86_emit_save_regs_using_mov): Likewise.
3133         (ix86_expand_prologue): Handle force_align_arg_pointer.
3134         (ix86_expand_epilogue): Likewise.
3135         * config/i386/i386.h: (dbx_register_map): Update.
3136         (dbx64_register_map, svr4_dbx_register_map): Update.
3137         (struct machine_function): Add force_align_arg_pointer.
3138         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
3139         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
3140         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
3141
3142 2005-11-02  Jan Hubicka  <jh@suse.cz>
3143
3144         PR target/23303
3145         * i386.md: Add peep2 for simplyfing array accesses.
3146
3147 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3148
3149         PR target/24615
3150         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
3151         * config/s390/s390.c (s390_decompose_shift_count): New function.
3152         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
3153         (print_shift_count_operand): Use s390_decompose_shift_count.
3154         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
3155         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
3156
3157 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3158
3159         PR target/24600
3160         * loop.c (loop_givs_rescan): Use force_operand to expand
3161         complex GIVs.
3162
3163 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
3164
3165         PR 22429
3166         * fold-const.c (build_range_check): Use unsigned when signed
3167         overflow is undefined also.  If etype is subtype, make sure that
3168         the subtraction is in the supertype.
3169
3170 2005-11-02  Richard Henderson  <rth@redhat.com>
3171
3172         PR target/24178
3173         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
3174         by MEM_ALIGN.
3175
3176 2005-11-01  Richard Henderson  <rth@redhat.com>
3177
3178         PR 21518
3179         * loop.c (scan_loop): Do not propagate computations to a hard
3180         register destination with SMALL_REGISTER_CLASSES.
3181
3182 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
3183
3184         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
3185         costs for MULT inside PLUS or MINUS.
3186
3187 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
3188
3189         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
3190         (TRAMPOLINE_SIZE): Round up to 60.
3191         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
3192
3193 2005-10-31  James E. Wilson  <wilson@specifix.com>
3194
3195         PR debug/24444
3196         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
3197         ifdef.  Put ifdefs around call in gen_subprogram_die.
3198         (compute_frame_pointer_to_cfa_displacement): Likewise.
3199         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
3200         not defined.
3201
3202         PR rtl-optimization/17356
3203         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
3204         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
3205
3206 2005-10-31  Jan Hubicka  <jh@suse.cz>
3207
3208         PR middle-end/24093
3209         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
3210
3211         PR target/20928
3212         * i386.c (legitimize_pic_address): Deal with large immediates.
3213
3214         PR profile/20815
3215         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
3216         from symbol names while computing checkup.
3217
3218         PR profile/24487
3219         * predict.c (predict_loops): Do not estimate more than
3220         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
3221         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
3222
3223 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
3224
3225         PR tree-optimization/19097
3226         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
3227
3228 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
3229
3230         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
3231
3232 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
3233
3234         PR middle-end/23492
3235         * tree-inline.c (setup_one_parameter): If the init_stmt
3236         is NULL, don't insert the statement.
3237
3238 2005-10-30  Jan Hubicka  <jh@suse.cz>
3239
3240         PR tree-optimization/24172
3241         * tree-inline.c (copy_body_r): Unshare the substituted value first.
3242
3243 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
3244
3245         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
3246         constants for hosts with long != 32 bits.
3247
3248 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
3249
3250         PR middle-end/24093
3251         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
3252
3253 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
3254
3255         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
3256         (TARGET_MS1_16_002): New.
3257         (TARGET_MS1_16_003): New.
3258
3259         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
3260         ("*decrement_and_branch_until_zero_no_clobber"): New.
3261         Add corresponding splitter for decrement_and_branch_until_zero
3262         instruction.
3263         Key all decrement_and_branch_until_zero patterns off of
3264         TARGET_MS1_16_003.
3265
3266 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
3267
3268         PR middle-end/24362
3269         * tree-complex.c (extract_component): Treat RESULT_DECL
3270         like the rest of the decls.
3271
3272 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3273
3274         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
3275         indirect call to _mcount if the function needs a static chain.
3276
3277 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3278             Caroline Tice  <ctice@apple.com>
3279
3280         PR rtl-optimization/24460
3281         * dwarf2out.c (have_switched_text_sections): New boolean variable.
3282         (dwarf2out_switch_text_section): Set it to true instead of
3283         incrementing separate_line_info_table_in_use.
3284         (output_loc_list): Additionally test have_switched_text_sections.
3285         (output_ranges): Likewise.
3286         (dwarf2out_finish): Likewise.
3287         * varasm.c (assemble_start_function): Do not call
3288         insert_section_boundary_note.
3289         (assemble_end_function): If flag_reorder_blocks_and_partition,
3290         switch to the function's section before emitting the .size directive.
3291         * bb-reorder.c (insert_section_boundary_note): Staticify.
3292         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
3293         * output.h (insert_section_boundary_note): Delete.
3294
3295 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
3296
3297         PR c/23103
3298         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
3299         instead of pointer equality when comparing types.
3300
3301 2005-10-24  James E. Wilson  <wilson@specifix.com>
3302
3303         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
3304         add_dependence_list_and_free calls.
3305
3306 2005-10-24  Steven Bosscher  <stevenb@suse.de>
3307
3308         * contrib.texi: Add the names of the LLNL folks who donated
3309         Cray pointer support for gfortran.
3310
3311 2005-10-24  Steven Bosscher  <stevenb@suse.de>
3312
3313         PR tree-optimization/24225
3314         * profile.c (branch_prob): Look from end to start through a
3315         basic block when looking for a locus.
3316
3317 2005-10-24  Richard Henderson  <rth@redhat.com>
3318
3319         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
3320         parallel.
3321         (hppa_expand_prologue): Likewise.
3322
3323 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3324
3325         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
3326         (NO_DEFERRED_PROFILE_COUNTERS): Define.
3327         * pa.h (NO_PROFILE_COUNTERS): Define.
3328         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
3329         (funcdef_nos): New vector to hold label numbers of deferred profile
3330         counters.
3331         (output_deferred_profile_counters): New function.
3332         (hppa_profile_hook): Push label number onto funcdef_nos.
3333         (pa_hpux_file_end): Call output_deferred_profile_counters if
3334         NO_DEFERRED_PROFILE_COUNTERS is false.
3335
3336         * pa-protos.h (get_deferred_plabel): New prototype.
3337         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
3338         Make global.
3339         (output_call): Adjust calls.
3340
3341 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
3342
3343         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
3344         peculiarity of GOT/TOC section usage.
3345
3346 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
3347
3348         PR objc/24435
3349          * c-common.c (constant_string_class_name): Add documentation.
3350
3351 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
3352
3353         PR target/23832
3354         * recog.c (peephole2_optimize): Increment peep2_current_count
3355         only when the slot is empty.
3356
3357 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3358
3359         PR ada/23957
3360         * except.c (output_function_exception_table): Call
3361         assemble_external_libcall if we need a personality function.
3362
3363 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3364
3365         PR rtl-optimization/24460
3366         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
3367         set the basic block for barriers.
3368
3369 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
3370
3371         * var-tracking.c (vt_initialize): Initialize post.
3372
3373 2005-10-21  Devang Patel  <dpatel@apple.com>
3374
3375         PR/24220
3376         * c-common.c (vector_types_convertible_p): Check vector element type.
3377
3378 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3379
3380         * config/sh/sh.c (prepare_move_operands): Handle the address
3381         constant which is a tls symbolic address plus a constant.
3382
3383 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
3384
3385         PR driver/24473
3386         * gcc.c (main): Use the correct counter for erroring out
3387         about mulitple files.
3388
3389 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
3390
3391         PR target/24465
3392         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
3393         use r2 for 64-bit tls .got access.
3394
3395 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
3396
3397         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
3398         TRUTH_OR_EXPR.
3399
3400 2005-10-20  Steven Bosscher  <stevenb@suse.de>
3401
3402         PR tree-optimization/24307
3403         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
3404
3405 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
3406
3407         PR middle-end/24295
3408         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
3409         alias targets.
3410         * varasm.c (find_decl_and_mark_needed): After cgraph global info
3411         is ready, stop marking functions, but still mark variables.
3412
3413 2005-10-20  Richard Guenther  <rguenther@suse.de>
3414
3415         PR c++/24439
3416         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
3417         void type operands.
3418
3419 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3420
3421         PR rtl-optimization/23585
3422         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
3423         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
3424         (may_trap_p_1): New predicate extracted from...
3425         (may_trap_p): ... here.  Invoke may_trap_p_1.
3426         (may_trap_or_fault_p): New predicate.
3427         * rtl.h (may_trap_or_fault_p): Declare it.
3428         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
3429         instead of may_trap_p.
3430         (steal_delay_list_from_fallthrough): Likewise.
3431         (fill_simple_delay_slots): Likewise.
3432         (fill_slots_from_thread): Likewise.
3433         * function.c (pad_to_arg_alignment): Rework comment about
3434         SPARC_STACK_BOUNDARY_HACK.
3435         * config/sparc/sparc.h: Likewise.
3436
3437 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
3438
3439         * config/s390/s390.c (s390_expand_insv): New.
3440         * config/s390/s390-protos.h (s390_expand_insv): Declare.
3441         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
3442         ("icm_hi"): Remove mode attribute.
3443         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
3444         Adjust all uses.
3445         ("*extracthi", "*extractqi"): Remove.
3446         (extv<mode>", "*extzv<mode>"): New.
3447         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
3448         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
3449
3450 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3451
3452         * cfgexpand.c (discover_nonconstant_array_refs_r,
3453         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
3454         (tree_expand_cfg): Call discover_nonconstant_array_refs.
3455         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
3456         discover_nonconstant_array_refs.
3457
3458 2005-10-19  Steven Bosscher  <stevenb@suse.de>
3459
3460         PR c/23228
3461         * c-decl.c (pop_scope): Don't warn about an unused variable
3462         if it is marked with TREE_NO_WARNING.
3463         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
3464         somenow mismatch and olddecl is to be replaced.
3465
3466 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3467
3468         PR middle-end/23199
3469         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
3470         whether registers live on the edge can be saved/restored.
3471
3472 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
3473
3474         * config/sh/sh.c (fixup_mova): Skip notes.
3475
3476 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3477
3478         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
3479         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
3480         (s390_can_eliminate): Handle BASE_REGNUM elimination.
3481         (s390_initial_elimination_offset): Likewise.
3482         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
3483         register on TARGET_ZARCH targets.
3484         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
3485         (INITIAL_FRAME_POINTER_OFFSET): Remove.
3486         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
3487         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
3488
3489 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3490
3491         * config/s390/s390.md: Comment describing output modifiers updated.
3492         * config/s390/s390.c (print_operand): Likewise.
3493
3494 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3495
3496         * config/s390/s390.c (override_options): Added check for -mstack-size
3497         64k limitation.
3498         * doc/invoke.texi: Mention that limit in the documenation.
3499
3500 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
3501
3502         PR #19672
3503         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
3504
3505 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
3506
3507         Fix PR tree-optimization/24231
3508
3509         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
3510         (compute_avail): Ditto.
3511
3512 2005-10-18  Richard Henderson  <rth@redhat.com>
3513
3514         PR target/24428
3515         * config/i386/i386.c (legitimate_constant_p): Check
3516         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
3517         if LABEL_REF.
3518         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
3519         (legitimate_pic_address_disp_p): Reorg CONST checking to make
3520         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
3521         directly.
3522         (print_operand_address): Likewise.
3523         * config/i386/predicates.md (x86_64_immediate_operand): Test
3524         SYMBOL_REF_TLS_MODEL properly inside CONST.
3525         (x86_64_zext_immediate_operand): Likewise.
3526         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
3527         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
3528         * config/i386/i386-protos.h: Remove predicates.md entries.
3529
3530 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
3531
3532         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
3533         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
3534
3535 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
3536             Ian Lance Taylor <ian@airs.com>
3537
3538         PR middle-end/23522
3539         * fold-const.c (fold_widened_comparison): Do not allow range based
3540         constant folding when right operand cannot be unwidened.
3541
3542 2005-10-17  Richard Henderson  <rth@redhat.com>
3543
3544         * builtins.c (expand_builtin_synchronize): Build a new-style asm
3545         with a memory clobber.
3546
3547 2005-10-17  James E Wilson  <wilson@specifix.com>
3548
3549         PR rtl-optimization/17356
3550         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
3551         checking for EDGE_EH.
3552
3553 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3554
3555         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
3556         the slot on an even boundary for any type with 16-byte alignment.
3557
3558 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
3559
3560         PR target/23424
3561         * md.texi (Modifiers) <%>: Clarify that % doesn't work
3562         after register allocation.
3563
3564 2005-10-17  DJ Delorie  <dj@redhat.com>
3565
3566         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
3567         as frame related.
3568
3569 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
3570
3571         PR c++/22551
3572         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
3573         overflow flags.
3574
3575 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3576
3577         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
3578         to 2 if it's already non-zero.
3579         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
3580         is set and warn about it if flag_schedule_insns is 1.
3581
3582 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
3583
3584         * config/crx/crx.md: Compare-and-branch instructions need to
3585         invalidate CC.
3586
3587 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
3588
3589         PR target/24315
3590         * config/i386/i386.md (*pushdi2_rex64 splitter)
3591         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
3592         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
3593         flow2 pass only when (optimize > 0 && flag_peephole2).
3594
3595 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
3596
3597         PR driver/22544
3598         * gcc.c (have_c): New static variable.
3599         (have_o): Likewise.
3600         (process_command): Remove declation of have_c.
3601         Set have_o to 1 when handling -o.
3602         (main): Add a fatel error if there are multiple
3603         files specified and -o and -c/-S is passed witout
3604         -combine or multiple languages.
3605
3606 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
3607
3608         Fix PR tree-optimization/22444
3609         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
3610         Assert that we don't hit something with subvars.
3611         (setup_pointers_and_addressables): Don't add things with subvars,
3612         because we'll already process the subvars for aliasing purposes.
3613
3614 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
3615
3616         PR target/23424
3617         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
3618         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
3619         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
3620         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
3621         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
3622         swapped, alternatives for the R constraint.
3623
3624         PR middle-end/24341
3625         * builtins.c (get_builtin_sync_mode): Make unlimited
3626         mode_for_size request.
3627
3628 2005-10-15  Richard Henderson  <rth@redhat.com>
3629
3630         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
3631         (gimplify_expr): ... here.
3632         (gimplify_compound_lval): Use it in initial scan loop.  Allow
3633         fb_lvalue in base expression.
3634
3635 2005-10-15  Richard Henderson  <rth@redhat.com>
3636
3637         PR 23714
3638         * builtins.c (expand_builtin_trap): Export.
3639         * expr.h (expand_builtin_trap): Declare.
3640         * expr.c (expand_assignment): Emit a trap for integral offsets
3641         from registers that weren't reduced to bitpos.
3642
3643         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
3644         (mark_array_ref_addressable): Remove.
3645         * tree-flow.h (mark_array_ref_addressable): Remove.
3646         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
3647
3648 2005-10-15  James E Wilson  <wilson@specifix.com>
3649
3650         PR target/24232
3651         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
3652         (add_dependence_list_and_free): Likewise.
3653         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
3654         call.
3655
3656 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
3657
3658         PR 23141
3659         PR 23142
3660         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
3661         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
3662         anti-range.
3663         (vrp_visit_phi_node): Only prevent infinite iterations when
3664         the previous result and the new result are both VR_RANGEs.
3665
3666 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
3667
3668         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
3669         function comment.
3670
3671 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3672
3673         PR c/23439
3674         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
3675         to initialize loc.
3676
3677 2005-10-14  Per Bothner  <per@bothner.com>
3678
3679         PR preprocessor/21250
3680         * c-ppoutput.c (print_line): Print internal line 0 as 1.
3681
3682 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
3683
3684         PR c++/22551
3685         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
3686         overflow flags.  Refactor some conditionals.
3687
3688 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
3689
3690         PR tree-opt/21304
3691         * tree-dfa.c (add_referenced_var): Only look at decls which
3692         have TREE_CONSTANT or TREE_READONLY set instead of if
3693         !TREE_PUBLIC or !TREE_CONSTANT.
3694
3695 2005-10-13  James E Wilson  <wilson@specifix.com>
3696
3697         * doc/invoke.texi: For -x, add f95-cpp-input.
3698         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
3699
3700 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
3701
3702         PR tree-optimization/24262
3703         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
3704         in loop all the time.
3705
3706 2005-10-12  Richard Henderson  <rth@redhat.com>
3707
3708         PR c/24255
3709         * tree.h (DECL_TRANSPARENT_UNION): Remove.
3710         * function.c (assign_parm_find_data_types): Don't support it.
3711         * print-tree.c (print_node): Likewise.
3712         * c-common.c (handle_transparent_union_attribute): Likewise.
3713         Use build_duplicate_type.
3714         * tree-inline.c (remap_type_1): Split out of remap_type;
3715         properly remap aggregate fields.
3716         (build_duplicate_type): New.
3717         * doc/extend.texi (Variable Attributes): Remove documentation
3718         for transparent_union.
3719
3720 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3721
3722         PR target/24284
3723         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
3724         (gen_stack_pointer_dec): Likewise.
3725
3726 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
3727
3728         PR middle-end/21275
3729         PR middle-end/21766
3730         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
3731         target hook.
3732         (struct cxx): Add adjust_class_at_definition target hook.
3733         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
3734         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
3735         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
3736         hook_void_tree. Add to TARGET_CXX.
3737         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
3738         dllimport_flag.
3739         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
3740         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
3741         instead of attribute. Check for dllexport override.  Warn if
3742         inconsistent dll linkage. Don't lose old dllimport if decl has
3743         had address referenced.   Tweak lookup of dllimport atribute.
3744         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
3745         for target specific rules.  Don't add dllimport attribute if
3746         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
3747         dllimport attribute.
3748         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
3749         * varasm.c (initializer_constant_valid_p): Replace
3750         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
3751
3752         PR target/21801
3753         PR target/23589
3754         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
3755         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
3756         (i[34567]86-*-mingw32*): Likewise.
3757
3758         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
3759         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
3760
3761         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
3762         C++-specific code. Change return value to bool.
3763         (i386_pe_dllimport_p): Likewise.
3764         (associated_type): Simplify and make language-independent
3765         (i386_pe_encode_section_info): Replace override of ambiguous
3766         dllimport symbol refs with a gcc_assert.
3767         (i386_pe_valid_dllimport_attribute_p): Define.
3768         * config/i386/winnt-cxx.c: New file. Define C++ versions of
3769         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
3770         i386_pe_adjust_class_at_definition.
3771         * config/i386/winnt-stubs.c: New file. Define stub versions of
3772         lang-specific functions.
3773         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
3774         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
3775         i386_pe_adjust_class_at_definition.
3776         (i386_pe_valid_dllimport_attribute_p): Declare.
3777         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
3778         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
3779         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
3780
3781         PR target/19704
3782         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
3783         dllimport attribute with test of DECL_DLLIMPORT_P.
3784
3785 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
3786
3787         * combine.c (make_extraction): Correct offset computation.
3788
3789 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
3790
3791         * config/cris/t-linux (LIMITS_H_TEST): Define.
3792
3793 2005-10-12  Richard Henderson  <rth@redhat.com>
3794
3795         PR rtl-opt/23324
3796         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
3797
3798 2005-10-12  Richard Guenther  <rguenther@suse.de>
3799
3800         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
3801
3802 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
3803
3804         PR c++/19964
3805         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
3806         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
3807         type.
3808
3809 2005-10-12  Richard Guenther  <rguenther@suse.de>
3810
3811         PR c++/23799
3812         * varasm.c (output_constant): Correct typo from previous
3813         patch by DJ.
3814
3815 2005-10-11  Ian Lance Taylor  <ian@airs.com>
3816
3817         PR rtl-optimization/13931
3818         * combine.c: Revert patch of 2003-05-14, and:
3819         (try_combine): Only set elim_i1 and elim_i2 if the destination is
3820         completely killed in the appropriate insn.
3821         (distribute_notes): Don't skip multiple hard register test for
3822         elim_i1 and elim_i2.
3823
3824 2005-10-11  Richard Henderson  <rth@redhat.com>
3825
3826         PR c/24255
3827         * c-typeck.c (convert_for_assignment): Use build_constructor_single
3828         to initialize a transparent union instead of a nop_expr.
3829
3830 2005-10-11  Richard Henderson  <rth@redhat.com>
3831
3832         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
3833         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
3834         (tree_ssa_dce_loop): Call scev_reset.
3835
3836         PR tree-opt/24300
3837         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
3838         * tree-ssa-dce.c: Include cfgloop.h.
3839         (tree_ssa_dce_loop, pass_dce_loop): New.
3840         * tree-pass.h (pass_dce_loop): Declare it.
3841         * passes.c (init_optimization_passes): Use it.
3842
3843 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
3844
3845         PR middle-end/24263
3846         * convert.c (convert_to_real): Revert 2005-10-05 patch.
3847         Only apply the optimization for rounding builtins if the inner
3848         cast is also an extension.
3849
3850 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
3851
3852         PR tree-opt/23946
3853         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
3854         mark_new_vars_to_rename instead of update_stmt.
3855
3856 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3857
3858         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
3859
3860 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3861
3862         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
3863         for setting MMX register to 0 rather than mmx.
3864
3865 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
3866
3867         PR target/12098
3868         * configure.ac: Move gas check from mips specific case to common case.
3869         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
3870         * configure: Regenerate
3871         * doc/install.texi: Update.
3872
3873 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3874
3875         PR target/24284
3876         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
3877
3878 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
3879
3880         * gcc.c (do_spec_1): Accept numeric characters in file name
3881         suffixes.
3882
3883 2005-10-10  Nick Clifton  <nickc@redhat.com>
3884
3885         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
3886         describing the deleted arm_gen_rotated_half_load function.
3887
3888 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3889
3890         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
3891         __fpscr_values.
3892
3893 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
3894
3895         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
3896         gnu_ld assignments.
3897         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
3898         (EXTRA_MULTILIB_PARTS): Define.
3899         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
3900         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
3901         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
3902         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
3903         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
3904         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
3905
3906 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
3907
3908         PR tree-optimization/24226
3909         * tree-cfg.c (remove_bb): Clean up unreachable loops.
3910         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
3911         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
3912         Export.
3913
3914 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3915
3916         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
3917
3918 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
3919
3920         PR target/24136
3921         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
3922         Rewrite for no need for the early clobber.
3923
3924 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
3925
3926         Merge from csl-arm-branch:
3927         2005-09-07  Paul Brook  <paul@codesourcery.com>
3928         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
3929         space to string.
3930
3931         2005-04-30  Paul Brook  <paul@codesourcery.com>
3932         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
3933         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
3934
3935         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
3936         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
3937         (arm_override_options): Use TARGET_AAPCS_BASED.
3938         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
3939         (PTRDIFF_TYPE): Use int for AAPCS.
3940         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
3941         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
3942         (DEFAULT_SHORT_ENUMS): Delete.
3943         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
3944
3945         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
3946         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
3947         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
3948         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
3949
3950         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
3951         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
3952
3953         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
3954         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
3955
3956         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
3957         * config.gcc (arm*-*-linux-gnueabi): Add it.
3958         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
3959         redefining it.
3960         (TARGET_OS_CPP_BUILTINS): Likeiwse.
3961         * config/arm/linux-eabi.h: New file.
3962         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
3963         (LINUX_TARET_LINK_SPEC): Likewise.
3964         (LINK_SPEC): Use it.
3965         * config/arm/t-linux-eabi: New file.
3966
3967 2005-10-08  Steven Bosscher  <stevenb@suse.de>
3968
3969         PR other/22202
3970         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
3971         spaces.
3972         (PARAM_SMS_DFA_HISTORY): Likewise.
3973
3974 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
3975
3976         PR middle-end/23150
3977         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
3978         (load_register_parameters): Call it.
3979         (check_sibcall_argument_overlap_1): Likewise.
3980         (store_one_arg): Likewise.
3981
3982 2005-10-07  James E. Wilson  <wilson@specifix.com>
3983
3984         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
3985         DImode not VECINT24 for operand 2.
3986
3987         PR target/23644
3988         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
3989         -mtune-arch.
3990
3991         PR target/24193
3992         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
3993         fr_spill): Use destination_operand for operand 0.
3994
3995 2005-10-07  DJ Delorie  <dj@redhat.com>
3996
3997         * varasm.c (output_constant): Limit error to expanding
3998         conversions.
3999
4000 2005-10-07  Richard Guenther  <rguenther@suse.de>
4001
4002         PR middle-end/24227
4003         * fold-const.c (fold_binary): Fix operand types during folding
4004         of X op (A, Y).  Evaluation order of the side-effects of
4005         X and A are frontend-defined, so ensure we honour that even for
4006         tcc_comparison class operands; eased by removing duplicate code.
4007
4008 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4009
4010         * stor-layout.c (layout_type): Do not allow alignment of array
4011         elements to be greater than their size.
4012
4013 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4014
4015         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
4016         host_xmake_file.
4017         (hppa*-*-linux*): Ditto.
4018         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
4019         * config/host-hpux.c: New.
4020         * config/x-hpux: New.
4021         * config/pa/x-hpux: Remove.
4022         * config/pa/x-linux: Remove.
4023         * config/pa/pa-host.c: Remove.
4024
4025 2005-10-07  Jeff Law  <law@redhat.com>
4026
4027         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
4028         determine whether or not to try and thread outgoing edges.
4029
4030 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
4031
4032         * config/rs6000/rs6000.md (eqsi_power): New.
4033         (neg_eq0si): Add TARGET_POWER to final condition.
4034         (neg_eqsi): Same.
4035
4036 2005-10-06  Richard Henderson  <rth@redhat.com>
4037
4038         * config/rs6000/rs6000.c: Revert last change.
4039
4040 2005-10-06  Richard Henderson  <rth@redhat.com>
4041
4042         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
4043         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
4044
4045 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
4046
4047         PR middle-end/22216
4048         PR middle-end/23651
4049         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
4050         out return_label and naked_return_label.
4051
4052 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4053
4054         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
4055         change.
4056
4057 2005-10-06  Richard Henderson  <rth@redhat.com>
4058
4059         PR tree-opt/22237
4060         * tree-inline.c (declare_return_variable): Handle modify_dest not
4061         being a DECL.
4062
4063 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4064
4065         Fix PR tree-optimization/22488
4066         * tree-ssa-structalias.c (check_for_overlaps): New function.
4067         (create_variable_info_for): Use it.
4068
4069 2005-10-06  Richard Henderson  <rth@redhat.com>
4070
4071         PR debug/24070
4072         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
4073         (dwarf2out_start_source_file): Print it.
4074
4075 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
4076
4077         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
4078
4079 2005-10-06  Richard Henderson  <rth@redhat.com>
4080
4081         PR 23706
4082         * mode-switching.c (optimize_mode_switching): Clear transp bit
4083         for block with incomming abnormal edges.
4084
4085         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
4086         (fpscr_set_from_mem): Use them.
4087         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
4088         (fpscr postinc splitters): Rewrite as peephole2+split.
4089
4090 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
4091
4092         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
4093         (eq<mode>_compare): Same.
4094
4095 2005-10-06  Richard Guenther  <rguenther@suse.de>
4096
4097         PR tree-optimization/24238
4098         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
4099
4100 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
4101
4102         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
4103         here.  Use AC_PATH_PROG for environment variables instead of
4104         test -x.
4105         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
4106         objdump also.
4107         * configure: Regenerated.
4108
4109 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
4110
4111         PR target/23783
4112         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
4113         then force it into a register.
4114         (call_value): Likewise.
4115
4116 2005-10-06  Richard Henderson  <rth@redhat.com>
4117
4118         PR 24049
4119         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
4120         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
4121         under pass_vectorize.
4122
4123 2005-10-05  Devang Patel  <dpatel@apple.com>
4124
4125         PR Debug/23205
4126         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
4127         handling constants. Check NAMESPACE_DECL context for constants.
4128
4129 2005-10-05  Eric Christopher  <echristo@apple.com>
4130
4131         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
4132
4133 2005-10-05  Richard Henderson  <rth@redhat.com>
4134
4135         PR 23714
4136         * tree-cfg.c (mark_array_ref_addressable_1): New.
4137         (mark_array_ref_addressable): New.
4138         * tree-flow.h (mark_array_ref_addressable): Declare.
4139         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
4140
4141 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
4142
4143         PR middle-end/20606
4144         PR middle-end/24069
4145         * reload.c (subst_reloads): When adding a REG_LABEL to a
4146         jump instruction, also update JUMP_LABEL.
4147
4148 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
4149
4150         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
4151         * bb-reorder.c (copy_bb_p): Use it.
4152         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
4153
4154 2005-10-05  Richard Henderson  <rth@redhat.com>
4155
4156         PR target/23602
4157         * toplev.c (process_options): Warn about unsupported combinations
4158         of unwind tables and omit-frame-pointer.
4159         * config/i386/i386.c (override_options): Similarly.  Enable
4160         accumulate-outgoing-args if not explicitly disabled.
4161
4162 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
4163
4164         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
4165         Handle big endian vs. small endian.
4166         (vec_initv2sf): Handle big endian vs. small endian.
4167         (*vec_extractv2sf_1): Ditto.
4168
4169 2005-10-05  Dale Johannesen  <dalej@apple.com>
4170
4171         * convert.c (convert_to_real):  Don't convert
4172         (float)floor(double d) to floorf((float)d).
4173
4174 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
4175
4176         * config/arm/arm.md (insv): Use gen_int_mode in more places.
4177
4178 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
4179
4180         PR tree-optimization/18587
4181         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
4182         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
4183         build_vuses): Change to VEC type.
4184         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
4185         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
4186         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
4187         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
4188         (get_name_decl): New.  Return DECL_UID of base variable.
4189         (operand_build_cmp): New.  qsort comparison routine.
4190         (operand_build_sort_virtual): New.  Sort virtual build vector.
4191         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
4192         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
4193         (FINALIZE_BASE): Use get_name_decl.
4194         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
4195         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
4196         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
4197         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
4198         direct VEC_* manipulations.
4199         (build_ssa_operands): Call operand_build_sort_virtual.
4200         (copy_virtual_operand, create_ssa_artficial_load_stmt,
4201         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
4202         with direct VEC_* manipulations.
4203         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
4204         with direct VEC manipulations.
4205
4206 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
4207
4208         PR tree-optimization/21419
4209         PR tree-optimization/24146
4210         PR tree-optimization/24151
4211
4212         * c-typeck.c (readonly_error): Handle USE being lv_asm.
4213         (build_asm_expr): Call it if outputs are read-only.
4214         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
4215
4216 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
4217             Paolo Bonzini  <bonzini@gnu.org>
4218
4219         PR target/23809
4220
4221         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
4222         enable the instructions and not just the built-ins.
4223         * doc/invoke.texi (x86 Options): Likewise.
4224
4225 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
4226
4227         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
4228
4229         * doc/invoke.texi (Option Summary): Correct spelling
4230         of -mmacosx-version-min.
4231
4232 2005-10-04  Devang Patel  <dpatel@apple.com>
4233
4234         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
4235         real types.
4236
4237 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
4238
4239         * tree-vect-transform.c (vect_create_epilog_for_reduction):
4240         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
4241
4242 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
4243
4244         * config/s390/s390.md ("TDSI","DP"): New mode macros.
4245         ("TE","tg"): New mode attributes.
4246         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
4247         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
4248         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
4249         dword_mode and one for GPRmode.
4250
4251 2005-10-04  Ian Lance Taylor  <ian@airs.com>
4252
4253         PR preprocessor/13726
4254         * c-ppoutput.c (cb_include): Add comments parameter, and print out
4255         any comments passed in.
4256
4257 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4258
4259         * tree.c (annotate_with_file_line): Fix typo.
4260
4261 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4262
4263         PR ada/19382
4264         * builtins.c (fold_builtin_memcmp): When constructing the pointer
4265         type used to access data in the inlined length == 1 case, use
4266         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
4267         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4268
4269 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
4270
4271         * config/i386/i386.h (TARGET_FISTTP): Enable also for
4272         TARGET_SSE3 and only for TARGET_80387.
4273         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
4274         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
4275         Do not depend on TARGET_80387.
4276
4277 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4278
4279         * tree.c (last_annotated_node): Change type to location_t*.
4280         (annotate_with_file_line): Reflect the change of
4281         last_annotated_node type.
4282
4283 2005-10-04  Richard Guenther  <rguenther@suse.de>
4284
4285         PR c/23576
4286         * c-decl.c (grokdeclarator): Don't write to fields
4287         of error_mark_node.
4288
4289 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4290
4291         PR middle-end/23125
4292         * c-decl.c (finish_decl): Use set_user_assembler_name even for
4293         register variables.
4294         * varasm.c (make_decl_rtl): If a register variable does not
4295         have a set user assmbler name, error out.
4296         Decode the asmspec is now name+1 bypassing '*'.
4297
4298 2005-10-04  Steven Bosscher  <stevenb@suse.de>
4299
4300         PR tree-optimization/23049
4301         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
4302         of a COND_EXPR is folded before calling fold on the whole rhs of a
4303         conditional assignment.
4304         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
4305         document that a COND_EXPR may appear there.
4306
4307 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
4308
4309         PR 23445
4310         * tree-vrp.c (extract_range_from_assert): If the new numeric
4311         range created out of the assertion contradicts the existing
4312         numeric range of the ASSERT_EXPR variable, make the new range
4313         varying.
4314
4315 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4316
4317         * config/sh/sh.c (sh_register_move_cost): Add case for moving
4318         from T_REGS to FP register class.
4319
4320 2005-10-03  Richard Henderson  <rth@redhat.com>
4321
4322         PR 24135
4323         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
4324         before creating a new one.
4325
4326 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
4327
4328         * config/rs6000/t-aix43 (LDFLAGS): New.
4329         * config/rs6000/t-aix52 (LDFLAGS): New.
4330
4331 2005-10-03  Ian Lance Taylor  <ian@airs.com>
4332
4333         * gimplify.c (find_single_pointer_decl_1): New static function.
4334         (find_single_pointer_decl): New static function.
4335         (internal_get_tmp_var): For a formal variable, set restrict base
4336         information if appropriate.
4337         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
4338         return it.
4339         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
4340         (DECL_GET_RESTRICT_BASE): Define.
4341         (SET_DECL_RESTRICT_BASE): Define.
4342         (decl_restrict_base_lookup): Declare.
4343         (decl_restrict_base_insert): Declare.
4344         (struct tree_decl_with_vis): Add based_on_restrict_p field.
4345         * tree.c (restrict_base_for_decl): New static variable.
4346         (init_ttree): Initialize restrict_base_for_decl.
4347         (copy_node_stat): Copy restrict base information.
4348         (decl_restrict_base_lookup): New function.
4349         (decl_restrict_base_insert): New function.
4350         (print_restrict_base_statistics): New static function.
4351         (dump_tree_statistics): Call print_restrict_base_statistics.
4352
4353 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
4354
4355         PR 24142
4356         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
4357         case of anti-ranges.
4358
4359 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
4360
4361         PR c/18851
4362         * c-typeck.c (tagged_tu_seen): Rename to ...
4363         (tagged_tu_seen_cache): this and add val field.
4364         (comptypes): Move functional to comptypes_internal
4365         and free tagged_tu_seen.
4366         (comptypes_internal): New function and call comptypes_internal
4367         instead of comptypes. Speed up by sibcalling
4368         tagged_types_tu_compatible_p.
4369         (alloc_tagged_tu_seen): New function
4370         (free_all_tagged_tu_seen_up_to): New function.
4371         (tagged_types_tu_compatible_p): Return the val of the seen two
4372         types.
4373         Add that the two types are the same to tagged_tu_seen_base
4374         if they are and call comptypes_internal instead of comptypes.
4375         <case UNION_TYPE>: Speed up common type where the fields are
4376         in the same order.
4377         (function_types_compatible_p): Call comptypes_internal instead of
4378         comptypes.
4379         (type_lists_compatible_p): Likewise.
4380         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
4381
4382 2005-10-02  Matthias Klose  <doko@debian.org>
4383
4384         * doc/invoke.texi: Fix typo and speling error.
4385
4386 2005-10-01  Richard Henderson  <rth@redhat.com>
4387
4388         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
4389
4390 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
4391
4392         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
4393         using --start-group and --end-group.
4394
4395 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
4396
4397         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
4398         FIXME note regarding quirky semantics.
4399
4400 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
4401
4402         PR 24141
4403         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
4404         non-null range as a last resort.
4405
4406 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
4407             Diego Novillo  <dnovillo@redhat.com>
4408
4409         PR 23604
4410         * tree-vrp.c (extract_range_from_assert): For !=
4411         assertions, only build an anti-range if LIMIT is a
4412         single-valued range.
4413
4414 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
4415
4416         * arm.md (movqi): On thumb when optimizing, handle loading from
4417         memory by describing this as taking a subreg of a zero-extended load
4418         into an SImode register.
4419         (movhi): Likewise.
4420
4421 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
4422
4423         * reload1.c (merge_assigned_reloads): Do not change any
4424         RELOAD_FOR_OUTPUT_ADDRESS reloads.
4425
4426 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
4427
4428         * Makefile.in (LIPO_FOR_TARGET): Define.
4429         (STRIP_FOR_TARGET): Define.
4430
4431         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
4432         before creating new ones.  Do symlinks before creating the actual
4433         targets.
4434
4435         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
4436         to work out which multilibs are actually being built.
4437
4438 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
4439
4440         * tree-vect-transform.c, config/ms1/ms1.md,
4441         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
4442         Follow spelling conventions.
4443         * doc/invoke.texi, doc/md.texi: Fix typos.
4444
4445 2005-09-30  Andrew Macleod  <amacleod@redat.com>
4446
4447         PR tree-optimization/21430
4448         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
4449         use operands, and set stmt pointer if need be.
4450         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
4451         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
4452         present.
4453
4454 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4455
4456         PR middle-end/24053
4457         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
4458
4459 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
4460
4461         * optabs.c (expand_binop): Initialize first_pass_p.
4462
4463 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
4464
4465         PR middle-end/24109
4466         * c-decl.c (c_write_global_declarations_1): If any
4467         wrapup_global_declaration_2 call returned true, restart the loop.
4468
4469 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
4470
4471         Fix PR tree-optimization/24117
4472         * tree-ssa-structalias.c (find_func_aliases): Strip nops
4473         before considering whether to use anyoffset.
4474
4475 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
4476
4477         Revert this patch:
4478
4479         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
4480
4481         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
4482         to order operands.
4483         (swap_commutative_operands_with_target): New.
4484
4485 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
4486
4487         PR c/21419
4488         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
4489         read-only.
4490
4491 2005-09-29  Steven Bosscher  <stevenb@suse.de>
4492
4493         PR tree-optimization/23911
4494         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
4495         and IMAGPART_EXPR too.
4496
4497 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
4498
4499         PR 17886
4500         * expmed.c (expand_shift): Move logic to reverse rotation
4501         direction when  rotating by constants ...
4502         * optabs.c (expand_binop): ... here.
4503         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
4504         (ix86_rotrdi3): New pattern.
4505         (rotldi3): Handle 32-bit mode.
4506         (ix86_rotldi3): New pattern.
4507
4508 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
4509
4510         PR target/24102
4511         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
4512         check for numbers that need no bit twiddle.
4513
4514 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
4515
4516         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
4517         multilib to be built.
4518
4519         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
4520         (stage1-start): Delete old libgcc and libunwind before moving
4521         anything into the stage directory.
4522         (stage2-start): Likewise.
4523         (stage3-start): Likewise.
4524         (stage4-start): Likewise.
4525         (stageprofile-start): Likewise.
4526         (stagefeedback-start): Likewise.
4527         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
4528         header in tm_file and CPU-specific t-darwin in tmake_file.
4529         (i[34567]86-*-darwin*): Don't change tm_file.
4530         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
4531         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
4532         shared library stub for target OS version.
4533         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
4534         (SHLIB_LINK): Don't make SHLIB_SOLINK.
4535         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
4536         (libgcc_s.%.dylib): New.
4537         (LIBGCC): Define.
4538         (install-darwin-libgcc-stubs): New.
4539         (INSTALL_LIBGCC): New append.
4540         * config/i386/darwin-libgcc.10.4.ver: New.
4541         * config/i386/darwin-libgcc.10.5.ver: New.
4542         * config/i386/t-darwin: New.
4543         * config/rs6000/darwin-libgcc.10.4.ver: New.
4544         * config/rs6000/darwin-libgcc.10.5.ver: New.
4545         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
4546         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
4547
4548 2005-09-28  Paul Brook  <paul@codesourcery.com>
4549
4550         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
4551         denormals.
4552
4553 2005-09-28  Richard Guenther  <rguenther@suse.de>
4554
4555         PR tree-optimization/23853
4556         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
4557         host_integerp to verify misalignment value.
4558
4559 2005-09-28  Richard Henderson  <rth@redhat.com>
4560
4561         * builtins.c (get_builtin_sync_mode): New.
4562         (expand_builtin_sync_operation): Pass in mode argument.
4563         (expand_builtin_compare_and_swap): Likewise.
4564         (expand_builtin_lock_test_and_set): Likewise.
4565         (expand_builtin_lock_release): Likewise.
4566         (expand_builtin): Update to match.
4567
4568 2005-09-28  Nick Clifton  <nickc@redhat.com>
4569
4570         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
4571         formatting.  Add check to PLUS case to ensure that the offset is
4572         within an acceptable range.
4573
4574         * config/v850/v850.md (casesi): Disable the generation of the
4575         switch pattern as it is not being handled properly at the moment.
4576
4577         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
4578         for when the high words are identical.
4579
4580 2005-09-27  Richard Henderson  <rth@redhat.com>
4581
4582         * pretty-print.c (pp_base_format): Fix typo for %>.
4583
4584 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
4585             Devang Patel  <dpatel@apple.com>
4586
4587         PR tree-optimization/23625
4588         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
4589         LABEL_EXPR, assertion check.
4590
4591 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
4592
4593         * optabs.c (no_conflict_move_test): Check if a result of a
4594         to-be-moved insn would be clobbered by an originally
4595         preceding insn.
4596
4597 2005-09-27  Jeff Law  <law@redhat.com>
4598
4599         * passes.c (init_optimization_passes): Replace copy propagation
4600         passes immediately after DOM with phi-only copy propagation
4601         pases.  Add phi-only copy propagation pass after first DOM pass.
4602         * tree-pass.h (pass_phi_only_copy_prop): Declare.
4603         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
4604         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
4605         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
4606         to init_copy_prop.  Callers updated.
4607         (do_phi_only_copy_prop): New function.
4608         (pass_phi_only_copy_prop): New pass descriptor.
4609
4610 2005-09-27  Nick Clifton  <nickc@redhat.com>
4611
4612         * libgcc2.c (__popcount_tab): Remove redundant prototype.
4613
4614 2005-09-26  Jason Merrill  <jason@redhat.com>
4615
4616         PR c++/13764
4617         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
4618
4619         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
4620
4621 2005-09-26  James E Wilson  <wilson@specifix.com>
4622
4623         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
4624         copyright.  Add gcc copyright plus libgcc exception.
4625         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
4626         copyright.
4627         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
4628
4629 2005-09-26  Jeff Law  <law@redhat.com>
4630
4631         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
4632         about when to iterate.
4633
4634 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
4635
4636         PR target/23847
4637         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
4638         for __complex__ double in -mcpu=G5 mode.
4639
4640 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
4641
4642         PR tree-optimization/23942
4643         * Makefile.in (SCEV_H): Depends on PARAMS_H.
4644         * tree-scalar-evolution.c: Include params.h.
4645         (t_bool): New enum.
4646         (follow_ssa_edge, follow_ssa_edge_in_rhs,
4647         follow_ssa_edge_in_condition_phi_branch,
4648         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
4649         Change return type to t_bool.  Use a parameter to limit the size of
4650         trees that are walked before stopping
4651         (analyze_evolution_in_loop): Initialize the limit to 0.
4652         (follow_ssa_edge): Give up by returning t_dont_know if the limit
4653         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
4654
4655 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
4656
4657         PR middle-end/23831
4658         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
4659         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
4660
4661 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
4662
4663         * combine.c (make_extraction): Check for valid use of subreg.
4664
4665 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
4666
4667         PR target/24055
4668         * config/i386/i386.md ("*fistdi2_1"): New pattern.
4669         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
4670         ("fist<mode>2_with_temp"): Use only register operands.
4671
4672 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
4673
4674         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
4675         CALL_INSN_FUNCTION_USAGE.
4676
4677 2005-09-26  Richard Guenther  <rguenther@suse.de>
4678
4679         PR middle-end/15855
4680         * gcse.c: Include hashtab.h, define ldst entry hashtable.
4681         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
4682         (ldst_entry): Use the hashtable instead of list-walking.
4683         (find_rtx_in_ldst): Likewise.
4684         (free_ldst_entry): Free the hashtable.
4685         (compute_ld_motion_mems): Create the hashtable.
4686         (trim_ld_motion_mems): Remove entry from hashtable if
4687         removing it from list.
4688         (compute_store_table): Likewise^2.
4689         (store_motion): Free hashtable in case we did not see
4690         any stores.
4691
4692 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
4693
4694         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
4695         and arg1 if we are passing them to fold_build2.
4696
4697 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
4698
4699         PR 23828
4700         * config/i386/i386.c (ix86_function_regparm): Fix the test for
4701         a nested function.
4702
4703 2005-09-25  Richard Henderson  <rth@redhat.com>
4704
4705         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
4706         SYMBOL_REF_TLS_MODEL to be correct.
4707
4708 2005-09-24  Richard Henderson  <rth@redhat.com>
4709
4710         * ipa-type-escape.c (discover_unique_type): Remove dead code at
4711         end of function.  Reindent.
4712
4713 2005-09-24  Ian Lance Taylor  <ian@airs.com>
4714
4715         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
4716         NEGATE_EXPR/BIT_NOT_EXPR case.
4717
4718 2005-09-24  Richard Henderson  <rth@redhat.com>
4719
4720         * c-common.c (handle_mode_attribute): When not modifying in place,
4721         create subtypes for enumerations.
4722         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
4723         * gimplify.c (create_tmp_from_val): Likewise.
4724
4725 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
4726
4727         * config/i386/i386.md (*tls_global_dynamic_64,
4728         *tls_local_dynamic_base_64): Add missing mode to call.
4729         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
4730
4731 2005-09-24  Jan Hubicka  <jh@suse.cz>
4732
4733         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
4734         (cgraph_clone_node): Likewise.
4735         * cgraph.h (cgraph_clone_edge): Update prototype.
4736         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
4737         duplicated prototypes; add updating argument.
4738         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
4739         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
4740         updating profile.
4741         (cgraph_mark_inline_edge): Likewise.
4742         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
4743         (cgraph_flatten_node): Likewise.
4744         (cgraph_decide_recursive_inlining): Likewise.
4745         (cgraph_decide_inlining_of_small_function): Likewise.
4746         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4747
4748 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
4749             Pete Steinmetz <steinmtz@us.ibm.com>
4750
4751         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
4752         (rldic.): Set type to "compare".
4753         (rldicr.): Same.
4754         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
4755         mfjmpr for MFCTR/MFLR.
4756         (movdf_hardfloat64): Same.
4757         (movdf_softfloat64): Same.  Correct order of store and move types.
4758         (movti_string): Set type to store_ux/load_ux.
4759         (load_multiple): Set type to load_ux.
4760         (store_multiple): Set type to store_ux.
4761         (movmemsi): Set type to store_ux.
4762         (output_cbranch direct_return): Set type to jmpreg.
4763         (stmw): Set type to store_ux.
4764         (lmw): Set type to load_ux.
4765         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
4766         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
4767         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
4768         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
4769         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
4770         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
4771         (rios1-fpstore): Increase latency to 3.
4772         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
4773         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
4774
4775 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
4776             Andrew Pinski  <pinskia@physics.uc.edu>
4777
4778         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
4779         operand2 constraint to "b".
4780         (sync_<fetchop_name>di_internal): Same.
4781         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
4782         to "b".
4783         (sync_old_<fetchop_name>di_internal): Same.
4784         (sync_new_<fetchop_name>si_internal): Same.
4785         (sync_new_<fetchop_name>di_internal): Same.
4786
4787 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
4788
4789         PR middle-end/23991
4790         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
4791         case, define as macros.
4792
4793         PR rtl-optimization/23837
4794         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
4795         clobber / clobber match between dest and p->first.
4796
4797         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
4798         (no_conflict_move_test): Update comments.
4799
4800 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
4801
4802         * doc/install.texi: Update URL for Jacks.
4803         * doc/sourcebuild.texi: Likewise.
4804
4805 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
4806
4807         PR target/24007
4808         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
4809         registers when choosing register preferences.
4810         (movdf_hardfloat64): Same.
4811
4812 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
4813
4814         * expmed.c (expand_shift): Don't use the target of the rotate as
4815         target for the first expanded shift insn.
4816         * testsuite/gcc.dg/20050922-1.c: Testcase added.
4817
4818 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
4819
4820         PR tree-optimization/22438
4821         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
4822         preserved iv rhs rewriting specially.
4823
4824 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
4825
4826         * tree-data-ref.c (analyze_array_indexes): Only estimate when
4827         estimate_only  is true.
4828         * tree-flow.h (ref_contains_indirect_ref): New prototype.
4829         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
4830         tree-ssa-structalias.c
4831         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
4832         ref_contains_indirect_ref.
4833         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
4834
4835 2005-09-21  DJ Delorie  <dj@redhat.com>
4836
4837         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
4838         MASK_PTR_A0D0.
4839         (mn10300_return_in_memory): Support variable size types also.
4840         (mn10300_pass_by_reference): Likewise.
4841         (mn10300_function_value): New.
4842         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
4843         (FUNCTION_OUTGOING_VALUE): Likewise.
4844         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
4845         * doc/invoke.texi: Document it.
4846
4847 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
4848
4849         PR target/22585
4850         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
4851         force integer op1 into register for XFmode compares.
4852
4853 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
4854
4855         PR middle-end/23971
4856         * expmed.c (alg_code): Add alg_impossible.
4857         (alg_hash_entry): Add cost.
4858         (synth_mult): Record alg_impossible in the hash table if
4859         multiplication by a given integer is impossble within the
4860         limit.  Speed up using alg_impossible.
4861
4862 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
4863
4864         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
4865         argument.  Allow and set any offset if needs_anyoffset is passed
4866         in.
4867         (get_constraint_for): Add argument here too.
4868         Pass it down.
4869         (do_structure_copy): Pass NULL to get_constraint_for.
4870         (handle_ptr_arith): Ditto.
4871         (find_func_aliases): Ditto.
4872
4873 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
4874
4875         PR rtl-optimization/23898
4876         * output.h (get_attr_min_length): Declare.
4877         * final.c (get_attr_length_1): New function, broken out of:
4878         (get_attr_length).
4879         (get_attr_min_length): New function.
4880         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
4881         (duplicate_computed_gotos): Likewise.
4882         * genattr.c (insn_min_length): Generate declaration.
4883         * genattrtab.c (min_fn, min_attr_value): New functions.
4884         (make_length_attrs): Generate insn_min_length.
4885
4886 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
4887
4888         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
4889
4890 2005-09-20  Richard Henderson  <rth@redhat.com>
4891
4892         PR tree-optimization/24059
4893         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
4894         EXPAND_STACK_PARM.
4895
4896 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
4897
4898         * c.opt (fextended-identifiers): New.
4899         * c-opts.c (c_common_handle_option): Handle
4900         -fextended-identifiers.
4901         * doc/cpp.texi: Update documentation of extended identifiers.
4902         * doc/cppopts.texi (-fextended-identifiers): Document.
4903
4904 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4905
4906         PR tree-optimization/23929
4907         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
4908         if expr is NULL.
4909
4910         PR tree-optimization/23818
4911         * tree-stdarg.c (execute_optimize_stdarg): Call
4912         calculate_dominance_info.
4913
4914 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
4915
4916         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
4917         (analyze_siv_subscript_cst_affine): Add weak SIV test.
4918         (compute_overlap_steps_for_affine_1_2): Use
4919         get_number_of_iters_for_loop.
4920         (analyze_subscript_affine_affine): Check whether difference is
4921         zero first.
4922         Use get_number_of_iters_for_loop.
4923         Check whether overlap occurs outside of bounds.
4924         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
4925
4926 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
4927
4928         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
4929         base register if possible.
4930
4931 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
4932
4933         PR tree-optimization/18463
4934         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
4935         converting it directly is not possible.
4936         (chrec_convert_aggressive): New function.
4937         * tree-chrec.h (chrec_convert_aggressive): Declare.
4938         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
4939         Fold chrec conversions aggressively if asked to.
4940         (instantiate_parameters): Modified because of changes in
4941         instantiate_parameters_1.
4942
4943 2005-09-19  Richard Henderson  <rth@redhat.com>
4944
4945         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
4946         (reduc_splus_v2df): New.
4947
4948 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
4949
4950         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
4951         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
4952
4953 2005-09-19  Richard Henderson  <rth@redhat.com>
4954
4955         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
4956         vcondu<SSEMODE12>.
4957
4958 2005-09-19  Richard Henderson  <rth@redhat.com>
4959
4960         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
4961         (ia64_expand_dot_prod_v8qi): New.
4962         * config/ia64/ia64-protos.h: Update.
4963         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
4964         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
4965         sdot_prodv8qi, sdot_prodv4hi): New.
4966         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
4967
4968 2005-09-19  Richard Henderson  <rth@redhat.com>
4969
4970         PR 23941
4971         * real.c (exact_real_truncate): Return false if the format cannot
4972         represent the number as a normal.
4973
4974         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
4975         for a memory source.
4976
4977 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
4978
4979         * tree-ssa-operands.c (swap_tree_operands): Export.
4980         * tree.h (swap_tree_operands): Declare.
4981         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
4982         Call swap_tree_operands.
4983
4984 2005-09-19  Richard Henderson  <rth@redhat.com>
4985
4986         * tree-flow.h (merge_alias_info): Declare.
4987         * tree-ssa-copy.c (merge_alias_info): Export.
4988         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
4989         (vect_create_data_ref_ptr): Use create_iv directly.
4990         (vectorizable_load): Use correct types for integer constants.
4991         (vect_generate_tmps_on_preheader): Likewise.
4992         (vect_gen_niters_for_prolog_loop): Likewise.
4993
4994 2005-09-19  Steven Bosscher  <stevenb@suse.de>
4995
4996         PR rtl-optimization/23943
4997         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
4998
4999 2005-09-18  Jan Hubicka  <jh@suse.cz>
5000
5001         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
5002
5003 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
5004
5005         * varasm.c (output_constant): Do not abort on conversions to union
5006         types between different sizes.
5007
5008 2005-09-18  Richard Guenther  <rguenther@suse.de>
5009
5010         PR middle-end/23944
5011         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
5012         fallback.
5013
5014 2005-09-18  Paul Brook  <paul@codesourcery.com>
5015
5016         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
5017
5018 2005-09-17  Richard Henderson  <rth@redhat.com>
5019
5020         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
5021         * tree-ssa-loop.c (pass_vect_dce): Remove.
5022         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
5023         of pass_vectorize.
5024
5025 2005-09-17  Richard Henderson  <rth@redhat.com>
5026
5027         * tree-pass.h (pass_vect_dce): Declare.
5028         * passes.c (init_optimization_passes): Add it.
5029         * tree-flow.h (tree_ssa_dce): Declare.
5030         * tree-ssa-dce.c (tree_ssa_dce): Export.
5031         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
5032         (gate_tree_vectorize): ... here.
5033         (pass_vect_dce): New.
5034
5035 2005-09-17  Jan Hubicka  <jh@suse.cz>
5036
5037         * except.c (struct eh_status): Turn region_array into vec.
5038         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
5039         convert_from_eh_region_ranges, find_exception_handler_labels,
5040         current_function_has_exception_handlers, assign_filter_values,
5041         build_post_landing_pads, dw2_build_landing_pads,
5042         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
5043         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
5044         foreach_reachable_handler, can_throw_internal_1,
5045         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
5046         region_array.
5047         (duplicate_eh_region_1): Update region_array.
5048         (duplicate_eh_regions): Resize region_array and avoid recomputing.
5049
5050 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
5051
5052         PR middle-end/22067
5053         * expmed.c (expand_mult): Substitute simple register for op0 when
5054         computing max_cost.
5055
5056 2005-09-17  Richard Henderson  <rth@redhat.com>
5057
5058         * expr.c (emit_move_via_integer): Add force argument, pass it on
5059         to emit_move_change_mode.  Update callers.
5060         (emit_move_complex): Pass true to new force argument.
5061         * function.c (expand_function_end): Move expand_eh_return call
5062         earlier.  Merge sub-word complex values into a pseudo before
5063         copying to the return hard register.
5064
5065 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5066
5067         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
5068         between different sizes.
5069
5070 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
5071
5072         PR 23903
5073
5074         * passes.c (init_optimization_passes): Register dump files for
5075         IPA passes first.
5076
5077 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
5078
5079         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
5080         * config/s390/s390.c (s390_overlap_p): New function.
5081         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
5082         peephole2, "*xc" peephole2): Added overlap check to the peephole2
5083         condition.
5084
5085 2005-09-16  Richard Guenther  <rguenther@suse.de>
5086
5087         * ipa-pure-const.c (static_execute): Free auxiliar information.
5088         * ipa-type-escape.c (discover_unique_type): Free temporary key.
5089         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
5090
5091 2005-09-15  DJ Delorie  <dj@redhat.com>
5092
5093         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
5094
5095 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
5096
5097         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
5098         to order operands.
5099         (swap_commutative_operands_with_target): New.
5100
5101 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
5102
5103         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
5104         parameter.
5105         Update callers.
5106         (estimate_iters_using_array): New function.
5107         * tree-data-ref.h (estimate_iters_using_array): Prototype
5108         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
5109         Use estimate_iters_using_array instead of analyze_array.
5110
5111 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5112
5113         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
5114         as addressable.
5115
5116 2005-09-15  Michael Matz  <matz@suse.de>
5117
5118         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
5119
5120 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
5121
5122         PR tree-optimization/23835
5123         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
5124         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
5125
5126 2005-09-14  Richard Henderson  <rth@redhat.com>
5127
5128         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
5129         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
5130
5131 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
5132
5133         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
5134         in the ARRAY_TYPE case.
5135
5136 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
5137
5138         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
5139
5140 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
5141
5142         PR middle-end/22480
5143         * tree-vect-transform.c (vectorizable_operation): Return false for
5144         scalar shift operations and for vector shift operations with
5145         non-invariant shift arguments.  Use scalar tree operand op1 as
5146         a shift operand when vector shift insn pattern uses scalar shift
5147         operand.
5148         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
5149
5150 2005-09-14  Olivier Hainque  <hainque@adacore.com>
5151
5152         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
5153         value if it has side-effects.
5154
5155 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
5156
5157         PR target/22068
5158         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
5159
5160 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
5161
5162         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
5163         passed as NAME as if it were label at start of function code.
5164
5165 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5166
5167         * config/sh/sh.md (*movv4sf_i): Add general register cases to
5168         the constraints.
5169
5170 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
5171
5172         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
5173         as early clobber.  Rewrite so the PIC register is not implicitly used.
5174
5175 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5176
5177         * tree.c (annotate_with_file_line): Compare line numbers before
5178         file names.
5179
5180 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
5181
5182         PR target/23816
5183         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
5184         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
5185
5186 2005-09-13  Ian Lance Taylor  <ian@airs.com>
5187
5188         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
5189         than a HOST_WIDEST_INT to gen_doloop_begin.
5190
5191 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
5192
5193         * tree-dfa.c (dump_variable): Guard against NULL annotations.
5194
5195 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
5196
5197         PR tree-optimize/23817
5198         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
5199
5200 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
5201
5202         PR target/23774
5203         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
5204         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
5205         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
5206         (restore_stack_nonlocal): Likewise.
5207         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
5208
5209 2005-09-12  Ian Lance Taylor  <ian@airs.com>
5210
5211         PR g++/7874
5212         * c.opt (ffriend-injection): New C++ option.
5213         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
5214         (C++ Dialect Options): Document -ffriend-injection.
5215
5216 2005-09-12  Josh Conner  <jconner@apple.com>
5217
5218         PR middle-end/23237
5219         * ipa-reference.c (static_execute): Don't mark variables in
5220         named sections TREE_READONLY.
5221
5222 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
5223
5224         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
5225         stack_tie.
5226
5227 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
5228
5229         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
5230         V_MUST_DEF instead of just the first_use_p.
5231         Don't mark the virtual variables for renaming on the statement which
5232         is being removed.
5233         (pass_dse): Remove TODO_update_ssa.
5234
5235 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
5236
5237         PR middle-end/23290
5238         * stor-layout.c (compute_record_mode): For records with a single
5239         field, actually check the field's mode size against the type size.
5240
5241         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
5242         registers for TARGET_SHMEDIA.
5243         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
5244         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
5245         of GENERAL_REGS and FP_REGS.
5246
5247 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
5248
5249         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
5250
5251 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
5252
5253         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
5254         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
5255         are omitted.  Exclude stack_tie insn too.
5256
5257 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
5258
5259         PR rtl-optimization/23098
5260         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
5261         0.0f is easy.
5262         * config/rs6000/rs6000.md (movdf splitter): Use
5263         const_double_operand predicate for TARGET_POWERPC64.
5264         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
5265         SYMBOL_REF method to ABI_V4.
5266
5267         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
5268         replace_equiv_address.
5269         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
5270         rs6000_sr_alias_set and MEM_NOTRAP.
5271         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
5272
5273 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
5274
5275         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
5276         handle CALL_EXPR again.
5277
5278 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
5279
5280         * arm/predicates.md (alignable_memory_operand): Delete.
5281
5282 2005-09-10  Richard Henderson  <rth@redhat.com>
5283
5284         PR debug/23806
5285         * dbxout.c (dbxout_expand_expr): New.
5286         (dbxout_symbol): Use it.
5287
5288 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
5289
5290         * arm.c (arm_gen_rotated_half_load): Delete.
5291         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
5292         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
5293         (thumb_set_return_address): Likewise.
5294         (thumb_load_double_from_address): Use adjust_address.
5295         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
5296         (extendhsisi2_mem, movhi_bytes): Use change_address.
5297         (movhi): Use widen_memory_access.
5298         (reload_out_df): Use replace_equiv_address.
5299         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
5300
5301 2005-09-09  Richard Henderson  <rth@redhat.com>
5302
5303         PR debug/20998
5304         * dbxout.c: Include expr.h.
5305         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
5306         (dbxout_symbol): Handle DECL_VALUE_EXPR.
5307         * Makefile.in (dbxout.o): Add EXPR_H.
5308
5309 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
5310
5311         PR tree-optimization/23509
5312         * tree-cfg.c (replace_uses_by): Use replace_exp.
5313         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
5314         pointers have name_mem_tag or type_mem_tag set.
5315
5316 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
5317
5318         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
5319         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
5320         of wrongly accessing operands.
5321
5322 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
5323
5324         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
5325         * tree-chrec.c: Include tree-scalar-evolution.h.
5326         (chrec_convert): Instantiate the base and step before calling
5327         scev_probably_wraps_p that would fail on parametric evolutions.
5328         Collect all the fails into a single section failed_to_convert,
5329         print a diagnostic, and return chrec_dont_know instead of calling
5330         fold_convert.
5331         * tree-scalar-evolution.c (loop_closed_phi_def): New.
5332         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
5333         phi nodes.
5334         (scev_const_prop): Don't replace the definition of a loop closed ssa
5335         phi node by itself, or by another loop closed ssa phi node.
5336         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
5337         that base and step are defined.
5338
5339 2005-09-09  Richard Guenther  <rguenther@suse.de>
5340
5341         PR c++/23624
5342         * fold-const.c (fold_ternary): Check truth_value_p before
5343         calling invert_truthvalue.
5344
5345 2005-09-09  Nick Clifton  <nickc@redhat.com>
5346
5347         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
5348         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
5349         dimension of these arrays.
5350         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
5351         these arrays.
5352         * longlong.h: Only provide a prototype for the __clz_tab[] array
5353         if this header has not been included from libgcc2.h.
5354         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
5355         defining own types.
5356         Provide prototypes for exported functions.
5357         Use the __clz_tab[] and __popcount_tab[] arrays provided by
5358         libgcc2.c.
5359
5360 2005-09-08  Josh Conner  <jconner@apple.com>
5361
5362         PR c++/21135
5363         PR c++/23180
5364         * expr.c (expand_expr_addr_expr_1): Don't invoke
5365         expand_simple_binop for EXPAND_INITIALIZER.
5366
5367 2005-09-08  Richard Henderson  <rth@redhat.com>
5368
5369         PR debug/23190
5370         * toplev.c (wrapup_global_declaration_1): Split out ...
5371         (wrapup_global_declaration_2): ... from ...
5372         (wrapup_global_declarations): ... here.  Return bool.
5373         (check_global_declaration_1): Split out ...
5374         (check_global_declarations): from here.
5375         (emit_debug_global_declarations): New.
5376         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
5377         check_global_declaration_1, emit_debug_global_declarations): Declare.
5378         * c-decl.c (c_write_global_declarations_1): Don't create a vector
5379         of decls.  Call wrapup_global_declaration_1,
5380         wrapup_global_declaration_2, check_global_declaration_1 directly.
5381         (c_write_global_declarations_2): New.
5382         (ext_block): New.
5383         (c_write_global_declarations): Call c_write_global_declarations_2.
5384         * langhooks.c (write_global_declarations): Call
5385         emit_debug_global_declarations.
5386
5387         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
5388         remove decls that have DECL_RTL_SET_P.
5389         * passes.c (rest_of_decl_compilation): Invoke
5390         cgraph_varpool_finalize_decl for all but functions.
5391
5392 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5393
5394         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
5395         the result of a conversion if the new min and max cannot be compared.
5396
5397 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
5398
5399         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
5400         (override_options): Setting s390_sr_alias_set removed.
5401         (save_fpr, save_gprs): Set alias set to vararg or frame.
5402         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
5403         s390_sr_alias_set with get_frame_alias_set ().
5404         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
5405         get_varargs_alias_set ().
5406
5407 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
5408
5409         PR objc/20574
5410         PR objc/19324
5411         * c-parser.c (c_parser_objc_method_definition): If the next
5412         token is not "{", error out and don't start the function.
5413
5414 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
5415
5416         * tree-vrp.c (extract_range_from_expr): Move the check for non
5417         nullness after the check for gimple invariant.
5418
5419 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5420
5421         * tree.c (host_integerp, tree_low_cst): Correct function comment.
5422
5423 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5424
5425         PR target/23747
5426         * config/m32r.md (movmemsi_internal): Canonicalize order of
5427         operands in PLUS component of template.
5428
5429 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5430
5431         * reload1.c (fixup_eh_region_note): Remove assertion.
5432         (fixup_abnormal_edges): Reverted removal of call to
5433         find_many_sub_basic_blocks made on 2005-08-31.
5434
5435 2005-09-07  Richard Henderson  <rth@redhat.com>
5436
5437         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
5438         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
5439         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
5440         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
5441         rearrange for better packing.
5442         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
5443         (lookup_cfa_1): Remove inline marker.
5444         (cfa_equal_p): Split out of ...
5445         (def_cfa_1): ... here.  Use INVALID_REGNUM.
5446         (build_cfa_loc): Handle !cfa->indirect.
5447         (frame_pointer_cfa_offset): New.
5448         (dbx_reg_number): Assert register elimination performed; do
5449         leaf register remapping.
5450         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
5451         (eliminate_reg_to_offset): New.
5452         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
5453         for verifiably local stack frame addresses; re-base to CFA.
5454         (mem_loc_descriptor): Remove can_use_fbreg argument.
5455         (concat_loc_descriptor, loc_descriptor): Likewise.
5456         (containing_function_has_frame_base): Remove.
5457         (rtl_for_decl_location): Don't do register elimination or
5458         leaf register remapping here.
5459         (secname_for_decl): Split out from ..
5460         (add_location_or_const_value_attribute): ... here.
5461         (convert_cfa_to_loc_list): New.
5462         (compute_frame_pointer_to_cfa_displacement): New.
5463         (gen_subprogram_die): Use them.
5464         * tree.h (frame_base_decl): Remove.
5465         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
5466         (prologue_stack_adjust): Remove.
5467         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
5468         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
5469         (set_frame_base_location): Remove.
5470         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
5471         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
5472         (vt_add_function_parameters): Don't eliminate_regs.
5473         (vt_initialize): Don't create frame_base_decl.
5474
5475 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5476
5477         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
5478         version of GNU binutils for 4.x and later.
5479
5480 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
5481
5482         * ggc-page.c (ggc_push_context): Remove.
5483         (ggc_pop_context): Likewise.
5484         * ggc.h (ggc_push_context): Remove.
5485         (ggc_pop_context): Likewise.
5486
5487 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5488
5489         PR target/8973
5490         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
5491         returning from an interrupt handler.
5492
5493 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5494
5495         PR target/8972
5496         * config/arc/arc.c (output_shift): Add check for loop count when
5497         optimizing.
5498
5499 2005-09-06  Steven Bosscher  <stevenb@suse.de>
5500
5501         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
5502         form manually.
5503         (abs_replacement): Likewise.
5504         (pass_phiopt): Remove TODO_update_ssa.
5505
5506 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
5507
5508         PR c/23075
5509         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
5510         if "return with no value, in function returning non-void" warning
5511         has been issued.
5512         * tree-cfg.c (execute_warn_function_return): Don't look at
5513         RETURN_EXPRs with TREE_NO_WARNING set.
5514
5515         PR target/22362
5516         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
5517         for internal functions doesn't use registers used by global registers
5518         variables.  Use fewer register parameters if there are global register
5519         variables.
5520
5521 2005-09-06  Olivier Hainque  <hainque@adacore.com>
5522             Eric Botcazou  <ebotcazou@adacore.com>
5523
5524         PR middle-end/14997
5525         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
5526         when we would be extracting outside its bit span (bitpos+bitsize
5527         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
5528         Ada unchecked conversions.
5529
5530 2005-09-06  Steven Bosscher  <stevenb@suse.de>
5531
5532         * tree-ssa-pre.c (try_look_through_load): New function.
5533         (compute_avail): Use it to try to look through loads for some
5534         more useful expressions.
5535
5536 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5537
5538         * simplify-rtx.c (simplify_binary_operation_1): Correct the
5539         condition for detecting cases like (a&a) and (a^a).
5540
5541 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
5542
5543         * common.opt: Add option ftree-vect-loop-version.
5544         * params.def: Add --param vect-max-version-checks.
5545         * doc/invoke.texi: Document ftree-vect-loop-version and
5546         --param vect-max-version-checks.
5547         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
5548         may_misalign_stmts and defines for accessors.
5549         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
5550         LOOP_VINFO_MAY_MISALIGN_STMTS.
5551         (destroy_loop_vec_info): VEC_free for
5552         LOOP_VINFO_MAY_MISALIGN_STMTS.
5553         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5554         Update documentation.
5555         (vect_update_misalignment_for_peel): New.
5556         (vect_enhance_data_refs_alignment): Update to choose loop
5557         peeling or loop versioning if appropriate for the (potentially)
5558         unaligned data references in the loop.
5559         (vect_analyze_data_refs_alignment): Remove call to
5560         vect_enhance_data_refs_alignment so the checks can be done
5561         earlier.
5562         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
5563         and move up call to vect_analyze_data_refs_alignment.
5564         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
5565         (vect_transform_loop): Add call to loop_version.
5566
5567 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
5568
5569         PR rtl-optimization/23098
5570         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
5571         * simplify-rtx.c (constant_pool_reference_p): New function.
5572         * rtl.h (constant_pool_reference_p): New prototype.
5573         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
5574         constant_pool_reference_p in condition and
5575         avoid_constant_pool_reference in preparation statements.
5576
5577 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5578
5579         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
5580         STRICT_LOW_PART SETs.
5581
5582 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
5583
5584         PR middle-end/21460
5585         * except.c (sjlj_emit_function_enter): Find the function begin
5586         note even when it's not in first basic block.
5587
5588 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
5589
5590         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
5591         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
5592         * aclocal.m4: Regenerate.
5593
5594 2005-09-05  DJ Delorie  <dj@redhat.com>
5595
5596         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
5597         of macro.
5598
5599 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
5600
5601         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
5602         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
5603         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
5604         Follow spelling conventions.
5605         * doc/invoke.texi: Follow spelling conventions.
5606
5607 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
5608
5609         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
5610         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
5611         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
5612
5613 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
5614
5615         PR target/23683
5616         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
5617         (output_stack_adjust): Use gen_tmp_stack_mem.
5618         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
5619         (sh_set_return_address, sh_allocate_initial_value): Likewise.
5620         (sh_get_pr_initial_val): Likewise.
5621         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
5622         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
5623         * sh.md (divsi_inv_m0): Use gen_const_mem.
5624         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
5625         (movdf_i4+1): Use gen_tmp_stack_mem.
5626         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
5627         (fpu_switch+2): Likewise.
5628         (movv4sf_i, movv16sf_i): Use adjust_address.
5629         (symGOT_load): Set MEM_NOTRAP_P bit.
5630
5631 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5632
5633         PR target/23721
5634         * pa.c (emit_move_sequence): Fix typo in last change.
5635
5636 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
5637
5638         PR rtl-optimization/23454
5639         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
5640         is true.
5641
5642 2005-09-03  Richard Henderson  <rth@redhat.com>
5643             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5644
5645         PR middle-end/23671
5646         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
5647         gen_rtx_MEM.
5648
5649 2005-09-02  Nicolas Pitre <nico@cam.org>
5650
5651         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
5652         to bit_count to 32 bits.
5653
5654 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
5655
5656         PR c++/23167
5657         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
5658         generating synthetic loads from volatile lvalues.
5659
5660 005-09-02  Nick Clifton  <nickc@redhat.com>
5661
5662         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
5663         __ctzhi2, __clzhi2): New functions.
5664
5665 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
5666
5667         PR middle-end/23547
5668         * tree-nested.c (struct var_map_elt): Mark with GTY.
5669         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
5670         var_map_elt.
5671         (lookup_field_for_decl): Allocate new element in GC memory.
5672         (lookup_tramp_for_decl): Likewise.
5673         (convert_nl_goto_reference): Likewise
5674         (create_nesting_tree): Allocate info in GC memory. Likewise for
5675         info->var_map.
5676         (free_nesting_tree): Free with ggc_free instead of free.
5677         (root): New static variable.
5678         (lower_nested_functions): Remove root as local variable.  And zero out
5679         root at the end of the function.
5680
5681 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
5682
5683         PR rtl-optimization/20365
5684         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
5685         to short.  New member ix.
5686         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
5687         (simplify_plus_minus): Initialize ix members before calling qsort.
5688
5689 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
5690
5691         PR tree-optimization/23626
5692         * tree-cfg.c (replace_uses_by): Clean up eh info.
5693
5694 2005-09-01  DJ Delorie  <dj@redhat.com>
5695
5696         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
5697         fprintf.
5698
5699 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
5700
5701         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
5702         (rs6000_split_multireg_move): Use replace_equiv_address instead of
5703         gen_rtx_MEM.
5704
5705 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5706
5707         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
5708         do not issue warning for a variable definition following
5709         a declaration.
5710
5711 2005-09-01  Richard Henderson  <rth@redhat.com>
5712
5713         PR 23668
5714         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
5715         conversion to CONST_VECTOR.
5716
5717 2005-09-01  Richard Henderson  <rth@redhat.com>
5718
5719         PR 23676
5720         * reload1.c (reload_as_needed): Check !CALL_P before calling
5721         fixup_eh_region_note.
5722         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
5723
5724 2005-09-01  DJ Delorie  <dj@redhat.com>
5725
5726         * varasm.c (output_constant): Let the target resolve
5727         conversions of addresses to non-default pointer sizes.
5728
5729 2005-09-01  Nicolas Pitre <nico@cam.org>
5730
5731         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
5732         to alow matching ARM pre-indexed addressing mode.
5733         (arm_override_options): Remove now irrelevant comment.
5734
5735 2005-09-01  Phil Edwards  <phil@codesourcery.com>
5736
5737         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
5738         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
5739         * config/i386/vxworks.h:  Likewise.
5740         * config/i386/t-vxworksae:  New file, for VxWorks AE.
5741         * config/i386/vxworksae.h:  Likewise.
5742
5743 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
5744
5745         PR tree-optimization/23410
5746         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
5747         sequence is not wrapping during the first step.
5748
5749 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
5750
5751         PR debug/7241
5752         * dwarf2out.c (base_type_die): Compare char_type_node with
5753         TYPE_MAIN_VARIANT (type), not type.
5754
5755 2005-09-01  Richard Guenther  <rguenther@suse.de>
5756
5757         PR tree-optimization/15366
5758         * common.opt: Add -finline-functions-called-once.
5759         Put -fearly-inlining in alphabetically ordered place.
5760         * doc/invoke.texi: Document new option.
5761         * ipa-inline.c (cgraph_decide_inlining): Honour
5762         flag_inline_functions_called_once.
5763
5764 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
5765
5766         PR rtl-optimization/23478
5767         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
5768         (alloc_qty): Initialize it.
5769         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
5770         (combine_regs): Combine also n_throwing_calls_crossed fields.
5771         (find_free_reg): Don't attempt to caller-save pseudos crossing
5772         calls that might throw.
5773         * global.c (struct allocno): Add throwing_calls_crossed field.
5774         (global_alloc): Revert 2005-08-22 change.  Initialize
5775         throwing_calls_crossed.
5776         (find_reg): Don't attempt to caller-save pseudos crossing calls that
5777         might throw.
5778
5779 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
5780
5781         PR target/23649
5782         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
5783         (mask64_operand): Reinstate code prior to 2005-06-11 change.
5784         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
5785         (and64_2_operand): Tweak to use predicate.
5786         (and_operand): Adjust for mask_operand changes.
5787         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
5788         (print_operand): Likewise.
5789         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
5790         (mask64_1or2_operand): Delete.
5791         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
5792         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
5793         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
5794         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
5795         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
5796         (rotldi3_internal4): Likewise.
5797         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
5798         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
5799         (ashldi3_internal7): Likewise.
5800         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
5801         (ashldi3_internal, ashldi3_internal9 split): Likewise.
5802         (anddi3 split): Don't match mask64_operand.
5803         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
5804         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
5805         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
5806         't' splitter predicate.
5807         (movdi_internal64 + 2): Revert 2005-06-11 change.
5808
5809 2005-08-31  DJ Delorie  <dj@redhat.com>
5810
5811         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
5812         (m32c_asm_integer): Add support for 32 bit pointers.
5813
5814 2005-08-31  Richard Henderson  <rth@redhat.com>
5815
5816         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
5817         component-like references for setting MEM_NOTRAP_P.
5818
5819         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
5820         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
5821
5822 2005-08-31  Richard Henderson  <rth@redhat.com>
5823
5824         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
5825         into a pseudo before applying gen_lowpart.
5826
5827 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
5828
5829         * doc/install.texi (Specific): Update cctools version required
5830         for full functionality.
5831         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
5832         linkers as -macosx_version_min.
5833
5834 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
5835
5836         PR target/21255
5837         * sh.c (print_operand, %R and %S): Add handling of floating point
5838         registers, memory, constants and invalid operands.
5839
5840 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
5841
5842         * ipa-pure-const.c: Change dump name.
5843
5844 2005-08-31 Uros Bizjak <uros@kss-loka.si>
5845
5846         PR target/23570
5847         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
5848         to "reg_or_0_operand".
5849         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
5850
5851 2005-08-31  Dale Johannesen  <dalej@apple.com>
5852
5853         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
5854         loops that count down.
5855
5856 2005-08-31  Richard Henderson  <rth@redhat.com>
5857
5858         PR rtl-opt/23601
5859         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
5860         (fixup_eh_region_note): New.
5861         (reload_as_needed): Call it.
5862         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
5863         don't call find_many_sub_basic_blocks; call verify_flow_info.
5864         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
5865         (keep_stack_depressed): Likewise.
5866         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
5867
5868 2005-08-31  Richard Henderson  <rth@redhat.com>
5869
5870         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
5871         fp return matching.
5872
5873 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
5874
5875         * expr.c (expand_expr_real_1): Compare size of address
5876         mode to target's address mode size in deciding expansion of
5877         the constant address.
5878
5879 2005-08-31  Richard Guenther  <rguenther@suse.de>
5880
5881         PR middle-end/23477
5882         * expr.c (all_zeros_p): New function.
5883         (expand_expr_real_1): Handle the case of an all-zero
5884         non-addressable constructor separately.
5885
5886 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
5887
5888         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
5889         arguments, adjust all callers.
5890         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
5891
5892 2005-08-30  Richard Henderson  <rth@redhat.com>
5893
5894         PR target/23630
5895         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
5896         whenever the mode sizes match.
5897
5898 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
5899
5900         * calls.c (load_register_parameters): Fix comment typo.
5901         * expr.c (emit_push_insn): Comment formatting.
5902
5903 2005-08-30  Ian Lance Taylor  <ian@airs.com>
5904
5905         * config/i386/x-cygwin (host-cygwin): Change dependency from
5906         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
5907
5908 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
5909
5910         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
5911         parts of 'vals'.
5912
5913 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
5914
5915         PR middle-end/23408
5916         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
5917         call to ggc_collect.
5918
5919 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
5920
5921         PR bootstrap/21268
5922         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
5923         beginning.  Remove $(INCLUDES) from all the rules, if following
5924         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
5925
5926 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
5927
5928         PR middle-end/23484
5929         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
5930         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
5931         not constant, but maxlen is, don't set len to maxlen, rather
5932         set maxlen to len if len is a constant.
5933
5934 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
5935
5936         PR tree-optimization/23475
5937         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
5938         and counts.
5939
5940 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
5941
5942         Fix PR middle-end/22455
5943
5944         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
5945         Checksum only the parts of the tree that exist for the tree code.
5946
5947 2005-08-28  Dale Johannesen  <dalej@apple.com>
5948
5949         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
5950
5951 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
5952
5953         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
5954
5955 2005-08-28  Richard Henderson  <rth@redhat.com>
5956
5957         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
5958         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
5959         of char_type_node.
5960
5961 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
5962
5963         PR ada/23593
5964         * builtins.c (get_memory_rtx): Don't strip nops
5965         in between COMPONENT_REFs.
5966
5967 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
5968
5969         PR middle-end/23463
5970         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
5971         types.
5972         (gimplify_modify_expr): Check for zero sized types and gimplify the
5973         rhs and lhs as statements.
5974
5975 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
5976
5977         PR libgcj/23508
5978         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
5979         state for return address column of signal frames.
5980
5981 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
5982
5983         PR target/23539
5984         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
5985         bytes >= 2 not bytes == 2.
5986         (expand_block_move): Same.
5987
5988 2005-08-27  Richard Guenther  <rguenther@suse.de>
5989
5990         PR target/23575
5991         * config/i386/sse.md (sse2_movsd): Add missing closing
5992         braces.
5993
5994 2005-08-27  Paul Brook  <paul@codesourcery.com>
5995
5996         * genrecog.c (enum decision_type): Add DT_num_insns.
5997         (struct decision_test): Add u.num_insns.
5998         (add_to_sequence): Add DT_num_insns test.
5999         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
6000         (write_cond, debug_decision_2): Ditto.
6001         (change_state): Assume peep2_next_insn never fails.
6002         Remove "afterward" argument.
6003         (write afterward, write_tree): Update to match.
6004         * recog.c (peep2_current_count): New variable.
6005         (peep2_next_insn): Check it.
6006         (peephole2_optimize): Set peep2_current_count.
6007         * recog.h (peep2_current_count): Declare.
6008
6009 2005-08-26  Josh Conner  <jconner@apple.com>
6010
6011         PR middle-end/23584
6012         * ipa-pure-const.c (check_tree): Check for volatile-ness
6013         when considering a dereference.
6014
6015 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
6016
6017         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
6018
6019 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6020
6021         PR rtl-optimization/23561
6022         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
6023         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
6024         at most LEN bytes long memory fits into the field.
6025         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
6026         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
6027         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
6028
6029 2005-08-26  Richard Henderson  <rth@redhat.com>
6030
6031         PR rtl-opt/23560
6032         * loop.c (biased_biv_may_wrap_p): New.
6033         (maybe_eliminate_biv_1): Use it to suppress non-equality
6034         comparison transformations.  Delete disabled code.
6035
6036 2005-08-26  Ian Lance Taylor  <ian@airs.com>
6037
6038         * combine.c (make_extraction): Avoid reference outside object.
6039
6040 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
6041
6042         * stor-layout.c (finalize_type_size): Restore behaviour for
6043         non-aggregate types to the status quo ante of the patch for
6044         pr 23467.  Document why it matters.
6045
6046 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6047
6048         PR c/23506
6049         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
6050         array by one element, initialize the BT_LAST element with NULL.
6051
6052 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
6053
6054         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
6055         optimizing for size.
6056         (plus_eqsi): Same.
6057         (compare_plus_eqsi): Same.
6058         (plus_eqsi_compare): Same.
6059         (neg_eq0<mode>): Same.
6060         (neg_eq<mode>): Same.
6061
6062         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
6063         PROCESSOR_POWER4.
6064
6065 2005-08-26  Nick Clifton  <nickc@redhat.com>
6066
6067         * config/v850/v850.c (ep_memory_operand): Return FALSE if
6068         TARGET_EP is not defined.
6069         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
6070         TARGET_EP is enabled.
6071         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
6072         * config/v850/v850.md (save_all_interrupt): Only use the EP
6073         register if TARGET_EP is defined.
6074         (restore_all_interrupt): Likewise.
6075         * config/v850/lib1funcs.asm: Update functions so that the EP
6076         register is only used if __EP__ is defined.
6077
6078 2005-08-26  David Ung  <davidu@mips.com>
6079
6080         * config/mips/mips.c (mips_expand_prologue): Handle case when
6081         generating for MIPS16 and the outgoing argument area is more than
6082         SMALL_OPERAND. Use the frame pointer as temporary to generate the
6083         add instruction.
6084
6085 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
6086
6087         * config/crx/crx.md: Make doloop_end pattern usage controllable
6088         via mloop-nesting=<max-nesting> command line switch. Make sure
6089         the combiner cannot use doloop_end_<mode> in an illegal way.
6090         * config/crx/crx.c: Use regs up to r6 for argument passing.
6091         Refine crx_address_cost (non cst4 displacements are expensive).
6092         * config/crx/crx.opt: Add switch for mloop-nesting=.
6093
6094 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
6095
6096         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
6097         (UNSPEC_MVST): New constant.
6098
6099 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6100
6101         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
6102         Reject operands containing eliminable registers.
6103         * testsuite/gcc.dg/20050825-1.c: New testcase.
6104
6105 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6106             Jan Hubicka  <jh@suse.cz>
6107
6108         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
6109
6110 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6111
6112         PR tree-optimization/23546
6113         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
6114         and REAL_CST nodes.
6115
6116 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
6117
6118         * params.def (PARAM_MIN_SPEC_PROB): New.
6119         * sched-rgn.c (MIN_PROBABILITY): Delete.
6120         (compute_trg_info): Convert to PARAM_VALUE.
6121         * doc/invoke.texi (param): Document min-spec-prob.
6122
6123 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
6124
6125         * config/darwin.h: define __PIC__
6126         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
6127         TARGET_OS_CPP_BUILTINS macro.
6128
6129 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6130
6131         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
6132         yesterday.
6133
6134 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
6135
6136         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
6137         to duplicate_block.
6138         * cfghooks.c (duplicate_block): Added position where to place
6139         new block as argument.
6140         * cfghooks.h (duplicate_block): Declaration changed.
6141         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
6142         duplicate_block.
6143         * cfglayout.h (copy_bbs): Declaration changed.
6144         * cfgloop.h (loop_version): Declaration changed.
6145         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
6146         position to copy_bbs.
6147         (loop_version): Pass position to duplicate_loop_to_header_edge.
6148         Add place_after argument and position new blocks according to
6149         it.
6150         * modulo-sched.c (sms_schedule): Pass place_after argument
6151         to loop_version.
6152         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
6153         * tree-cfg.c (split_edge_bb_loc): New function.
6154         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
6155         to determine position of new blocks.
6156         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
6157         to loop_version.
6158         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
6159         argument to duplicate_block.
6160         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
6161         Pass position to copy_bbs.
6162
6163 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
6164
6165         * fold-const.c (ptr_difference_const): Use
6166         cst_and_fits_in_hwi instead of host_integerp.
6167
6168 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6169
6170         * config/darwin.c (gen_pic_offset): New.
6171         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
6172         Use it.
6173
6174 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
6175
6176         PR tree-optimization/23486
6177         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
6178
6179 2005-08-23  Phil Edwards  <phil@codesourcery.com>
6180
6181         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
6182         remove use_collect2.
6183         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
6184
6185         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
6186         configuration files to override the default value.
6187
6188         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
6189         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
6190         * config/vx-common.h:  New file, split out from...
6191         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
6192         * config/vxworksae.h:  New file, for VxWorks AE.
6193         * config/vxworks.opt:  New file.
6194         * config/vxlib.c:  Update for VxWorks 6.
6195
6196         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
6197         other MULTILIB_* variables appropriately.
6198         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
6199         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
6200         * config/rs6000/vxworks.h:  Update for VxWorks 6.
6201         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
6202
6203 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
6204
6205         PR target/20799
6206         * config/darwin.c (machopic_select_section): Remove the hack to
6207         mark "::operator new" and "::operator delete" for coalescing
6208         even though they are not weak.
6209
6210 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
6211
6212         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
6213         * configure: Regenerate.
6214
6215 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
6216
6217         PR middle-end/23517
6218         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
6219         between vectors.
6220         * convert.c (convert_to_integer, convert_to_vector): Likewise.
6221         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
6222         Likewise.
6223
6224 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
6225
6226         * config/rs6000/predicates.md (equality_operator): New.
6227         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
6228         comparison with a large constant.
6229
6230 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
6231
6232         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
6233
6234 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
6235
6236         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
6237         registers is even, and we have a hardware double precision fp,
6238         align the buffer.
6239         (sh_gimplify_va_arg_expr): For floating point arguments, consider
6240         size of current argument when checking if argument was passed in
6241         registers.
6242
6243         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
6244
6245         PR middle-end/23467
6246         * stor-layout.c (finalize_type_size): Dont override
6247         existing alignment with a smaller alignment from the mode.
6248
6249 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
6250
6251         * lambda-code.c (lambda_vector_lexico_pos): Moved...
6252         * lambda.h (lambda_vector_lexico_pos): ... here.
6253         * tree-data-ref.c (build_classic_dist_vector): Return false when
6254         the distance vector is lexicographically negative.
6255
6256 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
6257
6258         PR tree-optimization/23511
6259         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
6260         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
6261
6262 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
6263
6264         PR tree-optimization/22043
6265         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
6266         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
6267         If ALLOW_FLEXARR, handle types ending with flexible array member.
6268         Pass false as second argument to recursive count_type_elements calls.
6269         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
6270         argument to count_type_elements call.
6271         * tree-sra.c (decide_block_copy): Likewise.
6272         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
6273         for a constant-sized object, set cleared as well.  Pass true as
6274         second argument to count_type_elements call.
6275
6276 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
6277
6278         PR target/21571
6279         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
6280         from legitimate_small_data_p, and make global.  Update use.
6281         Remove forward declaration.
6282         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
6283         Declare.
6284         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
6285
6286 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
6287
6288         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
6289         of scratch intermediates.
6290         (eq<mode>_compare): Same.
6291         (neg_eq0<mode>): New.
6292         (neg_eq<mode>): Convert to define_insn_and_split.
6293
6294 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
6295
6296         PR target/23070
6297         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
6298         stdarg functions, set/clear the fp marker even when no variable
6299         args are passed.
6300         * config/rs6000/sysv4.opt (mprototype): Describe.
6301
6302 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
6303
6304         PR rtl-optimization/23478
6305         * regs.h (reg_info): Add throw_calls_crossed.
6306         (REG_N_THROWING_CALLS_CROSSED): Define.
6307         * flow.c (allocate_reg_life_data): Initialize
6308         REG_N_THROWING_CALLS_CROSSED.
6309         (propagate_one_insn, attempt_auto_inc): Update
6310         REG_N_THROWING_CALLS_CROSSED.
6311         * global.c (global_alloc): Don't allocate pseudos across
6312         calls that may throw.
6313
6314 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
6315
6316         PR c/18715
6317         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
6318         value is inbetween the range if we did not find an exact match.
6319
6320 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
6321
6322         * doc/invoke.texi (Option Summary): Add ms1 options.
6323         * doc/extend.texi: Document interrupt handler attribute for ms1.
6324         * doc/md.texi: Document ms1 constraints.
6325         * config.gcc: Add ms1-*-elf.
6326         * config/ms1/ms1.h: New.
6327         * config/ms1/ms1.c: New.
6328         * config/ms1/ms1.md: New.
6329         * config/ms1/ms1-protos.h: New.
6330         * config/ms1/ABI.txt: New.
6331         * config/ms1/crti.asm: New.
6332         * config/ms1/crtn.asm: New.
6333         * config/ms1/lib2extra-funcs.c: New.
6334         * config/ms1/t-ms1: New.
6335         * config/ms1/ms1.opt: New.
6336
6337 2005-08-22 Ira Rosen <irar@il.ibm.com>
6338
6339         * config/rs6000/altivec.md (xorv4sf3): New.
6340         (negv4sf2, neg<mode>2): Likewise.
6341
6342 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6343
6344         PR target/23485
6345         * config/ia64/ia64.md (divsi3): Check divide by zero.
6346         (udivsi3): Likewise.
6347         (divdi3): Likewise.
6348         (udivdi3): Likewise.
6349
6350 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
6351
6352         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
6353         up to elem_bitsize bits, not max_bitsize.
6354
6355 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
6356
6357         PR tree-optimization/23433
6358         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
6359         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
6360
6361 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
6362
6363         PR tree-optimization/23434
6364         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
6365         the iteration bound is not an INTEGER_CST.
6366
6367 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
6368
6369         * tree-vect-transform.c (get_initial_def_for_reduction): Set
6370         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
6371         NULL if need_epilog_adjust is false.
6372         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
6373         Case 3 always peels first itration, not just for PLUS case, and no need
6374         to use scalar_initial_def here. Create an epilog adjustment only if
6375         scalar_initial_def is not NULL.
6376
6377         (vectorizable_reduction): Remove assert.
6378
6379 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6380
6381         PR target/23485
6382         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
6383         (__moddi3): Likewise.
6384         (__udivdi3): Likewise.
6385         (__umoddi3): Likewise.
6386         (__divsi3): Likewise.
6387         (__modsi3): Likewise.
6388         (__udivsi3): Likewise.
6389         (__umodsi3): Likewise.
6390
6391 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
6392
6393         * tree-pass.h (TDF_GRAPH): Define.
6394         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
6395         * passes.c (finish_optimization_passes): Only call
6396         finish_graph_dump_file if TDF_GRAPH is set.
6397         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
6398         NULL.  Set TDF_GRAPH bit.
6399         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
6400
6401 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
6402
6403         * arm.h (arm_stack_offsets): Add locals_base field.
6404         * arm.c (arm_get_frame_offsets): Compute it.
6405         (thumb_compute_initial_elimination offset): Make the Thumb frame
6406         pointer point to the base of the local variables.
6407         (thumb_expand_prologue): Update accordingly.
6408         (thumb_expand_epilogue): Likewise.
6409
6410         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
6411         mode of clobbered scratch to DImode.  Handle a case that's known to
6412         need this.
6413
6414 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
6415
6416         * config/rs6000/rs6000.md (gt0<mode>): Delete.
6417         (gt0<mode>_compare): Delete.
6418         (neg_gt0<mode>): Delete.
6419
6420 2005-08-19  Eric Christopher  <echristo@apple.com>
6421
6422         * optabs.h: Change CTI_ to COI_.
6423         * optabs.c: Ditto.
6424
6425 2005-08-19  James E Wilson  <wilson@specifix.com>
6426
6427         * builtins.c (expand_builtin_return_addr): Set
6428         current_function_accesses_prior_frames when count != 0.  Use
6429         frame_pointer_rtx when count == 0.
6430         * function.h (struct function): Add accesses_prior_frames field.
6431         (current_function_accesses_prior_frames): Define.
6432         * reload1.c (init_elim_table): Check
6433         current_function_accesses_prior_frames.
6434         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
6435
6436 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6437
6438         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
6439         indicator.  Return true if the flowgraph changed during
6440         cleanup.
6441
6442 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6443
6444         PR 23476
6445         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
6446         conditional expression before testing its value.
6447
6448 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6449
6450         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
6451
6452 2005-08-19  Devang Patel  <dpatel@apple.com>
6453
6454         PR tree-optimization/23048
6455         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
6456         third parameter. Check whether latch is dominated by exit
6457         block or not.
6458         (if_convertible_loop_p): Supply exit block itself to
6459         if_convertible_bb_p.
6460
6461 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
6462
6463         PR target/23473
6464         * arm.md (arm_load_pic_register): Change argument to the mask of
6465         saved registers.  Call thumb_find_work_register if we need a
6466         scratch register on Thumb.
6467         (arm_expand_prologue): Pass empty register set to
6468         arm_load_pic_register.
6469         (thumb_expand_prologue): Pass live_regs_mask directly to
6470         arm_load_pic_register.
6471         * arm-protos.h (arm_load_pic_register): Update prototype.
6472
6473 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
6474
6475         * sh.c (find_sole_member): New function.
6476         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
6477         if the record's alignment is larger than the size of its only member.
6478
6479 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
6480
6481         PR target/23436
6482         * arm.c (thumb_legitimize_reload_address): New function.
6483         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
6484         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
6485
6486 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
6487
6488         * config/crx/crx.c: Implement crx_decompose_address. Reject
6489         symbolic displacements since CRX register relative adressing
6490         mode can't handle unsigned 32-bit values as displacements.
6491         * config/crx/crx.h: Simplify definitions, remove redundant
6492         parenthesis and obsolete macros.
6493         * config/crx/crx.opt: Add new switch for debugging addresses.
6494         * config/crx/crx-protos.h: Add new declarations for above.
6495
6496 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
6497
6498         PR middle-end/20624
6499         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
6500         looking past it.
6501
6502 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6503
6504         * collect2.c (dup2): Delete.
6505         * configure.ac: Don't check for dup2.
6506
6507         * config.in, configure: Regenerate.
6508
6509 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
6510
6511         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
6512         record with the type of its only member.
6513
6514 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
6515
6516         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
6517         define_insn_and_split.
6518         (plus_ltu<mode>_compare): Same.
6519         (gtu<mode>_compare): Same.
6520         (plus_gtu<mode>_compare): Same.
6521
6522 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
6523
6524         PR tree-optimization/22228
6525         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
6526         todo_flags_start.
6527         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
6528         are recorded in vect_vnames_to_rename for renaming.
6529         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
6530         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
6531         in vect_vnames_to_rename.
6532         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
6533         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
6534
6535 2005-08-18  Jan Hubicka  <jh@suse.cz>
6536
6537         PR c++/22034
6538         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
6539         info only for local statics, not for member variables.
6540
6541 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6542
6543         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
6544
6545 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6546
6547         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
6548
6549 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
6550
6551         PR middle-end/16045
6552         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
6553
6554 2005-08-17  James E Wilson  <wilson@specifix.com>
6555
6556         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6557         array size check.
6558
6559 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
6560
6561         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
6562         (leu<mode>_compare): Same.
6563         (plus_leu<mode>): Same.
6564         (neg_leu<mode>): Same.
6565         (and_neg_leu<mode): Same.
6566         (ltu<mode>_compare): Same.
6567         (plus_ltu<mode>): Same.
6568         (geu<mode>): Same.
6569         (geu<mode>_compare): Same.
6570         (plus_geu<mode>): Same.
6571         (neg_geu<mode>): Same.
6572         (and_neg_geu<mode>): Same.
6573         (plus_gt<mode>): Same.
6574         (gtu<mode>_compare): Same.
6575         (plus_gtu<mode>): Same.
6576
6577 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
6578
6579         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
6580         Move call_table_data to end.  Delete spurious .text.
6581         (callt_save_all_interrupt): Fix comment typo.
6582
6583 2005-08-17  James E Wilson  <wilson@specifix.com>
6584             Kevin Winchester  <winchester@amirix.com>
6585
6586         PR target/21684
6587         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
6588
6589 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
6590
6591         PR target/23268
6592         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
6593         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
6594
6595 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
6596
6597         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
6598         record with the type of its only member if the modes don't match.
6599
6600         * varasm.c (decode_reg_name): Skip empty additional register names.
6601
6602 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
6603
6604         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
6605         lsm_tmp_name_length): New.
6606         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
6607         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
6608
6609 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6610             Andreas Krebbel  <krebbel1@de.ibm.com>
6611
6612         * config.gcc: Added z9-109 switch.
6613         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
6614         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
6615         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
6616         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
6617         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
6618         for "z9_109" cpu attribute.
6619         * config/s390/s390.c (z9_109_cost): New processor cost structure.
6620         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
6621         (s390_handle_arch_option): Added z9-109 switch.
6622         (override_options): Set respective cost function for z9-109.
6623         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
6624         (legitimate_reload_constant_p): Accept extended immediates.
6625         (print_operand): Three new output modifiers added: k, m and o.
6626         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
6627         (s390_output_mi_thunk): Use extended immediate when possible.
6628         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
6629         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
6630         (CONSTRAINT_LEN): Added length of O constraint.
6631         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
6632         * config/s390/s390.md ("cpu"): New value z9_109 added.
6633         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
6634         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
6635         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
6636         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
6637         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
6638         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
6639         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
6640         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
6641         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
6642         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
6643         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
6644         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
6645         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
6646         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
6647         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
6648         immediates.
6649         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
6650         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
6651         insns for TARGET_EXTIMM.
6652
6653 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
6654
6655         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
6656
6657 2005-08-17  Nick Clifton  <nickc@redhat.com>
6658
6659         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
6660         Call default_encode_section_info.
6661
6662 2005-08-17  Steven Bosscher  <stevenb@suse.de>
6663
6664         PR tree-optimization/21574
6665         * tree-ssa-ccp.c (likely_value): If the right hand side is a
6666         constant, return CONSTANT.
6667         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
6668         (ccp_fold, visit_assignment): Likewise.
6669         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
6670
6671 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
6672
6673         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
6674         fold_buildN instead of buildN then fold_initializer or fold.
6675         (build_unary_op): Likewise.
6676         (build_binary_op): Likewise.
6677         * fold-const.c (fold_initializer): Remove.
6678         (fold_build1_initializer): New function.
6679         (fold_build2_initializer): New function.
6680         (fold_build3_initializer): New function.
6681         * tree.h (fold_initializer): Remove.
6682         (fold_build1_initializer): New function.
6683         (fold_build2_initializer): New function.
6684         (fold_build3_initializer): New function.
6685
6686 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
6687
6688         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
6689         (try_move_mult_to_index): Call fold_build2 instead of build2.
6690         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
6691         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
6692         fold_binary_to_constant.
6693         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
6694         fold (build.
6695         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
6696         check if A == gcd (A, B).  Remove TYPE argument.
6697         (analyze_offset) Use fold_build2 instead of fold (build.
6698         (create_data_ref): Likewise.
6699         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
6700         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
6701         then fold.
6702
6703 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
6704
6705         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
6706         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
6707
6708 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
6709
6710         PR tree-opt/23402
6711         * gimplify.c (zero_sized_type): New function.
6712         (gimplify_modify_expr_rhs): If we have a zero sized type,
6713         replace the statement with an empty statement.
6714
6715 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
6716
6717         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
6718         fxsave.
6719
6720 2005-08-16  Ian Lance Taylor  <ian@airs.com>
6721
6722         * doc/tm.texi (Label Output): Correct typo.
6723
6724 2005-08-16  Steven Bosscher  <stevenb@suse.de>
6725
6726         PR target/23376
6727         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
6728         force_operand will work later on using have_insn_for.
6729
6730 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6731
6732         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
6733
6734 2005-08-16  Ian Lance Taylor  <ian@airs.com>
6735
6736         PR c++/23337
6737         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
6738         vector type, don't try to construct it element by element.  Add an
6739         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
6740
6741 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6742
6743         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
6744
6745 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
6746
6747         * doc/invoke.texi (Precompiled Headers): Document some more options
6748         which are known to be safe.
6749
6750 2005-08-16  James E Wilson  <wilson@specifix.com>
6751
6752         PR tree-optimization/21105
6753         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6754         TREE_OVERFLOW check.
6755
6756 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
6757
6758         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
6759         (neg_ltu<mode>): Same.
6760         (gtu<mode>): Same.
6761         (neg_gtu<mode>): Same.
6762
6763 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6764
6765         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
6766         (fold_builtin_isdigit): Use fold_buildN.
6767         (build_function_call_expr): Likewise.
6768         * c-typeck.c (c_finish_loop): Likewise.
6769
6770 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
6771             Richard Shann <rshann@superh.com>
6772
6773         PR middle-end/20396:
6774         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
6775
6776 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
6777
6778         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
6779
6780 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
6781
6782         PR target/23355
6783         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
6784         arm_compure_save_reg0_reg12_mask to determine when the PIC register
6785         must be saved.
6786
6787 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6788
6789         PR middle-end/23369
6790         * fold-const.c (build_range_check): Disable optimization for function
6791         pointer expressions on targets that require function pointer
6792         canonicalization.
6793
6794 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
6795
6796         * simplify-rtx.c (simplify_const_relational_operation): When
6797         extracting arguments of a COMPARE, recompute the mode as well.
6798
6799 2005-08-15  Ian Lance Taylor  <ian@airs.com>
6800
6801         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
6802
6803 2005-08-15  DJ Delorie  <dj@redhat.com>
6804
6805         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
6806         the stack.
6807         (movsi_splittable): Allow, but split, moves to the stack.
6808         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
6809         stack.
6810
6811 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6812
6813         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
6814         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
6815         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
6816
6817         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
6818         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
6819         Delete HOST_PTR_PRINTF.
6820
6821         * configure, config.in: Regenerate.
6822
6823 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
6824
6825         * config/rs6000/rs6000.md (QHSI): New mode macro.
6826         (wd): Extend mode attr for QImode and HImode
6827         (dbits): New mode attr.
6828         (zero_extend<mode>di2): Convert to mode macro.
6829
6830 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
6831
6832         PR target/21841
6833         * doc/invoke.texi (-mgnu-ld): Update description.
6834         (-mhp-ld): Ditto.
6835
6836 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
6837
6838         PR 23391
6839         * Makefile.in (tree-chrec.o): Depends on real.h.
6840         * tree-chrec.c: Include real.h.
6841         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
6842         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
6843         * tree-scalar-evolution.c (add_to_evolution_1,
6844         interpret_rhs_modify_expr): Ditto.
6845
6846 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
6847
6848         PR 23386
6849         * tree-data-ref.c (estimate_niter_from_size_of_data): When
6850         step is negative compute the estimation from init downwards to zero.
6851
6852 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
6853
6854         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
6855
6856 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6857
6858         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
6859         constraint.
6860         (legitimate_reload_constant_p): Fix handling of lliXX operands.
6861         Accept double-word constants that can be split.
6862         * config/s390/s390.md ("movti"): Use 'P' constraint.
6863         ("*movdi_31", "*movdf_31"): Likewise.
6864
6865 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
6866
6867         Fix PR tree-optimization/22615
6868
6869         * tree-ssa-structalias.c (solution_set_add): Handle
6870         first_vi_for_offset returning NULL.
6871         (do_da_constraint): Ditto.
6872         (do_sd_constraint): Ditto.
6873         (do_ds_constraint): Ditto
6874         (find_func_aliases): Ditto.
6875         (build_constraint_graph): RHS is allowed be ANYTHING.
6876         (first_vi_for_offset): Return NULL if we couldn't find anything at
6877         the offset.
6878
6879 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
6880
6881         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
6882         over memory as first operand.
6883
6884 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
6885
6886         PR target/23360
6887         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
6888         available for setting it.
6889
6890 2005-08-14  Ira Rosen  <irar@il.ibm.com>
6891
6892         PR tree-optimization/23320
6893         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
6894         data-refs' types instead of base object nullness. Add check for
6895         pointer type data-refs before first location comparison. Remove
6896         assert.
6897
6898 2005-08-14  Andreas Schwab  <schwab@suse.de>
6899
6900         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
6901
6902 2005-08-13  James E Wilson  <wilson@specifix.com>
6903
6904         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
6905         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
6906         -fstack-protector-all, --param ssp-buffer-size): Document.
6907         (-Wvariadic-macros): Alphabetize.
6908         (-fsched-stalled-insns-dep): Add missing 'f'.
6909
6910         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
6911         macros.
6912
6913 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
6914
6915         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
6916         or indirect address operand.
6917         (EXTRA_ADDRESS_CONSTRAINT): New.
6918         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
6919
6920 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
6921
6922         PR tree-optimization/22236
6923         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
6924         successors and predecessors.
6925         * tree-chrec.c (chrec_convert): Before converting, check that
6926         sequences don't wrap.
6927         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
6928         (analyze_array): Extern.
6929         (find_data_references_in_loop): Remove call to
6930         compute_estimated_nb_iterations.
6931         * tree-data-ref.h (analyze_array): Declared.
6932         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
6933         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
6934         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
6935         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
6936         condition.
6937         * tree-ssa-loop-ivcanon.c: Fix documentation.
6938         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
6939         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
6940         (infer_loop_bounds_from_undefined): New.
6941         (estimate_numbers_of_iterations_loop): Use
6942         infer_loop_bounds_from_undefined.
6943         (used_in_pointer_arithmetic_p): New.
6944         (scev_probably_wraps_p): Pass an extra parameter.  Call
6945         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
6946         (convert_step): Fix documentation.
6947         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
6948         Use initial_condition_in_loop_num and evolution_part_in_loop_num
6949         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
6950         scev_probably_wraps_p.
6951
6952 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
6953
6954         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
6955         (s390_register_info): Ignore clobbered_regs information for fixed
6956         registers, and only fixed registers.
6957         (s390_init_frame_layout): Remove redundant call.
6958
6959 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
6960
6961         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
6962         description of -Wold-style-casts.
6963
6964 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6965             Jakub Jelinek  <jakub@redhat.com>
6966
6967         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
6968         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
6969         * config/s390/s390.c (print_operand): New output modifier 'G' added.
6970         (get_thread_pointer): Renamed to s390_get_thread_pointer.
6971         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
6972         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
6973         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
6974         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
6975         ("stack_protect_set", "stack_protect_test"): New expanders.
6976         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
6977         "stack_protect_testdi"): New insn definitions.
6978
6979 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6980
6981         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
6982
6983 2005-08-12  Paul Brook  <paul@codesourcery.com>
6984
6985         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
6986
6987 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6988
6989         * config/s390/predicates.md (setmem_operand): New predicate.
6990         (shift_count_operand): Accept ANDs with special constants as
6991         operand.
6992         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
6993         with special constants.
6994         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
6995         shift_count_operand with setmem_operand.
6996
6997 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
6998
6999         * config/s390/s390.c (s390_extract_part, s390_single_part):
7000         Type cast added.
7001         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
7002         (s390_output_mi_thunk): Don't use lg on 31 bit.
7003         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
7004         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
7005
7006 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7007
7008         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
7009         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
7010         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
7011         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
7012         with one of the new macros.
7013
7014 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7015
7016         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
7017         Don't set save_return_addr_p.
7018         (s390_register_info): Make clobbered_regs not depending on
7019         save_return_addr_p.
7020
7021 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7022
7023         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
7024         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
7025
7026 2005-08-11  James E. Wilson  <wilson@specifix.com>
7027
7028         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
7029
7030 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
7031
7032         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
7033         locations gathered by var-tracking in single entry loc_list
7034         over loc_descriptor_from_tree.
7035
7036         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
7037         pass it down to loc_descriptor.
7038         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
7039         (containing_function_has_frame_base): Move earlier in the file.
7040         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
7041         instead of always assuming fbreg can't be used.
7042
7043 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
7044
7045         * config/rs6000/altivec.md: Change constraint "m" to "Z".
7046         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7047         Accept address wrapped in AND for Altivec.
7048         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
7049         Strip AND wrapping offset address for Altivec.
7050
7051 2005-08-11  Richard Henderson  <rth@redhat.com>
7052
7053         PR middle-end/23312
7054         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
7055         before using TYPE_IS_SIZETYPE.
7056
7057 2005-08-11  Richard Henderson  <rth@redhat.com>
7058
7059         PR target/22225
7060         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
7061         insn types not present on ev4.
7062         (alphaev5_insn_pipe): Similarly.
7063
7064 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
7065
7066         PR target/23250
7067         * arm.c (arm_override_options): If the user has selected callee-super-
7068         interworking, then enable normal interworking.
7069
7070 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7071
7072         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
7073         redefinition.
7074
7075 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
7076
7077         * doc/rtl.texi: Fix two typos.
7078
7079 2005-08-11  Richard Guenther  <rguenther@suse.de>
7080
7081         PR target/23289
7082         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
7083         cases where we call to/from functions returning void.
7084
7085 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
7086
7087         PR c++/23225
7088         * tree.c (build_pointer_type_for_mode): Robustify.
7089
7090 2005-08-10  James E Wilson  <wilson@specifix.com>
7091
7092         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
7093         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
7094
7095         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
7096         "cum->".
7097
7098 2005-08-10  Eric Christopher  <echristo@apple.com>
7099
7100         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
7101         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
7102         V2DFmode.
7103
7104 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
7105
7106         PR target/21887
7107         * config/darwin.c (machopic_indirect_data_reference): Use a new register
7108         for the high part when generating dynamic-no-pic code.
7109
7110 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
7111
7112         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
7113         (x86_64-*-linux*): Likewise.
7114
7115         * config/i386/crtfastmath.c: New file.
7116         * config/i386/t-crtfm: Likewise.
7117
7118         * config/i386/linux.h (ENDFILE_SPEC): New.
7119         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
7120
7121         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
7122         crtfastmath.o.
7123
7124 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
7125
7126         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
7127         (vec_shl, vec_shr): Document new operations.
7128         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
7129
7130 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
7131
7132         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
7133         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
7134         change predicate to indexed_or_indirect_address.
7135
7136 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
7137
7138         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
7139         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
7140         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
7141         and __aeabi_uwrite8.
7142         * config/arm/unaligned-funcs.c: New file.
7143         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
7144
7145 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
7146
7147         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
7148         Add dump.
7149         * cfglayout.c (pass_insn_locators_initialize): Add dump.
7150         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
7151         Add dump.
7152         * except.c (pass_convert_to_eh_region_ranges): Add dump.
7153         * final.c (pass_shorten_branches): Add dump.
7154         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
7155         (pass_life): Rename dump.
7156         (rest_of_handle_flow2): Remove initial verify_flow_info.
7157         * function.c (pass_instantiate_virtual_regs): Add dump.
7158         * integrate.c (pass_initial_value_sets): Add dump.
7159         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
7160         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
7161         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
7162         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
7163         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
7164         gate_rtl_unrool_and_peel_loops): New.
7165         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
7166         rtl_doloop): Do not look at flags.
7167         * mode-switching.c (pass_mode_switching): Add dump.
7168         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
7169         pass_split_before_regstack): Add dump.
7170         * regmove.c (pass_stack_adjustments): Add dump.
7171         * tree-optimize.c (pass_fixup_cfg): Add dump.
7172
7173 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7174
7175         PR 23309
7176         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
7177         deciding which instruction sequence to use.
7178
7179 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
7180
7181         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
7182         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
7183
7184 2005-08-09  Richard Guenther  <rguenther@suse.de>
7185
7186         * c-common.c (builtin_function_2): Remove.
7187         (def_builtin_1): New function.
7188         (c_common_nodes_and_builtins): Use def_builtin_1 to
7189         build builtin functions.
7190
7191 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
7192
7193         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
7194         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
7195         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
7196         Visual DSP.
7197
7198 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
7199
7200         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
7201         fold_binary instead of fold_build2 since we don't care about the
7202         resulting tree.
7203         (loop_niter_by_eval): Likewise.
7204         (compare_trees): Likewise.
7205         (proved_non_wrapping_p): Likewise.
7206
7207 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
7208
7209         PR c/23161
7210         PR c/23165
7211         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
7212         if the if is really empty.
7213
7214 2005-08-09  Steven Bosscher  <stevenb@suse.de>
7215
7216         PR tree-optimization/23234
7217         * tree-ssa-math-opts.c (place_reciprocal): New enum.
7218         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
7219         argument of the new enum.
7220         (execute_cse_reciprocals): Add reciprocals for function arguments
7221         on the unique successor edge of the entry block.  Update other calls
7222         to execute_cse_reciprocals_1.
7223
7224 2005-08-08  Richard Henderson  <rth@redhat.com>
7225
7226         PR 22439
7227         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
7228
7229 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
7230
7231         * expr.c (write_complex_part): Return after handling MEM.
7232
7233 2005-08-08  Josh Conner  <jconner@apple.com>
7234
7235         PR rtl-optimization/23241
7236         * combine.c (simplify_comparison): Fix error in determining
7237         whether to lift a subreg from comparison.
7238
7239 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
7240
7241         PR target/18506
7242         * config/rs6000/altivec.md (vec_init<mode>): New.
7243         (vec_set<mode>): New.
7244         (vec_extract<mode>): New.
7245         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
7246         (rs6000_expand_vector_set): New.
7247         (rs6000_expand_vector_extract): New.
7248         (rs6000_legitimate_offset_address_p): Offset addresses are valid
7249         for Altivec modes before reload.
7250         (altivec_expand_vec_init_builtin): New.
7251         (get_element_number): New.
7252         (altivec_expand_vec_set_builtin): New.
7253         (altivec_expand_vec_ext_builtin): New.
7254         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
7255         builtins.
7256         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
7257         builtins.
7258         * config/rs6000/rs6000.h (rs6000_builtins): Add
7259         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
7260         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
7261         * config/rs6000/rs6000-protos.h: Declare new functions.
7262
7263 2005-08-08  Jan Hubicka  <jh@suse.cz>
7264
7265         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
7266         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
7267         * i386.md (movdi*): Use pic_32bit_operand.
7268         * predicates.md (pic_32bit_operand): New.
7269
7270 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
7271
7272         PR c++/21166
7273         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
7274
7275 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
7276
7277         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
7278         (test_for_singularity): Use fold_build2.
7279
7280 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7281
7282         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
7283
7284 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
7285
7286         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
7287         (COMMON_ASM_OP) Define.
7288         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
7289         (ix86_encode_section_info): Likewise.
7290         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
7291         SUBTARGET_ENCODE_SECTION_INFO.
7292
7293 2005-08-06  Richard Henderson  <rth@redhat.com>
7294
7295         PR 21894
7296         * tree-nested.c (convert_local_reference): Save and restore val_only
7297         around component_ref and friends.  Clear walk_subtrees by default.
7298
7299 2005-08-06  Peter O'Gorman  <peter@pogma.com>
7300
7301         PR 21366
7302         * gcc.c (process_command): Check the argument to -b has a dash.
7303         * doc/invoke.texi: Update -b and -V docs.
7304
7305 2005-08-06  James E Wilson  <wilson@specifix.com>
7306
7307         * config/mips/cross64.h, config/mips/t-cross64: Delete.
7308
7309 2005-08-06  Michael Matz  <matz@suse.de>
7310
7311         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
7312         member only if only one insn is associated with the value.
7313
7314 2005-08-06  Nick Clifton  <nickc@redhat.com>
7315
7316         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
7317         New define.
7318         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
7319         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
7320         Check symbol flags instead of symbol name mangling.
7321         (xstormy16_asm_output_aligned_common): Likewise.  Also
7322         simplify code since the bss100_section cass is the only case
7323         where the below100 code will be triggered.
7324         (xstormy16_encode_section_info): Encode below100 attribute
7325         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
7326         the name.
7327         (xstormy16_strip_name_encoding): Delete - this function is no
7328         longer needed.
7329         (TARGET_STRIP_NAME_ENCODING): Undefine.
7330         * config/stormy16/stormy16-protos.h: Delete prototype for
7331         xstormy16_strip_name_encoding.
7332
7333 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
7334
7335         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
7336         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
7337         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
7338         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
7339         config/alpha/predicates.md, config/arc/arc.h,
7340         config/arm/arm.h, config/arm/ieee754-df.S,
7341         config/arm/ieee754-sf.S, config/bfin/bfin.c,
7342         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
7343         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
7344         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
7345         config/m68hc11/m68hc11.h, config/mips/mips.c,
7346         config/mips/mips.h, config/mips/openbsd.h,
7347         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
7348         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
7349         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
7350         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
7351         config/sparc/linux.h, config/sparc/linux64.h,
7352         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
7353         doc/extend.texi, doc/gcov.texi, doc/install.texi,
7354         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
7355         typos.  Follow spelling conventions.
7356
7357 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
7358
7359         PR c/23113
7360         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
7361         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
7362         specially.  Check for side effects only for COND_EXPR.
7363         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
7364         return with TREE_NO_WARNING.
7365
7366 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
7367
7368         PR rtl-optimization/23233
7369         * loop.c (combine_movables): Require the modes to be the same.
7370         (move_movables): Remove handling of cases where the replacement
7371         had a different mode to the original.
7372
7373 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
7374
7375         PR tree-optimization/23128
7376         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
7377         subtraction wrap, and set TREE_OVERFLOW if they do.
7378
7379 2005-08-05  Richard Henderson  <rth@redhat.com>
7380
7381         PR 21728
7382         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
7383         FORCED_LABEL labels.
7384
7385 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
7386
7387         PR middle-end/23135
7388         * reload.c (find_reloads_subreg_address): Pass down TYPE
7389         unchanged.  Change all callers except find_reloads_toplev.
7390
7391 2005-08-05  Michael Matz  <matz@suse.de>
7392
7393         * genattrtab.c (current_alternative_string): Remove.
7394         (SIMPLIFY_ALTERNATIVE): Ditto.
7395         (attr_alt_bit_p): Ditto.
7396         (alternative_name): Make const char *.
7397         (evaluate_eq_attr): Remove use of above things.
7398         (simplify_test_exp): Ditto.
7399         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
7400         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
7401
7402 2005-08-04  James E Wilson  <wilson@specifix.com>
7403
7404         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
7405         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
7406         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
7407         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
7408         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
7409
7410 2005-08-04  Richard Henderson  <rth@redhat.com>
7411
7412         PR 21529
7413         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
7414         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
7415         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
7416         if we'd have to instantiate too many members.
7417
7418 2005-08-04  Richard Henderson  <rth@redhat.com>
7419
7420         PR 21291
7421         * tree-outof-ssa.c (coalesce_asm_operands): New.
7422         (coalesce_ssa_name): Use it.  Split out ...
7423         (coalesce_phi_operands, coalesce_result_decls): ... these.
7424
7425 2005-08-04  Paul Brook  <paul@codesourcery.com>
7426
7427         * read-rtl.c (read_quoted_string): Break if EOF.
7428
7429 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
7430
7431         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
7432         (fold_build2): Likewise.
7433         (fold_build3): Likewise.
7434         (fold_build1_stat): New function prototype.
7435         (fold_build2_stat): Likewise.
7436         (fold_build3_stat): Likewise.
7437         * fold-const.c (fold_build1): Rename to ..
7438         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7439         through to build1_stat.
7440         (fold_build2): Rename to ..
7441         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7442         through to build2_stat.
7443         (fold_build3): Rename to ..
7444         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7445         through to build3_stat.
7446
7447 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
7448             Ian Lance Taylor  <ian@airs.com>
7449
7450         * function.c (assign_stack_local_1): Do not correct stack slot
7451         address if allocation size is smaller than mode size.
7452
7453 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
7454
7455         PR 22037
7456         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
7457         (tree_merge_blocks): Propagate anything allowed by
7458         may_propagate_copy.
7459         Clarify documentation.
7460         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
7461         SSA form, schedule an update if necessary.
7462
7463 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
7464
7465         * doc/install.texi (Binaries): Remove broken link to
7466         Sinix/Reliant Unix binaries.
7467
7468 2005-08-03  Richard Henderson  <rth@redhat.com>
7469
7470         PR 23221
7471         * function.c (stack_protect_epilogue): Export.
7472         * tree.h (stack_protect_epilogue): Declare.
7473         * calls.c (expand_call): Call it.
7474
7475 2005-08-03  Eric Christopher  <echristo@apple.com>
7476
7477         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
7478         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
7479         spec.
7480
7481 2005-08-04  Jan Hubicka  <jh@suse.cz>
7482
7483         * profile.c (branch_prob): Split edges with goto locus on them
7484         to get proper line counts.
7485         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
7486
7487 2005-08-03  Paul Brook  <paul@codesourcery.com>
7488
7489         * function.c (assign_parms): Round current_function_args_size
7490         to PARM_BOUNDARY, not STACK_BOUNDARY.
7491
7492 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
7493
7494         * config/i386/i386.c (x86_elf_aligned_common)
7495         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
7496
7497 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
7498
7499         PR tree-optimization/23157
7500         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
7501         before emitting them.
7502
7503 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7504
7505         PR tree-optimization/19899
7506         * Makefile.in (tree-scalar-evolution.o): Add real.h.
7507         * tree-scalar-evolution.c: Include real.h.
7508         (add_to_evolution): Build constant -1 of correct type.
7509
7510 2005-08-03  Jan Hubicka  <jh@suse.cz>
7511
7512         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
7513         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
7514         profile updating for complette unrolling.
7515         * loop-unroll.c (peel_loop_completely): Use it.
7516         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
7517         (tree_unroll_loops_completely): Disable code growing unrolling of cold
7518         loops.
7519
7520 2005-08-03  Paul Brook  <paul@codesourcery.com>
7521
7522         * combine.c (can_change_dest_mode): New function.
7523         (try_combine, simplify_set): Use it.
7524
7525 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
7526
7527         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
7528         TFmode to BLKmode.
7529
7530 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
7531
7532         * doc/install.texi (Specific): Adjust link to openavr.org.
7533         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
7534         (Binaries): Adjust HP-UX Porting Center link.
7535         (Binaries): Adjust Free Software Foundation ordering link.
7536
7537 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
7538
7539         * convert.c (convert_to_integer): Use fold_build1 instead of
7540         build1 when converting an integer to an integer.
7541
7542 2005-08-02  Richard Henderson  <rth@redhat.com>
7543
7544         * combine.c (combine_instructions): Don't use reg_equal/equiv
7545         results if the mode doesn't match.
7546
7547 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
7548
7549         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
7550         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
7551
7552 2005-08-02  Richard Henderson  <rth@redhat.com>
7553
7554         PR 23196
7555         * explow.c (memory_address): Remove special-case for
7556         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
7557
7558 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
7559
7560         PR 23164
7561         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
7562         number of calls to cleanup_tree_cfg_1.
7563
7564 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
7565
7566         * doc/invoke.texi: document file extensions .F90 and .F95
7567
7568 2005-08-02  Richard Guenther  <rguenther@suse.de>
7569
7570         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
7571         positive if its first argument is positive.
7572
7573 2005-08-02  Richard Guenther  <rguenther@suse.de>
7574
7575         PR tree-optimization/23177
7576         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
7577         on TMR_TAG.
7578
7579 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
7580
7581         PR tree-optimization/23129
7582         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
7583         varying for divisions with anti-ranges.
7584
7585 2005-08-02  Jan Hubicka  <jh@suse.cz>
7586
7587         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
7588         * tree-ssa-threadupdate.c (thread_block): Add it here.
7589
7590 2005-08-01  James E Wilson  <wilson@specifix.com>
7591
7592         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
7593         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
7594         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
7595         New.
7596         * config/mips/predicates.md (const_call_insn_operand): Add check for
7597         SYMBOL_REF_LONG_CALL_P.
7598         * doc/extend.texi (long_call): Document the new attribute.
7599
7600 2005-08-01  Ian Lance Taylor  <ian@airs.com>
7601             Richard Henderson  <rth@redhat.com>
7602
7603         * Makefile.in (RTL_BASE_H): Add real.h.
7604         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
7605         instead of memcpy.
7606         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
7607         directly.
7608         * rtl.c (rtl_check_failed_code_mode): New.
7609         * rtl.h (struct rtx_def): Add u.rv.
7610         (XCMWINT, XCNMPRV): New.
7611         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
7612         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
7613
7614 2005-08-01  Richard Henderson  <rth@redhat.com>
7615
7616         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
7617         with auto-inc codes.
7618
7619         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
7620
7621 2005-08-01  Jan Hubicka  <jh@suse.cz>
7622
7623         * i386-protos.h (asm_preferred_eh_data_format): Declare.
7624         * i386.c: Include dwarf2.h
7625         (asm_preferred_eh_data_format): New.
7626         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
7627
7628 2005-08-01  Ian Lance Taylor  <ian@airs.com>
7629
7630         * config/host-linux.c (linux_gt_pch_get_address): Add new name
7631         randomize_va_space for virtual address randomization control.
7632
7633 2005-08-01  Steven Bosscher  <stevenb@suse.de>
7634
7635         * common.opt (flag_ipa_cp): Put in right place to maintain
7636         alphabetic sort.
7637
7638 2005-08-01  Jan Hubicka  <jh@suse.cz>
7639
7640         * profile.c (compute_value_histograms): Fix thinko.
7641         * value-prof.c: Include toplev.h
7642         (check_counter): New function.
7643         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
7644         tree_mod_subtract_transform): Add sanity check.
7645
7646 2005-08-01  Richard Guenther  <rguenther@suse.de>
7647
7648         PR tree-optimization/23133
7649         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
7650         current functions parameter decls to find defs to cse
7651         reciprocals of.
7652
7653 2005-08-01  Richard Guenther  <rguenther@suse.de>
7654
7655         PR tree-optimization/23109
7656         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
7657         If trapping math is in effect, use post-dominator information
7658         to check if we'd in any case reach a trapping point before
7659         doing the reciprocal insertion.
7660         (execute_cse_reciprocals): Compute post-dominators, if necessary.
7661         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
7662         expressions are invariant only if trapping math is not in effect.
7663
7664 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
7665
7666         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
7667         cgraph_function_versioning): New declarations.
7668         * cgraphunit.c: Add include to ipa-prop.h.
7669         (update_call_expr, cgraph_copy_node_for_versioning,
7670         cgraph_function_versioning): New functions.
7671         * integrate.c (copy_decl_for_inlining): Remove.
7672         * ipa-prop.h (ipa_replace_map): New struct.
7673         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
7674         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
7675         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
7676         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
7677         ipcp_iterate_stage, ipcp_method_scale_print,
7678         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
7679         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
7680         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
7681         ipcp_update_bb_counts, ipcp_update_profiling,
7682         ipcp_update_edges_counts): New functions.
7683         (ipcp_method_cval_init): Remove restriction regarding local methods.
7684         (ipcp_init_stage): Add ipcp_method_compute_scale.
7685         (ipcp_insert_stage): Add versioning.
7686         (ipcp_structures_print): Add ipcp_method_scale_print.
7687         (ipcp_driver): Dump profiling info.
7688         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
7689         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
7690         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
7691         (struct inline_data): Add versioning_p, ipa_info, new fields.
7692         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
7693         declare_return_variable): Replace calls to copy_decl_for_inlining with
7694         copy_decl_for_dup.
7695         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
7696         versioning support.
7697         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
7698         Add argument VERSIONING.
7699         (copy_arguments_for_versioning, copy_static_chain,
7700         function_versionable_p, tree_versionable_function_p,
7701         tree_function_versioning, replace_ref_tree): New functions.
7702         * tree-inline.h: Include varray.h.
7703         (tree_versionable_function_p,  tree_function_versioning,
7704         tree copy_decl_for_dup): New declarations.
7705
7706 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
7707
7708         * ipa-cp.c: New file. Contains IPCP specific functionality.
7709         * ipa-prop.h: New file. Contains structures/definitions that can be
7710         used by several interprocedural data flow optimizations (and also IPCP).
7711         * ipa-prop.c: New file.
7712         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
7713         * common.opt: Add ipa-cp flag.
7714         * timevar.def: Add IPCP optimization.
7715         * tree-optimize.c (init_tree_optimization_passes): Schedule
7716         pass_ipa_cp.
7717         * tree-pass.h (pass_ipa_cp): Declare.
7718
7719 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
7720
7721         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
7722         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
7723         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
7724         config/i386/i386.c, config/mips/mips.h,
7725         config/rs6000/rs6000.h, config/sh/sh.c,
7726         config/stormy16/stormy16.c: Fix comment typos.
7727
7728 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
7729
7730         PR c/22311
7731         * c-typeck.c (build_binary_op): Use common_type wrapper on
7732         shortened types.
7733         (common_type): Update comment.
7734
7735 2005-07-31  Steven Bosscher  <stevenb@suse.de>
7736
7737         PR target/23095
7738         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
7739         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
7740         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
7741
7742 2005-07-31  Jan Hubicka  <jh@suse.cz>
7743
7744         * pretty-print.h (pp_widest_integer): New macro.
7745         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
7746         counts.
7747
7748 2005-07-31  Jan Hubicka  <jh@suse.cz>
7749
7750         * output.h (enum section_category): Export from varasm.c
7751         (categorize_decl_for_section): Likewise.
7752         * varasm.c (enum section_category): Kill.
7753         (categorize_decl_for_section): Make global.
7754         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
7755         Declare.
7756         * i386.c (ix86_section_threshold): New static variable.
7757         (ix86_in_large_data_p, ix86_encode_section_info,
7758         x86_64_elf_unique_section,
7759         x86_64_elf_select_section): New functions.
7760         (TARGET_ENCODE_SECTION_INFO): Define
7761         (override_options): Enable medium model for PIC.
7762         (ix86_expand_prologue): Expand gen_set_got_rex64.
7763         (legitimate_constant_p): Handle new UNSPECs.
7764         (legitimate_pic_address_disp_p): Likewise.
7765         (legitimize_pic_address): Lower MEDIUM model addressing.
7766         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
7767         (enum cmodel): Add MEDIUM_PIC.
7768         (SYMBOL_REF_FAR_ADDR_P): New macro.
7769         (SYMBOL_FLAG_FAR_ADDR): New flag.
7770         * i386.md (movdi): Support medium model.
7771         (set_got_rex64): New pattern.
7772         * i386.opt (mlarge-data-threshold): New flag.
7773         * predicates.md (zext_operand/sext_operand): Deal with medium model.
7774         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
7775         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
7776         TARGET_ASM_UNIQUE_SECTION): New.
7777
7778         * invoke.texi (-mlarge_data_threshold): Document
7779
7780 2005-07-31  Jan Hubicka  <jh@suse.cz>
7781
7782         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
7783         (coalesce_vars): Likewise.
7784         * tree-ssa-live.c (coalesce_cost): New.
7785         (build_tree_conflict_graph): Use coalesce_cost.
7786         * tree-ssa-live.h (coalesce_cost): Declare.
7787
7788 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
7789
7790         * arm.md (all peepholes for post-increment operations): Delete.
7791         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
7792         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
7793         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
7794         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
7795         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
7796
7797 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
7798
7799         * fold-const.c (tree_expr_nonnegative_p): Always return true for
7800         non-integral types.
7801
7802 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
7803
7804         PR target/22582
7805         * doc/invoke.texi: Document -rdynamic.
7806
7807 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
7808
7809         PR c/23143
7810         * c-parser.c (c_parser_parms_list_declarator): Call
7811         mark_forward_parm_decls.
7812         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
7813         decls with visibility structure.
7814
7815 2005-07-30  Paul Brook  <paul@codesourcery.com>
7816
7817         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
7818
7819 2005-07-30  Paul Brook  <paul@codesourcery.com>
7820
7821         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
7822         prototype.
7823         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
7824         value for mode.
7825         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
7826
7827 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7828
7829         PR c/529
7830         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
7831         nested function declarators.
7832         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
7833         (grokparms): Call warn_if_shadowing for parameters used within the
7834         parameter list.
7835         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
7836         not used within the parameter list.
7837         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
7838
7839 2005-07-30  Jan Hubicka  <jh@suse.cz>
7840
7841         * expr.c (expand_expr_real_1): Do not load mem targets into register.
7842         * i386.c (ix86_fixup_binary_operands): Likewise.
7843         (ix86_expand_unary_operator): Likewise.
7844         (ix86_expand_fp_absneg_operator): Likewise.
7845         * optabs.c (expand_vec_cond_expr): Validate dest.
7846
7847 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7848
7849         PR c/21720
7850         * real.c (real_from_string): Also set last bit if there is a
7851         nonzero hex digit beyond GCC's internal precision after ".".
7852
7853 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
7854
7855         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
7856         define_constants.  Change duplicate values to unassigned numbers.
7857         Change UNSPEC_SUBS to UNSPEC_VSUBS.
7858         (*altivec_vspltsf): New.
7859         (altivec_vperm_v4sf): Delete.
7860         (altivec_vperm_<mode>): Use mode macro V.
7861         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
7862         (altivec_predicate_v4sf): Delete.
7863         (altivec_predicate_<mode>): Use mode macro V.
7864         (*altivec_lvesfx): New.
7865         (*altivec_stvesfx): New.
7866         (vec_realign_load_v4sf): Delete.
7867         (vec_realign_load_<mode>): Use mode macro V.
7868         * config/rs6000/rs6000.c (generate_set_vrsave): Use
7869         UNSPECV_SET_VRSAVE.
7870
7871 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
7872
7873         PR bootstrap/23131
7874         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
7875         string.
7876         * configure: Regenerated.
7877
7878 2005-07-29  Paul Brook  <paul@codesourcery.com>
7879
7880         * doc/install.texi: Add link to GFortran binaries wiki page.
7881
7882 2005-07-29  David Ung  <davidu@mips.com>
7883
7884         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
7885         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
7886         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
7887         * config/mips/mips.md (cpu): Add 5kf name.
7888         (includes): Includes 5k.md.
7889         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
7890         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
7891         -march flag.
7892
7893 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
7894
7895         PR 22550
7896         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
7897         (cleanup_tree_cfg): ... here.
7898         Call cleanup_tree_cfg_1 until there are no more cleanups to
7899         do.
7900
7901 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
7902
7903         * tree-vrp.c (compare_range_with_value): Return true or false
7904         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
7905         EQ_EXPR respectively.
7906
7907 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
7908
7909         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
7910         Fix comment typos.
7911
7912 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
7913
7914         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
7915         (tree_ssa_dominator_optimize): Increment it.
7916         (dump_dominator_optimization_stats): Print it.
7917
7918 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
7919             Steven Bosscher  <stevenb@suse.de>
7920
7921         PR rtl-optimization/23117
7922         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
7923         when head == tail.  Tidy comment.
7924
7925 2005-07-28  Richard Henderson  <rth@redhat.com>
7926
7927         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
7928         * cselib.c (rtx_equal_for_cselib_p): Likewise.
7929         * jump.c (rtx_renumbered_equal_p): Likewise.
7930         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
7931         CONST_INT and CONST_DOUBLE.
7932         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
7933         * reload.c (operands_match_p): Special case CONST_INT and
7934         CONST_DOUBLE; check mode earlier.
7935
7936 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7937
7938         PR c/22240
7939         * c-typeck.c (convert_for_assignment): Do not check
7940         DECL_IN_SYSTEM_HEADER on NULL fundecl.
7941
7942 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7943
7944         PR c/22192
7945         * c-typeck.c (composite_type): Prefer constant size arrays to
7946         VLAs.
7947
7948 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
7949
7950         PR c/21720
7951         * real.c (real_from_string): Set last bit if there is a nonzero
7952         hex digit beyond GCC's internal precision.
7953
7954 2005-07-28  Richard Henderson  <rth@redhat.com>
7955
7956         PR rtl-opt/22619
7957         * cfgcleanup.c (try_forward_edges): Watch out for end of
7958         insn chain.
7959
7960 2005-07-28  James E Wilson  <wilson@specifixinc.com>
7961
7962         PR c/23106
7963         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
7964
7965 2005-07-28  Jan Hubicka  <jh@suse.cz>
7966
7967         * Makefile.in (rtl-profile.o): Kill all traces of it.
7968         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
7969         * coverage.h (rtl_coverage_counter_ref): Kill.
7970         * opts.c (flag_speculative_prefetching_set): Kill.
7971         (flag_loop_optimize_set): New.
7972         (common_handle_option): Disable loop optimizer when profiling;
7973         do not handle speculative prefetching.
7974         * passes.c (init_optimization_passes): Replace pass_profiling combo
7975         by branch_prob pass.
7976         * profile.c (compute_value_histograms): Update for simplified value
7977         profiles.
7978         (rtl_register_profile_hooks): Kill.
7979         (pass_profiling): Kill.
7980         (rest_of_handle_branch_prob): Do not profile.
7981         * toplev.c (process_options): Remove speculative prefetching.
7982         * toplev.h (flag_tree_based_profiling): Kill.
7983         * tree-profile.c (prepare_instrumented_value,
7984         tree_gen_interval_profiler, tree_gen_pow2_profiler,
7985         tree_gen_one_value_profiler, do_tree_profiling): Update for
7986         simplified datastructures.
7987         * value-prof.c: Add comment that speculative prefetching was dropped;
7988         update rest of file for simplified datastructures.
7989         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
7990         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
7991         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
7992         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
7993         rtl_mod_subtract, gen_speculative_prefetch,
7994         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
7995         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
7996         (gate_handle_value_profile_transformations,
7997         rest_of_handle_value_profile_transformations,
7998         pass_value_profile_transformations): Kill.
7999         * value-prof.h (histogram_value_t): Remove IL based unions.
8000         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
8001         rtl_profile_hooks): Remove hooks.
8002
8003         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
8004
8005         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
8006         (cgraph_clone_node): Likewise.
8007         * cgraph.h (cgraph_clone_edge): Update prototype.
8008         (cgraph_clone_node): Likewise.
8009         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
8010         cgraph_clone_node.
8011         (lookup_recursive_calls): Consider profile.
8012         (cgraph_decide_recursive_inlining): Fix updating; use new
8013         probability argument; use profile.
8014         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
8015         * tree-inline.c (copy_bb): Update clal of clone_edge.
8016         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
8017
8018         * invoke.texi (min-inline-recursive-probability): Document.
8019
8020 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
8021
8022         * doc/install.texi (Configuration): Update Valgrind homepage.
8023
8024 2005-07-28  Richard Henderson  <rth@redhat.com>
8025
8026         PR middle-end/21362
8027         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
8028         labels we want to delete.
8029         (cfg_layout_merge_blocks): Likewise.
8030
8031 2005-07-28  Richard Henderson  <rth@redhat.com>
8032
8033         PR target/17692
8034         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
8035         when expanding to nothing.
8036
8037 2005-07-28  Josh Conner  <jconner@apple.com>
8038
8039         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
8040         (cgraph_decide_inlining_of_small_functions): Likewise.
8041
8042 2005-07-28  Josh Conner  <jconner@apple.com>
8043
8044         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
8045         direction of badness if negative.
8046         (cgraph_default_inline_p): Add reason to parameters, and assign it
8047         a value.
8048         (cgraph_decide_inlining_of_small_functions): New parameter in call
8049         to cgraph_default_inline_p.
8050         (cgraph_decide_inlining_incrementally): Likewise.
8051         * cgraphunit.c (decide_is_function_needed): Likewise.
8052         * cgraph.h (cgraph_default_inline_p): Likewise.
8053
8054 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8055
8056         * builtins.c: Fix comment typo(s).
8057         * genautomata.c: Likewise.
8058         * gimplify.c: Likewise.
8059         * tree-dfa.c: Likewise.
8060         * tree-flow-inline.h: Likewise.
8061         * tree-into-ssa.c: Likewise.
8062         * tree-ssa-alias.c: Likewise.
8063         * tree-ssa-ccp.c: Likewise.
8064         * tree-ssa-copy.c: Likewise.
8065         * tree-ssa-dce.c: Likewise.
8066         * tree-ssa-dom.c: Likewise.
8067         * tree-ssa-operands.c: Likewise.
8068         * tree-tailcall.c: Likewise.
8069         * tree-vectorizer.c: Likewise.
8070         * tree-vrp.c: Likewise.
8071         * tree.c: Likewise.
8072
8073 2005-07-28  Jeff Law  <law@redhat.com>
8074
8075         * tree-vrp.c (test_for_singularity): Extracted from  ...
8076         (simplify_cond_using_ranges): Attempt to simplify a relational
8077         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
8078
8079 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
8080
8081         PR tree-optimization/22506
8082         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
8083         phis whose argument is constant.
8084
8085 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
8086
8087         PR rtl-optimization/18992
8088         Back out this patch:
8089           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8090           PR optimization/12142
8091           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
8092           uses of the register in the SET_SRC.  Remove unnecessary argument.
8093
8094         Replace it with this:
8095         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
8096         if flag_non_call_exceptions is set and the insn may trap, pass
8097         pc_rtx as dest for recursion.
8098         In SET_SRC part of SET case, if dest is already set, pass it down
8099         unchanged.
8100
8101 2005-07-28  Jan Hubicka  <jh@suse.cz>
8102
8103         * cfg.c (update_bb_profile_for_threading): Use RDIV.
8104         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
8105         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
8106         roundoff errors.
8107         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
8108         profile when available.
8109
8110 2005-07-28  Jan Beulich <jbeulich@novell.com>
8111
8112         * config/ia64/ia64.c (ia64_load_pair_ok): New.
8113         (ia64_print_operand): Describe and handle 'X'.
8114         (ia64_register_move_cost): Also handle FP_REGS.
8115         (ia64_preferred_reload_class): Likewise.
8116         (ia64_secondary_reload_class): Likewise.
8117         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
8118         it. Also check for ITANIUM_CLASS_FLDP.
8119         * config/ia64/ia64.h (FP_REGNO_P): New.
8120         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
8121         (reg_class): Add FP_REGS.
8122         (REG_CLASS_NAMES): Adjust for it.
8123         (REG_CLASS_CONTENTS): Likewise.
8124         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
8125         (REG_CLASS_FROM_LETTER): Handle 'x'.
8126         (CLASS_MAX_NREGS): Handle FP_REGS.
8127         (MEMORY_MOVE_COST): Likewise.
8128         * config/ia64/ia64.md (itanium_class): Add fldp.
8129         (type): Handle fldp.
8130         (movti_internal): More allowable operand combinations. Use ldfp8 when
8131         splitting unnecessary. Remove predicable attribute. Adjust
8132         itanium_class attribute.
8133         (smuldi3_highpart): Remove outdated comment.
8134         (mulditi3, umulditi3, rotlti3): New expanders.
8135         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
8136         (absti2): Disabled new insn for future reference.
8137         Respective new splitters.
8138         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
8139         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
8140         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
8141
8142 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
8143
8144         PR rtl-optimization/23047
8145         * simplify-rtx.c (simplify_const_relational_operation): Respect
8146         flag_wrapv for comparisons with ABS.
8147
8148 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
8149
8150         PR tree-optimization/22493
8151         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
8152         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
8153
8154 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
8155
8156         * config/frv/frv.opt (moptimize-membar): New.
8157
8158         * doc/invoke.texi: Document -moptimize-membar and its inverse.
8159
8160         * config/frv/frv.h: Remove machine_function definition.
8161
8162         * config/frv/frv.c (struct frv_io): New.
8163         (struct machine_function): Moved from frv.h.  Add has_membar_p.
8164         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
8165         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
8166         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
8167         (frv_optimize_membar_global, frv_optimize_membar): New functions.
8168         (frv_reorg): Call frv_optimize_membar when appropriate.
8169         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
8170         (frv_expand_builtin): Adjust calls accordingly.
8171         (frv_io_address_cookie): New function.
8172         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
8173         load or store rather than a special insn.  Add ccnstant address and
8174         io-type operands to the membar.
8175         (frv_ifcvt_modify_tests): Unsign regno.
8176         (frv_ifcvt_modify_tests): Same.
8177
8178         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
8179         UNSPEC_OPTIONAL_MEMBAR constant.
8180         (builtin_read_<mode>): Delete.
8181         (builtin_write_<mode>): Delete.
8182         ("optional_membar_<mode>"): Add operand.
8183
8184         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
8185         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
8186         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
8187         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
8188         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
8189         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
8190         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
8191         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
8192         * testsuite/gcc.target/frv/all-read-write-1.c: New.
8193
8194 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8195
8196         * df.c (df_uses_record): Handle SCRATCH.
8197
8198 2005-07-28  Steven Bosscher  <stevenb@suse.de>
8199
8200         PR debug/20161
8201         * passes.c (rest_of_decl_compilation): If decl is a type and
8202         we have encountered errors, don't emit debug information.
8203
8204 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
8205
8206         * params.def: Fixed comment.
8207
8208 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
8209
8210         PR target/19885
8211         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
8212         (TARGET_ASM_UNALIGNED_HI_OP): Add.
8213         (TARGET_ASM_UNALIGNED_SI_OP): Add.
8214
8215 2005-07-27  Steven Bosscher  <stevenb@suse.de>
8216
8217         PR c++/22003
8218         * varasm.c (assemble_start_function): Don't do anything that may
8219         require a CFG if the current function is a thunk.
8220
8221 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
8222
8223         * doc/install.texi (Prerequisites): Mention that perl is needed
8224         to do export control in libstdc++ targetting Darwin.
8225
8226 2005-07-27  Steven Bosscher  <stevenb@suse.de>
8227
8228         PR rtl-optimization/17808
8229         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
8230         (sched_insns_conditions_mutex_p): Split out from...
8231         (add_dependence): ...here.  But don't call it from here.
8232         (add_dependence_list): Check sched_insns_conditions_mutex_p
8233         before calling add_dependence.
8234         (add_dependence_list_and_free): Likewise.
8235         (fixup_sched_groups): Likewise.
8236         (sched_analyze_1): Likewise.
8237         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
8238         (sched_analyze): Likewise.
8239         (sched_analyze_insn): Likewise.
8240         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
8241         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
8242         dependencies on all COND_EXEC insns to jumps ending basic blocks
8243         when doing intrablock scheduling.
8244         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
8245
8246 2005-07-27  Jeff Law  <law@redhat.com>
8247
8248         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
8249         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
8250         equivalency sets, correctly handle the case were vr0 has an
8251         equivalency set, but vr1 does not.
8252
8253 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
8254
8255         PR tree-optimization/23073
8256         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
8257         vect_print_dump_info before fprintf.
8258
8259 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8260
8261         PR tree-optimize/22348
8262         * tree-ssa-loop-niter.c (number_of_iterations_cond):
8263         Fold the partial computation.
8264
8265 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8266
8267         PR tree-optimization/22325
8268         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
8269         Declare.
8270         * tree-scalar-evolution.c (scev_const_prop): Add generic final
8271         value replacement.
8272         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
8273         (force_var_cost): ... this function.
8274         (compute_phi_arg_on_exit): Export.
8275
8276 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8277
8278         PR tree-optimization/20773
8279         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
8280         edge.
8281
8282 2005-07-27  Richard Guenther  <rguenther@suse.de>
8283
8284         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
8285         Avoid pushing again if current struct contains only
8286         fields we decomposed.
8287
8288 2005-07-27  Jan Hubicka  <jh@suse.cz>
8289
8290         PR tree-optimization/22574
8291         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
8292         not available.
8293
8294         * tree-tailcall.c (decrease_profile): New function.
8295         (eliminate_tail_call): Use it.
8296
8297         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
8298         visibility flags correctly in whole program mode.
8299
8300 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
8301
8302         PR rtl-optimization/22472
8303         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
8304
8305 2005-07-26  Steven Bosscher  <stevenb@suse.de>
8306
8307         PR tree-optimization/22504
8308         * tree-complex.c (expand_complex_addition): Use 'code' instead
8309         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
8310
8311 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
8312
8313         * config.gcc (cpu_type): Add frv case.
8314         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
8315         (supported_defaults): Add fr550 case.
8316
8317 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
8318
8319         PR 22591
8320         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
8321         whether a pointer of type T * may point to objects of type T *.
8322
8323 2005-07-26  DJ Delorie  <dj@redhat.com>
8324
8325         * configure: Regenerate.
8326
8327 2005-07-26  Dale Johannesen  <dalej@apple.com>
8328
8329         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
8330
8331 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
8332
8333         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
8334         Clarify use of "build" in name.
8335
8336 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
8337
8338         * doc/extend.texi (Raw read/write Functions): New section.
8339         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
8340         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
8341         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
8342         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
8343         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
8344         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
8345         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
8346         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
8347         * config/frv/frv.c: Add bdesc_loads global.
8348         Add bdesc_stores global.
8349         (frv_init_builtins): Add support for __builtin_{read/write}*.
8350         (frv_volatile_memref): New.
8351         (frv_expand_load_builtin): New.
8352         (frv_expand_store_builtin): New.
8353         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
8354         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
8355         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
8356         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
8357         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
8358         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
8359         (builtin_read_<mode>): New.
8360         (builtin_write_<mode>): New.
8361         (builtin_write64): New.
8362         (optional_membar_<mode>): New.
8363
8364 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
8365
8366         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
8367         (rather than units) against HOST_BITS_PER_WIDE_INT.
8368
8369 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
8370
8371         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
8372         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
8373         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
8374         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
8375         FSF address.
8376
8377         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
8378         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
8379         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
8380         comment typos.
8381         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
8382
8383 2005-07-26  Richard Guenther  <rguenther@suse.de>
8384
8385         PR tree-optimization/22486
8386         * fold-const.c (fold_unary): Fold away useless component
8387         references of the form (T *)&T.x, if the address
8388         doesn't change.
8389
8390 2005-07-25  James E Wilson  <wilson@specifixinc.com>
8391
8392         * dwarf2out.c (add_call_src_coords_attributes): New.
8393         (gen_inlined_subroutine_die): Call it.
8394         (maybe_emit_file, init_file_table): Add comments.
8395         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
8396         maybe_emit_file.
8397         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
8398         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
8399         * tree.h (BLOCK_SOURCE_LOCATION): New.
8400         (struct tree_block): New field locus.
8401
8402 2005-07-26  Andreas Schwab  <schwab@suse.de>
8403
8404         PR rtl-optimization/23043
8405         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
8406         when allocating a struct unoccr.
8407
8408 2005-07-25  Richard Henderson  <rth@redhat.com>
8409
8410         PR 22626
8411         * tree-complex.c (gate_no_optimization): True if errors.
8412         * Makefile.in (tree-complex.o): Update dependencies.
8413
8414 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
8415
8416         * config/frv/predicates.md (integer_register_operand): Use
8417         GPR_AP_OR_PSEUDO_P.
8418
8419 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
8420
8421         PR tree-opt/22484
8422         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
8423         after fold.
8424         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
8425
8426 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
8427
8428         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
8429         types when flag_unsafe_math_optimizations is true.
8430
8431 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
8432
8433         * gcc.c (option_map): Add --sysroot.
8434         (process_command): Handle --sysroot.
8435         (display_help): Document it.
8436         * doc/cppopts.tex (-isysroot): Document.
8437         * doc/invoke.texi (--sysroot): Document.
8438         * doc/install.texi (--with-build-sysroot): Document.
8439
8440         * Makefile.in (inhibit_libc): New variable.
8441         (INHIBIT_LIBC_CFLAGS): Likewise.
8442         (LIBGCC2_CFLAGS): Include
8443         $(INHIBIT_LIBC_CFLAGS).
8444         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
8445         ($(T)crtbegin.o): Do not use @inhibit_libc@.
8446         ($(T)crtend.o): Likewise.
8447         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
8448         ($(T)crtendS.o): Likewise.
8449         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
8450         ($(T)crtendT.o): Likewise.
8451         (stmp-fixinc): Do not complain about missing headers if
8452         inhibit_libc.
8453         * configure.ac (inhibit_libc): Set it to true/false.
8454         (--with-build-sysroot): New option.  Use it to set
8455         SYSTEM_HEADER_DIR.
8456         * configure: Regenerated.
8457
8458 2005-07-25  Manfred Hollstein  <mh@suse.com>
8459
8460         * calls.c (store_one_arg): Fix unsigned comparison warning.
8461
8462 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
8463
8464         PR other/22337
8465         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
8466         (ggc_print_statistics): Initialize variable before use.
8467
8468 2005-07-25  Richard Guenther  <rguenther@suse.de>
8469
8470         * tree-dfa.c (mark_new_vars_to_rename): Protect against
8471         calling with a PHI_NODE argument.
8472
8473         * tree-flow-inline.h (overlap_subvar): Protect against
8474         possible overflow.
8475
8476 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
8477
8478         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
8479         * configure: Regenerate.
8480
8481 2005-07-25  Ira Rosen  <irar@il.ibm.com>
8482
8483         * expr.c (highest_pow2_factor): Make extern.
8484         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
8485         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
8486         record_array_differ_p, array_ptr_differ_p): Likewise.
8487         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
8488         additional cases. Call the above functions.
8489         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
8490         base_object_differ_p when there are two base objects. Otherwise, compare
8491         base address and offset. Call may_alias_p.
8492         (dump_data_reference): Use a correct field name.
8493         (analyze_array): Make static. Initialize new data-ref fields.
8494         (analyze_indirect_ref): New function.
8495         (init_data_ref): Initialize new data-ref fields.
8496         (strip_conversion): Moved from tree-vect-analyze.c.
8497         (analyze_offset_expr, get_ptr_offset, address_analysis,
8498         object_analysis): Likewise.
8499         (analyze_offset): New function.
8500         (create_data_ref): Likewise.
8501         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
8502         dimensions for ARRAY_REFs only.
8503         (build_classic_dist_vector): Make static.
8504         (access_functions_are_affine_or_constant_p): Call macro to get the
8505         address of access functions.
8506         (compute_all_dependences): Add new parameter
8507         compute_self_and_read_read_dependences. Compute self and read-read
8508         dependences if it is true.
8509         (find_data_references_in_loop): Call create_data_ref. Initialize new
8510         data-ref fields.
8511         (compute_data_dependences_for_loop): Add new parameter
8512         compute_self_and_read_read_dependences. Remove parameter nb_loops,
8513         compute nb_loops. Call compute_all_dependences,
8514         build_classic_dist_vector and build_classic_dir_vector with correct
8515         parameters.
8516         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
8517         with correct parameters. Compare dimensions for ARRAY_REFs only.
8518         (free_data_refs): Call macro to free access functions.
8519         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
8520         fields from stmt_vinfo.
8521         (struct base_object_info): New structure.
8522         (struct data_reference): Move fields to base_object_info. Add fields
8523         first_location and object_info for above structures. Move fields from
8524         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
8525         aligned_to.  Add macros to access the new fields.
8526         Update functions declarations.
8527         * tree-flow.h (is_aliased_with): Declare.
8528         * tree-loop-linear.c (linear_transform_loops): Call
8529         compute_data_dependences_for_loop with correct parameters.
8530         * tree-ssa-alias.c (is_aliased_with): New function.
8531         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
8532         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
8533         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
8534         vect_base_addr_differ_p, compute_subscript_distance and
8535         build_classic_dist_vector. Add printings. Check absolute value of
8536         distance.
8537         (vect_analyze_data_ref_dependences): Go through ddrs instead of
8538         data-refs.
8539         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
8540         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
8541         to bytes. Add printing.
8542         (vect_compute_data_refs_alignment): Go through loads and stores in one
8543         loop.
8544         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
8545         vect_analyze_data_ref_access): Likewise.
8546         (vect_analyze_pointer_ref_access): Remove.
8547         (vect_address_analysis, vect_object_analysis): Likewise.
8548         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
8549         and analyze data-refs in the loop.
8550         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
8551         fields of data-ref instead of stmt. Add init to the offset from the
8552         base.
8553         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
8554         (vect_update_init_of_dr): Likewise.
8555         (vect_update_inits_of_drs): Go through loads and stores in one loop.
8556         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
8557         removed fields.
8558         (new_loop_vec_info): Initialize new fields.
8559         (destroy_loop_vec_info): Free new fields.
8560         (vect_strip_conversion): Remove.
8561         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
8562         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
8563         datarefs. Add new field ddrs.
8564         Add macros for the new fields access.
8565         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
8566         base_aligned_p, misalignment, memtag, ptr_info and subvars.
8567         Remove their macros.
8568         * tree.h (highest_pow2_factor): Declare.
8569
8570 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
8571
8572         * calls.c (store_one_arg): Check for sibling call MEM arguments
8573         from already clobbered incoming argument area.
8574
8575 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8576
8577         * c-common.c (check_missing_format_attribute): New.
8578         * c-common.h (check_missing_format_attribute): Likewise.
8579         * c-typeck.c (convert_for_assignment): Use it.
8580
8581 2005-07-24  Andreas Schwab  <schwab@suse.de>
8582
8583         * config/m68k/m68k.md ("extendqidi2"): When source is an address
8584         register use a word move.  Correct operand of ext.w in 68000 code.
8585
8586 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
8587
8588         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
8589         variables as declarations, rather than definitions.
8590
8591 2005-07-24  Ira Rosen  <irar@il.ibm.com>
8592
8593         PR tree-optimization/22526
8594         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
8595         of the zero node.
8596
8597 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8598
8599         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
8600         that C99 reserve for future use. Use it to define clog10,
8601         clog10f and clog10l.
8602
8603 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8604
8605         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
8606         * configure.ac: Check for -Wmissing-format-attribute.
8607
8608         * configure: Regenerate.
8609
8610 2005-07-23  Richard Henderson  <rth@redhat.com>
8611
8612         PR tree-optimization/22623
8613         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
8614
8615 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
8616
8617         PR target/22577
8618         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
8619
8620 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8621
8622         * Makefile.in (C_TREE_H): Update dependencies.
8623         * c-tree.h: Include toplev.h.
8624         * diagnostic.h (diagnostic_set_info): Add format attribute.
8625         * rtl-error.c (diagnostic_for_asm): Likewise.
8626
8627 2005-07-23  Chao-ying Fu  <fu@mips.com>
8628
8629         * config/mips/mips-dsp.md: New file.
8630         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
8631         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
8632         functions.
8633         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
8634         MIPS_BUILTIN_BPOSGE32.
8635         (mips_expand_builtin_direct): Add one parameter to indicate that
8636         builtin functions need to return a value.
8637         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
8638         functions.
8639         (mips_regno_to_class): Add classes for 12 new DSP registers.
8640         (mips_subword): Change to check four HI registers.
8641         (mips_output_move): Output move to and from 6 new DSP accumulators.
8642         (override_options): Make sure -mdsp and -mips16 are not used together.
8643         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
8644         for machine modes.
8645         (mips_conditional_register_usage): Disable 6 new DSP accumulators
8646         when !TARGET_DSP.
8647         (print_operand): Add 'q' for printing DSP accumulators.
8648         (mips_cannot_change_mode_class): Check ACC_REGS.
8649         (mips_secondary_reload_class): Check ACC_REGS.
8650         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
8651         (mips_register_move_cost): Check ACC_REGS.
8652         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
8653         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
8654         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
8655         (dsp_bdesc): New array.
8656         (bdesc_arrays): Add DSP builtin function table.
8657         (mips_prepare_builtin_arg): Check predicate again after
8658         copy_to_mode_reg.
8659         (mips_expand_builtin): Add one more parameter to
8660         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
8661         MIPS_BUILTIN_BPOSGE32.
8662         (mips_init_builtins): Initialize new function types.
8663         (mips_expand_builtin_direct): Check if builtin functions need to
8664         return a value and pass operands properly.
8665         (mips_expand_builtin_bposge): New function.
8666         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
8667         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
8668         (FIRST_PSEUDO_REGISTER): Increase to 188.
8669         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
8670         Update for 12 new DSP registers.
8671         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
8672         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
8673         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
8674         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
8675         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
8676         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
8677         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
8678         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
8679         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
8680         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
8681         (REGISTER_NAMES): Add names for 12 new DSP registers.
8682         * config/mips/mips.md: Include mips-dsp.md.
8683         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
8684         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
8685         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
8686         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
8687         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
8688         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
8689         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
8690         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
8691         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
8692         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
8693         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
8694         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
8695         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
8696         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
8697         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
8698         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
8699         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
8700         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
8701         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8702         (UNSPEC_RDDSP): New constants.
8703         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
8704         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
8705         A<-d alternative.
8706         * config/mips/mips.opt (-mdsp): New option.
8707         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
8708         (reg_imm10_operand): New predicates.
8709         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
8710         * doc/invoke.texi (-mdsp): Document new option.
8711
8712 2005-07-22  DJ Delorie  <dj@redhat.com>
8713
8714         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
8715         to warning calls.
8716         * tree-inline.c (inlinable_function_p): Likewise.
8717
8718 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
8719
8720         PR debug/21828
8721         * toplev.c (check_global_declarations): Do not mark undefined
8722         variables as DECL_IGNORED_P.
8723         * varasm.c (first_global_object_name): GTY it.
8724         (weak_global_object_name): Likewise.
8725         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
8726         a string to go into {weak,first}_global_object_name.
8727
8728 2005-07-22  DJ Delorie  <dj@redhat.com>
8729
8730         * c-format.c (check_function_format): Change warning control
8731         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
8732
8733 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
8734
8735         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
8736         &PTR->FLD a dereference of PTR.
8737         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
8738         a potential dereference of PTR.
8739
8740 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
8741
8742         PR rtl-optimization/20370
8743         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
8744         call allocate_reg_info if necessary.
8745
8746         PR rtl-optimization/21848
8747         * calls.c (emit_library_call_value_1): For const functions, add
8748         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
8749
8750         PR rtl-optimization/22445
8751         * cselib.c (target.h): Include.
8752         (rtx_equal_for_cselib_p): Allow commutative matches.
8753         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
8754         Remove MODE parameter.  Changed all callers.
8755
8756         PR rtl-optimization/22258
8757         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
8758         New functions.
8759         (try_combine): Use likely_spilled_retval_p.
8760
8761 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
8762
8763         * config.gcc: Add crx-elf support.
8764
8765         * doc/contrib.texi: Mention crx.
8766         * doc/extend.texi: Document crx extensions.
8767         * doc/install.texi: Document crx install.
8768         * doc/invoke.texi: Document crx options.
8769         * doc/md.texi: Document crx constraints.
8770
8771         * config/crx/crx-protos.h: New file.
8772         * config/crx/crx.c: New file.
8773         * config/crx/crx.h: New file.
8774         * config/crx/crx.md: New file.
8775         * config/crx/crx.opt: New file.
8776         * config/crx/t-crx: New file.
8777
8778 2005-07-22  Manfred Hollstein  <mh@suse.com>
8779
8780         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
8781         warnings.
8782         (int_add_graph_edge): Likewise.
8783         (collapse_nodes): Likewise.
8784         (process_unification_queue): Likewise.
8785
8786 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8787             Laurent GUERBY  <laurent@guerby.net>
8788
8789         PR tree-optimization/22336
8790         * function.c (record_block_change): Check for
8791         cfun->ib_boundaries_block.
8792
8793 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
8794
8795         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
8796         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
8797
8798 2005-07-21  DJ Delorie  <dj@redhat.com>
8799
8800         * toplev.c (warn_deprecated_use): Add warning control to warning
8801         call.
8802         * c-typeck.c (parser_build_binary_op): Likewise.
8803         (c_finish_if_stmt): Likewise.
8804         * c-common.c (check_function_sentinel): Likewise.
8805         (check_nonnull_arg): Likewise.
8806
8807 2005-07-21  Richard Henderson  <rth@redhat.com>
8808
8809         PR tree-opt/22504
8810         * tree-complex.c (complex_ssa_name_components): New.
8811         (cvc_lookup): Allow entry not found.
8812         (create_components): Remove.
8813         (create_one_component_var, get_component_var): New.
8814         (get_component_ssa_name, set_component_ssa_name): New.
8815         (extract_component): Use get_component_ssa_name.
8816         (update_complex_components): Use set_component_ssa_name.
8817         (update_complex_components_on_edge): Likewise.
8818         (update_phi_components): Create new PHI nodes directly, instead
8819         of adding insns to edges.
8820         (tree_lower_complex): Allocate and free complex_variable_components
8821         and complex_ssa_name_components here.
8822
8823 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
8824
8825         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
8826         revert to returning false.
8827
8828 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
8829
8830         PR target/21149
8831         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
8832
8833 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
8834
8835         PR target/22576
8836         * config/i386/i386.md (cmpxf): Change operand constraints
8837         to "nonmemory_operand".
8838
8839 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
8840
8841         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
8842
8843 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
8844
8845         PR middle-end/21180
8846         * fold-const.c (fold_build1): Add checksum for the operands.
8847         (fold_build2): Likewise.
8848         (fold_build3): Likewise.
8849
8850 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
8851
8852         PR middle-end/19055
8853         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
8854
8855 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
8856
8857         * common.opt (-fforward-propagate): Committed by mistake,
8858         removed.
8859
8860 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8861
8862         * reg-stack.c: Fix comment typo(s).
8863         * tree-ssa-operands.c: Likewise.
8864         * tree-vectorizer: Likewise.
8865
8866 2005-07-21  Nick Clifton  <nickc@redhat.com>
8867
8868         * config/sh/symbian.c: Replace C++ style line comments with C
8869         style line comments.
8870         (symbian_add_attribute): Do not use a ? operator on the LHS of
8871         an assignment.
8872         (sh_symbian_handle_dll_attribute): Change the type of the
8873         method vector to "VEC(tree,gc)*" and use vector accessor
8874         macros to walk over the elements.
8875         (symbian_export_vtable_and_rtti_p): Likewise.
8876         (symbian_class_needs_attribute_p): Likewise.
8877
8878 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
8879
8880         PR target/22085
8881         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
8882         initialize targetm.resolve_overloaded_builtin here.
8883         (altivec_expand_overloaded_builtin): Make it non-static.
8884         * config/rs6000/rs6000-protos.h
8885         (altivec_expand_overloaded_builtin): New prototype.
8886         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
8887         targetm.resolve_overloaded_builtin here.
8888         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
8889
8890 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
8891             Zdenek Dvorak  <dvorakz@suse.cz>
8892
8893         PR tree-optimization/19210
8894         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
8895         New.
8896         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
8897         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
8898         rely on unproven assumptions.
8899         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
8900         * tree-flow.h (number_of_iterations_exit): Add final parameter.
8901         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
8902         to number_of_iterations_exit.
8903         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
8904         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
8905         * tree-ssa-loop-niter.c (find_loop_niter,
8906         estimate_numbers_of_iterations_loop): Likewise.
8907         (number_of_iterations_exit): Honor the new options.
8908         * doc/invoke.texi (Wunsafe-loop-optimizations,
8909         funsafe-loop-optimizations): Document them.
8910
8911 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
8912
8913         PR rtl-optimization/22167
8914         * gcse.c (hoist_code): Fix hoist_exprs[] check.
8915
8916 2005-07-20  Adam Nemet  <anemet@lnxw.com>
8917
8918         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
8919         __do_global_dtors_aux longcall.
8920
8921 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
8922
8923         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
8924         (old_special_pred_table): Don't reference
8925         SPECIAL_MODE_PREDICATES.
8926         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
8927         * config/arc/arc.h: Don't mention PREDICATE_CODES.
8928         * config/sh/predicates.h: Don't mention
8929         SPECIAL_MODE_PREDICATES.
8930         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
8931         Remove.
8932
8933 2005-07-20  DJ Delorie  <dj@redhat.com>
8934
8935         * config.gcc: Add m32c-elf support.
8936
8937         * doc/contrib.texi: Mention m32c.
8938         * doc/extend.texi: Document m32c extensions.
8939         * doc/install.texi: Mention m32c.
8940         * doc/invoke.texi: Document m32c options.
8941         * doc/md.texi: Document m32c constraints.
8942
8943         * config/m32c/addsub.md: New file.
8944         * config/m32c/bitops.md: New file.
8945         * config/m32c/cond.md: New file.
8946         * config/m32c/jump.md: New file.
8947         * config/m32c/m32c-lib1.S: New file.
8948         * config/m32c/m32c-lib2.c: New file.
8949         * config/m32c/m32c-modes.def: New file.
8950         * config/m32c/m32c-pragma.c: New file.
8951         * config/m32c/m32c-protos.h: New file.
8952         * config/m32c/m32c.abi: New file.
8953         * config/m32c/m32c.c: New file.
8954         * config/m32c/m32c.h: New file.
8955         * config/m32c/m32c.md: New file.
8956         * config/m32c/m32c.opt: New file.
8957         * config/m32c/minmax.md: New file.
8958         * config/m32c/mov.md: New file.
8959         * config/m32c/muldiv.md: New file.
8960         * config/m32c/predicates.md: New file.
8961         * config/m32c/prologue.md: New file.
8962         * config/m32c/shift.md: New file.
8963         * config/m32c/t-m32c: New file.
8964
8965 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8966
8967         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
8968         (stack_protect_set, stack_protect_test): New expanders.
8969         (stack_protect_set_si, stack_protect_set_si_media,
8970         stack_protect_set_di_media, stack_protect_test_si,
8971         stack_protect_test_si_media, stack_protect_test_di_media):
8972         New insns.
8973
8974 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
8975
8976         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
8977
8978 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
8979
8980         * tree.h (tree_expr_nonzero_p): Export.
8981         * fold-const.c (tree_expr_nonzero_p): Likewise.
8982         Return true for CALL_EXPRs that are alloca calls.
8983         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
8984         against zero.
8985         * tree-flow.h (expr_computes_nonzero): Remove.
8986         * tree-vrp.c (expr_computes_nonzero): Remove.
8987         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
8988         (extract_range_from_unary_expr): Likewise.
8989         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
8990         tree_expr_nonzero_p.
8991
8992 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
8993
8994         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
8995         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
8996         extra arg "picreg" and use it instead of pic_offset_table_rtx.
8997         All callers changed.
8998         (frame_related_constant_load): New arg "related" which controls
8999         setting of RTX_FRAME_RELATED_P.  All callers changed.
9000         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
9001         (bfin_expand_prologue): Add stack limit checking.
9002         * config/bfin/bfin.md (trapifcc): New pattern.
9003
9004         * config/bfin/bfin.c: Include "langhooks.h".
9005         (def_builtin): Go through lang_hooks to call builtin_function.
9006
9007         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
9008         * config/bfin/predicates.md (symbol_ref_operand): New.
9009         (call_insn_operand): Delete.  All callers changed to use
9010         register_no_elim_operand.
9011         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
9012         call_cookie field.
9013         (function_arg): Use it to generate the call's operand 2.
9014         (bfin_longcall_p): New function.
9015         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
9016         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
9017         determine if the address needs to be in a REG.
9018         (bfin_handle_longcall_attribute): New function.
9019         (bfin_attribute_table): Add "longcall" and "shortcall".
9020         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
9021         (CUMULATIVE_ARGS): New member call_cookie.
9022         (PREDICATE_CODES): Add symbol_ref_operand.
9023         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
9024         extra USE to the pattern.
9025         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
9026         New patterns, split off call_insn, sibcall_insn, call_value_insn and
9027         sibcall_value_insn; now the new patterns handle direct calls and the
9028         old ones indirect calls.
9029         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
9030
9031 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9032
9033         * doc/trouble.texi: Update section on handling of empty loops.
9034
9035 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
9036
9037         * config.gcc: Remove support for sparc-*-openbsd*,
9038         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
9039         ns32k-*-netbsd*.
9040         * config.host: Remove support for i860-*-sysv4* as a host.
9041         * config/i860/*, config/ip2k/*, config/ns32k/*,
9042         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
9043         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
9044         mention obsolete ports.
9045
9046 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9047
9048         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
9049         soft frame pointer.
9050         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
9051         of frame_pointer_rtx.
9052         (sh_expand_epilogue): Likewise.
9053         (sh_set_return_address): Likewise.
9054         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
9055         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
9056         offsets from FRAME_POINTER_REGNUM.
9057         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
9058         (sh_register_names): Add initializer for sfp.
9059         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
9060         (VALID_REGISTER_P): Likewise.
9061         (FIRST_PSEUDO_REGISTER): Update.
9062         (DWARF_FRAME_REGISTERS): Define.
9063         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
9064         (HARD_FRAME_POINTER_REGNUM): Define.
9065         (FRAME_POINTER_REGNUM): Redefine.
9066         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
9067         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
9068         from FRAME_POINTER_REGNUM.
9069         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
9070         FRAME_POINTER_REGNUM.
9071         (REG_CLASS_CONTENTS): Add sfp.
9072         (REG_ALLOC_ORDER): Likewise.
9073         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
9074         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
9075         of frame_pointer_rtx.
9076         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9077
9078 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
9079
9080         * fold-const.c (tree_expr_nonnegative_p): Only return true for
9081         ABS_EXPR when flag_wrapv is false because of INT_MIN.
9082         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
9083         of an ABS_EXPR.
9084         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
9085         ABS_EXPR<x>.
9086
9087 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
9088
9089         Make CONSTRUCTOR use VEC to store initializers.
9090         * c-common.c (complete_array_type): Update to cope with VEC in
9091         CONSTRUCTOR_ELTS.
9092         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
9093         (pp_c_constructor_elts): New function.
9094         * c-pretty-print.h (pp_c_constructor_elts): Declare.
9095         * c-typeck.c (build_function_call, build_c_cast, digest_init,
9096         struct constructor_stack, struct initializer_stack,
9097         constructor_elements, push_init_level, pop_init_level,
9098         add_pending_init, find_init_member, output_init_element): Update to
9099         cope with VEC in CONSTRUCTOR_ELTS.
9100         * coverage.c (build_fn_info_value, build_ctr_info_value,
9101         build_gcov_info): Likewise.
9102         * expr.c (categorize_ctor_elements_1, store_constructor,
9103         expand_expr_real_1): Likewise.
9104         * fold-const.c (fold_ternary): Likewise.
9105         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
9106         gimplify_init_constructor, gimplify_expr): Likewise.
9107         * tree-dump.c (dequeue_and_dump): Likewise.
9108         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
9109         node.
9110         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
9111         CONSTRUCTOR_ELTS.
9112         * tree-sra.c (generate_element_init_1): Likewise.
9113         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
9114         * tree-ssa-operands.c (get_expr_operands): Likewise.
9115         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9116         * tree-vect-transform.c (vect_get_vec_def_for_operand):
9117         (get_initial_def_for_reduction): Likewise.
9118         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
9119         value handle in annotations.
9120         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
9121         tree_node_structure): Add support for constr_kind.
9122         (build_vector_from_ctor, build_constructor_single,
9123         build_constructor_from_list): New functions.
9124         (build_constructor): Update to take a VEC instead of a TREE_LIST.
9125         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
9126         Update to cope with VEC in CONSTRUCTOR_ELTS.
9127         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
9128         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
9129         CONSTRUCTOR_APPEND_ELT): New macros.
9130         (struct constructor_elt, struct tree_constructor): New data types.
9131         (union tree_node): Add tree_constructor field.
9132         * treestruct.def: Define TS_CONSTRUCTOR.
9133         * varasm.c (const_hash_1, compare_constant, copy_constant,
9134         compute_reloc_for_constant, output_addressed_constants,
9135         initializer_constant_valid_p, output_constant,
9136         array_size_for_constructor, output_constructor): Update to cope with
9137         VEC in CONSTRUCTOR_ELTS.
9138         * vec.h (VEC_empty, VEC_copy): New macros.
9139
9140 2005-07-19  Devang Patel  <dpatel@apple.com>
9141
9142         * dbxout.c (dbxout_type): Check Objective-C++ lang.
9143
9144 2005-07-19  Richard Henderson  <rth@redhat.com>
9145
9146         PR tree-opt/22278
9147         * gimplify.c (gimplify_expr): Use main variant type for the temp
9148         destination for a discarded volatile read.
9149         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
9150         casts between non-void types that change volatility.
9151
9152 2005-07-15  DJ Delorie  <dj@redhat.com>
9153
9154         * toplev.h: Add comment about the first parameter for warning().
9155         * errors.h: Likewise.
9156
9157         * c.opt (Wpragmas): New.
9158         * doc/invoke.texi: Document it.
9159
9160         * function.c (do_warn_unused_parameter): Add warning control to
9161         warning call.
9162         * c-decl.c (warn_if_shadowing): Likewise.
9163         * c-lex.c (cb_def_pragma): Likewise.
9164         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
9165         (pop_alignment): Likewise.
9166         (handle_pragma_pack): Likewise.
9167         (apply_pragma_weak): Likewise.
9168         (handle_pragma_weak): Likewise.
9169         (handle_pragma_redefine_extname): Likewise.
9170         (add_to_renaming_pragma_list): Likewise.
9171         (handle_pragma_extern_prefix): Likewise.
9172         (maybe_apply_renaming_pragma): Likewise.
9173         (handle_pragma_visibility): Likewise.
9174
9175         * config/c4x/c4x-c.c (BAD): Likewise.
9176         (c4x_parse_pragma): Likewise.
9177         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
9178         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
9179         (rs6000_pragma_longcall): Likewise.
9180         * config/v850/v850-c.c (pop_data_area): Likewise.
9181         (ghs_pragma_section): Likewise.
9182         (ghs_pragma_section): Likewise.
9183         (ghs_pragma_interrupt): Likewise.
9184         (ghs_pragma_starttda): Likewise.
9185         (ghs_pragma_startsda): Likewise.
9186         (ghs_pragma_startzda): Likewise.
9187         (ghs_pragma_endtda): Likewise.
9188         (ghs_pragma_endsda): Likewise.
9189         (ghs_pragma_endzda): Likewise.
9190
9191 2005-07-19  Danny Berlin <dberlin@dberlin.org>
9192             Kenneth Zadeck <zadeck@naturalbridge.com>
9193
9194         * Makefile.in: Removed tree-promote-statics.c
9195         * tree-promote-statics.c: Removed.
9196         * common.opt: Removed flag-promote-statics.
9197         * opts.c: Ditto.
9198         * passes.c: Removed tree-promote-statics pass.
9199         * tree-pass.h: Ditto.
9200         * timevar.def: Removed TV_PROMOTE_STATICS.
9201
9202
9203 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
9204
9205         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
9206         and *-*-freebsd9.
9207         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
9208
9209 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9210
9211         PR c/22476
9212         * c-common.c (check_function_arguments): Call
9213         'check_function_format' if either -Wformat or
9214         -Wmissing-format-attribute are specified.
9215         * c-format.c (check_function_format): Check -Wformat before
9216         calling 'check_format_info'.
9217         * c-opts.c (c_common_post_options): Don't warn for
9218         -Wmissing-format-attribute without -Wformat.
9219         * c-typeck.c (convert_for_assignment): Detect additional cases for
9220         -Wmissing-format-attribute.
9221         * doc/invoke.texi (-Wmissing-format-attribute): Document new
9222         behavior.
9223
9224 2005-07-19  Richard Guenther  <rguenther@suse.de>
9225
9226         * config/i386/i386.md (lrint<mode>2): Use temporary
9227         instead of clobbering non-existent memory.
9228
9229 2005-07-19  Nick Clifton  <nickc@redhat.com>
9230
9231         * config/avr/avr.c (legitimate_address_p): Fix debugging print
9232         statement to avoid displaying ASCII control characters.
9233
9234 2005-07-19  Ben Elliston  <bje@au.ibm.com>
9235
9236         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
9237         * cfganal.c (find_edge_index): Ditto.
9238         * combine.c (combine_instructions): Ditto.
9239         * ddg.c (create_scc): Ditto.
9240         (find_successors): Ditto.
9241         (find_predecessors): Ditto.
9242         (find_nodes_on_paths): Ditto.
9243         (longest_simple_path): Ditto.
9244         * flow.c (update_life_info): Ditto.
9245         (count_or_remove_death_notes): Ditto.
9246         (clear_log_links): Ditto.
9247         * modulo-sched.c (generate_reg_moves): Ditto.
9248         (find_max_asap): Ditto.
9249         (find_max_hv_min_mob): Ditto.
9250         (find_max_dv_min_mob): Ditto.
9251         * sbitmap.c (sbitmap_first_set_bit): Ditto.
9252         * sched-rgn.c (extract_edgelst): Ditto.
9253         * tree-into-ssa.c (prepare_names_to_update): Ditto.
9254         (dump_update_ssa): Ditto.
9255         (ssa_names_to_replace) Ditto.
9256         (switch_virtuals_to_full_rewrite): Ditto.
9257         (update_ssa): Ditto.
9258         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
9259
9260 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
9261
9262         Fix PR tree-optimization/22483
9263
9264         * tree-complex.c (create_components): Use
9265         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
9266         * tree-flow-inline.h (fill_referenced_var_vec): New function.
9267         * tree-flow.h (safe_referenced_var_iterator): New structure.
9268         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
9269         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
9270         safe_referenced_var iterator.
9271         (add_type_alias): Ditto.
9272
9273 2005-07-19  Steven Bosscher  <stevenb@suse.de>
9274
9275         * loop-init.c (rest_of_handle_loop2): Remove.
9276         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
9277         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
9278         (pass_rtl_loop_init, pass_rtl_loop_done,
9279         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
9280         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
9281         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
9282         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
9283         pass_tree_loop_done, and pass_tree_unswitch.
9284         (gate_loop): Rename to gate_tree_loop.
9285         * passes.c (init_optimization_passes): Update for renamed tree
9286         loop passes.  Add the new loop2 passes as subpasses of loop2.
9287         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
9288         Update for the renamed tree loop passes.
9289
9290 2005-07-18  Ian Lance Taylor  <ian@airs.com>
9291
9292         PR middle-end/22057
9293         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
9294         blocks when optimizing.
9295
9296 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
9297
9298         * common.opt (frename-registers): Initialize to 2.
9299         (fweb): Ditto.
9300         (fgcse-after-reload): Ditto.
9301         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
9302         (process_options): Only change flag_web, flag_rename_registers,
9303         and flag_rerun_cse_after_loop if not explicitly set by user.
9304
9305 2005-07-18  Jan Beulich  <jbeulich@novell.com>
9306
9307         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
9308         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
9309         in 64-bit mode the same as DImode in 32-bit mode.
9310         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
9311         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
9312         mode. Add new mode parameter.
9313         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
9314         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
9315         x86_64_shift_adj): New expanders.
9316         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
9317         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
9318         insns.
9319         Respective new splitters. Use renamed shift splitter helpers in 32-bit
9320         DImode shift splitters.
9321         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
9322         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
9323         mode parameter.
9324
9325 2005-07-18  Jan Beulich  <jbeulich@novell.com>
9326
9327         * i386.md (movdi_extzv_1): New.
9328         (zero_extendhidi2): Combine alternatives and never force use of
9329         REX64 prefix.
9330         (zero_extendqidi2): Likewise. Don't restrict input selection.
9331
9332 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9333
9334         Fix PR tree-optimization/22531
9335         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
9336          moment.
9337
9338 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9339
9340         * tree-promote-statics.c (pass_promote_statics): Change dump file
9341          name.
9342
9343 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9344
9345         * tree-optimize.c (init_tree_optimization_passes): Add
9346         pass_eliminate_useless_stores pass.
9347         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
9348         * tree-ssa-pre.c (is_copy_stmt): New function.
9349         (follow_copies_till_vuse): Ditto.
9350         (do_eustores): Ditto.
9351         (gate_eustores): Ditto.
9352
9353 2005-07-16  Richard Henderson  <rth@redhat.com>
9354
9355         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
9356
9357 2005-07-16 Danny Berlin <dberlin@dberlin.org>
9358            Kenneth Zadeck <zadeck@naturalbridge.com>
9359
9360         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
9361         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
9362         ipa-type-escape.h, tree-promote-statics.c
9363         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
9364         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
9365         tree-promote-statics.c: new files.
9366         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
9367         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
9368         int nonlocal_set_p, mark_constant_function): Deleted.
9369         (rest_of_handle_cfg): Removed call to mark_constant_function.
9370         (nonoverlapping_component_refs_p): Added calls to support
9371         type based aliasing.
9372         * tree-ssa-alias.c (may_alias_p,
9373         compute_flow_insensitive_aliasing): Ditto.
9374         * calls.c (flags_from_decl_or_type): Removed reference to
9375         cgraph_rtl_info.
9376         * c-typeck.c (convert_arguments): Make builtins tolerant of having
9377         too many arguments.  This is necessary for Spec 2000.
9378         * cgraph.h (const_function, pure_function): Removed.
9379         * common.opt: Added "fipa-pure-const", "fipa-reference",
9380         "fipa-type-escape", and "ftree-promote-static".
9381         * opts.c: Ditto.
9382         * passes.c: Added ipa and tree-promote-statics passes.
9383         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
9384         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
9385         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
9386         * tree-flow.h: Added exposed sra calls and addition of
9387         reference_vars_info field for FUNCTION_DECLS.
9388         * tree-pass.h: Added passes.
9389         * tree-sra.c: (sra_init_cache): New function.
9390         (sra_insert_before, sra_insert_after) Made public.
9391         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
9392         and made public.
9393         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
9394         aliasing. (may_alias_p): Added code to use type escape analysis to
9395         improve alias sets.
9396         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
9397         code to prune clobbers of static variables based on information
9398         produced in ipa-reference pass.  Changed call clobbering so that
9399         statics are not marked as clobbered if the call does not clobber
9400         them.
9401
9402 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
9403
9404         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
9405         too.
9406
9407 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9408
9409         * doc/install.texi (*-*-solaris2*): Document recommended version
9410         of GNU binutils and mention GNU linker problem on Solaris 10.
9411
9412 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
9413
9414         PR c/22421
9415         * c-decl.c (c_build_bitfield_integer_type): New function.
9416         (finish_struct): Call it.
9417         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
9418
9419 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9420
9421         * c-typeck.c (digest_init): Call 'convert_for_assignment'
9422         before returning.
9423
9424 2005-07-16  Jan Hubicka  <jh@suse.cz>
9425
9426         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
9427         (scale_bbs_frequencies_int): Watch roundoff errors.
9428         * predict.c (return_prediction): Initialize return_stmt.
9429
9430 2005-07-16  Jan Hubicka  <jh@suse.cz>
9431
9432         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
9433         after RTL profiling.
9434
9435 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
9436
9437         PR middle-end/22398
9438         * fold-const.c (build_range_check): Convert high/low to etype
9439         if we are only comparing against exp.
9440
9441 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
9442
9443         Fix PR tree-optimization/22376
9444         * tree-ssa-structalias.c (build_constraint_graph): We really meant
9445         special var here.
9446         (need_to_solve): New function.
9447         (compute_points_to_sets): Use it.
9448
9449 2005-07-15  Jan Hubicka  <jh@suse.cz>
9450
9451         * cfg.c (update_bb_profile_for_threading): More diagnostic.
9452         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
9453
9454 2005-07-15  Richard Guenther  <rguenther@suse.de>
9455
9456         * c-common.c (handle_flatten_attribute): New function.
9457         Add flatten function attribute.
9458         * doc/extend.texi: Document flatten function attribute.
9459         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
9460         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
9461         New functions.
9462         (cgraph_decide_inlining): Handle functions with flatten
9463         attribute.
9464
9465 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
9466
9467         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
9468         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
9469         UNSPEC_XCHG, UNSPEC_AND): New.
9470         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
9471         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
9472         * config/rs6000/sync.md (FETCHOP): New code macro.
9473         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
9474         New code attrs.
9475         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
9476         (sync_compare_and_swap<mode>): Same.
9477         (sync_lock_test_and_set<mode>): Same.
9478         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
9479         for QImode and HImode, and not PPC405.
9480         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
9481         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
9482         (sync_<fetchop>{si,di}_internal): New.
9483         (sync_nand{si,di}_internal): New.
9484         (sync_old_<fetchop>{si,di}_internal): New.
9485         (sync_old_nand{si,di}_internal): New
9486         (sync_new_<fetchop>{si,di}_internal): New.
9487         (sync_new_nand{si,di}_internal): New.
9488         (atomic_and{si,di}): New.
9489         (sync_new_nand{si,di}_internal): New.
9490         (atomic_and{si,di}): New.
9491         (sync_add<mode>_internal): Delete.
9492         (sync_addshort_internal): Use unspec instead of unspec_volatile.
9493         (sync_sub<mode>_internal): Delte.
9494         (sync_subshort_internal): New.
9495         (sync_andsi_internal): Use unspec instead of unspec_volatile.
9496         (sync_anddi_internal): Delete.
9497         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
9498         (sync_booldi_internal): Delete.
9499         (sync_boolc<mode>_internal): Delete.
9500         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
9501         (sync_boolc<mode>_internal2): Delete.
9502         (sync_boolcc<mode>_internal): Delete.
9503         (isync, lwsync): Use unspec instead of unspec_volatile.
9504         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
9505         Revert UNSPEC_VOLATILE.
9506         (rs6000_split_atomic_op): New.
9507         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
9508
9509 2005-07-14  Eric Christopher  <echristo@redhat.com>
9510
9511         * config/mips/mips.c (mips_canonicalize_comparison): Cast
9512         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
9513
9514 2005-07-14  Eric Christopher  <echristo@redhat.com>
9515
9516         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
9517
9518 2005-07-14  Steven Bosscher  <stevenb@suse.de>
9519
9520         PR tree-optimization/22230
9521         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
9522         the computation of the four cross productions for "range op range".
9523
9524 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
9525             Ulrich Weigand  <uweigand@de.ibm.com>
9526
9527         PR target/20126
9528         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
9529         in some insn.
9530
9531 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
9532
9533         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
9534
9535 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
9536
9537         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
9538
9539 2005-07-14  Richard Guenther  <rguenther@suse.de>
9540
9541         PR middle-end/22347
9542         * config/i386/i386-protos.h (ix86_function_value): Change
9543         prototype to match new target hook.
9544         * config/i386/i386.c (ix86_value_regno): Change prototype
9545         to take extra type argument.
9546         (TARGET_FUNCTION_VALUE): Define.
9547         (ix86_function_ok_for_sibcall): Pass extra argument to
9548         ix86_value_regno, check return slot rtx for exact match.
9549         (ix86_function_value): Take extra parameter.  Dispatch to
9550         ix86_value_regno with fndecl/fntype as provided.
9551         (ix86_value_regno): Handle extra type argument.
9552         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
9553
9554         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
9555         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
9556         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
9557         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
9558         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
9559
9560 2005-07-14  Richard Guenther  <rguenther@suse.de>
9561
9562         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
9563         * calls.c (expand_call): Pass fntype to hard_function_value.
9564         (emit_library_call_value_1): Likewise.
9565         * explow.c: Include target.h.
9566         (hard_function_value): Take extra argument, the fntype.
9567         Use new target hook for function_value.
9568         * expr.h (hard_function_value): Change prototype.
9569         * function.c (aggregate_value_p): Pass 0 as fntype to
9570         hard_function_value.
9571         (assign_parms): Use new target hook for function_value.
9572         Pass 0 as fntype to hard_function_value.
9573         (expand_function_end): Likewise.
9574         * reg-stack.c: Include target.h.
9575         (stack_result): Use new target hook for function_value.
9576         * target-def.h: New target hook function_value.
9577         * target.h: Likewise.
9578         * targhooks.c (default_function_value): New function.
9579         * targhooks.h (default_function_value): Declare.
9580
9581 2005-07-13  Ian Lance Taylor  <ian@airs.com>
9582
9583         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
9584
9585 2005-07-14  Jan Hubicka  <jh@suse.cz>
9586
9587         * tree-dfa.c (dump_variable): Use default_def function.
9588         * tree-ssa-alias.c (dump_points_to_info): Likewise.
9589         * tree-ssa.c (verify_use): Likewise.
9590         * tree-ssanames.c (release_ssa_name): Likewise.
9591         * tree-tailcall.c (eliminate_tail_call): Likewise.
9592         (tree_optimize_tail_calls_1): Likewise.
9593         * tree-vrp.c (get_value_range): Likewise.
9594
9595 2005-07-14  Ben Elliston  <bje@au.ibm.com>
9596
9597         * gcc.c (main): Compare language[0] with '*' when iterating over
9598         the infiles.
9599
9600 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
9601
9602         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
9603         "s390_emit_compare".  Add handling of CCZ1mode.
9604         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
9605         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
9606         checking.
9607         (s390_branch_condition_mask): Add CCZ1mode handling.
9608         * config/s390/s390.md: ("seq", "*seq"): New pattern.
9609         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
9610         Use CCZ1mode instead of CCZmode.
9611         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
9612
9613 2006-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
9614
9615         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
9616         pattern.
9617         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
9618
9619 2005-07-13  Eric Christopher  <echristo@redhat.com>
9620
9621         * config/mips/mips.c (mips_canonicalize_comparison): New.
9622         (mips_emit_int_relational): Use.
9623
9624 2005-07-13  Eric Christopher  <echristo@redhat.com>
9625
9626         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
9627         static extra parts.
9628         * config/s390/s390.md: Include tpf.md. Move tpf specific
9629         patterns...
9630         * config/s390/tpf.md: To here.
9631         * config/s390/s390.opt: Move tpf specific options...
9632         * config/s390/tpf.opt: to here. Add mmain option.
9633         * config/s390/tpf-unwind.h: Remove unnecessary defines.
9634         * config/s390/tpf.h: Rewrite.
9635
9636 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9637
9638         * doc/tm.texi: Remove @xref{Cross-profiling}.
9639
9640 2005-07-13  Jeff Law  <law@redhat.com>
9641
9642         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
9643         expressions, test their _DECL operands for pointer equality rather
9644         than using operand_equal_p.
9645
9646 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
9647
9648         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
9649         (TARGET_POSIX_IO): This.
9650         * config/darwin.h: Likewise.
9651         * config/freebsd.h: Likewise.
9652         * config/linux.h: Likewise.
9653         * config/lynx.h: Likewise.
9654         * config/netbsd.h: Likewise.
9655         * config/rs6000/linux64.h: Likewise.
9656         * config/rs6000/linux.h: Likewise.
9657         * config/s390/tpf.h: Likewise.
9658         * config/sh/embed-elf.h: Likewise.
9659         * config/sparc/linux64.h: Likewise.
9660         * config/sparc/linux.h: Likewise.
9661         * config/svr4.h: Likewise.
9662         * gcov-io.h: Likewise.
9663
9664         * doc/tm.texi: Updated.
9665
9666         * libgcov.c (create_file_directory): Defined only if
9667         TARGET_POSIX_IO is defined.
9668         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
9669         is defined.
9670
9671 2005-07-13  Jan Hubicka  <jh@suse.cz>
9672
9673         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
9674
9675 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
9676
9677         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
9678         structure as argument.
9679
9680 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
9681
9682         PR tree-optimization/21921
9683         * tree-iterator.c (tsi_link_before): Support the case when
9684         tsi_end_p (tsi) == true.
9685
9686 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
9687
9688         PR tree-optimization/22442
9689         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
9690         correctly.
9691
9692 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
9693
9694         PR rtl-optimization/20376
9695         * toplev.c (process_options): Enable -fweb and -frename-registers when
9696         unrolling.
9697         * doc/invoke.texi: Update the information about when -fweb and
9698         -frename-registers are enabled.
9699
9700 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
9701
9702         PR tree-opt/21840
9703         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
9704         if *rhs_p is not a SSA_NAME.
9705
9706 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
9707
9708         Fix PR tree-optimization/22422
9709         * tree-ssa-structalias.c (struct variable_info): Add flag for
9710         special vars.
9711         (get_varinfo): Now a static function.
9712         (new_varinfo): init has_union and is_special_var to false.
9713         (solution_set_add): Check has_union.
9714         (do_da_constraint): Move temporary variable so it gets reset
9715         properly.
9716         Also check for special variable.
9717         (do_ds_constraint): Ditto.
9718         (do_sd_constraint): Ditto.
9719         (do_structure_copy): Check for special variable.
9720         (find_func_aliases): Ditto.
9721         (init_base_vars): Set special vars properly.
9722
9723 2005-07-13  Jan Hubicka  <jh@suse.cz>
9724
9725         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
9726         do unit-at-a-time.
9727
9728         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
9729         (get_expr_operands): Fix thinko wrt flags and subvars.
9730
9731         PR tree-optimize/22379
9732         * tree-inline.c (expand_call_inline): Do not output sorry in early
9733         inlining.
9734
9735 2005-07-12  Dale Johannesen  <dalej@apple.com>
9736
9737         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
9738
9739 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
9740
9741         PR bootstrap/21704
9742         * host-linux.h: Include limits.h.
9743
9744 2005-07-12  Dale Johannesen  <dalej@apple.com>
9745
9746         * expr.c (compress_float_constant):  Add cost check.
9747         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
9748
9749 2005-07-12  Dale Johannesen  <dalej@apple.com>
9750
9751         * gcc.target/i386/compress-float-sse.c:  New.
9752         * gcc.target/i386/compress-float-sse-pic.c:  New.
9753         * gcc.target/i386/compress-float-387.c:  New.
9754         * gcc.target/i386/compress-float-387-pic.c:  New.
9755         * gcc.dg/compress-float-ppc.c:  New.
9756         * gcc.dg/compress-float-ppc-pic.c:  New.
9757
9758 2005-07-12  Eric Christopher  <echristo@redhat.com>
9759
9760         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
9761         static extra parts.
9762         * config/s390/s390.md: Include tpf.md. Move tpf specific
9763         patterns...
9764         * config/s390/tpf.md: To here.
9765         * config/s390/s390.opt: Move tpf specific options...
9766         * config/s390/tpf.opt: to here. Add mmain option.
9767         * config/s390/tpf-unwind.h: Remove unnecessary defines.
9768         * config/s390/tpf.h: Rewrite.
9769
9770 2005-07-12  Eric Christopher  <echristo@redhat.com>
9771
9772         * gcc.c (struct infile): Update comment for language.
9773         (main): Rewrite input file resetting code.
9774
9775 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
9776
9777         PR tree-opt/22335
9778         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
9779         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
9780         (lookup_avail_expr): Use constant_boolean_node instead
9781         of boolean_false_node/boolean_true_node.
9782
9783 2005-07-12  Ben Elliston  <bje@au.ibm.com>
9784
9785         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
9786         and use it when printing num_edges.
9787
9788 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
9789
9790         * doc/extend.texi (Blackfin Built-in Functions): New section.
9791         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
9792         @opindex.
9793
9794 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
9795
9796         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
9797         s/cmpstrsi/cmpstrnsi
9798         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
9799         'cmpstrnsi'.
9800         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
9801         (init_optabs): Initialize cmpstrn_optab.
9802         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
9803         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
9804         * expr.c: (enum insn_code cmpstrn_optab): Declare.
9805         * config/i386/i386.md: s/cmpstr/cmpstrn
9806         * config/c4x/c4x.md: s/cmpstr/cmpstrn
9807         * doc/md.texi: Update documentation.
9808
9809 2005-07-11  Richard Henderson  <rth@redhat.com>
9810
9811         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
9812         build_va_arg_indirect_ref.
9813         (alpha_gimplify_va_arg): Likewise.
9814         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
9815         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
9816         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
9817         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
9818         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
9819         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
9820         Likewise.
9821         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
9822
9823 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
9824
9825         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
9826         * passes.c (init_optimization_passes): Add pass_empty_loop.
9827         * tree-pass.h (pass_empty_loop): Declare.
9828         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
9829         try_remove_empty_loop, remove_empty_loops): New functions.
9830         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
9831         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
9832
9833 2005-07-12  Peter Barada  <peter@the-baradas.com>
9834
9835         PR middle-end/16719
9836         PR middle-end/18421
9837         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
9838         in address registers.
9839         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
9840         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
9841         alternative of addsi3_5200.
9842
9843 2005-07-11  Ian Lance Taylor  <ian@airs.com>
9844
9845         * config/mips/mips.md (ffs<mode>2): Remove.
9846
9847 2005-07-11  Ian Lance Taylor  <ian@airs.com>
9848
9849         * doc/tree-ssa.texi (Cleanups): Improve description of
9850         TRY_FINALLY_EXPR.
9851         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
9852
9853 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
9854
9855         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
9856         * tree.h (DECL_ARGUMENT_FLD): New macro.
9857
9858 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
9859
9860         Fix PR tree-optimization/22404
9861
9862         * tree-ssa-structalias.c (create_variable_info_for): Use
9863         correct offset.
9864
9865 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
9866
9867         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
9868         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
9869         for second comparison operand.
9870         * config/bfin/predicates.md (reg_or_const_int_operand): New.
9871
9872         * config/bfin/bfin.md (define_attr "type"): Add "sync".
9873         (define_insn_reservation "alu"): Likewise.
9874         (csync, ssync): Now of type sync.
9875         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
9876         -mcsync-anomaly -mspecld-anomaly.
9877         * config/bfin/bfin.opt (mcsync): Remove.
9878         (mcsync-anomaly, mspecld-anomaly): Add.
9879         * config/bfin/bfin.c: Include "insn-codes.h".
9880         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
9881         (TARGET_DEFAULT_TARGET_FLAGS): New.
9882         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
9883
9884 2005-07-11  Steven Bosscher  <stevenb@suse.de>
9885
9886         * basic-block.h: Give the BB flags enum a name, bb_flags.
9887         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
9888         * cfgcleanup.c (enum bb_flags): Remove here.
9889         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
9890         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
9891         (update_forwarder_flag): Likewise.
9892         (thread_jump): Likewise.
9893         (try_forward_edges): Likewise.
9894         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
9895         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
9896         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
9897
9898 2005-07-11  Richard Guenther  <rguenther@suse.de>
9899
9900         * config/i386/i386.opt: New target option -msseregparm.
9901         * config/i386/i386.c (override_options): Error out for
9902         -msseregparm but no SSE support.
9903         (ix86_function_sseregparm): Check for global sseregparm.
9904         * doc/invoke.texi: Document -msseregparm.
9905
9906 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9907
9908         * config.gcc (m32r-*-linux*): Use the default extra_parts.
9909         (m32rle-*-linux*): Ditto.
9910
9911 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
9912
9913         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
9914         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
9915         bytes.
9916
9917 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9918
9919         PR middle-end/22239
9920         PR target/20126
9921         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
9922         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
9923
9924 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
9925
9926         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
9927         (varmap): Heapify varmap.
9928         (constraints): Heapify constraints.
9929         (struct constraint_graph): Heapify succs and preds.
9930         (constraint_vec_find): Update for heapification.
9931         (constraint_set_union): Ditto.
9932         (insert_into_complex): Ditto.
9933         (constraint_edge_vec_find): Ditto.
9934         (erase_graph_self_edge): Ditto.
9935         (add_graph_edge): Ditto.
9936         (get_graph_weights): Ditto.
9937         (merge_graph_nodes): Ditto.
9938         (build_constraint_graph): Ditto.
9939         (topo_visit): Ditto.
9940         (solve_graph): Ditto.
9941         (create_variable_info_for): Ditto.
9942         (init_base_vars): Ditto.
9943         (delete_points_to_sets): Free graph, varmap, and complex constraints.
9944         (condese_varmap_nodes): Free complex vector.
9945         (clear_edges_for_node): Clear succs and preds vector.
9946
9947 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
9948
9949         * tree-ssa-structalias.c (update_alias_info): Change counting of
9950         references to not include vdefs.
9951
9952 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
9953
9954         * tree-ssa-alias.c (free_used_part_map): Add missing free.
9955         (up_insert): Ditto.
9956
9957 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9958
9959         * pa.c (pa_commutative_p): Make PLUS commutative when
9960         TARGET_NO_SPACE_REGS is true.
9961
9962 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
9963
9964         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
9965         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
9966         * tree-dfa.c (dump_subvars_for): New.
9967         (debug_subvars_for): New.
9968         (dump_variable): Show subvariables if VAR has them.
9969         * tree-flow-inline.h (get_subvar_at): New.
9970         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
9971         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
9972         Update all users.
9973         (struct subvar): Change fields offset and size to unsigned
9974         HOST_WIDE_INT.
9975         (dump_subvars_for): Declare.
9976         (debug_subvars_for): Declare.
9977         (get_subvar_at): Declare.
9978         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
9979         to unsigned HOST_WIDE_INT *.
9980         (overlap_subvar): Likewise.
9981         * tree-gimple.c (is_gimple_reg): Always return false for
9982         SFTs and memory tags.
9983         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
9984         Update all callers.
9985         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
9986         (compute_may_aliases): Call compute_points_to_sets.
9987         (collect_points_to_info_for): Remove.
9988         (compute_points_to_and_addr_escape): Remove.
9989         (delete_alias_info): Call delete_points_to_sets.
9990         (compute_flow_sensitive_aliasing): If the call to
9991         find_what_p_points_to returns false, call set_pt_anything.
9992         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
9993         (set_pt_anything): Clear pi->pt_vars.
9994         (set_pt_malloc): Remove.
9995         (merge_pointed_to_info): Remove.
9996         (add_pointed_to_expr): Remove.
9997         (add_pointed_to_var): Remove.
9998         (collect_points_to_info_r): Remove.
9999         (is_escape_site): Make extern.
10000         (create_sft): New.
10001         (create_overlap_variables_for): Call it.
10002         * tree-ssa-copy.c (merge_alias_info): Never merge
10003         flow-sensitive alias information.
10004         * tree-ssa-operands.c (get_expr_operands): Adjust variables
10005         offset and size to be unsigned HOST_WIDE_INT.
10006         (add_to_addressable_set): Rename from note_addressable.
10007         Set TREE_ADDRESSABLE as the variables are added to the set.
10008         Update all users.
10009         (add_stmt_operand): Do not try to micro-optimize unmodifiable
10010         operands into VUSEs when adding V_MAY_DEFs for members in an
10011         alias set.
10012         * tree-ssa-operands.h (add_to_addressable_set): Declare.
10013         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
10014         (struct variable_info): Add bitfield is_heap_var.
10015         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
10016         (new_var_info): Initialize is_heap_var.
10017         (get_constraint_for): Add HEAP variables to the symbol table.
10018         Mark them with is_heap_var.
10019         (update_alias_info): New.  Taken mostly from the old
10020         compute_points_to_and_addr_escape.
10021         (handle_ptr_arith): New.
10022         (find_func_aliases): Call update_alias_info.
10023         Call handle_ptr_info for tcc_binary expressions.
10024         Call mark_stmt_modified.
10025         (create_variable_info_for): If DECL has subvars, do not create
10026         variables for its subvars.  Always add all the fields.
10027         (set_uids_in_ptset): If the solution includes ANYOFFSET and
10028         SFTs, then add all the SFTs of the structure.
10029         If VI->DECL is an aggregate with subvariables, add the SFT at
10030         VI->OFFSET.
10031         (find_what_p_points_to): If VI is an artificial variable,
10032         translate to bitfields in SSA_NAME_PTR_INFO.
10033         If the solution is empty, set pi->pt_vars to NULL
10034         (init_base_vars): Create ANYOFFSET.
10035         (compute_points_to_sets): Rename from create_alias_vars.
10036         Make extern.
10037         (pass_build_pta): Remove.
10038         (delete_points_to_sets): Rename from delete_alias_vars.
10039         (pass_del_pta): Remove.
10040         * tree-ssa-structalias.h (struct alias_info): Move from
10041         tree-ssa-alias.h.
10042         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
10043         NUM_REFERENCES_SET): Likewise.
10044         (compute_points_to_sets, delete_points_to_sets): Declare.
10045
10046 2005-07-09  Richard Henderson  <rth@redhat.com>
10047
10048         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
10049         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
10050         alpha_split_lock_test_and_set_12): New functions.
10051         * config/alpha/alpha-protos.h: Update.
10052         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
10053         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
10054         * config/alpha/sync.md (I12MODE): New.
10055         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
10056         (sync_<fetchop_name><I48MODE>): Likewise.
10057         (sync_nand<I48MODE>): Likewise.
10058         (sync_old_<fetchop_name><I48MODE>): Likewise.
10059         (sync_new_<fetchop_name><I48MODE>): Likewise.
10060         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
10061         (sync_compare_and_swap<I48MODE>): Likewise.
10062         (sync_lock_test_and_set<I48MODE>): Likewise.
10063         (sync_compare_and_swap<I12MODE>): New.
10064         (sync_compare_and_swap<I12MODE>_1): New.
10065         (sync_lock_test_and_set<I12MODE>): New.
10066         (sync_lock_test_and_set<I12MODE>_1): New.
10067
10068 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
10069
10070         PR 21356
10071         PR 22332
10072         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
10073
10074 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
10075
10076         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
10077         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
10078
10079 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
10080
10081         PR target/21656
10082         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
10083
10084 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
10085
10086         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
10087         memory_operand constraint.
10088         (store_conditional_<mode>): Same.
10089         (sync_compare_and_swap<mode>): Same.
10090         (sync_lock_test_and_set<mode>): Same.
10091
10092 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
10093
10094         Rewrite PIC support to more closely model actual instructions.
10095         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
10096         (cris_symbol): Remove prototypes for removed functions.
10097         (cris_pic_symbol_type_of, cris_valid_pic_const)
10098         (cris_expand_pic_call_address): Prototypes for new functions.
10099         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
10100         variable.
10101         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
10102         modifiers.
10103         <case ':'>: Add case for new punctuation character.
10104         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
10105         emitting (extra) PIC modifier.
10106         <case UNSPEC>: Do not assert for PLT.
10107         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
10108         (cris_expand_prologue, cris_expand_epilogue): Check
10109         for pic_offset_table_rtx usage instead of taking
10110         current_function_uses_pic_offset_table as the final word.
10111         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
10112         Remove flag_pic difference.
10113         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
10114         the moral equivalents of...
10115         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
10116         functions.
10117         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
10118         (cris_handle_option): Mark ARG as unused.
10119         (cris_expand_pic_call_address): New worker function for "call",
10120         "call_value".
10121         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
10122         output PIC constructs here.
10123         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
10124         as symbol-specific modifers, not whole or part of operands.
10125         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
10126         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
10127         constants and flag_pic.
10128         (CONSTANT_INDEX_P): Adjust for new functions.
10129         (enum cris_pic_symbol_type): New helper type.
10130         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
10131         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
10132         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
10133         define_constants.
10134         ("movsi"): Emit actual instructions for GOT and relative access.
10135         ("*movsi_got_load"): New pattern to set up the register holding
10136         the GOT pointer.
10137         ("*movsi_internal"): Operand 1 is not a plain general_operand.
10138         Adjust FIXME for 'S'.
10139         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
10140         Use "movs" for -fpic cases.
10141         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
10142         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
10143         ("call", "call_value"): Just call cris_expand_pic_call_address for
10144         PIC addresses.
10145         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
10146         Remove special pattern.
10147         ("*expanded_call_side", "*expanded_call_value_side"): New
10148         patterns.
10149         (gotplt-to-plt, gotplt-to-plt-side-call)
10150         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
10151         peephole2:s.
10152         * config/cris/cris/predicates.md
10153         ("cris_general_operand_or_gotless_symbol"): Remove unused
10154         predicate.
10155         ("cris_general_operand_or_symbol"): Adjust for new functions.
10156
10157 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10158
10159         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
10160
10161 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
10162
10163         * Makefile.in (TREE_H): Add treestruct.def.
10164         (c-decl.o): Add pointer-set.h
10165         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
10166         visibility on regular DECL's.
10167         (merge_decls): Fix the copying of decl nodes of various types for
10168         the new structures.  Don't update RTL, section name, weak status,
10169         etc, on DECL's without RTL.
10170         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
10171         Don't check volatile on non-variable types.
10172         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
10173         to check whether we have seen arguments.
10174         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
10175         flag is checked before field (flag is common, field is not).
10176         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
10177         TS_DECL_COMMON could have an origin.
10178         (add_location_or_const_value_attribute): Don't check section name
10179         on non-var/function decls.
10180         (dwarf2out_var_location): Reverse order of tests.
10181         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
10182         with DECL_WRTL_CHECK.
10183         * expmed.c (make_tree): rtl is now in decl_with_rtl.
10184         * fold-const.c (fold_binary): Don't check weakness on
10185         non-var/function decls.
10186         (tree_expr_nonzero_p): Ditto.
10187         (fold_checksum_tree): Use tree_decl_extra as sizeof
10188         buffer.
10189         * ggc-page.c (extra_order_size_table): Add sizes for
10190         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
10191         tree_field_decl.
10192         * gimplify.c (gimplify_bind_expr): Only set
10193         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
10194         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
10195         without RTL.
10196         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
10197         * langhooks.h (init_ts). New langhook.
10198         * passes.c (rest_of_decl_compilation): Reverse order of tests.
10199         * print-tree.c (print_node): Update to only print fields that
10200         exist in the structures the passed decl has.
10201         * toplev.c (wrapup_global_declarations): Don't reset
10202         DECL_DEFER_OUTPUT on DECL's that don't contain it.
10203         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
10204         * tree-inline.c (remap_decl): Ditto.
10205         * tree-outof-ssa.c (create_temp): Reverse order of tests.
10206         * tree-pretty-print.c (print_declaration): Don't print
10207         DECL_REGISTER on things that don't contain it.
10208         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
10209         non-var/function decls.
10210         * tree.c (tree_contains_struct): New structure.
10211         (init_priority_for_decl): New hashtable.
10212         (tree_int_map): New structure.
10213         (tree_int_map_eq): New function.
10214         (tree_int_map_marked_p): Ditto.
10215         (tree_int_map_hash): Ditto.
10216         (tree_map): Move to tree.h.
10217         (tree_map_eq): Externalize.
10218         (tree_map_hash): Ditto.
10219         (tree_map_marked_p): Ditto.
10220         (init_ttree): Set up tree_contains_struct and call langhook.
10221         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
10222         (tree_code_size): Update for new structures.
10223         (tree_node_structure): Update for new structures.
10224         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
10225         without the field.
10226         (copy_node_stat):  Copy init priority.
10227         (build_decl_stat): Ditto for visibility.
10228         (ts_enum_names): New.
10229         (tree_contains_struct_check_failed): New function.
10230         (decl_init_priority_lookup): Ditto.
10231         (decl_init_priority_insert): Ditto.
10232         * treestruct.def: New file.
10233         * tree.h (CODE_CONTAINS_STRUCT): New macro.
10234         (CONTAINS_STRUCT_CHECK): Ditto.
10235         (tree_contains_struct_check_failed): New prototype.
10236         (DECL_CHECK): Removed.
10237         (DECL_MINIMAL_CHECK): New.
10238         (DECL_COMMON_CHECK): Ditto.
10239         (DECL_WRTL_CHECK): Ditto.
10240         (DECL_NON_COMMON_CHECK): Ditto.
10241         (DECL_WITH_VIS_CHECK): Ditto.
10242         (VAR_OR_FUNCTION_DECL_P): Ditto
10243         (struct tree_decl_minimal): New structure.
10244         (struct tree_decl_common): Ditto.
10245         (struct tree_decl_with_rtl): Ditto.
10246         (struct tree_decl_with_vis): Ditto.
10247         (struct tree_decl_non_common): Ditto.
10248         (struct tree_field_decl): Ditto.
10249         (struct tree_parm_decl): Ditto.
10250         (struct tree_var_decl): Ditto.
10251         (struct tree_function_decl): Ditto.
10252         (struct tree_const_decl): Ditto.
10253         (struct tree_result_decl): Ditto.
10254         (union tree_node): Add new structures.
10255         * var-tracking.c (track_expr_p): Reverse order of tests.
10256
10257         * doc/c-tree.texi: Add documentation on DECL node internal structure.
10258
10259 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
10260
10261         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
10262         * system.h: Poison FINALIZE_PIC.
10263         * doc/tm.texi (FINALIZE_PIC): Remove.
10264
10265 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10266
10267         PR tree-opt/22329
10268         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
10269         to the correct type if we have a MODIFY_EXPR.
10270
10271 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
10272
10273         PR tree-optimization/22360
10274         * tree.c (upper_bound_in_type): Fix calculations for casting
10275         to a non-wider signed type and casting a signed value to a
10276         wider unsigned type.
10277         (lower_bound_in_type): Fix calculations for casting to a
10278         non-wider signed type.
10279
10280         PR tree-optimization/20139
10281         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
10282         release_defs.
10283         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
10284         fold_cond_expr_cond.
10285         * tree-ssanames.c (release_defs): Assert in_ssa_p.
10286         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
10287
10288 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10289
10290         PR tree-opt/22356
10291         * tree-complex.c (expand_complex_libcall): Produce
10292         REALPART_EXPR/IMAGPART_EXPR with the correct type.
10293
10294 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
10295
10296         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
10297         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
10298         b" assert and inserted fastpath code for this case.
10299         (bitmap_ior): Removed "a != b" assert.
10300
10301 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10302
10303         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
10304         (ENDFILE_SPEC): Likewise.
10305         * config/m32r/m32r.h (ASM_SPEC): Likewise.
10306
10307         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
10308         a large stack frame at epilogue.
10309
10310 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
10311
10312         * final.c: Include sdbout.h when required.
10313
10314 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
10315
10316         * config.gcc (*-*-darwin*): Only one target-specific header file
10317         for generic darwin.
10318         (powerpc-*-darwin*): Add version-specific header files.
10319         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
10320         * config.in: Regenerate.
10321         * configure: Regenerate.
10322         * gcc.c: Include xregex.h.
10323         (version_compare_spec_function): New.
10324         (spec_function): Add version-compare.
10325         (replace_outfile_spec_function): Reformat comment.
10326         (compare_version_strings): New.
10327         * config/darwin-c.c (version_as_macro): New.
10328         (builtin_define): New.
10329         (darwin_cpp_builtins): New.
10330         * config/darwin-protos.h (darwin_cpp_builtins): New.
10331         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
10332         (LIB_SPEC): Make unconditional, update comment.
10333         (TARGET_C99_FUNCTIONS): Define.
10334         * config/darwin.opt: Sort.
10335         (mmacosx-version-min=): New.
10336         * config/darwin7.h: Delete.
10337         * config/darwin8.h: Delete.
10338         * config/i386/darwin.h (): Call darwin_cpp_builtins.
10339         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
10340         (TARGET_C99_FUNCTIONS): Define.
10341         * config/rs6000/darwin7.h: New.
10342         * config/rs6000/darwin8.h: New.
10343         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
10344         (-mmacosx-version-min): Document.
10345
10346 2005-07-07  Ian Lance Taylor  <ian@airs.com>
10347
10348         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
10349
10350 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
10351
10352         PR middle-end/22239
10353         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
10354
10355 2005-07-07  Khem Raj  <kraj@mvista.com>
10356
10357         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
10358         in bytes, not words.
10359
10360 2005-07-07  Paul Brook  <paul@codesourcery.com>
10361
10362         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
10363         DEFAULT_FUNCTION_ARG_PADDING to upward.
10364
10365 2005-07-07  Richard Henderson  <rth@redhat.com>
10366
10367         * function.c (locate_and_pad_parm): Record parameter alignment in
10368         stack_alignment_needed.
10369
10370 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
10371
10372         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
10373         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
10374         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
10375         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
10376         (define_attr "type"): Add isync, sync, load_l, store_c.
10377         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
10378         Create scratch volatile MEM.
10379         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
10380         sync.
10381         (load_locked_<mode>): New.
10382         (store_conditional_<mode>): New.
10383         (sync_compare_and_swap<mode>): Replace with splitter.
10384         (sync_lock_test_and_set<mode>): Replace with splitter.
10385         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
10386         and UNSPECV_ISYNC.
10387         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
10388         is ics.  Attribute isync.
10389         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
10390         lwsync.
10391         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
10392         and UNSPECV_SYNC_OP.
10393         (emit_unlikely_jump): New.
10394         (emit_load_locked): New.
10395         (emit_store_conditional): New.
10396         (rs6000_split_compare_and_swap): New.
10397         (rs6000_split_lock_test_and_set): New.
10398         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
10399         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
10400         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
10401         rs6000_split_lock_test_and_set): Declare.
10402         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
10403         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
10404         store_c, isync, sync.
10405
10406 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
10407
10408         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
10409         filenames to gtyp-gen.h.
10410         (s-typ-gen): Use it in place of for loops.
10411
10412 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
10413
10414         * hooks.c (hook_bool_rtx_int_false): New function.
10415         * hooks.h (hook_bool_rtx_int_false): Declare.
10416         * target-def.h (TARGET_COMMUTATIVE_P): Define.
10417         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
10418         * target.h (struct gcc_target): Add commutative_p member.
10419         * targhooks.c (hook_bool_rtx_commutative_p): New function.
10420         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
10421         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
10422         (pa_commutative_p): New function.
10423         * jump.c (target.h): Include.
10424         (rtx_renumbered_equal_p): Use targetm.commutative_p.
10425         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
10426
10427 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10428
10429         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
10430         (s390_expand_setmem): New.
10431         * config/s390/s390.c: Likewise.
10432         (print_shift_count_operand): Truncate to 12 bits instead of 6.
10433         Adapt comments.
10434         * config/s390/s390.md: ("setmem<mode>"): Accept character as
10435         general_operand.  Call new function "s390_expand_setmem".
10436         ("clrmem_long", "*clrmem_long"): Rewrite to ...
10437         ("setmem_long", "*setmem_long"): ... this.
10438
10439 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10440
10441         * config/s390/s390.c: (optimization_options): Enable
10442         TARGET_MVCLE at -Os.
10443         * doc/invoke.texi: Document changes in default behaviour.
10444         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
10445
10446 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10447
10448         * expr.c: (set_storage_via_setmem): Convert opchar to mode
10449         defined by back-end.
10450
10451 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
10452
10453         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
10454         all sets in the pattern.
10455         * config/rs6000/rs6000.md (stack_protect_testsi,
10456         stack_protect_testdi): Likewise.
10457
10458 2005-07-06  Jeff Law  <law@redhat.com>
10459
10460         * tree-vrp.c (simplify_using_ranges): Kill.
10461         (vrp_finalize): Remove call to simplify_using_ranges.
10462         (simplify_stmt_using_ranges): New function extracted from
10463         simplify_using_ranges.
10464         (simplify_div_or_mod_using_ranges): Likewise.
10465         (simplify_abs_using_ranges): Likewise.
10466         (simplify_cond_using_ranges): New function.
10467         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
10468         * tree-ssa-propagate.c (substitute_and_fold): Call
10469         simplify_stmt_using_ranges if we have range information.
10470
10471 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
10472
10473         * config/ia64/ia64.c (ia64_reorg): Check optimize before
10474         ia64_flag_schedule_isns2.
10475
10476         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
10477         reading/writing general registers.
10478         (ia64_function_arg): Revert 2005-06-18 change.
10479
10480 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
10481
10482         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
10483         (legitimize_tls_address): Use gcc_unreachable instead of abort.
10484
10485 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
10486
10487         * function.c (expand_function_end): Revert part of 2005-06-27
10488         patch.  Do sjlj_emit_function_exit_after after return_label.
10489
10490 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
10491
10492         * doc/install.texi (--disable-libssp): New.
10493
10494 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
10495
10496         * doc/invoke.texi: Update -fforce-mem documentation.
10497         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
10498         code for -fforce-mem.
10499         * expmed.c: (store_bit_field,store_fixed_bit_field,
10500         extract_bit_field): Ditto.
10501         * expr.c: (convert_move): Ditto.
10502         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
10503         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
10504         emit_conditional_add,expand_float,expand_fix): Ditto.
10505         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
10506         (common_handle_option): Issue warning when -fforce-mem specified.
10507
10508 2005-07-06  Paul Brook  <paul@codesourcery.com>
10509
10510         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
10511         argument is empty.
10512         * configure: Regenerate.
10513
10514 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
10515
10516         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
10517
10518 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
10519
10520         Fix PR tree-optimization/22319
10521         Fix PR tree-optimization/22140
10522         Fix PR tree-optimization/22310
10523
10524         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
10525         variable sized types.
10526         Use correct type for intermediate structure on *a = *b structure
10527         copies.
10528
10529 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
10530
10531         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
10532         Remove.
10533         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
10534         (machine_function): Move typedef to...
10535         * config/rs6000/rs6000.c (machine_function): ... here.  Add
10536         varargs_save_offset field.
10537         (rs6000_stack_t): Remove varargs_size field.
10538         (setup_incoming_varargs): Allocate varargs save area using
10539         assign_stack_local, try to make it as small as possible.
10540         Save offset from virtual_stack_vars_rtx to the save area
10541         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
10542         instead of magic 8 when fp word byte size is used.
10543         (rs6000_va_start): Use cfun->machine->varargs_save_offset
10544         instead of -RS6000_VARARGS_SIZE.
10545         (rs6000_stack_info, debug_stack_info,
10546         rs6000_initial_elimination_offset): Remove all traces of
10547         varargs_size.
10548         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
10549         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
10550         RS6000_VARARGS_AREA.
10551
10552 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
10553
10554         PR tree-optimization/21963
10555         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
10556         constant_multiple_of in the same way get_computation_cost_at does.
10557
10558 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
10559
10560         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
10561         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
10562         (gen_compare_reg): If sparc_compare_emitted is set, clear it
10563         and return its previous value.
10564         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
10565         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
10566         constants.
10567         (stack_protect_set, stack_protect_test): New expanders.
10568         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
10569         stack_protect_testdi): New insns.
10570         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
10571         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
10572
10573 2005-07-06  Jeff Law  <law@redhat.com>
10574
10575         * tree-ssa-dce.c (cfg_altered): New global.
10576         (tree_dce_init): Initialize cfg_altered.
10577         (remove_dead_stmt): If we remove an edge in the CFG, then set
10578         CFG_ALTERED.
10579         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
10580         the dominators.
10581
10582 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
10583
10584         * Makefile.in (stamp-collect-ld): Use
10585         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
10586         ./collect-ld if it already exists.
10587         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
10588         Don't remove ./nm if it already exists.
10589
10590 2005-07-05  Devang Patel  <dpatel@apple.com>
10591
10592         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
10593         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
10594         * tree-vectorizer.c (vect_loop_location): New.
10595         (vect_print_dump_info): Use vect_loop_location.
10596         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
10597         (vectorize_loops): Set vect_loop_location.
10598         * tree-vect-analyze.c (vect_analyze_offset_expr,
10599         vect_determin_vectorization_factor, vect_analyze_operations,
10600         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
10601         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
10602         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
10603         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
10604         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
10605         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
10606         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
10607         vect_analyze_loop): Adjust vect_print_dump_info API.
10608         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
10609         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
10610         vect_finish_stmt_generation, vectorizable_assignment,
10611         vectorizable_operation, vectorizable_store, vectorizable_load,
10612         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
10613         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
10614         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
10615         vect_transform_loop): Same.
10616         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
10617         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
10618         Same.
10619
10620 2005-07-05  Randolph Chung  <tausq@debian.org>
10621
10622         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
10623         * configure: Regenerate.
10624         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
10625         (pa_tls_referenced_p): Declare.
10626         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
10627         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
10628         (legitimize_tls_address): New.
10629         (hppa_legitimize_address): Handle TLS addresses.
10630         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
10631         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10632         (emit_move_sequence): Handle TLS addresses.
10633         (pa_encode_section_info): Call default handler to handle common
10634         sections.
10635         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
10636         (CONSTANT_ADDRESS_P): Reject TLS operands.
10637         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
10638         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
10639         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
10640         (UNSPEC_TLSLE): Define new constants.
10641         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
10642         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
10643         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
10644         (tie_symbolic_operand, tle_symbolic_operand): New
10645
10646 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
10647
10648         * aclocal.m4: Update macros for autoconf 2.59 style.
10649         * configure.ac: Likewise.
10650
10651 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10652
10653         * pa.c (function_value): Handle small aggregates on 32-bit targets.
10654         (function_arg): Pass small aggregates in general registers on 32-bit
10655         targets.
10656         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
10657
10658 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
10659
10660         * Makefile.in (final.o): Fix dependencies.
10661
10662 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
10663
10664         PR c/22013
10665         PR c/22098
10666         * langhooks.h (struct lang_hooks): Add expr_to_decl.
10667         * langhooks.c (lhd_expr_to_decl): New.
10668         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
10669         New.
10670         (LANG_HOOKS_INITIALIZER): Update.
10671         * tree.c (recompute_tree_invarant_for_addr_expr): Call
10672         expr_to_decl langhook.
10673         * c-tree.h (c_expr_to_decl): Declare.
10674         * c-typeck.c (c_expr_to_decl): New.
10675         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
10676         specially.
10677         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
10678
10679 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
10680
10681         PR c/22308
10682         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
10683         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
10684
10685 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
10686
10687         * Makefile.in: Adjust dependencies.
10688         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
10689         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
10690         * alias.c (rest_of_handle_cfg, pass_cfg): New.
10691         * bb-reorder.c (duplicate_computed_gotos): Make it static.
10692         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
10693         rest_of_compilation.
10694
10695         * bb-reorder.c (gate_duplicate_computed_gotos,
10696         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
10697         rest_of_handle_reorder_blocks, pass_reorder_blocks,
10698         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
10699         pass_partition_blocks): New.
10700         * bt-load.c (gate_handle_branch_target_load_optimize,
10701         rest_of_handle_branch_target_load_optimize,
10702         pass_branch_target_load_optimize): New.
10703         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
10704         pass_jump2): New.
10705         * cfglayout.c (pass_insn_locators_initialize): New.
10706         * cfgrtl.c (pass_free_cfg): New.
10707         * combine.c (gate_handle_combine, rest_of_handle_combine,
10708         pass_combine): New.
10709         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
10710         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
10711         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
10712         * except.c (pass_set_nothrow_function_flags,
10713         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
10714         pass_rtl_eh): New.
10715         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
10716         rest_of_handle_shorten_branches, pass_shorten_branches,
10717         rest_of_clean_state, pass_clean_state): New.
10718         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
10719         rest_of_handle_remove_death_notes, pass_remove_death_notes,
10720         rest_of_handle_life, pass_life, rest_of_handle_flow2,
10721         pass_flow2): New.
10722         * function.c (pass_instantiate_virtual_regs, pass_init_function,
10723         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
10724         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
10725         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
10726         pass_gcse): New.
10727         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
10728         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
10729         pass_rtl_ifcvt, gate_handle_if_after_combine,
10730         rest_of_handle_if_after_combine, pass_if_after_combine,
10731         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
10732         pass_if_after_reload): New.
10733         * integrate.c (pass_initial_value_sets): New.
10734         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
10735         pass_purge_lineno_notes): New.
10736         * mode-switching.c (rest_of_handle_mode_switching,
10737         pass_mode_switching): New.
10738         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
10739         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
10740         pass_loop2): New.
10741         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
10742         pass_loop_optimize): New.
10743         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
10744         pass_sms): New.
10745         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
10746         pass_gcse2): New.
10747         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
10748         pass_postreload_cse): New.
10749         * profile.c (gate_handle_profiling, pass_profiling,
10750         rest_of_handle_branch_prob, pass_branch_prob): New.
10751         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
10752         pass_split_before_regstack, gate_handle_split_before_regstack,
10753         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
10754         rest_of_handle_split_all_insns, pass_split_all_insns): New.
10755         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
10756         pass_stack_regs): New.
10757         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
10758         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
10759         pass_stack_adjustments): New.
10760         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
10761         pass_regrename): New.
10762         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
10763         pass_delay_slots, gate_handle_machine_reorg,
10764         rest_of_handle_machine_reorg, pass_machine_reorg): New.
10765         * rtl.h (extern void purge_line_number_notes): New.
10766         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
10767         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
10768         pass_sched2): New.
10769         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
10770         pass_tracer): New.
10771         * value-prof.c (gate_handle_value_profile_transformations,
10772         rest_of_handle_value_profile_transformations,
10773         pass_value_profile_transformations): New.
10774         * var-tracking.c (gate_handle_var_tracking,
10775         pass_variable_tracking): New.
10776         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
10777
10778         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
10779         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
10780         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
10781         rest_of_handle_old_regalloc, rest_of_handle_regrename,
10782         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
10783         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
10784         rest_of_handle_gcse2, rest_of_handle_regmove,
10785         rest_of_handle_tracer, rest_of_handle_if_conversion,
10786         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
10787         rest_of_handle_web, rest_of_handle_branch_prob,
10788         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
10789         rest_of_handle_jump_bypass, rest_of_handle_combine,
10790         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
10791         rest_of_handle_gcse, rest_of_handle_loop_optimize,
10792         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
10793         rest_of_handle_mode_switching, rest_of_handle_jump,
10794         rest_of_handle_eh, rest_of_handle_stack_adjustments,
10795         rest_of_handle_flow2, rest_of_handle_jump2,
10796         rest_of_handle_peephole2, rest_of_handle_postreload,
10797         rest_of_handle_shorten_branches, rest_of_clean_state,
10798         rest_of_compilation): Remove.
10799
10800         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
10801         * passes.c (dump_flags, in_gimple_form, all_passes,
10802         all_ipa_passes, all_lowering_passes, register_one_dump_file,
10803         register_dump_files, next_pass_1, last_verified, execute_todo,
10804         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
10805         from tree-optimize.c.
10806         (init_optimization_passes): Moved from tree-optimize.c,
10807         adding the RTL optimizations.
10808         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
10809         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
10810         all_ipa_passes, all_lowering_passes, register_one_dump_file,
10811         register_dump_files, next_pass_1, last_verified, execute_todo,
10812         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
10813         init_tree_optimization_passes, ipa_passes): Delete.
10814         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
10815         the RTL dumps.
10816         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
10817         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
10818         from tree.h.
10819         (ipa_passes): Remove.
10820         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
10821         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
10822         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
10823         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
10824         (dump_info_p, dump_flag): Moved to tree-dump.h.
10825
10826         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
10827         cgraph.c, opts.c.
10828         * passes.c (finish_optimization_passes): Use dump_begin
10829         and dump_end, TDI_end.
10830         (gate_rest_of_compilation): New.
10831         (pass_rest_of_compilation): Use it.
10832         (gate_postreload, pass_postreload): New.
10833         * toplev.c (general_init): Rename init_tree_optimization_passes.
10834         * toplev.h (init_tree_optimization_passes): Rename to
10835         init_optimizations_passes.
10836         * tree-dump.c (dump_flag): Make static.
10837         (dump_files): Remove RTL dumps.
10838         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
10839         pass_cleanup_cfg, pass_free_cfg_annotations,
10840         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
10841         pass_init_datastructures, pass_fixup_cfg): Make non-static.
10842         * tree-pretty-print.c: Include tree-pass.h.
10843         * cgraph.c: Include tree-dump.h.
10844
10845 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
10846
10847         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
10848         Only fall back to saying it points to readonly memory if
10849         we can't do better.
10850
10851 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10852
10853         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
10854         * config/m32r/m32r.c (m32r_compute_frame_size,
10855         m32r_expand_prologue): Take current_function_profile into
10856         account whenever we reference
10857         current_function_uses_pic_offset_table.
10858         (m32r_finalize_pic): Remove.
10859         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
10860
10861 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
10862
10863         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
10864         instead of $<.  Don't remove ./as if it already exists.
10865
10866 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10867
10868         PR target/21723
10869         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
10870         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
10871         for complex modes when generating code for PA 1.0.
10872         (VALID_FP_MODE_P): New macro.
10873         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
10874         sets for all general and floating point modes.  Align wide floating
10875         point modes to even register boundaries to comply with architectural
10876         requirements.
10877         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
10878         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
10879         (VALID_FP_MODE_P): New macro.
10880         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
10881         sets for all general and floating point modes.  Align wide floating
10882         point modes to even register boundaries to comply with architectural
10883         requirements.
10884
10885 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
10886
10887         * tree-dump.c (dump_files): Initialize dump number for .cgraph
10888         to 0.
10889
10890 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
10891
10892         * tree-ssa-structalias.c: Don't include expr.h.
10893
10894 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
10895
10896         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
10897         comments.
10898
10899 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
10900
10901         Fix PR tree-optimization/22279
10902
10903         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
10904         correct operator.
10905
10906 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
10907
10908         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
10909
10910 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
10911
10912         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
10913         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
10914         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
10915         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
10916         config/stormy16/stormy16.c, config/v850/v850.c,
10917         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
10918         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
10919         Avoid "." or "\n" at end of diagnostics and capital letters at
10920         start of diagnostics.
10921         * combine.c, cse.c: Don't translate dump file output.
10922         * toplev.c (print_version): Only translate output if going to
10923         stderr.
10924
10925 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
10926
10927         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
10928         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
10929         typos.
10930
10931 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10932
10933         * pa.c (fix_range): Fix typo in comment.
10934
10935 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
10936
10937         * tree-vrp.c (extract_range_from_assert): Replace
10938         fold (build (...)) with fold_build2.
10939
10940 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10941
10942         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
10943         gcc_gfc_char_table, init_dynamic_gfc_info): New.
10944         (format_types_orig, handle_format_attribute): Add support for
10945         format "gcc_gfc".
10946
10947 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10948
10949         * varasm.c (assemble_variable): Fix format specifier thinko.
10950
10951 2005-07-03  Ira Rosen  <irar@il.ibm.com>
10952
10953         PR tree-optimization/22029 (and 22135)
10954         * tree-pretty-print.c (dump_generic_node): Check that the node is not
10955         a phi node before calling dump_vops.
10956
10957 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10958
10959         * tree-dump.h (dump_string_field): Declare.
10960         * tree-dump.c: Use it instead of dump_string.
10961         (dump_string_field): Make non-static.
10962
10963 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10964
10965         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
10966         up the minimal CFG stuff always when optimize > 0.  Call
10967         split_all_insns_noflow in PIC case if needed.
10968
10969 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10970             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
10971
10972         PR c++/18279
10973         * c-decl.c (c_write_global_declarations): Dump contents of
10974         external scope to.
10975         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
10976         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
10977         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
10978         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
10979         is enabled.
10980
10981 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
10982
10983         * c-common.h (GCC_DIAG_STYLE): Define.
10984         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
10985         version for format checking to 4.1.
10986         * c-format.c: Include toplev.h after c-common.h.
10987         (enum format_type): Add gcc_tdiag_format_type.
10988         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
10989         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
10990         (format_types_orig): Add gcc_tdiag.
10991         (init_dynamic_diag_info): Support gcc_tdiag formats.
10992         (handle_format_attribute): Likewise.
10993         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
10994         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
10995         version for format checking to 4.1.
10996         (warning0, warning, error, pedwarn, sorry): Use
10997         ATTRIBUTE_GCC_DIAG.
10998         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
10999         (finish_aliases_1): Do not use %qE.
11000         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
11001         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
11002         Correct format bugs.
11003         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
11004         parameter to unsigned HOST_WIDE_INT.
11005         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
11006
11007 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
11008
11009         PR middle-end/21742
11010         * expr.c (write_complex_part): Use adjust_address for MEM.
11011         (read_complex_part): Same.
11012
11013 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
11014
11015         Fix PR tree-optimization/22280
11016
11017         * tree-sra.c (generate_element_init): Remove useless loop.
11018
11019 2005-07-02  Richard Henderson  <rth@redhat.com>
11020
11021         * config/alpha/alpha.c (alpha_legitimize_address): Check for
11022         TLS_MODEL_NONE.
11023         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
11024
11025 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
11026
11027         PR middle-end/14490
11028         * fold-const.c (fold_binary): Handle the return value of
11029         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
11030         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
11031
11032 2005-07-02  Jeff Law  <law@redhat.com>
11033
11034         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
11035         a eliminate type conversion which feeds an equality comparison
11036         if the original type or either operand in the comparison is a
11037         function pointer.
11038
11039 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
11040
11041         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
11042         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
11043         texts.
11044         * config/avr/avr.c: Do not use '`' as left quote.
11045         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
11046         Remove "." from end of diagnostics.  Make diagnostics start with
11047         lowercase letter.
11048
11049 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
11050             Joseph S. Myers  <joseph@codesourcery.com>
11051
11052         * toplev.c (default_tree_printer): Handle setting location with
11053         '+' flag.
11054         * c-objc.common.c (c_tree_printer): Likewise.
11055         * c-format.c (gcc_diag_flag_specs): Add '+'.
11056         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
11057         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
11058         formats.
11059         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
11060         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
11061         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
11062         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
11063         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
11064         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
11065         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
11066         format arguments where %J is used without %D.
11067
11068 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
11069
11070         * gcc.c (LINK_SSP_SPEC): Define.
11071         (link_ssp_spec): New variable.
11072         (LINK_COMMAND_SPEC): Add %(link_ssp).
11073         (static_specs): Add link_ssp_spec.
11074         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
11075         * configure: Rebuilt.
11076         * config.in: Rebuilt.
11077
11078         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11079         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11080         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11081         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11082         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
11083         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
11084         -0x7008(2) instead of reading __stack_chk_guard variable.
11085         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
11086         number.
11087         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
11088         (stack_protect_set, stack_protect_test): Use *_tls* patterns
11089         if TARGET_THREAD_SSP_OFFSET is defined.
11090         (stack_tls_protect_set_si, stack_tls_protect_set_di,
11091         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
11092
11093         Revert:
11094         2005-06-27  Richard Henderson  <rth@redhat.com>
11095         * libgcc-std.ver (GCC_4.1.0): New.
11096         * libgcc.h (__stack_chk_guard): Declare.
11097         (__stack_chk_fail, __stack_chk_fail_local): Declare.
11098         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
11099         * mklibgcc.in (lib2funcs): Add them.
11100
11101 2005-07-01  Richard Henderson  <rth@redhat.com>
11102
11103         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
11104         void * before struct sigcontext *.
11105         (x86_fallback_frame_state): Likewise.
11106
11107 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
11108
11109         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
11110
11111 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11112
11113         PR tree-opt/22269
11114         * tree-ssa-reassoc.c (should_transpose): Fix which operand
11115         we check for SSA_NAME for.
11116
11117 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
11118
11119         Fix PR tree-optimization/22071
11120
11121         * tree-ssa-structalias.c (offset_overlaps_with_access): New
11122         function.
11123         (get_constraint_for_component_ref): Use it.
11124
11125 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11126
11127         PR other/22264
11128         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
11129         print out the last new line.
11130
11131 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
11132
11133         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
11134         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
11135         * config/cris/cris.c (cris_conditional_register_usage): Adjust
11136         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
11137         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
11138         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
11139         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
11140         (enum reg_class): New member CC0_REGS.
11141         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
11142         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
11143         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
11144         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11145         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
11146         Adjust for register now described.
11147
11148 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
11149
11150         PR target/22262
11151         * config/i386/i386.md (stack_protect_test_si,
11152         stack_protect_test_di): Add earlyclobber for scratch 3.
11153         * config/rs6000/rs6000.md (stack_protect_testsi,
11154         stack_protect_testdi): Add earlyclobber for scratch 3,
11155         remove earlyclobber from scratch 4.
11156
11157 Older entries for 2005 can be found in ChangeLog-2005.