]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR middle-end/22626 (ICE with optimization turned on while trying to exand complex...
[gcc.git] / gcc / ChangeLog
CommitLineData
5306ec31
RH
12005-07-25 Richard Henderson <rth@redhat.com>
2
3 PR 22626
4 * tree-complex.c (gate_no_optimization): True if errors.
5 * Makefile.in (tree-complex.o): Update dependencies.
6
bfa653b3
AH
72005-07-25 Aldy Hernandez <aldyh@redhat.com>
8
9 * config/frv/predicates.md (integer_register_operand): Use
10 GPR_AP_OR_PSEUDO_P.
11
43e364dd
AP
122005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
13
14 PR tree-opt/22484
15 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
16 after fold.
17 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
18
c72f711f
AP
192005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
20
21 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
22 types when flag_unsafe_math_optimizations is true.
23
160633c6
MM
242005-07-25 Mark Mitchell <mark@codesourcery.com>
25
26 * gcc.c (option_map): Add --sysroot.
27 (process_command): Handle --sysroot.
28 (display_help): Document it.
29 * doc/cppopts.tex (-isysroot): Document.
30 * doc/invoke.texi (--sysroot): Document.
31 * doc/install.texi (--with-build-sysroot): Document.
32
33 * Makefile.in (inhibit_libc): New variable.
34 (INHIBIT_LIBC_CFLAGS): Likewise.
35 (LIBGCC2_CFLAGS): Include
36 $(INHIBIT_LIBC_CFLAGS).
37 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
38 ($(T)crtbegin.o): Do not use @inhibit_libc@.
39 ($(T)crtend.o): Likewise.
40 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
41 ($(T)crtendS.o): Likewise.
42 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
43 ($(T)crtendT.o): Likewise.
44 (stmp-fixinc): Do not complain about missing headers if
45 inhibit_libc.
46 * configure.ac (inhibit_libc): Set it to true/false.
47 (--with-build-sysroot): New option. Use it to set
48 SYSTEM_HEADER_DIR.
49 * configure: Regenerated.
50
1490f93a
MH
512005-07-25 Manfred Hollstein <mh@suse.com>
52
53 * calls.c (store_one_arg): Fix unsigned comparison warning.
54
76e20664
SB
552005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
56
57 PR other/22337
58 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
59 (ggc_print_statistics): Initialize variable before use.
60
5c97e2de
RG
612005-07-25 Richard Guenther <rguenther@suse.de>
62
63 * tree-dfa.c (mark_new_vars_to_rename): Protect against
64 calling with a PHI_NODE argument.
65
66 * tree-flow-inline.h (overlap_subvar): Protect against
67 possible overflow.
68
7fefc172
PB
692005-07-25 Paolo Bonzini <bonzini@gnu.org>
70
71 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
72 * configure: Regenerate.
73
86a07404
IR
742005-07-25 Ira Rosen <irar@il.ibm.com>
75
76 * expr.c (highest_pow2_factor): Make extern.
77 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
78 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
79 record_array_differ_p, array_ptr_differ_p): Likewise.
80 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
81 additional cases. Call the above functions.
82 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
83 base_object_differ_p when there are two base objects. Otherwise, compare
84 base address and offset. Call may_alias_p.
85 (dump_data_reference): Use a correct field name.
86 (analyze_array): Make static. Initialize new data-ref fields.
87 (analyze_indirect_ref): New function.
88 (init_data_ref): Initialize new data-ref fields.
89 (strip_conversion): Moved from tree-vect-analyze.c.
7fefc172
PB
90 (analyze_offset_expr, get_ptr_offset, address_analysis,
91 object_analysis): Likewise.
86a07404
IR
92 (analyze_offset): New function.
93 (create_data_ref): Likewise.
94 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
95 dimensions for ARRAY_REFs only.
96 (build_classic_dist_vector): Make static.
97 (access_functions_are_affine_or_constant_p): Call macro to get the
98 address of access functions.
99 (compute_all_dependences): Add new parameter
100 compute_self_and_read_read_dependences. Compute self and read-read
101 dependences if it is true.
102 (find_data_references_in_loop): Call create_data_ref. Initialize new
103 data-ref fields.
104 (compute_data_dependences_for_loop): Add new parameter
105 compute_self_and_read_read_dependences. Remove parameter nb_loops,
7fefc172
PB
106 compute nb_loops. Call compute_all_dependences,
107 build_classic_dist_vector and build_classic_dir_vector with correct
108 parameters.
109 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
110 with correct parameters. Compare dimensions for ARRAY_REFs only.
86a07404
IR
111 (free_data_refs): Call macro to free access functions.
112 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
113 fields from stmt_vinfo.
114 (struct base_object_info): New structure.
115 (struct data_reference): Move fields to base_object_info. Add fields
116 first_location and object_info for above structures. Move fields from
7fefc172
PB
117 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
118 aligned_to. Add macros to access the new fields.
86a07404
IR
119 Update functions declarations.
120 * tree-flow.h (is_aliased_with): Declare.
121 * tree-loop-linear.c (linear_transform_loops): Call
122 compute_data_dependences_for_loop with correct parameters.
123 * tree-ssa-alias.c (is_aliased_with): New function.
124 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
125 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
126 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
127 vect_base_addr_differ_p, compute_subscript_distance and
128 build_classic_dist_vector. Add printings. Check absolute value of
129 distance.
7fefc172
PB
130 (vect_analyze_data_ref_dependences): Go through ddrs instead of
131 data-refs.
86a07404
IR
132 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
133 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
134 to bytes. Add printing.
7fefc172
PB
135 (vect_compute_data_refs_alignment): Go through loads and stores in one
136 loop.
86a07404
IR
137 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
138 vect_analyze_data_ref_access): Likewise.
139 (vect_analyze_pointer_ref_access): Remove.
140 (vect_address_analysis, vect_object_analysis): Likewise.
141 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
142 and analyze data-refs in the loop.
7fefc172
PB
143 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
144 fields of data-ref instead of stmt. Add init to the offset from the
145 base.
86a07404
IR
146 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
147 (vect_update_init_of_dr): Likewise.
148 (vect_update_inits_of_drs): Go through loads and stores in one loop.
7fefc172
PB
149 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
150 removed fields.
86a07404
IR
151 (new_loop_vec_info): Initialize new fields.
152 (destroy_loop_vec_info): Free new fields.
153 (vect_strip_conversion): Remove.
154 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
155 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
156 datarefs. Add new field ddrs.
157 Add macros for the new fields access.
158 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
159 base_aligned_p, misalignment, memtag, ptr_info and subvars.
160 Remove their macros.
161 * tree.h (highest_pow2_factor): Declare.
162
0dc42b03
JJ
1632005-07-25 Jakub Jelinek <jakub@redhat.com>
164
165 * calls.c (store_one_arg): Check for sibling call MEM arguments
166 from already clobbered incoming argument area.
167
104f8784
KG
1682005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
169
170 * c-common.c (check_missing_format_attribute): New.
171 * c-common.h (check_missing_format_attribute): Likewise.
172 * c-typeck.c (convert_for_assignment): Use it.
173
1b8452d0
AS
1742005-07-24 Andreas Schwab <schwab@suse.de>
175
176 * config/m68k/m68k.md ("extendqidi2"): When source is an address
177 register use a word move. Correct operand of ext.w in 68000 code.
178
2b402955
MM
1792005-07-23 Mark Mitchell <mark@codesourcery.com>
180
181 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
182 variables as declarations, rather than definitions.
183
c8af1197
IR
1842005-07-24 Ira Rosen <irar@il.ibm.com>
185
186 PR tree-optimization/22526
187 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
188 of the zero node.
189
1b135aa5
FXC
1902005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
191
192 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
193 that C99 reserve for future use. Use it to define clog10,
194 clog10f and clog10l.
195
ac0f3f39
KG
1962005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
197
198 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
199 * configure.ac: Check for -Wmissing-format-attribute.
200
201 * configure: Regenerate.
202
db753fa1
RH
2032005-07-23 Richard Henderson <rth@redhat.com>
204
205 PR tree-optimization/22623
206 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
207
28f155be
GB
2082005-07-23 Giovanni Bajo <giovannibajo@libero.it>
209
210 PR target/22577
211 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
212
db857e7d
KG
2132005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
214
215 * Makefile.in (C_TREE_H): Update dependencies.
216 * c-tree.h: Include toplev.h.
217 * diagnostic.h (diagnostic_set_info): Add format attribute.
218 * rtl-error.c (diagnostic_for_asm): Likewise.
219
118ea793
CF
2202005-07-23 Chao-ying Fu <fu@mips.com>
221
222 * config/mips/mips-dsp.md: New file.
223 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
224 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
225 functions.
226 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
227 MIPS_BUILTIN_BPOSGE32.
228 (mips_expand_builtin_direct): Add one parameter to indicate that
229 builtin functions need to return a value.
230 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
231 functions.
232 (mips_regno_to_class): Add classes for 12 new DSP registers.
233 (mips_subword): Change to check four HI registers.
234 (mips_output_move): Output move to and from 6 new DSP accumulators.
235 (override_options): Make sure -mdsp and -mips16 are not used together.
236 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
237 for machine modes.
238 (mips_conditional_register_usage): Disable 6 new DSP accumulators
239 when !TARGET_DSP.
240 (print_operand): Add 'q' for printing DSP accumulators.
241 (mips_cannot_change_mode_class): Check ACC_REGS.
242 (mips_secondary_reload_class): Check ACC_REGS.
243 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
244 (mips_register_move_cost): Check ACC_REGS.
245 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
246 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
247 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
248 (dsp_bdesc): New array.
249 (bdesc_arrays): Add DSP builtin function table.
250 (mips_prepare_builtin_arg): Check predicate again after
251 copy_to_mode_reg.
252 (mips_expand_builtin): Add one more parameter to
253 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
254 MIPS_BUILTIN_BPOSGE32.
255 (mips_init_builtins): Initialize new function types.
256 (mips_expand_builtin_direct): Check if builtin functions need to
257 return a value and pass operands properly.
258 (mips_expand_builtin_bposge): New function.
259 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
260 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
261 (FIRST_PSEUDO_REGISTER): Increase to 188.
262 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
263 Update for 12 new DSP registers.
264 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
265 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
266 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
267 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
268 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
269 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
270 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
271 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
272 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
273 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
274 (REGISTER_NAMES): Add names for 12 new DSP registers.
275 * config/mips/mips.md: Include mips-dsp.md.
276 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
277 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
278 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
279 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
280 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
281 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
282 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
283 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
284 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
285 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
286 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
287 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
288 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
289 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
290 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
291 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
292 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
293 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
294 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
295 (UNSPEC_RDDSP): New constants.
296 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
297 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
298 A<-d alternative.
299 * config/mips/mips.opt (-mdsp): New option.
300 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
301 (reg_imm10_operand): New predicates.
302 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
303 * doc/invoke.texi (-mdsp): Document new option.
304
d2fcbf6f
DD
3052005-07-22 DJ Delorie <dj@redhat.com>
306
307 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
308 to warning calls.
309 * tree-inline.c (inlinable_function_p): Likewise.
310
9881e3e5
MM
3112005-07-22 Mark Mitchell <mark@codesourcery.com>
312
313 PR debug/21828
314 * toplev.c (check_global_declarations): Do not mark undefined
315 variables as DECL_IGNORED_P.
316 * varasm.c (first_global_object_name): GTY it.
317 (weak_global_object_name): Likewise.
318 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
319 a string to go into {weak,first}_global_object_name.
320
1a8d0d41
DD
3212005-07-22 DJ Delorie <dj@redhat.com>
322
323 * c-format.c (check_function_format): Change warning control
324 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
325
17c7e33e
DN
3262005-07-22 Diego Novillo <dnovillo@redhat.com>
327
328 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
329 &PTR->FLD a dereference of PTR.
330 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
331 a potential dereference of PTR.
332
45002e59
R
3332005-07-22 J"orn Rennecke <joern.rennecke@st.com>
334
191e1ff2
R
335 PR rtl-optimization/20370
336 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
337 call allocate_reg_info if necessary.
338
475a3eef
R
339 PR rtl-optimization/21848
340 * calls.c (emit_library_call_value_1): For const functions, add
341 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
342
29c1846b
R
343 PR rtl-optimization/22445
344 * cselib.c (target.h): Include.
345 (rtx_equal_for_cselib_p): Allow commutative matches.
346 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
347 Remove MODE parameter. Changed all callers.
348
45002e59
R
349 PR rtl-optimization/22258
350 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
351 New functions.
352 (try_combine): Use likely_spilled_retval_p.
353
db869733
PW
3542005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
355
356 * config.gcc: Add crx-elf support.
357
358 * doc/contrib.texi: Mention crx.
359 * doc/extend.texi: Document crx extensions.
360 * doc/install.texi: Document crx install.
361 * doc/invoke.texi: Document crx options.
362 * doc/md.texi: Document crx constraints.
363
364 * config/crx/crx-protos.h: New file.
365 * config/crx/crx.c: New file.
366 * config/crx/crx.h: New file.
367 * config/crx/crx.md: New file.
368 * config/crx/crx.opt: New file.
369 * config/crx/t-crx: New file.
370
32cafd73
MH
3712005-07-22 Manfred Hollstein <mh@suse.com>
372
373 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
374 warnings.
375 (int_add_graph_edge): Likewise.
376 (collapse_nodes): Likewise.
377 (process_unification_queue): Likewise.
378
ee184c4d
RK
3792005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
380 Laurent GUERBY <laurent@guerby.net>
381
382 PR tree-optimization/22336
383 * function.c (record_block_change): Check for
384 cfun->ib_boundaries_block.
385
b49ceb45
JM
3862005-07-21 James A. Morrison <phython@gcc.gnu.org>
387
388 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
389 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
390
30c54de9
DD
3912005-07-21 DJ Delorie <dj@redhat.com>
392
393 * toplev.c (warn_deprecated_use): Add warning control to warning
394 call.
c303630a
DD
395 * c-typeck.c (parser_build_binary_op): Likewise.
396 (c_finish_if_stmt): Likewise.
30480ec4
DD
397 * c-common.c (check_function_sentinel): Likewise.
398 (check_nonnull_arg): Likewise.
30c54de9 399
95a8c155
RH
4002005-07-21 Richard Henderson <rth@redhat.com>
401
402 PR tree-opt/22504
403 * tree-complex.c (complex_ssa_name_components): New.
404 (cvc_lookup): Allow entry not found.
405 (create_components): Remove.
406 (create_one_component_var, get_component_var): New.
407 (get_component_ssa_name, set_component_ssa_name): New.
408 (extract_component): Use get_component_ssa_name.
409 (update_complex_components): Use set_component_ssa_name.
410 (update_complex_components_on_edge): Likewise.
411 (update_phi_components): Create new PHI nodes directly, instead
412 of adding insns to edges.
413 (tree_lower_complex): Allocate and free complex_variable_components
414 and complex_ssa_name_components here.
415
c05a0766
DB
4162005-07-20 Daniel Berlin <dberlin@dberlin.org>
417
418 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
419 revert to returning false.
420
de343c8d
UB
4212005-07-21 Uros Bizjak <uros@kss-loka.si>
422
423 PR target/21149
424 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
425
5acc26ef
UB
4262005-07-21 Uros Bizjak <uros@kss-loka.si>
427
428 PR target/22576
429 * config/i386/i386.md (cmpxf): Change operand constraints
430 to "nonmemory_operand".
431
61cb44fe
AP
4322005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
433
434 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
435
e2fe73f6
AP
4362005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
437
438 PR middle-end/21180
439 * fold-const.c (fold_build1): Add checksum for the operands.
440 (fold_build2): Likewise.
441 (fold_build3): Likewise.
442
9d24eb54
AP
4432005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
444
445 PR middle-end/19055
446 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
447
b2e0afa0
PB
4482005-07-21 Paolo Bonzini <bonzini@gnu.org>
449
450 * common.opt (-fforward-propagate): Committed by mistake,
451 removed.
452
2e48874f
VR
4532005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
454
455 * reg-stack.c: Fix comment typo(s).
456 * tree-ssa-operands.c: Likewise.
457 * tree-vectorizer: Likewise.
458
889d8465
NC
4592005-07-21 Nick Clifton <nickc@redhat.com>
460
461 * config/sh/symbian.c: Replace C++ style line comments with C
462 style line comments.
463 (symbian_add_attribute): Do not use a ? operator on the LHS of
464 an assignment.
465 (sh_symbian_handle_dll_attribute): Change the type of the
466 method vector to "VEC(tree,gc)*" and use vector accessor
467 macros to walk over the elements.
468 (symbian_export_vtable_and_rtti_p): Likewise.
469 (symbian_class_needs_attribute_p): Likewise.
470
2fab365e
PB
4712005-07-21 Paolo Bonzini <bonzini@gnu.org>
472
473 PR target/22085
474 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
475 initialize targetm.resolve_overloaded_builtin here.
476 (altivec_expand_overloaded_builtin): Make it non-static.
477 * config/rs6000/rs6000-protos.h
478 (altivec_expand_overloaded_builtin): New prototype.
479 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
480 targetm.resolve_overloaded_builtin here.
481 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
482
f9cc1a70
PB
4832005-07-21 Paolo Bonzini <bonzini@gnu.org>
484 Zdenek Dvorak <dvorakz@suse.cz>
485
486 PR tree-optimization/19210
487 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
488 New.
489 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
490 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
491 rely on unproven assumptions.
492 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
493 * tree-flow.h (number_of_iterations_exit): Add final parameter.
494 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
495 to number_of_iterations_exit.
496 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
497 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
498 * tree-ssa-loop-niter.c (find_loop_niter,
499 estimate_numbers_of_iterations_loop): Likewise.
500 (number_of_iterations_exit): Honor the new options.
501 * doc/invoke.texi (Wunsafe-loop-optimizations,
502 funsafe-loop-optimizations): Document them.
503
cb83c2ec
RS
5042005-07-21 Richard Sandiford <richard@codesourcery.com>
505
506 PR rtl-optimization/22167
507 * gcse.c (hoist_code): Fix hoist_exprs[] check.
508
5e5cbbfb
AN
5092005-07-20 Adam Nemet <anemet@lnxw.com>
510
511 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
512 __do_global_dtors_aux longcall.
513
c2acaf06
KH
5142005-07-20 Kazu Hirata <kazu@cs.umass.edu>
515
516 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
517 (old_special_pred_table): Don't reference
518 SPECIAL_MODE_PREDICATES.
519 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
520 * config/arc/arc.h: Don't mention PREDICATE_CODES.
521 * config/sh/predicates.h: Don't mention
522 SPECIAL_MODE_PREDICATES.
523 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
524 Remove.
525
38b2d076
DD
5262005-07-20 DJ Delorie <dj@redhat.com>
527
528 * config.gcc: Add m32c-elf support.
529
530 * doc/contrib.texi: Mention m32c.
531 * doc/extend.texi: Document m32c extensions.
532 * doc/install.texi: Mention m32c.
533 * doc/invoke.texi: Document m32c options.
534 * doc/md.texi: Document m32c constraints.
535
536 * config/m32c/addsub.md: New file.
537 * config/m32c/bitops.md: New file.
538 * config/m32c/cond.md: New file.
539 * config/m32c/jump.md: New file.
540 * config/m32c/m32c-lib1.S: New file.
541 * config/m32c/m32c-lib2.c: New file.
542 * config/m32c/m32c-modes.def: New file.
543 * config/m32c/m32c-pragma.c: New file.
544 * config/m32c/m32c-protos.h: New file.
545 * config/m32c/m32c.abi: New file.
546 * config/m32c/m32c.c: New file.
547 * config/m32c/m32c.h: New file.
548 * config/m32c/m32c.md: New file.
549 * config/m32c/m32c.opt: New file.
550 * config/m32c/minmax.md: New file.
551 * config/m32c/mov.md: New file.
552 * config/m32c/muldiv.md: New file.
553 * config/m32c/predicates.md: New file.
554 * config/m32c/prologue.md: New file.
555 * config/m32c/shift.md: New file.
556 * config/m32c/t-m32c: New file.
557
50b69666
KK
5582005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
559
560 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
561 (stack_protect_set, stack_protect_test): New expanders.
562 (stack_protect_set_si, stack_protect_set_si_media,
563 stack_protect_set_di_media, stack_protect_test_si,
564 stack_protect_test_si_media, stack_protect_test_di_media):
565 New insns.
566
71b50543
AP
5672005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
568
569 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
570
4db8040c
JM
5712005-07-20 James A. Morrison <phython@gcc.gnu.org>
572
573 * tree.h (tree_expr_nonzero_p): Export.
574 * fold-const.c (tree_expr_nonzero_p): Likewise.
575 Return true for CALL_EXPRs that are alloca calls.
576 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
577 against zero.
578 * tree-flow.h (expr_computes_nonzero): Remove.
579 * tree-vrp.c (expr_computes_nonzero): Remove.
580 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
581 (extract_range_from_unary_expr): Likewise.
582 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
583 tree_expr_nonzero_p.
584
6d459e2b
BS
5852005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
586
09350e36
BS
587 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
588 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
589 extra arg "picreg" and use it instead of pic_offset_table_rtx.
590 All callers changed.
591 (frame_related_constant_load): New arg "related" which controls
592 setting of RTX_FRAME_RELATED_P. All callers changed.
593 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
594 (bfin_expand_prologue): Add stack limit checking.
595 * config/bfin/bfin.md (trapifcc): New pattern.
596
05905337
BS
597 * config/bfin/bfin.c: Include "langhooks.h".
598 (def_builtin): Go through lang_hooks to call builtin_function.
599
6d459e2b
BS
600 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
601 * config/bfin/predicates.md (symbol_ref_operand): New.
602 (call_insn_operand): Delete. All callers changed to use
603 register_no_elim_operand.
604 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
605 call_cookie field.
606 (function_arg): Use it to generate the call's operand 2.
607 (bfin_longcall_p): New function.
608 (bfin_expand_call): Extra arg "cookie". All callers and declaration
609 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
610 determine if the address needs to be in a REG.
611 (bfin_handle_longcall_attribute): New function.
612 (bfin_attribute_table): Add "longcall" and "shortcall".
613 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
614 (CUMULATIVE_ARGS): New member call_cookie.
615 (PREDICATE_CODES): Add symbol_ref_operand.
616 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
617 extra USE to the pattern.
618 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
619 New patterns, split off call_insn, sibcall_insn, call_value_insn and
620 sibcall_value_insn; now the new patterns handle direct calls and the
621 old ones indirect calls.
622 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
623
67135ef4
ZD
6242005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
625
626 * doc/trouble.texi: Update section on handling of empty loops.
627
fdda361d
KH
6282005-07-20 Kazu Hirata <kazu@codesourcery.com>
629
630 * config.gcc: Remove support for sparc-*-openbsd*,
631 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
632 ns32k-*-netbsd*.
633 * config.host: Remove support for i860-*-sysv4* as a host.
634 * config/i860/*, config/ip2k/*, config/ns32k/*,
635 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
636 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
637 mention obsolete ports.
638
96a2347e
KK
6392005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
640
641 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
642 soft frame pointer.
643 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
644 of frame_pointer_rtx.
645 (sh_expand_epilogue): Likewise.
646 (sh_set_return_address): Likewise.
647 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
648 instead of FRAME_POINTER_REGNUM if needed. Add elimination
649 offsets from FRAME_POINTER_REGNUM.
650 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
651 (sh_register_names): Add initializer for sfp.
652 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
653 (VALID_REGISTER_P): Likewise.
654 (FIRST_PSEUDO_REGISTER): Update.
655 (DWARF_FRAME_REGISTERS): Define.
656 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
657 (HARD_FRAME_POINTER_REGNUM): Define.
658 (FRAME_POINTER_REGNUM): Redefine.
659 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
660 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
661 from FRAME_POINTER_REGNUM.
662 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
663 FRAME_POINTER_REGNUM.
664 (REG_CLASS_CONTENTS): Add sfp.
665 (REG_ALLOC_ORDER): Likewise.
666 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
667 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
668 of frame_pointer_rtx.
669 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
670
1ade5842
JM
6712005-07-19 James A. Morrison <phython@gcc.gnu.org>
672
673 * fold-const.c (tree_expr_nonnegative_p): Only return true for
674 ABS_EXPR when flag_wrapv is false because of INT_MIN.
675 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
676 of an ABS_EXPR.
677 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
678 ABS_EXPR<x>.
679
4038c495
GB
6802005-07-20 Giovanni Bajo <giovannibajo@libero.it>
681
682 Make CONSTRUCTOR use VEC to store initializers.
683 * c-common.c (complete_array_type): Update to cope with VEC in
684 CONSTRUCTOR_ELTS.
685 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
686 (pp_c_constructor_elts): New function.
687 * c-pretty-print.h (pp_c_constructor_elts): Declare.
688 * c-typeck.c (build_function_call, build_c_cast, digest_init,
689 struct constructor_stack, struct initializer_stack,
690 constructor_elements, push_init_level, pop_init_level,
691 add_pending_init, find_init_member, output_init_element): Update to
692 cope with VEC in CONSTRUCTOR_ELTS.
693 * coverage.c (build_fn_info_value, build_ctr_info_value,
694 build_gcov_info): Likewise.
695 * expr.c (categorize_ctor_elements_1, store_constructor,
696 expand_expr_real_1): Likewise.
697 * fold-const.c (fold_ternary): Likewise.
698 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
699 gimplify_init_constructor, gimplify_expr): Likewise.
700 * tree-dump.c (dequeue_and_dump): Likewise.
701 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
702 node.
703 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
704 CONSTRUCTOR_ELTS.
705 * tree-sra.c (generate_element_init_1): Likewise.
706 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
707 * tree-ssa-operands.c (get_expr_operands): Likewise.
708 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
709 * tree-vect-transform.c (vect_get_vec_def_for_operand):
710 (get_initial_def_for_reduction): Likewise.
711 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
712 value handle in annotations.
713 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
714 tree_node_structure): Add support for constr_kind.
715 (build_vector_from_ctor, build_constructor_single,
716 build_constructor_from_list): New functions.
717 (build_constructor): Update to take a VEC instead of a TREE_LIST.
718 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
719 Update to cope with VEC in CONSTRUCTOR_ELTS.
720 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
721 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
722 CONSTRUCTOR_APPEND_ELT): New macros.
723 (struct constructor_elt, struct tree_constructor): New data types.
724 (union tree_node): Add tree_constructor field.
725 * treestruct.def: Define TS_CONSTRUCTOR.
726 * varasm.c (const_hash_1, compare_constant, copy_constant,
727 compute_reloc_for_constant, output_addressed_constants,
728 initializer_constant_valid_p, output_constant,
729 array_size_for_constructor, output_constructor): Update to cope with
730 VEC in CONSTRUCTOR_ELTS.
731 * vec.h (VEC_empty, VEC_copy): New macros.
732
f37d7c60
DP
7332005-07-19 Devang Patel <dpatel@apple.com>
734
735 * dbxout.c (dbxout_type): Check Objective-C++ lang.
736
af62f6f9
RH
7372005-07-19 Richard Henderson <rth@redhat.com>
738
739 PR tree-opt/22278
740 * gimplify.c (gimplify_expr): Use main variant type for the temp
741 destination for a discarded volatile read.
742 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
743 casts between non-void types that change volatility.
744
b9b8dde3
DD
7452005-07-15 DJ Delorie <dj@redhat.com>
746
747 * toplev.h: Add comment about the first parameter for warning().
748 * errors.h: Likewise.
749
750 * c.opt (Wpragmas): New.
751 * doc/invoke.texi: Document it.
752
753 * function.c (do_warn_unused_parameter): Add warning control to
754 warning call.
755 * c-decl.c (warn_if_shadowing): Likewise.
756 * c-lex.c (cb_def_pragma): Likewise.
757 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
758 (pop_alignment): Likewise.
759 (handle_pragma_pack): Likewise.
760 (apply_pragma_weak): Likewise.
761 (handle_pragma_weak): Likewise.
762 (handle_pragma_redefine_extname): Likewise.
763 (add_to_renaming_pragma_list): Likewise.
764 (handle_pragma_extern_prefix): Likewise.
765 (maybe_apply_renaming_pragma): Likewise.
766 (handle_pragma_visibility): Likewise.
767
768 * config/c4x/c4x-c.c (BAD): Likewise.
769 (c4x_parse_pragma): Likewise.
770 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
771 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
772 (rs6000_pragma_longcall): Likewise.
773 * config/v850/v850-c.c (pop_data_area): Likewise.
774 (ghs_pragma_section): Likewise.
775 (ghs_pragma_section): Likewise.
776 (ghs_pragma_interrupt): Likewise.
777 (ghs_pragma_starttda): Likewise.
778 (ghs_pragma_startsda): Likewise.
779 (ghs_pragma_startzda): Likewise.
780 (ghs_pragma_endtda): Likewise.
781 (ghs_pragma_endsda): Likewise.
782 (ghs_pragma_endzda): Likewise.
783
6a9a79a8
DB
7842005-07-19 Danny Berlin <dberlin@dberlin.org>
785 Kenneth Zadeck <zadeck@naturalbridge.com>
786
787 * Makefile.in: Removed tree-promote-statics.c
788 * tree-promote-statics.c: Removed.
789 * common.opt: Removed flag-promote-statics.
790 * opts.c: Ditto.
791 * passes.c: Removed tree-promote-statics pass.
792 * tree-pass.h: Ditto.
793 * timevar.def: Removed TV_PROMOTE_STATICS.
794
795
0219cf3d
GP
7962005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
797
798 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
799 and *-*-freebsd9.
800 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
801
7876a414
KG
8022005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
803
804 PR c/22476
805 * c-common.c (check_function_arguments): Call
806 'check_function_format' if either -Wformat or
807 -Wmissing-format-attribute are specified.
808 * c-format.c (check_function_format): Check -Wformat before
809 calling 'check_format_info'.
810 * c-opts.c (c_common_post_options): Don't warn for
811 -Wmissing-format-attribute without -Wformat.
812 * c-typeck.c (convert_for_assignment): Detect additional cases for
813 -Wmissing-format-attribute.
814 * doc/invoke.texi (-Wmissing-format-attribute): Document new
815 behavior.
816
98ea7437
RG
8172005-07-19 Richard Guenther <rguenther@suse.de>
818
819 * config/i386/i386.md (lrint<mode>2): Use temporary
820 instead of clobbering non-existent memory.
821
89a0b917
NC
8222005-07-19 Nick Clifton <nickc@redhat.com>
823
824 * config/avr/avr.c (legitimate_address_p): Fix debugging print
825 statement to avoid displaying ASCII control characters.
826
dfea6c85
BE
8272005-07-19 Ben Elliston <bje@au.ibm.com>
828
829 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
830 * cfganal.c (find_edge_index): Ditto.
831 * combine.c (combine_instructions): Ditto.
832 * ddg.c (create_scc): Ditto.
833 (find_successors): Ditto.
834 (find_predecessors): Ditto.
835 (find_nodes_on_paths): Ditto.
836 (longest_simple_path): Ditto.
837 * flow.c (update_life_info): Ditto.
838 (count_or_remove_death_notes): Ditto.
839 (clear_log_links): Ditto.
840 * modulo-sched.c (generate_reg_moves): Ditto.
841 (find_max_asap): Ditto.
842 (find_max_hv_min_mob): Ditto.
843 (find_max_dv_min_mob): Ditto.
844 * sbitmap.c (sbitmap_first_set_bit): Ditto.
845 * sched-rgn.c (extract_edgelst): Ditto.
846 * tree-into-ssa.c (prepare_names_to_update): Ditto.
847 (dump_update_ssa): Ditto.
848 (ssa_names_to_replace) Ditto.
849 (switch_virtuals_to_full_rewrite): Ditto.
850 (update_ssa): Ditto.
851 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
852
b9d33488
DB
8532005-07-18 Daniel Berlin <dberlin@dberlin.org>
854
855 Fix PR tree-optimization/22483
856
857 * tree-complex.c (create_components): Use
858 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
859 * tree-flow-inline.h (fill_referenced_var_vec): New function.
860 * tree-flow.h (safe_referenced_var_iterator): New structure.
861 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
862 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
863 safe_referenced_var iterator.
864 (add_type_alias): Ditto.
865
9fa26457
SB
8662005-07-19 Steven Bosscher <stevenb@suse.de>
867
868 * loop-init.c (rest_of_handle_loop2): Remove.
869 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
870 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
871 (pass_rtl_loop_init, pass_rtl_loop_done,
872 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
873 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
874 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
875 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
876 pass_tree_loop_done, and pass_tree_unswitch.
877 (gate_loop): Rename to gate_tree_loop.
878 * passes.c (init_optimization_passes): Update for renamed tree
879 loop passes. Add the new loop2 passes as subpasses of loop2.
880 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
881 Update for the renamed tree loop passes.
882
7825308e
ILT
8832005-07-18 Ian Lance Taylor <ian@airs.com>
884
885 PR middle-end/22057
886 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
887 blocks when optimizing.
888
2928d0f8
SE
8892005-07-18 Steve Ellcey <sje@cup.hp.com>
890
891 * common.opt (frename-registers): Initialize to 2.
892 (fweb): Ditto.
893 (fgcse-after-reload): Ditto.
894 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
895 (process_options): Only change flag_web, flag_rename_registers,
896 and flag_rerun_cse_after_loop if not explicitly set by user.
897
28356f52
JB
8982005-07-18 Jan Beulich <jbeulich@novell.com>
899
900 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
901 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
902 in 64-bit mode the same as DImode in 32-bit mode.
903 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
904 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
905 mode. Add new mode parameter.
906 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
907 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
908 x86_64_shift_adj): New expanders.
909 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
910 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
911 insns.
912 Respective new splitters. Use renamed shift splitter helpers in 32-bit
913 DImode shift splitters.
914 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
915 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
916 mode parameter.
917
422edd6f
JB
9182005-07-18 Jan Beulich <jbeulich@novell.com>
919
920 * i386.md (movdi_extzv_1): New.
921 (zero_extendhidi2): Combine alternatives and never force use of
922 REX64 prefix.
923 (zero_extendqidi2): Likewise. Don't restrict input selection.
924
c625053b
DB
9252005-07-17 Daniel Berlin <dberlin@dberlin.org>
926
927 Fix PR tree-optimization/22531
928 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
929 moment.
930
3b1355f3
DB
9312005-07-17 Daniel Berlin <dberlin@dberlin.org>
932
933 * tree-promote-statics.c (pass_promote_statics): Change dump file
934 name.
935
9362005-07-17 Daniel Berlin <dberlin@dberlin.org>
45159bf6
DB
937
938 * tree-optimize.c (init_tree_optimization_passes): Add
939 pass_eliminate_useless_stores pass.
940 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
941 * tree-ssa-pre.c (is_copy_stmt): New function.
942 (follow_copies_till_vuse): Ditto.
943 (do_eustores): Ditto.
944 (gate_eustores): Ditto.
945
7544a87f
RH
9462005-07-16 Richard Henderson <rth@redhat.com>
947
948 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
949
bf0d50f1
KZ
9502005-07-16 Danny Berlin <dberlin@dberlin.org>
951 Kenneth Zadeck <zadeck@naturalbridge.com>
952
953 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
954 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
955 ipa-type-escape.h, tree-promote-statics.c
956 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
957 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
958 tree-promote-statics.c: new files.
959 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
960 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
961 int nonlocal_set_p, mark_constant_function): Deleted.
962 (rest_of_handle_cfg): Removed call to mark_constant_function.
963 (nonoverlapping_component_refs_p): Added calls to support
964 type based aliasing.
965 * tree-ssa-alias.c (may_alias_p,
966 compute_flow_insensitive_aliasing): Ditto.
967 * calls.c (flags_from_decl_or_type): Removed reference to
968 cgraph_rtl_info.
bf0d50f1
KZ
969 * c-typeck.c (convert_arguments): Make builtins tolerant of having
970 too many arguments. This is necessary for Spec 2000.
971 * cgraph.h (const_function, pure_function): Removed.
972 * common.opt: Added "fipa-pure-const", "fipa-reference",
973 "fipa-type-escape", and "ftree-promote-static".
974 * opts.c: Ditto.
975 * passes.c: Added ipa and tree-promote-statics passes.
976 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
977 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
bf0d50f1
KZ
978 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
979 * tree-flow.h: Added exposed sra calls and addition of
980 reference_vars_info field for FUNCTION_DECLS.
981 * tree-pass.h: Added passes.
982 * tree-sra.c: (sra_init_cache): New function.
983 (sra_insert_before, sra_insert_after) Made public.
984 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
985 and made public.
986 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
987 aliasing. (may_alias_p): Added code to use type escape analysis to
988 improve alias sets.
989 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
990 code to prune clobbers of static variables based on information
991 produced in ipa-reference pass. Changed call clobbering so that
992 statics are not marked as clobbered if the call does not clobber
993 them.
994
b6e0bdbd
DB
9952005-07-16 Daniel Berlin <dberlin@dberlin.org>
996
997 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
998 too.
999
2c00bd42
EB
10002005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1001
1002 * doc/install.texi (*-*-solaris2*): Document recommended version
1003 of GNU binutils and mention GNU linker problem on Solaris 10.
1004
0b359b01
JM
10052005-07-16 Joseph S. Myers <joseph@codesourcery.com>
1006
1007 PR c/22421
1008 * c-decl.c (c_build_bitfield_integer_type): New function.
1009 (finish_struct): Call it.
1010 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
1011
8fcef540
KG
10122005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1013
1014 * c-typeck.c (digest_init): Call 'convert_for_assignment'
1015 before returning.
1016
84fc24e8
JH
10172005-07-16 Jan Hubicka <jh@suse.cz>
1018
1019 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
1020 (scale_bbs_frequencies_int): Watch roundoff errors.
1021 * predict.c (return_prediction): Initialize return_stmt.
1022
3258272f
JH
10232005-07-16 Jan Hubicka <jh@suse.cz>
1024
1025 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
1026 after RTL profiling.
1027
01c0a9fa
AP
10282005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1029
1030 PR middle-end/22398
1031 * fold-const.c (build_range_check): Convert high/low to etype
1032 if we are only comparing against exp.
1033
27811bfe
DB
10342005-07-13 Daniel Berlin <dberlin@dberlin.org>
1035
1036 Fix PR tree-optimization/22376
1037 * tree-ssa-structalias.c (build_constraint_graph): We really meant
1038 special var here.
1039 (need_to_solve): New function.
1040 (compute_points_to_sets): Use it.
1041
2b151cb2
JH
10422005-07-15 Jan Hubicka <jh@suse.cz>
1043
1044 * cfg.c (update_bb_profile_for_threading): More diagnostic.
1045 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
1046
0691d1d4
RG
10472005-07-15 Richard Guenther <rguenther@suse.de>
1048
1049 * c-common.c (handle_flatten_attribute): New function.
1050 Add flatten function attribute.
1051 * doc/extend.texi: Document flatten function attribute.
1052 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
1053 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
1054 New functions.
1055 (cgraph_decide_inlining): Handle functions with flatten
1056 attribute.
1057
9f0076e5
DE
10582005-07-14 David Edelsohn <edelsohn@gnu.org>
1059
1060 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
1061 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
1062 UNSPEC_XCHG, UNSPEC_AND): New.
1063 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
1064 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
1065 * config/rs6000/sync.md (FETCHOP): New code macro.
1066 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
1067 New code attrs.
1068 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
1069 (sync_compare_and_swap<mode>): Same.
1070 (sync_lock_test_and_set<mode>): Same.
1071 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
1072 for QImode and HImode, and not PPC405.
1073 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
1074 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
1075 (sync_<fetchop>{si,di}_internal): New.
1076 (sync_nand{si,di}_internal): New.
1077 (sync_old_<fetchop>{si,di}_internal): New.
1078 (sync_old_nand{si,di}_internal): New
1079 (sync_new_<fetchop>{si,di}_internal): New.
1080 (sync_new_nand{si,di}_internal): New.
1081 (atomic_and{si,di}): New.
1082 (sync_new_nand{si,di}_internal): New.
1083 (atomic_and{si,di}): New.
1084 (sync_add<mode>_internal): Delete.
1085 (sync_addshort_internal): Use unspec instead of unspec_volatile.
1086 (sync_sub<mode>_internal): Delte.
1087 (sync_subshort_internal): New.
1088 (sync_andsi_internal): Use unspec instead of unspec_volatile.
1089 (sync_anddi_internal): Delete.
1090 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
1091 (sync_booldi_internal): Delete.
1092 (sync_boolc<mode>_internal): Delete.
1093 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
1094 (sync_boolc<mode>_internal2): Delete.
1095 (sync_boolcc<mode>_internal): Delete.
1096 (isync, lwsync): Use unspec instead of unspec_volatile.
1097 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
1098 Revert UNSPEC_VOLATILE.
1099 (rs6000_split_atomic_op): New.
1100 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
1101
06277571
EC
11022005-07-14 Eric Christopher <echristo@redhat.com>
1103
1104 * config/mips/mips.c (mips_canonicalize_comparison): Cast
1105 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
1106
b838c72b
EC
11072005-07-14 Eric Christopher <echristo@redhat.com>
1108
1109 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
1110
3c341936
SB
11112005-07-14 Steven Bosscher <stevenb@suse.de>
1112
1113 PR tree-optimization/22230
1114 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
1115 the computation of the four cross productions for "range op range".
1116
704b6cb5
AO
11172005-07-14 Alexandre Oliva <aoliva@redhat.com>
1118 Ulrich Weigand <uweigand@de.ibm.com>
1119
1120 PR target/20126
1121 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
1122 in some insn.
1123
a771c4b3
UW
11242005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1125
1126 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
1127
6f3113ed
SE
11282005-07-14 Steve Ellcey <sje@cup.hp.com>
1129
1130 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
1131
cb1119b7
RG
11322005-07-14 Richard Guenther <rguenther@suse.de>
1133
1134 PR middle-end/22347
1135 * config/i386/i386-protos.h (ix86_function_value): Change
1136 prototype to match new target hook.
1137 * config/i386/i386.c (ix86_value_regno): Change prototype
1138 to take extra type argument.
1139 (TARGET_FUNCTION_VALUE): Define.
1140 (ix86_function_ok_for_sibcall): Pass extra argument to
1141 ix86_value_regno, check return slot rtx for exact match.
1142 (ix86_function_value): Take extra parameter. Dispatch to
1143 ix86_value_regno with fndecl/fntype as provided.
1144 (ix86_value_regno): Handle extra type argument.
1145 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
1146
1147 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
1148 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
1149 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
1150 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
1151 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
1152
1d636cc6
RG
11532005-07-14 Richard Guenther <rguenther@suse.de>
1154
1155 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
1156 * calls.c (expand_call): Pass fntype to hard_function_value.
1157 (emit_library_call_value_1): Likewise.
1158 * explow.c: Include target.h.
1159 (hard_function_value): Take extra argument, the fntype.
1160 Use new target hook for function_value.
1161 * expr.h (hard_function_value): Change prototype.
1162 * function.c (aggregate_value_p): Pass 0 as fntype to
1163 hard_function_value.
1164 (assign_parms): Use new target hook for function_value.
1165 Pass 0 as fntype to hard_function_value.
1166 (expand_function_end): Likewise.
1167 * reg-stack.c: Include target.h.
1168 (stack_result): Use new target hook for function_value.
1169 * target-def.h: New target hook function_value.
1170 * target.h: Likewise.
1171 * targhooks.c (default_function_value): New function.
1172 * targhooks.h (default_function_value): Declare.
1173
09d8cc0e
ILT
11742005-07-13 Ian Lance Taylor <ian@airs.com>
1175
1176 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1177
df1f6f31
JH
11782005-07-14 Jan Hubicka <jh@suse.cz>
1179
1180 * tree-dfa.c (dump_variable): Use default_def function.
1181 * tree-ssa-alias.c (dump_points_to_info): Likewise.
1182 * tree-ssa.c (verify_use): Likewise.
1183 * tree-ssanames.c (release_ssa_name): Likewise.
1184 * tree-tailcall.c (eliminate_tail_call): Likewise.
1185 (tree_optimize_tail_calls_1): Likewise.
1186 * tree-vrp.c (get_value_range): Likewise.
1187
9ef0b1bd
BE
11882005-07-14 Ben Elliston <bje@au.ibm.com>
1189
1190 * gcc.c (main): Compare language[0] with '*' when iterating over
1191 the infiles.
1192
69950452
AS
1193