]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
i386.c (internal_label_prefix): Export.
[gcc.git] / gcc / ChangeLog
CommitLineData
8fe75e43
RH
12004-08-12 Richard Henderson <rth@redhat.com>
2
3 * config/i386/i386.c (internal_label_prefix): Export.
4 (internal_label_prefix_len, struct ix86_address,
5 ix86_decompose_address, maybe_get_pool_constant,
6 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
7 memory_address_length): Export.
8 (any_fp_register_operand, fp_register_operand,
9 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
10 x86_64_general_operand, x86_64_szext_general_operand,
11 x86_64_nonmemory_operand, x86_64_movabs_operand,
12 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
13 x86_64_zext_immediate_operand, const_int_1_31_operand,
14 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
15 tls_symbolic_operand, global_dynamic_symbolic_operand,
16 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
17 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
18 constant_call_address_operand, const0_operand, const1_operand,
19 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
20 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
21 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
22 general_no_elim_operand, nonmemory_no_elim_operand,
23 index_register_operand, q_regs_operand, flags_reg_operand,
24 non_q_regs_operand, zero_extended_scalar_load_operand,
25 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
26 ix86_comparison_operator, ix86_carry_flag_operator,
27 fcmov_comparison_operator, promotable_binary_operator,
28 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
29 mult_operator, div_operator, arith_or_logical_operator,
30 memory_displacement_operand, cmpsi_operand, long_memory_operand,
31 aligned_operand): Move to predicates.md as define_predicates.
32 (tls_symbolic_operand_1): Remove.
33 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
34 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
35 (legitimize_address): Merge tls_symbolic_operand contents.
36 (ix86_expand_move): Likewise.
37 * config/i386/i386-protos.h: Update for exports.
38 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
39 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
40 * config/i386/i386.md: Include predicates.md.
41 * config/i386/predicates.md: New file.
42
ea3d83a7
MM
432004-08-13 Mark Mitchell <mark@codesourcery.com>
44
45 PR c++/16924
46 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
47 SYMBOL_REF_DECL.
48 (i386_pe_mark_dllimport): Likewise.
49 (i386_pe_encode_section_info): Likewise, when overriding
50 dllimport attribute.
51
414adbdd
GK
522004-08-12 Geoffrey Keating <geoffk@apple.com>
53
54 * configure.ac: When testing for flex, nm, ar, and bison, check
55 that they will actually be built.
56 * configure: Regenerate.
57
c5443745
UW
582004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
59
60 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
61 (MOVE_MAX_PIECES): Define.
62
8fa5469d
DP
632004-08-12 Devang patel <dpatel@apple.com>
64
65 * dbxout.c (dbxout_begin_prologue): New function.
66 (dbx_debug_hooks): Use new begin prologue hook.
67 (dbxout_function_end): Emit N_ENSYM.
68 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
69
b0b343db
JJ
702004-08-12 Janis Johnson <janis187@us.ibm.com>
71
e390eb0a
JJ
72 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
73 argument is float*.
74
e34b6648
JJ
75 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
76 for vec_dss.
77
b0b343db
JJ
78 * doc/extend.texi (AltiVec builtins): Fix description for recent
79 changes. Update operation list to match current support.
80
adf39f8f
AK
812004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
82
83 * config/s390/s390.c (struct s390_frame_layout): New struct as element
84 of struct machine_function.
85 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
86 changed all uses.
87 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
88 changed all uses.
89 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
90 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
91 (s390_frame_area, s390_register_info): New functions.
92 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
93 for base register.
94 (s390_return_addr_rtx, s390_return_address_offset)
95 (s390_va_start, s390_gimplify_va_arg)
96 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
97 layouts.
98 (s390_frame_info): Functionality partly moved to s390_register_info.
99 Made adaptions for new stack layout.
100 (save_gprs, restore_gprs): Changed meaning of second parameter and
101 adapted all callers.
102
103 * config/s390/s390.h (s390_backchain_string): New global variable.
104 (MASK_BACKCHAIN): Removed definition.
105 (TARGET_BACKCHAIN): Changed check.
106 (TARGET_KERNEL_BACKCHAIN): New macro.
107 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
108 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
109 "kernel-backchain".
110 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
111
112 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
113 as condition. Adjusted for new stack layout.
114
115 * doc/invoke.texi: Added documentation for new option
116 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
117 "-mno-backchain".
118
db151e9d
PB
1192004-08-12 Paul Brook <paul@codesourcery.com>
120
121 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
122 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
123
02b75262
DD
1242004-08-12 David Daney <ddaney@avtrex.com>
125
db151e9d 126 * java/gcj.texi: Add subsection on signal usage.
02b75262 127
f64d6991
DE
1282004-08-12 David Edelsohn <edelsohn@gnu.org>
129
130 * expr.c (move_by_pieces): Set alignment for move to minimum of
131 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
132 alignment, but not less than the original alignment.
133 (move_by_pieces_ninsns): Same.
134 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
135 (store_by_pieces_1): Same.
136
c597ef4e
DN
1372004-08-12 Diego Novillo <dnovillo@redhat.com>
138
139 PR tree-optimization/16867
140 * tree.c (is_global_var): New function.
141 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
142 Call is_global_var.
143 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
144 Update all users.
145 (is_global_var): Declare.
146 * tree-dfa.c (dump_variable): Display global and addressable
147 attributes.
148 (add_referenced_var): Clarify documentation when marking
149 variables call-clobbered.
150 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
151 instead of needs_to_live_in_memory.
152 (mark_call_clobbered): If the variable is a tag, mark it
153 DECL_EXTERNAL.
154 * tree-gimple.c (is_gimple_reg): Don't check for
155 TREE_ADDRESSABLE.
156 (is_gimple_non_addressable): Likewise.
157 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
158 needs to be marked call-clobbered.
159 (setup_pointers_and_addressables): Call is_global_var instead
160 of needs_to_live_in_memory.
161 * tree-ssa-dce.c (need_to_preserve_store): Remove.
162 Update all users with is_global_var.
163 (mark_stmt_if_obviously_necessary): Fix processing of aliased
164 stores. Don't check the virtual definitions. Rather, check
165 whether the store is going into global memory.
166 (find_obviously_necessary_stmts): Get the symbol from the PHI
167 result.
168 * tree-ssa-operands.c (get_call_expr_operands): Do not add
169 clobbering may-defs if the call does not have side effects.
170
ab5c8549
JJ
1712004-08-12 Jakub Jelinek <jakub@redhat.com>
172
173 PR c++/16276
174 * output.h (default_function_rodata_section,
175 default_no_function_rodata_section): New prototypes.
176 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
177 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
178 (TARGET_ASM_OUT): Add it.
179 * varasm.c (default_function_rodata_section,
180 default_no_function_rodata_section): New functions.
181 * final.c (final_scan_insn): Call
182 targetm.asm_out.function_rodata_section instead of
183 readonly_data_section.
184 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
185 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
186 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
187 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
188 Likewise.
189 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
190 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
191 Likewise.
192 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
193 Likewise.
194 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
195 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
196 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
197
5cf58f28
PB
1982004-08-12 Paul Brook <paul@codesourcery.com>
199
200 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
201 frame info.
202 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
203 DWARF2_UNWIND_INFO.
204
87e184d1
BE
2052004-08-12 Ben Elliston <bje@au.ibm.com>
206
207 PR target/16286
208 * config/rs6000/altivec.h: Change vector to __vector throughout.
209 (Except for the `vector' macro itself).
210
e543e219
ZW
2112004-08-12 Zack Weinberg <zack@codesourcery.com>
212
213 * genpreds.c: Add capability to generate predicate bodies as
214 well as function prototypes. Write function prototypes for
215 the generic predicates too.
216 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
217 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
218 (write_match_code, write_predicate_expr, write_one_predicate_function)
219 (parse_option): New functions.
220 (output_predicate_decls): Delete.
221 (main): Read the machine description, process DEFINE_PREDICATE or
222 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
223 as appropriate.
224
225 * genrecog.c (struct decision_test): Replace index with
226 struct pred_data pointer.
227 (next_index): Remove, unused.
228 (pred_table, preds, special_mode_pred_table): Delete.
229 (compute_predicate_codes, process_define_predicate): New functions.
230 (validate_pattern, add_to_sequence, write_switch): Update for
231 new data structures.
232 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
233 Check both error_count and have_error.
234
235 * gensupport.c (in_fname, first_predicate): New globals.
236 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
237 (predicate_table, last_predicate, old_pred_table)
238 (old_special_pred_table): New statics.
239 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
240 (add_predicate, init_predicate_table): New functions.
241 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
242 (init_md_reader_args_cb): Use the global in_fname. No need to zero
243 it or max_include_len. Call init_predicate_table.
244 (read_rtx): Run the predicate queue after the attribute queue
245 but before all the others.
246 * gensupport.h (in_fname, struct pred_data, first_predicate)
247 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
248 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
249 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
250 * dummy-conditions.c: Don't include bconfig.h, system.h,
251 coretypes.h, tm.h, or system.h. Do include stddef.h.
252 Duplicate declaration of struct c_test from gensupport.h.
253
254 * Makefile.in (OBJS-common): Add insn-preds.o.
255 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
256 (insn-preds.c, insn-preds.o): New rules.
257 (s-preds): Also generate insn-preds.c.
258 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
259 Update dependencies.
260 (print-rtl.o, print-rtl1.o): Correct dependencies.
261
262 * recog.h: Delete prototypes of predicate functions.
263
264 * doc/md.texi (Predicates): New section with complete
265 documentation of operand/operator predicates. Remove some
266 incomplete documentation of predicates from other places.
267 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
268 PREDICATE_CODES; indicate that both are deprecated in favor
269 of define_predicate/define_special_predicate.
270
271 * config/ia64/ia64.c: All predicate function definitions moved
272 to ia64.md, except
273 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
274 (ia64_expand_load_address, ia64_expand_move):
275 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
276
277 * config/ia64/ia64.md: All predicates now defined here.
278 (symbolic_operand): Is now a special predicate.
279
280 * config/ia64/ia64.h: Declare ia64_section_threshold.
281 (PREDICATE_CODES): Delete.
282
174283a3
RH
2832004-08-12 Richard Henderson <rth@redhat.com>
284
285 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
286 * c-semantics.c (add_stmt): Set it.
287 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
288 before instantiating a variable sized type.
289
15931954
RH
2902004-08-12 Richard Henderson <rth@redhat.com>
291
292 * stor-layout.c (round_up, round_down): Move ...
e543e219 293 * fold-const.c (round_up, round_down): ... here. Use
15931954
RH
294 multiple_of_p to avoid any arithmetic at all.
295
57d1dd87
RH
2962004-08-12 Richard Henderson <rth@redhat.com>
297
298 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
299 (gimplify_init_ctor_preeval_1): New.
300 (gimplify_init_ctor_preeval): New.
301 (gimplify_init_ctor_eval): New.
302 (gimplify_init_constructor): Use them. Always gimplify the LHS
303 object first.
304
46e34f96
ZL
3052004-08-12 Ziemowit Laski <zlaski@apple.com>
306
307 (This patch is part of merge of objc-improvements-branch
308 into mainline.)
309
310 * doc/frontends.texi: Mention Objective-C++ in addition to
311 Objective-C.
312 * doc/install.texi: Add 'obj-c++' to list of configurable
313 languages.
314 * doc/invoke.texi: Rename Objective-C option headings to
315 indicate they also apply to Objective-C++. List file
316 extensions for Objective-C++ sources. Mention that
317 ObjC and ObjC++ compilations may also use C and C++ options,
318 respectively. Point users to doc/standards.texi for
319 further info on ObjC and ObjC++.
320 * doc/sourcebuild.texi: Mention the objcp/ directory and
321 the Objective-C++ sources it contains.
322 * doc/standards.texi: Update link to Apple ObjC site;
323 add link to gcc readings.html WWW doc.
324
07f12d8b
AM
3252004-08-12 Alan Modra <amodra@bigpond.net.au>
326
327 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
328 and 2004-07-14 changes.
329
89aa5a20
PB
3302004-08-12 Paul Brook <paul@codesourcery.com>
331
332 * doc/invoke.texi: Fix typo.
333
5079843a
DP
3342004-08-11 Devang Patel <dpatel@apple.com>
335
336 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
337 and -no_dead_strip_inits_and_terms.
338 (LINK_SPEC): Same.
339 * doc/invoke.texi (Darwin Options): Document -dead_strip and
340 -no_dead_strip_inits_and_terms.
e543e219 341
876f13b0
PB
3422004-08-11 Paul Brook <paul@codesourcery.com>
343
344 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
345 (arm_load_pic_register): ... to this.
346 * config/arm/arm.c (arm_finalize_pic): Rename ...
347 (arm_load_pic_register): ... to this. Always output insns at the
348 current location. Load via low reg in thumb mode.
349 (arm_expand_prologue): Call arm_load_pic_register.
350 (thumb_expand_prologue): Ditto.
351 * config/arm/arm.h (FINALIZE_PIC): Remove.
352 * config/arm/arm.md (builtin_setjmp_receiver): Call
353 arm_load_pic_register.
354
57934c39
PB
3552004-08-11 Paul Brook <paul@codesourcery.com>
356
357 * arm.c (thumb_force_lr_save): Add prototype.
358 (thumb_compute_save_reg_mask): New function.
359 (thumb_find_work_register): New function.
360 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
361 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
362 Don't clobber r3 when removing pretend args.
363 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
364 (thumb_output_function_prologue): Use new functions.
365 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
366 * arm.h (THUMB_REG_PUSHED_P): Remove.
367
af874237
JW
3682004-08-11 James E Wilson <wilson@specifixinc.com>
369
370 PR rtl-optimization/16490
371 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
372 global_live_at_end for new basic block if already set for other blocks.
373
c1618c0c
DE
3742004-08-11 David Edelsohn <edelsohn@gnu.org>
375
376 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
377
378 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
379 (mfcr rlwinm rlwinm patterns): Set length to 12.
380
1a24f92f
AM
3812004-08-11 Andrew MacLeod <amacleod@redhat.com>
382
383 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
384 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
385 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
386 (start_ssa_stmt_operands): Delete.
e543e219 387 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
1a24f92f
AM
388 struct stmt_operands_d.
389 (build_ssa_operands): New extern entry point.
e543e219 390 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
1a24f92f
AM
391 building code, replace with create_ssa_artficial_load_stmt().
392 * tree-ssa-operands.c (struct voperands_d): Delete.
393 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
394 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
e543e219 395 (free_uses, free_defs, free_vuses, free_v_may_defs,
1a24f92f
AM
396 free_v_must_defs): Remove dealloc parameter.
397 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
398 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
399 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
400 vector comparisons, ssa_name reuse, and allocations here.
401 (verify_start_operands): Delete.
402 (finalize_ssa_stmt_operands): Set new operands by calling finalize
403 routines.
404 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
405 (append_def, append_usei): Simplify to simple accumulation.
406 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
407 duplicates and simple accumulation.
408 (free_ssa_operands): Free vectors in a stmt_operand structure.
409 (build_ssa_operands): New. Create a new stmt_operand structure from
e543e219 410 a stmt and an old set of stmt_operands.
1a24f92f
AM
411 (get_stmt_operands): Simplify and call build_ssa_operands.
412 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
413 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
414 add_call_read_ops): Don't pass prev_vops around anymore.
415 (note_addressable): Return if no stmt annotation.
416 (copy_virtual_operands): Access v_may_def operands through a struct.
417 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
418 hash tables without treating the stmt as a real stmt.
419 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
420 v_may_def def and use through a struct instead of 2 array elements.
421 (struct v_may_def_optype_d): Use v_may_def_operand_type.
422 (struct stmt_operands_d): New. Struct for storing all operand vectors.
423
a77655b1
NC
4242004-08-11 Nick Clifton <nickc@redhat.com>
425
426 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
427 this funciton's behaviour. Return true when the current function
428 has a section attribute and -mlong-calls is in effect.
429 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
430 short-call marker when -mlong-calls is in effect and the function
431 has a section attribute.
432
6f4a43e0
ZW
4332004-08-10 Zack Weinberg <zack@codesourcery.com>
434
435 * stmt.c (expand_return): If asked to return the RESULT_DECL,
436 just call expand_value_return on result_rtl.
437
1a186ec5
RH
4382004-08-10 Richard Henderson <rth@redhat.com>
439
440 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
441 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
442 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
443 (add_location_or_const_value_attribute): ... not here. Use
444 loc_descriptor_from_tree if possible.
445 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
446 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
447 values specially.
448 (loc_descriptor_from_tree): New. Update callers.
449 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
450 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
451 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
452 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
453 and BUILT_IN_STACK_RESTORE.
454 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
455 * stmt.c (expand_stack_alloc): Remove.
456 * tree-mudflap.c (mx_register_decls): Don't look for
457 BUILT_IN_STACK_ALLOC.
458 * tree-nested.c (convert_local_reference): Likewise.
459 * tree.h (DECL_VALUE_EXPR): New.
460
7109c195
RH
4612004-08-10 Richard Henderson <rth@redhat.com>
462
bf4ccdd6
RH
463 * stor-layout.c (round_up): Check for 0/1 before dividing.
464 (round_down): Likewise.
465
7109c195
RH
466 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
467
b3f8d95d
MM
4682004-08-09 Mark Mitchell <mark@codesourcery.com>
469
470 * config.gcc (arm*-*-eabi*): New target.
471 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
472 (TARGET_LIB_INT_CMP_BIASED): Likewise.
473 * expmed.c (expand_divmod): Try a two-valued divmod function as a
474 last resort.
475 * gthr.h: Remove bogus tokens at end of #pragma.
476 * optabs.c (expand_twoval_binop_libfunc): New function.
477 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
478 (prepare_float_lib_cmp): Try reversing the condition.
479 (debug_optab_libfuncs): New function.
480 * optabs.h (expand_twoval_binop_libfunc): Declare.
481 * config/arm/arm.c (arm_init_libfuncs): New function.
482 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
483 (TARGET_INIT_LIBFUNCS): Define it.
484 * config/arm/arm.h (TARGET_BPABI): New macro.
485 * config/arm/arm-protos.h
486 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
487 * config/arm/bpabi.S: New file.
488 * config/arm/bpabi.c: Likewise.
489 * config/arm/bpabi.h: Likewise.
490 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
491 (__aeabi_drsub): Likewise.
492 (__aeabi_dsub): Likewise.
493 (__aeabi_dadd): Likewise.
494 (__aeabi_ui2d): Likewise.
495 (__aeabi_i2d): Likewise.
496 (__aeabi_f2d): Likewise.
497 (__aeabi_dmul): Likewise.
498 (__aeabi_ddiv): Likewise.
499 (__aeabi_cdrcmple): Likewise.
500 (__aeabi_cdcmpeq): Likewise.
501 (__aeabi_cdcmple): Likewise.
502 (__aeabi_dcmpeq): Likewise.
503 (__aeabi_dcmplt): Likewise.
504 (__aeabi_dcmple): Likewise.
505 (__aeabi_dcmpge): Likewise.
506 (__aeabi_dcmpgt): Likewise.
507 (__aeabi_dcmpun): Likewise.
508 (__aeabi_d2iz): Likewise.
509 (__aeabi_d2uiz): Likewise.
510 (__aeabi_d2f): Likewise.
511 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
512 (__aeabi_frsub): Likewise.
513 (__aeabi_fsub): Likewise.
514 (__aeabi_fadd): Likewise.
515 (__aeabi_ui2f): Likewise.
516 (__aeabi_i2f): Likewise.
517 (__aeabi_fmul): Likewise.
518 (__aeabi_fdiv): Likewise.
519 (__aeabi_cfrcmple): Likewise.
520 (__aeabi_cfcmpeq): Likewise.
521 (__aeabi_cfcmple): Likewise.
522 (__aeabi_fcmpeq): Likewise.
523 (__aeabi_fcmplt): Likewise.
524 (__aeabi_fcmple): Likewise.
525 (__aeabi_fcmpge): Likewise.
526 (__aeabi_fcmpgt): Likewise.
527 (__aeabi_fcmpun): Likewise.
528 (__aeabi_f2iz): Likewise.
529 (__aeabi_f2uiz): Likewise.
530 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
531 (__aeabi_uidivmod): New function or alias.
532 (__aeabi_idivmod): Likewise.
533 (__aeabi_idiv0): Likewise.
534 (__aeabi_ldiv0): Likewise.
535 (__aeabi_llsr): Likewise.
536 (__aeabi_lasr): Likewise.
537 (__aeabi_llsl): Likewise.
538 (bpabi.S): Include it.
539 * config/arm/libgcc-bpabi.ver: New file.
540 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
541 (LINK_SPEC): Remove.
542 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
543 __aeabi_ulcmp.
544 * config/arm/t-bpabi: New file.
545 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
546 (TARGET_LIB_INT_CMP_BIASED): Likewise.
6f4a43e0 547
fba73eb1
DE
5482004-08-10 David Edelsohn <edelsohn@gnu.org>
549
550 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
551 * config/rs6000/rs6000.md (clrmemsi): New pattern.
552 * config/rs6000/rs6000.c (expand_block_clear): New function.
553 (expand_block_move): Convert alignment to bits. Use SImode and
554 HImode for unaligned addresses if not STRICT_ALIGNMENT.
555
5562004-08-10 Caroline Tice <ctice@apple.com>
c295317d
CT
557
558 * varasm.c (unlikely_section_label): New global variable.
559 (unlikely_text_section_name): New global variable.
560 (text_section): Remove alignment statement.
6f4a43e0 561 (unlikely_text_section): Remove alignment statement; use
c295317d
CT
562 unlikely_section_label rather than hard-coded string.
563 (assemble_start_function): Initialize unlikely_section_label and
564 unlikely_text_section_name; make sure cold section is properly
565 aligned at start of function; output unlikely_section_label if
566 appropriate.
567
68f9c5e2
UW
5682004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
569
570 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
571 * config/s390/s390.c (s390_canonicalize_comparison): New function.
572 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
573 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
574 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
575 ("*tmqi_mem"): Remove SUBREG from pattern.
576 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
577 ("*andsi3_cconly"): Likewise.
6f4a43e0 578
22116d84
L
5792004-08-10 H.J. Lu <hongjiu.lu@intel.com>
580
581 PR target/16909
582 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
583
c75095b2
JJ
5842004-08-10 Janis Johnson <janis187@us.ibm.com>
585
586 * doc/sourcebuild.texi (compat testing): Document available test
587 framework commands. Use the preferred spelling of DejaGnu.
588
98975653
DB
5892004-08-10 Daniel Berlin <dberlin@dberlin.org>
590
591 * lambda.h: Add matrix type, and prototypes for remainder of
592 matrix and vector functions.
593 (lambda_vector_mult_const): New function.
594 (lambda_vector_negate): Ditto.
595 (lambda_vector_add): Ditto.
596 (lambda_vector_add_mc): Ditto.
597 (lambda_vector_copy): Ditto.
598 (lambda_vector_zerop): Ditto.
599 (lambda_vector_equal): Ditto.
600 (lambda_vector_min_nz): Ditto.
601 (lambda_vector_first_nz): Ditto.
602 (lambda_vector_matrix_mult): Ditto.
603 * lambda-mat.c: New file.
604 * Makefile.in (lambda-mat.o): New.
605
68b9f53b
AM
6062004-08-10 Andrew MacLeod <amacleod@redhat.com>
607
608 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
609 after linking stmt into the program.
610 (bsi_remove): Don't call modify_stmt.
6f4a43e0 611 * tree-complex.c (update_complex_assignment,
68b9f53b 612 expand_complex_comparison): Call modify_stmt after changing the stmt.
6f4a43e0 613 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
68b9f53b
AM
614 removing the stmt.
615 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
616 the stmt, and only if needed.
617 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
618 expression.
619 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
620 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
621 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
6f4a43e0 622 (eliminate_redundant_computations): Don't pass an annotation. Call
68b9f53b
AM
623 modify_stmt rather than setting the annotation directly.
624 (record_equivalences_from_stmt): Remove unused local 'j'.
625 (cprop_operand): Take a stmt rather than an annotation as a parameter.
626 Call modify_stmt.
627 (cprop_into_stmt): Pass stmt rather than annotation.
628 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
6f4a43e0 629 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
68b9f53b
AM
630 modify_stmt.
631 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
632
01c98570
JM
6332004-08-10 Jason Merrill <jason@redhat.com>
634
6c9c4526 635 PR middle-end/16948
01c98570
JM
636 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
637 the RESULT_DECL.
638
b2ddaebb
GK
6392004-08-10 Geoffrey Keating <geoffk@apple.com>
640
641 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
642 hash function.
643
23657388
RS
6442004-08-10 Roger Sayle <roger@eyesopen.com>
645
646 * config/mips/mips.md: New reciprocal square root patterns that
647 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
648
c9ca9b88
PB
6492004-08-10 Paul Brook <paul@codesourcery.com>
650
651 * config/arm/arm-protos.h (arm_set_return_address,
652 thumb_set_return_address): Add prototypes.
653 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
654 * config/arm/arm.c (arm_compute_func_type,
655 use_return_insn, arm_compute_save_reg0_reg12_mask,
656 arm_compute_save_reg_mask, arm_output_function_prologue,
657 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
658 current_function_calls_eh_return.
659 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
660 old eh code.
661 (arm_set_return_address, thumb_set_return_address): New functions.
662 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
663 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
664 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
665 (epilogue): Use the stackadj register.
666 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
667
45d78e7f
JJ
6682004-08-10 Jakub Jelinek <jakub@redhat.com>
669
670 PR target/3144
671 * expr.c (move_by_pieces_ninsns): Add max_size argument.
672 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
673 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
674 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
675 but using MOVE_RATIO.
676 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
677 (can_store_by_pieces): Change max_size type to unsigned int.
678 (store_by_pieces_1): Likewise. Pass max_size to
679 move_by_pieces_ninsns.
680 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
681 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
682 to move_by_pieces_ninsns.
683 (STORE_BY_PIECES_P): Define.
684 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
685 to move_by_pieces_ninsns.
686 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
687
688 * config/i386/i386.h (CLEAR_RATIO): Define.
689
25f3e06c
PB
6902004-08-09 Paolo Bonzini <bonzini@gnu.org>
691
692 * expr.c (expand_expr_real_1): Add back code that was not dead.
693
6a3203c8
AP
6942004-08-09 Andrew Pinski <apinski@apple.com>
695
696 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
697 which is found to be compatible before returning the aliasing set.
698
b9bfca81
DJ
6992004-08-09 Daniel Jacobowitz <dan@debian.org>
700
701 * ggc-zone.c (struct alloc_zone): Add statistics counters.
702 (always_collect): New flag.
703 (ggc_alloc_zone_1): Update statistics support. Don't include
704 overhead in allocated counter.
705 (sweep_pages): Update allocated counter for large pages. Don'y
706 include overhead.
707 (ggc_collect_1): Always collect.
708 (ggc_collect): Honor always_collect flag. Sum all zones to decide
709 whether to collect.
710 (SCALE, LABEL): New macros.
711 (ggc_print_statistics): Add statistics support.
712
fdded401
RS
7132004-08-09 Roger Sayle <roger@eyesopen.com>
714
715 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
716 (init_expmed): Fix potential overrun problem with "all.reg".
717 (expand_sdiv2_pow2): Add an alternate implementation for signed
718 division, if the target provides a suitable conditional move insn.
719
9d8646d7
PB
7202004-08-09 Paul Brook <paul@codesourcery.com>
721 Richard Henderson <rth@redhat.com>
722
723 * unwind-dw2.c (uw_install_context_1): Update target saved stack
724 pointer.
725
d37e6b50
GK
7262004-08-09 Geoffrey Keating <geoffk@apple.com>
727
728 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
729 Check DATA limit only if there's no AS limit. Ignore insanely
730 low DATA limits.
731 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
732 but take care that the AS limit isn't overrun.
733 * doc/invoke.texi: Update documentation of min-heapsize parameter.
734
56b043c8
JL
7352004-08-09 Jeff Law <law@redhat.com>
736
737 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
738 (tree-ssa-threadupdate.o): Add dependencies.
739 * tree-ssa-threadupdate.c: New file.
740 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
741 (rewrite_vars_out_of_ssa): Remove prototype.
742 (cleanup_tree_cfg): Returns a bool.
743 * tree.h (thread_through_all_blocks): Prototype.
744 * tree-outof-ssa.c (SSANORM_*): Move into here.
745 (remove_ssa_form): Now static.
746 (rewrite_vars_out_of_ssa): Kill.
747 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
748 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
749 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
750 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
751 anything was changed.
752 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
753 from the PHI's annotation rather than the edge associated with
754 the new argument.
755 * tree-ssa-dom.c (redirection_edges): Kill.
756 (redirect_edges_and_update_ssa_graph): Kill.
757 (tree_ssa_dominator_optimize): Do not reset forwardable flag
758 for blocks anymore. Do not initialize redirection_edges.
759 Call thread_through_all_blocks. Simplify code for cleanup
760 of the CFG and iterating. No longer call cleanup_tree_cfg
761 outside the iteration loop.
762 (thread_across_edge): No longer mess with forwardable blocks.
763
9b305d55
ZW
7642004-08-09 Zack Weinberg <zack@codesourcery.com>
765
766 * explow.c (memory_address): Use memory_address_p.
767 * recog.c (general_operand): Likewise.
768 * regrename.c: No need to define REG_OK_STRICT.
769
27fb79ad
SB
7702004-08-09 Steven Bosscher <stevenb@suse.de>
771
772 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
773 New timers.
774 * gcse.c: Include timevar.h.
775 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
776 and global_copy_prop_count.
777 (local_const_prop_count, local_copy_prop_count): New static globals.
778 (gcse_main): Set the right timevar for each pass.
779 (cprop_jump): Increment global_const_prop_count when a constant is
780 propagated. Add "GLOBAL" to dump output.
781 (cprop_insn): Increment global_const_prop_count when a constant is
782 propagated, or global_copy_prop_count when a copy is propagated.
783 (do_local_cprop): Likewise for local_const_prop_count and
784 local_copy_prop_count.
785 (one_cprop_pass): Initialize const/cprop counters to zero.
786 Print out results of local and global const/cprop separately.
787 (bypass_block): Break over-length line.
702d4b73
SB
788 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
789 for bb-reorder.o and tracer.o.
27fb79ad 790
7efcb746
PB
7912004-08-09 Paolo Bonzini <bonzini@gnu.org>
792
793 * Makefile.in (GTFILES): Remove stmt.c
794 (stmt.o): Do not depend on gt-stmt.h.
795 * emit-rtl.c (emit_line_note): Do not call
796 set_file_and_line_for_stmt.
797 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
798 do everything.
799 * function.c (free_after_parsing): Do not free STMT field.
800 (allocate_struct_function): Do not call init_stmt_for_function.
801 (assign_stack_temp_for_type): Do not accept values of keep
802 other than 0 or 1.
803 (init_temp_slots): Do not initialize removed variables.
804 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
805 and X_VAR_TEMP_SLOT_LEVEL fields.
806 * rtl.h (set_file_and_line_for_stmt): Remove.
807 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
808 struct stmt_status, cond_stack, case_stack, nesting_stack,
809 nesting_depth, emit_locus, set_file_and_line_for_stmt,
810 same_case_target_p, init_stmt_for_function, emit_nop,
811 expand_start_cond, expand_start_elseif, expand_start_else,
812 expand_elseif, expand_end_cond): Remove.
813 (preserve_subexpressions_p): Remove references to CFUN->STMT.
814 (expand_start_case, expand_end_case_type): Remove, merge into...
815 (expand_case): ... this one, including other bits from
816 expand_expr_real_1. Inline same_case_target_p. Turn members
817 of CASE_STACK into local variables.
818 (emit_case_bit_tests): Inline same_case_target_p.
819 (add_case_node): Add HEAD argument, return new head of the list,
820 do not handle default label here.
821 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
822 expand_start_elseif, current_nesting_level, expand_start_case,
823 expand_end_case_type, expand_end_case, add_case_node,
824 init_stmt_for_function, expand_elseif): Remove prototypes.
825 (expand_case): Add prototype.
826
c4d70ce3
PB
8272004-08-09 Paolo Bonzini <bonzini@gnu.org>
828
829 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
830
8312004-08-09 Paolo Bonzini <bonzini@gnu.org>
e5bacf32
PB
832
833 * expr.c (var_rtx): Remove.
834 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
835 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
836 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
837 Abort.
838 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
839 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
840 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
841
d72372e4
MH
8422004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
843 Ayal Zaks <zaks@il.ibm.com>
844
845 * common.opt (freschedule-modulo-scheduled-loops): New flag.
846 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
847 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
848 when -freschedule-modulo-scheduled-loops flag is not specified.
849 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
850 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
851 More accurate placing of insn in row of partial schedule.
852 (ps_insn_find_column): New function.
853 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
854 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
855 (schedule_region): Use sched_is_disabled_for_current_region_p.
856 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
857
0737fbff
L
8582004-08-07 H.J. Lu <hongjiu.lu@intel.com>
859
860 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
861 change.
862
11c4576f
L
8632004-08-07 H.J. Lu <hongjiu.lu@intel.com>
864
865 * config/i386/i386.c (ix86_expand_clrmem): Properly call
866 gen_strset for 64bit target.
867
34def210
OH
8682004-08-07 Olivier Hainque <hainque@act-europe.fr>
869
870 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
871
5201931e
JM
8722004-08-07 Jason Merrill <jason@redhat.com>
873
cc77ae10
JM
874 Make return in memory explicit.
875 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
876 (assign_parm_find_data_types): Remove code for old front end
877 invisible reference handling.
878 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
879 (expand_function_end): Likewise.
880 * gimplify.c (gimplify_return_expr): Handle a dereferenced
881 RESULT_DECL.
882 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
883 (declare_return_variable): Handle DECL_BY_REFERENCE.
884 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
885 (cp_genericize_r): Use convert_from_reference.
886 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
887 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
888
5201931e
JM
889 * c-common.c (c_warn_unused_result): Check TREE_USED before
890 warning about a CALL_EXPR with an unused value.
891
2ed9e527
MM
8922004-08-06 Mark Mitchell <mark@codesourcery.com>
893
894 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
895 to the compiler. Use -fshort-wchar by default.
896
12183e0f
PH
8972004-08-06 Pat Haugen <pthaugen@us.ibm.com>
898
899 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
900 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
901 threshhold.
902 * doc/invoke.texi (param): Document min-crossjump-insns.
903
eaac4679
RS
9042004-08-06 Richard Sandiford <rsandifo@redhat.com>
905
906 PR c/13282
907 * c.opt (Wmissing-field-initializers): New option.
908 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
909 * c-typeck.c (pop_init_level): Guard the missing field warning with
910 warn_missing_field_initializers rather than extra_warnings.
911 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
912 some of the explanation from...
913 (-Wextra): ...here. Say that the missing field warning can be
914 seperately controlled by -Wmissing-field-initializers.
915
caad9f81
PB
9162004-08-06 Paolo Bonzini <bonzini@gnu.org>
917
918 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
919 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
920 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
921 * tree.def (ENTRY_VALUE_EXPR): Remove.
922
6b32b628
JJ
9232004-08-06 Jakub Jelinek <jakub@redhat.com>
924
925 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
926 the places where it is actually needed. Don't use repz; stosb
927 for -Os with sufficiently small constant sizes.
928 For sufficiently small repz; stos{l,q} repeat counts use a sequence
929 of stos{l,q} instructions instead.
930
6797f908
ZD
9312004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
932
933 PR tree-optimization/16807
934 * loop-iv.c (dump_iv_info): Dump invariants correctly.
935 (iv_subreg, iv_extend): Express value of invariant purely in
936 base field.
937
866cf037
MM
9382004-08-06 Mark Mitchell <mark@codesourcery.com>
939
940 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
941 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
942
9652c531 9432004-08-06 Roman Zippel <zippel@linux-m68k.org>
9b305d55 944
27fb79ad
SB
945 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
946 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
947 pre_dec_operand.
948 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
949 pattern until reload is finished to allow better code generation
950 and split them completely into separate instrunctions.
951 (*andsi3_split): New pattern.
9652c531 952
b2ca3702
MM
9532004-08-05 Mark Mitchell <mark@codesourcery.com>
954
955 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
956 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
957 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
958 * tree.h (handle_dll_attribute): Declare. Test
959 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
960 * c-common.h (c_determine_visibility): Declare.
961 * c-common.c (c_determine_visibility): New function.
962 * c-decl.c (finish_decl): Use it.
963 (finish_function): Likewise.
964 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
965 zero, by default. Use #if, not #ifdef, to test it.
966 * config/arm/arm.c (arm_attribute_table): Use
967 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
968 #if.
969 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
970 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
971 to 1.
972 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
973 * config/i386/i386.c (ix86_attribute_table): Use
974 handle_dll_attribute for dllimport/dllexport. Test
975 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
976 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
977 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
978 it to 1.
979 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
980 with #if.
981 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
982 it to 1.
983 * doc/extend.texi (dllexport): Clarify and correct documentation.
984 (dllimport): Likewise.
985 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
986 handle_dll_attribute.
9b305d55 987
c913f08a
ZD
9882004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
989
990 * tree-ssa-loop-manip.c: New file.
991 * Makefile.in (tree-ssa-loop-manip.o): Add.
992 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
993 Declare.
994 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
995 form.
996 (tree_ssa_loop_done): Verify loop closed ssa form.
997 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
998
d4482715
JDA
9992004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1000
1001 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
1002 pa_asm_output_aligned_local): New functions.
1003 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
1004 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
1005 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
1006 pa_asm_output_aligned_common.
1007 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
1008 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
1009 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
1010 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
1011 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
1012 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
1013 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
1014 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
1015 common data.
1016
21149a79
AP
10172004-08-05 Andrew Pinski <apinski@apple.com>
1018
1019 * objc/objc-act.c (build_objc_string_object): Mark the address
1020 expression as constant.
1021
d5861a7a
DE
10222004-08-05 David Edelsohn <edelsohn@gnu.org>
1023
1024 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
1025 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
1026 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
1027
0a2b72a6
JM
10282004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
1029
1030 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
1031 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
1032 out, and associated obsolete comments.
1033
ca7a3bd7
NS
10342004-08-05 Nathan Sidwell <nathan@codesourcery.com>
1035
1036 * tree.h (force_fit_type): Return a tree, take three flags.
1037 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
1038 TREE_CONSTANT_OVERFLOW here.
1039 (int_const_binop, const_binop): Adjust.
1040 (size_int_type): Do sign extension here.
1041 (fold_convert_const, optimize_bit_field_compare,
1042 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
1043 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
1044 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
1045
d36837f4
ZD
10462004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1047
1048 PR tree-optimization/16864
1049 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
1050 for ssa names without default_def.
1051
ea5f7a19
RS
10522004-08-05 Richard Sandiford <rsandifo@redhat.com>
1053
1054 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
1055 frame pointer, restore eax with an ebp-relative address.
1056
0e6df31e
GK
10572004-08-04 Geoffrey Keating <geoffk@apple.com>
1058
1059 PR 14516
1060 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
1061 * c-common.h (make_rtl_for_local_static): Delete.
1062 * c-decl.c (shadow_tag_warned): Clean up comment.
1063 (finish_decl): Clean up spacing. Use set_user_assembler_name when
1064 appropriate. Don't pass asmspec to rest_of_decl_compilation.
1065 * c-semantics.c (make_rtl_for_local_static): Delete.
1066 * expr.c (init_block_move_fn): Use set_user_assembler_name.
1067 (init_block_clear_fn): Likewise.
1068 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
1069 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
1070 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
1071 * tree.h (make_decl_rtl): Remove second parameter.
1072 (set_user_assembler_name): New.
1073 * varasm.c (set_user_assembler_name): New.
1074 (make_decl_rtl): Remove second parameter. Update callers in many
1075 files.
1076
4f587cb0
AN
10772004-08-05 Adam Nemet <anemet@lnxw.com>
1078
1079 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
1080 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
1081 to LynxOS 4.0.
1082 * gthr-lynx.h: New file.
1083 * config/lynx-ng.h: Remove file.
1084 * config/lynx.h: Update to LynxOS 4.0.
1085 * config/t-lynx: New file.
1086 * config/i386/lynx-ng.h: Remove file.
1087 * config/i386/lynx.h: Update to LynxOS 4.0.
1088 * config/rs6000/lynxbase.h: Remove file.
1089 * config/rs6000/lynx.h: Update to LynxOS 4.0.
1090 * config/rs6000/t-lynx: New file.
1091 * doc/install.texi (Options specification): Remove reference to
1092 LynxOS from systems where --with-gnu-as makes a difference.
1093
85291069
JM
10942004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
1095
1096 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
1097 __UINTMAX_TYPE__.
1098 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
1099 __INTMAX_MAX__.
1100 (c_cpp_builtins): Call it.
1101 * doc/cpp.texi: Update.
1102
30a555d9
DE
11032004-08-04 David Edelsohn <edelsohn@gnu.org>
1104
1105 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
1106 cost.
1107
878f99d2
JH
11082004-08-04 Jan Hubicka <jh@suse.cz>
1109
1110 * basic-block.h (profile_staus): New global variable.
1111 * cfg.c (profile_status): Declare.
1112 (check_bb_profile): Break out from ....; use profile_status
1113 (dump_flow_info): ... here.
1114 * cfgbuild.c (find_basic_blocks): Set profile_status.
1115 * cfgexpand.c (tree_expand_cfg): Likewise.
1116 * predict.c (estimate_probability): Likewise.
1117 * profile.c (branch_prob): Likewise.
1118 * tree-cfg.c (build_tree_cfg): Likewise.
1119 (dump_function_to_file): Use check_bb_profile.
1120 * tree-pretty-print (dump_bb_header): Likewise.
1121 * tree-profile.c (do_tree_profiling): Cleanup.
1122
7e7ec48e
ZW
11232004-08-04 Zack Weinberg <zack@codesourcery.com>
1124
1125 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
1126 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
1127 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
1128 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
1129 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
1130 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
1131 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
1132 (ggc-none.o, errors.o): Move rule to generators section;
1133 correct dependencies.
1134 (min-insn-modes.o): Move rule to generators section; remove
1135 unnecessary explicit command; correct dependencies.
1136 (print-rtl.o, print-rtl1.o): Correct dependencies.
1137 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
1138 (mostlyclean): Update.
1139
1140 * errors.c: Include bconfig.h not config.h. Correct comment.
1141 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
1142 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
1143 * print-rtl.c: Don't include tm_p.h.
1144
1145 * rtl.h: Move forward-decl of struct function down where it's
1146 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
1147 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
1148
b0382c67
ZD
11492004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1150 Jeff Law <law@redhat.com>
1151
1152 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
1153 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
1154 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
1155 manipulate the duplicated ssa names.
1156 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
1157 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
1158 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
1159 New functions.
1160 (release_ssa_name): Do not release ssa names that may have multiple
1161 definitions.
1162 * tree.h (release_ssa_name_force, mark_for_rewrite,
1163 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
1164 marked_ssa_names): Declare.
1165 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
1166 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
1167 Update call to rewrite_ssa_into_ssa.
1168
63c5b495
MM
11692004-08-04 Mark Mitchell <mark@codesourcery.com>
1170
1171 * defaults.h (TARGET_DECLSPEC): New macro.
1172 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
1173 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
b2ca3702 1174 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
63c5b495
MM
1175 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
1176 __declspec support.
1177 (TARGET_DECLSPEC): Define.
1178 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
1179 __declspec support.
1180 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
1181 __declspec support.
1182 (TARGET_DECLSPEC): Define.
1183 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
1184 __declspec support.
1185 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
1186 support.
1187 * doc/tm.texi (TARGET_DECLSPEC): Document.
1188
1189 * doc/extend.texi: Fix typo in comment.
1190
44d10c10
PB
11912004-08-04 Paul Brook <paul@codesourcery.com>
1192
1193 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
1194 (TARGET_CXX): Use it.
1195 * target.h (struct gcc_target): Add cdtor_returns_this.
1196 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
1197 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
1198 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
1199
5e9754af
NS
12002004-08-03 Nathan Sidwell <nathan@codesourcery.com>
1201
1202 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
1203 low/high pair. Do range checking directly.
1204 (interpret_integer): Adjust.
1205
2acc29bd
NC
12062004-08-04 Nick Clifton <nickc@redhat.com>
1207
1208 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
1209 GCC ABI.
1210 * doc/invoke.texi: Document this new switch and also the -mrenesas
1211 switch.
1212
2496942a
NS
12132004-08-04 Nathan Sidwell <nathan@codesourcery.com>
1214
1215 * cfglayout.c (insn_locators_initialize): Update the current
1216 location before initializing a location.
1217
7e2e8179
ZW
12182004-08-03 Zack Weinberg <zack@codesourcery.com>
1219
403f8503
ZW
1220 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
1221 (dbxout_function_end): Return after emitting the "Lscope" symbol
1222 under the same conditions that this function formerly wasn't called.
1223 Add explanatory comments.
1224
bcc7f708 1225 PR 14860
ca043393
ZW
1226 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
1227 on the new decl.
1228
bcc7f708 1229 PR 13956
7e2e8179
ZW
1230 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
1231 functions, broken out of dbxout_block.
1232 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
1233 stabs too, if it contains symbols. Use the begin_label and
1234 the Lscope label (emitted by dbxout_function_end) for the
1235 range of this block.
1236
5d75ba94
NN
12372004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
1238
1239 * doc/install.texi: Update autoconf version requirements.
1240
2e4e72b1
ZW
12412004-08-03 Zack Weinberg <zack@codesourcery.com>
1242
1243 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
1244 * recog.c (general_operand, immediate_operand, nonmemory_operand)
1245 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
1246 * regclass.c (record_reg_classes): Likewise.
1247 * reload.c (find_reloads): Likewise.
1248 * reload1.c (reload): Likewise.
1249
f9942f4e
ZW
12502004-08-03 Zack Weinberg <zack@codesourcery.com>
1251
1252 * gensupport.c (init_md_reader_args_cb): Renamed from
1253 init_md_reader_args. Add third option, callback function for
1254 parsing program-specific options. Add diagnosis of incorrect
1255 number of input files.
1256 (init_md_reader): Fold into init_md_reader_args_cb.
1257 (init_md_reader_args): Now a thin wrapper around
1258 init_md_reader_args_cb.
1259 * gensupport.h: Update prototypes.
1260
1261 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
1262 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
1263 * genrecog.c: No need to diagnose lack of an input file;
1264 init_md_reader_args will handle it.
1265 * genconditions.c: Likewise, and use init_md_reader_args.
1266 * genconstants.c: Likewise, and no need to call read_md_rtx.
1267
9cbe78fb
JM
12682004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
1269
1270 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
1271 declarations.
1272
3e558e80
MS
12732004-08-03 Mike Stump <mrs@apple.com>
1274
1275 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
1276 for frameworks.
1277 * doc/invoke.texi (Darwin Options): Update to reflect above.
1278
a0fac73d
RS
12792004-08-03 Roger Sayle <roger@eyesopen.com>
1280
1281 PR middle-end/16790
1282 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
1283 truncations, not just global truncations.
1284
cddbddb7
AP
12852004-08-03 Andrew Pinski <apinski@apple.com>
1286
1287 PR bootstrap/16865
1288 * loop-iv.c (simplify_using_assignment): Initialize lhs.
1289
bebf829d
PB
12902004-08-03 Paul Brook <paul@codesourcery.com>
1291
1292 * gcc/doc/install.texi: Document MPFR requirement.
1293
cddbddb7 12942004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
3b0727a0 1295
f9942f4e
ZW
1296 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
1297 and mmap() explicitly instead of relying on preset autoconf cache
3b0727a0
MR
1298 variables.
1299 * configure: Regenerate.
1300
f6bc51cb
L
13012004-08-03 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 PR target/16570
1304 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
1305 to tmake_file.
1306 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
1307 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
1308 to tmake_file.
1309
1310 * config/i386/t-gmm_malloc: New file.
1311 * config/i386/t-pmm_malloc: Likewise.
f9942f4e 1312
f6bc51cb
L
1313 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
1314
13152004-08-03 H.J. Lu <hongjiu.lu@intel.com>
d5861a7a 1316