]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
read-rtl.c (read_quoted_string): Break if EOF.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
27c37000
PB
12005-08-04 Paul Brook <paul@codesourcery.com>
2
3 * read-rtl.c (read_quoted_string): Break if EOF.
4
5808968e
AP
52005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
6
7 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
8 (fold_build2): Likewise.
9 (fold_build3): Likewise.
10 (fold_build1_stat): New function prototype.
11 (fold_build2_stat): Likewise.
12 (fold_build3_stat): Likewise.
13 * fold-const.c (fold_build1): Rename to ..
14 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
15 through to build1_stat.
16 (fold_build2): Rename to ..
17 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
18 through to build2_stat.
19 (fold_build3): Rename to ..
20 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
21 through to build3_stat.
22
d70eadf7 232005-08-04 David Edelsohn <edelsohn@gnu.org>
6d62ac14 24 Ian Lance Taylor <ian@airs.com>
d70eadf7
DE
25
26 * function.c (assign_stack_local_1): Do not correct stack slot
27 address if allocation size is smaller than mode size.
28
c4f548b8
DN
292005-08-04 Diego Novillo <dnovillo@redhat.com>
30
31 PR 22037
32 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
33 (tree_merge_blocks): Propagate anything allowed by
34 may_propagate_copy.
35 Clarify documentation.
36 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
37 SSA form, schedule an update if necessary.
38
2b7c3273
GP
392005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
40
41 * doc/install.texi (Binaries): Remove broken link to
42 Sinix/Reliant Unix binaries.
43
b755446c
RH
442005-08-03 Richard Henderson <rth@redhat.com>
45
46 PR 23221
47 * function.c (stack_protect_epilogue): Export.
48 * tree.h (stack_protect_epilogue): Declare.
49 * calls.c (expand_call): Call it.
50
7904f95f
EC
512005-08-03 Eric Christopher <echristo@apple.com>
52
53 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
54 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
55 spec.
56
d783b2a2
JH
572005-08-04 Jan Hubicka <jh@suse.cz>
58
59 * profile.c (branch_prob): Split edges with goto locus on them
60 to get proper line counts.
61 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
62
53366450
PB
632005-08-03 Paul Brook <paul@codesourcery.com>
64
65 * function.c (assign_parms): Round current_function_args_size
66 to PARM_BOUNDARY, not STACK_BOUNDARY.
67
e81d37df
GK
682005-08-03 Geoffrey Keating <geoffk@apple.com>
69
70 * config/i386/i386.c (x86_elf_aligned_common)
71 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
72
279072c8
ZD
732005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
74
75 PR tree-optimization/23157
76 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
77 before emitting them.
78
9d2b0e12
VR
792005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
80
81 PR tree-optimization/19899
82 * Makefile.in (tree-scalar-evolution.o): Add real.h.
83 * tree-scalar-evolution.c: Include real.h.
84 (add_to_evolution): Build constant -1 of correct type.
85
178df94f
JH
862005-08-03 Jan Hubicka <jh@suse.cz>
87
88 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
89 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
90 profile updating for complette unrolling.
91 * loop-unroll.c (peel_loop_completely): Use it.
92 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
93 (tree_unroll_loops_completely): Disable code growing unrolling of cold
94 loops.
95
4164b2fb
PB
962005-08-03 Paul Brook <paul@codesourcery.com>
97
98 * combine.c (can_change_dest_mode): New function.
99 (try_combine, simplify_set): Use it.
100
4e2b3c87
EB
1012005-08-03 Eric Botcazou <ebotcazou@adacore.com>
102
103 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
104 TFmode to BLKmode.
105
1d7887ca
GP
1062005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
107
108 * doc/install.texi (Specific): Adjust link to openavr.org.
109 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
110 (Binaries): Adjust HP-UX Porting Center link.
111 (Binaries): Adjust Free Software Foundation ordering link.
1d7887ca 112
c7f59e9c
AP
1132005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
114
115 * convert.c (convert_to_integer): Use fold_build1 instead of
116 build1 when converting an integer to an integer.
117
65030b76
RH
1182005-08-02 Richard Henderson <rth@redhat.com>
119
120 * combine.c (combine_instructions): Don't use reg_equal/equiv
121 results if the mode doesn't match.
122
6d1ab63a
MM
1232005-08-02 Mark Mitchell <mark@codesourcery.com>
124
125 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
126 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
127
6d90db3a
RH
1282005-08-02 Richard Henderson <rth@redhat.com>
129
130 PR 23196
7904f95f 131 * explow.c (memory_address): Remove special-case for
6d90db3a
RH
132 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
133
78234a86
DN
1342005-08-02 Diego Novillo <dnovillo@redhat.com>
135
136 PR 23164
137 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
138 number of calls to cleanup_tree_cfg_1.
139
5a006700
MR
1402005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
141
142 * doc/invoke.texi: document file extensions .F90 and .F95
143
237504fc
RG
1442005-08-02 Richard Guenther <rguenther@suse.de>
145
146 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
147 positive if its first argument is positive.
148
e63c84d8
RG
1492005-08-02 Richard Guenther <rguenther@suse.de>
150
151 PR tree-optimization/23177
152 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
153 on TMR_TAG.
154
08303d5b
JM
1552005-08-02 James A. Morrison <phython@gcc.gnu.org>
156
157 PR tree-optimization/23129
158 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
159 varying for divisions with anti-ranges.
160
5e5a504e
JH
1612005-08-02 Jan Hubicka <jh@suse.cz>
162
163 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
164 * tree-ssa-threadupdate.c (thread_block): Add it here.
165
4dbdb061
JW
1662005-08-01 James E Wilson <wilson@specifix.com>
167
168 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
169 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
170 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
171 New.
172 * config/mips/predicates.md (const_call_insn_operand): Add check for
173 SYMBOL_REF_LONG_CALL_P.
174 * doc/extend.texi (long_call): Document the new attribute.
175
9e254451
ILT
1762005-08-01 Ian Lance Taylor <ian@airs.com>
177 Richard Henderson <rth@redhat.com>
178
179 * Makefile.in (RTL_BASE_H): Add real.h.
180 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
181 instead of memcpy.
182 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
183 directly.
184 * rtl.c (rtl_check_failed_code_mode): New.
185 * rtl.h (struct rtx_def): Add u.rv.
186 (XCMWINT, XCNMPRV): New.
187 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
188 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
189
5671655e
RH
1902005-08-01 Richard Henderson <rth@redhat.com>
191
75735872
RH
192 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
193 with auto-inc codes.
194
5671655e
RH
195 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
196
72ce3d4a
JH
1972005-08-01 Jan Hubicka <jh@suse.cz>
198
199 * i386-protos.h (asm_preferred_eh_data_format): Declare.
200 * i386.c: Include dwarf2.h
201 (asm_preferred_eh_data_format): New.
202 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
203
23d28bfe
ILT
2042005-08-01 Ian Lance Taylor <ian@airs.com>
205
206 * config/host-linux.c (linux_gt_pch_get_address): Add new name
207 randomize_va_space for virtual address randomization control.
208
d6e14e8f
SB
2092005-08-01 Steven Bosscher <stevenb@suse.de>
210
211 * common.opt (flag_ipa_cp): Put in right place to maintain
212 alphabetic sort.
213
5ded7254
JH
2142005-08-01 Jan Hubicka <jh@suse.cz>
215
216 * profile.c (compute_value_histograms): Fix thinko.
217 * value-prof.c: Include toplev.h
218 (check_counter): New function.
219 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
220 tree_mod_subtract_transform): Add sanity check.
221
a8f82ec4
RG
2222005-08-01 Richard Guenther <rguenther@suse.de>
223
224 PR tree-optimization/23133
225 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
226 current functions parameter decls to find defs to cse
227 reciprocals of.
228
ac264fef
RG
2292005-08-01 Richard Guenther <rguenther@suse.de>
230
231 PR tree-optimization/23109
232 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
233 If trapping math is in effect, use post-dominator information
234 to check if we'd in any case reach a trapping point before
235 doing the reciprocal insertion.
236 (execute_cse_reciprocals): Compute post-dominators, if necessary.
237 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
238 expressions are invariant only if trapping math is not in effect.
239
57fb5341
RL
2402005-08-01 Razya Ladelsky <razya@il.ibm.com>
241
5a006700
MR
242 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
243 cgraph_function_versioning): New declarations.
244 * cgraphunit.c: Add include to ipa-prop.h.
245 (update_call_expr, cgraph_copy_node_for_versioning,
246 cgraph_function_versioning): New functions.
247 * integrate.c (copy_decl_for_inlining): Remove.
248 * ipa-prop.h (ipa_replace_map): New struct.
249 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
250 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
251 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
252 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
253 ipcp_iterate_stage, ipcp_method_scale_print,
254 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
255 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
256 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
257 ipcp_update_bb_counts, ipcp_update_profiling,
258 ipcp_update_edges_counts): New functions.
259 (ipcp_method_cval_init): Remove restriction regarding local methods.
260 (ipcp_init_stage): Add ipcp_method_compute_scale.
261 (ipcp_insert_stage): Add versioning.
262 (ipcp_structures_print): Add ipcp_method_scale_print.
263 (ipcp_driver): Dump profiling info.
264 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
265 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
266 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
267 (struct inline_data): Add versioning_p, ipa_info, new fields.
268 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
269 declare_return_variable): Replace calls to copy_decl_for_inlining with
270 copy_decl_for_dup.
271 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
272 versioning support.
273 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
274 Add argument VERSIONING.
275 (copy_arguments_for_versioning, copy_static_chain,
276 function_versionable_p, tree_versionable_function_p,
277 tree_function_versioning, replace_ref_tree): New functions.
278 * tree-inline.h: Include varray.h.
279 (tree_versionable_function_p, tree_function_versioning,
280 tree copy_decl_for_dup): New declarations.
57fb5341
RL
281
2822005-08-01 Razya Ladelsky <razya@il.ibm.com>
283
5a006700
MR
284 * ipa-cp.c: New file. Contains IPCP specific functionality.
285 * ipa-prop.h: New file. Contains structures/definitions that can be
286 used by several interprocedural data flow optimizations (and also IPCP).
287 * ipa-prop.c: New file.
288 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
289 * common.opt: Add ipa-cp flag.
290 * timevar.def: Add IPCP optimization.
291 * tree-optimize.c (init_tree_optimization_passes): Schedule
292 pass_ipa_cp.
293 * tree-pass.h (pass_ipa_cp): Declare.
57fb5341 294
569b7f6a
KH
2952005-08-01 Kazu Hirata <kazu@codesourcery.com>
296
297 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
298 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
299 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
300 config/i386/i386.c, config/mips/mips.h,
301 config/rs6000/rs6000.h, config/sh/sh.c,
302 config/stormy16/stormy16.c: Fix comment typos.
303
5922c215
JM
3042005-08-01 Joseph S. Myers <joseph@codesourcery.com>
305
306 PR c/22311
307 * c-typeck.c (build_binary_op): Use common_type wrapper on
308 shortened types.
309 (common_type): Update comment.
310
a3f4b7d8
SB
3112005-07-31 Steven Bosscher <stevenb@suse.de>
312
313 PR target/23095
314 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
315 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
316 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
317
baf7a0d3
JH
3182005-07-31 Jan Hubicka <jh@suse.cz>
319
320 * pretty-print.h (pp_widest_integer): New macro.
321 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
322 counts.
323
7dcbf659
JH
3242005-07-31 Jan Hubicka <jh@suse.cz>
325
326 * output.h (enum section_category): Export from varasm.c
327 (categorize_decl_for_section): Likewise.
328 * varasm.c (enum section_category): Kill.
329 (categorize_decl_for_section): Make global.
330 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
331 Declare.
332 * i386.c (ix86_section_threshold): New static variable.
333 (ix86_in_large_data_p, ix86_encode_section_info,
334 x86_64_elf_unique_section,
335 x86_64_elf_select_section): New functions.
336 (TARGET_ENCODE_SECTION_INFO): Define
337 (override_options): Enable medium model for PIC.
338 (ix86_expand_prologue): Expand gen_set_got_rex64.
339 (legitimate_constant_p): Handle new UNSPECs.
340 (legitimate_pic_address_disp_p): Likewise.
341 (legitimize_pic_address): Lower MEDIUM model addressing.
342 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
343 (enum cmodel): Add MEDIUM_PIC.
344 (SYMBOL_REF_FAR_ADDR_P): New macro.
345 (SYMBOL_FLAG_FAR_ADDR): New flag.
346 * i386.md (movdi): Support medium model.
347 (set_got_rex64): New pattern.
348 * i386.opt (mlarge-data-threshold): New flag.
349 * predicates.md (zext_operand/sext_operand): Deal with medium model.
350 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
351 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
352 TARGET_ASM_UNIQUE_SECTION): New.
353
354 * invoke.texi (-mlarge_data_threshold): Document
355
0bde02b3
JH
3562005-07-31 Jan Hubicka <jh@suse.cz>
357
358 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
359 (coalesce_vars): Likewise.
360 * tree-ssa-live.c (coalesce_cost): New.
361 (build_tree_conflict_graph): Use coalesce_cost.
362 * tree-ssa-live.h (coalesce_cost): Declare.
363
a4ccc336
RE
3642005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
365
366 * arm.md (all peepholes for post-increment operations): Delete.
367 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
368 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
369 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
370 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
371 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
372
06581725
JM
3732005-07-30 James A. Morrison <phython@gcc.gnu.org>
374
375 * fold-const.c (tree_expr_nonnegative_p): Always return true for
376 non-integral types.
377
0cbc4d77 3782005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
d6e14e8f 379
0cbc4d77
WB
380 PR target/22582
381 * doc/invoke.texi: Document -rdynamic.
d6e14e8f 382
91d975b8
JM
3832005-07-30 Joseph S. Myers <joseph@codesourcery.com>
384
385 PR c/23143
386 * c-parser.c (c_parser_parms_list_declarator): Call
387 mark_forward_parm_decls.
388 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
389 decls with visibility structure.
390
f26b8ec9
PB
3912005-07-30 Paul Brook <paul@codesourcery.com>
392
393 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
394
a14b88bb
PB
3952005-07-30 Paul Brook <paul@codesourcery.com>
396
397 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
398 prototype.
399 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
400 value for mode.
401 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
402
7c47d6e9
JM
4032005-07-29 Joseph S. Myers <joseph@codesourcery.com>
404
405 PR c/529
406 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
407 nested function declarators.
408 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
409 (grokparms): Call warn_if_shadowing for parameters used within the
410 parameter list.
411 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
412 not used within the parameter list.
413 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
414
3bc751bd
JH
4152005-07-30 Jan Hubicka <jh@suse.cz>
416
417 * expr.c (expand_expr_real_1): Do not load mem targets into register.
418 * i386.c (ix86_fixup_binary_operands): Likewise.
419 (ix86_expand_unary_operator): Likewise.
420 (ix86_expand_fp_absneg_operator): Likewise.
421 * optabs.c (expand_vec_cond_expr): Validate dest.
422
bc1594c1
JM
4232005-07-29 Joseph S. Myers <joseph@codesourcery.com>
424
425 PR c/21720
426 * real.c (real_from_string): Also set last bit if there is a
427 nonzero hex digit beyond GCC's internal precision after ".".
428
3aca4bff
DE
4292005-07-29 David Edelsohn <edelsohn@gnu.org>
430
431 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
432 define_constants. Change duplicate values to unassigned numbers.
433 Change UNSPEC_SUBS to UNSPEC_VSUBS.
434 (*altivec_vspltsf): New.
435 (altivec_vperm_v4sf): Delete.
436 (altivec_vperm_<mode>): Use mode macro V.
437 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
438 (altivec_predicate_v4sf): Delete.
439 (altivec_predicate_<mode>): Use mode macro V.
440 (*altivec_lvesfx): New.
441 (*altivec_stvesfx): New.
442 (vec_realign_load_v4sf): Delete.
443 (vec_realign_load_<mode>): Use mode macro V.
444 * config/rs6000/rs6000.c (generate_set_vrsave): Use
445 UNSPECV_SET_VRSAVE.
446
b28250ab
MM
4472005-07-29 Mark Mitchell <mark@codesourcery.com>
448
449 PR bootstrap/23131
450 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
7904f95f 451 string.
b28250ab
MM
452 * configure: Regenerated.
453
eae50c87
PB
4542005-07-29 Paul Brook <paul@codesourcery.com>
455
456 * doc/install.texi: Add link to GFortran binaries wiki page.
457
79dad081
DU
4582005-07-29 David Ung <davidu@mips.com>
459
460 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
461 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
462 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
463 * config/mips/mips.md (cpu): Add 5kf name.
464 (includes): Includes 5k.md.
465 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
466 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
7904f95f 467 -march flag.
79dad081 468
89e80dd4
DN
4692005-07-29 Diego Novillo <dnovillo@redhat.com>
470
471 PR 22550
472 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
473 (cleanup_tree_cfg): ... here.
474 Call cleanup_tree_cfg_1 until there are no more cleanups to
475 do.
476
d2f3ffba
JM
4772005-07-29 James A. Morrison <phython@gcc.gnu.org>
478
479 * tree-vrp.c (compare_range_with_value): Return true or false
480 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
481 EQ_EXPR respectively.
482
536fa7b7
KH
4832005-07-29 Kazu Hirata <kazu@codesourcery.com>
484
485 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
486 Fix comment typos.
487
6a2cf9dc
DN
4882005-07-29 Diego Novillo <dnovillo@redhat.com>
489
490 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
491 (tree_ssa_dominator_optimize): Increment it.
492 (dump_dominator_optimization_stats): Print it.
493
abf86bf2
RE
4942005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
495 Steven Bosscher <stevenb@suse.de>
496
497 PR rtl-optimization/23117
498 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
499 when head == tail. Tidy comment.
500
37cf6116
RH
5012005-07-28 Richard Henderson <rth@redhat.com>
502
503 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
504 * cselib.c (rtx_equal_for_cselib_p): Likewise.
505 * jump.c (rtx_renumbered_equal_p): Likewise.
506 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
507 CONST_INT and CONST_DOUBLE.
508 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
509 * reload.c (operands_match_p): Special case CONST_INT and
510 CONST_DOUBLE; check mode earlier.
511
13b22d3a
JM
5122005-07-29 Joseph S. Myers <joseph@codesourcery.com>
513
514 PR c/22240
515 * c-typeck.c (convert_for_assignment): Do not check
516 DECL_IN_SYSTEM_HEADER on NULL fundecl.
517
ca8bdb78
JM
5182005-07-29 Joseph S. Myers <joseph@codesourcery.com>
519
520 PR c/22192
521 * c-typeck.c (composite_type): Prefer constant size arrays to
522 VLAs.
523
b608d27a
JM
5242005-07-29 Joseph S. Myers <joseph@codesourcery.com>
525
526 PR c/21720
527 * real.c (real_from_string): Set last bit if there is a nonzero
528 hex digit beyond GCC's internal precision.
529
a560c83a
RH
5302005-07-28 Richard Henderson <rth@redhat.com>
531
532 PR rtl-opt/22619
533 * cfgcleanup.c (try_forward_edges): Watch out for end of
534 insn chain.
535
66f33c03
JW
5362005-07-28 James E Wilson <wilson@specifixinc.com>
537
538 PR c/23106
539 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
540
c5a4444c
JH
5412005-07-28 Jan Hubicka <jh@suse.cz>
542
8a76829c
JH
543 * Makefile.in (rtl-profile.o): Kill all traces of it.
544 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
545 * coverage.h (rtl_coverage_counter_ref): Kill.
546 * opts.c (flag_speculative_prefetching_set): Kill.
547 (flag_loop_optimize_set): New.
548 (common_handle_option): Disable loop optimizer when profiling;
549 do not handle speculative prefetching.
550 * passes.c (init_optimization_passes): Replace pass_profiling combo
551 by branch_prob pass.
552 * profile.c (compute_value_histograms): Update for simplified value
553 profiles.
554 (rtl_register_profile_hooks): Kill.
555 (pass_profiling): Kill.
556 (rest_of_handle_branch_prob): Do not profile.
557 * toplev.c (process_options): Remove speculative prefetching.
558 * toplev.h (flag_tree_based_profiling): Kill.
559 * tree-profile.c (prepare_instrumented_value,
560 tree_gen_interval_profiler, tree_gen_pow2_profiler,
561 tree_gen_one_value_profiler, do_tree_profiling): Update for
562 simplified datastructures.
563 * value-prof.c: Add comment that speculative prefetching was dropped;
564 update rest of file for simplified datastructures.
565 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
566 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
567 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
568 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
569 rtl_mod_subtract, gen_speculative_prefetch,
570 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
571 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
572 (gate_handle_value_profile_transformations,
573 rest_of_handle_value_profile_transformations,
574 pass_value_profile_transformations): Kill.
575 * value-prof.h (histogram_value_t): Remove IL based unions.
576 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
577 rtl_profile_hooks): Remove hooks.
578
579 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
580
c5a4444c
JH
581 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
582 (cgraph_clone_node): Likewise.
583 * cgraph.h (cgraph_clone_edge): Update prototype.
584 (cgraph_clone_node): Likewise.
585 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
586 cgraph_clone_node.
587 (lookup_recursive_calls): Consider profile.
588 (cgraph_decide_recursive_inlining): Fix updating; use new
589 probability argument; use profile.
590 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
591 * tree-inline.c (copy_bb): Update clal of clone_edge.
592 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
593
594 * invoke.texi (min-inline-recursive-probability): Document.
595
ccf548a7
GP
5962005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
597
598 * doc/install.texi (Configuration): Update Valgrind homepage.
599
2c97f8e4
RH
6002005-07-28 Richard Henderson <rth@redhat.com>
601
407ab83b 602 PR middle-end/21362
2c97f8e4
RH
603 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
604 labels we want to delete.
605 (cfg_layout_merge_blocks): Likewise.
606
b188ebb1
RH
6072005-07-28 Richard Henderson <rth@redhat.com>
608
609 PR target/17692
d6e14e8f
SB
610 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
611 when expanding to nothing.
b188ebb1 612
facc20ee
JC
6132005-07-28 Josh Conner <jconner@apple.com>
614
615 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
616 (cgraph_decide_inlining_of_small_functions): Likewise.
617
9de21a23
JC
6182005-07-28 Josh Conner <jconner@apple.com>
619
620 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
621 direction of badness if negative.
622 (cgraph_default_inline_p): Add reason to parameters, and assign it
623 a value.
624 (cgraph_decide_inlining_of_small_functions): New parameter in call
625 to cgraph_default_inline_p.
626 (cgraph_decide_inlining_incrementally): Likewise.
627 * cgraphunit.c (decide_is_function_needed): Likewise.
628 * cgraph.h (cgraph_default_inline_p): Likewise.
629
206048bd
VR
6302005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
631
632 * builtins.c: Fix comment typo(s).
633 * genautomata.c: Likewise.
634 * gimplify.c: Likewise.
635 * tree-dfa.c: Likewise.
636 * tree-flow-inline.h: Likewise.
637 * tree-into-ssa.c: Likewise.
638 * tree-ssa-alias.c: Likewise.
639 * tree-ssa-ccp.c: Likewise.
640 * tree-ssa-copy.c: Likewise.
641 * tree-ssa-dce.c: Likewise.
642 * tree-ssa-dom.c: Likewise.
643 * tree-ssa-operands.c: Likewise.
644 * tree-tailcall.c: Likewise.
645 * tree-vectorizer.c: Likewise.
646 * tree-vrp.c: Likewise.
647 * tree.c: Likewise.
648
d579f20b
JL
6492005-07-28 Jeff Law <law@redhat.com>
650
d6e14e8f
SB
651 * tree-vrp.c (test_for_singularity): Extracted from ...
652 (simplify_cond_using_ranges): Attempt to simplify a relational
653 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
d579f20b 654
5bb1823d
DN
6552005-07-28 Dorit Nuzman <dorit@il.ibm.com>
656
657 PR tree-optimization/22506
658 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
659 phis whose argument is constant.
660
b92ba6ff
R
6612005-07-28 J"orn Rennecke <joern.rennecke@st.com>
662
663 PR rtl-optimization/18992
664 Back out this patch:
665 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
666 PR optimization/12142
667 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
668 uses of the register in the SET_SRC. Remove unnecessary argument.
669
670 Replace it with this:
671 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
672 if flag_non_call_exceptions is set and the insn may trap, pass
673 pc_rtx as dest for recursion.
674 In SET_SRC part of SET case, if dest is already set, pass it down
675 unchanged.
676
09bac500
JH
6772005-07-28 Jan Hubicka <jh@suse.cz>
678
679 * cfg.c (update_bb_profile_for_threading): Use RDIV.
680 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
681 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
682 roundoff errors.
683 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
684 profile when available.
685
6862005-07-28 Jan Beulich <jbeulich@novell.com>
a71aef0b
JB
687
688 * config/ia64/ia64.c (ia64_load_pair_ok): New.
689 (ia64_print_operand): Describe and handle 'X'.
690 (ia64_register_move_cost): Also handle FP_REGS.
691 (ia64_preferred_reload_class): Likewise.
692 (ia64_secondary_reload_class): Likewise.
693 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
694 it. Also check for ITANIUM_CLASS_FLDP.
695 * config/ia64/ia64.h (FP_REGNO_P): New.
696 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
697 (reg_class): Add FP_REGS.
698 (REG_CLASS_NAMES): Adjust for it.
699 (REG_CLASS_CONTENTS): Likewise.
700 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
701 (REG_CLASS_FROM_LETTER): Handle 'x'.
702 (CLASS_MAX_NREGS): Handle FP_REGS.
703 (MEMORY_MOVE_COST): Likewise.
704 * config/ia64/ia64.md (itanium_class): Add fldp.
705 (type): Handle fldp.
706 (movti_internal): More allowable operand combinations. Use ldfp8 when
707 splitting unnecessary. Remove predicable attribute. Adjust
708 itanium_class attribute.
709 (smuldi3_highpart): Remove outdated comment.
710 (mulditi3, umulditi3, rotlti3): New expanders.
711 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
712 (absti2): Disabled new insn for future reference.
713 Respective new splitters.
714 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
715 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
716 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
717
77d1d8e0
JM
7182005-07-25 James A. Morrison <phython@gcc.gnu.org>
719
720 PR rtl-optimization/23047
721 * simplify-rtx.c (simplify_const_relational_operation): Respect
722 flag_wrapv for comparisons with ABS.
723
ff08cbee
JM
7242005-07-27 James A. Morrison <phython@gcc.gnu.org>
725
726 PR tree-optimization/22493
727 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
728 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
729
38c28a25
AH
7302005-07-27 Aldy Hernandez <aldyh@redhat.com>
731
732 * config/frv/frv.opt (moptimize-membar): New.
733
734 * doc/invoke.texi: Document -moptimize-membar and its inverse.
735
736 * config/frv/frv.h: Remove machine_function definition.
737
d6e14e8f
SB
738 * config/frv/frv.c (struct frv_io): New.
739 (struct machine_function): Moved from frv.h. Add has_membar_p.
740 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
741 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
742 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
743 (frv_optimize_membar_global, frv_optimize_membar): New functions.
744 (frv_reorg): Call frv_optimize_membar when appropriate.
745 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
746 (frv_expand_builtin): Adjust calls accordingly.
747 (frv_io_address_cookie): New function.
748 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
749 load or store rather than a special insn. Add ccnstant address and
750 io-type operands to the membar.
38c28a25
AH
751 (frv_ifcvt_modify_tests): Unsign regno.
752 (frv_ifcvt_modify_tests): Same.
753
754 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
755 UNSPEC_OPTIONAL_MEMBAR constant.
756 (builtin_read_<mode>): Delete.
757 (builtin_write_<mode>): Delete.
758 ("optional_membar_<mode>"): Add operand.
759
760 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
761 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
762 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
763 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
764 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
765 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
766 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
767 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
768 * testsuite/gcc.target/frv/all-read-write-1.c: New.
769
47c504ea
KK
7702005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
771
772 * df.c (df_uses_record): Handle SCRATCH.
773
ef11c839
SB
7742005-07-28 Steven Bosscher <stevenb@suse.de>
775
776 PR debug/20161
777 * passes.c (rest_of_decl_compilation): If decl is a type and
778 we have encountered errors, don't emit debug information.
779
1eb68dca 7802005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
ef11c839 781
1eb68dca 782 * params.def: Fixed comment.
7904f95f 783
10252a62
BH
7842005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
785
786 PR target/19885
787 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
788 (TARGET_ASM_UNALIGNED_HI_OP): Add.
789 (TARGET_ASM_UNALIGNED_SI_OP): Add.
790
e4598783
SB
7912005-07-27 Steven Bosscher <stevenb@suse.de>
792
793 PR c++/22003
794 * varasm.c (assemble_start_function): Don't do anything that may
795 require a CFG if the current function is a thunk.
796
a9fdd472
GK
7972005-07-25 Geoffrey Keating <geoffk@apple.com>
798
799 * doc/install.texi (Prerequisites): Mention that perl is needed
800 to do export control in libstdc++ targetting Darwin.
801
2bd1e239
SB
8022005-07-27 Steven Bosscher <stevenb@suse.de>
803
804 PR rtl-optimization/17808
805 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
806 (sched_insns_conditions_mutex_p): Split out from...
807 (add_dependence): ...here. But don't call it from here.
808 (add_dependence_list): Check sched_insns_conditions_mutex_p
809 before calling add_dependence.
810 (add_dependence_list_and_free): Likewise.
811 (fixup_sched_groups): Likewise.
812 (sched_analyze_1): Likewise.
813 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
814 (sched_analyze): Likewise.
815 (sched_analyze_insn): Likewise.
816 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
817 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
818 dependencies on all COND_EXEC insns to jumps ending basic blocks
819 when doing intrablock scheduling.
820 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
821
880031e1
JL
8222005-07-27 Jeff Law <law@redhat.com>
823
824 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
825 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
826 equivalency sets, correctly handle the case were vr0 has an
827 equivalency set, but vr1 does not.
828
b940ce0e
DN
8292005-07-27 Dorit Nuzman <dorit@il.ibm.com>
830
831 PR tree-optimization/23073
7904f95f 832 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
b940ce0e
DN
833 vect_print_dump_info before fprintf.
834
26c40640
ZD
8352005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
836
837 PR tree-optimize/22348
838 * tree-ssa-loop-niter.c (number_of_iterations_cond):
839 Fold the partial computation.
840
3ac01fde
ZD
8412005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
842
843 PR tree-optimization/22325
844 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
845 Declare.
846 * tree-scalar-evolution.c (scev_const_prop): Add generic final
847 value replacement.
848 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
849 (force_var_cost): ... this function.
850 (compute_phi_arg_on_exit): Export.
851
77fcaf4b
ZD
8522005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
853
854 PR tree-optimization/20773
855 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
856 edge.
857
c11b0231
RG
8582005-07-27 Richard Guenther <rguenther@suse.de>
859
860 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
861 Avoid pushing again if current struct contains only
862 fields we decomposed.
863
57a73709
JH
8642005-07-27 Jan Hubicka <jh@suse.cz>
865
093c2329
JH
866 PR tree-optimization/22574
867 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
868 not available.
869
23504559
JH
870 * tree-tailcall.c (decrease_profile): New function.
871 (eliminate_tail_call): Use it.
872
57a73709
JH
873 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
874 visibility flags correctly in whole program mode.
875
b5395c33
SE
8762005-07-26 Steve Ellcey <sje@cup.hp.com>
877
878 PR rtl-optimization/22472
879 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
880
86979811
SB
8812005-07-26 Steven Bosscher <stevenb@suse.de>
882
883 PR tree-optimization/22504
884 * tree-complex.c (expand_complex_addition): Use 'code' instead
885 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
886
faf9ab98
AH
8872005-07-26 Aldy Hernandez <aldyh@redhat.com>
888
889 * config.gcc (cpu_type): Add frv case.
890 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
891 (supported_defaults): Add fr550 case.
892
31521cd4
DN
8932005-07-26 Diego Novillo <dnovillo@redhat.com>
894
895 PR 22591
896 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
897 whether a pointer of type T * may point to objects of type T *.
898
45499411
DD
8992005-07-26 DJ Delorie <dj@redhat.com>
900
901 * configure: Regenerate.
902
576a4795
DJ
9032005-07-26 Dale Johannesen <dalej@apple.com>
904
905 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
906
526635cb
MM
9072005-07-26 Mark Mitchell <mark@codesourcery.com>
908
909 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
910 Clarify use of "build" in name.
911
c14ff86e
AH
9122005-07-26 Aldy Hernandez <aldyh@redhat.com>
913
914 * doc/extend.texi (Raw read/write Functions): New section.
915 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
916 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
917 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
918 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
919 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
920 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
921 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
922 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
923 * config/frv/frv.c: Add bdesc_loads global.
924 Add bdesc_stores global.
925 (frv_init_builtins): Add support for __builtin_{read/write}*.
926 (frv_volatile_memref): New.
927 (frv_expand_load_builtin): New.
928 (frv_expand_store_builtin): New.
929 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
930 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
931 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
932 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
933 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
934 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
935 (builtin_read_<mode>): New.
936 (builtin_write_<mode>): New.
937 (builtin_write64): New.
938 (optional_membar_<mode>): New.
939
db487452
R
9402005-07-26 J"orn Rennecke <joern.rennecke@st.com>
941
942 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
943 (rather than units) against HOST_BITS_PER_WIDE_INT.
944
783455db
KH
9452005-07-26 Kazu Hirata <kazu@codesourcery.com>
946
947 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
948 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
949 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
950 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
951 FSF address.
952
a4174ebf
KH
953 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
954 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
955 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
956 comment typos.
957 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
958
46c0a59d
RG
9592005-07-26 Richard Guenther <rguenther@suse.de>
960
961 PR tree-optimization/22486
962 * fold-const.c (fold_unary): Fold away useless component
963 references of the form (T *)&T.x, if the address
964 doesn't change.
965
3e2844cb
JW
9662005-07-25 James E Wilson <wilson@specifixinc.com>
967
968 * dwarf2out.c (add_call_src_coords_attributes): New.
969 (gen_inlined_subroutine_die): Call it.
970 (maybe_emit_file, init_file_table): Add comments.
971 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
972 maybe_emit_file.
973 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
974 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
975 * tree.h (BLOCK_SOURCE_LOCATION): New.
976 (struct tree_block): New field locus.
977
9275de65
AS
9782005-07-26 Andreas Schwab <schwab@suse.de>
979
980 PR rtl-optimization/23043
981 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
982 when allocating a struct unoccr.
983
5306ec31
RH
9842005-07-25 Richard Henderson <rth@redhat.com>
985
986 PR 22626
987 * tree-complex.c (gate_no_optimization): True if errors.
988 * Makefile.in (tree-complex.o): Update dependencies.
989
bfa653b3
AH
9902005-07-25 Aldy Hernandez <aldyh@redhat.com>
991
992 * config/frv/predicates.md (integer_register_operand): Use
993 GPR_AP_OR_PSEUDO_P.
994
43e364dd
AP
9952005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
996
997 PR tree-opt/22484
998 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
999 after fold.
1000 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
1001
c72f711f
AP
10022005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1003
1004 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
1005 types when flag_unsafe_math_optimizations is true.
1006
160633c6
MM
10072005-07-25 Mark Mitchell <mark@codesourcery.com>
1008
1009 * gcc.c (option_map): Add --sysroot.
1010 (process_command): Handle --sysroot.
1011 (display_help): Document it.
1012 * doc/cppopts.tex (-isysroot): Document.
1013 * doc/invoke.texi (--sysroot): Document.
1014 * doc/install.texi (--with-build-sysroot): Document.
1015
1016 * Makefile.in (inhibit_libc): New variable.
1017 (INHIBIT_LIBC_CFLAGS): Likewise.
1018 (LIBGCC2_CFLAGS): Include
1019 $(INHIBIT_LIBC_CFLAGS).
1020 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
1021 ($(T)crtbegin.o): Do not use @inhibit_libc@.
1022 ($(T)crtend.o): Likewise.
1023 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
1024 ($(T)crtendS.o): Likewise.
1025 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
1026 ($(T)crtendT.o): Likewise.
1027 (stmp-fixinc): Do not complain about missing headers if
1028 inhibit_libc.
1029 * configure.ac (inhibit_libc): Set it to true/false.
1030 (--with-build-sysroot): New option. Use it to set
7904f95f 1031 SYSTEM_HEADER_DIR.
160633c6
MM
1032 * configure: Regenerated.
1033
1490f93a
MH
10342005-07-25 Manfred Hollstein <mh@suse.com>
1035
1036 * calls.c (store_one_arg): Fix unsigned comparison warning.
1037
76e20664
SB
10382005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1039
1040 PR other/22337
1041 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
1042 (ggc_print_statistics): Initialize variable before use.
1043
5c97e2de
RG
10442005-07-25 Richard Guenther <rguenther@suse.de>
1045
1046 * tree-dfa.c (mark_new_vars_to_rename): Protect against
1047 calling with a PHI_NODE argument.
1048
1049 * tree-flow-inline.h (overlap_subvar): Protect against
1050 possible overflow.
1051
7fefc172
PB
10522005-07-25 Paolo Bonzini <bonzini@gnu.org>
1053
1054 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
1055 * configure: Regenerate.
1056
86a07404
IR
10572005-07-25 Ira Rosen <irar@il.ibm.com>
1058
1059 * expr.c (highest_pow2_factor): Make extern.
1060 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
1061 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1062 record_array_differ_p, array_ptr_differ_p): Likewise.
1063 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
1064 additional cases. Call the above functions.
1065 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
1066 base_object_differ_p when there are two base objects. Otherwise, compare
1067 base address and offset. Call may_alias_p.
1068 (dump_data_reference): Use a correct field name.
1069 (analyze_array): Make static. Initialize new data-ref fields.
1070 (analyze_indirect_ref): New function.
7904f95f
EC
1071 (init_data_ref): Initialize new data-ref fields.
1072 (strip_conversion): Moved from tree-vect-analyze.c.
7fefc172
PB
1073 (analyze_offset_expr, get_ptr_offset, address_analysis,
1074 object_analysis): Likewise.
86a07404 1075 (analyze_offset): New function.
86979811 1076 (create_data_ref): Likewise.
86a07404
IR
1077 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
1078 dimensions for ARRAY_REFs only.
1079 (build_classic_dist_vector): Make static.
1080 (access_functions_are_affine_or_constant_p): Call macro to get the
1081 address of access functions.
1082 (compute_all_dependences): Add new parameter
7904f95f 1083 compute_self_and_read_read_dependences. Compute self and read-read
86a07404
IR
1084 dependences if it is true.
1085 (find_data_references_in_loop): Call create_data_ref. Initialize new
1086 data-ref fields.
1087 (compute_data_dependences_for_loop): Add new parameter
1088 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7fefc172
PB
1089 compute nb_loops. Call compute_all_dependences,
1090 build_classic_dist_vector and build_classic_dir_vector with correct
1091 parameters.
1092 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
1093 with correct parameters. Compare dimensions for ARRAY_REFs only.
86a07404
IR
1094 (free_data_refs): Call macro to free access functions.
1095 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
1096 fields from stmt_vinfo.
1097 (struct base_object_info): New structure.
7904f95f 1098 (struct data_reference): Move fields to base_object_info. Add fields
86a07404 1099 first_location and object_info for above structures. Move fields from
7fefc172
PB
1100 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
1101 aligned_to. Add macros to access the new fields.
86a07404
IR
1102 Update functions declarations.
1103 * tree-flow.h (is_aliased_with): Declare.
1104 * tree-loop-linear.c (linear_transform_loops): Call
1105 compute_data_dependences_for_loop with correct parameters.
1106 * tree-ssa-alias.c (is_aliased_with): New function.
86979811 1107 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
86a07404
IR
1108 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
1109 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
1110 vect_base_addr_differ_p, compute_subscript_distance and
1111 build_classic_dist_vector. Add printings. Check absolute value of
1112 distance.
7fefc172
PB
1113 (vect_analyze_data_ref_dependences): Go through ddrs instead of
1114 data-refs.
86a07404
IR
1115 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1116 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1117 to bytes. Add printing.
7fefc172
PB
1118 (vect_compute_data_refs_alignment): Go through loads and stores in one
1119 loop.
86a07404
IR
1120 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1121 vect_analyze_data_ref_access): Likewise.
1122 (vect_analyze_pointer_ref_access): Remove.
1123 (vect_address_analysis, vect_object_analysis): Likewise.
1124 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1125 and analyze data-refs in the loop.
7fefc172
PB
1126 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1127 fields of data-ref instead of stmt. Add init to the offset from the
1128 base.
86a07404
IR
1129 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1130 (vect_update_init_of_dr): Likewise.
1131 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7fefc172
PB
1132 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1133 removed fields.
86a07404
IR
1134 (new_loop_vec_info): Initialize new fields.
1135 (destroy_loop_vec_info): Free new fields.
1136 (vect_strip_conversion): Remove.
1137 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1138 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
7904f95f 1139 datarefs. Add new field ddrs.
86a07404
IR
1140 Add macros for the new fields access.
1141 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1142 base_aligned_p, misalignment, memtag, ptr_info and subvars.
1143 Remove their macros.
1144 * tree.h (highest_pow2_factor): Declare.
1145
0dc42b03
JJ
11462005-07-25 Jakub Jelinek <jakub@redhat.com>
1147
1148 * calls.c (store_one_arg): Check for sibling call MEM arguments
1149 from already clobbered incoming argument area.
1150
104f8784
KG
11512005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1152
1153 * c-common.c (check_missing_format_attribute): New.
1154 * c-common.h (check_missing_format_attribute): Likewise.
1155 * c-typeck.c (convert_for_assignment): Use it.
1156
1b8452d0
AS
11572005-07-24 Andreas Schwab <schwab@suse.de>
1158
1159 * config/m68k/m68k.md ("extendqidi2"): When source is an address
1160 register use a word move. Correct operand of ext.w in 68000 code.
1161
2b402955
MM
11622005-07-23 Mark Mitchell <mark@codesourcery.com>
1163
1164 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1165 variables as declarations, rather than definitions.
1166
c8af1197
IR
11672005-07-24 Ira Rosen <irar@il.ibm.com>
1168
86979811
SB
1169 PR tree-optimization/22526
1170 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
1171 of the zero node.
c8af1197 1172
1b135aa5
FXC
11732005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1174
1175 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
1176 that C99 reserve for future use. Use it to define clog10,
1177 clog10f and clog10l.
1178
ac0f3f39
KG
11792005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1180
1181 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
1182 * configure.ac: Check for -Wmissing-format-attribute.
7904f95f 1183
ac0f3f39
KG
1184 * configure: Regenerate.
1185
db753fa1
RH
11862005-07-23 Richard Henderson <rth@redhat.com>
1187
1188 PR tree-optimization/22623
1189 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
1190
28f155be
GB
11912005-07-23 Giovanni Bajo <giovannibajo@libero.it>
1192
1193 PR target/22577
1194 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
1195
db857e7d
KG
11962005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1197
1198 * Makefile.in (C_TREE_H): Update dependencies.
1199 * c-tree.h: Include toplev.h.
1200 * diagnostic.h (diagnostic_set_info): Add format attribute.
1201 * rtl-error.c (diagnostic_for_asm): Likewise.
1202
118ea793
CF
12032005-07-23 Chao-ying Fu <fu@mips.com>
1204
1205 * config/mips/mips-dsp.md: New file.
1206 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
1207 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
1208 functions.
1209 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
1210 MIPS_BUILTIN_BPOSGE32.
1211 (mips_expand_builtin_direct): Add one parameter to indicate that
1212 builtin functions need to return a value.
1213 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
1214 functions.
1215 (mips_regno_to_class): Add classes for 12 new DSP registers.
1216 (mips_subword): Change to check four HI registers.
1217 (mips_output_move): Output move to and from 6 new DSP accumulators.
1218 (override_options): Make sure -mdsp and -mips16 are not used together.
1219 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
1220 for machine modes.
1221 (mips_conditional_register_usage): Disable 6 new DSP accumulators
1222 when !TARGET_DSP.
1223 (print_operand): Add 'q' for printing DSP accumulators.
1224 (mips_cannot_change_mode_class): Check ACC_REGS.
1225 (mips_secondary_reload_class): Check ACC_REGS.
1226 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
1227 (mips_register_move_cost): Check ACC_REGS.
1228 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1229 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1230 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1231 (dsp_bdesc): New array.
1232 (bdesc_arrays): Add DSP builtin function table.
1233 (mips_prepare_builtin_arg): Check predicate again after
1234 copy_to_mode_reg.
1235 (mips_expand_builtin): Add one more parameter to
1236 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1237 MIPS_BUILTIN_BPOSGE32.
1238 (mips_init_builtins): Initialize new function types.
1239 (mips_expand_builtin_direct): Check if builtin functions need to
1240 return a value and pass operands properly.
1241 (mips_expand_builtin_bposge): New function.
1242 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1243 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1244 (FIRST_PSEUDO_REGISTER): Increase to 188.
1245 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1246 Update for 12 new DSP registers.
1247 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1248 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1249 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1250 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1251 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1252 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1253 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1254 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1255 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1256 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1257 (REGISTER_NAMES): Add names for 12 new DSP registers.
1258 * config/mips/mips.md: Include mips-dsp.md.
1259 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1260 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1261 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1262 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1263 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1264 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1265 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1266 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1267 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1268 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1269 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1270 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1271 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1272 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1273 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1274 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1275 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1276 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1277 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1278 (UNSPEC_RDDSP): New constants.
1279 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1280 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
1281 A<-d alternative.
1282 * config/mips/mips.opt (-mdsp): New option.
1283 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1284 (reg_imm10_operand): New predicates.
1285 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1286 * doc/invoke.texi (-mdsp): Document new option.
1287
d2fcbf6f
DD
12882005-07-22 DJ Delorie <dj@redhat.com>
1289
1290 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1291 to warning calls.
1292 * tree-inline.c (inlinable_function_p): Likewise.
1293
9881e3e5
MM
12942005-07-22 Mark Mitchell <mark@codesourcery.com>
1295
1296 PR debug/21828
1297 * toplev.c (check_global_declarations): Do not mark undefined
1298 variables as DECL_IGNORED_P.
1299 * varasm.c (first_global_object_name): GTY it.
1300 (weak_global_object_name): Likewise.
1301 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1302 a string to go into {weak,first}_global_object_name.
1303
1a8d0d41
DD
13042005-07-22 DJ Delorie <dj@redhat.com>
1305
1306 * c-format.c (check_function_format): Change warning control
1307 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1308
17c7e33e
DN
13092005-07-22 Diego Novillo <dnovillo@redhat.com>
1310
1311 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1312 &PTR->FLD a dereference of PTR.
1313 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1314 a potential dereference of PTR.
1315
45002e59
R
13162005-07-22 J"orn Rennecke <joern.rennecke@st.com>
1317
191e1ff2
R
1318 PR rtl-optimization/20370
1319 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1320 call allocate_reg_info if necessary.
1321
475a3eef
R
1322 PR rtl-optimization/21848
1323 * calls.c (emit_library_call_value_1): For const functions, add
1324 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
1325
29c1846b
R
1326 PR rtl-optimization/22445
1327 * cselib.c (target.h): Include.
1328 (rtx_equal_for_cselib_p): Allow commutative matches.
1329 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
1330 Remove MODE parameter. Changed all callers.
1331
45002e59
R
1332 PR rtl-optimization/22258
1333 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
1334 New functions.
1335 (try_combine): Use likely_spilled_retval_p.
1336
db869733
PW
13372005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
1338
1339 * config.gcc: Add crx-elf support.
1340
1341 * doc/contrib.texi: Mention crx.
1342 * doc/extend.texi: Document crx extensions.
1343 * doc/install.texi: Document crx install.
1344 * doc/invoke.texi: Document crx options.
1345 * doc/md.texi: Document crx constraints.
1346
1347 * config/crx/crx-protos.h: New file.
1348 * config/crx/crx.c: New file.
1349 * config/crx/crx.h: New file.
1350 * config/crx/crx.md: New file.
1351 * config/crx/crx.opt: New file.
1352 * config/crx/t-crx: New file.
7904f95f 1353
32cafd73
MH
13542005-07-22 Manfred Hollstein <mh@suse.com>
1355
1356 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
1357 warnings.
1358 (int_add_graph_edge): Likewise.
1359 (collapse_nodes): Likewise.
1360 (process_unification_queue): Likewise.
1361
ee184c4d 13622005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
86979811 1363 Laurent GUERBY <laurent@guerby.net>
ee184c4d 1364
86979811 1365 PR tree-optimization/22336
7904f95f 1366 * function.c (record_block_change): Check for
86979811 1367 cfun->ib_boundaries_block.
7904f95f 1368
b49ceb45
JM
13692005-07-21 James A. Morrison <phython@gcc.gnu.org>
1370
1371 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
1372 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
1373
30c54de9
DD
13742005-07-21 DJ Delorie <dj@redhat.com>
1375
1376 * toplev.c (warn_deprecated_use): Add warning control to warning
1377 call.
c303630a
DD
1378 * c-typeck.c (parser_build_binary_op): Likewise.
1379 (c_finish_if_stmt): Likewise.
30480ec4
DD
1380 * c-common.c (check_function_sentinel): Likewise.
1381 (check_nonnull_arg): Likewise.
30c54de9 1382
95a8c155
RH
13832005-07-21 Richard Henderson <rth@redhat.com>
1384
1385 PR tree-opt/22504
1386 * tree-complex.c (complex_ssa_name_components): New.
1387 (cvc_lookup): Allow entry not found.
1388 (create_components): Remove.
1389 (create_one_component_var, get_component_var): New.
1390 (get_component_ssa_name, set_component_ssa_name): New.
1391 (extract_component): Use get_component_ssa_name.
1392 (update_complex_components): Use set_component_ssa_name.
1393 (update_complex_components_on_edge): Likewise.
1394 (update_phi_components): Create new PHI nodes directly, instead
1395 of adding insns to edges.
1396 (tree_lower_complex): Allocate and free complex_variable_components
1397 and complex_ssa_name_components here.
1398
c05a0766 13992005-07-20 Daniel Berlin <dberlin@dberlin.org>
7904f95f 1400
c05a0766
DB
1401 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
1402 revert to returning false.
1403
de343c8d
UB
14042005-07-21 Uros Bizjak <uros@kss-loka.si>
1405
86979811
SB
1406 PR target/21149
1407 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
de343c8d 1408
5acc26ef
UB
14092005-07-21 Uros Bizjak <uros@kss-loka.si>
1410
1411 PR target/22576
1412 * config/i386/i386.md (cmpxf): Change operand constraints
1413 to "nonmemory_operand".
1414
61cb44fe
AP
14152005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1416
1417 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
1418
e2fe73f6
AP
14192005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1420
1421 PR middle-end/21180
1422 * fold-const.c (fold_build1): Add checksum for the operands.
7904f95f 1423 (fold_build2): Likewise.
e2fe73f6
AP
1424 (fold_build3): Likewise.
1425
9d24eb54
AP
14262005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1427
1428 PR middle-end/19055
1429 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
1430
b2e0afa0
PB
14312005-07-21 Paolo Bonzini <bonzini@gnu.org>
1432
1433 * common.opt (-fforward-propagate): Committed by mistake,
1434 removed.
1435
2e48874f
VR
14362005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1437
1438 * reg-stack.c: Fix comment typo(s).
1439 * tree-ssa-operands.c: Likewise.
1440 * tree-vectorizer: Likewise.
1441
889d8465
NC
14422005-07-21 Nick Clifton <nickc@redhat.com>
1443
1444 * config/sh/symbian.c: Replace C++ style line comments with C
1445 style line comments.
86979811 1446 (symbian_add_attribute): Do not use a ? operator on the LHS of
889d8465 1447 an assignment.
86979811 1448 (sh_symbian_handle_dll_attribute): Change the type of the
889d8465
NC
1449 method vector to "VEC(tree,gc)*" and use vector accessor
1450 macros to walk over the elements.
86979811
SB
1451 (symbian_export_vtable_and_rtti_p): Likewise.
1452 (symbian_class_needs_attribute_p): Likewise.
889d8465 1453
2fab365e
PB
14542005-07-21 Paolo Bonzini <bonzini@gnu.org>
1455
1456 PR target/22085
1457 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
1458 initialize targetm.resolve_overloaded_builtin here.
1459 (altivec_expand_overloaded_builtin): Make it non-static.
1460 * config/rs6000/rs6000-protos.h
1461 (altivec_expand_overloaded_builtin): New prototype.
1462 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
1463 targetm.resolve_overloaded_builtin here.
1464 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
1465
f9cc1a70 14662005-07-21 Paolo Bonzini <bonzini@gnu.org>
86979811 1467 Zdenek Dvorak <dvorakz@suse.cz>
f9cc1a70
PB
1468
1469 PR tree-optimization/19210
1470 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
1471 New.
1472 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
1473 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
1474 rely on unproven assumptions.
1475 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
1476 * tree-flow.h (number_of_iterations_exit): Add final parameter.
1477 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
1478 to number_of_iterations_exit.
1479 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
1480 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
1481 * tree-ssa-loop-niter.c (find_loop_niter,
1482 estimate_numbers_of_iterations_loop): Likewise.
1483 (number_of_iterations_exit): Honor the new options.
1484 * doc/invoke.texi (Wunsafe-loop-optimizations,
1485 funsafe-loop-optimizations): Document them.
1486
cb83c2ec
RS
14872005-07-21 Richard Sandiford <richard@codesourcery.com>
1488
1489 PR rtl-optimization/22167
1490 * gcse.c (hoist_code): Fix hoist_exprs[] check.
1491
5e5cbbfb
AN
14922005-07-20 Adam Nemet <anemet@lnxw.com>
1493
1494 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
1495 __do_global_dtors_aux longcall.
1496
c2acaf06
KH
14972005-07-20 Kazu Hirata <kazu@cs.umass.edu>
1498
1499 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
1500 (old_special_pred_table): Don't reference
1501 SPECIAL_MODE_PREDICATES.
1502 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
1503 * config/arc/arc.h: Don't mention PREDICATE_CODES.
1504 * config/sh/predicates.h: Don't mention
1505 SPECIAL_MODE_PREDICATES.
1506 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1507 Remove.
1508
38b2d076
DD
15092005-07-20 DJ Delorie <dj@redhat.com>
1510
1511 * config.gcc: Add m32c-elf support.
1512
1513 * doc/contrib.texi: Mention m32c.
1514 * doc/extend.texi: Document m32c extensions.
1515 * doc/install.texi: Mention m32c.
1516 * doc/invoke.texi: Document m32c options.
1517 * doc/md.texi: Document m32c constraints.
1518
1519 * config/m32c/addsub.md: New file.
1520 * config/m32c/bitops.md: New file.
1521 * config/m32c/cond.md: New file.
1522 * config/m32c/jump.md: New file.
1523 * config/m32c/m32c-lib1.S: New file.
1524 * config/m32c/m32c-lib2.c: New file.
1525 * config/m32c/m32c-modes.def: New file.
1526 * config/m32c/m32c-pragma.c: New file.
1527 * config/m32c/m32c-protos.h: New file.
1528 * config/m32c/m32c.abi: New file.
1529 * config/m32c/m32c.c: New file.
1530 * config/m32c/m32c.h: New file.
1531 * config/m32c/m32c.md: New file.
1532 * config/m32c/m32c.opt: New file.
1533 * config/m32c/minmax.md: New file.
1534 * config/m32c/mov.md: New file.
1535 * config/m32c/muldiv.md: New file.
1536 * config/m32c/predicates.md: New file.
1537 * config/m32c/prologue.md: New file.
1538 * config/m32c/shift.md: New file.
1539 * config/m32c/t-m32c: New file.
1540
50b69666
KK
15412005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
1542
1543 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1544 (stack_protect_set, stack_protect_test): New expanders.
86979811 1545 (stack_protect_set_si, stack_protect_set_si_media,
50b69666 1546 stack_protect_set_di_media, stack_protect_test_si,
86979811 1547 stack_protect_test_si_media, stack_protect_test_di_media):
50b69666
KK
1548 New insns.
1549
71b50543
AP
15502005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
1551
1552 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
1553
4db8040c
JM
15542005-07-20 James A. Morrison <phython@gcc.gnu.org>
1555
1556 * tree.h (tree_expr_nonzero_p): Export.
1557 * fold-const.c (tree_expr_nonzero_p): Likewise.
1558 Return true for CALL_EXPRs that are alloca calls.
1559 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
1560 against zero.
1561 * tree-flow.h (expr_computes_nonzero): Remove.
1562 * tree-vrp.c (expr_computes_nonzero): Remove.
86979811 1563 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4db8040c
JM
1564 (extract_range_from_unary_expr): Likewise.
1565 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
1566 tree_expr_nonzero_p.
1567
6d459e2b
BS
15682005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
1569
09350e36
BS
1570 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
1571 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
1572 extra arg "picreg" and use it instead of pic_offset_table_rtx.
1573 All callers changed.
1574 (frame_related_constant_load): New arg "related" which controls
1575 setting of RTX_FRAME_RELATED_P. All callers changed.
1576 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
1577 (bfin_expand_prologue): Add stack limit checking.
1578 * config/bfin/bfin.md (trapifcc): New pattern.
1579
05905337
BS
1580 * config/bfin/bfin.c: Include "langhooks.h".
1581 (def_builtin): Go through lang_hooks to call builtin_function.
1582
6d459e2b
BS
1583 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
1584 * config/bfin/predicates.md (symbol_ref_operand): New.
1585 (call_insn_operand): Delete. All callers changed to use
1586 register_no_elim_operand.
1587 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
1588 call_cookie field.
1589 (function_arg): Use it to generate the call's operand 2.
1590 (bfin_longcall_p): New function.
1591 (bfin_expand_call): Extra arg "cookie". All callers and declaration
1592 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
1593 determine if the address needs to be in a REG.
1594 (bfin_handle_longcall_attribute): New function.
1595 (bfin_attribute_table): Add "longcall" and "shortcall".
1596 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
1597 (CUMULATIVE_ARGS): New member call_cookie.
1598 (PREDICATE_CODES): Add symbol_ref_operand.
1599 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
1600 extra USE to the pattern.
1601 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
1602 New patterns, split off call_insn, sibcall_insn, call_value_insn and
1603 sibcall_value_insn; now the new patterns handle direct calls and the
1604 old ones indirect calls.
1605 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
1606
67135ef4
ZD
16072005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
1608
1609 * doc/trouble.texi: Update section on handling of empty loops.
1610
fdda361d
KH
16112005-07-20 Kazu Hirata <kazu@codesourcery.com>
1612
1613 * config.gcc: Remove support for sparc-*-openbsd*,
1614 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
1615 ns32k-*-netbsd*.
1616 * config.host: Remove support for i860-*-sysv4* as a host.
1617 * config/i860/*, config/ip2k/*, config/ns32k/*,
1618 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
1619 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
1620 mention obsolete ports.
1621
96a2347e
KK
16222005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
1623
1624 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
1625 soft frame pointer.
1626 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
1627 of frame_pointer_rtx.
1628 (sh_expand_epilogue): Likewise.
1629 (sh_set_return_address): Likewise.
1630 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
1631 instead of FRAME_POINTER_REGNUM if needed. Add elimination
1632 offsets from FRAME_POINTER_REGNUM.
1633 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
1634 (sh_register_names): Add initializer for sfp.
1635 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
1636 (VALID_REGISTER_P): Likewise.
1637 (FIRST_PSEUDO_REGISTER): Update.
1638 (DWARF_FRAME_REGISTERS): Define.
1639 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
1640 (HARD_FRAME_POINTER_REGNUM): Define.
1641 (FRAME_POINTER_REGNUM): Redefine.
1642 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
1643 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
1644 from FRAME_POINTER_REGNUM.
1645 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
1646 FRAME_POINTER_REGNUM.
1647 (REG_CLASS_CONTENTS): Add sfp.
1648 (REG_ALLOC_ORDER): Likewise.
1649 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
1650 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
1651 of frame_pointer_rtx.
1652 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1653
1ade5842
JM
16542005-07-19 James A. Morrison <phython@gcc.gnu.org>
1655
1656 * fold-const.c (tree_expr_nonnegative_p): Only return true for
1657 ABS_EXPR when flag_wrapv is false because of INT_MIN.
1658 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
1659 of an ABS_EXPR.
1660 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
1661 ABS_EXPR<x>.
1662
4038c495
GB
16632005-07-20 Giovanni Bajo <giovannibajo@libero.it>
1664
1665 Make CONSTRUCTOR use VEC to store initializers.
1666 * c-common.c (complete_array_type): Update to cope with VEC in
1667 CONSTRUCTOR_ELTS.
1668 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
1669 (pp_c_constructor_elts): New function.
1670 * c-pretty-print.h (pp_c_constructor_elts): Declare.
1671 * c-typeck.c (build_function_call, build_c_cast, digest_init,
1672 struct constructor_stack, struct initializer_stack,
1673 constructor_elements, push_init_level, pop_init_level,
1674 add_pending_init, find_init_member, output_init_element): Update to
1675 cope with VEC in CONSTRUCTOR_ELTS.
1676 * coverage.c (build_fn_info_value, build_ctr_info_value,
1677 build_gcov_info): Likewise.
1678 * expr.c (categorize_ctor_elements_1, store_constructor,
1679 expand_expr_real_1): Likewise.
1680 * fold-const.c (fold_ternary): Likewise.
1681 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
1682 gimplify_init_constructor, gimplify_expr): Likewise.
1683 * tree-dump.c (dequeue_and_dump): Likewise.
1684 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
1685 node.
1686 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
1687 CONSTRUCTOR_ELTS.
1688 * tree-sra.c (generate_element_init_1): Likewise.
1689 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1690 * tree-ssa-operands.c (get_expr_operands): Likewise.
1691 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1692 * tree-vect-transform.c (vect_get_vec_def_for_operand):
1693 (get_initial_def_for_reduction): Likewise.
1694 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
1695 value handle in annotations.
1696 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
1697 tree_node_structure): Add support for constr_kind.
1698 (build_vector_from_ctor, build_constructor_single,
1699 build_constructor_from_list): New functions.
1700 (build_constructor): Update to take a VEC instead of a TREE_LIST.
1701 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
1702 Update to cope with VEC in CONSTRUCTOR_ELTS.
1703 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
1704 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
1705 CONSTRUCTOR_APPEND_ELT): New macros.
1706 (struct constructor_elt, struct tree_constructor): New data types.
1707 (union tree_node): Add tree_constructor field.
1708 * treestruct.def: Define TS_CONSTRUCTOR.
1709 * varasm.c (const_hash_1, compare_constant, copy_constant,
1710 compute_reloc_for_constant, output_addressed_constants,
1711 initializer_constant_valid_p, output_constant,
1712 array_size_for_constructor, output_constructor): Update to cope with
1713 VEC in CONSTRUCTOR_ELTS.
1714 * vec.h (VEC_empty, VEC_copy): New macros.
1715
f37d7c60
DP
17162005-07-19 Devang Patel <dpatel@apple.com>
1717
1718 * dbxout.c (dbxout_type): Check Objective-C++ lang.
7904f95f 1719
af62f6f9
RH
17202005-07-19 Richard Henderson <rth@redhat.com>
1721
1722 PR tree-opt/22278
1723 * gimplify.c (gimplify_expr): Use main variant type for the temp
1724 destination for a discarded volatile read.
1725 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
1726 casts between non-void types that change volatility.
1727
b9b8dde3
DD
17282005-07-15 DJ Delorie <dj@redhat.com>
1729
1730 * toplev.h: Add comment about the first parameter for warning().
1731 * errors.h: Likewise.
1732
1733 * c.opt (Wpragmas): New.
1734 * doc/invoke.texi: Document it.
7904f95f 1735
b9b8dde3
DD
1736 * function.c (do_warn_unused_parameter): Add warning control to
1737 warning call.
1738 * c-decl.c (warn_if_shadowing): Likewise.
1739 * c-lex.c (cb_def_pragma): Likewise.
1740 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
1741 (pop_alignment): Likewise.
1742 (handle_pragma_pack): Likewise.
1743 (apply_pragma_weak): Likewise.
1744 (handle_pragma_weak): Likewise.
1745 (handle_pragma_redefine_extname): Likewise.
1746 (add_to_renaming_pragma_list): Likewise.
1747 (handle_pragma_extern_prefix): Likewise.
1748 (maybe_apply_renaming_pragma): Likewise.
1749 (handle_pragma_visibility): Likewise.
7904f95f 1750
b9b8dde3
DD
1751 * config/c4x/c4x-c.c (BAD): Likewise.
1752 (c4x_parse_pragma): Likewise.
1753 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
1754 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
1755 (rs6000_pragma_longcall): Likewise.
1756 * config/v850/v850-c.c (pop_data_area): Likewise.
1757 (ghs_pragma_section): Likewise.
1758 (ghs_pragma_section): Likewise.
1759 (ghs_pragma_interrupt): Likewise.
1760 (ghs_pragma_starttda): Likewise.
1761 (ghs_pragma_startsda): Likewise.
1762 (ghs_pragma_startzda): Likewise.
1763 (ghs_pragma_endtda): Likewise.
1764 (ghs_pragma_endsda): Likewise.
1765 (ghs_pragma_endzda): Likewise.
1766
6a9a79a8
DB
17672005-07-19 Danny Berlin <dberlin@dberlin.org>
1768 Kenneth Zadeck <zadeck@naturalbridge.com>
1769
1770 * Makefile.in: Removed tree-promote-statics.c
1771 * tree-promote-statics.c: Removed.
1772 * common.opt: Removed flag-promote-statics.
1773 * opts.c: Ditto.
7904f95f 1774 * passes.c: Removed tree-promote-statics pass.
6a9a79a8
DB
1775 * tree-pass.h: Ditto.
1776 * timevar.def: Removed TV_PROMOTE_STATICS.
1777
1778
0219cf3d
GP
17792005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
1780
1781 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
1782 and *-*-freebsd9.
1783 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
7904f95f 1784
7876a414
KG
17852005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1786
1787 PR c/22476
1788 * c-common.c (check_function_arguments): Call
1789 'check_function_format' if either -Wformat or
1790 -Wmissing-format-attribute are specified.
1791 * c-format.c (check_function_format): Check -Wformat before
1792 calling 'check_format_info'.
1793 * c-opts.c (c_common_post_options): Don't warn for
1794 -Wmissing-format-attribute without -Wformat.
1795 * c-typeck.c (convert_for_assignment): Detect additional cases for
1796 -Wmissing-format-attribute.
1797 * doc/invoke.texi (-Wmissing-format-attribute): Document new
1798 behavior.
1799
98ea7437
RG
18002005-07-19 Richard Guenther <rguenther@suse.de>
1801
1802 * config/i386/i386.md (lrint<mode>2): Use temporary
1803 instead of clobbering non-existent memory.
1804
89a0b917
NC
18052005-07-19 Nick Clifton <nickc@redhat.com>
1806
1807 * config/avr/avr.c (legitimate_address_p): Fix debugging print
1808 statement to avoid displaying ASCII control characters.
1809
dfea6c85
BE
18102005-07-19 Ben Elliston <bje@au.ibm.com>
1811
1812 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
1813 * cfganal.c (find_edge_index): Ditto.
1814 * combine.c (combine_instructions): Ditto.
1815 * ddg.c (create_scc): Ditto.
1816 (find_successors): Ditto.
1817 (find_predecessors): Ditto.
1818 (find_nodes_on_paths): Ditto.
1819 (longest_simple_path): Ditto.
1820 * flow.c (update_life_info): Ditto.
1821 (count_or_remove_death_notes): Ditto.
1822 (clear_log_links): Ditto.
1823 * modulo-sched.c (generate_reg_moves): Ditto.
1824 (find_max_asap): Ditto.
1825 (find_max_hv_min_mob): Ditto.
1826 (find_max_dv_min_mob): Ditto.
1827 * sbitmap.c (sbitmap_first_set_bit): Ditto.
1828 * sched-rgn.c (extract_edgelst): Ditto.
1829 * tree-into-ssa.c (prepare_names_to_update): Ditto.
1830 (dump_update_ssa): Ditto.
1831 (ssa_names_to_replace) Ditto.
1832 (switch_virtuals_to_full_rewrite): Ditto.
1833 (update_ssa): Ditto.
1834 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
1835
b9d33488
DB
18362005-07-18 Daniel Berlin <dberlin@dberlin.org>
1837
1838 Fix PR tree-optimization/22483
7904f95f 1839
b9d33488
DB
1840 * tree-complex.c (create_components): Use
1841 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
1842 * tree-flow-inline.h (fill_referenced_var_vec): New function.
1843 * tree-flow.h (safe_referenced_var_iterator): New structure.
1844 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
1845 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
1846 safe_referenced_var iterator.
1847 (add_type_alias): Ditto.
1848
9fa26457
SB
18492005-07-19 Steven Bosscher <stevenb@suse.de>
1850
1851 * loop-init.c (rest_of_handle_loop2): Remove.
1852 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
1853 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
1854 (pass_rtl_loop_init, pass_rtl_loop_done,
1855 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
1856 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
1857 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
1858 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
1859 pass_tree_loop_done, and pass_tree_unswitch.
1860 (gate_loop): Rename to gate_tree_loop.
1861 * passes.c (init_optimization_passes): Update for renamed tree
1862 loop passes. Add the new loop2 passes as subpasses of loop2.
1863 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
1864 Update for the renamed tree loop passes.
1865
7825308e
ILT
18662005-07-18 Ian Lance Taylor <ian@airs.com>
1867
1868 PR middle-end/22057
1869 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
1870 blocks when optimizing.
1871
2928d0f8
SE
18722005-07-18 Steve Ellcey <sje@cup.hp.com>
1873
1874 * common.opt (frename-registers): Initialize to 2.
1875 (fweb): Ditto.
1876 (fgcse-after-reload): Ditto.
1877 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
1878 (process_options): Only change flag_web, flag_rename_registers,
1879 and flag_rerun_cse_after_loop if not explicitly set by user.
1880
28356f52
JB
18812005-07-18 Jan Beulich <jbeulich@novell.com>
1882
1883 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
1884 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
1885 in 64-bit mode the same as DImode in 32-bit mode.
1886 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
1887 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
7904f95f 1888 mode. Add new mode parameter.
28356f52
JB
1889 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
1890 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
1891 x86_64_shift_adj): New expanders.
1892 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
1893 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
1894 insns.
1895 Respective new splitters. Use renamed shift splitter helpers in 32-bit
1896 DImode shift splitters.
1897 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
1898 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
1899 mode parameter.
1900
422edd6f
JB
19012005-07-18 Jan Beulich <jbeulich@novell.com>
1902
1903 * i386.md (movdi_extzv_1): New.
1904 (zero_extendhidi2): Combine alternatives and never force use of
1905 REX64 prefix.
1906 (zero_extendqidi2): Likewise. Don't restrict input selection.
1907
c625053b
DB
19082005-07-17 Daniel Berlin <dberlin@dberlin.org>
1909
1910 Fix PR tree-optimization/22531
1911 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
1912 moment.
1913
3b1355f3
DB
19142005-07-17 Daniel Berlin <dberlin@dberlin.org>
1915
1916 * tree-promote-statics.c (pass_promote_statics): Change dump file
1917 name.
1918
19192005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
1920
1921 * tree-optimize.c (init_tree_optimization_passes): Add
1922 pass_eliminate_useless_stores pass.
1923 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
1924 * tree-ssa-pre.c (is_copy_stmt): New function.
1925 (follow_copies_till_vuse): Ditto.
1926 (do_eustores): Ditto.
7904f95f
EC
1927 (gate_eustores): Ditto.
1928
7544a87f
RH
19292005-07-16 Richard Henderson <rth@redhat.com>
1930
1931 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
1932
bf0d50f1
KZ
19332005-07-16 Danny Berlin <dberlin@dberlin.org>
1934 Kenneth Zadeck <zadeck@naturalbridge.com>
1935
1936 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
1937 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
1938 ipa-type-escape.h, tree-promote-statics.c
1939 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
7904f95f 1940 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
bf0d50f1
KZ
1941 tree-promote-statics.c: new files.
1942 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
1943 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
1944 int nonlocal_set_p, mark_constant_function): Deleted.
7904f95f 1945 (rest_of_handle_cfg): Removed call to mark_constant_function.
86979811 1946 (nonoverlapping_component_refs_p): Added calls to support
7904f95f 1947 type based aliasing.
86979811 1948 * tree-ssa-alias.c (may_alias_p,
bf0d50f1
KZ
1949 compute_flow_insensitive_aliasing): Ditto.
1950 * calls.c (flags_from_decl_or_type): Removed reference to
7904f95f 1951 cgraph_rtl_info.
86979811 1952 * c-typeck.c (convert_arguments): Make builtins tolerant of having
bf0d50f1
KZ
1953 too many arguments. This is necessary for Spec 2000.
1954 * cgraph.h (const_function, pure_function): Removed.
7904f95f 1955 * common.opt: Added "fipa-pure-const", "fipa-reference",
bf0d50f1
KZ
1956 "fipa-type-escape", and "ftree-promote-static".
1957 * opts.c: Ditto.
7904f95f 1958 * passes.c: Added ipa and tree-promote-statics passes.
bf0d50f1
KZ
1959 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
1960 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1 1961 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
7904f95f 1962 * tree-flow.h: Added exposed sra calls and addition of
bf0d50f1
KZ
1963 reference_vars_info field for FUNCTION_DECLS.
1964 * tree-pass.h: Added passes.
1965 * tree-sra.c: (sra_init_cache): New function.
1966 (sra_insert_before, sra_insert_after) Made public.
1967 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
1968 and made public.
1969 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
1970 aliasing. (may_alias_p): Added code to use type escape analysis to
1971 improve alias sets.
1972 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
1973 code to prune clobbers of static variables based on information
1974 produced in ipa-reference pass. Changed call clobbering so that
1975 statics are not marked as clobbered if the call does not clobber
1976 them.
1977
b6e0bdbd
DB
19782005-07-16 Daniel Berlin <dberlin@dberlin.org>
1979
1980 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
1981 too.
1982
2c00bd42
EB
19832005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1984
1985 * doc/install.texi (*-*-solaris2*): Document recommended version
1986 of GNU binutils and mention GNU linker problem on Solaris 10.
1987
0b359b01
JM
19882005-07-16 Joseph S. Myers <joseph@codesourcery.com>
1989
1990 PR c/22421
1991 * c-decl.c (c_build_bitfield_integer_type): New function.
1992 (finish_struct): Call it.
1993 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
1994
8fcef540
KG
19952005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1996
1997 * c-typeck.c (digest_init): Call 'convert_for_assignment'
1998 before returning.
1999
84fc24e8
JH
20002005-07-16 Jan Hubicka <jh@suse.cz>
2001
2002 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
2003 (scale_bbs_frequencies_int): Watch roundoff errors.
2004 * predict.c (return_prediction): Initialize return_stmt.
2005
3258272f
JH
20062005-07-16 Jan Hubicka <jh@suse.cz>
2007
2008 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
2009 after RTL profiling.
2010
01c0a9fa
AP
20112005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2012
2013 PR middle-end/22398
2014 * fold-const.c (build_range_check): Convert high/low to etype
2015 if we are only comparing against exp.
2016
27811bfe
DB
20172005-07-13 Daniel Berlin <dberlin@dberlin.org>
2018
2019 Fix PR tree-optimization/22376
2020 * tree-ssa-structalias.c (build_constraint_graph): We really meant
2021 special var here.
2022 (need_to_solve): New function.
2023 (compute_points_to_sets): Use it.
7904f95f 2024
2b151cb2
JH
20252005-07-15 Jan Hubicka <jh@suse.cz>
2026
2027 * cfg.c (update_bb_profile_for_threading): More diagnostic.
2028 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
2029
0691d1d4
RG
20302005-07-15 Richard Guenther <rguenther@suse.de>
2031
2032 * c-common.c (handle_flatten_attribute): New function.
2033 Add flatten function attribute.
2034 * doc/extend.texi: Document flatten function attribute.
2035 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
2036 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
2037 New functions.
2038 (cgraph_decide_inlining): Handle functions with flatten
2039 attribute.
2040
9f0076e5
DE
20412005-07-14 David Edelsohn <edelsohn@gnu.org>
2042
2043 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
2044 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
2045 UNSPEC_XCHG, UNSPEC_AND): New.
2046 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
2047 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
2048 * config/rs6000/sync.md (FETCHOP): New code macro.
2049 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
2050 New code attrs.
2051 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
2052 (sync_compare_and_swap<mode>): Same.
2053 (sync_lock_test_and_set<mode>): Same.
2054 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
2055 for QImode and HImode, and not PPC405.
2056 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
2057 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
2058 (sync_<fetchop>{si,di}_internal): New.
2059 (sync_nand{si,di}_internal): New.
2060 (sync_old_<fetchop>{si,di}_internal): New.
2061 (sync_old_nand{si,di}_internal): New
2062 (sync_new_<fetchop>{si,di}_internal): New.
2063 (sync_new_nand{si,di}_internal): New.
2064 (atomic_and{si,di}): New.
2065 (sync_new_nand{si,di}_internal): New.
2066 (atomic_and{si,di}): New.
2067 (sync_add<mode>_internal): Delete.
2068 (sync_addshort_internal): Use unspec instead of unspec_volatile.
2069 (sync_sub<mode>_internal): Delte.
2070 (sync_subshort_internal): New.
2071 (sync_andsi_internal): Use unspec instead of unspec_volatile.
2072 (sync_anddi_internal): Delete.
2073 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
2074 (sync_booldi_internal): Delete.
2075 (sync_boolc<mode>_internal): Delete.
2076 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
2077 (sync_boolc<mode>_internal2): Delete.
2078 (sync_boolcc<mode>_internal): Delete.
2079 (isync, lwsync): Use unspec instead of unspec_volatile.
2080 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
2081 Revert UNSPEC_VOLATILE.
2082 (rs6000_split_atomic_op): New.
2083 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
2084
06277571
EC
20852005-07-14 Eric Christopher <echristo@redhat.com>
2086
2087 * config/mips/mips.c (mips_canonicalize_comparison): Cast
2088 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
2089
b838c72b
EC
20902005-07-14 Eric Christopher <echristo@redhat.com>
2091
2092 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
2093
3c341936
SB
20942005-07-14 Steven Bosscher <stevenb@suse.de>
2095
2096 PR tree-optimization/22230
2097 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
2098 the computation of the four cross productions for "range op range".
2099
704b6cb5 21002005-07-14 Alexandre Oliva <aoliva@redhat.com>
86979811 2101 Ulrich Weigand <uweigand@de.ibm.com>
704b6cb5
AO
2102
2103 PR target/20126
2104 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
2105 in some insn.
2106
a771c4b3
UW
21072005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2108
2109 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
2110
6f3113ed
SE
21112005-07-14 Steve Ellcey <sje@cup.hp.com>
2112
2113 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2114
cb1119b7
RG
21152005-07-14 Richard Guenther <rguenther@suse.de>
2116
2117 PR middle-end/22347
2118 * config/i386/i386-protos.h (ix86_function_value): Change
2119 prototype to match new target hook.
2120 * config/i386/i386.c (ix86_value_regno): Change prototype
2121 to take extra type argument.
2122 (TARGET_FUNCTION_VALUE): Define.
2123 (ix86_function_ok_for_sibcall): Pass extra argument to
2124 ix86_value_regno, check return slot rtx for exact match.
2125 (ix86_function_value): Take extra parameter. Dispatch to
2126 ix86_value_regno with fndecl/fntype as provided.
2127 (ix86_value_regno): Handle extra type argument.
2128 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2129
2130 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2131 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2132 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2133 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2134 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2135
1d636cc6
RG
21362005-07-14 Richard Guenther <rguenther@suse.de>
2137
2138 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2139 * calls.c (expand_call): Pass fntype to hard_function_value.
2140 (emit_library_call_value_1): Likewise.
2141 * explow.c: Include target.h.
2142 (hard_function_value): Take extra argument, the fntype.
2143 Use new target hook for function_value.
2144 * expr.h (hard_function_value): Change prototype.
2145 * function.c (aggregate_value_p): Pass 0 as fntype to
2146 hard_function_value.
2147 (assign_parms): Use new target hook for function_value.
2148 Pass 0 as fntype to hard_function_value.
2149 (expand_function_end): Likewise.
2150 * reg-stack.c: Include target.h.
2151 (stack_result): Use new target hook for function_value.
2152 * target-def.h: New target hook function_value.
2153 * target.h: Likewise.
2154 * targhooks.c (default_function_value): New function.
2155 * targhooks.h (default_function_value): Declare.
2156
09d8cc0e
ILT
21572005-07-13 Ian Lance Taylor <ian@airs.com>
2158
2159 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2160
df1f6f31
JH
21612005-07-14 Jan Hubicka <jh@suse.cz>
2162
2163 * tree-dfa.c (dump_variable): Use default_def function.
2164 * tree-ssa-alias.c (dump_points_to_info): Likewise.
2165 * tree-ssa.c (verify_use): Likewise.
2166 * tree-ssanames.c (release_ssa_name): Likewise.
2167 * tree-tailcall.c (eliminate_tail_call): Likewise.
2168 (tree_optimize_tail_calls_1): Likewise.
2169 * tree-vrp.c (get_value_range): Likewise.
2170
9ef0b1bd
BE
21712005-07-14 Ben Elliston <bje@au.ibm.com>
2172
2173 * gcc.c (main): Compare language[0] with '*' when iterating over
2174 the infiles.
2175
69950452
AS
2176