1 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
3 * combine.c (gen_lowpart_for_combine): Handle vector modes.
4 Supply non-VOID mode to simplify_gen_subreg.
6 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
8 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
10 2002-07-10 Jeffrey A Law <law@redhat.com>
12 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
15 * mn10200.c (expand_epilogue): Fix test to determine which scratch
18 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
20 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
22 If simplify_gen_subreg fails, try next equivalent.
24 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
26 * diagnostic.h: #include location.h
27 (location_t): Move definition to..
28 * location.h: ... here. New file.
29 * tree.h: #include location.h
30 (DECL_SOURCE_LOCATION): New macro.
31 (DECL_SOURCE_FILE): Use.
32 (DECL_SOURCE_LINE): Likewise.
33 (struct tree_decl): REplace filename and linenum with locus.
34 * Makefile.in (TREE_H): add location.h
35 (diagnostic.o): Depends on gt-location.h
36 (gt-location.h): Depends on s-gtype
38 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
40 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
41 TARGET_OS_CPP_BUILTINS.
42 * config/rs6000/aix31.h: Likewise.
43 * config/rs6000/aix41.h: Likewise.
44 * config/rs6000/aix43.h: Likewise.
45 * config/rs6000/aix51.h: Likewise.
46 * config/rs6000/beos.h: Likewise.
47 * config/rs6000/darwin.h: Likewise.
48 * config/rs6000/eabi.h: Likewise.
49 * config/rs6000/eabisim.h: Likewise.
50 * config/rs6000/linux.h: Likewise.
51 * config/rs6000/linux64.h: Likewise.
52 * config/rs6000/lynx.h: Likewise.
53 * config/rs6000/mach.h: Likewise.
54 * config/rs6000/rtems.h: Likewise.
55 * config/rs6000/sysv4.h: Likewise.
56 * config/rs6000/vxppc.h: Likewise.
58 2002-07-09 Devang Patel <dpatel@apple.com>
59 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
60 Do not allow ObjC objects as a parameter type for Objective-C methods.
61 My previous patch restricted 'struct' also.
63 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
65 * cpperror.c (cpp_error): Default to directive_line within
67 * cppexp.c (cpp_interpret_integer): Only use traditional
68 number semantics in directives.
69 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
70 (do_include_common): Similarly.
71 * cpptrad.c (scan_out_logical_line): Implement accurate
72 quoting of <> in #include.
73 * doc/cpp.texi: Update.
75 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
76 J"orn Rennecke <joern.rennecke@superh.com>
78 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
79 * sh.md (attribute issues): Replace with:
80 (attribute pipe_model). All users changed.
81 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
83 (function units sh5issue, sh5fds): New.
84 (attribute is_mac_media): New.
85 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
86 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
87 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
88 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
89 (call_media, call_value_media, sibcall_media): Likewise.
90 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
91 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
92 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
93 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
94 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
95 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
96 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
97 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
98 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
99 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
100 (truncdfsf2_media): Likewise.
101 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
102 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
104 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
106 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
107 * sh.c (general_extend_operand, inqhi_operand): New functions.
108 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
109 alternatives using 'N' modifier. Add type.
110 (adddi3z_media): Likewise. Enable generator function generation.
111 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
112 exact predicates / constraints. Add type.
113 (subsi3): Allow 0 for SHMEDIA.
114 (udivsi3_i4_media): Use match_operand for input values
115 rather than hard registers.
116 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
117 unnecessarily through hard registers. Keep copies of pseudo
118 registers outside of the libcall sequence.
119 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
120 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
121 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
122 (extendhidi2, extendqidi2): Likewise.
123 (andsi3_compact): Name.
124 (andcdi3): Enable generator function generation.
125 (zero_extendhisi2, zero_extendqisi2): Rename to
126 (zero_extendhisi2_compact, zero_extendqisi2_compact).
127 (extendhisi2, extendqisi2): Rename to
128 (extendhisi2_compact, extendqisi2_compact).
129 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
130 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
131 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
132 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
133 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
134 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
135 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
136 (shmedia32_initialize_trampoline_big): Likewise.
137 (shmedia32_initialize_trampoline_little): Likewise.
138 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
139 (negdi2): Remove spurious T clobber.
140 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
141 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
142 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
143 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
144 (ic_invalidate_line_media): Write back data cache before invalidating
145 instruction cache. Add type.
146 (movsf_media): Sign-extend when the destination is a general
147 purpose register. Add type.
148 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
149 (casesi_worker_0+1): Only increment ref count for proper label.
150 (casesi_worker_0+2): Likewise.
152 2002-07-09 Mark Mitchell <mark@codesourcery.com>
154 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
156 2002-07-09 Steve Ellcey <sje@cup.hp.com>
158 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
159 from Pmode to ptr_mode.
160 (get_exception_pointer): Ditto.
161 (connect_post_landing_pads): Ditto.
162 (dw2_build_landing_pads): Ditto.
164 2002-07-08 Steve Ellcey <sje@cup.hp.com>
165 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
166 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
167 (handle_pragma_redefine_extname): Change to use new function.
169 2002-07-08 Roger Sayle <roger@eyesopen.com>
171 * combine.c (combine_simplify_rtx): Add an explicit cast
172 to avoid signed/unsigned comparison warning.
173 (simplify_if_then_else): Likewise.
174 (extended_count): Likewise.
175 (simplify_shift_const): Likewise.
176 (simplify_comparison): Likewise.
178 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
180 * config/mips/mips.md: Add imadd type. Update scheduler description
181 to use imadd as well as imul.
182 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
183 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
184 (*mul_sub_si): Likewise for first alternative. Change second
185 alternative from imul to multi.
187 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
189 * c-common.c (c_common_post_options): Update prototype;
190 don't init backends if preprocessing only.
191 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
192 * langhooks.h (struct lang_hooks): Update post_options to
194 * toplev.c (parse_options_and_default_flags, do_compile,
195 lang_independent_init): Update prototypes. Allow the
196 front end to specify that there is no need to initialize
198 (general_init): Move call to hex_init here...
199 (toplev_main): ...from here. Pass flag for back end init
202 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
204 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
205 (PREDICATE_CODES): Add entries for equality_comparison_operator,
206 greater_comparison_operator and less_comparison_operator.
207 * sh.c (print_operand): Add '\'' code. Make 'o' handle
209 (equality_comparison_operator): New function.
210 (greater_comparison_operator, less_comparison_operator): Likewise.
211 * sh.md (beq_media_i): Disable generator function generation.
212 Use match_operator to handle a whole class of comparisons. Add
213 modifier in output template to provide branch prediction. Add type.
214 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
215 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
216 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
217 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
219 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
221 Emit MMIX function prologue and epilogue as rtl.
222 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
223 not unprototyped get_hard_reg_initial_val.
224 ("call_value", "nonlocal_goto_receiver"): Ditto.
225 ("return"): Make define_expand. Move real insn to...
226 ("*expanded_return"): New pattern.
227 ("prologue", "epilogue"): New define_expands.
228 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
229 (struct machine_function): New member in_prologue.
230 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
231 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
232 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
233 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
234 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
235 (LOCAL_REGNO): Define. Adjust comment.
236 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
237 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
239 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
241 (mmix_target_asm_function_prologue): Make static. Just mark that
242 the prologue is being emitted. Move guts to...
243 (mmix_expand_prologue): New function. Adjust for emitting
244 prologue as rtl. For sizes, use HOST_WIDE_INT only.
245 (mmix_target_asm_function_epilogue): Make static. Simply emit a
247 (mmix_expand_epilogue): New function. Adjust for emitting
248 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
249 (mmix_target_asm_function_end_prologue): Mark that the prologue
251 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
252 (mmix_conditional_register_usage): Improve comments.
253 (mmix_local_regno): New function.
254 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
255 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
256 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
257 (mmix_get_hard_reg_initial_val): Ditto.
259 2002-07-06 Andreas Jaeger <aj@suse.de>
261 * toplev.c (set_fast_math_flags): Don't use ISO C style function
263 * gengtype.c (open_base_files): Likewise.
264 (close_output_files): Likewise.
265 * tracer.c (find_best_predecessor): Likewise.
266 (find_best_successor): Likewise.
267 (ignore_bb_p): Likewise.
269 2002-07-05 Roger Sayle <roger@eyesopen.com>
272 * builtin-attrs.def: Define new attribute lists for use in
274 * builtins.def [DEF_BUILTIN]: Modify to take an additional
275 ATTRS argument, an enumerated value defined in builtin-attrs.def
276 that represents the attribute list for the builtins. Modify
277 all builtin functions to pass an appropriate attribute list.
278 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
279 their required noreturn attributes.
280 * tree.h (enum_builtin_function): Ignore the additional parameter
282 * builtins.c (built_in_names): Likewise.
283 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
284 argument with a tree representing the functions attribute list.
285 Pass this "attrs" argument to builtin_function. No longer handle
286 the noreturn_p processing manually.
287 (built_in_attributes): Move the definitions from builtin-attrs.def
288 before c_common_nodes_and_builtins.
289 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
290 DEF_BUILTIN, passing it to both builtin_function and the changed
293 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
294 __builtin__exit and __builtin__Exit.
296 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
298 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
299 QI mode registers in soft registers.
300 ("zero_extendqihi2"): Do not take into account soft registers
301 for register allocation (use '*' constraint).
303 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
305 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
307 ("*ashrsi3"): Likewise.
308 ("*lshrsi3"): Likewise.
310 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
312 * genautomata.c (output_max_insn_queue_index_def): Take latencies
315 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
317 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
318 address computation and memory moves.
320 2002-07-03 Mark Mitchell <mark@codesourcery.com>
323 * dwarfout.c (output_reg_number): Fix warning message.
324 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
327 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
329 * gcc/gcc.c (asm_debug): Move initialization ...
330 (init_spec): ... here.
332 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
334 * c-parse.in (extdef): Append ';'.
335 (old_style_parm_decls): Append ';'.
337 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
339 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
340 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
341 to gcc_cv_as_gstabs_flag.
342 * configure: Rebuilt.
344 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
346 * ggc.h (ggc_add_root): Document as obsolete.
348 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
350 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
351 (mshflo_w): Likewise.
353 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
355 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
356 vector mode subregs of constants to finding integer mode
357 subregs of constants.
358 * cse.c (cse_insn): Use simplify_gen_subreg.
359 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
360 From a vector mode expression of different size than the
363 2002-07-03 Eric Christopher <echristo@redhat.com>
365 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
366 * config/mips/mips.h: Remove deprecated -m<processor> options
367 and cc1_cpu_spec associated.
368 (CONSTANT_ADDRESS_P): Fix last patch.
369 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
370 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
373 2002-07-03 Stan Shebs <shebs@apple.com>
375 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
376 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
377 (CPP_SPEC): Remove insertion of APPLE_CC definition.
379 2002-07-03 Roger Sayle <roger@eyesopen.com>
381 * combine.c (struct_undo): Change types of recorded substitutions
382 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
383 (do_SUBST_INT): Change types of the substitution from unsigned int
384 to int, to avoid compilation warning from SUBST_INT's only caller.
386 (make_extraction): Add cast to avoid compilation warning.
387 (force_to_mode): Remove cast to avoid compilation warning.
389 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
390 Jeff Law <law@redhat.com>
392 * i386.md (length_immediate attribute): Fix typo.
393 (length_address attribute): Likewise.
394 (modrm attribute): Set it to 0 for immediate call instructions.
395 (jcc_1 pattern): Set modrm attribute to 0.
396 (jcc_2 pattern ): Likewise.
397 (jump pattern): Likewise.
398 (doloop_end_internal pattern): Explicitly set length.
399 (leave pattern): Fix typo.
400 (leave_rex64 pattern): Likewise.
402 2002-07-03 David Edelsohn <edelsohn@gnu.org>
404 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
405 in FPR as preference.
407 (floatdidf2, fix_truncdfdi2): Same.
408 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
410 (floatsitf2, fix_trunctfsi2): SImode in GPR.
411 (ctrdi): Remove FPR alternative and splitter.
413 2002-07-03 Will Cohen <wcohen@redhat.com>
415 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
417 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
419 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
420 than UNITS_PER_WORD, unless this is little endian and the first unit
421 in this word. Let extract_bit_field decide how to load an element.
422 Force arguments to matching mode.
423 (expand_vector_unop): Likewise.
425 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
426 consist of word_mode elements.
427 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
428 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
429 (build_unary_op): Allow vector types for BIT_NOT_EPR.
430 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
432 * optabs.c (expand_vector_binop): Try to perform operation in
433 smaller vector modes with same inner size. Add handling of AND, IOR
434 and XOR. Reject expansion to inner-mode sized scalars when using
435 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
436 (expand_vector_unop): Try to perform operation in smaller vector
437 modes with same inner size. Add handling of one's complement.
438 When there is no vector negate operation, try a vector subtract
439 operation. Use simplify_gen_subreg on constants.
440 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
441 constants into smaller vectors with same inner mode, and to
442 integer CONST_DOUBLEs.
444 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
446 * c-parse.in (parsing_iso_function_signature): New variable.
447 (extdef_1): New, copied from...
448 (extdef): ... here. Reset parsing_iso_function_signature.
449 (old_style_parm_decls): Reset parsing_iso_function_signature.
450 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
451 Warn about ISO C style function definitions.
452 (nested_function, notype_nested_function): Reset
453 parsing_iso_function_signature.
454 (parmlist_2): Set parsing_iso_function_signature.
456 * doc/invoke.texi (-Wtraditional): Document new behavior.
458 2002-07-02 Chris Demetriou <cgd@broadcom.com>
460 * config.gcc (mips*el-*-*): Use tm_defines to set
461 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
462 * config/mips/little.h: Remove.
464 2002-07-02 Devang Patel <dpatel@apple.com>
466 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
467 object as parameter. Prevent something like 'NSObject' to be
468 used as the type for a method argument.
470 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
472 * cpptrad.c: Update comment.
474 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
476 * doc/cpp.texi: Update for traditional preprocessing changes.
477 * goc/cppopts.texi: Similarly.
479 2002-07-02 Ziemowit Laski <zlaski@apple.com>
481 * c-parse.in (designator): Enable designated initializers if ObjC.
482 (objcmessageexpr): Remove references to objc_receiver_context.
483 * objc/objc-act.h (objc_receiver_context): Remove decl.
484 * objc/objc-act.c (objc_receiver_context): Remove.
485 (lookup_objc_ivar): Test objc_method_context instead of
486 objc_receiver_context.
488 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
490 * sh.c (print_operand, case 'N'): Allow zero vector.
491 (arith_reg_or_0_operand): Likewise.
492 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
493 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
494 IOR, XOR, PLUS and SET and take their respective constant
496 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
497 * sh.md (subdi3, subdi3_media): Allow zero operand.
498 (movv8qi_i+3): Only vector that is not split is the zero vector.
499 Fix operand 3 to simplify_subreg.
500 (movv2si_i): Split alternative 1.
501 (mshfhi_l_di_rev+1): New splitter.
503 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
506 * cppinit.c (cpp_handle_option): Suppress warnings with an
507 implicit "-w" for "-M" and "-MM".
508 * doc/cppopts.texi: Update.
510 2002-07-01 Roger Sayle <roger@eyesopen.com>
512 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
513 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
516 2002-07-02 Alan Modra <amodra@bigpond.net.au>
518 * README.Portability: Fix typos.
520 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
523 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
524 of indirections for register inside sign-extended mem part.
526 2002-07-01 Roger Sayle <roger@eyesopen.com>
528 * tree.h: Modify builtin_function interface to take an extra
529 argument ATTRS, which is a tree representing an attribute list.
531 * c-decl.c (builtin_function): Accept additional parameter.
532 * objc/objc-act.c (builtin_function): Likewise.
533 * f/com.c (builtin_function): Likewise.
534 * java/decl.c (builtin_function): Likewise.
535 * ada/utils.c (builtin_function): Likewise.
536 * cp/decl.c (builtin_function): Likewise.
537 (builtin_function_1): Likewise.
539 * c-common.c (c_common_nodes_and_builtins): Pass an additional
540 NULL_TREE argument to builtin_function. (builtin_function_2):
542 * cp/call.c (build_java_interface_fn_ref): Likewise.
543 * objc/objc-act.c (synth_module_prologue): Likewise.
544 * java/decl.c (java_init_decl_processing): Likewise.
545 * f/com.c (ffe_com_init_0): Likewise.
547 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
548 NULL_TREE argument to builtin_function.
549 * config/arm/arm.c (def_builtin): Likewise.
550 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
551 * config/i386/i386.c (def_builtin): Likewise.
552 * config/ia64/ia64.c (def_builtin): Likewise.
553 * config/rs6000/rs6000.c (def_builtin): Likewise.
555 2002-07-01 Zack Weinberg <zack@codesourcery.com>
557 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
558 * config/mips/t-isa3264: Likewise.
559 * config/mmix/t-mmix: Likewise.
561 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
563 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
565 2002-07-01 Roger Sayle <roger@eyesopen.com>
568 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
569 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
572 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
574 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
576 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
578 * README.Portability (Function prototypes): Give an example of
579 declaring and defining a function with no arguments.
581 * README.Portability (Function prototypes): Document new
582 variable-argument function macros.
584 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
586 * sh.c (langhooks.h): Include.
587 (sh_init_builtins, sh_media_init_builtins): New functions.
588 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
589 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
590 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
591 (builtin_description): New struct tag.
592 (signature_args, bdesc): New arrays.
593 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
594 (print_operand): Add 'N' modifier.
595 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
596 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
597 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
598 (CONST_COSTS): Add special case for SHmedia AND.
599 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
600 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
601 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
602 target_operand can also be const or unspec.
603 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
604 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
605 (attribute type): Add new types.
606 (anddi3): Add splitter.
607 (movdi_const_16bit+1): Add code to handle vector constants and
608 bitmasks efficiently.
609 (shori_media): Have generator function made.
610 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
611 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
612 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
613 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
614 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
615 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
616 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
617 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
618 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
619 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
620 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
621 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
622 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
623 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
624 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
625 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
626 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
627 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
628 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
631 (fpu_switch+1, fpu_switch+2): Remove constraint.
633 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
635 * tree.c (build_function_type_list): Update function comment.
636 Rename first argument to return_type.
638 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
640 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
641 tradcif.y and related files.
643 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
645 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
647 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
649 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
651 2002-06-30 Devang Patel <dpatel@apple.com>
653 * objc/objc-act.c (finish_file): Avoid finish_objc() if
656 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
657 Frank Ch. Eigler <fche@redhat.com>
658 Matthew Green <mrg@redhat.com>
659 Richard Henderson <rtl@redhat.com>
660 Dave Hudson <dave.hudson@ubicom.com>
661 Jeff Johnston <jjohnstn@redhat.com>
662 Alan Lehotsky <apl@alum.mit.edu>
663 Bernd Schmidt <bernds@redhat.com>
664 Graham Stott <grahams@redhat.com>
666 * doc/extend.texi: Add ip2k port to description of attribute
668 * doc/install.texi (Specific): Add ip2k description.
669 * doc/install-old.texi (Configurations): Add ip2k to possible
671 * doc/md.texi: Document ip2k constraints.
672 * config/ip2k/crt0.S: New file.
673 * config/ip2k/ip2k-protos.h: New file.
674 * config/ip2k/ip2k.c: New file.
675 * config/ip2k/ip2k.h: New file.
676 * config/ip2k/ip2k.md: New file.
677 * config/ip2k/libgcc.S: New file.
678 * config/ip2k/t-ip2k: New file.
680 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
682 * config/mmix/mmix.md ("return"): New pattern.
683 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
684 (TARGET_USE_RETURN_INSN): New macros.
685 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
686 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
687 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
688 (MMIX_POP_ARGUMENT): New macro.
689 (mmix_target_asm_function_prologue): When no epilogue is executed,
690 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
691 (mmix_print_operand) <case '.'>: New case.
692 (mmix_print_operand_punct_valid_p): Match '.'.
693 (mmix_use_simple_return): New function.
694 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
695 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
696 -msingle-exit, -mno-single-exit.
697 (MMIX Options): Ditto.
699 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
701 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
703 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
705 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
707 2002-06-30 Alan Modra <amodra@bigpond.net.au>
709 * unroll.c (loop_iterations): Handle EQ loops.
711 2002-06-29 David Edelsohn <edelsohn@gnu.org>
713 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
714 constraint in define_expand, not splitter.
717 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
719 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
720 build_function_type_list instead of build_function_type.
722 * config/ia64/ia64.c (ia64_init_builtins): Same.
724 * config/alpha/alpha.c (alpha_init_builtins): Same.
726 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
728 * config/arm/arm.c (arm_init_builtins): Same.
730 * tree.h: Add build_function_type_list prototype.
732 * tree.c (build_function_type_list): New.
734 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
736 * collect2.c (scan_prog_file): Fix typo in message.
738 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
740 * fold-cont.c: Remove unused CHARMASK.
742 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
745 * cppmain.c (scan_translation_unit_trad): Simplify.
746 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
748 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
750 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
751 Don't use CPP_PREDEFINES.
752 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
753 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
754 * config/i386/djgpp.h, config/i386/i386-coff.h,
755 config/i386/i386-interix.h, config/i386/i386-interix3.h,
756 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
757 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
758 config/i386/uwin.h: Similarly.
760 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
762 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
763 flag_inline_trees to enable inlining.
765 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
767 * configure.in (gcc_gxx_include_dir): Change to match versioned
768 C++ headers if --enable-version-specific-runtime-libs is used.
769 * configure: Regenerate.
771 2002-06-28 Jan Hubicka <jh@suse.cz>
773 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
775 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
777 * combine.c (combine_simplify_rtx): Pass the mode of the
778 shift count, not the shift operation when trying to simplify
779 a shift on a SHIFT_COUNT_TRUNCATED target.
781 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
783 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
784 avoid the auto increment addressing modes.
785 ("*subsi3"): Likewise.
786 (split for add/sub on address): For 68HC12 push the value on
787 the stack and do the operation with a pop.
789 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
791 * cpplib.c (_cpp_handle_directive): Move #define-specific
792 code to the #define handler...
793 (do_define): ...here.
794 (lex_macro_node): No longer a need to check for comments here.
796 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
798 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
799 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
801 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
802 do not reorder basic blocks at the end when optimizing for size.
804 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
806 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
807 (m68hc11_make_autoinc_notes): New function.
808 (m68hc11_split_move): Be very cautious when spliting a move with
809 auto increment/decrement modes because this may result in incompatible
810 directions; add REG_INC notes to the resulting insn for CSE reg.
812 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
814 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
815 can be a valid address.
817 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
819 * config/rs6000/rs6000.c: Remove unusued variables from last
822 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
825 * config/rs6000/rs6000.c (rs6000_override_options): Move
826 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
828 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
830 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
831 lvx/stv/dst builtins...
832 (altivec_expand_ld_builtin): ...to here.
833 (altivec_expand_st_builtin): ...here.
834 (altivec_expand_dst_builtin): ...and here (respectively).
836 2002-06-28 Bob Wilson <bob.wilson@acm.org>
838 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
840 2001-06-08 Bernd Schmidt <bernds@redhat.com>
842 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
844 * recog.c (general_operand, register_operand): Disallow them.
846 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
849 * cpplib.c (_cpp_handle_directive): Do traditional
850 preparation after setting state.angled_headers.
851 * cpptrad.c (scan_out_logical_line): Fix potential
854 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
856 * config/rs6000/rs6000.c (rs6000_override_options): Move
857 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
859 2002-06-27 Bob Wilson <bob.wilson@acm.org>
861 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
862 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
863 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
865 2002-06-27 Roger Sayle <roger@eyesopen.com>
867 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
868 * config/stormy16/stormy16.h: Likewise.
870 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
873 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
875 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
876 Hitachi entry. Make punctuation more consistent.
878 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
880 * doc/install.texi: Change ` bit' to `-bit'.
881 * doc/md.texi: Change `-bits' to `-bit'.
882 * doc/tm.texi: Change `-bits' to ` bits'.
884 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
886 * gcse.c (hoist_code): Rewrite to only get list of dominated
887 blocks once per BB. Also fix reversed test (by removing need for
890 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
892 * cpphash.h (_cpp_set_trad_context): Remove.
893 * cpplib.c (prepare_directive_trad): Do nothing for #define.
894 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
895 * cpptrad.c: Update comments.
896 (_cpp_read_logical_line_trad): Let scan_logical_line handle
897 updating the current context.
898 (scan_logical_line): Update the current context.
899 (_cpp_create_trad_definition): Similarly.
900 (_cpp_set_trad_context): Remove.
902 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
905 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
907 2002-06-26 Bob Wilson <bob.wilson@acm.org>
909 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
910 config/xtensa/xtensa.c (xtensa_return_addr): New function.
911 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
912 config/xtensa/xtensa.md (fix_return_addr): New pattern.
914 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
916 * mips.c (coprocessor_operand, coprocessor2_operand,
917 symbolic_operand): Move prototypes from here...
918 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
919 symbolic_operand): ...to here.
921 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
923 * config/sh/crt1.asm: remove _stack label definition
926 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
928 * varasm.c: Include real.h before output.h.
930 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
932 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
933 check for TARGET_ALTIVEC.
935 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
937 * config.gcc (vax-*-vms*): Make obselete.
939 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
941 * gcc.c (warn_std): Delete.
943 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
945 * doc/extend.texi: Fix formatting of last checkin.
947 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
949 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
950 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
952 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
954 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
955 discrepancies from motorola's documentation.
957 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
959 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
960 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
962 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
963 produce a 32 bit result before normalization, then normalize with a
964 left shift. Compute approximative error of 2nd reciprocal
965 approximation in 2's complement. Fix mask generation from upper
966 longword of second divide stage result.
967 For large divisor, fix shift count used to truncate first stage
968 divide result; make decision if to adjust upwards based on comparison
969 of higher parts of normalized values.
970 (udivdi): Likewise. Undo normalization of result for large divisor
973 2002-06-25 David S. Miller <davem@redhat.com>
975 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
977 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
979 * cpplib.c (do_include_common): Revert to correct line number
981 * cpptrad.c (scan_out_logical_line): Treat null directive as
982 white space. Invlidate MI optimization for non-whitespace
983 text outside a directive.
985 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
987 * Makefile.in (SHELL): Set to @SHELL@.
988 * fixinc/Makefile.in (SHELL): Likewise.
990 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
991 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
994 2002-06-24 Jeff Law <law@redhat.com>
996 * flow.c (propagate_one_insn): When removing an insn
997 with a REG_LIBCALL note but not the entire libcall sequence,
998 delete the associated REG_RETVAL note.
1000 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
1002 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
1003 (udivsi3): Likewise. Rewrite SH1 implementation.
1004 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
1005 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
1006 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
1007 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
1008 (_moddi3): Likewise.
1010 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
1012 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
1013 arguments into account for stack_regs.
1015 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
1017 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
1020 2002-06-24 Art Haas <ahaas@neosoft.com>
1022 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
1023 * doc/tm.texi (Frame Layout): Likewise.
1025 2002-06-20 Steve Ellcey <sje@cup.hp.com>
1027 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
1028 Set float_format to i128.
1030 2002-06-24 David S. Miller <davem@redhat.com>
1032 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
1033 32-bit ABI libfuncs to NULL.
1035 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
1036 strings instead of quoted strings for code blocks.
1038 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
1039 optabs if op1 is const0_rtx.
1041 * Makefile.in (GTFILES): Add basic-block.h
1042 * basic-block.h (label_value_list, tail_recursion_label_list):
1045 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
1047 * cpptrad.c (scan_out_logical_line): Check recursing only when
1048 we know we have a macro invocation in the function-like case.
1049 Only call _cpp_handle_directive if we know we have a good
1050 directive, or we want to reject a bad directive.
1052 2002-06-24 Alan Modra <amodra@bigpond.net.au>
1054 * doloop.c (doloop_valid_p): Correct comment.
1055 (doloop_modify_runtime <abs_inc != 1>): Simplify.
1056 (doloop_modify_runtime <do-while>): Don't emit code when NE.
1058 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
1060 * config.gcc: Add support for ip2k.
1062 2002-06-23 Jan Hubicka <jh@suse.cz>
1063 Jeff Law <law@redhat.com>
1065 * function.h (struct emit_status): Clarify potential contents
1066 of regno_reg_rtx array.
1067 * integrate.c (copy_rtx_and_substitute): Update comments. Make
1068 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
1070 * reg-stack.c (convert_regs_exit): Push the registers to stack in
1073 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
1076 * function.c (assign_stack_temp_for_type): Do not return
1077 the same MEM rtx for multiple uses of a stack slot.
1079 2002-06-22 David S. Miller <davem@redhat.com>
1081 PR target/6841 target/6770 target/6719
1082 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
1083 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
1084 GENERAL_OR_EXTRA_FP_REGS.
1086 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
1088 * cpptrad.c (struct fun_macro): Add line number.
1089 (scan_out_logical_line): Set it, and use it to report unterminated
1092 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1094 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
1095 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
1096 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
1097 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
1098 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
1099 REGEXP_ONEOF, check_name): Const-ify.
1101 2002-06-21 Matt Thomas <matt@3am-software.com>
1103 * config/vax/vax.c (vax_output_function_prologue): Use
1104 REGISTER_PREFIX. Fix some indentation.
1105 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
1106 (VAX_ISTREAM_SYNC): Define.
1107 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
1108 i-stream sync to the end.
1109 (REGISTER_PREFIX): Define as "".
1110 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
1112 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
1114 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
1117 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1119 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
1120 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
1122 2002-06-21 Matt Thomas <matt@3am-software.com>
1124 * config/vax/netbsd.h: Adjust a comment.
1125 (TARGET_DEFAULT): Redefine as 0.
1127 2002-06-21 Richard Henderson <rth@redhat.com>
1129 * bb-reorder.c (make_reorder_chain_1): Search harder for the
1130 vax casesi fallthru edge.
1131 * cfglayout.c (cleanup_unconditional_jumps): Use
1132 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
1133 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
1134 block after ADDR_VEC.
1136 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1138 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1140 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
1142 * cpperror.c (cpp_error): For traditional CPP, default to
1143 diagnostics on pfile->line.
1144 * cpplib.c (prepare_directive_trad): Set line number for
1145 diagnostics for #define too.
1146 * cpptrad.c (skip_whitespace): Skip comments properly.
1147 (_cpp_expansions_different_trad): Initialize quote2.
1149 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
1151 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
1152 * config/mmix/mmix.h: Ditto.
1153 * config/mmix/mmix-protos.h: Ditto.
1154 * config/mmix/mmix.c: Ditto. Fix typo in comment.
1155 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
1156 comment. Comment extra CC modes.
1158 2002-06-20 Jan Hubicka <jh@suse.cz>
1160 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
1161 (scope_to_insns_finalize): Do not call set_block_levels; handle
1163 (choose_inner_scope): New.
1164 * rtl.h (choose_inner_scope): Declare.
1166 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
1168 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
1170 * pa.c (pa_asm_output_mi_thunk): Likewise.
1171 (n_deferred_plabels): Change type to size_t.
1172 (output_deferred_plabels, output_call): Use size_t instead of int.
1174 2002-06-20 Richard Henderson <rth@redhat.com>
1177 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
1178 pattern and adjust constraints for coldfire.
1180 2002-06-20 Richard Henderson <rth@redhat.com>
1182 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
1184 2002-06-20 Chris Demetriou <cgd@broadcom.com>
1186 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
1188 2002-06-20 Chris Demetriou <cgd@broadcom.com>
1190 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
1192 2002-06-20 Stan Shebs <shebs@apple.com>
1194 * dominance.c: Include errors.h instead of error.h.
1196 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
1198 * cppexp.c (cpp_interpret_integer): Don't force traditional
1199 numbers to be unsigned.
1200 * cpplib.c (prepare_directive_trad): Set line number for
1202 * cpptrad.c (scan_out_logical_line): Continue scanning out
1204 * gcc.c (trad_capable_cpp): Use cc1 always.
1207 2002-06-20 Jeffrey Law <law@redhat.com>
1209 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
1210 elimination in leaf functions by default yet.
1212 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
1214 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
1216 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1218 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
1220 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1221 Fixes PR other/6836.
1223 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
1224 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1226 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
1228 * basic-block.h: Do not include et-forest.h
1229 (dominance_info): Declare as struct dominance-info.
1230 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
1232 * dominance.c (struct dominance_info): Define.
1233 (BB_NODE, SET_BB_NODE): New macros.
1234 (bb_hash_func, bb_eq_func): Kill.
1235 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
1236 nearest_common_dominator, dominated_by_p, recount_dominator,
1237 add_to_dominance_info, delete_from_dominance_info): update for new
1239 (get_dominated_by, redirect_immediate_dominators): Rewrite using
1241 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
1242 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
1245 * et-forest.h: Update copyright; revamp all function to operate on
1247 (et_forest_value): Kill.
1248 (et_forest_enumerate_sons, et_forest_node_value): New.
1249 * et-forest.c: Update copyright.
1250 * et-forest.h: Update copyright; revamp all function to operate on
1252 (et_forest_value): Kill.
1253 (et_forest_enumerate_sons, et_forest_node_value): New.
1255 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
1257 * basic-block.h: Inlude et-forest.h
1258 (basic_block_def): Kill dominator.
1259 (dominance_info): New type.
1260 (loops): Use dominace_info.
1261 (dominace handling functions): Take dominace_info as argument
1263 (create_preheader): Likewise.
1264 * cfg.c (entry_exit_blocks): Kill dominator.
1265 (dump_flow_info): Do not dump dominators.
1266 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
1268 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
1269 (flow_loops_pre_header_scan, make_forwarder_block,
1270 canonicale_loop_headers, flow_loops_find): Likewise.
1271 * dominance.c: Include error.h
1272 (idoms_to_doms): Kill.
1273 (bb_hash_func, bb_eq_func): New static functions.
1274 (debug_dominace_info): New global function.
1275 (calculate_dominance_info): Use new et forest structure.
1276 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
1277 get_dominated_by, redirect_immediate_dominators,
1278 nearest_common_dominator, dominated_by_p, verify_dominators,
1279 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
1280 delete_from_dominance_info): New global functions.
1281 * gcse.c (domnators): CHange to dominance_info.
1282 (alloc_hoist_mem): Do not alloc dominators
1283 (free_code_hoist_mem): Use free_dominance_info.
1284 (compute_code_hoist_data): Use dominance_info.
1285 (hoist_code): Likewise.
1286 * ifcvt.c (post_dominators): Likewise.
1287 (find_if_case_2, if_convert): Likewise.
1288 * predict.c (process_note_predictions, process_note_prediction,
1289 estimate-probability): Likewise.
1290 * sched-rgn.c (find_rgns, init_regions): Likewise.
1291 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
1292 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
1293 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
1294 find_evaluations, convert_to_ssa): Likewise.
1295 * ssa.h (compute_dominance_frontiers): Likewise.
1297 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
1299 * Makefile.in (et-forest.c): Add.
1300 * et-forest.c: New file.
1301 * at-forest.h: New file.
1303 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1305 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
1306 array size calculation.
1307 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
1310 * diagnostic.c (diagnostic_kind_text): Const-ify.
1311 * gengtype.c (lang_names): Likewise.
1313 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
1315 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
1317 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1319 * config/sol2.h: New file.
1320 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
1321 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
1322 (sparc-*-chorusos*): Likewise.
1323 (sparc-*-elf*): Likewise.
1324 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
1325 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
1326 (sparc-hal-solaris2*): Likewise.
1327 (sparc-*-solaris2*): Likewise.
1328 (sparclite-*-elf*): Likewise.
1329 (sparc86x-*-elf*): Likewise.
1330 (sparc64-*-elf*): Likewise.
1332 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
1334 (ASM_SPEC): Override config/sol2.h version for now.
1335 Removed obsolete GAS_REJECTS_MINUS_S variant.
1336 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
1337 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
1338 (TARGET_OS_CPP_BUILTINS): Likewise.
1340 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
1341 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
1343 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
1344 (ASM_CPU_SPEC): Define.
1345 (SUBTARGET_EXTRA_SPECS): Define.
1347 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
1348 in config/sparc/sol2.h.
1349 (ASM_SPEC): Moved to config/sol2.h.
1350 (CPP_CPU_SPEC): Simplified.
1351 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
1353 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
1354 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
1355 STARTFILE_ARCH64_SPEC.
1356 (STARTFILE_SPEC): Moved to config/sol2.h
1357 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
1358 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
1359 (LINK_ARCH64_SPEC): Simplified.
1360 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
1361 (LINK_SPEC): Moved to config/sol2.h
1363 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
1365 Use BITS_PER_WORD for size.
1366 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
1367 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
1368 (CPP_PREDEFINES): Removed OS-specific part handled by
1369 TARGET_OS_CPP_BUILTINS.
1370 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
1371 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
1372 (ASM_SPEC): Moved to config/sol2.h.
1373 (PREFERRED_DEBUGGING_TYPE): Likewise.
1374 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
1375 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
1376 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
1377 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
1379 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
1380 * config/i386/sol2gas.h: Removed.
1382 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
1384 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
1386 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
1388 * gcc.c-torture/execute/simd-1.c: New.
1390 * gcc.dg/simd-1.c: New.
1392 * doc/extend.texi (Vector Extensions): Document that we can
1393 specify simd types not specifically supported by the hardware.
1394 Document that simd types can be used as function arguments.
1395 Document that signness does make a difference in SIMD types.
1396 Misc cleanups and revisions to the vector extensions section.
1398 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
1401 * expr.c (vector_mode_valid_p): New.
1403 * expr.h: Add vector_mode_valid_p.
1405 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
1407 * c-common.c (type_for_mode): Always build vector nodes regardless
1408 of VECTOR_MODE_SUPPORTED_P.
1409 (handle_mode_attribute): Error if we can't emulate a nonexisting
1411 (handle_vector_size_attribute): Same.
1413 * optabs.c (expand_binop): Open-code vector operations.
1414 (expand_unop): Open-code vector unops.
1415 (expand_vector_binop): New.
1416 (expand_vector_unop): New.
1418 * c-typeck.c (build_binary_op): Allow vectors in binops.
1419 Allow vectors in conditional operatiors.
1420 (build_unary_op): Allow vectors in unary minus.
1422 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
1425 2002-05-20 Richard Henderson <rth@redhat.com>
1427 * c-common.c (c_common_get_alias_set): Correctly handle characters.
1428 Rearrange order of expressions; don't handle vectors here.
1429 * alias.c (get_alias_set): Let vectors match their components.
1431 2002-06-19 Chris Demetriou <cgd@broadcom.com>
1433 * config/mips/mips.c (mips_emit_prefetch): Use hints which
1434 match desired locality.
1436 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1438 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
1439 (h8300_insert_attributes): New.
1441 2002-06-19 Akim Demaille <akim@epita.fr>
1443 * c-parse.in (initelt: identifier ':' initval): Add an empty
1444 action to fix a type clash.
1445 (aliasdecl, classdef): Add the missing closing `;'.
1447 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
1448 $$ = $1 type clashes.
1450 2002-06-19 Eric Christopher <echristo@redhat.com>
1452 * config/mips/mips.c (symbol_operand): New function.
1453 (mips_emit_prefetch): Ditto.
1454 * config/mips/mips-protos.h: Define.
1455 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
1456 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
1457 (LEGITIMIZE_ADDRESS): Ditto.
1458 * config/mips/mips.md (prefetch, prefetch_si_address,
1459 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
1461 2002-06-19 Eric Christopher <echristo@redhat.com>
1463 * config/fp-bit.h: Add unordered defines for gofast.
1465 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
1467 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
1468 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
1469 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
1470 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
1471 checking and without it.
1472 (decl_name, decl_mode_check_failed, regexp_name,
1473 regexp_mode_check_failed): New functions.
1474 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1475 gen_presence_set, gen_absence_set, gen_automaton,
1476 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1477 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
1478 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
1479 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
1480 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
1481 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
1482 (decl_hash, decl_eq_p): Use the macros.
1483 (find_decl): Ditto. Set up mode of work_decl.
1484 (process_excls, process_presence_absence, process_decls,
1485 check_automaton_usage, process_regexp, process_regexp_decls,
1486 check_usage, loop_in_regexp, check_loops_in_regexps,
1487 process_regexp_cycles, add_advance_cycle_insn_decl,
1488 initiate_states, initiate_excl_sets,
1489 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
1490 transform_2): Use the macros.
1491 (transform_3): Ditto. Check mode before making transformations of
1493 (regexp_transform_func, transform_insn_regexps,
1494 process_unit_to_form_the_same_automaton_unit_lists,
1495 form_the_same_automaton_unit_lists_from_regexp,
1496 form_the_same_automaton_unit_lists,
1497 process_seq_for_forming_states, process_alts_for_forming_states,
1498 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
1499 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
1500 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
1501 units_to_automata_heuristic_distr, create_ainsns,
1502 units_to_automata_distr, create_automata): Use the macros.
1503 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
1504 (longest_path_length, min_issue_delay_pass_states,
1505 output_dead_lock_vect, output_tables, output_insn_code_cases,
1506 output_internal_insn_latency_func, output_print_reservation_func,
1507 output_description, output_automaton_units, generate): Use the
1509 (make_insn_alts_attr): Ditto. Check case when there are not
1510 alternatives in the reservation.
1511 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
1512 make_bypass_attr, form_important_insn_automata_lists,
1513 expand_automata): Use the macros.
1515 2002-06-20 Tim Josling <tej@melbpc.org.au>
1517 * Makefile.in: Clean up code to check for misspecified languages
1518 in enable-languages.
1520 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
1522 * cpptrad.c (_cpp_replacement_text_len): initialize len.
1524 2002-06-19 Jason Merrill <jason@redhat.com>
1526 * Makefile.in (unstrap, restrap): New targets.
1527 (bootstrap): Mention restrap.
1529 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
1531 * except.c (ehl_free): Remove.
1533 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
1534 builtin_define and builtin_define_std.
1536 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
1538 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
1539 (sCOND): Restrict operand class so that gcc knows how to reload them.
1540 (bitfield_set): Merge two unnamed insn's using alternatives.
1541 (call_value): Remove constraint on unused uperand.
1542 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
1543 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
1545 * longlong.h (count_trailing_zeros): Escape newline and beautify.
1547 2002-06-19 Mark Mitchell <mark@codesourcery.com>
1549 * Makefile.in (QMTEST_DIR): Simplify definition.
1551 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
1553 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
1556 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
1558 * cpphash.h (struct cpp_reader): Make date and time strings.
1559 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
1560 _cpp_replacement_text_len): New.
1561 * cppinit.c (cpp_create_reader): Update.
1562 (init_builtins): Register appropriate builtins for -traditional-cpp.
1563 * cppmacro.c (new_number_token): Remove.
1564 (_cpp_builtin_macro_text): New.
1565 (builtin_macro): Use it.
1566 (cpp_macro_definition): Update to handle traditional macros.
1567 * cppmain.c (cb_line_change): Don't do column positioning for
1569 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
1571 (skip_whitespace): Fix.
1572 (maybe_start_funlike): Don't set state.parsing_args.
1573 (scan_out_logical_line): Remove duplicate error. Use lex_state
1574 rather than state.parsing_args.
1575 (push_replacement_text): Handle builtins.
1576 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
1578 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
1579 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1581 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
1582 attribute __always_inline__.
1584 2002-06-18 Bob Wilson <bob.wilson@acm.org>
1586 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
1587 when generating the call to _mcount.
1588 (NO_PROFILE_COUNTERS): Define.
1590 2002-06-18 Richard Henderson <rth@redhat.com>
1592 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
1595 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
1597 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
1598 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
1599 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
1600 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
1602 * sh-protos.h (sh_pr_interrupt): Declare.
1603 * sh.c (sh_pr_interrupt): New function.
1604 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
1605 (sh_hard_regno_rename_ok): Likewise.
1606 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
1608 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
1610 * rtl.def (DEFINE_AUTOMATON): Add description of new options
1611 `time' and `v'. Fix incorrect description of option `w'.
1613 * doc/md.texi: Ditto.
1615 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
1616 (gen_automata_option): Process the new options.
1617 (transform_2, transform_3): Initialize some variables.
1618 (initiate_automaton_gen): Use the new macros.
1620 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
1622 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
1623 (mips_set_return_address, mips_restore_gp): Declare.
1624 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
1625 (current_frame_info): Remove.
1626 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
1627 * config/mips/mips.c: Remove uses of current_frame_info.
1628 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
1629 (struct machine_function): Add 'frame' and 'insns_len'.
1630 (current_frame_info, zero_frame_info): Remove.
1631 (mips_restore_gp, mips_set_return_address): New.
1632 (mips_initial_elimination_offset): New.
1633 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
1634 (eh_return define_split): Use mips_set_return_address.
1636 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
1638 * cpplib.c (dtable): Update.
1639 (end_directive): Decrement expansion prevention count.
1640 Clear state.in_expression.
1641 (prepare_directive_trad): Set state.in_expression.
1642 Increment expansion prevention count.
1643 * cpptrad.c (enum ls): New.
1644 (_cpp_overlay_buffer): Set overlaid_buffer.
1645 (_cpp_remove_overlay): Use overlaid_buffer.
1646 (_cpp_read_logcial_line_trad): Update buffer when it might
1648 (scan_out_logical_line): Handle state transitions for assertions
1649 and defined() in #if, and for funlike invocations including the
1650 directive case. Handle '<' and '>' as a quote mechanism in
1651 #include. Warn about unterminated macro invocations.
1652 * cpphash.h (struct lexer_state): New member in_expression.
1653 (struct cpp_reader): New member overlaid buffer.
1655 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
1657 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
1660 2002-06-18 Alan Modra <amodra@bigpond.net.au>
1662 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
1664 * doloop.c (doloop_optimize): Extract pattern from insn.
1666 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
1668 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
1670 2002-06-17 Jeff Law <law@redhat.com>
1672 * libgcc2.c: Do not include symcat.h or machmode.h.
1674 2002-06-17 Richard Henderson <rth@redhat.com>
1677 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
1679 2002-06-17 Tom Tromey <tromey@redhat.com>
1681 * dwarfout.c: Include function.h.
1683 2002-06-17 Andreas Schwab <schwab@suse.de>
1685 * print-rtl.c (print_rtx): Print space before vector, not after.
1686 (debug_rtx): Clear sawclose before printing.
1687 (debug_rtx_list): Print newline after each list element.
1688 (debug_rtx_range): Likewise.
1690 2002-06-17 Richard Henderson <rth@redhat.com>
1692 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
1693 (current_function_funcdef_no): Similarly.
1694 * function.c (funcdef_no): Similarly.
1695 (prepare_function_start): Set current_function_funcdef_no.
1696 (expand_function_start): Don't set current_function_profile_label_no.
1697 * dwarf2out.h (current_funcdef_number): Remove.
1698 * dwarf2out.c (current_funcdef_number): Remove. Replace with
1699 current_function_funcdef_no throughout.
1700 * dwarfout.c, vmsdbgout.c: Similarly.
1701 * except.c (sjlj_funcdef_number): Remove.
1702 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
1703 (output_function_exception_table): Likewise.
1704 * final.c (profile_function): Use current_function_funcdef_no
1705 instead of current_function_profile_label_no.
1707 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
1709 * sched-ebb.c (init_ready_list): Check INSN_P first.
1711 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
1713 * sh.md (divsi3): Update way how to find insns in a sequence.
1715 * reload1.c (merge_assigned_reloads): Don't change reloads
1716 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
1717 to RELOAD_OTHER when there are conflicting input reloads.
1719 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
1721 * function.c (epilogue_done): Correctly build a sequence of insns for
1724 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
1726 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
1729 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
1731 2002-06-16 Richard Henderson <rth@redhat.com>
1733 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1734 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1736 2002-06-16 Richard Henderson <rth@redhat.com>
1739 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
1741 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
1743 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
1744 * config/i386/i386-aout.h, config/i386/i386elf.h,
1745 config/i386/sysv4.h: Remove CPP_PREDEFINES.
1746 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
1747 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
1748 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
1749 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
1750 CPP_PREDEFINES and part of CPP_SPEC.
1751 * config/i386/sysv4-cpp.h: New.
1753 2002-06-16 Richard Henderson <rth@redhat.com>
1756 * dwarf2out.c (modified_type_die): Don't assign the qualified die
1757 to the unqualified type.
1759 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
1761 * i386-protos.h (x86_field_alignment): Declare.
1762 * i386.c (x86_field_alignment): Define.
1763 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
1764 (BIGGEST_FIELD_ALIGNMENT): Kill.
1766 2002-06-16 Richard Henderson <rth@redhat.com>
1768 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
1770 2002-06-16 Richard Henderson <rth@redhat.com>
1772 * c-common.c (flag_ms_extensions): Move from c++ front end.
1773 * c-common.h (flag_ms_extensions): Declare.
1774 * c-decl.c (c_decode_option): Add -fms-extensions.
1775 (grokfield): Don't accept anonymous structures in ISO C mode;
1776 accept only unnamed anonymous structures in GNU C mode; accept
1777 Plan 9 extensions in MS mode.
1778 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
1779 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
1780 (extension): Clear flag_iso.
1781 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
1783 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
1786 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
1787 early if current_function_epilogue_delay_list is non-empty.
1788 * config/cris/cris.md ("return"): Add sanity check asserting that
1789 current_function_epilogue_delay_list is empty.
1791 2002-06-16 Jeff Law <law@redhat.com>
1793 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
1794 sharing of hard registers.
1796 * toplev.c (rest_of_compilation): Remove redundant conditional.
1798 * toplev.c (rest_of_compilation): Perform a simpler, less costly
1799 cleanup of the CFG when not optimizing.
1801 2002-06-16 Alan Modra <amodra@bigpond.net.au>
1803 * gcc.c (main): Correct startfile_prefix_spec check.
1805 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
1807 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
1808 include both darwin.o and rs6000-c.o.
1810 2002-06-15 Roger Sayle <roger@eyesopen.com>
1812 * expr.c (compare_from_rtx): Call simplify_relational_operation
1813 on all comparisons, not just those between integer constants,
1814 with the correct (possibly unsigned) comparison code.
1815 (do_compare_rtx_and_jump): Likewise.
1817 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1819 * Makefile.in (tm_defines): New configuration variable.
1820 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
1821 Pass tm_defines in TM_DEFINES.
1822 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
1823 * config.gcc (tm_defines): New configuration variable.
1824 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
1825 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
1826 * configure.in: Substitute tm_defines.
1827 * configure: Rebuilt.
1828 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
1829 * doc/install.texi: Update.
1830 * pa/pa-700.h: Delete file.
1831 * pa/pa-7100.h: Delete file.
1833 2002-06-15 Roger Sayle <roger@eyesopen.com>
1835 * fold-const.c (comparison_to_compcode): New function to convert
1836 an comparison TREE CODE into a bit-based representation.
1837 (compcode_to_comparison): New function to convert from this bit
1838 based representation back to a comparison TREE CODE.
1839 (fold_truthop): Simplify (x<y) && (x==y) and related composite
1842 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
1844 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1846 * stor-layout.c (compute_record_mode): Remove check for
1847 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1848 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
1849 MEMBER_TYPE_FORCES_BLK.
1851 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1853 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1855 2002-06-14 Jeff Sturm <jsturm@one-point.com>
1857 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1859 2002-06-14 Steve Ellcey <sje@cup.hp.com>
1861 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1862 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1863 * configure, config.in: Regenerate.
1865 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1867 * loop.c (check_final_value): Use v->always_executed
1868 instead of v->always_computable.
1869 * unroll.c (final_giv_value): Don't calculate the final
1870 value as a function of the biv if the giv is not computed
1871 for every loop iteration.
1873 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1875 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1877 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
1880 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1881 the truncation down when the target type is signed.
1882 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1883 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1884 the conversion if the target type is a smaller type.
1886 2002-06-14 Richard Henderson <rth@redhat.com>
1888 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1889 earlier. Re-factor comparisons vs extrema.
1891 2002-06-14 Richard Henderson <rth@redhat.com>
1893 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1895 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1897 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1898 * sched-deps.c (add_dependence): Likewise.
1899 (group_leader): Likewise.
1900 * sched-rgn.c (init_ready_list): Likewise.
1901 * doc/rtl.texi: Adjust accordingly.
1903 2002-06-13 Jeffrey Law <law@redhat.com>
1905 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1906 null pointer checks were eliminated. Update prototype.
1907 (delete_null_pointer_checks): Similarly.
1908 * rtl.h (delete_null_pointer_checks): Update prototype.
1909 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1910 delete_null_pointer_checks deletes one or more null
1911 pointer checks. Do not run cleanup_cfg before gcse, the
1912 CFG is accurate and optimized at that point..
1914 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1917 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1919 * Makefile.in (libgcc.mk): Depend on specs.
1921 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
1923 * sh.md (mulsi3): Update way how to find insns in a sequence.
1925 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
1927 * sh.h: Define HARD_REGNO_RENAME_OK
1928 * sh.c: sh_hard_regno_rename_ok: New. If current function has
1929 interrupt_handler attribute, only registers saved on stack are OK.
1930 * sh-protos.h: Declare sh_hard_regno_rename_ok.
1932 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
1934 * config/sh/sh.md (jump): Emit jump insn.
1935 (call_pcrel): Get pattern of the result of gen_call_site.
1936 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1938 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
1940 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1941 * cpptrad.c: Update comments.
1942 (skip_whitespace, copy_comment): Take a new parameter.
1943 (skip_escaped_newlines): Don't duplicate escaped newline test.
1944 (copy_comment): Different location for CUR, decide here how
1945 to copy / replace the comment.
1946 (skip_whitespace): Copy whitespace.
1947 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1948 (scan_out_logical_line): Let copy comment handle keeping or
1950 (scan_parameters, _cpp_create_trad_definition): Update.
1952 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
1954 * reload.c (get_secondary_mem,find_reloads_address,
1955 find_reloads_address_1): Pass reference to MEM to find_reloads_address
1956 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1958 2002-06-13 Jessica Han <jessica@cup.hp.com>
1960 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1961 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1962 * doc/tm.texi: Document them.
1963 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1964 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1965 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1966 (ASM_OUTPUT_FDESC): Likewise.
1968 2002-06-13 Eric Christopher <echristo@redhat.com>
1970 * diagnostic.c (output_format): Fix thinko.
1972 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
1974 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1975 (DWARF2_UNWIND_INFO): Define to 0.
1977 * config/sh/sh.c (calc_live_regs): Don't use initial_value
1978 optimization for PR_MEDIA_REG.
1980 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
1982 * cpphash.h (_cpp_lex_identifier_trad): Remove.
1983 * cpplib.c (end_directive): Don't skip, always remove overlay
1985 (prepare_directive_trad): Handle NULL pfile->directive.
1986 (_cpp_handle_directive): Always call prepare_directive_trad
1988 * cppmain.c (check_multiline_token): Rename account_for_newlines,
1990 (scan_translation_unit_trad): Use it.
1991 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1992 output, get escaped newline in comment close correct.
1993 (check_output_buffer, skip_whitespace): Update.
1994 (_cpp_lex_identifier_trad): Remove.
1995 (scan_out_logical_line): Handle -C and comments in directives
1998 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
2000 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
2001 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
2002 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
2003 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
2004 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
2005 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
2006 (SELECT_SH5_COMPACT_NOFPU): Likewise.
2007 (TARGET_SWITCHES): Use them.
2008 (TARGET_CPU_DEFAULT): Define if not already defined.
2009 (TARGET_DEFAULT): Use it.
2010 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
2011 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
2012 * config/sh/t-monolib: New file.
2014 2002-06-13 Roger Sayle <roger@eyesopen.com>
2016 * toplev.c (rest_of_compilation): Simplify (and correct) the
2017 logic of the first delete-null-pointer-checks pass.
2019 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
2021 * i386.c (ix86_expand_movstr): Fix pasto.
2023 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
2025 * reload.c (find_valid_class): Fix thinko in my previous patch.
2027 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
2029 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
2030 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
2031 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
2032 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
2034 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2036 * tree-inline.c (expand_call_inline): Don' mess with _DECL
2039 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
2041 * diagnostic.c (output_format): Recognize "%H" as a format
2042 specifier for a location_t.
2043 (text_specifies_location): New function.
2044 (diagnostic_set_info): Use it.
2046 2002-06-13 Jeffrey Law <law@redhat.com>
2048 * emit-rtl.c (static_regno_reg_rtx): Define.
2049 (init_emit_once): Initialize static_regno_reg_rtx.
2050 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
2051 of building new hard reg objects once per function.
2052 (gen_rtx_REG): Try to share hard regs.
2053 * regclass.c (init_fake_stack_mems): New function broken out from
2055 * rtl.h (init_fake_stack_mems): Declare.
2056 * toplev.c (lang_independent_init): Call init_regs before
2057 init_emit_once. Call init_fake_stack_mems after init_emit_once.
2059 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
2061 * alias.c (argument_registers): Remove.
2062 (init_alias_once): Initialize static_reg_base_value here. Remove
2063 initialization of argument_registers.
2064 (init_alias_once_per_function): Remove.
2065 (init_alias_analysis): Copy all the entries from static_reg_base_value
2066 into new_reg_base_value all at once.
2067 * rtl.h (init_alias_once_per_function): Remove declaration.
2068 * function.c (prepare_function_start): Do not call
2069 init_alias_once_per_function.
2071 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
2072 starting a sequence and emitting an INSN.
2074 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
2076 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
2078 2002-06-13 David S. Miller <davem@redhat.com>
2080 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
2082 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
2084 * cpplib.c (end_directive): Handle line skipping. Only remove
2085 the rest of the line if the directive was valid.
2086 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
2087 expanding a traditional macro.
2088 * cpptrad.c (recursive_macro): New.
2089 (read_logical_line_trad): Handle skipping.
2090 (scan_out_logical_line): Continue after a successful directive.
2091 Don't expand macros whilst skipping, or if recursing.
2092 (_cpp_create_trad_definition): scan_out_logical_line now sets
2093 the output current position.
2095 2002-06-12 Eric Christopher <echristo@redhat.com>
2097 From Chris Demetriou <cgd@broadcom.com>
2098 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
2100 (ISA_HAS_MADD_MSUB): Ditto.
2101 (ISA_HAS_NMADD_NMSUB): Ditto.
2103 2002-06-12 Eric Christopher <echristo@redhat.com>
2105 * config.gcc: Consolidate little endian handling and
2106 little/big endian targets.
2107 * config/mips/elfl.h: Remove file.
2108 * config/mips/elfl64.h: Ditto.
2109 * config/mips/ecoffl.h: Ditto.
2110 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
2112 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
2114 * gengtype.h (xvasprintf): New prototype.
2115 (xasprintf): New prototype.
2117 (get_output_file): Return an outf_p.
2118 (header_file): Is now an outf_p.
2119 (base_files): Now are outf_p.
2121 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
2122 rather than stdio operations. Use xasprintf in a few places,
2126 (struct filemap): Delete.
2128 (output_files): New.
2130 (create_file): Create an outf_p. Add parameter to indicate output
2131 file name, change all callers.
2132 (open_base_files): Create gtype-desc.c here.
2133 (get_output_file_with_visibility): Rewrite.
2134 (get_output_file_name): Just look at 'name' field in struct outf.
2135 (close_output_files): Rewrite.
2137 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
2139 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
2140 (MASK_G_FLOAT): Define.
2141 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
2142 (TARGET_SWITCHES): Likewise.
2143 (TARGET_DEFAULT): Likewise.
2145 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
2147 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
2148 * config/mips/mips.c (mips_output_filename): Don't print a
2149 ".file" directive if we are using DWARF-2.
2150 (mips_output_function_prologue): Do not emit source file
2151 name for TARGET_GAS.
2153 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
2155 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
2156 decide whether emit the short opcode.
2157 * i386.h (x86_shift1): Declare.
2158 (TARGET_SHIFT1): New macro.
2159 * i386.c (x86_shift1): New global variable.
2161 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
2162 unconditionally; make loop to rebuild CFG; kill unnecesary
2163 find_basic_block calls; kill compute_bb_for_insn call.
2164 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
2165 * haifa-sched.c (sched_init): Likewise.
2166 * ssa-ccp.c (ssa_const_prop): Likewise.
2167 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
2169 2002-06-11 David S. Miller <davem@redhat.com>
2171 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
2174 2002-06-11 Richard Henderson <rth@redhat.com>
2176 * c-common.c (builtin_define_type_max): New.
2177 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
2178 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
2180 From Joseph S. Myers:
2181 * glimits.h: Rewrite to expect the double underscore definitions
2184 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
2185 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
2186 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
2187 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
2188 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
2189 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
2190 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
2191 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
2193 2002-06-11 Richard Henderson <rth@redhat.com>
2195 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
2196 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
2197 (code_for_builtns): Update.
2198 (alpha_init_builtins): Add __builtin_thread_pointer and
2199 __builtin_set_thread_pointer.
2200 (alpha_expand_builtin): Handle void builtins.
2201 * doc/extend.texi (Alpha Built-in Functions): Update.
2203 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
2206 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
2208 2002-06-11 Zack Weinberg <zack@codesourcery.com>
2210 * config.gcc: Make the name of the extra-modes file adjustable
2212 (s390x, strongarm, xscale stanzas): Use this facility.
2213 * configure.in: Update to match.
2214 * configure: Regenerate.
2216 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
2218 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
2219 max/mins as unsigned GE compares.
2221 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
2223 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
2224 * config/vax/bsd.h: New file.
2225 * config/vax/netbsd.h: Add missing notice.
2226 (CPP_PREDEFINES): Remove.
2227 (TARGET_OS_CPP_BUILTINS): Define.
2228 (CPP_SPEC): Use NETBSD_CPP_SPEC.
2229 * config/vax/openbsd.h: Update copyright years.
2230 (CPP_PREDEFINES): Remove.
2231 (TARGET_OS_CPP_BUILTINS): Define.
2232 * config/vax/ultrix.h: Likewise.
2233 * config/vax/vaxv.h: Likewise.
2234 * config/vax/vms.h: Likewise.
2235 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
2236 (CPP_PREDEFINES, CPP_SPEC): Remove.
2238 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
2240 * i386.md (addqi_1_slp, subqi_1_slp
2241 (andqi_ext0, testqi_ext0): Remove unnecesary check.
2242 (addhi*, addqi*): Simplify "dec" condition.
2243 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
2244 (and, or, xor to QImode splitters): New.
2247 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
2248 (andqi_ext_1_rex64): New.
2252 (rotrqi3*_slp): New.
2253 (rotlqi3*_slp): New.
2255 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
2257 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
2259 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
2260 (CPP_ENDIAN_LITTLE_SPEC): Delete.
2261 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
2262 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
2263 __LONG_DOUBLE_128__ setting, _CALL_* setting.
2264 (CPP_DEFAULT_SPEC): Delete.
2265 (CPP_FLOAT_DEFAULT_SPEC): Delete.
2266 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
2267 (CPP_SYSV_DEFAULT_SPEC): Delete.
2268 (CPP_ENDIAN_BIG_SPEC): Delete.
2269 (CPP_ENDIAN_LITTLE_SPEC): Delete.
2270 (CPP_ENDIAN_SPEC): Delete.
2271 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
2272 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
2273 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
2274 cpp_longdouble_default.
2275 * config/rs6000/softfloat.h: Delete.
2276 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
2277 (EXTRA_SPECS): Delete cpp_cpu.
2278 (TARGET_CPU_CPP_BUILTINS): New.
2279 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
2281 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
2282 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
2283 (CPP_DEFAULT_SPEC): Delete.
2284 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
2285 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
2286 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
2287 (CPP_DEFAULT_SPEC): Delete.
2288 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2289 (CPLUSPLUS_CPP_SPEC): Likewise.
2290 (CPP_CPU_SPEC): Delete.
2291 (CPP_DEFAULT_SPEC): Delete.
2292 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
2293 (CPLUSPLUS_CPP_SPEC): Likewise.
2294 (CPP_CPU_SPEC): Delete.
2295 (CPP_DEFAULT_SPEC): Delete.
2296 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
2297 (CPP_DEFAULT_SPEC): Delete.
2298 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
2299 (CPP_DEFAULT_SPEC): Delete.
2301 * doc/gty.texi: Small updates.
2303 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
2305 * objc/objc-act.c (warn_with_ivar): Adjust calls to
2306 diagnostic_count_error.
2307 (warn_with_method): Likewise.
2309 * diagnostic.h (warnings_are_errors_message): New field of
2311 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
2313 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
2314 (diagnostic_count_diagnostic): Make aware of other kinds of
2316 (diagnostic_initialize): Initialize warnings_are_errors_message field.
2318 2002-06-11 Tom Tromey <tromey@redhat.com>
2321 * fold-const.c (fold_convert): Don't modify existing tree's type.
2323 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
2325 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
2327 2002-06-11 Richard Henderson <rth@redhat.com>
2329 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
2331 2002-06-11 Richard Henderson <rth@redhat.com>
2333 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
2334 DWARF2_UNWIND_INFO is false.
2336 2002-06-11 Bob Wilson <bob.wilson@acm.org>
2338 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
2340 * config/s390/s390.c (emit_prologue): gen_store_multiple
2341 returns an insn now, not a pattern.
2343 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2345 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
2348 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
2350 * i386.c (x86_promote_QImode): Set for Athlon
2351 (x86_fast_prefix): New global variable.
2352 (x86_arch_always_fancy_math_387): Fix formating.
2353 * i386.h (x86_fast_prefix): Declare
2354 (TARGET_FAST_PREFIX): define.
2355 * i386.md (and to strict_low_part, HI to SI
2356 promoting splitter): Use new macro.
2358 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
2360 2002-06-11 Zack Weinberg <zack@codesourcery.com>
2362 * Makefile.in (distclean): Delete junk left in testsuite
2365 2002-06-11 Jeffrey Law <law@redhat.com>
2367 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
2368 last insn created by the splitter.
2370 * caller-save.c (init_caller_save): Move creation of SAVEINSN
2371 and RESTINSN into into the scope of the sequence.
2373 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
2376 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
2378 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
2379 not the pattern. So extract the pattern from the insn.
2381 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
2383 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
2385 * config/s390/s390.md (movsi): Only use floating point
2386 register alternatives when operands are already fprs.
2387 (movdi_31, movdi_64): Likewise.
2389 2002-06-11 David S. Miller <davem@redhat.com>
2391 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
2392 Only run RTX equality checks on INSN_P rtl.
2394 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
2396 * config/s390/s390.md (reload_base, ltorg): Remove.
2397 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
2398 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
2399 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
2400 s390_asm_output_pool_prologue): Likewise.
2401 * s390.h (s390_pool_start_insn): Likewise.
2403 * s390.c (s390_output_symbolic_const): Remove support for
2404 old-style pool chunks.
2405 (s390_function_epilogue): Likewise.
2406 (s390_output_constant_pool): Likewise. Also, fix incorrect
2407 alignment for 64-bit literal pools.
2408 (print_operand_address): Remove 'y' and 'Y' format flags.
2409 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
2410 old-style pool chunks.
2411 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
2412 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
2413 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
2415 * s390.c (consttable_operand): New function.
2416 * s390-protos.h (consttable_operand): Declare it.
2417 * s390.h (PREDICATE_CODES): Add consttable_operand.
2418 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
2419 consttable_sf, consttable_df, pool_start_31, pool_end_31,
2420 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
2421 * s390.c (struct constant, struct constant_pool): New data types.
2422 (constant_modes, gen_consttable): New variables.
2423 (s390_start_pool, s390_end_pool, s390_add_pool,
2424 s390_dump_pool, s390_free_pool): New functions.
2425 (s390_chunkify_pool): Completely reimplement literal pool
2428 * s390.c (s390_pool_overflow): New variable.
2429 * s390.h (s390_pool_overflow): Declare it.
2430 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
2431 jumps in literal pool overflow situations.
2433 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
2434 (s390_frame_info): Account for possible use of RETURN_REGNUM
2435 by new literal pool overflow code.
2436 (s390_emit_prologue): Likewise.
2438 2002-06-05 David S. Miller <davem@redhat.com>
2440 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
2441 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
2442 emit_insns_before_scope, emit_insns_after,
2443 emit_insns_after_scope): Delete declaration.
2444 * ada/misc.c (insert_code_for): Use emit_insn* instead of
2446 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
2447 (alpha_set_memflags): Fix comment.
2448 (set_frame_related_p): Use get_insns instead of gen_sequence.
2449 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
2451 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
2453 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
2454 * config/fr30/fr30.c (fr30_move_double): Likewise.
2455 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
2457 * config/ia64/ia64.c (spill_restore_mem): Likewise.
2458 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
2460 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
2461 instead of gen_sequence.
2462 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
2463 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
2464 * config/sh/sh.c (sh_need_epilogue): Likewise.
2465 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
2467 (setjmp pattern and split): Use them to avoid splitter which emits
2469 * genattrtab.c (main): Emit include of function.h
2470 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
2471 get_insns instead of gen_sequence.
2472 * config/cris/cris.c (cris_split_movdx): Likewise.
2473 * emit-rtl.c (emit_insns*): Kill.
2474 (try_split): Expect insn list instead of SEQUENCE.
2475 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
2476 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
2477 Make them abort if a SEQUENCE is given and RTL checking is
2479 (emit_*_scope): Don't forget to set scope on final insn.
2480 (gen_sequence): Move from here...
2481 * ssa.c (gen_sequence): To here as private function.
2482 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
2484 (expand_builtin_return, expand_builtin_mathfn): Likewise.
2485 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
2486 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
2487 (expand_builtin_expect_jump): Use get_insns and fix comments.
2488 * calls.c (try_to_integrate): Use emit_insn_foo.
2489 (expand_call, emit_library_call_value_1): Likewise.
2490 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
2491 (emit_move_insn_1): Use get_insns instead of gen_sequence.
2492 (expand_expr): Use emit_insn_foo.
2493 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
2494 * except.c (build_post_landing_pads): Likewise.
2495 * flow.c (attempt_auto_inc): Likewise.
2496 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
2497 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
2498 * function.c (fixup_var_refs_insn): Use get_insns instead of
2500 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
2501 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
2502 (fixup_stack_1, purge_addressof_1, expand_main_function,
2503 get_arg_pointer_save_area): Likewise.
2504 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
2505 expand_function_end): Use emit_insn_foo.
2506 (record_insns, keep_stack_depressed): Work with insn list instead
2507 of SEQUENCE, fix comments.
2508 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
2509 noce_try_store_flag_constants, noce_try_store_flag_inc,
2510 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
2511 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
2512 (noce_process_if_block): Use get_insns instead of gen_sequence.
2513 * optabs.c (add_equal_note): Work with insn list, fix comments.
2514 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
2515 (expand_unop, expand_complex_abs, expand_unop_insn,
2516 expand_no_conflict_block): Likewise.
2517 (gen_move_insn): Use get_insns instead of gen_sequence.
2518 (gen_cond_trap): Likewise.
2519 * integrate.c (copy_rtx_and_substitute): Likewise.
2520 (emit_initial_value_sets): Use emit_insn_foo.
2521 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
2522 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
2523 now that RTL generators give insn lists.
2524 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
2525 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
2526 instead of gen_sequence.
2527 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
2528 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
2529 instead of gen_sequence.
2530 * loop.c (move_movables, emit_prefetch_instructions,
2531 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
2533 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
2534 (product_cheap_p): Likewise, and add commentary about RTL wastage
2536 * lcm.c (optimize_mode_switching): Use get_insns instead of
2538 * profile.c (gen_edge_profiler): Likewise.
2539 * regmove.c (copy_src_to_dest): Likewise.
2540 * reg-stack.c (compensate_edge): Likewise and fix comment.
2541 * gcse.c (process_insert_insn): Likewise.
2542 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
2543 * jump.c (delete_prior_computation): Update comment.
2544 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
2545 of gen_sequence, update comments to match.
2546 * recog.c (peephole2_optimize): Work with insn lists instead of
2548 * sched-vis.c (print_pattern): Abort on SEQUENCE.
2549 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
2550 Use get_insns instead of gen_sequence.
2551 (copy_loop_body): Likewise and don't emit dummy NOTE.
2552 * genrecog.c: Don't mention SEQUENCE rtl in comments.
2553 * combine.c (try_combine): Expect insn lists from split generator.
2554 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
2557 2002-06-11 Roger Sayle <roger@eyesopen.com>
2558 Andreas Jaeger <aj@suse.de>
2560 * cfgbuild.c: Update copyright years.
2562 2002-06-11 Andreas Schwab <schwab@suse.de>
2564 * config/m68k/m68k.h (PREDICATE_CODES): Define.
2566 2002-06-11 Eric Christopher <echristo@redhat.com>
2568 * doc/tm.texi (Run-time Target): Add comment about flag_iso
2570 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
2571 * config/mips/ecoffl.h: Ditto.
2572 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
2573 (CPP_PREDEFINES): Ditto.
2574 * config/mips/elfl64.h: Ditto.
2575 * config/mips/elfl.h: Ditto.
2576 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
2577 out until irix header consolidation.
2578 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
2579 with SUBTARGET_OS_CPP_BUILTINS.
2580 * config/mips/iris6.h: Ditto.
2581 (CPLUSPLUS_CPP_SPEC): Remove.
2582 * config/mips/linux.h: Ditto.
2583 * config/mips/netbsd.h: Ditto.
2584 * config/mips/openbsd.h: Ditto.
2585 * config/mips/rtems.h: Ditto.
2586 * config/mips/rtems64.h: Ditto.
2587 * config/mips/sni-svr4.h: Ditto.
2588 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
2589 ISA_MIPS32, ISA_MIPS64): New defines.
2590 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
2591 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
2592 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2593 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
2594 (TARGET_CPU_CPP_BUILTINS): Define.
2595 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
2596 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
2597 (movdicc): Remove check for ISA_MIPS32.
2598 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
2599 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
2600 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
2601 sunge_sf, sunle_df, sunle_sf): New patterns.
2603 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
2605 * Makefile.in: Update cppmain.o.
2606 * cpphash.h (struct cpp_reader): Move some members to a
2608 (trad_line): Rename saved_line.
2609 (_cpp_read_logical_line_trad): Update.
2610 (_cpp_remove_overlay): New.
2611 * cppinit.c (cpp_create_reader): No need to set saved_line.
2612 (cpp_destroy): Update.
2613 (cpp_read_main_file): Only overlay if compiling.
2614 * cpplex.c (continue_after_nul): Return false if in directive.
2615 * cpplib.c (EXPAND): New.
2616 (directive_table, SEEN_EOL): Update.
2617 (end_directive): Remove overlay if traditional; don't skip
2618 line in traditional #define.
2619 (prepare_directive_trad): New.
2620 (_cpp_handle_directive, run_directive): Update for traditional
2622 (lex_macro_node): Simplify, don't use lex_identifier_trad.
2623 * cpplib.h (struct options): Add preprocess_only.
2624 * cppmain.c: Don't include intl.h.
2625 (cpp_preprocess_file): Set options->preprocess_only.
2626 (scan_translation_unit_trad): Fix, and print line numbers.
2627 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
2628 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
2629 save_replacement_text, _cpp_create_trad_definition): Update for
2631 (_cpp_overlay_buffer): Save line number.
2632 (_cpp_remove_overlay): Rename from restore_buff, restore line.
2633 (_cpp_read_logical_line_trad): Don't handle overlays here.
2634 (scan_out_logical_line): Process directives.
2636 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
2638 * gthr-win32.h: Wrap functions in extern "C".
2639 (__gthread_key_t): Typedef as unsigned long,
2641 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
2642 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
2643 (__gthr_win32_once, __gthr_win32_key_create,
2644 __gthr_win32_key_delete, __gthr_win32_getspecific,
2645 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2646 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2647 __gthr_win32_mutex_unlock): Declare.
2648 (__gthread_once,__gthread_key_create,
2649 __gthread_key_delete, __gthread_getspecific,
2650 __gthread_setspecific, __gthread_mutex_init_function,
2651 __gthread_mutex_lock,__gthread_mutex_trylock,
2652 __gthread_mutex_unlock): Call corresponding
2653 __gthr_win32_* extern implementations if #defined
2654 __GTHREAD_HIDE_WIN32API.
2655 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
2656 $(srcdir)/config/i386/gthr-win32.c
2657 * config/i386/gthr-win32.c: New implementation file.
2658 (__gthr_win32_once, __gthr_win32_key_create,
2659 __gthr_win32_key_delete, __gthr_win32_getspecific,
2660 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2661 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2662 __gthr_win32_mutex_unlock): New functions, based on
2663 static inlines in gthr-win32.h.
2665 2002-06-10 Bob Wilson <bob.wilson@acm.org>
2667 * config/xtensa/xtensa.c (override_options): Don't warn about
2668 using -fpic or -fPIC when PIC is enabled by default.
2670 2002-06-10 Roger Sayle <roger@eyesopen.com>
2672 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
2674 2002-06-10 Zack Weinberg <zack@codesourcery.com>
2676 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
2677 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
2678 exists, substitute its pathname as @extra_modes_file@, define
2679 EXTRA_MODES_FILE to be an appropriate string to #include it
2680 with, and define EXTRA_CC_MODES to 1.
2682 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
2683 it's defined. Get rid of redundancy in calling sequence for
2684 CC; don't use it to define CCmode, to avoid a warning.
2685 * libgcc2.c: Include symcat.h for the sake of machmode.def.
2687 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
2688 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
2689 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
2691 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
2692 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
2694 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
2695 defining extra CC modes.
2697 2002-06-10 Roger Sayle <roger@eyesopen.com>
2698 Andreas Jaeger <aj@suse.de>
2700 * cfgrtl.c (create_basic_block_structure): Remove index argument
2701 and use last_basic_block++ instead. (create_basic_block): Update.
2702 * cfgbuild.c (find_basic_blocks_1): Likewise.
2704 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
2705 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
2706 * sched-ebb.c (schedule_ebbs): Likewise.
2707 * sched-rgn.c (schedule_insns): Likewise.
2708 * ssa-ccp.c (ssa_const_prop): Likewise.
2709 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
2710 * toplev.c (rest_of_compilation): Likewise.
2711 * config/ia64/ia64.c (ia64_reorg): Likewise.
2713 2002-06-10 Roger Sayle <roger@eyesopen.com>
2715 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
2716 of matching registers.
2718 2002-06-10 Roger Sayle <roger@eyesopen.com>
2720 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
2721 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
2723 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
2725 * config/mmix/mmix.h: Improve comments.
2726 (CPP_SPEC, CPP_PREDEFINES): Don't define.
2727 (TARGET_CPU_CPP_BUILTINS): Define.
2728 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
2729 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
2731 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
2733 (mmix_constant_address_p): Remove another
2734 redundant test before case.
2735 (mmix_canonicalize_comparison): Remove unused function.
2736 (mmix_print_operand_address): Don't test and adjust for operand in
2737 non-canonical format.
2738 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
2739 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
2741 2002-06-10 Zack Weinberg <zack@codesourcery.com>
2743 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
2744 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
2745 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
2746 (gen_compare): Use CCmode unconditionally.
2748 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2750 PR optimization/6759
2751 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
2754 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2757 * c-decl.c (grokfield): Allow user defined types if they declare
2758 structs or unions for unnamed fields.
2760 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2763 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
2765 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2767 PR optimization/6842
2768 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
2769 operand subreg cannot be simplified.
2771 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2773 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
2774 (compare_constant): Likewise.
2775 (output_addressed_constants): Likewise.
2777 2002-06-10 Jakub Jelinek <jakub@redhat.com>
2779 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
2780 merge bb with itself.
2782 2002-06-10 Richard Henderson <rth@redhat.com>
2784 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
2785 (builtin_zapnot): Likewise.
2787 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
2790 2002-06-10 Eric Christopher <echristo@redhat.com>
2792 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
2793 prototype and function.
2794 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
2795 (call_insn_operand): Remove half pic references.
2796 (legitimate_address_p): Ditto.
2797 * config/i386/i386.h: Remove half pic defines.
2799 2002-06-10 Eric Christopher <echristo@redhat.com>
2801 * doc/extend.texi (Return Address): Add note explaining the side-
2802 effects of inlining on __builtin_return_address.
2804 2002-06-10 Tom Tromey <tromey@redhat.com>
2806 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
2807 (c-common.o): Depend on langhooks.h.
2809 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
2811 * cpphash.h (_cpp_read_logical_line_trad,
2812 _cpp_expansions_different_trad): Update prototypes.
2813 * cpplex.c (continue_after_nul): New.
2814 * cppmain.c: Include cpphash.h.
2815 (scan_translation_unit_trad): New.
2816 (cpp_preprocess_file): Call it.
2817 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
2819 (_cpp_expansions_different_trad): Update prototype.
2821 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
2823 Fix cfi generation for SH[1-4]:
2825 * sh.c (frame_insn): New function.
2826 (output_stack_adjust): Add parameter emit_fn. All callers changed.
2827 (push): Now returns rtx. Use frame_insn.
2828 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2830 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2832 2002-06-10 Zack Weinberg <zack@codesourcery.com>
2834 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2836 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2837 (distclean): ... not here. But do delete all testsuite/*.log,
2838 testsuite/*.sum files here. Delete mkheaders. Delete
2839 po/*.gmo and the testsuite directory in a split tree build.
2841 2002-06-10 Jeffrey Law <law@redhat.com>
2843 * alias.c (static_reg_base_value): New to hold RTL for
2844 items allocated once per function for the aliasing code.
2845 (init_alias_once_per_function): Initialize static_reg_base_value.
2846 (init_alias_analysis): Avoid throw-away allocations of RTL by
2847 using pre-computed values in static_reg_base_value.
2848 * function.c (prepare_function_start): Call
2849 init_alias_once_per_function appropriately.
2850 * rtl.h (init_alias_once_per_function): Declare.
2851 * caller-save (init_caller_save): Restructure slightly to
2852 avoid lots of silly RTL generation.
2853 * expr.c (init_expr_once): Likewise.
2854 * reload1.c (reload_cse_regs_1): Allocate throw-away register
2855 RTL object here. Pass it into children.
2856 (reload_cse_simplify_operands): Use passed-in register RTL
2858 (reload_cse_simplify): Pass through throw-away register
2861 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
2863 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2865 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
2867 * gcc.c (process_command): Avoid assignment to read-only location.
2868 Fix sizeof calculation.
2870 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
2872 * cpphash.h (struct cpp_macro): Put comments on their own lines.
2873 (_cpp_expansions_different_trad): New.
2874 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2875 * cpptrad.c (canonicalize_text): New.
2876 (scan_out_logical_line): Handle no arguments correctly.
2877 (save_replacement_text): Commit memory when finished.
2878 (_cpp_expansions_different_trad): New.
2880 2002-06-10 Tim Josling <tej@melbpc.org.au>
2882 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2884 (lang_names): Add treelang and cobol.
2885 (get_file_basename): Add code to support treelang and cobol as
2886 4th and 5th users of c-common.c.
2888 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
2890 * Makefile.in (install-driver): Install driver as
2891 $(target_alias)-gcc-$(version).
2892 * gcc.c (spec_version): Make const.
2893 (process_command): Handle -V and -b by using exec.
2894 * doc/invoke.texi (Target Options): Restore -V option,
2895 update docs for -b option.
2897 2002-06-10 Tim Josling <tej@melbpc.org.au>
2899 * configure.in (remaining_languages_check):
2900 Added check that all languages specified were found.
2901 Exit if not found. Previous behaviour was silent failure.
2902 * configure: Regenerated.
2904 2002-06-10 Tim Josling <tej@melbpc.org.au>
2906 First steps to making treelang documentation compliant, based on
2907 instructions in sourcebuild.texi. Also add to gcc.c list of
2910 * doc/contrib.texi: Add self as contributor of treelang.
2912 * doc/frontends.texi: Add mention of treelang.
2914 * doc/invoke.texi (Overall Options): Add mention of treelang.
2916 * doc/standards.texi: Add mention of treelang.
2918 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
2920 * config/cris/cris.c: Include ggc.h
2922 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
2924 * cpphash.h (_cpp_push_text_context): Update.
2925 (_cpp_arguments_ok): New.
2926 * cppmacro.c (_cpp_arguments_ok): New, split out from...
2927 (collect_args): ...here.
2928 (_cpp_push_text_context): Change inputs.
2929 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2930 replace_args_and_push): New.
2931 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2932 Don't use IS macros directly.
2933 (scan_out_logical_line): Handle function-like macro argument
2935 (push_replacement_text): Update.
2936 (replacement_length): Remove.
2937 (_cpp_create_trad_definition): Don't skip whitespace before
2940 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
2942 * config/avr/avr.c (avr_mcu_types): Update for new devices.
2943 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2944 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2945 * config/avr/avr.md ("type" and "length" attributes): New type
2946 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
2947 output a single "call" or "rcall" insn depending on device size.
2948 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2950 2002-06-09 David Edelsohn <edelsohn@gnu.org>
2952 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2953 synonym for 630. Add power4. Remove embedded processors. Use -m604
2955 (CPP_CPU_SPEC): Add power3 and power4.
2956 (PROCESSOR_DEFAULT): Change to 604e.
2957 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2958 (CPP_CPU_SPEC): Similar additions.
2959 (enum process_type): Add POWER4.
2960 (RTX_COSTS): Add POWER4.
2961 (CPP_CPU_SPEC): Similar additions.
2962 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2963 (PROCESSOR_DEFAULT64): Define.
2964 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2965 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2967 (rs6000_issue_rate): Add Power4.
2968 * config/rs6000/rs6000.md (cpu attr): Add power4.
2969 (iu compare): Remove 604, 604e, 620, 630.
2970 Add basic Power4 scheduling information.
2971 (mfcr/mtcrf): Change type attribute to cr_logical.
2973 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2975 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
2977 * gengtype-lex.l: Fix format specifier warning.
2979 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
2981 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2982 lieu of isspace/IDchar.
2983 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2984 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
2987 2002-06-08 Zack Weinberg <zack@codesourcery.com>
2989 * Makefile.in (LIBCPP_OBJS): Take out version.o.
2990 * cpphash.h (cpp_reader): Take out print_version member.
2991 * cppinit.c: (cpp_handle_option): Don't do anything with
2992 -version. Just set help_only for --version, --target-help.
2993 Just set verbose option for -v.
2994 (cpp_post_options): Don't print a version string.
2996 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
2998 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2999 (avr_section_type_flags): New, handle .noinit* sections.
3001 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3003 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
3004 and include netbsd_entry_point.
3005 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3006 (NETBSD_ENTRY_POINT): Define.
3008 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3010 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
3011 if not already defined.
3012 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
3014 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
3016 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
3017 in a noreturn function.
3018 (avr_output_function_prologue, avr_output_function_epilogue):
3019 Correct function size calculation. Do not crash on empty function.
3020 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
3022 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3024 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3025 netbsd_link_spec and netbsd_entry_point.
3026 (LINK_SPEC): Use %(netbsd_link_spec).
3027 (NETBSD_ENTRY_POINT): Define.
3029 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3031 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
3033 (LINK_ARCH64_SPEC): Likewise.
3034 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
3035 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
3037 2002-06-08 Marc Espie <espie@openbsd.org>
3039 * lists.c (free_list): Fix typo in comment.
3041 2002-06-08 Andreas Jaeger <aj@suse.de>
3043 * lcm.c (optimize_mode_switching): Add unused attribute for
3046 * sched-deps.c (sched_analyze): Remove unused variable.
3048 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
3050 * diagnostic.def: Don't capitalize diagnostict descriptors.
3052 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3054 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
3055 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
3056 (NETBSD_ENTRY_POINT): Define.
3058 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3060 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
3061 NETBSD_LINK_SPEC_ELF.
3062 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
3063 (NETBSD_ENTRY_POINT): Define.
3064 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
3065 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
3067 (NETBSD_ENTRY_POINT): Define.
3069 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3071 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
3072 netbsd_link_spec and netbsd_entry_point.
3073 (LINK_SPEC): Use %(netbsd_link_spec).
3074 (NETBSD_ENTRY_POINT): Define.
3076 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
3078 * config/netbsd-elf.h (LINK_SPEC): Rename to...
3079 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
3080 to specify program entry point.
3082 2002-06-07 Jeff Law <law@redhat.com
3084 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
3085 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
3086 than creating a new register.
3087 (distribute_notes): Likewise.
3088 * df.c (df_reg_use_gen): Likewise.
3089 (df_reg_clobber_gen): Likewise.
3090 (df_ref_record): Likewise.
3091 * expr.c (use_regs): Likewise.
3092 * flow.c (propagate_one_insn): Likewise.
3093 (mark_set_1): Likewise.
3094 (mark_used_reg): Likewise.
3095 * reload.c (emit_reload_insns): Likewise.
3097 2002-06-07 Roger Sayle <roger@eyesopen.com>
3099 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
3100 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
3101 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
3102 comparison code comp can be reversed.
3104 2002-06-07 Roger Sayle <roger@eyesopen.com>
3106 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
3107 constants last in comparisons. Optimize (x+1.0)>0.0 into the
3108 equivalent x > -1.0 when -ffast-math.
3110 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3112 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
3113 * config/mips/t-netbsd: New file.
3115 2002-06-07 Zack Weinberg <zack@codesourcery.com>
3117 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
3118 options their own entries.
3119 (parse_option): Clarify comment.
3120 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
3121 special case. Replace if/strcmp chain for -W options with
3122 use of new OPT_* entries for them.
3123 (cpp_handle_options): Update to match.
3124 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
3125 * c-decl.c: Update call to cpp_handle_option.
3127 2002-06-07 Akim Demaille <akim@epita.fr>
3129 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
3132 2002-06-07 Jeffrey Law <law@redhat.com>
3134 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
3137 2002-06-07 H.J. Lu (hjl@gnu.org)
3139 * configure.in: Add --enable-__cxa_atexit.
3140 * configure: Regenerated.
3141 * config.in: Likewise.
3143 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
3146 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
3148 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
3150 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3152 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
3154 2002-06-07 Jason Merrill <jason@redhat.com>
3156 * cppexp.c (num_equality_op): Use a temporary variable to work
3157 around gcc 3.0.4 bug.
3159 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
3161 * diagnostic.c (diagnostic_build_prefix): Tidy.
3163 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
3165 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
3166 scan_parameters, save_replacement_text, replacement_length): New.
3167 (scan_out_logical_line): Take a macro and save parameters if
3169 (_cpp_logical_line_trad): Update.
3170 (_cpp_create_trad_definition): Update to handle function-like
3172 * cpplex.c (new_buff): Update.
3173 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
3174 * cpphash.h: ...here.
3175 (CPP_ALIGN2, _cpp_save_parameter): New.
3176 * cppmacro.c (save_parameter): Rename, export.
3177 (parse_params): Update.
3179 2002-06-07 Andreas Jaeger <aj@suse.de>
3181 * config/mmix/mmix.c: Remove extra broken prototype for
3182 mmix_init_machine_status.
3184 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
3186 * gengtype.c: Add comments before all the routines.
3188 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
3190 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
3191 from and add t-sh64 to ${tmake_file}.
3192 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
3193 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
3194 * config/sh/t-netbsd-sh5-32: Remove.
3195 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
3197 (MULTILIB_DIRNAMES): Define.
3199 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
3201 * i386.md (and promoting splitters): Disable QI to SImode promoting
3202 when doing so changes immediate to be 32bit.
3204 * rtl.h (emit_*_scope): Declare.
3205 * emit-rtl.c (emit_*_scope): New global functions.
3206 (try_split): Copy scope.
3207 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3208 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3209 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
3210 noce_process_if_block, find_cond_trap): Copy scopes.
3211 * recog.c (peephole2_optimize): likewise.
3213 2002-06-06 Jeffrey Law <law@redhat.com>
3215 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
3217 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
3219 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
3221 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3223 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
3224 ($(docdir)/gccinstall.info): New target.
3225 (info): Depend on it.
3226 (gccinstall.dvi): New target.
3227 (dvi): Depend on it.
3228 * doc/.cvsignore: Ignore new info files.
3229 * doc/install.texi (@setfilename): Reflect new info filename.
3231 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
3233 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
3236 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
3239 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
3240 c_common_get_alias_set.
3241 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
3243 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3245 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
3247 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
3248 * avr/avr.c (avr_output_function_epilogue): Use above to determine
3250 * pa/pa.c (pa_output_function_prologue): Likewise.
3252 2002-06-05 David S. Miller <davem@redhat.com>
3254 * integrate.c (subst_constants): Handle 'B' RTL format.
3256 2002-06-05 Eric Christopher <echristo@redhat.com>
3258 * varasm.c (make_decl_rtl): Fix comment for removed
3261 2002-06-05 Eric Christopher <echristo@redhat.com>
3263 * Makefile.in: Remove missed halfpic bits.
3265 2002-06-05 Eric Christopher <echristo@redhat.com>
3267 * toplev.c: Remove half-pic.
3268 * config/mips/mips.c: Ditto.
3269 * config/mips/mips.h: Ditto. Remove unused defines.
3270 * config/mips/openbsd.h: Update comment to reflect above.
3271 * config/mips/mips.md: Remove half-pic constraints.
3272 * halfpic.h: Delete.
3275 2002-06-05 Jeffrey Law <law@redhat.com>
3277 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
3278 rejects (mem (lo_sum (reg) (unspec))), but will allow
3279 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
3281 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
3283 * cpphash.h (_cpp_create_definition): Update prototype.
3284 (_cpp_push_text_context, _cpp_create_trad_definition): New.
3285 ( cpp_lex_identifier_trad): New.
3286 (_cpp_set_trad_context): New.
3287 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
3288 * cpplib.c (SEEN_EOL): Update.
3289 (lex_macro_node): Update for -traditional.
3290 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
3291 * cppmacro.c (_cpp_create_definition): Split into
3292 create_iso_definition() and _cpp_create_trad_definition().
3293 (warn_of_redefinition): Update prototype; handle traditional
3295 (_cpp_push_text_context): New.
3296 * cpptrad.c (skip_whitespace, push_replacement_text): New.
3297 (lex_identifier): Call ht_lookup with correct start.
3298 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
3299 _cpp_set_trad_context): New.
3300 (scan_out_logical_line): Update to handle changing contexts.
3302 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
3304 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
3306 * config/sh/t-be (MULTILIB_ENDIAN): Set.
3307 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
3308 * t-sh (MULTILIB_ENDIAN): Set.
3309 (MULTILIB_OPTIONS): Use it.
3310 * t-sh64 (MULTILIB_OPTIONS): Likewise.
3311 (MULTILIB_DIRNAMES): Likewise.
3313 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
3315 * toplev.h (report_error_function): Remove.
3317 * diagnostic.h (location_t): New datatype.
3318 (text_info): Likewise.
3319 (diagnostic_info): Likewise.
3320 (output_prefix): New macro.
3321 (diagnostic_last_function_changed): Likewise.
3322 (diagnostic_set_last_function): Likewise.
3323 (diagnostic_last_module_changed): Likewise.
3324 (diagnostic_set_last_module): Likewise.
3325 (report_diagnostic): Now macro.
3326 (diagnostic_set_info): Declare.
3328 * diagnostic.c (report_problematic_module): Rename to
3329 diagnostic_repor_current_module.
3330 (set_diagnostic_context): Remove.
3331 (count_error): Rename to diagnostic_error_count.
3332 (error_function_changed): Remove.
3333 (record_last_error_function): Likewise.
3334 (error_module_changed): Likewise.
3335 (record_last_error_module): Likewise.
3336 (context_as_prefix): Rename to diagnostic_build_prefix.
3337 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
3338 (diagnostic_set_info): New function.
3340 * objc/objc-act.c: #include diagnostic.h
3341 (error_with_ivar): Adjust call to count_error.
3342 (warn_with_method): Likewise.
3343 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
3345 2002-06-05 Bob Wilson <bob.wilson@acm.org>
3347 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
3348 lang_hooks.types.make_type instead of make_node; set up
3349 __va_list_tag type decl.
3350 (xtensa_builtin_saveregs): Remove broken use of
3351 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
3352 for saved registers; add varargs alias set.
3354 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
3357 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
3358 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3359 CPP_PREDEFINES and part of CPP_SPEC.
3360 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
3361 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
3363 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
3365 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
3367 2002-06-05 Alan Modra <amodra@bigpond.net.au>
3369 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
3371 2002-06-04 Zack Weinberg <zack@codesourcery.com>
3373 * gengtype-yacc.y: Make sure all rules end with a semicolon.
3375 2002-06-04 Bob Wilson <bob.wilson@acm.org>
3377 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
3378 typo in function prototype and include "ggc.h" header.
3380 2002-06-04 Richard Henderson <rth@redhat.com>
3382 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
3383 (print_operand) ['U']: Likewise.
3384 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
3385 (alpha_expand_unaligned_store_words): Likewise.
3386 (alpha_expand_builtin_vector_binop): Fix typo.
3387 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
3388 umulh, and cix insns.
3389 (one_arg_builtins): Add cix builtins.
3390 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
3391 (alpha_expand_builtin): Fix typo in arity.
3392 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
3393 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
3394 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
3395 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
3396 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
3397 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
3398 builtin_ctlz, builtin_ctpop): New.
3399 * doc/extend.texi (Alpha Built-in Functions): Update.
3401 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
3403 * gengtype.c (write_gc_root): Don't unnecessarily prevent
3404 global variable-length arrays being roots.
3406 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
3407 * configure.in (config_gtfiles): New variable.
3408 (all_gtfiles): Initialise from config_gtfiles.
3409 * configure: Regenerate.
3411 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
3414 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
3415 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
3416 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
3417 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
3418 win32.h (CPP_SPEC): Remove cpp_cpu.
3419 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
3420 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
3422 2002-06-04 Janis Johnson <janis187@us.ibm.com>
3424 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
3426 2002-06-04 Jeff Law <law@redhat.com.
3427 David Edelsohn <edelsohn@gnu.org>
3428 Michael Matz <matz@kde.org>
3430 * sched-int.h (struct deps): New field libcall_block_tail_insn.
3431 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
3432 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
3433 is set, then mark the current insn as being part of a libcall
3435 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
3437 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
3438 insns against the issue rate.
3440 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
3442 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
3443 * final.c (final_scan_insn): Likewise.
3444 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
3445 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
3446 * haifa-sched.c (unlink_other_notes): Likeewise.
3447 (reemit_notes): Likewise.
3448 * print-rtl.c (print_rtx): Likewise.
3449 * sched-deps (sched-analyze): Likewise.
3450 * rtl.c (note_insn_name): Likewise.
3451 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
3452 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
3455 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3457 * varasm.c (mark_constants): Handle RTX format 'B'.
3459 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
3461 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
3462 (struct cpp_context): Add traditional fields.
3463 * cppmacro.c (paste_all_tokens, push_ptoken_context,
3464 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
3465 * cpptrad.c (skip_comment, lex_identifier,
3466 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
3468 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
3470 * gbl-ctors.h: Fix formatting.
3472 * gccspec.c: Likewise.
3474 * gcov-io.h: Likewise.
3476 * ggc-common.c: Likewise.
3478 * ggc-page.c: Likewise.
3479 * ggc-simple.c: Likewise.
3480 * global.c: Likewise.
3481 * graph.h: Likewise.
3482 * gthr-dce.h: Likewise.
3484 * gthr-posix.h: Likewise.
3485 * gthr-rtems.h: Likewise.
3486 * gthr-solaris.h: Likewise.
3487 * gthr-win32.h: Likewise.
3489 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
3491 Merge from pch-branch:
3493 * gengtype.h (UNION_OR_STRUCT_P): New macro.
3494 * gengtype.c (write_gc_structure_fields): Use it.
3495 (write_gc_root): Use it here too.
3497 * gengtype.c (write_gc_structure_fields): Assume that lengths
3498 of typenames fit into an 'int'; don't pass a size_t to "%d" in
3500 (write_gc_marker_routine_for_structure): Likewise.
3501 (write_gc_types): Likewise.
3502 (write_gc_root): Likewise.
3504 * varray.h (VARRAY_CLEAR): New.
3505 (varray_clear): Prototype.
3506 * varray.c (varray_clear): New.
3507 * cselib.c (reg_values_old): New.
3508 (used_regs_old): New.
3509 (cselib_init): Use cached varrays if available to avoid
3510 generating large amounts of garbage.
3511 (cselib_finish): Don't throw away old varrays.
3513 * final.c (insn_addresses_): Move out of ifdef.
3515 * varray.c (uses_ggc): Make more varray kinds GCable.
3516 * varray.h (union varray_data_tag): Let gengtype see
3517 fields 'generic' and 'te'.
3518 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
3519 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
3520 (reg_to_stack): Don't call VARRAY_FREE.
3521 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
3522 (insn_addresses_): Use gengtype to mark.
3523 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
3524 pointers; handle generic pointers in unused union fields.
3525 (get_output_file_with_visibility): Include cselib.h,
3526 insn-addr.h in gtype-desc.c.
3527 * function.c (prologue): Use gengtype to mark.
3528 (epilogue): Likewise.
3529 (sibcall_epilogue): Likewise.
3530 * dependence.c: Include gt-dependence.h, ggc.h.
3531 (struct def_use): Use gengtype to mark.
3532 (struct loop): Likewise.
3533 (struct induction): Likewise.
3534 (struct dependence): Likewise.
3535 (def_use_chain): Likewise.
3536 (dep_chain): Likewise.
3537 (loop_chain): Likewise.
3538 (induction_chain): Likewise.
3539 (init_dependence_analysis): Don't free anything, just clear pointers.
3540 (build_def_use): Use GGC to allocate def_use.
3541 (add_loop): Use GGC to allocate loop.
3542 (find_induction_variable): Use GGC to allocate induction.
3543 (check_node_dependence): Use GGC to allocate induction, dependence.
3544 (dump_node_dependence): Don't free varrays.
3545 (end_dependence_analysis): Likewise.
3546 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
3547 (struct elt_loc_list): Likewise.
3548 (struct elt_list): Likewise.
3549 * cselib.c: Don't include obstack.h.
3550 (hash_table): Use gengtype to mark.
3551 (reg_values): Use gengtype to mark.
3552 (used_regs): Use gengtype to mark.
3553 (cselib_obstack): Delete.
3554 (cselib_startobj): Delete.
3555 (empty_vals): Mark as deletable.
3556 (empty_elt_lists): Mark as deletable.
3557 (empty_elt_loc_lists): Mark as deletable.
3558 (new_elt_list): Use GGC to allocate struct elt_list.
3559 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
3560 (clear_table): Don't delete obstack; don't unnecessarily clear
3561 deletable variables.
3562 (new_cselib_val): Use GGC to allocate struct cselib_val.
3563 (cselib_init): Don't set up obstacks. Use GGC to allocate
3565 (cselib_finish): Just clear variables, don't free anything.
3566 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
3567 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
3568 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
3569 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
3570 (gt-reg-stack.h): New rule.
3571 (gt-dependence.h): New rule.
3572 (gtype-desc.o): Add cselib.h, insn-addr.h.
3574 * varray.c: Use only necessary headers.
3575 (element_size): New.
3577 (varray_init): Take type, not size. Use GGC if appropriate.
3578 (varray_grow): Update for change to struct varray_head_tag.
3579 Use GGC if appropriate.
3580 * varray.h (struct const_equiv_data): Use gengtype.
3581 (enum varray_data_enum): New.
3582 (union varray_data_tag): Use gengtype.
3583 (struct varray_head_tag): Use gengtype. Replace size field with
3584 enum varray_data_enum.
3585 (varray_init): Update prototype.
3586 (VARRAY_SCHED_INIT): Delete.
3587 (VARRAY_*_INIT): Update for change to varray_init.
3588 (VARRAY_SCHED): Delete.
3589 (VARRAY_PUSH_SCHED): Delete.
3590 (VARRAY_TOP_SCHED): Delete.
3591 * tree.h: Update for change to length specifier.
3592 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
3593 (clone_body): Likewise.
3594 * ssa.h (ssa_definition): Use gengtype to mark.
3595 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
3596 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
3597 * rtl.h (struct rtvec_def): Update for change to length specifier.
3598 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
3599 (struct initial_value_struct): Update for change to length specifier.
3600 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
3601 (ggc_add_tree_varray_root): Delete prototype.
3602 (ggc_mark_rtx_varray): Delete prototype.
3603 (ggc_mark_tree_varray): Delete prototype.
3604 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
3605 (ggc_add_tree_varray_root): Delete.
3606 (ggc_mark_rtx_varray): Delete.
3607 (ggc_mark_tree_varray): Delete.
3608 (ggc_mark_rtx_varray_ptr): Delete.
3609 (ggc_mark_tree_varray_ptr): Delete.
3610 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
3611 (create_varray): Delete prototype.
3612 * gengtype.c (varrays): Delete.
3613 (create_varray): Delete.
3614 (adjust_field_type): Detect array of string pointers.
3615 (process_gc_options): Remove code to handle varray_type option.
3616 (set_gc_used_type): Remove TYPE_VARRAY case.
3617 (output_escaped_param): New.
3618 (write_gc_structure_fields): Use output_escaped_param on all
3619 parameters. Handle 'skip' with 'use_param' option. Handle
3620 arrays of strings. Remove TYPE_VARRAY handling.
3621 (write_gc_roots): Use boolean to detect 'length' option.
3622 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
3623 (struct_fields): Call adjust_field_type on array fields.
3624 (type): Remove VARRAY_TYPE case.
3625 (type_option): Likewise.
3626 * gengtype-lex.l: Don't consider varray_type a keyword.
3627 * function.h: Update for change to length specifier.
3628 (free_eh_status): Delete prototype.
3629 * function.c (free_after_compilation): Don't call free_eh_status.
3630 (reorder_blocks): Don't use VARRAY_FREE.
3631 * except.c (struct eh_status): Update for change to length specifier.
3632 remove varray_type specifier.
3633 (free_eh_status): Delete.
3634 * dwarf2out.c: Include gt-dwarf2out.h.
3635 (used_rtx_varray): Use gengtype to mark, move
3637 (incomplete_types): Likewise.
3638 (decl_scope_table): Likewise.
3639 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
3640 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
3641 * c-tree.h (struct lang_type): Update for change to length specifier.
3642 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
3643 * c-objc-common.c: Include gt-c-objc-common.h.
3644 (deferred_fns): Mark for gengtype.
3645 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
3646 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
3647 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
3648 (gtype-desc.o): Update dependencies.
3649 (dwarf2out.o): Add gt-dwarf2out.h.
3650 (varray.o): Update dependencies.
3651 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
3652 (gt-c-objc-common.h): New rule.
3653 (gt-dwarf2out.h): New rule.
3654 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
3656 * doc/gty.texi (GTY Options): Correct spelling.
3657 (GGC Roots): Likewise.
3658 * Makefile.in (TEXI_CPP_FILES): New.
3659 (TEXI_GCC_FILES): New.
3660 (TEXI_GCCINT_FILES): New.
3661 (TEXI_CPPINT_FILES): New.
3662 ($(docdir)/cpp.info): Use new macros.
3663 ($(docdir)/gcc.info): Likewise.
3664 ($(docdir)/gccint.info): Likewise.
3665 ($(docdir)/cppinternals.info): Likewise.
3666 (cpp.dvi): Likewise.
3667 (gcc.dvi): Likewise.
3668 (gccint.dvi): Likewise.
3669 (cppinternals.dvi): Likewise.
3671 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
3672 * doc/gccint.texi (Top): Include gty.texi.
3673 * doc/gty.texi: New file.
3675 * bitmap.c: Include ggc.h, gt-bitmap.h.
3676 (bitmap_ggc_free): New.
3677 (bitmap_elem_to_freelist): New.
3678 (bitmap_element_free): Use bitmap_elem_to_freelist.
3679 (bitmap_element_allocate): Allow use of GGC.
3680 (bitmap_clear): Use bitmap_elem_to_freelist.
3681 (bitmap_copy): Update for change to bitmap_element_allocate.
3682 (bitmap_set_bit): Likewise.
3683 (bitmap_operation): Update for changes elsewhere.
3684 (bitmap_initialize): Allow to create bitmaps that will use GGC.
3685 * bitmap.h (struct bitmap_element_def): Use gengtype.
3686 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
3687 (bitmap_initialize): Add extra parameter.
3688 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
3689 (BITMAP_ALLOCA): Delete.
3690 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
3691 (BITMAP_GGC_ALLOC): New.
3692 * Makefile.in (gtype-desc.o): Add bitmap.h.
3693 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
3694 (GTFILES): Add bitmap.c.
3695 (gt-bitmap.h): New rule.
3696 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
3697 * basic-block.h: Update for changes to bitmap_initialize.
3698 * except.c (exception_handler_label_map): Move into...
3699 (struct eh_status): Here.
3700 (struct eh_region): Make 'aka' GCable.
3701 (free_eh_status): Don't need to specially handle
3702 exception_handler_label_map.
3703 (add_ehl_entry): Update for changes to exception_handler_label_map.
3704 (find_exception_handler_labels): Likewise.
3705 (remove_exception_handler_label): Likewise.
3706 (maybe_remove_eh_handler): Likewise.
3707 (for_each_eh_label): Likewise.
3708 (remove_eh_handler): Allocate 'aka' using GGC.
3709 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
3710 to list of includes.
3712 * gengtype.c (write_gc_marker_routine_for_structure): Name
3713 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
3714 (write_gc_types): Arrange for the tests with NULL to be inlined.
3715 (write_gc_roots): Update uses of procedure pointers.
3716 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
3718 * Makefile.in (explow.o): Add dependency on gt-explow.h.
3719 (sdbout.o): Add dependency on gt-sdbout.h.
3721 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
3722 (mem_attrs_htab): Likewise.
3723 (init_emit_once): Don't call ggc_add_deletable_htab.
3724 * fold-const.c (size_htab): Use gengtype to clear unused entries.
3725 (size_int_type_wide): Don't call ggc_add_deletable_htab.
3726 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
3727 parameters, use them, change callers.
3728 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
3729 (write_gc_roots): Handle 'if_marked' option.
3730 (main): Don't need to call set_gc_used_type any more.
3731 * ggc.h (ggc_htab_marked_p): Delete.
3732 (ggc_htab_mark): Delete.
3733 (struct ggc_cache_tab): New.
3734 (gt_ggc_cache_rtab): New declaration.
3735 * ggc-common.c (struct d_htab_root): Delete.
3736 (d_htab_roots): Delete.
3737 (ggc_add_deletable_htab): Delete.
3738 (ggc_htab_delete): Handle new htab-deleting mechanism.
3739 (ggc_mark_roots): Use new htab-deleting mechanism.
3740 * tree.c (type_hash_table): Use gengtype to clear unused entries.
3742 (init_obstacks): Don't call ggc_add_deletable_htab.
3744 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
3745 (struct hashed_entry): Likewise.
3746 (nst_method_hash_list): Likewise.
3747 (cls_method_hash_list): Likewise.
3748 (HASH_ALLOC_LIST_SIZE): Delete.
3749 (ATTR_ALLOC_LIST_SIZE): Delete.
3750 * objc/objc-act.c (hash_init): Use ggc to allocate
3751 nst_method_hash_list, cls_method_hash_list.
3752 (hash_enter): Use ggc to allocate; allocate one entry at a time.
3753 (hash_add_attr): Likewise.
3754 (ggc_mark_hash_table): Delete.
3755 (objc_act_parse_init): Delete.
3756 (objc_init): Delete reference to objc_act_parse_init.
3757 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
3758 obstack.h. Replace references to 'struct hash_table' with htab_t.
3759 (struct symbol_hash_entry): Replace hash header with key field.
3760 (struct file_hash_entry): Replace hash header with key field.
3761 (struct demangled_hash_entry): Replace hash header with key field.
3762 (hash_string_eq): New.
3763 (hash_string_hash): New.
3764 (symbol_hash_newfunc): Delete.
3765 (symbol_hash_lookup): Modify to use htab_t.
3766 (file_hash_newfunc): Delete.
3767 (file_hash_lookup): Modify to use htab_t.
3768 (demangled_hash_newfunc): Delete.
3769 (demangled_hash_lookup): Modify to use htab_t.
3770 (tlink_init): Modify to use htab_t.
3773 * ggc.h: Delete forward structure declarations.
3774 Delete prototypes for deleted functions.
3775 * ggc-common.c: Don't include hash.h.
3776 (ggc_add_tree_hash_table_root): Delete.
3777 (ggc_mark_tree_hash_table_entry): Delete.
3778 (ggc_mark_tree_hash_table): Delete.
3779 (ggc_mark_tree_hash_table_ptr): Delete.
3780 * gengtype.c (write_gc_structure_fields): Allow param_is option.
3781 (write_gc_marker_routine_for_structure): Use visibility of
3782 the parameter if there is one.
3783 * function.c: Replace hash.h with hashtab.h. Replace references
3784 to 'struct hash_table *' with htab_t.
3785 (struct insns_for_mem_entry): Include a plain key.
3786 (fixup_var_refs_insns_with_hash): Update to use htab_t.
3787 (insns_for_mem_newfunc): Delete.
3788 (insns_for_mem_hash): Update to use htab_t.
3789 (insns_for_mem_comp): Likewise.
3790 (insns_for_mem_walk): Likewise.
3791 * c-lang.c: Include ggc.h.
3792 * Makefile.in (OBJS): Remove hash.o.
3793 (c-lang.o): Add GGC_H.
3794 (COLLECT2_OBJS): Remove hash.o.
3795 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
3796 (ggc-common.o): Remove hash.h.
3797 (function.o): Remove hash.h, add HASHTAB_H.
3798 (genautomata.o): Remove hash.h, add HASHTAB_H.
3800 * varasm.c (mark_const_str_htab_1): Delete.
3801 (mark_const_str_htab): Delete.
3802 (const_str_htab_del): Delete.
3803 (const_str_htab): Use gengtype to mark.
3804 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
3806 * tree.c (mark_tree_hashtable_entry): Delete.
3807 (mark_tree_hashtable): Delete.
3808 * tree.h (mark_tree_hashtable): Delete prototype.
3809 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
3810 (ggc_mark): Likewise.
3812 (htab_create_ggc): New.
3813 * ggc-common.c (ggc_calloc): New.
3814 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
3815 (struct type): Add param_struct structure.
3816 * gengtype.c (param_structs): New.
3817 (adjust_field_type): Handle param_is option.
3818 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
3819 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
3820 (write_gc_structure_fields): Add new PARAM parameter. Update
3821 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
3822 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
3823 Use it to generate function name. Update callers.
3824 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
3826 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
3828 (main): Define PTR as pointer-to-scalar. Don't specially
3829 mark deferred_string or ehl_map_entry.
3830 * gengtype-yacc.y (PARAM_IS): Add new token.
3831 (externstatic): Use adjust_field_type.
3832 (type_option): Add PARAM_IS.
3833 * gengtype-lex.l: Add rule for typedef of function pointers.
3834 Add rule for PARAM_IS.
3835 (IWORD): Add size_t.
3836 * except.c (exception_handler_label_map): Use gengtype to mark.
3837 (type_to_runtime_map): Likewise.
3838 (mark_ehl_map_entry): Delete.
3839 (mark_ehl_map): Delete.
3840 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3841 (t2r_mark_1): Delete.
3843 * Makefile.in (gtype-desc.o): Correct dependencies.
3844 (GTFILES): Add hashtab.h.
3845 (genautomata.o): Actually uses hashtab.h.
3847 * Makefile.in (stringpool.o): Add $(GGC_H).
3848 (dwarf2asm.o): Likewise.
3849 (GTFILES): Add hashtable.h.
3850 * c-common.h (struct c_common_identifier): Use gengtype.
3851 * c-decl.h (c_mark_tree): Delete.
3852 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3853 * c-tree.h (struct lang_identifier): Use gengtype.
3854 (union lang_tree_node): New.
3855 (c_mark_tree): Delete prototype.
3856 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3858 * gengtype-lex.l (IWORD): Allow 'bool'.
3860 * gengtype-yacc.y (ALIAS): New token.
3861 (type_option): New rule.
3862 (option): Use type_option.
3863 * gengtype.c (process_gc_options): New.
3864 (set_gc_used_type): Use it.
3865 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3866 Add new variable 't' to hold the type of the field being processed.
3867 Add more error checking. Use UNION_P when looking at 'desc' option.
3868 Handle language-specific structures containing other
3869 language-specific structures.
3870 (write_gc_types): Handle 'ptr_alias' option.
3871 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3872 * ggc-common.c (ggc_pending_trees): Delete.
3873 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3874 (ggc_mark_trees): Delete.
3875 (gt_ggc_m_tree_node): Delete.
3876 * ggc.h (ggc_pending_trees): Delete.
3877 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3878 * hashtable.h (ht_identifier): Use gengtype.
3879 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3880 * langhooks.h (struct lang_hooks): Delete mark_tree.
3881 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3883 * system.h: Poison LANG_HOOKS_MARK_TREE.
3884 * tree.c (tree_node_structure): New.
3885 * tree.h (struct tree_common): Use gengtype.
3886 (struct tree_int_cst): Likewise.
3887 (struct tree_real_cst): Likewise.
3888 (struct tree_string): Likewise.
3889 (struct tree_complex): Likewise.
3890 (struct tree_vector): Likewise.
3891 (struct tree_identifier): Likewise.
3892 (struct tree_list): Likewise.
3893 (struct tree_vec): Likewise.
3894 (struct tree_exp): Likewise.
3895 (struct tree_block): Likewise.
3896 (struct tree_type): Likewise.
3897 (struct tree_decl): Likewise.
3898 (enum tree_structure_enum): New.
3899 (union tree_node): Use gengtype, with an alias.
3900 (tree_node_structure): Prototype.
3901 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3903 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
3904 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
3905 to LANG_HOOKS_FUNCTION_FINAL.
3906 * Makefile.in (GTFILES): Add bitmap.h.
3907 * except.c (struct eh_region): Mark field 'aka' to be skipped.
3909 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3910 (alpha_init_machine_status): Give proper type.
3911 * Makefile.in (c-lang.o): Depend on gtype-c.h.
3912 (optabs.o): Depend on gt-optabs.h.
3913 (GTFILES): Add optabs.o.
3914 (gt-optabs.h): Add rule.
3915 * optabs.c: Include gt-optabs.h.
3917 * gengtype.c (set_gc_used_type): Correct some errors in last change.
3918 (write_gc_structure_fields): If a field which should be NULL is
3920 * c-pragma.c: Move struct align_stack and variable alignment_stack
3923 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3924 * config/xtensa/xtensa.c: Include gt-cris.h.
3925 (struct machine_function): Use gengtype to mark.
3926 * config/mmix/mmix.h (struct machine_function): Use gengtype
3928 * config/cris/t-cris: Add dependencies for gt-cris.h.
3929 * config/cris/cris.c: Include gt-cris.h.
3930 (struct machine_function): Use gengtype to mark.
3931 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3933 * doc/tm.texi (Per-Function Data): Delete references to
3934 mark_machine_status.
3935 * config/ia64/ia64.c (ia64_override_options): Don't set
3936 mark_machine_status.
3937 * config/i386/i386.c (override_options): Likewise.
3938 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3939 * config/arm/arm.c (arm_init_expanders): Likewise.
3940 * config/alpha/alpha.c (override_options): Likewise.
3941 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3942 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3943 (write_gc_structure_fields): Don't handle 'really' option.
3944 Handle 'maybe_null' option.
3945 (write_gc_types): Handle 'maybe_null' option.
3946 * function.h (struct function): Don't use "really".
3947 (mark_machine_status): Delete declaration.
3948 (mark_lang_status): Delete declaration.
3949 (gt_ggc_mr_machine_function): Delete prototype.
3950 (gt_ggc_mr_language_function): Delete prototype.
3951 * function.c (mark_machine_status): Delete.
3952 (mark_lang_status): Delete.
3953 (gt_ggc_mr_machine_function): Delete.
3954 (gt_ggc_mr_language_function): Delete.
3955 * c-tree.h (mark_c_function_context): Delete prototype.
3956 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3957 * c-decl.c (struct language_function): Rename from struct
3958 c_language_function. Update uses. Use gengtype to mark.
3959 (mark_c_function_context): Delete.
3960 * c-common.h (struct c_language_function): Rename from struct
3962 (mark_stmt_tree): Delete prototype.
3963 (c_mark_lang_decl): Delete prototype.
3964 (mark_c_language_function): Delete prototype.
3965 * c-common.c (mark_stmt_tree): Delete.
3966 (c_mark_lang_decl): Delete.
3967 (mark_c_language_function): Delete.
3969 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3970 (lang_bitmap): New typedef. Use where appropriate.
3971 (struct type): Add gc_used field, lang_struct field.
3972 (UNION_P): New macro.
3973 (new_structure): New prototype.
3974 (find_structure): Remove 'pos' parameter. Change all callers.
3975 * gengtype-lex.l: Update for changes to find_structure.
3976 * gengtype-yacc.y (typedef_struct): Use new_structure.
3977 (yacc_ids): Suppress warning.
3978 (type): Use new_structure.
3979 * gengtype.c (string_type): Update for changes to struct type.
3980 (find_structure): Just find a structure, don't worry about
3982 (new_structure): New.
3983 (note_yacc_type): Use new_structure.
3984 (set_gc_used_type): New.
3986 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3987 (write_gc_types): Handle TYPE_LANG_STRUCT.
3988 (write_gc_marker_routine_for_structure): New.
3989 (main): Call set_gc_used. Add some calls to set_gc_used_type
3990 for places where GCC doesn't use gengtype properly yet.
3991 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3992 (gt_ggc_m_tree_node): Likewise.
3994 * varasm.c (copy_constant): Call expand_constant if we hit
3995 something we can't recognise.
3997 * ggc-common.c (ggc_mark_rtvec_children): Delete.
3998 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3999 (lang_mark_false_label_stack): Delete.
4000 * rtl.h (struct rtvec_def): Use gengtype to mark.
4001 * ggc.h (ggc_mark_rtvec): Delete.
4002 (gt_ggc_m_rtvec_def): Delete.
4003 (ggc_mark_nonnull_tree): Delete.
4004 (ggc_mark_rtvec_children): Delete prototype.
4005 (lang_mark_false_label_stack): Delete declaration.
4007 * gengtype.h (note_yacc_type): Add prototype.
4008 * gengtype.c (note_yacc_type): New function.
4009 * gengtype-lex.l: Add lexer support for yacc files.
4010 * gengtype-yacc.y (start): Extract union from yacc files.
4011 (yacc_union): New rule.
4012 (yacc_typematch): New rule.
4013 (yacc_ids): New rule.
4014 (enum_items): Tweak for efficiency.
4015 (optionseq): Likewise.
4017 * c-common.h (struct language_function): Use gengtype.
4018 (struct c_lang_decl): Likewise.
4019 * c-tree.h (struct lang_decl): Likewise.
4020 (struct lang_type): Likewise.
4021 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
4022 tree language substructures.
4024 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
4026 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
4028 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
4030 * stmt.c (struct nesting): Add discriminator. Use gengtype to
4031 mark. Remove 'data.block.cleanup_ptr' field.
4032 (struct stmt_status): Use usual technique to mark struct nesting.
4033 (gt_ggc_mr_nesting_cond): Delete.
4034 (gt_ggc_mr_nesting_loop): Delete.
4035 (gt_ggc_mr_nesting_block): Delete.
4036 (gt_ggc_mr_nesting_case_stmt): Delete.
4037 (expand_start_cond): Set discriminator.
4038 (expand_start_loop): Likewise.
4039 (expand_start_null_loop): Likewise.
4040 (expand_start_bindings_and_block): Set discriminator. Don't set
4042 (expand_decl_cleanup): Replace 'cleanup_ptr' with
4043 &thisblock->data.block.cleanups.
4044 (expand_start_case): Set discriminator.
4045 (expand_start_case_dummy): Set discriminator.
4047 * ggc-callbacks.c: Remove.
4049 * gengtype.h (struct type): Add 'u.s.bitmap' field.
4050 (find_structure): Add 'pos' parameter.
4051 * gengtype-lex.l: Update callers to find_structure.
4052 * gengtype-yacc.y: Likewise.
4053 * gengtype.c (find_structure): Allow for structures to be defined
4054 in multiple language backends.
4055 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
4056 (counter): Rename to gc_counter.
4057 (write_gc_structure_fields): Fail when writing out fields for
4058 an incomplete structure. Ignore arrays of scalars. Handle
4060 (write_gc_types): Reset counter for each procedure written.
4062 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
4063 (free_case_nodes): Delete.
4064 (expand_end_case_type): Delete call to free_case_nodes.
4066 * Makefile.in (cselib.o): Include gt-<filename>.h.
4068 (profile.o): Likewise.
4069 (alias.o): Likewise.
4070 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
4071 alphabetize backend files.
4072 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
4073 * alias.c: Use gengtype for roots.
4074 * c-common.h (struct stmt_tree_s): Use gengtype.
4075 * c-decl.c: Use gengtype for roots.
4076 * cselib.c: Use gengtype for roots.
4077 * expr.c: Use gengtype for roots.
4078 * fold-const.c: Use gengtype for roots.
4079 * gcse.c: Use gengtype for roots.
4080 * gengtype-lex.l: Handle typedefs of function types.
4081 Allow for empty array bounds.
4082 Allow processing to stop on initialisers.
4083 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
4084 (semiequal): New rule.
4085 * gengtype.c (create_file): Tidy output files.
4086 (get_output_file_with_visibility): Fix paren warning. Fix bug
4087 involving multiple input files mapping to one output file.
4088 (write_gc_structure_fields): Skip arrays of scalars.
4089 (write_gc_types): Tidy output files.
4090 (write_gc_root): New function.
4091 (write_gc_roots): Fix bugs, add support for roots that are
4093 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
4094 (ggc_mark_tree_ptr): Delete.
4095 (ggc_add_rtx_root): Delete.
4096 (ggc_add_tree_root): Delete.
4097 (ggc_del_root): Delete.
4098 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
4099 allocate struct initial_value_struct.
4100 * profile.c: Use gengtype for roots.
4101 * sdbout.c: Use gengtype for roots.
4102 * varasm.c (mark_weak_decls): Delete unused prototype.
4103 (mark_const_hash_entry): Delete unused function.
4104 * config/darwin-protos.h: Use gengtype for roots.
4105 (machopic_add_gc_roots): Delete.
4106 * config/arm/arm.c: Use gengtype for roots.
4107 * config/arm/arm.h: Use gengtype for roots.
4108 * config/c4x/c4x-protos.h: Use gengtype for roots.
4109 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
4110 * config/d30v/d30v-protos.h: Use gengtype for roots.
4111 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
4112 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
4113 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
4114 * config/ia64/ia64-protos.h: Use gengtype for roots.
4115 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
4116 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
4117 * config/m68hc11/m68hc11.c (z_reg): Make global.
4118 (z_reg_qi): Make global.
4119 (m68hc11_add_gc_roots): Delete.
4120 * config/mcore/mcore-protos.h: Use gengtype for roots.
4121 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
4122 * config/mips/mips.c (mips_add_gc_roots): Delete.
4123 * config/mips/mips.h: Use gengtype for roots.
4124 * config/mmix/mmix.c (override_options): Use gengtype for roots.
4125 * config/mmix/mmix.h: Use gengtype for roots.
4126 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
4127 * config/mn10200/mn10200.h: Use gengtype for roots.
4128 * config/pa/pa.c: Use gengtype for roots, marking.
4129 (struct deferred_plabel): Use GGC, gengtype.
4130 (pa_add_gc_roots): Delete.
4131 (mark_deferred_plabels): Delete.
4132 * config/pj/pj-protos.h: Use gengtype for roots.
4133 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
4134 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
4135 machopic_add_gc_roots.
4136 * config/rs6000/rs6000.h: Use gengtype for roots.
4137 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
4138 (gt-darwin.h): Add rule.
4139 * config/sh/sh.c: Use gengtype for roots.
4140 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
4141 (gt-sh.h): Add rule.
4142 * config/sparc/sparc.c: Use gengtype for roots.
4143 (sparc_add_gc_roots): Delete.
4144 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
4145 (mark_ultrasparc_pipeline_state): Delete.
4146 * config/sparc/sparc.h: Use gengtype for roots.
4148 * Makefile.in (c-parse.o): Update dependencies.
4149 (c-common.o): Likewise.
4150 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
4151 Add dependencies for the files they generate.
4152 * c-common.c: Replace ggc_add_* uses with GTY annotations.
4153 * c-common.h: Likewise.
4154 * c-decl.c: Likewise.
4155 (gt_ggc_mp_binding_level): Delete.
4156 * c-lang.c: Include gtype-c.h.
4157 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
4159 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
4160 (gt_ggc_mp_align_stack): Delete.
4161 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
4162 * function.c: Replace ggc_add_* uses with GTY annotations.
4163 (gt_ggc_mp_function): Delete.
4164 * function.h: Replace ggc_add_* uses with GTY annotations.
4165 * gengtype.c (lang_names): New.
4166 (NUM_BASE_FILES): New.
4167 (open_base_files): Create language base files.
4169 (get_file_basename): New.
4170 (get_base_file_bitmap): New.
4171 (get_output_file_with_visibility): Rename from get_output_file.
4172 Add more mappings for various C/Objc filenames.
4173 (finish_root_table): New.
4174 (write_gc_roots): Handle dependencies and scoping properly.
4175 * gengtype.h: Add prototypes for new functions.
4176 * ggc-common.c (struct deletable_root): Delete.
4177 (deletables): Delete.
4178 (ggc_add_deletable_root): Delete.
4179 (ggc_mark_roots): No need to deal with deleted functionality.
4180 * ggc.h (ggc_add_deletable_root): Delete prototype.
4181 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
4182 (gtype-objc.h): Add rule to create.
4183 * objc/config-lang.in (gtfiles): New.
4184 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
4185 ggc_add_* with GTY markers. Include gtype-objc.h.
4186 (ggc_mark_imp_list): Delete.
4187 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
4188 * objc/objc-lang.c: Random Whitespace Change.
4190 * except.h (exception_handler_labels): Delete.
4191 (get_exception_handler_labels): New.
4192 * except.c (exception_handler_labels): Delete.
4193 (struct eh_status): Add exception_handler_labels field.
4194 (doing_eh): Don't add exception_handler_labels as root.
4195 (free_eh_status): Don't need to free exception_handler_labels.
4196 (get_exception_handler_labels): New.
4197 (find_exception_handler_labels): Update for move of
4198 exception_handler_labels.
4199 (remove_exception_handler_label): Likewise.
4200 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
4201 * jump.c (rebuild_jump_labels): Likewise.
4202 * loop.c (find_and_verify_loops): Likewise.
4203 * sched-rgn.c (is_cfg_nonregular): Likewise.
4205 * gengtype.c (write_gc_structure_fields): Handle variable-length
4208 * varasm.c (struct weak_syms): Use GGC, gengtype.
4209 (mark_weak_decls): Delete.
4210 (weak_decls): Likewise.
4211 (add_weak): Likewise.
4212 (remove_from_pending_weak_list): Likewise.
4213 (init_varasm_once): Likewise.
4215 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
4216 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
4217 stor-layout.c, regclass.c, and lists.c.
4218 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
4219 gt-regclass.h and gt-lists.h on s-gtype.
4220 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
4221 * except.c: Use gengtype for roots.
4222 * explow.c: Use gengtype for roots. Include gt-explow.h.
4223 * expr.h (init_stor_layout_once): Delete prototype.
4224 * function.c: Use gengtype for roots.
4225 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
4226 * gengtype-yacc.y (start): Can also be an externstatic.
4227 (externstatic): New production.
4228 (struct_fields): Correct array bounds inversion for 2-d arrays.
4229 * gengtype.c (variables): New variable.
4230 (note_variable): New function.
4231 (get_output_file): Include libfuncs.h into gtype-desc.c.
4232 (get_output_file_name): New function.
4233 (write_gc_structure_fields): Suppress warnings.
4234 (write_gc_types): Make static.
4235 (put_mangled_filename): New function.
4236 (write_gc_roots): New function.
4237 (main): Call write_gc_roots.
4238 * gengtype.h (note_variable): Prototype.
4239 (get_output_file_name): Prototype.
4240 (write_gc_types): Delete prototype.
4241 * ggc.h: Clean up unnecessary structure predefinitions.
4242 (struct ggc_root_tab): Define.
4243 (gt_ggc_m_rtx_def): Make function, not macro.
4244 (gt_ggc_m_tree_node): Likewise.
4245 * libfuncs.h: Use gengtype for roots.
4246 * lists.c: Use gengtype for roots. Include gt-lists.h.
4247 (init_EXPR_INSN_LIST_cache): Delete.
4248 * optabs.c: Use gengtype for roots.
4249 (gt_ggc_mp_optab): Delete.
4250 * optabs.h: Use gengtype for roots.
4251 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
4252 * rtl.h: Use gengtype for roots.
4253 (init_EXPR_INSN_LIST_cache): Delete prototype.
4254 * stor-layout.c: Use gengtype for roots.
4255 Include gt-stor-layout.h.
4256 (init_stor_layout_once): Delete.
4257 * toplev.c: Use gengtype for roots. Delete calls to deleted
4259 * tree.c: Use gengtype for roots.
4260 * tree.h: Use gengtype for roots.
4261 * varasm.c: Use gengtype for roots.
4263 * Makefile.in (GTFILES): Add @all_gtfiles@.
4264 * configure: Regenerate.
4265 * configure.in: Construct all_gtfiles from the gtfiles definitions
4267 * gengtype-yacc.y (type): Warn about duplicate structure names.
4268 * gengtype.c (get_output_file): Handle .c files in language
4271 * Makefile.in (GTFILES): Run gengtype on all the config files
4272 and on the target .c file.
4273 * except.c (mark_eh_region): Delete.
4274 (init_eh_for_function): Use GGC on struct eh_status.
4275 (mark_eh_status): Delete.
4276 (free_eh_status): Use GGC.
4277 (expand_eh_region_start): Use GGC to
4278 (collect_eh_region_array): Allocate last_region_number using GGC.
4279 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
4280 (remove_eh_handler): Let GGC free struct eh_region.
4281 (add_call_site): Use GGC to reallocate call_site_record array.
4282 * function.c (init_machine_status): Update calling sequence.
4283 (mark_machine_status): Likewise.
4284 (mark_lang_status): Likewise.
4285 (prepare_function_start): Update init_machine_status call.
4286 (mark_function_status): Delete.
4287 (maybe_mark_struct_function): Delete.
4288 (ggc_mark_struct_function): Delete.
4289 (gt_ggc_mp_function): New.
4290 (gt_ggc_mr_machine_function): New.
4291 (gt_ggc_mr_language_function): New.
4292 (init_function_once): Use canonical names.
4293 * function.h (struct function): Use gengtype.
4294 (init_machine_status): Return the structure.
4295 (mark_machine_status): Take a 'void *'.
4296 (mark_lang_status): Likewise.
4297 * ggc-common.c (ggc_mark_trees): Use canonical name for
4298 ggc_mark_struct_function.
4299 * tree.h (ggc_mark_struct_function): Delete prototype.
4300 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
4301 (alpha_init_machine_status): Likewise.
4302 (override_options): Use canonical name for alpha_mark_machine_status.
4303 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
4304 * config/arm/arm.h (struct machine_function): Use gengtype.
4305 * config/arm/arm.c (arm_mark_machine_status): Delete.
4306 (arm_init_machine_status): Update calling sequence.
4307 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
4308 * config/cris/cris.c (cris_init_machine_status): Update
4310 * config/d30v/d30v.h (struct machine_function): Use gengtype.
4311 * config/d30v/d30v.c (d30v_init_machine_status): Update
4313 (d30v_mark_machine_status): Delete.
4314 * config/i386/i386.c: Include gt-i386.h.
4315 (struct machine_function): Use gengtype.
4316 (ix86_init_machine_status): Update calling sequence.
4317 (ix86_mark_machine_status): Delete.
4318 (override_options): Use canonical namke for ix86_mark_machine_status.
4319 * config/ia64/ia64.h (struct machine_function): Use gengtype.
4320 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
4322 (ia64_mark_machine_status): Delete.
4323 (ia64_override_options): Use canonical name for
4324 ia64_mark_machine_status.
4325 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
4327 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
4328 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4329 * gengtype.c (get_output_file): Fix warning.
4330 (main): Add prototype to suppress warning.
4331 * tree.c: Remove tree_hash_mark prototype.
4333 * tree.h (init_stmt): Delete prototype.
4334 * toplev.c (lang_independent_init): Don't call init_stmt.
4335 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
4336 (stmt_obstack): Delete.
4337 (POPSTACK): No need to free 'struct nesting'.
4338 (gt_ggc_mr_nesting_cond): Use canonical names.
4339 (gt_ggc_mr_nesting_loop): Use canonical names.
4340 (gt_ggc_mr_nesting_block): Use canonical names.
4341 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
4342 (mark_stmt_status): Delete.
4343 (init_stmt): Delete.
4344 (clear_last_expr): Clear both last_expr_type and last_expr_value.
4345 Use it everywhere that last_expr_type was cleared.
4346 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
4347 (zap_lists): Delete.
4348 * ggc.h (ggc_add_deletable_root): Prototype.
4349 (mark_stmt_status): Remove prototype.
4350 * ggc-common.c (ggc_add_deletable_root): New.
4351 (ggc_mark_roots): Handle deletable roots.
4352 * function.c (ggc_mark_struct_function): Use canonical name
4353 for mark_stmt_status.
4354 * emit-rtl.c (free_sequence_stack): New.
4355 (start_sequence): Use a freelist for sequences.
4356 (end_sequence): Likewise.
4357 (init_emit_once): Add free_sequence_stack as a deleteable root.
4358 * c-pragma.c Include gt-c-pragma.h.
4359 (struct align_stack): Use gengtype.
4360 (push_alignment): Use GGC for struct align_stack.
4361 (mark_align_stack): Delete.
4362 (gt_ggc_mp_align_stack): New.
4363 (init_pragma): Use canonical name for mark_align_stack.
4364 * c-decl.c: Include gt-c-decl.h.
4365 (struct binding_level): Use gengtype.
4366 (make_binding_level): Use GGC; handle the freelist here.
4367 (pop_binding_level): New.
4368 (pushlevel): Move code into make_binding_level.
4369 (push_label_level): Likewise.
4370 (poplevel): Move code into pop_binding_level.
4371 (pop_label_level): Likewise.
4372 (mark_binding_level): Delete.
4373 (gt_ggc_mp_binding_level): New.
4374 (c_init_decl_processing): Use canonical name for mark_binding_level.
4375 Add free_binding_level as deletable root.
4376 (mark_c_function_context): Use canonical name for mark_binding_level.
4377 * Makefile.in (c-decl.o): Add gt-c-decl.h.
4378 (c-pragma.o): Add gt-c-pragma.h.
4379 (GTFILES): Add c-decl.c and c-pragma.c.
4380 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
4382 * tree.c (struct type_hash): Use gengtype.
4383 (init_obstacks): Use canonical name for type_hash_mark.
4384 (type_hash_mark): Delete.
4386 * rtl.h (struct mem_attrs): Use gengtype.
4387 * optabs.h (struct optab): Use gengtype.
4388 * optabs.c (expand_binop): Squish signed/unsigned warning.
4389 (mark_optab): Make local, use canonical name, use autogenerated
4391 (init_optabs): Use canonical name for mark_optab.
4392 (new_optab): Use GGC to allocate optabs.
4393 * ggc.h: Delete mark_optab prototype.
4394 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
4395 mem_attrs marker procedure.
4396 * gengtype.c (get_output_file): Include headers in gtype-desc.c
4397 explicitly rather than deducing them from file names.
4398 (write_gc_structure_fields): Handle arrays of structures.
4399 (main): Return non-zero exit code if errors occur during output.
4400 * emit-rtl.c (mem_attrs_mark): Delete.
4401 (init_emit_once): Use canonical name for mem_attrs marker procedure.
4402 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
4403 (tree.o): Depend on gt-tree.h.
4404 (GTFILES): Add rtl.h, optabs.h, tree.c.
4405 (gt-tree.h): Add it to s-gtype rule.
4407 * .cvsignore: Ignore gengtype flex/bison generated files.
4408 * Makefile.in (GGC_H): Add gtype-desc.h.
4409 (OBJS): Add gtype-desc.o.
4410 (GEN): Add gengtype.
4411 (STAGESTUFF): Add gengtype.
4412 (varasm.o): Add gt-varasm.h.
4413 (stmt.o): Add gt-stmt.h.
4414 (except.o): Add gt-except.h.
4415 (integrate.o): Add gt-integrate.h.
4417 Add new rules for new files.
4418 * configure: Regenerate.
4419 * configure.in: Correct defaults.h paths.
4420 * emit-rtl.c (mark_sequence_stack): Delete.
4421 (mark_emit_status): Delete.
4422 (start_sequence): Allocate sequence structures using GGC.
4423 (end_sequence): Allocate sequence structures using GGC.
4424 * except.c: Use gengtype for various structures. Include
4426 * expr.c (mark_expr_status): Delete.
4427 * function.c: Use gengtype for various structures. Include
4429 (mark_function_status): Use standard gt_ggc names for marker functions.
4430 (ggc_mark_struct_function): Likewise.
4431 * function.h: Use gengtype for various structures.
4432 * gengtype-lex.l: New file.
4433 * gengtype-yacc.y: New file.
4434 * gengtype.c: New file.
4435 * gengtype.h: New file.
4436 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
4437 the standard names. Remove some now-unnecessary prototypes.
4438 * integrate.c: Use gengtype for various structures. Include
4440 (mark_hard_reg_initial_vals): Delete.
4441 * integrate.h (mark_hard_reg_initial_vals): Delete.
4442 * stmt.c: Use gengtype for various structures. Include
4444 (mark_case_node): Delete.
4445 (mark_goto_fixup): Delete.
4446 (mark_stmt_status): Use standard gt_ggc names for marker functions.
4447 * system.h: Define GTY to empty. In flex/bison files,
4448 don't poison malloc or realloc, instead just define them to
4449 xmalloc and xrealloc.
4450 * varasm.c: Use gengtype for various structures. Include
4451 gt-varasm.h. Use standard gt_ggc names for marker functions.
4452 (mark_pool_constant): Delete.
4453 (mark_varasm_status): Delete.
4454 (decode_rtx_const): #if 0 out non-typesafe hack.
4456 * function.h (free_lang_status): Mark as obsolete.
4457 * function.c (free_lang_status): Mark as obsolete.
4458 * c-decl.c (push_c_function_context): Use GC to allocate and free
4459 struct language_function.
4460 (pop_c_function_context): Likewise.
4461 * c-common.c (mark_c_language_function): Mark struct
4464 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
4465 Document that the machine_function structures must be allocated
4466 using GC. Update mark_machine_status documentation.
4467 * function.h: Don't declare free_machine_status.
4468 * function.c (free_machine_status): Don't define.
4469 (free_after_compilation): Don't call free_machine_status.
4470 (ggc_mark_struct_function): Mark f->machine. Call
4471 mark_machine_status only on non-NULL pointers.
4472 * system.h: Poison free_machine_status.
4473 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
4474 struct machine_function.
4475 (xtensa_free_machine_status): Delete.
4476 (override_options): Don't set free_machine_status.
4477 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
4478 free_machine_status.
4479 (rs6000_init_machine_status): Use GC on struct machine_function.
4480 (rs6000_free_machine_status): Delete.
4481 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
4483 (ia64_mark_machine_status): Likewise.
4484 (ia64_free_machine_status): Delete.
4485 (ia64_override_options): Don't set free_machine_status.
4486 * config/i386/i386.c (override_options): Don't set
4487 free_machine_status.
4488 (ix86_init_machine_status): Use GC on struct machine_function.
4489 (ix86_mark_machine_status): Likewise.
4490 (ix86_free_machine_status): Delete.
4491 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
4493 (d30v_mark_machine_status): Likewise.
4494 (d30v_free_machine_status): Delete.
4495 (d30v_init_expanders): Don't set free_machine_status.
4496 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
4498 (arm_init_machine_status): Likewise.
4499 (arm_free_machine_status): Delete.
4500 (arm_init_expanders): Don't set free_machine_status.
4501 * config/alpha/alpha.c (override_options): Don't set
4502 free_machine_status.
4503 (alpha_init_machine_status): Use GC on struct machine_function.
4504 (alpha_mark_machine_status): Likewise.
4505 (alpha_free_machine_status): Delete.
4507 * varasm.c (compare_constant): Fix typo.
4509 * varasm.c: Don't include obstack.h.
4510 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
4511 (struct rtx_const): Give substructures names, improve formatting.
4512 (struct constant_descriptor): Delete.
4513 (struct constant_descriptor_tree): New, based on constant_descriptor.
4514 (const_hash_table): Is a hash table of trees.
4515 (mark_const_hash_entry): Is used for hashes of trees. Mark
4516 constant_descriptor_tree structure.
4517 (mark_const_str_htab_1): Mark deferred_string structure.
4518 (compare_constant): Rewrite to compare trees.
4519 (compare_constant_1): Delete.
4520 (record_constant): Delete.
4521 (record_constant_1): Delete.
4522 (output_constant_def): Use struct constant_descriptor_tree.
4523 Don't duplicate trees twice.
4524 (struct constant_descriptor_rtx): New.
4525 (struct pool_constant): Used for rtx constants.
4526 (init_varasm_status): Update for change to struct varasm_status.
4527 (mark_varasm_status): Likewise.
4528 (free_varasm_status): Delete.
4529 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
4530 (record_constant_rtx): Likewise.
4531 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
4532 (force_const_mem): Likewise.
4533 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
4534 * function.c (free_after_compilation): Don't use free_varasm_status.
4535 * function.h: Don't prototype free_varasm_status.
4537 * ggc-common.c (ggc_realloc): Handle X being NULL.
4539 * ggc-common.c (ggc_realloc): New function.
4540 * ggc.h: Prototype it.
4541 * emit-rtl.c (free_emit_status): Delete.
4542 (init_emit): Allocate emit subarrays using GC.
4543 (gen_reg_rtx): Reallocate subarrays using GC.
4544 (init_emit): Use GC to allocate 'struct emit_status' and its
4546 (mark_emit_status): Mark structure and its subarrays.
4547 * stmt.c (free_stmt_status): Delete.
4548 * expr.c (free_expr_status): Delete.
4549 * function.h: Remove prototypes for deleted functions.
4550 * function.c (free_after_compilation): Don't use deleted functions.
4551 Don't call free() on x_parm_reg_stack_loc.
4552 (free_after_parsing): Don't use free_stmt_status.
4553 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
4554 (mark_function_status): Mark x_parm_reg_stack_loc.
4556 * varasm.c (init_varasm_status): Use GC to allocate
4557 'struct varasm_status' and its fields x_const_rtx_hash_table
4558 and x_const_rtx_sym_hash_table.
4559 (mark_varasm_status): Mark them.
4560 (free_varasm_status): Use GC to free them.
4561 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
4562 (mark_expr_status): Mark the structure itself.
4563 (free_expr_status): Use GC to free the structure.
4564 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
4565 (mark_stmt_status): Mark the 'struct stmt_status' itself.
4566 (init_stmt_for_function): Allocate the structure for GC.
4568 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
4569 (equate_type_number_to_die): Likewise.
4570 * tree.h (TYPE_SYMTAB_DIE): New macro.
4571 (struct die_struct): Predeclare.
4572 (struct tree_type): Add field symtab.die. Add a tag
4573 to the union type of field symtab.
4575 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
4576 'struct rtvec_def *', not 'struct rtvec_def'.
4578 * function.h (original_arg_vector): Make a real rtvec.
4579 * function.c (ggc_mark_struct_function): Adjust.
4580 * integrate.c (expand_inline_function): Adjust.
4582 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4584 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
4585 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
4586 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
4587 (TARGET_VERSION_CPU): Define according to the
4589 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
4591 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
4592 if TARGET_SHMEDIA64.
4593 (LINK_DEFAULT_CPU_EMUL): Define according to the
4595 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
4596 (SUBTARGET_LINK_SPEC): Define.
4597 (LINK_SPEC): Use SH_LINK_SPEC.
4599 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
4600 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
4601 and TARGET_SHMEDIA64 which abort, for now.
4602 * config/sh/t-netbsd-sh5: New file.
4603 * config/sh/t-netbsd-sh5-32: New file.
4604 * config/sh/t-netbsd-sh5-64: New file.
4606 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
4607 Richard Henderson <rth@redhat.com>
4609 * config/alpha/alpha.c (reg_or_const_int_operand): New.
4610 (some_operand, input_operand): Accept CONST_VECTOR.
4611 (alpha_extra_constraint): Add 'W'.
4612 (alpha_expand_zap_mask): New.
4613 (alpha_expand_builtin_vector_binop): New.
4614 (enum alpha_builtin): New.
4615 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
4616 (alpha_init_builtins, alpha_expand_builtin): New.
4617 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
4618 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
4619 (PREDICATE_CODES): Update.
4620 * config/alpha/alpha-protos.h: Update.
4621 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
4622 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
4623 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
4624 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
4625 (movv2si, movv2si_fix, movv2si_nofix): New.
4626 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
4627 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
4628 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
4629 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
4630 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
4631 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
4632 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
4633 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
4634 builtin_unpkbw, unpkbw): New.
4635 * doc/extend.texi (Alpha Built-in Functions): New.
4637 2002-06-03 Richard Henderson <rth@redhat.com>
4639 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
4640 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
4642 2002-06-03 Richard Henderson <rth@redhat.com>
4644 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
4646 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
4647 (const0_operand): New.
4648 (reg_or_fp0_operand, fp0_operand): Remove.
4649 * config/alpha/alpha.h (PREDICATE_CODES): Update.
4650 * config/alpha/alpha-protos.h: Update.
4651 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
4652 and fp0_operand with reg_or_0_operand and const0_operand.
4654 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
4656 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
4658 2002-06-03 Roger Sayle <roger@eyesopen.com>
4660 * gcse.c (cprop_jump): Use single_set to get the pattern
4661 from the setcc argument.
4663 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
4665 * diagnostic.h (diagnostic_count): Move from output_buffer to
4667 (diagnostic_kind_count): Adjust definition.
4669 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
4671 * except.c (except.c): Do not rebuild CFG.
4672 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
4675 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4677 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
4678 * toplev.c: Include cfglahout.h
4679 * Makefile.in (toplev.c): Add dependnecy.
4681 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
4683 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
4684 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
4685 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
4687 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
4689 * config/ns32k/netbsd.h: Update copyright years.
4690 (TARGET_OS_CPP_BUILTINS): Define.
4691 (CPP_PREDEFINES): Remove.
4692 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
4693 (TARGET_CPU_CPP_BUILTINS): Define.
4695 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
4697 * emit-rtl.c: Fix formatting.
4698 * errors.h: Likewise.
4699 * except.c: Likewise.
4700 * explow.c: Likewise.
4701 * expmed.c: Likewise.
4705 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
4707 * config/h8300/elf.h: Fix formatting.
4708 * config/h8300/rtems.h: Likewise.
4710 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
4712 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
4714 2002-06-02 Tom Tromey <tromey@redhat.com>
4716 * fixinc/fixincl.x: Rebuilt.
4717 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
4719 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4722 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
4723 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
4727 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
4729 * final.c (final): Allow notes to not have computed addresses;
4730 kill no longer needed STACK_REGS ifdef.
4732 2002-06-02 Richard Henderson <rth@redhat.com>
4734 * gcse.c (bypass_conditional_jumps): Fix typo last change.
4736 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
4738 * loop.c (emit_prefetch_instructions): Properly place the address
4741 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
4743 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
4744 (set_block_for_insn): Turn into macro.
4745 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
4746 * cfglayout.c (insn_scopes): Kill.
4747 (scope_to_insns_initialize): Do not use insn_scopes.
4748 (scope_to_insns_finalize): Likewise.
4749 (duplicate_insn_chain): Likewise.
4750 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
4751 * cfgrtl.c (basic_block_for_insn): Kill.
4752 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
4753 (create_basic_block_structure): Use reorder_insns.
4754 (compute_bb_for_insn): Do not use basic_block_for_insn.
4755 (merge_blocks_nomove): Likewise.
4756 (update_bb_for_insn): Likewise.
4757 (verify_flow_info): Likewise.
4758 (set_block_for_insn): Kill.
4759 * combine.c (try_combine): Update gen_rtx_INSN call.
4760 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
4761 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
4763 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
4764 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
4766 (emit_insns_after): Simplify.
4767 (emit_copy_of_insn_after): Copy scope.
4768 * final.c (final_start_function): Lower scopes.
4769 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
4770 * integrate.c (copy_insn_list): Cope scopes.
4771 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
4772 * loop.c (loop_optimize): Do not care block notes.
4773 * print-rtl.c (print_rtx): Print BB.
4774 * recog.c (apply_change_group): Simplify.
4775 * rtl.c (copy_rtx): Handle 'B'.
4776 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
4777 * rtl.h (Field accessors): Update indexes.
4778 * sched-ebb.c (schedule_ebbs): Do not lower notes.
4779 * sched-rgn.c (schedule_insns): Likewise.
4780 * toplev.c (rest_of_compilation): Lower notes.
4781 * unroll.c (unroll_loop): Do not care scoping notes.
4782 (copy_loop_body): Copy scopes.
4784 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4787 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4789 * rtems.h: Similarly.
4790 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
4791 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
4792 (TARGET_CPU_CPP_BUILTINS): Use.
4794 2002-06-02 Richard Henderson <rth@redhat.com>
4796 * alias.c: Include target.h.
4797 (mark_constant_function): Use targetm.binds_local_p instead
4798 of checking TREE_PUBLIC ourselves.
4799 * Makefile.in (alias.o): Add TARGET_H.
4801 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4803 * c-lex.c: Update copyright and file description.
4805 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4807 * config/fr30/fr30.h: Update to new CPP macros.
4809 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4811 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
4813 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4814 Zack Weinberg <zack@codesourcery.com>
4816 * c-common.c (c_common_init): Override cpplib's default
4817 warn_long_long setting.
4818 * c-lex.c (lex_number): Replace with interpret_integer,
4819 interpret_float, narrowest_unsigned_type and
4820 narrowest_signed_type, taking advantage of the new
4821 cpplib functionality.
4822 * cpperror.c (_cpp_begin_message): If a warning is turned
4823 into an error, avoid printing "warning:".
4824 * cppexp.c (cpp_num_sign_extend): New.
4825 * cppinit.c: Update comment.
4826 * cpplib.h (cpp_num_sign_extend): New.
4827 * tree.h: Update comment.
4829 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
4831 * diagnostic.h (struct diagnostic_context): Add new member
4833 (internal_error_function): Remove declaration.
4834 * diagnostic.c (internal_error_function): Remove definition..
4835 (internal_error): Adjust use.
4837 2002-06-02 Richard Henderson <rth@redhat.com>
4839 * rtl.h (CC0_P): New.
4840 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
4841 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
4842 (bypass_block): Save old dest block for dump text.
4843 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4844 Allow only true SET insns, not single_set.
4846 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
4848 * diagnostic.c (diagnostic_finish): Rename to output_flush.
4849 (clear_disgnostic_info): Rename to output_clear_data. Use false
4850 instead of 0 for boolean value.
4851 Adjust function call throughout.
4853 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
4855 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4856 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4858 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4860 * d30v.h (CPP_PREDEFINES): Replace with
4861 (TARGET_CPU_CPP_BUILTINS): New.
4863 2002-06-02 Roger Sayle <roger@eyesopen.com>
4865 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4867 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
4869 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4871 2002-06-02 Richard Henderson <rth@redhat.com>
4873 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4875 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
4877 Support for C++ constructors/destructors.
4878 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4879 instead of looping if main() returns.
4880 (asm_file_start): Output global symbols that cause .data and .bss
4881 initialization code to be linked in, unconditionally for now.
4882 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4883 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4884 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4886 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4887 (__tablejump__): New.
4888 (__do_copy_data, __do_clear_bss): New.
4889 (__do_global_ctors, __do_global_dtors): New.
4890 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4893 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
4895 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4896 (CPP_SPEC, CPP_PREDEFINES): Kill.
4897 * c4x/rtems.h (CPP_PREDEFINES): Kill.
4898 (TARGET_OS_CPP_BUILTINS): New.
4900 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
4902 * Makefile.in (tracer.o): New.
4903 * params.def (TRACER_*): New options.
4904 * rtl.h (tracer): Declare.
4905 * timevar.def (TV_TRACER): New.
4906 * toplev.c (dump_file_index): Add DFI_tracer.
4907 (dump_file_info): Add tracer.
4909 (lang_indepdenent_options): Add tracer.
4910 (rest_of_compilation): Call tracer.
4911 * tracer.c: New file.
4912 * invoke.texi (-ftracer): Document.
4913 (--param tracer-*): Document.
4915 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
4917 * tree-inline.c (expand_call_inline): Make the statement
4918 expression we generate have a COMPOUND_STMT.
4920 2002-06-01 Roger Sayle <roger@eyesopen.com>
4922 * gcse.c (cprop_cc0_jump): Function deleted.
4923 (cprop_jump): Take an additional argument which is the possibly
4924 NULL cc setting insn immediately before the conditional jump.
4925 When a MODE_CC set is present, substitute it into the JUMP_INSN
4926 before attempting the constant propagation.
4927 (cprop_insn): Recognize cc setters followed by conditional jumps
4928 as a special case. Use cprop_jump instead of cprop_cc0_jump.
4929 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
4930 (find_bypass_set): New function based upon find_avail_set used by
4931 cprop, but finds constant expressions available at the end of
4933 (bypass_block): New function. Given a basic block that begins
4934 with a conditional jump and multiple incoming edges, perform
4935 the jump bypass optimization.
4936 (bypass_conditional_jumps): New function. Call bypass_block with
4937 each suitable basic block in the CFG using a simple single pass.
4939 2002-06-01 Roger Sayle <roger@eyesopen.com>
4941 * tree.c (real_minus_onep): New function to test for -1.0.
4942 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
4944 2002-06-01 Roger Sayle <roger@eyesopen.com>
4946 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4947 and "!p && !q" into "(p|q) == 0" under suitable conditions.
4949 2002-06-01 Andreas Jaeger <aj@suse.de>
4951 * cppexp.c (cpp_classify_number): Cast precission to int for
4952 correct printf format.
4954 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
4956 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4957 expected, but don't really exist: atmega83, atmega85, attiny10.
4958 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4959 emulations for all devices.
4960 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4961 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4963 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
4965 * config/h8300/h8300-protos.h: Add a prototype for
4966 h8300_shift_needs_scratch_p.
4967 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4968 * config/h8300/h8300.h (OK_FOR_R): New.
4969 (OK_FOR_S): Likewise.
4970 (OK_FOR_T): Likewise.
4971 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4972 * config/h8300/h8300.md (anonymous shift patterns): Use
4973 constraints R, S, and T.
4975 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4977 * basic-block.h (struct basic_block_def): New field loop_father.
4978 (BB_VISITED): New flag.
4979 (struct loop): New field pred, removed field shared.
4980 (struct loops): New field parray.
4981 (LOOP_EXITS_DOMS): Removed.
4982 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4983 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4984 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4985 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4986 verify_loop_structure): Declare.
4987 * cfg.c (entry_exit_blocks): Initialize loop_father field.
4988 * cfganal.c (dfs_enumerate_from): New function.
4989 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4990 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4991 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4992 flow_loop_dump, flow_loops_dump, flow_loops_free,
4993 flow_loop_tree_node_add, flow_loop_level_compute,
4994 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4995 flow_loop_outside_edge_p): Modified for new infrastructure.
4996 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4997 redirect_edge_with_latch_update, flow_loop_free): New static functions.
4998 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4999 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
5000 find_common_loop, verify_loop_structure, loop_latch_edge,
5001 loop_preheader_edge): New functions.
5002 (flow_loops_cfg_dump): Do not show dominators, as this information
5003 does not remain up to date long.
5004 (flow_loops_find): Store results in new format.
5005 * predict.c (propagate_freq, estimate_probability,
5006 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
5009 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
5011 * except.c (nothrow_function_p): Walk epilogue delay list
5012 checking the insn, not the chain for potential throws.
5014 2002-05-31 Zack Weinberg <zack@codesourcery.com>
5016 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
5017 (install): Refer to install-cpp directly.
5018 (uninstall-cpp): Folded into uninstall rule.
5019 * configure.in: Delete all code relating to --disable-cpp.
5020 * configure: Regenerate.
5021 * config/t-install-cpp: Delete.
5023 2002-05-31 Richard Henderson <rth@redhat.com>
5025 * configure.in (HAVE_AS_TLS): Add alpha tests.
5026 * configure: Rebuild.
5027 * config/alpha/alpha.c (TARGET_AS_TLS): New.
5028 (alpha_tls_size, alpha_tls_size_string): New.
5029 (overide_options): Set it. Always install machine_status hooks.
5030 (input_operand): Accept got tls predicates.
5031 (local_symbol_p): Merge into ...
5032 (local_symbolic_operand): ... here. Reject tls symbols.
5033 (global_symbolic_operand): Likewise.
5034 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
5035 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
5036 (tp16_symbolic_operand, tp32_symbolic_operand): New.
5037 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
5038 (alpha_encode_section_info): Handle TLS symbols.
5039 (alpha_strip_name_encoding): Likewise.
5040 (alpha_legitimate_address_p): Likewise.
5041 (alpha_legitimize_address): Likewise.
5042 (alpha_expand_mov): Early exit to avoid nop moves.
5043 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
5044 (alpha_init_machine_status, alpha_mark_machine_status,
5045 alpha_free_machine_status): Always define.
5046 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5047 (print_operand, print_operand_address): Add TLS relocs.
5048 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
5049 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
5050 (TARGET_SWITCHES): Add -mtls-kernel.
5051 (alpha_tls_size, alpha_tls_size_string): New.
5052 (TARGET_OPTIONS): Add -mtls-size=.
5053 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
5054 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
5055 (ASM_OUTPUT_LABELREF): Skip %.
5056 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
5057 (PREDICATE_CODES): Update.
5058 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
5059 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
5060 UNSPEC_TP, UNSPECV_SET_TP): New.
5061 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
5062 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
5063 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
5064 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
5065 (call_value_osf_2_er): Accept anything as op4.
5066 * config/alpha/alpha-protos.h: Update.
5067 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
5069 2002-05-31 Zack Weinberg <zack@codesourcery.com>
5071 * cppinit.c (append_include_chain): Always pay attention to
5072 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
5075 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
5077 * target.h: Fix formatting.
5078 * timevar.h: Likewise.
5079 * tlink.c: Likewise.
5080 * toplev.c: Likewise.
5081 * toplev.h: Likewise.
5083 * tree-dump.h: Likewise.
5085 * tree-inline.h: Likewise.
5086 * unroll.c: Likewise.
5087 * unwind-dw2.c: Likewise.
5088 * unwind-dw2-fde.c: Likewise.
5089 * unwind-dw2-fde-glibc.c: Likewise.
5090 * unwind-dw2-fde.h: Likewise.
5091 * unwind.h: Likewise.
5092 * unwind-sjlj.c: Likewise.
5093 * varasm.c: Likewise.
5094 * varray.h: Likewise.
5095 * vmsdbg.h: Likewise.
5096 * vmsdbgout.c: Likewise.
5097 * xcoffout.h: Likewise.
5099 2002-05-31 Igor Shevlyakov <igor@microunity.com>
5101 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
5102 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
5104 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
5106 * gcc.c (cpp_unique_options): Remove "-d" options.
5107 (cpp_debug_options): New spec string.
5108 (default_compilers): Use it.
5109 * objc/lang-specs.h: Likewise.
5111 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
5113 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
5114 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
5115 * gcc/mklibgcc.in: Likewise.
5116 * gcc/config/arc/t-arc: Likewise.
5117 * gcc/configure.in: Likewise.
5118 * gcc/configure: Regenerate.
5120 2002-05-31 Stan Shebs <shebs@apple.com>
5121 Turly O'Connor <turly@apple.com>
5123 * c-decl.c (struct binding_level): Change int field n_incomplete
5124 to tree list incomplete_list.
5125 (clear_binding_level): Init field with NULL.
5126 (pushdecl): Add incomplete type to list.
5127 (mark_binding_level): Mark the incomplete list.
5128 (finish_struct): Scan the incomplete list for types instead
5129 of all decls in the current binding level.
5131 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5133 * pa.c (output_millicode_call): Add missing '%' characters.
5134 (output_call): Likewise.
5136 2002-05-31 David Edelsohn <edelsohn@gnu.org>
5138 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
5139 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5141 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
5143 * varasm.c (mark_constant_pool): Walk epilogue delay list
5144 checking the insn, not the chain for potential constants.
5146 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
5148 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
5150 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
5152 * i386.c (classify_argument): Properly handle base types.
5154 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
5155 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
5158 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5160 * gcse.c (gcse_emit_move_after): New.
5161 (pre_delete, hoist_store): Use it.
5163 * reload1.c (emit_input_reload_insns): Use constrain_operands
5164 instead of constraint_accepts_reg_p to verify optimization.
5165 (constraint_accepts_reg_p): Kill
5167 * reload1.c (reload_cse_delete_noop_set): Kill.
5168 (reload_cse_simplify): use delte_insn_and_edges.
5170 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5172 * cfgloop.c (flow_loops_find): Initialize first and last fields
5175 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
5177 * c-common.c (builtin_define_std): Correct logic.
5179 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5181 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
5182 (output_call): Likewise.
5184 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5186 * pa.c: Move output.h include after tree.h include.
5187 (pa_asm_output_mi_thunk): Constify identifier lab.
5189 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5191 * config/ns32k/ns32k.h: Define named constants for the
5192 bits in target_flags and use them.
5193 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
5195 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5197 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
5198 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
5199 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
5200 default scheduling model.
5201 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
5202 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
5203 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
5204 * doc/install.texi (hppa*-*-*): Document default scheduling.
5206 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
5208 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
5210 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5212 * config.gcc (ns32k-*-netbsd*): Set tm_file to
5213 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
5214 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
5215 netbsd.h, or netbsd-aout.h.
5217 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
5219 * longlong.h (count_trailing_zeros): Add missing \, and clean up
5220 whitespace in __ns32000__ case.
5222 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
5224 * expr.c (expand_expr): Output partially zeroed out vectors with
5225 output_constant_def.
5227 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5229 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
5231 (shl*-*-netbsdelf*): New targets.
5232 * config/sh/netbsd-elf.h: New file.
5233 * config/sh/t-netbsd: New file.
5235 2002-05-30 Richard Henderson <rth@redhat.com>
5236 Eric Botcazou <ebotcazou@multimania.com>
5238 PR optimization/6822
5239 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
5240 to unsigned int for op1 comparisons. Use gen_int_mode.
5242 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
5244 * expmed.c (const_mult_add_overflow_p): New.
5245 * expr.h: Declare it.
5246 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
5247 Don't eliminate the biv if the giv has a constant multiplier and
5248 the rhs argument of the comparison does satisfy the predicate.
5249 Use expand_mult_add to compute the replacement constant.
5251 2002-05-30 Osku Salerma <osku@iki.fi>
5253 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
5254 (c_common_get_alias_set): Handle it.
5255 * doc/extend.texi: Document it.
5257 2002-05-30 Richard Henderson <rth@redhat.com>
5259 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5260 * toplev.c (process_options): Don't check it.
5261 * doc/tm.texi: Don't document it.
5262 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
5263 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
5264 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
5265 frame pointer optimization if current_function_profile.
5267 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
5269 * langhooks.c: Fix formatting.
5270 * langhooks.h: Likewise.
5272 * libgcc2.c: Likewise.
5273 * lists.c: Likewise.
5274 * local-alloc.c: Likewise.
5278 2002-05-30 Marc Espie <espie@openbsd.org>
5280 * config.gcc (sparc64-*-openbsd*): New.
5281 * config/sparc/openbsd1-64.h: New.
5282 * config/sparc/openbsd64.h: New.
5284 2002-05-30 Jeff Law <law@redhat.com>
5286 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
5287 a dead insn with a REG_RETVAL note when the entire libcall is not
5288 dead and remove the associated REG_LIBCALL note at the same time.
5290 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
5292 * lcm.c (output.h): #include.
5293 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
5294 as an ordinary block.
5295 (optimize_mode_switching): Don't pretend that the exit block is
5296 an ordinary block, or handle sucessors of entry block specially.
5297 Instead, split edges from entry block and to exit block, and
5298 put a computing definition on the thus gained post-entry-block,
5299 and a need on the pre-exit-block.
5301 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
5303 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
5304 * rtl.texi: Document 'B'
5306 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5308 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
5310 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
5312 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
5314 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
5315 const0_rtx instead of NULL_RTX when in error.
5316 (altivec_expand_abs_builtin): Same.
5317 (rs6000_expand_binop_builtin): Same.
5318 (altivec_expand_predicate_builtin): Same.
5319 (altivec_expand_stv_builtin): Same.
5320 (rs6000_expand_ternop_builtin): Same.
5321 (altivec_expand_builtin): Same.
5323 2002-05-29 David S. Miller <davem@redhat.com>
5325 * rtl.h (clear_emit_caches): Delete.
5326 * integrate.c (output_inline_function): Don't call it.
5327 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
5328 (clear_emit_caches): Delete definition.
5329 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
5331 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
5333 * config/mmix/mmix.c: Include real.h.
5334 (mmix_constant_address_p): Remove redundant test before switch.
5336 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5338 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
5339 only if not already defined.
5341 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
5343 * config/h8300/h8300-protos.h: Remove prototypes for
5344 ok_for_bclr and small_power_of_two.
5345 * config/h8300/h8300.c (small_power_of_two): Remove.
5346 (ok_for_blcr): Likewise.
5347 (fix_bit_operand): Make WHAT deal with an integer instead of a
5348 constraint character.
5349 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
5350 (CONST_OK_FOR_P): Likewise.
5351 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
5352 CONST_OK_FOR_P any more.
5353 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
5358 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5360 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5361 (CPP_PREDEFINES): Make sure this is undefined.
5362 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
5363 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
5364 or -U__MIPSEB__ before defining one or the other. Instead,
5365 use %(subtarget_endian_default) if neither -EB nor -EL are
5367 (SUBTARGET_EXTRA_SPECS): Define.
5368 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
5371 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
5373 * doc/md.texi (Patterns): Note pattern condition pitfall
5376 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
5378 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
5379 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
5380 ternary operations from here...
5381 (rs6000_expand_builtin): ...to here.
5382 New argument expandedp.
5383 Change all instances of altivec_expand_binop_builtin to
5384 rs6000_expand_binop_builtin.
5385 (altivec_expand_unop_builtin): Rename to
5386 rs6000_expand_unop_builtin.
5387 (altivec_expand_binop_builtin): Rename to
5388 rs6000_expand_binop_builtin.
5389 (altivec_expand_ternop_builtin): Rename to
5390 rs6000_expand_ternop_builtin.
5392 2002-05-29 Richard Henderson <rth@redhat.com>
5394 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
5395 (TARGET_BI_ARCH): Likewise.
5396 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
5397 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
5398 (TARGET_64BIT_DEFAULT): Default to 0.
5399 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
5401 2002-05-29 Richard Henderson <rth@redhat.com>
5403 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
5404 (get_pc_thunk_name): New.
5405 (output_set_got): Use it.
5406 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
5407 into linkonce sections.
5409 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5411 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5412 (CPP_PREDEFINES): Make sure this is undefined.
5413 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
5414 (CPP_SUBTARGET_SPEC): Don't provide different versions for
5415 default-32 and default-64. Just always use %(netbsd_cpp_spec).
5416 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
5417 cpp_subtarget_spec64. Add netbsd_cpp_spec.
5418 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5419 (CPP_PREDEFINES): Make sure this is undefined.
5420 (SUBTARGET_EXTRA_SPECS): Define.
5421 (CPP_SPEC): Use %(netbsd_cpp_spec).
5423 2002-05-29 Jeff Law <law@redhat.com>
5425 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
5427 * flow.c (propagate_one_insn): Do not remove a dead insn if it
5428 contains a REG_RETVAL note.
5430 * haifa-sched (sched_analyze): Remove another useless clearing
5431 of SCHED_GROUP_P I missed yesterday.
5433 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
5434 * pa.c (pa_asm_output_mi_thunk): New function.
5435 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
5437 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
5438 Marek Michalkiewicz <marekm@amelek.gda.pl>
5440 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
5441 (avr_asm_only_p): Make non-static.
5442 (enum avr_arch): Remove.
5443 (avr_arch_types): New.
5444 (avr_mcu_types): Update.
5445 (avr_override_options): Use avr_arch_types table instead of switch.
5446 * avr.h (CPP_PREDEFINES): Die.
5447 (avr_base_arch_macro, avr_extra_arch_macro): New.
5448 (TARGET_CPU_CPP_BUILTINS): New.
5449 (CPP_SPEC, EXTRA_SPECS): Simplify.
5450 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
5451 CPP_AVR5_SPEC): Die.
5453 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5455 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
5456 NETBSD_OS_CPP_BUILTINS_AOUT.
5457 (SUBTARGET_EXTRA_SPECS): Define.
5458 (CPP_SPEC): Use %(netbsd_cpp_spec).
5460 2002-05-29 Richard Henderson <rth@redhat.com>
5462 * config/i386/i386.c (ix86_output_function_epilogue): New.
5463 (TARGET_ASM_FUNCTION_EPILOGUE): New.
5464 (pic_label_name): Remove.
5465 (pic_labels_used): New.
5466 (ix86_asm_file_end): Emit one pc load stub for each register used.
5467 (output_set_got): Generate deep pc load to any register.
5468 (ix86_select_alt_pic_regnum): New.
5469 (ix86_save_reg): Don't save pic register if we can find a valid
5470 call-clobbered replacement.
5471 (ix86_expand_prologue): If we found a valid replacement, renumber
5472 pic_offset_table_rtx.
5473 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
5474 pic_offset_table_rtx after reload.
5475 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
5476 * config/i386/i386.md (set_got): Make insn, not expander.
5477 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
5479 2002-05-29 Richard Henderson <rth@redhat.com>
5481 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
5482 alignment for alloca.
5484 2002-05-29 Richard Henderson <rth@redhat.com>
5486 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
5487 (print_operand_address): Only add rip for symbolic addresses
5488 for which we do not have another relocation type.
5490 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5492 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5493 (EXTRA_SPECS): Add netbsd_cpp_spec.
5494 (CPP_SPEC): Use %(netbsd_cpp_spec).
5495 (CPP_PREDEFINES): Remove.
5496 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5497 (EXTRA_SPECS): Define.
5498 (CPP_SPEC): Use %(netbsd_cpp_spec).
5499 (CPP_PREDEFINES): Remove.
5501 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
5503 PR preprocessor/6844
5504 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
5507 2002-05-29 Eric Christopher <echristo@redhat.com>
5509 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
5510 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
5512 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
5514 * config/fr30/fr30.md: Remove previous restriction on splits.
5515 Enforce conformance through gen_lowpart and cont_int_operand.
5516 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
5517 as the assembler does not support ".bss".
5519 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5521 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5522 (CPP_PREDEFINES): Remove.
5523 (SUBTARGET_EXTRA_SPECS): Define.
5524 (CPP_SPEC): Use %(netbsd_cpp_spec).
5525 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
5526 (CPP_PREDEFINES): Remove.
5527 (SUBTARGET_EXTRA_SPECS): Define.
5528 (CPP_SPEC): Use %(netbsd_cpp_spec).
5529 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
5530 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
5531 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
5532 Add netbsd_cpp_spec.
5533 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
5535 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
5536 Zack Weinberg <zack@codesourcery.com>
5538 * cppexp.c (cpp_num): Move to cpplib.h.
5539 (CPP_ERROR): Remove.
5540 (interpret_float_suffix, interpret_int_suffix): New.
5541 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
5542 (cpp_classify_number, cpp_interpret_integer): New.
5543 (interpret_number): Remove.
5544 (eval_token): Update to use new routines.
5545 * cpphash.h (cpp_num_part): Move to cpplib.h.
5546 * cppinit.c (cpp_post_options): Set warn_long_long.
5547 * cpplib.h (struct cpp_options): Add warn_long_long.
5548 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
5549 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
5550 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
5551 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
5552 cpp_interpret_integer): New.
5554 2002-05-29 Joel Sherrill <joel@OARcorp.com>
5556 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
5558 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
5560 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
5561 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
5562 (CPP_SUBTARGET_SPEC): Define.
5563 (SUBTARGET_EXTRA_SPECS): Define.
5566 2002-05-29 Chris Lattner <sabre@nondot.org>
5568 * ssa.c (rename_insn_1): Rename uses of undefined registers to
5569 prevent confusion if/when the register is defined.
5571 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
5574 * config/cris/cris.md: Fix typos and thinkos in comments.
5575 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
5577 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
5578 ("*mov_sideqi_mem"): Similar, but for operand 3.
5579 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
5580 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
5581 Remove spurious mode specifier on operand 2.
5583 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
5585 * config/h8300/h8300-protos.h: Remove the prototype for
5587 Add prototypes for single_one_operand and single_zero_operand.
5588 * config/h8300/h8300.c (o_operand): Remove.
5589 (single_one_operand): New.
5590 (single_zero_operand): Likewise.
5591 (print_operand): For 'V' operand, and the operand with 0xff.
5592 For 'V' and 'W' operands, do not and the bit position with 7.
5593 * config/h8300/h8300.md (various anonymous patterns): Replace
5594 use of exact_log2 with single_one_operand/single_zero_operand.
5596 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
5598 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
5600 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
5602 * config/s390/s390.c (legitimate_pic_operand_p): Do not
5603 accept symbolic LARL operands.
5604 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
5607 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
5609 * config/s390/s390.md (cmpstr_64/31): Mark whole
5610 input registers as used.
5612 2002-05-28 Richard Henderson <rth@redhat.com>
5614 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
5615 not current_function_uses_pic_offset_table and
5616 current_function_uses_const_pool; examine current_function_profile.
5617 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
5618 input to blockage if needed.
5619 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
5620 (legitimize_pic_address): Likewise. Set regs_ever_live for
5621 pic_offset_table_rtx when invoked during reload.
5622 * config/i386/i386.h (FINALIZE_PIC): Remove.
5623 * config/i386/i386.md (tablejump): Reformat. Do not set
5624 current_function_uses_pic_offset_table.
5625 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
5626 (blockage): Accept anything as operand 0.
5628 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5630 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
5631 common CPP built-ins for all NetBSD a.out targets.
5632 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
5633 common CPP built-ins for all NetBSD ELF targets.
5634 * config/netbsd.h: Add missing notice.
5635 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
5636 for all NetBSD targets.
5637 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
5638 for all NetBSD targets using an LP64 code model.
5639 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
5642 2002-05-28 Richard Henderson <rth@redhat.com>
5644 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
5645 update if UPDATE_LIFE_LOCAL.
5647 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5649 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
5651 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
5652 Jason R. Thorpe <thorpej@wasabisystems.com>
5654 config/sh reorganization to factor out endianness and coff:
5656 * config/sh/little.h: New file.
5657 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
5658 defined, define to 0 to select big-endian.
5659 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
5660 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5661 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5662 * config/sh/t-be: New file.
5663 * config/sh/t-le: New file.
5665 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
5666 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
5667 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
5668 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
5669 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
5670 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5671 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
5672 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
5673 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
5674 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
5675 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
5676 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
5677 (LINK_SPEC): Define to SH_LINK_SPEC.
5678 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
5679 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
5680 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5681 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
5682 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
5683 * config/sh/coff.h: New file.
5684 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
5685 (TARGET_OBJFMT_CPP_BUILTINS): Define.
5686 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
5687 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
5688 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
5689 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
5690 (PTRDIFF_TYPE): Likewise.
5691 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
5692 (CPP_PREDEFINES): Don't define.
5693 (TARGET_OBJFMT_CPP_BUILTINS): Define.
5694 (LINK_SPEC): Define to SH_LINK_SPEC.
5695 (LINK_EMUL_PREFIX): Redefine.
5696 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
5697 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
5698 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
5699 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
5700 (TARGET_OS_CPP_BUILTINS): Define.
5701 (TARGET_DEFAULT): Redefine.
5702 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5703 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
5704 (LINK_SPEC): Don't redefine.
5705 (LINK_DEFAULT_CPU_EMUL): Redefine.
5706 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5707 * sh.c (sh_asm_named_section): Don't declare / define.
5708 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
5709 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
5710 (sh64-*-elf* tm_file): Likewise.
5711 (sh-*-rtemself* tm_file): Likewise.
5712 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
5713 (sh-*-linux* tmake_file): Add sh/t-le.
5714 (sh-*-rtems* tm_file): Add sh/coff.h
5715 (sh-*-* tm_file): Likewise.
5717 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
5719 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
5720 CONSTANT_POOL_ADDRESS_P.
5722 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
5724 2002-05-28 David Edelsohn <edelsohn@gnu.org>
5725 Jeff Law <law@redhat.com>
5727 * optabs.c (expand_binop): Fix nwords sign warnings.
5728 generate pseudo for add_optab.
5730 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
5731 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
5733 2002-05-28 Marc Espie <espie@openbsd.org>
5735 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
5736 inherited from gas.h.
5737 (ASM_QUAD): Undef. OpenBSD does not support it.
5739 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
5741 * doc/install.texi (binaries): Change mingw binaries
5742 link to www.mingw.org.
5744 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5746 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
5748 2002-05-28 Richard Henderson <rth@redhat.com>
5750 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
5751 bottom alignment for leaf functions.
5753 2002-05-28 Zack Weinberg <zack@codesourcery.com>
5755 * config/pa/milli32.S, config/pa/lib1funcs.asm,
5756 config/sparc/sol2-g1.asm: Delete unused files.
5758 2002-05-28 Richard Henderson <rth@redhat.com>
5760 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
5762 * flow.c (calculate_global_regs_live): Rename call_used to
5763 invalidated_by_call. Initialize from regs_invalidated_by_call
5764 instead of call_used_regs.
5766 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
5769 2002-05-28 Zack Weinberg <zack@codesourcery.com>
5771 * tree.h: Don't include real.h.
5772 Forward-declare struct realvaluetype.
5773 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
5775 (TREE_REAL_CST_PTR): New accessor.
5776 (TREE_REAL_CST): Update.
5777 * real.h: Include machmode.h.
5778 (realvaluetype): Make it struct realvaluetype, not a typedef.
5779 (build_real): Prototype here.
5781 * tree.c: Include real.h.
5782 (build_real): Allocate the REAL_VALUE_TYPE as a separate
5783 object in GC memory, set TREE_REAL_CST_PTR to point to it.
5784 (build_real_from_int_cst): Use build_real.
5785 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
5788 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
5789 fold-const.c, print-tree.c, real.c: Include real.h.
5790 * Makefile.in: Update dependency lists.
5792 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5794 * basic-block.h (last_basic_block): Declare.
5795 (expunge_block_nocompact): Declaration removed.
5796 (compact_blocks): Declare.
5797 * cfg.c (last_basic_block): New variable.
5798 (expunge_block_nocompact): Removed.
5799 (expunge_block): Do not compact basic blocks.
5800 (compact_blocks): New.
5801 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
5803 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
5805 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
5806 real positions of blocks.
5807 (delete_unreachable_blocks): Simplified -- quadratic behavior now
5809 (cleanup_cfg): Compact blocks.
5810 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
5811 basic_block_info varray.
5812 (flow_delete_block): Comment update.
5813 (back_edge_of_syntactic_loop_p): Modify position check code.
5814 (verify_flow_info): Update checking.
5815 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
5816 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5817 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
5818 indices no longer change.
5819 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
5821 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
5822 * profile.c (branch_prob): Compact blocks.
5823 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
5826 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
5828 * config/h8300/h8300.md (two anonymous patterns): New.
5830 2002-05-28 David S. Miller <davem@redhat.com>
5832 * config/sparc/sparc.md (cpu): Tidy.
5833 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5835 (in_call_delay): Delete reference to 'return' type.
5836 (eligible_for_return_delay, in_return_delay, define_delay
5837 referencing those): Delete.
5838 (rest of file): Use new type attributes as appropriate.
5839 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5840 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5841 * config/sparc/ultra1_2.md (us1_single): New reservation.
5842 (us1_ialuX): Likewise.
5843 * config/sparc/ultra3.md (us3_single): Likewise.
5844 (us3_ialuX): Likewise.
5845 (us3_imul, us3_idiv): Tweak.
5847 2002-05-28 Richard Henderson <rth@redhat.com>
5849 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5852 2002-05-28 Richard Henderson <rth@redhat.com>
5854 * config.gcc: Obsolete mn10200.
5856 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
5858 * cppexp.c (interpret_number): Optimize for single-digit
5859 and less-than-half-precision cases.
5860 (num_trim, num_positive, num_div_op): Cast constants.
5862 2002-05-27 Bo Thorsen <bo@suse.de>
5864 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5865 3.1 branch. The file was made by Jakub Jelinek.
5866 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5867 support so multilib doesn't break. And don't define this at all
5868 when -Dinhibit_libc is used.
5869 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5870 * config/i386/t-linux64: Implement full multilib support. Patch
5871 originally done by Andreas Jaeger and Jakub Jelinek.
5873 2002-05-27 Roger Sayle <roger@eyesopen.com>
5875 * c-common.c: Add support for __attribute__((nothrow)) to specify
5876 that a function cannot throw an exception (using TREE_NOTHROW).
5877 (handle_nothrow_attribute): New function to process this attribute.
5879 * doc/extend.texi: Document the new nothrow function attribute.
5881 2002-05-27 H.J. Lu (hjl@gnu.org)
5883 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5884 (num_positive): Likewise.
5885 (num_div_op): Likewise.
5887 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5889 * c-common.c (c_common_init): Always use intmax_t.
5891 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5893 * c-common.c (c_common_init): Use intmax_t for now.
5895 2002-05-24 Andrew Haley <aph@redhat.com>
5897 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5898 if T is a boolean type.
5900 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5902 * basic-block.h (last_basic_block): Defined as synonym for
5904 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5905 flow_depth_first_order_compute, flow_preorder_transversal_compute,
5906 flow_dfs_compute_reverse_init): Replaced relevant occurences of
5907 n_basic_blocks with last_basic_block.
5908 * cfgbuild.c (make_edges): Likewise.
5909 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5910 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5911 * combine.c (combine_instructions): Likewise.
5912 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5913 iterative_dataflow_bitmap): Likewise.
5914 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5915 calc_idoms, idoms_to_doms): Likewise.
5916 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5918 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5919 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5920 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5921 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5922 delete_null_pointer_checks, compute_code_hoist_vbeinout,
5923 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5924 compute_store_table, build_store_vectors): Likewise.
5925 * haifa-sched.c (sched_init): Likewise.
5926 * ifcvt.c (if_convert): Likewise.
5927 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5928 pre_edge_lcm, compute_available, compute_nearerout,
5929 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5931 * predict.c (estimate_probability, process_note_prediction,
5932 note_prediction_to_br_prob): Likewise.
5933 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5934 * recog.c (split_all_insns, peephole2_optimize): Likewise.
5935 * regrename.c (copyprop_hardreg_forward): Likewise.
5936 * resource.c (init_resource_info): Likewise.
5937 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5938 init_regions, schedule_insns): Likewise.
5939 * ssa-ccp.c (ssa_const_prop): Likewise.
5940 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5941 * ssa.c (compute_dominance_frontiers,
5942 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5944 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5945 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5948 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5950 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5952 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5953 hoist_insn_after, hoist_insn_to_edge): New.
5955 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
5957 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5958 (PROP_FINAL): Include.
5959 * flow.c (life_analysis, update_life_info,
5960 init_propagate_block_info, mark_set_1, mark_used_rgs):
5961 Support SCAN_DEAD_STORE.
5963 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
5965 * c-common.c (c_common_init): Set CPP arithmetic precision.
5966 * cppexp.c (cpp_num_part): Move typedef ...
5967 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5968 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5969 (sanity_checks): Update.
5971 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
5973 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5974 (mkheaders): New rule.
5975 (install-mkheaders): New rule.
5976 * configure.in (all_outputs): Add mkheaders.
5977 * configure: Regenerate.
5978 * mkheaders.in: New file.
5980 2002-05-26 Jakub Jelinek <jakub@redhat.com>
5982 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5984 2002-05-26 Andreas Jaeger <aj@suse.de>
5986 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5988 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
5990 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5991 right_shift): Remove.
5992 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5994 (struct op): Use cpp_num.
5995 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5996 num_part_mul, num_unary_op, num_binary_op, num_negate,
5997 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5998 num_div_op, num_lshift, num_rshift, append_digit): New.
5999 (interpret_number, parse_defined, eval_token, reduce): Update
6000 for two-integer arithmetic.
6001 (binary_handler): New typedef.
6003 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
6004 (_cpp_parse_expr, reduce): Update to handle two-integers.
6005 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
6007 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6009 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
6010 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
6011 branch insn into account, do not assume 1.
6012 (avr_out_sbxx_branch): New function. Optimize cases of skipping
6013 over single word insn. Handle upper half of I/O space too.
6014 * config/avr/avr.md (*sbrx_branch): Use it.
6015 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
6016 (*sbix_branch, *sbix_branch_bit7): Likewise.
6017 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
6018 Use RTL peepholes to optimize register operand sign tests.
6020 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
6022 * config/avr/avr.c (avr_asm_only_p): New variable.
6023 (avr_override_options): Set it here if AVR1.
6024 (asm_file_start): Test it here, report an error if set.
6026 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
6028 * alias.c: Fix formatting.
6029 * attribs.c: Likewise.
6030 * bb-reorder.c: Likewise.
6031 * bitmap.c: Likewise.
6032 * bitmap.h: Likewise.
6033 * builtins.c: Likewise.
6035 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
6037 * reload.c (find_valid_class): Accept new argument DEST,
6038 choose class accordingly.
6039 (push_reload): Update callers.
6041 2002-05-26 Andreas Jaeger <aj@suse.de>
6043 * combine.c (combine_instructions): Do not indent #if for
6046 2002-05-25 Richard Henderson <rth@redhat.com>
6048 * c-pragma.c (apply_pragma_weak): Convert value identifier to
6049 string for decl_attributes.
6050 (handle_pragma_weak): Call assemble_alias if we're modifying
6053 2002-05-25 Richard Henderson <rth@redhat.com>
6056 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
6057 using rtl instead of fprintf.
6058 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
6059 * config/sparc/sparc-protos.h: Update.
6061 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
6063 * Makefile.in (C_COMMON_H): Fix.
6064 Update other targets.
6065 * c-common.c: Don't include c-lex.h.
6066 (builtin_define_with_value): Make static and prototype.
6067 (builtin_define_std): Move from c-lex.h.
6068 * c-common.h (init_c_lex): Move from c-lex.h.
6069 * c-decl.c: Don't include c-lex.h.
6070 (make_pointer_declarator): Move from c-parse.in.
6071 * c-lex.c: Don't include c-lex.h.
6073 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
6074 (make_pointer_declarator): Move to c-decl.c.
6075 * c-pragma.c: Don't include c-lex.h.
6076 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
6077 * c-tree.h (make_pointer_declarator): New.
6079 * passes.texi, tm.texi: Update.
6081 * Make-lang.in: Update and correct.
6082 * objc-act.c: Don't include c-lex.h or cpplib.h.
6084 * treetree.c: Don't include c-lex.h.
6086 * darwin-c.c: Don't include c-lex.h.
6087 * c4x/c4x-c.c: Don't include c-lex.h.
6088 * c4x/t-c4x: Update.
6089 * i370/i370-c.c: Don't include c-lex.h.
6090 * i370/t-i370: Update.
6091 * i960/i960-c.c: Don't include c-lex.h.
6092 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
6093 * i960/t-960bare: Update.
6094 * i960/t-vxworks: Update.
6095 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
6096 * rs6000/t-darwin: Update.
6097 * rs6000/t-rs6000-c-rule: Update.
6098 * v850/v850-c.c: Don't include c-lex.h.
6099 * v850/v850.c: Don't include c-lex.h or cpplib.h.
6102 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
6104 * tree.def: Fix typos.
6105 * doc/install.texi: Likewise.
6107 2002-05-25 Richard Henderson <rth@redhat.com>
6109 * configure.in (HAVE_AS_TLS): Add ia64 test.
6110 * configure: Rebuild.
6111 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
6112 (override_options): Set it.
6113 (TARGET_HAVE_TLS): New.
6114 (sdata_symbolic_operand): Look for 's'.
6115 (tls_symbolic_operand): New.
6116 (ia64_expand_load_address): Abort for tls symbols.
6117 (gen_tls_get_addr): New.
6118 (gen_thread_pointer): New.
6119 (ia64_expand_move): Split out from movdi. Handle tls symbols.
6120 (rtx_needs_barrier): Add new unspecs.
6121 (ia64_encode_section_info): Handle tls symbols.
6122 (ia64_strip_name_encoding): Strip two encoding chars.
6123 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
6124 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
6125 (TARGET_OPTIONS): Add tls-size.
6126 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
6127 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
6128 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
6129 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
6130 (movsf, movdf): Likewise.
6131 (movdi_symbolic): Use match_scratch. Don't split if we won't
6132 have a scratch availiable.
6133 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
6134 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
6135 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
6136 * config/ia64/ia64-protos.h: Update.
6137 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
6138 sdata_symbolic_operand.
6139 (ASM_OUTPUT_LABELREF): Strip two characters.
6141 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
6143 * combine.c (simplify_set): Remove an unnecessary subreg.
6145 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
6147 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
6149 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
6151 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
6153 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
6155 2002-05-25 Roger Sayle <roger@eyesopen.com>
6157 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
6158 (cond (compare x y) 0) into the equivalent (cond x y).
6160 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
6162 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
6164 2002-05-24 Zack Weinberg <zack@codesourcery.com>
6166 * config.gcc: Remove all stanzas for previously obsoleted
6167 systems. Where necessary, add explicit error stanzas to
6168 prevent removed systems from being misidentified as something
6169 else. Begin a fresh obsoletions list, with the systems that
6170 were reprieved last round.
6171 * doc/install.texi: Remove all mention of dead targets.
6172 * fixinc/mkfixinc.sh: Likewise.
6174 * config/arm/arm.h: Bit 31 of target_flags is no longer
6177 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
6178 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
6179 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
6180 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
6181 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
6182 config/alpha/osf12.h, config/alpha/osf2or3.h,
6183 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
6184 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
6185 config/clipper/clipper-protos.h, config/clipper/clipper.c,
6186 config/clipper/clipper.h, config/clipper/clipper.md,
6187 config/clipper/clix.h, config/convex/convex-protos.h,
6188 config/convex/convex.c, config/convex/convex.h,
6189 config/convex/convex.md, config/convex/fixinc.convex,
6190 config/convex/proto.h, config/elxsi/elxsi-protos.h,
6191 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
6192 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
6193 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
6194 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
6195 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
6196 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
6197 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
6198 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
6199 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
6200 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
6201 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
6202 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
6203 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
6204 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
6205 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
6206 config/m68k/altos3068.h, config/m68k/apollo68.h,
6207 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
6208 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
6209 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
6210 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
6211 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
6212 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
6213 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
6214 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
6215 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
6216 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
6217 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
6218 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
6219 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
6220 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
6221 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
6222 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
6223 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
6224 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
6225 config/mips/dec-osf1.h, config/mips/elflorion.h,
6226 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
6227 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
6228 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
6229 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
6230 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
6231 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
6232 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
6233 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
6234 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
6235 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
6236 config/ns32k/sequent.h, config/ns32k/tek6000.h,
6237 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
6238 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
6239 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
6240 config/sparc/rtems.h, config/we32k/we32k-protos.h,
6241 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
6244 2002-05-24 Richard Henderson <rth@redhat.com>
6246 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
6247 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
6248 * config/i386/i386.c (tls_model_chars): Add leading space.
6249 (tls_symbolic_operand): Don't bias by 1.
6250 (legitimize_address): Don't unbias by 1.
6252 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
6254 * lcm.c (optimize_mode_switching): Change bb used as indices
6257 2002-05-24 Richard Henderson <rth@redhat.com>
6259 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
6260 of update_life_info_in_dirty_blocks.
6262 2002-05-24 Jakub Jelinek <jakub@redhat.com>
6265 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
6267 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
6269 PR preprocessor/6780
6270 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
6272 2002-05-24 Jim Blandy <jimb@redhat.com>
6274 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
6275 entry with a type code of zero, marking the end of the compilation
6278 2002-05-24 Richard Henderson <rth@redhat.com>
6280 * varasm.c (asm_output_bss): Always output one byte.
6281 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
6283 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6285 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
6288 2002-05-24 Andreas Jaeger <aj@suse.de>
6290 * ggc-page.c (alloc_page): Cast variables of type size_t to
6291 unsigned long, adjust printf format string.
6292 (ggc_alloc): Likewise.
6293 (ggc_print_statistics): Likewise.
6294 (ggc_print_statistics): Correct printf format string for SCALE to
6297 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
6299 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
6301 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
6302 Zack Weinberg <zack@codesourcery.com>
6304 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
6306 * dwarf2out.c (lookup_filename): Properly quote filename in .file
6307 directive in assembly file.
6308 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6309 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
6310 * config/pj/pj.h (ASM_FILE_START): Likewise.
6311 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
6312 * config/avr/avr.c (asm_file_end): Likewise.
6313 * toplev.c (output_quoted_string): Handle possibly signed plain
6315 * toplev.h (output_clean_symbol_name): Declare
6316 * toplev.c (output_clean_symbol_name): Define.
6317 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
6318 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
6320 2002-05-24 Alan Modra <amodra@bigpond.net.au>
6322 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
6324 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
6326 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
6327 of size of unsigned.
6329 2002-05-23 Richard Henderson <rth@redhat.com>
6331 * configure.in (HAVE_AS_TLS): New test.
6332 * config.in, configure: Rebuild.
6333 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
6334 (ix86_tls_dialect_string, ix86_tls_dialect): New.
6335 (override_options): Set it.
6336 (tls_model_chars, tls_symbolic_operand): New.
6337 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
6338 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
6339 (local_exec_symbolic_operand): New.
6340 (get_pic_label_name): Merge into output_set_got.
6341 (ix86_asm_file_end): Emit pic_label_name if defined.
6342 (legitimate_constant_p, constant_address_p): New.
6343 (legitimate_pic_operand_p): New.
6344 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
6345 (legitimate_address_p): Likewise.
6346 (ix86_encode_section_info): Rename from i386_; handle tls decls.
6347 (ix86_strip_name_encoding): New.
6348 (get_thread_pointer): New.
6349 (legitimize_address): Handle tls symbols.
6350 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
6352 (struct machine_function): Add some_ld_name.
6353 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
6354 (print_operand) [&]: Use it. Handle UNSPEC_TP.
6355 (output_addr_const_extra): New.
6356 (maybe_get_pool_constant): New.
6357 (ix86_split_to_parts): Use it.
6358 (ix86_expand_move): Handle tls symbols.
6359 (ix86_tls_get_addr): New.
6360 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
6361 (TARGET_OPTIONS): Add tls-dialect.
6362 (CONSTANT_ADDRESS_P): Use new out-of-line function.
6363 (LEGITIMATE_CONSTANT_P): Likewise.
6364 (LEGITIMATE_PIC_OPERAND_P): Likewise.
6365 (TARGET_STRIP_NAME_ENCODING): New.
6366 (ASM_OUTPUT_LABELREF): New.
6367 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
6368 (OUTPUT_ADDR_CONST_EXTRA): New.
6369 (PREDICATE_CODES): Update.
6370 (ix86_tls_dialect, ix86_tls_dialect_string): New.
6371 * config/i386/i386.md: Regroup and renumber unspec constants.
6372 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
6373 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
6374 (tls_global_dynamic, tls_local_dynamic_base): New.
6375 (tls_local_dynamic_once): New.
6376 * config/i386/i386-protos.h: Update.
6378 2002-05-23 Richard Henderson <rth@redhat.com>
6380 * genemit.c (gen_insn): Print file:lineno comment before function.
6382 * gensupport.c (struct queue_elem): Add filename member.
6383 (queue_pattern): Initialize it; update all callers.
6384 (process_include): Don't free filename.
6385 (read_md_rtx): Set read_rtx_filename.
6387 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
6389 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
6391 2002-05-23 Richard Henderson <rth@redhat.com>
6393 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
6395 2002-05-23 Richard Henderson <rth@redhat.com>
6397 * doc/extend.texi (C++98 Thread-Local Edits): Update with
6398 commentary from Mark.
6400 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6402 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
6403 Use FOR_EACH_BB macros to iterate over basic block chain.
6404 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
6405 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
6407 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
6408 find_unreachable_blocks, create_edge_list, verify_edge_list,
6409 remove_fake_edges, add_noreturn_fake_exit_edges,
6410 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
6412 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6413 find_sub_basic_blocks): Likewise.
6414 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
6416 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
6418 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
6420 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
6421 commit_edge_insertions, commit_edge_insertions_watch_calls,
6422 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
6423 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
6424 * conflict.c (conflict_graph_compute): Likewise.
6425 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6426 df_modified_p, df_refs_unlink, df_dump): Likewise.
6427 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
6428 * final.c (compute_alignments): Likewise.
6429 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
6430 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
6431 count_or_remove_death_notes): Likewise.
6432 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
6433 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
6434 classic_gcse, compute_transp, cprop, compute_pre_data,
6435 compute_transpout, invalidate_nonnull_info,
6436 delete_null_pointer_checks_1, delete_null_pointer_checks,
6437 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
6438 compute_store_table, build_store_vectors, store_motion): Likewise.
6439 * global.c (global_conflicts, mark_elimination): Likewise.
6440 * graph.c (print_rtl_graph_with_bb): Likewise.
6441 * haifa-sched.c (sched_init): Likewise.
6442 * ifcvt.c (if_convert): Likewise.
6443 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
6444 compute_available, compute_nearerout, compute_rev_insert_delete,
6445 optimize_mode_switching): Likewise.
6446 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
6447 * predict.c (estimate_probability, note_prediction_to_br_prob,
6448 propagate_freq, counts_to_freqs, expensive_function_p,
6449 estimate_bb_frequencies): Likewise.
6450 * profile.c (instrument_edges, get_exec_counts,
6451 compute_branch_probabilities, compute_checksum, branch_prob,
6452 find_spanning_tree): Likewise.
6453 * recog.c (split_all_insns, peephole2_optimize): Likewise.
6454 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
6456 * regclass.c (scan_one_insn, regclass): Likewise.
6457 * regmove.c (mark_flags_life_zones, regmove_optimize,
6458 record_stack_memrefs): Likewise.
6459 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
6460 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
6461 * resource.c (find_basic_block): Likewise.
6462 * sched-ebb.c (schedule_ebbs): Likewise.
6463 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
6464 find_single_block_region, find_rgns, schedule_insns)
6465 * sibcall.c (optimize_sibling_and_tail_recursive_call)
6466 * ssa-ccp.c (optimize_unexecutable_edges,
6467 ssa_ccp_df_delete_unreachable_insns): Likewise.
6468 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6469 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
6470 rename_block, convert_to_ssa, compute_conservative_reg_partition,
6471 compute_coalesced_reg_partition, rename_equivalent_regs,
6472 convert_from_ssa): Likewise.
6473 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
6474 process_for_unwind_directive): Likewise.
6476 * df.c (FOR_ALL_BBS): Removed.
6477 * gcse.c (struct null_pointer_info): Type of current_block field
6479 (struct reg_avail_info): Type of last_bb field changed.
6480 * config/ia64/ia64.c (block_num): Removed.
6481 (need_copy_state): Type changed.
6484 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
6486 * cppinit.c (mark_named_operators): Split out from init_builtins.
6487 (cpp_finish_options): Call it from here instead.
6489 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6491 * builtin-attrs.def: Update copyright years.
6492 (ATTR_NONNULL): New attribute identifier.
6493 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
6494 attribute tree lists.
6495 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
6497 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
6498 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
6499 attribute lists. Chain the appropriate nonnull attribute.
6500 * c-format.c (check_format_arg): Remove null format string
6502 * testsuite/gcc.dg/format/null-1.c: New test.
6504 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6506 * Makefile.in (ADAC): Define.
6508 (.SUFFIXES): Move before language makefile fragments.
6509 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
6511 2002-05-23 Mark Mitchell <mark@codesourcery.com>
6513 * varasm.c (make_decl_rtl): Don't allow weak variables to be
6516 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
6518 * cfg.c (dump_flow_info): Print results of
6519 maybe_hot/probably_never_executed predicates.
6520 * toplev.c (open_dump_file): Print function frequency.
6522 2002-05-23 David S. Miller <davem@redhat.com>
6524 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
6527 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6529 * c-common.c (warn_nonnull): Declare.
6530 (c_common_attribute_table): Add "nonnull" attribute.
6531 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
6532 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
6533 check_function_arguments_recurse): New functions.
6534 * c-common.h (warn_nonnull): Declare extern.
6535 (check_function_arguments, check_function_arguments_recurse): New
6537 * c-decl.c (c_decode_option): Add -Wnonnull option.
6538 * c-format.c (set_Wformat): Set warn_nonnull if enabling
6540 (format_check_context): New structure.
6541 (check_format_info_recurse): Remove recursion and rename to...
6542 (check_format_arg): ...this. Update comment.
6543 (check_format_info): Use check_function_arguments_recurse.
6544 * c-typeck.c (build_function_call): Call check_function_arguments
6545 instead of check_function_format.
6546 * doc/extend.texi: Document "nonnull" attribute.
6547 * doc/invoke.texi: Docuemnt -Wnonnull option.
6548 * testsuite/gcc.dg/nonnull-1.c: New test.
6549 * testsuite/gcc.dg/nonnull-2.c: New test.
6551 2002-05-23 David S. Miller <davem@redhat.com>
6553 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
6554 * cfgcleanup.c (cleanup_cfg): If it is set do not
6555 attempt to delete trivially dead insns.
6556 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
6557 * toplev.c (rest_of_compilation): Document non-trivial aspect
6558 the RTL before optimize_save_area_alloca is run.
6560 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
6562 * c-lex.c (indent_level): Remove.
6563 (cb_file_change, c_lex): Remove indent level handling.
6564 * c-lex.h (indent_level): Remove.
6565 * input.h (struct file_stack): Remove indent_level.
6566 * toplev.c (push_srcloc): Remove indent_level handling.
6568 2002-05-23 Jakub Jelinek <jakub@redhat.com>
6571 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
6572 of x in constraints for clarity.
6573 (sse_mov?fcc split): abort if op2 == op3.
6574 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
6575 sse_movsfcc_const0_4): Add earlyclobber.
6576 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
6577 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
6578 Use Y instead of x in constraints.
6580 2002-05-23 Richard Henderson <rth@redhat.com>
6582 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
6583 (C++98 Thread-Local Edits): New subsection.
6585 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
6586 (ix86_arch): Set type to enum processor_type.
6588 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
6589 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
6591 2002-05-23 Jakub Jelinek <jakub@redhat.com>
6593 * configure.in: Fix as version test for binutils 2.12.1 releases
6595 * configure: Rebuilt.
6597 2002-05-23 Richard Henderson <rth@redhat.com>
6599 * config/i386/i386.c (get_pic_label_name): New.
6600 (load_pic_register): Remove.
6601 (output_set_got): New.
6602 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
6603 * config/i386/i386.md (UNSPEC_SET_GOT): New.
6604 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
6605 (prologue_set_got, prologue_get_pc): Remove.
6606 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
6607 (builtin_setjmp_receiver): Use gen_set_got.
6608 * config/i386/i386-protos.h: Update.
6610 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
6612 * gcse.c (hash_expr): Do not use alias set for hashing.
6614 2002-05-22 Kevin Buettner <kevinb@redhat.com>
6616 * dbxout.c (dbxout_class_name_qualifiers): New function.
6617 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
6619 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
6621 * cpperror.c (_cpp_begin_message): No special casing
6623 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
6624 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
6625 * cpplib.c (do_include_common): Use DL_ERROR.
6626 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
6628 * fix-header.c (read_scan_file): Update.
6630 2002-05-22 Richard Henderson <rth@redhat.com>
6632 * config/i386/i386.c (ix86_expand_call): New function, extracted
6633 from md call patterns. Add pic_offset_table_rtx to
6634 CALL_INSN_FUNCTION_USAGE when needed.
6635 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
6636 (call_value_pop, call_value, untyped_call): Likewise.
6637 (call_exp, call_value_exp): Remove.
6638 * config/i386/i386-protos.h: Update.
6640 2002-05-22 Richard Henderson <rth@redhat.com>
6642 * varasm.c (default_section_type_flags): Check for VAR_DECL
6643 before using DECL_THREAD_LOCAL.
6645 2002-05-22 David Edelsohn <edelsohn@gnu.org>
6647 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
6648 (STARTFILE_SPEC): Delete PE crt0.o.
6649 * config/rs6000/aix51.h: Same.
6650 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
6651 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
6652 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
6653 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
6654 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
6656 2002-05-22 Richard Henderson <rth@redhat.com>
6658 * varasm.c (default_section_type_flags): Handle tls data and
6660 (default_unique_section): Handle tls sections.
6662 2002-05-23 Alan Modra <amodra@bigpond.net.au>
6664 * configure.in (CROSS): Define NATIVE_CROSS.
6665 * configure: Regenerate.
6666 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
6667 (startfile_prefix_spec): New var.
6668 (static_specs): Add startfile_prefix_spec.
6669 (do_spec_2): Split out from..
6671 (main): Process startfile_prefix_spec.
6672 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
6674 (STARTFILE_PREFIX_SPEC): Define.
6675 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
6678 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
6680 * cpperror.c: Fix formatting.
6681 * cppexp.c: Likewise.
6682 * cppfiles.c: Likewise.
6683 * cpphash.c: Likewise.
6684 * cpphash.h: Likewise.
6685 * cppinit.c: Likewise.
6686 * cpplex.c: Likewise.
6687 * cpplib.c: Likewise.
6688 * cppmacro.c: Likewise.
6689 * cppmain.c: Likewise.
6690 * cppspec.c: Likewise.
6692 2002-05-22 Jakub Jelinek <jakub@redhat.com>
6694 * combine.c (force_to_mode): Use gen_int_mode.
6695 Don't clear CONST_INT bits outside of mode.
6697 2002-05-22 Richard Henderson <rth@redhat.com>
6699 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
6700 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6702 2002-05-22 Jakub Jelinek <jakub@redhat.com>
6705 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
6706 if DECL_SIZE_UNIT is INTEGER_CST.
6708 2002-05-22 Richard Henderson <rth@redhat.com>
6710 * flow.c (life_analysis): Delete broken reg_label check.
6712 2002-05-22 Richard Henderson <rth@redhat.com>
6714 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
6715 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6717 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6719 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
6720 (embed-bb.c): New rule.
6721 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
6722 * config/sh/embed_bb.c: Delete.
6724 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
6726 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
6728 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
6730 * config/h8300/h8300.md (*andorqi3): New.
6732 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
6734 PR preprocessor/6517
6735 * Makefile.in: Update.
6736 * c-common.c (c_common_post_options): Add preprocessor
6737 errors to the error count.
6738 * c-lang.c (c_post_options): Kill.
6739 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6740 * hooks.h: Add header guards.
6741 * langhooks-def.h: Include hooks.h.
6742 (LANG_HOOKS_POST_OPTIONS): Update.
6743 * langhooks.h (struct lang_hooks): Update post_options.
6744 * toplev.c (parse_options_and_default_flags): Update.
6746 * objc-lang.c (objc_post_options): Kill.
6747 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6749 2002-05-21 Bruce Korb <bkorb@gnu.org>
6751 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
6752 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
6753 * fixinc/fixincl.x: regen.
6755 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
6757 * cfgbuild.c: Fix formatting.
6759 * cfgcleanup.c: Likewise.
6760 * cfglayout.c: Likewise.
6761 * cfgloop.c: Likewise.
6762 * cfgrtl.c: Likewise.
6764 2002-05-21 Richard Henderson <rth@redhat.com>
6766 * c-common.h (enum rid): Add RID_THREAD.
6767 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
6768 (grokdeclarator): Grok __thread.
6769 * c-parse.in (reswords): Add __thread.
6770 (rid_to_yy): Add RID_THREAD.
6772 * tree.h (DECL_THREAD_LOCAL): New.
6773 (struct tree_decl): Add thread_local_flag.
6774 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
6775 * tree.c (staticp): TLS variables are not static.
6777 * target-def.h (TARGET_HAVE_TLS): New.
6778 * target.h (have_tls): New.
6779 * output.h (SECTION_TLS): New.
6780 * varasm.c (assemble_variable): TLS variables can't be common for now.
6781 (default_section_type_flags): Handle .tdata and .tbss.
6782 (default_elf_asm_named_section): Handle SECTION_TLS.
6783 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
6785 * flags.h (flag_tls_default): Declare.
6786 * toplev.c (flag_tls_default): Define.
6787 (display_help): Display help for it.
6788 (decode_f_option): Set it.
6790 * doc/extend.texi (Thread-Local): New node describing language-level
6791 thread-local storage.
6792 * doc/invoke.texi (-ftls-model): Document.
6794 * fixinc/inclhack.def (thread_keyword): New.
6795 * fixinc/fixincl.x: Rebuild.
6797 2002-05-21 Jeffrey A Law <law@redhat.com>
6799 * optabs.c (expand_binop): For double-word integer multiplies,
6800 do not compute intermediate results into something that is
6801 not a register (such as a SUBREG or MEM).
6803 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
6804 (ix86_sched_reorder): Make sure to initialize scheduling
6805 data even when there's only one insn in the ready queue.
6807 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
6809 * genautomata.c (reserv_sets_hash_value): Fix a typo.
6811 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
6813 * genautomata.c (reserv_sets_hash_value): Define hash_value as
6814 set_el_t. Transform the hash value into unsigned.
6815 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
6816 (transform_3): Add code to process `(A,B)+(D,E)'.
6818 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
6820 * reload1.c (do_output_reload): Run delete_output_reload
6823 2002-05-21 Roger Sayle <roger@eyesopen.com>
6826 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
6827 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
6828 (can_store_by_pieces): ... and here to limit the largest mode used.
6829 Add a comment to document this function.
6831 2002-05-21 Richard Henderson <rth@redhat.com>
6833 * flow.c (life_analysis): Fix test for deleted label.
6835 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
6837 * doc/tm.texi: Fix typo.
6839 2002-05-21 Zack Weinberg <zack@codesourcery.com>
6841 * c-common.c (c_common_init): Set options->unsigned_char from
6843 (cb_register_builtins): Define __STRICT_ANSI__ and
6844 __CHAR_UNSIGNED__ here...
6845 * cppinit.c (init_builtins): Not here.
6846 (cpp_create_reader): unsigned_char option defaults to 0, not
6847 !DEFAULT_SIGNED_CHAR.
6848 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6849 and -funsigned-char.
6851 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6852 * cpphash.c (_cpp_init_hashtable): Don't set it.
6853 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6854 directly. Clarify comment.
6856 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6858 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6859 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
6860 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
6861 BASIC_BLOCK (n_basic_blocks - 1).
6862 * cfganal.c (can_fallthru, flow_call_edges_add,
6863 flow_preorder_transversal_compute): Too.
6864 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6865 find_sub_basic_blocks): Too.
6866 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6867 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6868 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6869 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6870 * combine.c (this_basic_block): Type changed to basic_block.
6871 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6872 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6873 get_last_value, distribute_notes, distribute_links): Too.
6874 * final.c (compute_alignments): Too.
6875 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6876 * function.c (thread_prologue_and_epilogue_insns): Too.
6877 * gcse.c (compute_code_hoist_vbeinout): Too.
6878 * global.c (build_insn_chain): Too.
6879 * ifcvt.c (find_if_block, find_cond_trap): Too.
6880 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6881 * regmove.c (regmove_optimize): Too.
6882 * resource.c (find_basic_block): Too.
6883 * sched-ebb.c (schedule_ebbs): Too.
6884 * ssa-dce.c (find_control_dependence, find_pdom): Too.
6886 2002-05-21 Andreas Jaeger <aj@suse.de>
6888 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6890 2002-05-21 Richard Henderson <rth@redhat.com>
6892 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6893 unspec names, not numbers.
6895 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
6897 * doc/sourcebuild.texi: Mention snapshot-README and
6898 snapshot-index.html as needing updating for new front ends.
6900 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6902 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6903 disabling checking, and avoid multiple evaluation of RTX.
6905 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
6907 * bitmap.c (bitmap_find_bit): Return early if we have the correct
6910 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6912 * profile.c (gen_edge_profiler): Set alias set before the memory is
6915 2002-05-20 David S. Miller <davem@redhat.com>
6917 * cselib.c (max_value_regs): New.
6918 (cselib_lookup, cselib_invalidate_regno): Initialize it when
6919 adding new entries to the REG_VALUES table and we are dealing with
6921 (clear_table): Initialize it.
6922 (cselib_invalidate_regno): Use it to determine which hard
6923 registers to scan when mode is not VOIDmode.
6925 2002-05-20 Duraid Madina <duraid@fl.net.au>
6927 * tradcpp.c (fixup_newlines): Use old-style function header.
6929 2002-05-20 Krister Walfridsson <cato@df.lth.se>
6931 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6933 2002-05-20 H.J. Lu (hjl@gnu.org)
6935 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6937 * config/mips/mips.h (DFMODE_NAN): Defined.
6938 (SFMODE_NAN): Likewise.
6940 2002-05-20 Dale Johannesen <dalej@apple.com>
6942 * combine.c (cant_combine_insn_p): Back out my
6945 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6947 * params.c: Fix formatting.
6948 * params.h: Likewise.
6949 * predict.c: Likewise.
6950 * prefix.c: Likewise.
6951 * print-rtl.c: Likewise.
6952 * print-tree.c: Likewise.
6953 * profile.c: Likewise.
6955 2002-05-20 H.J. Lu (hjl@gnu.org)
6957 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6959 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
6961 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6962 switches straight on to the assembler, do not abbreviate them.
6963 * config/arm/elf.h (ASM_SPEC): As above.
6964 * config/arm/semi.h (ASM_SPEC): As above.
6965 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6966 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6967 -mcpu=xscale on to the assembler by default.
6968 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6970 2002-05-20 Richard Henderson <rth@redhat.com>
6972 * cse.c (canon_hash): Reorder do_not_record test. Always
6973 allow pic_offset_table_rtx.
6975 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
6977 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6978 (expand_binop): Ditto (3 times).
6980 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
6982 * Makefile.in (distclean): Remove QMTest stuff.
6983 (QMTEST_PATH): New variable.
6984 (QMTESTFLAGS): Likewise.
6985 (QMTESTRUNFLAGS): Likewise.
6987 (QMTEST_GPP_TESTS): Likewise.
6988 (QMTEST_DIR): Likewise.
6989 (QMTEST_DIR/context): New target.
6990 (qmtest-g++): Likeise.
6991 (qmtest-gui): Likewise.
6992 (QMTEST_DIR/gpp-expected.qmr): Likewise.
6994 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
6996 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6997 an altivec register if TARGET_ALTIVEC.
6999 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
7000 to ALTIVEC_VECTOR_MODE.
7001 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
7002 (rs6000_va_arg): Vectors may go in registers if they are not
7005 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
7007 * protoize.c: Fix formatting.
7009 2002-05-19 Richard Henderson <rth@redhat.com>
7011 * gensupport.c (init_include_reader): Merge into ...
7012 (process_include): ... here. Simplify composite path creation.
7013 Plug memory leaks. Fix file/line number tracking. Do not
7014 process_define_cond_exec. Return void.
7015 (process_rtx): Don't check process_include return value.
7017 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7019 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
7021 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7022 traversing basic block chain.
7023 (create_basic_block_structure, create_basic_block): Declaration changed.
7024 (link_block, unlink_block): Declare.
7025 * cfg.c (entry_exit_blocks): Initialize new fields.
7026 (link_block, unlink_block): New.
7027 (expunge_block_nocompact): Unlink basic block.
7028 (dump_flow_info): Print prev_bb/next_bb fields.
7029 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
7030 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
7031 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
7032 * cfgrtl.c (create_basic_block_structure, create_basic_block,
7033 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
7034 (verify_flow_info): Check that list agrees with numbering.
7036 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
7038 * c-common.c (preprocessing_asm): New macro.
7039 * c-lex.h (builtin_define, builtin_assert): Use pfile.
7043 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
7044 (CPP_SPEC): Simplify.
7045 (TARGET_CPU_CPP_BUILTINS): Update.
7046 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
7047 (CPP_SPEC): Simplify.
7048 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
7049 (TARGET_OS_CPP_BUILTINS): Update.
7050 * osf.h (CPP_XFLOAT_SPEC): Kill.
7051 (TARGET_OS_CPP_BUILTINS): Update.
7052 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
7053 * osf5.h (CPP_XFLOAT_SPEC): Kill.
7054 * vms.h (CPP_SUBTARGET_SPEC): Kill.
7055 (TARGET_OS_CPP_BUILTINS): Update.
7057 2002-05-19 Richard Henderson <rth@redhat.com>
7059 * varasm.c (default_binds_local_p): Fix typo.
7061 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
7063 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
7064 CONST_INT operand to the correct mode after adding 1 to it.
7066 2002-05-19 Mark Mitchell <mark@codesourcery.com>
7068 * config.gcc (powerpc-wrs-windiss*): New target.
7070 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7072 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
7075 2002-05-18 Mark Mitchell <mark@codesourcery.com>
7077 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
7079 * config.in: Regenerated.
7080 * configure: Regenerated.
7082 2002-05-19 Richard Henderson <rth@redhat.com>
7084 * target-def.h (TARGET_BINDS_LOCAL_P): New.
7085 * target.h (struct gcc_target): Move boolean fields to the end.
7087 * varasm.c (default_binds_local_p): New.
7088 * output.h: Declare it.
7090 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
7091 * config/cris/cris.c (cris_encode_section_info): Likewise.
7092 * config/i386/i386.c (i386_encode_section_info): Likewise.
7093 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
7094 * config/sh/sh.c (sh_encode_section_info): Likewise.
7096 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
7097 (TARGET_BINDS_LOCAL_P): New.
7099 2002-05-19 Richard Henderson <rth@redhat.com>
7101 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
7102 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
7103 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
7105 * toplev.c (display_help): Kill -a -ax help.
7107 * config/1750a/1750a.h, config/alpha/alpha.h,
7108 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
7109 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
7110 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
7111 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
7113 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
7114 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
7116 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
7117 (ix86_output_function_block_profiler): Kill.
7118 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
7119 (m68hc11_function_block_profiler): Kill.
7120 * config/m68hc11/m68hc11-protos.h: Update.
7121 * config/m88k/m88k.c (output_block_profiler): Kill.
7122 (output_function_block_profiler): Kill.
7123 * config/m88k/m88k-protos.h: Update.
7125 2002-05-19 Richard Henderson <rth@redhat.com>
7127 * system.h (STRIP_NAME_ENCODING): Poison it.
7128 * output.h (STRIP_NAME_ENCODING): Remove.
7129 (default_strip_name_encoding): Declare.
7130 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
7131 * target.h (strip_name_encoding): New.
7132 * varasm.c (default_strip_name_encoding): New.
7134 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
7135 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
7136 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
7137 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
7138 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
7139 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
7140 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
7141 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
7142 config/v850/v850.h: Use the hook, not the macro.
7144 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
7145 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
7146 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
7147 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
7148 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
7149 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
7150 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
7151 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
7152 config/v850/v850.c, config/v850/v850.h:
7153 Move STRIP_NAME_ENCODING to out-of-line function and add
7154 TARGET_STRIP_NAME_ENCODING.
7156 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
7157 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
7158 with TARGET_STRIP_NAME_ENCODING referencing existing function;
7159 make function static.
7161 * xcoffout.c: Include target.h
7162 * Makefile.in (xcoffout.o): Update.
7164 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
7165 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
7166 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
7167 reloc argument unused.
7168 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
7170 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
7171 STRIP_NAME_ENCODING docs.
7173 2002-05-19 Andreas Jaeger <aj@suse.de>
7175 * gengenrtl.c: Add prototype for excluded_rtx.
7177 * real.h: Add prototype for exact_real_truncate.
7179 2002-05-18 Richard Henderson <rth@redhat.com>
7181 * system.h (ENCODE_SECTION_INFO): Poison it.
7182 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
7183 * target.h (encode_section_info): New.
7184 * varasm.c (make_decl_rtl, output_constant_def): Use it.
7185 * hooks.c (hook_tree_int_void): New.
7186 * hooks.h: Declare it.
7188 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
7189 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
7190 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
7191 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
7192 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
7193 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
7194 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
7195 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
7196 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7197 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7198 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
7199 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
7200 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
7201 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
7202 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
7203 referencing existing function. Make function static.
7205 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
7206 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
7207 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
7208 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
7209 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
7210 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
7211 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
7212 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
7213 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
7214 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
7215 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
7216 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
7217 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
7218 Move ENCODE_SECTION_INFO to out-of-line function and add
7219 TARGET_ENCODE_SECTION_INFO.
7221 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
7222 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
7224 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
7226 (switch_to_section): Replace in_rdata case with in_readonly_data.
7228 * config/h8300/h8300.c (h8300_encode_label): Make static.
7229 * config/h8300/h8300-protos.h: Update.
7231 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
7232 from rs6000_encode_section_info; make static.
7233 (rs6000_xcoff_encode_section_info): New.
7235 * config/v850/v850.c (v850_encode_data_area): Make static.
7236 * config/v850/v850-protos.h: Update.
7238 * config/vax/vax.c: Include flags.h.
7239 (vms_select_section): Fix typo.
7241 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
7242 ENCODE_SECTION_INFO docs.
7244 2002-05-18 Richard Henderson <rth@redhat.com>
7246 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
7247 REGISTER_TARGET_PRAGMAS.
7248 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
7250 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
7252 2002-05-18 Richard Henderson <rth@redhat.com>
7254 * system.h (SELECT_RTX_SECTION): Poison.
7255 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
7256 * target.h (select_rtx_section): New.
7257 * varasm.c (output_constant_pool): Use it.
7258 (default_select_rtx_section, default_elf_select_rtx_section): New.
7259 * output.h: Declare them.
7261 * config/darwin.h (SELECT_RTX_SECTION): Move ...
7262 * config/darwin.c (machopic_select_rtx_section): ... here.
7263 * config/darwin-protos.h: Update.
7265 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
7266 * config/nextstep.c (machopic_select_rtx_section): ... here.
7267 (nextstep_select_section): Rename variable to avoid macro clash.
7268 * config/nextstep-protos.h: Update.
7270 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
7271 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
7272 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
7273 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
7274 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
7275 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
7276 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
7277 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
7278 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
7279 (SELECT_RTX_SECTION): Remove.
7281 * config/darwin.h, config/elfos.h, config/nextstep.h,
7282 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
7283 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
7284 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
7285 config/sparc/lynx.h, config/xtensa/xtensa.c
7286 (TARGET_ASM_SELECT_RTX_SECTION): New.
7288 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
7289 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
7290 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
7291 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
7292 (ia64_aix_select_rtx_section): New.
7293 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
7295 * config/mips/mips.c (mips_select_rtx_section): Make static.
7296 Support ELF SHF_MERGE features.
7297 * config/mips/mips-protos.h: Update.
7298 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
7299 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
7300 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
7301 make static, fall back to default_elf_select_rtx_section.
7302 * config/rs6000/rs6000-protos.h: Update.
7303 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
7304 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
7305 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
7306 * config/romp/romp.c (romp_select_rtx_section): New.
7307 * config/s390/s390.c (s390_select_rtx_section): New.
7308 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
7309 declarations before target macro definition.
7310 (xtensa_emit_call): Use static buffer.
7311 (xtensa_select_rtx_section): New.
7312 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
7313 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
7314 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
7316 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
7317 SELECT_RTX_SECTION docs.
7319 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
7321 * i386.md (movsi/movdi): Fix template.
7322 (sse2 patterns): Set attributes consistently.
7324 * i386.md (pushqi2, ashrqi_*): Fix constraint.
7326 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
7328 * optabs.c (complex_part_zero_p): New.
7329 * (expand_cmplxdiv_straight): Use it.
7330 * (expand_cmplxdiv_wide): Ditto.
7331 * (expand_binop): Ditto.
7333 2002-05-18 Richard Henderson <rth@redhat.com>
7335 * final.c (HAVE_READONLY_DATA_SECTION): New.
7336 (shorten_branches): Use it instead of ifdefs.
7337 * varasm.c (enum in_section): Add in_readonly_data.
7338 (text_section, data_section): Tidy.
7339 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
7341 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
7342 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
7343 (READONLY_DATA_SECTION): Don't undef.
7345 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
7346 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
7347 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
7349 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
7350 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
7351 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
7352 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
7354 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
7355 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
7356 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
7357 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
7358 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
7359 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
7360 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
7361 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
7362 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
7364 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
7365 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
7366 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
7367 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
7368 config/pa/pa64-hpux.h, config/sparc/litecoff.h
7369 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
7371 * config/elfos.h, config/netware.h, config/svr3.h,
7372 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
7373 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
7374 config/h8300/h8300.h, config/i386/i386-interix.h,
7375 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
7376 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
7378 * config/elfos.h, config/netware.h, config/svr3.h,
7379 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
7380 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
7381 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
7382 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
7384 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
7385 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
7386 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
7387 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
7388 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
7389 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
7390 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
7391 config/rs6000/sysv4.h, config/v850/v850.h
7392 (EXTRA_SECTIONS): Remove in_const/in_rdata.
7393 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
7395 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
7396 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
7397 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
7398 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
7399 * config/alpha/alpha.c (alpha_start_function): Likewise.
7400 (alpha_write_linkage): Likewise.
7401 * config/m32r/m32r.c (m32r_select_section): Likewise.
7402 * config/m88k/m88k.c (m88k_select_section): Likewise.
7403 * config/mips/mips.c (mips_select_rtx_section): Likewise.
7404 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
7405 (rs6000_elf_select_section): Likewise.
7406 * config/v850/v850.c (v850_select_section): Likewise.
7408 * config/1750a/1750a.h, config/i860/sysv3.h
7409 (READONLY_DATA_SECTION_ASM_OP): New.
7410 READONLY_DATA_SECTION_ASM_OP.
7411 * config/i386/interix.c, config/i386/winnt.c
7412 (i386_pe_unique_section): Always use .rdata prefix.
7413 * config/pa/som.h (readonly_data): Always switch to read-only section.
7414 (READONLY_DATA_SECTION): Predicate on flag_pic.
7415 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
7416 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
7417 (READONLY_DATA_SECTION): Update.
7419 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
7421 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
7422 is used without -Wformat.
7423 * c-common.h (warn_format_zero_length): Declare extern.
7424 * c-decl.c (warn_options): Add "format-zero-length".
7425 * c-format.c (warn_format_zero_length): Declare.
7426 (set_Wformat): Set warn_format_zero_length for -Wformat.
7427 (check_format_info): Only warn about zero-length formats if
7428 warn_format_zero_length is true. Include the format type
7429 name in the warning message.
7430 * doc/invoke.texi: Document -Wformat-zero-length.
7431 * testsuite/gcc.dg/format/zero-length-1.c: New test.
7433 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
7435 * timevar.c: Fix formatting.
7436 * tlink.c: Likewise.
7437 * toplev.c: Likewise.
7438 * tree-dump.c: Likewise.
7439 * tree-inline.c: Likewise.
7441 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
7443 * cppinit.c (cpp_post_options): If preprocessed, turn off
7444 traditional. If traditional, turn off column numbers.
7445 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
7446 * cpptrad.c (handle_newline): Update line_base.
7447 (skip_comment): Handle -Wcomment.
7449 2002-05-17 Zack Weinberg <zack@codesourcery.com>
7451 * cppinit.c (struct builtin): Remove unused fields.
7452 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
7453 (operator_array): New - was second half of builtin_array.
7454 (init_builtins): Simplify loop over builtin_array/operator_array.
7456 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
7458 * defaults.h (UNIQUE_SECTION): Remove.
7459 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
7461 2002-05-17 Richard Henderson <rth@redhat.com>
7463 * expr.c (init_expr_once): Don't use start/end_sequence.
7464 Use rtx_alloc instead of emit_insn.
7465 * toplev.c (lang_dependent_init): Run init_expr_once here ...
7466 (lang_independent_init): ... not here.
7468 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7470 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
7472 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
7474 * config/avr/avr.c (avr_regs_to_save): New function. Also check
7475 for fixed registers, possibly used for global register variables.
7476 (initial_elimination_offset, avr_output_function_prologue,
7477 avr_output_function_epilogue): Move common code to avr_regs_to_save.
7479 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
7481 * Makefile.in: Update for cpptrad.c.
7482 * cpphash.h (struct cpp_buffer): New members for buffer
7484 (struct cpp_reader): New members for traditional output.
7485 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
7486 * cppinit.c (cpp_create_reader): Set trad_line.
7487 (cpp_destroy): Free trad_out_base if used.
7488 (cpp_read_main_file): Overlay an empty buffer if traditional.
7489 (cpp_finish_options): Don't do builtins.
7490 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
7491 (cpp_handle_option): Handle it.
7492 * cpplex.c (continue_after_nul): New.
7493 (_cpp_lex_direct): Use handle_nul.
7494 * cpplib.h (struct cpp_options): New traditional option.
7495 * cpptrad.c: New file.
7497 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
7499 * c-common.c (c_common_init_options): Use C89 for Objective-C,
7500 and set the options flag.
7501 * cppinit.c (lang_flags): Remove objc.
7502 (lang_defaults): Remove OBJC and OBJCXX.
7504 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
7505 (cpp_handle_option): Remove -+ and -lang-objc++.
7506 For ObjC, just set a flag.
7507 (print_help): Update.
7508 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
7510 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7512 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
7513 bootstrap with -mips3.
7515 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
7517 * final.c: Fix formatting.
7518 * fix-header.c: Likewise.
7520 * fold-const.c: Likewise.
7521 * function.c: Likewise.
7523 2002-05-17 David S. Miller <davem@redhat.com>
7525 PR c/6689, PR optimization/6615
7526 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
7527 and make it a pointer to rtx. Update comments.
7528 (update_equiv_regs): When scanning for equivalences, record
7529 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
7530 it while making the equiv replacements.
7532 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7534 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
7536 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
7538 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
7539 when encoding visibility into SYMBOL_REF_FLAG.
7541 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
7543 * expr.c (force_operand): Fix reversed move.
7545 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
7547 * doc/install.texi (Testing): Mention two common DejaGnu warnings
7548 that can be ignored.
7550 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7552 * doc/install.texi (Final install): Recommend to install into a
7553 "clean" target directory.
7555 2002-05-17 Richard Henderson <rth@redhat.com>
7557 * config/ia64/ia64.md: Use braced strings instead of quoted strings
7558 for code blocks. Tidy whitespace.
7560 2002-05-17 Richard Henderson <rth@redhat.com>
7562 * hooks.c (hook_tree_bool_false): New.
7563 * hooks.h: Declare it.
7564 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
7565 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
7566 * target.h (select_section, unique_section): New.
7567 (in_small_data_p): New.
7568 * varasm.c (resolve_unique_section): Use hooks instead of macros.
7569 (variable_section, output_constant_def_contents): Likewise.
7570 (default_select_section, default_unique_section): New.
7571 (categorize_decl_for_section, default_elf_select_section): New.
7572 * output.h: Declare them.
7574 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
7575 (TARGET_ASM_SELECT_SECTION): New.
7576 (SELECT_SECTION): Move ...
7577 * config/darwin.c (machopic_select_section): ... here.
7578 * config/darwin-protos.h: Update.
7580 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
7581 (SELECT_SECTION): Move ...
7582 * config/nextstep.c (nextstep_select_section): ... here.
7583 * config/nextstep-protos.h: Update.
7585 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
7586 (TARGET_ASM_SELECT_SECTION): New.
7587 * config/svr3.h (SELECT_SECTION): Remove.
7589 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
7590 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
7591 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
7592 (alpha_encode_section_info): Use it.
7593 * config/alpha/alpha-protos.h: Update.
7594 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
7595 (SELECT_SECTION, UNIQUE_SECTION): Remove.
7596 (TARGET_ASM_SELECT_SECTION): New.
7597 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
7599 * config/arm/pe.h (UNIQUE_SECTION): Remove.
7600 (TARGET_ASM_UNIQUE_SECTION): New.
7602 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
7603 (avr_unique_section): Rename from unique_section; make static.
7604 * config/avr/avr-protos.h: Update.
7605 * config/avr/avr.h (UNIQUE_SECTION): Remove.
7607 * config/c4x/c4x.h (SELECT_SECTION): Remove.
7609 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
7610 (TARGET_ASM_UNIQUE_SECTION): New.
7611 * config/i386/i386-interix.h: Likewise.
7612 * config/i386/win32.h: Likewise.
7613 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
7614 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
7615 * config/i386/sco5.h (SELECT_SECTION): Remove.
7616 (TARGET_ASM_SELECT_SECTION): New.
7617 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
7619 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
7620 instead of SELECT_SECTION.
7621 * config/m68k/dpx2.h: Likewise.
7622 * config/rs6000/lynx.h: Likewise.
7624 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7625 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7626 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
7627 (ia64_in_small_data_p): New.
7628 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
7629 (ia64_aix_select_section, ia64_aix_unique_section): New.
7630 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
7631 (SELECT_SECTION, UNIQUE_SECTION): Remove.
7633 * config/m32r/m32r.h (SELECT_SECTION): Remove.
7634 (TARGET_ASM_SELECT_SECTION): New.
7635 * config/m32r/m32r.c (m32r_select_section): Take align argument.
7636 * config/m32r/m32r-protos.h: Update.
7638 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
7639 (SELECT_SECTION): Move ...
7640 * config/m88k/m88k.c (m88k_select_section): ... here.
7642 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
7643 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
7644 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
7645 (mcore_unique_section): Make static.
7646 * config/mcore/mcore-protos.h: Update.
7648 * config/mips/elf.h (UNIQUE_SECTION): Remove.
7649 (TARGET_ASM_UNIQUE_SECTION): New.
7650 * config/mips/elf64.h: Likewise.
7651 * config/mips/iris6gld.h: Likewise.
7652 * config/mips/linux.h: Likewise.
7653 * config/mips/mips-protos.h: Update.
7654 * config/mips/mips.c (mips_select_section): Add align argument.
7655 * config/mips/mips.h (SELECT_SECTION): Remove.
7656 (TARGET_ASM_SELECT_SECTION): New.
7658 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7659 * config/mmix/mmix.c (mmix_select_section): Remove.
7660 (mmix_unique_section): Remove.
7661 * config/mmix/mmix-protos.h: Update.
7663 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
7664 (SELECT_SECTION): Move ...
7665 * config/pa/pa.c (pa_select_section): ... here.
7666 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
7668 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
7669 from rs6000_select_section and make static.
7670 (rs6000_elf_unique_section): Similarly.
7671 (rs6000_xcoff_select_section): From xcoff.h.
7672 (rs6000_xcoff_unique_section): Likewise.
7673 * config/rs6000/rs6000-protos.h: Update.
7674 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7675 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7676 * config/rs6000/xcoff.h: Likewise.
7678 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
7679 (SELECT_SECTION): Move ...
7680 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
7682 * config/v850/v850.h (SELECT_SECTION): Move ...
7683 * config/v850/v850.c (v850_select_section): ... here.
7684 (TARGET_ASM_SELECT_SECTION): New.
7686 * config/vax/vms.h (SELECT_SECTION): Move ...
7687 * config/vax/vax.c (vms_select_section): ... here.
7688 (TARGET_ASM_SELECT_SECTION): New.
7690 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
7691 for the target hooks.
7693 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
7695 * config/arm/arm.c (emit_multi_reg_push): Do not set
7696 RTX_FRAME_RELATED_P on the SEQUENCE.
7698 2002-05-16 Richard Henderson <rth@redhat.com>
7700 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
7701 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
7703 2002-05-16 Richard Henderson <rth@redhat.com>
7705 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
7707 * config/ia64/ia64.c (saveable_obstack): Do not declare.
7709 2002-05-16 Richard Henderson <rth@redhat.com>
7711 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
7712 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
7713 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
7714 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
7715 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
7716 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
7717 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
7718 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
7719 Revert "Basic block renumbering removal", and two followup patches.
7721 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
7723 * lcm.c (optimize_mode_switching): Revert previous change.
7725 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7727 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
7728 with only extant block numbers.
7730 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
7732 * lcm.c (optimize_mode_switching): Fix typo.
7734 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7736 * flow.c (calculate_global_regs_live): Queue blocks in program order.
7738 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7740 * doc/install.texi (Configuration): Document PWDCMD.
7742 2002-05-16 Dale Johannesen <dalej@apple.com>
7744 * combine.c (cant_combine_insn_p): Reenable combinations
7745 involving hard regs unless CLASS_LIKELY_SPILLED_P.
7747 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7749 * c-common.c (cb_register_builtins): Handle more built-ins
7750 here rather than in gcc.c specs.
7751 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
7752 (cpp_options): Pass -O flags even when only preprocessing.
7753 * toplev.c (set_fast_math_flags): New prototype.
7754 (fast_math_flags_set_p): New.
7755 (set_no_fast_math_flags): Remove.
7756 (decode_f_option): Update.
7757 * toplev.h (set_fast_math_flags): Update.
7758 (fast_math_flags_set_p): New.
7759 (set_no_fast_math_flags): Remove.
7761 * c4x/c4x.c (c4x_override_options): Update.
7763 2002-05-16 Zack Weinberg <zack@codesourcery.com>
7765 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
7766 Default-define here.
7767 (builtin_define_with_value): Can now wrap the expansion in
7768 quotation marks if such is wanted.
7769 (cb_register_builtins): Update calls to builtin_define_with_value.
7770 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
7772 (c_common_init): Set options->stdc_0_in_system_headers.
7773 * c-lex.h: Update prototype of builtin_define_with_value.
7774 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
7775 and REGISTER_PREFIX.
7777 * cppinit.c (VERS, ULP, C, X): Kill.
7778 (builtin_array): Remove entries for __VERSION__,
7779 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
7780 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
7782 (init_builtins): Kill off a bunch of now-dead code.
7783 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
7784 -fno-leading-underscore.
7785 (cpp_handle_option): Remove code to set user_label_prefix.
7786 (cpp_post_options): Likewise.
7788 * cpplib.h (struct cpp_options): Remove user_label_prefix.
7789 (stdc_0_in_system_headers): New.
7790 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
7791 stdc_0_in_system_headers) too to decide the value of __STDC__.
7793 * tradcpp.c (user_label_prefix): Kill.
7794 (main): Remove code handling -f(no-)leading-underscore.
7795 (initialize_builtins): Don't define __REGISTER_PREFIX__
7796 or __USER_LABEL_PREFIX__.
7797 (install_value): Wrap compound statement in dummy loop so the
7798 macro works properly in an if statement.
7801 2002-05-16 Janis Johnson <janis187@us.ibm.com>
7803 * loop.h (struct loop_info): Add member has_prefetch.
7804 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
7805 (prescan_loop): Initialize has_prefetch.
7806 (struct prefetch_info): Change prefetch_in_loop and
7807 prefetch_before_loop from bit fields to ints.
7808 (emit_prefetch_instructions): Several small fixes.
7809 (check_dbra_loop): Don't reverse loop that uses prefetch.
7811 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7813 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
7814 * configure.in: Likewise.
7815 * fixinc/check.tpl: Likewise.
7816 * fixinc/fixinc.dgux: Likewise.
7817 * fixinc/fixinc.svr4: Likewise.
7818 * fixinc/fixinc.winnt: Likewise.
7819 * fixinc/fixincl.sh: Likewise.
7820 * fixproto: Likewise.
7821 * configure: Regenerate.
7823 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7825 Basic block renumbering removal:
7826 * basic_block.h (struct basic_block_def): Renamed index to sindex,
7827 added prev_bb and next_bb fields.
7828 (n_basic_blocks): Renamed to num_basic_blocks.
7829 (last_basic_block): New, index of last basic block.
7830 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7831 traversing basic block chain.
7832 (BLOCK_NUM): index -> sindex.
7833 (create_basic_block_structure, create_basic_block): Declaration changed.
7834 (debug_num2bb): Declare.
7835 (expunge_block_nocompact): Declaration removed.
7836 (link_block, unlink_block, compact_blocks): Declare.
7837 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7838 * cfg.c (entry_exit_blocks): Initialize new fields.
7839 (clear_edges, alloc_block, expunge_block, cached_make_edge,
7840 redirect_edge_pred, dump_flow_info, dump_edge_info,
7841 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7842 free_aux_for_edges): Modified.
7843 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7844 (expunge_block_nocompact): Removed.
7845 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7846 find_unreachable_blocks, create_edge_list, print_edge_list,
7847 verify_edge_list, flow_edge_list_print, remove_fake_successors,
7848 remove_fake_edges, flow_reverse_top_sort_order_compute,
7849 flow_depth_first_order_compute, flow_preorder_transversal_compute,
7850 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7851 flow_dfs_compute_reverse_execute): Modified.
7852 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7853 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7855 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7856 merge_blocks_move_predecessor_nojumps,
7857 merge_blocks_move_successor_nojumps, merge_blocks,
7858 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7859 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7860 * cfglayout.c (skip_insns_after_block, label_for_bb,
7861 record_effective_endpoints, scope_to_insns_finalize,
7862 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7863 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7864 cfg_layout_duplicate_bb): Modified.
7865 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7866 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7867 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7868 flow_loops_find, flow_loop_outside_edge_p): Modified.
7869 * cfgrtl.c (create_basic_block_structure, create_basic_block,
7870 flow_delete_block, compute_bb_for_insn, split_block,
7871 try_redirect_by_replacing_jump, redirect_edge_and_branch,
7872 force_nonfallthru_and_redirect, tidy_fallthru_edge,
7873 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7874 commit_edge_insertions, commit_edge_insertions_watch_calls,
7875 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7876 purge_all_dead_edges): Modified.
7877 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7878 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7879 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7881 * conflict.c (conflict_graph_compute): Modified.
7882 * df.c (FOR_ALL_BBS): Removed.
7883 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7884 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7885 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7886 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7887 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7888 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7889 * final.c (compute_alignments, final_scan_insn): Modified.
7890 * flow.c (verify_local_live_at_start, update_life_info,
7891 update_life_info_in_dirty_blocks, free_basic_block_vars,
7892 delete_noop_moves, calculate_global_regs_live,
7893 initialize_uninitialized_subregs, allocate_bb_life_data,
7894 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7895 mark_used_reg, count_or_remove_death_notes): Modified.
7896 * function.c (thread_prologue_and_epilogue_insns): Modified.
7897 * gcse.c (struct null_pointer_info): Change typo of current_block
7899 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7900 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7901 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7902 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7903 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7904 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7905 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7906 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7907 pre_delete, one_pre_gcse_pass, compute_transpout,
7908 invalidate_nonnull_info, delete_null_pointer_checks_1,
7909 free_code_hoist_mem, compute_code_hoist_vbeinout,
7910 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7911 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7912 compute_store_table, build_store_vectors, insert_insn_start_bb,
7913 insert_store, replace_store_insn, free_store_memory, store_motion):
7915 * global.c (global_alloc, global_conflicts, mark_elimination,
7916 build_insn_chain): Modified.
7917 * graph.c (print_rtl_graph_with_bb): Modified.
7918 * haifa-sched.c (sched_init): Modified.
7919 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7920 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7921 if_convert): Modified.
7922 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7923 compute_insert_delete, pre_edge_lcm, compute_available,
7924 compute_farthest, compute_nearerout, compute_rev_insert_delete,
7925 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7927 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7928 * loop.c (loop_dump_aux): Modified.
7929 * predict.c (combine_predictions_for_insn, estimate_probability,
7930 last_basic_block_p, process_note_prediction, process_note_predictions,
7931 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7932 expensive_function_p, estimate_bb_frequencies,
7933 compute_function_frequency): Modified.
7934 * print-rtl.c (print_rtx): Modified.
7935 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7936 get_exec_counts, compute_branch_probabilities, compute_checksum,
7937 branch_prob, find_spanning_tree): Modified.
7938 * recog.c (split_all_insns, peephole2_optimize): Modified.
7939 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7940 convert_regs_1, convert_regs_2, convert_regs): Modified.
7941 * regclass.c (scan_one_insn, regclass): Modified.
7942 * regmove.c (mark_flags_life_zones, regmove_optimize,
7943 combine_stack_adjustments): Modified.
7944 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7945 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7946 * reorg.c (dbr_schedule): Modified.
7947 * resource.c (find_basic_block, init_resource_info): Modified.
7948 * sbitmap.c (sbitmap_intersection_of_succs,
7949 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7950 sbitmap_union_of_preds): Modified.
7951 * sched-deps.c (init_dependency_caches): Modified.
7952 * sched-ebb.c (schedule_ebbs): Modified.
7953 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7954 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7955 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7956 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7957 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7958 ssa_const_prop): Modified.
7959 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7960 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7961 * ssa.c (remove_phi_alternative, find_evaluations,
7962 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7963 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7964 make_regs_equivalent_over_bad_edges,
7965 make_equivalent_phi_alternatives_equival,
7966 compute_conservative_reg_partition,
7967 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7968 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7971 2002-05-16 Mark Mitchell <mark@codesourcery.com>
7973 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7975 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
7977 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7978 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7979 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7980 calling CONSTANT_POOL_ADDRESS_P.
7981 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7982 to decide whether to define __arm__ or __thumb.
7983 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7984 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7986 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7988 * config/arc/arc.h (CPP_PREDEFINES): Remove.
7990 (TARGET_CPU_CPP_BUILTINS): New.
7992 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
7994 * cpphash.h (cpp_macro): Move here, and make expansion a union.
7995 * cppmacro.c (cpp_macro): Remove.
7996 (enter_macro_context, replace_args, warn_of_redefinition,
7997 _cpp_create_definition, cpp_macro_definition): Update.
7999 2002-05-16 Jason Merrill <jason@redhat.com>
8001 * config/mips/mips.c (mips_output_external): Don't do sdata
8002 optimization for a variable with DECL_COMDAT set.
8004 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8006 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
8007 Cleanups for accepting modifiers on pointers.
8008 Fix predicate typos.
8009 Allow long pointers as well as int pointers.
8011 2002-05-15 Richard Henderson <rth@redhat.com>
8013 * varasm.c (merge_weak): Remove special case for extern and common.
8015 2002-05-15 Matt Hiller <hiller@redhat.com>
8017 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
8019 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
8020 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
8021 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
8022 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
8023 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
8024 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
8026 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8028 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
8030 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
8032 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
8033 ("altivec_mfvscr"): Read from VSCR.
8035 Add vscr sets for the following insns: altivec_vctuxs,
8036 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
8037 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
8038 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
8039 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
8040 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
8041 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
8042 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
8043 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
8044 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
8045 altivec_vsum2sws, altivec_vsumsws.
8047 * config/rs6000/rs6000.h: Add VSCR fixed register.
8048 (CALL_REALLY_USED_REGISTERS): Add vscr.
8049 (CALL_USED_REGISTERS): Same.
8050 (FIXED_REGISTERS): Same.
8051 (REG_ALLOC_ORDER): Same.
8052 (reg_class): Add VSCR_REGS.
8053 (REG_CLASS_NAMES): Same.
8054 (REG_CLASS_CONTENTS): Same.
8056 (REGISTER_NAMES): Add vscr.
8057 (DEBUG_REGISTER_NAMES): Same.
8058 (ADDITIONAL_REGISTER_NAMES): Same.
8059 (FIRST_PSEUDO_REGISTER): Increment.
8060 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
8062 2002-05-15 Jakub Jelinek <jakub@redhat.com>
8064 * fold-const.c (fold): Fix a typo.
8066 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
8068 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
8069 comparison against the highest or lowest integer value before
8070 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
8071 transformation and that of an unsigned comparison against 0
8074 2002-05-15 Richard Henderson <rth@redhat.com>
8076 * varasm.c (merge_weak): Error for any weakening after definition.
8077 Adjust weakening after use warning to catch more cases.
8078 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
8079 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
8081 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
8083 * invoke.texi (-malign-double): Re-add lost warning.
8085 * i386-protos.h (x86_output_mi_thunk): Declare.
8086 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
8087 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
8089 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
8090 when flag_asynchronous_unwind_tables is set.
8092 * flags.h (flag_reorder_functions): Declare.
8093 * function.c (prepare_function_start): Initialize frequnecy.
8094 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
8095 * Makefile.in (predict.o): Add dependency on target.h and params.h
8096 * defaults.h (HOT_TEXT_SECTION_NAME,
8097 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
8098 * predict.c (choose_function_section): New function.
8099 (estimate_bb_frequencies): Use it.
8100 * toplev.c (flag_reorder_functions): New global variable.
8101 (lang_independent_options): New.
8102 (parse_options_and_default_flags): Set.
8103 * varasm.c (assemble_start_function): Bypass functdion alignment
8104 for never executed functions.
8105 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
8106 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
8107 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
8110 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
8112 * predict.c: Inlude profile.h
8113 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
8114 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
8115 Use the information about maximal counter in the program.
8117 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
8119 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
8120 probably_never_executed_bb_p): New functions.
8121 * cfgcleanup.c (outgoing_edges_match): Use them.
8122 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
8123 (maybe_hot_bb_p, probably_cold_bb_p,
8124 probably_never_executed_bb_p): New functions.
8126 * function.h (function): Add new field function_frequency.
8127 * predict.c (compute_function_frequency): New function.
8128 (estimate_probability): Call it.
8130 2002-03-09 Jakub Jelinek <jakub@redhat.com>
8132 PR optimization/5172, optimization/5200
8133 * gcse.c (gcse_main): Disable store_motion.
8135 2002-05-14 Zack Weinberg <zack@codesourcery.com>
8137 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
8138 (c_common_nodes_and_builtins): Use it.
8139 (builtin_define_with_value): New function.
8140 (cb_register_builtins): Define __SIZE_TYPE__,
8141 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
8142 using builtin_define_with_value. Use consistent notation when
8143 defining __GXX_WEAK__.
8144 (WCHAR_TYPE_SIZE): Don't redefine.
8145 (combine_strings): Don't use WCHAR_TYPE_SIZE.
8147 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
8148 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
8149 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
8150 * tradcpp.c (initialize_builtins): Likewise.
8151 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
8153 * c-lex.h (builtin_define_with_value): Prototype.
8154 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
8155 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
8156 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
8158 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
8159 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
8160 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
8161 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
8162 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
8163 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
8164 config/sparc/sol2-bi.h, config/sparc/sparc.h:
8165 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
8166 to __SIZE_TYPE__ etc from all spec strings. When this makes
8167 extra specs empty, delete them.
8169 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
8171 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
8172 for PA8000 or generating dwarf2 call frame information.
8173 (output_call): Remove DO_FRAME_NOTES check from return pointer
8175 (following_call): Return 0 when scheduling for PA8000 or generating
8176 dwarf2 call frame information. Revise comment.
8178 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8181 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
8182 and __IEEE_FP_INEXACT as appropriate.
8183 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
8184 (CPP_SPEC): Remove ieee defines.
8185 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
8187 2002-05-14 Richard Henderson <rth@redhat.com>
8189 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
8190 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
8192 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8194 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
8196 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
8197 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
8198 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
8199 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
8200 (EXTRA_SPECS): Update.
8201 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
8202 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
8203 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
8204 define TARGET_OS_CPP_BUILTINS if necessary.
8206 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
8208 * gcc.c (cpp_options): Must pass -m* and -f* options
8209 to the front end even when only preprocessing.
8210 (cc1_options): Remove redundant -lang-c.
8211 * tradcpp.c (main): Ignore -m options.
8213 * lang-specs.h: Similarly.
8215 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
8217 * genautomata.c (transform_3): Add code for transformation
8218 `(A,B,...)+C -> A+C,B,...'.
8220 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
8222 * final.c (end_final): Do not output profile_arcs constructor, when
8223 no functions are instrumented.
8225 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
8227 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
8229 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8231 * doc/install.texi: Remove special markup originally required for
8232 HTML generation with texi2html.
8234 2002-05-14 Andreas Schwab <schwab@suse.de>
8236 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
8238 (UNIQUE_SECTION): Define to get small data correctly.
8240 * varasm.c (resolve_unique_section): Add third parameter
8241 flag_function_or_data_sections and use it instead of
8242 flag_function_sections.
8243 (assemble_start_function): Pass flag_function_sections.
8244 (asm_emit_uninitialised): Pass flag_data_sections.
8245 (assemble_variable): Likewise.
8247 2002-05-14 Richard Henderson <rth@redhat.com>
8249 * config/i386/i386.md: Use define_constants for unspec numbers.
8250 * config/i386/i386.c: Likewise.
8252 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8254 * doc/contrib.texi: Update my entry.
8256 2002-05-13 Mark Mitchell <mark@codesourcery.com>
8258 * fixinc/inclhack.def (winidss_valist): Limit applicability.
8259 * fixinc/fixincl.x: Regenerated.
8260 * fixinc/tests/base/math.h: Update.
8261 * fixinc/tests/base/testing.h: Likewise.
8263 2002-05-13 Zack Weinberg <zack@codesourcery.com>
8265 * genattr.c (gen_attr): Don't emit a comma after the last
8268 2002-05-13 Richard Henderson <rth@redhat.com>
8270 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
8272 * recog.c (peephole2_optimize): Likewise.
8274 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
8276 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
8279 2002-05-13 Jeffrey A Law (law@redhat.com)
8281 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
8282 Update prototype and callers.
8283 (propagate_one_insn): Stack pointer adjustments kill MEMs on
8284 the mem_set_list which reference the stack pointer, as do
8285 calls to constant functions as they may clobber outgoing
8288 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
8290 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
8291 (ia32_multipass_dfa_lookahead): New function.
8293 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8295 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
8296 (translate_options): Remove 'V'.
8297 (process_command): Similarly.
8299 * invoke.texi: Remove documentation of 'V'.
8301 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
8303 * config/s390/linux.h: Revert 2002-04-22 changes.
8305 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
8307 * config/fr30/fr30.md: Only allow splits of immediate loads
8308 if the destination is a register.
8310 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
8312 * Makefile.in (c-common.o, cppinit.o): Update.
8313 * c-common.c: Include except.h.
8314 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
8315 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
8316 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
8317 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
8318 CPP_PREDEFINES): Handle here.
8320 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
8321 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
8322 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
8323 TARGET_OS_CPP_BUILTINS.
8324 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
8325 (CPP_SPEC, EXTRA_SPECS): Update.
8326 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
8327 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
8328 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
8329 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
8330 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
8332 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
8333 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
8335 2002-05-12 Zack Weinberg <zack@codesourcery.com>
8337 * emit-rtl.c (global_rtl): Update comment.
8338 (const_double_htab, const_double_htab_hash,
8339 const_double_htab_hash, lookup_const_double): New.
8340 (const_int_htab_hash, const_int_htab_eq): Remove const
8341 qualifiers, which cause tons of warnings with RTL checking on.
8342 (gen_rtx_CONST_DOUBLE): Deleted.
8343 (const_double_from_real_value): New function - bears some
8344 resemblance to the former immed_real_const_1.
8345 (immed_double_const): Moved here from varasm.c and
8347 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
8348 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
8349 (gen_rtx): Use immed_double_const.
8350 (init_emit_once): Initialize the const_double_htab. Use
8351 REAL_VALUE_FROM_INT where possible. Can now use
8352 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
8353 * varasm.c (struct varasm_status): Remove x_const_double_chain.
8354 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
8355 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
8356 (init_varasm_status, mark_varasm_status): Don't touch
8357 x_const_double_chain.
8359 * output.h: Delete prototype for clear_const_double_mem.
8360 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
8361 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
8362 const_double_from_real_value, not immed_real_const_1, and use
8363 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
8365 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
8366 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
8367 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
8368 (gen_rtx_REG): Second arg is unsigned.
8370 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
8371 (excluded_rtx): New, return true for CONST_DOUBLE.
8372 (genmacro): Write nothing for excluded codes.
8373 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
8374 * expr.c (expand_expr): Likewise.
8375 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
8377 * toplev.c (rest_of_compilation): Don't call
8378 clear_const_double_mem.
8380 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
8381 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
8382 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
8383 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
8384 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
8385 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
8386 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
8387 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
8389 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8391 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
8393 2002-05-12 Tom Tromey <tromey@redhat.com>
8395 * tree.h (copy_node): Don't mention TREE_PERMANENT.
8397 2002-05-12 Zack Weinberg <zack@codesourcery.com>
8399 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
8400 (scan_comma_elt): New function. Accepts whitespace in comma lists.
8401 * gensupport.h: Prototype new routines.
8402 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
8404 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
8405 (next_comma_elt): Use scan_comma_elt.
8407 * config/i386/i386.md: Use new attribute notation to break up
8408 long lines in define_attr forms.
8410 2002-05-12 Richard Henderson <rth@redhat.com>
8412 * expr.c (compress_float_constant): New.
8413 (emit_move_insn): Use it.
8414 (float_extend_from_mem): New.
8415 (init_expr_once): Initialize it.
8416 * real.c (exact_real_truncate): New.
8418 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
8419 dropped into memory; penalize for size.
8420 (RTX_COSTS): FLOAT_EXTEND is free.
8421 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
8422 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
8424 2002-05-12 Richard Henderson <rth@redhat.com>
8426 * profile.h (profile_info): Add missing extern to declaration.
8427 * profile.c (profile_info): Define it.
8429 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8431 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
8432 used for DImode and TImode.
8434 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
8436 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
8439 2002-05-11 Zack Weinberg <zack@codesourcery.com>
8441 * config/rs6000/rs6000.c (rs6000_default_long_calls,
8442 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
8443 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
8444 (rs6000_override_options): Handle -m(no-)longcall.
8445 (init_cumulative_args, output_mi_thunk): Check for both
8446 longcall and shortcall attributes on the function.
8447 (rs6000_attribute_table): Add "shortcall".
8448 (rs6000_handle_longcall_attribute): Update comment.
8449 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
8450 altivec_expand_ternop_builtin): Add default clauses to switches
8451 to silence warnings.
8453 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
8454 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
8455 (TARGET_OPTIONS): Add longcall and no-longcall.
8457 * config/rs6000/rs6000.md (call_nonlocal_sysv,
8458 call_value_nonlocal_sysv): Split by alternatives. One pair
8459 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
8460 the call cookie. The other pair accepts only LR/CTR and has
8463 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
8464 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
8466 * config/rs6000/rs6000-c.c: New file.
8467 * config/rs6000/t-rs6000-c-rule: New file.
8468 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
8469 Prototype rs6000_pragma_longcall.
8471 * doc/extend.texi: Document shortcall attribute.
8472 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
8474 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
8476 * reorg.c (dbr_schedule): Remove unnecessary test.
8478 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
8480 * i386.md (testsi to testqi spliters): New.
8482 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
8484 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
8486 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
8488 * basic-block.h: New flag EDGE_CAN_FALLTHRU
8489 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
8490 that can be made fallthru.
8492 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
8494 * cfglayout.c (cleanup_unconditional_jumps): New static function.
8495 (cfg_layout_initialize): Use it.
8497 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
8499 * config/avr/avr.c (avr_mcu_types): Update supported devices.
8500 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
8501 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
8503 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
8505 * dbxout.c: Fix formatting.
8506 * dependence.c: Likewise.
8508 * diagnostic.c: Likewise.
8509 * doloop.c: Likewise.
8510 * dominance.c: Likewise.
8511 * doschk.c: Likewise.
8512 * dwarf2asm.c: Likewise.
8513 * dwarf2out.c: Likewise.
8514 * dwarfout.c: Likewise.
8516 2002-05-10 Richard Henderson <rth@redhat.com>
8518 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
8519 Convert integers constants as needed. Replace "nwords" field with
8521 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
8522 * function.h: Fix typo in comment.
8523 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
8525 2002-05-10 Roger Sayle <roger@eyesopen.com>
8527 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
8528 into the equivalent (signed char)c > 0.
8530 2002-05-10 Janis Johnson <janis187@us.ibm.com>
8532 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
8533 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
8534 (struct prefetch_info): Fix spelling of member bytes_accessed.
8535 (emit_prefetch_instructions): Make dump messages more regular;
8536 restructure code to add more dump messages; use new macros for
8537 heuristics. (There are no code generation changes in any of this).
8539 2002-05-10 David S. Miller <davem@redhat.com>
8541 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
8542 (struct rtx_def): Update unchanging flag comment.
8543 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
8544 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
8545 to be handled to INSN too.
8546 (dbr_schedule): Likewise.
8547 * resource.c (next_insn_no_annul): Likewise.
8549 * cse.c (rtx_cost): Remove multiplication by power of 2 special
8552 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8554 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
8555 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
8556 (possibly) work around broken /bin/sh.
8558 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8560 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
8561 . as N64/N32 libgcc_s.so subdirs.
8563 2002-05-10 David S. Miller <davem@redhat.com>
8565 * config/sparc/sparc.md: Use define_constants for unspec numbers.
8567 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
8569 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
8571 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
8572 * doc/rtl.texi: Document these macros more accurately.
8573 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
8574 JUMP_INSNs and CALL_INSNs.
8575 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
8576 or INSN_FROM_TARGET_P if the code is appropriate.
8578 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
8580 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
8581 before using SYMBOL_REF_FLAG (addr).
8583 * config/avr/avr-protos.h (avr_io_address_p): Declare.
8584 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
8585 Make non-static. Update all callers.
8586 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
8587 New insns to clear/set/test a single bit in I/O address space.
8589 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8591 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
8593 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8595 * Makefile.in: Update.
8596 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
8597 builtin_define_std): New.
8598 (c_common_init): Register CPP builtins callback.
8599 * c-common.h (flag_iso, flag_undef): New.
8600 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
8601 * c-lex.c: Don't include target.h.
8602 (cb_register_builtins): Move to c-common.c.
8603 (init_c_lex): Don't register hook here.
8604 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
8605 (cpp_define, cpp_assert): Remove.
8606 * gcc.c (cc1_options): Pass -undef to front end.
8607 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
8608 (TARGET_INITIALIZER): Update.
8609 * target.h (struct cpp_reader): Don't predeclare.
8610 (struct gcc_target): Remove cpp builtin hook.
8611 * tree.c (default_register_cpp_builtins): Remove.
8615 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8617 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
8619 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8621 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
8622 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
8624 2002-05-09 Jakub Jelinek <jakub@redhat.com>
8626 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
8627 * config/sparc/libgcc-sparc-glibc.ver: New file.
8628 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
8629 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
8631 2002-05-09 Jakub Jelinek <jakub@redhat.com>
8634 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
8635 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
8636 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
8638 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
8639 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
8640 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8641 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8643 2002-05-09 Richard Henderson <rth@redhat.com>
8645 * config/ia64/ia64.md: Use define_constants for unspec numbers.
8646 * config/ia64/ia64.c: Likewise.
8648 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
8650 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
8651 (save_restore_insns): Likewise.
8652 (mips_expand_prologue, mips_expand_epilogue): Update callers.
8653 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
8655 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
8657 * athlon.md, k6.md, pentium.md, ppro.md): New files.
8658 * i386.md: Move scheduling information into new files.
8660 * i386.md (type attribute): Add "rotate" for rotate insns.
8661 (rotate insns): Set type to "rotate".
8662 (various attributes and function units): Treat rotate like shift.
8663 (pent_pair attribute): Only rotates by one bit position are
8665 (sbb insns): Explicitly set pent_pair attribute on a couple
8666 that were missing it.
8668 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
8670 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
8671 make sure that buffer starts on odd word address.
8672 (sh_va_arg): Skip odd fp registers when reading a double precision
8675 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8677 * tree.h (preserve_data, object_permanent_p, type_precision):
8680 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
8682 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
8683 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
8685 * cpp.texi: Update for removal of obsolete features.
8687 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
8688 Jeffrey A Law (law@redhat.com)
8690 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
8691 the DFA interface for Pentium processors.
8692 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
8693 (attr_pent_pair, ix86_pent_find_pair): Remove.
8694 (ix86_sched_reorder_pentium): Remove.
8695 (ix86_sched_reorder): Remove reordering for Pentium.
8696 * i386.md (Pentium scheduling): Rewrite using DFA description.
8698 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
8700 * cfganal.c (can_fallthru): Fix fast path.
8701 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
8702 with edges to the next block.
8704 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
8705 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
8707 * final.c (end_final): Use C trees to output data structures for profiling.
8709 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
8710 (profile.o): New dependency profile.h
8711 (final.o): New dependency profile.h
8712 * profile.h: New file. New global structure profile_info.
8713 * final.h (count_edges_instrumented_now): Declare.
8714 (current_function_cfg_checksum): Declare.
8715 (function_list): New structure.
8716 (functions_head, functions_tail): New static variables.
8717 (end_final): Emits more data, removed some -ax stuff.
8718 (final): Stores function names and chcksums.
8719 * gcov-io.h (__write_gcov_string): New function.
8720 (__read_gcov_string): New function.
8721 * gcov.c (read_profile): New function.
8722 (create_program_flow_graph): Uses read_profile instead of reading
8724 (read_files): Removed da_file checking, it's done by read_profile now.
8725 * libgcc2.c (bb_function_info): New structure.
8726 (bb): New field in structure, removed some -ax stuff.
8727 (__bb_exit_func): Changed structure of da_file.
8728 * profile.c (count_edges_instrumented_now): New global variable.
8729 (current_function_cfg_checksum): New global variable.
8730 (max_counter_in_program): New global variable.
8731 (get_exec_counts): New function.
8732 (compute_checksum): New function.
8733 (instrument_edges): Sets count_edges_instrumented_now.
8734 (compute_branch_probabilities): Uses get_exec_counts instead of
8736 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
8737 (init_branch_prob): Removed da_file checking, done in get_exec_counts
8739 (end_branch_prob): Removed da_file checking, done in get_exec_counts
8741 * gcov.texi: Updated information about gcov file format.
8743 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
8745 * sbitmap.c: Fix formatting.
8747 * scan-decls.c: Likewise.
8748 * sched-deps.c: Likewise.
8749 * sched-ebb.c: Likewise.
8750 * sched-rgn.c: Likewise.
8751 * sched-vis.c: Likewise.
8752 * sdbout.c: Likewise.
8753 * sibcall.c: Likewise.
8754 * simplify-rtx.c: Likewise.
8756 * ssa-ccp.c: Likewise.
8757 * ssa-dce.c: Likewise.
8759 * stor-layout.c: Likewise.
8760 * stringpool.c: Likewise.
8762 2002-05-09 David S. Miller <davem@redhat.com>
8764 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
8766 2002-05-07 David S. Miller <davem@redhat.com>
8768 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
8769 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
8770 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
8771 library implementation clobbers the output before the inputs
8772 are fully consumed, use stack temporary for the output.
8774 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
8776 * config/netbsd.h (CPP_SPEC): Remove.
8777 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
8778 * config/i386/netbsd.h (CPP_SPEC): Define.
8779 * config/ns32k/netbsd.h (CPP_SPEC): Define.
8780 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
8781 * config/sparc/netbsd.h (CPP_SPEC): Define.
8782 * config/vax/netbsd.h (CPP_SPEC): Define.
8784 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
8786 * read-rtl.c: Fix formatting.
8788 * recog.c: Likewise.
8789 * regclass.c: Likewise.
8790 * regmove.c: Likewise.
8791 * reg-stack.c: Likewise.
8792 * reload1.c: Likewise.
8793 * reload.c: Likewise.
8794 * resource.c: Likewise.
8795 * rtlanal.c: Likewise.
8797 * rtl-error.c: Likewise.
8799 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
8801 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
8802 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
8804 2002-05-08 Bernd Schmidt <bernds@redhat.com>
8806 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
8807 use __SSE2__ macro instead.
8808 * config/i386/xmmintrin.h: Likewise.
8810 2002-05-08 Janis Johnson <janis187@us.ibm.com>
8812 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
8813 and use it in all invocations of these macros. Clean up comments.
8814 * rtl.c (rtl_check_failed_flag): Add an argument for the name
8815 of the flag access macro whose check failed.
8816 * doc/rtl.texi (Flags): Document additional flag uses.
8818 2002-05-08 Robert Spier <rspier@pobox.com>
8819 Neil Booth <neil@daikokuya.demon.co.uk>
8821 PR preprocessor/6521
8822 * cppfiles.c (handle_missing_header): Don't do anything
8823 different for <> includes.
8825 * cppopts.texi: Update documentation for -MG.
8827 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
8829 * cpplex.c (cpp_interpret_charconst): Truncate as well as
8832 * cpp.texi: Clarify multichar charconst valuation.
8834 2002-05-08 Mark Mitchell <mark@codesourcery.com>
8836 * doc/invoke.texi: Document -mwindiss option.
8838 2002-05-08 Jason Merrill <jason@redhat.com>
8840 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8842 * dwarf2out.c (gen_type_die): Abort on broken recursion.
8845 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8848 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
8850 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8851 little-endian multilibs to override arm/thumb multilibs.
8852 Do not build hardware floating point multilibs, nor apcs-26
8853 multilibs for the Thumb.
8855 2002-05-08 Mark Mitchell <mark@codesourcery.com>
8858 * varasm.c (mark_weak): New function.
8859 (merge_weak): Use it. Do not call declare_weak.
8860 (declare_weak): Use merge_weak.
8862 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
8864 * cse.c (dead_libcall_p): Update counts.
8865 (delete_trivially_dead_insns): Update call of dead_libcall_p.
8867 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
8869 * cfglayout.c (function_tail_eff_head): Rename to ...
8870 (function_footer): ... this one.
8871 (unlink_insn_chain): New functions.
8872 (label_for_bb): Only call block_label and emit debug message.
8873 (record_effective_endpoints): Actually unlink the headers and footers.
8874 (fixup_reorder_cahin): Re-insert the unlinked sequences.
8875 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8876 * cfglayout.h (struct reorder_block_def): New fields footer/header;
8877 remove eff_head/eff_end.
8878 * rtl.h (set_first_insn): Declare.
8879 * emit-rtl.c (set_first_insn): New function.
8881 * cfglayout.c (fixup_reorder_chain): Dump duplicated
8882 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8883 cfg_layout_duplicate_bb): New global function.
8884 (duplicate_insn_chain): New static function.
8885 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8886 cfg_layout_duplicate_bb): Declare.
8887 (struct reorder_block_def): Add "original" field.
8888 * emit-rtl.c (emit_copy_of_insn_after): New function.
8889 * rtl.h (emit_copy_of_insn_after): Declare.
8891 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8892 (fixup_reorder_chain): properly handle edges to exit block.
8894 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8895 Jan Hubicka <jh@suse.cz>
8897 * basic-block.h (note_prediction_to_br_prob): declare.
8898 * c-semantics.c: Inlucde predit.h
8899 (expand_stmt): predict GOTO_STMT as not taken.
8900 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8901 (cleanup_cfg): Do not free tail_recursion_list.
8902 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8903 (flow_delete_block): Kill predictions past end of basic block.
8904 * output.h (delete_unreachable_blocks): Declare.
8905 * predict.c (predicted_by_p, process_note_predictions,
8906 process_note_prediction, last_block_p): New function.
8907 (estimate_probability): Bypass loop on PRED_CONTINUE;
8908 do not handle noreturn heuristics; kill PRED_RETURN; add
8910 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8911 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8912 * predict.h (IS_TAKEN): New constant.
8913 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8914 * rtl.c (NOTE_INSN_PREDICTION): New.
8915 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8917 (insn_note): add NOTE_INSN_PREDICTION.
8918 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8919 CFG; free tail_recursion_label_list.
8920 * stmt.c: Include predict.h;
8921 (return_prediction): New.
8922 (expand_value_return): Use it.
8923 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8925 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
8927 * config/mips/mips.md: Name the unspecs with define_constant.
8928 (*HILO_delay): Rename to 'hilo_delay' (no star).
8929 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8930 (reload_outdi, reload_outsi): Likewise.
8932 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
8934 * toplev.c: Fix formatting.
8936 2002-05-07 Janis Johnson <janis187@us.ibm.com>
8938 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8939 * configure.in (ac_rtlflag_checking): New.
8940 * doc/install.texi (--enable-checking): Document RTL flag checking.
8942 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
8944 * c-common.c (c_common_init): Set options->unsigned_wchar.
8945 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8946 group target dependencies.
8947 (init_builtins, cpp_handle_option): Update.
8948 * cpplex.c (cpp_interpret_charconst): Update.
8949 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8950 signed_char to unsigned_char, group target dependencies.
8951 * defaults.h (WCHAR_UNSIGNED): Remove.
8952 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8954 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8955 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8956 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8957 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8958 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8960 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8962 2002-05-07 Mark Mitchell <mark@codesourcery.com>
8964 * fixinc/inclhack.def (windiss_math1): New fix.
8965 (windiss_math2): Likewise.
8966 (windiss_valist): Likewise.
8967 * fixinc/fixincl.x: Regenerated.
8969 2002-05-07 Andreas Jaeger <aj@suse.de>
8971 * genautomata.c (output_internal_min_issue_delay_func): Add
8972 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8973 (output_internal_trans_func): Likewise.
8975 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
8977 * pa.c (hppa_profile_hook): Use force_reg to get the address
8978 of the profile hook into an appropriate pseudo register.
8980 2002-05-07 Mark Mitchell <mark@codesourcery.com>
8982 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8983 (LINK_START_SPEC): Handle it.
8984 (LINK_OS_SPEC): Likewise.
8985 (CPP_SPEC): Likewise.
8986 (STARTFILE_SPEC): Likewise.
8987 (LIB_SPEC): Likewise.
8988 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
8990 (CRTSAVRES_DEFAULT_SPEC): New macro.
8991 (LIB_WINDISS_SPEC): New macro.
8992 (CPP_OS_WINDISS_SPEC): Likewise.
8993 (STARTFILE_WINDISS_SPEC): Likewise.
8994 (ENDFILE_WINDISS_SPEC): Likewise.
8995 (LINK_START_WINDISS_SPEC): Likewise.
8996 (LINK_OS_WINDISS_SPEC): Likewise.
8997 * config/rs6000/windiss.h: New file.
8999 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
9001 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
9003 2002-05-06 David S. Miller <davem@redhat.com>
9005 * config/sparc/sparc.md (shift insns): Do not mask off
9006 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
9009 2002-05-06 Richard Henderson <rth@redhat.com>
9012 * expr.c (highest_pow2_factor_for_type): New.
9013 (expand_assignment): Use it.
9015 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
9017 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
9019 ("altivec_mfvscr"): Same.
9021 2002-05-06 Janis Johnson <janis187@us.ibm.com>
9023 * rtl.h (struct rtx_def): Update comments.
9024 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
9025 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
9026 RTL_FLAG_CHECK macros with list of expected RTL codes.
9027 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
9028 (rtl_check_failed_flag): New.
9029 * reload1.c (reload): Use REG macro before changing rtx to MEM.
9030 (reload_cse_noop_set_p): Check rtx code before using access macro.
9031 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
9032 before using access macro.
9034 2002-05-06 Janis Johnson <janis187@us.ibm.com>
9036 * doc/rtl.texi (Flags): Update to reflect current usage.
9038 2002-05-06 Roger Sayle <roger@eyesopen.com>
9041 * fold-const.c (sign_bit_p): New function.
9042 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
9043 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
9044 Reapply fold when converting (A & C) == C into (A & C) != 0.
9045 (fold_binary_op_with_conditional_arg): Fix typo in comment.
9047 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
9049 * c-common.c (warn_multichar): New.
9050 (c_common_init): Set CPP's warn_multichar.
9051 * c-common.h (warn_multichar): New.
9052 * c-decl.c (warn_multichar): Remove.
9053 * c-lex.c (lex_charconst): Update.
9054 * c-tree.h (warn_multichar): Remove.
9055 * cppexp.c (eval_token): Sign-extend charconst value.
9056 * cppinit.c (cpp_create_reader): Set warn_multichar.
9057 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
9058 each character. Update prototype. Sign-extend the result.
9059 * cpplib.h: Fix conditions.
9060 (struct cpp_options): Add new warning flag.
9061 (cpp_interpret_charconst): Update prototype.
9063 * cpp.texi: Update documentation.
9065 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
9067 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
9068 Fix typo in usage of allof instead of unit.
9070 2002-05-06 Richard Henderson <rth@redhat.com>
9072 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
9073 and any jump or call for IN.
9075 2002-05-06 Bernd Schmidt <bernds@redhat.com>
9077 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
9079 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
9081 2002-05-06 Roger Sayle <roger@eyesopen.com>
9083 * fold-const.c (lshift-double): Cast the high word to an unsigned
9084 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
9085 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
9086 avoid compiler warning. (fold): Remove redundant code from
9087 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
9089 2002-05-06 Jeff Law <law@redhat.com>
9091 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
9092 * pa.c (pa_adjust_cost): Remove all true dependency cost
9093 adjustments. Also remove support for non-DFA scheduling.
9094 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
9095 to adjust true dependency costs. Update various comments.
9096 (7100lc, 7200, 7300 scheduling): Simplify by combining the
9097 FP ALU & MPY units into a single unit.
9099 2002-05-06 Catherine Moore <clm@redhat.com>
9101 * config/v850/v850.c (compute_register_save_size): Make sure
9102 to count all of the registers that will be saved.
9104 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
9106 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
9108 2002-05-06 David S. Miller <davem@redhat.com>
9110 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
9111 allow result to overlap input operands in memory.
9113 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
9116 * cpp.texi: Update multichar charconst docs.
9118 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
9120 * cpplex.c (cpp_interpret_charconst): Sign-extend each
9121 character. Don't ignore excess characters. Treat
9122 multicharacter character constants as signed.
9123 (cpp_parse_escape): Clarify diagnostic.
9125 2002-05-05 Jakub Jelinek <jakub@redhat.com>
9127 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
9128 use add instead of shift.
9129 (ashldi3_sp64): Likewise.
9130 (ashlsi3_const1, ashldi3_const1): Remove.
9131 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
9132 * config/sparc/sparc.c (const1_operand): New.
9134 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
9136 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
9138 2002-05-05 Jakub Jelinek <jakub@redhat.com>
9141 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
9143 2002-05-05 Richard Henderson <rth@redhat.com>
9145 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
9146 memory latency adjustments.
9147 (alpha_variable_issue): Remove.
9148 (alpha_use_dfa_pipeline_interface): New.
9149 (alpha_multipass_dfa_lookahead): New.
9150 * config/alpha/alpha.md: Remove define_function_unit scheduling;
9151 include new dfa scheduling.
9152 (attr type): Add none.
9154 * config/alpha/ev4.md: New.
9155 * config/alpha/ev5.md: New.
9156 * config/alpha/ev6.md: New.
9158 2002-05-05 David S. Miller <davem@redhat.com>
9160 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
9162 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
9164 * cse.c: Fix formatting.
9165 * emit-rtl.c: Likewise.
9167 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
9169 * genautomata.c (initiate_states): Add additional guard to
9170 initialize `units_array'.
9172 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
9174 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
9175 process_unit_to_form_the_same_automaton_unit_lists,
9176 form_the_same_automaton_unit_lists
9177 check_unit_distributions_to_automata): New prototypes and
9179 (check_automata): Rename it into `check_automata_insn_issues'.
9180 (unit_decl): New fields `the_same_automaton_unit' and
9181 `the_same_automaton_message_reported_p'.
9182 (unit_decl_t): New typedef.
9183 (the_same_automaton_lists): New gloval variable.
9184 (unit_regexp, unit_set_el, units_array, units_cmp,
9185 output_get_cpu_unit_code_func): Use the typedef.
9186 (evaluate_max_reserv_cycles): Increment
9187 `description->max_insn_reserv_cycles'.
9188 (initiate_states): Don't increment `max_cycles_num'.
9189 (transform_insn_regexps): Move code around transformation of
9190 regexps from `generate'.
9191 (generate): Remove call of `transform_insn_regexps'.
9192 (expand_automata): Call `transform_insn_regexps' and
9193 `check_unit_distributions_to_automata'. Check errors before
9196 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
9197 automaton `ultrasparc3_1'.
9199 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
9201 * c-common.c (c_common_init): Set up CPP arithmetic.
9202 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
9203 something reasonable for the host.
9204 (sanity_checks): Add checks.
9205 (cpp_read_main_file): Call sanity_checks() from here...
9206 (cpp_post_options): ... not here.
9207 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
9208 * cpplib.h (struct cpp_options): New member int_precision.
9210 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9212 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
9214 2002-05-04 David S. Miller <davem@redhat.com>
9216 * config/sparc/linux.h, config/sparc/linux64.h
9217 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
9219 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
9221 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
9223 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
9226 2002-05-05 Tim Josling <tej@melbpc.org.au>
9228 * treelang; New directory for new sample language treelang.
9230 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9232 * Makefile.in (c-lex.o): Update.
9233 * c-lex.c: Include target.h.
9234 (cb_register_builtins): New.
9235 (init_c_lex): Set builtins callback.
9236 * c-lex.h (cpp_define, cpp_assert): New prototypes.
9237 * cppinit.c (init_builtins): Use callback, including for
9239 * cpplib.h (struct cpp_callbacks): New member.
9240 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
9241 (TARGET_INITIALIZER): Update.
9242 * target.h (struct gcc_target): New hook.
9243 * tree.c (default_register_cpp_builtins): New.
9244 * tree.h (default_register_cpp_builtins): New.
9246 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
9248 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9250 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
9251 (cpp_post_options): Move sanity checks to...
9252 (sanity_checks): New.
9253 * cpplex.c (maybe_read_ucs): Fix prototype.
9254 (parse_string, cpp_parse_escape): Cast for %c format specifier.
9255 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
9258 2002-05-04 Bernd Schmidt <bernds@redhat.com>
9260 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
9261 builtins. Use V2DI patterns instead of TI for logical operations.
9262 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
9263 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
9264 (ix86_expand_builtins): Change the pattern used for movntdq.
9265 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
9266 sse2_nandv2di3): New patterns.
9267 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
9269 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
9270 (cvtdq2pd): Correct mode on operand 1.
9271 (sse2_umulsidi3): Describe without unspec.
9272 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
9274 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
9275 (ashlv2di3): Likewise, from sse2_ashlv2di3.
9276 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
9277 ashlv4si3, ashlv2di3): Use SImode for shift count.
9278 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
9279 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
9281 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
9283 (__m128i, __m128d): New macros.
9284 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
9285 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
9286 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
9287 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
9288 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
9289 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
9290 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
9291 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
9292 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
9293 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
9294 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
9295 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
9296 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
9297 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
9298 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
9299 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
9300 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
9301 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
9302 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
9303 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
9304 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
9305 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
9306 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
9307 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
9308 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
9309 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
9310 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
9311 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
9312 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
9313 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
9314 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
9315 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
9316 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
9317 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
9318 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
9319 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
9320 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
9322 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
9323 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
9325 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
9327 * dwarf2out.c: Fix formatting.
9328 * varasm.c: Likewise.
9330 2002-05-04 David Edelsohn <edelsohn@gnu.org>
9333 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
9334 clobber and use result as temporary value.
9336 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
9338 * expr.c (force_operand): Use expand_simple_* to handle more
9341 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
9343 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
9345 (lex_charconst): Update for change in prototype of
9346 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
9348 * cpphash.h (BITS_PER_CPPCHAR_T): New.
9349 * cppinit.c (cpp_create_reader): Initialize them for no
9350 change in semantics.
9351 (cpp_post_options): Add sanity checks.
9352 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
9353 and truncation issues. Calculate in type cppchar_t.
9354 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
9355 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
9356 run-time dependent precision correctly. Return whether the
9357 result is signed or not.
9358 * cpplib.c (dequote_string): Use cppchar_t; update.
9359 * cpplib.h (cppchar_signed_t): New.
9360 struct cpp_options): New precision members.
9361 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
9362 * cppexp.c (eval_token): Update.
9364 2002-05-03 David S. Miller <davem@redhat.com>
9366 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
9367 * config/sparc/sparc.c (sparc_rtx_costs): New function
9368 implementing RTX_COSTS and CONST_COSTS.
9369 * config/sparc/sparc.h (CONST_COSTS): Delete.
9370 (RTX_COSTS_CASES): Define.
9371 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
9374 * config/sparc/sparc.md (DFA schedulers): Split out...
9375 * config/sparc/cypress.md, config/sparc/hypersparc.md,
9376 config/sparc/sparclet.md, config/sparc/supersparc.md,
9377 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
9379 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
9380 checks on it, always defined for Sparc.
9382 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
9383 Tweak, and add more detailed comments.
9385 2002-05-03 Zack Weinberg <zack@codesourcery.com>
9387 * Re-apply patch accidentally reverted with
9388 DFA scheduler merge: remove all rules and variables to slurp
9389 source files out of libiberty and rebuild them with HOST_CC.
9390 ($(HOST_PREFIX_1)varray.o): New rule.
9391 (genattrtab rule): Word wrap.
9393 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
9395 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
9396 (CPP_SUBTARGET_SPEC): Define.
9397 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
9398 cpp_subtarget specs.
9399 (CPP_SPEC): Redefine to include %(cpp_subtarget).
9401 2002-05-03 David S. Miller <davem@redhat.com>
9403 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
9404 * target.h (struct gcc_target): Delete cycle_display member.
9406 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
9407 (rtx_needs_barrier): Delete reference to cycle_display unspec.
9408 (ia64_sched_reorder2): Mention need for cycle display handling
9409 once such notes exist.
9411 2002-05-03 Richard Henderson <rth@redhat.com>
9413 * real.c (etoasc): Strip most trailing zeros for clarity.
9414 * sched-vis.c: Include real.h.
9415 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
9416 * Makefile.in (sched-vis.o): Add real.h.
9418 2002-05-03 David S. Miller <davem@redhat.com>
9420 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
9423 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
9425 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
9426 when we get an out of range literal.
9427 (altivec_expand_ternop_builtin): Same.
9428 (altivec_expand_unop_builtin): Same.
9429 (altivec_expand_builtin): Same, for dss.
9430 (altivec_expand_builtin): Use trees instead of rtl when
9431 determining literal argument validity.
9433 2002-05-03 David S. Miller <davem@redhat.com>
9435 Delete cycle display scheduling hook.
9436 * config/ia64/ia64.c (ia64_cycle_display,
9437 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
9438 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
9439 and use emit_insn_before instead of ia64_emit_insn_before.
9440 * config/ia64/ia64.md (unspec usage): Delete cycle display.
9441 (cycle_display): Delete insn pattern.
9442 * config/sparc/sparc.md (unspec usage): Delete cycle display.
9443 (cycle_display): Delete insn pattern.
9444 * config/sparc/sparc.c (sparc_cycle_display,
9445 TARGET_SCHED_CYCLE_DISPLAY): Delete.
9446 * doc/md.texi (cycle_display): Don't mention.
9447 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
9449 2002-05-03 Richard Henderson <rth@redhat.com>
9451 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
9452 * recog.h: Declare them.
9454 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
9455 * config/sparc/sparc.md: Use store_data_bypass_p instead.
9456 * config/sparc/sparc-protos.h: Update.
9458 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
9460 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
9461 -D__arch64__. Add -D_LP64.
9462 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
9464 (CPP_ARCH64_SPEC): Likewise.
9465 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
9466 (NO_BUILTIN_SIZE_TYPE): Undef.
9468 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
9470 * genautomata.c (min_issue_delay_pass_states): Change return type
9472 (min_issue_delay_pass_states): Change the algorithm.
9473 (min_issue_delay): Set up min_insn_issue_delay for the state.
9474 (output_min_issue_delay_table): Interchange the nested loops and
9475 and initiate min_insn_issue_delay for states.
9477 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
9479 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
9482 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
9484 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
9487 2002-05-03 Richard Henderson <rth@redhat.com>
9490 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9491 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9492 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
9493 code before JUMP, not EARLIEST.
9495 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
9497 * c-format.c (check_format_info_main): Don't check for presence of
9498 parameter for * width until after operand number has been read,
9499 and only check for it if format parameters are available.
9502 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
9504 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
9505 (LINK_SPEC): Undef before defining.
9507 2002-05-03 Jakub Jelinek <jakub@redhat.com>
9509 PR preprocessor/6489
9510 * tradcpp.c (fixup_newlines): New.
9511 (main, finclude): Use it.
9513 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
9515 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
9516 * config/mips/mips.c (mips_unique_section): Strip encoding from
9519 2002-05-03 Jakub Jelinek <jakub@redhat.com>
9521 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
9524 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9526 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
9527 (Specific): Removed buildstats references.
9528 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
9529 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
9530 Accomodate Solaris versions beyond 8.
9531 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
9532 (Specific, *-*-solaris2.8): Removed, obsolete.
9534 2002-05-03 Jakub Jelinek <jakub@redhat.com>
9537 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
9538 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
9539 fill leaf_reg_remap with identity.
9540 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
9542 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
9544 * config/h8300/crti.asm: Remove trailing spaces.
9545 * config/h8300/h8300.c: Likewise.
9546 * config/h8300/lib1funcs.asm: Likewise.
9548 2002-05-02 Jason Merrill <jason@redhat.com>
9550 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
9551 * c-decl.c (c_init_decl_processing): Use it.
9552 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
9553 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
9554 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
9556 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
9558 * regrename.c: Fix formatting.
9561 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
9563 * i386.md (attribute memory): Handle compares properly.
9565 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
9567 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
9570 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
9572 * function.c: Fix formatting.
9574 2002-05-02 Jan Hubicka <jh@suse.cz>
9576 * haifa-sched.c (schedule_insn): Print table of instructions and
9578 (sched_block): Do not print ready list at verbosity level 1.
9579 * sched-vis.c (print_insn): Make global.
9580 * sched-ebb.c (ebb_print_insn): Rename from...
9581 (print_insn): ... this one.
9582 * sched-int.h (print_insn): Declare
9584 2002-05-02 Richard Henderson <rth@redhat.com>
9586 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
9587 emitted by cycle_display.
9589 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
9591 * doc/install.texi (*-*-freebsd*): Update to latest status.
9593 2002-05-02 Jakub Jelinek <jakub@redhat.com>
9596 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
9597 * config/float-sparc.h: Assume 128-bit long double if
9598 __LONG_DOUBLE_128__ is defined.
9600 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
9602 * genattrtab.c (write_function_unit_info): Add a dummy element
9603 when num_units == 0.
9605 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9607 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
9608 TYPE_MODE (double_type_node) instead of DFmode.
9610 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
9612 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
9614 * toplev.c (rest_of_compilation): Revert Richard's patch.
9616 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
9618 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
9620 2002-05-02 Catherine Moore <clm@redhat.com>
9622 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
9624 2002-05-02 Kazu Hirata <kazu@hxi.com>
9626 * combine.c: Fix comment typos.
9628 * genautomata.c: Likewise.
9632 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
9634 * doc/install.texi: State GNAT version requirements.
9636 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
9638 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
9639 of the frame pointer or arg pointer register which strict register
9640 checking is not enabled.
9642 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
9644 * gcc.dg/altivec-8.c: New.
9646 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
9647 PRE_INC and PRE_DEC for altivec modes.
9649 2002-05-01 Bruce Korb <bkorb@gnu.org>
9651 * fixinc/check.tpl(set-writable): make sure the function exists first
9652 * fixinc/inclhack.def(alpha_assert): fix test_text
9653 * fixinc/tests/base/assert.h: add in missing result
9655 2002-05-01 Jeff Law <law@redhat.com>
9657 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
9660 2002-05-01 Joel Brobecker <brobecker@gnat.com>
9662 * dbxout.c (dbxout_type): Emit size information for range types,
9663 as well, but only when using GDB extensions.
9665 2002-05-01 Richard Henderson <rth@redhat.com>
9667 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
9668 target-independent gnu binutils date test.
9670 2002-05-01 Richard Henderson <rth@redhat.com>
9672 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
9673 info before expunging the block.
9675 2002-05-01 Jakub Jelinek <jakub@redhat.com>
9677 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
9678 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
9679 -M -or -MM is in effect.
9681 2002-05-01 Zack Weinberg <zack@codesourcery.com>
9683 * config.gcc: Correct test of --enable-obsolete. Obsolete all
9684 A29k configurations.
9685 * doc/install.texi: Update to match.
9687 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9690 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
9691 for duplicates. Always loop over whole list.
9693 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9695 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
9697 2002-05-01 Joel Sherrill <joel@OARcorp.com>
9699 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
9702 2002-05-01 Joel Sherrill <joel@OARcorp.com>
9704 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
9706 2002-05-01 David Edelsohn <edelsohn@gnu.org>
9708 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
9709 (nabs_nopower): Same.
9710 (floatdisf2): New pattern.
9711 (absdi2): Convert to define_insn_and_split.
9716 (fix_trunctfdi2): Same.
9717 (fix_trunctfsi2): Same.
9719 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
9721 * doc/install.texi: Update Texinfo version requirement
9724 2002-05-01 Jakub Jelinek <jakub@redhat.com>
9726 PR target/6512, PR target/5628
9727 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
9728 when memory is not aligned.
9729 (movdf_insn_v9only_vis): Likewise.
9730 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
9731 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
9732 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
9734 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
9736 * gcc.dg/altivec-7.c: New.
9738 * config/rs6000/altivec.h: Cleanup.
9740 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
9742 * doc/invoke.texi (Option Summary): Add -mvrsave=.
9743 (RS/6000 and PowerPC Options): Document -mvrsave=.
9745 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
9746 (rs6000_altivec_vrsave_string): Same.
9747 (rs6000_override_options): Call rs6000_parse_vrsave_option.
9748 (rs6000_parse_vrsave_option): New.
9749 (rs6000_stack_info): Only generate vrsave instructions when
9750 TARGET_ALTIVEC_VRSAVE.
9752 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
9753 (rs6000_altivec_vrsave_string): Define extern.
9754 (rs6000_altivec_vrsave): Same.
9755 (TARGET_ALTIVEC_VRSAVE): New.
9757 2002-04-30 Richard Henderson <rth@redhat.com>
9760 * toplev.c (rest_of_compilation): Don't run cross-jump before
9763 2002-04-30 Tom Rix <trix@redhat.com>
9765 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
9766 check which_alternative.
9768 2002-04-30 Kazu Hirata <kazu@hxi.com>
9770 * cpplex.c: Fix comment formatting.
9771 * function.c: Likewise.
9772 * integrate.c: Likewise.
9773 * regrename.c: Likewise.
9774 * sibcall.c: Likewise.
9775 * simplify-rtx.c: Likewise.
9776 * tree-inline.c: Likewise.
9778 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
9780 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
9781 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
9782 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
9783 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
9784 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
9785 * pa/x-ada: New file. Define ADA_CFLAGS.
9787 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
9789 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
9790 from MMIX_LAST_REGISTER_FILE_REGNUM.
9791 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
9792 (struct machine_function): New member highest_saved_stack_register
9793 previously static variable in mmix.c.
9794 (MACHINE_DEPENDENT_REORG): Define.
9795 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
9796 (MMIX_OUTPUT_REGNO): New.
9797 (mmix_target_asm_function_prologue): Move calculation of last used
9798 saved-stack-register into...
9799 (mmix_machine_dependent_reorg): New function. Update to also handle
9801 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
9802 register names, simplify somewhat by new variable regno.
9803 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
9805 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
9806 emitting register names.
9807 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
9808 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
9810 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
9813 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
9815 2002-04-30 Richard Henderson <rth@redhat.com>
9817 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
9818 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
9819 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
9820 emit_tfmode_cvt): New.
9821 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
9822 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
9823 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
9824 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
9825 * config/sparc/sparc-protos.h: Update.
9827 2002-04-30 Janis Johnson <janis187@us.ibm.com>
9829 * install.texi (Final install): Add to the list of info to include
9830 in a report of a successful bootstrap, and add link to 3.1 list.
9832 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
9834 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9835 (mode): Add vector modes
9836 (i387): Kill attribute.
9837 (unit): New attribute.
9838 (length_immediate): Grok new types.
9839 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9840 (modrm): Use "unit".
9841 (memory): Handle MMX/SSE properly.
9842 (scheduling descriptions): Kill uses of fop1.
9843 (sse, mmx, fp patterns): Set type and mode properly.
9845 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
9847 * pa.c (override_options): Default to PA8000 scheduling.
9848 * doc/invoke.texi (HP-PA options): Mention newly added 7300
9849 scheduling parameter.
9851 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9852 handling of double precision multiplies.
9854 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9855 fpdiv and fpsqrt instructions.
9856 (7200 & 7300 scheduling): Fix typo in handling of
9857 store-load and store-store penalties.
9859 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9861 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9862 mips. Add two missing commas.
9864 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
9866 * doc/contrib.texi (Contributors): Update Paolo Carlini's
9867 and Benjamin Kosnik's entries.
9869 2002-04-29 David S. Miller <davem@redhat.com>
9871 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9872 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9873 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9874 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9876 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9878 * combine.c (find_split_point): Use gen_int_mode.
9880 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
9882 Merging code from dfa-branch:
9884 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
9886 * genautomata.c (output_reserv_sets): Fix typo.
9888 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
9890 * genautomata.c (output_reserv_sets): Remove
9891 next_cycle_output_flag.
9893 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
9895 * sched-rgn.c (init_ready_list): Make the DFA code handle
9896 USE/CLOBBER insns in the same way as the traditional
9898 (new_ready): Similarly..
9900 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
9902 * haifa-sched.c (schedule_block): Change the DFA state only after
9905 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
9907 * pa.c (hppa_use_dfa_pipeline_interface): New function.
9908 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9909 (override_options): Add PA7300 scheduling support.
9910 (pa_adjust_cost): Update various comments. Properly
9911 handle anti and output dependencies when using the
9913 (pa_issue_rate): Add PA7300 scheduling support.
9914 (pa_can_combine_p): Call extract_insn before calling
9915 constrain_operands (taken from mainline tree).
9916 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9917 * pa.md (cpu attr): Add 7300. Rewrite pipeline
9918 descriptions using DFA descriptions. Add PA7300
9921 2002-03-30 David S. Miller <davem@redhat.com>
9923 Add UltraSPARC-III DFA scheduling support.
9924 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9925 Update FP conditional move on register insn patterns to use it, as
9927 (define_attr cpu): Add ultrasparc3.
9928 (define_attr us3load_type): New, update integer load patterns to
9929 set it, as appropriate.
9930 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9931 (rest): Add UltraSPARC3 scheduling description.
9932 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9933 (PROCESSOR_ULTRASPARC3): New.
9934 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9935 ({ASM,CPP}_CPU_SPEC): Likewise.
9936 (REGISTER_MOVE_COST): Likewise.
9937 (RTX_COSTS): Likewise.
9938 * config/sparc/sparc.c (sparc_override_options,
9939 sparc_initialize_trampoline, sparc64_initialize_trampoline,
9940 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9941 sparc_issue_rate): Likewise.
9942 * config/sparc/sol2.h: Likewise.
9943 * config/sparc/sol2-sld-64.h: Likewise.
9944 * config/sparc/linux64.h: Likewise.
9946 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
9948 * doc/md.texi: Add comments about usage the latency time for the
9949 different dependencies and about case when two or more conditions
9950 in different define_insn_reservations returns TRUE for an insn.
9952 * doc/md.texi: Add reference for automaton based pipeline
9955 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
9957 * doc/passes.texi: Add missed information about genattrtab.
9959 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
9961 * genautomata.c (output_automata_list_transition_code): Check
9962 automata_list on NULL.
9964 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
9966 * genautomata.c (output_insn_code_cases,
9967 output_automata_list_min_issue_delay_code,
9968 output_automata_list_transition_code,
9969 output_automata_list_state_alts_code): Comment the functions.
9971 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
9973 * genautomata.c (automata_list_el_t): New typedef.
9974 (get_free_automata_list_el,free_automata_list_el,
9975 free_automata_list, automata_list_hash, automata_list_eq_p,
9976 initiate_automata_lists, automata_list_start, automata_list_add,
9977 automata_list_finish, finish_automata_lists,
9978 output_insn_code_cases, output_automata_list_min_issue_delay_code,
9979 output_automata_list_transition_code,
9980 output_automata_list_state_alts_code, add_automaton_state,
9981 form_important_insn_automata_lists): New functions and prototypes.
9982 (insn_reserv_decl): Add members important_automata_list and
9984 (ainsn): Add members important_p.
9985 (automata_list_el): New structure.
9986 (first_free_automata_list_el, current_automata_list,
9987 automata_list_table): New global variables.
9988 (create_ainsns): Initiate member important_p.
9989 (output_internal_min_issue_delay_func): Generate the switch and
9990 call output_insn_code_cases.
9991 (output_internal_trans_func, output_internal_state_alts_func):
9993 (generate): Call initiate_automata_lists.
9994 (automaton_states): New global variable.
9995 (expand_automata): Call form_important_insn_automata_lists.
9996 (write_automata): Call finish_automata_lists.
9998 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
10000 * genautomata.c (add_excls, add_presence_absence): Check that
10001 cpu units in the sets belong the same automaton.
10003 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
10004 about that cpu units in the sets belong the same automaton.
10006 * doc/md.texi: Ditto.
10008 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
10009 Nitin Gupta <niting@noida.hcltech.com>
10011 * config/sh/sh.c (sh_use_dfa_interface): New function.
10013 (sh_issue_rate): New Function.
10014 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
10015 TARGET_SCHED_ISSUE_RATE: define.
10017 * config/sh/sh.md: Add DFA based pipeline description for SH4.
10019 (define_attr insn_class): New attribute used for DFA
10021 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
10022 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
10023 cmpeqdi_t): Likewise.
10025 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
10026 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
10028 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
10030 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10032 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
10035 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
10037 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
10038 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
10040 (output_dfa_start_func): Initiate new variable insn_codes_length,
10041 (write_automata): Output definition of the new variable.
10043 2001-10-02 David S. Miller <davem@redhat.com>
10045 * haifa-sched.c (advance_one_cycle): New function.
10046 (schedule_block): Use it.
10047 (queue_to_ready): Use it, and also make sure to advance the DFA
10048 state on all stall cycles, not just those where insn_queue links
10051 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
10053 * haifa-sched.c (max_issue): Remove last_p argument. Only return
10054 non-zero if the highest-priority instruction could be scheduled.
10055 (choose_ready): Remove last argument from max_issue call.
10057 2001-09-28 David S. Miller <davem@redhat.com>
10059 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
10060 ultrasparc and 3 for other multi-issue sparcs.
10062 2001-09-27 David S. Miller <davem@redhat.com>
10064 * config/sparc/sparc.md (cycle_display): New pattern.
10065 * config/sparc/sparc.c (sparc_cycle_display): New.
10066 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
10068 2001-09-25 David S. Miller <davem@redhat.com>
10070 Convert all of Sparc scheduling to DFA
10071 * config/sparc/sparc.md: Kill all define_function_unit
10072 directives and replace with DFA equivalent.
10073 * config/sparc/sparc.c (ultrasparc_adjust_cost,
10074 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
10075 ultra_fpmode_conflict_exists, ultra_find_type,
10076 ultra_build_types_avail, ultra_flush_pipeline,
10077 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
10078 ultrasparc_variable_issue, ultrasparc_sched_init,
10079 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
10080 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
10081 ultra_cur_hist, ultra_cycles_elapsed): Kill.
10082 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
10083 ultrasparc_store_bypass_p): New.
10084 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
10087 2001-09-24 David S. Miller <davem@redhat.com>
10089 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
10090 ready->vec[foo] not ready[foo].
10092 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
10094 * doc/md.texi: Correct examples for define_insn_reservations
10097 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
10099 * genautomata.c (create_automata): Print message about creation of
10101 (generate): Remove printing meease about creation of
10104 2001-09-05 David S. Miller <davem@redhat.com>
10106 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
10107 * config/sparc/linux64.h: Likewise.
10109 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
10111 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
10112 schedule_block, sched_init, sched_finish): Add missed calls of
10113 use_dfa_pipeline_interface.
10115 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
10118 * sched-vis.c (get_visual_tbl_length): Ditto.
10120 2001-08-27 Richard Henderson <rth@redhat.com>
10122 * genattr.c (main): Emit state_t even when not doing scheduling.
10124 2001-08-27 Richard Henderson <rth@redhat.com>
10126 * genautomata.c (expand_automata): Always create a description.
10128 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
10130 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
10131 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10132 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10135 * genattr.c (main): New variable num_insn_reservations. Increase
10136 it if there is DEFINE_INSN_RESERVATION. Output automaton based
10137 pipeline hazard recognizer interface.
10139 * genattrtab.h: New file.
10141 * genattrtab.c: Include genattrtab.h.
10142 (attr_printf, check_attr_test, make_internal_attr,
10143 make_numeric_value): Move protypes into genattrtab.h. Define them
10145 (num_dfa_decls): New global variable.
10146 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10147 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10148 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10149 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
10151 * genautomata.c: New file.
10153 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10155 * sched-int.h: (curr_state): Add the external definition for
10156 automaton pipeline interface.
10157 (haifa_insn_data): Add comments for members blockage and units.
10159 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10160 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10161 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10162 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10163 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10164 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10165 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10167 (TARGET_SCHED): Use the new macros.
10169 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10170 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10171 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10172 dfa_bubble): New members in gcc_target.sched.
10174 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
10175 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10176 (insn_queue): Redefine it as pointer to array.
10177 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10179 (max_insn_queue_index_macro_value): New variable.
10180 (curr_state, dfa_state_size, ready_try): New varaibles for
10181 automaton interface.
10182 (ready_element, ready_remove, max_issue): New function prototypes
10183 for automaton interface.
10184 (choose_ready): New function prototype.
10185 (insn_unit, blockage_range): Add comments.
10186 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10187 FUNCTION_UNITS_SIZE == 0.
10188 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10189 actual_hazard, potential_hazard): Add comments.
10190 (insn_cost): Use cost -1 as undefined value. Remove
10191 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
10192 pipeline interface.
10193 (ready_element, ready_remove): New functions for automaton
10195 (schedule_insn): Add new code for automaton pipeline interface.
10196 (queue_to_ready): Add new code for automaton pipeline interface.
10197 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10198 (debug_ready_list): Print newline when the queue is empty.
10199 (max_issue): New function for automaton pipeline interface.
10200 (choose_ready): New function.
10201 (schedule_block): Add new code for automaton pipeline interface.
10202 Print ready list before scheduling each insn.
10203 (sched_init): Add new code for automaton pipeline interface.
10204 Initiate insn cost by -1.
10205 (sched_finish): Free the current automaton state and finalize
10206 automaton pipeline interface.
10208 * sched-rgn.c: Include target.h.
10209 (init_ready_list, new_ready, debug_dependencies): Add new code for
10210 automaton pipeline interface.
10212 * sched-vis.c: Include target.h.
10213 (get_visual_tbl_length): Add code for automaton interface.
10214 (target_units, print_block_visualization): Add comments.
10216 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
10217 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10218 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10219 (getruntime.o, genautomata.o): New entries.
10220 (genattrtab.o): Add new dependency file genattrtab.h.
10221 (genattrtab): Add new dependencies. Link it with `libm.a'.
10222 (getruntime.o, hashtab.o): New entries for canadian cross.
10224 * doc/md.texi: Description of automaton based model.
10226 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10228 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10229 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10230 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10231 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10232 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10233 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10234 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10236 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10237 MAX_DFA_ISSUE_RATE): New macro descriptions.
10239 * doc/contrib.texi: Add dfa based scheduler contribution.
10241 * doc/gcc.texi: Add more information about genattrtab.
10243 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10245 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
10246 adjust_address_nv call.
10248 2002-04-29 Janis Johnson <janis187@us.ibm.com>
10250 * doc/install.texi (Testing): Provide additional information, and
10251 a stronger encouragement, for running the testsuites.
10253 2002-04-29 DJ Delorie <dj@redhat.com>
10255 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
10256 given in upper case.
10258 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10260 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
10261 Solaris 2 <widec.h> if missing.
10262 * fixinc/fixincl.x: Regenerate.
10263 * fixinc/tests/base/widec.h: New file.
10265 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
10267 * toplev.c (f_options): Add "profile" switch so that
10268 -fno-profile can be used to disable -p.
10270 2002-04-29 Bernd Schmidt <bernds@redhat.com>
10272 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
10274 * tree.c (build_common_tree_nodes_2): Likewise.
10275 * tree.h (enum tree_index): Likewise.
10276 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
10278 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
10280 (init_mmx_sse_builtins): Initialize SSE2 builtins.
10281 (ix86_expand_builtin): Add support for SSE2 builtins.
10282 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
10283 (VALID_SSE_REG_MODE): Use it.
10284 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
10285 (enum ix86_builtins): Add SSE2 builtins.
10286 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
10287 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
10288 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
10289 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
10290 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
10291 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
10292 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
10293 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
10294 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
10295 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
10296 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
10297 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
10298 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
10299 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
10300 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
10301 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
10302 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
10303 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
10304 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
10305 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
10306 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
10307 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
10308 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
10309 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
10310 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
10311 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
10312 lfence_insn): New patterns.
10313 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
10314 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
10316 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
10318 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
10320 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10322 * doc/contrib.texi (Contributors): Add Paolo Carlini and
10324 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
10325 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
10326 and CPU instead of cpu.
10328 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
10330 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
10332 (lang_independent_options): Add -fif-conversion, -fif-conversion2
10333 (rest_of_compilation): Do if conversion only when asked for.
10334 (parse_options_and_default_flags): Set new variables to 1 for -O1
10335 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
10337 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
10339 * i386.c (dbx64_register_map): Fix typo.
10341 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
10343 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
10344 real_one_half, real_bb_freq_max): New static variables.
10345 (debug_profile_bbauxs): Kill.
10346 (process_note_predictions): Kill unused variable.
10347 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
10349 (propagate_freq): Use REAL_ARITHMETICS.
10350 (estimate_bb_frequencies): Likevise; init new static variables.
10351 * Makefile.in (predict.o): Add dependency on real.h
10353 2002-04-28 David S. Miller <davem@redhat.com>
10356 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
10357 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
10358 several {reads,writes} instead.
10359 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
10362 2002-04-27 David S. Miller <davem@redhat.com>
10365 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
10368 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
10369 including signal.h and sys/ucontext.h, not needed.
10371 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
10373 * varasm.c (output_constant_def): Correct test for not calling
10374 ENCODE_SECTION_INFO for INTEGER_CST.
10376 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
10378 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
10379 keep most cases as function eval_token.
10380 (eval_token): New function.
10381 (_cpp_parse_expr): Read token here for improved diagnostics.
10382 Don't use op_as_text. Detect bad ':' here.
10383 (reduce): Don't detect bad ':' here.
10384 (op_as_text): Remove.
10385 * cpphash.h (_cpp_test_assertion): Change prototype.
10386 * cpplib.c (_cpp_test_assertion): Change prototype.
10388 2002-04-28 Richard Henderson <rth@redhat.com>
10391 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
10392 (ggc_mark_rtx_children): New.
10394 2002-04-28 Jakub Jelinek <jakub@redhat.com>
10397 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
10398 after call peepholes for UltraSPARC.
10399 (call + jump 64-bit peepholes): Remove.
10401 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10404 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
10405 result as temporary value.
10407 2002-04-28 Jakub Jelinek <jakub@redhat.com>
10410 * toplev.c (rest_of_compilation): Only run regrename and copy
10411 propagation if optimizing.
10413 2002-04-28 Jakub Jelinek <jakub@redhat.com>
10415 PR optimization/6475
10416 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
10417 register of REGNO_DECL (i).
10418 * Makefile.in (reload1.o): Add $(TREE_H).
10420 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
10422 * cppexp.c (lex): Update to use state.skip_eval.
10423 (struct op): Remove prio and flags members.
10424 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
10425 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
10426 (LEFT_ASSOC): New macro.
10427 (optab): New table of operator priorities and flags.
10429 (_cpp_parse_expr): Clean up logic. Return bool. Use a
10430 malloc-ed parser stack.
10431 (reduce): New; reduce the operator stack.
10432 (_cpp_expand_op_stack): Expand the operator stack as necessary.
10433 * cpphash.h (struct op): Predeclare.
10434 (struct cpp_reader): New members op_stack, op_limit.
10435 (struct lexer_state): New member skip_eval.
10436 (_cpp_parse_expr): Update.
10437 (_cpp_expand_op_stack): New.
10438 * cpplib.c (do_if): Update.
10439 * cppinit.c (cpp_create_reader): Create op stack.
10440 (cpp_destroy): And destroy it.
10441 * cpplib.h (CPP_LAST_CPP_OP): Correct.
10442 (TTYPE_TABLE): Correct.
10444 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10447 * c-decl.c (duplicate_decls): Call merge_weak.
10448 * c-pragma.c (apply_pragma_weak): Warn about misuse.
10449 * output.h (merge_weak): Prototype merge_weak.
10450 * varasm.c (merge_weak): New function.
10451 (declare_weak): Make sure we don't give an error on VAR_DECLs.
10452 Mark RTL with SYMBOL_REF_WEAK.
10454 2002-04-27 Kurt Garloff <garloff@suse.de>
10456 * tree-inline.c (inlinable_function_p): Improve heuristics
10457 by using a smoother function to cut down allowable inlinable size.
10458 * param.def: Add parameters max-inline-insns-single,
10459 max-inline-slope, min-inline-insns that determine the exact
10460 shape of the above function.
10461 * param.h: Likewise.
10463 2002-04-26 Richard Henderson <rth@redhat.com>
10465 * c-parse.in (malloced_yyss, malloced_yyvs): New.
10466 (yyoverflow): Re-add. Set them.
10467 (free_parser_stacks): New.
10468 * c-common.h: Declare it.
10469 * c-lex.c (c_common_parse_file): Call it.
10471 2002-04-26 Richard Henderson <rth@redhat.com>
10473 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
10474 for fallthru search.
10476 2002-04-26 Eric Christopher <echristo@redhat.com>
10478 PR optimization/3700
10479 * config/mips/mips.c (mips_issue_rate): Define. New function.
10480 (TARGET_SCHED_ISSUE_RATE): Use.
10482 2002-04-25 David S. Miller <davem@redhat.com>
10485 * reorg.c (optimize_skip): Do not allow exception causing
10486 instructions to be considered for delay slots.
10487 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
10488 (relax_delay_slots): Do not try to consider exception causing
10489 instructions as redundant.
10491 2002-04-26 Richard Henderson <rth@redhat.com>
10494 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
10496 2002-04-26 Mark Mitchell <mark@codesourcery.com>
10499 * config/i386/i386.md (untyped_call): Return the value in a float
10500 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
10503 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
10505 * tree.c (tree_int_cst_lt): Compare constants whose types differ
10506 in unsigned-ness correctly.
10508 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
10510 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
10511 portable runtime model.
10513 2002-04-26 Richard Henderson <rth@redhat.com>
10515 * c-parse.in (yyoverflow): Revert.
10517 2002-04-26 David Edelsohn <edelsohn@gnu.org>
10518 Richard Henderson <rth@redhat.com>
10520 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
10521 result as temporary value.
10523 2002-04-26 Richard Henderson <rth@redhat.com>
10526 * c-common.c (fix_string_type): Split out of ...
10527 (combine_strings): ... here. Take a varray, not a tree list.
10528 (c_expand_builtin_printf): Use fix_string_type.
10529 * c-common.h: Update decls.
10530 * c-parse.in (string): Remove. Update all uses to use STRING
10531 instead, and not call combine_strings.
10532 (yylexstring): New.
10534 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
10535 (build_asm_stmt): Likewise.
10536 * objc/objc-act.c (my_build_string): Use fix_string_type.
10537 (build_objc_string_object): Build varray for combine_strings.
10539 2002-04-26 Bo Thorsen <bo@suse.co.uk>
10541 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
10544 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
10546 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
10547 (HAVE_NO_R_OPERAND): Remove.
10548 (HAVE_VALUE): Remove.
10549 (op_to_prio): Update.
10550 (UNARY): Don't alter flags.
10551 (_cpp_parse_expr): want_value used to indicate whether
10552 a number or unary operator is expected next. Distinguish
10553 unary and binary +/-.
10554 (op_as_text): Update for unary operators.
10556 2002-04-25 Richard Henderson <rth@redhat.com>
10559 * c-parse.in (yyoverflow): New.
10561 2002-04-25 Richard Henderson <rth@redhat.com>
10564 * c-common.c (shorten_compare): Simplfy conditions leading to
10565 the generation of a warning.
10567 2002-04-25 Richard Henderson <rth@redhat.com>
10570 * expmed.c (extract_bit_field): Fall through to generic code rather
10571 than aborting on subreg special case.
10573 2002-04-25 David S. Miller <davem@redhat.com>
10575 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
10576 for DECL being NULL.
10578 2002-04-25 Steve Christiansen <smc@us.ibm.com>
10580 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
10582 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
10584 * c-decl.c (grokdeclarator): Remove outdated ??? note
10585 on invalid declaration of flexible array members.
10587 2002-04-25 Richard Henderson <rth@redhat.com>
10589 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
10591 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
10593 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
10594 needed by the compiler, even if they are used as global regs.
10596 2002-04-25 Matt Hiller <hiller@redhat.com>
10598 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
10600 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
10601 of the corresponding functions.
10602 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
10605 2002-04-25 Matt Hiller <hiller@redhat.com>
10607 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
10609 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
10610 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
10611 registers, adjust comment accordingly.
10612 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
10613 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
10614 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
10615 for coprocessor registers.
10616 (ADDITIONAL_REGISTER_NAMES): Include
10617 ALL_COP_ADDITIONAL_REGISTER_NAMES.
10619 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
10620 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
10621 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
10622 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
10623 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
10625 (mips_char_to_class): Adjust comment to include coprocessor
10626 constraint letters.
10628 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
10630 (mips_reg_names, mips_regno_to_class): Include coprocessor
10632 (mips_sw_reg_names): Ditto, make non-static.
10633 (mips_move_1word): Handle moves to and from coprocessor registers.
10634 (mips_move_2words): Handle moves to and from coprocessor
10636 (mips_class_max_nregs, mips_register_move_cost): Handle
10637 coprocessor register classes.
10638 (override_options): Initialize mips_char_to_class and
10639 mips_hard_regno_mode_ok properly for coprocessor registers.
10641 * config/mips/mips.md (movdi_internal, movdi_internal2,
10642 movsi_internal1, movsi_internal2): Add constraint-sets for
10643 coprocessor registers.
10644 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
10645 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
10647 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
10648 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
10650 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
10651 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
10653 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
10654 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
10657 * doc/tm.texi: Document feature.
10659 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
10661 * integrate.c (function_attribute_inlinable_p): Simplify.
10662 Check the table pointer is not NULL.
10664 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
10666 * doc/c-tree.texi: Fix typo in introduction.
10668 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
10670 * c-common.h (c_common_parse_file): Update.
10671 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10672 * c-lex.c (YYDEBUG): Get from c-lex.h.
10673 (c_common_parse_file): Update.
10674 * c-lex.h (YYDEBUG, yydebug): New.
10675 * c-parse.in (YYDEBUG): Get from c-lex.h.
10676 (c_set_yydebug): Remove.
10677 * c-tree.h (c_set_yydebug): Remove.
10678 * langhooks-def.h (lhd_do_nothing_i): New.
10679 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
10680 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
10681 * langhooks.c (lhd_do_nothing_i): New.
10682 (lhd_set_yydebug): Remove.
10683 * langhooks.h (struct lang_hooks): Update.
10684 * toplev.c (set_yydebug): New.
10685 (compile_file): Update call to parse_file hook.
10686 (decode_d_option): Update.
10688 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10690 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
10692 * loop.c (load_mems): Don't change the interface of called functions.
10694 * calls.c (expand_call): Take current_function_pretend_args_size
10695 into account when setting argblock for sibcalls.
10697 2002-04-24 Matt Hiller <hiller@redhat.com>
10699 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
10702 * cpplex.c (skip_line_comment): Process comment one multibyte
10703 character at a time rather than one char at a time, if
10705 (parse_string): Process string one multibyte character at a time
10706 rather than one char at a time, if appropriate.
10707 * c-lex.c (lex_string): Lex and copy multibyte strings
10709 * cpplib.h (cppchar_t): Change to unsigned.
10711 2002-04-24 Richard Henderson <rth@redhat.com>
10714 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
10717 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
10719 * sh.c (sh_va_arg): If argument was passed by reference,
10720 dereference the pointer.
10722 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10724 * sh.md (divsi3_i4_media): Use match_operand for input values
10725 rather than hard registers.
10726 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
10727 unnecessarily through hard registers. Keep copies of pseudo
10728 registers outside of the libcall sequence.
10730 * sh.md (casesi_shift_media): Add modes.
10732 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
10735 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
10737 * attribs.c (c_common_attribute_table): Move table and handlers
10739 (format_attribute_table, lang_attribute_table,
10740 lang_attribute_common): Remove.
10741 (init_attributes): Replace NULL pointers with pointers to the
10743 (handle_packed_attribute, handle_nocommon_attribute,
10744 handle_common_attribute, handle_noreturn_attribute,
10745 handle_noinline_attribute, handle_always_inline_attribute,
10746 handle_used_attribute, handle_unused_attribute,
10747 handle_const_attribute, handle_transparent_union_attribute,
10748 handle_constructor_attribute, handle_destructor_attribute,
10749 handle_mode_attribute, handle_section_attribute,
10750 handle_aligned_attribute, handle_weak_attribute,
10751 handle_alias_attribute, handle_visibility_attribute,
10752 handle_no_instrument_function_attribute, handle_malloc_attribute,
10753 handle_no_limit_stack_attribute, handle_pure_attribute,
10754 handle_deprecated_attribute, handle_vector_size_attribute,
10755 vector_size_helper): Move to c-common.c.
10756 * c-common.c (c_common_attribute_table,
10757 handle_packed_attribute, handle_nocommon_attribute,
10758 handle_common_attribute, handle_noreturn_attribute,
10759 handle_noinline_attribute, handle_always_inline_attribute,
10760 handle_used_attribute, handle_unused_attribute,
10761 handle_const_attribute, handle_transparent_union_attribute,
10762 handle_constructor_attribute, handle_destructor_attribute,
10763 handle_mode_attribute, handle_section_attribute,
10764 handle_aligned_attribute, handle_weak_attribute,
10765 handle_alias_attribute, handle_visibility_attribute,
10766 handle_no_instrument_function_attribute, handle_malloc_attribute,
10767 handle_no_limit_stack_attribute, handle_pure_attribute,
10768 handle_deprecated_attribute, handle_vector_size_attribute,
10769 vector_size_helper): Move from attribs.c.
10770 * c-common.h (c_common_attribute_table,
10771 c_common_format_attribute_table): New.
10772 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10773 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10774 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10775 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
10776 (LANG_HOOKS_INITIALIZER): Update.
10777 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
10778 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
10779 * target.h: Update comment.
10780 * tree.c (default_target_attribute_table): Remove.
10781 * tree.h (default_target_attribute_table, format_attribute_table,
10782 lang_attribute_table, lang_attribute_common): Remove.
10784 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10785 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10787 2002-04-24 Jason Merrill <jason@redhat.com>
10789 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
10790 * dwarf2out.c (dwarf_attr_name): Support it.
10791 (gen_array_type_die): Emit it.
10792 (lookup_type_die): No special handling for VECTOR_TYPE.
10793 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
10795 2002-04-24 Richard Henderson <rth@redhat.com>
10797 * config/mips/mips.md (movdi_usd): Renumber.
10799 2002-04-24 David S. Miller <davem@redhat.com>
10802 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
10803 32-bit Sparc and current_function_returns_struct is true.
10805 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
10807 * loop.c (canonicalize_condition): Use gen_int_mode.
10809 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
10811 * config/rs6000/altivec.h: Cleanup file. Add non individual
10813 (vec_vaddubm): New.
10814 (vec_vadduhm): New.
10815 (vec_vadduwm): New.
10817 (vec_vaddcuw): New.
10818 (vec_vaddubs): New.
10819 (vec_vaddsbs): New.
10820 (vec_vadduhs): New.
10821 (vec_vadduws): New.
10822 (vec_vaddsws): New.
10832 (vec_vcmpbfp): New.
10833 (vec_vcmpequb): New.
10834 (vec_vcmpequh): New.
10835 (vec_vcmpequw): New.
10836 (vec_vcmpeqfp): New.
10837 (vec_vcmpgefp): New.
10838 (vec_vcmpgtub): New.
10839 (vec_vcmpgtsb): New.
10840 (vec_vcmpgtuh): New.
10841 (vec_vcmpgtsh): New.
10842 (vec_vcmpgtuw): New.
10843 (vec_vcmpgtsw): New.
10844 (vec_vcmpgtfp): New.
10845 (vec_vcmpgefp): New.
10850 (vec_vexptefp): New.
10855 (vec_lde): Add vector float variant.
10858 (vec_vlogefp): New.
10859 (vec_vmaddfp): New.
10860 (vec_vmhaddshs): New.
10882 (vec_vmladduhm): New.
10883 (vec_vmhraddshs): New.
10884 (vec_msumubm): New.
10885 (vec_vmsummbm): New.
10886 (vec_vmsumuhm): New.
10887 (vec_vmsumshm): New.
10888 (vec_vmsumuhs): New.
10889 (vec_vmsumshs): New.
10890 (vec_vmuleub): New.
10891 (vec_vmulesb): New.
10892 (vec_vmuleuh): New.
10893 (vec_vmulesh): New.
10894 (vec_vmuloub): New.
10896 (vec_vmulouh): New.
10897 (vec_vmulosh): New.
10898 (vec_vnmsubfp): New.
10901 (vec_vpkuhum): New.
10902 (vec_vpkuwum): New.
10904 (vec_vpkuhus): New.
10905 (vec_vpkshss): New.
10906 (vec_vpkuwus): New.
10907 (vec_vpkswss): New.
10908 (vec_vpkshus): New.
10909 (vec_vpkswus): New.
10916 (vec_vrsqrtefp): New.
10927 (vec_vspltisb): New.
10928 (vec_vspltish): New.
10929 (vec_vspltisw): New.
10943 (vec_vsububm): New.
10944 (vec_vsubuhm): New.
10945 (vec_vsubuwm): New.
10947 (vec_vsubcuw): New.
10948 (vec_vsububs): New.
10949 (vec_vsubsbs): New.
10950 (vec_vsubuhs): New.
10951 (vec_vsubshs): New.
10952 (vec_vsubuws): New.
10953 (vec_vsubsws): New.
10954 (vec_vsum4ubs): New.
10955 (vec_vsum4sbs): New.
10956 (vec_vsum4shs): New.
10957 (vec_vsum2sws): New.
10958 (vec_vsumsws): New.
10960 (vec_vupkhsb): New.
10961 (vec_vupkhpx): New.
10962 (vec_vupkhsh): New.
10963 (vec_vupklsb): New.
10964 (vec_vupklpx): New.
10965 (vec_vupklsh): New.
10968 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
10971 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10972 added literals from substracted literals.
10973 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10974 (fold) [associate]: Preserve MINUS_EXPR if needed.
10976 2002-04-23 Zack Weinberg <zack@codesourcery.com>
10978 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10981 2002-04-23 Tom Tromey <tromey@redhat.com>
10983 * gcc.c: Added --resource. For PR java/6314.
10985 2002-04-23 David O'Brien <obrien@FreeBSD.org>
10987 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10988 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10991 2002-04-23 David O'Brien <obrien@FreeBSD.org>
10993 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10995 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
10997 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10999 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
11000 (ix86_expand_clrstr): Fix typo.
11001 * loop.c (gen_load_of_final_value): New.
11002 (loop_givs_rescan, strength_reduce, check_dbra_loop):
11005 2002-04-23 Roger Sayle <roger@eyesopen.com>
11007 * builtins.c (builtin_memset_gen_str): New function.
11008 (expand_builtin_memset): Optimize the case of constant length, but
11011 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
11013 * config/rs6000/altivec.h (vec_step): Remove extraneous
11015 (vec_ctu): Cast return.
11017 2002-04-23 Alan Modra <amodra@bigpond.net.au>
11020 * function.h: (struct function): Add profile_label_no field.
11021 (current_function_profile_label_no): Define.
11022 * function.c: (profile_label_no): New static var.
11023 (expand_function_start): Increment it, and copy to
11024 current_function_profile_label_no.
11025 * output.h (profile_label_no): Delete.
11026 * final.c (profile_label_no): Delete.
11027 (profile_function): Use current_function_profile_label_no.
11028 (final_end_function): Don't increment profile_label_no here.
11029 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
11030 profile_label_no with current_function_profile_label_no.
11031 * config/pa/pa.c (current_function_number): Delete.
11032 (pa_output_function_prologue): Don't output profile label here.
11033 (hppa_profile_hook): Use label_no param rather than
11034 current_function_number.
11035 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
11036 * config/pa/pa.h: .. here.
11037 (FUNCTION_PROFILER): Output profile label here.
11039 2002-04-22 Eric Christopher <echristo@redhat.com>
11041 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
11042 patch of 2002-04-09 due to binutils issues.
11043 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
11045 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
11047 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
11048 constraint to 'o' for m=r and r=m alternatives.
11049 ("*movv8hi_internal1"): Same.
11050 ("*movv16qi_internal1"): Same.
11051 ("*movv4sf_internal1"): Same.
11053 2002-04-22 Janis Johnson <janis187@us.ibm.com>
11055 * rtl.h (RTX_FLAG): New macro.
11056 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
11057 * final.c (alter_subreg): Use macro to access rtx flag.
11058 * integrate.c (copy_rtx_and_substitute): Use new access macro.
11059 * print-rtl.c (print_rtx): Use new access macro.
11061 * cse.c (insert): Check rtx code before accessing flag.
11063 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
11064 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
11065 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
11066 convert_const_symbol_ref, make_canonical, make_alternative_compare,
11067 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
11068 simplify_test_exp, optimize_attrs, simplify_by_exploding,
11069 find_and_mark_used_attributes, unmark_used_attributes,
11070 add_values_to_cover, simplify_with_current_value,
11071 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
11072 copy_rtx_unchanging, main): Use new access macros.
11074 2002-04-22 Tom Rix <trix@redhat.com>
11076 * expmed.c (init_expmed): Generate shifted constant once.
11078 2002-04-22 Zack Weinberg <zack@codesourcery.com>
11080 * c-lex.c (lex_charconst): Call convert to get constant in
11081 proper type; don't just smash the type field.
11084 * config.gcc: Add list of obsolete configurations. Disallow
11085 building these without --enable-obsolete.
11086 * doc/install.texi: Document --enable-obsolete and obsoletion
11087 policy. Mention obsoletion of individual targets in
11088 appropriate places.
11090 2002-04-22 Richard Henderson <rth@redhat.com>
11092 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
11094 2002-04-22 Mark Mitchell <mark@codesourcery.com>
11097 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
11098 (walk_fixup_memory_subreg): Likewise.
11099 (fixup_var_refs_insn): Adjust accordingly.
11100 (fixup_var_refs_1): Likewise.
11102 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
11104 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
11105 LIBPATH_ARCH64_SPEC): Define.
11106 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
11107 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
11108 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
11109 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
11111 2002-04-22 Joel Sherrill <joel@OARcorp.com>
11113 * gthr-rtems.h: Correct prototypes to remove warnings.
11115 2002-04-22 Richard Henderson <rth@redhat.com>
11118 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
11120 * gcse.c (free_insn_expr_list_list): New.
11121 (clear_modify_mem_tables): Use it. Fix bit set usage.
11122 (canon_list_insert): Use EXPR_LISTs for expressions.
11123 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
11125 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
11127 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
11128 file change and include code to _cpp_pop_buffer.
11129 * cpphash.h (struct pending_option): Predeclare.
11130 (struct cpp_reader): New member next_include_file.
11131 (_cpp_pop_file_buffer): Update.
11132 (_cpp_push_next_buffer): Update, rename.
11133 * cppinit.c (cpp_destroy): Free include chain and pending here.
11134 (cpp_finish_options): Simplify.
11135 (_cpp_push_next_buffer): Rename and clean up.
11136 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
11138 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
11140 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
11142 * config/rs6000/altivec.h (vec_xor): Add variant for both args
11143 being vector signed int.
11145 (vec_xor): Add variant for both args being vector signed char.
11146 Remove redundant variant.
11149 2002-04-21 David S. Miller <davem@redhat.com>
11151 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
11152 compare mode in output RTL.
11154 2002-04-22 David Edelsohn <edelsohn@gnu.org>
11156 * config/rs6000/rs6000.c (rs6000_override_options): Correct
11157 style and formatting of previous patch.
11159 2002-04-22 Alan Modra <amodra@bigpond.net.au>
11161 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
11162 flag_pic for ABI_AIX.
11164 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
11166 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
11167 * cppfiles.c (read_include_file): Similarly.
11168 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
11169 uxstrdup ustrchr, ufputs): Similarly.
11170 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
11171 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
11172 cpp_ideq, parse_identifier, parse_number): Similarly.
11173 * cpplib.c (struct directive, dequote_string, D, run_directive,
11174 cpp_push_buffer): Similarly.
11175 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
11176 _cpp_create_definition, check_trad_stringification,
11177 cpp_macro_definition): Similarly.
11179 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
11181 * cppmacro.c (funlike_invocation_p): Don't step back
11184 2002-04-21 David Edelsohn <edelsohn@gnu.org>
11186 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
11189 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
11191 * doc/invoke.texi: Remove Chill references.
11192 * doc/gcc.texi: Update last modified date.
11194 2002-04-20 Kazu Hirata <kazu@hxi.com>
11196 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
11197 push and pop. Replace add.l with add.w.
11199 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11201 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
11202 multiply instructions for H8/300H case.
11204 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11206 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
11207 Bum three instructions from each routine.
11209 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
11211 * Makefile.in: Update.
11212 * decl.c (push_c_function_context, pop_c_function_context,
11213 mark_c_function_context): Rename for consistency.
11214 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
11215 * c-tree.h (push_c_function_context, pop_c_function_context,
11216 mark_c_function_context): Rename for consistency.
11217 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11218 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11219 * function.c (init_lang_status, save_lang_status,
11220 restore_lang_status, mark_lang_status, free_lang_status):
11221 Move to langhooks.h.
11222 (push_function_context_to, pop_function_context_from,
11223 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
11225 * function.h (init_lang_status, save_lang_status,
11226 restore_lang_status, mark_lang_status, free_lang_status):
11227 Move to langhooks.h.
11228 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
11229 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
11230 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
11231 LANG_HOOKS_FUNCTION_INITIALIZER): New.
11232 (LANG_HOOKS_INITIALIZER): Update.
11233 (lhd_do_nothing_f): New.
11234 * langhooks.h (struct lang_hooks_for_functions): New.
11235 (struct lang_hooks): New hooks.
11236 * langhooks.c (lhd_do_nothing_f): New.
11238 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11239 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11241 2002-04-19 David S. Miller <davem@redhat.com>
11243 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
11244 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
11246 2002-04-19 Jakub Jelinek <jakub@redhat.com>
11248 PR optimization/3756
11249 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
11250 x = ((int) y < 0) ? cst1 : cst2.
11252 2002-04-19 Jakub Jelinek <jakub@redhat.com>
11255 * function.c: Reapply patch for c/6358.
11256 (expand_function_end): Copy decl_rtl's mode, not
11257 current_function_return_rtx mode.
11259 2002-04-19 Joel Sherrill <joel@OARcorp.com>
11261 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
11264 2002-04-19 Tom Tromey <tromey@redhat.com>
11266 * doc/install.texi (Specific): Update status of Solaris 2.8.
11267 For PR libgcj/6158.
11269 2002-04-19 Andreas Schwab <schwab@suse.de>
11271 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
11272 (PUT_REAL): Restore old definition.
11274 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
11275 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11277 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
11278 binutils 2.11.2 and higher generate smaller binaries than Sun's
11281 2002-04-19 Mark Mitchell <mark@codesourcery.com>
11284 * toplev.c (rest_of_compilation): Do not defer functions for which
11285 TREE_SYMBOL_REFERENCED has already been set.
11287 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
11289 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
11292 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
11294 * builtins.c: Include langhooks.h.
11295 (lang_type_promotes_to): Remove.
11296 (expand_builtin_va_arg): Use new hook.
11297 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
11298 (simple_type_promotes_to): Move to c-typeck.c.
11299 * c-common.h (simple_type_promotes_to): Remove.
11300 * c-decl.c (duplicate_decls, grokdeclarator): Update.
11301 * c-format.c: Include langhooks.h.
11302 (check_format_types): Update.
11303 * c-tree.h (c_type_promotes_to): New.
11304 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
11305 (type_lists_compatible_p): Update.
11306 * langhooks-def.h (lhd_type_promotes_to): New.
11307 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
11308 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
11309 * langhooks.c (lhd_type_promotes_to): New.
11310 * langhooks.h (struct lang_hooks_for_types): New hook.
11311 * tree.h (lang_type_promotes_to): Remove.
11313 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
11315 2002-04-18 Richard Henderson <rth@redhat.com>
11317 * function.c: Revert patch for c/6358.
11319 2002-04-18 Richard Henderson <rth@redhat.com>
11321 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
11322 blocks. Handle multiple references to the TRAP block. Handle
11323 non-adjacent THEN and OTHER blocks.
11325 2002-04-18 Richard Henderson <rth@redhat.com>
11327 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
11328 crash with no type for by-mode libcalls.
11330 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
11332 2002-04-18 Bob Wilson <bob.wilson@acm.org>
11334 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
11335 __xtensa_nonlocal_goto): Use a syscall instructions to flush
11336 the register windows.
11338 2002-04-18 Zack Weinberg <zack@codesourcery.com>
11340 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
11341 appropriate. Document need for extended precision even when
11342 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
11343 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
11344 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
11345 instead of relying on later syntax error when REAL_WIDTH > 5.
11346 * real.c: Define NE based only on whether or not we have a
11347 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
11348 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
11349 define GET_REAL and PUT_REAL as simple memcpy operations; no
11350 need to byteswap or round.
11351 Use #error instead of #ifdef-ing out the entire file, for
11352 prompt error detection.
11354 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
11356 2002-04-18 David S. Miller <davem@redhat.com>
11358 * config/sparc/sparc.h (BRANCH_COST): Define.
11360 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
11363 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
11365 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
11366 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
11367 propagate_block calls after relaxation loop using new variable
11368 stabilized_prop_flags.
11370 2002-04-18 Richard Henderson <rth@redhat.com>
11372 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
11373 (ia64_va_arg): Expect variable sized types by reference.
11374 * config/ia64/ia64-protos.h: Update.
11375 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
11376 ia64_function_arg_pass_by_reference.
11378 2002-04-18 Richard Henderson <rth@redhat.com>
11380 * ifcvt.c: Include except.h.
11381 (block_has_only_trap): Break out from find_cond_trap.
11382 (find_cond_trap): Use it. Always delete the trap block.
11383 (merge_if_block): Allow then block null. Be less simplistic about
11384 what insns can end a block.
11385 * Makefile.in (ifcvt.o): Depend on except.h.
11387 * config/ia64/ia64.md (trap, conditional_trap): New.
11389 2002-04-18 Jakub Jelinek <jakub@redhat.com>
11392 * function.c (assign_parms): Assign hard current_function_return_rtx
11394 (expand_function_end): ...not here.
11396 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11398 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
11399 * c-tree.h (c_incomplete_type_error): New.
11400 * c-typeck.c (require_complete_type, build_component_ref): Update.
11401 (incomplete_type_error): Rename.
11402 * langhooks-def.h (lhd_incomplete_type_error): New.
11403 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
11404 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
11405 * langhooks.c (lhd_incomplete_type_error): New.
11406 * langhooks.h (struct lang_hooks_for_types): New hook.
11407 * tree.c (size_in_bytes): Use new hook.
11408 * tree.h (incomplete_type_error): Remove.
11410 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
11412 2002-04-18 Zack Weinberg <zack@codesourcery.com>
11414 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
11415 TARGET_FLOAT_FORMAT blocks.
11417 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11419 * doc/install.texi (Downloading the source): Do not mention Chill
11420 any longer, but mention Ada.
11421 (Configuration): Do not mention Chill any longer.
11423 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
11425 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
11427 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
11429 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
11432 2002-04-18 Jakub Jelinek <jakub@redhat.com>
11434 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
11435 instead of unsigned_type.
11437 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
11439 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
11440 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
11443 2002-04-18 Bernd Schmidt <bernds@redhat.com>
11445 * attribs.c (vector_type_node_list): New static variable.
11446 (handle_vector_size_attribute): Use it to avoid generating a
11447 new type node each time we are called.
11449 * combine.c (subst): Avoid trying to make a vector mode subreg of
11450 an integer constant.
11451 (gen_lowpart_for_combine): Likewise.
11453 2002-04-18 Roger Sayle <roger@eyesopen.com>
11454 Jakub Jelinek <jakub@redhat.com>
11456 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
11457 for integer constant c (if x has unsigned type or sign bit is not
11458 set in c). This folds the zero/sign extension into the bit-wise and
11461 2002-04-18 Jakub Jelinek <jakub@redhat.com>
11464 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
11467 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
11469 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
11471 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
11473 * gcc.c (read_specs): Detect and fail if an attempt is made to
11474 rename a spec string to an already existing string.
11476 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
11478 * config/s390/s390.c (legitimize_pic_address): Do not generate
11479 illegal address constant without CONST.
11481 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11483 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
11484 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11486 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
11488 PR optimization/6305
11489 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
11490 to make sure previous reloads are taken into account. Generate
11491 better code if one operand is an in-range immediate constant.
11493 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
11495 * doc/install.texi (Building): libgcj requires GNU make.
11497 2002-04-17 Jakub Jelinek <jakub@redhat.com>
11500 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
11501 even if hard quad and register is not floating.
11502 (movtf reg<-mem split): Disallow splitting if hard quad and
11503 register is floating.
11504 (movtf mem<-reg split): Likewise.
11505 * config/sparc/sparc.c (fp_register_operand): New predicate.
11506 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
11508 2002-04-17 Zack Weinberg <zack@codesourcery.com>
11510 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
11511 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
11512 (unprotoize.o): Ditto. Build from protoize.c. Define
11513 UNPROTOIZE on command line.
11514 * protoize.c: Include cppdefault.h. Delete include_defaults.
11515 (in_system_include_dir): Use cpp_include_defaults (defined in
11517 * unprotoize.c: Delete file.
11519 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
11521 * config/rs6000/altivec.h (vec_ld): Add array variants.
11525 2002-04-17 Alan Matsuoka <alanm@redhat.com>
11526 Aldy Hernandez <aldyh@redhat.com>
11528 * config/rs6000/altivec.h: Define __ALTIVEC__.
11533 (vec_vmaddfp): New.
11535 Add parentheses to all macro arguments.
11537 2002-04-16 Richard Henderson <rth@redhat.com>
11540 * except.c (remove_eh_handler): Insert inner regions at beginning
11541 of sibling chain. Refactor expressions.
11543 2002-04-16 Richard Henderson <rth@redhat.com>
11545 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
11546 * config/sparc/sol2-gas-bi.h: New file.
11547 * config.gcc (sparc*-solaris): Add it as needed.
11548 * configure.in (AS_SPARC64_FLAG): Remove check.
11549 * config.in, configure: Regenerate.
11551 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
11553 2002-04-16 Richard Henderson <rth@redhat.com>
11555 * config/mips/mips.c (override_options): Don't override N32 for
11559 * config/mips/mips.md (can_delay): Split out of existing define_delays.
11560 (HILO_delay): Set can_delay false.
11562 2002-04-16 Dale Johannesen <dalej@apple.com>
11564 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
11565 instruction addresses.
11566 (rs6000_output_function_epilogue): Likewise.
11568 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
11570 * c-parse.in (poplevel, compstmt_start,
11571 compstmt_primary_start): Add ending ';', in accordance
11574 2002-04-16 Richard Henderson <rth@redhat.com>
11576 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
11577 Adjust tm_file order to get TARGET_DEFAULT set properly.
11578 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
11579 * doc/install.texi (sparc-solaris): Update.
11581 2002-04-16 Dale Johannesen <dalej@apple.com>
11583 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
11584 comparison operands do not match each other or if modes of
11585 conditions do not match result.
11587 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
11590 * config/s390/s390.md (mulsidi3): Set both subregs of the
11591 multiword register.
11593 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
11595 * config/rs6000/altivec.h (vec_addc): Type check.
11597 2002-04-16 Jakub Jelinek <jakub@redhat.com>
11600 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
11602 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
11604 2002-04-15 Richard Henderson <rth@redhat.com>
11606 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
11607 call_really_used_regs too.
11609 2002-04-15 Richard Henderson <rth@redhat.com>
11611 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
11613 2002-04-15 David S. Miller <davem@redhat.com>
11615 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
11616 as being CLOBBERed.
11618 2002-04-16 Jakub Jelinek <jakub@redhat.com>
11621 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
11622 CONST_VECTOR is { 0, ... 0 }.
11624 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
11626 * doc/install.texi (Installing GCC: Configuration): Clarify
11627 the only supported ways to configure gcc.
11629 2002-04-15 Roland McGrath <roland@frob.com>
11631 * config.gcc (alpha*-*-gnu*): New target configuration.
11632 * config/alpha/gnu.h: New file for it.
11633 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
11635 2002-04-16 Mark Mitchell <mark@codesourcery.com>
11637 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
11638 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
11639 * tree.h (expand_start_stmt_expr): Update prototype.
11640 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
11641 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
11642 on the STMT_EXPR created for the inline function.
11644 2002-04-15 Richard Henderson <rth@redhat.com>
11646 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
11647 config/i386/linux-aout.h, config/i386/linux-oldld.h,
11648 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
11649 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
11650 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
11651 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
11652 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
11653 Define __gnu_linux__, not gnu_linux.
11654 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
11656 2002-04-15 Mark Mitchell <mark@codesourcery.com>
11658 Remove Chill front end.
11659 * gcc.c (default_compilers): Remove Chill entries.
11660 * ch: Remove directory.
11661 * doc/frontends.texi: Remove information about Chill.
11662 * doc/sourcebuild.texi: Likewise.
11663 * doc/standards.texi: Likewise.
11665 2002-04-15 Douglas B Rupp <rupp@gnat.com>
11667 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
11668 (LONGLONG_STANDALONE): Define.
11670 2002-04-15 David S. Miller <davem@redhat.com>
11672 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
11673 Call emit_library_call with LCT_NORMAL.
11674 (sparc_initialize_trampoline): Use LCT_foo instead of
11675 magic constant in emit_library_call invocations.
11676 (sparc64_initialize_trampoline): Likewise.
11677 (sparc_profile_hook): Likewise.
11678 * config/sparc/sparc.md: Likewise.
11680 * config/sparc/sparc.c (sparc_extra_constraint_check):
11681 Fix type of argument 'c'.
11682 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
11685 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
11687 * diagnostic.h (output_buffer_state): Redefine.
11688 (output_format_decoder): New macro.
11689 (output_prefixing_rule): Likewise.
11690 (output_line_cutoff): Likewise.
11691 (diagnostic_format_decoder): Adjust.
11692 (diagnostic_prefixing_rule): Likewise.
11693 (diagnostic_line_cutoff): Likewise.
11694 (diagnostic_state): Likewise.
11695 (diagnostic_kind_count): Likewise.
11696 (diagnostic_buffer): Now a macro.
11698 * diagnostic.c (diagnostic_buffer): Remove definition.
11699 (output_is_line_wrapping): Adjust.
11700 (set_real_maximum_length): Likewise.
11701 (output_set_maximum_length): Likewise.
11702 (init_output_buffer): Likewise.
11703 (lhd_print_error_function): Likewise.
11704 (output_do_verbatim): Likewise.
11706 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
11708 * cpperror.c (print_location): Don't print include chain
11710 (cpp_begin_message): Update to use DL_ macros.
11711 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11712 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11713 cpp_notice, cpp_notice_from_errno): Remove.
11714 (cpp_error, cpp_error_with_line): Update to take a diagnostic
11717 * cppexp.c (CPP_ICE): Remove.
11718 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
11719 lex, integer_overflow, _cpp_parse_expr): Update.
11720 * cppfiles.c (read_include_file, find_include_file,
11721 handle_missing_header, _cpp_read_file, remap_filename): Update.
11722 * cpphash.h (enum error_type): Remove.
11723 (_cpp_begin_message): Update.
11724 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
11725 cpp_handle_option, cpp_post_options): Update.
11726 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
11727 skip_whitespace, parse_identifier, parse_slow, parse_string,
11728 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
11729 cpp_interpret_charconst): Update.
11730 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
11731 lex_macro_node, do_undef, glue_header_name, parse_include,
11732 do_include_common, read_flag, do_line, do_linemarker, do_ident,
11733 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
11734 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
11735 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
11736 _cpp_pop_buffer, do_diagnostic): Update.
11737 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
11738 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
11739 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11740 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11741 cpp_notice, cpp_notice_from_errno): Remove.
11742 (cpp_error, cpp_error_with_line): Update to take a diagnostic
11745 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
11746 collect_args, enter_macro_context, save_parameter, parse_params,
11747 _cpp_create_definition, check_trad_stringification,
11748 cpp_macro_definition): Update.
11749 * cppmain.c (cpp_preprocess_file): Update.
11750 * fix-header.c (read_scan_file): Update.
11752 2002-04-14 Andreas Schwab <schwab@suse.de>
11754 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
11756 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
11758 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
11760 2002-04-13 Mark Mitchell <mark@codesourcery.com>
11762 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
11765 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
11767 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
11769 2002-04-13 Joel Sherrill <joel@OARcorp.com>
11771 * config/sparc/t-elf: Enable v8 multilibs. Impacts
11772 sparc-elf and sparc-rtems targets.
11774 2002-04-13 Mark Mitchell <mark@codesourcery.com>
11776 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
11777 defined, and __gnu_hurd__ wherever __GNU__ is defined.
11778 * arm/linux-elf.h: Likewise.
11779 * cris/aout.h: Likewise.
11780 * cris/linux.h: Likewise.
11781 * i370/linux.h: Likewise.
11782 * i386/gnu.h: Likewise.
11783 * i386/linux-aout.h: Likewise.
11784 * i386/linux-oldld.h: Likewise.
11785 * i386/linux.h: Likewise.
11786 * i386/linux64.h: Likewise.
11787 * ia64/linux.h: Likewise.
11788 * m68k/linux-aout.h: Likewise.
11789 * m68k/linux.h: Likewise.
11790 * mips/linux.h: Likewise.
11791 * pa/pa-linux.h: Likewise.
11792 * pj/linux.h: Likewise.
11793 * rs6000/sysv4.h: Likewise.
11794 * s390/linux.h: Likewise.
11795 * sh/linux.h: Likewise.
11796 * sparc/linux-aout.h: Likewise.
11797 * sparc/linux.h: Likewise.
11798 * sparc/linux64.h: Likewise.
11799 * xtensa/linux.h: Likewise.
11801 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
11803 * stmt.c (check_unique_operand_names): Expect operand names to
11804 be strings rather than identifiers. Use simple_cst_equal to
11806 (resolve_operand_name_1): Make same identifier to string change here.
11807 * c-parse.in (asm_operand): Convert a named operand into a string.
11808 * cp/parse.y (asm_operand): Likewise.
11810 2002-04-13 Andreas Schwab <schwab@suse.de>
11812 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
11814 2002-04-12 Mark Mitchell <mark@codesourcery.com>
11816 Revert these changes:
11818 2002-04-06 Mark Mitchell <mark@codesourcery.com>
11821 * stor-layout.c (layout_decl): Reset the RTL for the decl.
11823 2002-04-12 Richard Henderson <rth@redhat.com>
11825 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
11826 (sparc*-*-solaris): Clean up header files.
11827 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
11828 and plan on generating 64-bit code.
11829 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11830 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11831 * config/sparc/sol2-sld-64.h: Rename ...
11832 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
11833 for AS_SPARC64_FLAG not defined.
11834 * config/sparc/sol2-gld-bi.h: New.
11835 * config/sparc/sol2-sld.h: Remove.
11836 * config/sparc/sol26-sld.h: New.
11837 * config/sparc/sol2.h: Tidy comments.
11838 * doc/install.texi: Document sparc-solaris configury changes.
11840 2002-04-12 Richard Henderson <rth@redhat.com>
11842 * recog.c (offsettable_address_p): Match the logic in adjust_address.
11844 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11845 in 64-bit mode only. Use only for 32-bit or MEDLOW.
11847 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11849 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11851 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
11853 * pa.c (pa_can_combine_p): Call extract_insn before calling
11854 constrain_operands.
11856 2002-04-12 Douglas B Rupp <rupp@gnat.com>
11858 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11859 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11860 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11861 (CPP_PREDEFINES): Handle __declspec.
11862 * config/i386/t-interix (USER_H): Remove.
11864 2002-04-12 DJ Delorie <dj@redhat.com>
11866 * integrate.c (compare_blocks): Make comparisons safe for when
11867 sizeof(int) < sizeof(char *).
11868 (find_block): Likewise.
11870 2002-04-12 Jan Hubicka <jh@suse.cz>
11871 David Edelsohn <edelsohn@gnu.org>
11873 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11875 (symbol_ref_operand): New.
11876 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11877 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11879 2002-04-12 Andreas Schwab <schwab@suse.de>
11881 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11882 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11883 overrides the definition in config/svr4.h.
11885 2002-04-12 Eric Norum <eric.norum@usask.ca>
11887 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11888 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11889 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11890 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11891 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11892 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11893 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11894 definitions to config/rtems.h and make the targets more similar.
11896 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11898 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11899 POINTERS_EXTEND_UNSIGNED.
11900 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11901 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11903 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11906 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
11908 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11909 depends on TARGET_SHMEDIA, not TARGET_SH5.
11911 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
11913 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11914 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11916 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
11918 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11921 2002-04-12 Andreas Schwab <schwab@suse.de>
11923 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11925 2002-04-12 Richard Henderson <rth@redhat.com>
11928 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11930 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11931 modes spanning multiple hard regs.
11933 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11935 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
11937 * pa.c (pa_output_function_prologue): Don't accumulate the total
11938 number of code bytes when using TARGET_64BIT, or gas, SOM and not
11939 the portable runtime.
11940 (output_deferred_plabels): Handle 64bit plabels.
11941 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11942 generating pic code using the GAS assembler for object formats that
11943 are not SOM (ie., ELF32 and ELF64).
11944 (output_millicode_call): Check attribute type if attribute length is 28.
11945 Likewise use $PIC_pcrel$0. Only call get_attr_length and
11946 dbr_sequence_length once.
11947 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11948 dbr_sequence_length once.
11949 * pa.h (TARGET_SOM): Define if not defined.
11950 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11951 with GAS and not SOM.
11952 (jump, call_internal_reg, call_value_internal_reg): Likewise.
11953 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
11955 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11957 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11958 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11959 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11960 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11961 elfos.h and dbxelf.h values are fine now.
11962 * config/i386/freebsd.h, config/alpha/freebsd.h
11963 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11965 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11967 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11968 or set Acpu or Amachine. Reformat.
11969 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11971 (LINK_SPEC): Do not need to undef.
11972 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11973 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11974 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11976 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11977 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11978 (LINK_SPEC): Do not need to undef.
11979 (DONT_USE_BUILTIN_SETJMP): Do not define.
11980 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11981 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
11982 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11983 Remove trailing spaces.
11984 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11985 __ELF__, or set Acpu or Amachine. Reformat.
11986 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11989 2002-04-11 David O'Brien <obrien@FreeBSD.org>
11991 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11992 all other *-*-freebsd* targets.
11994 2002-04-11 Richard Henderson <rth@redhat.com>
11996 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11998 2002-04-11 David O'Brien <obrien@FreeBSD.org>
12000 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
12001 Include {cpu}/{cpu}.h thru tm_file.
12002 (alpha*-*-linux*ecoff): Remove target.
12003 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
12004 (LINK_SPEC): Remove, is not OS independent.
12005 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
12006 (LINK_SPEC): Do not need to #undef any longer.
12007 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
12009 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
12011 (LINK_SPEC): Moved here from alpha/elf.h.
12012 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
12013 SUB_CPP_PREDEFINES.
12014 * config/alpha/linux-ecoff.h: Remove.
12015 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
12016 (CPP_SPEC): Define _POSIX_SOURCE as needed.
12017 (CPP_SUBTARGET_SPEC): Do not define.
12018 (LINK_SPEC): Do not need to #undef any longer.
12019 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
12020 * config/alpha/vms.h: Likewise.
12022 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
12024 * doc/extend.texi: Remove old claim that typedefs cannot have
12025 an alignment attribute.
12027 2002-04-11 Jakub Jelinek <jakub@redhat.com>
12029 PR optimization/6177
12030 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
12031 bitpos is 0 and bitsize CONCAT size.
12033 2002-04-11 Jakub Jelinek <jakub@redhat.com>
12036 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
12038 2002-04-10 David O'Brien <obrien@FreeBSD.org>
12040 * config/alpha/freebsd.h: Minor reformatting.
12041 (CPP_SPEC): Define ELF and add cpp_subtarget.
12042 (ASM_SPEC): No longer needed.
12044 2002-04-11 Richard Henderson <rth@redhat.com>
12046 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
12047 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
12048 (dimode mem/zero splitter): New.
12050 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
12052 * config/cris/cris.c (cris_override_options): Tweak error message
12053 for PIC not implemented.
12055 * config/cris/cris.h: Tweak comments related to parameter-passing.
12057 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
12059 2002-04-10 Richard Henderson <rth@redhat.com>
12061 * except.c (add_ehl_entry): Allow duplicates after landing pad
12064 2002-04-10 David Edelsohn <edelsohn@gnu.org>
12066 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
12068 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
12070 * c-decl.c (c_init_decl_processing): Move generation of
12071 decls for g77_integer_type_node and friends from here ...
12072 * c-common.c (c_common_nodes_and_builtins): ... to here.
12074 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
12076 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
12077 is only used as frame pointer when frame_pointer_needed is true.
12079 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
12082 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
12083 for the fact that the pool entry uses two words.
12084 (movdf_hard_insn): Similarly. Also, ADR instruction can span
12086 (movdf_soft_insn): Similarly.
12087 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
12088 for the fact that the pool entry uses three words.
12090 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
12092 * config/mips/mips.c (mips_va_arg): When using the struct version
12093 of the EABI va_list, allow arguments in the register save area to
12094 take up less room than a stack argument.
12096 2002-04-10 Richard Henderson <rth@redhat.com>
12098 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
12099 if EXPAND_INITIALIZER.
12101 2002-04-09 Richard Henderson <rth@redhat.com>
12103 * config/alpha/alpha.md (movdi_er_maybe_g): New.
12104 * config/alpha/alpha.c (alpha_expand_mov): Use it.
12106 2002-04-10 Alan Modra <amodra@bigpond.net.au>
12108 PR optimization/6233
12109 * rtlanal.c (pure_call_p): New function.
12110 * rtl.h (pure_call_p): Declare.
12111 * loop.c (prescan_loop): Use it to set has_nonconst_call.
12112 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
12114 2002-04-09 Eric Christopher <echristo@redhat.com>
12116 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
12117 information to .comm directive.
12119 2002-04-09 Richard Henderson <rth@redhat.com>
12122 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
12124 2002-04-09 Richard Henderson <rth@redhat.com>
12126 * basic-block.h (flow_delete_block_noexpunge): Declare.
12127 (expunge_block_nocompact): Declare.
12128 * cfg.c (expunge_block_nocompact): Split out from ...
12129 (expunge_block): ... here.
12130 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
12131 (flow_delete_block_noexpunge): Split out from ...
12132 (flow_delete_block): ... here.
12133 * cfgcleanup.c (delete_unreachable_blocks): Compact while
12134 removing dead blocks.
12135 * except.c (exception_handler_labels): Remove.
12136 (exception_handler_label_map): New.
12137 (struct eh_region): Add aka member.
12138 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
12139 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
12140 (for_each_eh_label, for_each_eh_label_1): New.
12141 (init_eh): Register exception_handler_label_map.
12142 (free_eh_status): Use free_region.
12143 (find_exception_handler_labels): Use the map, not the list.
12144 (remove_exception_handler_label): Likewise.
12145 (maybe_remove_eh_handler): Likewise.
12146 (remove_eh_handler): Use the region aka bitmap.
12147 * except.h (exception_handler_labels): Remove.
12148 (for_each_eh_label): Declare.
12149 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
12150 * loop.c (invalidate_loops_containing_label): New.
12151 (find_and_verify_loops): Use it. Use for_each_eh_label.
12152 * sched-rgn.c (is_cfg_nonregular): Use
12153 current_function_has_exception_handlers.
12155 2002-04-09 Richard Henderson <rth@redhat.com>
12157 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
12158 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
12159 Do not return changed status.
12160 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
12161 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
12162 New functions that do return changed status.
12163 * sbitmap.h: Update decls.
12164 * gcse.c, lcm.c: Use _cg functions as needed.
12166 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
12168 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
12169 (sh64-*-elf*, sh-*-rtemself*): Likewise.
12170 * config/sh/embed_bb.c: New file.
12171 * config/sh/embed-elf.h: New file.
12172 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
12173 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
12174 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12176 (SUBTARGET_CPP_PTR_SPEC): Don't define.
12177 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
12178 Add subtarget_asm_endian_spec.
12179 (ASM_SPEC): Use subtarget_asm_endian_spec.
12180 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
12181 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
12182 (WCHAR_UNSIGNED): Define.
12183 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
12184 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12185 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
12187 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
12188 (sh_adjust_cost): Likewise.
12189 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
12191 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
12192 (WCHAR_TYPE_SIZE): Likewise.
12193 (ASM_SPEC): Use subtarget_asm_endian_spec.
12194 (SH_ELF_WCHAR_TYPE): #undef/ #define.
12195 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
12196 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
12197 (MAX_WCHAR_TYPE_SIZE): Don't #define .
12198 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
12199 (USER_LABEL_PREFIX): Don't #undef /#define .
12200 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
12201 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
12202 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
12203 (ASM_SPEC): Likewise.
12204 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
12205 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
12206 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
12207 (LIB2FUNCS_EXTRA): Define.
12208 * t-sh64 (LIB2FUNCS_EXTRA): Define.
12209 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
12210 (LIB1ASMFUNCS_CACHE): Define.
12211 (LIB2FUNCS_EXTRA): Redefine empty.
12213 2002-04-08 Richard Henderson <rth@redhat.com>
12215 * reorg.c (get_branch_condition): Use reversed_comparison_code.
12217 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12219 * config/m68hc11/larith.asm (__map_data_section): Fix condition
12220 and optimize for size.
12221 (__do_global_ctors): Fix pointer comparison.
12222 (__do_global_dtors): Likewise.
12224 2002-04-09 David S. Miller <davem@redhat.com>
12226 * config/sparc/sparc.c (sparc_extra_constraint_check): New
12227 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
12228 allow reloading pseudos.
12229 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
12230 * config/sparc/sparc-protos.h: Declare it.
12232 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
12233 unsigned comparison warning.
12234 (output_restore_regs): Mark leaf_function as unused.
12236 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12238 * expr.c (is_aligning_offset): New function.
12239 (expand_expr, case COMPONENT_EXPR): Call it.
12241 2002-04-08 David S. Miller <davem@redhat.com>
12244 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
12246 Make init_priority work on Sparc when using GNU ld.
12247 * config/sparc/linux.h, config/sparc/linux64.h,
12248 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
12249 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
12250 * config/sparc/sol2-gld.h: New file to do the same.
12251 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
12252 sparc/sol2-gld.h to tm_file.
12254 PR optimization/4328
12255 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
12256 * doc/md.texi: Document it.
12257 * config/sparc/sparc.md (movdi_insn_sp64_novis,
12258 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
12259 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
12260 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
12261 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
12263 2002-04-08 Andreas Jaeger <aj@suse.de>
12265 * stmt.c (expand_asm_operands): Revert last patch from Richard
12268 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12270 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
12271 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
12273 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12275 * doc/contrib.texi (Contributors): Add David O'Brien.
12277 2002-04-08 Alan Modra <amodra@bigpond.net.au>
12279 * configure.in (auto-build.h): Use target_alias and build_alias
12280 when running configure.
12281 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
12282 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
12283 * configure: Regenerate.
12285 2002-04-07 David S. Miller <davem@redhat.com>
12287 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
12289 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
12292 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
12293 generating 32-bit pic code.
12295 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
12297 * cppinit.c (cpp_create_reader): Initialize
12298 discard_comments_in_macro_exp.
12299 (COMMAND_LINE_OPTIONS): Add "-CC" option.
12300 (cpp_handle_option): Handle "-CC" option.
12301 * cpplex.c (save_comment): If saving a C++ comment in
12302 a directive, convert it to a C comment.
12303 (_cpp_lex_direct): Pass second comment start character to
12304 save_comment to indicate comment type.
12305 * cpplib.c (_cpp_handle_directive): If processing
12306 a "#define" directive and discard_comments_in_macro_exp
12307 is false, re-enable saving of comments.
12308 (lex_macro_node): If discard_comments_in_macro_exp is false,
12309 discard any comments before the macro identifier.
12310 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
12312 * cppmacro.c (cpp_get_token): If expanding a macro while
12313 processing a directive, discard any comments we might encounter.
12314 (parse_params): If discard_comments_in_macro_exp is false,
12315 ignore comments in the macro parameter list.
12316 * gcc.c (cpp_unique_options): Add "-CC" option.
12317 (option_map): Map "--comments-in-macros" to "-CC".
12318 * doc/cppopts.texi: Document "-CC" option.
12319 * f/lang-specs.h: Add "-CC" option.
12320 * testsuite/gcc.dg/cpp/maccom1.c: New test.
12321 * testsuite/gcc.dg/cpp/maccom2.c: New test.
12322 * testsuite/gcc.dg/cpp/maccom3.c: New test.
12323 * testsuite/gcc.dg/cpp/maccom4.c: New test.
12324 * testsuite/gcc.dg/cpp/maccom5.c: New test.
12325 * testsuite/gcc.dg/cpp/maccom6.c: New test.
12327 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
12330 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
12332 2002-04-06 Mark Mitchell <mark@codesourcery.com>
12335 * stor-layout.c (layout_decl): Reset the RTL for the decl.
12338 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
12339 RTX_UNCHANGING_P for the functions arguments when a tail call
12342 2002-04-06 Jason Merrill <jason@redhat.com>
12344 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
12345 (parse_options_and_default_flags): Set them appropriately.
12346 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
12348 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
12350 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
12353 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
12356 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
12357 types come in by-reference. Fix typo in comment.
12359 2002-04-05 David S. Miller <davem@redhat.com>
12361 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
12362 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
12363 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
12364 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
12366 2002-04-05 David S. Miller <davem@redhat.com>
12368 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
12369 are not going to emit return instructions, emit at least a nop
12370 for the sake of sane backtraces.
12372 2002-04-05 Richard Henderson <rth@redhat.com>
12374 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
12376 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
12378 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
12380 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
12382 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
12383 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
12384 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
12386 2002-04-05 Andreas Schwab <schwab@suse.de>
12388 * c-convert.c: Include c-common.h.
12389 * Makefile.in (c-convert.o): Updated.
12391 2002-04-05 Jakub Jelinek <jakub@redhat.com>
12393 * mklibgcc.in: Use separate libgcc.map for each multilib.
12394 * Makefile.in (distclean): Don't remove libgcc.map here.
12396 2002-04-05 Jakub Jelinek <jakub@redhat.com>
12398 * Makefile.in (s-mlib): Handle --disable-multilib by separate
12399 genmultilib invocation.
12401 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
12403 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
12404 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
12405 to num_gprs for symmetry.
12406 * config/mips/mips.c: Adjust accordingly.
12408 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
12410 * c-common.c (truthvalue_conversion): Rename, update.
12411 * c-common.h (c_common_truthvalue_conversion): New.
12412 * c-convert.c (convert): Update.
12413 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12414 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
12415 * c-typeck.c (build_binary_op, build_unary_op,
12416 build_conditional_expr): Update.
12417 * fold-const.c (constant_boolean_node, fold): Use langhook.
12418 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
12419 * langhooks.h (struct lang_hooks): New hook.
12420 * stmt.c (expand_decl_cleanup): Use langhook.
12421 * tree.h (truthvalue_conversion): Remove.
12423 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12425 2002-04-05 Alan Modra <amodra@bigpond.net.au>
12427 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
12428 Add rules to make null object file.
12430 2002-04-04 Jim Blandy <jimb@redhat.com>
12432 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
12433 macro formal parameter names.
12435 2002-04-04 David S. Miller <davem@redhat.com>
12437 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
12439 2002-04-04 Richard Henderson <rth@redhat.com>
12442 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
12443 Support copies into and out of memory. Don't accept allows_reg
12444 and allows_mem as gospel.
12446 2002-04-04 Richard Henderson <rth@redhat.com>
12449 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
12450 (write_dependence_p): Likewise.
12452 2002-04-04 Richard Henderson <rth@redhat.com>
12454 * predict.c (estimate_bb_frequencies): Do frequency calculation
12455 with a volatile temporary.
12457 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
12459 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
12461 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12464 * final.c (final_start_function): Don't bump profile_label_no here...
12465 (final_end_function): ...but here.
12467 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12469 * config/sparc/sparc.md (pic): New attribute.
12470 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
12472 (split after do_builtin_setjmp_setup): New.
12474 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12477 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
12480 2002-04-04 Jakub Jelinek <jakub@redhat.com>
12482 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
12483 UNITS_PER_WORD for zero sized aggregates.
12485 2002-04-03 David S. Miller <davem@redhat.com>
12487 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
12488 one-character spec for this, just use %(link_gcc_c_sequence).
12490 2002-04-03 David S. Miller <davem@redhat.com>
12492 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
12495 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
12497 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
12498 (DWARF_FRAME_RETURN_COLUMN): Move.
12499 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12500 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
12501 * pa.c (except.h, predict.h): Include.
12503 (store_reg_modify, set_reg_plus_d): Revise prototypes.
12504 (output_ascii): Add cast.
12505 (store_reg_modify): Revise to add frame notes.
12506 (set_reg_plus_d): Likewise.
12507 (compute_frame_size): Include space for eh data registers in frame if
12508 the current function calls eh_return.
12509 (hppa_expand_prologue): Ensure register %r2 is saved if the current
12510 function calls eh_return. Save eh data registers if the current
12511 function calls eh_return. Fix code to add frame notes. Emit
12512 blockage to prevent insns with frame notes being scheduled in the
12513 delay slot of calls.
12514 (hppa_expand_epilogue): Restore eh data registers and do final stack
12515 adjustment if the current function calls eh_return. Don't add frame
12517 (output_call): Revise for change in length of call insn. Don't do
12518 return pointer adjustment for an unconditional jump in the delay slot
12519 of a call when using frame notes.
12520 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
12521 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
12522 (ARG_POINTER_CFA_OFFSET): Define.
12523 * pa.md (return_external_pic): New pattern.
12524 (prologue): Correct formatting. Use return_external_pic if current
12525 function calls eh_return.
12526 (call_internal_symref, call_value_internal_symref,
12527 sibcall_internal_symref, sibcall_value_internal_symref): Change default
12528 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
12530 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
12532 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
12533 list of targets to check using "nop" insn.
12534 * configure: Rebuilt.
12536 2002-04-04 Alan Modra <amodra@bigpond.net.au>
12538 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
12540 2002-04-03 David S. Miller <davem@redhat.com>
12542 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
12543 library sequence passed to the linker.
12544 (LINK_COMMAND_SPEC): Use it.
12545 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
12546 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
12547 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12549 2002-04-03 Jason Merrill <jason@redhat.com>
12551 * except.c (struct eh_status): Remove protect_list.
12552 (begin_protect_partials, end_protect_partials): Remove.
12553 (add_partial_entry): Remove.
12554 * except.h: Remove prototypes.
12556 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
12557 expand_decl_cleanup_eh.
12560 * tree.h (CLEANUP_EH_ONLY): New macro.
12561 * stmt.c (expand_decl_cleanup_eh): New fn.
12562 (expand_cleanups): Check CLEANUP_EH_ONLY.
12563 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
12564 Use expand_decl_cleanup_eh.
12565 (expand_stmt): Adjust.
12566 * c-common.h: Adjust prototype.
12568 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
12570 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
12571 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
12572 (cris_target_asm_function_epilogue): Ditto.
12573 (cris_initial_frame_pointer_offset): Ditto.
12574 (cris_simple_epilogue): Ditto.
12575 (cris_expand_builtin_va_arg): Variable-size types come in
12578 2002-04-03 David S. Miller <davem@redhat.com>
12580 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
12582 (set_fast_math): Correct 'fsr' type.
12584 2002-04-03 Richard Henderson <rth@redhat.com>
12587 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
12588 * toplev.c (check_global_declarations): Use it.
12589 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
12590 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12591 (LANG_HOOKS_DECLS): Add it.
12592 * langhooks.c (lhd_warn_unused_global_decl): New.
12593 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12594 * c-objc-common.c (c_warn_unused_global_decl): New.
12595 * c-tree.h (c_warn_unused_global_decl): Declare.
12596 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
12598 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
12600 * langhooks-def.h (lhd_set_decl_assembler_name,
12601 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
12602 (LANG_HOOKS_INITIALIZER): Update.
12603 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
12604 * langhooks.h (struct lang_hooks): New hook.
12605 * tree.c (set_decl_assembler_name): Move to langhooks.c.
12606 (lang_set_decl_assembler_name): Remove.
12607 (init_obstacks): Don't set hook.
12608 (decl_assembler_name): New function.
12609 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
12610 (decl_assembler_name): New.
12611 (lang_set_decl_assembler_name): Remove.
12613 2002-04-03 Jakub Jelinek <jakub@redhat.com>
12615 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
12616 works properly with .hidden symbols.
12617 * configure: Rebuilt.
12618 * config.in: Rebuilt.
12619 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12620 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
12621 properly with .hidden symbols.
12623 2002-04-03 Jakub Jelinek <jakub@redhat.com>
12626 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
12629 2002-04-03 Richard Henderson <rth@redhat.com>
12632 * sched-rgn.c (sets_likely_spilled): New.
12633 (sets_likely_spilled_1): New.
12634 (add_branch_dependences): Use it.
12636 2002-04-02 Richard Henderson <rth@redhat.com>
12639 * loop.h (LOOP_FIRST_PASS): New.
12640 * loop.c (strength_reduce): Mind it when deciding to unroll.
12641 * toplev.c (rest_of_compilation): Set it.
12643 2002-04-02 David S. Miller <davem@redhat.com>
12645 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
12646 mems_ok_for_ldd_peep when the order of the loads being examined
12648 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
12649 existing comment to increase comprehension of this situation.
12651 2002-04-02 Zack Weinberg <zack@codesourcery.com>
12653 * config/sh/sh.md: Don't use union real_extract.
12655 2002-04-02 Richard Henderson <rth@redhat.com>
12657 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
12659 2002-04-02 David O'Brien <obrien@FreeBSD.org>
12661 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
12662 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
12663 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
12664 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
12665 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
12666 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
12667 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
12668 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
12669 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
12670 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
12671 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
12672 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
12673 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
12674 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
12675 Include as many configury headers via tm_file as possible. This
12676 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
12677 * config/openbsd-oldgas.h: New file.
12678 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
12679 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
12680 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
12681 config/i386/i386-coff.h, config/i386/i386-interix.h,
12682 config/i386/iscdbx.h, config/i386/linux-aout.h,
12683 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
12684 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
12685 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
12686 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
12687 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
12688 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
12689 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
12690 config/i386/vxi386.h: Do not directly include configury headers.
12691 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
12692 Directly include configury headers that are no longer automatically
12693 included by the above headers.
12694 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
12695 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
12696 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
12697 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
12698 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
12699 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
12700 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
12701 (TARGET_VERSION): Define.
12702 * config/i386/beos-elf.h, config/i386/freebsd.h,
12703 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
12704 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
12705 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
12706 config/i386/sco5.h, config/i386/sysv4.h
12707 (TARGET_VERSION): Do not need to protect.
12708 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
12709 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
12710 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
12711 config/i386/i386-interix.h, config/i386/linux-aout.h,
12712 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
12713 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
12714 (YES_UNDERSCORES): Do not define - not needed.
12715 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
12716 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12717 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
12718 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
12719 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12720 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
12721 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
12722 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
12724 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
12725 Richard Henderson <rth@redhat.com>
12728 * function.c (assign_temp): Accept either type or decl argument.
12729 Detect variables whose size is too large to fit into an integer.
12730 * stmt.c (expand_decl): Pass the decl, not the type.
12732 2002-04-02 David O'Brien <obrien@FreeBSD.org>
12734 * protoize.c: Match include directory usage with cppdefault.c.
12736 2002-04-03 Jeffrey A Law (law@redhat.com)
12737 Hans-Peter Nilsson <hp@bitrange.com>
12739 * combine.c (simplify_comparison): Avoid narrowing a comparison
12740 with a paradoxical subreg when doing so would drop signficant bits.
12742 2002-04-02 Steve Ellcey <sje@cup.hp.com>
12744 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
12745 if POINTERS_EXTEND_UNSIGNED is defined.
12747 2002-04-02 Richard Henderson <rth@redhat.com>
12750 * local-alloc.c (contains_replace_regs): LO_SUM may contain
12753 2002-04-02 Richard Henderson <rth@redhat.com>
12755 * doc/standards.texi: Document required freestanding libc entry points.
12757 2002-04-02 Alan Modra <amodra@bigpond.net.au>
12759 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
12760 associated splitter. Remove MQ constraint.
12761 (ctrdi_internal4): Correct CCmode clobber.
12763 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
12765 * milli64.S ($$dyncall): New function.
12766 * t-linux (LIB1ASMFUNCS): Revise module list.
12767 (LIB1ASMSRC): Use pa/milli64.S.
12769 2002-04-02 Richard Henderson <rth@redhat.com>
12771 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
12772 rename solaris_sys_varargs_h.
12774 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12776 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
12777 the same mode as its component.
12779 2002-04-02 Richard Henderson <rth@redhat.com>
12782 * final.c (this_is_asm_operands): Export.
12783 * output.h (this_is_asm_operands): Declare.
12784 * config/i386/i386.c (print_operand): Error odd asm operands.
12786 2002-04-02 Richard Henderson <rth@redhat.com>
12789 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
12791 2002-04-01 Richard Henderson <rth@redhat.com>
12794 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
12795 * fixinc/fixincl.x: Rebuild.
12797 2002-04-01 Richard Henderson <rth@redhat.com>
12799 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
12800 (atomic_alloc, atomic_free): New.
12801 (SIZE, MASK_FOR, PTR_IN): New.
12802 (emergency_reg_state, emergency_reg_state_free): New.
12803 (emergency_labeled_state, emergency_labeled_state_free): New.
12804 (reg_state_alloced, labeled_state_alloced): New.
12805 (alloc_reg_state, free_reg_state): New.
12806 (alloc_label_state, free_label_state, free_label_states): New.
12807 (push, pop, dup_state_stack, free_state_stack): Use them.
12808 (desc_label_state): Likewise.
12809 (uw_frame_state_for): Free label states and state stack.
12810 (uw_update_reg_address): Eliminate warnings.
12812 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
12814 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
12815 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
12817 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12819 * c-decl.c (grokdeclarator): Update.
12820 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12821 * c-tree.h (c_mark_addressable): New.
12822 * c-typeck.c (default_function_array_conversion, build_unary_op,
12823 build_array_ref, convert_for_assignment): Update.
12824 (mark_addressable): Rename.
12825 * calls.c (try_to_integrate, expand_call): Use langhook.
12826 * expr.c (expand_expr): Use langhook.
12827 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
12828 * langhooks.h (struct lang_hooks): New hook.
12829 * stmt.c (expand_asm_operands): Use langhook.
12830 * tree.h (mark_addressable): Remove.
12832 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12834 2002-04-01 Bob Wilson <bob.wilson@acm.org>
12836 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12837 in previous change.
12839 2002-04-01 Bob Wilson <bob.wilson@acm.org>
12841 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12842 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12844 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12846 * c-common.c (unsigned_conversion_warning, convert_and_check,
12847 unsigned_type, signed_type, shorten_compare,
12848 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12849 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12850 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12852 * c-decl.c (grokdeclarator): Update.
12853 * c-format.c (check_format_types): Update.
12854 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12855 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12856 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12857 * convert.c (convert_to_integer): Use new hooks.
12858 * expmed.c (make_tree): Use new hooks.
12859 * expr.c (store_expr): Use new hooks.
12860 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12861 all_ones_mask_p, unextend, fold): Use new hooks.
12862 * langhooks.h (struct lang_hooks_for_types): New hooks.
12863 * tree.h (signed_or_unsigned_type, signed_type,
12864 unsigned_type): Remove.
12866 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12867 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12869 2002-03-31 Richard Henderson <rth@redhat.com>
12871 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12872 (desc_frgr_mem): Fix reference to f16-f31.
12874 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12876 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12877 RTVEC_ELT): Const-ify.
12878 * varray.h (VARRAY_CHECK): Const-ify.
12879 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12880 ggc_mark_rtvec, ggc_mark): Const-ify.
12882 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12884 * diagnostic.c: Include langhooks-def.h.
12885 * Makefile.in (diagnostic.o): Update.
12887 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12889 * c-common.c (c_unsafe_for_reeval): Rename.
12890 * c-common.h (c_unsafe_for_reeval): Rename.
12891 * c-decl.c (finish_incomplete_decl): Rename.
12892 (c_init_decl_processing): Don't set langhook.
12893 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12894 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12895 * c-objc-common.c (c_objc_common_init): Don't set langhook.
12896 * c-tree.h (finish_incomplete_decl): Rename.
12897 * langhooks-def.h (lhd_unsafe_for_reeval): New.
12898 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12899 (LANG_HOOKS_INITIALIZER): Update.
12900 * langhooks.c (lhd_unsafe_For_reeval): New.
12901 * langhooks.h (struct langhooks): New hooks.
12902 * toplev.c (incomplete_decl_finalize_hook): Remove.
12903 (wrapup_global_declarations): Update.
12904 * tree.c (lang_unsafe_for_reeval): Remove.
12905 (unsafe_for_reeval): Update.
12906 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12909 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12910 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12912 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12914 * diagnostic.c (print_error_function): Remove.
12915 (default_print_error_function): Rename.
12916 (report_error_function): Update.
12917 * diagnostic.h (print_error_function): Remove.
12918 (default_print_error_function): Remove.
12919 * langhooks-def.h (struct diagnostic_context): Predeclare.
12920 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12921 (LANG_HOOKS_INITIALIZER): Update.
12922 * langhooks.h (struct diagnostic context): Predeclare.
12923 (struct lang_hooks): New hook.
12925 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12927 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12928 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12930 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12931 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12932 of PIC_OFFSET_TABLE_REGNUM thruout.
12933 * config/rs6000/rs6000.md: Likewise.
12934 * config/rs6000/darwin.h: Likewise.
12936 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12938 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12939 unsigned HOST_WIDE_INT, not unsigned int.
12941 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12943 PR middle-end/6096, middle-end/6098, middle-end/6099
12944 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12946 (fill_slots_from_thread): Likewise.
12948 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12950 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12951 floating fields in float regs.
12952 (function_arg_record_value_2): Likewise.
12954 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
12956 * config/mmix/mmix.md (define_constants): Remove misleading
12957 FIXME. Add MMIX_fp_rO_OFFSET.
12958 ("nonlocal_goto_receiver"): Don't have stack-frame address of
12959 saved rO as part of the pattern. Remove FIXME.
12960 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
12961 here, at output-time.
12963 2002-03-31 Jakub Jelinek <jakub@redhat.com>
12966 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12968 (output_v9branch): Likewise.
12970 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
12972 * gcc.c: Revert previous patch for now.
12973 * config/i386/djgpp.h: Likewise.
12975 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
12977 * config/mmix/crti.asm (_init): Register _fini with atexit.
12978 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12980 2002-03-31 Richard Henderson <rth@redhat.com>
12983 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12984 (ASM_OUTPUT_DEF_FROM_DECLS): New.
12986 2002-03-31 Richard Henderson <rth@redhat.com>
12988 * libgcc2.c (__bb_exit_func): Make static.
12990 * config/alpha/alpha.md (trap): New.
12992 2002-03-31 Richard Henderson <rth@redhat.com>
12994 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12995 promoted argument types; build trap.
12996 (expand_builtin_trap): New.
12997 (expand_builtin): Use it.
12998 * stmt.c (expand_nl_goto_receivers): Likewise.
12999 * expr.h (expand_builtin_trap): Declare.
13000 * libfuncs.h (LTI_abort, abort_libfunc): New.
13001 * optabs.c (init_optabs): Init abort_libfunc.
13003 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
13005 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
13006 (LINK_COMMAND_SPEC): ... from here.
13007 (init_gcc_specs): Duplicate it here too, omitting
13008 shared_name in the second copy.
13009 (init_spec): Test for duplicate
13010 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
13012 2002-03-30 David S. Miller <davem@redhat.com>
13014 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13015 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
13017 2002-03-30 Roger Sayle <roger@eyesopen.com>
13018 Richard Henderson <rth@redhat.com>
13020 * regmove.c (combine_stack_adjustments_for_block): Avoid
13021 emitting a stack adjustment of zero bytes. Let delete_insn
13024 2002-03-30 Richard Henderson <rth@redhat.com>
13026 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
13027 (sparc_emitting_epilogue): New.
13028 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
13029 * config/sparc/sparc-protos.h: Update.
13030 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
13031 (TARGET_SWITCHES): Update.
13032 * config/sparc/sparc.md (return): Remove.
13033 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
13034 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
13035 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
13036 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
13037 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
13038 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
13039 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
13040 Remove MASK_EPILOGUE.
13041 * doc/invoke.texi: Update.
13043 2002-03-30 Daniel Berlin <dan@dberlin.org>
13045 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
13046 CPP will start the file for us.
13048 2002-03-30 Richard Henderson <rth@redhat.com>
13051 * config/ia64/ia64.c (group_barrier_needed_p): Special case
13052 prologue_allocate_stack.
13053 (ia64_single_set): Use insn codes for recognition of special
13054 cases, not rtl matching.
13055 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
13057 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
13059 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
13061 2002-03-30 Richard Henderson <rth@redhat.com>
13064 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
13065 or -fomit-frame-pointer with profiling.
13066 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13067 (FUNCTION_PROFILER): Do nothing.
13068 (PROFILE_HOOK): New.
13069 * config/sparc/sparc.c (sparc_override_options): Don't check
13070 code models for profiling.
13071 (sparc_function_profiler): Remove.
13072 (sparc_profile_hook): New.
13073 * config/sparc/sparc-protos.h: Update.
13075 2002-03-30 Jakub Jelinek <jakub@redhat.com>
13077 PR optimization/6086
13078 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
13079 of SUBREG of volatile MEM or because the MEM was mode dependent,
13080 return CLOBBER instead of unmodified SUBREG.
13082 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
13084 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
13085 when not optimizing.
13087 * toplev.c (rest_of_compilation): Cann mark_constant_function
13088 only when optimizing.
13090 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
13093 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
13094 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
13095 (try_optimize_cfg): clear all AUX fields.
13097 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
13098 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
13099 (ix86_address_cost): Be prepared for SUBREGed registers.
13100 (legitimate_address_p): Accept SUBREGed registers.
13102 2002-03-29 Richard Henderson <rth@redhat.com>
13105 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
13107 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13109 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
13110 for aggregate and TFmode types.
13112 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
13114 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
13116 2002-03-29 Richard Henderson <rth@redhat.com>
13119 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
13120 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
13122 2002-03-29 Richard Henderson <rth@redhat.com>
13125 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
13126 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
13127 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
13128 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
13130 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
13132 2002-03-29 Dale Johannesen <dalej@apple.com>
13134 * loop.c (combine_movables): Do allow combination of pseudos.
13136 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
13138 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
13139 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
13140 No functional change except ...
13141 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
13142 * doc/install.texi (*-*-freebsd*): Document port configuration.
13144 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
13146 * Makefile.in (convert.o, calls.o, expmed.o): Update.
13147 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
13149 * builtin-types.def (BT_PTRMODE): Update.
13150 * c-common.c (type_for_size): Rename c_common_type_for_size.
13151 (type_for_mode): Similarly.
13152 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
13154 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
13155 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
13156 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
13158 * c-typeck.c (common_type, comptypes, default_conversion):
13160 * calls.c: Include langhooks.h.
13161 (emit_library_call_value_1): Use new hooks. Avoid redundant
13163 * convert.c: Include langhooks.h
13164 (convert_to_pointer, convert_to_integer): Use new hooks.
13165 * except.c (init_eh): Similarly.
13166 * expmed.c: Include langhooks.h.
13167 (expand_mult_add): Use new hooks.
13168 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
13169 try_casesi): Similarly.
13170 * fold-const.c (optimize_bit_field_compare, make_range,
13171 decode_field_reference, fold_truthop, fold): Similarly.
13172 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
13173 put_var_into_stack): Similarly.
13174 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
13175 LANG_HOOKS_TYPE_FOR_SIZE): New.
13176 (LANG_HOOKS_TYPES_INITIALIZER): Update.
13177 * langhooks.h (lang_hooks_for_types): New hooks.
13178 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
13179 * tree.c (get_unwidened, get_narrower): Similarly.
13180 * tree.h (type_for_mode, type_for_size): Remove.
13181 * varasm.c (force_const_mem): Use new hooks.
13182 * utils2.c (nonbinary_modular_operation): Update.
13184 * objc-act.c (handle_impent): Update.
13185 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
13188 2002-03-29 Steve Ellcey <sje@cup.hp.com>
13190 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
13191 * config/ia64/ia64.c (basereg_operand): New.
13192 * config/ia64/ia64-protos.h (basereg_operand): Declare.
13193 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
13195 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
13197 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
13198 unwind information when frame_pointer_needed.
13199 (mmix_assemble_integer): Tweak wording in comment.
13201 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
13203 * Makefile.in (except.o): Update.
13204 * except.c: Include langhooks.h.
13205 (init_eh): Use langhook.
13206 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
13207 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
13208 (LANG_HOOKS_INITIALIZER): Update.
13209 * langhooks.h (lang_hooks_for_types): New.
13210 (struct lang_hooks): Add it.
13211 * tree.c (make_lang_type_fn, make_lang_type): Remove.
13212 * tree.h (make_lang_type_fn, make_lang_type): Remove.
13214 * alpha/alpha.c: Include langhooks.h.
13215 (alpha_build_va_list): Use langhook.
13216 * d30v/d30v.c: Include langhooks.h.
13217 (d30v_build_va_list): Use langhook.
13218 * i386/i386.c: Include langhooks.h.
13219 (ix86_build_va_list): Use langhook.
13220 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
13221 * s390/s390.c: Include langhooks.h.
13222 (s390_build_va_list): Use langhook.
13223 * stormy16/stormy16.c: Include langhooks.h.
13224 (stormy16_build_va_list): Use langhook.
13226 2002-03-29 Jakub Jelinek <jakub@redhat.com>
13229 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
13231 (length): Compute variable length for branches/calls/jumps here.
13232 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
13233 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
13234 define branch_type attribute.
13235 (divsi3_sp32): Maximum length is 6 not 7.
13236 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
13237 call_address_untyped_struct_value_sp32,
13238 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
13239 * config/sparc/sparc.c (empty_delay_slot): New function.
13240 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
13241 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
13243 2002-03-29 Jakub Jelinek <jakub@redhat.com>
13245 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
13246 nonzero_bits if not needed.
13247 (nonzero_bits) [XOR]: Likewise.
13248 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
13249 reg_last_set_mode and mode are both MODE_INT, but not equal.
13250 (record_value_for_reg): Compute reg_last_set_nonzero_bits
13251 in nonzero_bits_mode for MODE_INT modes.
13253 2002-03-28 Richard Henderson <rth@redhat.com>
13256 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
13257 to GAS. Correct drift between alternatives.
13259 2002-03-28 Richard Henderson <rth@redhat.com>
13262 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
13264 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
13266 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
13267 emulation to the linker.
13269 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
13271 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
13272 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
13274 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
13276 * combine.c (simplify_and_const_int): Make sure to apply mask
13277 when force_to_mode returns a constant integer. PR3311.
13279 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
13281 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
13283 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13285 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
13286 and Objective-C Dialect Options.
13288 2002-03-28 Richard Henderson <rth@redhat.com>
13290 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
13291 comparison should be done vs !=0 not >0 return code. Tidy cases.
13293 2002-03-28 Richard Henderson <rth@redhat.com>
13295 * c-decl.c (finish_function): New arg can_defer_p. Pass it
13296 on to c_expand_body.
13297 * c-tree.h (finish_function): Update decl.
13298 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
13300 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
13302 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
13304 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
13306 * rtlanal.c: Include flags.h
13307 (may_trap_p): Do not mark FP operations if trapping
13308 if !flag_trapping_math
13309 * Makefile.in (rtlanal.o): Add dependency on flag.h
13310 * ifcvt.c (noce_operand_ok): Avoid the lameness.
13312 2002-03-27 Zack Weinberg <zack@codesourcery.com>
13314 * mips.md: Use dconst1, not 1.0, as first argument of
13315 REAL_VALUE_LDEXP. Don't use union real_extract.
13317 2002-03-28 Alan Modra <amodra@bigpond.net.au>
13319 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
13320 rather than $target. Heed program_prefix and
13321 program_transform_name. Search for gas in cross-compiler case too.
13322 "test -x" rather than "test -f".
13323 (gcc_cv_ld): Likewise.
13324 (gcc_cv_nm): Heed program_prefix and program_transform_name.
13325 (gcc_cv_objdump): Likewise.
13326 * configure: Regenerate.
13328 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13330 * Makefile.in (attribs.o): Update.
13331 * attribs.c: Include langhooks.h.
13332 (decl_attributes): Use langhook.
13333 * c-decl.c (insert_default_attributes): Rename.
13334 * c-tree.h (c_insert_default_attributes): New.
13335 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
13336 (LANG_HOOKS_INITIALIZER): Update.
13337 * langhooks.h (struct lang_hooks): New hook.
13338 * tree.h (insert_default_attributes): Remove.
13340 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
13342 2002-03-27 Andreas Schwab <schwab@suse.de>
13344 * config/i386/i386.c (classify_argument): Also check for
13347 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13349 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
13352 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
13354 * i960.md (ret): Set PC.
13355 (nonlocal_goto): Fix expander.
13356 * builtins.c (epxand_builin_longjmp): Check that we've emitted
13359 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
13361 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
13362 of libcall regions.
13364 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13366 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
13367 assigning to BLOCK_FOR_INSN directly.
13369 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
13371 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
13373 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13375 * c-common.c (c_expand_expr): Fix prototype.
13376 * c-common.h (c_expand_expr): Always declare, update.
13377 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
13378 * c-objc-common.c (c_objc_common_init): No global hook.
13379 * expr.c (expand_expr): Use langhook.
13380 * expr.h (enum expand_modifier): Conditionally declare.
13381 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
13382 (LANG_HOOKS_INITIALIZER): Update.
13383 * langhooks.c (lhd_expand_expr): New.
13384 * langhooks.h (struct lang_hooks): New hook.
13385 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
13386 (lang_independent_init): Don't default hook.
13388 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
13390 2002-03-27 Richard Henderson <rth@redhat.com>
13393 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
13394 TARGET_CONST_GP. Simplify conditions.
13396 2002-03-27 Richard Henderson <rth@redhat.com>
13398 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
13399 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
13400 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
13402 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
13404 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
13405 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
13406 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
13407 Remove unnecessary masks.
13408 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
13409 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
13410 -mwindows, -mdll switches and their negations.
13412 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13414 * gcc-common.c (lang_mark_false_label_stack): Remove.
13415 * ggc.h (lang_mark_false_label_stack): Similarly.
13417 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
13419 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
13421 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
13422 or __rtems_ is defined.
13424 2002-03-26 Richard Henderson <rth@redhat.com>
13426 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
13427 if a non-trivial load was emitted.
13428 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
13429 in high+extra+low case.
13431 2002-03-26 Richard Henderson <rth@redhat.com>
13433 * config.gcc (sparc*-solaris): Use float_format=sparc.
13435 2002-03-26 Richard Henderson <rth@redhat.com>
13437 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13438 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
13439 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
13440 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
13441 (WINT_TYPE_SIZE): Fix at 32.
13443 2002-03-26 Richard Henderson <rth@redhat.com>
13445 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
13446 until after eh landing pad generation.
13447 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
13448 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
13450 2002-03-26 Richard Henderson <rth@redhat.com>
13452 * expr.h (ADD_PARM_SIZE): One more convert for INC.
13454 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
13456 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
13457 and warning switches.
13458 (cc1_options): Likewise.
13460 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
13462 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
13463 Restore more of the signal context. Set no_reg_stack_frame.
13464 * config/ia64/unwind-ia64.c (unw_state_record):
13465 Add no_reg_stack_frame, comments.
13466 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
13467 (uw_update_context): Adjust bsp when unwinding from leaf,
13468 but not signal frame.
13470 2002-03-26 David Edelsohn <edelsohn@gnu.org>
13472 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
13474 2002-03-26 Bob Wilson <bob.wilson@acm.org>
13476 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
13478 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
13481 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
13482 "Add a pool_range attribute", which was lost during the ARM/Thumb
13485 2002-03-26 Bob Wilson <bob.wilson@acm.org>
13487 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
13488 a register into the MAC16 accumulator.
13490 2002-03-26 Andrew Cagney <ac131313@redhat.com>
13492 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
13493 (Warning Options): Document -Wswitch-enum.
13494 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
13496 (warn_switch_enum): Define variables.
13497 * flags.h (warn_switch_enum): Declare variables.
13498 * stmt.c (expand_end_case_type): When warn_switch_enum /
13499 -Wswitch-enum, perform switch checks.
13502 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
13504 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
13505 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
13506 (reload_muladdsi_compare0_scratch): Delete.
13508 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
13510 * doc/install.texi (*-*-freebsd*): Update.
13512 2002-03-26 Richard Henderson <rth@redhat.com>
13514 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
13515 (SUB_PARM_SIZE): Cast DEC to ssizetype.
13517 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
13518 types from the normal argument frame.
13520 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
13521 variable sized objects by reference.
13522 (sparc_va_arg): Receive them by reference too.
13524 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
13526 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
13527 code to not restoring global registers.
13529 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
13531 * Makefile.in (ggc-common.o): Update.
13532 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
13533 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
13534 * c-tree.h (c_mark_tree): New.
13535 * ggc-common.c: Include langhooks.h.
13536 (gcc_mark_trees): Use new langhook.
13537 * ggc-callbacks.c: Delete file.
13538 * ggc.h (lang_mark_tree): Remove.
13539 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
13540 (LANG_HOOKS_INITIALIZER): Update.
13541 * langhooks.h (struct lang_hooks): New hook.
13543 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
13545 2002-03-25 Zack Weinberg <zack@codesourcery.com>
13547 * doc/cpp.texi: Exclude entire Top node from printed manual.
13548 Move option index after directive index. Insert page breaks
13549 before GFDL and concept index. Index environment variables
13550 with command line options.
13551 * doc/cppenv.texi: Use @vtable for environment variable list.
13552 Add paragraph explaining semantics of empty elements in path
13553 variables. Exclude a cross-reference to Fishkill from the
13554 manpage. Remove an unnecessary cross-reference of the entry
13555 right above the referer. Don't use @anchor in text that goes
13557 * doc/cppopts.texi: Cross-reference the environment variables
13558 section, not the specific environment variable, for consistency.
13560 2002-03-25 Richard Henderson <rth@redhat.com>
13562 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
13563 anywhere in the block. Don't refer to insns that have been
13564 removed from the chain. Iterate backward through the new insns.
13565 Don't refer to edges that have been removed.
13567 2002-03-26 Alan Modra <amodra@bigpond.net.au>
13569 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
13570 test for overflow of constant.
13572 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
13575 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
13576 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
13577 these patterns on arm_archv4.
13579 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
13581 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
13584 2002-03-25 Zack Weinberg <zack@codesourcery.com>
13586 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
13587 float_handled, float_handler, float_signal, set_float_handler,
13588 and do_float_handler. Set handler for SIGFPE to crash_signal.
13589 * toplev.h: Don't prototype do_float_handler.
13591 * c-lex.c: Fold parse_float into lex_number. Make warning
13592 about portability of hex float constants more informative, and
13593 don't issue it on top of a syntax error.
13594 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
13596 * real.h: Define REAL_VALUE_ABS here...
13597 * simplify-rtx.c: ... not here. Fold check_fold_consts,
13598 simplify_unary_real, simplify_binary_real, and
13599 simplify_binary_is2orm1 into their callers.
13600 * tree.c: Fold build_real_from_int_cst_1 into caller.
13602 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
13604 * tsystem.h: Include float.h here...
13605 * libgcc2.c: ... not here.
13607 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
13609 Fixes for: PR bootstrap/3591, target/5676
13610 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
13611 defined. Do not disable exceptions or rtti.
13612 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
13613 mcore.h. Disable exceptions and rtti, since they are not
13616 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
13618 * c-decl.c (maybe_build_cleanup): Remove.
13619 * expr.c (expand_expr): Use langhook.
13620 * langhooks-def.h (lhd_return_null_tree,
13621 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
13622 (LANGHOOKS_INITIALIZER): Update.
13623 * langhooks.c (lhd_return_null_tree): New.
13624 * langhooks.h (struct lang_hooks): New hook.
13625 * tree-inline.c (initialize_inlined_parameters): Use langhook.
13626 * tree.h (maybe_build_cleanup): Remove.
13628 2002-03-25 Jakub Jelinek <jakub@redhat.com>
13630 * regrename.c (build_def_use): Move recog_memoized
13631 before extract_insn.
13633 2002-03-25 Jakub Jelinek <jakub@redhat.com>
13636 * expr.c (emit_group_store): Handle storing into CONCAT.
13638 2002-03-25 Jakub Jelinek <jakub@redhat.com>
13640 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
13641 corresponding MATCH_DUP.
13643 2002-03-24 Richard Henderson <rth@redhat.com>
13645 * unroll.c (unroll_loop): Zero label_map.
13647 * gcse.c: Include except.h.
13648 * Makefile.in (gcse.o): Update.
13650 2002-03-24 Richard Henderson <rth@redhat.com>
13652 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
13653 Do resolve_unique_section before shared data clause.
13655 2002-03-24 Richard Henderson <rth@redhat.com>
13657 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
13659 2002-03-24 Richard Henderson <rth@redhat.com>
13661 * recog.c (peephole2_optimize): Split blocks when EH insns are
13662 generated in the middle of a block. Do global life update if
13665 2002-03-24 Richard Henderson <rth@redhat.com>
13667 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
13669 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
13672 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
13673 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
13674 (init_dependency_output): Don't make no_output decision here.
13676 2002-03-24 Andrew Cagney <ac131313@redhat.com>
13678 * stmt.c (check_for_full_enumeration_handling): Remove tests of
13679 warn_switch. Update description.
13680 (expand_end_case_type): Call check_for_full_enumeration_handling
13683 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13685 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
13686 (m68hc11_split_move): Call it to see if the source and destination
13687 operands use the same direction auto inc/dec mode, otherwise make the
13688 source an offsetable memory operand and generate an add.
13690 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13692 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
13693 register for operand 2.
13694 ("*subsi3_zero_extendqi"): Likewise.
13695 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
13696 bits so that it is compatible with a pop.
13697 ("*andhi3_gen"): Likewise.
13698 ("xorhi3"): Likewise.
13700 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
13702 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
13704 (cpp_post_options): ... not here.
13706 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
13707 Aldy Hernandez <aldyh@redhat.com>
13709 Removal of separate preprocessor cpp0.
13711 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
13712 cpp0, install-common): Update.
13713 * c-common.c (flag_preprocess_only): New.
13714 (c_common_init): Preprocess for -E.
13715 * c-common.h (flag_preprocess_only): New.
13716 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
13717 * c-objc-common.c (c_init_decl_processing): Exit quickly
13718 for NULL return from c_common_init.
13719 * cpplib.h (cpp_preprocess_file): New.
13720 * cppmain.c (main, general_init, pfile, progname): Remove.
13721 (do_preprocessing): Rename cpp_preprocess_file, don't call
13722 cpp_finish. Don't close stdout here.
13723 (setup_callbacks): Update prototype.
13724 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
13726 * tradcpp.c (main): Ignore -quiet.
13728 * lang-specs.h (default_compilers): Preprocess with cc1obj.
13730 2002-03-24 Richard Henderson <rth@redhat.com>
13732 PR optimization/5742
13733 * machmode.def: Add inner mode field to complex modes.
13734 * config/mips/mips.c (mips_function_value): Always define. Add
13735 new argument to handle libcalls.
13736 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
13737 (FUNCTION_VALUE): Likewise.
13738 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
13739 * config/mips/mips-protos.h: Update.
13741 2002-03-23 Richard Henderson <rth@redhat.com>
13743 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
13744 * config/sparc/sparc-protos.h: Update.
13745 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
13747 2002-03-23 Richard Henderson <rth@redhat.com>
13749 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
13750 _start or _init begins the text segment.
13752 2002-03-23 David Edelsohn <edelsohn@gnu.org>
13754 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
13755 not HOST_WIDEST_INT.
13756 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
13758 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
13761 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
13762 operand argument to output_return_instruction.
13763 * arm.c (arm_print_operand, case 'd'): If the operand is
13764 const_true_rtx then just return.
13765 (arm_print_operand, case 'D'): If the operand is const_true_rtx
13768 2002-03-23 Andrew Cagney <ac131313@redhat.com>
13770 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
13771 (Warning Options): Document -Wswitch-default.
13772 * toplev.c (W_options): Add -Wswitch-default. Update comment on
13774 (warn_switch_default): Define variable.
13775 (warn_switch): Update comment.
13776 * flags.h (warn_switch_default): Declare variable.
13777 (warn_switch): Update comment.
13778 * stmt.c (expand_end_case): Check for and, when
13779 warn_switch_no_default, warn of a missing default case.
13781 2002-03-23 Alan Modra <amodra@bigpond.net.au>
13783 * real.h (N): Special case 128 bit doubles.
13785 * combine.c (simplify_comparison): When widening modes, ignore
13786 sign extension on CONST_INTs.
13788 2002-03-22 Bob Wilson <bob.wilson@acm.org>
13790 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
13791 passed to adjust_address. Fix comment formatting.
13794 2002-03-22 Zack Weinberg <zack@codesourcery.com>
13796 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
13797 Always make REAL_VALUE_TYPE a struct containing an array of
13798 HOST_WIDE_INT, not a double. Tidy up the code deciding how
13799 big it is. Don't declare or use union real_extract.
13801 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
13802 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
13803 (print_operand), config/arm/arm.c (output_move_double),
13804 config/arm/arm.md (consttable_4, consttable_8),
13805 config/romp/romp.c (output_fpops), config/s390/s390.h
13806 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
13807 (xtensa_output_literal): Don't use union real_extract.
13809 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
13810 (sfmode_constant_to_ulong), config/ns32k/merlin.h
13811 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
13812 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
13813 (PRINT_OPERAND): Don't use local version of union
13816 * config/convex/convex.c (check_float_value), config/vax/vax.c
13817 (vax_float_literal), config/m88k/m88k.md (divdf3),
13818 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
13819 config/pdp11/pdp11.c (output_move_quad): Don't do host
13820 arithmetic on target floating point quantities.
13822 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
13823 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
13825 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
13826 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
13828 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13829 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13831 * print-rtl.c (print_rtx): Disable code which needs
13832 floating-point emulator.
13833 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13834 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13835 depending on HOST_FLOAT_FORMAT to be defined properly.
13837 * config/1750a/1750a.c (get_double, float_label): Delete.
13838 (print_operand): Delete huge commented-out chunk. Use
13839 REAL_VALUE_TO_DECIMAL.
13840 * config/1750a/1750a-protos.h: Delete prototypes of deleted
13842 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13844 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13845 Use REAL_VALUE_TO_DECIMAL as ELF version does.
13846 * config/m88k/m88k.c (real_power_of_2_operand,
13847 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13848 real_extract out of the union; run the input through
13849 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13850 from that into the union.
13851 * config/pdp11/pdp11.c (output_move_double): Rearrange
13852 parentheses to make automatic indenter happy.
13854 * doc/tm.texi (Cross-compilation): Rename node to "Floating
13855 Point" and rewrite to describe current situation. Also adjust
13856 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13858 * doc/rtl.texi: Adjust cross reference.
13860 2002-03-22 Bob Wilson <bob.wilson@acm.org>
13862 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13863 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13864 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13865 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13866 prevent use of sp as a reload register.
13867 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13868 non_acc_reg_operand.
13869 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13870 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13871 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13872 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13874 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
13876 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13877 * cpplex.c (unterminated): Delete.
13878 (parse_string): No string literal may extend over multiple
13879 lines. Suppress the error when preprocessing assembly.
13880 * cppmain.c (scan_translation_unit): Strings are single-line.
13882 * doc/cpp.texi: Update to match.
13884 2002-03-22 Jakub Jelinek <jakub@redhat.com>
13886 PR optimization/5854
13887 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13889 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13890 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13891 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13892 const0 if scratch register was not allocated.
13893 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13894 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13895 with GEN_INT (...).
13896 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13897 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13898 with GEN_INT (...) everywhere. Remove constraints in define_split
13900 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13901 require scratch register for setting 0 into regs/non-pushable memory.
13903 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
13905 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13906 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13908 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
13910 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
13911 * cppinit.c (cpp_create_reader): On by default.
13912 (cpp_handle_option): Handle -W[no-]endif-labels.
13913 (cpp_post_options): Also enable if -pedantic.
13914 * cpplib.c (do_else): Use it.
13915 (do_endif): Likewise.
13916 * doc/cppopts.texi: Document new option.
13917 * doc/invoke.texi: Document new option.
13919 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
13921 * config/i386/i386.c, config/i386/i386.md: Change all occurences
13922 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13924 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
13926 * flow.c (calculate_global_regs_live): Clear aux fields of
13929 2002-03-22 Jakub Jelinek <jakub@redhat.com>
13931 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13932 REG or MEM subregs, pass rtx * instead of rtx to it.
13933 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13934 rtx * instead of rtx to alter_subreg.
13935 * config/m32r/m32r.c (gen_split_move_double): Likewise.
13936 * config/pj/pj.c (pj_output_rval): Likewise.
13938 2002-03-22 Richard Henderson <rth@redhat.com>
13941 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13942 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13943 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13944 (ia64_expand_prologue): Look at int_regs, not words, for number
13945 of incomming int regs.
13947 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
13949 * expr.c (expand_expr): A RESULT_DECL is part of a call.
13951 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
13953 * toplev.c (flag_loop_optimize, flag_crossjumping):
13954 New static variables.
13955 (rest_of_compilation): Conditionalize crossjumping and
13957 (parse_options_and_default_flags): Default loop_optimize and
13959 (lang_independent_options): Add -fcrossjumping and -floop-optimize
13960 * invoke.texi (crossjumping, loop-optimize): Document.
13962 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13964 * real.c (eiisneg): Move outside #ifdef NANS.
13966 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
13968 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13969 frequencies match; avoid match on different loop depths.
13970 (try_crossjump_to_bb): Kill tests that no longer brings time
13972 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13974 (split_edge): Likewise.
13976 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13979 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13980 * cfgrtl.c: Include insn-config.h
13981 (split_block) Dirtify block in presence of conditional execution
13983 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
13985 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13986 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13987 (function_arg): Constify CUMULATIVE_ARGS.
13988 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13989 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13990 (UNITS_PER_DOUBLE): New macro.
13991 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
13992 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
13993 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
13994 fp_regs and stack_words.
13995 (EABI_FLOAT_VARARGS_P): New macro.
13996 * config/mips/mips.c (struct mips_arg_info): New.
13997 (mips_arg_info): New function.
13998 (function_arg_advance): Use it. Add adjustment instructions here
13999 rather than in function_arg.
14000 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
14001 for VOIDmode at the beginning of the function.
14002 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
14003 (function_arg_pass_by_reference): Likewise.
14004 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
14005 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
14006 (mips_va_start): Likewise. Use the new stack_words field of
14007 CUMULATIVE_ARGS to set up overflow area. Reformat.
14008 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
14009 doubles and other types, aligning the overflow pointer for non-doubles
14010 too. Remove some code duplication. Replace hard-coded constants.
14012 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
14014 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
14015 (CLASS_UNITS): Undefine.
14016 (CLASS_MAX_NREGS): Use FP_INC.
14017 * config/mips/mips.c (compute_frame_size): Likewise.
14018 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
14020 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
14022 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
14023 prototype, and handle lexing numbers and identifiers.
14024 (parse_identifier): Update to new form of parse_slow.
14025 (parse_number): Fast path only, use parse_slow otherwise.
14026 (_cpp_lex_direct): Update calls to parse_number.
14028 2002-03-21 DJ Delorie <dj@redhat.com>
14030 * bb-reorder.c (make_reorder_chain_1): Protect against
14031 when redundant edges are omitted.
14032 * predict.c (dump_prediction): Likewise.
14034 2002-03-21 Richard Henderson <rth@redhat.com>
14037 * fixinc/inclhack.def (solaris_stdio_tag): New.
14038 * fixinc/fixincl.x: Regenerate.
14040 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
14043 * c-typeck.c (process_init_element): Flag non-static
14044 initialization of a flexible array member as illegal.
14046 2002-03-22 Alan Modra <amodra@bigpond.net.au>
14048 * config/rs6000/t-linux64: New.
14049 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
14050 t-ppccomm. Use t-rs6000 and t-linux64.
14051 (powerpc64-*-gnu* <tmake_file>): Likewise.
14052 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
14053 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
14054 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
14056 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
14058 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
14059 flag_really_no_inline instead of optimize == 0.
14061 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
14063 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
14065 * flags.h (flag_really_no_inline): New.
14067 * c-common.c (c_common_post_options): Initialize
14068 flag_really_no_inline.
14070 * toplev.c (flag_really_no_inline): New.
14072 2002-03-21 Jakub Jelinek <jakub@redhat.com>
14074 * config/avr/avr.md (length): Fix length computation for
14075 conditional branches.
14077 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
14079 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
14080 sdbout.o, profile.o): Update.
14081 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
14083 * c-common.h (gettags): Move here from tree.h.
14084 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
14085 insert_block, getdecls, kept_level_p, global_bindings_p): New.
14086 * dbxout.c (dbxout_init): Use getdecls langhook.
14087 * expr.c (expand_expr): Use insert_block langhook.
14088 * fold-const.c: Include langhooks.h.
14089 (fold_range_test, fold_binary_op_with_conditional_arg,
14090 fold): Use global_bindings_p langhook.
14091 * integrate.c (expand_inline_function): Use insert_block langhook.
14092 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
14093 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
14094 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
14095 LANG_HOOKS_GETDECLS): New.
14096 (LANG_HOOKS_INITIALIZER): Update.
14097 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
14099 * langhooks.h (struct lang_hooks_for_decls): New.
14100 (struct lang_hooks): Update.
14101 * profile.c: Include langhooks.h.
14102 (output_func_start_profiler): Use new langhooks.
14103 * sdbout.c: Include langhooks.h.
14104 (sdbout_init, sdbout_finish): Use getdecls langhook.
14105 * stmt.c: Include langhooks.h.
14106 (expand_fixup, fixup_gotos): Use new langhooks.
14107 * stor-layout.c: Include langhooks.h.
14108 (variable_size): Use global_bindings_p langhook.
14109 * toplev.c (compile_file): Use getdecls langhook.
14110 * tree-inline.c (remap_block): Use insert_block langhook.
14111 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
14112 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
14114 2002-03-21 Richard Henderson <rth@redhat.com>
14116 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
14117 constants in .data when -fpic.
14119 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14121 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
14124 2002-03-21 Tom Tromey <tromey@redhat.com>
14126 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
14128 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14130 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
14132 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
14134 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
14135 Richard Henderson <rth@redhat.com>
14138 * c-common.c (c_expand_expr): Preserve result of a statement
14139 expression if needed.
14141 2002-03-21 Jakub Jelinek <jakub@redhat.com>
14144 * genrecog.c (maybe_both_true_mode): Remove.
14145 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
14146 * machmode.def (Pmode): Likewise.
14148 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
14150 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
14151 (nonlocal_mentioned_p_1): New function.
14152 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
14153 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
14154 (mark_constant_function): Recognize pure functions.
14155 * rtl.h (global_reg_mentioned_p): New prototype.
14156 * rtlanal.c (global_reg_mentioned_p,
14157 global_reg_mentioned_p_1): New function.
14159 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14161 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
14163 * fixinc/fixincl.x: Regenerate.
14165 2002-03-20 Jason Merrill <jason@redhat.com>
14167 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
14169 2002-03-20 Michael Meissner <meissner@redhat.com>
14171 * doc/invoke.texi (Optimize Options): Document that -O2 sets
14174 2002-03-20 Bob Wilson <bob.wilson@acm.org>
14176 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
14177 ".literal_position" directive before the constant pool.
14179 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14181 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
14182 Add Craig Rodrigues.
14183 Add Brad Lucier to testers.
14185 2002-03-20 Jakub Jelinek <jakub@redhat.com>
14188 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
14190 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
14191 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
14192 instead of insn_extract.
14194 2002-03-20 Jakub Jelinek <jakub@redhat.com>
14197 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
14199 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
14200 stmt if some case has been output.
14202 2002-03-20 Jakub Jelinek <jakub@redhat.com>
14205 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
14206 movsfcc_1, movdfcc_1): Add %O2.
14207 * config/i386/i386.c (print_operand): Handle %ON.
14208 Print . before float condition codes in Sun as cmov syntax.
14209 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
14210 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
14213 2002-03-20 Philip Blundell <pb@nexus.co.uk>
14215 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
14216 return instruction if PC was popped.
14218 2002-03-20 Bob Wilson <bob.wilson@acm.org>
14220 * config/xtensa/xtensa.md: Remove unused type attributes.
14221 (adddi_carry, subddi_carry): Change type attribute to "multi".
14223 2002-03-19 Dale Johannesen <dalej@apple.com>
14225 PR optimization/5999, middle-end/5731
14226 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
14227 multiplications by reciprocals.
14229 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
14231 * Makefile.in: Update.
14232 * c-common.c: Include langhooks.h.
14233 (inline_forbidden_p): Use new hook.
14234 * diagnostic.c: Include langhooks.h.
14235 (format_with_decl, announce_function,
14236 default_print_error_function): Use new hook.
14237 * dwarf2out.c (dwarf2_name): Use new hook.
14238 * function.c: Include langhooks.h.
14239 (init_function_start): Use new hook.
14240 * langhooks-def.h (lhd_decl_printable_name): New.
14241 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
14242 (LANGHOOKS_INITIALIZER): Update.
14243 * langhooks.c (lhd_decl_printable_name): New.
14244 * langhooks.h (struct lang_hooks): New hook.
14245 * toplev.c (decl_name, decl_printable_name): Remove.
14246 (open_dump_file): Use new hook.
14247 (process_options): Remove old hook.
14248 * tree.h (decl_printable_name): Remove.
14250 * objc-act.c (objc_init): Remove old hook.
14251 (objc_printable_name): Export.
14252 * objc-act.h (objc_printable_name): New.
14253 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
14255 2002-03-19 Jim Blandy <jimb@redhat.com>
14257 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
14258 the start_source_file debug hook, not the current line number.
14260 2002-03-19 Richard Henderson <rth@redhat.com>
14262 * flow.c (EH_USES): Provide default.
14263 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
14264 * doc/tm.texi (EH_USES): New.
14266 * config/ia64/ia64.c (ia64_eh_uses): New.
14267 * config/ia64/ia64-protos.h: Update.
14268 * config/ia64/ia64.h (EH_USES): New.
14270 2002-03-19 Richard Henderson <rth@redhat.com>
14272 * varasm.c (output_constant_def): Fix stupid typo.
14274 2002-03-19 Richard Henderson <rth@redhat.com>
14277 * except.c (current_function_has_exception_handlers): New.
14278 * except.h: Declare it.
14279 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
14280 Combine tests that disable all sibcalls for the function.
14282 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
14284 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
14287 2002-03-19 Richard Henderson <rth@redhat.com>
14290 * config/ia64/ia64.c: Revert 2002-03-01 patch.
14291 * config/ia64/ia64.h (INIT_EXPANDERS): New.
14293 2002-03-19 Jim Blandy <jimb@redhat.com>
14295 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
14296 name, even if the replacement list contains no tokens, as required
14299 2002-03-19 Jason Merrill <jason@redhat.com>
14301 * varasm.c (globalize_decl): Get the name from the RTL, not
14302 DECL_ASSEMBLER_NAME.
14304 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
14306 2002-03-19 Bob Wilson <bob.wilson@acm.org>
14308 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
14309 subdi_carry): Define.
14311 2002-03-19 David Edelsohn <edelsohn@gnu.org>
14313 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
14314 about -fpic/-fPIC if extra_warnings set.
14316 2002-03-19 David Edelsohn <edelsohn@gnu.org>
14318 * expr.c (expand_expr): Sign-extend CONST_INT generated from
14319 TREE_STRING_POINTER.
14320 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
14322 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14324 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
14325 in favor of SP if FRAME_POINTER_REQUIRED is false.
14327 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
14329 * emit-rtl.c (gen_int_mode): New function.
14330 * rtl.h: Prototype for it.
14331 * combine.c (make_extraction, simplify_comparison), expmed.c
14332 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
14333 (convert_modes, store_field), optabs.c (expand_fix),
14334 simplify-rtx.c (neg_const_int, simplify_unary_real),
14336 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
14337 Use it instead of GEN_INT (trunc_int_for_mode (...)).
14339 2002-03-19 Jakub Jelinek <jakub@redhat.com>
14342 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
14343 convert_parm_for_inlining.
14344 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
14346 * langhooks-def.h: Likewise.
14347 * objc/objc-lang.c: Likewise.
14348 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
14350 * tree-inline.c (initialize_inlined_parameters):
14351 Call convert_parm_for_inlining lang hook if needed.
14352 * c-typeck.c (c_convert_parm_for_inlining): New function.
14353 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
14355 2002-03-18 Mark Mitchell <mark@codesourcery.com>
14357 * calls.c (precompute_arguments): Do not assume that temporaries
14358 can be destroyed after expanding the argument.
14359 (expand_call): Likewise.
14361 2002-03-15 Eric Christopher <echristo@redhat.com>
14363 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
14364 Fix register preference on last change.
14365 * config/mips/mips.c (mips_return_in_memory): New function.
14366 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
14367 * config/mips/mips-protos.h: Declare.
14368 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
14369 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
14371 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
14373 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
14375 (anddi3, iorsi3): Likewise.
14377 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
14378 use %gprel for symbols that are going to be placed in linkonce
14381 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
14382 RETURN_ADDRESS_POINTER_REGNUM to $ra.
14383 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
14384 not needed. Disregard leaf_function_p().
14385 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
14386 mips16 frame pointer.
14387 * config/mips/mips.md (store ra): Only to small SP offsets.
14388 2001-08-22 Graham Stott <grahams@redhat.com>
14389 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
14390 return a REG rtx for the return address register.
14392 2002-03-18 Bob Wilson <bob.wilson@acm.org>
14394 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
14395 constant-pool addresses as "mode-dependent".
14396 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
14398 2002-03-18 Jakub Jelinek <jakub@redhat.com>
14401 * expr.c (emit_group_load): Use extract_bit_field if
14402 needed for CONCAT arguments.
14404 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
14407 * arm.md (tablejump): Make this a define_expand. For PIC add the
14408 offset to the base of the table.
14409 (thumb_tablejump): Matcher for Thumb tablejump insn.
14410 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
14411 as the difference of two labels.
14412 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14413 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
14414 tables in the code.
14415 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14416 * arm.c (get_jump_table_size): If the table is not in the text
14417 section, return zero.
14419 2002-03-18 Bernd Schmidt <bernds@redhat.com>
14421 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
14423 (arm_reload_out_hi): Use gen_lowpart instead of
14424 gen_rtx_SUBREG to access QImode components.
14425 * config/arm/arm.md: Disable zero_extend split for QImode
14426 subregs in BIG_ENDIAN mode.
14427 (storehi_bigend): Match use of least significant byte.
14428 (storeinthi): Remove extraneous SUBREG.
14429 Add missing construction of operands[2].
14430 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
14431 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
14432 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
14434 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
14436 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
14439 2002-03-17 Richard Henderson <rth@redhat.com>
14441 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
14444 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
14446 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
14447 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
14449 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14451 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
14453 * predict.c (estimate_bb_frequencies): Delete unused variables.
14455 2002-03-17 Richard Henderson <rth@redhat.com>
14457 * config/ia64/ia64.c (ia64_attribute_table): Move before
14458 targetm definition. Make static.
14460 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
14462 * c-common.h (yyparse, c_common_parse_file): New.
14463 * c-lang.c: Include c-common.h.
14464 (LANG_HOOKS_PARSE_FILE): Redefine.
14465 * c-lex.c: Include c-common.h.
14466 (yyparse): Rename c_common_parse_file. Call yyparse.
14467 * c-parse.in (yyparse): Remove macro.
14468 * c-tree.h (yyparse_1): Remove.
14469 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
14470 (LANG_HOOKS_INITIALIZER): Update.
14471 * langhooks.h (struct lang_hoooks): New hook parse_file.
14472 * toplev.c (compile_file): Use parse_file hook.
14473 * tree.h (yyparse): Remove.
14474 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
14476 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
14478 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
14479 float_truncate, not fix.
14480 ("*truncdfsf2_real"): Ditto.
14481 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
14483 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
14485 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
14487 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
14488 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
14489 where appropriate. Make the second reference to
14490 leaf_function_p a function call, as intended. Reindented.
14492 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
14493 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
14495 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
14496 add register to non-constant into sp.
14498 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
14499 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
14500 (mips16_gp_pseudo_rtx): Lose.
14501 (INIT_EXPANDERS): Deleted.
14502 * config/mips/mips.c (mips_init_machine_status): New.
14503 (mips_free_machine_status): New.
14504 (mips_mark_machine_status): New.
14505 (override_options): Set them.
14506 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
14507 (struct machine_function): ... new. Replaced all references.
14508 (mips_add_gc_roots): Don't mark them.
14509 (embedded_pic_fnaddr_reg): New, extracted from...
14510 (embedded_pic_offset): ... here.
14511 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
14514 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
14516 * cppinit.c: Revert -MD removal.
14518 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14520 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
14521 soft registers by default for 68HC12.
14522 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
14523 when compiling with -fomit-frame-pointer.
14524 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
14525 (expand_epilogue): Likewise.
14526 (m68hc11_gen_rotate): Use exg when rotating by 8.
14528 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14530 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
14531 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
14532 (splits): Remove unused add splits.
14533 ("*addhi3_68hc12"): Tune constraints.
14534 ("addhi_sp"): Try to use X instead of Y in all cases and if the
14535 constant fits in 8-bits and D is dead use abx/aby instructions.
14536 ("*addhi3"): Remove extern declaration of ix_reg.
14537 ("*subsi3"): Optimize and provide new split.
14538 ("subhi3"): Cleanup.
14539 ("*subhi3_sp"): Avoid saving X if we know it is dead.
14540 (arith splits): For 68hc12 save the address register on the stack
14541 and do the arithmetic operation with a pop.
14543 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14545 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
14546 allocating QImode in address registers.
14547 ("*movqi_m68hc11"): Likewise.
14549 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
14551 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
14553 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
14555 * cppinit.c (print_help): Display -MD and -MMD.
14556 Don't display usage string. Update assertion syntax and
14558 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
14559 (cpp_handle_option): Update.
14561 2002-03-15 Chris Demetriou <cgd@broadcom.com>
14563 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
14564 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
14565 and define it so that regardless of target CPU size,
14566 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
14567 of "int" rather than "long."
14569 2002-03-15 Richard Henderson <rth@redhat.com>
14571 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
14574 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14576 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
14577 ("tstqi" split): Avoid using memory for tstqi on address register.
14578 (splits): Remove constraints.
14579 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
14580 ("cmpdf", "cmpsf"): Remove since not used.
14581 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
14582 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
14584 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14586 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
14587 ("neghi2"): Tighten constraints.
14588 ("one_cmplsi2"): Optimize and simplify split.
14589 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
14591 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14593 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
14594 and split of AND operation to clear the upper bits.
14595 ("*logicalsi3_zextqi"): Likewise.
14596 ("*logicallhi3_zexthi_ashift8"): Likewise.
14597 ("*logicalsi3_silshr16"): Likewise.
14598 ("logicalsi3_silshl16"): Likewise.
14599 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
14601 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14603 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
14604 (m68hc11_indirect_p): New function.
14605 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
14606 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
14608 (asm_print_register): Likewise.
14609 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
14610 (m68hc11_indirect_p): Declare.
14611 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
14612 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
14613 (TARGET_SWITCHES): New option -mrelax.
14614 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
14616 ("iorsi3", "xorsi3"): Likewise.
14617 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
14618 ("*andhi3_mem"): New to handle destination in memory with bclr
14619 and a scratch register.
14620 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
14621 ("*andhi3_const"): New when operand2 is constant.
14622 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
14623 ("*andhi3_gen"): Cleanup of the old "andhi3".
14624 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
14625 ("xorqi3"): Update constraints.
14627 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14629 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
14630 for reg_equiv_memory_loc when the operand is a register that does
14631 not get a hard register (stack location).
14632 (tst_operand): After reload, accept all memory operand.
14633 (symbolic_memory_operand): Fix detection of symbolic references.
14634 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
14635 accept symbols and any constant.
14637 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14639 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
14640 note on the insn that sets the soft frame register.
14641 (must_parenthesize): ix and iy are also reserved names.
14642 (print_operand_address): One more place where parenthesis are required
14643 to avoid confusion with register names.
14644 (m68hc11_gen_movhi): Allow push of stack pointer.
14645 (m68hc11_check_z_replacement): Fix handling of parallel with a
14647 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
14648 the replacement register is.
14649 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
14650 and D8_REGS classes.
14651 (MODES_TIEABLE_P): All modes are tieable except QImode.
14653 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14655 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
14656 (___subdi3): Likewise.
14657 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
14658 (__map_data_section): Optimize 68hc11 case.
14660 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14662 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
14663 than a shift to avoid adding a register with itself.
14664 (m68hc11_memory_move_cost): Take into account NO_REGS.
14665 (m68hc11_register_move_cost): Update and use memory move cost
14666 for soft registers.
14667 (m68hc11_address_cost): Make cost of valid offset not 0 so that
14668 it gives more opportunities to cse to optimize.
14669 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
14670 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
14672 2002-03-15 Mark Mitchell <mark@codesourcery.com>
14674 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
14675 * c-common.def (CLEANUP_STMT): New tree node.
14676 * c-common.h (CLEANUP_DECL): New macro.
14677 (CLEANUP_EXPR): Likewise.
14678 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
14679 * expr.c (expand_expr): Tidy.
14680 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
14681 * tree-inline.c (initialize_inlined_parameters): Clean up
14682 new local variables.
14684 2002-03-15 Jakub Jelinek <jakub@redhat.com>
14687 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
14688 before movrXX only, use reg_overlap_mentioned_p.
14689 Only special case NE if just one insn can be generated.
14691 2002-03-15 Jason Merrill <jason@redhat.com>
14693 * varasm.c (assemble_variable): Call resolve_unique_section before
14694 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
14695 of error_mark_node.
14697 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
14700 * arm.md (split pattern for thumb shiftable immediates): Add comment
14701 explaining non-obvious test.
14703 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
14706 * arm.md (movaddr, movaddr_insn): Delete.
14708 2002-03-15 Jason Merrill <jason@redhat.com>
14710 * toplev.c (wrapup_global_declarations): Clarify variable handling.
14711 -fkeep-static-consts doesn't apply to comdats.
14713 2002-03-14 Richard Henderson <rth@redhat.com>
14715 * c-decl.c: Include c-pragma.h.
14716 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
14717 (finish_function): Tidy.
14718 * c-pragma.c: Include c-common.h.
14719 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
14720 (handle_pragma_weak): Use them.
14721 (init_pragma): Register pending_weaks.
14722 * c-pragma.h (maybe_apply_pragma_weak): Declare.
14723 * print-tree.c (print_node): Print DECL_WEAK.
14724 * varasm.c (mark_weak_decls): Remove.
14725 (remove_from_pending_weak_list): Remove.
14726 (add_weak): Remove.
14727 (asm_emit_uninitialised): Call globalize_decl for weak commons.
14728 (weak_decls): Make a tree_list.
14729 (declare_weak): Cons weak_decls directly.
14730 (globalize_decl): Remove weak_decls elements directly.
14731 (weak_finish): Simplify weak_decls walk. Don't weaken unused
14732 symbols. Don't pretend to handle aliases.
14733 (init_varasm_once): Update weak_decls registry.
14734 * Makefile.in: Update dependencies.
14736 2002-03-14 Richard Henderson <rth@redhat.com>
14739 * config/ia64/ia64.c: Include tm_p.h last.
14740 (gen_nop_type): Remove duplicate definition.
14741 (cycle_end_fill_slots): Set sched_data for second L slot.
14742 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
14743 (nop_cycles_until): Fix typos.
14745 2002-03-15 Jakub Jelinek <jakub@redhat.com>
14747 PR optimization/5891
14748 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
14750 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
14752 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
14753 descriptors correctly.
14755 2002-03-14 Michael Meissner <meissner@redhat.com>
14757 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
14758 100, allowing MAX_UNROLLED_INSNS to be overridden.
14760 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
14763 * unroll.c (params.h): Include.
14764 (MAX_UNROLLED_INSNS): Delete, now in params.h.
14766 * doc/invoke.texi (--param max-unroll-insns): Document.
14768 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
14770 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
14772 * arm.md: Fix warnings about constraints in peepholes and splits.
14774 2002-03-14 Zack Weinberg <zack@codesourcery.com>
14776 * cpphash.h (struct lexer_state): Remove line_extension member.
14777 * cpplib.c (dequote_string, do_linemarker): New functions.
14778 (linemarker_dir): New data object.
14779 (DIRECTIVE_TABLE): No longer need to interpret #line in
14780 preprocessed source. Delete obsolete comment about return
14781 values of handlers.
14782 (end_directive, directive_diagnostics, _cpp_handle_directive):
14783 Don't muck with line_extension.
14784 (directive_diagnostics): No need to issue warnings for
14786 (_cpp_handle_directive): Issue warnings for linemarkers here,
14787 when appropriate. Dispatch linemarkers to do_linemarker, not
14789 (do_line): Code to handle linemarkers split out to do_linemarker.
14790 Convert escape sequences in filename argument, both places.
14792 * cppmacro.c (quote_string): Rename cpp_quote_string and
14793 export. All callers changed.
14794 * cpplib.h (cpp_quote_string): Prototype.
14795 * cppmain.c (print_line): Call cpp_quote_string on to_file
14796 before printing it.
14798 * doc/cpp.texi: Document that escapes are now interpreted in
14799 #line and in linemarkers, and that non-printing characters are
14800 converted to octal escapes when linemarkers are generated.
14802 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
14804 * emit-rtl.c (try_split): Use delete_insns.
14805 * recog.c (split_all_insns): Fix terminating condition.
14807 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
14808 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
14811 * arm.c (arm_output_epilogue): Fix floating-point register save
14812 adjustment when using a frame pointer.
14814 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
14816 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
14817 * config/mips/mips.c (compute_frame_size): Retrofit them here.
14818 (save_restore_insns, mips_expand_epilogue): And here.
14819 (build_mips16_call_stub): And here.
14820 (mips_function_value): Use the new macros to decide whether a single
14821 or complex float can be returned in floating-point registers. Return
14822 a parallel rtx in the complex case.
14824 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
14826 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
14827 call after liveness analysis.
14829 * recog.c (split_insn): Use delete_insn_and_edges.
14831 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14832 instructions to have branch prediction notes.
14833 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14835 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
14837 * configure.in: Don't pass -Wno-long-long to a ADA compiler
14838 that doesn't support it.
14839 * configure: Regenerate.
14841 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14844 * config/sparc/sparc.md (normal_branch, inverted_branch,
14845 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14846 inverted_fp_branch): Adjust calls to output_cbranch.
14847 Set length attribute.
14848 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14849 output_v9branch. Set length attribute.
14850 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14852 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14853 (output_cbranch): Likewise. Handle far branches.
14854 (output_v9branch): Handle far branches.
14855 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14857 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14858 noov_compare64_op predicates.
14860 2002-03-13 Jason Merrill <jason@redhat.com>
14862 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14863 into the function and constify it.
14864 * gthr-dce.h, gthr-solaris.h: Likewise.
14866 2002-03-13 David Edelsohn <edelsohn@gnu.org>
14868 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14869 * config/rs6000/rs6000.c (rs6000_va_arg): Use
14870 std_expand_builtin_va_arg if not ABI_V4.
14872 2002-03-13 Jason Merrill <jason@redhat.com>
14874 * varasm.c (globalize_decl): New fn.
14875 (assemble_start_function): Use it.
14876 (asm_emit_uninitialized): Use it.
14877 (assemble_alias): Use it.
14878 (assemble_variable): Use it.
14880 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
14882 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14883 2002-03-12 internal visibility change.
14884 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14885 visibility into SYMBOL_REF_FLAG.
14887 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
14889 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14890 VOIDmode operand. Add compile-time optimization for constant results.
14892 2002-03-12 Jason Merrill <jason@redhat.com>
14894 * c-typeck.c (convert_for_assignment): Don't allow conversions
14895 between pointers and references. Only allow lvalues to convert to
14898 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
14900 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14901 before prologue, to avoid scheduling problems.
14903 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14905 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14906 (ELIMINABLE_REGS): Add sfp->sp.
14907 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14909 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14911 PR optimization/5892
14912 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14914 2002-03-13 Jakub Jelinek <jakub@redhat.com>
14916 * loop.c (basic_induction_var): Don't call convert_modes if mode
14917 classes are different.
14919 2002-03-12 Richard Henderson <rth@redhat.com>
14921 PR optimization/5901
14922 * function.c (reposition_prologue_and_epilogue_notes): Position
14923 the markers after/before the last/first insn not deleted.
14925 2002-03-12 Richard Henderson <rth@redhat.com>
14927 PR optimization/5878
14928 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14929 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14930 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14932 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14933 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14934 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14936 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14937 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14938 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14939 also. Don't set it if not flag_pic.
14940 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14941 to be INVALID_REGNUM when not used.
14943 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
14945 * expmed.c (store_bit_field): Reset alias set for memory.
14946 (extract_bit_field): Same.
14948 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14950 * c-common.c (c_tree_code_type, c_tree_code_length,
14951 c_tree_code_name, add_c_tree_codes): Delete.
14952 * c-common.h (add_c_tree_codes): Delete.
14953 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14955 * c-objc-common.c (c_objc_common_init): Don't call
14956 add_c_tree_codes, instead set lang_unsafe_for_reeval.
14957 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14958 objc_tree_code_name, add_objc_tree_codes): Delete.
14959 (objc_init): Don't call add_objc_tree_codes.
14960 * objc/objc-lang.c (tree_code_type, tree_code_length,
14961 tree_code_name): Define.
14962 * toplev.c (lang_independent_init): Don't set
14963 tree_code_length[IDENTIFIER_NODE].
14964 * tree.c (tree_code_type, tree_code_length, tree_code_name):
14965 Delete definitions, moved to language front-ends.
14966 * tree.def (IDENTIFIER_NODE): Hardwire the length.
14967 * tree.h (tree_code_type, tree_code_length, tree_code_name):
14969 (tree_code_length): Change type to unsigned char.
14971 2002-03-12 Richard Henderson <rth@redhat.com>
14973 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14974 internal visibility change.
14976 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14978 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14979 validize_mem() instead of change_address to avoid clobbering
14982 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
14984 * c-lex.h (position_after_whitespace): Remove.
14986 2002-03-12 Jakub Jelinek <jakub@redhat.com>
14988 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14989 (lex_string): Use unsigned char pointers.
14991 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
14993 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14994 is not a valid memory_operand.
14996 2002-03-12 Bob Wilson <bob.wilson@acm.org>
14998 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14999 * config/xtensa/lib1funcs.asm: Fix copyright to include
15000 special case for libgcc files.
15001 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
15002 (__divsi3): Likewise.
15003 (__umodsi3): Likewise.
15004 (__modsi3): Likewise.
15005 * config/xtensa/lib2funcs.S: Fix copyright to include
15006 special case for libgcc files.
15008 2002-03-12 Tom Rix <trix@redhat.com>
15010 * collect2.c (resolve_lib_name): Move outside of
15011 OBJECT_FORMAT_COFF ifdef.
15012 (ignore_library): Same.
15014 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15016 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
15018 2002-03-12 Bob Wilson <bob.wilson@acm.org>
15020 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
15021 to function_section before writing out the constant pool.
15023 2002-03-12 David Edelsohn <edelsohn@gnu.org>
15025 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
15027 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
15029 2002-03-12 Alan Modra <amodra@bigpond.net.au>
15031 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
15032 (adddi3): Likewise.
15035 (cmpsi splitter): Likewise.
15036 (modsi3): Fail if <= 0.
15037 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
15038 redundant test when HOST_BITS_PER_WIDE_INT != 32.
15039 (reg_or_sub_cint64_operand): Likewise.
15040 (num_insns_constant_wide): Optimize sign extension.
15041 (rs6000_legitimize_address): Likewise.
15043 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
15045 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15046 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
15048 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
15050 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
15051 address calculation.
15053 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
15055 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
15056 scratch register to DImode / TImode.
15057 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
15058 register used does not overlap the target.
15060 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15062 * Makefile.in (debug.o): Depend on debug.h.
15063 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
15064 * debug.c (do_nothing_debug_hooks): Likewise.
15065 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
15066 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
15067 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
15068 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
15069 * dwarfout.c (dwarf_debug_hooks): Likewise.
15070 * integrate.c (output_inline_function): Likewise.
15071 * objc/objc-act.c (synth_module_prologue): Likewise.
15072 * sdbout.c (sdb_debug_hooks): Likewise.
15073 * toplev.c (debug_hooks): Likewise.
15074 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15076 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15078 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
15079 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
15080 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
15081 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
15082 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
15083 * defaults.h (POINTER_SIZE): Define.
15084 * doc/tm.texi (POINTER_SIZE): Document default.
15086 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15088 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
15090 2002-03-11 Richard Henderson <rth@redhat.com>
15092 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
15093 if rebuild_label_notes_after_reload.
15095 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
15097 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
15098 emit pic register load if "internal" visibility.
15099 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
15100 (cris_expand_builtin_va_arg): Do all computations on trees.
15102 2002-03-11 Richard Henderson <rth@redhat.com>
15104 * rtlanal.c: Include recog.h.
15105 (keep_with_call_p): Fix thinko.
15106 * Makefile.in (rtlanal.o): Update dependencies.
15108 2002-03-11 Chris Meyer <cmeyer@gatan.com>
15110 * genflags.c (gen_insn): Use IS_VSPACE.
15111 * genoutput.c (output_insn_data): Likewise.
15112 (process_template): Likewise.
15114 2002-03-11 Richard Henderson <rth@redhat.com>
15116 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
15118 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
15120 * Makefile.in: Update.
15121 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
15122 Update documentation.
15123 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
15124 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
15126 2002-03-11 Zack Weinberg <zack@codesourcery.com>
15128 * Makefile.in: Give texi2pod its input file as a command line
15129 argument, not on stdin.
15131 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
15132 Daniel Berlin <dan@dberlin.org>
15134 C++ alias analysis improvement.
15135 * alias.c (record_component_aliases): Record aliases for base
15138 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
15140 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
15142 2002-03-11 Douglas B Rupp <rupp@gnat.com>
15144 * toplev.c (vms_fopen): Remove, not needed.
15146 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
15148 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
15150 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
15151 for FP, already done later.
15153 * toplev.c (debug_args): Add entry for VMS_DEBUG.
15154 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
15156 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
15158 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
15159 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
15160 LARGEST_EXPONENT_IS_NORMAL for the given mode.
15161 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
15162 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
15163 (ediv, emul, eldexp, esqrt): Likewise.
15164 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
15165 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
15166 (saturate): New function.
15167 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
15168 (make_nan): Use a saturation value instead of a NaN if
15169 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
15170 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
15171 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
15172 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
15173 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
15174 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
15175 !ROUND_TOWARDS_ZERO.
15176 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
15177 (ROUND_TOWARDS_ZERO): Document.
15179 2002-03-11 Andreas Jaeger <aj@suse.de>
15181 * cfg.c (dump_flow_info): Remove unused variable.
15183 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
15185 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
15186 computations on trees.
15188 2002-03-10 Richard Henderson <rth@redhat.com>
15191 * reload.c (copy_replacements_1): New.
15192 (copy_replacements): Use it to recurse through the rtx.
15194 2002-03-10 Richard Henderson <rth@redhat.com>
15196 * loop.c (strength_reduce): Compute number of iterations as
15197 unsigned HOST_WIDE_INT.
15199 2002-03-10 Richard Henderson <rth@redhat.com>
15201 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
15202 to move away from the end of the block.
15204 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
15206 PR preprocessor/5899
15207 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
15209 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15211 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
15213 * attribs.c (decl_attributes): Fix signed/unsigned warning.
15215 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
15217 * config/mmix/mmix.c: Improve comments.
15218 (mmix_target_asm_function_prologue): Drop variable
15219 empty_stack_frame. Don't allocate unused slot above fp.
15220 (mmix_target_asm_function_epilogue): Mirror prologue changes.
15221 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
15222 brace in first column.
15223 (enum reg_class): Ditto.
15224 (FIRST_PARM_OFFSET): Now 0.
15225 (USER_LABEL_PREFIX): Remove #if 0:d definition.
15227 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15229 * combine.c (make_extraction): Fix error in last change.
15231 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15233 * c4x.c (c4x_fp_reglist): Const-ify.
15234 * cris.c (cris_print_operand): Likewise.
15235 * i386.c (ix86_va_arg): Likewise.
15236 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
15237 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
15238 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
15239 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
15240 * mcore.h (regno_reg_class): Likewise.
15241 * mips.c (gen_int_relational): Likewise.
15242 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
15243 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
15244 * pdp11.c (move_costs): Likewise.
15245 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
15246 * s390.c (s390_branch_condition_mnemonic, regclass_map):
15248 * s390.h (regclass_map): Likewise.
15249 * sh.c (shift_amounts): Likewise.
15250 * sh.md (rotlsi3): Likewise.
15252 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
15254 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
15255 (ne0+5): Use new clobber to generate proper shift pattern.
15256 Patch by Michael Matz <matz@kde.org>.
15258 2002-03-09 Andreas Schwab <schwab@suse.de>
15260 * gcc.c (validate_all_switches): Also handle `%W{...}'.
15262 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
15264 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
15266 2002-03-09 Jakub Jelinek <jakub@redhat.com>
15269 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
15270 even for non-representable constants.
15272 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15274 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
15275 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
15276 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
15277 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
15278 (pop_function_context): Compute MAY_SHARE parameter for
15280 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
15281 (gen_mem_addressof): Call fixup_var_refs with new parm.
15283 * combine.c (make_extraction): Don't make extension of CONST_INT.
15285 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
15287 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
15288 in o32 and o64 ABIs.
15289 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
15290 but getting fixed-size structs passed in registers regardless of
15291 padding in o32 and o64 ABIs.
15293 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
15294 offset before loading address of argument passed by transparent
15297 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
15299 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
15301 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
15303 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
15304 marker such that registers after it are saved.
15306 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15308 * sparc.c (arith_4096_operand): Fix error in last change.
15310 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
15312 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
15313 defaults for MEABI.
15315 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
15317 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
15320 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
15322 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
15324 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
15326 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
15327 removed; fix return value.
15328 * combine.c (combine_instructions): Dirtify blocks where we failed to
15329 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
15330 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
15332 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15334 * gcse.c (insert_insn_end_bb): Fix typo in last change.
15336 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
15338 * recog.c (peephole2_optimize): Re-distribute EH edges.
15340 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
15342 * expr.c (expand_expr): Use unsave lang hook.
15343 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
15344 (LANG_HOOKS_INITIALIZER): Update.
15345 * langhooks.h (struct lang_hooks): New hook unsave.
15346 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
15347 (unsave_expr_1): Remove unused lang_unsave_expr_now.
15348 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
15349 (unsave_expr_now): Remove.
15350 * tree.h (unsave_expr_now, lang_unsave,
15351 lang_unsave_expr_now): Remove.
15354 2002-03-08 Andreas Jaeger <aj@suse.de>
15356 * flow.c (propagate_block_delete_insn): Remove unused variable.
15358 2002-03-08 Kazu Hirata <kazu@hxi.com>
15360 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
15361 insn length for memory load/store.
15363 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
15365 * doc/install.texi (--with-libiconv-prefix): Document.
15367 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
15369 * doc/sourcebuild.texi: Fix typo.
15371 2002-03-08 Jakub Jelinek <jakub@redhat.com>
15374 * builtins.c (std_expand_builtin_va_arg): Do all computations on
15377 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15379 * rtl.c (copy_most_rtx): Move from here ...
15380 * emit-rtl.c (copy_most_rtx): ... to here.
15382 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
15384 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
15385 SUBTARGET_CPP_SIZE_SPEC.
15386 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
15388 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
15390 2002-03-07 Matt Hiller <hiller@redhat.com>
15392 * gensupport.c (first_dir_md_include): Renamed from include;
15393 change all references.
15394 (last_dir_md_include): Renamed from last_include; change all
15396 (init_md_reader): Unconditionally initialize base_dir whether or
15397 not filename is a relative path.
15399 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
15401 * config/fp-bit.c (_unord_f2): Compile it in even if
15402 US_SOFTWARE_GOFAST is enabled.
15404 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
15405 NULL_RTX. Set all HFmode operations as NULL_RTX.
15406 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
15407 NULL_RTX, try reversing the comparison and the operands.
15409 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
15411 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
15412 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
15415 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
15417 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
15419 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
15421 * basic-block.h (fixup_abnormal_edges): Declare.
15422 * reload1.c (fixup_abnormal_edges): New function.
15423 * reg-stack.c (convert_regs): Use it.
15425 * gcse.c (insert_insn_end_bb): Handle trapping insns.
15427 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
15429 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
15431 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
15432 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
15433 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
15434 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
15435 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
15436 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
15437 unless x and y could be infinite.
15438 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
15439 Check that the common type of both arguments is a real, even for
15440 targets without unordered comparisons. Allow an integer argument
15441 to be compared against a real.
15442 (expand_tree_builtin): Use expand_unordered_cmp.
15443 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
15444 * cse.c (fold_rtx): Likewise. Fix indentation.
15445 * fold-const.c (fold_real_zero_addition_p): New.
15446 (fold): Use it, and the new HONOR_... macros.
15447 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
15448 * jump.c (reversed_comparison_code_parts): After searching for
15449 the true comparison mode, use HONOR_NANS to decide whether it
15450 can be safely reversed.
15451 (reverse_condition_maybe_unordered): Remove IEEE check.
15452 * simplify-rtx.c (simplify_binary_operation): Use the new macros
15453 to decide which simplifications are valid. Allow the following
15454 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
15455 and (a - -b) to (a + b).
15456 (simplify_relational_operation): Use HONOR_NANS.
15457 * doc/tm.texi: Document the MODE_HAS_... macros.
15459 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
15461 * combine.c (simplify_comparison): If simplifying a logical shift
15462 right and compare with constant, force the comparison to unsigned.
15464 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
15466 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
15468 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
15470 (alt_reg_names): Remove % for vrsave.
15472 2002-03-06 Richard Henderson <rth@redhat.com>
15474 PR optimization/5844
15475 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
15476 if used indicates we've already emitted one copy of an operand.
15477 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
15478 (gen_split): Supply a non-null used.
15480 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
15482 * reload1.c (reload): Unshare all rtl after reload is done.
15484 * simplify-rtx.c (simplify_plus_minus): Do not abort,
15485 but simply fail if the expression is too complex to simplify.
15486 (simplify_gen_binary): Handle simplify_plus_minus failures.
15488 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
15490 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
15491 consistently call delete_trivially_dead_insns after CSE and GCSE;
15492 fix DFI_life dumping; do jump threading after liveness; do crossjumping
15493 after liveness2; update comment in last crossjumping.
15494 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
15496 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
15498 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
15499 after completing fast dead code elimination.
15501 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
15504 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
15506 * version.c: Fix misplaced leading blanks on first line.
15508 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
15510 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
15512 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
15514 * cfgcleanup.c (mentions_nonequal_regs): New function.
15515 (thread_jump): Use it.
15516 * toplev.c (rest_of_compilation): Run jump threading after
15519 2002-03-06 Jakub Jelinek <jakub@redhat.com>
15521 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
15524 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
15526 * predict.c (estimate_bb_frequencies): Do not reload the
15527 frequencies from notes.
15529 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
15531 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
15532 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
15534 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
15535 delete_noop_moves): Return indeger.
15536 * flow.c (ndead): New variable.
15537 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
15538 BB argument; update callers.
15539 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
15540 (life_analysis): Do not call purge_all_dead_edges.
15541 (update_life_info): Return number of deleted insns; print statistics.
15542 (update_life_info_in_dirty_blocks): likewise.
15543 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
15544 return number of insns deleted.
15546 * cse.c: Include timevar.h
15547 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
15548 iterate until stabilizes; print statistics; return number of killed
15550 * Makefile.in: (cse.o): Add timevar.h dependency
15551 * rtl.h (delete_trivially_dead_insns): New.
15552 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
15553 * toplev.c (rest_of_compilation): Update callers.
15555 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
15556 (try_optimize_cfg): Do not update liveness.
15557 (cleanup-cfg): Loop until try_optimize_cfg and dead code
15558 removal stabilizes; use delete_trivially_dead_insns.
15560 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
15562 2002-03-05 Zack Weinberg <zack@codesourcery.com>
15564 * cppmain.c (setup_callbacks): Disable #pragma and #ident
15565 callbacks when processing assembly language.
15567 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
15569 * pa.h (ASM_FILE_END): Define.
15570 * som.h (ASM_FILE_END): Delete.
15572 * pa.c (function_arg): Don't pass floats in general registers in
15573 indirect calls if TARGET_ELF32.
15575 2002-03-05 Richard Henderson <rth@redhat.com>
15577 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
15579 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
15581 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
15583 2002-03-05 Jakub Jelinek <jakub@redhat.com>
15585 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
15586 -r command line. Don't hide any symbols if not building
15589 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
15591 * cfg.c (dump_flow_info): Warn about profile mismatches.
15592 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
15593 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
15595 2002-03-05 Jakub Jelinek <jakub@redhat.com>
15597 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
15598 wide volatile memory by parts.
15600 2002-03-05 Jakub Jelinek <jakub@redhat.com>
15602 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
15605 2002-03-05 Richard Henderson <rth@redhat.com>
15607 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
15609 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
15611 * toplev.c (documented_lang_options): Document more
15612 language-specific options.
15613 * doc/invoke.texi (Warning Options): Correct documentation for
15614 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
15615 * c-decl.c (c_decode_option): Use a table to handle warning options.
15617 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
15619 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
15620 parameter to mmix_encode_section_info.
15621 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
15622 relocatably. Always produce ELF, not mmo if linking relocatably.
15623 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
15624 first is non-zero, don't add symbol prefix.
15625 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
15626 prototype accordingly.
15628 2002-03-04 Krister Walfridsson <cato@df.lth.se>
15630 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
15632 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
15634 * configure.in: Increase required makeinfo version to 4.1.
15635 * configure: Regenerate.
15637 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
15639 * .cvsignore: Remove *.info* and genrtl*; these files are generated
15642 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
15644 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
15645 * doc/invoke.texi: Fix @math uses.
15647 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
15649 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
15652 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
15654 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
15655 (powerpc-*-eabisimaltivec*): Same.
15657 * config/rs6000/t-ppcendian: New.
15659 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15661 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
15662 nonimmediate_src_operand and nonimmediate_lsrc_operand to
15663 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
15665 2002-03-03 Richard Henderson <rth@redhat.com>
15667 * toplev.c (rest_of_decl_compilation): Revert last two changes.
15669 2002-03-03 Zack Weinberg <zack@codesourcery.com>
15671 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
15672 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
15673 tree.c, config/m68k/m68k.c:
15674 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
15675 REAL_ARITHMETIC blocks unconditional. Delete some further
15676 #ifdef blocks predicated on REAL_ARITHMETIC.
15677 * flags.h, toplev.c: Delete remaining references to
15678 flag_pretend_float.
15680 * doc/invoke.texi: Remove documentation of -fpretend-float.
15681 * doc/tm.texi: Describe the various REAL_* macros as provided by
15682 real.h, not by the target configuration files.
15684 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
15685 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
15686 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15687 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
15688 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
15689 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
15690 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
15691 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
15692 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15693 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
15694 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15695 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15696 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
15697 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
15698 config/xtensa/xtensa.h:
15699 Do not define, undefine, or mention in comments any of
15700 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
15701 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
15702 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
15703 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
15704 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
15705 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
15706 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
15707 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
15708 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
15710 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15712 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
15713 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
15714 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
15715 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15716 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
15717 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
15719 * defaults.h (BITS_PER_WORD): Define.
15720 * doc/tm.texi (BITS_PER_WORD): Document default value.
15722 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
15723 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
15724 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
15726 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15728 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
15729 lieu of explicit sizeof/sizeof.
15730 * i386.c (override_options, ix86_init_mmx_sse_builtins,
15731 ix86_expand_builtin): Likewise.
15732 * mips.c (mips_add_gc_roots): Likewise.
15733 * mmix.c (mmix_output_condition): Likewise.
15734 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
15735 altivec_init_builtins): Likewise.
15736 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
15737 * cppexp.c (Nsuff, parse_number): Likewise.
15738 * cppinit.c (builtin_array_end): Likewise.
15739 * gcc.c (n_default_compilers, process_command): Likewise.
15740 * genpreds.c (output_predicate_decls): Likewise.
15741 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
15742 * lcm.c (N_ENTITIES): Likewise.
15743 * stor-layout.c (set_sizetype): Likewise.
15745 2002-03-03 Richard Henderson <rth@redhat.com>
15747 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
15748 for types or labels.
15750 2002-03-03 Richard Henderson <rth@redhat.com>
15752 * c-decl.c (start_decl): Initialized variables are not common.
15754 2002-03-02 Per Bothner <per@bothner.com>
15756 * gcc.c (option_map): Suport new --bootclasspath option.
15757 --CLASSPATH is now just an alias for --classpath.
15759 2002-03-02 Richard Henderson <rth@redhat.com>
15761 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
15762 load if "internal" visibility.
15763 * doc/extend.texi: Document visibility meanings.
15765 2002-03-02 Richard Henderson <rth@redhat.com>
15767 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
15768 to functions as well.
15770 2002-03-02 Richard Henderson <rth@redhat.com>
15772 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
15773 (handle_visibility_attribute): Don't call assemble_visibility.
15774 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
15775 without asmspec. Invoke assemble_alias when needed.
15776 * varasm.c (maybe_assemble_visibility): New.
15777 (assemble_start_function, assemble_variable, assemble_alias): Use it.
15779 2002-03-02 Richard Henderson <rth@redhat.com>
15781 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
15782 invoke ENCODE_SECTION_INFO with first call flag.
15784 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
15785 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
15786 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
15787 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
15788 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15789 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15790 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
15791 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
15792 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
15793 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
15794 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
15795 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
15796 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15797 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
15798 config/mcore/mcore-protos.h, config/mcore/mcore.c,
15799 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
15800 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
15801 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
15802 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
15803 config/sh/sh.h, config/sparc/sparc.h,
15804 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
15805 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
15806 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
15807 FIRST argument. As needed, examine it and do nothing.
15809 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
15810 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15811 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
15813 * config/arm/t-pe (pe.o): Add dependencies.
15815 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15817 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
15818 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
15819 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
15820 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
15821 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
15822 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
15823 * defaults.h (BITS_PER_UNIT): Define.
15824 * doc/tm.texi (BITS_PER_UNIT): Document default value.
15826 2002-03-02 Kazu Hirata <kazu@hxi.com>
15828 * config/h8300/h8300-protos.h: Add a prototype for
15829 compute_a_shift_length.
15830 * config/h8300/h8300.c (h8300_asm_insn_count): New.
15831 (compute_a_shift_length): Likewise.
15832 (h8300_adjust_insn_length): Do not adjust insn length of shift
15834 * config/h8300/h8300.md (anonymous shift patterns): Use
15835 compute_a_shift_length.
15837 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15839 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15840 trunc_int_for_mode.
15842 * emit-rtl.c (offset_address): Call update_temp_slot_address.
15844 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15846 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15847 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15848 * flags.h (flag_zero_initialized_in_bss): Declare.
15849 * toplev.c (flag_zero_initialized_in_bss): New flag.
15850 (lang_independent_options): Add flag_zero_initialized_in_bss.
15851 * tree.c (initializer_zerop): New function.
15852 * tree.h (initializer_zerop): Declare.
15853 * varasm.c (assemble_variable): If we can emit bss, put zero
15854 initializers in the bss section.
15856 2002-03-02 Alan Modra <amodra@bigpond.net.au>
15858 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15859 like more than one symbol per .weak directive.
15861 2002-03-01 Richard Henderson <rth@redhat.com>
15863 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15864 adjust argument_pointer by pretend_args_size.
15865 (ia64_va_start): Adjust va_start address by -pretend_args_size.
15867 2002-03-01 Kazu Hirata <kazu@hxi.com>
15869 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15871 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
15873 * toplev.c (rest_of_compilation): Delete dead jumptables before
15875 * flow.c (delete_dead_jumptables): Make global.
15876 * rtl.h (delete_dead_jumptables): Declare.
15878 2002-03-01 David Edelsohn <edelsohn@gnu.org>
15880 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15881 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15882 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15884 2002-03-01 Kazu Hirata <kazu@hxi.com>
15886 * config/h8300/h8300-protos.h: Fix formatting.
15887 * config/h8300/h8300.c: Likewise.
15888 * config/h8300/h8300.h: Likewise.
15890 2002-03-01 Kazu Hirata <kazu@hxi.com>
15892 * config/h8300/h8300.c (print_operand): Support 16-bit
15893 constant addresses.
15894 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15896 2002-02-28 Richard Henderson <rth@redhat.com>
15898 * expmed.c (store_bit_field): Prevent generation of CONCATs;
15899 pun complex values as integers; use gen_lowpart instead of
15901 (extract_bit_field): Likewise.
15903 2002-03-01 Alan Modra <amodra@bigpond.net.au>
15904 David Edelsohn <edelsohn@gnu.org>
15906 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15907 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15908 (SUPPORTS_WEAK): Likewise.
15909 * output.h (add_weak): Add tree param.
15910 * varasm.c (add_weak): Likewise. Save decl.
15911 (struct weak_syms): Add decl field.
15912 (mark_weak_decls): New function.
15913 (init_varasm_once): ggc_add_root mark_weak_decls.
15914 (assemble_start_function): Use ASM_WEAKEN_DECL.
15915 (assemble_variable): Likewise.
15916 (assemble_alias): Likewise.
15917 (declare_weak): Pass decl to add_weak.
15918 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15919 (remove_from_pending_weak_list): Declare and define for
15921 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15922 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15923 * defaults.h (SUPPORTS_WEAK): Likewise.
15924 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15925 .weak for code sym. Do emit .size for descriptor sym.
15926 (ASM_DECLARE_FUNCTION_SIZE): Define.
15927 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15928 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
15929 .lglobl unless TARGET_XCOFF. Formatting fixes.
15930 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15931 .weak for code sym.
15932 (HANDLE_PRAGMA_WEAK): Remove.
15933 (ASM_WEAKEN_LABEL): Remove.
15934 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15936 2002-03-01 Jason Merrill <jason@redhat.com>
15938 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15939 (TARGET_EXPR_CLEANUP): New macro.
15941 2002-02-28 Steve Ellcey <sje@cup.hp.com>
15943 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15944 to take ptr_extend into account as third type of extension.
15945 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15946 fields used by SUBREG_PROMOTED_UNSIGNED_P.
15947 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15948 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15949 * calls.c (precompute_arguments): Use new macro.
15950 (expand_call): Ditto.
15951 * combine.c (nonzero_bits): Ditto.
15952 (record_promoted_value): Ditto.
15953 * expr.c (store_expr): Ditto.
15954 (expand_expr): Ditto.
15955 * function.c (assign_parms): Ditto.
15957 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
15959 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15960 override -shared and -shared-libgcc.
15962 2002-02-28 David O'Brien <obrien@FreeBSD.org>
15964 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15966 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
15969 2002-02-28 Richard Henderson <rth@redhat.com>
15971 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15972 4 cycle latency from MM producers.
15973 (ia64_internal_sched_reorder): Likewise with pipeline flush.
15975 2002-02-28 Jakub Jelinek <jakub@redhat.com>
15977 * mklibgcc.in: Don't use GNU make extension.
15979 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
15981 * c-parse.in (STATIC): New terminal.
15982 (scspec): New non-terminal. Update productions accordingly.
15983 (program): Remove bogus ifc / end ifc.
15984 (array_declarator): Simplify production using STATIC.
15986 2002-02-28 Jim Meyering <meyering@lucent.com>
15988 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15989 \a still means TARGET_BELL.
15991 2002-02-28 Richard Henderson <rth@redhat.com>
15993 * haifa-sched.c (sched_emit_insn): New.
15994 (schedule_block): Use last_scheduled_insn to track last insn.
15995 * sched-int.h (sched_emit_insn): Prototype.
15996 * config/ia64/ia64.c (last_issued): Remove.
15997 (ia64_variable_issue): Don't set it.
15998 (nop_cycles_until): Use sched_emit_insn.
16000 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
16002 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
16003 extended constants.
16005 2002-02-28 Kazu Hirata <kazu@hxi.com>
16007 * config/h8300/h8300.c: Fix formatting.
16008 * config/h8300/h8300.h: Likewise.
16010 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
16012 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
16013 which may overwrite the high byte of the frame pointer.
16015 2002-02-28 Bo Thorsen <bo@suse.de>
16017 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
16018 (STARTFILE_SPEC): Add 64 bit files.
16019 (ENDFILE_SPEC): Likewise.
16021 2002-02-28 Jason Merrill <jason@redhat.com>
16023 * c-decl.c (finish_function): Only warn about missing return
16024 statement with -Wreturn-type.
16026 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
16028 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
16030 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
16031 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
16033 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
16035 * basic-block.h (BB_REACHABLE): Renumber.
16036 (BB_DIRTY, BB_NEW): New flags.
16037 (clear_bb_flags): Declare.
16038 (update_life_info_in_dirty_blocks): Declare.
16039 * cfg.c (clear_bb_flags): New function.
16040 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
16041 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
16042 reorder_insns, emit_insn_after): Mark block as dirty.
16043 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
16044 (update_life_info_in_dirty_blocks): New function.
16045 * recog.c (apply_change_group): Dirtify block.
16047 * cse.c (cse_insn): Reorder emitting of jump insn to keep
16049 * gcse.c (delete_null_pointer_checks): Likewise.
16051 * toplev.c (dump_file_index): Move cse2 after bp,
16053 (dump_file_info): Similary.
16054 (rest_of_compilation): Avoid most of CFG rebuilds;
16055 do first if converision after null pointer checks, do cse2
16056 after branch prediction; avoid full liveness rebuild after
16057 initializing subregs.
16058 * invoke.texi (-d options): Document -du, renumber.
16060 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
16061 (notice_new_block): Do not set BB_UPDATE_LIFE.
16062 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
16063 merge_blocks_move_successor_nojumps, merge_blocks,
16064 try_crossjump_to_edge): Likewise.
16065 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
16066 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
16067 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
16068 (merge_of_block): Do not use life_data_ok.
16069 (find_if_case_1): Do not use SET_UPDATE_LIFE.
16070 (if_convert): Use BB_DIRTY mechanizm to update life.
16071 * lcm.c (optimize_mode_switching): Update
16072 update_life_info_in_dirty_blocks
16074 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
16076 * Makefile.in (integrate.o): Update.
16077 * c-decl.c (copy_lang_decl): Rename.
16078 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16079 * integrate.c: Include langhooks.h.
16080 (copy_decl_for_inlining): Update to use langhook.
16081 * langhooks-def.h (lhd_do_nothing_t,
16082 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
16083 (LANG_HOOKS_INITIALIZER): Update.
16084 * langhooks.c (lhd_do_nothing_t): New.
16085 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
16086 * tree.h (copy_lang_decl): Remove.
16088 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
16090 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
16092 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
16093 POST_DEC, and POST_MODIFY.
16095 2002-02-27 Zack Weinberg <zack@codesourcery.com>
16097 * c-typeck.c (digest_init): Remove unused parameter; all
16100 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
16102 * expmed.c (expand_shift): Correctly test for low part of a
16105 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16107 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
16108 insn UIDs with insn addresses.
16110 2002-02-27 Zack Weinberg <zack@codesourcery.com>
16112 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
16113 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
16114 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
16115 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
16116 gcc.c, toplev.c: Delete code implementing -traditional mode.
16118 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
16119 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
16120 Document removal of -traditional mode for compilation, and
16121 remove documentation only relevant to that mode.
16123 * config/nextstep.h, config/ptx4.h, config/svr4.h,
16124 config/convex/convex.h, config/d30v/d30v.h,
16125 config/i386/dgux.h, config/i386/osf1elf.h,
16126 config/i386/osfelf.h, config/i386/osfrose.h,
16127 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
16128 config/m68k/hp310.h, config/m88k/dgux.h,
16129 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
16130 config/m88k/m88k.h, config/m88k/openbsd.h,
16131 config/mips/abi64.h, config/mips/osfrose.h,
16132 config/mips/svr4-5.h, config/mips/svr4-t.h,
16133 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
16134 config/stormy16/stormy16.h: Remove all references to
16135 -traditional from target specs. Delete all mention of the
16136 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
16137 delete a couple of commented-out definitions of
16138 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
16141 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
16142 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
16144 2002-02-27 Zack Weinberg <zack@codesourcery.com>
16146 * mklibgcc.in: Don't use \n in a line subject to
16147 interpretation by echo.
16149 2002-02-27 Graham Stott <grahams@redhat.com>
16151 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
16154 * loop.c (prescan_loop): Handle PARALLEL.
16156 * unroll.c (loop_iterations): Return 0 if the add_val for
16159 * final.c (output_operand_lossage): Constify PFX_STR.
16161 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
16163 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
16165 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
16166 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
16168 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
16170 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16172 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
16174 * cpplex.c (_cpp_lex_token): Handle directives in macro
16176 * cpplib.c (_cpp_handle_directive): Save and restore state
16177 if parsing macro args when entering a directive.
16178 * cppmacro.c (collect_args): No need to handle directives
16179 in macro arguments.
16180 (enter_macro_context, replace_args): Use the original macro
16181 definition in case it was redefined whilst collecting arguments.
16183 * cpp.texi: Update.
16185 2002-02-26 David Edelsohn <edelsohn@gnu.org>
16187 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
16188 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
16189 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
16191 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
16192 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
16193 (load_toc_v4_PIC_2): Same.
16195 2002-02-26 Alan Modra <amodra@bigpond.net.au>
16197 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
16199 2002-02-26 Richard Henderson <rth@redhat.com>
16201 * config/alpha/alpha.md (ashldi_se): Re-enable.
16203 2002-02-26 Richard Henderson <rth@redhat.com>
16205 * config/alpha/alpha.c (alpha_encode_section_info): Examine
16206 MODULE_LOCAL_P; improve commentary.
16208 2002-02-26 Zack Weinberg <zack@codesourcery.com>
16210 * doc/cpp.texi: Clarify documentation of relationship between
16211 #line and #include.
16213 2002-02-26 Kazu Hirata <kazu@hxi.com>
16215 * config/h8300/h8300-protos.h: Update the prototype for
16216 compute_logical_op_length. Add the prototype for
16217 compute_logical_op_cc.
16218 * config/h8300/h8300.c (compute_logical_op_length): Figure out
16219 code from operands.
16220 (compute_logical_op_cc): New.
16221 * config/h8300/h8300.md: Combine all the logical op patterns
16222 in HImode and SImode. Use compute_logical_op_cc.
16224 2002-02-26 Kelley Cook <kelleycook@comcast.net>
16226 * config/i386/i386.c (print_operand): Don't append ATT-style
16227 length suffixs to x87 opcodes when in Intel mode.
16229 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
16231 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
16232 (init_emit_once): Update calls.
16233 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
16234 (init_syntax_once): Prototype.
16236 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
16238 * pa-linux.h (LIB_SPEC): Update definition.
16239 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16241 2002-02-26 Richard Henderson <rth@redhat.com>
16243 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
16244 if we emitted a stop bit.
16246 2002-02-26 Jakub Jelinek <jakub@redhat.com>
16248 * configure.in (libgcc_visibility): Substitute.
16249 * configure: Rebuilt.
16250 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
16251 defined symbols .hidden.
16253 2002-02-26 Jakub Jelinek <jakub@redhat.com>
16255 * attribs.c (c_common_attribute_table): Add visibility.
16256 (handle_visibility_attribute): New function.
16257 * varasm.c (assemble_visibility): New function.
16258 * output.h (assemble_visibility): Add prototype.
16259 * tree.h (MODULE_LOCAL_P): Define.
16260 * crtstuff.c (__dso_handle): Use visibility attribute.
16261 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
16262 for MODULE_LOCAL_P symbols too.
16263 * config/ia64/ia64.c (ia64_encode_section_info): Handle
16264 MODULE_LOCAL_P symbols the same way as local symbols.
16265 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
16266 into .sdata/.sbss by the user.
16267 * doc/extend.texi (Function Attributes): Document visibility
16270 2002-02-26 Jakub Jelinek <jakub@redhat.com>
16273 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
16274 STRING_CST initializer spanning the whole variable without
16276 If expand_expr returned MEM, don't use it.
16278 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
16280 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
16281 generate a die for the lexical block.
16283 2002-02-26 Kazu Hirata <kazu@hxi.com>
16285 * config/h8300/h8300-protos.h: Add a prototype for
16286 compute_logical_op_length.
16287 * config/h8300/h8300.c (compute_logical_op_length): New.
16288 * config/h8300/h8300.md (anonymous logical patterns): Use
16289 compute_logical_op_length for length.
16291 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16293 * dwarf2out.c (modified_type_die): Do not call type_main_variant
16295 (gen_type_die): Same.
16297 * attribs.c (handle_vector_size_attribute): Set debug information.
16299 2002-02-26 Daniel Egger <degger@fhm.edu>
16301 * config/rs6000/rs6000.md: Swap define_insn attributes to
16302 fix incorrect generation of merge high instructions instead
16305 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16307 * c-typeck.c (really_start_incremental_init): Use
16308 bitsize_zero_node for vectors.
16310 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
16312 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
16313 ("*set_vrsave_internal"): Same.
16315 2002-02-25 Richard Henderson <rth@redhat.com>
16317 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
16318 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
16320 2002-02-25 Jakub Jelinek <jakub@redhat.com>
16323 * config/i386/i386.c (ix86_return_pops_args): Only pop
16324 fake structure return argument if it was passed on the stack.
16326 2002-02-25 Jason Merrill <jason@redhat.com>
16328 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
16331 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
16333 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
16334 link with shared_name only.
16335 * doc/invoke.texi (Link Options): Document new behavior.
16337 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
16339 * c-typeck.c (push_init_level): Handle vectors.
16341 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
16343 * config/sparc/sparc.c (const64_high_operand): Zero-extend
16344 operands of SPARC_SETHI_P.
16345 (input_operand): Likewise.
16346 (sparc_emit_set_const32): Likewise.
16347 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
16348 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
16349 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
16350 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
16351 (movdi_insn_sp64_vis): Likewise.
16352 (movdi split, movdf split): Use SETHI32.
16353 * doc/md.texi: Document SPARC constraints L, M and N.
16355 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
16357 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
16358 ("*set_vrsave_internal"): use mfspr for Darwin.
16360 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
16361 gen_get_vrsave_internal.
16363 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16365 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
16367 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
16369 * cpplex.c (cpp_interpret_charconst): Get signedness or
16370 otherwise of wide character constants correct.
16371 * cppexp.c (lex): Get signedness of wide charconsts correct.
16373 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16375 * optabs.c (widen_operand): Only call convert_modes for
16376 promoted SUBREG if signedness matches.
16377 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
16379 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
16381 * cpplib.c (glue_header_name): Use local buffer to build up
16384 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
16386 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
16388 2002-02-23 Kazu Hirata <kazu@hxi.com>
16390 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
16391 H8/300[HS] separately.
16392 * config/h8300/h8300.md: Remove the early clobber constraint
16393 from bit field patterns.
16395 2002-02-23 Kazu Hirata <kazu@hxi.com>
16397 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
16399 (mulhisi3): Likewise.
16400 (umulqisi3): Likewise.
16401 (umulhisi3): Likewise.
16403 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
16405 * cppinit.c (output_deps): Correct test for stdout output.
16406 (init_dependency_output): Cure warning.
16408 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16410 * expr.c (store_expr): When converting expression to promoted
16411 equivalent type, allow using SUBREG_REG of TARGET as the target
16412 of the expansion of EXP.
16413 * loop.c (basic_induction_var, case SUBREG): Always look inside.
16414 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
16415 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
16416 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
16417 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
16419 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
16421 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
16422 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
16423 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
16425 2002-02-23 Jakub Jelinek <jakub@redhat.com>
16427 PR optimization/5747
16428 * loop.c (scan_loop): Update reg info if move_movables created new
16431 2002-02-23 David Edelsohn <edelsohn@gnu.org>
16433 * gcc.c (init_gcc_spec): Revert last change.
16435 2002-02-23 David Edelsohn <edelsohn@gnu.org>
16437 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
16438 gpc_reg_operand constraint.
16440 2002-02-23 Alan Modra <amodra@bigpond.net.au>
16442 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
16443 Simplify comparison of `low'.
16444 (add_operand): Fix formatting.
16445 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
16446 (mask_operand): Disallow mask to wrap in 64-bit mode.
16447 (rs6000_stack_info): Remove redundant test setting push_p.
16448 (output_toc): Fix formatting.
16449 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
16450 cc_reg_not_cr0_operand constraint.
16451 (booldi3, boolcdi3 splitters): Same.
16453 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
16455 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
16457 2002-02-22 David Edelsohn <edelsohn@gnu.org>
16459 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
16460 gcc invoked with -shared-libgcc.
16462 2002-02-22 Jakub Jelinek <jakub@redhat.com>
16465 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
16466 decl if any of elements was TREE_USED.
16468 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
16470 * config/sparc/sol2.h: Don't include sys/mman.h.
16471 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
16472 (arith_4096_operand): Don't throw high bits away.
16473 (const64_operand): Take sign extension of CONST_INTs into account.
16474 (const64_high_operand, sparc_emit_set_const32): Likewise.
16475 (GEN_HIGHINT64): Likewise.
16476 (sparc_emit_set_const64_quick1): Likewise.
16477 (const64_is_2insns): Likewise.
16478 (print_operand): Use trunc_int_for_mode for sign extension.
16479 * config/sparc/sparc.h (SMALL_INT32): Likewise.
16480 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
16481 chars. Assume CONST_INT is already properly sign-extended.
16482 (movdi split): Sign-extend each SImode part.
16483 (andsi3 split): Don't mask high bits off, so that result
16484 remains properly sign-extend.
16485 (iorsi3 split): Likewise.
16486 (xorsi3 split): Likewise.
16488 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
16490 * fold-const.c (fold): Fix typo in comments.
16492 2002-02-21 Diego Novillo <dnovillo@redhat.com>
16494 * Makefile.in (langhooks.o): Update dependencies.
16496 2002-02-21 Diego Novillo <dnovillo@redhat.com>
16498 * langhooks.c: Include flags.h.
16500 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
16502 * testsuite/gcc.dg/attr-alwaysinline.c: New.
16504 * c-common.c (c_common_post_options): Set inline trees by
16507 * doc/extend.texi (Function Attributes): Document always_inline
16509 Update documentation about inlining when not optimizing.
16511 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
16513 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
16514 unless DECL_ALWAYS_INLINE.
16516 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
16517 unless DECL_ALWAYS_INLINE.
16518 (c_disregard_inline_limits): Disregard if always_inline set.
16520 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
16521 Disregard if always_inline set.
16522 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
16523 unless DECL_ALWAYS_INLINE.
16525 * attribs.c (handle_always_inline_attribute): New.
16526 (c_common_attribute_table): Add always_inline.
16528 * config/rs6000/altivec.h: Add prototypes for builtins
16529 requiring the always_inline attribute.
16531 2002-02-21 Eric Christopher <echristo@redhat.com>
16533 * expmed.c (store_bit_field): Try to simplify the subreg
16534 before generating a new one when when the mode size of
16535 value is less than maxmode.
16537 2002-02-21 Richard Henderson <rth@redhat.com>
16539 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
16540 than gen_rtx_PLUS to form the sum.
16541 * explow.c (force_reg): Rearrange to not allocate new pseudo
16542 when force_operand returns a register.
16543 * expr.c (expand_assignment): Allow offset_rtx expansion to
16544 return a sum. Do not force addresses into registers.
16545 (expand_expr): Likewise.
16546 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
16547 to canonicalize arithmetic that didn't simpify.
16548 (simplify_plus_minus): New argument force; update
16549 all callers. Don't split CONST unless we can do something with it,
16550 and wouldn't lose the constness of the operands.
16552 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
16553 that we generated earlier.
16555 2002-02-21 Tom Tromey <tromey@redhat.com>
16557 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16558 (output_line_info): Use constant `1', with a long explanatory
16560 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
16562 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
16564 * jump.c (redirect_jump): If old label has no UID, don't try to
16567 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
16569 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
16570 If input is constant, do shifts at compile time.
16572 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
16574 * doc/extend.texi: Fix some more overfull hboxes.
16576 2002-02-21 Jakub Jelinek <jakub@redhat.com>
16578 PR optimization/4994
16579 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
16582 2002-02-21 Jakub Jelinek <jakub@redhat.com>
16585 * expr.h (expand_and): Add mode argument.
16586 * expmed.c (expand_and): Add mode argument.
16587 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
16588 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
16589 * except.c (expand_builtin_extract_return_addr): Likewise.
16590 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
16591 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16592 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
16593 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
16594 * config/c4x/c4x.md: Use GEN_INT (x) instead of
16595 gen_rtx (CONST_INT, VOIDmode, x).
16597 2002-02-21 Jakub Jelinek <jakub@redhat.com>
16600 * stmt.c (warn_if_unused_value): Move side effects test once more.
16602 2002-02-20 Torbjorn Granlund <tege@swox.com>
16604 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
16605 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
16607 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
16609 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
16610 SUBREG or ZERO_EXTEND.
16612 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
16614 * sh.h (current_function_anonymous_args): Remove.
16615 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
16616 of current_function_varargs and current_function_stdarg is set.
16617 * sh.c (sh_expand_prologue): Check current_function_varargs /
16618 current_function_stdarg / TARGET_SH5 instead of
16619 current_function_anonymous_args.
16621 * sh64.h (TARGET_VERSION): Define.
16623 2002-02-20 David Edelsohn <edelsohn@gnu.org>
16625 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
16626 VRSAVE_REGNO on TARGET_ALTIVEC.
16628 2002-02-20 Alan Modra <amodra@bigpond.net.au>
16630 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
16631 bits of SImode const_int.
16632 (includes_rshift_p): Likewise.
16633 (print_operand): Call mask_operand and mask64_operand with correct
16635 (rs6000_output_function_epilogue): Pad traceback table to word.
16636 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
16637 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
16638 mask64_operand with correct mode.
16639 (FUNCTION_ARG_REGNO_P): Correct parentheses.
16641 2002-02-20 Jakub Jelinek <jakub@redhat.com>
16644 * varasm.c (get_pool_constant_mark): New.
16645 * rtl.h (get_pool_constant_mark): Add prototype.
16646 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
16647 be represented if it has not been output.
16649 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
16651 * combine.c (do_SUBST): Sanity check substitutions of
16652 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
16653 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
16654 CONST_INT into its operand.
16655 (known_cond): Likewise, for ZERO_EXTEND.
16656 * simplify-rtx.c (simplify_unary_operation): Fix condition to
16657 allow for simplification of wide modes. Reject CONST_INTs in
16658 ZERO_EXTEND when their actual mode is not given.
16660 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
16662 * c-decl.c (pushdecl): If no global declaration is found for an
16663 extern declaration in block scope, try a limbo one.
16665 2002-02-20 Jakub Jelinek <jakub@redhat.com>
16668 * c-common.c (pointer_int_sum): Moved from...
16669 * c-typeck.c (pointer_int_sum): ...here.
16670 * c-common.h (pointer_int_sum): Add prototype.
16672 2002-02-20 Jakub Jelinek <jakub@redhat.com>
16675 * c-decl.c (duplicate_decls): Return 0 if issued error about
16678 2002-02-20 Roger Sayle <roger@eyesopen.com>
16679 Jakub Jelinek <jakub@redhat.com>
16682 * tree.c (host_integerp): Ensure that the constant integer is
16683 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
16684 when pos is zero or non-zero respectively. Clarify comment.
16685 * c-format.c (check_format_info_recurse): Fix host_integerp
16686 usage; the pos argument should be zero when assigning to a
16687 signed HOST_WIDE_INT.
16689 2002-02-20 Richard Henderson <rth@redhat.com>
16691 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
16692 of the operand, rather than assuming TImode.
16693 (ix86_expand_binop_builtin): Cope with commutative patterns
16694 using nonimmediate_operand for both operands.
16695 (ix86_expand_timode_binop_builtin): Likewise.
16696 (ix86_expand_store_builtin): Validate operand 1.
16697 (ix86_expand_unop1_builtin): Likewise.
16699 2002-02-20 Philip Blundell <philb@gnu.org>
16702 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
16704 2002-02-20 Richard Henderson <rth@redhat.com>
16707 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
16709 2002-02-20 Tom Tromey <tromey@redhat.com>
16711 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16712 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16713 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16714 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16715 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
16718 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
16720 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
16721 for (const_int 0) in X not just INTVAL.
16723 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
16725 * doc/extend.texi: Avoid or reduce overfull hboxes.
16727 2002-02-20 Diego Novillo <dnovillo@redhat.com>
16729 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
16730 operations if the field does not start at a mode boundary.
16732 2001-02-20 Joel Sherrill <joel@OARcorp.com>
16734 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
16735 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
16736 Also done for -Acpu and -Amachine.
16738 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
16740 * cppinit.c (init_dependency_output): Take deps output file
16741 from -o if none given with -MF. Suppress normal output.
16742 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
16743 * doc/cpp.texi, doc/invoke.texi: Update.
16745 2002-02-19 Zack Weinberg <zack@codesourcery.com>
16747 * toplev.c (output_quoted_string): Write unprintable
16748 characters with octal escapes.
16750 2002-02-19 David Edelsohn <edelsohn@gnu.org>
16752 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
16753 really_call_used[VRSAVE_REGNO] if not Altivec.
16755 2002-02-19 Alan Modra <amodra@bigpond.net.au>
16757 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
16759 (constant_pool_expr_1): Fix formatting.
16760 (rs6000_legitimize_reload_address): Likewise.
16762 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16764 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
16765 now that we have one.
16767 2002-02-19 Zack Weinberg <zack@codesourcery.com>
16769 * tree.h (struct tree_common): Remove aux. Add unused_0 at
16770 end of first block of bitfields (which was only seven bits);
16771 rename dummy to unused_1; remove comment which is no longer true.
16773 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
16775 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
16777 2002-02-19 Philip Blundell <pb@nexus.co.uk>
16780 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
16784 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
16785 arm_is_longcall_p rather than inspecting call-type cookie
16787 (call_value_insn) [TARGET_THUMB]: Likewise.
16789 2002-02-19 Graham Stott <grahams@redhat.com>
16791 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
16793 2002-02-19 David Edelsohn <edelsohn@gnu.org>
16795 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
16796 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
16797 (FP_SAVE_INLINE): Delete.
16799 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
16800 * config/rs6000/eabi.asm: Remove ABI save restore routines.
16801 * config/rs6000/t-ppccomm: Build crtsavres.o.
16802 * config/rs6000/crtsavres.asm: New file.
16804 2002-02-19 Philip Blundell <philb@gnu.org>
16806 * config/arm/arm.c (use_return_insn): Don't reject interrupt
16808 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
16809 (output_return_instruction): Allow interrupt functions to return with
16810 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
16811 (arm_expand_prologue): Subtract 4 before stacking LR in an
16812 interrupt function.
16814 2002-02-19 Philip Blundell <pb@nexus.co.uk>
16816 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
16817 decl, not just FUNCTION_DECL.
16818 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
16819 (arm_assemble_integer): Likewise.
16820 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
16823 2002-02-19 matthew green <mrg@eterna.com.au>
16825 * config.gcc (sparc-*-netbsdelf*): Enable target.
16826 (sparc64-*-netbsd*): New target.
16827 * config/sparc/netbsd-elf.h: New file.
16828 * config/sparc/t-netbsd64: New file.
16830 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
16832 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16834 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
16836 * doc/invoke.texi: explicitly list the style guidelines that
16837 -Weffc++ checks for.
16839 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
16841 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16843 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
16846 * gcc.c (cpp_unique_options): Treat -o as indicating object file
16847 only if not -E. If -E, pass -o through to the preprocessor.
16849 2002-02-19 Kazu Hirata <kazu@hxi.com>
16851 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16852 register number with an appropriate macro.
16854 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
16856 * doc/rtl.texi (Constants): Close @code tag.
16858 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
16860 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16861 ("mmx_uavgv4hi3"): Same.
16862 ("pmulhrwv4hi3"): Same.
16864 * tree-inline.c (walk_tree): Handle vectors.
16866 * c-common.c (constant_expression_warning): Handle vectors.
16867 (overflow_warning): Same.
16869 * sched-deps.c (sched_analyze_2): Handle vectors.
16871 * rtlanal.c (rtx_unstable_p): Handle vectors.
16872 (rtx_varies_p): Same.
16873 (count_occurrences): Same.
16874 (regs_set_between_p): Same.
16875 (modified_between_p): Same.
16876 (modified_in_p): Same.
16877 (volatile_insn_p): Same.
16878 (volatile_refs_p): Same.
16879 (side_effects_p): Same.
16880 (may_trap_p): Same.
16881 (inequality_comparisons_p): Same.
16882 (replace_regs): Same.
16883 (computed_jump_p_1): Same.
16885 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16887 (inner_mode_array): New.
16888 (copy_rtx): Handle vectors.
16889 (copy_most_rtx): Same.
16890 (rtx_equal_p): Same.
16891 (get_mode_alignment): Adjust for vectors.
16893 * resource.c (mark_referenced_resources): Handle vectors.
16894 (mark_set_resources): Same.
16896 * reload1.c (eliminate_regs): Handle vectors.
16897 (elimination_effects): Same.
16898 (scan_paradoxical_subregs): Same.
16900 * reload.c (subst_reg_equivs): Handle vectors.
16902 * regrename.c (scan_rtx): Handle vectors.
16904 * regclass.c (reg_scan_mark_refs): Handle vectors.
16906 * recog.c (find_single_use_1): Handle vectors.
16908 * local-alloc.c (equiv_init_varies_p): Handle vectors.
16909 (contains_replace_regs): Same.
16910 (memref_referenced_p): Same.
16912 * integrate.c (copy_rtx_and_substitute): Handle vectors.
16913 (subst_constants): Same.
16915 * genattrtab.c (attr_copy_rtx): Handle vectors.
16916 (encode_units_mask): Same.
16917 (clear_struct_flag): Same.
16918 (count_sub_rtxs): Same.
16920 * gcse.c (want_to_gcse_p): Handle vectors.
16921 (oprs_unchanged_p): Same.
16922 (hash_expr_1): Same.
16923 (oprs_not_set_p): Same.
16924 (expr_killed_p): Same.
16925 (compute_transp): Same.
16926 (store_ops_ok): Same.
16928 * function.c (purge_addressof_1): Do not allow paradoxical subregs
16930 (fixup_var_refs_1): Same.
16931 (instantiate_virtual_regs_1): Same.
16933 * fold-const.c (operand_equal_p): Handle vectors.
16935 (rtl_expr_nonnegative_p): Same.
16937 * flow.c (mark_used_regs): Handle vectors.
16939 * df.c (df_uses_record): Handle vectors.
16941 * cselib.c (cselib_subst_to_values): Handle vectors.
16942 (cselib_mem_conflict_p): Same.
16945 * cse.c (canon_reg): Handle vectors.
16947 (cse_process_notes): Same.
16948 (count_reg_usage): Same.
16949 (canon_hash): Same.
16951 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16953 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16955 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16956 (gen_rtx): Handle CONST_VECTOR.
16957 (gen_const_vector_0): New.
16958 (copy_rtx_if_shared): CONST_VECTORs can be shared.
16959 (reset_used_flags): Same.
16960 (copy_insn_1): Same.
16961 (initializer_constant_valid_p): Handle VECTOR_CST.
16963 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16965 * doc/rtl.texi (Constants): Document const_vector.
16966 (CONST0_RTX): Update for vectors.
16967 (RTL sharing): Same.
16969 * print-tree.c (print_node): Add case for VECTOR_CST.
16971 * tree.h (TREE_VECTOR_CST_ELTS): New.
16972 (struct tree_vector): New.
16973 (union tree_node): Add vector node.
16974 (build_vector): Add prototype.
16976 * tree.def (VECTOR_CST): New.
16978 * tree.c (build_vector): New.
16980 * expmed.c (make_tree): Handle CONST_VECTOR.
16982 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16983 (CONST_VECTOR_ELT): New.
16984 (CONST_VECTOR_NUNITS): New.
16986 * machmode.h (GET_MODE_INNER): New.
16987 (DEF_MACHMODE): Accept 8th arg.
16989 * machmode.def: Add 8th argument for vector inner mode.
16990 Add inner vector modes for vectors.
16992 * rtl.def (VEC_CONST): Remove.
16993 (CONST_VECTOR): New.
16995 * expr.c (clear_storage): Allow vectors.
16996 (is_zeros_p): Handle VECTOR_CST.
16998 * varasm.c (output_constant_pool): Handle vectors.
16999 (rtx_const): Add veclo and vechi fields.
17000 (kind): Add RTX_VECTOR.
17001 (decode_rtx_const): Add case for vector.
17003 * config/rs6000/rs6000-protos.h: Add zero_constant.
17005 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
17006 constants. Force easy vector constants into memory.
17007 (easy_vector_constant): New.
17008 (emit_easy_vector_constant): New.
17009 (rs6000_legitimize_reload_address): Do not generate bad reloads on
17012 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
17014 ("altivec_lvxl"): Same.
17015 (altivec_lvebx): Same.
17016 (altivec_lvehx): Same.
17017 (altivec_lvewx): Same.
17018 ("*movv4si_const0"): New.
17019 ("*movv4sf_const0"): New.
17020 ("*movv8hi_const0"): New.
17021 ("*movv16qi_const0"): New.
17023 2002-02-18 Kazu Hirata <kazu@hxi.com>
17025 * config/h8300/h8300.c (notice_update_cc): Use
17028 2002-02-18 Kazu Hirata <kazu@hxi.com>
17030 * config/h8300/h8300.md (divmod patterns): Change the
17031 constraints for operands[1] to register_operand.
17033 2002-02-18 Kazu Hirata <kazu@hxi.com>
17035 * config/h8300/h8300-protos.h: Remove the prototype for
17037 * config/h8300/h8300.c (p_operand): Remove.
17038 * config/h8300/h8300.md: Replace p_operand with
17041 2002-02-18 Philip Blundell <pb@nexus.co.uk>
17043 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
17045 (output_return_instruction): Allow use of LDR to unstack
17046 return addresss even for interrupt handlers or when
17047 interworking. If compiling for ARMv5, use interworking-safe
17048 return instructions by default. Remove duplicated code and
17049 lengthy "strcat" sequences.
17051 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17053 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
17054 (LINK_EH_SPEC): Define.
17055 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
17057 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
17059 * config/s390/s390.c (s390_emit_prologue): Do not set the
17060 frame_related flag for call-clobbered registers.
17062 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
17064 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
17065 (construct_container): Fix handling of SSE operands.
17066 (ix86_expand_builtin): Fix handling of 64bit pointers.
17067 (mmx_maskmovq_rex): New pattern.
17069 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
17071 * regrename.c (kill_set_value): Handle subregs properly.
17073 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
17075 * objc/objc-act.c (handle_impent): Remove leading '*'
17076 from objc_class_name.
17078 2002-02-17 Richard Henderson <rth@redhat.com>
17080 * config/alpha/alpha.c (some_small_symbolic_operand,
17081 some_small_symbolic_operand_1, split_small_symbolic_operand,
17082 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
17083 Handle small SYMBOL_REFs anywhere, not just inside memories.
17084 * config/alpha/alpha-protos.h: Update.
17085 * config/alpha/alpha.h (PREDICATE_CODES): Update.
17086 * config/alpha/alpha.md (small symbolic operand splitter): Update.
17088 2002-02-17 Roland McGrath <roland@frob.com>
17090 * config.gcc (powerpc-*-gnu-gnualtivec*,
17091 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
17092 * config/rs6000/gnu.h: New file.
17093 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
17094 Grok "gnu" in rs6000_abi_name.
17095 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
17096 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
17097 Grok -mcall-gnu analogous to -mcall-linux et al.
17098 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17099 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
17100 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
17102 2002-02-17 Jakub Jelinek <jakub@redhat.com>
17105 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
17108 2002-02-17 Philipp Thomas <pthomas@suse.de>
17110 * config/cris/cris.h: Undefine STARTFILE_SPEC and
17111 ENDFILE_SPEC before (re)defining them.
17113 2002-02-17 Kazu Hirata <kazu@hxi.com>
17115 * config/h8300/h8300.c: Fix formatting.
17116 * config/h8300/h8300.h: Likewise.
17118 2002-02-17 Philipp Thomas <pthomas@suse.de>
17120 * doc/tm.texi: Explain why empty strings should not be
17121 marked for translation.
17123 2002-02-17 Philipp Thomas <pthomas@suse.de>
17125 * final.c (output_operand_lossage): Changed to accept
17126 printf style arguments. Change calls where necessary.
17127 * output.h (output_operand_lossage): Change declaration
17128 accordingly. Update copyright.
17129 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
17130 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
17131 Update copyright date where necessary.
17133 * config/i386/i386.c (print_operand): Likewise. Remove use of
17136 * config/cris/cris.c (cris_operand_lossage): Likewise.
17137 Rename parameter so that exgettext recognizes it as
17138 translatable message.
17139 (LOSE_AND_RETURN): Rename parameter to msgid.
17141 2002-02-17 Kazu Hirata <kazu@hxi.com>
17143 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
17144 hard coded register number with an appropriate macro.
17145 (HARD_REGNO_MODE_OK): Likewise.
17146 (ARG_POINTER_REGNUM): Likewise.
17147 (STATIC_CHAIN_REGNUM): Likewise.
17148 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
17149 * config/h8300/h8300.md (define_constants): Define more
17152 2002-02-17 Philipp Thomas <pthomas@suse.de>
17154 * config/i386/i386.h: Don't mark empty strings for translation.
17156 2002-02-16 H.J. Lu <hjl@gnu.org>
17158 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
17160 2002-02-16 Zack Weinberg <zack@codesourcery.com>
17162 * cppinit.c (merge_include_chains): Check for brack being
17163 NULL before attempting to merge it with qtail.
17165 2002-02-16 Andrew Cagney <ac131313@redhat.com>
17167 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
17170 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
17172 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
17174 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
17176 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
17177 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
17178 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
17180 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17182 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
17183 now only if !TARGET_FIX.
17184 (*movsi_nt_vms_fix): New pattern.
17186 2002-02-16 Douglas B Rupp <rupp@gnat.com>
17188 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
17189 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
17190 (alpha_sa_mask, alpha_sa_size): Reflect above change.
17191 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
17192 (alpha_start_function, alpha_expand_epilogue): Likewise.
17193 (unicosmk_gen_dsib): Likewise.
17195 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17197 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
17199 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
17201 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
17202 check_and_change_labels, s390_final_chunkify): Delete.
17203 (s390_split_branches, s390_chunkify_pool): New functions.
17204 (s390_function_prologue): Call them.
17206 * config/s390/s390.h (S390_REL_MAX): Delete.
17207 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
17209 * config/s390/s390.md (cjump, icjump, jump): Fix length
17210 attribute calculation.
17213 2002-02-15 David Edelsohn <edelsohn@gnu.org>
17215 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
17216 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
17218 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
17220 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
17221 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
17222 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
17224 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
17226 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
17228 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
17230 * reload.c (find_dummy_reload): Check that an output register
17231 is valid for its mode.
17233 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
17235 * combine.c (known_cond): After replacing the REG of a SUBREG, try
17238 * function.c (assign_parms): Demote promoted argument passed by
17239 transparent reference.
17241 2001-02-14 Joel Sherrill <joel@OARcorp.com>
17243 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
17244 -Acpu() and -Amachine() to eliminate warnings.
17246 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
17248 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
17250 2002-02-14 Kazu Hirata <kazu@hxi.com>
17252 * config/h8300/h8300-protos.h: Update the prototype for
17254 * config/h8300/h8300.c (const_costs): Treat SET as a little
17255 more expensive operation.
17256 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
17257 reference to const_costs.
17259 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
17261 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
17263 2002-02-14 Jakub Jelinek <jakub@redhat.com>
17266 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
17267 use arguments from newtype.
17269 2002-02-13 Eric Christopher <echristo@redhat.com>
17271 * config/mips/mips.c (override_options): Add check for march/mipsX
17272 on the same command line. Fix error message in cpu processing.
17273 Remove architecture and ISA checks.
17275 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
17277 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
17279 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
17281 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
17283 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
17285 ("*movv8hi_internal1"): Same.
17286 ("*movv16qi_internal1"): Same.
17287 ("*movv4sf_internal1"): Same.
17289 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
17290 not push_reload for altivec modes.
17292 2002-02-13 Joel Sherrill <joel@OARcorp.com>
17294 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
17295 all RTEMS targets including removal of #includes from config/*/rtems*.h
17296 file and adding them to tm_file setting. Added xm_defines=POSIX to
17298 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
17299 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
17300 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
17301 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
17302 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
17303 config/m68k/rtemself.h: Ditto.
17304 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
17305 config/mips/rtems64.h: Ditto.
17306 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
17307 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
17309 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
17310 config/sparc/rtemself.h: Ditto.
17311 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
17312 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
17313 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
17315 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
17316 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
17317 target made more similar to i386-elf.
17318 * config/i386/t-rtems-i386: Added soft float support and multilibs.
17319 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
17320 be similar to config/m68k/t-m68kelf.
17321 * gthr-rtems.h: Encapsulate with extern "C" for C++.
17323 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
17325 * regmove.c (kill_value): Handle subregs.
17327 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
17329 * i386.md (mul patterns): Allow memory operand to be first;
17330 add expanders where needed; fix constraints.
17331 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
17332 Allow memory operand to be the first.
17334 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
17337 2002-02-13 Jakub Jelinek <jakub@redhat.com>
17340 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
17343 2002-02-13 Jakub Jelinek <jakub@redhat.com>
17345 PR optimization/5547:
17346 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
17347 all valid IA-32 address modes involving non-scaled %ebx and
17348 GOT/GOTOFF as displacement.
17350 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
17352 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
17353 after emitting ltorg insns.
17355 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
17356 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
17357 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
17358 *abssf2): Fix "op_type" attribute.
17360 2002-02-13 Douglas B Rupp <rupp@gnat.com>
17362 * mkconfig.sh: Avoid using a subshell redirect.
17363 ($output.T): Change to $(output)T.
17364 (ENABLE_NLS): Remove unneeded undef.
17366 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
17367 * config/alpha/x-vms (libsubdir): Define.
17369 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
17370 register frame procedures. Optimize retrieving context.
17372 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
17373 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
17374 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
17376 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17378 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
17379 Make same change as for find_base_value.
17381 2002-02-13 Kazu Hirata <kazu@hxi.com>
17383 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
17384 of QImode and SImode.
17386 2002-02-13 Kazu Hirata <kazu@hxi.com>
17388 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
17389 length computation of movsi.
17390 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
17392 2002-02-13 Kazu Hirata <kazu@hxi.com>
17394 * config/h8300/h8300.md (subqi3): Tighten the predicate for
17395 operands[2] to register_operand.
17397 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
17399 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
17401 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
17403 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
17404 for altivec_lvx* and altivec_stvx*.
17405 ("*movv4si_internal"): Add constraint for loading from GPRs.
17406 ("*movv8hi_internal1"): Same.
17407 ("*movv16qi_internal1"): Same.
17408 ("*movv4sf_internal1"): Same.
17410 * config/rs6000/rs6000.c (altivec_register_operand): New.
17412 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
17413 altivec_register_operand.
17415 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
17417 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
17420 2002-02-13 Stan Shebs <shebs@apple.com>
17422 * c-typeck.c (digest_init): Handle vectors.
17423 (really_start_incremental_init): Same.
17424 (pop_init_level): Same.
17425 (process_init_element): Same.
17427 * varasm.c (output_constant): Same.
17429 * expr.c (clear_storage): Same.
17430 (store_constructor): Same.
17432 2002-02-12 Eric Christopher <echristo@redhat.com>
17434 * explow.c (hard_function_value): Add comment explaining
17435 signed/unsigned comparison.
17437 2002-02-12 Jakub Jelinek <jakub@redhat.com>
17439 * jump.c (never_reached_warning): Add finish argument.
17440 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
17441 real insn after end.
17442 * rtl.h (never_reached_warning): Adjust prototype.
17443 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
17444 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
17445 never_reached_warning.
17447 2002-02-12 Graham Stott <grahams@redhat.com>
17449 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
17451 2002-02-12 Kazu Hirata <kazu@hxi.com>
17453 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
17454 logical shifts on H8/300.
17455 (shift_alg_si): Improve several shifts on H8/300.
17456 (get_shift_alg): Likewise.
17458 2002-02-12 Graham Stott <grahams@redhat.com>
17460 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
17462 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17464 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
17465 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
17467 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
17469 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
17470 non-CONST_INT through default_assemble_integer.
17471 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
17472 <case 8>: Abort for CONST_DOUBLE.
17474 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
17476 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
17478 * config/pa/pa-linux.h (LIB_SPEC): Delete.
17479 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
17481 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
17483 * config/stormy16/stormy16.md (zero_extendqihi2): New.
17485 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
17487 * regrename.c (regrename_optimize): Don't accept a
17488 part-clobbered register if the replaced register is not part
17491 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
17492 take padding into account when computing the argument value.
17494 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
17496 * combine.c (try_combine): Apply substitutions in
17497 CALL_INSN_FUNCTION_USAGE too.
17499 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
17501 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
17502 __builtin_altivec_abs*.
17505 * config/rs6000/rs6000.h (rs6000_builtins): Add
17506 ALTIVEC_BUILTIN_ABS*.
17508 * config/rs6000/altivec.h: Use const char for builtins expecting
17510 (vec_abs): New versions for C and C++.
17513 2002-02-10 Kazu Hirata <kazu@hxi.com>
17515 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
17518 2002-02-10 Kazu Hirata <kazu@hxi.com>
17520 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
17521 constant definition from h8300.md.
17522 (FRAME_POINTER_REGNUM): Likewise.
17523 * config/h8300/h8300.md (define_constants): Add FP_REG.
17525 2002-02-10 Kazu Hirata <kazu@hxi.com>
17527 * config/h8300/h8300.c (print_operand): Remove redundant code.
17529 2002-02-10 Kazu Hirata <kazu@hxi.com>
17531 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
17532 * config/h8300/h8300.c (byte_reg): Make it static.
17534 2002-02-10 Richard Henderson <rth@redhat.com>
17537 * c-typeck.c (incomplete_type_error): Handle flexible array members.
17539 2002-02-10 Richard Henderson <rth@redhat.com>
17542 * tree.c (append_random_chars): Don't abort if main_input_filename
17545 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
17547 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
17549 2002-02-10 Kazu Hirata <kazu@hxi.com>
17551 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
17552 (pushhi1): Likewise.
17554 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
17556 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
17557 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
17559 2002-02-09 David O'Brien <obrien@FreeBSD.org>
17561 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
17563 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
17565 2002-02-09 Kazu Hirata <kazu@hxi.com>
17567 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
17568 a half of an SImode register on H8/300.
17570 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
17572 * i386.md (movdi_2): Add missing '!'.
17574 2002-02-09 Kazu Hirata <kazu@hxi.com>
17576 * config/h8300/h8300.h: Fix formatting. Remove commented-out
17579 2002-02-09 Kazu Hirata <kazu@hxi.com>
17581 * config/h8300/h8300.md (length): Correct the distance valid
17582 for the short branch.
17584 2002-02-09 Kazu Hirata <kazu@hxi.com>
17586 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
17588 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
17590 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
17591 registers in SImode.
17592 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
17595 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
17598 Contribute sh64-elf.
17599 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
17600 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
17601 (sh_cannot_modify_jumps_p): New function.
17602 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
17603 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
17604 (sh_ms_bitfield_layout_p): New function.
17605 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
17606 Zack Weinberg <zack@codesourcery.com>
17607 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
17608 expand_simple_binop instead of expand_binop.
17609 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
17610 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
17611 use of .quad and .uaquad.
17612 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
17613 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
17614 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17615 * config/sh/sh.md (movdi_const, movdi_const_32bit,
17616 movdi_const_16bit): Make sure all CONSTs have modes.
17617 (sym2PIC): Ditto, but by adjusting all callers.
17618 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
17619 if the prologue calls the SHmedia argument decoder or register
17621 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
17622 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
17623 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
17624 (sh_expand_epilogue): Don't emit USE of return target register.
17625 (prepare_move_operands): Legitimize DImode PIC addresses.
17626 (sh_media_register_for_return): Skip tr0, used to initialize the
17628 (sh_expand_prologue): Remove explicit USE of return register.
17629 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
17630 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
17631 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
17632 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
17633 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
17634 EXTRA_CONSTRAINT_T.
17635 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
17636 (MOVI_SHORI_BASE_OPERAND_P): New.
17637 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
17638 (EXTRA_CONSTRAINT_T): Define in terms of them.
17639 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
17640 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
17641 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
17642 alternatives supporting TARGET_REGS.
17643 (UNSPEC_GOTPLT): New constant.
17644 (movdi split): Move incrementing of LABEL_NUSES...
17645 (movdi_const, movdi_const_32bit): Here. Use
17646 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
17647 (movdi_const_16bit): New.
17648 (call, call_value) [flag_pic]: Use GOTPLT.
17649 (call_pop, call_value_pop): New expands.
17650 (call_pop_compact, call_pop_rettramp): New insns.
17651 (call_value_pop_compact, call_value_pop_rettramp): New insns.
17652 (sibcall) [flag_pic]: Use GOT.
17653 (builtint_setjmp_receiver): Remove bogus, unused expand.
17654 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
17655 (*pt, *ptb, ptrel): New insns.
17656 (sym2GOT): Handle DImode GOT.
17657 (sym2GOTPLT, symGOTPLT2reg): New expands.
17658 (sym2PIC): New expand.
17659 (shcompact_return_tramp): Use GOTPLT to return trampoline.
17660 (shcompact_return_tramp_i): Use return register explicitly.
17661 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
17662 disable flag_reorder_blocks.
17663 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
17664 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
17665 clobbers, for clarity.
17666 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
17667 restoring of r0 in macl as MAYBE_DEAD.
17668 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
17669 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
17670 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
17671 alter_subreg all over.
17672 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
17673 reload, instead of emitting instructions that would require
17675 (casesi_load_media): Add missing modes.
17676 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
17677 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
17678 as used if the argument decoder is called.
17679 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
17680 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
17681 Pmode, then extend it to DImode if necessary.
17682 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
17683 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
17684 constants in FPU-enabled SHmedia, let them be loaded from memory.
17685 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
17686 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
17687 Adjust whitespace in assembly output templates.
17688 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
17689 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
17690 mode of if_then_else.
17691 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
17692 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
17694 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
17695 Joern Rennecke <amylaar@redhat.com>
17696 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
17697 (SUBTARGET_CPP_PTR_SPEC): New.
17698 (SUBTARGET_CPP_SPEC): Remove.
17699 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
17700 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17701 Fix typo in previous checkin.
17702 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
17703 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
17704 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
17705 Alexandre Oliva <aoliva@redhat.com>
17706 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
17707 what single FP register can hold for SHmedia target.
17708 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
17709 Alexandre Oliva <aoliva@redhat.com>
17710 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17711 Do not split into SUBREG.
17712 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
17713 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
17714 and added new functions as specified in SH5 ABI r9.
17715 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
17716 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
17718 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
17719 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
17720 gen_consttable_4 and gen_consttable_8. Emit multiple labels
17721 and consttable_window_ends.
17722 2001-06-03 Graham Stott <grahams@redhat,com>
17723 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
17724 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
17725 * config/sh/sh.c (print_operand): Handle floating-point pair,
17726 vector and matrix registers.
17727 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
17728 vector modes into account.
17729 * config/sh/sh.md (movv2sf): Split move between registers into
17731 (movv4sf, movv16sf): Introduce insns that get split only after
17733 * config/sh/shmedia.h: Fix Copyright dates.
17734 * config/sh/ushmedia.h: Likewise. Move loop counter
17735 declarations into conditionals that uses them.
17736 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
17738 * config/sh/sshmedia.h: Fix Copyright dates.
17739 (sh_media_PUTCFG): Fix constraints.
17740 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
17741 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
17742 ptrmemfunc_vbit_in_delta for SH5.
17743 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
17744 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
17745 * invoke.texi: Likewise.
17746 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
17747 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
17748 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
17749 GCC_pop_shmedia_regs_nofpu): New global symbols.
17750 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
17751 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
17752 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
17753 compact function with nonlocal labels.
17754 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
17755 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
17756 (initial_elimination_offset): Account for their stack space.
17757 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
17758 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
17759 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
17760 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
17761 least one of the operands to be a register.
17762 (movv2sf): Likewise. Renamed to movv2sf_i.
17763 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
17764 prepare_move_operands() before emitting SHmedia insns.
17765 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
17766 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
17767 Don't save nor initialize r12. Don't mis-align the stack.
17768 Pad the code with a nop.
17769 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
17771 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
17772 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
17773 [__SHMEDIA__]: Implement.
17774 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
17775 * config/sh/sh.md: Set latency of `pt' closer to reality.
17776 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
17777 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
17778 Set move, load and store type attributes.
17779 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
17780 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
17782 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
17783 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
17784 * config/sh/sh.c (sh_media_register_for_return): New function.
17785 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
17786 branch-target register.
17787 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
17788 * config/sh/sh.md (return_media_i): Use any call-clobbered
17789 branch-target register.
17790 (return_media): If r18 wasn't copied in the prologue, copy it
17792 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
17793 Clear class FP0_REGS.
17794 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
17796 2001-03-08 DJ Delorie <dj@redhat.com>
17797 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
17798 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
17799 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
17800 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
17801 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
17802 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
17803 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
17804 return value correctly for call_cookie.
17805 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
17806 * config/sh/crt1.asm (start): Modified so as to call
17807 ___setup_argv_and_call_main.
17808 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
17809 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
17811 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
17812 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
17813 (STRIP_NAME_ENCODING): Use it.
17814 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
17815 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
17816 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
17817 prepare_scc_operands().
17818 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
17819 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
17820 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
17821 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
17822 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
17823 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
17824 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
17825 used in shcompact_incoming_args.
17826 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
17828 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17830 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17831 Adjust accordingly.
17832 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17833 Simplify. Adjust. Add sanity check.
17834 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17836 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17838 (udivsi3, divsi3): Use them.
17839 (force_mode_for_call): New insn.
17840 (call, call_value, sibcall_value): Emit it before SHcompact
17842 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
17843 * config/sh/sh.md (call, call_value, sibcall): Make sure the
17844 call cookie is non-NULL before taking its value.
17845 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
17846 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17847 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
17848 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17850 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17851 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17852 temporary for stack adjusts. Use MACL and MACH to pass
17853 arguments to shcompact_incoming_args.
17854 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
17856 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17857 (nested_trampoline): Load static chain address into r1.
17858 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17859 2001-01-07 Alexandre Oliva <aoliva@redhat.com
17860 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17861 fp_arith_reg_operand().
17862 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
17863 * config/sh/sh.md (casesi): Sign-extend the first two operands,
17864 and use signed compares for them.
17865 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17866 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
17867 ones properly aligned.
17868 (find_barrier): Account for extra alignment needed for 8-byte wide
17870 (machine_dependent_reorg): Require a label for the second 4-byte
17871 constant after an 8-byte one.
17872 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17874 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
17875 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17876 last_float when switching float modes.
17877 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17878 auto-increment for general-purpose registers.
17879 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17881 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17883 * config/sh/sh.c (sh_builtin_saveregs): Support using all
17884 registers for varargs.
17885 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
17886 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17887 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17888 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17889 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17890 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
17891 call_cookie accordingly.
17892 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17893 (SHCOMPACT_BYREF): Likewise.
17894 (SHCOMPACT_FORCE_ON_STACK): New macro.
17895 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17896 (sh_builtin_saveregs): Likewise.
17897 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17898 shcompact_incoming_args): Use new shift values. Support
17899 sequences of consecutive and non-consecutive pushes/pops.
17900 * config/sh/sh.md (return): Don't explicitly use PR_REG.
17901 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
17902 * config/sh/sh.h (TEXT_SECTION): Define.
17903 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17904 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
17905 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17906 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17907 return values on FPU-enabled SHmedia.
17908 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17909 FPU-enabled SHmedia.
17910 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17911 value is returned in a non-FP reg and is not returned by
17913 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17915 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
17916 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17917 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17918 quad-aligned to be passed by callee-copy reference.
17919 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
17920 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17921 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17922 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
17923 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17924 copying low-numbered FP regs to r7 and r8.
17925 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17926 FP regs to general-purpose regs only if the copy was passed on the
17928 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17929 copying FP reg to r9.
17930 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17931 copy FP regs to general-purpose regs only in outgoing calls.
17932 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17933 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
17935 * config/sh/sh.h (struct sh_args): Document all fields.
17936 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17937 passed partially on the stack should not consider making
17939 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17940 stack_regs only for incoming calls. When passing FP args,
17941 make sure there are FP regs available before modifying
17943 (SHCOMPACT_BYREF): Pass double args in general-purpose
17944 registers by reference.
17945 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
17946 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17947 attempt to generate sibcalls if the caller got any arguments
17949 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17950 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17951 to 8-byte boundaries.
17952 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17953 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17954 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17955 stored in the stack.
17956 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17957 for the offsets to have the ISA bit set.
17958 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
17959 invocation. Use beq instead of bgt to mark end of sequence of
17961 (shcompact_incoming_args): Fix store of r2. Use beq instead of
17962 bgt to mark end of sequence of stores.
17963 * config/sh/sh.c (arith_operand): Don't check whether
17964 CONST_OK_FOR_J for now.
17965 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17966 instead of long for conversion.
17967 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
17968 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17969 before passing it to fprintf.
17970 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
17971 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17972 Call set_fpscr before reading/writing SR.
17973 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17975 * config/sh/lib1funcs.asm: Add `.align 2' directives before
17977 (FMOVD_WORKS): Define on SH5 with FPU.
17978 (set_fpscr): Define on SH5. Remove separate _fpscr_values
17980 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17982 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
17983 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17985 (ia_main_table): Ditto.
17986 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
17987 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17988 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17989 the definitions from sh.h.
17990 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17992 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17993 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17994 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17995 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
17996 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17997 Increment LABEL_NUSES.
17999 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
18001 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
18003 * config/sh/elf.h (SIZE_TYPE): Likewise.
18004 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
18005 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18006 shcompact_incoming_args): Load switch table addresses using
18008 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18009 (NO_BUILTIN_SIZE_TYPE): Define.
18010 (SIZE_TYPE): Don't define.
18011 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
18012 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
18013 definition of __SH5__=32 for -m5-compact-nofpu.
18014 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
18016 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
18017 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
18018 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
18019 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
18020 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
18021 (INSN_LENGTH_ALIGNMENT): Likewise.
18022 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18023 * config/sh/sh.md (call, call_value, sibcall): Simplify
18024 copying of non-branch-target register.
18025 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18026 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
18027 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
18028 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
18029 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
18030 floating-point values as structs.
18031 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
18032 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
18033 general-purpose register.
18034 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
18035 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18036 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
18037 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
18038 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
18039 (ENCODE_SECTION_INFO): Enclose variables and constants in
18041 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
18042 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
18043 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
18044 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
18045 only for LABEL_REFs. For SYMBOL_REFs, prepend
18046 SH_DATALABEL_ENCODING to the symbol name.
18047 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
18049 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
18050 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
18052 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
18053 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
18054 (DATALABEL_REF_P): Don't require CONST.
18055 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
18057 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
18058 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
18060 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18061 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
18062 Use shallow_copy_rtx and PUT_MODE to change the mode of
18063 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
18064 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
18065 on SHmedia using GENERAL_REGs.
18066 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18067 bltu_media_i): Fix reversion of conditions.
18068 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
18069 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
18070 * config/sh/sh.c (output_far_jump): Save r13 in macl.
18071 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
18072 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
18073 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
18074 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
18075 (GCC_nested_trampoline): Likewise.
18076 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
18077 * config/sh/sh.c (gen_datalabel_ref): Define.
18078 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
18079 (INITIALIZE_TRAMPOLINE): Likewise.
18080 (TRAMPOLINE_ADJUST_ADDRESS): Define.
18081 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
18082 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
18083 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
18084 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
18085 (ic_invalidate): Adjust for SH5.
18086 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
18087 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
18088 _nested_trampoline.
18089 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
18090 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
18091 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
18092 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
18093 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
18094 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
18095 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
18096 * config/sh/sh.c (target_reg_operand): Match only target-branch
18097 registers and pseudos that aren't virtual registers.
18098 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18099 Copy operands that don't match target_reg_operand to pseudos.
18100 (call_media, call_value_media, sibcall_media): Use
18101 target_reg_operand instead of target_operand.
18102 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
18103 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
18104 * config/sh/sh.c (target_reg_operand): Match hardware registers
18105 other than branch-target registers.
18106 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
18107 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
18108 (fpscr_values) [SH5 == 32]: Define.
18109 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
18110 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
18111 Handle function addresses coming in SUBREGs.
18112 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
18113 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
18114 shcompact_return_trampoline): Use datalabel where appropriate.
18115 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
18116 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
18117 general-purpose register to copy one branch-target register to
18119 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
18120 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
18121 SYMBOL_REFs with VOIDmode.
18122 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
18123 bltu_media_i): New insns.
18124 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
18125 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
18126 (INIT_CUMULATIVE_ARGS): Likewise.
18127 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
18128 * machmode.def (V16SFmode): New mode.
18129 * c-common.c (type_for_mode): Support V2SF and V16SF.
18130 * tree.c (build_common_tree_nodes_2): Likewise.
18131 * tree.h (tree_index): Likewise.
18132 * calls.c (emit_call_1): Take args_so_far. Adjust all
18133 callers. Introduce CALL_POPS_ARGS.
18134 * tm.texi (CALL_POPS_ARGS): Document.
18135 * config/sh/crt1.asm: Implement in SHmedia mode.
18136 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
18137 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
18138 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
18139 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
18140 Implement divsi and udivsi in SHmedia mode. Introduce
18141 SHcompact trampolines.
18142 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
18144 (regno_reg_class): Rewrite.
18145 (fp_reg_names): Remove.
18146 (sh_register_names, sh_additional_register_names): New.
18147 (print_operand): Added `u'. Support SUBREGs in addresses.
18148 Add parentheses around shifted CONSTs.
18149 (output_file_start): Output .mode and .abi directives.
18150 (shiftcosts, addsubcosts, multcosts): Adjust.
18151 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
18152 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
18153 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
18154 bytes, not registers. Take into account the need for the
18155 SHcompact incoming args trampoline. Adjust all callers.
18156 (sh_expand_prologue): Take stack_regs into account. Call
18157 incoming args trampoline. Keep stack aligned as per SH5 ABI.
18158 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
18159 stack aligned as per SH5 ABI.
18160 (sh_builtin_saveregs): Support SH5 ABI.
18161 (sh_build_va_list, sh_va_start): Likewise.
18162 (initial_elimination_offset): Take alignment into account.
18163 Compute location of PR according to the SH5 stack frame.
18164 (arith_reg_operand): Reject branch-target registers.
18165 (shmedia_6bit_operand): New.
18166 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
18167 (target_reg_operand): Match DImode only. Accept SUBREGs.
18168 (target_operand): New.
18169 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
18170 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
18171 SIBCALL_REGS for SHmedia.
18172 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
18173 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
18174 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
18175 (TARGET_SWITCHES): New SH5 flags.
18176 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
18177 VALID_REGISTER_P to disable unsupported registers.
18178 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
18179 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
18180 (FUNCTION_ARG_PADDING): Define.
18181 (FASTEST_ALIGNMENT): Adjust.
18182 (SH_REGISTER_NAMES_INITIALIZER): New.
18183 (sh_register_names): Declare.
18184 (DEBUG_REGISTER_NAMES): Define.
18185 (REGISTER_NAMES): Define based on sh_register_names.
18186 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
18187 (sh_additional_register_names): Declare.
18188 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
18189 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
18190 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
18191 (REGISTER_NATURAL_MODE): Define.
18192 (FIRST_PSEUDO_REGISTER): Adjust.
18193 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
18194 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
18195 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
18196 (VECTOR_MODE_SUPPORTED_P): Define.
18197 (REG_CLASS_CONTENTS): Adjust.
18198 (SMALL_REGISTER_CLASSES): Adjust.
18199 (REG_ALLOC_ORDER): Adjust.
18200 (INDEX_REG_CLASS): Adjust.
18201 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
18202 (CONST_OK_FOR_LETTER_P): Adjust.
18203 (PREFERRED_RELOAD_CLASS): Adjust.
18204 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
18205 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
18206 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
18207 (FIRST_FP_PARM_REG): Adjust.
18208 (CALL_POPS_ARGS): Define.
18209 (FUNCTION_ARG_REGNO_P): Adjust.
18210 (struct sh_args): New fields.
18211 (GET_SH_ARG_CLASS): Adjust.
18212 (INIT_CUMULATIVE_ARGS): Adjust.
18213 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
18214 (FUNCTION_ARG_ADVANCE): Adjust.
18215 (FUNCTION_ARG): Adjust.
18216 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
18217 (FUNCTION_ARG_CALLEE_COPIES): Define.
18218 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
18219 (STRICT_ARGUMENT_NAMING): Define.
18220 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
18221 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
18222 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
18223 (SETUP_INCOMING_VARARGS): Adjust.
18224 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
18225 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
18226 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
18227 (SUBREG_OK_FOR_INDEX_P): Adjust.
18228 (EXTRA_CONSTRAINT_S): Update.
18229 (EXTRA_CONSTRAINT_T): New.
18230 (EXTRA_CONSTRAINT): Adjust.
18231 (GO_IF_LEGITIMATE_INDEX): Adjust.
18232 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
18233 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
18234 (MOVE_MAX): Adjust.
18235 (MAX_MOVE_MAX): Define.
18237 (CONST_COSTS): Adjust.
18238 (REGISTER_MOVE_COST): Adjust.
18239 (BRANCH_COST): Adjust.
18240 (TEXT_SECTION_ASM_OP): Adjust.
18241 (DBX_REGISTER_NUMBER): Adjust.
18242 (ASM_OUTPUT_DOUBLE_INT): New.
18243 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
18244 (PREDICATE_CODES): Adjust.
18245 (PROMOTE_MODE): Adjust.
18246 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
18247 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
18248 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
18249 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
18250 (DR0_REG, DR2_REG, DR4_REG): Renumber.
18251 (TR0_REG, TR1_REG, TR2_REG): New.
18252 (XD0_REG): Renumber.
18253 (UNSPEC_COMPACT_ARGS): New.
18254 (type): Added pt and ptabs.
18255 (length): Default to 4 on SHmedia. Default pt length to 12
18256 and 20 on SHmedia32 and SHmedia64, respectively.
18257 (pt): New function unit.
18258 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
18259 Add whitespace between operands of SHmedia instructions.
18261 (adddi3_media, addsi3_media): Adjust constraints.
18262 (subsi3) [SHmedia]: Force operand 1 into a register.
18263 (udivsi3_i1_media, udivsi3_i4_media): New.
18264 (udivsi3): Support SHmedia.
18265 (divsi3_i1_media, divsi3_i4_media): New.
18266 (divsi3): Support SHmedia.
18267 (anddi3, iordi3, xordi3): Adjust constraints.
18268 (zero_extendhidi2, zero_extendqidi2): New.
18269 (extendsidi2, extendhidi2, extendqidi2): New.
18270 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
18271 (pop_e, pop_fpul, pop_4): Likewise.
18272 (movsi_media): Support FP and BT registers.
18273 (movsi_media_nofpu): New. Adjust splits to DImode.
18274 (lduw, ldub): Renamed to zero_extend* above.
18275 (movqi_media): Fix typo.
18276 (movdi_media): Support FP and BT registers.
18277 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
18278 (movdi_const_32bit): New.
18279 (shori_media): Require immediate operand. Use `u' for output.
18280 (movdf_media, movsf_media): Simplified.
18281 (movdf_media_nofpu, movsf_media_nofpu): New.
18282 (movdf, movsf): Adjust
18283 (movv2sf, movv2sf, movv16sf): New.
18284 (beq_media, beq_media_i): Adjust constraints. Don't use
18285 scratch BT register.
18286 (bne_media, bne_media_i): Likewise.
18287 (bgt_media, bgt_media_i): Likewise.
18288 (bge_media, bge_media_i): Likewise.
18289 (bgtu_media, bgtu_media_i): Likewise.
18290 (bgeu_media, bgeu_media_i): Likewise.
18291 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
18292 bunordered): Emit jump insn. Force operands to registers when
18294 (jump_media, jump): Simplify.
18295 (call_compact, call_compact_rettramp): New.
18296 (call_value_compact, call_value_compact_rettramp): New.
18297 (call_media, call_value_media): Simplify.
18298 (sibcall_compact, sibcall_media): New.
18299 (call, call_value): Adjust for SHmedia and SHcompact.
18300 (sibcall, sibcall_value, untyped_call): Likewise.
18301 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
18302 (indirect_jump): Adjust for SHmedia.
18303 (casesi_jump_media): New.
18304 (nop): Re-enable for SHmedia.
18305 (call_site): Restrict to SH1.
18306 (casesi): Adjust for SHmedia.
18307 (casesi_shift_media, casesi_load_media): New.
18308 (return): Explicitly use PR register. Call return trampoline
18310 (return_i): Explicitly use PR register.
18311 (shcompact_return_tramp, shcompact_return_tramp_i): New.
18312 (return_media): Adjust.
18313 (shcompact_incoming_args): New.
18314 (epilogue): Adjust.
18315 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
18316 (movstrsi): Disable on SH5.
18317 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
18318 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
18319 (subsf3, subsf3_media): Likewise.
18320 (mulsf3, mulsf3_media, mac_media): Likewise.
18321 (divsf3, divsf3_media): Likewise.
18322 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
18323 (floatsisf2, fux_truncsfsi2): Likewise.
18324 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
18326 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
18327 (cmpunsf_media, cmpsf): Likewise.
18328 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
18329 (abssf2, abssf2_media): Likewise.
18330 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
18331 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
18332 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
18333 (floatsidf2, fix_truncdfsi2): Likewise.
18334 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
18336 (cmpeqdf_media, cmpgtdf_media): Likewise.
18337 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
18338 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
18339 (absdf2, absdf2_media): Likewise.
18340 (extendsfdf2, extendsfdf2_media): Likewise.
18341 (truncsfdf2, truncsfdf2_media): Likewise.
18342 * config/sh/sh64.h: New file.
18343 * config/sh/t-sh64: New file.
18344 * config/sh/shmedia.h: New file.
18345 * config/sh/ushmedia.h: New file.
18346 * config/sh/sshmedia.h: New file.
18347 * configure.in: Added sh64-*-elf.
18348 * configure: Rebuilt.
18349 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
18350 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
18351 (reg_class_from_letter): Use `b' for TARGET_REGS.
18352 (print_operand): Support `%M', `%m', `AND' and
18353 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
18354 (andcosts): Adjust for SHmedia.
18355 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
18357 (target_reg_operand): New function.
18358 * config/sh/sh-protos.h (target_reg_operand): Declare.
18359 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
18360 FP registers on SH5.
18361 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
18363 (TARGET_REGISTER_P): New macro.
18364 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
18365 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
18366 (EXTRA_CONSTRAINT_S): New macro.
18367 (EXTRA_CONSTRAINT): Adjust.
18368 (FLOAT_TYPE_SIZE): Define to 32.
18369 (Pmode): DImode on SHmedia.
18370 (CONST_COSTS): Adjust for SHmedia literals.
18371 (PREDICATE_CODES): Added target_reg_operand.
18372 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
18373 * config/sh/sh.md: Remove all attrs from SHmedia insns.
18374 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
18375 (cmpdi): Accept SHmedia.
18376 (movdicc_false, movdicc_true): New insns.
18377 (movdicc): New expand.
18378 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
18380 (addsi3_media): Match `S' constraint.
18381 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
18382 (negdi2): Expand for SHmedia.
18383 (one_cmpldi2): New expand.
18384 (zero_extendsidi2): Change from expand to insn.
18385 (extendsidi2): Add constraints.
18386 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
18387 LD/ST address. Fix SI immediate loading split.
18388 (movhi_media, movqi_media, lduw, ldub): New insns.
18389 (movhi, movqi): Accept SHmedia.
18390 (shori_media, movdi_media): Relax input constraints. Split
18391 symbolic constants.
18392 (movdf_media, movsf_media): New insn. New split to movdi.
18393 (movdf, movsf): Match on SHmedia.
18394 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
18395 bgeu_media): New insns and splits. New insns with `_i' suffix.
18396 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
18397 (bunordered): New expand.
18398 (jump_compact): Renamed from `jump'.
18399 (jump_media): New insn.
18400 (jump): New expand.
18401 (call_media, call_value_media): New insns.
18402 (call, call_value): Adjust.
18403 (indirect_jump_compact): Renamed from `indirect_jump'.
18404 (indirect_jump_media): New insn.
18405 (indirect_jump): New expand.
18406 (untyped_call, return): Accept SHmedia.
18407 (return_media): New insn.
18408 (prologue, epilogue, blockage): Accept SHmedia.
18409 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
18410 (sunordered): New expand.
18411 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
18412 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
18413 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
18414 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
18415 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
18416 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
18417 abssf2_media): New insns.
18418 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
18419 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
18420 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
18421 floatdidf2, floatsidf2_media, fix_truncdfdi2,
18422 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
18423 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
18424 absdf2_media): New insns.
18425 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
18426 (extendsfdf2_media, truncdfsf2_media): New insns.
18427 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
18428 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
18429 * config/sh/sh.h (CONST_OK_FOR_J): Document.
18430 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
18431 * config/sh/sh.md (adddi3): New expand.
18432 (adddi3_media, adddi3z_media): New insns.
18433 (adddi3_compact): Renamed from adddi3.
18434 (addsi3_media): Use add.l r63 to add constant zero.
18435 (subdi3): New expand.
18436 (subdi3_media): New insn.
18437 (subdi3_compact): Renamed from subdi3.
18438 (mulsidi3): New expand.
18439 (mulsidi3_media): New insn.
18440 (mulsidi3_compact): Renamed from mulsidi3.
18441 (umulsidi3): New expand.
18442 (umulsidi3_media): New insn.
18443 (umulsidi3_compact): Renamed from umulsidi3.
18444 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
18445 (ashlsi3, ashrsi3, lshrsi3): Use them.
18446 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
18447 (ashldi3, ashrdi3, lshrdi3): Use them.
18448 (zero_extendsidi2): New expand.
18449 (extendsidi2): New insn.
18450 (movsi_media): New insn. Split to movdi to load constants.
18451 (movsi): Enable for shmedia.
18452 (movdi_media): New insn. Use shori_media to load wide constants.
18453 (short_media): New insn.
18454 (movdi): Enable for shmedia.
18455 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
18456 * config/sh/sh.h (CPP_SPEC): Added `m5'.
18457 (SUBTARGET_CPP_SPEC): Added `!m5'.
18458 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
18459 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
18460 to all other SH variants.
18461 (TARGET_DEFAULT): Set to SH1_BIT.
18462 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
18463 (BITS_PER_WORD): Raise to 64 on shmedia.
18464 (MAX_BITS_PER_WORD): Change to 64.
18465 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
18466 (INT_TYPE_SIZE): Keep as 32.
18467 (UNITS_PER_WORD): Raise to 8 on shmedia.
18468 (MIN_UNITS_PER_WORD): Keep as 4.
18469 (POINTER_SIZE): Raise to 64 on shmedia.
18470 (CONST_OK_FOR_J): New macro.
18471 (CONST_OK_FOR_LETTER_P): Use it.
18472 (processor_type): Add PROCESSOR_SH5.
18473 * config/sh/sh.md: Conditionalize all expands, insns and
18474 splits to TARGET_SH1.
18476 (addsi3_compact): Renamed from...
18477 (addsi3): Now an expand.
18478 (addsi3_media, subsi3_media): New insns.
18479 (subsi3): Don't negate constants with SHmedia.
18481 * hooks.c: New file.
18482 * hooks.h: New file.
18483 * Makefile.in (HOOKS_H): New.
18484 (TARGET_DEF_H): Added $(HOOKS_H).
18485 (OBJS): Added hooks.o.
18486 (cfgcleanup.o, bb-reorder.o): Added target.h.
18487 (hooks.o): Added dependencies.
18488 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
18489 (TARGET_INITIALIZER): this.
18490 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
18491 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
18492 * bb-reorder.c: Include target.h.
18493 (reorder_basic_blocks): Skip if cannot modify jumps.
18494 * cfgcleanup.c: Include target.h.
18495 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
18497 2002-02-08 Chris Demetriou <cgd@broadcom.com>
18499 * config/mips/mips.md (casesi_internal, casesi_internal_di):
18500 Protect jump delay slot instructions with .set noreorder and
18503 2002-02-08 Chris Demetriou <cgd@broadcom.com>
18505 * config/mips/mips.md (casesi_internal_di): Calculate
18506 the index into the target offset table correctly.
18508 2002-02-08 Richard Henderson <rth@redhat.com>
18510 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
18511 * final.c (output_addr_const): Accept and discard SUBREG.
18512 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
18513 mark them unknown instead.
18514 (simplify_subtraction): Handle RTX_UNKNOWN.
18515 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
18517 2002-02-08 David Edelsohn <edelsohn@gnu.org>
18519 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
18521 2002-02-08 Richard Henderson <rth@redhat.com>
18523 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
18525 2002-02-08 Andreas Jaeger <aj@suse.de>
18527 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
18528 * config/i386/t-linux64: New file.
18530 2002-02-08 Jakub Jelinek <jakub@redhat.com>
18532 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
18533 * c-parse.in (compstmt): Clear last_expr_type.
18535 2002-02-07 Richard Henderson <rth@redhat.com>
18537 * loop.c (strength_reduce): Sink final_value when not
18540 2002-02-07 David O'Brien <obrien@FreeBSD.org>
18542 * config/sparc/freebsd.h: Fix mismatched spec {.
18544 2002-02-07 Richard Henderson <rth@redhat.com>
18546 * cfgrtl.c: Include recog.h and insn-config.h.
18547 (keep_with_call_p): Fix general_operand invocation.
18548 * Makefile.in (cfgrtl.o): Update dependencies.
18550 2002-02-07 Kazu Hirata <kazu@hxi.com>
18552 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
18553 comment. Accept HImode only if TARGET_H8300.
18555 2002-02-07 Eric Christopher <echristo@redhat.com>
18557 * config/mips/crtn.asm: Cleanup #ifdefs.
18559 2002-02-07 Eric Christopher <echristo@redhat.com>
18561 * config/mips/crti.asm: Add changes for mips16. mips16 uses
18562 register 7 as RA instead of $31.
18563 * config/mips/crtn.asm: Ditto.
18564 * config/mips/mips.c (mips_move_2words): Add case for
18565 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
18566 (compute_frame_size): Fix typo.
18567 (save_restore_insns): Ditto. Make documentation about using
18568 register $7 as return register more precise.
18569 (mips_expand_epilogue): Fix comment. Add code to work around not
18570 being able to add to the stack pointer directly.
18571 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
18572 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
18575 2002-02-07 Tom Rix <trix@redhat.com>
18577 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
18578 immediates in ldu and stdu DS opcode field.
18579 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
18580 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
18581 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
18583 2002-02-07 Jeff Sturm <jsturm@one-point.com>
18585 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
18586 offset for stack bias.
18588 2002-02-07 H.J. Lu <hjl@gnu.org>
18590 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
18592 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
18594 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
18596 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
18598 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
18599 * i386.c (x86_order_regs_for_local_alloc): New global function.
18600 * i386.h (REG_ALLOC_ORDER): CLeanup.
18601 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
18603 2002-02-07 Richard Henderson <rth@redhat.com>
18605 PR optimization/2463
18606 * alias.c (find_base_value): Recall base values for fixed hard regs.
18607 * loop.c (loop_regs_update): Don't use single_set on non-insns.
18609 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
18611 * config/mips/mips.md (define_delay) [mips16]: Adjust required
18614 2002-02-06 Richard Henderson <rth@redhat.com>
18617 * stmt.c (resolve_operand_name_1): Take more care with mixed
18618 named and unnamed operands.
18620 2002-02-06 Janis Johnson <janis187@us.ibm.com>
18621 Jan Hubicka <jh@suse.cz>
18623 * loop.c (remove_constant_addition): Avoid clobbering a shared
18626 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
18628 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
18629 * config/s390/t-linux64: New file.
18630 * config/s390/libgcc-glibc.ver: New file.
18632 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
18634 * config/s390/linux64.h: Delete file.
18635 * config/s390/s390x.h: New file.
18636 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
18637 as target header file.
18638 * config/s390/linux.h (TARGET_VERSION): Define depending on
18639 DEFAULT_TARGET_64BIT.
18640 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
18641 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
18642 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
18643 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
18644 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
18645 (EXTRA_SPEC): New define.
18646 * config/s390/s390.h (TARGET_VERSION): Define depending on
18647 DEFAULT_TARGET_64BIT.
18648 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
18650 2002-02-06 Jason Merrill <jason@redhat.com>
18652 * c-decl.c (finish_function): Warn about a non-void function with
18653 no return statement and no abnormal exit.
18654 (current_function_returns_abnormally): New variable.
18655 (start_function): Clear it.
18656 (struct c_language_function): Add returns_abnormally.
18657 (push_c_function_context): Save it.
18658 (pop_c_function_context): Restore it.
18659 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
18660 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
18661 an explicit return type.
18662 * c-tree.h: Declare current_function_returns_abnormally.
18663 (C_FUNCTION_IMPLICIT_INT): New macro.
18664 * c-typeck.c (build_function_call): Set it.
18665 (c_expand_return): Set current_function_returns_value even if the
18666 value is erroneous.
18668 2002-02-06 Jakub Jelinek <jakub@redhat.com>
18671 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
18672 unsafe for reevaluation.
18674 2002-02-06 Jakub Jelinek <jakub@redhat.com>
18677 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
18678 EXPR_STMT, but COMPOUND_STMT, recurse into it.
18680 2002-02-06 Richard Henderson <rth@redhat.com>
18682 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
18683 be a general_operand. Dest for function value must be a pseudo.
18685 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
18687 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
18688 as SYMBOL_REFs from the constant pool.
18690 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
18692 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
18693 passed by invisible reference.
18695 2002-02-05 Richard Henderson <rth@redhat.com>
18697 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
18699 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
18701 Implement using "base addresses" in insn operands as default.
18702 * config/mmix/mmix.c (mmix_conditional_register_usage): if
18703 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
18704 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
18705 used to read the rtx value.
18706 (mmix_target_asm_function_epilogue): Fix spacing.
18707 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
18708 (mmix_legitimate_address): Ditto.
18709 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
18710 should be loaded with a GETA insn. Don't allocate needless extra
18711 char for nul termination and fix misleading comment.
18712 (mmix_print_operand_address): Handle constants if
18713 TARGET_BASE_ADDRESSES.
18714 (mmix_output_register_setting): Use base addressing if
18715 TARGET_BASE_ADDRESSES and the number of insns is 3.
18716 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
18717 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
18718 to use R as constraint, add LDA to match s.
18719 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
18720 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
18721 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
18722 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
18723 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
18724 order with other fixed registers.
18725 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
18726 other parameter/call-clobbered registers.
18727 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
18728 -mbase-addresses, -mno-base-addresses.
18729 (MMIX Options): Ditto.
18731 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
18733 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
18735 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
18737 * config/rs6000/altivec.h: Change elem to _S_elem.
18739 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
18741 * config/netbsd.h (WCHAR_TYPE): Define.
18742 (WCHAR_TYPE_SIZE): Ditto.
18743 (WINT_TYPE): Ditto.
18744 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
18745 (WCHAR_UNSIGNED): Ditto.
18746 (WCHAR_TYPE_SIZE): Ditto.
18747 (WINT_TYPE): Ditto.
18748 * config/arm/netbsd.h: Likewise.
18749 * config/i386/netbsd-elf.h: Likewise.
18750 * config/i386/netbsd.h: Likewise.
18751 * config/m68k/netbsd-elf.h: Likewise.
18752 * config/m68k/netbsd.h: Likewise.
18753 * config/ns32k/netbsd.h: Likewise.
18754 * config/sparc/netbsd.h: Likewise.
18755 * config/vax/netbsd.: Likewise.
18757 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
18759 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
18760 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
18761 (TARGET_INITIALIZER): this.
18762 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
18763 (BITFIELD_NBYTES_LIMITED): Markup fix.
18764 * tree.h (default_ms_bitfield_layout_p): Declare.
18765 (record_layout_info): Added prev_field.
18766 * tree.c (default_ms_bitfield_layout_p): New fn.
18767 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
18768 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
18769 * stor-layout.c: Include target.h.
18770 (start_record_layout): Initialize prev_field.
18771 (place_field): Handle MS bit-field layout, and disregard
18772 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
18773 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
18774 * Makefile.in (stor-layout.o): Adjust dependencies.
18776 2002-02-05 Jason Merrill <jason@redhat.com>
18778 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
18780 2002-02-05 Andreas Jaeger <aj@suse.de>
18782 * crtstuff.c: Fix comments.
18784 2002-02-05 Richard Henderson <rth@redhat.com>
18787 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
18788 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
18791 * config/mips/mips.c (function_arg): Handle TImode.
18792 (function_arg_advance): Likewise.
18794 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18796 * config/rs6000/altivec.h (vec_step_help): Rename to
18799 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18801 * config/rs6000/altivec.h: Fix typos.
18803 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
18805 * config/arm/netbsd.h: Correct a comment.
18807 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18809 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
18810 building void typed builtins.
18812 * config/rs6000/altivec.h (vec_ld*): Fix typos.
18813 (vec_step): Implement for C++.
18815 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18817 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
18819 2002-02-04 Richard Henderson <rth@redhat.com>
18821 * combine.c (nonzero_bits): Re-introduce special case for
18822 sp/fp/ap wrt REGNO_POINTER_ALIGN.
18824 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
18826 * doc/extend.texi: Warn about unsupported usage of altivec
18829 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18830 (altivec_predicate_*): New.
18832 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18833 Add C++ version of vec_*() functions.
18835 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18836 (bdesc_2arg): Remove altivec predicates.
18837 (altivec_expand_builtin): Handle predicates.
18838 (altivec_init_builtins): Handle predicates.
18839 (altivec_expand_predicate_builtin): New.
18841 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18843 * pa.c (DO_FRAME_NOTES): Move forward.
18844 (store_reg): Revise handling of frame notes.
18845 (load_reg): Likewise.
18846 (set_reg_plus_d): Likewise.
18847 (hppa_expand_prologue): Likewise.
18848 (hppa_expand_epilogue): Likewise.
18850 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18852 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18854 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18856 PR c/4475, c++/3780:
18857 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18858 * c-common.h (SWITCH_TYPE): Define.
18859 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18860 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18861 Rename spareness variable to sparseness.
18862 (expand_end_case_type): Renamed from expand_end_case, use orig_type
18863 if non-NULL instead of TREE_TYPE (orig_index).
18864 * tree.h (expand_end_case_type): Renamed from expand_end_case.
18865 (expand_end_case): Define using expand_end_case_type.
18866 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18867 to expand_end_case_type.
18868 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18870 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18872 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18873 (BIGGEST_ALIGNMENT): Change to 128.
18875 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18877 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18879 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
18881 * pa.md (call_internal_reg_64bit): Remove unused variable.
18883 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
18885 * config/arm/arm.h (machine_function): Add uses_anonymous_args
18887 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18888 * config/arm/arm.c (current_function_anonymous_args): Delete,
18889 replace uses with cfun->machine->uses_anonymous_args.
18890 (arm_reorg): Do not reset uses_anonymous_args.
18892 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18893 any geenral register.
18895 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
18897 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18900 2002-02-04 Richard Henderson <rth@redhat.com>
18902 * combine.c (force_to_mode): Remove STACK_BIAS code.
18903 (nonzero_bits): Likewise. Replace sp/fp special case with
18904 REGNO_POINTER_ALIGN.
18906 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18907 (HARD_FRAME_POINTER_REGNUM): New.
18908 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18909 (FIXED_REGS, CALL_USED_REGS): Update.
18910 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18911 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18912 (HARD_REGNO_NREGS): Update for SFP.
18913 (STACK_POINTER_OFFSET): Include bias here ...
18914 (FIRST_PARM_OFFSET): ... not here.
18915 (STACK_BIAS): Remove.
18916 (INIT_EXPANDERS): New.
18917 (STARTING_FRAME_OFFSET): Do not include bias.
18918 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18919 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18920 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18921 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18922 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18923 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18924 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18925 (MUST_SAVE_REGISTER): Likewise.
18926 (sparc_flat_function_prologue): Likewise.
18927 (sparc_flat_function_epilogue): Likewise.
18928 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18929 (sparc_init_modes): SFP is GENERAL_REGS.
18930 (sparc_builtin_saveregs): SFP does not have bias applied.
18932 2002-02-04 Richard Henderson <rth@redhat.com>
18934 * config/alpha/alpha.c (current_function_is_thunk): Don't check
18935 current_function_is_thunk.
18936 (alpha_sa_mask): Distinguish between current_function_is_thunk
18937 called from ASM_OUTPUT_MI_THUNK and not.
18938 (alpha_does_function_need_gp): Thunks always need gp.
18939 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18940 (alpha_output_mi_thunk_osf): New.
18941 * config/alpha/alpha-protos.h: Update.
18942 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18944 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
18946 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18947 function types, not when they're taken away.
18949 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
18951 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18952 CODE_LABEL and jump table when replacing a table jump with a
18955 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18957 * config/s390/s390-protos.h (legitimize_la_operand,
18958 s390_secondary_input_reload_class, s390_plus_operand,
18959 s390_expand_plus_operand): Add prototypes.
18961 config/s390/s390.c (s390_secondary_input_reload_class,
18962 s390_plus_operand, s390_expand_plus_operand): New functions.
18964 (struct s390_address): New member 'pointer'.
18965 (s390_decompose_address): Compute it.
18966 (legitimate_la_operand_p): Use it.
18967 (legitimize_la_operand): New function.
18968 (movti, movdi, movdf splitters): Call it.
18970 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18971 (PREDICATE_CODES): Add s390_plus_operand.
18973 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18974 (la_ccclobber): Allow GENERAL_REGS as output operand.
18976 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18977 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18978 (*la_64, *la_31, reload_indi, reload_insi): ... these.
18980 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18982 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18983 register names for regular asm () construct.
18985 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18987 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18990 2002-02-04 Jakub Jelinek <jakub@redhat.com>
18992 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18995 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
18997 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18998 constant pool to be identical by string address and index.
19000 2002-02-04 Anthony Green <green@redhat.com>
19002 * output.h (SECTION_OVERRIDE): Define.
19003 * varasm.c (named_section): Obey SECTION_OVERRIDE.
19005 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19007 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
19008 by existing arm*-*-netbsd* (a.out) target.
19009 (ns32k-*-netbsdelf*): Likewise.
19010 (sparc-*-netbsdelf*): Likewise.
19011 (vax-*-netbsdelf*): Likewise.
19013 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
19015 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
19016 headers and libobjc headers.
19018 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
19020 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
19021 (_mingw.h): Remove duplicate include.
19023 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
19025 * config.gcc: Set cpu_type to m68k for 68010, as well.
19026 (m68010-*-netbsdelf*): New...
19027 (m68k*-*-netbsdelf*): ...targets.
19028 * config/m68k/netbsd-elf.h: New file.
19030 2002-02-02 Kazu Hirata <kazu@hxi.com>
19032 * config/h8300/h8300.c (hand_list): Move inside function_arg.
19034 2002-02-02 Kazu Hirata <kazu@hxi.com>
19036 * config/h8300/h8300.c (h8_push_ops): Move inside
19038 (h8_pop_ops): Likewise.
19039 (h8_move_ops): Likewise.
19041 2002-02-02 Kazu Hirata <kazu@hxi.com>
19043 * config/h8300/h8300.c (os_task): Make it static.
19044 (monitor): Likewise.
19045 (pragma_saveall): Likewise.
19047 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
19049 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
19050 constant is a valid sign-extension for Pmode.
19052 2002-02-02 Kazu Hirata <kazu@hxi.com>
19054 * config/h8300/h8300.c: Fix formatting.
19056 2002-02-02 Kazu Hirata <kazu@hxi.com>
19058 * config/h8300/h8300.md: Fix formatting.
19060 2002-02-02 Kazu Hirata <kazu@hxi.com>
19062 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
19063 predicates of operands[1]. Split the patterns for each
19066 2002-02-02 Kazu Hirata <kazu@hxi.com>
19068 * config/h8300/h8300.md (xor patterns): Tighten the predicates
19069 of operands[1] to register_operand.
19071 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
19073 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
19074 * cpphash.c (_cpp_init_hashtable): Similarly.
19075 * cppinit.c (cpp_create_reader): Default the signed_char flag.
19076 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
19077 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
19078 (cpp_handle_option): Handle the new options.
19079 * cpplex.c (cpp_interpret_charconst): Use new flag.
19080 * cpplib.h (struct cpp_options): New member signed_char.
19081 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
19082 (cpp_options): Handle -fsigned-char and -funsigned-char.
19083 (static_specs): Remove signed_char_spec.
19084 (do_spec1): Don't handle %c.
19085 * system.h: Poison SIGNED_CHAR_SPEC.
19086 * tradcif.y (yylex): Use flag_signed_char.
19087 * tradcpp.h (flag_signed_char): New.
19088 * tradcpp.c (flag_signed_char): New.
19089 (main): Handle new command-line options.
19090 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
19092 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
19093 * avr/avr.h: Remove old comments.
19094 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
19095 (CC1_SPEC): Pass -fsigned-char if -mic*.
19096 (SIGNED_CHAR_SPEC): Remove.
19098 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
19100 2002-02-01 Eric Christopher <echristo@redhat.com>
19102 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
19103 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
19104 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
19105 (ASM_OUTPUT_REG_POP): Ditto.
19107 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
19109 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
19112 2002-02-02 Jakub Jelinek <jakub@redhat.com>
19114 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
19116 2002-02-02 Jakub Jelinek <jakub@redhat.com>
19119 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
19122 2002-02-01 Janis Johnson <janis187@us.ibm.com>
19124 * cfganal.c: Include tm_p.h.
19125 (keep_with_call_p): Fix the test that determines if a register holds
19126 the return value of a call.
19128 2002-02-01 DJ Delorie <dj@redhat.com>
19130 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
19131 we are given conflicting registers, switch to the other one we
19132 had allocated for us.
19133 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
19134 as TImode so we know when the "other" register is available.
19136 2002-02-01 David O'Brien <obrien@FreeBSD.org>
19138 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
19141 2002-02-01 Janis Johnson <janis187@us.ibm.com>
19143 * cfganal.c (keep_with_call_p): New function.
19144 (flow_call_edges_add): Prevent splitting a block between a call and
19145 a single-set instruction that should be kept in the same block.
19147 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
19149 * doc/install.texi (avr): Update outdated URL.
19151 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
19153 * config/stormy16/stormy16.md (pushqi): New.
19157 (movhi): Remove stack operands.
19159 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
19160 nonimmediate_nonstack_operand.
19161 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
19163 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
19166 2002-01-31 Jason Merrill <jason@redhat.com>
19168 * Makefile.in (c-parse.c): Handle .output file.
19169 * objc/Make-lang.in (objc-parse.c): Likewise.
19171 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
19173 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
19174 the -me[lb] option is given. Don't output the default flag
19177 2002-01-31 Zack Weinberg <zack@codesourcery.com>
19179 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
19180 the primary source file; this has not been done yet.
19181 * c-decl.c (c_expand_body): Reset input_filename from
19182 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
19184 2002-01-31 Kazu Hirata <kazu@hxi.com>
19186 * rtlanal.c (subreg_regno_offset): Do not use
19187 SUBREG_REGNO_OFFSET.
19188 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
19189 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
19191 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
19193 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
19194 version rather than GNATS version in --version output.
19196 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
19198 * ifcvt.c (noce_process_if_block): Make a copy of the destination
19199 when copying back from a temporary.
19201 2002-01-30 Richard Henderson <rth@redhat.com>
19203 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
19204 and new_dest are the same.
19206 2002-01-30 Richard Henderson <rth@redhat.com>
19209 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
19210 * rtl.c (note_insn_name): Update.
19211 * emit-rtl.c (remove_unnecessary_notes): Kill it.
19212 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
19213 to perform loop rotation.
19214 (expand_exit_loop_top_cond): New.
19215 * tree.h (expand_exit_loop_top_cond): Declare it.
19216 * c-semantics.c (genrtl_while_stmt): Use it.
19217 (genrtl_for_stmt): Likewise.
19219 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
19221 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
19222 arguments to 64-bit boundaries on 64-bit ABIs.
19224 2002-01-30 Steve Ellcey <sje@cup.hp.com>
19226 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
19228 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
19230 * c-decl.c (grokdeclarator): Handle type being a typedef for an
19233 2002-01-30 David O'Brien <obrien@FreeBSD.org>
19235 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
19236 * config/sparc/sparc_bi.h: Remove file.
19237 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
19239 2002-01-30 Richard Henderson <rth@redhat.com>
19241 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
19243 2002-01-30 Zack Weinberg <zack@codesourcery.com>
19245 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
19247 2002-01-30 Jason Merrill <jason@redhat.com>
19249 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
19250 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
19251 (reg_save): Use DW_CFA_offset_extended_sf instead.
19253 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
19255 2002-01-29 Jakub Jelinek <jakub@redhat.com>
19257 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
19260 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
19262 * rs6000.md ("*call_value_local32"): Remove constraints.
19263 ("*call_value_local64"): Same.
19264 ("*call_value_indirect_nonlocal_aix32"): Same.
19265 ("*call_value_nonlocal_aix32"): Same.
19266 ("*call_value_indirect_nonlocal_aix64"): Same.
19267 ("*call_value_nonlocal_aix64"): Same.
19268 ("*call_value_nonlocal_sysv"): Same.
19270 2002-01-29 Richard Henderson <rth@redhat.com>
19272 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
19274 2002-01-29 Richard Henderson <rth@redhat.com>
19276 * expr.c (force_operand): Ignore flag_pic for detecting pic
19278 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
19279 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
19280 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
19281 instead of open-coded loop.
19282 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
19283 be fixed when in use.
19285 2002-01-29 Richard Henderson <rth@redhat.com>
19287 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
19288 * sched-rgn.c (propagate_deps): Update them.
19289 * sched-deps.c (sched_analyze_insn): Update them. Flush the
19290 clobbers list when either gets too long.
19292 2002-01-29 Jakub Jelinek <jakub@redhat.com>
19294 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
19295 and INDEX_REGS the same as GENERAL_REGS.
19296 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
19298 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
19300 * tree.c (build_nonstandard_integer_type): Correct prototype.
19302 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
19304 * config/s390/s390.md (movstrsico, movstrdix_64,
19305 movstrsix_31): Remove, replace by ...
19306 (movstrdi_short, movstrsi_short, movstrdi_long,
19307 movstrsi_long): ... these. New.
19308 (movstrdi, movstrsi): Adapt.
19310 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
19311 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
19312 Remove unnecessary CC clobber.
19313 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
19314 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
19316 (divmoddi4): Don't partially initialize TImode register.
19318 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
19320 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
19322 2002-01-29 Richard Henderson <rth@redhat.com>
19324 * flow.c (print_rtl_and_abort): Remove.
19325 (print_rtl_and_abort_fcn): Remove.
19326 (verify_local_live_at_start): Use dump_bb instead.
19327 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
19328 (verify_wide_reg_1): Return 2 on mode test failure.
19330 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
19332 PR c/3325, c/3326, c/2511, c/3347
19333 * c-decl.c (enum_decl_context): Remove BITFIELD.
19334 (grokdeclarator): Take bitfield width as an input.
19335 Ensure bitfields are given the correct type. Perform
19336 bitfield width validation with build_bitfield_integer_type
19337 rather than waiting for finish_struct.
19338 (grok_typename, grok_typename_in_parm_context, start_decl,
19339 push_parmdecl, grokfield, start_function): Update calls to
19341 (build_bitfield_integer_type): New function.
19342 (finish_struct): Move bitfield validation to grokdeclarator
19343 and build_bitfield_integer_type.
19344 * tree.c (build_nonstandard_integer_type): New function.
19345 * tree.h (build_nonstandard_integer_type): New prototype.
19347 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
19349 2002-01-29 Jakub Jelinek <jakub@redhat.com>
19352 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
19353 don't ignore unrecognized -W* options.
19354 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
19355 * cpplib.h (cpp_handle_option): Adjust prototype.
19356 * c-decl.c (c_decode_options): Pass 0 as last argument to
19360 * gcc.c (cpp_unique_options): Split from cpp_options.
19361 (cpp_options): Source cpp_unique_options.
19362 (default_compilers): Use cpp_unique_options instead of cpp_options
19363 when used together with cc1_options.
19364 (static_specs): Add cpp_unique_options.
19365 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
19366 when used together with cc1_options.
19368 2002-01-29 Kazu Hirata <kazu@hxi.com>
19370 * config/h8300/h8300-protos.h: Update the prototype of
19372 * config/h8300/h8300.c (output_a_shift): Remove an unused
19373 argument 'insn'. Remove redundant code.
19374 * config/h8300/h8300.md: Adust to the new prototype of
19377 2002-01-29 Kazu Hirata <kazu@hxi.com>
19379 * config/h8300/h8300-protos.h: Update the prototypes of
19380 emit_a_rotate and expand_a_rotate.
19381 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
19382 first argument to 'enum rtx_code'.
19383 (expand_a_rotate): Likewise.
19385 2002-01-28 Kazu Hirata <kazu@hxi.com>
19387 * config/h8300/h8300-protos.h: Update the prototype of
19389 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
19391 * config/h8300/h8300.md: Adjust to the new prototype.
19393 2002-01-28 Kazu Hirata <kazu@hxi.com>
19395 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
19398 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
19400 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
19401 is a fixed register before returning pic_offset_table_rtx.
19402 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
19403 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
19405 2002-01-28 Jason Merrill <jason@redhat.com>
19407 * dwarf2.h: Sync with src version.
19409 2002-01-28 Paul Koning <pkoning@equallogic.com>
19411 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
19412 BT_FN_VOID_PTR_VAR.
19413 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
19414 * doc/extend.texi (__builtin_prefetch): Update documentation:
19415 first argument is now const void ptr.
19417 2002-01-28 Kazu Hirata <kazu@hxi.com>
19419 * config/h8300/h8300-protos.h: Remove an unused prototype.
19421 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
19423 * toplev.c (lang_independent_init): Round up identifier size.
19425 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
19427 * config.gcc: Revert previous change.
19429 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
19431 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
19433 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
19435 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
19436 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
19437 other non-elf netbsd config frags.
19438 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
19439 collect2 will does that.
19440 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
19441 shared-lib frobbing will work.
19443 2002-01-28 Kazu Hirata <kazu@hxi.com>
19445 * config/h8300/h8300.h: Fix formatting.
19446 * config/h8300/h8300.md: Likewise.
19448 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
19450 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
19451 the old, removed AAA_standards fix.
19452 * fixinc/fixincl.x: Rebuilt.
19454 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
19456 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
19457 atexit call in crtbegin, hooked in after call to frame_dummy;
19458 register EH before registering __fini__start.
19460 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
19462 * config/rs6000/altivec.h: Remove spurious semicolons.
19464 2002-01-27 Kazu Hirata <kazu@hxi.com>
19466 * config/h8300/h8300.md: Replace dead bit extraction patterns
19467 with ones that work.
19469 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19471 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
19472 if not STRICT_ALIGNMENT.
19473 * rtl.h (MEM_ALIGN): Likewise.
19475 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
19477 * doc/invoke.texi (-fdump-translation-unit): Revert this
19478 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
19480 2002-01-27 Kazu Hirata <kazu@hxi.com>
19482 * config/h8300/h8300.md (define_constants): New.
19483 (anonymous patterns) Use defined constants appropriately.
19485 2002-01-27 Kazu Hirata <kazu@hxi.com>
19487 * config/h8300/h8300.c (function_arg): Remove redundant code.
19489 2002-01-26 Richard Henderson <rth@redhat.com>
19491 * sched-deps.c (reg_pending_uses_head): New.
19492 (reg_pending_barrier): Rename from reg_pending_sets_all.
19493 (find_insn_list): Don't mark inline.
19494 (find_insn_mem_list): Remove.
19495 (add_dependence_list, add_dependence_list_and_free): New.
19496 (flush_pending_lists): Replace only_write param with separate
19497 for_read and for_write parameters. Update all callers. Use
19498 add_dependence_list_and_free.
19499 (sched_analyze_1): Do not add reg dependencies here; just set
19500 the pending bits. Use add_dependence_list.
19501 (sched_analyze_2): Likewise.
19502 (sched_analyze_insn): Replace schedule_barrier_found with
19503 reg_pending_barrier. Add all dependencies for pending reg
19504 uses, sets, and clobbers.
19505 (sched_analyze): Don't add reg dependencies for calls, just
19506 set pending bits. Use regs_invalidated_by_call. Treat
19507 sched_before_next_call as a normal list, not a fake insn.
19508 (init_deps): No funny init for sched_before_next_call.
19509 (free_deps): Free pending mems lists. Don't zero reg_last.
19510 (init_deps_global): Init reg_pending_uses.
19511 (finish_deps_global): Free it.
19512 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
19513 (find_insn_mem_list): Remove.
19514 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
19515 (propagate_deps): Use them. Zero temp mem lists.
19517 2002-01-26 Richard Henderson <rth@redhat.com>
19519 * Makefile.in (CRTSTUFF_CFLAGS): New.
19520 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
19521 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
19522 crtstuff.c instead of alpha assembly version.
19523 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
19524 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
19525 not FORCE_{INIT,FINI}_SECTION_ALIGN.
19526 (__do_global_dtors_aux): Mark used.
19527 (frame_dummy, __do_global_ctors_aux): Mark used.
19528 (fini_dummy, init_dummy): Remove.
19530 * config/alpha/crtbegin.asm: Remove file.
19531 * config/alpha/crtend.asm: Remove file.
19532 * config/alpha/t-crtbe: Remove file.
19533 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
19534 (LINK_EH_SPEC): New.
19536 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
19537 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
19538 calling constructors.
19539 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
19541 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
19542 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
19543 CRT_END_INIT_DUMMY hack.
19544 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
19545 FORCE_{INIT,FINI}_SECTION_ALIGN.
19547 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
19548 FORCE_{INIT,FINI}_SECTION_ALIGN.
19550 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
19551 invocation sequence.
19552 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
19554 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
19555 (FORCE_CODE_SECTION_ALIGN): New.
19557 2002-01-26 Richard Henderson <rth@redhat.com>
19559 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
19561 2002-01-26 Richard Henderson <rth@redhat.com>
19563 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
19564 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
19566 2002-01-26 Kazu Hirata <kazu@hxi.com>
19568 * config/h8300/h8300.md: Remove bit extraction patterns that
19569 cannot be triggered.
19570 Restrict each bit extraction pattern to a variant on which the
19573 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
19575 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
19577 2002-01-26 Kazu Hirata <kazu@hxi.com>
19579 * config/h8300/h8300.md: Remove bit test patterns that cannot
19581 Restrict each bit test pattern to a variant on which the
19584 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19586 * builtins.c (expand_builtin_strncat): Remove redundant check for
19589 2002-01-25 David O'Brien <obrien@FreeBSD.org>
19591 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
19593 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
19596 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
19598 * dbxout.c (dbxout_init): Use assemble_name rather than just
19599 stripping off the first character.
19600 (dbxout_source_file): Likewise.
19602 2002-01-25 DJ Delorie <dj@redhat.com>
19604 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
19605 using rtx_equal_p, not by comparing pointers.
19607 2002-01-25 Steve Ellcey <sje@cup.hp.com>
19609 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
19610 for PIC_OFFSET_TABLE_REGNUM.
19611 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
19613 2002-01-25 David O'Brien <obrien@FreeBSD.org>
19615 * config.gcc (x86_64-*-freebsd*): New target.
19616 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
19618 (i[34567]86-*-freebsd*): Don't include svr4.h.
19619 * config/i386/freebsd64.h: New file.
19621 2002-01-25 Douglas B Rupp <rupp@gnat.com>
19623 * config/alpha/x-vms (version): Make static.
19625 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
19626 in previous checkin.
19628 * Makefile.in (install-headers-cp): New target.
19629 * config.gcc (alpha-dec-*vms*): Install headers with
19632 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
19634 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
19637 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19639 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
19640 of compare_tree_int.
19641 (expand_builtin_strncat): Likewise.
19642 * c-decl.c (finish_struct): Use tree_low_cst.
19643 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
19644 * tree.c (compare_tree_int): Likewise.
19646 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
19648 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
19649 adjustments even if they are implemented by more than two insns.
19651 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
19653 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
19654 * df.h (struct ref): Kill B.
19655 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
19657 * basic-block.h (PROP_EQUAL_NOTES): New flag.
19658 * flow.c (propagate_one_insn): Use it.
19659 (mark_used_regs): Handle NIL.
19661 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
19663 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
19666 2002-01-25 David Edelsohn <edelsohn@gnu.org>
19668 * rs6000.md (prefetch): Make address V4SI mode so that the address
19669 is restricted to legitimate form for instruction.
19671 2002-01-25 Bob Wilson <bob.wilson@acm.org>
19673 * doc/install.texi (xtensa-*-elf): New target.
19674 (xtensa-*-linux*): New target.
19675 * doc/contrib.texi: Add myself.
19677 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
19679 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
19680 purpose register to hold an SImode (or smaller) value.
19682 2002-01-25 Jakub Jelinek <jakub@redhat.com>
19684 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
19686 * crtstuff.c: Likewise.
19688 2002-01-25 Kazu Hirata <kazu@hxi.com>
19690 * config/h8300/h8300.md (negation patterns): Tighten
19691 predicates to register_operand.
19693 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
19695 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
19698 * builtins.c (expand_builtin_prefetch): Same.
19700 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19702 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
19705 2002-01-24 Kazu Hirata <kazu@hxi.com>
19707 * config/h8300/h8300.c (print_operand): Remove support for
19708 operand character 'A'.
19709 * config/h8300/h8300.md (three anonymous patterns): Replace
19710 operand character 'A' with either 'T' or 'S'.
19712 2002-01-24 Kazu Hirata <kazu@hxi.com>
19714 * config/h8300/h8300.c (print_operand): Remove support for
19715 operand character 'U'.
19717 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
19719 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
19721 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
19723 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
19724 values to be assigned to the stack pointer.
19726 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
19728 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
19729 to const_double needs to be done right for big-endian systems.
19731 2002-01-24 Jason Merrill <jason@redhat.com>
19734 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
19735 to can_throw_internal.
19737 2002-01-23 Richard Henderson <rth@redhat.com>
19739 * fold-const.c (fold): Change UINT_MAX test to check vs precision
19740 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
19742 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19744 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
19745 (symGOT2reg): Use them, then set as GOT value as unchanging.
19746 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
19747 as a temporary, if possible.
19748 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
19749 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
19751 2002-01-23 Kazu Hirata <kazu@hxi.com>
19753 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
19754 accept to accept 0x80 as operands[2].
19756 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
19758 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
19760 2002-01-23 Richard Henderson <rth@redhat.com>
19762 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
19764 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
19766 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
19767 (parmlist_or_identifiers_1): Verify that only a parmlist follows
19770 2002-01-23 Richard Henderson <rth@redhat.com>
19772 * expr.c (move_by_pieces_1): Extend size before negation.
19774 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
19775 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
19776 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
19777 * config/m68k/t-m68kelf: Likewise.
19779 2002-01-23 Bob Wilson <bob.wilson@acm.org>
19781 * config/xtensa/elf.h: New file.
19782 * config/xtensa/lib1funcs.asm: New file.
19783 * config/xtensa/lib2funcs.S: New file.
19784 * config/xtensa/linux.h: New file.
19785 * config/xtensa/t-xtensa: New file.
19786 * config/xtensa/xtensa-config.h: New file.
19787 * config/xtensa/xtensa-protos.h: New file.
19788 * config/xtensa/xtensa.c: New file.
19789 * config/xtensa/xtensa.h: New file.
19790 * config/xtensa/xtensa.md: New file.
19791 * config.gcc (xtensa-*-elf*): New target.
19792 (xtensa-*-linux*): New target.
19793 * cse.c (canon_hash): Compare rtx pointers instead of register
19794 numbers. This is required for the Xtensa port.
19795 * integrate.c (copy_insn_list): Handle case where the static
19796 chain is in memory and the memory address has to be copied to
19798 * doc/invoke.texi (Option Summary): Add Xtensa options.
19799 (Xtensa Options): New node.
19800 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
19802 2002-01-23 Zack Weinberg <zack@codesourcery.com>
19804 * diagnostic.c (internal_error): Do ICE suppression only
19805 when ENABLE_CHECKING is not defined.
19807 * c-typeck.c (require_complete_type): Return error_mark_node
19808 if type is error_mark_node.
19810 2002-01-23 Janis Johnson <janis187@us.ibm.com>
19812 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
19813 -Os and issue a warning.
19815 2002-01-23 Zack Weinberg <zack@codesourcery.com>
19817 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
19818 current (lack of) need for host configuration by hand.
19820 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
19821 references. Documentation of some target macros moved from
19822 hostconfig.texi to tm.texi.
19824 2002-01-23 Will Cohen <wcohen@redhat.com>
19826 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
19829 2002-01-23 Kazu Hirata <kazu@hxi.com>
19831 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19834 2002-01-23 Jason Merrill <jason@redhat.com>
19836 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19838 * function.c (assign_parms): Don't put args of inline functions
19839 into registers when not optimizing.
19841 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
19843 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19844 (prologue_use): New pattern.
19845 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19846 preference to gen_rtx_USE.
19847 (thumb_expand_prologue): Use gen_prologue_use in preference to
19849 (thumb_expand_epilogue): Use gen_prologue_use in preference to
19852 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
19854 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19856 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
19859 * doc/extend.texi: Correct documentation of __alignof__.
19861 2002-01-22 Zack Weinberg <zack@codesourcery.com>
19863 * params.h: Rename arguments of DEFPARAM so that it will be
19864 recognized as a translation keyword.
19866 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19868 * extend.texi: Document altivec functions.
19869 Fix N-bit adjectives in X86 builtin documentation.
19871 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
19873 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19874 auto_inc_dec values.
19876 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
19878 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19880 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19882 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
19884 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19886 2002-01-22 Richard Henderson <rth@redhat.com>
19888 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19889 copy_insn not copy_rtx.
19891 2002-01-23 Alan Modra <amodra@bigpond.net.au>
19893 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19894 "nonzero" as that might add "1" bits. Ensure "constop" is
19895 properly sign extened.
19896 (force_to_mode): Tweak for sign extended constop.
19898 2002-01-22 Richard Henderson <rth@redhat.com>
19900 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19901 for_each_rtx instead of assuming we're already looking at the MEM.
19902 (split_small_symbolic_mem_operand): Likewise.
19903 * config/alpha/alpha.h (PREDICATE_CODES): Update.
19904 * config/alpha/alpha.md (small symbolic memory splitters): Update.
19906 2002-01-22 Richard Henderson <rth@redhat.com>
19908 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19909 sequence number for the literal.
19910 (divmoddi_internal_er): Likewise.
19912 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
19915 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19916 in LIBICONV variable.
19917 * configure: Regenerated.
19919 2002-01-22 Krister Walfridsson <cato@df.lth.se>
19921 * dependence.c (build_def_use): Remove array_idx.
19923 * dwarfout.c (last_filename): Remove.
19924 (output_compile_unit_die): Remove last_filename.
19926 2002-01-22 Roger Sayle <roger@eyesopen.com>
19927 Richard Henderson <rth@redhat.com>
19930 * fold-const.c (fold): Optimize unsigned comparisons against
19931 UINT_MAX (and similar unsigned constants).
19933 2002-01-22 Janis Johnson <janis187@us.ibm.com>
19935 * Makefile.in (loop.o): Depend on OPTABS_H.
19936 * loop.c (emit_prefetch_instructions): Check the prefetch operand
19937 against the predicate.
19940 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19941 for the address operand.
19943 2002-01-22 Richard Henderson <rth@redhat.com>
19945 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19947 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
19950 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19951 preprocessor flags.
19953 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
19955 * config.gcc (x86_64-*-netbsd*): New target.
19956 * config/i386/netbsd64.h: New file.
19958 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19960 * regrename.c (kill_value): Fix typo.
19962 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
19964 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19966 * config/rs6000/rs6000.h: Same.
19968 * function.c (instantiate_virtual_regs): Remove
19969 STARTING_FRAME_PHASE.
19970 (assign_stack_local_1): Same.
19971 Calculate frame phase.
19973 2002-01-22 Nick Clifton <nickc@redhat.com>
19975 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19976 variable declaration to outer scope in order to simplify
19978 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19979 arm_hard_regno_mode_ok.
19980 * config/arm/arm-protos.h: Add a prototype for
19981 arm_hard_regno_mode_ok.
19982 * config/arm/arm.c (soft_df_operand): Remove now redundant
19983 check for DImode values using IP_REGNUM.
19984 (nonimmediate_soft_df_operand): Remove now redundant check for
19985 DImode values using IP_REGNUM.
19986 (arm_hard_regno_mode_ok): New function. New check: make sure
19987 that DImode values are not stored in IP_REGNUM.
19989 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19991 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19993 2002-01-22 Jason Merrill <jason@redhat.com>
19995 * c-semantics.c (genrtl_compound_stmt): Only check nesting
19996 consistency if this COMPOUND_STMT is scoped.
19998 2002-01-22 Kazu Hirata <kazu@hxi.com>
20000 * predict.c: Fix formatting.
20001 * print-tree.c: Likewise.
20002 * protoize.c: Likewise.
20003 * real.h: Likewise.
20005 * sbitmap.h: Likewise.
20006 * scan.c: Likewise.
20007 * sched-deps.c: Likewise.
20008 * sched-vis.c: Likewise.
20009 * sdbout.c: Likewise.
20010 * sibcall.c: Likewise.
20012 * ssa-ccp.c: Likewise.
20013 * ssa-dce.c: Likewise.
20014 * stmt.c: Likewise.
20015 * stor-layout.c: Likewise.
20016 * system.h: Likewise.
20018 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20020 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
20021 if fits in bounds of base type.
20023 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
20024 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
20025 (add_bound_info, default): If can't find a context, make a
20027 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
20029 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
20031 * c-typeck.c (parser_build_binary_op): If result from
20032 build_binary_op is ERROR_MARK just return error_mark_node without
20033 further processing.
20035 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
20037 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
20038 Split a.out-specific bits into...
20039 * config/netbsd-aout.h: ...this.
20040 * config/netbsd-elf.h: New file.
20041 * config/alpha/netbsd-elf.h: Remove.
20042 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
20043 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
20044 (STARTFILE_SPEC): Remove redundant definition.
20045 (ENDFILE_SPEC): Likewise.
20046 (LINK_SPEC): Likewise.
20047 (CPP_SPEC): Likewise.
20048 (ASM_SPEC): Likewise.
20049 (LIB_SPEC): Likewise.
20050 (SWITCH_TAKES_ARG): Likewise.
20051 (TARGET_MEM_FUNCTIONS): Likewise.
20052 (CPP_PREDEFINES): Redefine.
20053 (ASM_FINAL_SPEC): Remove redefinition.
20054 (ASM_COMMENT_START): Redefine.
20055 (FUNCTION_PROFILER): Define.
20056 (TARGET_VERSION): Redefine.
20057 Comment and formatting cleanup.
20058 * config/i386/netbsd.h: Include <netbsd-aout.h>.
20059 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
20060 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
20061 big- or little-endian.
20062 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
20063 * config.gcc (*-*-netbsd*): Add definitions common to all
20065 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
20066 gnu_ld definitions. Add netbsd-elf.h to and remove
20067 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
20068 tmake_file, and don't lose previous tmake_file contents.
20069 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
20070 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
20071 gnu_ld definitions. Add netbsd-elf.h to tm_file.
20072 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
20073 (mipsel-*-netbsd*): Rename this to...
20074 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
20075 mips/little.h to tm_file for mips*el-*.
20076 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
20077 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
20078 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
20080 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20082 * pa-protos.h (reg_before_reload_operand): New function prototype.
20083 * pa.c (reg_before_reload_operand): New function implementation.
20084 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
20085 contraints to "*m".
20087 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20089 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
20091 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
20093 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
20094 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
20095 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
20096 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
20097 (ENDFILE_SPEC): Undefine.
20098 (STARTFILE_SPEC): Redefine for PA.
20100 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
20102 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
20104 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
20106 * config.gcc: Add entries to supported PowerPC --with-cpu
20109 2002-01-21 Jakub Jelinek <jakub@redhat.com>
20111 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
20112 true for 64-bit mode only SSE registers in 32-bit mode.
20114 2002-01-21 Kazu Hirata <kazu@hxi.com>
20116 * unwind-dw2.c: Fix formatting.
20117 * unwind-dw2-fde.c: Likewise.
20118 * unwind-dw2-fde.h: Likewise.
20119 * unwind-pe.h: Likewise.
20120 * varasm.c: Likewise.
20121 * varray.h: Likewise.
20123 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
20125 Remove workaround for register stack overwrite bug in mmix.
20126 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
20127 support for TARGET_REG_STACK_FILL_BUG.
20128 * config/mmix/mmix.h: Remove member has_call_without_parameters.
20129 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
20131 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
20132 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
20133 -mno-reg-stack-fill-bug-workaround.
20134 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
20135 machine member has_call_without_parameters.
20136 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
20137 -mreg-stack-fill-bug-workaround and
20138 -mno-reg-stack-fill-bug-workaround.
20139 (MMIX Options): Ditto.
20141 2002-01-21 Kazu Hirata <kazu@hxi.com>
20143 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
20145 Remove redundant code.
20147 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
20149 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
20150 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
20151 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
20152 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
20153 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
20154 out target macro definitions and non-target-specific comments
20155 mostly taken from old versions of the manual.
20157 2002-01-20 Kazu Hirata <kazu@hxi.com>
20159 * config/h8300/h8300.h: Fix comment formatting.
20160 * config/ia64/aix.h: Likewise.
20161 * config/ia64/ia64-protos.h: Likewise.
20162 * config/ia64/ia64.c: Likewise.
20163 * config/ia64/ia64.h: Likewise.
20164 * config/ia64/ia64intrin.h: Likewise.
20165 * config/ia64/linux.h: Likewise.
20166 * config/ia64/unwind-aix.c: Likewise.
20167 * config/ia64/unwind-ia64.c: Likewise.
20169 2002-01-20 Kazu Hirata <kazu@hxi.com>
20171 * config/h8300/h8300.c: Revise comments about shift code.
20173 2002-01-20 Kazu Hirata <kazu@hxi.com>
20175 * config/h8300/h8300.c (function_arg): Update a comment.
20177 2002-01-20 Kazu Hirata <kazu@hxi.com>
20179 * config/h8300/h8300.md: Update the comments at the beginning
20182 2002-01-20 Kazu Hirata <kazu@hxi.com>
20184 * config/i370/i370.c: Fix comment formatting.
20185 * config/i370/i370.h: Likewise.
20186 * config/i370/i370.md: Likewise.
20187 * config/i370/linux.h: Likewise.
20189 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20191 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
20193 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
20194 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
20195 in incomplete case.
20197 2002-01-20 Graham Stott <grahams@redhat.com>
20199 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
20201 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
20203 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
20205 2002-01-19 Tom Rix <trix@redhat.com>
20207 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
20209 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
20211 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
20213 * function.c (assign_stack_local_1): Adjust x_frame_offset with
20214 STARTING_FRAME_PHASE.
20215 (STARTING_FRAME_PHASE): New.
20216 (instantiate_virtual_regs): Check saneness of
20217 STARTING_FRAME_PHASE.
20219 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
20221 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
20223 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
20225 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
20227 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
20228 be used for bootstrapping GCC 3.0.
20230 2002-01-18 Kazu Hirata <kazu@hxi.com>
20232 * config/h8300/h8300.md: Fix an insn length.
20234 2002-01-18 Kazu Hirata <kazu@hxi.com>
20236 * bitmap.h: Fix comment formatting.
20237 * combine.c: Likewise.
20238 * cppfiles.c: Likewise.
20239 * c-pragma.h: Likewise.
20240 * c-typeck.c: Likewise.
20242 * dwarf2out.c: Likewise.
20243 * function.c: Likewise.
20245 * genattrtab.c: Likewise.
20246 * gthr-win32.h: Likewise.
20247 * haifa-sched.c: Likewise.
20248 * predict.c: Likewise.
20249 * rtlanal.c: Likewise.
20251 * unwind-dw2-fde.h: Likewise.
20252 * unwind-pe.h: Likewise.
20253 * vmsdbgout.c: Likewise.
20255 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20257 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
20258 if type_required and passed decl.
20260 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
20262 * config.gcc (cpu_type): Include altivec.h in powerpc
20266 * config/rs6000/altivec.h: New.
20268 2002-01-17 David Edelsohn <edelsohn@gnu.org>
20270 * doc/install.texi (*-ibm-aix*): Update assembler and exception
20271 handling information.
20272 * doc/trouble.texi (Interoperation): Add libstdc++ information
20274 (Misunderstandings): Add template instantiation and static template
20275 member information for AIX.
20277 2002-01-17 Jason Merrill <jason@redhat.com>
20279 * dbxout.c (dbxout_type): Support const and volatile.
20281 * except.c (add_partial_entry): Remove backwards compatibility code.
20282 (end_protect_partials): Likewise.
20284 2002-01-17 Jakub Jelinek <jakub@redhat.com>
20286 * config/ia64/ia64.md (prologue_use): New.
20287 * config/ia64/ia64.c (ia64_expand_prologue): Use
20288 gen_prologue_use instead of gen_rtx_USE.
20289 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
20290 as CODE_FOR_pred_rel_mutex.
20291 (ia64_sched_reorder2): Likewise.
20293 2002-01-16 Eric Christopher <echristo@redhat.com>
20295 * config/mips/r3900.h: Reformat.
20296 (SUBTARGET_CPP_SIZE_SPEC): Remove.
20297 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
20298 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
20299 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
20300 * config/mips/t-elf: Remove mips3 multilib.
20302 2002-01-16 H.J. Lu <hjl@gnu.org>
20304 * config/mips/linux.h: Include "mips/abi64.h".
20306 2002-01-16 H.J. Lu <hjl@gnu.org>
20308 * config/mips/t-linux: New.
20310 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
20312 * config/mips/linux.h: Don't include "gofast.h".
20313 (INIT_SUBTARGET_OPTABS): Removed.
20315 2002-01-16 Kazu Hirata <kazu@hxi.com>
20317 * config/h8300/h8300-protos.h: Replace emit_a_shift with
20319 * config/h8300/h8300.c: Likewise.
20320 * config/h8300/h8300.md: Likewise.
20322 2002-01-16 Kazu Hirata <kazu@hxi.com>
20324 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
20325 spaces after an opcode name.
20326 (pushqi1_h8300hs): Likewise.
20327 (pushhi1_h8300hs): Likewise.
20329 2002-01-16 Kazu Hirata <kazu@hxi.com>
20331 * doc/extend.texi: Replace "option" with "attribute"
20334 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20336 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
20337 (and:DI () (const_int -8)).
20338 (split_small_symbolic_mem_operand): Split
20339 (mem (and:DI () (const_int -8)).
20341 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20344 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
20345 same way as TYPE_IMUL.
20346 (ultrasparc_sched_reorder): Likewise.
20347 * config/sparc/sparc.md (type): Add comment to update
20348 ultrasparc_sched_reorder when making changes.
20350 2002-01-16 Kazu Hirata <kazu@hxi.com>
20352 * doc/invoke.texi: Change the dump file name of block
20353 reordering pass from 28.bbro to 29.bbro.
20354 Mention -dk option.
20356 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
20358 * i386.md (minsf splitter): Fix pasto.
20360 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
20362 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
20363 to frame pointer initialisation instruction.
20364 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
20365 initialisation instruction.
20366 (soft_df_operand): Do not accept the IP register.
20367 (nonimmediate_soft_df_operand): Do not accept the IP register.
20369 2002-01-16 Jakub Jelinek <jakub@redhat.com>
20372 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
20373 MASK_V8 being both set.
20375 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
20377 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
20378 insn for GOT register; add REG_MAYBE_DEAD notes instead.
20379 config/s390/s390.md (call, call_value): Add GOT register to
20380 CALL_INSN_FUNCTION_USAGE where needed.
20381 (call_exp, call_value_exp): New.
20383 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
20385 * config/arm/arm.c: General formatting tidy up.
20387 2002-01-16 Graham Stott <grahams@redhat.com>
20389 * calls.c (try_to_integrate): Use "(size_t)" intermediate
20390 cast and when casting an integer literal to "rtx" pointer.
20391 (expand_call): Likewise.
20392 * flow.c (try_pre_increment): Likewise.
20393 (find_use_as_address): Likewise.
20394 * integrate.c (expand_iline_function): Likewise.
20395 * regmove.c (try_auto_increment): Likewise.
20397 2002-01-16 Graham Stott <grahams@redhat.com>
20399 * sched-rgn.c (passed): Use sbitmap_free.
20400 (header): Likewise.
20402 (in_queue): Likewise.
20403 (in_stack): Likewise.
20405 2002-01-15 Eric Christopher <echristo@redhat.com>
20407 * flow.c (propagate_one_insn): Change to use fatal_insn.
20409 2002-01-15 Kazu Hirata <kazu@hxi.com>
20411 * expmed.c (extract_fixed_bit_field): Remove unused code.
20412 * system.h: Poison SLOW_ZERO_EXTEND.
20413 * doc/tm.texi: Remove.
20414 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
20415 * config/arm/arm.h: Likewise.
20416 * config/avr/avr.h: Likewise.
20417 * config/clipper/clipper.h: Likewise.
20418 * config/convex/convex.h: Likewise.
20419 * config/d30v/d30v.h: Likewise.
20420 * config/dsp16xx/dsp16xx.h: Likewise.
20421 * config/elxsi/elxsi.h: Likewise.
20422 * config/fr30/fr30.h: Likewise.
20423 * config/h8300/h8300.h: Likewise.
20424 * config/i370/i370.h: Likewise.
20425 * config/i386/i386.h: Likewise.
20426 * config/m68k/m68k.h: Likewise.
20427 * config/mips/mips.h: Likewise.
20428 * config/ns32k/ns32k.h: Likewise.
20429 * config/pdp11/pdp11.h: Likewise.
20430 * config/pj/pj.h: Likewise.
20431 * config/s390/s390.h: Likewise.
20432 * config/sh/sh.h: Likewise.
20433 * config/stormy16/stormy16.h: Likewise.
20434 * config/v850/v850.h: Likewise.
20435 * config/vax/vax.h: Likewise.
20436 * config/we32k/we32k.h: Likewise.
20438 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
20440 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
20441 (altivec_lvsl): Change constraint to b.
20442 (altivec_lvsr): Same.
20443 (altivec_lvebx): Same.
20444 (altivec_lvehx): Same.
20445 (altivec_lvewx): Same.
20446 (altivec_lvxl): Same.
20447 (altivec_lvx): Same.
20448 (altivec_stvx): Add parallel.
20449 (altivec_stvxl): Same.
20450 (altivec_stvehx): Same.
20451 (altivec_stvebx): Same.
20452 (altivec_stvebx): Same.
20454 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
20456 * config.gcc: Change altivec.h to altivec-defs.h.
20458 * config/rs6000/altivec.h: Delete.
20460 * config/rs6000/altivec-defs.h: Add.
20462 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
20464 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
20467 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
20468 less than or equal to eight bytes.
20470 * vax.md (andsi3): Remove constraints and change SET destination
20471 operand type to nonimmediate_operand.
20472 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
20473 when it is a CONST_INT.
20475 2002-01-15 Jason Merrill <jason@redhat.com>
20477 * c-common.def (FILE_STMT): New code.
20478 * c-common.c (statement_code_p): It's a statement.
20479 * c-common.h (stmt_tree_s): Add x_last_filename.
20480 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
20481 (last_expr_filename): New macro.
20482 * c-semantics.c (begin_stmt_tree): Initialize it.
20483 (add_stmt): If the filename changed, also insert a
20485 (expand_stmt): Handle seeing one.
20487 2002-01-15 Eric Christopher <echristo@redhat.com>
20489 * flow.c (propagate_one_insn): Add error message and print out
20490 insn for debugging.
20492 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
20494 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
20495 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
20496 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
20497 TRAMPOLINE_ALIGNMENT.
20498 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
20500 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
20501 PCC_BITFIELD_TYPE_MATTERS.
20502 * config/interix.h (STDC_VALUE): Remove. Use
20503 STDC_0_IN_SYSTEM_HEADERS.
20504 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
20505 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
20506 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
20508 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
20510 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
20511 not work on this platform currently.
20513 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
20515 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
20516 readonly_warning in _().
20518 2002-01-15 Douglas B Rupp <rupp@gnat.com>
20520 * gcc.c (delete_if_ordinary): Backout previous change.
20522 2002-01-15 Kazu Hirata <kazu@hxi.com>
20524 * config/h8300/h8300.c (print_operand): Remove support for
20525 unused operand characters.
20527 * read-rtl.c: Fix formatting.
20528 * real.c: Likewise.
20529 * recog.c: Likewise.
20530 * regclass.c: Likewise.
20531 * regmove.c: Likewise.
20532 * reg-stack.c: Likewise.
20533 * reload1.c: Likewise.
20534 * rtlanal.c: Likewise.
20536 2002-01-15 Kazu Hirata <kazu@hxi.com>
20538 * config/i386/i386.c: Fix formatting.
20540 2002-01-15 Jakub Jelinek <jakub@redhat.com>
20542 * c-typeck.c (process_init_element): Don't save_expr
20543 COMPOUND_LITERAL_EXPR if just its initializer will be used.
20545 2002-01-15 David Edelsohn <edelsohn@gnu.org>
20547 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
20548 emit optional traceback table if optimize_size or TARGET_ELF.
20549 * config/rs6000/rs6000.md (prefetch): New.
20551 2002-01-15 Andreas Jaeger <aj@suse.de>
20553 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
20555 2002-01-15 Kazu Hirata <kazu@hxi.com>
20557 * mips-tfile.c: Fix formatting.
20559 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
20561 * unroll.c (final_reg_note_copy): Fix previous commit.
20563 2002-01-14 Kazu Hirata <kazu@hxi.com>
20565 * config/h8300/h8300-protos.h: Remove the prototype for
20567 * config/h8300/h8300.c (eq_operator): Remove.
20569 2002-01-14 Richard Henderson <rth@redhat.com>
20571 * config/i386/i386.md (prefetch): Tidy.
20572 (prefetch_3dnow): Fix locality operand.
20574 2002-01-14 Richard Henderson <rth@redhat.com>
20576 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
20577 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
20579 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
20581 * reload1.c (reload_combine): Pass reg_sum replacement through
20582 copy_rtx in loop performing multiple changes.
20584 2002-01-14 Jakub Jelinek <jakub@redhat.com>
20586 * except.c (remove_unreachable_regions): New.
20587 (free_eh_status): Clear exception_handler_labels.
20588 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
20589 (find_exception_handler_labels): Don't add the same label more than
20591 (remove_exception_handler_label): Don't die if
20592 find_exception_handler_labels hasn't been called for the current
20595 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
20597 * toplev.c (rest_of_compilation): Rebuild jump labels after
20600 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
20602 * doc/extend.texi: Move documentation of X86 built-in functions
20604 * doc/invoke.texi: From here.
20605 * doc/sourcebuild.texi: Document location of documentation for
20606 machine built-in functions.
20608 2002-01-13 Christopher Faylor <cgf@redhat.com>
20610 * cppfiles.c (TEST_THRESHOLD): New macro.
20611 (SHOULD_MMAP): Ditto.
20612 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
20615 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
20617 * unroll.c (final_reg_note_copy): Properly handle
20619 (unroll_loops): Fix LOOP_CONDITION heuristics.
20621 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
20623 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
20624 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
20626 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
20628 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
20631 2002-01-14 Tom Rix <trix@redhat.com>
20633 * config/rs6000/rs6000.md: Fix typo with sradi.
20635 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
20637 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
20638 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
20639 (clrstrdi, clrstrsi): Adapt callers.
20641 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
20643 (movti splitter): Never use register 0 as base register.
20645 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
20647 * combine.c (simplify_shift_const): Always generate new rtx
20648 for shift expression instead of reusing given expression.
20650 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20652 * config/alpha/alpha.c (alpha_expand_mov): Don't call
20653 alpha_legitimize_address unless mode is Pmode.
20655 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
20657 * doc/md.texi (Modifiers): Document the '*' constraint for the
20660 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
20661 * doc/extend.texi (Function Attributes): 'interrupt' is valid
20664 2002-01-13 Richard Henderson <rth@redhat.com>
20666 * reload.c (find_reloads): Use a hard reg destination as reload reg
20667 for an input reload of the source.
20669 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20671 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
20674 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
20676 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20677 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20679 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
20681 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20683 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
20685 2002-01-12 Tom Rix <trix@redhat.com>
20687 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
20690 2002-01-12 Richard Henderson <rth@redhat.com>
20692 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
20694 * doc/invoke.texi: Update Alpha options.
20696 * doc/invoke.texi: Update i386 built-in function lists.
20698 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
20700 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
20701 referencing outside.
20703 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20705 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
20706 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
20707 offsets, and change line folding.
20708 * optabs.c (expand_binop): Remove warnings.
20709 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
20711 2002-01-12 Graham Stott <grahams@redhat.com>
20713 * attribs.c (handle_deprecated_attribute): constify WHAT.
20714 * diagnostic.c (warn_deprecated_use): Add braces, fixes
20715 dangling else warning and constify WHAT.
20716 * except.h (struct function, struct inline_remap): Move
20717 struct tag forward defs before all prototypes.
20718 (duplicate_eh_regions): Whitespace.
20720 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
20722 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20723 MODE_BASE_REG_CLASS.
20724 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
20726 2002-01-12 Richard Henderson <rth@redhat.com>
20728 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
20729 (ix86_expand_vector_move): New.
20730 (bdesc_2arg): Remove andps, andnps, orps, xorps.
20731 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
20732 Remove old prefetch builtins. Special case the logicals removed above.
20733 (ix86_expand_builtin): Likewise.
20734 (safe_vector_operand): Use V4SFmode, not TImode.
20735 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
20736 (ix86_expand_timode_binop_builtin): New.
20737 * config/i386/i386-protos.h: Update.
20738 * config/i386/i386.h (enum ix86_builtins): Update.
20739 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
20740 Use ix86_expand_vector_move in vector move expanders.
20741 (movti_internal, movti_rex64): Add xorps alternative.
20742 (sse_clrv4sf): Rename and adjust from sse_clrti.
20743 (prefetch): Don't work so hard.
20744 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
20745 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
20746 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
20748 2002-01-11 Richard Henderson <rth@redhat.com>
20750 * config/i386/mmintrin.h: New file.
20751 * config/i386/xmmintrin.h: New file.
20752 * config.gcc (i?86-*-*): Add extra_headers.
20753 * simplify-rtx.c (simplify_unary_operation): Handle saturating
20755 (simplify_binary_operation): Handle saturating arithmetic codes.
20756 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
20757 not the lowpart subreg.
20758 (ix86_expand_builtin): Return a TImode dummy register instead of 0
20760 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
20762 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20764 * conflict.c (conflict_graph_compute): Free regsets when finished.
20765 * ssa.c (compute_coalesced_reg_partition): Likewise.
20767 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20769 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
20770 every where we allocate a register.
20772 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20774 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
20775 * lcm.c (compute_earliest, compute_farthest): Likewise.
20777 2002-01-11 Janis Johnson <janis187@us.ibm.com>
20779 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
20781 2002-01-11 Janis Johnson <janis187@us.ibm.com>
20783 * doc/rtl.texi (Insns): Fix 2 typos.
20785 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
20787 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
20788 options. Use @table @gcctabopt for MMIX options. Add index
20789 entries for MMIX options. Start new paragraph with first
20790 heading of the machine-dependent options.
20792 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
20795 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
20796 * combine.c (force_to_mode): Same.
20797 * reload1.c (clear_reload_reg_in_use): Same.
20799 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
20801 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
20804 2002-01-11 Andreas Jaeger <aj@suse.de>,
20805 Brad Lucier <lucier@math.purdue.edu>
20807 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
20810 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
20812 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
20813 Protect with IN_LIBGCC.
20814 (LINK_EH_SPEC): Add required trailing space.
20816 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
20818 * c-tree.h: Move function declarations so that they are listed
20819 under the filename which contains them.
20820 (check_identifier, finish_decl_top_level,
20821 lookup_name_current_level_global, shadow_record_fields): Remove.
20823 2002-01-11 Andreas Jaeger <aj@suse.de>
20825 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
20828 2002-01-10 Richard Henderson <rth@redhat.com>
20830 * config/alpha/alpha.c (print_operand): Add 'J'.
20831 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20832 new operand with the sequence number for the lituse. When splitting
20833 the insns, use gen_movdi_er_high_g and generate a sequence number.
20834 (gen_movdi_er_high_g): Print the sequence number if non-zero.
20836 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
20838 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20839 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20841 (altivec_expand_builtin): Same.
20842 (altivec_expand_stv_builtin): New.
20844 * config/rs6000/rs6000.h (rs6000_builtins): Same.
20846 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20847 ("altivec_lvehx"): New.
20848 ("altivec_lvewx"): New.
20849 ("altivec_lvxl"): New.
20850 ("altivec_lvx"): New.
20851 ("altivec_stvx"): New.
20852 ("altivec_stvebx"): New.
20853 ("altivec_stvehx"): New.
20854 ("altivec_stvewx"): New.
20855 ("altivec_stvxl"): New.
20857 2002-01-10 Richard Henderson <rth@redhat.com>
20859 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20860 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
20861 care not to delete instructions twice.
20863 2002-01-10 Zack Weinberg <zack@codesourcery.com>
20865 * toplev.c: Don't declare environ (it's not used anywhere).
20866 * configure.in: Don't check for declaration of environ.
20867 * config/i386/xm-mingw32.h: Don't #define environ.
20868 * config.in, configure: Regenerate.
20870 2002-01-10 Zack Weinberg <zack@codesourcery.com>
20872 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20873 * configure: Regenerate.
20875 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20876 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20877 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20879 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20880 LIMITS_H_TEST here, not in m68k/x-next.
20881 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20882 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20884 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20885 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20886 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
20888 * config/i386/x-djgpp: Renamed i386/t-djgpp.
20889 * config/m88k/x-dolph: Renamed m88k/t-dolph.
20890 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20891 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
20892 replacement of quadlib.asm with quadlib.c.
20894 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20895 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20896 config/rs6000/xm-beos.h: Delete file.
20898 * config.gcc: Update to match above changes.
20900 2002-01-10 Kazu Hirata <kazu@hxi.com>
20902 * config/h8300/h8300.h: Fix comment typos.
20903 * config/h8300/h8300.md: Likewise.
20904 * config/h8300/lib1funcs.asm: Likewise.
20906 2002-01-10 Dale Johannesen <dalej@apple.com>
20908 PR optimization/5269
20909 * unroll.c (precondition_loop_p): Make *increment be the correct
20910 sign when n_iterations known, to avoid confusing caller.
20912 2002-01-10 Kazu Hirata <kazu@hxi.com>
20914 * doc/extend.texi (deprecated): Fix a typo.
20916 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
20918 * basic-block.h (update_br_prob_note): Declare.
20919 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20920 (try_forward_edges): Care negative frequencies and update note.
20921 (outgoing_edges_match): Tweek conditional merging heuristics.
20922 (try_crossjump_to_edge): use update_br_prob_note.
20923 * cfglayout.c (fixup_reorder_chain): Likewise.
20924 * cfrtl.c (update_br_prob_note): New.
20925 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20927 * i386.c (ix86_decompose_address): Return -1 if address contains
20929 (legitimate_address_p): Require ix86_decompose_address to return 1.
20931 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20932 (cprop_insn): Likewise.
20934 2002-01-10 Kazu Hirata <kazu@hxi.com>
20936 * toplev.c: Fix formatting.
20937 * tree.c: Likewise.
20938 * tree-dump.c: Likewise.
20939 * unroll.c: Likewise.
20940 * unwind-dw2.c: Likewise.
20941 * unwind-dw2-fde.c: Likewise.
20942 * unwind-dw2-fde-glibc.c: Likewise.
20943 * unwind-sjlj.c: Likewise.
20945 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
20947 * doc/invoke.texi: Document PDP-11 options.
20949 2002-01-10 Kazu Hirata <kazu@hxi.com>
20951 * config/h8300/h8300.h: Fix formatting.
20953 2002-01-10 Ira Ruben <ira@apple.com>
20955 Add __attribute__ ((deprecated)).
20956 * extend.texi: Document __attribute__ ((deprecated)).
20957 * invoke.texi: Document -Wno-deprecated-declarations.
20958 * testsuite/g++.dg/other/deprecated.C: New C++ test.
20959 * testsuite/gcc.dg/deprecated.c: New C test.
20960 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20961 (c_common_attribute_table): Add "deprecated" entry.
20962 (handle_deprecated_attribute): New function.
20963 * c-decl.c (deprecated_states): New enum.
20964 deprecated_state: State of "deprecated" handling.
20965 (start_decl): Set deprecated_state based on attributes.
20966 (grokdeclarator): Test for deprecated uses, propagate attribute.
20967 * c-typeck.c (build_component_ref): Test for deprecated fields.
20968 (build_external_ref): Test for deprecated primaries.
20969 * diagnostic.c (warn_deprecated_use) New function to issue
20970 warnings about __attribute__ ((depricated)) references.
20971 * flags.h (warn_deprecated_decl): Extern declared for
20972 -W[no-]deprecated-declarations option.
20973 * print-tree.c (print_node): Show deprecated flag status.
20974 * toplev.c (warn_deprecated_decl): Defined.
20975 (W_options): Added "deprecated-declaration".
20976 * toplev.h (warn_deprecated_use): Extern declared.
20977 * tree.h (struct tree_common): Define deprecated_flag.
20978 (TREE_DEPRECATED): New macro to access flag.
20979 * cp/call.c (build_call): Test for deprecated calls.
20980 * cp/class.c (add_implicitly_declared_members): Set global
20981 flag to tell grokdeclarator to not issue deprecated warnings.
20982 * cp/cp-tree.h: Add extern for adding_implicit_members.
20983 * cp/decl.c (deprecated_states): New enum.
20984 (start_decl): Set deprecated_state based on attributes.
20985 (grokdeclarator): Test for deprecated uses, propagate attribute.
20986 * cp/lex.c (do_identifier): Test for deprecated primaries.
20987 * cp/typeck.c (build_component_ref): Test for deprecated fields.
20989 2002-01-10 Ira Ruben <ira@apple.com>
20991 Fix to assign attributes to inline member functions.
20992 * cp/decl.c (start_method): Handle attrlist.
20994 2002-01-10 Kazu Hirata <kazu@hxi.com>
20996 * combine.c (expand_field_assignment): Use subreg_lsb().
20998 2002-01-10 David Edelsohn <edelsohn@gnu.org>
21000 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
21001 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
21002 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
21003 Recurse for any operand of AND as long as constant is non-zero.
21005 2002-01-10 Kazu Hirata <kazu@hxi.com>
21007 * config/h8300/h8300.md: Remove constraints from expanders.
21009 2002-01-10 Kazu Hirata <kazu@hxi.com>
21011 * varasm.c: Fix formatting.
21012 * varray.c: Likewise.
21013 * vmsdbgout.c: Likewise.
21014 * xcoffout.c: Likewise.
21016 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
21018 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
21019 update edge probabilities to match.
21021 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
21023 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
21025 * doc/languages.texi, doc/sourcebuild.texi: New files.
21026 * doc/configfiles.texi: Make a subsubsection. Update.
21027 * doc/configterms.texi: Add @node. Remove warning that this isn't
21028 instructions for building GCC.
21029 * doc/makefile.texi: Make a subsection.
21030 * doc/gccint.texi: Update.
21032 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
21034 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
21036 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
21038 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
21040 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
21042 * optabs.c (expand_fix): Look for wider integer modes first.
21044 * i386.md (mov?f): Avoid the fake const double trick for medium
21046 (min?f*/max?f*): Prohibit memory operands for i387 variant.
21047 (fop_df_4): Disable for SSE compilation.
21049 2002-01-10 Graham Stott <grahams@redhat.com>
21051 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
21052 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
21054 2002-01-10 Richard Henderson <rth@redhat.com>
21056 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
21058 2002-01-10 Richard Henderson <rth@redhat.com>
21060 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
21061 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
21063 2002-01-10 Kazu Hirata <kazu@hxi.com>
21065 * combine.c (can_combine_p): Fix a comment typo.
21067 2002-01-09 Zack Weinberg <zack@codesourcery.com>
21069 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
21070 empty list correctly. Change loop index $t to $f for
21071 consistency with rest of Makefile.
21073 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
21075 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
21076 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21078 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
21079 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
21080 (altivec_init_builtins): Same.
21081 (altivec_expand_unop_builtin): Return NULL_RTX on error.
21082 (altivec_expand_binop_builtin): Same.
21083 (altivec_expand_ternop_builtin): Same.
21086 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
21087 ("altivec_vctuxs"): Fix typo.
21088 ("altivec_vnmsubfp"): Same.
21089 ("altivec_dssall"): New.
21090 ("altivec_mfvscr"): New.
21091 ("altivec_dss"): New.
21092 ("altivec_lvsl"): New.
21093 ("altivec_lvsr"): New.
21094 ("altivec_dstt"): New.
21095 ("altivec_dstst"): New.
21096 ("altivec_dststt"): New.
21097 ("altivec_dst"): New.
21099 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
21100 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
21102 2002-01-09 Richard Henderson <rth@redhat.com>
21104 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
21106 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
21108 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
21110 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
21112 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
21114 2002-01-09 Kazu Hirata <kazu@hxi.com>
21116 * read-rtl.c: Fix formatting.
21117 * real.c: Likewise.
21118 * regclass.c: Likewise.
21119 * regrename.c: Likewise.
21120 * reg-stack.c: Likewise.
21121 * reload1.c: Likewise.
21122 * reload.c: Likewise.
21125 2002-01-09 Kazu Hirata <kazu@hxi.com>
21127 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
21128 to extract items in the expr_list chain.
21130 2002-01-09 Richard Henderson <rth@redhat.com>
21132 * config/vax/vax.c (vax_rtx_cost): Never abort.
21134 * config/vax/vax.h (REAL_ARITHMETIC): Define.
21136 2002-01-09 Jan Hubicka <jh@suse.cz>
21138 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
21140 2002-01-09 Richard Henderson <rth@redhat.com>
21142 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
21143 Unify code from various alternatives.
21145 2002-01-09 Richard Henderson <rth@redhat.com>
21147 * regrename.c (copy_value): Ignore the copy if the source register
21148 is present in the value chain with a narrower mode.
21150 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21152 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
21153 for the c4x target. Also improve layout.
21155 2002-01-09 Richard Henderson <rth@redhat.com>
21157 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
21158 * config/m32r/m32r.md (and ior xor splitters): Swap operands
21159 to match insn patterns.
21161 2002-01-09 Richard Henderson <rth@redhat.com>
21163 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
21164 (copyprop_hardreg_forward_1): Likewise.
21166 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
21168 * pa.md (decrement_and_branch_until_zero): Change predicate for
21169 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
21171 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
21173 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
21174 gets undefined. For Darwin.
21176 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21178 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
21180 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21182 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
21184 2002-01-08 Richard Henderson <rth@redhat.com>
21186 * regrename.c (copy_value): Ignore overlapping copies.
21188 2002-01-08 Richard Henderson <rth@redhat.com>
21190 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
21191 as needed to avoid shared structure.
21193 2002-01-08 Kazu Hirata <kazu@hxi.com>
21195 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
21198 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21200 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
21201 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
21202 documentation of obsolete macros.
21203 * system.h: Poison these macros.
21204 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
21205 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
21206 config/c4x/c4x.h, config/clipper/clipper.h,
21207 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
21208 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
21209 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
21210 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
21211 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
21212 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
21213 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
21214 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
21215 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
21216 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
21217 config/sparc/sparc.h, config/stormy16/stormy16.h,
21218 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
21219 definitions and commented out definitions of obsolete macros.
21220 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
21221 of MAX_INT_TYPE_SIZE.
21223 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
21225 * config/s390/s390.c (s390_preferred_reload_class): Never
21226 return ADDR_REGS if it isn't a subset of the given class.
21227 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
21228 FP_REGS, but all superclasses as well.
21230 * config/s390/s390.c (s390_function_profiler): Fix thinko.
21232 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
21233 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
21234 must not be a const_int.
21236 2002-01-08 Richard Henderson <rth@redhat.com>
21238 * Makefile.in (toplev.o): Depend on options.h.
21239 (gcc.o): Depend on specs.h.
21241 2002-01-08 Jakub Jelinek <jakub@redhat.com>
21243 * expr.c (store_expr): Convert VOIDmode constants back to target's
21246 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
21248 * doc/invoke.texi: Markup gcc as @command. Refer to
21249 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
21250 of http://gcc.gnu.org/thanks.html.
21252 2002-01-08 Dale Johannesen <dalej@apple.com>
21254 * config/rs6000/rs6000.md: Add missing int register
21255 target case to movdf_low.
21257 2002-01-08 Zack Weinberg <zack@codesourcery.com>
21259 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
21260 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
21261 (cppinit.o): Depend on except.h.
21262 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
21263 s-specs): New rules.
21265 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
21266 Don't create specs.h/options.h/gencheck.h here. Remove
21267 unnecessary variable settings from last argument of AC_OUTPUT.
21268 * config.in, configure: Regenerate.
21269 * intl.c: Hardcode package name as "gcc".
21271 * cppinit.c: Include except.h.
21272 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
21274 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
21275 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
21276 (!)USING_SJLJ_EXCEPTIONS.
21277 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
21279 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21281 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
21282 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
21283 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
21284 documentation of obsolete macros.
21285 * system.h: Poison these macros.
21286 * config/d30v/d30v.h, config/ns32k/encore.h,
21287 config/stormy16/stormy16.h: Remove definitions and commented out
21288 definitions of obsolete macros.
21290 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
21292 * objc/objc-act.c (handle_class_ref): Mark the declaration of
21293 %sobjc_class_ref_%s as used - to prevent unwanted compiler
21296 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
21298 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
21299 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
21300 to insn adjusting stack/frame pointer.
21301 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
21302 accept operands that cause the insn to be non-splittable.
21304 2002-01-08 Graham Stott <grahams@redhat.com>
21306 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
21307 (C_TYPE_FIELDS_VOLATILE): Likewise.
21308 (C_TYPE_BEING_DEFINED): Likewise.
21309 (C_IS_RESERVED_WORD): Likewise.
21310 (C_TYPE_VARIABLE_SIZE): Likewise.
21311 (C_DECL_VARIABLE_SIZE): Likewise.
21312 (C_MISSING_PROTOTYPE_WARNED): Likewise.
21313 (C_SET_EXP_ORIGINAL_CODE): Likewise.
21314 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
21316 (C_DECL_ANTICIPATED): Likewise.
21317 (c_build_type_variant): Add parenthesis.
21319 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
21321 * gcc.c (option_map): Remove --version.
21322 (process_command): Handle -fversion following the GNU Coding
21323 Standards. Partially addresses PR other/704.
21325 2002-01-08 Graham Stott <grahams@redhat.com>
21327 * combine.c (combine_instructions): Fix typo.
21329 2002-01-08 Graham Stott <grahams@redhat.com>
21331 * debug.h: Use "tree" and "rtx" throughout.
21333 * debug.c: Likewise.
21335 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
21337 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
21338 constant pool, use the pool's version of the symbol instead.
21340 2002-01-07 Richard Henderson <rth@redhat.com>
21342 * regrename.c (find_oldest_value_reg): Ignore the value chain if
21343 the original register was copied in a mode with a fewer number of
21344 hard registers than the desired mode.
21345 (copyprop_hardreg_forward_1): Likewise.
21346 (debug_value_data): Fix loop test.
21347 * toplev.c (parse_options_and_default_flags): Reenable
21348 -fcprop-registers at -O1.
21350 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21352 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
21353 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
21355 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
21358 * config/rs6000/rs6000.md: Add altivec predicate patterns.
21360 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
21362 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
21363 (pa_output_function_prologue): Output local label at the beginning of
21364 the prologue when profiling.
21365 (hppa_profile_hook): Use the local label rather than the function label.
21366 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
21368 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21370 * config/rs6000/rs6000.c (print_operand): Remove extra space.
21371 (altivec_expand_unop_builtin): Fix thinko.
21372 (altivec_expand_binop_builtin): Same.
21373 (altivec_expand_ternop_builtin): Same.
21374 (altivec_expand_builtin): Same.
21376 2002-01-07 Richard Henderson <rth@redhat.com>
21378 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
21380 2002-01-07 Jason Merrill <jason@redhat.com>
21382 * unwind-dw2.c (execute_cfa_program): Use < again.
21384 2002-01-07 Jakub Jelinek <jakub@redhat.com>
21386 * predict.c (combine_predictions_for_insn): Avoid division by zero.
21388 2002-01-07 Jakub Jelinek <jakub@redhat.com>
21390 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
21391 Don't allow -1 - x -> ~x simplifications in the first pass.
21393 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
21395 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
21397 (altivec_expand_binop_builtin): Same.
21398 (altivec_expand_unop_builtin): Same.
21399 (print_operand): Fix typo.
21400 (bdesc_1arg): Add vupk* variants.
21402 * rs6000.h (rs6000_builtins): Add vupk* enums.
21404 * rs6000.md: Add altivec_vupk* variants.
21406 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
21408 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
21409 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
21410 and last update dates.
21412 2002-01-07 Janis Johnson <janis187@us.ibm.com>
21414 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
21416 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
21418 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
21419 * config/avr/avr.h (CPP_SPEC): Likewise.
21420 (LINK_SPEC): Likewise.
21421 (CRT_BINUTILS_SPECS): Likewise.
21422 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
21423 * doc/invoke.texi (AVR Options): Document them.
21425 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
21427 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
21430 2002-01-07 Graham Stott <grahams@redhat.com>
21432 * config/i386/i386.h: Update copyright date.
21433 (HALF_PIC_PTR): Add parenthesis.
21434 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
21435 (CONSTANT_ALIGNMENT): Add parenthesis.
21436 (DATA_ALIGNMENT): Likewise.
21437 (LOCAL_ALIGNMENT): Likewise.
21438 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
21439 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
21440 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
21441 (HARD_REGNO_NREGS): Add paranethesis.
21442 (VALID_SSE_REG_MODE): Whitespace.
21443 (VALID_MMX_REG_MODE): Whitespace.
21444 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
21445 (ix86_hard_regno_mode_ok): Add parenthesis.
21446 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
21447 (RETURN_IN_MEMORY): Whitespace.
21448 (N_REG_CLASSES): Add parenthesis.
21449 (INTEGER_CLASS_P): Add parenthesis and wrap.
21450 (FLOAT_CLASS_P): Likewise.
21451 (SSE_CLASS_P): Likewise.
21452 (MMX_CLASS_P): Likewise.
21453 (MAYBE_INTEGER_CLASS_P): Likewise.
21454 (MAYBE_FLOAT_CLASS_P): Likewise.
21455 (MAYBE_SSE_CLASS_P): Likewise.
21456 (MAYBE_MMX_CLASS_P): Likewise.
21457 (Q_CLASS_P): Likewise.
21458 (GENERAL_REGNO_P): Uppercase macro parameter.
21459 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
21460 (FP_REGNO_P): Likewise.
21461 (ANY_FP_REGNO_P): Uppercase macro parameter.
21462 (SSE_REGNO_P): Likewise.
21463 (SSE_REGNO): Likewise.
21464 (SSE_REG_P): Likewise.
21465 (SSE_FLOAT_MODE_P): Likewise.
21466 (MMX_REGNO_P): Likewise.
21467 (MMX_REG_P):Likewise.
21468 (STACK_REG_P): Likewise.
21469 (NON_STACK_REG_P): Likewise.
21470 (STACK_TOP_P): Likewise.
21471 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
21472 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
21473 (SECONDARY_MEMORY_NEEDED): Likewise.
21474 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
21475 (MD_ASM_CLOBBERS): Whitespace and wrap.
21476 (MUST_PASS_IN_STACK): Whitespace and wrap.
21477 (RETURN_POPS_ARGS): Add parenthesis.
21478 (INIT_CUMULATIVE_ARGS): Likewise.
21479 (FUNCTION_ARG): Likewise.
21480 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
21481 (SETUP_INCOMING_VARARGS): Likewise.
21482 (BUILD_VA_LIST_TYPE): Add parenthesis.
21483 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
21485 (EXPAND_BUILTIN_VA_ARG): Likewise.
21486 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
21487 (INITIALIZE_TRAMPOLINE): Add parenthesis.
21488 (INITIAL_ELIMINATION_OFFSET): Likewise.
21489 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
21490 (REGNO_OK_FOR_BASE_P): Likewise.
21491 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
21492 (REGNO_OK_FOR_DIREG_P): Likewise.
21493 (REG_OK_FOR_INDEX_P): Whitespace.
21494 (REG_OK_FOR_BASE_P): Whitespace.
21495 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
21497 (FIND_BASE_TERM): Fix typo.
21498 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
21499 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
21500 (SYMBOLIC_CONST; Whitespace.
21501 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
21502 (ENCODE_SECTION_INFO): Whitespace.
21503 (FINALIZE_PIC): Remove do { ... } while (0).
21504 (PROMOTE_MODE): Wrap in do { ... } while (0).
21505 (CONST_COSTS): Whitespace.
21506 (RTX_COSTS): Add paramethesis, whitespace and wrap.
21507 (REGISTER_MOVE_COST): Add parenthesis.
21508 (MEMORY_MOVE_COST): Likewise.
21509 (EXTRA_CC_MODES): Whitespace.
21510 (SELECT_CC_MODE): Add parenthesis and whitespace.
21511 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
21512 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
21513 (ASM_OUTPUT_LABEL): Add paramethesis.
21514 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
21515 (ASM_OUTPUT_REG_POP): Likewise.
21516 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
21517 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
21519 * config/i386/i386.c: Update copyright.
21520 (CHECK_STACK_LIMIT): Add parenthesis.
21521 (AT_BP): Uppercase macro parameter.
21522 (x86_64_int_parameter_registers): Constify.
21523 (x86_64_int_return_registers): Likewise.
21524 (ix86_compare_op0): Use rtx.
21525 (construct_container): Constify INTREG parameter.
21526 (function_arg): Use rtx.
21528 * diagnostic.h: Update copyright date.
21529 (output_buffer_state): Add parenthesis.
21530 (output_buffer_format_args): Likewise.
21532 * combine.c (combine_instructions): Replace XEXP (links, 0)
21535 2002-01-06 H.J. Lu <hjl@gnu.org>
21537 * cfgcleanup.c (thread_jump): Fix 2 typos.
21539 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
21541 * config.gcc: Add support for --enable-altivec.
21543 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
21545 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
21547 2002-01-06 Jakub Jelinek <jakub@redhat.com>
21549 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
21550 __objc_class_name_*.
21552 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
21554 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
21556 2002-01-06 Richard Henderson <rth@redhat.com>
21558 * reorg.c (emit_delay_sequence): Remove death notes, not merely
21559 nop them out. Increment label reference count for REG_LABEL.
21560 (fill_slots_from_thread): Frob label reference count around
21561 delete_related_insns.
21563 2002-01-05 Richard Henderson <rth@redhat.com>
21565 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
21568 2002-01-05 Richard Henderson <rth@redhat.com>
21570 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
21571 * integrate.c (output_inline_function): Likewise.
21572 * toplev.c (rest_of_compilation): Do it here instead. Move call
21573 to remove_unnecessary_notes after emitting abstract instance.
21574 Force an emitted nested function to have its parent emited as well.
21575 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
21577 (rtl_for_decl_location): Do not look at reload data structures
21578 before reload has run.
21580 2002-01-05 Kazu Hirata <kazu@hxi.com>
21582 * cse.c: Fix formatting.
21583 * dwarf2asm.c: Likewise.
21584 * dwarf2out.c: Likewise.
21585 * explow.c: Likewise.
21586 * expmed.c: Likewise.
21587 * function.c: Likewise.
21588 * gcov.c: Likewise.
21589 * gencheck.c: Likewise.
21590 * genrecog.c: Likewise.
21591 * ggc-common.c: Likewise.
21592 * ggc-page.c: Likewise.
21593 * global.c: Likewise.
21595 2002-01-05 Kazu Hirata <kazu@hxi.com>
21597 * combine.c: Fix formatting.
21599 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
21602 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
21604 2002-01-05 David Edelsohn <edelsohn@gnu.org>
21606 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
21607 as 1 for __powerpc64__ as well.
21609 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
21611 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
21614 2002-01-05 Daniel Berlin <dan@dberlin.org>
21616 * lcm.c: Revert change, due to performance regression it causes on
21617 SPEC because it's slightly more conservative (sigh, I hate
21620 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
21622 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
21624 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
21626 * doc/cppinternals.texi: Update.
21628 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
21630 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
21631 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
21633 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
21634 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
21635 kludge for pre-october-14th mmix versions to handle new-found bug
21636 with PUSHJ/PUSHGO and the register stack.
21637 * config/mmix/mmix.h (struct machine_function): Rename member
21638 has_call_value_without_parameters to has_call_without_parameters.
21639 All referers changed.
21640 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
21641 TARGET_MASK_BRANCH_PREDICT): New macros.
21642 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
21643 -mno-reg-stack-fill-bug-workaround.
21644 * config/mmix/mmix.md ("call"): Set struct machine member
21645 has_call_without_parameters.
21647 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
21649 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
21651 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
21653 * cfgcleanup.c: Include tm_p.h
21654 (mark_effect): Fix handling of hard register; fix handling of SET
21656 2002-01-04 Kazu Hirata <kazu@hxi.com>
21658 * config/h8300/h8300.md (anonymous patterns): Check that
21659 operands are registers before using REGNO on them.
21661 2002-01-03 Roland McGrath <roland@frob.com>
21663 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
21665 2002-01-04 Jakub Jelinek <jakub@redhat.com>
21667 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
21668 * c-common.h (genrtl_expr_stmt_value): Likewise.
21669 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
21670 (expand_expr_stmt_value): Add maybe_last argument.
21671 Don't warn about statement with no effect if it is the last statement
21672 in expression statement.
21673 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
21674 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
21675 expand_expr_stmt_value.
21676 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
21677 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
21678 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
21679 as maybe_last to expand_expr_stmt_value.
21681 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
21683 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
21684 be passed in, do not build it.
21685 (c_begin_if_stmt): New function.
21686 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21687 * c-common.h (c_expand_start_cond): Update prototype.
21688 (c_begin_if_stmt): Prototype new function.
21689 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21690 * c-parse.in (if_prefix): Use c_begin_if_stmt,
21691 c_begin_while_stmt and c_finish_while_stmt_cond.
21693 2002-01-04 William Cohen <wcohen@redhat.com>
21695 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
21696 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21697 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21698 * config/pa/som.h (ASM_FILE_START): Likewise.
21700 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
21702 * lcm.c: Include df.h.
21703 Add available_transfer_function prototype.
21704 (compute_available): Rework to use iterative dataflow framework.
21705 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
21706 with bb_info in df.h
21707 (available_transfer_function): New function.
21709 * Makefile.in (lcm.o): add df.h to dependencies.
21711 2002-01-04 Richard Henderson <rth@redhat.com>
21713 * config/alpha/alpha.c (some_operand): Accept HIGH.
21714 (input_operand): Likewise; accept simple references to globals.
21715 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
21716 (alpha_const_double_ok_for_letter_p): Likewise.
21717 (alpha_extra_constraint): Likewise.
21718 (alpha_preferred_reload_class): Likewise. Do not force
21719 symbolic constants to memory.
21720 (alpha_legitimate_address_p): Accept simple references
21721 to small_symbolic_operand.
21722 (alpha_legitimize_address): New arg scratch. Be prepared to be
21723 called when no_new_pseudos. Emit simple symbolic references.
21724 Split integers into low, high, and rest.
21725 (alpha_expand_mov): Use alpha_legitimize_address.
21726 (some_small_symbolic_mem_operand): New.
21727 (split_small_symbolic_mem_operand): New.
21728 * config/alpha/alpha-protos.h: Update.
21729 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
21730 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
21731 (EXTRA_CONSTRAINT): Likewise.
21732 (PREFERRED_RELOAD_CLASS): Likewise.
21733 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
21734 (PREDICATE_CODES): Update.
21735 * config/alpha/alpha.md: New post-reload splitters to convert
21736 simplfied symbolic operands to the form that references $29.
21737 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
21738 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
21740 2002-01-03 Richard Henderson <rth@redhat.com>
21742 * local-alloc.c (function_invariant_p): Update commentary.
21744 2002-01-04 H.J. Lu <hjl@gnu.org>
21746 * toplev.c (rest_of_compilation): Fix a typo when calling
21749 2002-01-03 Kazu Hirata <kazu@hxi.com>
21751 * c-common.c: Fix formatting.
21752 * diagnostic.c: Likewise.
21753 * doloop.c: Likewise.
21754 * dwarf2out.c: Likewise.
21756 2002-01-03 Kazu Hirata <kazu@hxi.com>
21758 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
21759 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
21761 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
21763 * cpperror.c: Update comments and copyright.
21764 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
21765 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
21767 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
21769 * collect2.c (main): Use strcmp when testing for "-shared".
21771 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
21773 * cppmacro.c: Don't include intl.h. Update comments.
21774 (new_number_token): Allocate enough buffer for 64-bit unsigned
21775 integers; update prototype.
21776 * cppmain.c: Update comments.
21778 2002-01-03 William Cohen <wcohen@redhat.com>
21780 * function.h (struct function): Add profile.
21781 (current_function_profile): New.
21782 doc/extend.texi: Update documentation.
21783 * final.c (final_start_function): Use current_function_profile
21784 instead of profile_flag.
21785 (profile_after_prologue): Likewise.
21786 * function.c (expand_function_start): Likewise.
21787 (expand_function_start): Likewise.
21788 * config/alpha/alpha.c (direct_call_operand):
21789 (alpha_does_function_need_gp): Likewise.
21790 (alpha_expand_prologue): Likewise.
21791 * config/arm/arm.c (arm_expand_prologue): Likewise.
21792 thumb_expand_prologue: Likewise.
21793 * config/d30v/d30v.c (d30v_stack_info): Likewise.
21794 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
21795 (fr30_expand_prologue): Likewise.
21796 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
21797 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
21798 * config/i386/i386.h (FINALIZE_PIC): Likewise.
21799 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21800 * config/i960/i960.c (i960_output_function_prologue): Likewise.
21801 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
21802 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
21803 (m32r_expand_prologue): Likewise.
21804 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
21805 (m88k_expand_prologue): Likewise.
21806 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
21807 * config/mips/mips.c (compute_frame_size): Likewise.
21808 (mips_expand_prologue): Likewise.
21809 (mips_can_use_return_insn): Likewise.
21810 * config/pa/elf.h (ASM_FILE_START): Likewise.
21811 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21812 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21813 * config/pa/som.h (ASM_FILE_START): Likewise.
21814 * config/romp/romp.c (romp_using_r14): Likewise.
21815 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
21816 (rs6000_stack_info): Likewise.
21817 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21818 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
21819 * config/v850/v850.c (compute_register_save_size): Likewise.
21821 2002-01-03 Jakub Jelinek <jakub@redhat.com>
21823 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
21824 gen_lowpart_common fails, use gen_lowpart_SUBREG.
21826 2002-01-03 Turly O'Connor <turly@apple.com>
21828 * darwin.c (machopic_output_possible_stub_label): Don't generate
21829 stub routines for pseudo-stubs which we've just defined.
21831 2002-01-03 Kazu Hirata <kazu@hxi.com>
21833 * builtins.c: Fix formatting.
21834 * c-typeck.c: Likewise.
21835 * combine.c: Likewise.
21836 * expr.c: Likewise.
21837 * loop.c: Likewise.
21839 2002-01-03 Andreas Schwab <schwab@suse.de>
21841 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21842 and return true if _cpp_push_next_buffer pushed a new include
21844 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21845 _cpp_pop_file_buffer did not push a new file.
21846 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21848 2002-01-02 Eric Christopher <echristo@redhat.com>
21850 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21851 FIND_REG_INC_NOTE call. Update copyright.
21852 * loop.c (canonicalize_condition): Ditto.
21853 * reorg.c (delete_scheduled_jump): Ditto.
21855 2002-01-03 Kazu Hirata <kazu@hxi.com>
21857 * gcse.c: Fix formatting.
21859 2002-01-03 Graham Stott <grahams@redhat.com>
21861 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21862 forward defs for struct tags rtx_def, union_tree, rtvec_def
21863 also output corresponding typedefs for rtx, tree, and rtvec.
21865 * system.h: Move forward defs for struct tags rtx_def, union_tree,
21866 rtvec_def along with corresponding typedefs for rtx, tree, and
21867 rtvec to config.h, hconfig.h, tconfig.h.
21869 2002-01-03 Graham Stott <grahams@redhat.com>
21871 * tree.h: Update copyright date.
21872 (IS_EXPR_CODE_CLASS): Add parenthesis.
21873 (TREE_SET_CODE): Add whitespace.
21874 (TREE_CHECK): Add parenthesis.
21875 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21876 (CST_OR_CONSTRUCTOR_CHECK):
21877 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21878 (TREE_SYMBOL_REFERENCED): Whitespace.
21879 (INT_CST_LT): Likewise.
21880 (INT_CST_LT_UNSIGNED): Likewise.
21881 (tree_real_cst): Unwrap comment.
21882 (tree_string): Likewise.
21883 (tree_complex): Likewise.
21884 (IDENTIFIER_POINTER): correct cast.
21885 (SAVE_EXPR_CONTEXT): Whitespace.
21886 (EXPR_WFL_FILENAME_NODE): Likewise.
21887 (EXPR_WFL_FILENAME): Remove parenthesis.
21888 (DECL_ORIGIN): Add parenthesis.
21889 (DECL_FROM_INLINE): Use NULL_TREE.
21890 (build_int_2): Whitespace.
21891 (build_type_variant): Add parenthesis.
21893 * gcc/jcf-parse.c: Update copyright date.
21894 (yyparse): Constify resource_filename.
21896 2002-01-03 Graham Stott <grahams@redhat.com>
21898 * rtl.h: Update copyright date.
21899 (RTL_CHECK1): Wrap long line.
21900 (RTL_CHECK2): Likewise.
21901 (RTL_CHECKC1): Wrap long line and whitespace.
21902 (RTL_CHECKC2): Likewise.
21903 (XWINT): Whitespace.
21909 (XBITMAP): Likewise.
21911 (XBBDEF): Likewise.
21913 (X0WINT): Likewise.
21915 (X0UINT): Likewise.
21919 (X0MODE): Likewise.
21920 (X0BITMAP): Likewise.
21921 (X0TREE): Likewise.
21922 (X0BBDEF): Likewise.
21923 (X0ADVFLAGS): Likewise.
21924 (X0CSELIB): Likewise.
21925 (X0MEMATTR): Likewise.
21926 (XCWINT): Likewise.
21928 (XCUINT): Likewise.
21932 (XCMODE): Likewise.
21933 (XCBITMAP): Likewise.
21934 (XCTREE): Likewise.
21935 (XCBBDEF): Likewise.
21936 (XCADVFLAGS): Likewise.
21937 (XCCSELIB): Likewise.
21938 (XC2EXP): Likewise.
21939 (INSN_UID): Likewise.
21940 (PREV_INSN): Likewise.
21941 (PATTERN): Likewise.
21942 (INSN_CODE): Likewise.
21943 (PUT_REG_NOTE_KIND): Likewise.
21944 (CODE_LABEL_NUMBER): Likewise.
21945 (NOTE_SOURCE_FILE): Likewise.
21946 (NOTE_BLOCK): Likewise.
21947 (NOTE_EH_HANDLER): Likewise.
21948 (NOTE_RANGE_INFO): Likewise.
21949 (NOTE_LIVE_INFO): Likewise.
21950 (NOTE_BASIC_BLOCK): Likewise.
21951 (NOTE_EXPECTED_VALUE): Likewise.
21952 (NOTE_LINE_NUMBER): Likewise.
21953 (LABEL_NAME): Likewise.
21954 (LABEL_NUSES): Likewise.
21955 (LABEL_ALTERNATE_NAME): Likewise.
21956 (ADDRESSOF_DECL): Likewise.
21957 (JUMP_LABEL): Likewise.
21958 (LABEL_NEXTREF): Likewise.
21960 (ORIGINAL_REGNO: Likewise.
21961 (HARD_REGISTER_NUM_P): Add parenthesis.
21962 (SUBREG_REG): Whitespace.
21963 (SUBREG_BYTE): Likewise.
21964 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21965 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21966 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21967 (ASM_OPERANDS_INPUT_VEC): Likewise.
21968 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21969 (ASM_OPERANDS_INPUT): Likewise.
21970 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21971 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21972 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21973 (ASM_OPERANDS_INPUT_MODE): Likewise.
21974 (ASM_OPERANDS_SOURCE_FILE): Likewise.
21975 (ASM_OPERANDS_SOURCE_LINE): Likewise.
21976 (MEM_SET_IN_STRUCT_P): Minor reformat.
21977 (TRAP_CONDITION): Whitespace.
21978 (TRAP_CODE): Likewise.
21979 (COND_EXEC_TEST): Likewise.
21980 (COND_EXEC_CODE): Likewise.
21981 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21982 (PHI_NODE_P): Add parenthesis.
21983 (plus_constant): Whitespace and add parenthesis.
21985 2002-01-03 Kazu Hirata <kazu@hxi.com>
21987 * config/avr/avr.c: Fix comment typos.
21988 * config/c4x/c4x.md: Likewise.
21989 * config/dsp16xx/dsp16xx.h: Likewise.
21990 * config/dsp16xx/dsp16xx.md: Likewise.
21991 * config/i386/i386.md: Likewise.
21992 * config/ia64/ia64.c: Likewise.
21993 * config/m32r/m32r.h: Likewise.
21994 * config/m68hc11/m68hc11.md: Likewise.
21995 * config/mmix/mmix.c: Likewise.
21996 * config/mn10200/mn10200.c: Likewise.
21997 * config/romp/romp.c: Likewise.
21998 * config/sh/sh.c: Likewise.
21999 * config/stormy16/stormy16.c: Likewise.
22000 * config/stormy16/stormy16.h: Likewise.
22001 * config/stormy16/stormy16.md: Likewise.
22003 2002-01-03 Graham Stott <grahams@redhat.com>
22005 * loop.h: Update copyright date.
22006 (LOOP_MOVABLES): Fix typo.
22007 (LOOP_REGS): Likewise.
22008 (LOOP_IVS): Likewise.
22010 2002-01-03 Graham Stott <grahams@redhat.com>
22012 * cppinit.c: Update copyright date.
22013 Don't include output.h
22014 * Makefile.in: Update copyright date.
22017 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
22020 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
22021 (-pthread) Add to RS/6000 options.
22023 2002-01-02 Kazu Hirata <kazu@hxi.com>
22025 * except.c: Fix comment typos.
22026 * loop.c: Likewise.
22027 * varasm.c: Likewise.
22028 * doc/tm.texi: Fix a typo.
22030 2002-01-02 Jakub Jelinek <jakub@redhat.com>
22032 * c-typeck.c (output_init_element): Allow initializing static storage
22033 duration objects with compound literals.
22035 2002-01-02 Richard Henderson <rth@redhat.com>
22037 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
22040 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22042 * gcc.c (default_compilers): Const-ify.
22043 * mips-tdump.c (stab_names): Likewise.
22044 * mips-tfile.c (map_coff_types, map_coff_storage,
22045 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
22046 pseudo_ops_t, pseudo_ops): Likewise.
22047 * protoize.c (default_include): Likewise
22049 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
22050 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
22051 Add array size in declaration.
22052 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
22053 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
22054 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
22055 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
22056 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
22057 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
22058 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
22059 emtens, make_nan): Const-ify.
22060 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
22061 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
22063 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
22065 * config.gcc (ia64-*-*): Set extra_headers.
22066 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
22067 * config/alpha/t-osf: Remove.
22068 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
22070 2002-01-02 David Edelsohn <edelsohn@gnu.org>
22072 * config/rs6000/t-aix43: Revert previous change.
22074 2002-01-02 Jason Merrill <jason@redhat.com>
22076 * c-decl.c (c_expand_body): Call outlining_inline_function when
22077 emitting an inline function out of line.
22079 2002-01-02 Richard Henderson <rth@redhat.com>
22081 * dwarf2out.c (limbo_die_node): Add created_for member.
22082 (new_die): New argument created_for. Update all callers.
22083 (mark_limbo_die_list): New.
22084 (dwarf2out_init): Register limbo_die_list as a root.
22085 (dwarf2out_finish): Force insert limbo dies into their function
22088 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
22091 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
22093 2002-01-02 Kazu Hirata <kazu@hxi.com>
22095 * config/h8300/fixunssfsi.c: Update copyright.
22098 * config/h8300/h8300.c: Update copyright.
22099 Eliminate warnings.
22101 2002-01-02 Kazu Hirata <kazu@hxi.com>
22103 * config/romp/romp.c: Fix comment formatting.
22104 * config/romp/romp.h: Likewise.
22105 * config/romp/romp.md: Likewise.
22106 * config/s390/s390.c: Likewise.
22107 * config/stormy16/stormy16.c: Likewise.
22108 * config/stormy16/stormy16.h: Likewise.
22110 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
22112 * c-common.h (genrtl_expr_stmt_value): Declare.
22113 * c-semantics.c (genrtl_goto_stmt): Redirect to...
22114 (genrtl_goto_stmt_value): ... this new function. Pass new
22115 argument down to expand_expr_stmt_value, taking
22116 TREE_ADDRESSABLE into account.
22117 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
22118 STMT_EXPR as addressable, i.e., one whose result we want.
22119 * expr.c (expand_expr): Don't save expression statement value
22120 of labeled_blocks or loop_exprs.
22121 * stmt.c (expand_expr_stmt): Redirect to...
22122 (expand_expr_stmt_value): ... this new function. Use new
22123 argument to tell whether to save expression value.
22124 (expand_end_stmt_expr): Reset last_expr_type and
22125 last_expr_value if we don't have either.
22126 * tree-inline.c (declare_return_variable): Mark its use
22127 statement as addressable.
22128 * tree.h: Document new use of TREE_ADDRESSABLE.
22129 (expand_expr_stmt_value): Declare.
22131 2002-01-01 Tom Rix <trix@redhat.com>
22133 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
22134 rs6000_emit_allocate_stack.
22136 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
22138 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
22139 ${srcdir}/ginclude/ to every entry in extra_headers.
22140 * configure: Regenerate.
22141 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
22142 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
22143 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
22144 * ginclude/proto.h: Rename to config/convex/proto.h.
22146 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22148 * attribs.c (handle_vector_size_attribute): Use host_integerp
22149 and tree_int_cst; remove warnings.
22150 * caller-save.c (insert_restore): Add cast to get rid of warning.
22151 (insert_save): Likewise.
22152 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
22153 * regmove.c (find_matches): Add temporary var to kill a warning.
22155 2002-01-01 Douglas B Rupp <rupp@gnat.com>
22157 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
22158 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
22159 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
22160 (vms-dwarf2eh.o): Add Makefile rule.
22161 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
22162 * config/alpha/vms-dwarf2eh.asm: New file.
22164 * gcc.c (delete_if_ordinary): Delete all versions.
22166 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
22168 * config/mmix/mmix.md: Update FIXME to not mention
22170 (MMIX_rJ_REGNUM): New define_constants constant.
22171 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
22172 "*movdicc_real"): Adjust contraints formatting.
22173 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
22174 for branch prediction.
22175 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
22177 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
22178 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
22179 number. Delete related FIXMEs.
22180 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
22181 from number to MMIX_rJ_REGNUM.
22182 (TARGET_MASK_BRANCH_PREDICT): New.
22183 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
22184 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
22185 value. Add -mbranch-predict and -mno-branch-predict.
22186 (TARGET_VERSION): Drop date.
22187 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
22188 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
22189 for finding out global symbols.
22190 (mmix_asm_output_labelref): Revert condition for global symbol.
22191 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
22192 (mmix_print_operand_punct_valid_p): A '+' is valid.
22194 See ChangeLog.6 for earlier changes.