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